:root{--ink:#263747;--muted:#718096;--blue:#0d6efd;--line:#d2d6dc;--canvas:#f0f1f3}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);font:14px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink)}
button,input,select{font:inherit}button,a,summary{cursor:pointer}a{color:var(--blue);text-decoration:none}button{border:1px solid currentColor;border-radius:3px;padding:6px 10px;background:transparent;color:var(--ink)}button:hover{background:#e7edf3}button:disabled{opacity:.45;cursor:default}
input,select{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:3px;padding:7px 9px;width:100%;min-width:0}input[type=checkbox]{width:auto}label{display:block;margin:10px 0}label>span{display:block;margin-bottom:4px;color:#596675}small,.muted{color:var(--muted)}h1,h2,h3{font-weight:500}h1{font-size:22px}h2{font-size:18px}h3{font-size:16px}header{background:white;box-shadow:0 2px 7px #0001;padding:0 20px}
nav{display:flex;align-items:center;gap:22px;min-height:58px}nav a{color:#767b80;font-weight:600}nav a.active{color:#202c36}.brand{font-size:19px;color:#263747!important;margin-right:12px}.brand b{color:#e8ac00;font-size:27px;margin-right:6px}.session{margin-left:auto;font-size:12px;max-width:260px;overflow-wrap:anywhere}
main{padding:22px;max-width:1600px;margin:auto}.card{background:#fff;border-radius:10px;padding:20px;box-shadow:0 5px 14px #00000012}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,380px));gap:22px}.balance{display:flex;align-items:center;gap:12px;margin-bottom:16px}.coin{background:#26a17b;color:white;border-radius:50%;width:40px;height:40px;text-align:center;font-size:26px;font-weight:600}.balance strong{font-size:16px}.freeze{font-size:11px;color:#5c79ba}.insurance{color:#209c78;font-size:11px}.row,.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.between{justify-content:space-between}.spacer{margin-top:18px}.store-title{margin:0}.add{min-height:180px;display:grid;place-items:center;font-size:32px;color:#929eaa;border:2px dashed #d2d6dc;box-shadow:none;background:transparent}.key{font-family:monospace;font-size:12px;overflow-wrap:anywhere}.tag{font-size:11px;background:#e9edf2;padding:3px 7px;border-radius:3px}.blue{background:var(--blue);color:#fff;border-color:var(--blue)}.danger{color:#b32a37}.filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:8px;margin:12px 0}.filters label{margin:0}.filters .actions{grid-column:1/-1;justify-content:flex-end}.table-wrap{width:100%;overflow-x:auto;margin-top:18px;background:white}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th,td{border-bottom:1px solid #e4e7eb;padding:10px 12px;text-align:left}th{border-bottom:1px solid #303a44;font-weight:600;background:#fff}tbody tr:nth-child(odd){background:#f4f4f4}td.wrap{white-space:normal;min-width:160px;max-width:300px;overflow-wrap:anywhere}.empty{text-align:center;padding:32px;color:#89939e}.pagebar{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:16px 0}.pill{display:inline-block;background:#e8edf3;border-radius:4px;padding:3px 8px}.pill.paid,.pill.completed{background:#dff1e6;color:#1b7944}.pill.dispute{background:#fff0c5;color:#925e00}.pill.canceled{background:#fbe2e4;color:#a2333b}.login{max-width:440px;margin:8vh auto}.login h1{margin-top:0}.login button{width:100%;margin-top:10px}.error{color:#b32a37}.help{padding:12px 15px;background:#e8eef6;border-radius:5px;font-size:13px;margin:16px 0}.setting{max-width:700px;margin-bottom:20px}.hidden,[hidden]{display:none!important}
dialog{border:0;border-radius:8px;padding:22px;width:min(580px,94vw);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 10px 50px #0003}dialog::backdrop{background:#0006}dialog h2{margin:0 0 16px}dialog .actions{justify-content:flex-end;margin-top:18px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6f8;padding:12px}#notice{position:fixed;right:22px;bottom:20px;background:#263747;color:#fff;padding:14px 20px;border-radius:6px;max-width:min(480px,90vw);z-index:10}.menu{display:none}.profile-key{background:#f7f8fa;padding:10px;border-radius:4px}.report-title{padding:10px;background:#fff;text-align:center;font-weight:600} :focus-visible{outline:2px solid #0d6efd;outline-offset:3px}
@media(max-width:760px){.menu{display:block;margin:auto;border:0;font-size:24px}nav{display:none;align-items:flex-start;padding:16px 0;gap:16px;flex-direction:column}nav.open{display:flex}.session{margin-left:0}main{padding:12px}.cards{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.card{padding:16px}.login{margin:5vh auto}.balance strong{font-size:14px}}

/* Invoice screens use the same compact light tables and spacious detail modal as the reference. */
.merchant-portal{--ink:#263747;--muted:#718096;--blue:#0d6efd;--line:#ced4da;--canvas:#fff;background:#fff}
.merchant-portal main{max-width:none;padding:22px 24px}.merchant-portal header{padding:0 24px;box-shadow:0 1px 5px #0002}.merchant-portal nav{min-height:52px;gap:22px}.merchant-portal nav a{font-weight:400}.merchant-portal .session{border:0;background:none;font-size:13px;max-width:none}.merchant-portal .nav-store{white-space:nowrap}
.merchant-portal .invoice-filters{grid-template-columns:repeat(6,minmax(110px,1fr));gap:12px 24px;margin:8px 0 24px}.merchant-portal .invoice-filters label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.merchant-portal .invoice-filters input,.merchant-portal .invoice-filters select{height:36px;padding:6px 12px}.merchant-portal .invoice-filters .actions{grid-column:2/-1}.merchant-portal .invoice-filters .actions>button{color:#0d6efd;border-color:#0d6efd;background:white}.merchant-portal .table-wrap{margin-top:12px}.merchant-portal th,.merchant-portal td{padding:10px 12px;font-size:13px}.merchant-portal th{font-weight:600}.merchant-portal td small{display:block;font-size:11px;color:#7a8793;max-width:240px;overflow-wrap:anywhere;white-space:normal}.merchant-portal td.invoice-id{min-width:190px}.merchant-portal .blue-outline{color:#0d6efd;border-color:#0d6efd}.merchant-portal .copy{border:0;background:none;padding:0 3px;vertical-align:middle;color:#7c858d;line-height:1}.merchant-portal .copy svg{fill:currentColor;width:13px;height:13px}
.merchant-portal dialog .modal-x{position:absolute;right:18px;top:14px;border:0;background:none;color:#777;font-size:28px;padding:0;line-height:1}.merchant-portal .invoice-details{width:min(1140px,96vw);max-height:94vh;margin:30px auto;padding:0;border-radius:5px}.merchant-portal .invoice-details>h2{font-size:20px;font-weight:400;padding:16px;margin:0;border-bottom:1px solid #dee2e6}.merchant-portal .invoice-details>form{padding:16px 20px 20px}.merchant-portal .invoice-section-title{text-align:center;font-size:18px;font-weight:500;margin:4px 0 12px}.merchant-portal .invoice-section-title:not(:first-child){margin-top:32px}.merchant-portal .invoice-properties{table-layout:fixed;white-space:normal;border-top:1px solid #263747}.merchant-portal .invoice-properties th{width:25%;background:transparent;border:0;font-weight:600}.merchant-portal .invoice-properties td{overflow-wrap:anywhere}.merchant-portal .invoice-properties td,.merchant-portal .invoice-deals td{border:0}.merchant-portal .invoice-properties tr:nth-child(odd),.merchant-portal .invoice-deals tr:nth-child(odd){background:#f2f2f2}.merchant-portal .invoice-properties .fee{color:#dc606d}.merchant-portal .invoice-properties .payout{color:#198b67}.merchant-portal .invoice-deals{font-size:12px}.merchant-portal .invoice-deals th,.merchant-portal .invoice-deals td{padding:8px}.merchant-portal .invoice-deals th{font-size:12px;font-weight:400}.merchant-portal .bank-mini{display:inline-grid;place-items:center;width:40px;height:40px;border:7px solid #fff;border-radius:50%;background:#ffdd2d;color:#222;font-weight:700}.merchant-portal .invoice-actions{display:flex;gap:8px;margin-top:16px}.merchant-portal .invoice-details .error:empty{display:none}
@media(max-width:900px){.merchant-portal .invoice-filters{grid-template-columns:repeat(3,minmax(110px,1fr));gap:10px}.merchant-portal .invoice-filters .actions{grid-column:1/-1}.merchant-portal .invoice-deals{min-width:900px}}
@media(max-width:760px){.merchant-portal main{padding:12px}.merchant-portal .invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-portal .invoice-details{margin:12px auto}.merchant-portal .invoice-details>form{padding:12px}.merchant-portal .invoice-properties th{width:34%}.merchant-portal .session{margin-left:0}.merchant-portal nav{gap:14px}.merchant-portal td.invoice-id{min-width:150px}}
.merchant-portal td small{white-space:nowrap;overflow-wrap:normal}.merchant-portal td.invoice-id small{white-space:normal;overflow-wrap:anywhere}.merchant-portal .invoice-details>form>.actions{border-top:1px solid #dee2e6;padding-top:14px}


.merchant-portal{--canvas:#f0f1f3;background:#f0f1f3}.merchant-portal main{padding:16px;max-width:none}.merchant-accounts{max-width:630px;margin:0 auto}.merchant-account{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;margin:0 0 22px}.merchant-account .balance{margin:0}.merchant-account .balance strong{font-size:16px}.merchant-portal .coin{display:grid;place-items:center;position:relative;flex-shrink:0}.merchant-portal .coin:after{content:'△';background:#ee1933;border-radius:50%;color:white;font-size:10px;line-height:14px;width:14px;height:14px;position:absolute;right:0;bottom:-1px}.stores-heading{text-align:center;font-size:20px;font-weight:400;margin:20px 0 16px}.merchant-stores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.merchant-store{padding:16px}.store-fees{font-size:13px;margin:3px 0 12px}.store-title{font-size:16px;font-weight:600}.store-key{display:flex;align-items:center;border:1px solid #ced4da;border-radius:3px;height:32px;margin:12px 0 25px;font-size:13px}.store-key span{padding:4px 8px;border-right:1px solid #ced4da;white-space:nowrap}.store-key input{border:0;text-align:center;font:12px monospace;padding:5px;min-width:0}.store-key .copy-button{margin:0;border-left:1px solid #ced4da;padding:6px}.store-proceeds{display:flex;justify-content:space-between;align-items:center;gap:12px}.store-proceeds .balance{margin:0}.store-proceeds small,.store-proceeds strong{display:block}.store-proceeds small{font-size:12px}.store-proceeds strong{font-size:16px;font-weight:500}.merchant-add{background:#fff;border:0;color:#606b76;box-shadow:0 5px 14px #00000012;font-size:150px;line-height:1;font-weight:600;min-height:265px}.store-bottom{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.store-tools{display:flex;gap:4px;flex-wrap:wrap}.store-tools .small{padding:3px 5px;font-size:11px}.outline-button{display:inline-block;border:1px solid #343a40;border-radius:3px;padding:5px 8px;font-size:13px;color:#263747}.merchant-portal .store-key .copy-mini{padding:6px}.merchant-portal nav{min-height:56px}.merchant-portal nav .brand{padding-right:18px;border-right:1px solid #dee2e6;align-self:stretch;display:flex;align-items:center;font-size:16px}.merchant-portal nav .brand b{font-size:32px}.merchant-portal .merchant-store .actions{gap:8px}.merchant-portal .merchant-store button{font-size:13px;padding:5px 8px}
@media(max-width:760px){.merchant-stores{grid-template-columns:1fr}.merchant-add{min-height:180px}.store-proceeds{align-items:flex-start;flex-wrap:wrap}.store-proceeds .actions{margin-left:auto}.merchant-account{padding:14px}}

.merchant-portal .merchant-add{font-size:150px;line-height:1;font-weight:300}

/* Shared light-portal font, served publicly without requiring an admin session. */
/* Nunito, official Google Fonts variable WOFF2; normal weights 400 through 800.
   Self-hosted Latin and Cyrillic subsets. License: /trader-assets/fonts/Nunito-OFL.txt. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/trader-assets/fonts/nunito-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/trader-assets/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/trader-assets/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/trader-assets/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.merchant-portal{font-family:Nunito,sans-serif;font-size:16px;line-height:1.5;color:#1f2d3e}.merchant-portal button,.merchant-portal input,.merchant-portal select{font-size:14px}.merchant-portal th,.merchant-portal td{font-size:12.8px;padding:8px}.merchant-portal .filters input,.merchant-portal .filters select{border-radius:3.2px}.merchant-portal .table-wrap{max-width:100%}

.merchant-portal .merchant-qr{width:230px;max-width:100%;margin:12px auto}.merchant-portal .merchant-qr svg{display:block;width:100%;height:auto}

/* Reference pass: independent filter and table cards, compact light headers. */
.merchant-portal main{padding:16px 24px 24px}.merchant-portal header{padding:0 10px}.merchant-portal nav{gap:16px;min-height:56px}.merchant-portal nav .brand{padding-right:16px;margin-right:8px}.merchant-portal .nav-store{align-self:stretch;display:flex;align-items:center;padding-right:24px;border-right:1px solid #dee2e6;font-weight:700}.merchant-portal .session{font-size:16px;color:#73777a}
.merchant-portal .filters{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;background:white;border-radius:12px;padding:24px 16px;margin:0 0 32px;box-shadow:0 5px 14px #00000012}.merchant-portal .filters>label{flex:0 0 200px;width:200px;margin:0}.merchant-portal .filters>label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.merchant-portal .filters input,.merchant-portal .filters select{height:31px;padding:4px 8px;font-size:14px;line-height:21px}.merchant-portal .filters .actions{display:flex;flex:1 1 300px;justify-content:flex-end;gap:8px;margin:0}.merchant-portal .filters .actions>button,.merchant-portal .filters .report-download>button{height:31px;border-radius:18px;padding:4px 8px;color:#0d6efd;border-color:#0d6efd;background:#fff;white-space:nowrap}.merchant-portal .filters #reset{color:#6c757d;border-color:#6c757d}.merchant-portal .filters #export{color:#198754;border-color:#198754}.merchant-portal .report-download{width:100%;display:flex;justify-content:flex-end;margin-top:16px}
.merchant-portal .table-wrap{margin-top:0;padding:16px;border-radius:12px;box-shadow:0 5px 14px #00000012}.merchant-portal .table-wrap th:last-child,.merchant-portal td.operator-actions{text-align:right}.merchant-portal .table-wrap td:first-child{white-space:nowrap}.merchant-portal dialog .table-wrap{padding:0;border-radius:0;box-shadow:none}.merchant-portal [data-view=operators] .table-wrap{margin-top:0}.merchant-portal .merchant-invoice-create,.merchant-portal .merchant-operator-dialog{width:min(500px,96vw);margin:28px auto;padding:0;border-radius:4px}.merchant-portal .merchant-operator-dialog{width:min(800px,96vw)}.merchant-portal .merchant-invoice-create>h2,.merchant-portal .merchant-operator-dialog>h2{padding:16px;margin:0;border-bottom:1px solid #dee2e6;font-size:20px}.merchant-portal .merchant-invoice-create>form,.merchant-portal .merchant-operator-dialog>form{padding:0 16px 16px}.merchant-portal .merchant-invoice-create form>label,.merchant-portal .merchant-operator-dialog form>label{display:grid;grid-template-columns:31% minmax(0,1fr);align-items:center;gap:8px;margin:8px 0}.merchant-portal .merchant-invoice-create label>span,.merchant-portal .merchant-operator-dialog label>span{margin:0}.merchant-portal .merchant-invoice-create input:not([type=checkbox]),.merchant-portal .merchant-invoice-create select,.merchant-portal .merchant-operator-dialog input:not([type=checkbox]){height:38px}.merchant-portal .merchant-invoice-create .actions,.merchant-portal .merchant-operator-dialog .actions{border-top:1px solid #dee2e6;padding-top:16px;margin-top:24px}.merchant-portal .merchant-invoice-create .actions .blue,.merchant-portal .merchant-operator-dialog .actions .blue{background:white;color:#0d6efd}.merchant-portal .merchant-inline-check{display:flex;align-items:center;gap:6px;font-size:14px}.merchant-portal .merchant-switch{appearance:none;width:32px;height:16px;border:1px solid #b7bdc3;padding:1px;border-radius:10px;background:#fff;cursor:pointer}.merchant-portal .merchant-switch:before{content:'';display:block;width:12px;height:12px;border-radius:50%;background:#bcc0c3}.merchant-portal .merchant-switch:checked{background:#0d6efd;border-color:#0d6efd}.merchant-portal .merchant-switch:checked:before{background:#fff;transform:translateX(15px)}
.merchant-portal .merchant-settings{max-width:614px;margin:0 auto}.merchant-portal .merchant-settings>h2{text-align:center;font-size:20px;margin:4px 0 16px;font-weight:400}.merchant-portal .merchant-settings .setting{max-width:none;padding:16px;margin:0 0 16px}.merchant-portal .merchant-security-status,.merchant-portal .merchant-settings form>label{display:grid;grid-template-columns:186px minmax(0,1fr);align-items:center;gap:8px;margin:0 0 20px}.merchant-portal .merchant-security-status{margin:0}.merchant-portal .merchant-settings label>span{margin:0}.merchant-portal .merchant-settings input,.merchant-portal .merchant-settings select,.merchant-portal .merchant-settings .pp-select{width:194px;max-width:100%}.merchant-portal .merchant-settings input,.merchant-portal .merchant-settings select{height:31px;padding:4px 8px}.merchant-portal .merchant-settings .blue{background:#5373e4;border-color:#5373e4;color:#fff;font-size:14px;padding:5px 8px}.merchant-portal .merchant-settings .warning{color:#d8a500}.merchant-portal .merchant-settings .good{color:#198754}.merchant-portal .merchant-profile-save{padding-top:22px;border-top:1px solid #dee2e6;text-align:right;padding-right:calc(100% - 388px)}
@media(max-width:760px){.merchant-portal main{padding:12px}.merchant-portal .filters{padding:14px;gap:8px}.merchant-portal .filters>label{flex:1 1 calc(50% - 8px);width:auto;min-width:0}.merchant-portal .filters .actions{flex-basis:100%;flex-wrap:wrap}.merchant-portal .merchant-settings form>label{grid-template-columns:minmax(0,1fr);gap:6px}.merchant-portal .merchant-settings input,.merchant-portal .merchant-settings select,.merchant-portal .merchant-settings .pp-select{width:100%}.merchant-portal .merchant-profile-save{padding-right:0}.merchant-portal .merchant-security-status{grid-template-columns:90px 1fr}.merchant-portal .nav-store{border:0;padding-right:0}.merchant-portal .merchant-invoice-create form>label,.merchant-portal .merchant-operator-dialog form>label{grid-template-columns:38% minmax(0,1fr)}.merchant-portal .table-wrap{padding:10px}}

.merchant-portal .merchant-statistics table{border:1px solid #dee2e6;white-space:nowrap}.merchant-portal .merchant-statistics td,.merchant-portal .merchant-statistics th{border:1px solid #dee2e6;padding:8px;text-align:left}.merchant-portal .merchant-statistics tr{background:#fff}.merchant-portal .merchant-statistics .merchant-stats-group th{background:#6c757d;color:#fff;text-align:center;font-weight:700}.merchant-portal .merchant-statistics .merchant-stats-direction th{text-align:center;font-weight:700;background:#fff}.merchant-portal .merchant-statistics .merchant-stats-columns th{background:#f7f8fa}.merchant-portal .merchant-statistics td:nth-child(n+3){text-align:right}.merchant-portal .merchant-statistics .issued{color:#4f8d77}.merchant-portal .merchant-statistics .unissued{color:#c35d5d}.merchant-portal .merchant-statistics .cancelled{color:#92989c;font-size:11px}

/* Searchable selects retain native field geometry; pill rules apply only to filter actions. */
.merchant-portal .filters .pp-select-button,.merchant-portal .merchant-settings .pp-select-button{height:31px;border-radius:3.2px}
.merchant-portal .merchant-invoice-create .pp-select-button{height:38px}

/* Long store names and account actions must not stretch the portal viewport. */
.merchant-portal .nav-store{display:block;min-width:0;max-width:min(30vw,360px);flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;line-height:56px}
@media(max-width:760px){
 .merchant-portal .nav-store{max-width:100%;align-self:stretch;line-height:24px}
}
@media(max-width:600px){
 .merchant-account{flex-wrap:wrap}
 .merchant-account>.balance{min-width:0;max-width:100%}
 .merchant-account>.balance>div{min-width:0;overflow-wrap:anywhere}
 .merchant-account>.outline-button{margin-left:auto}
}

/* Keep wide reports inside their scroll area, with room reserved for row actions. */
.merchant-portal #app,.merchant-portal dialog form,.merchant-portal .table-wrap{min-width:0}
.merchant-portal .table-wrap{max-width:100%;overflow-x:auto}
.merchant-portal .table-wrap button,.merchant-portal .invoice-actions>button{flex-shrink:0;white-space:nowrap}
.merchant-portal .invoice-actions{flex-wrap:wrap}
.merchant-portal[data-view=invoices] #app>.table-wrap table{table-layout:fixed;min-width:1320px}
.merchant-portal[data-view=invoices] #app>.table-wrap th{white-space:normal}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(1){width:160px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(2){width:64px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(3){width:96px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(4){width:112px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(5){width:136px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(8){width:124px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(9),.merchant-portal[data-view=invoices] #app>.table-wrap th:nth-child(10){width:144px}
.merchant-portal[data-view=invoices] #app>.table-wrap th:last-child{width:124px}
.merchant-portal[data-view=invoices] #app>.table-wrap td.invoice-id{min-width:0}
.merchant-portal[data-view=invoices] #app>.table-wrap td:nth-child(3),.merchant-portal[data-view=invoices] #app>.table-wrap td:nth-child(4),.merchant-portal[data-view=invoices] #app>.table-wrap td:nth-child(6),.merchant-portal[data-view=invoices] #app>.table-wrap td:nth-child(7){white-space:normal;overflow-wrap:anywhere}
.merchant-portal[data-view=invoices] #app>.table-wrap td:last-child{text-align:right}
.merchant-portal[data-view=operators] #app>.table-wrap table{table-layout:fixed}
.merchant-portal[data-view=operators] #app>.table-wrap th:last-child{width:146px}
.merchant-portal[data-view=operators] #app>.table-wrap td:first-child,.merchant-portal[data-view=operators] #app>.table-wrap td small{white-space:normal;overflow-wrap:anywhere;max-width:none}
.merchant-portal[data-view=history] #app>.table-wrap table{table-layout:fixed;min-width:1080px}
.merchant-portal[data-view=history] #app>.table-wrap th:first-child{width:160px}
.merchant-portal[data-view=history] #app>.table-wrap th:nth-child(2){width:76px}
.merchant-portal[data-view=history] #app>.table-wrap th:nth-child(3),.merchant-portal[data-view=history] #app>.table-wrap th:nth-child(5),.merchant-portal[data-view=history] #app>.table-wrap th:nth-child(6){width:144px}
.merchant-portal[data-view=history] #app>.table-wrap th:nth-child(4){width:160px}
.merchant-portal[data-view=history] #app>.table-wrap td:nth-child(4),.merchant-portal[data-view=history] #app>.table-wrap td:last-child{white-space:normal;overflow-wrap:anywhere}
.merchant-portal .merchant-statistics table{table-layout:fixed;min-width:1000px}
.merchant-portal .merchant-statistics th{white-space:normal;overflow-wrap:anywhere}
.merchant-portal .merchant-statistics .merchant-stats-columns th:first-child{width:20%}
.merchant-portal .merchant-statistics .merchant-stats-columns th:nth-child(2){width:14%}
.merchant-portal .merchant-store,.merchant-portal .merchant-store .row>div,.merchant-portal .store-proceeds .balance,.merchant-portal .store-proceeds .balance>div{min-width:0}
.merchant-portal .store-title,.merchant-portal .store-proceeds strong{overflow-wrap:anywhere}
.merchant-portal .store-proceeds{flex-wrap:wrap}
.merchant-portal .store-proceeds>.actions{margin-left:auto}
@media(max-width:480px){
 .merchant-portal .merchant-invoice-create form>label,.merchant-portal .merchant-operator-dialog form>label{grid-template-columns:minmax(0,1fr)}
 .merchant-portal[data-view=operators] #app>.table-wrap th:last-child{width:130px}
}

/* Modal forms stay inside the visible viewport, including their headings and footer. */
.merchant-portal dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 32px);scroll-padding-block:16px}
.merchant-portal dialog.invoice-details,.merchant-portal dialog.merchant-invoice-create,.merchant-portal dialog.merchant-operator-dialog{top:0;bottom:auto;margin:16px auto}
.merchant-portal dialog>h2,.merchant-portal .invoice-details>h2,.merchant-portal .merchant-invoice-create>h2,.merchant-portal .merchant-operator-dialog>h2{padding-right:48px;overflow-wrap:anywhere}
.merchant-portal dialog :is(form,label,label>span,.error,.help),.merchant-portal .merchant-settings :is(form,label,label>span){min-width:0}
.merchant-portal dialog :is(p,pre,.error,.help,label>span),.merchant-portal .merchant-settings :is(label>span,p){overflow-wrap:anywhere}
.merchant-portal dialog :is(input,select,textarea,.pp-select){max-width:100%}
.merchant-portal dialog input[type=file]{display:block;width:100%;height:auto;white-space:normal}
.merchant-portal dialog input[type=file]::file-selector-button{max-width:100%;white-space:normal}
.merchant-portal dialog form>.actions{flex-wrap:wrap;gap:8px}
.merchant-portal dialog form>.actions>button,.merchant-portal dialog .invoice-actions>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.merchant-portal .merchant-inline-check{min-width:0;align-items:flex-start;overflow-wrap:anywhere}
.merchant-portal .merchant-inline-check input{flex-shrink:0}
.merchant-portal .merchant-operator-dialog :is(.merchant-switch, .merchant-inline-check input) {
  margin: 0;
}
@media (max-width: 480px) {
  .merchant-portal .merchant-operator-dialog form > label:has(> .merchant-switch) {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 32px;
  }
}
.merchant-portal .merchant-settings [data-keys]{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.merchant-portal .error,.merchant-portal #notice{overflow-wrap:anywhere}
@media(max-width:480px){
 .merchant-portal .filters>label{flex-basis:100%}
 .merchant-portal .filters .actions,.merchant-portal .report-download{min-width:0;flex-wrap:wrap}
 .merchant-portal .report-download>button{max-width:100%;height:auto;white-space:normal}
}

.merchant-store .store-heading,.merchant-store .store-proceeds,.merchant-store .store-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.merchant-store .store-heading{position:static;background:transparent;color:inherit;padding:0;height:auto;box-shadow:none}.merchant-store .store-heading h3{margin:.35em 0}.merchant-store .balance small,.merchant-store .balance strong{display:block}.merchant-store .store-key{margin:24px 0}.merchant-store .store-key input{text-align:center;min-width:0}.merchant-store .correction,.merchant-store .store-auto-summary,.merchant-store .store-remove{color:#c33449}.merchant-store .store-auto-summary{text-align:right;overflow-wrap:anywhere}.merchant-store .actions,.merchant-store .store-tools{display:flex;gap:6px;flex-wrap:wrap}.merchant-store .store-bottom{margin-top:18px}.merchant-store .store-proceeds{margin:12px 0}

.merchant-stores{grid-template-columns:repeat(auto-fit,minmax(min(100%,58rem),1fr))}.merchant-store{min-width:0}.merchant-store .store-key input{flex:1}.merchant-store .store-bottom .store-tools{gap:4px}.merchant-store .store-heading{width:100%}
@media(max-width:600px){.merchant-store .store-bottom,.merchant-store .store-proceeds{align-items:flex-start;flex-direction:column}.merchant-store .store-key{width:100%}.merchant-store .store-auto-summary{text-align:left}}
