/* Readable workspaces. Period activity and historical balances retain distinct scopes. */
.report-workspace-nav{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 18px;min-width:0}
.report-workspace-nav>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 16px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:15px;font-weight:650;min-width:0}
.report-workspace-nav>button[aria-pressed=true]{border-bottom-color:#7040cc;color:#6533bc}
.report-workspace-nav .count{font-size:12px}
.report-dashboard .report-filter-fields.with-courier,.report-dashboard .report-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.report-dashboard .report-date-range{grid-column:span 2}
.report-dashboard .report-filter-buttons{grid-column:1/-1;justify-content:flex-end}
.report-dashboard .report-toolbar{padding:18px;border:1px solid var(--line);border-radius:16px}
.report-dashboard .report-toolbar label{font-size:12px;line-height:1.45}
.report-dashboard .report-toolbar input,.report-dashboard .report-toolbar select{height:44px;min-height:44px;font-size:14px;padding:10px;border-radius:9px}
.report-dashboard .report-filter-buttons .button,.report-dashboard .report-export{min-height:44px;font-size:13px}
.report-dashboard .report-ranges button{min-height:42px;font-size:13px}
.report-dashboard .report-ranges{flex-wrap:wrap}
.report-filter-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0}
.report-filter-chips:empty{display:none}
.report-filter-chips button{min-height:40px;border:1px solid #e2d6f5;background:#f0eafb;color:#58308d;border-radius:8px;padding:7px 10px;font-size:13px}
.report-filter-chips button span{font-size:17px;margin-left:8px}
.report-dashboard .report-applied,.report-dashboard #report-filter-status .report-pending{font-size:12px}
.report-dashboard .report-kpis{gap:14px}
.report-dashboard .report-kpis .stat{padding:18px;min-height:128px;border-radius:15px}
.report-dashboard .report-kpis .stat .row{font-size:13px;min-height:36px;line-height:1.4}
.report-dashboard .report-kpis .stat strong{font-size:30px}
.report-dashboard .report-kpis .stat .report-kpi-scope,.report-dashboard .report-kpi-link{font-size:12px;line-height:1.45}
.report-basis-note{font-size:13px;color:var(--muted);line-height:1.55;margin:12px 0 18px}
.report-money-details{border:1px solid var(--line);padding:0 16px;border-radius:12px;background:#fff;margin:14px 0}
.report-money-details>summary{min-height:44px;padding:12px 0;font-size:13px;color:#62418c;cursor:pointer}
.report-dashboard .report-panel-heading h2{font-size:18px}
.report-dashboard .report-panel-heading p,.report-dashboard .report-daily-table thead th,.report-dashboard .report-day-disclosure>summary>small{font-size:12px}
.report-dashboard .report-daily-table{font-size:13px}
.report-dashboard .report-daily-table tbody th,.report-dashboard .report-daily-table tfoot td,.report-dashboard .report-daily-table tfoot th{font-size:12px}
.report-history-scope{font-size:13px;color:var(--muted);line-height:1.55;margin:8px 0 18px}
.report-dashboard[data-report-pane=activity] [data-report-area=accounts],.report-dashboard[data-report-pane=activity] [data-report-area=pending],.report-dashboard[data-report-pane=activity] .report-historical{display:none}
.report-dashboard[data-report-pane=accounts] .report-activity,.report-dashboard[data-report-pane=accounts] [data-report-area=activity],.report-dashboard[data-report-pane=accounts] [data-report-area=pending]{display:none}
.report-dashboard[data-report-pane=pending] .report-activity,.report-dashboard[data-report-pane=pending] [data-report-area=activity],.report-dashboard[data-report-pane=pending] [data-report-area=accounts]{display:none}
.report-dashboard:not([data-report-pane=activity]) .report-date-range,.report-dashboard:not([data-report-pane=activity]) .report-activity-filter,.report-dashboard:not([data-report-pane=activity]) .report-ranges,.report-dashboard:not([data-report-pane=activity]) .report-export{display:none}
.report-dashboard:not([data-report-pane=activity]) .report-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-mode .heading p{font-size:13px}
.report-historical-mode .report-toolbar-top:has(.report-tools:empty){display:none}
.detail-history-technical pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:220px;overflow:auto}
@media(max-width:980px){.report-dashboard .report-filter-fields{display:none}.report-dashboard .report-ranges button{font-size:12px;min-width:55px;padding:9px 10px}.report-dashboard .report-toolbar{padding:12px}.report-workspace-nav>button{flex:1;padding:10px 8px;font-size:14px}.report-historical-mode .report-toolbar-top{margin-bottom:0}}
@media(max-width:600px){
 .report-mode .heading{margin:4px 0 12px;gap:8px}.report-mode .heading h1{font-size:25px}.report-mode .heading>.row{gap:6px}.report-mode .heading>.row .button{min-height:42px;font-size:12px}.report-mode .heading>.row .mobile-add-shipment,.report-mode .heading>.row .mobile-multi-shipment{display:none}
 .report-mode .rescue-tabs{margin-bottom:10px}.report-workspace-nav{gap:0;margin-bottom:14px}.report-workspace-nav>button{flex-wrap:wrap;gap:4px;font-size:13px;min-height:48px;padding:8px 5px}
 .report-dashboard .report-toolbar-top{display:block}.report-dashboard .report-ranges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}.report-dashboard .report-ranges button{min-width:0;font-size:11px;line-height:1.3;padding:8px 2px}.report-dashboard .report-tools{display:flex;margin-top:10px}.report-dashboard .report-mobile-filters{flex:1;min-height:44px;font-size:14px}.report-dashboard .report-export{font-size:12px}
 .report-dashboard .report-kpis{gap:10px}.report-dashboard .report-kpis .stat{padding:14px;min-height:120px}.report-dashboard .report-kpis .stat .row{font-size:12px;padding-right:0}.report-dashboard .report-kpis .stat .icon{display:none}.report-dashboard .report-kpis .stat strong{font-size:28px}.report-dashboard .report-kpis .stat .report-kpi-scope{font-size:11px}.report-dashboard .report-kpi-link{font-size:12px;min-height:40px}.report-dashboard .report-panel-heading{padding:14px}.report-dashboard .report-panel-heading h2{font-size:17px}
 .report-filter-drawer input,.report-filter-drawer select{font-size:16px!important;min-height:44px}.report-filter-drawer label{font-size:13px}.report-filter-drawer{padding-bottom:8px}.report-basis-note{font-size:12px}.report-history-scope{font-size:13px}.report-section>summary{min-height:58px}.report-section-title strong{font-size:14px}.report-section-title small{font-size:12px}.report-section-content .subtle{font-size:12px}
}

.report-filter-drawer:not([data-report-pane=activity]) .report-date-range,.report-filter-drawer:not([data-report-pane=activity]) .report-activity-filter{display:none}
.report-dashboard:not([data-report-pane=activity]) .report-tools{margin-left:auto}

.report-extra-filters{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
.report-extra-filters>summary{min-height:40px;padding:9px 0;color:#67458e;font-size:13px;cursor:pointer}
.report-extra-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:8px 0}
.report-dashboard:not([data-report-pane=activity]) .report-extra-filters,.report-filter-drawer:not([data-report-pane=activity]) .report-extra-filters{display:none}
@media(min-width:981px){.report-dashboard[data-report-pane=activity] .report-filter-fields.with-courier{grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(115px,1fr)) auto}.report-dashboard[data-report-pane=activity] .report-date-range{grid-column:auto}.report-dashboard[data-report-pane=activity] .report-filter-buttons{grid-column:5;grid-row:1}.report-dashboard:not([data-report-pane=activity]) .report-filter-buttons{grid-column:auto}.report-dashboard:not([data-report-pane=activity]) .report-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr)) auto}}
@media(max-width:600px){.report-extra-fields{grid-template-columns:minmax(0,1fr)}.report-mode .rescue-tabs{display:flex;flex-wrap:nowrap;gap:0}.report-mode .rescue-tabs>.tab{flex:1;min-width:0;justify-content:center;gap:4px;font-size:12px;white-space:normal}.report-mode .rescue-tabs>.tab>.icon{display:none}}

