.admin-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px}.admin-layout.dashboard-layout{grid-template-columns:minmax(0,1fr)}.admin-content-wide{width:100%}.admin-sidebar{position:sticky;top:110px;align-self:start;display:grid;gap:7px}.admin-sidebar button{border:0;background:transparent;padding:13px 16px;border-radius:12px;text-align:left;cursor:pointer;color:#75685d;font-weight:650}.admin-sidebar button.active{background:#fff0e3;color:#bc510d}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.admin-heading h1{font-size:34px;letter-spacing:-1px;margin:7px 0}.admin-heading p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}.admin-content{min-width:0}.admin-content .stats{gap:12px}.admin-content .stat{padding:20px}.admin-content .value{font-size:27px}.admin-panel{margin-top:22px;border:1px solid var(--line);background:#fff;border-radius:20px;overflow:hidden}.admin-toolbar{padding:18px 20px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.admin-toolbar h2{font-size:17px;margin:0}.admin-toolbar input{width:min(300px,100%);border:1px solid var(--line);padding:11px 13px;border-radius:10px}.admin-scroll{overflow:auto}.admin-table{min-width:720px}.admin-table td{vertical-align:top;font-size:13px}.admin-table small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}.admin-table button{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font-size:12px;margin:2px}.admin-table .money{white-space:nowrap;font-weight:750}.admin-empty{padding:50px 24px;text-align:center;color:var(--muted);font-size:14px}.admin-error{padding:14px 18px;background:#fff0eb;color:#9c371a;border-radius:12px;margin-bottom:18px;line-height:1.5}.admin-badge{display:inline-flex;border-radius:20px;background:#fff1e4;color:#a65d0c;padding:5px 9px;font-size:11px;font-weight:700;white-space:nowrap}.admin-badge.approved,.admin-badge.paid,.admin-badge.confirmed{background:#e8f7ef;color:#14734c}.admin-badge.void,.admin-badge.suspended,.admin-badge.rejected{background:#f1ece8;color:#837469}.admin-modal{position:fixed;inset:0;background:#1a130b70;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.admin-dialog{background:#fff;border-radius:24px;padding:28px;width:min(640px,100%);max-height:90svh;overflow:auto;box-shadow:0 30px 90px #0003}.admin-dialog h2{margin:0 0 8px;font-size:24px}.admin-dialog .hint{font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:22px}.admin-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-dialog label{font-size:12px;font-weight:700;display:grid;gap:8px;color:#756458}.admin-dialog input,.admin-dialog select,.admin-dialog textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fffdfb;color:var(--ink);font-size:16px}.admin-dialog .full{grid-column:1/-1}.admin-dialog .buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.admin-summary{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.admin-summary span{background:#fff4e9;border:1px solid #f7dfcc;padding:10px 14px;border-radius:12px;font-size:13px}.client-live{margin-top:18px}.client-live .admin-table{min-width:600px}.admin-loading{padding:40px;color:var(--muted)}
.finance-dashboard{border:1px solid #f2d7c3;background:linear-gradient(145deg,#fff 0%,#fffaf6 100%);border-radius:22px;padding:22px;box-shadow:0 14px 34px #6d32100a}.finance-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.finance-dashboard-head h2{margin:5px 0 4px;font-size:23px}.finance-dashboard-head p{margin:0;color:var(--muted);font-size:12px}.finance-date-filter{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.finance-date-filter label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:700}.finance-date-filter select,.finance-date-filter input{min-width:142px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px;color:var(--ink);font:inherit}.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.finance-kpi{min-width:0;border:1px solid #f0dfd3;background:#fff;border-radius:16px;padding:18px}.finance-kpi.net{background:linear-gradient(135deg,#ff7a22,#ff9a52);border-color:transparent;color:#fff}.finance-kpi-label{font-size:12px;font-weight:750;color:var(--muted);margin-bottom:12px}.finance-kpi.net .finance-kpi-label{color:#fff}.finance-kpi-values{display:grid;gap:7px}.finance-kpi-values span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:20px;font-weight:800;white-space:nowrap}.finance-kpi-values b{font-size:10px;letter-spacing:.08em;color:var(--muted)}.finance-kpi.net .finance-kpi-values b{color:#fff}.overview-counts{margin-top:14px}
@media(max-width:980px){body[data-role="admin"] nav{display:flex;justify-content:flex-start}.top{gap:12px}.admin-layout{grid-template-columns:1fr;gap:14px}.admin-sidebar{position:static;display:flex;overflow:auto;gap:6px;padding-bottom:5px}.admin-sidebar button{white-space:nowrap;padding:10px 13px}.admin-heading{align-items:flex-start}.admin-heading h1{font-size:28px}.admin-content .stats{grid-template-columns:repeat(2,1fr)}body[data-role="customer"] nav,body[data-role="introducer"] nav{display:flex;overflow:auto;justify-content:flex-start}.top{height:auto;min-height:74px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.top nav{order:3;width:100%;flex:auto}.top .actions{margin-left:auto}.nav{white-space:nowrap;font-size:12px;padding:9px}.admin-content .value{font-size:23px}.admin-dialog{padding:22px}.admin-dialog form{grid-template-columns:1fr}.admin-dialog .full{grid-column:1}.admin-heading .primary{font-size:12px;white-space:nowrap;padding:12px}.admin-toolbar{padding:16px}.admin-table td,.admin-table th{padding:13px 16px}}
@media(max-width:980px){.finance-dashboard-head{display:grid}.finance-date-filter{justify-content:flex-start}.finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.finance-dashboard{padding:16px}.finance-date-filter{display:grid;grid-template-columns:1fr 1fr;width:100%}.finance-date-filter label:first-child{grid-column:1/-1}.finance-date-filter select,.finance-date-filter input{width:100%;min-width:0}.finance-kpis{grid-template-columns:1fr}.finance-kpi-values span{font-size:22px}}
.top .nav-brand-icon{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 5px 10px rgba(65,18,76,.22))!important}.top .nav-brand-icon:hover{transform:translateY(-1px);box-shadow:none!important;filter:drop-shadow(0 7px 13px rgba(92,31,118,.28))!important}@media(max-width:560px){.top .nav-brand-icon{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;border-radius:0!important}}
@media print{body>*{display:none!important}body>.invoice-print{display:block!important}.invoice-print{font-family:Arial,sans-serif;color:#171410;padding:30px}.invoice-print-logo{display:block;width:240px;height:auto;object-fit:contain;margin-bottom:22px}.invoice-print table{margin-top:30px}.invoice-print td{padding:16px 8px}}
.admin-toolbar>button[data-do="addInvoice"]{border:1px solid #f2c6a6;background:#fff2e7;color:#ae4d0d;padding:9px 13px;border-radius:10px;font-weight:700;cursor:pointer}.admin-table td:nth-last-child(3){white-space:nowrap}
@media(max-width:560px){.admin-table,.client-live .admin-table{min-width:0;width:100%;table-layout:fixed}.admin-table thead{display:none}.admin-table tbody,.admin-table tr,.admin-table td{display:block;width:100%}.admin-table tr{padding:14px 0;border-top:1px solid var(--line)}.admin-table td{border:0;padding:6px 18px;overflow-wrap:anywhere;white-space:normal!important}.admin-table td::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:5px;font-weight:500}.admin-table small{margin-top:3px}.admin-table td:last-child{padding-top:10px}.admin-table td:last-child button{min-height:36px}.admin-dialog .buttons{position:sticky;bottom:-22px;background:#fff;padding:14px 0}}
.order-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.order-toolbar input,.order-toolbar select{min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:13px}.order-toolbar input{flex:1;min-width:210px}.order-toolbar .primary{white-space:nowrap}.suborder{min-width:0;border:1px solid var(--line);border-radius:14px;padding:16px;margin:12px 0;background:#fffdfb}.suborder-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.suborder-top button,.goods-row button{border:0;background:#fff0e6;color:#a84d12;border-radius:8px;padding:8px;cursor:pointer}.suborder-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.goods-row{display:grid;grid-template-columns:1.5fr 1fr 90px 30px;gap:8px;align-items:end;margin:12px 0}.goods-row label{min-width:0}.goods-row input{font-size:13px;padding:10px}.goods-row button{height:39px}.order-detail{width:min(980px,100%)}.order-detail h3{font-size:17px;margin-top:26px}.order-detail .admin-table{min-width:0}.order-detail .hint{font-size:12px;line-height:1.6;color:var(--muted)}.batch-summary{padding:14px;background:#fff1e4;border-radius:12px;font-weight:700;font-size:13px}.admin-dialog:has(.batch-suborders){width:min(850px,100%)}
@media(max-width:560px){.order-toolbar>*{flex:1;min-width:0!important}.order-toolbar input{flex-basis:100%}.order-toolbar button{font-size:12px;padding:12px}.suborder{padding:12px}.suborder-fields{grid-template-columns:1fr}.goods-row{grid-template-columns:1fr 1fr}.goods-row label:first-child{grid-column:1/-1}.goods-row button{align-self:end;width:35px}.order-detail .admin-summary{gap:6px}.order-detail table td{padding:6px}.order-detail .suborder small{overflow-wrap:anywhere}}
.store-balance>div+div{margin-top:4px}.store-due{color:#bd5826}.store-settled{color:#25845d}.store-none{color:var(--muted);font-weight:600}.store-rate-cell{position:relative;overflow:visible!important}.store-rate{position:relative;display:inline-block}.store-rate summary{display:grid;place-items:center;width:28px;height:28px;border:1px solid #e8cbb6;border-radius:50%;background:#fff;color:#b95614;font-weight:800;font-family:Georgia,serif;font-size:15px;line-height:1;cursor:pointer;list-style:none;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.store-rate summary::-webkit-details-marker{display:none}.store-rate summary:hover,.store-rate[open] summary{border-color:#f47621;background:#fff1e6}.store-rate summary:focus-visible{outline:3px solid #f4762142;outline-offset:3px}.store-rate-popover{position:absolute;z-index:20;top:calc(100% + 9px);right:0;width:min(260px,75vw);padding:14px 15px;border:1px solid #efc8aa;border-radius:13px;background:#fff;box-shadow:0 16px 38px #52250b26;text-align:left;white-space:normal}.store-rate-popover::before{content:"";position:absolute;top:-6px;right:8px;width:10px;height:10px;border-left:1px solid #efc8aa;border-top:1px solid #efc8aa;background:#fff;transform:rotate(45deg)}.store-rate-popover small{display:block;margin:0 0 3px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.store-rate-popover strong{display:block;color:var(--ink);font-size:22px}.store-rate-popover p{margin:8px 0 0;color:var(--muted);font-size:11px;font-weight:500;line-height:1.55}.store-panel:has(.store-rate[open]),.store-panel .admin-scroll:has(.store-rate[open]){overflow:visible}.admin-table a{color:#ba591c;text-decoration:none}.admin-table a:hover{text-decoration:underline}#storeCentre>.hint{font-size:13px;color:var(--muted)}
.centre-toolbar{padding:16px 40px;background:#fffaf5;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.centre-tabs{display:flex;gap:6px;padding:4px;border:1px solid #efdfd1;background:#fff;border-radius:14px}.centre-tabs button{padding:10px 20px;border:0;border-radius:10px;background:transparent;color:#8c7767;cursor:pointer;font-weight:700;font-size:13px}.centre-tabs button.selected{background:#fff0e2;color:#b85211}.centre-toolbar p{font-size:15px;line-height:1.45;font-weight:650;color:#675e56;letter-spacing:.01em;margin:0}body[data-centre="partner"] #dashboard,body[data-centre="partner"] #invoices,body[data-centre="partner"] #outstanding,body[data-centre="partner"] #payments,body[data-centre="partner"] #documents{display:none!important}@media(max-width:560px){.centre-toolbar{padding:12px 18px;display:block}.centre-toolbar p{margin-top:10px;font-size:13px;line-height:1.5}.centre-tabs button{padding:10px 14px;flex:1}.centre-tabs{width:100%}}
.payout-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.payout-stats .stat:first-child{background:linear-gradient(135deg,#fff1e3,#fffaf5);border-color:#f3cdb0}.payout-request-total{background:#fff2e6;padding:18px;border-radius:12px;font-size:22px;font-weight:800;color:#bd570f;margin:10px 0}.payout-detail-actions{display:flex;gap:10px;margin:20px 0}.primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}@media(max-width:560px){.payout-stats{grid-template-columns:1fr}.payout-stats .stat{padding:18px}.payout-stats .value{font-size:28px}.payout-screen .title-row h1{font-size:32px}}
.payout-screen .admin-table{min-width:1250px}.payout-screen .admin-table td:first-child{white-space:nowrap}.payout-screen .admin-table td:nth-child(4),.payout-screen .admin-table td:nth-child(6){white-space:nowrap}@media(max-width:560px){.payout-screen .admin-table{min-width:0}.payout-screen .admin-table td{white-space:normal!important}}

/* Shared portal theme: customer, partner, administrator and dialogs. */
html[data-theme="dark"]{color-scheme:dark;--ink:#f7eee7;--muted:#b9aaa0;--line:#493a30;--cream:#241c17;--white:#211b17;--green:#72d2a5;--shadow:0 18px 45px #0003}
html[data-theme="dark"] body{background:linear-gradient(145deg,#211912,#151210 46%,#211810);color:var(--ink)}
html[data-theme="dark"] .top{background:#1c1714ed;border-color:var(--line)}
html[data-theme="dark"] :is(.card,.admin-panel,.admin-dialog,.dialog,.profile-menu,.centre-tabs){background:#211b17;color:var(--ink)}
html[data-theme="dark"] :is(.lang,.icon,.secondary,.filter,.admin-table button,.admin-toolbar input,.order-toolbar input,.order-toolbar select,.admin-dialog input,.admin-dialog select,.admin-dialog textarea,.field input,.field select,.field textarea,.search){background:#2b231d;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.nav,.admin-sidebar button,.profile-action,.centre-tabs button,.admin-dialog label,.field label){color:#cbbcb0}
html[data-theme="dark"] :is(.nav.active,.nav:hover,.admin-sidebar button.active,.centre-tabs button.selected,.profile-action:hover,.admin-summary span,.batch-summary,.payout-request-total,.bubble,.pill){background:#3c291b;color:#ffab69;border-color:#674027}
html[data-theme="dark"] :is(.centre-toolbar,.suborder,th){background:#1d1814;color:var(--muted)}
html[data-theme="dark"] :is(th,td){border-color:var(--line)}
html[data-theme="dark"] .payout-stats .stat:first-child{background:linear-gradient(135deg,#39271a,#241c17);border-color:#674027}
html[data-theme="dark"] .admin-dialog .buttons{background:#211b17}
html[data-theme="dark"] :is(.admin-table a,.store-rate summary,.store-due){color:#ffab69}
html[data-theme="dark"] .store-rate summary{background:#2b231d;border-color:#6b4933}html[data-theme="dark"] .store-rate summary:hover,html[data-theme="dark"] .store-rate[open] summary{background:#49301f;border-color:#ef731d}html[data-theme="dark"] .store-rate-popover,html[data-theme="dark"] .store-rate-popover::before{background:#2b231d;border-color:#6b4933}html[data-theme="dark"] .store-rate-popover{box-shadow:0 16px 38px #0008}html[data-theme="dark"] .store-settled{color:#72d2a5}
html[data-theme="dark"] .brand-logo{background:#fff;border-radius:8px;padding:3px}
html[data-theme="dark"] .close{background:#3b2e25;color:var(--ink)}
html[data-theme="dark"] .chart{background:repeating-linear-gradient(to top,transparent 0,transparent 60px,#493a30 61px)}
#appThemeToggle{color:var(--ink);font-size:23px;display:grid;place-items:center}#appThemeToggle:focus-visible{outline:3px solid #f4762180;outline-offset:3px}

/* Two-step invoice / refund flow. */
.record-flow-dialog{width:min(760px,100%);padding:0;overflow:hidden;border:1px solid #f0ded0}.record-flow-header{padding:26px 28px 20px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fffaf6,#fff)}.record-flow-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.record-flow-header h2{margin:0;font-size:25px;letter-spacing:-.45px}.record-flow-header p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.record-flow-header .close,.record-flow-header [data-close]{flex:0 0 auto;width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:22px;cursor:pointer}.record-flow-body{padding:24px 28px 28px}.record-flow-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 24px;padding:4px;border:1px solid #f1dfd1;border-radius:14px;background:#fff8f2}.record-flow-step{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 12px;border-radius:10px;color:#927c6c;font-size:12px;font-weight:750}.record-flow-step::before{content:attr(data-step);display:grid;place-items:center;width:22px;height:22px;border:1px solid #dfc7b5;border-radius:50%;background:#fff;font-size:11px}.record-flow-step[aria-current="step"],.record-flow-step.active{background:#fff;color:#b84f0c;box-shadow:0 5px 18px #d95d1512}.record-flow-step[aria-current="step"]::before,.record-flow-step.active::before{border-color:#f47621;background:#f47621;color:#fff}.operation-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.operation-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 22px;align-items:center;gap:14px;min-height:124px;padding:20px;border:1.5px solid #ead9cc;border-radius:17px;background:#fff;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.operation-card:hover{border-color:#f5b17f;transform:translateY(-1px)}.operation-card:focus-within{outline:3px solid #f4762138;outline-offset:2px}.operation-card input[type="radio"]{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0;pointer-events:none}.operation-card::after{content:"";width:18px;height:18px;border:2px solid #d5bba8;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 4px #fff}.operation-card.selected,.operation-card:has(input[type="radio"]:checked){border-color:#f47621;background:#fff2e8;box-shadow:0 10px 28px #dc64151c}.operation-card.selected::after,.operation-card:has(input[type="radio"]:checked)::after{border-color:#f47621;background:#f47621;box-shadow:inset 0 0 0 4px #fff}.operation-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff1e6;color:#c2530a;font-size:22px}.operation-card.selected .operation-icon,.operation-card:has(input:checked) .operation-icon{background:#fff;color:#e9650d}.operation-copy{min-width:0}.operation-copy strong{display:block;color:var(--ink);font-size:15px;margin-bottom:6px}.operation-copy small{display:block;color:var(--muted);font-size:12px;line-height:1.5;font-weight:500}.record-flow-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.record-flow-form>.full{grid-column:1/-1}.record-flow-form label{min-width:0}.upload-zone{position:relative;display:grid;place-items:center;align-content:center;gap:6px;min-height:136px;padding:20px;border:1.5px dashed #efa46f;border-radius:16px;background:#fffaf5;color:#8e7462;text-align:center;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.upload-zone:hover,.upload-zone.is-dragging,.upload-zone:focus-within{border-color:#f47621;background:#fff2e8;box-shadow:0 0 0 4px #f4762114}.upload-zone.has-file{border-style:solid;border-color:#efc19f;background:#fff6ee}.upload-zone input[type="file"]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}.upload-zone-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:2px;border-radius:13px;background:#fff0e4;color:#c9560c;font-size:21px}.upload-zone-title{color:var(--ink);font-size:14px;font-weight:750}.upload-zone small{max-width:470px;color:var(--muted);font-size:11px;line-height:1.5}.file-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.file-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:8px 10px;border:1px solid #efdbcd;border-radius:999px;background:#fff7f0;color:#725f51;font-size:12px}.file-chip-name{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip-size{color:var(--muted);font-size:10px}.file-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#f8dfce;color:#a8480d;cursor:pointer}.refund-notice{grid-column:1/-1;display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border:1px solid #f0cda9;border-radius:14px;background:#fff7e9;color:#7e5228;font-size:12px;line-height:1.55}.refund-notice::before{content:"↩";display:grid;place-items:center;flex:0 0 auto;width:25px;height:25px;border-radius:8px;background:#ffead2;color:#b94e08;font-size:15px;font-weight:800}.refund-notice.warning{border-color:#efb498;background:#fff0e8;color:#8d3d20}.refund-notice.success{border-color:#aedfc6;background:#eefaf4;color:#1c6d4c}.import-preview{grid-column:1/-1;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.import-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;background:#fff7f0;border-bottom:1px solid var(--line);font-size:12px}.import-summary strong{color:#b64e0c}.import-preview .admin-scroll{max-height:250px}.import-preview .admin-table{min-width:620px}.record-flow-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:6px}.record-flow-actions .secondary:first-child{margin-right:auto}.record-flow-actions button{min-height:44px}.record-flow-actions .primary{min-width:126px}.record-flow-dialog [aria-invalid="true"]{border-color:#d75b37!important;box-shadow:0 0 0 3px #d75b3717}.record-flow-dialog .field-error{margin:-2px 0 0;color:#a74125;font-size:11px;line-height:1.4}
@media(max-width:680px){.admin-modal:has(.record-flow-dialog){align-items:flex-end;padding:0}.record-flow-dialog{width:100%;max-height:94svh;border-radius:22px 22px 0 0;border-bottom:0}.record-flow-header{padding:20px 18px 16px}.record-flow-header h2{font-size:21px}.record-flow-body{padding:18px}.record-flow-steps{margin-bottom:18px}.operation-cards,.record-flow-form{grid-template-columns:1fr}.record-flow-form>.full{grid-column:1}.operation-card{min-height:106px;padding:16px}.upload-zone{min-height:120px}.record-flow-actions{position:sticky;bottom:-18px;margin:8px -18px -18px;padding:14px 18px max(14px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:2}.record-flow-actions button{flex:1;min-width:0}.record-flow-actions .secondary:first-child{margin-right:0}.file-chip-name{max-width:160px}.import-summary{align-items:flex-start;flex-direction:column;gap:5px}}

html[data-theme="dark"] .record-flow-dialog{border-color:var(--line)}html[data-theme="dark"] .record-flow-header{background:linear-gradient(135deg,#2c211a,#211b17)}html[data-theme="dark"] :is(.record-flow-header .close,.record-flow-header [data-close],.record-flow-steps,.operation-card,.operation-card::after,.operation-icon,.upload-zone,.import-preview){background:#2b231d;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .record-flow-step{color:#b9aaa0}html[data-theme="dark"] .record-flow-step::before{background:#211b17;border-color:#665043;color:#c8b8ac}html[data-theme="dark"] .record-flow-step[aria-current="step"],html[data-theme="dark"] .record-flow-step.active{background:#3a2a1e;color:#ffad70}html[data-theme="dark"] .record-flow-step[aria-current="step"]::before,html[data-theme="dark"] .record-flow-step.active::before{background:#ef731d;border-color:#ef731d;color:#fff}html[data-theme="dark"] .operation-card:hover{border-color:#975d35}html[data-theme="dark"] .operation-card.selected,html[data-theme="dark"] .operation-card:has(input[type="radio"]:checked){background:#3b291c;border-color:#ef731d;box-shadow:0 12px 30px #0004}html[data-theme="dark"] .operation-card.selected::after,html[data-theme="dark"] .operation-card:has(input[type="radio"]:checked)::after{background:#ef731d;border-color:#ef731d;box-shadow:inset 0 0 0 4px #2b231d}html[data-theme="dark"] .operation-icon,html[data-theme="dark"] .operation-card.selected .operation-icon,html[data-theme="dark"] .operation-card:has(input:checked) .operation-icon{background:#49301f;color:#ffad70}html[data-theme="dark"] .upload-zone:hover,html[data-theme="dark"] .upload-zone.is-dragging,html[data-theme="dark"] .upload-zone:focus-within,html[data-theme="dark"] .upload-zone.has-file{background:#39281d;border-color:#ef731d}html[data-theme="dark"] .upload-zone-icon{background:#49301f;color:#ffad70}html[data-theme="dark"] .file-chip{background:#39291f;border-color:#5b4334;color:#e8d8cc}html[data-theme="dark"] .file-chip button{background:#57351f;color:#ffb077}html[data-theme="dark"] .refund-notice{background:#3a2b1f;border-color:#765037;color:#f0c79d}html[data-theme="dark"] .refund-notice.warning{background:#40261e;border-color:#824a36;color:#f0b29d}html[data-theme="dark"] .refund-notice.success{background:#1e382d;border-color:#315e4a;color:#9dd8bb}html[data-theme="dark"] .refund-notice::before{background:#55331f;color:#ffad70}html[data-theme="dark"] .import-summary{background:#35271e;border-color:var(--line)}html[data-theme="dark"] .record-flow-actions{background:#211b17}

/* Management navigation, store ownership and Global Logistics logo. */
.auth-brand-logo,.mobile-auth-brand .brand-logo,html[data-theme="dark"] .brand-logo{background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
.brand-logo{width:clamp(180px,15vw,235px)!important;max-height:58px!important;object-fit:contain}.brand-logo,.auth-brand-logo,.invoice-print-logo{filter:drop-shadow(0 1px 0 rgba(62,20,65,.85)) drop-shadow(0 0 1.5px rgba(62,20,65,.4))}.auth-brand-logo{width:min(390px,46vw)!important;max-height:130px!important;object-fit:contain}.admin-sidebar-group{display:grid;gap:7px}.admin-sidebar-group+.admin-sidebar-group{margin-top:18px}.admin-sidebar-label{padding:0 16px 6px;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.store-wide-table .admin-table{width:100%;min-width:1180px}.store-wide-table .admin-table th{padding:19px 24px}.store-wide-table .admin-table td{padding:22px 24px;vertical-align:middle}.store-wide-table .admin-table tbody tr{height:82px}.store-wide-table .admin-table td:first-child>b{font-size:15px;line-height:1.35}.store-wide-table .admin-table td:first-child>small{margin-top:8px}.store-partner{display:grid;gap:4px;min-width:190px}.store-partner small{margin:0!important}.store-actions{min-width:170px}.store-lock{display:inline-flex;align-items:center;gap:5px;margin:5px 2px;color:var(--muted);font-size:10px;font-weight:700}.admin-badge.active{background:#e8f7ef;color:#14734c}.admin-badge.inactive{background:#f1ece8;color:#837469}

/* Keep business screens edge-to-edge on desktop, with only a small viewport gutter. */
@media(min-width:981px){
  body:is([data-role="admin"],[data-role="introducer"]) #app main{width:100%;max-width:none;padding-left:28px;padding-right:28px;margin:0}
  #management,.admin-heading,.admin-layout,.admin-content,.admin-content-wide,.order-toolbar,.store-panel{width:100%;max-width:none}
  #management .order-toolbar [data-store-search]{width:auto;max-width:none;flex:1 1 auto}
}
@media(max-width:980px){.admin-sidebar{align-items:flex-start}.admin-sidebar-group{display:flex;gap:6px;align-items:center}.admin-sidebar-group+.admin-sidebar-group{margin-top:0;margin-left:8px}.admin-sidebar-label{padding:10px 6px;font-size:9px}.top nav{overflow-x:auto;scrollbar-width:thin}.top nav .nav{flex:0 0 auto}}
@media(max-width:560px){.brand-logo{width:clamp(150px,47vw,205px)!important;max-height:48px!important}.mobile-auth-brand .brand-logo{max-width:205px!important}.auth-brand-logo{width:min(330px,82vw)!important}.store-wide-table .admin-table{min-width:0}.store-wide-table .admin-table tbody tr{height:auto;padding:20px 0}.store-wide-table .admin-table td{padding:7px 20px}.store-wide-table .admin-table td:first-child{padding-top:2px}.store-wide-table .admin-table td:last-child{padding-bottom:2px}.admin-sidebar{padding-bottom:8px}}
html[data-theme="dark"] .finance-dashboard{background:linear-gradient(145deg,#2b231d,#211b17);border-color:var(--line);box-shadow:0 14px 34px #0003}html[data-theme="dark"] .finance-kpi{background:#2b231d;border-color:var(--line)}html[data-theme="dark"] .finance-kpi.net{background:linear-gradient(135deg,#bc520d,#ed7928);border-color:#f08a43}html[data-theme="dark"] .finance-date-filter select,html[data-theme="dark"] .finance-date-filter input{background:#2b231d;border-color:var(--line);color:var(--ink);color-scheme:dark}
.operational-dashboard{margin-bottom:18px;display:flex;flex-direction:column}.operational-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px;order:1}.operational-head h2{font-size:30px;margin:6px 0 5px}.operational-head p{margin:0;color:var(--muted);font-size:13px}.operational-head label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:750}.operational-head select{min-width:110px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px;color:var(--ink)}.operational-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;order:2}.operational-kpis article{border:1px solid #f0d8c6;border-radius:18px;background:#fff;padding:20px;box-shadow:0 10px 28px #64300f08}.operational-kpis span{display:block;color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.operational-kpis strong{display:block;margin-top:9px;font-size:27px;letter-spacing:-.04em}.daily-chart{margin-top:18px;border:1px solid #f0d8c6;border-radius:20px;background:#fff;padding:20px 22px;order:3}.daily-chart-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.daily-chart-title strong{font-size:14px}.daily-chart-title span,.daily-axis{color:var(--muted);font-size:10px}.daily-bars{height:220px;margin-top:18px;display:flex;align-items:flex-end;gap:4px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 54px,#f5e8de 55px)}.daily-bar{flex:1;min-width:3px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#ff9d50,#f47621);transition:height .2s ease}.daily-bar:hover{background:#c24e08}.daily-axis{display:flex;justify-content:space-between;padding-top:9px}.operational-dashboard>.currency-account-grid{order:4}.operational-dashboard>.currency-note{order:5}.operational-dashboard+.finance-dashboard{margin-top:22px}#partnerDashboard>.operational-dashboard{margin-top:24px}.admin-dashboard-page .operational-head{justify-content:flex-end}.admin-dashboard-page .operational-head>div{display:none}
html[data-theme="dark"] .operational-head select,html[data-theme="dark"] .operational-kpis article,html[data-theme="dark"] .daily-chart{background:#2b231d;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .operational-head select{color-scheme:dark}html[data-theme="dark"] .daily-bars{background:repeating-linear-gradient(to top,transparent 0,transparent 54px,#493a30 55px)}
@media(max-width:760px){.operational-head{align-items:flex-start}.operational-kpis{grid-template-columns:1fr}.daily-chart{padding:17px}.daily-bars{height:180px;gap:2px}.operational-kpis strong{font-size:25px}}
@media(max-width:480px){.operational-head{display:grid}.operational-head h2{font-size:25px}.operational-head select{width:100%}.daily-chart-title{align-items:flex-start;flex-direction:column}.daily-bars{height:150px}}

.currency-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0 12px}.currency-account{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;min-width:0}.currency-account.selected{border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}.currency-account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.currency-account-heading b{font-size:20px}.currency-account-secondary{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:16px;color:var(--muted);font-size:13px;line-height:1.5}.currency-account-secondary strong{font-size:20px;color:var(--ink);white-space:nowrap}.currency-note{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 22px}html[data-theme="dark"] .currency-account{background:#2b231d}@media(max-width:600px){.currency-account-grid{grid-template-columns:1fr}.currency-account{padding:20px}}

.quick-order-form{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}.quick-order-form>label{display:grid;gap:9px}.quick-order-form input,.quick-order-form select{min-height:48px}.quick-money{display:flex;gap:10px}.quick-money select{width:115px;flex-shrink:0}.quick-money input{min-width:0}.quick-step-label{padding:0 28px;color:var(--muted);font-size:12px}.quick-order-form small{font-weight:400;color:var(--muted);line-height:1.6}.quick-order-form [data-file-name]{margin:0;overflow-wrap:anywhere}.quick-order-form .upload-zone{min-height:130px;position:relative}.quick-order-form .upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.quick-order-form .hint{margin:0}.upload-zone-file-name{display:inline-flex;align-items:center;justify-content:center;max-width:min(100%,460px);padding:8px 13px;border:1px solid #efc19f;border-radius:999px;background:#fff;color:#75401e;font-size:13px;font-weight:800;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-zone-file-name[hidden]{display:none}html[data-theme="dark"] .upload-zone-file-name{background:#211b17;border-color:#7a4d2f;color:#ffb47c}

.quick-order-dialog{display:flex;flex-direction:column;max-height:90svh;overflow:hidden}.quick-order-dialog .record-flow-header{flex:0 0 auto}.quick-order-dialog .record-flow-body{overflow-y:auto;min-height:0}.quick-order-dialog .operation-cards{grid-template-columns:1fr}.quick-order-dialog .operation-card{grid-template-columns:minmax(0,1fr) 22px;min-height:96px}.quick-order-dialog .record-flow-actions{position:sticky;bottom:-28px;background:#fff;padding:16px 0;margin-bottom:-28px;z-index:3}html[data-theme="dark"] .quick-order-dialog .record-flow-actions{background:#211b17}@media(max-width:600px){.quick-order-dialog .record-flow-actions{bottom:-18px;margin-bottom:-18px;padding-bottom:18px}}

.quick-assignment{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick-assignment label{min-width:0}.quick-assignment select{width:100%;min-width:0}@media(max-width:600px){.quick-assignment{grid-template-columns:1fr}}

/* Billing header stays visible while the form scrolls inside the dialog. */
.billing-flow-dialog{display:flex;flex-direction:column;max-height:90svh;overflow:hidden}.billing-flow-dialog>.record-flow-header{flex:0 0 auto}.billing-flow-dialog>.record-flow-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.billing-flow-dialog .record-flow-actions{position:sticky;bottom:-28px;z-index:4;background:#fff;padding:16px 0;margin-bottom:-28px;border-top:1px solid var(--line)}html[data-theme="dark"] .billing-flow-dialog .record-flow-actions{background:#211b17}.billing-flow-dialog .record-flow-form input[type=date]{width:100%;min-width:0}@media(max-width:600px){.billing-flow-dialog{max-height:94svh}.billing-flow-dialog .record-flow-actions{bottom:-18px;margin-bottom:-18px;padding:14px 18px max(14px,env(safe-area-inset-bottom))}}

.payment-proof-dialog{max-height:90svh;overflow-y:auto}.payment-proof-dialog [data-upload]{margin:16px 0}.payment-proof-dialog .proof-selected{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.payment-proof-dialog input[type=file]{font-size:14px;min-height:44px}.payment-proof-dialog .hint{line-height:1.7}

/* 2026 portal visual refresh: calmer canvas, roomier data screens and clearer type. */
:root{
  --portal-canvas:#eef3ff;
  --portal-canvas-soft:#f7f9ff;
  --portal-border:#cbd9f5;
  --portal-shadow:0 12px 34px rgba(64,83,128,.09);
  --portal-shadow-soft:0 5px 18px rgba(64,83,128,.07);
}
body{
  font-family:"Segoe UI Variable","Aptos","SF Pro Display","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:15px;
  font-weight:450;
  letter-spacing:-.01em;
  background:linear-gradient(145deg,var(--portal-canvas) 0%,#f5f7ff 48%,#edf2ff 100%);
}
.shell{background:transparent}
.top{
  display:grid;
  grid-template-columns:minmax(64px,1fr) auto minmax(180px,1fr);
  height:86px;
  padding:0 clamp(24px,2vw,42px);
  gap:24px;
  border-bottom:0;
  background:rgba(238,243,255,.86);
  box-shadow:none;
}
.top .brand{justify-self:start}
.top nav{
  flex:none;
  justify-self:center;
  justify-content:center;
  gap:4px;
  padding:6px;
  border:1px solid rgba(161,184,232,.72);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  box-shadow:0 7px 20px rgba(67,87,135,.13);
}
.top .actions{justify-self:end}
.nav{
  min-height:43px;
  padding:10px 17px;
  border-radius:999px;
  color:#47536b;
  font-size:14px;
  font-weight:700;
  letter-spacing:.01em;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.nav:hover{background:#fff3e9;color:#b94c08;transform:translateY(-1px)}
.nav.active{
  color:#fff;
  background:linear-gradient(135deg,#f47621,#ff9647);
  box-shadow:0 7px 18px rgba(244,118,33,.25);
}
.lang,.icon,.avatar{min-height:44px}
.lang,.icon{border-color:#cbd7ed;background:rgba(255,255,255,.9);box-shadow:var(--portal-shadow-soft)}
main{padding:42px clamp(24px,2.15vw,48px) 86px}
.eyebrow{font-size:12px;letter-spacing:.13em}
.title-row,.admin-heading{margin:10px 0 34px}
.title-row h1,.admin-heading h1{
  margin:5px 0 0;
  color:#121a2d;
  font-size:clamp(42px,4vw,64px);
  font-weight:680;
  line-height:1.02;
  letter-spacing:-.055em;
}
.title-row p,.admin-heading p{
  margin-top:12px;
  color:#65718a;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.01em;
}
.card,.admin-panel,.finance-dashboard,.operational-kpis article,.daily-chart,.currency-account{
  border-color:var(--portal-border);
  background:rgba(255,255,255,.96);
  box-shadow:var(--portal-shadow);
}
.card,.admin-panel,.finance-dashboard,.daily-chart,.currency-account{border-radius:22px}
.stats,.admin-content .stats,.operational-kpis,.finance-kpis{gap:18px}
.stat,.admin-content .stat,.operational-kpis article,.finance-kpi{min-height:122px;padding:25px 27px}
.label,.finance-kpi-label,.operational-kpis span{
  color:#68758e;
  font-size:12px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.value,.admin-content .value,.operational-kpis strong{font-size:32px;font-weight:720;letter-spacing:-.04em}
.grid{gap:20px;margin-top:20px}
.panel{padding:28px}
.panel h2,.admin-toolbar h2{font-size:19px;font-weight:700}
.admin-panel{margin-top:24px;overflow:hidden}
.admin-toolbar,.table-tools{min-height:72px;padding:19px 26px;border-bottom:1px solid #dfe7f7}
.admin-scroll{background:rgba(255,255,255,.7)}
.admin-table th,th{
  padding:18px 24px;
  border-color:#dfe7f7;
  background:#f8faff;
  color:#6d7890;
  font-size:11px;
  font-weight:760;
  letter-spacing:.085em;
  text-transform:uppercase;
}
.admin-table td,td{
  padding:22px 24px;
  border-color:#e2e9f7;
  color:#29344b;
  font-size:14px;
  line-height:1.55;
  vertical-align:middle;
}
.admin-table tbody tr{min-height:76px;transition:background .16s ease}
.admin-table tbody tr:hover{background:#f8faff}
.admin-table small{font-size:12px;color:#7b879c}
.admin-table button,.secondary,.filter{
  min-height:39px;
  padding:9px 13px;
  border-color:#ccd8ed;
  border-radius:11px;
  background:#fff;
  color:#344159;
  font-weight:650;
}
.primary{min-height:46px;padding:12px 19px;border-radius:14px}
.order-toolbar{
  align-items:stretch;
  gap:12px;
  margin:22px 0 26px;
  padding:0;
}
.order-toolbar input,.order-toolbar select,.admin-toolbar input,.search{
  min-height:54px;
  padding:13px 17px;
  border-color:#bfcfed;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  color:#263249;
  box-shadow:var(--portal-shadow-soft);
  font-size:14px;
}
.order-toolbar .primary{min-height:54px;padding-inline:23px;border-radius:18px}
.admin-layout{grid-template-columns:230px minmax(0,1fr);gap:34px}
.admin-sidebar{
  top:112px;
  gap:8px;
  padding:16px;
  border:1px solid rgba(203,217,245,.9);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  box-shadow:var(--portal-shadow-soft);
  backdrop-filter:blur(14px);
}
.admin-sidebar button{padding:13px 15px;color:#56627a;font-size:14px;font-weight:680}
.admin-sidebar button:hover{background:#f6f8ff;color:#b84e0d}
.admin-sidebar button.active{background:#fff0e4;color:#b84e0d;box-shadow:inset 0 0 0 1px #ffd6b6}
.admin-sidebar-label{padding:4px 14px 6px;color:#8792a7}
.review-list{gap:14px;padding:24px}
.review-record{
  min-height:82px;
  padding:20px 22px;
  border-color:#d6e1f5;
  background:#f7f9ff;
}
.review-primary b{color:#1e293f;font-size:15px}
.review-primary small,.review-meta{color:#6e7b92;font-size:12px}
.admin-dialog,.dialog{border:1px solid #ccd9ef;box-shadow:0 28px 80px rgba(36,52,89,.22)}
.admin-dialog input,.admin-dialog select,.admin-dialog textarea,.field input,.field select,.field textarea{
  min-height:48px;
  border-color:#c9d6ec;
  border-radius:13px;
  background:#fbfcff;
}

html[data-theme="dark"]{
  --portal-canvas:#111827;
  --portal-canvas-soft:#161e2e;
  --portal-border:#344158;
  --portal-shadow:0 14px 36px rgba(0,0,0,.24);
  --portal-shadow-soft:0 7px 20px rgba(0,0,0,.2);
  --ink:#f3f6fb;
  --muted:#a9b3c4;
  --line:#3b465a;
  --white:#1a2231;
  --cream:#141b28;
}
html[data-theme="dark"] body{background:linear-gradient(145deg,#111827,#151b27 48%,#0f1622);color:var(--ink)}
html[data-theme="dark"] .top{background:rgba(17,24,39,.88);border-color:transparent}
html[data-theme="dark"] .top nav{background:rgba(29,38,54,.96);border-color:#3c4961;box-shadow:0 10px 28px rgba(0,0,0,.28)}
html[data-theme="dark"] .nav{color:#c3ccda}
html[data-theme="dark"] .nav:hover{background:#35291f;color:#ffb27c}
html[data-theme="dark"] .nav.active{background:linear-gradient(135deg,#d85b0b,#f1873d);color:#fff;border-color:transparent}
html[data-theme="dark"] .title-row h1,html[data-theme="dark"] .admin-heading h1{color:#f5f7fb}
html[data-theme="dark"] .title-row p,html[data-theme="dark"] .admin-heading p{color:#a9b3c4}
html[data-theme="dark"] :is(.card,.admin-panel,.finance-dashboard,.operational-kpis article,.daily-chart,.currency-account,.admin-sidebar){background:rgba(27,35,49,.96);border-color:#344158;box-shadow:var(--portal-shadow)}
html[data-theme="dark"] :is(.admin-toolbar,.table-tools){border-color:#344158}
html[data-theme="dark"] .admin-scroll{background:#1b2331}
html[data-theme="dark"] :is(.admin-table th,th){background:#161e2b;color:#9da9bc;border-color:#344158}
html[data-theme="dark"] :is(.admin-table td,td){color:#e4e9f2;border-color:#344158}
html[data-theme="dark"] .admin-table tbody tr:hover{background:#202b3d}
html[data-theme="dark"] .admin-table small{color:#a0aabd}
html[data-theme="dark"] :is(.order-toolbar input,.order-toolbar select,.admin-toolbar input,.search,.lang,.icon,.admin-table button,.secondary,.filter){background:#202a3a;color:#eaf0f8;border-color:#435069;box-shadow:none}
html[data-theme="dark"] .admin-sidebar button{color:#bac4d3}
html[data-theme="dark"] .admin-sidebar button:hover{background:#222d3e;color:#ffb27c}
html[data-theme="dark"] .admin-sidebar button.active{background:#3c2a1d;color:#ffb27c;border-color:#70452a}
html[data-theme="dark"] .review-record{background:#202a3a;border-color:#3b4961;color:#eef2f8}
html[data-theme="dark"] .review-primary b{color:#f3f6fb}
html[data-theme="dark"] .review-primary small,html[data-theme="dark"] .review-meta{color:#aab4c4}
html[data-theme="dark"] :is(.admin-dialog,.dialog){background:#1b2331;border-color:#3d4960}
html[data-theme="dark"] :is(.admin-dialog input,.admin-dialog select,.admin-dialog textarea,.field input,.field select,.field textarea){background:#202a3a;border-color:#435069;color:#edf2f8}

@media(max-width:1180px){
  .top{grid-template-columns:auto minmax(0,1fr) auto;padding-inline:20px;gap:14px}
  .nav{padding-inline:13px;font-size:13px}
}
@media(max-width:980px){
  .top{display:flex;height:auto;min-height:78px;padding:12px 18px;gap:10px}
  .top nav{order:3;width:100%;justify-self:auto;justify-content:flex-start;padding:5px;border-radius:17px;overflow-x:auto}
  .top .actions{margin-left:auto}
  main{padding:30px 18px 66px}
  .title-row,.admin-heading{margin-bottom:26px}
  .title-row h1,.admin-heading h1{font-size:clamp(36px,8vw,48px)}
  .admin-layout{grid-template-columns:1fr;gap:18px}
  .admin-sidebar{position:static;display:flex;padding:8px;overflow-x:auto;border-radius:16px}
  .admin-sidebar-group{display:flex}
  .admin-sidebar button{white-space:nowrap}
  .admin-table th,.admin-table td,th,td{padding:17px 18px}
}
@media(max-width:560px){
  body{font-size:14px}
  .top{padding:10px 12px}
  .top nav{box-shadow:none}
  .nav{min-height:39px;padding:9px 13px;font-size:12px}
  main{padding:24px 14px 54px}
  .title-row h1,.admin-heading h1{font-size:36px;letter-spacing:-.045em}
  .title-row p,.admin-heading p{font-size:14px}
  .card,.admin-panel,.finance-dashboard,.daily-chart,.currency-account{border-radius:18px}
  .stat,.admin-content .stat,.operational-kpis article,.finance-kpi{min-height:106px;padding:21px}
  .value,.admin-content .value,.operational-kpis strong{font-size:28px}
  .order-toolbar{gap:9px}
  .order-toolbar input,.order-toolbar select,.order-toolbar .primary{min-height:48px;border-radius:14px}
  .admin-toolbar,.table-tools{min-height:64px;padding:16px 18px}
  .admin-table tbody tr{padding:18px 0}
  .admin-table td{padding:7px 18px}
  .review-list{padding:14px}
  .review-record{padding:18px}
}

/* Live customer dashboard. */
.customer-live-dashboard{margin-top:22px}
.customer-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.customer-dashboard-head h2{margin:6px 0 5px;color:#172139;font-size:30px;letter-spacing:-.035em}
.customer-dashboard-head p{margin:0;color:#68758e;font-size:14px}
.customer-dashboard-head label{display:grid;gap:7px;color:#68758e;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}
.customer-dashboard-head select{min-width:120px;min-height:44px;padding:10px 13px;border:1px solid #c6d5ef;border-radius:13px;background:#fff;color:#253149;font:inherit}
.customer-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.customer-dashboard-kpis article{min-height:122px;padding:25px 27px;border:1px solid var(--portal-border);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:var(--portal-shadow)}
.customer-dashboard-kpis article.attention{border-color:#ffc69d;background:linear-gradient(145deg,#fff,#fff5ed)}
.customer-dashboard-kpis span{display:block;color:#68758e;font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.customer-dashboard-kpis strong{display:block;margin-top:13px;color:#172139;font-size:30px;font-weight:730;letter-spacing:-.04em}
.customer-live-dashboard .daily-chart{margin-top:18px}
html[data-theme="dark"] .customer-dashboard-head h2,html[data-theme="dark"] .customer-dashboard-kpis strong{color:#f3f6fb}
html[data-theme="dark"] .customer-dashboard-head p,html[data-theme="dark"] .customer-dashboard-head label,html[data-theme="dark"] .customer-dashboard-kpis span{color:#a9b3c4}
html[data-theme="dark"] .customer-dashboard-head select{background:#202a3a;border-color:#435069;color:#edf2f8;color-scheme:dark}
html[data-theme="dark"] .customer-dashboard-kpis article{background:#1b2331;border-color:#344158;box-shadow:var(--portal-shadow)}

/* Stores table pagination. */
.store-open-link{display:inline-flex;align-items:center;gap:5px;font-weight:650}.store-open-link svg,.store-detail-site svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.store-quick-actions{display:flex;align-items:center;gap:5px;margin-bottom:8px}.store-icon-action{display:grid!important;place-items:center;width:38px;height:38px;padding:0!important;margin:0!important;border:1px solid #c6d5ef!important;border-radius:11px!important;background:#fff!important;color:#526079!important;transition:border-color .16s ease,color .16s ease,background .16s ease,transform .16s ease}.store-icon-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.store-icon-action:hover{border-color:#f47621!important;background:#fff5ed!important;color:#c9550b!important;transform:translateY(-1px)}.store-icon-action:focus-visible,.store-detail-close:focus-visible,.store-detail-site:focus-visible{outline:3px solid #f4762138;outline-offset:2px}.store-manage-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.store-detail-dialog{width:min(720px,100%);padding:0;overflow:hidden}.store-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 18px;border-bottom:1px solid var(--line)}.store-detail-header small{display:block;margin-bottom:5px;color:#8792a7;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.store-detail-header h2{margin:0}.store-detail-close{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;padding:0;border:1px solid #c6d5ef;border-radius:12px;background:#fff;color:#65728a;font:400 23px/1 inherit;cursor:pointer}.store-detail-site{display:flex;align-items:center;gap:8px;margin:20px 26px 0;padding:13px 15px;border:1px solid #d8e2f3;border-radius:13px;background:#f7f9ff;color:#ba591c;text-decoration:none;overflow:hidden}.store-detail-site span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 26px 26px}.store-detail-item{min-width:0;padding:15px 16px;border:1px solid #dfe7f4;border-radius:14px;background:#fbfcff;overflow-wrap:anywhere}.store-detail-item>small{display:block;margin:0 0 7px;color:#7b879c;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.store-detail-item>div{color:var(--ink);font-size:14px;font-weight:650;line-height:1.55}.store-detail-item>div>strong+strong{margin-left:9px}
.store-quick-actions .store-rate summary{width:38px;height:38px;border-color:#c6d5ef;border-radius:11px;color:#526079;font-family:inherit}.store-statement-dialog{width:min(620px,100%);padding:0;overflow:hidden}.store-statement-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 18px;border-bottom:1px solid var(--line)}.store-statement-header small{display:block;margin-bottom:5px;color:#8792a7;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.store-statement-header h2{margin:0;font-size:25px}.store-statement-body{display:grid;gap:22px;padding:23px 26px}.store-statement-body fieldset{min-width:0;margin:0;padding:0;border:0}.store-statement-body legend{margin-bottom:10px;color:var(--ink);font-size:13px;font-weight:800}.store-period-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-period-option{position:relative;cursor:pointer}.store-period-option input{position:absolute;opacity:0;pointer-events:none}.store-period-option span{display:flex;align-items:center;min-height:50px;padding:10px 14px;border:1px solid #d6dfed;border-radius:13px;background:#fff;color:#526079;font-size:13px;font-weight:700;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.store-period-option input:checked+span{border-color:#8b35c7;background:linear-gradient(135deg,#f7effd,#fff5ee);color:#6726a6;box-shadow:0 0 0 2px #8b35c71c}.store-period-option input:focus-visible+span{outline:3px solid #8b35c733;outline-offset:2px}.store-statement-includes{display:flex;align-items:center;flex-wrap:wrap;gap:11px}.store-statement-includes label{display:flex;align-items:center;gap:9px;min-height:45px;padding:9px 13px;border:1px solid #d6dfed;border-radius:12px;background:#fbfcff;color:#435069;font-size:13px;font-weight:700;cursor:pointer}.store-statement-includes input{width:17px;height:17px;margin:0;accent-color:#8b35c7}.store-statement-error{margin:0;color:#c43e32;font-size:12px;font-weight:700}.store-statement-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 26px 22px;border-top:1px solid var(--line);background:#f8faff}.store-statement-actions button{min-height:44px;border-radius:12px}.store-statement-actions .primary{display:inline-flex;align-items:center;gap:8px}.store-statement-actions .primary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.store-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px;padding:14px 22px;border-top:1px solid #dfe7f7;background:rgba(248,250,255,.9)}
.store-pagination-controls,.store-page-meta,.store-page-meta label{display:flex;align-items:center;gap:9px}
.store-page-button{display:grid;place-items:center;min-width:39px;height:39px;padding:0 10px;border:1px solid #c6d5ef;border-radius:50%;background:#fff;color:#35425a;font-family:inherit;font-size:14px;font-weight:700;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.store-page-button:hover:not(:disabled){border-color:#f47621;color:#c9550b;transform:translateY(-1px)}
.store-page-button.active{border-color:#f47621;background:linear-gradient(135deg,#f47621,#ff9b52);color:#fff;box-shadow:0 8px 18px #f4762133}
.store-page-button:focus-visible,.store-page-meta select:focus-visible{outline:3px solid #f4762138;outline-offset:2px}
.store-page-button:disabled{opacity:.38;cursor:not-allowed}
.store-page-nav{font-size:23px;font-weight:500}
.store-page-gap{display:grid;place-items:center;min-width:20px;color:#8a96aa}
.store-page-meta{margin-left:auto;color:#6e7b92;font-size:13px}
.store-page-meta label>span{white-space:nowrap}
.store-page-meta select{min-width:76px;height:40px;padding:0 34px 0 13px;border:1px solid #c6d5ef;border-radius:12px;appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e7b92' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 13px center;background-repeat:no-repeat;color:#2d3a52;font-family:inherit;font-size:14px;font-weight:650;line-height:1;cursor:pointer}
html[data-theme="dark"] .store-pagination{border-color:#344158;background:#161e2b}
html[data-theme="dark"] .store-icon-action,html[data-theme="dark"] .store-detail-close{border-color:#435069!important;background:#202a3a!important;color:#c4cedd}html[data-theme="dark"] .store-icon-action:hover{border-color:#f47621!important;background:#35291f!important;color:#ffb27c!important}html[data-theme="dark"] .store-detail-header{border-color:#344158}html[data-theme="dark"] .store-detail-site,html[data-theme="dark"] .store-detail-item{border-color:#3b4961;background:#202a3a}html[data-theme="dark"] .store-detail-site{color:#ffab69}html[data-theme="dark"] .store-detail-item>small{color:#a9b3c4}
html[data-theme="dark"] .store-quick-actions .store-rate summary{border-color:#435069;background:#202a3a;color:#c4cedd}html[data-theme="dark"] .store-statement-header,html[data-theme="dark"] .store-statement-actions{border-color:#344158}html[data-theme="dark"] .store-statement-actions{background:#161e2b}html[data-theme="dark"] .store-period-option span,html[data-theme="dark"] .store-statement-includes label{border-color:#435069;background:#202a3a;color:#c4cedd}html[data-theme="dark"] .store-period-option input:checked+span{border-color:#ba63ec;background:linear-gradient(135deg,#352446,#34271f);color:#efc8ff}html[data-theme="dark"] .store-statement-body legend{color:#edf2f8}
html[data-theme="dark"] .store-page-button,html[data-theme="dark"] .store-page-meta select{border-color:#435069;background-color:#202a3a;color:#eaf0f8}
html[data-theme="dark"] .store-page-button.active{border-color:#f47621;background:linear-gradient(135deg,#d85b0b,#f1873d);color:#fff}
html[data-theme="dark"] .store-page-meta{color:#a9b3c4}
@media(max-width:760px){.store-pagination{align-items:flex-start;flex-direction:column;padding:16px 18px}.store-page-meta{width:100%;margin-left:0;justify-content:space-between}.store-pagination-controls{max-width:100%;overflow-x:auto;padding-bottom:3px}}
@media(max-width:560px){.store-detail-grid{grid-template-columns:1fr;padding:16px 18px 22px}.store-detail-header{padding:20px 18px 16px}.store-detail-site{margin:16px 18px 0}.store-quick-actions{margin-bottom:4px}.store-manage-actions{margin-top:7px}}
@media(max-width:560px){.store-statement-header{padding:20px 18px 16px}.store-statement-body{padding:19px 18px}.store-period-options{grid-template-columns:1fr}.store-statement-actions{padding:15px 18px 20px}.store-statement-actions button{flex:1}}
@media(max-width:420px){.store-page-meta{align-items:flex-start;flex-direction:column}.store-page-button{min-width:36px;height:36px}.store-pagination{gap:13px}}
html[data-theme="dark"] .customer-dashboard-kpis article.attention{background:linear-gradient(145deg,#1b2331,#30251e);border-color:#70452a}
@media(max-width:980px){.customer-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.customer-dashboard-head{align-items:flex-start;flex-direction:column}.customer-dashboard-head select{width:100%}.customer-dashboard-kpis{grid-template-columns:1fr;gap:12px}.customer-dashboard-kpis article{min-height:105px;padding:21px}.customer-dashboard-kpis strong{font-size:28px}}
