.local-sync-status summary{display:flex;align-items:center;gap:10px;font-size:13px;list-style:none}.local-sync-status summary::before{content:'›';font-size:20px;line-height:1}.local-sync-status[open] summary::before{transform:rotate(90deg)}.local-sync-manage{margin-left:auto;color:var(--muted);font-weight:500}.local-sync-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#16834b}.local-sync-dot.active{background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent)}.local-sync-dot.paused{background:#bb7910}
.local-orders-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}.local-orders-filters .field{margin:0;flex:1 1 170px;min-width:0}.local-orders-filters .search{flex:2 1 280px}.local-orders-filters .date{flex:0 1 170px}.local-orders-filters label{font-size:12px}.local-orders-filters input,.local-orders-filters select{width:100%}.local-orders-table table{min-width:900px}.local-orders-table td,.local-orders-table th{padding-left:12px;padding-right:12px}.local-orders-table td{vertical-align:middle;padding-top:16px;padding-bottom:16px}.local-orders-table th{white-space:nowrap;font-size:11px}.local-orders-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}.local-product-cell{width:38%;min-width:260px;max-width:450px}.local-product{display:flex;gap:12px;align-items:center;border:0;background:none;color:var(--text);font:inherit;text-align:left;padding:0;width:100%;cursor:pointer}.local-product+.local-product{margin-top:12px}.local-product-thumb{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:58px;flex:none;border:1px solid var(--line);border-radius:8px;background:#fff;color:#87909e;overflow:hidden}.local-product-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:4px;background:#fff}.local-product-copy{min-width:0;flex:1}.local-product-copy strong{font-weight:550;font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.local-product-copy small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.local-more-products{font-size:11px;margin:8px 0 0 64px}.local-channel{display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;letter-spacing:-.8px;color:var(--text);height:29px;padding:0 7px;white-space:nowrap}.local-channel.bol{color:#0000a4;background:#f0f0ff;border-radius:7px;font-size:19px;letter-spacing:-1px;min-width:42px}.local-channel.shopify{color:#457915;font-style:italic}.local-channel.amazon{color:#34455b;border-bottom:2px solid #f5a623;border-radius:0 0 8px 8px}.local-fulfilment{font-size:11px;font-weight:600;white-space:nowrap;background:var(--surface2);padding:5px 8px;border-radius:5px}.local-activity{border:0;background:transparent;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:4px 0;font:inherit;cursor:pointer;min-width:82px}.local-activity>span{display:flex;align-items:center;gap:5px;border-radius:7px;padding:6px;background:color-mix(in srgb,currentColor 8%,transparent)}.local-activity>span .icon:last-child{width:11px;height:11px}.local-activity small{font-size:10px;font-weight:550;max-width:100px;line-height:1.4}.local-activity.done{color:#128249}.local-activity.missing{color:#cb3a45}.local-activity.pending{color:#ad710c}.local-activity.archive{color:var(--muted)}.local-archive-badge{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:var(--muted);margin-top:6px}.local-archive-badge svg{width:11px;height:11px}.local-orders-legend{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0;color:var(--muted);font-size:11px}.local-orders-legend span{display:flex;gap:7px;align-items:center}.local-orders-legend i{display:block;width:6px;height:6px;border-radius:50%}.local-orders-legend .done{background:#128249}.local-orders-legend .missing{background:#cb3a45}.local-orders-legend .pending{background:#ad710c}.local-orders-legend .archive{background:#87909e}.local-order-followup{display:flex;align-items:center;gap:24px;padding:16px 0;margin-top:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.local-order-followup p{flex:1;line-height:1.6}.local-detail-products{display:grid;gap:18px;margin:22px 0}.local-detail-products .local-product-copy strong{-webkit-line-clamp:4}.local-history-finance{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:18px;background:var(--surface2);border-radius:10px;font-size:11px}.local-history-finance strong{display:block;margin-top:7px;font-size:16px}.local-history-summary{display:flex;flex-direction:column;gap:7px;margin:20px 0;padding:18px;background:var(--surface2);border-radius:10px}.local-history-summary strong{font-size:20px}.local-history-summary span{font-size:12px;color:var(--muted)}.local-history-error{color:#cb3a45;margin-top:18px}.local-history-errors{max-height:240px;overflow:auto;padding-left:20px;font-size:12px;line-height:1.8}#history-result:not(:empty){margin-top:20px}#history-result>p{font-size:12px;line-height:1.7}.local-product:focus-visible,.local-activity:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px}@media(max-width:650px){.local-sync-manage{display:none}.local-orders-filters .field,.local-orders-filters .date{flex:1 1 140px}.local-orders-filters .search{flex-basis:100%}.local-order-followup{flex-wrap:wrap}.local-order-followup p{flex-basis:100%}.local-history-finance{grid-template-columns:repeat(2,1fr)}}
.local-orders-extra{flex-basis:100%;order:2}.local-orders-extra summary{cursor:pointer;color:var(--muted);font-size:12px;width:max-content}.local-orders-extra-fields{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px}.local-orders-extra-fields .date{flex:1 1 160px}.local-orders-filters>.btn{flex:none}.local-orders-filters>.search{flex-basis:100%}
@media(max-width:1100px){.local-orders-table table{min-width:0;width:100%}.local-orders-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.local-orders-table tbody{display:block}.local-orders-table tbody tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:18px 24px;border-top:1px solid var(--line)}.local-orders-table td{display:block;padding:0;border:0;min-width:0;max-width:none}.local-orders-table td:nth-child(1){order:1;grid-column:1/3}.local-orders-table td:nth-child(3){order:2;grid-column:3;text-align:right}.local-orders-table td:nth-child(2){order:3;grid-column:1/-1;width:100%}.local-orders-table td:nth-child(4){order:4;grid-column:1;text-align:left}.local-orders-table td:nth-child(5){order:5;grid-column:2/4}.local-orders-table td:nth-child(6){order:6;grid-column:1}.local-orders-table td:nth-child(7){order:7;grid-column:2/4}.local-orders-table td[data-label]::before{content:attr(data-label);font-size:10px;color:var(--muted);display:block;margin-bottom:6px}.local-orders-table .local-activity{flex-direction:row;align-items:center;gap:8px;max-width:100%}.local-orders-table .local-product-copy strong{font-size:13px}.local-orders-filters>.field{flex:1 1 190px}.local-orders-filters>.search{flex-basis:100%}}