@media(max-width:600px){.report-dashboard .report-ranges button[data-range=yesterday]{display:block}.report-money-details>.subtle{font-size:12px;line-height:1.5}}

.report-dashboard [data-report-filter-count][hidden]{display:none!important}

/* Couriers see their deliveries and separate current accounts. */
.report-courier .report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-courier .report-kpis .stat{min-height:108px}
.courier-report-deliveries>h2,.courier-report-accounts>h2{font-size:20px;margin:20px 0 6px}
.courier-report-days{display:grid;gap:10px}
.courier-report-day{border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.courier-report-day>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;cursor:pointer;min-height:64px;list-style:none}
.courier-report-day>summary::-webkit-details-marker{display:none}
.courier-report-day>summary>span{display:grid;gap:4px}
.courier-report-day>summary>strong{display:flex;align-items:center;gap:12px;font-size:19px;white-space:nowrap}
.courier-report-day>summary>strong:after{content:'⌄';font-size:16px;color:var(--muted)}
.courier-report-day[open]>summary>strong:after{content:'⌃'}
.courier-report-day small{font-size:12px;color:var(--muted);line-height:1.5}
.courier-report-day ul{margin:0;padding:0 16px;list-style:none}
.courier-report-day li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px 0;border-top:1px solid var(--line);min-width:0}
.courier-report-day li>div{display:grid;gap:5px;align-content:start;min-width:0;overflow-wrap:anywhere}
.courier-report-day li>div:last-child{text-align:right}
.courier-report-day li p{font-size:13px;line-height:1.5;margin:0}
.courier-report-accounts .balance-list{margin:14px 0}
.courier-report-accounts .balance-card h3{font-size:15px;margin:0 0 12px}
.courier-commission-card{border:1px solid #e2d6f5;border-radius:12px;padding:18px;background:#f9f6ff;margin:16px 0}
.courier-commission-card>div{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.courier-commission-card h3{font-size:16px;margin:0}
.courier-commission-card strong{font-size:24px}
.courier-commission-card p{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
@media(max-width:600px){.report-courier .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-courier .report-kpis .stat{min-height:100px}.report-courier .report-kpis .stat:last-child{grid-column:1/-1;min-height:84px}.courier-report-day>summary{padding:14px}.courier-report-day ul{padding:0 14px}.courier-report-day li{gap:10px}.courier-report-day li>div:last-child small{font-size:11px}.courier-report-day li>div:last-child b{font-size:16px}.courier-commission-card{padding:14px}}

.report-courier .courier-report-accounts .balance-card{padding:14px;gap:0;background:#fff}
.report-courier .courier-report-accounts .balance-card h3{margin:0 0 8px}
.report-courier .courier-report-accounts .settlement-balance{padding:0;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.report-courier .courier-report-accounts .settlement-balance>span{font-size:13px}
.report-courier .courier-report-accounts .settlement-balance>strong{font-size:24px;white-space:nowrap}
.report-courier .settlement-pay .settlement-balance>strong{color:#147249}
.report-courier .settlement-collect .settlement-balance>strong{color:#a33240}

/* Courier navigation uses one centered bonus entry and compact route controls. */
.courier-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;height:66px}
.courier-topbar>.brand,.courier-topbar>.top-title{grid-column:1;grid-row:1;min-width:0}
.courier-topbar .topbar-bonuses{grid-column:2;grid-row:1;min-height:42px;padding:9px 12px;border:1px solid #dac8f7;border-radius:10px;background:#f3edfc;color:#5d329c;font-size:13px;font-weight:700;white-space:nowrap}
.courier-topbar>.courier-topbar-actions{grid-column:3;grid-row:1;justify-self:end;justify-content:flex-end;min-width:0}
.driver-content{padding-top:12px}
.driver-content>.driver-heading{margin:0 0 10px;gap:10px}
.driver-content .driver-heading-title h1{margin:0;font-size:28px;line-height:1.15}
.driver-content .driver-heading-eyebrow{gap:8px}
.driver-content .driver-heading-copy>p{margin:4px 0 0}
.driver-content>.rescue-tabs{margin:0 0 10px;gap:20px}
.driver-content>.rescue-tabs>.tab{min-height:44px;padding:9px 0}
.courier-orders-toolbar{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(150px,1fr));gap:10px;align-items:end;margin:0 0 8px}
.courier-orders-toolbar label{width:100%;max-width:none;min-width:0;font-size:12px;gap:4px}
.courier-orders-toolbar input,.courier-orders-toolbar select{width:100%;max-width:none;min-width:0;min-height:44px;height:44px;padding:9px 10px;font-size:14px}
.courier-quick-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}
.courier-quick-filters button{min-width:0;min-height:42px;border:1px solid var(--line);border-radius:9px;padding:8px 6px;font-size:13px;color:var(--muted);background:#fff;line-height:1.25}
.courier-quick-filters button[aria-pressed=true]{border-color:#af87ef;background:#eee4fd;color:#5b2c99;font-weight:700}
.courier-quick-filters button:focus-visible,.topbar-bonuses:focus-visible{outline:3px solid #cbb1ff;outline-offset:2px}
/* Courier report filters stay inline; dates expand without a new window. */
.report-dashboard.report-courier .report-toolbar{display:block;padding:12px;margin-bottom:8px}
.report-courier .report-toolbar-top{display:block;margin-bottom:10px}
.report-courier .report-tools:empty{display:none}
.report-dashboard.report-courier .report-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
.report-courier .report-filter-fields>label{width:100%;max-width:none;min-width:0;margin:0}
.report-courier .report-filter-fields input,.report-courier .report-filter-fields select{min-height:44px;height:44px;font-size:16px;padding:9px;box-sizing:border-box}
.courier-report-date-fields{grid-column:1;min-width:0;margin:0}
.courier-report-date-fields>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:8px;font-size:12px;color:#62408e;background:#fff;cursor:pointer;box-sizing:border-box;list-style:none}
.courier-report-date-fields>summary:after{content:'⌄'}
.courier-report-date-fields[open]>summary:after{content:'⌃'}
.courier-report-date-fields>summary::-webkit-details-marker{display:none}
.courier-report-date-fields[open]{grid-column:1/-1}
.report-courier .courier-report-date-fields .report-date-range{display:grid;grid-template-columns:48% 48%;column-gap:2%;justify-content:space-between;width:100%;margin-top:8px}
.report-courier .courier-report-date-fields .report-date-range>label{width:100%;max-width:none;min-width:0}
.report-dashboard.report-courier .report-filter-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:2;gap:6px;width:100%;margin:0}
.report-courier .report-filter-buttons .button{min-width:0;min-height:44px;padding:8px 4px;font-size:12px}
.report-courier .report-filter-buttons .icon{display:none}
.report-courier .report-filter-fields:has(.courier-report-date-fields[open])>.report-filter-buttons{grid-column:1/-1}
.report-courier:not([data-report-pane=activity]) .courier-report-date-fields{display:none}
@media(max-width:820px){
 .courier-topbar{height:60px;gap:6px;padding:0 12px}
 .courier-topbar>.brand{display:flex;gap:6px;min-height:44px;min-width:0}
 .courier-topbar .brand img{width:28px;height:28px;flex:none}
 .courier-topbar .brand strong{font-size:17px;white-space:nowrap}
 .courier-topbar .brand .domain{display:none}
 .courier-topbar>.courier-topbar-actions{gap:3px}
 .courier-topbar .topbar-bonuses{min-height:40px;padding:8px;font-size:12px}
 .courier-topbar .circle-btn{width:36px;min-width:36px;height:40px;min-height:40px;padding:6px}
 .content.driver-content{padding:5px 12px 24px}
 .driver-content>.driver-heading{gap:6px;margin-bottom:8px}
 .driver-content .driver-heading-title h1{margin:0;font-size:26px}
 .driver-content .driver-heading-eyebrow,.driver-content .driver-heading-title{gap:8px}
 .driver-content .driver-heading-eyebrow .button,.driver-content .driver-heading-title .button{min-height:38px;padding:7px 9px;font-size:11px}
 .driver-content .driver-heading-copy>p{display:none}
 .driver-content .driver-heading>.switch{padding:3px}
 .driver-content .driver-heading>.switch button{min-height:38px;padding:8px 10px}
 .driver-content>.rescue-tabs{margin:0 0 8px;gap:0;display:flex}
 .driver-content>.rescue-tabs>.tab{flex:1;justify-content:center;min-width:0;min-height:44px;font-size:12px;padding:9px 3px;gap:4px}
 .driver-content>.rescue-tabs>.tab>.icon{display:none}
 .courier-orders-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .courier-orders-toolbar>.search-label{grid-column:1/-1}
 .courier-orders-toolbar>.store-select-label,.courier-orders-toolbar>.state-label{grid-column:auto;max-width:none}
 .courier-orders-toolbar input,.courier-orders-toolbar select{font-size:16px}
 .courier-quick-filters{gap:5px;margin-bottom:10px}
 .courier-quick-filters button{font-size:11px;min-height:42px;padding:7px 3px}
 .report-courier .report-workspace-nav{margin-bottom:8px}
}
@media(max-width:360px){
 .courier-topbar{padding:0 9px;gap:3px}
 .courier-topbar>.brand{gap:4px}
 .courier-topbar .brand img{width:26px;height:26px}
 .courier-topbar .brand strong{font-size:14px}
 .courier-topbar .topbar-bonuses{font-size:11px;padding:8px 6px}
 .courier-topbar>.courier-topbar-actions{gap:2px}
 .courier-topbar .circle-btn{width:30px;min-width:30px;padding:5px}
 .driver-content .driver-heading-title h1{font-size:24px}
 .report-dashboard.report-courier .report-toolbar{padding:9px}
 .report-courier .report-filter-buttons .button{font-size:11px}
}

.report-courier .report-filter-buttons>[data-action=report-filter],.report-courier .report-filter-buttons>[data-action=report-reset]{grid-column:auto}
.report-courier .report-kpis .stat{padding:12px;min-height:88px}
.report-courier .report-kpis .stat .row{min-height:24px;margin-bottom:6px}
.report-dashboard.report-courier .report-filter-buttons{grid-row:auto}

/* The courier title leads; the route and full name share the line below. */
.driver-content .driver-heading-copy{display:grid;gap:3px}
.driver-content .driver-heading-eyebrow{margin:0;min-width:0}
.driver-route-line{min-width:0;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.driver-route-line strong{font-weight:650;color:var(--ink)}
@media(max-width:820px){
 .content.driver-content{padding-top:3px}
 .driver-content>.driver-heading{gap:4px;margin-bottom:6px}
 .driver-content .driver-heading-copy{gap:2px}
 .driver-content .driver-heading-title .button{min-height:36px;padding:6px 9px}
 .driver-content .driver-heading-eyebrow .button{min-height:32px;padding:5px 8px;font-size:11px}
 .driver-content .driver-heading>.switch button{min-height:34px;padding:6px 10px}
 .driver-content .driver-heading-eyebrow{gap:7px}
 .driver-route-line{font-size:11.5px;line-height:1.3}
 .driver-content>.rescue-tabs{margin-bottom:6px}
}

@media(min-width:821px) and (max-width:1100px){.courier-topbar .user-name,.courier-topbar .user-role{display:none}}

/* Admin areas live in the primary sidebar; they are navigation, separate from filters. */
.report-sidebar-nav{display:grid;gap:5px;margin-top:22px;min-width:0}
.report-sidebar-nav>.eyebrow{font-size:10px;line-height:1.4;margin-bottom:4px}
.report-area-link{display:flex;align-items:center;gap:9px;min-height:44px;width:100%;padding:10px;border:1px solid transparent;border-radius:9px;background:transparent;font:inherit;font-size:12px;font-weight:600;text-align:left;min-width:0;line-height:1.4}
.report-area-link>.icon{width:18px;height:18px;flex:none}
.report-area-link>span:not(.count){min-width:0;overflow-wrap:anywhere}
.report-area-link>.count{margin-left:auto;flex:none;min-width:24px;padding:3px 6px;border-radius:7px;font-size:11px;text-align:center;font-variant-numeric:tabular-nums}
.sidebar .report-area-link{color:#e8dcfa}
.sidebar .report-area-link>.count{background:#4a3367;color:#fff}
.sidebar .report-area-link[aria-current=page]{background:#7040c5;color:#fff}
.sidebar .report-area-link:hover{background:#523577}
.report-area-link:focus-visible,.admin-section-menu>summary:focus-visible{outline:3px solid #cbb1ff;outline-offset:2px}
.admin-section-menu{display:none}
.admin-mobile-shortcut{display:none}
/* In medium desktop windows, wrap fields instead of forcing five narrow columns. */
@media(min-width:981px) and (max-width:1200px){
 .report-dashboard:not(.report-courier)[data-report-pane=activity] .report-filter-fields.with-courier{grid-template-columns:repeat(3,minmax(0,1fr))}
 .report-dashboard:not(.report-courier)[data-report-pane=activity] .report-date-range{grid-column:span 2}
 .report-dashboard:not(.report-courier)[data-report-pane=activity] .report-extra-filters{grid-row:3}
 .report-dashboard:not(.report-courier)[data-report-pane=activity] .report-filter-buttons{grid-column:3;grid-row:2;justify-content:flex-end}
}
@media(min-width:821px){.sidebar{overflow-y:auto;gap:24px}.sidebar .nav-foot{flex-shrink:0}.sidebar .sidebar-tag{flex-shrink:0}}
@media(max-width:820px){
 .admin-mobile-shortcut{display:block;min-width:0;margin:0 0 8px}
 .admin-cash-shortcut{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;padding:10px 14px;border:1px solid #c9aaf4;border-radius:11px;background:#eee2ff;color:#4e208e;font:inherit;font-size:14px;font-weight:750;line-height:1.3;text-align:center;touch-action:manipulation}
 .admin-cash-shortcut>.icon{width:18px;height:18px;flex:none}
 .admin-cash-shortcut.back{background:#fff;color:var(--ink);border-color:var(--line)}
 .admin-cash-shortcut:focus-visible{outline:3px solid #cbb1ff;outline-offset:2px}
 .admin-section-menu{display:block;min-width:0;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
 .admin-section-menu>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:11px 13px;list-style:none;cursor:pointer;font-size:12px;color:var(--muted)}
 .admin-section-menu>summary::-webkit-details-marker{display:none}
 .admin-section-menu>summary>strong{margin-left:auto;color:var(--ink);font-size:14px;min-width:0;overflow-wrap:anywhere}
 .admin-section-menu>summary>span:last-child{font-size:17px;color:#6533bc}
 .admin-section-menu[open]>summary{border-bottom:1px solid var(--line)}
 .admin-section-menu[open]>summary>span:last-child{transform:rotate(180deg)}
 .admin-section-menu>nav{display:grid;gap:4px;padding:7px}
 .admin-section-menu .report-area-link{color:var(--ink);font-size:14px;min-height:46px}
 .admin-section-menu .report-area-link[aria-current=page]{background:#f0eafb;color:#6533bc;border-color:#ded0f4}
 .admin-section-menu .report-area-link>.count{background:#efe7fb;color:#6533bc}
}
@media print{.admin-mobile-shortcut,.admin-section-menu,.report-sidebar-nav{display:none!important}}

/* Courier workspace: compact gaps, with full-size tap targets and no idle status rows. */
.driver-content .driver-heading-title{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px}
.driver-content .driver-heading-title h1{margin:0;min-width:0;overflow-wrap:anywhere}
.driver-content .driver-heading-title:not(:has(>.driver-balance)){grid-template-columns:minmax(0,1fr) auto}
.driver-content .driver-heading-title .button,.driver-content .driver-heading-eyebrow .button,.driver-content .driver-heading>.switch button{min-height:44px}
.driver-content .driver-heading>.switch{flex-shrink:0;gap:4px;padding:3px;background:#ede8f4}
.driver-content .driver-heading>.switch button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:7px 12px;border:1px solid #d8cde4;background:#fff;color:#40334f;font-size:.875rem;font-weight:650;line-height:1.25;white-space:normal}
.driver-content .driver-heading>.switch button:is([aria-pressed=true],.selected:not([aria-pressed])){border-color:#3b2852;background:#3b2852;color:#fff;box-shadow:none;font-weight:750}
.driver-content .driver-heading>.switch button[data-value=true]:is([aria-pressed=true],.selected:not([aria-pressed])){border-color:var(--red);background:var(--red);color:#fff}
.driver-content .driver-heading>.switch button:disabled{opacity:1;cursor:not-allowed}
.driver-content .driver-heading>.switch button[aria-busy=true]{cursor:wait}
.driver-content .driver-heading-title .button{padding:7px 10px;gap:5px;white-space:nowrap}
.driver-content .driver-heading-title .icon{width:17px;height:17px}
.driver-balance-narrow{display:none}
.driver-content>.driver-heading{margin-bottom:4px;gap:6px}
.driver-content>.rescue-tabs{margin-top:0;margin-bottom:6px}
.driver-content .orders-grid{gap:12px}
.driver-content .courier-order-card{padding:12px;border-radius:14px}
.driver-content .courier-order-card .order-head{gap:4px;margin-bottom:4px;align-items:flex-start}
.driver-content .courier-order-card .order-head>.row{gap:4px;min-width:0;max-width:100%}
.driver-content .courier-order-card .order-number{font-size:12px;min-width:0;overflow-wrap:anywhere}
.driver-content .courier-order-card .order-head .badge{font-size:9px;padding:4px 6px;letter-spacing:.1px}
.driver-content .courier-order-card .customer{font-size:15px;gap:4px 6px;margin:4px 0 6px}
.driver-content .courier-order-card .detail-line{margin-top:4px;gap:6px;line-height:1.4}
.driver-content .courier-order-card .contact-row{margin-top:7px;gap:5px}
.driver-content .courier-order-card .contact-row .button{min-height:44px}
.driver-content .courier-order-card .products{margin-top:8px;padding:8px 10px;line-height:1.45}
.driver-content .courier-order-card .payment-box{margin-top:8px;padding:8px 10px;gap:8px}
.driver-content .courier-order-card .payment-box strong{font-size:22px}
.driver-content .courier-order-card .payment-box p{margin-top:2px}
.driver-content .courier-order-card .card-bottom{padding:8px 0;gap:6px}
.driver-content .courier-order-card>.card-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,.8fr);gap:6px;padding-top:8px}
.driver-content .courier-order-card>.card-actions>.button{min-width:0;min-height:44px;padding:6px 4px;font-size:12px;line-height:1.2;white-space:normal;gap:4px}
.driver-content .courier-order-card>.card-actions>.button .icon{width:15px;height:15px;flex-basis:15px}
.driver-content .courier-order-card>.card-actions>.button[data-action=fail] .icon,.driver-content .courier-order-card>.card-actions>.button[data-action=detail] .icon{display:none}
.driver-content .courier-order-card>.card-actions>.button:only-child,.driver-content .courier-order-card>.card-actions>:not(.button){grid-column:1/-1}
.driver-content .courier-order-card>.card-actions>.button:first-child:nth-last-child(2){grid-column:span 2}
.driver-content>.ew-fee-access-banner{padding:10px;margin-bottom:8px;gap:8px}
.driver-content>.ew-fee-access-banner .button,#driver-gps .button{min-height:44px}
@media(max-width:820px){
 .driver-content .driver-heading-title{gap:6px}
 .driver-content .driver-heading-title h1{font-size:25px;line-height:1.1}
 .driver-content .driver-heading-title .button{font-size:12px;padding:6px 8px}
 .driver-content .driver-heading-copy{gap:0}
 .driver-content .driver-heading-eyebrow{gap:6px}
 .driver-content .driver-heading-eyebrow .button{padding:6px 8px;font-size:11px}
 .driver-content .driver-heading>.switch{padding:2px}
 .driver-content .driver-heading>.switch button{padding:7px 10px}
 .driver-content .courier-orders-toolbar{gap:6px;margin-bottom:6px}
 .driver-content .courier-quick-filters{margin-bottom:8px}
 .driver-content .courier-quick-filters button{min-height:44px}
}
@media(max-width:420px){
 .driver-content .driver-heading-title h1{font-size:clamp(20px,6.2vw,25px);letter-spacing:-.8px}
 .driver-content .driver-balance-wide,.driver-content .driver-refresh-label{display:none}
 .driver-content .driver-balance-narrow{display:inline}
 .driver-content .driver-refresh{width:44px;padding:6px}
 .driver-content .driver-heading-title .driver-balance{padding:6px 7px}
 .driver-content .courier-order-card{padding:11px}
 .driver-content .courier-order-card .customer{font-size:14px}
}
