/* Production bindings for the original GALApay visual system. */
.bounded-time-picker:not([open])>.bounded-time-panel{display:none!important}
main .bounded-time-picker{position:relative;min-width:0}
main .bounded-time-picker>.bounded-time-panel{position:absolute;top:100%;left:0;z-index:80;width:min(560px,calc(100vw - 48px));box-sizing:border-box;background:#fff;box-shadow:0 12px 32px #17343d26}
main .bounded-time-picker>.combined-date-time{grid-template-columns:minmax(240px,1.2fr) minmax(190px,1fr)}
main label:has(>.bounded-time-picker){align-self:start;min-width:0}
.bounded-calendar .calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.bounded-calendar .calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.bounded-calendar .calendar-days button{width:100%;height:32px;line-height:20px;box-sizing:border-box;font-size:12px}
.bounded-time-columns select{box-sizing:border-box;min-width:0;font-size:13px}
@media(max-width:600px){main .bounded-time-picker>.combined-date-time{grid-template-columns:1fr}main .bounded-time-picker>.bounded-time-panel{position:fixed;top:18vh;left:16px;width:calc(100vw - 32px);max-height:75vh;overflow:auto}}
.combined-date-time{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}.combined-date-time .bounded-time-columns{align-self:center;margin:0;gap:8px}.bounded-time-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;border-top:1px solid #dce7e8;padding-top:12px}.bounded-selection{font-size:13px;font-variant-numeric:tabular-nums;color:#087f73}.bounded-calendar .calendar-days button{padding:6px 0;margin:0;min-width:0}.bounded-calendar .calendar-navigation{margin-bottom:8px}.bounded-calendar .outside{opacity:.4}.bounded-calendar .selected{background:#087f73;color:white}.bounded-calendar .calendar-week{font-size:12px}.bounded-calendar .calendar-navigation button{padding:5px 10px;margin:0}@media(max-width:540px){.combined-date-time{grid-template-columns:1fr}}
.bounded-time-picker{margin-top:8px}.bounded-time-picker summary{cursor:pointer;color:#087f73;font-size:13px}.bounded-time-panel{margin-top:8px;padding:14px;border:1px solid #dce7e8;border-radius:10px;background:#fafcfc}.bounded-time-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.bounded-time-columns span{display:block;text-align:center;font-size:12px;margin-bottom:6px}.bounded-time-columns select{width:100%;height:160px;min-height:160px;padding:0;overflow-y:auto;overscroll-behavior:contain;text-align:center;background:white}.bounded-time-columns option{padding:7px 0}.bounded-time-panel button{margin:0}
#action-form.batch-rates-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
#action-form.batch-rates-form>*{grid-column:1/-1;margin:0;min-width:0}
#action-form.batch-rates-form>label:has([name=collectPercent]),#action-form.batch-rates-form>label:has([name=payoutFee]),#action-form.batch-rates-form>label:has([name=status]),#action-form.batch-rates-form>label:has([name=mode]){grid-column:auto}
#action-form.batch-rates-form label{margin:0;text-align:left}
#action-form.batch-rates-form fieldset{border:1px solid #dce7e8;border-radius:10px;background:#fafcfc;padding:12px}
#action-form.batch-rates-form legend{font-size:13px;font-weight:600;padding:0 6px}
#action-form.batch-rates-form label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;min-height:40px;box-sizing:border-box;border-radius:7px;cursor:pointer}
#action-form.batch-rates-form input[type=checkbox]{display:inline-block;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#087f73}
#batch-sites-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:220px;overflow:auto;border-top:1px solid #e4ecee;padding-top:8px;margin-top:6px}
#batch-sites-list label{background:white;border:1px solid #e4ecee;overflow-wrap:anywhere}
#batch-sites-list label:has(input:checked){background:#eaf7f3;border-color:#8ccbbb;color:#087f73}
#action-form.batch-rates-form>p:not(.notice){font-size:12px;color:#6c838d}
#action-form.batch-rates-form .notice{line-height:1.65;padding:12px 14px;font-size:13px;overflow-wrap:anywhere}
#action-form.batch-rates-form>label:has([name=confirmed]){background:#f3f8f7;border:1px solid #dce7e8;font-size:13px}
#action-form.batch-rates-form>button{grid-column:1/-1;justify-self:start;min-width:100px}
@media(max-width:600px){#action-form.batch-rates-form{grid-template-columns:1fr}#batch-sites-list{grid-template-columns:1fr}}
section{margin:0}#global-header{margin-left:230px}body>main{margin-left:230px;max-width:none;padding-top:0}.service-notice{font-size:12px;color:#5b7b73;background:#edf5f3;margin:0 -34px 26px;padding:9px 34px}.backend-layout{display:block}.backend-main{min-width:0}.backend-nav{overflow:auto}.backend-nav nav button{display:block;text-align:left;width:100%;border:0;background:transparent;color:#a6b6c1;padding:11px 14px 11px 35px;margin:3px 0;border-radius:7px;font-size:13px}.backend-nav nav button:hover{background:#1b303c;color:#fff}.backend-nav nav button.selected{background:#193c3e;color:#6ae0be}.backend-nav summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.6px;color:#718b98;padding:16px 14px 8px}.backend-nav summary:after{content:'⌄';margin-left:auto}.backend-nav details:not([open]) summary:after{content:'›'}.nav-symbol{width:16px;color:#8da6b0}.backend-nav .brand{padding-bottom:18px}.sidebar-foot{margin-top:28px}.work-card{padding:22px}.work-card:has(#content>.overview){padding:0;background:transparent;border:0;box-shadow:none}#tools{margin-bottom:18px}#tools:empty{display:none}.table{overflow:auto;border:1px solid var(--line);border-radius:8px}.table table{white-space:nowrap}.table td{max-width:500px;overflow:hidden;text-overflow:ellipsis}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}label{display:flex;flex-direction:column;gap:8px;color:#667e84;font-size:13px}input,select,textarea{font:inherit}input,textarea{width:100%}textarea{min-height:100px;border:1px solid #dfe6e8;border-radius:7px;padding:12px}form>label{margin-bottom:17px}form .grid{margin-bottom:16px}form>button{margin-top:12px}#report-data{margin-top:22px}.export-link{border:1px solid #dce3e5;background:white;border-radius:7px;padding:9px 14px;color:#087f6a;text-decoration:none;font-size:13px}.error,#modal-error{color:#b54b3a;white-space:pre-wrap}.error:empty,#feedback:empty,#modal-error:empty{display:none}#feedback{color:#087f6a}#connection{font-size:11px;color:#78938a;white-space:nowrap}.user small{display:block}.empty-state{padding:56px 20px;text-align:center;color:#8a999f}.empty-state strong{font-size:15px;color:#627d85}.empty-state p{font-size:13px}.unread-dot{display:inline-block;width:7px;height:7px;margin-left:8px;border-radius:50%;background:#e25555}dialog{padding:26px}dialog h2{margin-bottom:24px}dialog form{display:grid;gap:12px}dialog form label{margin-bottom:0}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:#f1f6f5}.hidden{display:none}.totp-binding{max-width:390px}.totp-qr{display:block;width:260px;max-width:100%;height:auto;border:1px solid var(--line);border-radius:8px;margin:12px 0;background:#fff}.totp-secret{white-space:pre-wrap;overflow-wrap:anywhere;user-select:all;padding:12px;background:#eef6f3;border-radius:8px}.totp-binding details{font-size:12px}.totp-binding p{font-size:13px}.totp-binding details[open]{margin-bottom:15px}
body:has(.login-page)>header{display:none}body:has(.login-page)>main{margin:0;padding:0;max-width:none}body:has(.login-page) .service-notice{display:none}body:has(.login-page) #error:not(:empty),body:has(.login-page) #feedback:not(:empty){position:fixed;bottom:20px;right:24px;max-width:42vw;background:#fff3ed;border:1px solid #f2ccc0;padding:14px 20px;border-radius:8px;z-index:30;box-shadow:0 5px 25px #17343d15}.login-eyebrow{background:#244d44;color:#86ddbe;margin-bottom:25px}.ledger-caption{font-size:12px;letter-spacing:2px;color:#84aba9}.login-art>.foot-note{color:#728f98}.login-card .portal-label{font-size:12px;letter-spacing:1px;color:#167c66;background:#eaf1ee;border:1px solid #dce8e2;padding:12px 14px;border-radius:8px;margin-bottom:26px}.login-card>section{border:0;padding:0;margin:0}.login-card>section>h1{font-size:27px}.login-card .foot-note{margin-top:28px}.login-card #otp input{font-size:24px;letter-spacing:8px;text-align:center}.login-card #otp button,.login-card #password button,.login-card #enroll{background:var(--green);color:white;width:100%;padding:13px}.login-card .notice{margin:18px 0 15px}.login-card #password input{margin-top:8px}.login-side{min-width:0}.overview .kpis{margin-top:20px}.overview .chart{height:236px}.overview .chart-line{fill:none;stroke:#1b997f;stroke-width:2.5}.overview .chart-line.payout{stroke:#7ba5bd}.overview .chart-legend{padding:0 22px;display:flex;gap:20px;color:#80939b;font-size:12px}.overview .legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1b997f;margin-right:6px}.overview .legend-dot.payout{background:#7ba5bd}.overview #dashboard-currency{min-width:110px}.overview .card-body>p{font-size:13px;color:#819098}.overview .todo-grid{margin-top:20px}.overview .kpi-foot{line-height:1.7}.overview .table .empty-state{padding:28px}.overview .stat-row strong{font-variant-numeric:tabular-nums}
@media(max-width:1100px){#global-header,body>main{margin-left:196px}.service-notice{margin:0 -22px 22px;padding:9px 22px}#connection{display:none}}@media(max-width:780px){#global-header,body>main{margin-left:0}.service-notice{margin:0 -16px 22px;padding:9px 16px}.backend-nav{width:230px}.work-card{padding:16px}.header-right #mobile-nav{margin-right:auto}.header-right{width:100%}.backend-nav .brand{font-size:22px}body:has(.login-page) #error:not(:empty){max-width:calc(100vw - 32px);right:16px}.overview .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.overview .kpi{min-width:0;padding:15px}.overview .value{font-size:21px;overflow-wrap:anywhere}.overview .grid-main{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.overview .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.overview .kpi{min-width:0}.backend-nav .brand small{font-size:8px;letter-spacing:1.2px}.login-card input[name=username]{text-transform:none}.service-notice:before{content:'●';font-size:8px;margin-right:8px;color:#22a57e}@media(max-width:780px){.overview .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{#global-header,.backend-nav,.service-notice{display:none!important}body>main{margin:0;padding:0}}

.sub-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:16px 0}.sub-permissions .permission-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;text-align:left}.sub-permissions input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}

#action-form{text-align:left}.sub-permissions{grid-template-columns:1fr}.sub-permissions .permission-option{flex-direction:row}#action-form>button{justify-self:start;width:auto}

.setup-guide{text-align:left;line-height:1.8}.setup-guide h3{margin-top:22px}.setup-guide li{margin-bottom:12px}.setup-example{padding:16px;border:1px solid #dce7e6;border-radius:10px;background:#f1f8f6}.setup-example p{margin:8px 0}dialog:has(.setup-guide){width:min(850px,90vw)}

/* Merchant workspace: selection, navigation and actions have separate rows. */
.merchant-center{margin:-2px 0 24px;padding:20px;background:#f6f9fa;border:1px solid #e3ebee;border-radius:12px}
.merchant-center>label{max-width:440px;font-weight:600;color:#385563}
.merchant-center .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid #e0e9ed}
.merchant-center button{background:transparent;border-color:transparent;color:#57717e;padding:10px 14px}
.merchant-center button:disabled,#merchant-site-tabs button:disabled{opacity:1;background:#e0f2ed;border-color:#b7ded1;color:#086a56;font-weight:700;cursor:default}
#merchant-site-tabs{display:flex;gap:8px;margin:0 0 18px}#tools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding-bottom:18px;border-bottom:1px solid #edf1f3}#tools>label{min-width:220px}#tools button{margin:0}
.table thead th{background:#f3f7f9;color:#496473;font-size:12px;font-weight:650;padding:16px 20px;border-bottom:1px solid #dce6ec;white-space:nowrap}
.table tbody td{padding:16px 20px;line-height:1.65}.table tbody tr:hover{background:#f8fbfc}.table td:has(.permission-chip){white-space:normal;min-width:220px;max-width:420px}.permission-chip{display:inline-block;background:#edf4f6;color:#4c6875;font-size:11px;padding:3px 8px;margin:3px;border-radius:5px}.table td button{margin:3px}
#dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #dce6eb;border-radius:16px;padding:28px;box-shadow:0 24px 80px #15354433}#dialog::backdrop{background:#18303c66;backdrop-filter:blur(3px)}
#dialog #modal h2{position:static;display:block;height:auto;min-height:0;overflow:visible;white-space:normal;font-size:20px;line-height:1.5;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #e5ecef}
#action-form{display:flex;flex-direction:column;gap:18px}#action-form>label{width:100%}#action-form>button{align-self:flex-start;background:#087f73;color:white;padding:11px 24px}#action-form>button:disabled{background:#e9eef0;color:#82949e}#action-form input,#action-form select{min-height:42px}#dialog .notice{line-height:1.8;white-space:normal}#dialog>button{margin-top:12px}
@media(max-width:780px){.merchant-center{padding:14px}.merchant-center .actions{gap:5px}.merchant-center button{padding:9px 10px}#dialog{padding:20px}.table thead th,.table tbody td{padding:13px 15px}}
.account-trigger{border:0;background:transparent;text-align:left;padding:6px 10px;border-radius:8px;cursor:pointer}.account-trigger:hover{background:#edf5f3}.account-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.account-trigger{position:relative;padding-right:28px}.account-chevron{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:18px;color:#617d87}
.security-profile{display:flex;align-items:center;gap:14px;padding:18px;background:#f3f8f7;border-radius:12px;margin-bottom:22px}.security-avatar{display:grid;place-items:center;width:48px;height:48px;background:#dcefe9;color:#147864;border-radius:14px;font-weight:700}.security-profile strong{font-size:17px}.security-profile small{display:block;margin-top:5px;color:#71838e}.security-settings{border:1px solid #e0e9ed;border-radius:12px;overflow:hidden}.security-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px}.security-setting+.security-setting{border-top:1px solid #e8eef1}.security-setting strong{font-size:14px}.security-setting p{font-size:12px;color:#748894;margin:7px 0 0;line-height:1.6}.security-setting button{flex-shrink:0;color:#087f73;background:#f3faf7;border-color:#cfe5dc}.security-status{display:inline-block;color:#168369;background:#e7f5ee;font-size:10px;padding:3px 7px;border-radius:12px;margin-left:8px}
/* Persistent page tabs and first-paint workspace shell. */
.workspace-tabs{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:0 0 0;margin:0 0 24px;border-bottom:1px solid #dbe5ee;min-height:42px;scrollbar-width:thin}.workspace-tab{display:flex;align-items:center;flex:none;border:1px solid #dbe3ea;border-bottom:0;border-radius:9px 9px 0 0;background:#fff;color:#506472;padding:0 4px 0 0}.workspace-tab>button{border:0;border-radius:0;background:transparent;color:inherit;font-weight:500;padding:12px 15px;white-space:nowrap}.workspace-tab.active{background:#1261c8;border-color:#1261c8;color:white}.workspace-tab.active>button:first-child{font-weight:650}.workspace-tab>.tab-close{padding:8px;font-size:17px;margin-right:4px;line-height:1;border-radius:5px}.workspace-tab>.tab-close:hover{background:#dce7f244}.workspace-tab>button:focus-visible{outline:2px solid #64b7ed;outline-offset:-3px}
body:has(.boot-shell)>header,body:has(.boot-shell) .service-notice,body:has(.boot-shell) #feedback{display:none}body:has(.boot-shell)>main{padding:0;margin:0}.boot-shell{min-height:100vh;background:#eef3f7}.boot-sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:#102230;padding:30px 24px;color:#fff;box-sizing:border-box}.boot-sidebar strong{font-size:22px;display:block;margin-bottom:45px}.boot-line{height:14px;border-radius:6px;background:#e4ebf0;margin:22px 0;max-width:100%}.boot-sidebar .boot-line{background:#263b49;margin:32px 0;width:80%}.boot-sidebar .boot-line:nth-child(3){width:65%}.boot-top{margin-left:230px;height:76px;background:white;border-bottom:1px solid #e1e9ee;display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#304957}.boot-top span{font-size:12px;color:#758a96}.boot-main{margin-left:230px;padding:28px 34px}.boot-main .workspace-tab{padding:12px 24px}.boot-card{background:white;border:1px solid #e1e9ef;border-radius:12px;padding:30px;min-height:240px}.boot-card .boot-line{width:100%;height:34px}.boot-card .boot-line:first-child{width:28%;height:18px}.boot-card .boot-line:last-of-type{width:75%}.boot-card p{font-size:13px;color:#7a8e9a;margin-top:28px}@media(max-width:780px){.boot-sidebar{display:none}.boot-top,.boot-main{margin-left:0;padding-left:16px;padding-right:16px}.workspace-tabs{margin-bottom:18px}}
.password-field{position:relative}.password-field input{padding-right:48px}.login-card #login .password-eye{position:absolute;right:7px;bottom:5px;width:34px;height:34px;padding:7px;margin:0;border:0;background:transparent;color:#617d87;display:grid;place-items:center}.login-card #login .password-eye:hover,.login-card #login .password-eye[aria-pressed=true]{color:#087f73;background:#e8f4ef;border-radius:6px}

.report-multi{position:relative;background:white;border:1px solid #d8e3e8;border-radius:6px;padding:10px;margin-top:8px}.report-multi>div{max-height:240px;overflow:auto}.report-multi label{display:flex;align-items:center;gap:8px;padding:8px}.report-multi input{width:auto;margin:0}

.date-range{padding:10px;border:1px solid #d8e3e8;border-radius:6px;background:#fff;grid-column:span 2}.date-range summary{cursor:pointer;color:#254553}.date-range .grid{margin-top:12px}#order-filter{margin-bottom:22px}#order-filter input,#report-filter input{min-width:0}@media(max-width:700px){.date-range{grid-column:auto}}

/* Compact filter controls; panels float above results. */
#order-filter>.grid{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(150px,.55fr) minmax(400px,1.8fr);gap:16px;align-items:start}
#report-filter>.grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,2fr) minmax(180px,1fr);gap:16px;align-items:start}
#order-filter>.grid>div,#report-filter>.grid>div,.range-field>span{color:#637d89;font-size:13px}
.report-multi,.date-range{position:relative;padding:0!important;margin-top:8px;background:white;border:1px solid #d8e3e8;border-radius:8px;min-height:40px;grid-column:auto;box-sizing:border-box}
.report-multi summary,.date-range summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;color:#263e4c;font-size:13px;white-space:nowrap;cursor:pointer}
.report-multi summary::-webkit-details-marker,.date-range summary::-webkit-details-marker{display:none}
.report-multi summary:after{content:'⌄';color:#718792}.date-range summary:after{content:'▦';color:#718792;font-size:17px}
.report-multi[open],.date-range[open]{border-color:#139a87;box-shadow:0 0 0 3px #119c8710}
.report-multi>div,.date-range>.grid{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;background:#fff;border:1px solid #dce5ea;border-radius:10px;padding:10px;box-shadow:0 12px 32px #15334320;margin:0;max-height:300px;overflow:auto}
.report-multi>div label{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:10px;padding:10px 8px;margin:0;text-align:left;color:#294553;border-radius:6px;font-size:13px}
.report-multi>div label:hover{background:#edf8f5}.report-multi input[type=checkbox]{display:inline-block!important;flex:0 0 16px;width:16px!important;height:16px!important;margin:0!important;min-height:0;padding:0;accent-color:#078777}
.date-range>.grid{display:grid;grid-template-columns:1fr 1fr;min-width:440px;padding:18px;gap:14px;left:auto;width:100%;box-sizing:border-box}
.date-range>.grid label{font-size:12px;color:#647d89}.date-range input{margin-top:8px!important;height:40px;background:#f8fafb!important;border-radius:6px}
#order-filter select{height:42px;border-radius:8px}#order-filter>.actions,#report-filter>.actions{margin-top:16px;gap:8px}#order-filter>.actions>button:first-child{background:#078777;color:white;border-color:#078777}
@media(max-width:850px){#order-filter>.grid,#report-filter>.grid{grid-template-columns:1fr}.date-range>.grid{min-width:0;grid-template-columns:1fr}}

.range-confirm{grid-column:1/-1;justify-self:end;background:#078777!important;color:#fff!important;border-color:#078777!important;padding:8px 22px!important}

.password-strength{margin:10px 0 18px}.strength-track{height:5px;border-radius:9px;background:#e9eff1;overflow:hidden}.strength-track span{display:block;height:100%;width:0;transition:width .15s;background:#d45d57}.password-strength[data-level="2"] span{background:#d59c35}.password-strength[data-level="3"] span{background:#07947d}.password-strength small{display:block;margin-top:7px;color:#69808c;font-size:12px}
.order-filter-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:#7b8c97;font-size:12px}.order-filter-meta>.report-multi{width:210px;margin:0}.order-filter-meta>select{width:130px!important;margin:0!important}.order-filter-bar{display:grid;grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 44px 44px;align-items:center;gap:10px}.order-filter-bar input,.order-filter-bar select,.order-filter-bar>.date-range{margin:0!important;height:40px;min-width:0;width:100%;box-sizing:border-box}.order-filter-bar .date-range summary{font-size:12px;padding:11px 10px}.order-search-button,.order-export-button{height:40px;border:0!important;border-radius:5px!important;display:flex;justify-content:center;align-items:center;font-size:23px;text-decoration:none;color:white!important;background:#409eff!important}.order-export-button{background:#67c23a!important}.date-range>.range-picker{position:absolute;z-index:50;top:calc(100% + 10px);left:0;width:850px;background:#fff;border:1px solid #dce3eb;box-shadow:0 7px 24px #23344820;border-radius:5px;display:grid;grid-template-columns:110px 1fr;color:#59616c;font-size:14px}.range-picker .range-shortcuts{border-right:1px solid #e2e7ee;padding:12px 8px}.range-picker .range-shortcuts button{display:block;border:0;background:none;padding:10px;width:100%;text-align:left;color:#60666f}.range-picker .range-shortcuts button:hover{color:#409eff;background:#edf5ff}.range-picker-main{padding:14px}.range-inputs{display:flex;gap:8px;align-items:center}.range-inputs input{width:140px!important;height:32px!important;font-size:12px;padding:4px 7px!important;margin:0!important}.range-inputs input[type=time]{width:105px!important}.calendar-navigation{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8c98a5;margin-top:12px}.calendar-navigation button{border:0;background:transparent;font-size:24px;padding:0 10px}.dual-calendar{display:grid;grid-template-columns:1fr 1fr;gap:24px}.range-calendar .calendar-month{text-align:center;font-size:16px;font-weight:600;padding:5px 0 18px}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}.calendar-week{border-bottom:1px solid #e7ecf1;padding-bottom:10px;color:#727d86}.calendar-days button{height:35px;min-width:0;padding:0!important;margin:3px 0;border:0;border-radius:50%;background:transparent;color:#60666f;font-size:13px}.calendar-days .outside{color:#b1b8c2}.calendar-days .in-range{background:#ecf5ff;border-radius:0}.calendar-days .selected{background:#409eff;color:#fff}.range-picker .range-picker-footer{grid-column:1/-1;border-top:1px solid #e2e7ee;padding:10px;display:flex;justify-content:flex-end;gap:12px;align-items:center}.range-picker .range-picker-footer button{padding:5px 14px;font-size:12px;background:#fff}.range-picker .range-picker-footer [data-confirm]{color:#409eff;border-color:#409eff}.range-error{color:#c24e4e;margin-right:auto}.work-card{overflow:visible}
@media(max-width:1200px){.order-filter-bar{grid-template-columns:minmax(300px,2fr) repeat(3,minmax(110px,1fr))}.date-range>.range-picker{width:min(850px,85vw)}}@media(max-width:700px){.order-filter-bar{grid-template-columns:1fr 1fr}.order-filter-bar>.date-range{grid-column:1/-1}.date-range>.range-picker{width:85vw;grid-template-columns:1fr}.range-picker .range-shortcuts{display:flex;border-right:0}.dual-calendar{grid-template-columns:1fr}.range-calendar:nth-child(2){display:none}.range-inputs{flex-wrap:wrap}.order-filter-meta{flex-wrap:wrap}}

.range-picker>input[type=hidden]{display:none!important}.range-picker-main{min-width:0;grid-column:2}.range-shortcuts{position:static!important;width:auto!important;height:auto!important;inset:auto!important;background:white!important;color:#60666f!important}.range-calendar .calendar-month{position:static!important;display:block!important;background:none!important}.range-picker .range-picker-footer{position:static!important;background:white!important}.range-inputs input{flex:1;min-width:0!important}@media(max-width:700px){.range-picker-main{grid-column:1}}

.alert-toggle{color:#078777!important;border-color:#8dcfc0!important;margin-right:8px}.alert-toggle.is-on{background:#e9f7f2!important}.alert-toggle+button{margin-left:8px}

#report-filter>.grid{grid-template-columns:minmax(180px,240px) minmax(340px,460px) minmax(180px,240px);justify-content:start}.empty-select{margin-top:8px;padding:11px 13px;border:1px solid #d8e3e8;border-radius:8px;min-height:40px;box-sizing:border-box;color:#8797a2;background:#f6f8fa}#report-filter>.grid>div{min-width:0}@media(max-width:1100px){#report-filter>.grid{grid-template-columns:minmax(180px,240px) minmax(300px,460px)}#report-filter .range-picker{left:auto;right:0}}@media(max-width:700px){#report-filter>.grid{grid-template-columns:minmax(0,1fr)}#report-filter .range-picker{left:0;right:auto}}

.live-balance{display:inline-block;border-radius:20px;background:#e1f5ef;color:#087f72;padding:8px 14px;font-weight:700;white-space:nowrap}

.order-export-button{font-size:14px;font-weight:600;white-space:nowrap}

.single-date-picker{position:relative;margin-top:6px}.single-date-picker summary{cursor:pointer;color:#087f72}.single-calendar{background:white;border:1px solid #dbe5eb;padding:12px;width:290px;max-width:100%;box-sizing:border-box}.single-calendar .calendar-navigation{display:flex;justify-content:space-between;align-items:center}.single-calendar .calendar-days button{padding:4px;font-size:13px;min-width:0}.single-calendar .selected{background:#409eff;color:white}

#action-form .channel-product-options{border:1px solid #dce7e8;border-radius:12px;padding:12px;text-align:left;margin:0;min-width:0;background:#fafcfc}#action-form .channel-product-options legend{padding:0 8px;font-size:13px;font-weight:600;color:#385563}#action-form .channel-product-options .channel-product-option{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;text-align:left;margin:0 0 6px;padding:12px 14px;min-height:44px;border:1px solid transparent;border-radius:8px;cursor:pointer;color:#36525e;background:white}#action-form .channel-product-option:last-child{margin-bottom:0}#action-form .channel-product-option:hover{background:#f0f8f6}#action-form .channel-product-option:has(input:checked){background:#eaf7f3;border-color:#b9ded3;color:#087f73}#action-form .channel-product-option input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#087f73}#action-form .channel-product-option:focus-within{outline:2px solid #5cbdab;outline-offset:1px}

/* Unpaid payout confirmation: compact checkbox aligned with its explanation. */
#action-form>label.unpaid-confirmation{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;padding:14px 16px;margin:0;background:#f0f8f6;border:1px solid #cee5de;border-radius:10px;text-align:left;line-height:1.7;color:#365963;cursor:pointer;box-sizing:border-box}
#action-form .unpaid-confirmation input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:2px 0 0;padding:0;accent-color:#087f73}
#action-form .unpaid-confirmation span{flex:1;min-width:0}
#dialog:has(.unpaid-confirmation) textarea{width:100%;box-sizing:border-box;min-height:88px;resize:vertical;margin-top:8px;padding:10px 12px;border:1px solid #d8e3e8;border-radius:7px;font:inherit;line-height:1.6}
#dialog:has(.unpaid-confirmation) #modal-error:empty{display:none}
#dialog:has(.unpaid-confirmation) #dialog-close{margin-top:14px}

#action-form .unpaid-reasons{min-width:0;margin:0;padding:12px 14px;border:1px solid #d8e3e8;border-radius:10px;background:#fafcfc}
#action-form .unpaid-reasons legend{padding:0 6px;color:#526e7a;font-size:13px}
#action-form .unpaid-reason{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;margin:0;padding:8px 0;text-align:left;line-height:1.6;cursor:pointer}
#action-form .unpaid-reason input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:1px 0 0;padding:0;accent-color:#087f73}
#action-form .unpaid-reason span{min-width:0;flex:1}

/* API-key rotation keeps the acknowledgement compact and easy to scan. */
#action-form .api-key-rotate-target{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:2px 0 0;padding:12px 14px;border:1px solid var(--line,#35534f);border-radius:8px;background:#71808b0d}
#action-form .api-key-rotate-target span{font-size:13px;color:var(--muted,#a8bdc3)}
#action-form .api-key-rotate-target strong{font-size:15px;overflow-wrap:anywhere}
#action-form>label.api-key-rotate-confirm{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:12px 14px;border:1px solid #cee5de;border-radius:8px;background:#f0f8f6;color:#365963;line-height:1.5;cursor:pointer;text-align:left}
#action-form .api-key-rotate-confirm input[type=checkbox]{appearance:auto;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#087f73}
#action-form .api-key-rotate-confirm span{min-width:0}
html[data-merchant-theme] body:not(:has(.login-page)) :is(#action-form .api-key-rotate-target,#action-form>label.api-key-rotate-confirm){background:var(--merchant-input);color:var(--theme-text);border-color:var(--line)}

.fund-workflow{padding:14px 18px;margin:0 0 16px;border:1px solid #d4e7e1;border-radius:9px;background:#f0f8f5;color:#23675e;line-height:1.7}.fund-account-summary{padding:14px 16px;background:#f2f7fa;border:1px solid #dce7ec;border-radius:9px;color:#365663;line-height:1.8;font-size:13px}
.fund-note-history{margin:0;padding:14px 16px;border:1px solid #dce7ec;border-radius:9px;background:#f8fbfc;color:#365663}.fund-note-history h3{margin:0 0 10px;font-size:14px}.fund-note-history p{margin:6px 0 0;line-height:1.65;overflow-wrap:anywhere}.fund-note-history article{padding:10px 0;border-top:1px solid #e3ecef}.fund-note-history article:first-of-type{border-top:0;padding-top:0}.fund-note-history time{margin-right:10px;font-size:12px;color:#6b818b}.fund-note-history strong{font-size:13px}

.merchant-start{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px;margin-bottom:20px;background:#f0f8f5;border:1px solid #cee5dc;border-radius:12px}.merchant-start h2{margin:0 0 6px;font-size:19px}.merchant-start p{margin:0;color:#57716e}.merchant-shortcuts{display:flex;flex-wrap:wrap;gap:10px;width:100%}.merchant-shortcuts button{margin:0;padding:12px 18px;min-height:44px}.merchant-shortcuts button:first-child{background:#087f73;color:white;border-color:#087f73}

.trend-inspector{padding:0 22px 18px;display:grid;gap:10px}.trend-inspector output{font-size:13px;color:#34515e;font-variant-numeric:tabular-nums}.trend-inspector input{width:100%;padding:0;accent-color:#168c79;cursor:ew-resize}.chart-guide{stroke:#80939b;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}#trend-chart{cursor:crosshair}

.overview .chart .chart-value{fill:#294954;font-size:12px;font-weight:600}

.brand.brand-v2{display:flex;align-items:center;gap:8px;width:178px;height:40px;padding:0;margin-bottom:22px;background:transparent;color:#f4f9fc;flex:none}.brand-v2 .brand-symbol{width:40px;height:40px;flex:none;fill:none;stroke:#62d9b7;stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.brand-v2 .brand-wordmark{display:flex;flex-direction:column;gap:1px;min-width:0}.brand-v2 .brand-wordmark strong{font-size:26px;font-weight:800;letter-spacing:-1px;line-height:1.05;color:inherit}.brand-v2 .brand-wordmark small{font-size:6px;letter-spacing:2px;line-height:1.4;color:inherit;opacity:.65}.login-art .brand.brand-v2{width:250px;height:56px;gap:10px}.login-art .brand-symbol{width:56px;height:56px}.login-art .brand-wordmark strong{font-size:36px}.login-art .brand-wordmark small{font-size:8px}.login-card .brand.brand-v2{width:210px;height:48px;background:transparent;color:#203644;gap:9px}.login-card .brand-symbol{width:48px;height:48px}.login-card .brand-wordmark strong{font-size:30px}.login-card .brand-wordmark small{font-size:7px}

.campaign-time-range{border:1px solid #dce6eb;border-radius:12px;padding:16px;margin:18px 0;min-width:0}.campaign-time-range legend{padding:0 8px;color:#365966;font-weight:600}.campaign-range-fields{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:end;gap:10px}.campaign-range-fields label{min-width:0;margin:0}.campaign-range-fields input{width:100%;min-width:0;font-size:14px}.campaign-range-separator{align-self:end;text-align:center;padding-bottom:14px;color:#81959d}.campaign-time-range small{display:block;margin-top:10px;color:#708b96;font-size:12px}@media(max-width:600px){.campaign-range-fields{grid-template-columns:1fr}.campaign-range-separator{display:none}}

#action-form .campaign-date-range{width:100%;margin:18px 0}#action-form .campaign-date-range .range-picker{position:static;width:100%;box-shadow:none;border:0;max-width:100%;margin-top:10px}#action-form .campaign-date-range button{width:auto;margin:0}#action-form .campaign-date-range .calendar-days button{padding:6px 0}

/* Shared close control stays visible while long dialogs scroll. */
.dialog-close-bar{position:sticky;top:0;z-index:20;display:flex;justify-content:flex-end;height:0;overflow:visible;pointer-events:none}#dialog-close-x{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;margin:-8px -8px 0 0;border:1px solid #dfe6e8;border-radius:50%;background:#fff;color:#38535d;font-size:26px;line-height:1;box-shadow:0 2px 8px #102f3a14;cursor:pointer}#dialog-close-x:hover{background:#edf5f3;color:#087e73}#dialog-close-x:focus-visible{outline:2px solid #087e73;outline-offset:2px}#modal h2{padding-right:40px}

[hidden]{display:none!important}

.activity-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}

/* Merchant announcement */
#dialog:has(.merchant-announcement){width:min(560px,calc(100vw - 32px));padding:0;border-radius:18px;overflow:hidden}
#dialog:has(.merchant-announcement) #dialog-close{display:none}
#dialog:has(.merchant-announcement) #dialog-close-x{top:18px;right:18px}
#dialog:has(.merchant-announcement) #modal-error:empty{display:none}
.merchant-announcement{padding:32px}
.merchant-announcement .announcement-heading{display:flex;align-items:center;gap:14px;padding:0 42px 22px 0;border-bottom:1px solid #e3ecef}
.merchant-announcement .announcement-heading h2{margin:0;padding:0;border:0;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.announcement-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:#e8f6f2;color:#087f70;border-radius:12px;font:600 24px Georgia,serif}
.announcement-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:15px;min-height:100px;max-height:50vh;overflow:auto;padding:24px 0;color:#38505a}
.announcement-actions{display:flex;justify-content:center;border-top:1px solid #e3ecef;padding-top:22px}
.announcement-actions button{min-width:144px;padding:12px 28px;border-radius:9px}
@media(max-width:600px){.merchant-announcement{padding:24px}.merchant-announcement .announcement-heading h2{font-size:20px}.announcement-body{max-height:45vh}}
/* Lightweight login motion: no network polling or animation scripts. */
.login-art{position:relative;isolation:isolate;overflow:hidden}
.login-art::before,.login-art::after{content:'';position:absolute;width:420px;height:420px;border-radius:50%;pointer-events:none;z-index:-1;background:radial-gradient(circle,#41c9ac1c 0%,#41c9ac09 42%,transparent 70%);animation:login-glow 22s ease-in-out infinite alternate}
.login-art::before{top:8%;right:-100px}
.login-art::after{bottom:4%;left:-130px;animation-delay:-11s;animation-duration:28s}
.login-art .mini-ledger{animation:login-card-float 9s ease-in-out infinite}
@keyframes login-glow{from{transform:translate3d(0,0,0);opacity:.5}to{transform:translate3d(-45px,65px,0);opacity:1}}
@keyframes login-card-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(-2deg)}}
@media(prefers-reduced-motion:reduce){.login-art::before,.login-art::after,.login-art .mini-ledger{animation:none}}
@media(max-width:780px){.login-art::before,.login-art::after,.login-art .mini-ledger{animation:none}}

/* Keep announcement layout independent of global header and heading rules. */
#dialog:has(.merchant-announcement){position:fixed;width:min(500px,calc(100vw - 32px));border-radius:16px}
#dialog:has(.merchant-announcement) .dialog-close-bar{position:absolute;top:18px;right:18px;height:auto;z-index:2}
#dialog:has(.merchant-announcement) #dialog-close-x{margin:0;width:30px;height:30px;min-width:30px;font-size:22px;box-shadow:none;border:0;background:#f2f6f7}
#dialog .merchant-announcement{padding:28px}
#dialog .merchant-announcement .announcement-heading{display:block;margin:0;padding:0 42px 20px 0;border-bottom:1px solid #e6edef;height:auto;background:transparent}
#dialog #modal .merchant-announcement h2{margin:0;padding:0;border:0;text-align:left;font-size:21px;line-height:1.5;color:#203d47}
#dialog .announcement-body{min-height:60px;padding:24px 0 28px;font-size:15px;color:#425b64}
#dialog .announcement-actions{display:flex;justify-content:flex-end;padding-top:18px;margin:0;border-top:1px solid #e6edef;background:transparent}
#dialog .announcement-actions button{min-width:112px;margin:0;padding:11px 24px}
#dialog .merchant-announcement .announcement-heading{padding:0 34px 20px}
#dialog #modal .merchant-announcement h2{text-align:center}
#dialog:has(.merchant-announcement) .dialog-close-bar{display:none}
#dialog .merchant-announcement .announcement-heading{padding:0 0 20px}
/* Login composition */
.login-page{grid-template-columns:1.08fr 1fr;min-height:100svh}
.login-art{padding:48px clamp(36px,5vw,88px);background:radial-gradient(ellipse at 80% 20%,#164e50 0,transparent 55%),linear-gradient(145deg,#0b202a,#123c40 70%,#0d2933);gap:40px}
.login-art>div:not(.login-orbits){position:relative;z-index:1;margin:auto 0;max-width:550px}
.login-art h1{font-size:clamp(36px,3.4vw,58px);line-height:1.24;letter-spacing:-1.8px;margin:20px 0}
.login-art p{font-size:15px;max-width:440px;color:#b1cbce}
.login-art .login-eyebrow{display:inline-block;background:#ffffff0c;border:1px solid #82dac333;color:#92e4d0;padding:7px 12px;border-radius:30px;letter-spacing:1.4px;font-size:10px;margin:0}
.login-art .mini-ledger{background:linear-gradient(120deg,#ffffff0e,#ffffff05);border:1px solid #8ed6cf30;box-shadow:0 20px 55px #00121626;border-radius:18px;max-width:440px;margin:32px 0 0;padding:24px;animation:premium-card 10s ease-in-out infinite}
.login-art::before{width:720px;height:720px;top:-280px;right:-300px;background:radial-gradient(circle,#5ce9c52e,transparent 65%);animation:premium-glow 16s ease-in-out infinite alternate}
.login-art::after{width:600px;height:600px;bottom:-220px;left:-220px;background:radial-gradient(circle,#22baa724,transparent 68%);animation:premium-glow 21s ease-in-out infinite alternate-reverse}
.login-art .login-orbits{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background-image:linear-gradient(#a1e4d106 1px,transparent 1px),linear-gradient(90deg,#a1e4d106 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(180deg,black,transparent 85%)}
.login-orbits span{position:absolute;border:1px solid #8be8d426;border-radius:50%;width:650px;height:650px;top:-160px;right:-300px;animation:premium-orbit 30s linear infinite}
.login-orbits span:nth-child(2){width:850px;height:850px;top:-260px;right:-400px;border-style:dashed;animation-duration:80s;animation-direction:reverse}
.login-orbits span:nth-child(3){width:1050px;height:1050px;top:-360px;right:-500px;border-color:#8be8d414;animation-duration:45s}
.login-orbits span:first-child::after{content:'';position:absolute;top:90px;left:90px;width:7px;height:7px;border-radius:50%;background:#8cf2d6;box-shadow:0 0 18px #73efc9}
.login-side{padding:80px 36px;background:radial-gradient(ellipse at 90% 0,#edf8f4,transparent 55%),#f6f9f8}
.login-card{width:440px;padding:36px 38px;background:#ffffffeb;border:1px solid #e3ece8;border-radius:24px;box-shadow:0 24px 70px #1c51450b}
.login-card .brand.brand-v2{margin-bottom:24px}.login-card .portal-label{display:inline-block;padding:5px 11px;font-size:11px;border-radius:6px;margin-bottom:22px}
.login-card h1{font-size:27px;letter-spacing:-.5px;margin:22px 0 8px}.login-card .sub{font-size:13px;color:#7b9297}
.login-card .steps{gap:5px}.login-card input{background:#fbfdfc;border-color:#dce6e2;border-radius:9px;min-height:46px}
.login-page{color-scheme:light}
.login-card input{color:#203744;caret-color:#087f73}
.login-card input::placeholder{color:#71878f;opacity:1}
.login-card input:autofill{color:#203744;background:#fbfdfc}
.login-card input:-webkit-autofill{-webkit-text-fill-color:#203744;caret-color:#087f73;-webkit-box-shadow:0 0 0 1000px #edf5f2 inset}
.login-card .primary{border-radius:9px;min-height:46px;box-shadow:0 6px 14px #087f7315}
.login-card .foot-note{font-size:11px;text-align:center;color:#8a9e9f;line-height:1.6}
@keyframes premium-orbit{to{transform:rotate(360deg)}}
@keyframes premium-glow{from{transform:translate3d(0,0,0);opacity:.65}to{transform:translate3d(-60px,70px,0);opacity:1}}
@keyframes premium-card{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(0)}}
@media(max-width:1000px){.login-art{padding:36px}.login-side{padding:60px 24px}.login-card{padding:30px}.login-art h1{font-size:38px}}
@media(max-width:780px){.login-page{display:block}.login-art{display:none}.login-side{min-height:100svh;padding:75px 20px 32px;box-sizing:border-box}.login-card{width:420px;padding:28px 24px}.login-orbits span,.login-art::before,.login-art::after,.login-art .mini-ledger{animation:none}}
@media(prefers-reduced-motion:reduce){.login-orbits span,.login-art::before,.login-art::after,.login-art .mini-ledger{animation:none}}
/* Make background movement visible without moving the sign-in form. */
.login-art::before{background:radial-gradient(circle,#55efc84d 0%,#35d9c323 35%,transparent 68%);animation:visible-login-glow 8s ease-in-out infinite alternate}
.login-art::after{background:radial-gradient(circle,#32bde040 0%,#24b6b91c 40%,transparent 70%);animation:visible-login-glow 11s ease-in-out infinite alternate-reverse}
.login-orbits span{border-color:#8be8d43b;animation-duration:14s}
.login-orbits span:nth-child(2){animation-duration:35s}
.login-orbits span:nth-child(3){animation-duration:24s}
.login-orbits span::after{content:'';position:absolute;top:14.6%;left:14.6%;width:9px;height:9px;border-radius:50%;background:#9dffe2;box-shadow:0 0 12px #85ffd8,0 0 28px #85ffd888}
.login-orbits span:nth-child(2)::after{width:6px;height:6px;background:#91e5ff;box-shadow:0 0 18px #91e5ff}
.login-orbits span:nth-child(3)::after{width:5px;height:5px;opacity:.7}
@keyframes visible-login-glow{0%{transform:translate3d(-30px,-20px,0) scale(.85);opacity:.55}100%{transform:translate3d(-150px,160px,0) scale(1.12);opacity:1}}
@media(max-width:780px),(prefers-reduced-motion:reduce){.login-art::before,.login-art::after,.login-orbits span{animation:none}}
/* Full viewport login background with floating content. */
.login-page{position:relative;isolation:isolate;overflow:hidden;min-height:100svh;width:100%;background:radial-gradient(ellipse at 80% 15%,#1b625d 0,transparent 52%),linear-gradient(135deg,#091f2a 0%,#123b40 58%,#0c2934 100%)}
.login-art{position:static;isolation:auto;overflow:visible;background:transparent}
.login-art::before,.login-art::after{z-index:-1}
.login-art .login-orbits{position:absolute;inset:0;z-index:-1;mask-image:linear-gradient(160deg,black,transparent 95%)}
.login-orbits span{right:-160px;top:-120px}
.login-orbits span:nth-child(2){right:-260px;top:-220px}
.login-orbits span:nth-child(3){right:-360px;top:-320px}
.login-side{background:transparent;z-index:1}
.login-card{background:#ffffffef;border-color:#ffffff55;box-shadow:0 30px 90px #00151e40}
.login-art>.brand,.login-art>.foot-note{position:relative;z-index:1}
.login-page .lang-pick{color:#d9efea;background:transparent;border:1px solid #99d6cc38;border-radius:10px;box-shadow:none;color-scheme:dark;transition:background .2s,border-color .2s}.login-page .lang-pick:hover{background:#ffffff08;border-color:#99d6cc70}.login-page .lang-pick:focus-visible{outline:2px solid #73d6c1;outline-offset:3px}.login-page .lang-pick option{background:#123b40;color:#e6f5f1}
@media(max-width:780px){.login-side{min-height:100svh}.login-card{background:#fffffff2}}
/* Center the animated orbit between brand copy and sign-in. */
.login-orbits span{left:calc(50% - 325px);top:calc(50% - 325px);right:auto}
.login-orbits span:nth-child(2){left:calc(50% - 425px);top:calc(50% - 425px);right:auto}
.login-orbits span:nth-child(3){left:calc(50% - 525px);top:calc(50% - 525px);right:auto}
.login-art::before{left:calc(50% - 360px);top:calc(50% - 360px);right:auto}
.login-art::after{left:calc(50% - 260px);top:calc(50% - 260px);bottom:auto}

/* Merchant background palettes: static gradients keep navigation lightweight. */
html[data-merchant-theme]{--merchant-bg:#eef6f3;--merchant-glow:#d5eee5;--merchant-nav:#102b30;--merchant-accent:#138b75}
html[data-merchant-theme="blue"]{--merchant-bg:#eef3f9;--merchant-glow:#dbe8f8;--merchant-nav:#14283f;--merchant-accent:#487cb4}
html[data-merchant-theme] body:not(:has(.login-page)){background:radial-gradient(ellipse at 95% 0,var(--merchant-glow),transparent 60%),var(--merchant-bg);background-attachment:fixed}
html[data-merchant-theme] body:not(:has(.login-page)) .backend-nav{background:var(--merchant-nav)}
html[data-merchant-theme] body:not(:has(.login-page)) .service-notice{background:transparent}
html[data-merchant-theme] .theme-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
html[data-merchant-theme] .theme-dot{width:10px;height:10px;border-radius:50%;background:var(--merchant-accent);display:inline-block}

/* Dark merchant console; login retains its own visual system. */
html[data-merchant-theme]{--merchant-bg:#0e1b20;--merchant-glow:#173b3b;--merchant-nav:#0b171d;--merchant-accent:#62d5b9;--merchant-surface:#17292f;--merchant-input:#102127}
html[data-merchant-theme="blue"]{--merchant-bg:#101b2b;--merchant-glow:#203856;--merchant-nav:#0c1726;--merchant-accent:#89b9f0;--merchant-surface:#1a2a40;--merchant-input:#132238}
html[data-merchant-theme] body:not(:has(.login-page)){color:#deebeF;--line:#33474f;--muted:#a5b8c1;color-scheme:dark}
html[data-merchant-theme] body:not(:has(.login-page)) :is(#global-header,.card,.kpi,.work-card,dialog,.bounded-time-panel,.combined-date-time){background:var(--merchant-surface);color:#deebef;border-color:var(--line);box-shadow:none}
html[data-merchant-theme] body:not(:has(.login-page)) .work-card:has(#content>.overview){background:transparent;border:0}
html[data-merchant-theme] body:not(:has(.login-page)) :is(input,select,textarea,button,.export-link){background:var(--merchant-input);color:#deebef;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) button.primary{background:#087f6a;color:white;border-color:#189b83}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.sub,label,.foot-note,.page-footer,.kpi-foot,.empty-state,.overview .card-body>p){color:#a5b8c1}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.notice,.badge,.permission-chip,.overview .todo-grid,.overview .quick-actions){background:var(--merchant-input);color:#b9d9d3;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(th,.table thead th){background:var(--merchant-input);color:#b9cfdb;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(td,.stat-row,.workspace-tabs){border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .table tbody tr:hover{background:#ffffff08}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.value,.kpi .value,.card h2,.page-head h1){color:#edf6fa}
html[data-merchant-theme] body:not(:has(.login-page)) button:hover{background:#ffffff0d;border-color:var(--merchant-accent)}
@media print{html[data-merchant-theme] body:not(:has(.login-page)){background:white;color:black;color-scheme:light}html[data-merchant-theme] body:not(:has(.login-page)) :is(.card,.kpi,.work-card,th,td){background:white;color:black}}
html[data-merchant-theme]:not(:has(.login-page)){background:var(--merchant-bg)}
html[data-merchant-theme] body:not(:has(.login-page)){min-height:100vh}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.bounded-time-picker>summary,.bounded-range-picker>summary,.search-select>summary,details>summary){color:#b9cfdb}
html[data-merchant-theme] body:not(:has(.login-page)) main details>summary{background:var(--merchant-input);border-color:var(--line);color:#deebef}
html[data-merchant-theme] body:not(:has(.login-page)) .backend-nav nav button{background:transparent;color:#a5b8c1}
html[data-merchant-theme] body:not(:has(.login-page)) .backend-nav nav button.selected{background:#ffffff0c;color:var(--merchant-accent)}
html[data-merchant-theme] body:not(:has(.login-page)) .workspace-tab button{background:transparent;border:0}
html[data-merchant-theme] body:not(:has(.login-page)) .merchant-start{background:var(--merchant-input);border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .merchant-start p{color:#a5b8c1}

/* Warm reading palette, selected independently from the dark palettes. */
html[data-merchant-theme="warm"]{--merchant-bg:#eeeadd;--merchant-glow:#e4e5d2;--merchant-nav:#293832;--merchant-accent:#54735c;--merchant-surface:#f6f3e9;--merchant-input:#eeeee1}
html[data-merchant-theme="warm"] body:not(:has(.login-page)){color:#37443b;--line:#d4d7c5;--muted:#687364;color-scheme:light}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) :is(#global-header,.card,.kpi,.work-card,dialog,.bounded-time-panel,.combined-date-time,input,select,textarea,button,.export-link,main details>summary,.value,.kpi .value,.card h2,.page-head h1){color:#37443b}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) :is(.sub,label,.foot-note,.page-footer,.kpi-foot,.empty-state,.overview .card-body>p,.merchant-start p){color:#687364}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) :is(.notice,.badge,.permission-chip,.overview .todo-grid,.overview .quick-actions,th,.table thead th){color:#4c6250}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) button.primary{background:#536f58;border-color:#536f58;color:#fffdf5}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav button{color:#c1cbbf}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav button.selected{color:#dcebc9;background:#ffffff12}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .table tbody tr:hover{background:#e6e9da}

/* Keep shared calendars consistent with the selected console palette. */
html[data-merchant-theme] body:not(:has(.login-page)) :is(.report-multi,.report-multi>div){background:var(--merchant-input);color:inherit;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .report-multi>div label{color:inherit}
html[data-merchant-theme] body:not(:has(.login-page)) .report-multi>div label:hover{background:color-mix(in srgb,var(--merchant-accent) 16%,transparent)}
html[data-merchant-theme] body:not(:has(.login-page)) .date-range input{background:var(--merchant-input)!important;color:inherit;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.range-picker,.single-calendar){background:var(--merchant-surface);color:inherit;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .range-picker :is(.range-shortcuts,.range-picker-footer){background:var(--merchant-surface)!important;color:inherit!important;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.calendar-navigation,.calendar-month,.calendar-week){color:inherit;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.calendar-days button,.calendar-navigation button,.range-shortcuts button){background:transparent;color:inherit;border-color:transparent;box-shadow:none}
html[data-merchant-theme] body:not(:has(.login-page)) .calendar-days button{border-radius:6px}
html[data-merchant-theme] body:not(:has(.login-page)) .calendar-days button.outside{color:var(--muted);opacity:.45}
html[data-merchant-theme] body:not(:has(.login-page)) .calendar-days button.in-range{background:color-mix(in srgb,var(--merchant-accent) 16%,transparent);border-radius:0}
html[data-merchant-theme] body:not(:has(.login-page)) .calendar-days button.selected{background:var(--merchant-accent);color:var(--merchant-bg);opacity:1;font-weight:700}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.calendar-days button,.calendar-navigation button,.range-shortcuts button):hover{background:color-mix(in srgb,var(--merchant-accent) 22%,transparent);color:inherit}
html[data-merchant-theme] body:not(:has(.login-page)) .range-picker-footer button{background:var(--merchant-input);color:inherit;border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .range-picker-footer [data-confirm]{background:var(--merchant-accent);color:var(--merchant-bg);border-color:var(--merchant-accent)}
html[data-merchant-theme] body:not(:has(.login-page)) .bounded-selection{color:var(--merchant-accent)}
/* Keep navigation readable against its dark surface in the warm palette. */
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav button{color:#c8d4c8!important;background:transparent!important;border-color:transparent}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav button.selected{color:#eff5dc!important;background:#ffffff16!important}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav button:hover{color:#fffdf0!important;background:#ffffff12!important}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .backend-nav nav details>summary{color:#adbdaf!important;background:transparent!important;border-color:transparent}

html[data-merchant-theme] .boot-shell{background:var(--merchant-bg);color:#deebef}
html[data-merchant-theme] :is(.boot-top,.boot-card){background:var(--merchant-surface);color:#deebef;border-color:#33474f}
html[data-merchant-theme] .boot-sidebar{background:var(--merchant-nav)}
html[data-merchant-theme] .boot-line{background:var(--merchant-input)}
html[data-merchant-theme="warm"] :is(.boot-shell,.boot-top,.boot-card){color:#37443b;border-color:#d4d7c5}
html[data-merchant-theme] body:not(:has(.login-page)){--theme-text:#deebef}
html[data-merchant-theme="warm"] body:not(:has(.login-page)){--theme-text:#37443b}
html[data-merchant-theme] body:not(:has(.login-page)) .workspace-tab{background:var(--merchant-input);color:var(--theme-text);border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .workspace-tab.active{background:var(--merchant-accent);color:#102127}
html[data-merchant-theme] body:not(:has(.login-page)) .workspace-tab button{color:inherit!important}
html[data-merchant-theme] body:not(:has(.login-page)) main :is(.date-range,.search-select){background:var(--merchant-input);border-color:var(--line);border-radius:8px}
html[data-merchant-theme] body:not(:has(.login-page)) main details>summary{border-radius:7px;box-shadow:none}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.order-filter-meta,.order-filter-bar){border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) input::placeholder{color:#9aaeb4;opacity:1}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) input::placeholder{color:#697468}
html[data-merchant-theme] body:not(:has(.login-page)) .empty-state strong{color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .merchant-center{background:var(--merchant-input);border-color:var(--line);color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .merchant-center>label{color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .merchant-center .actions{border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.merchant-center button:disabled,#merchant-site-tabs button:disabled){background:var(--merchant-accent);color:#102127;border-color:var(--merchant-accent)}
html[data-merchant-theme] body:not(:has(.login-page)) .overview :is(.kpi-top,.value small,.stat-row>span,.chart-legend,.view-toolbar,.muted){color:#acbfc6}
html[data-merchant-theme] body:not(:has(.login-page)) .overview :is(.kpi-icon,.pill){background:var(--merchant-input);color:var(--merchant-accent);border:1px solid var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .trend-inspector output{color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .overview .chart text{fill:#acbfc6}
html[data-merchant-theme] body:not(:has(.login-page)) .overview .chart .chart-value{fill:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .overview .chart-grid{stroke:var(--line)}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .overview :is(.kpi-top,.value small,.stat-row>span,.chart-legend,.view-toolbar,.muted){color:#687364}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .overview .chart text{fill:#687364}
html[data-merchant-theme="warm"] body:not(:has(.login-page)) .overview .chart .chart-value{fill:#37443b}

.boot-shell.boot-minimal{min-height:100svh;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;color:var(--muted);background:transparent}.boot-spinner{width:18px;height:18px;border:2px solid #80968d40;border-top-color:var(--merchant-accent,#087f6a);border-radius:50%;animation:boot-spin .8s linear infinite}@keyframes boot-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.boot-spinner{animation:none}}

/* Keep manual fund workflow guidance consistent with the selected console theme. */
html[data-merchant-theme] body:not(:has(.login-page)) .fund-workflow{background:var(--merchant-input);color:var(--theme-text);border:1px solid var(--line);box-shadow:none}

html[data-merchant-theme] body:not(:has(.login-page)) .security-profile{background:var(--merchant-input);border:1px solid var(--line);color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .security-profile strong{color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.security-profile small,.security-setting p){color:var(--muted)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.security-settings,.security-setting){border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) .security-avatar{background:var(--merchant-surface);color:var(--merchant-accent);border:1px solid var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) #dialog-close-x{background:var(--merchant-input);color:var(--theme-text);border-color:var(--line)}
@media(max-width:480px){.security-setting{padding:16px 12px;gap:12px}.security-profile{padding:14px}.security-profile>div{min-width:0}.security-profile strong{overflow-wrap:anywhere}.security-setting>div{min-width:0}}

html[data-merchant-theme] body:not(:has(.login-page)) #global-header .avatar{display:grid;place-items:center;flex-shrink:0;background:var(--merchant-input);color:var(--merchant-accent);border:1px solid var(--line);font-weight:700}

#channel-time-label[hidden]{display:none}

/* Keep the current payout section visible as the selected tab, not as a disabled control. */
.payout-section-nav{margin:0 0 16px}.payout-section-nav button{min-height:38px}.payout-section-nav button.active{background:var(--merchant-accent,#78d7bd);border-color:var(--merchant-accent,#78d7bd);color:#102127;font-weight:700;cursor:default}
.payout-state{font-weight:700}.payout-state.is-bound,.payout-state.is-ready{color:#75dbc0}.payout-state.is-cooling{color:#f2cb79}.payout-state.is-missing{color:#afc0c4}

.page-head .page-refresh{margin-left:auto;flex-shrink:0}.page-head>.actions:empty{display:none}@media(max-width:600px){.page-head{flex-wrap:wrap;gap:12px}.page-head .page-refresh{margin-left:0}}

#channel-auto-fields[hidden],#channel-end-label[hidden]{display:none}

#channel-stop-label[hidden]{display:none}

#channel-publish-records .channel-record-actions{overflow:visible;white-space:nowrap}#channel-publish-records .channel-record-actions button+button{margin-left:8px}
.record-time-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}.record-time-filter>.date-range{width:min(520px,100%);margin:0}.record-time-filter>span{font-size:12px;color:var(--muted)}
html[data-merchant-theme] body:not(:has(.login-page)) .table-wrap tbody tr{background:transparent;color:var(--theme-text,inherit)}
html[data-merchant-theme] body:not(:has(.login-page)) .table-wrap tbody tr:hover{background:#ffffff08}
html[data-merchant-theme] body:not(:has(.login-page)) .table-wrap td a{color:var(--merchant-accent)}
.page-usage-guide li{margin:12px 0;line-height:1.8}
/* Shared panels must inherit the console palette, including secondary dialogs. */
html[data-merchant-theme] body:not(:has(.login-page)) :is(dialog pre,.setup-example,.empty-select,.fund-account-summary,.fund-note-history,#action-form fieldset,#batch-sites-list label,#action-form.batch-rates-form>label:has([name=confirmed]),#action-form .channel-product-options,#action-form .channel-product-option,#action-form>label.unpaid-confirmation,#action-form .unpaid-reasons){background:var(--merchant-input);color:var(--theme-text);border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.bounded-time-footer,.calendar-week){border-color:var(--line)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.bounded-time-columns select,.bounded-time-columns option){background:var(--merchant-input);color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) :is(.table-wrap, .table-wrap table, .table-wrap tbody, .table-wrap td){background:transparent;color:var(--theme-text)}
html[data-merchant-theme] body:not(:has(.login-page)) .table-wrap th{background:var(--merchant-input);color:var(--theme-text)}

.order-actions{white-space:nowrap}.order-actions button{padding:6px 12px;margin:0 4px}.receipt-button{color:#338bff;border-color:#8cbcff;background:#338bff12}.order-state{font-weight:600}.order-state-success{color:#65bc39}.order-state-failed{color:#f16c6c}.order-state-pending,.order-state-processing,.order-state-awaiting_channel{color:#dbab50}.order-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin:16px 0}.order-summary article,.order-panel{border:1px solid var(--border,#52636a);border-radius:8px;padding:22px}.order-summary strong{display:block;font-size:22px;overflow-wrap:anywhere;margin-top:12px}.order-summary span{opacity:.7}.order-status-card.paid{background:#65bc39;color:#fff}.order-status-card.failed{background:#ca5353;color:#fff}.order-panel{margin:18px 0}.order-timeline{display:grid;grid-template-columns:repeat(5,1fr);padding:0;list-style:none}.order-timeline li{position:relative;display:flex;flex-direction:column;gap:12px;opacity:.65;padding-right:12px}.order-timeline li:before{content:"";height:1px;background:#71808b;position:absolute;top:15px;left:30px;right:0}.order-timeline li:last-child:before{display:none}.order-timeline b{width:30px;height:30px;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;background:var(--panel,#172a30);z-index:1}.order-timeline .done{color:#65bc39;opacity:1}.order-timeline small{line-height:1.6;overflow-wrap:anywhere}.order-fields{display:grid;grid-template-columns:1fr 1fr;margin:18px 0 0}.order-fields>div{display:grid;grid-template-columns:110px 1fr;border:1px solid #71808b35}.order-fields dt,.order-fields dd{margin:0;padding:12px;overflow-wrap:anywhere}.order-fields dt{background:#71808b14;font-weight:600}.order-voucher{display:block;max-width:100%;max-height:65vh;margin:18px auto;border-radius:8px}#dialog:has(.order-summary){max-width:1050px;width:94vw}@media(max-width:700px){.order-summary{grid-template-columns:1fr}.order-fields{grid-template-columns:1fr}.order-timeline{grid-template-columns:1fr 1fr;gap:20px}}

.order-timeline .done:before{background:#65bc39;height:3px}.order-timeline .skipped{opacity:.8}.order-timeline .error{color:#f16c6c;opacity:1}

.support-rules{margin:20px 0 28px}.support-rules>h3{font-size:18px;margin:0 0 16px}.support-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.support-rule-card{border:1px solid var(--line);border-radius:10px;padding:18px 20px}.support-rule-card h4{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:15px}.support-rule-card h4 span{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:7px;background:#087f73;color:#fff;font-size:13px}.support-rule-card ul{margin:0;padding-left:20px}.support-rule-card li{padding-left:3px;margin:0 0 9px;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.support-rule-card li:last-child{margin-bottom:0}@media(max-width:1000px){.support-rules-grid{grid-template-columns:1fr}}

.delivery-records{margin:24px 0;border:1px solid var(--line);border-radius:10px;padding:16px}.delivery-records>summary{cursor:pointer;font-size:16px;font-weight:600;line-height:1.6}.delivery-records>summary span{font-size:13px;font-weight:400;opacity:.75}.delivery-records[open]>summary{margin-bottom:16px}

.backend-nav{overflow-anchor:none;scrollbar-gutter:stable}

.api-credential-field{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:9px}.api-credential-field label{font-weight:600;margin:0 0 10px}.api-credential-field textarea{width:100%;box-sizing:border-box;min-height:70px;resize:vertical;font-family:monospace;line-height:1.6;overflow-wrap:anywhere}.api-credential-field p{font-size:13px;line-height:1.7;margin:8px 0}.api-credential-field [role=status]{margin-left:12px;font-size:13px}

.activity-record{margin:10px 0;padding:14px 18px}.activity-record summary{cursor:pointer;line-height:1.7;overflow-wrap:anywhere}.activity-record summary::marker{color:var(--accent,#69dfbd)}.activity-record-detail{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid var(--line);padding-top:14px;margin:14px 0 0}.activity-record[open]{background:var(--panel,#102a32)}

.activity-record-group{border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0}.activity-record-group>summary{cursor:pointer;font-weight:700;line-height:1.8}.activity-record-group[open]>summary{margin-bottom:16px}.activity-record-group>summary::marker{color:var(--accent,#69dfbd)}


/* API credential dialog */
#dialog:has(.api-credentials){width:720px;max-width:90vw;padding:30px;box-sizing:border-box}
.api-credentials .api-credentials-header{display:block;background:transparent;color:#e1eff2;position:static;margin:0;box-shadow:none;padding:0 38px 20px 0;border-bottom:1px solid var(--line)}
.api-credentials-tag{color:#69d5bf;font-size:12px;font-weight:700;letter-spacing:1px}
.api-credentials h2{margin:10px 0 8px;border:0;padding:0;font-size:25px}
.api-credentials .api-credentials-header p{margin:0;color:#a6bec5;font-size:14px}
.api-credentials .api-credential-field{padding:20px;margin:18px 0;border-radius:12px;background:#102329;border:1px solid #35515a}
.api-credential-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.api-credential-heading label{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;color:#e1eff2}
.api-credential-step{font:12px monospace;color:#70dac3;background:#62cfb51c;padding:6px;border-radius:6px}
.api-credential-badge{font:12px monospace;color:#a9c2ca;border:1px solid #35515a;border-radius:5px;padding:5px 8px}
.api-credential-value{display:flex;align-items:center;gap:8px;border:1px solid #41616a;border-radius:8px;padding:4px 8px;background:#0b1b21}
.api-credential-value input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;font:14px monospace;color:#deedf0;padding:12px 6px;width:100%}
.api-credential-value button{padding:7px 10px;flex-shrink:0}
.api-credential-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px}
.api-credential-footer p{color:#a9bdc4;margin:0!important;font-size:12px!important;line-height:1.6}
.api-credential-footer button{flex-shrink:0;background:#61d0b8;color:#0d2528;border-color:#61d0b8;font-weight:700;padding:9px 14px}
.api-credentials [role=status]{display:block;min-height:0;margin:8px 0 0;color:#72dfbf}
.api-credentials [role=status]:empty{display:none}
.api-credential-note{padding:14px 16px;border-left:3px solid #4b7b82;background:#527b8212;border-radius:5px}
.api-credential-note strong{font-size:13px;color:#c5dadf}
.api-credential-note p{font-size:12px;line-height:1.7;color:#a9bdc4;margin:6px 0 0}

.table :is(th,td):is([data-column="remark"],[data-column="details"],[data-column="note"],[data-column="result_note"],[data-column="reason"]){text-align:center;vertical-align:middle}

.merchant-daily-report .table{max-height:65vh;overflow:auto}.merchant-daily-report th{position:sticky;top:0;background:var(--panel,#172a30);z-index:1}.merchant-daily-report :is(th,td){text-align:center;vertical-align:middle}.merchant-daily-report tbody tr:nth-child(even){background:#87a9ad08}.merchant-daily-report h3{margin:20px 0 12px}.merchant-report-details{margin-top:22px}.merchant-report-details>summary{cursor:pointer;font-weight:600;padding:14px;border:1px solid var(--line);border-radius:8px}.merchant-daily-report [data-column="date"]{position:sticky;left:0;background:var(--panel,#172a30)}.merchant-daily-report th[data-column="date"]{z-index:2}

/* Dialog content must not inherit the global navigation layout. */
#dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}
#modal{min-width:0;overflow-wrap:anywhere}
#modal :is(input,select,textarea){max-width:100%;box-sizing:border-box}
#modal pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
#modal .api-credential-note{position:static;inset:auto;width:auto;transform:none;display:block;overflow:visible}
@media(max-width:600px){
 #dialog,#dialog:has(.api-credentials){padding:18px;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}
 #action-form .grid{grid-template-columns:minmax(0,1fr)}
 .api-credential-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .api-credential-footer{align-items:stretch;flex-direction:column;gap:12px}
 .api-credential-footer button{align-self:flex-start;white-space:normal}
 .api-credentials .api-credential-field{padding:14px}
 .order-fields>div{grid-template-columns:minmax(80px,100px) minmax(0,1fr)}
}

/* Wide audit tables keep their columns readable on desktop. */
#dialog:has(#daily-finance-date){width:min(1200px,calc(100vw - 32px))}

/* Readable account identity during authenticator verification. */
.login-card .auth-account{font-size:16px;line-height:1.6;padding:14px 16px;color:#284c47;overflow-wrap:anywhere}
.login-card .auth-account strong{font-size:20px;font-weight:750;color:#087f6a}

/* Announcement colors apply on login screens as well as signed-in pages. */
html #dialog:has(.merchant-announcement){background:#172d33;color:#e4f0f1;border:1px solid #416069;max-height:calc(100dvh - 32px);padding:0;color-scheme:dark}
html #dialog #modal .merchant-announcement{background:transparent;color:inherit;box-sizing:border-box}
html #dialog #modal .merchant-announcement h2{color:#e4f0f1;font-size:22px}
html #dialog #modal .merchant-announcement .announcement-body{color:#ccdee2;font-size:16px;max-height:50dvh}
html #dialog #modal .merchant-announcement .announcement-heading,html #dialog #modal .merchant-announcement .announcement-actions{border-color:#416069}
html body:has(.login-page) #dialog:has(.merchant-announcement),html[data-merchant-theme="warm"] #dialog:has(.merchant-announcement){background:#f5f9f8;color:#203b42;border-color:#cfdfdc;color-scheme:light}
html body:has(.login-page) #dialog #modal .merchant-announcement h2,html[data-merchant-theme="warm"] #dialog #modal .merchant-announcement h2{color:#203b42}
html body:has(.login-page) #dialog #modal .merchant-announcement .announcement-body,html[data-merchant-theme="warm"] #dialog #modal .merchant-announcement .announcement-body{color:#38505a}
html body:has(.login-page) #dialog #modal .merchant-announcement .announcement-heading,html body:has(.login-page) #dialog #modal .merchant-announcement .announcement-actions,html[data-merchant-theme="warm"] #dialog #modal .merchant-announcement .announcement-heading,html[data-merchant-theme="warm"] #dialog #modal .merchant-announcement .announcement-actions{border-color:#cfdfdc}
@media(max-width:600px){html #dialog #modal .merchant-announcement{padding:22px}html #dialog #modal .merchant-announcement .announcement-body{max-height:45dvh}}

/* Keep order search compact in both merchant and platform filters. */
.order-filter-bar>.order-search-button{width:36px;min-width:36px;height:36px;padding:0;justify-self:end;border-radius:5px!important;background:#175348!important;font-size:21px;box-sizing:border-box}
.order-filter-bar>.order-search-button:hover{background:#20695b!important}
@media(min-width:1201px){.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 36px 44px}}

/* Order actions share the console palette and align with the filter inputs. */
html .order-filter-bar>.order-search-button,html .order-filter-bar>.order-export-button{height:36px;min-height:36px;margin:0;padding:0;align-self:center;border:1px solid var(--line,#35534f)!important;border-radius:6px!important;background:var(--merchant-input,#102a29)!important;color:var(--merchant-accent,#78d7bd)!important;box-sizing:border-box;font-weight:600;line-height:1;box-shadow:none}
html .order-filter-bar>.order-search-button{width:36px;min-width:36px;justify-self:end;font-size:21px}
html .order-filter-bar>.order-export-button{width:60px;min-width:60px;justify-self:start;font-size:13px}
html .order-filter-bar>.order-search-button:hover,html .order-filter-bar>.order-export-button:hover{background:var(--merchant-surface,#1b403b)!important;border-color:var(--merchant-accent,#78d7bd)!important}
html .order-filter-bar>.order-search-button:focus-visible,html .order-filter-bar>.order-export-button:focus-visible{outline:2px solid var(--merchant-accent,#78d7bd);outline-offset:2px}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 36px 60px}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 36px 60px}}
@media(max-width:1200px){html .order-filter-bar>.order-search-button{justify-self:end}html .order-filter-bar>.order-export-button{justify-self:start}}

/* Shared query/export actions across reports, records and order pages. */
html .console-filter-action,html a.export-link,html a[href*=".csv"],html .order-filter-bar>.order-search-button,html .order-filter-bar>.order-export-button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:auto;min-width:80px;min-height:42px;height:42px;padding:0 18px;box-sizing:border-box;border:1px solid var(--line,#35534f)!important;border-radius:6px!important;background:var(--merchant-input,#102a29)!important;color:var(--merchant-accent,#78d7bd)!important;font-size:15px;font-weight:600;line-height:1.2;text-decoration:none;box-shadow:none}
html .order-filter-bar>.order-search-button{width:42px;min-width:42px;padding:0;font-size:24px}
html .order-filter-bar>.order-export-button{width:80px;min-width:80px;padding:0 14px}
html .console-filter-action:hover,html a.export-link:hover,html a[href*=".csv"]:hover{background:var(--merchant-surface,#1b403b)!important;border-color:var(--merchant-accent,#78d7bd)!important}
html .console-filter-action:focus-visible,html a.export-link:focus-visible,html a[href*=".csv"]:focus-visible{outline:2px solid var(--merchant-accent,#78d7bd);outline-offset:2px}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 42px 80px}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 42px 80px}}

/* Larger shared actions for both platform and merchant consoles. */
html .console-filter-action,html .order-export-button,html a.export-link,html a[href*=".csv"],html .order-filter-bar>.order-search-button,html .order-filter-bar>.order-export-button{display:inline-flex;align-items:center;justify-content:center;min-width:92px;min-height:48px;height:48px;padding:0 20px;box-sizing:border-box;border:1px solid var(--line,#35534f)!important;border-radius:7px!important;background:var(--merchant-input,#102a29)!important;color:var(--merchant-accent,#78d7bd)!important;font-size:16px;font-weight:600;line-height:1.2;text-decoration:none;box-shadow:none}
html .order-filter-bar>.order-search-button{width:48px;min-width:48px;padding:0;font-size:27px}
html .order-filter-bar>.order-export-button{width:92px;min-width:92px;padding:0 18px}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 48px 92px}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 48px 92px}}

/* Enlarge the action area while keeping labels at a normal reading size. */
html .console-filter-action,html .order-export-button,html a.export-link,html a[href*=".csv"],html .order-filter-bar>.order-export-button{font-size:14px!important;min-height:48px;height:48px;min-width:92px;padding:0 20px;align-self:center}
html .order-filter-bar>.order-search-button{font-size:24px!important;width:48px;min-width:48px;height:48px}
.actions>.console-filter-action,.record-time-filter>.console-filter-action{margin-top:0;margin-bottom:0;vertical-align:middle}

/* Make the action area visibly larger without enlarging its text. */
html .console-filter-action,html .order-export-button,html a.export-link,html a[href*=".csv"],html .order-filter-bar>.order-export-button{height:56px!important;min-height:56px!important;min-width:112px!important;padding:0 24px!important;font-size:14px!important}
html .order-filter-bar>.order-search-button{width:56px!important;min-width:56px!important;height:56px!important;min-height:56px!important;padding:0!important;font-size:24px!important}
html .order-filter-bar>.order-export-button{width:112px!important}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 56px 112px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 56px 112px!important}}

html .order-filter-bar>.order-search-button{width:64px!important;min-width:64px!important;height:64px!important;min-height:64px!important;font-size:32px!important}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 64px 112px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 64px 112px!important}}

html .order-filter-bar>.order-search-button{width:128px!important;min-width:128px!important;height:128px!important;min-height:128px!important;font-size:48px!important}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 128px 112px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 128px 112px!important}}

/* Match the search action to the adjacent amount input. */
html .order-filter-bar>.order-search-button{width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 16px!important;border:1px solid var(--line,#35534f)!important;border-radius:6px!important;background:var(--merchant-input,#102a29)!important;font-size:24px!important}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(5,minmax(90px,1fr)) 112px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 112px!important}}

/* Compact rectangular search action, matching the amount field height. */
html .order-filter-bar>.order-search-button{width:80px!important;min-width:80px!important;height:40px!important;min-height:40px!important;justify-self:end}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 80px 112px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 80px 112px!important}}

/* Unified compact query, export and reset controls in both consoles. */
html .console-filter-action,html .order-export-button,html a.export-link,html a[href*=".csv"],html .order-filter-bar>.order-search-button,html .order-filter-bar>.order-export-button{width:80px!important;min-width:80px!important;height:40px!important;min-height:40px!important;padding:0 12px!important;align-self:center;box-sizing:border-box;margin-top:0;margin-bottom:0}
@media(min-width:1201px){.order-filter-bar{grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(4,minmax(90px,1fr)) 80px 80px!important}.order-filter-bar:not(:has(input[name=upstreamOrderId])){grid-template-columns:minmax(355px,2.4fr) minmax(120px,1fr) repeat(3,minmax(90px,1fr)) 80px 80px!important}}

/* Template downloads have longer labels than export actions. */
html a.export-link[href*="/templates/"],html a[href*="/templates/"][href*=".csv"]{width:auto!important;min-width:0!important;max-width:100%;height:40px!important;min-height:40px!important;padding:0 16px!important;white-space:nowrap;font-size:14px!important;line-height:1.2}

/* Account-change filters use compact fields instead of the order grid. */
html #account-change-filter>.order-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;grid-template-columns:none!important}
html #account-change-filter .order-filter-bar>select{width:160px!important;flex:0 0 160px;height:40px}
html #account-change-filter .order-filter-bar>select[name=currency]{width:110px!important;flex-basis:110px}
html #account-change-filter .order-filter-bar>.date-range{width:360px;max-width:100%;flex:0 1 360px}
html #account-change-filter .order-filter-bar>.console-filter-action{flex:0 0 80px}

/* Keep date summaries inside their 40px outline without a second bottom line. */
html .order-filter-bar>.date-range>summary{height:100%;min-height:0;box-sizing:border-box;padding:0 10px;border:0!important;margin:0;line-height:normal;background:transparent!important}

html a.export-link[href*="/reconciliation/template.csv"]{width:auto!important;min-width:0!important;max-width:100%;padding:0 16px!important;white-space:nowrap;line-height:1.2}

#tg-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
#tg-tools .tg-action-group{padding:16px;border:1px solid var(--line,#35534f);border-radius:9px;min-width:0}
#tg-tools .tg-action-group h3{margin:0 0 12px;font-size:14px;color:var(--merchant-accent,#78d7bd)}
#tg-tools .actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#tg-tools button{margin:0;font-size:13px;padding:9px 12px}
.tg-upstream-panel{margin:20px 0;padding:14px 16px;border:1px solid var(--line,#35534f);border-radius:9px}
.tg-upstream-panel>summary{cursor:pointer;font-size:14px;font-weight:600}
.tg-upstream-panel[open]>summary{margin-bottom:16px}
@media(max-width:1100px){#tg-tools{grid-template-columns:1fr}}

.channel-announcements-tools{display:flex;flex-wrap:wrap;gap:10px;padding:8px 0 18px!important}
.channel-announcements-tools button{margin:0;min-height:40px;font-size:14px;padding:0 16px}
.channel-announcements-layout>.notice{margin:0 0 20px}
.channel-directory,.channel-announcements-layout>.channel-post-history{border:1px solid var(--line,#35534f);border-radius:9px;padding:16px;margin:18px 0;background:transparent}
.channel-directory>summary,.channel-announcements-layout>.channel-post-history>summary{cursor:pointer;font-weight:600;font-size:14px;padding:0!important}
.channel-directory[open]>summary,.channel-announcements-layout>.channel-post-history[open]>summary{margin-bottom:16px}
.channel-active-plans{border:1px solid var(--line,#35534f);border-radius:9px;padding:18px;margin:18px 0}
.channel-active-plans>h3{margin:0 0 16px;color:var(--merchant-accent,#78d7bd);font-size:15px}
.channel-active-plans .table{margin:0}
.channel-announcements-layout td:last-child{white-space:nowrap}
.channel-announcements-layout td:last-child button{margin:0 6px 0 0;padding:8px 12px}

/* Reconciliation filters: keep actions separate and aligned. */
#reconcile-history-search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:16px 0 20px}
#reconcile-history-search>label{margin:0}
#reconcile-history-search>button,#reconcile-history-search>a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 80px;width:80px;height:40px;min-height:40px;margin:0;padding:0 14px;border:1px solid var(--line,#35534f);border-radius:8px;background:var(--input-bg,#10252a);font:inherit;font-size:14px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;color:var(--merchant-accent,#78d7bd)}
#reconcile-history-search>#reconcile-history-reset{color:var(--text,#dce8ec)}
#reconcile-history-search>button[type=submit]{margin-left:8px}
#reconcile-history-search>button:hover,#reconcile-history-search>a:hover{border-color:var(--merchant-accent,#78d7bd)}

.reconcile-group-picker{border:1px solid var(--line,#35534f);border-radius:8px;padding:12px;margin:0 0 18px;max-height:280px;overflow:auto}.reconcile-group-picker>label{display:flex;align-items:center;gap:10px;padding:10px;margin:0}.reconcile-group-picker input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}

#reconcile-history-search .reconcile-time-range{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:16px;min-width:0;margin:0;padding:12px 14px 14px;border:1px solid var(--line,#35534f);border-radius:10px;background:var(--merchant-input,#10252a)}
#reconcile-history-search .reconcile-time-range legend{padding:0 8px;color:var(--theme-text,#dce8ec);font-size:14px;font-weight:600}
#reconcile-history-search .reconcile-time-range>label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:13px}
#reconcile-history-search .reconcile-time-range input{box-sizing:border-box;width:100%;height:40px;margin:0;font-size:14px;font-variant-numeric:tabular-nums}
#reconcile-history-search .reconcile-time-range .bounded-time-picker{margin:0}
#reconcile-history-search .reconcile-time-range .bounded-time-picker>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px!important;border:1px solid var(--line,#35534f);border-radius:7px;color:var(--merchant-accent,#78d7bd);background:transparent;list-style:none;font-size:13px}
#reconcile-history-search .reconcile-time-range .bounded-time-picker>summary::-webkit-details-marker{display:none}
#reconcile-history-search .reconcile-time-range .bounded-time-picker[open]>summary{border-color:var(--merchant-accent,#78d7bd)}
@media(max-width:640px){#reconcile-history-search .reconcile-time-range{grid-template-columns:minmax(0,1fr);width:100%;box-sizing:border-box}}

/* Shared interval control across platform and merchant filters. */
main .date-range:not(.campaign-date-range){box-sizing:border-box;min-height:40px;border-radius:8px}
main .date-range:not(.campaign-date-range)>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;height:40px;margin:0;padding:0 12px!important;border:0!important;background:transparent!important;line-height:normal;font-size:13px}
#reconcile-history-search>.reconcile-date-range{flex:0 1 440px;width:440px;max-width:100%;height:40px;margin:0}
#reconcile-history-search>.reconcile-date-range .range-picker button{width:auto;height:auto;margin:0}
@media(max-width:640px){#reconcile-history-search>.reconcile-date-range{flex-basis:100%;width:100%}}

/* Give both shared calendars enough space for readable, clickable dates. */
html .date-range .range-picker .calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:36px;gap:3px 0}
html .date-range .range-picker .calendar-days button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;line-height:1!important;font-size:13px}
html .date-range .range-picker .calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:32px;align-items:center;text-align:center;font-size:12px}
html .date-range .range-picker .calendar-month{padding:12px 0;line-height:1.4;font-size:15px;text-align:center}
html .date-range .range-picker .dual-calendar{gap:20px;padding:8px 0 12px}
html .date-range .range-picker .range-picker-footer{padding:12px 14px;min-height:44px}

.overview a.kpi-shortcut{display:block;color:inherit;text-decoration:none;cursor:pointer}.overview a.kpi-shortcut:hover{border-color:var(--merchant-accent,#63d5be)}.overview a.kpi-shortcut:focus-visible{outline:2px solid var(--merchant-accent,#63d5be);outline-offset:3px}
.api-credential-heading label{align-items:flex-start;text-align:left}.api-credential-heading .api-credential-step{align-self:flex-start;margin-left:0;margin-right:auto}
/* Login errors stay visible at the upper right in both portals. */
body:has(.login-page) #error:not(:empty){top:24px;right:24px;bottom:auto;margin:0;max-width:min(440px,calc(100vw - 48px));padding:16px 20px;border-left:4px solid #cf4935;font-size:16px;font-weight:600;line-height:1.6;z-index:1000;box-shadow:0 8px 28px #0003;overflow-wrap:anywhere}
@media(max-width:780px){body:has(.login-page) #error:not(:empty){top:16px;right:16px;max-width:calc(100vw - 32px)}}

/* Authenticator dialog: centered content with theme-aware surfaces. */
#dialog:has(.totp-binding){width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;background:var(--merchant-surface,#fff);color:var(--theme-text,inherit);border-color:var(--line,#dce6eb)}
#dialog:has(.totp-binding) #modal{text-align:center;min-width:0}
#dialog:has(.totp-binding) #modal h2{padding-left:40px;text-align:center}
#dialog .totp-binding{width:100%;max-width:420px;margin:0 auto;text-align:center}
#dialog .totp-binding p{max-width:100%;line-height:1.7;overflow-wrap:anywhere}
#dialog .totp-qr{display:block;width:min(258px,100%);height:auto;max-width:100%;margin:18px auto;background:#fff;border:8px solid #fff;border-radius:8px;box-sizing:border-box}
#dialog .totp-binding details{width:100%;margin:16px auto;text-align:center}
#dialog .totp-binding summary{cursor:pointer;line-height:1.6;white-space:normal}
#dialog .totp-secret{max-width:100%;margin:12px 0;padding:12px;border:1px solid var(--line,#dce6eb);border-radius:8px;background:var(--merchant-input,#f4f6f8);color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;text-align:center}
#dialog:has(.totp-binding) #modal>button{display:none}
#dialog:has(.totp-binding) #dialog-close{display:block;margin:18px auto 0}
@media(max-width:480px){#dialog:has(.totp-binding){padding:20px 16px}#dialog .totp-qr{width:min(240px,100%)}#dialog:has(.totp-binding) #modal h2{font-size:18px}}

/* Soften QR white while retaining dark modules and a clear quiet zone. */
#dialog .totp-qr{filter:brightness(.94);box-shadow:0 0 0 1px var(--line,#dce6eb)}

/* Go-live confirmation checkboxes align with their labels. */
#action-form:has(select[name="mode"])>label:has(input[name="confirmTestOnly"]),#action-form:has(input[name="confirmName"])>label:has(input[name="confirmTestOnly"]){display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;text-align:left;line-height:1.65}
#action-form input[type="checkbox"][name="confirmTestOnly"]{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:3px 0 0;padding:0}

/* Keep pagination labels beside their controls across themes and mobile layouts. */
label.page-size-control{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:auto!important;min-width:0!important;margin:0 0 0 12px!important;white-space:nowrap;align-self:center;font-size:13px}
label.page-size-control>select{width:100px!important;min-width:0!important;margin:0!important;flex:none;height:40px}

html a.merchant-report-export[href*=".csv"]{width:auto!important;min-width:160px!important;max-width:100%;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;flex-shrink:0;line-height:1.2!important}
.activity-search{flex:1;min-width:240px}.activity-search input{width:100%}.runtime-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.runtime-summary span{margin-left:auto}.runtime-quick-times{margin-top:10px}.activity-record summary{overflow-wrap:anywhere}.activity-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.global-search{display:flex;gap:10px;align-items:center;padding:12px 24px;border-bottom:1px solid var(--line,#35534f)}.global-search input{flex:1;min-width:0;max-width:640px;margin:0!important}.global-search button{white-space:nowrap}@media(max-width:640px){.global-search{padding:10px 12px}}
#activity-filter.aligned-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}#activity-filter.aligned-filter>label{display:flex;flex-direction:column;gap:6px;min-width:120px;margin:0}#activity-filter.aligned-filter input:not([type=checkbox]),#activity-filter.aligned-filter select{box-sizing:border-box;height:40px;margin:0!important}#activity-filter.aligned-filter>.check-line{flex-direction:row;align-items:center;min-width:auto;min-height:40px}#activity-filter.aligned-filter>.check-line input{width:16px;height:16px;margin:0}#activity-filter.aligned-filter>button{height:40px;margin:0}.runtime-quick-times{justify-content:flex-start}
.merchant-home{--mh-accent:var(--merchant-accent,#62d6bd);display:grid;gap:20px}.mh-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.merchant-home h2{font-size:20px;margin:0}.mh-intro h2{font-size:28px}.mh-caption,.mh-stats span{color:var(--muted,#a8bdc3);font-size:13px}.mh-intro p{margin:10px 0 0}.mh-mode{display:inline-block;padding:3px 9px;margin-left:8px;border-radius:5px;background:color-mix(in srgb,var(--mh-accent) 12%,transparent);color:var(--mh-accent)}.mh-funds{display:grid;grid-template-columns:1.4fr 1fr;border:1px solid var(--line,#35534f);border-radius:14px;overflow:hidden}.mh-balance{padding:28px;background:color-mix(in srgb,var(--mh-accent) 8%,transparent)}.mh-fees{padding:28px}.mh-big{font-size:42px;font-weight:600;letter-spacing:-1.5px;margin:16px 0;font-variant-numeric:tabular-nums}.mh-big small,.mh-amount small{font-size:14px;font-weight:400;letter-spacing:0;color:var(--muted,#a8bdc3)}.mh-link{color:var(--mh-accent);text-decoration:none;white-space:nowrap}.mh-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.mh-panel{padding:24px;border:1px solid var(--line,#35534f);border-radius:14px}.mh-amount{font-size:30px;letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin:14px 0 24px}.mh-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mh-stats strong{display:block;margin-top:8px;font-size:20px;font-variant-numeric:tabular-nums}.mh-track{height:7px;border-radius:6px;background:color-mix(in srgb,var(--mh-accent) 10%,transparent);margin-top:24px;overflow:hidden}.mh-track span{display:block;height:100%;background:var(--mh-accent)}.mh-task{padding:18px 0;border-top:1px solid var(--line,#35534f)}.mh-task:first-of-type{margin-top:20px}.mh-task strong{margin-left:auto}.mh-foot{margin:0}@media(max-width:700px){.mh-funds,.mh-columns{grid-template-columns:1fr}.mh-big{font-size:34px}.mh-intro h2{font-size:23px}.mh-panel,.mh-balance,.mh-fees{padding:20px}}
/* Merchant overview interaction: no looping or balance-counting effects. */
.merchant-home .mh-panel,.merchant-home .mh-funds{transition:border-color .18s ease,box-shadow .18s ease}.merchant-home .mh-panel:hover,.merchant-home .mh-funds:hover{border-color:color-mix(in srgb,var(--mh-accent) 45%,var(--line,#35534f));box-shadow:0 4px 16px color-mix(in srgb,var(--mh-accent) 5%,transparent)}.merchant-home .mh-link{display:inline-block;transition:color .16s ease,transform .16s ease}.merchant-home .mh-link:hover{transform:translateX(3px);text-decoration:underline}.merchant-home .mh-track span{transition:width .3s ease}.merchant-home .mh-task{transition:background-color .16s ease}.merchant-home .mh-task:hover{background:color-mix(in srgb,var(--mh-accent) 4%,transparent)}@media(prefers-reduced-motion:reduce){.merchant-home .mh-panel,.merchant-home .mh-funds,.merchant-home .mh-link,.merchant-home .mh-track span,.merchant-home .mh-task{transition:none!important;transform:none!important}}

.auth-back-row{display:flex;justify-content:flex-start;margin:0 0 18px}.auth-back-row #return-to-login{width:auto!important;max-width:100%;margin:0!important;white-space:normal;text-align:left}
.backend-nav nav>details{position:relative}.backend-nav nav button[data-view]{position:relative;z-index:1}.backend-nav nav button[data-view].selected{background:transparent!important}.nav-sliding-highlight{position:absolute;top:0;left:0;pointer-events:none;border-radius:8px;background:color-mix(in srgb,var(--merchant-accent,#62d6bd) 12%,transparent);transition:transform .2s ease,width .2s ease,height .2s ease;z-index:0}.command-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:340px;overflow-y:auto;margin-top:16px}.command-results button{text-align:left;white-space:normal}.command-results button:focus-visible{outline:2px solid var(--merchant-accent,#62d6bd);outline-offset:2px}#global-search{flex-wrap:wrap}@media(max-width:560px){.command-results{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.nav-sliding-highlight{transition:none}}
.fund-account-summary{padding:16px;border:1px solid var(--line,#35534f);border-radius:10px;white-space:normal;overflow-wrap:anywhere;line-height:1.8;margin-bottom:16px}.fund-action-reason{display:inline-block;color:var(--muted,#a8bdc3);font-size:12px;max-width:220px}#tools button:disabled{opacity:.55}#tools{align-items:center;gap:10px}
/* Form feedback and compact, consistent filter controls. */
.field-error{display:block;color:var(--danger,#f18f86);font-size:13px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}#action-form [aria-invalid=true]{border-color:var(--danger,#f18f86);outline:1px solid var(--danger,#f18f86)}.fund-action-reason{flex-basis:100%;max-width:none!important;margin:0 0 6px;line-height:1.6}.fund-account-summary{font-variant-numeric:tabular-nums}
#report-filter>button,.record-time-filter>button,#tools>button,#order-filter>button{min-height:40px;box-sizing:border-box;white-space:normal;line-height:1.4}#report-filter input:not([type=checkbox]),#report-filter select,.record-time-filter input:not([type=checkbox]),.record-time-filter select,#order-filter input:not([type=checkbox]),#order-filter select{min-height:40px;box-sizing:border-box}#report-filter,#order-filter,.record-time-filter{gap:12px;align-items:end}#tools>a.order-export-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}#action-form>button{min-height:40px}#action-form label:has(input[type=checkbox]){line-height:1.6}
@media(max-width:700px){#report-filter,#order-filter,.record-time-filter{max-width:100%;flex-wrap:wrap}#report-filter>label,#order-filter>label,.record-time-filter>label{min-width:0;max-width:100%}#tools{flex-wrap:wrap}.fund-account-summary{padding:12px;font-size:13px}}
#tools:has(.fund-action-item){align-items:flex-start;flex-wrap:wrap;gap:16px}.fund-action-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:235px;flex:0 1 235px}.fund-action-item .fund-action-reason{flex-basis:auto;margin:0;max-width:235px!important}.fund-action-item button{min-height:40px;white-space:normal}@media(max-width:700px){.fund-action-item{flex-basis:100%;max-width:none}.fund-action-item .fund-action-reason{max-width:none!important}}
#report-sync:not(:empty){padding:10px 14px;border:1px solid var(--line,#35534f);border-radius:8px;color:var(--muted,#a8bdc3);line-height:1.6}#report-data a[aria-disabled=true]{opacity:.55;cursor:not-allowed;text-decoration:none}
/* Dense data pages keep key identifiers visible and support keyboard scrolling. */
.table[data-table-scope]:focus-visible{outline:2px solid var(--merchant-accent,#62d6bd);outline-offset:3px}.table[data-table-scope=orders],.table[data-table-scope=manualFunds],.table[data-table-scope=statementResults]{max-height:65vh;overflow:auto;overscroll-behavior:contain}.table[data-table-scope=orders] :is(th,td):first-child,.table[data-table-scope=manualFunds] :is(th,td):first-child{position:sticky;left:0;background:var(--panel,#172a30);z-index:1}.table[data-table-scope=orders] th,.table[data-table-scope=manualFunds] th,.table[data-table-scope=statementResults] th{position:sticky;top:0;background:var(--panel,#172a30);z-index:2}.table[data-table-scope=orders] th:first-child,.table[data-table-scope=manualFunds] th:first-child{z-index:3}.order-date-presets,.record-date-presets{display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex-basis:100%}.order-date-presets button,.record-date-presets button{min-height:36px;margin:0}.backend-main{min-width:0}@media(max-width:700px){.table[data-table-scope=orders] :is(th,td):first-child,.table[data-table-scope=manualFunds] :is(th,td):first-child{max-width:180px;white-space:normal;overflow-wrap:anywhere}.order-date-presets,.record-date-presets{gap:6px}}
.table:is([data-table-scope=batchOrders],[data-table-scope=payoutBatches],[data-table-scope=reviewBatch]){max-height:60vh;overflow:auto;overscroll-behavior:contain}.table:is([data-table-scope=batchOrders],[data-table-scope=payoutBatches],[data-table-scope=reviewBatch]) th{position:sticky;top:0;z-index:2;background:var(--panel,#172a30)}.table:is([data-table-scope=batchOrders],[data-table-scope=payoutBatches]) :is(th,td):first-child{position:sticky;left:0;background:var(--panel,#172a30);z-index:1}.table:is([data-table-scope=batchOrders],[data-table-scope=payoutBatches]) th:first-child{z-index:3}

/* Account areas use the same visual rhythm while keeping merchant and platform roles separate. */
.account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}.account-summary>div{min-width:0;padding:15px 16px;border:1px solid var(--line,#35534f);border-radius:10px;background:color-mix(in srgb,var(--merchant-input,#10252a) 76%,transparent)}.account-summary span{display:block;min-height:20px;color:var(--muted,#a8bdc3);font-size:13px;line-height:1.45;overflow-wrap:anywhere}.account-summary strong{display:block;margin-top:5px;font-size:24px;font-variant-numeric:tabular-nums}.account-state{font-weight:700;white-space:nowrap}.account-state.is-enabled{color:var(--merchant-accent,#62d6bd)}.account-state.is-disabled{color:var(--muted,#a8bdc3)}.account-state.is-pending{color:#f2cb79}.table[data-table-scope=merchantUsers]{max-height:65vh;overflow:auto;overscroll-behavior:contain}.table[data-table-scope=merchantUsers] th{position:sticky;top:0;z-index:2;background:var(--panel,#172a30)}.table[data-table-scope=merchantUsers] :is(th,td):first-child{position:sticky;left:0;z-index:1;background:var(--panel,#172a30)}.table[data-table-scope=merchantUsers] th:first-child{z-index:3}@media(max-width:700px){.account-summary{grid-template-columns:1fr;gap:8px}.account-summary>div{padding:12px 14px}.account-summary strong{font-size:21px}}

/* The date input is the single trigger; keep the picker below it. */
.bounded-time-picker>summary{display:none!important}input[data-bounded-time]{cursor:pointer}.bounded-time-picker{margin:0!important;height:0;min-height:0}

#activity-filter>.activity-date-range{flex:0 1 460px;width:460px;max-width:100%;margin:0;height:40px;align-self:flex-end}
/* Give audit searches room for complete order references and keywords. */
#activity-filter>.activity-search{flex:1 1 420px;min-width:360px;max-width:760px}#activity-filter>.activity-search input{box-sizing:border-box;width:100%;min-width:0}
/* Desktop audit filters share one row; the search takes remaining space. */
@media(min-width:1000px){#activity-filter.aligned-filter{flex-wrap:nowrap;width:100%;box-sizing:border-box}#activity-filter.aligned-filter>label:not(.activity-search):not(.check-line){flex:0 1 150px;min-width:110px}#activity-filter.aligned-filter>label:not(.activity-search) :is(input,select){width:100%;min-width:0}#activity-filter>.activity-date-range{flex:0 1 420px;min-width:260px;width:auto}#activity-filter.aligned-filter>.activity-search{flex:1 1 420px;min-width:180px;max-width:none}#activity-filter.aligned-filter>button{flex:none;white-space:nowrap}#activity-filter.aligned-filter>.check-line{flex:none;white-space:nowrap}}
/* Keep hard-refresh loading on the selected portal surface. */
.boot-shell.boot-minimal{background:var(--merchant-bg,#0e1b20);color:var(--theme-text,#b6d4d0)}html[data-merchant-theme=blue] .boot-shell.boot-minimal{background:#101b2b}html[data-merchant-theme=warm] .boot-shell.boot-minimal{background:#eeeadd;color:#293832}

/* Closed audit details never expose their payload during rendering. */
.activity-record:not([open])>.activity-record-detail,.activity-record-group:not([open])>:not(summary){display:none!important}
/* Merchant choices: compact cards with a stable checkbox/name row. */
#action-form fieldset.reconcile-group-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px;margin:18px 0;border:1px solid var(--line,#35534f);border-radius:12px;max-height:280px;overflow:auto;min-width:0}#action-form fieldset.reconcile-group-picker legend{padding:0 8px;font-size:13px;font-weight:600;color:var(--theme-text,#dce8ec)}#action-form fieldset.reconcile-group-picker>label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px;min-height:46px;box-sizing:border-box;padding:10px 12px;margin:0!important;border:1px solid var(--line,#35534f);border-radius:8px;background:var(--merchant-input,#10252a);cursor:pointer;text-align:left;line-height:1.4;overflow-wrap:anywhere}#action-form fieldset.reconcile-group-picker>label>input[type=checkbox]{appearance:auto;display:block;flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0;accent-color:var(--merchant-accent,#62d6bd)}#action-form fieldset.reconcile-group-picker>label:hover{border-color:var(--merchant-accent,#62d6bd)}#action-form fieldset.reconcile-group-picker>label:has(input:checked){border-color:var(--merchant-accent,#62d6bd);background:color-mix(in srgb,var(--merchant-accent,#62d6bd) 12%,var(--merchant-input,#10252a))}#action-form fieldset.reconcile-group-picker>label:focus-within{outline:2px solid var(--merchant-accent,#62d6bd);outline-offset:2px}

/* Keep date fields and merchant choices within narrow dialogs. */
@media(max-width:600px){#reconcile-history-search .reconcile-time-range,#action-form fieldset.reconcile-group-picker{grid-template-columns:minmax(0,1fr)}#reconcile-history-search .reconcile-time-range :is(input,select){max-width:100%;min-width:0}}

/* Order filters share one control size and aligned row baselines. */
html #order-filter .order-filter-meta{align-items:flex-end;gap:10px;margin-bottom:12px;flex-wrap:wrap}
html #order-filter .order-filter-meta>label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:120px}
html #order-filter .order-filter-meta :is(select,summary),html #order-filter .order-filter-bar :is(input,select,summary),html #order-filter .order-filter-bar>:is(button,a),html #order-filter .order-date-presets>button{height:40px!important;min-height:40px!important;box-sizing:border-box;margin:0!important;line-height:normal}
html #order-filter .order-filter-meta>details,html #order-filter .order-filter-bar>details{height:40px;min-height:40px;margin:0!important}
html #order-filter :is(.order-filter-meta,.order-filter-bar) summary{display:flex;align-items:center;padding:0 12px!important}
html #order-filter .order-filter-meta>label>select{width:100%}
html #order-filter .order-date-presets{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
html #order-filter .order-date-presets>button{padding:0 14px}
@media(max-width:700px){html #order-filter .order-filter-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}html #order-filter .order-filter-meta>:is(label,select,details){width:100%!important;min-width:0}html #order-filter .order-filter-bar{min-width:0}html #order-filter .date-range>summary{white-space:normal;font-size:11px}}

/* Shared console controls: keep single-line fields and nearby actions aligned. */
html body:not(:has(.login-page)) :is(.work-card,#content,#tools,#action-form,.global-search,.page-head) input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),html body:not(:has(.login-page)) :is(.work-card,#content,#tools,#action-form,.global-search,.page-head) select:not([multiple]):not([size]){height:40px;min-height:40px;box-sizing:border-box;padding-top:0;padding-bottom:0;line-height:normal}
html :is(#report-filter,.record-time-filter,#account-change-filter,#reconcile-history-search) :is(.date-range,.report-multi){min-height:40px;margin-top:0;box-sizing:border-box}
html :is(#report-filter,.record-time-filter,#account-change-filter,#reconcile-history-search) :is(.date-range,.report-multi)>summary{height:40px;box-sizing:border-box;display:flex;align-items:center;padding-top:0;padding-bottom:0}
html :is(#tools,.page-head>.actions,.record-time-filter,#activity-filter,#reconcile-history-search,.global-search,.record-date-presets,#report-filter>.actions,#content>.actions){gap:10px;align-items:flex-end;flex-wrap:wrap}
html :is(#tools,.page-head>.actions,.record-time-filter,#activity-filter,#reconcile-history-search,.global-search,.record-date-presets,#report-filter>.actions,#content>.actions)>button,html #action-form>button{min-height:40px;box-sizing:border-box;margin-top:0;margin-bottom:0;padding:9px 14px;line-height:20px}
html :is(.record-time-filter,#reconcile-history-search)>label{margin:0;min-width:0}
html :is(#report-filter,.record-time-filter,#reconcile-history-search) label> :is(input,select){margin-top:6px}
html .record-date-presets{margin-top:10px;margin-bottom:14px}
html #action-form{row-gap:14px}html #action-form>label:not(:has(input[type=checkbox])){display:flex;flex-direction:column;gap:6px;min-width:0}html #action-form>label:not(:has(input[type=checkbox]))>:is(input,select,textarea){margin-top:0;max-width:100%;box-sizing:border-box}
@media(max-width:600px){html :is(.record-time-filter,#reconcile-history-search){row-gap:12px}html :is(.record-time-filter,#reconcile-history-search)>label{flex:1 1 160px}html :is(.record-time-filter,#reconcile-history-search)>label>:is(input,select){width:100%;min-width:0}}
html #action-form>label:has(>input:is([type=checkbox],[type=radio])){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left;line-height:1.6}
html #action-form>label>input:is([type=checkbox],[type=radio]){flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0;appearance:auto}
html #report-filter>.actions>label{margin:0}html #action-form>label{margin-bottom:0}

/* Shared modal layout for both consoles. */
html #dialog:not(:has(.merchant-announcement,.totp-binding)) #modal>h2{padding-right:44px;margin-bottom:20px}
html #dialog #action-form{min-width:0;gap:16px;align-items:start}
html #dialog #action-form :is(.grid,fieldset){min-width:0;max-width:100%;box-sizing:border-box}
html #dialog #action-form .grid{gap:14px 16px;margin-bottom:0}
html #dialog #action-form label:not(:has(input:is([type=checkbox],[type=radio]))){min-width:0;text-align:left;line-height:1.5}
html #dialog #action-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select:not([multiple]):not([size]),textarea){max-width:100%;min-width:0;box-sizing:border-box}
html #dialog #action-form label:has(>input:is([type=checkbox],[type=radio])){display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;text-align:left;margin:0;line-height:1.6}
html #dialog #action-form label>input:is([type=checkbox],[type=radio]){appearance:auto;flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;padding:0;box-sizing:border-box}
html #dialog #action-form>button,html #dialog #dialog-close,html #dialog #action-form>.actions>button{min-height:40px;min-width:88px;box-sizing:border-box;padding:9px 16px;margin:0;line-height:20px;justify-self:start;width:auto}
html #dialog #dialog-close{margin-top:16px}
html #dialog #action-form>.actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}
html #dialog #action-form :is(.notice,.field-error,#modal-error){margin-top:0;margin-bottom:0;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){html #dialog:not(:has(.merchant-announcement,.totp-binding)){padding:20px 16px}html #dialog #action-form>.grid{grid-template-columns:minmax(0,1fr)}html #dialog #action-form>button,html #dialog #dialog-close{max-width:100%}}
html #dialog #action-form>.grid,html #dialog #action-form>.notice{width:100%;grid-column:1/-1}
html #dialog #action-form .grid>label:not(:has(input:is([type=checkbox],[type=radio]))){display:flex;flex-direction:column;gap:6px;margin:0;width:100%}html #dialog #action-form .grid>label>:is(input,select,textarea){width:100%;margin-top:0}
html #dialog #action-form>button,html #dialog #dialog-close{min-width:110px}

/* Permission lists stay compact inside account dialogs. */
html #dialog #action-form .sub-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;max-height:340px;overflow:auto;overscroll-behavior:contain;margin:0;padding:4px 2px;min-width:0}
html #dialog #action-form .sub-permissions>.permission-option{min-height:36px;padding:6px 4px;margin:0;box-sizing:border-box;line-height:1.5;overflow-wrap:anywhere}
html .table[data-table-scope=merchantUsers] td:last-child{min-width:260px}html .table[data-table-scope=merchantUsers] td:last-child button{min-height:40px;box-sizing:border-box;line-height:20px;padding:9px 12px}
@media(max-width:500px){html #dialog #action-form .sub-permissions{grid-template-columns:minmax(0,1fr);max-height:35dvh}}

/* Site transfer controls precede record filters; unavailable actions explain why. */
html #tools.site-transfer-toolbar{align-items:flex-start;gap:16px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
html #tools.site-transfer-toolbar>label{flex:0 1 260px;min-width:220px;margin:0;line-height:20px;gap:0}
html #tools.site-transfer-toolbar>label>select{width:100%;margin-top:6px}
html #tools.site-transfer-toolbar .site-transfer-action{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;flex:1 1 320px;padding-top:26px;min-width:0}
html #tools.site-transfer-toolbar .site-transfer-action>button{min-height:40px;margin:0;white-space:nowrap}
html .site-transfer-disabled-reason{flex:1 1 280px;margin:0;color:var(--muted);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
html .site-transfer-toolbar+.record-time-filter{margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
html .site-transfer-content>.notice{margin:0 0 22px}
html .site-transfer-section+.site-transfer-section{margin-top:24px}
html .site-transfer-section>h3{margin:0 0 12px;line-height:1.5}
@media(max-width:600px){html #tools.site-transfer-toolbar>label{flex-basis:100%;min-width:0}html #tools.site-transfer-toolbar .site-transfer-action{padding-top:0;flex-basis:100%}html .site-transfer-disabled-reason{flex-basis:100%}}

html #tools.site-transfer-toolbar:empty{display:none}

.cross-transfer-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;padding:14px;border:1px solid var(--line);border-radius:8px;margin:12px 0}.cross-transfer-summary p{margin:0;line-height:1.8;overflow-wrap:anywhere}.merchant-transfer-details{margin-top:14px;gap:8px}.merchant-transfer-details>button{font-size:12px}@media(max-width:600px){.cross-transfer-summary{grid-template-columns:minmax(0,1fr)}}

/* Dialog pickers expand in normal flow so later fields and actions cannot cover them. */
#dialog .bounded-time-picker[open]{height:auto;min-height:0}
#dialog .bounded-time-picker>.bounded-time-panel{position:static;inset:auto;width:100%;max-width:100%;box-sizing:border-box}
#dialog .bounded-time-picker>.combined-date-time{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
@media(max-width:600px){#dialog .bounded-time-picker>.combined-date-time{grid-template-columns:minmax(0,1fr)}}
/* Keep list calendars inside compact viewports, regardless of filter position. */
@media(max-width:1000px){
 html main .date-range>.range-picker{position:fixed!important;left:16px!important;right:auto!important;top:10dvh!important;width:calc(100vw - 32px)!important;max-height:80dvh;overflow:auto;box-sizing:border-box;grid-template-columns:minmax(0,1fr);z-index:90}
 html main .range-picker .range-shortcuts{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line,#dce3eb)}
 html main .range-picker .dual-calendar{grid-template-columns:minmax(0,1fr)}
 html main .range-picker .range-calendar:nth-child(2){display:none}
 html main .range-picker .range-inputs{display:flex;flex-wrap:wrap;min-width:0}
 html main .range-picker .range-picker-main{min-width:0;grid-column:1}
}
/* Shared pagination alignment for lists, records and modal tables. */
#content:has(>.order-pagination)>.table{margin-bottom:20px;padding-bottom:8px;scrollbar-gutter:stable}
html :is(#content,#dialog) :is(.list-pagination,.activity-pagination){display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:flex-start!important;gap:12px!important;margin:20px 0 0!important;padding:16px 0 4px;border-top:1px solid var(--line,#35534f);min-height:60px;box-sizing:border-box}
html :is(#content,#dialog) :is(.list-pagination,.activity-pagination)>:is(button,span){display:inline-flex;align-items:center;justify-content:center;align-self:center!important;min-height:40px;line-height:20px;box-sizing:border-box;margin:0!important;flex:none}
html :is(#content,#dialog) :is(.list-pagination,.activity-pagination)>.page-size-control{display:inline-flex!important;flex-direction:row!important;align-items:center!important;align-self:center!important;justify-content:flex-start!important;gap:8px!important;margin:0 0 0 8px!important;min-height:40px;white-space:nowrap;flex:none}
html :is(#content,#dialog) :is(.list-pagination,.activity-pagination)>.page-size-control>select{height:40px!important;margin:0!important}
@media(max-width:700px){html :is(#content,#dialog) :is(.list-pagination,.activity-pagination){gap:10px!important}html :is(#content,#dialog) :is(.list-pagination,.activity-pagination)>.page-size-control{flex-basis:100%;margin:0!important;padding-top:12px;border-top:1px solid var(--line,#35534f)}}

/* Account details: readable cards; copy fallback appears only when needed. */
.onboarding-card{display:grid;gap:12px;min-width:0;margin:16px 0}.onboarding-section{border:1px solid var(--line,#355056);border-radius:12px;padding:16px;min-width:0;background:var(--panel,transparent)}.onboarding-section h3{margin:0 0 10px;font-size:15px}.onboarding-section p{margin:6px 0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}.onboarding-section:first-child h3{font-size:19px}@media(max-width:480px){.onboarding-section{padding:12px}}