.workspace-bulkbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 24px;background:var(--surface2);border-block:1px solid var(--line)}
.workspace-bulkbar input[type=checkbox],.data-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);cursor:pointer}
.workspace-order-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:138px}.workspace-order-actions .btn{padding:8px 10px;white-space:nowrap}
.workspace-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:24px}.workspace-attention{display:flex;flex-direction:column;align-items:stretch;gap:18px}
.workspace-sales-chart{height:240px;display:flex;align-items:flex-end;gap:6px;padding:28px 28px 8px;overflow:hidden}.workspace-sales-chart>div{flex:1;min-width:1px;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;height:100%;gap:10px}.workspace-sales-chart span{background:var(--accent);opacity:.8;border-radius:5px 5px 0 0;display:block;min-height:2px}.workspace-sales-chart small{font-size:9px;color:var(--muted)}
.workspace-delivery-state{background:var(--surface2);padding:20px;border:1px solid var(--line);border-radius:12px;margin-top:20px}.workspace-delivery-state p+p{margin-top:12px}
@media(max-width:900px){.workspace-dashboard-grid{grid-template-columns:1fr}.workspace-bulkbar{padding:12px}.workspace-sales-chart{padding:16px 12px}.local-orders-table td:last-child{grid-column:1/-1}.workspace-order-actions{flex-direction:row}}
@media(max-width:1100px){.local-orders-table td:nth-child(1){order:1;grid-column:1}.local-orders-table td:nth-child(2){order:2;grid-column:2/4}.local-orders-table td:nth-child(3){order:3;grid-column:1/-1;text-align:left;width:100%}.local-orders-table td:nth-child(4){order:4;grid-column:1}.local-orders-table td:nth-child(5){order:5;grid-column:2;text-align:left}.local-orders-table td:nth-child(6){order:6;grid-column:3}.local-orders-table td:nth-child(7){order:7;grid-column:1}.local-orders-table td:nth-child(8){order:8;grid-column:2/4}.local-orders-table td:nth-child(9){order:9;grid-column:1/-1}.workspace-order-actions{flex-direction:row;flex-wrap:wrap}}
.local-orders-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;padding-top:20px}.local-orders-toolbar .field{flex:1;min-width:160px;margin:0}
.workspace-delivery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.workspace-delivery-option{padding:22px;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.workspace-delivery-option h3{display:flex;align-items:center;gap:9px}.workspace-delivery-option p{font-size:13px;line-height:1.65}.workspace-delivery-status{font-weight:650;color:var(--text)}.workspace-delivery-prerequisite{padding:14px;background:var(--surface2);border-radius:8px;width:100%;font-size:13px;line-height:1.6}.workspace-delivery-prerequisite p{margin:8px 0 12px}.workspace-delivery-prerequisite ul{padding-left:20px;margin-bottom:12px}.workspace-delivery-option>.btn{margin-top:auto}.workspace-delivery-error:empty{display:none}.workspace-delivery-error{color:#b43842}@media(max-width:700px){.workspace-delivery-options{grid-template-columns:1fr}}

.invoice-pdf-heading{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}.invoice-pdf-frame{display:block;width:100%;height:50vh;min-height:280px;border:1px solid var(--line);border-radius:10px;background:#e9ecef;margin:16px 0}

/* Desktop workspace focus mode; mobile keeps its existing slide-out navigation. */
.desktop-sidebar-toggle{flex-shrink:0;border:1px solid var(--line);color:var(--ink)}
@media(min-width:801px){
 html.sidebar-collapsed #sidebar{display:flex;width:60px;padding:28px 10px 16px}
 html.sidebar-collapsed #sidebar>:not(.sidebar-heading),html.sidebar-collapsed .sidebar-heading .brand{display:none}
 html.sidebar-collapsed .sidebar-heading{justify-content:center;width:100%}
 html.sidebar-collapsed .shell{margin-left:60px}
 html.sidebar-collapsed .main{max-width:none}
}
@media(max-width:800px){.desktop-sidebar-toggle{display:none}}
/* Reserve space for actions and statuses; let product titles wrap within the remaining width. */
@media(min-width:1101px){
 .local-orders-table table{table-layout:fixed;width:100%;min-width:0}
 .local-orders-table th,.local-orders-table td{padding:12px 8px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
 .local-orders-table th{font-size:11px;line-height:1.4}
 .local-orders-table th:nth-child(1){width:34px}
 .local-orders-table th:nth-child(2){width:108px}
 .local-orders-table th:nth-child(4){width:58px}
 .local-orders-table th:nth-child(5){width:38px}
 .local-orders-table th:nth-child(6){width:66px}
 .local-orders-table th:nth-child(7){width:84px}
 .local-orders-table th:nth-child(8){width:70px}
 .local-orders-table th:nth-child(9){width:126px}
 .local-orders-table .local-product-cell{width:auto;min-width:0;max-width:none}
 .local-orders-table .local-product{gap:8px}
 .local-orders-table .local-product-thumb{width:40px;height:44px}
 .local-orders-table .local-product-copy strong{font-size:12px;line-height:1.4}
 .local-orders-table .local-activity{min-width:0}
 .local-orders-table .local-channel.bol{font-size:17px;min-width:36px;padding:0 5px}
 .local-orders-table .workspace-order-actions .btn{white-space:normal;font-size:11px;padding:6px 8px;min-height:34px;gap:5px}
 .local-orders-table .workspace-order-actions .text-btn{font-size:11px}
 .local-orders-table .table-link{font-size:12px}
}
@media(min-width:1101px){
 .local-orders-table .data-table th,.local-orders-table .data-table td{padding:12px 8px}
 .local-orders-table .data-table th{font-size:11px;overflow-wrap:normal}
 .local-orders-table .workspace-order-actions{min-width:0;width:100%}
 .local-orders-table th:nth-child(4){width:64px}
 .local-orders-table th:nth-child(6){width:76px}
}

/* A sliding panel glyph ties the control to the workspace navigation. */
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:28px}
.sidebar-heading .brand{margin:0;padding:0;min-width:0}
.sidebar-heading .ol-original-word{font-size:19px}
.sidebar-heading .ol-original svg{width:29px;height:29px}
.sidebar-heading .ol-original{gap:6px}
.sidebar-heading .desktop-sidebar-toggle{width:40px;height:40px;border-radius:13px;color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 17%,var(--line));background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--accent) 8%,var(--surface)));box-shadow:inset 0 1px 0 color-mix(in srgb,var(--surface) 85%,transparent),0 2px 5px color-mix(in srgb,var(--accent) 5%,transparent);transition:background .18s,border-color .18s,box-shadow .18s}
.sidebar-heading .desktop-sidebar-toggle:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 12%,var(--surface));box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 12%,transparent)}
.sidebar-heading .desktop-sidebar-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar-glyph{width:28px;height:28px;overflow:visible}
.sidebar-glyph-frame{stroke:currentColor;stroke-width:1.3;opacity:.45}
.sidebar-glyph-panel{transform-origin:4px 14px;transition:transform .22s ease,opacity .22s ease;opacity:.85}
.sidebar-glyph-lines{stroke:var(--surface);opacity:.9}
.sidebar-glyph-rail{stroke:currentColor;stroke-width:1;opacity:.15;transition:transform .22s ease}
.sidebar-glyph-arrow{transform-origin:18px 14px;transition:transform .22s ease}
.desktop-sidebar-toggle[aria-expanded=false] .sidebar-glyph-panel{transform:scaleX(.38);opacity:.5}
.desktop-sidebar-toggle[aria-expanded=false] .sidebar-glyph-rail{transform:translateX(-5px)}
.desktop-sidebar-toggle[aria-expanded=false] .sidebar-glyph-arrow{transform:rotate(180deg) translateX(1px)}
@media(prefers-reduced-motion:reduce){.sidebar-heading .desktop-sidebar-toggle,.sidebar-glyph-panel,.sidebar-glyph-rail,.sidebar-glyph-arrow{transition:none}}

/* Overview: sales, operations and data quality share one calendar period. */
.report-dashboard{--report-good:#15835a;--report-bad:#bf4650;--report-tint:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.report-dashboard .page-heading{align-items:flex-start;margin-bottom:16px}.report-dashboard .page-heading h1{letter-spacing:-1.2px}.report-period{display:flex;align-items:flex-end;flex-direction:column;gap:7px;max-width:100%}.report-period-picker{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface);padding:3px 12px;border-radius:10px;color:var(--accent)}.report-period-picker select{border:0;background:transparent;padding:8px 22px 8px 0;font-size:13px;font-weight:600;min-width:140px;color:var(--ink)}.report-period>small{color:var(--muted);font-size:11px}.report-custom{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);padding:12px;border-radius:12px}.report-custom label{display:grid;gap:5px;font-size:11px}.report-custom input{width:142px;padding:8px;font-size:12px}.report-custom [role=alert]{flex-basis:100%;font-size:12px;color:var(--report-bad,#bf4650)}.report-custom [role=alert]:empty{display:none}
.report-context{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin:0 0 24px;flex-wrap:wrap}.report-context-zone{margin-left:auto}.report-live-dot{width:6px;height:6px;border-radius:50%;background:var(--report-good)}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.report-metric{position:relative;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:23px 22px;overflow:hidden}.report-metric-hero{background:linear-gradient(135deg,var(--surface),var(--report-tint));border-color:color-mix(in srgb,var(--accent) 25%,var(--line))}.report-metric-hero:before{content:'';position:absolute;left:0;top:24px;bottom:24px;width:3px;border-radius:0 4px 4px 0;background:var(--accent)}.report-metric-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:550;color:var(--muted);min-height:32px}.report-metric-label svg{width:18px;height:18px;flex-shrink:0;opacity:.7}.report-metric>strong{display:block;font-size:clamp(24px,2.5vw,37px);font-weight:650;letter-spacing:-1.5px;margin:17px 0 18px;line-height:1.2;font-variant-numeric:tabular-nums}.report-metric-note{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:10px;line-height:1.6;min-height:32px}.report-change{padding:3px 6px;border-radius:5px;font-size:10px;font-weight:650}.report-change.up{color:var(--report-good);background:color-mix(in srgb,var(--report-good) 9%,var(--surface))}.report-change.down{color:var(--report-bad);background:color-mix(in srgb,var(--report-bad) 9%,var(--surface))}.report-change.neutral{background:var(--surface2);color:var(--muted)}
.report-pulse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:16px 0 24px;padding:18px 0}.report-pulse>div,.report-pulse>button{padding:0 23px;text-align:left;border:0;background:none;border-right:1px solid var(--line);color:var(--ink)}.report-pulse>:last-child{border-right:0}.report-pulse span{display:block;font-size:11px;color:var(--muted)}.report-pulse strong{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:600;letter-spacing:-.7px;margin:5px 0}.report-pulse strong svg{width:15px;color:var(--accent)}.report-pulse small{font-size:10px;color:var(--muted);line-height:1.5}.report-pulse>button:hover strong{color:var(--accent)}
.report-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:20px;margin-bottom:20px}.report-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:17px;overflow:hidden}.report-card>header{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:14px}.report-eyebrow{display:block;font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--accent);margin-bottom:9px}.report-card h2,.report-delivery h2{font-size:19px;line-height:1.4;letter-spacing:-.5px;font-weight:650}.report-card header .text-btn{font-size:11px;white-space:nowrap}.report-chart-legend{display:flex;align-items:center;gap:15px;padding:0 24px 20px;font-size:10px;color:var(--muted);flex-wrap:wrap}.report-chart-legend span{display:flex;align-items:center;gap:5px}.report-chart-legend i{width:7px;height:7px;border-radius:2px;background:var(--accent)}.report-chart-legend i.previous{height:2px;width:14px;background:var(--muted)}.report-chart-legend>small{margin-left:auto}.report-chart{display:flex;gap:12px;height:210px;padding:0 24px}.report-chart-scale{display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:var(--muted);min-width:55px;text-align:right}.report-chart-plot{position:relative;flex:1;min-width:0}.report-chart-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.report-chart-grid i{border-top:1px dashed var(--line)}.report-bars{position:absolute;inset:0;display:flex;gap:clamp(2px,.5vw,9px);align-items:stretch}.report-bar{flex:1;min-width:0;position:relative;background:transparent;padding:0;border:0;border-radius:4px;display:flex;align-items:flex-end;justify-content:center}.report-bar>span{width:100%;max-width:56px;height:var(--bar);min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(to top,color-mix(in srgb,var(--accent) 80%,var(--surface)),var(--accent));opacity:.85;transition:opacity .15s}.report-bar:hover>span,.report-bar:focus-visible>span{opacity:1;box-shadow:0 0 0 3px var(--report-tint)}.report-bar:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.report-previous-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.report-previous-line polyline{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-dasharray:4 4;vector-effect:non-scaling-stroke;opacity:.6}.report-chart-dates{display:flex;justify-content:space-between;margin:12px 24px 20px 91px;font-size:10px;color:var(--muted)}.report-sales footer{border-top:1px solid var(--line);padding:16px 24px;font-size:10px;line-height:1.7;color:var(--muted)}.report-sales footer>*{display:block}.report-chart-empty{text-align:center;color:var(--muted);font-size:12px;padding:0 24px 20px}
.report-delivery{border-radius:17px;padding:26px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 17%,#1a202c),#171b25);color:#f7f8fa;display:flex;flex-direction:column}.report-delivery .report-eyebrow{color:#d3d8e1}.report-coverage{display:flex;align-items:center;gap:20px;margin:25px 0}.report-ring{width:96px;height:96px;flex-shrink:0;border-radius:50%;background:conic-gradient(#8edab5 var(--coverage),#ffffff18 0);display:grid;place-items:center;position:relative}.report-ring:before{content:'';position:absolute;inset:6px;border-radius:50%;background:#252a33}.report-ring strong{z-index:1;font-size:25px;letter-spacing:-1px}.report-coverage>div>strong{font-size:21px;font-weight:600}.report-coverage p{font-size:11px;line-height:1.6;color:#cbd0d9;margin-top:7px}.report-delivery-rows{border-top:1px solid #ffffff1b;padding-top:17px;display:grid;gap:15px}.report-delivery-rows>div{display:flex;align-items:center;gap:9px;font-size:12px}.report-delivery-rows svg{width:17px;height:17px;color:#8edab5}.report-delivery-rows strong{margin-left:auto;font-variant-numeric:tabular-nums}.report-delivery>p{font-size:10px;line-height:1.7;color:#b6becb;margin-top:20px}.report-delivery-link{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding:19px 0 0;background:transparent;border:0;color:#fff;font-size:12px;text-align:left}.report-delivery-link:hover{color:#8edab5}
.report-secondary-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.report-ranking{padding:0 24px 10px}.report-product-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-top:1px solid var(--line)}.report-rank{align-self:flex-start;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:2px}.report-product-row>div{flex:1;min-width:0}.report-product-row strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:550;line-height:1.5}.report-product-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.report-product-row>b{font-size:12px;font-weight:600;white-space:nowrap}.report-track{height:4px;border-radius:8px;background:var(--surface2);overflow:hidden;margin-top:10px}.report-track i{display:block;height:100%;background:var(--accent);border-radius:8px;opacity:.65}.report-channel-list{padding:0 24px 24px;display:grid;gap:24px}.report-channel-list strong,.report-channel-list b{font-size:12px;font-weight:600}.report-channel-list small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.report-confidence{display:grid;gap:21px;padding:0 24px 24px;font-size:12px}.report-confidence p,.report-actions-note{font-size:10px;line-height:1.7;color:var(--muted)}.report-actions{padding:0 24px 24px}.report-actions>button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:14px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink)}.report-actions>button>span:nth-child(2){flex:1}.report-actions>button>svg{width:16px;color:var(--muted)}.report-action-icon{width:34px;height:34px;border-radius:10px;background:var(--report-tint);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.report-action-icon svg{width:17px;height:17px}.report-actions strong{display:block;font-size:12px;font-weight:550}.report-actions small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.report-actions-note{margin-top:12px}.report-empty{padding:12px 0 24px;color:var(--muted);font-size:12px}.report-recent{margin-bottom:20px}.report-recent-list{padding:0 24px 12px}.report-recent-list>div{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding:15px 0}.report-recent-list>div>strong{font-size:12px;width:110px;flex-shrink:0}.report-recent-list>div>span{flex:1;min-width:0}.report-recent-list b{font-size:12px;font-weight:500;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.report-recent-list small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
@media(max-width:1200px){.report-kpis{gap:12px}.report-metric{padding:18px 16px}.report-main-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.report-coverage{gap:12px}.report-ring{width:80px;height:80px}.report-context-zone{margin-left:0;flex-basis:100%}.report-card>header{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:1000px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-main-grid{grid-template-columns:1fr}.report-secondary-grid{grid-template-columns:1fr 1fr}.report-pulse>div,.report-pulse>button{padding:0 14px}.report-delivery{display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.report-delivery>h2,.report-delivery>.report-eyebrow{grid-column:1/-1}.report-delivery-rows{border:0;padding-top:25px}.report-delivery-link{align-self:end}}
@media(max-width:650px){.report-dashboard .page-heading{display:block}.report-period{align-items:flex-start;margin-top:14px}.report-custom input{width:130px}.report-kpis{gap:10px}.report-metric{padding:15px}.report-metric>strong{font-size:25px;letter-spacing:-.8px}.report-pulse{grid-template-columns:1fr 1fr;row-gap:22px}.report-pulse>:nth-child(2){border:0}.report-secondary-grid{grid-template-columns:1fr}.report-card>header{padding:20px}.report-chart{padding:0 15px;gap:8px;height:180px}.report-chart-scale{min-width:48px;font-size:8px}.report-chart-dates{margin-left:70px}.report-delivery{display:flex}.report-ring{width:90px;height:90px}.report-recent-list>div{gap:10px;flex-wrap:wrap}.report-recent-list>div>strong{width:auto}.report-recent-list>div>span{flex-basis:65%}.report-recent-list>div>.btn{margin-left:auto}.report-chart-legend{padding:0 20px 18px}.report-custom{max-width:100%}}
@media(prefers-reduced-motion:reduce){.report-bar>span{transition:none}}

@media(min-width:1001px){.report-pulse{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:651px) and (max-width:1000px){.report-pulse{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}.report-pulse>:nth-child(3){border:0}}

/* Products: reserve room for each column instead of letting long titles size the table. */
.main:has(.workspace-products-panel){max-width:none}
.workspace-products-panel{min-width:0}
.workspace-products-table .data-table{width:100%;min-width:0;table-layout:fixed}
.workspace-products-table .data-table th,
.workspace-products-table .data-table td{padding:13px 10px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;font-size:12px;line-height:1.5}
.workspace-products-table .data-table th{font-size:11px;font-weight:600}
.workspace-products-table th:first-child{width:38px}
.workspace-products-table th:nth-child(3){width:13%}
.workspace-products-table th:nth-child(4){width:15%}
.workspace-products-table th:nth-child(5){width:7%}
.workspace-products-table th:last-child{width:88px}
.workspace-products-table .data-table th:nth-child(4),
.workspace-products-table .data-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.workspace-products-table .data-table th:nth-child(5),
.workspace-products-table .data-table td:nth-child(5){text-align:center;font-variant-numeric:tabular-nums}
.workspace-products-table .local-product{min-width:0;gap:10px;cursor:default;color:var(--ink)}
.workspace-products-table .local-product-thumb{width:42px;height:46px}
.workspace-products-table .local-product-copy strong{display:block;-webkit-line-clamp:unset;white-space:normal;font-size:12px;line-height:1.5}
.workspace-products-table .local-product-copy small{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.workspace-products-table .btn{min-height:32px;padding:6px 9px;font-size:11px;gap:5px;max-width:100%;white-space:normal}
.workspace-products-table .btn svg{width:14px;height:14px;flex:none}
.workspace-products-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.workspace-products-panel .workspace-bulkbar{gap:12px;padding:12px 18px;font-size:12px}
.workspace-products-panel .workspace-bulkbar .text-btn{font-size:12px}
.workspace-products-panel .workspace-bulkbar .btn{font-size:12px;min-height:34px;padding:7px 11px}
@media(min-width:701px) and (max-width:1100px){
 .workspace-products-table .data-table th,.workspace-products-table .data-table td{padding:11px 7px}
 .workspace-products-table th:first-child{width:32px}
 .workspace-products-table th:last-child{width:82px}
 .workspace-products-table th:nth-child(3){width:14%}
 .workspace-products-table th:nth-child(4){width:16%}
 .workspace-products-table .local-product{gap:8px}
 .workspace-products-table .local-product-thumb{width:36px;height:40px}
}
/* On phones, every field remains visible in each product card, without lateral scrolling. */
@media(max-width:700px){
 .workspace-products-table .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .workspace-products-table .data-table tbody{display:block}
 .workspace-products-table .data-table tr{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr) 52px;gap:12px 8px;padding:16px 12px;border-top:1px solid var(--line)}
 .workspace-products-table .data-table td{display:block;min-width:0;padding:0;border:0;white-space:normal}
 .workspace-products-table .data-table td:first-child{grid-column:1;align-self:start;padding-top:12px}
 .workspace-products-table .data-table td:nth-child(2){grid-column:2/-1}
 .workspace-products-table .data-table td:nth-child(3){grid-column:2}
 .workspace-products-table .data-table td:nth-child(4){grid-column:3;text-align:left}
 .workspace-products-table .data-table td:nth-child(5){grid-column:4;text-align:left}
 .workspace-products-table .data-table td:last-child{grid-column:2/-1}
 .workspace-products-table .data-table td[colspan]{grid-column:1/-1}
 .workspace-products-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:5px;font-weight:500}
 .workspace-products-panel>.between{flex-wrap:wrap;gap:12px;font-size:12px}
}

.product-platform-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:34px;border-radius:8px;vertical-align:middle;background:var(--surface2);color:var(--ink)}
.product-platform-mark.bol{background:#f0f0ff;color:#0000a4}
.product-platform-bol{font:800 23px/1 Arial,sans-serif;letter-spacing:-1.4px}
.product-platform-mark.shopify{background:#eef6e7}
.product-platform-mark.amazon{background:#fff4e5}
.product-platform-mark>svg{width:28px;height:28px;display:block}
.product-platform-mark:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* One applied-date control; draft ranges live in an anchored picker, not the page heading. */
.page-heading:has(.report-period){align-items:center}
.page-actions:has(.report-period){gap:10px;align-items:center}
.page-actions:has(.report-period)>.btn{min-height:48px}
.report-period{position:relative;display:block;max-width:100%;margin:0}
.report-date-trigger{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px 8px 9px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);text-align:left;box-shadow:0 1px 2px #00000003}
.report-date-trigger:hover{border-color:color-mix(in srgb,var(--accent) 38%,var(--line));background:var(--surface2)}
.report-date-trigger[aria-expanded=true]{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 9%,transparent)}
.report-date-trigger-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;color:var(--accent);background:var(--tint);flex-shrink:0}
.report-date-trigger-icon svg{width:17px;height:17px}
.report-date-trigger-copy{display:grid;gap:2px;min-width:0}
.report-date-trigger-copy strong{font-size:12px;font-weight:650;line-height:1.35}
.report-date-trigger-copy small{font-size:10px;color:var(--muted);line-height:1.4;white-space:nowrap}
.report-date-trigger>.icon{width:14px;height:14px;color:var(--muted);margin-left:7px;flex-shrink:0;transition:transform .16s}
.report-date-trigger[aria-expanded=true]>.icon{transform:rotate(180deg)}
.report-date-popover{position:absolute;right:0;top:calc(100% + 10px);width:380px;max-width:calc(100vw - 32px);z-index:45;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 45px #00000016,0 3px 8px #00000006;text-align:left;overflow:hidden}
.report-date-popover[hidden],.report-date-fields[hidden]{display:none}
.report-date-popover form{margin:0}
.report-date-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 20px 16px}
.report-date-head strong{display:block;font-size:14px;font-weight:650;color:var(--ink)}
.report-date-head span{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.report-date-close{border:0;background:transparent;color:var(--muted);width:28px;height:28px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}
.report-date-close:hover{background:var(--surface2);color:var(--ink)}
.report-date-close svg{width:17px;height:17px}
.report-date-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 20px 18px}
.report-date-presets button{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:37px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--surface);color:var(--muted);font-size:11px;font-weight:550;text-align:left}
.report-date-presets button>.icon{width:13px;height:13px;flex-shrink:0;opacity:0}
.report-date-presets button[data-date-preset=custom]>.icon{opacity:.65}
.report-date-presets button:hover{background:var(--surface2);color:var(--ink)}
.report-date-presets button[aria-pressed=true]{background:var(--tint);border-color:color-mix(in srgb,var(--accent) 45%,var(--line));color:var(--accent)}
.report-date-presets button[aria-pressed=true]>.icon{opacity:1}
.report-date-fields{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);align-items:end;gap:10px;padding:17px 20px;border-top:1px solid var(--line)}
.report-date-fields label{display:grid;gap:7px;font-size:11px;font-weight:550;color:var(--muted);min-width:0}
.report-date-fields input{width:100%;min-width:0;padding:9px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--ink);font-size:12px;box-sizing:border-box}
.report-date-arrow{align-self:end;padding-bottom:12px;color:var(--muted)}
.report-date-arrow svg{width:14px;height:14px}
.report-date-fields small{grid-column:1/-1;font-size:10px;color:var(--muted);line-height:1.5;margin-top:1px}
.report-date-error{font-size:11px;line-height:1.6;color:var(--red,#bf4650);padding:0 20px 15px;margin:0}
.report-date-error:empty{display:none}
.report-date-footer{padding:15px 20px;background:var(--surface2);border-top:1px solid var(--line)}
.report-date-summary{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-bottom:13px;min-height:16px}
.report-date-summary .icon{width:14px;height:14px;color:var(--accent);flex-shrink:0}
.report-date-footer>div:last-child{display:flex;justify-content:flex-end;gap:8px}
.report-date-footer .btn{font-size:12px;min-height:35px;padding:7px 12px}
.report-date-trigger:focus-visible,.report-date-popover button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){.page-heading:has(.report-period){flex-wrap:wrap;gap:18px}.page-heading:has(.report-period)>.page-actions{margin-left:auto}}
@media(max-width:650px){.report-dashboard .page-heading{display:flex}.page-heading:has(.report-period)>.page-actions{margin-left:0;flex-basis:100%;justify-content:space-between;gap:8px}.report-date-trigger{padding:7px 9px;gap:8px}.report-date-trigger>.icon{margin-left:0}.report-date-popover{position:fixed;left:16px;right:16px;top:50%;transform:translateY(-50%);width:auto;max-width:none;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 18px 80px #00000036}.report-date-popover:focus-within{scroll-margin:16px}.report-date-head{padding-top:17px}.report-date-presets{gap:6px}.report-date-trigger-copy small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.report-date-trigger>.icon{transition:none}}

.case-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.case-live{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.case-live:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--success);flex:none}.case-live.offline:before{background:var(--amber)}.case-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.case-stat{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}.case-stat strong{font-size:25px;display:block;line-height:1.4;color:var(--ink)}.case-stat span{font-size:11px;color:var(--muted)}.case-list{display:grid;gap:10px}.case-row{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-align:left;background:var(--surface);width:100%;cursor:pointer}.case-row:hover{border-color:var(--accent);background:var(--tint)}.case-row-main{flex:1;min-width:0}.case-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.case-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.case-number{font-size:10px;letter-spacing:.6px;color:var(--muted);display:block;margin-bottom:5px}.case-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 9px;font-size:11px;line-height:1.5;font-weight:600;color:var(--muted);background:var(--surface2);white-space:nowrap}.case-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.case-status.in_progress{color:var(--accent);background:var(--tint)}.case-status.waiting,.case-status.escalated{color:var(--amber);background:var(--amber-bg)}.case-status.resolved{color:var(--success);background:var(--success-bg)}.case-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:24px}.case-panel{border:1px solid var(--line);border-radius:13px;padding:20px;background:var(--surface)}.case-panel h3{font-size:14px;margin-bottom:16px}.case-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 22px}.case-meta dt{font-size:10px;color:var(--muted);margin-bottom:5px}.case-meta dd{margin:0;font-size:12px;overflow-wrap:anywhere;font-weight:550}.case-milestones{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:15px 0 22px}.case-milestones>div{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.case-milestones span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;flex:none}.case-milestones .complete{color:var(--accent)}.case-milestones .complete span{background:var(--tint);border-color:var(--accent)}.case-journey{list-style:none;margin:0;padding:0}.case-journey li{display:flex;gap:12px;position:relative;padding-bottom:23px}.case-journey li:not(:last-child):before{content:'';position:absolute;left:4px;top:13px;bottom:2px;width:1px;background:var(--line)}.case-event-dot{width:9px;height:9px;background:var(--accent);border:2px solid var(--tint);border-radius:50%;flex:none;margin-top:4px;box-sizing:border-box}.case-journey strong{font-size:11px;font-weight:550;line-height:1.6;display:block;overflow-wrap:anywhere}.case-journey time,.case-journey small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.case-private .case-event-dot{background:var(--amber)}.case-note-tag{font-size:9px;border:1px solid var(--line);padding:2px 4px;border-radius:4px;color:var(--muted)}.case-messages{display:grid;gap:12px;max-height:350px;overflow:auto;overscroll-behavior:contain;padding-right:4px;margin-bottom:22px}.case-message{border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--surface2)}.case-message.team{background:var(--tint)}.case-message.private{background:var(--amber-bg)}.case-message header{display:flex;justify-content:space-between;gap:12px;font-size:11px;flex-wrap:wrap}.case-message time{font-size:10px;color:var(--muted)}.case-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;margin-top:9px}.case-resolution{border-left:3px solid var(--success);padding:12px 15px;background:var(--success-bg);font-size:12px;white-space:pre-wrap;margin-bottom:18px;overflow-wrap:anywhere}.case-notification{display:block;width:100%;padding:15px;border:1px solid var(--line);border-radius:11px;background:var(--surface);text-align:left;color:var(--ink);margin-bottom:9px;cursor:pointer}.case-notification.unread{background:var(--tint);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}.case-notification strong,.case-notification span,.case-notification small{display:block}.case-notification strong{font-size:12px;margin-bottom:5px}.case-notification span{font-size:11px;line-height:1.6}.case-notification small{font-size:10px;color:var(--muted);margin-top:8px}.case-bell{position:relative}.case-bell-count{position:absolute;right:-3px;top:-3px;min-width:16px;height:16px;padding:0 3px;display:grid;place-items:center;border-radius:10px;background:var(--red);color:#fff;font-size:9px;border:2px solid var(--surface);line-height:1}.case-empty{padding:30px 15px;text-align:center;color:var(--muted);font-size:13px}.case-filter{display:flex;flex-wrap:wrap;gap:10px}.case-filter input{flex:1;min-width:160px}.case-filter select{max-width:210px}.case-attention{color:var(--amber);font-size:11px;padding:12px;background:var(--amber-bg);border-radius:8px;margin-bottom:12px}.case-control-note{font-size:11px;color:var(--muted);line-height:1.7}.case-admin-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.case-selection{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--line)}.case-row-unread{border-left:3px solid var(--accent)}
@media(max-width:760px){.case-layout{grid-template-columns:1fr}.case-row{padding:13px;align-items:flex-start;flex-wrap:wrap}.case-milestones{grid-template-columns:repeat(2,1fr);gap:12px}.case-meta{gap:12px}.case-stats{gap:7px}.case-stat{padding:12px}.case-stat strong{font-size:22px}.case-admin-metrics{grid-template-columns:repeat(2,1fr)}.case-filter{width:100%}.case-filter select{max-width:none;flex:1}}
/* Keep the inbox focused on cases; bulk tools appear only after selection. */
.case-selection[hidden]{display:none}.case-selection select{width:auto;flex:0 1 190px;min-width:145px}.case-selection strong{font-size:12px;margin-right:auto}.case-filter>label:not(.search){display:inline-flex;align-items:center;gap:7px;margin:0;white-space:nowrap;font-size:11px}.case-filter input[type=checkbox],.table-wrap input[data-case-select],.table-wrap input[data-case-select-all]{width:14px;height:14px;min-width:14px;padding:0;margin:0}
.dialog.wide:has(#support-case),.dialog.wide:has(#support-center){width:1080px;max-width:calc(100vw - 36px)}
.case-meta{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.case-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.case-selection select{flex:1}.dialog.wide:has(#support-case),.dialog.wide:has(#support-center){max-width:calc(100vw - 24px)}}
