/* One density and one hierarchy across the working sections. */
body{font-size:13px;line-height:1.45}
body .app-shell.compact-shell{display:block;min-height:100vh}
body .compact-shell .main{margin:0;padding:0;width:100%;min-width:0}
body .compact-shell .main-content{max-width:none;margin:0;padding:12px 14px 28px}
.desktop-top-nav{display:flex;align-items:center;gap:24px;min-height:52px;padding:5px 16px;background:var(--theme-surface,#131419);border-bottom:1px solid var(--theme-border,#ffffff0d);box-sizing:border-box}
.desktop-top-nav .brand{display:flex;align-items:center;gap:9px;margin:0;padding:0;font-size:21px;letter-spacing:-.6px;text-decoration:none;line-height:1}
.desktop-top-nav .brand img{width:29px;height:29px}
.desktop-top-nav .primary-nav{display:flex;gap:3px;margin:0}
.desktop-top-nav .nav-item{display:flex;align-items:center;gap:7px;font-size:12px;min-height:34px;margin:0;padding:6px 11px;border-radius:7px}
.desktop-top-nav .nav-item svg{width:16px;height:16px}
.top-account{display:flex;align-items:center;gap:7px;margin-left:auto;color:var(--muted);text-decoration:none;font-size:12px;padding:7px;border-radius:7px}
.top-account:hover{background:var(--hover);color:var(--ink)}
.compact-shell .mobile-title-menu,.compact-shell .sidebar-restore{display:none!important}
.compact-shell .monitoring-header,.compact-shell .work-section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;min-height:38px}
.compact-shell .monitoring-header-actions,.compact-shell .heading-actions{display:flex;align-items:center;gap:7px}
.compact-shell .work-section-nav{margin:0;padding:3px;border-radius:9px}
.compact-shell .work-section-nav a{min-height:30px;padding:5px 10px;font-size:12px;border-radius:6px}
.compact-shell .page-heading{margin-bottom:12px;gap:10px;align-items:center}
.compact-shell .page-heading h1{font-size:23px;letter-spacing:-.5px}
.compact-shell .page-heading p{font-size:12px;margin:3px 0 0}
.compact-shell .button{min-height:34px;padding:6px 10px;font-size:12px;border-radius:7px}
.compact-shell .button.small{min-height:28px;padding:4px 8px;font-size:11px}
.compact-shell .icon-button{width:34px;height:34px;min-height:34px;padding:7px}
#app .compact-shell select,.compact-shell input:not([type=checkbox]):not([type=radio]){min-height:34px;font-size:12px;padding-top:6px;padding-bottom:6px;border-radius:7px}
.compact-shell .monitoring-tabs{padding:3px;border-radius:9px}
.compact-shell .monitoring-tabs a,.compact-shell .monitoring-tabs button{font-size:12px;min-height:30px;padding:6px 10px}
.compact-shell .monitor-tools,.compact-shell .monitoring-controls{gap:6px;padding:8px;margin-bottom:12px;border-radius:10px}
.compact-shell .monitor-scope{gap:6px}
.compact-shell .monitor-scope-button,.compact-shell .monitor-scope-reset,.compact-shell .monitoring-date-control,.compact-shell .monitor-date-picker>summary{min-height:34px;font-size:12px;padding:6px 10px;border-radius:7px}
.compact-shell .monitor-scope-button{min-width:0}
.compact-shell .monitor-scope-reset{width:34px;flex:0 0 34px}
.compact-shell .monitoring-date-control{width:117px}
.compact-shell .monitoring-options{gap:6px}
.compact-shell .refresh-mini-status{font-size:10px}
.compact-shell .refresh-control{gap:7px}
.compact-shell .unified-report-filters{display:flex;align-items:center}
.unified-report-filters>.monitor-scope{flex:1;min-width:0}
.unified-report-filters>.monitor-date-picker{flex:0 0 auto;min-width:230px}
.compact-shell .cabinet-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.compact-shell .month-chart-card,.compact-shell .cabinet-chart-card{min-width:0;padding:12px;border-radius:12px}
.compact-shell .month-card-heading,.compact-shell .cabinet-summary{margin-bottom:8px;gap:8px}
.compact-shell .month-card-heading h2,.compact-shell .cabinet-chart-header h3{font-size:15px;line-height:1.35}
.compact-shell .month-card-heading strong,.compact-shell .cabinet-today strong{font-size:14px}
.compact-shell .cabinet-label small,.compact-shell .cabinet-today>span{font-size:10px}
.compact-shell .cabinet-chart-section{margin-top:14px}
.compact-shell .cabinet-chart-section>h2{font-size:14px;margin:0 0 8px}
.compact-shell .range-comparison-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 8px;max-width:none}
.compact-shell .range-comparison-strip>label,.compact-shell .range-comparison-strip>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 5px;min-height:0;padding:5px 7px;border-radius:6px;background:var(--theme-neutral-tint,#ffffff03);align-items:center}
.compact-shell .range-comparison-strip span{font-size:10px;gap:4px;white-space:nowrap;min-width:0}
.compact-shell .range-comparison-strip small{grid-column:1/-1;grid-row:2;font-size:10px;line-height:1.25;color:var(--subtle);white-space:nowrap}
.compact-shell .range-comparison-strip b{grid-column:2;grid-row:1;white-space:nowrap;font-size:11px}
.compact-shell .range-comparison-strip input{position:absolute;opacity:0;width:1px;height:1px}
.compact-shell .range-comparison-strip label:has(input:not(:checked)){opacity:.45;background:transparent}
.compact-shell .range-comparison-strip label:hover{background:var(--theme-neutral-tint,#ffffff09)}
.compact-shell .range-comparison-strip label:focus-within{outline:2px solid var(--focus)}
.compact-shell .range-comparison-strip i{width:8px;border-top-width:3px}
.compact-shell .monitoring-total .range-comparison-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
.compact-shell .cabinet-comparison-strip:not(.range-comparison-strip){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 8px}
.compact-shell .cabinet-comparison-strip:not(.range-comparison-strip)>div,.compact-shell .cabinet-comparison-strip:not(.range-comparison-strip)>label{flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:4px 6px;background:var(--theme-neutral-tint,#ffffff03);border-radius:5px;min-height:0}
.compact-shell .cabinet-comparison-strip span{font-size:10px}
.compact-shell .cabinet-comparison-strip b{font-size:11px}
.compact-shell .month-local-legend{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible;grid-auto-columns:auto}
.compact-shell .month-local-period{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 6px;border-radius:5px;background:var(--theme-neutral-tint,#ffffff03);font-size:10px}
.compact-shell .month-local-period span,.compact-shell .month-local-period b{font-size:10px;white-space:nowrap}
.compact-shell .range-plot .hourly-chart,.compact-shell .month-plot-small .hourly-chart{min-width:0;min-height:0;height:auto;width:100%;max-height:230px}
.compact-shell .range-more{margin:0;height:18px}
.compact-shell .cabinet-chart-note,.compact-shell .month-coverage-note,.compact-shell .cabinet-coverage-help{font-size:10px;line-height:1.35}
.compact-shell .data-refresh-note{padding:5px 8px;font-size:11px;margin:0 0 7px;border-radius:6px}
.compact-shell .fineprint{font-size:12px;line-height:1.5}
.compact-shell .excel-toolbar{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.compact-shell .excel-source{gap:3px;margin:0;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px;flex-wrap:nowrap}
.compact-shell .excel-source [data-ex-niche]{margin-left:8px;background:transparent;border-color:transparent}
.compact-shell .ui-purchase-settings{flex:1;min-width:260px;border:1px solid var(--line);border-radius:9px;margin:0;padding:0 10px;background:var(--surface)}
.compact-shell .ui-purchase-settings>summary{padding:9px 0;font-size:12px;min-height:34px;box-sizing:border-box}
.compact-shell .excel-period{gap:8px;margin:0;padding:8px 0 10px;border-top:1px solid var(--line)}
.compact-shell .excel-period label{font-size:11px;gap:4px}
.compact-shell .excel-period .excel-date{width:145px;flex:0 0 145px}
.compact-shell .excel-months{gap:7px}
.compact-shell .excel-months input{max-width:90px}
.compact-shell .excel-summary strong,.compact-shell .rp-kpis strong{font-size:23px}
.compact-shell .excel-summary article,.compact-shell .rp-kpis{padding:8px 0}
.compact-shell .excel-overview .excel-summary article{padding-right:12px;padding-left:12px}
.compact-shell .excel-overview .excel-summary article:first-child{padding-left:0}
.compact-shell .excel-overview .excel-summary article:last-child{padding-right:0}
.compact-shell .rp-toolbar,.compact-shell .rp-settings-summary,.compact-shell .rp-controls{padding:8px;gap:8px;margin:0 0 10px}
.compact-shell .rp-summary{padding:8px 0;margin:0 0 10px}
.compact-shell .rp-help{margin:7px 0}
.compact-shell .rp-warning,.compact-shell .rp-notice,.compact-shell .delivery-loading{padding:9px 12px;margin:8px 0;font-size:12px}
.compact-shell .delivery-page-heading{margin:0}
.compact-shell .delivery-scope{padding:8px;margin:0 0 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.compact-shell .delivery-main-tabs{margin:0;gap:3px;display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.compact-shell .delivery-main-tabs .button{border:0;background:transparent;min-height:29px}
.compact-shell .delivery-main-tabs .button.active{background:var(--accent-bg)}
.compact-shell .delivery-period-picker{position:relative;display:inline-block;margin:0 0 10px 8px;border:0;vertical-align:top}
.compact-shell .delivery-period-picker>summary{font-size:12px;padding:10px 8px;gap:10px}
.compact-shell .delivery-period-picker .delivery-period{position:absolute;z-index:30;top:100%;right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:340px;max-width:calc(100vw - 40px);margin:4px 0 0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px var(--theme-shadow-color,#0004)}
.compact-shell .delivery-period-picker .delivery-period .button{grid-column:1/-1}
.compact-shell .stockout-controls{display:flex;align-items:center;gap:7px;margin:0;flex-wrap:wrap}
.compact-shell .stockout-controls label{font-size:11px;display:flex;align-items:center;gap:6px}
.compact-shell .stockout-controls>span{display:none}
.compact-shell .stockout-filterbar{display:flex;align-items:center;gap:10px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:9px;margin-bottom:10px;flex-wrap:wrap}
.compact-shell .stockout-filterbar>.monitor-scope{flex:1;min-width:400px}
.compact-shell .more-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.compact-shell .more-section{padding:14px;border-radius:11px}
.compact-shell .more-section h2{font-size:14px;margin-bottom:6px}
.compact-shell .more-section a{min-height:36px;padding:6px 0;font-size:12px}
.compact-shell .more-section a small{display:block;font-size:10px;color:var(--subtle);margin-top:2px;line-height:1.3}
.compact-shell .more-section .user-profile{margin-top:3px;padding-top:6px}
.compact-shell .more-account{grid-column:1/-1;display:flex;align-items:center;gap:20px}
.compact-shell .more-account h2{margin:0}.compact-shell .more-account .user-profile{margin:0 0 0 auto;border:0;padding:0}
.compact-shell .data-section-header{margin-bottom:12px}
.compact-shell .data-breadcrumbs{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--subtle);margin-bottom:8px}
.data-breadcrumbs a{color:var(--muted);text-decoration:none}.data-breadcrumbs a:hover{color:var(--accent)}
.compact-shell .data-section-nav{border:1px solid var(--line);border-radius:9px;padding:3px;margin:0;background:var(--surface);display:flex;gap:3px;flex-wrap:wrap}
.compact-shell .data-section-nav a{font-size:12px;padding:6px 10px;min-height:30px;box-sizing:border-box;border:0;border-radius:6px}
.compact-shell .data-section-nav a[aria-current=page]{background:var(--accent-bg);color:var(--ink)}
.compact-shell .screen-guide{margin:6px 0;font-size:11px}
.compact-shell .connection-group-header,.compact-shell .connection-directory-row{padding:10px 12px}
@media(min-width:1380px){.compact-shell .cabinet-chart-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.compact-shell .range-comparison-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-shell .more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-shell .unified-report-filters{flex-wrap:wrap}.unified-report-filters>.monitor-scope{flex-basis:100%}}
@media(max-width:720px){
 .desktop-top-nav{display:none}
 body .compact-shell .main-content{padding:10px 10px calc(80px + env(safe-area-inset-bottom,0px))!important}
 .compact-shell .cabinet-chart-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .compact-shell .monitoring-header,.compact-shell .work-section-header{flex-wrap:wrap;margin-bottom:9px;gap:7px}
 .compact-shell .work-section-header .work-section-nav{flex:1;width:auto}
 .compact-shell .work-section-nav a{font-size:11px;min-height:40px;padding:5px 8px}
 .compact-shell .monitoring-header-actions{margin-left:auto}
 .compact-shell .button,.compact-shell .icon-button{min-height:40px}
 #app .compact-shell input:not([type=checkbox]):not([type=radio]),#app .compact-shell select{font-size:16px;min-height:40px}
 .compact-shell .monitor-scope-button,.compact-shell .monitor-scope-reset,.compact-shell .monitor-date-picker>summary{min-height:40px}
 .compact-shell .range-comparison-strip,.compact-shell .monitoring-total .range-comparison-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 .compact-shell .range-comparison-strip>label{min-height:38px}
 .compact-shell .month-chart-card,.compact-shell .cabinet-chart-card{padding:10px}
 .compact-shell .more-grid{grid-template-columns:1fr;gap:10px}
 .compact-shell .more-section a{min-height:42px;font-size:13px}
 .compact-shell .more-account{display:block}.compact-shell .more-account .user-profile{margin-top:10px}
 .compact-shell .unified-report-filters{flex-wrap:nowrap}.unified-report-filters>.monitor-date-picker{min-width:0;flex:1}.unified-report-filters>.monitor-scope{flex:0 0 auto}
 .compact-shell .stockout-filterbar>.monitor-scope{min-width:0;flex:1}
 .compact-shell .stockout-controls{width:100%;gap:5px}.compact-shell .stockout-controls label{flex:1;min-width:0;display:block}.compact-shell .stockout-controls input{width:100%;min-width:0}.compact-shell .stockout-controls .button{align-self:flex-end}
 .compact-shell .excel-toolbar{display:block}.compact-shell .ui-purchase-settings{min-width:0;margin-top:7px}
 .compact-shell .excel-source{display:flex}.compact-shell .excel-source [data-ex-niche]{font-size:10px;margin-left:auto;flex:0 1 80px;white-space:normal}
 .compact-shell .excel-period .excel-date{width:100%;flex-basis:100%}.compact-shell .excel-months{grid-template-columns:repeat(3,minmax(0,1fr))}
 .compact-shell .delivery-period-picker{display:block;margin:5px 0}.compact-shell .delivery-main-tabs{display:none}.compact-shell .delivery-section-picker{display:block;margin:0 0 6px}
 .compact-shell .data-section-nav{display:flex;overflow:auto;flex-wrap:nowrap}.compact-shell .data-section-nav a{white-space:nowrap;min-height:40px;display:flex;align-items:center}
 .compact-shell .data-section-header .section-picker{display:none}
}

.compact-shell .monitoring-actions{display:flex;align-items:center;gap:7px}
.compact-shell .monitoring-title{display:none}
.compact-shell .rp-plan-controls{padding:8px 10px;margin-bottom:8px;border-radius:9px}
.compact-shell .rp-plan-top{margin:0;gap:8px}
.compact-shell .rp-summary{gap:16px;padding:10px 0}
.compact-shell .rp-summary strong{font-size:23px}
.compact-shell .rp-summary small,.compact-shell .rp-summary span{font-size:11px}
.compact-shell .rp-page .rp-filters{gap:7px;margin:8px 0}
@media(min-width:721px){.compact-shell .monitoring-navigation{min-width:0}.compact-shell .monitoring-tabs{flex-wrap:wrap}.compact-shell .monitoring-actions{margin-left:auto}}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* A visible chart detail must clear the filter bar, not just adjacent cards. */
.compact-shell .panel:has(.hour-floating:not([hidden]),.expense-tooltip:not([hidden]),.delivery-tooltip:not([hidden]),.month-point-detail:not([hidden])){position:relative;z-index:60}
.desktop-top-nav{gap:18px}
.desktop-top-nav .brand,.desktop-top-nav .top-account{flex-shrink:0}
.desktop-top-nav .primary-nav{flex:1;min-width:0;align-items:center;white-space:nowrap}
.desktop-top-nav .nav-item{flex-shrink:0}
.desktop-top-nav .nav-item[hidden]{display:none}
.desktop-top-nav .primary-more-toggle{border:0;font:inherit;font-size:12px;color:var(--muted);background:none;cursor:pointer}
.desktop-top-nav .primary-more-toggle.active,.desktop-top-nav .primary-more-toggle:hover{background:var(--accent-bg);color:var(--ink)}
.primary-more-menu{position:fixed;inset:55px 16px auto auto;margin:0;width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 72px);overflow:auto;box-sizing:border-box;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 14px 45px var(--theme-shadow-color,#0007)}
.primary-more-menu::backdrop{background:transparent}
.more-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.more-menu-heading strong{font-size:14px}.more-menu-heading a{font-size:11px;color:var(--muted);text-decoration:none}
.more-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 24px}
.more-directory-group{min-width:0}
.more-directory-group h2{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--subtle);margin:0 0 6px}
.more-directory-group nav{display:grid;gap:2px}
.more-directory-group a{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:32px;padding:6px 8px;margin-inline:-8px;border-radius:6px;color:var(--ink);text-decoration:none;font-size:12px;box-sizing:border-box}
.more-directory-group a:hover,.more-directory-group a:focus-visible{background:var(--hover);color:var(--accent)}
.more-menu-account,.more-profile>a{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:12px;text-decoration:none}
.more-menu-account{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}
.more-directory-page{max-width:1050px;padding:12px 2px}
.more-directory-page .more-directory{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 36px}
.more-directory-page .more-directory-group h2{font-size:12px}.more-directory-page .more-directory-group a{font-size:13px;min-height:36px}
.more-profile{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:26px;padding:14px 0}
.more-profile .user-profile{margin:0;border:0;padding:0}
@media(max-width:900px){.desktop-top-nav{gap:10px;padding-inline:10px}.desktop-top-nav .nav-item{gap:5px;padding-inline:8px}}
@media(max-width:720px){.more-directory-page .more-directory{grid-template-columns:1fr;gap:20px}.more-directory-page .more-directory-group a{min-height:44px}.more-profile{flex-wrap:wrap}.primary-more-menu{display:none}}
.compact-shell .buyout-card{display:block;padding:12px}
.compact-shell .buyout-card .cabinet-today>strong{color:var(--chart-current)}
.compact-shell .buyout-comparison-strip span{display:flex;align-items:center}
.compact-shell .buyout-comparison-strip i{display:inline-block;width:8px;border-top-width:3px;flex-shrink:0}
.compact-shell .buyout-plot{margin:0}
.compact-shell .buyout-plot>.hourly-chart{height:auto;max-height:230px;min-height:0}
.compact-shell .buyout-foot,.compact-shell .cabinet-chart-note{display:flex;align-items:center;gap:5px;min-height:16px;margin:4px 0 0;font-size:10px}
.compact-shell .cabinet-chart-note:empty{display:none}
.compact-shell .buyout-method{margin:8px 0 0}
.compact-shell .buyout-method:not([open]){display:none}
.compact-shell .buyout-method>summary{font-size:11px;padding:0}
/* The page owns vertical scrolling. Tables keep only their horizontal overflow. */
.page-table-scroll{max-height:none!important;height:auto!important;overflow-x:auto;overscroll-behavior-x:contain}
.page-table-header{position:fixed;overflow:hidden;box-sizing:content-box;z-index:50;pointer-events:auto;background:var(--panel,#24232d);border-bottom:1px solid var(--line)}
.page-table-header table{margin:0;border-radius:0;table-layout:fixed}
.page-table-header th{box-sizing:border-box}
.page-table-header th:not(:first-child){position:static!important}
.page-table-header .analysis-table{min-width:0}
@media(min-width:1151px){.compact-shell .monitor-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:760px){.page-table-header{display:block}.page-table-header[hidden]{display:none}}

/* Warehouse: one compact command row, one filter row, then the actual table. */
.compact-shell .rp-commandbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 8px;border:1px solid var(--border);border-radius:9px;background:var(--surface);margin:0 0 7px}
.compact-shell .rp-commandbar .rp-platform{padding:2px;flex:none;border-radius:7px;gap:2px}
.compact-shell .rp-commandbar .rp-platform .button{min-height:28px;padding:4px 8px;font-size:11px}
.compact-shell .rp-commandbar>.rp-parameters{background:transparent;white-space:nowrap}
.compact-shell .rp-summary-inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;padding-inline:5px}
.compact-shell .rp-summary-inline b{font-size:13px;font-variant-numeric:tabular-nums}
.compact-shell .rp-summary-inline .button{font-size:11px;min-height:28px;padding:3px 5px}
.compact-shell .rp-summary-warning{color:var(--theme-warning,#dfb97e)}
.compact-shell .rp-live-status{margin-left:auto;display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:nowrap}
.compact-shell .rp-toolbar{display:flex;gap:6px;margin:0 0 8px;flex-wrap:wrap}
.compact-shell .rp-toolbar input{flex:1 1 180px;width:auto;min-width:120px}
.compact-shell .rp-toolbar select{flex:0 1 190px;max-width:210px;min-width:120px}
.compact-shell .rp-toolbar .button{min-height:34px;margin-left:0;white-space:nowrap}
.compact-shell .rp-save:not(.rp-save-pending){display:none}
.compact-shell .rp-save-pending{padding:6px 9px;margin:5px 0;font-size:11px}
.compact-shell .rp-table td,.compact-shell .rp-table th{padding:6px 8px}
.compact-shell .rp-table{font-size:12px}.compact-shell .rp-table th{font-size:10px}
.compact-shell .rp-table small{font-size:10px;margin-top:2px}
.compact-shell .rp-table .button{min-height:28px;min-width:0;font-size:10px;padding:4px 7px}
.compact-shell .rp-table input{width:62px;min-height:29px;font-size:12px;padding:4px 6px}
.compact-shell .rp-table td:first-child,.compact-shell .rp-table th:first-child{min-width:190px;max-width:250px}
.rp-loading-toolbar{display:flex;gap:8px;padding:10px;border:1px solid var(--border);border-radius:9px;margin-bottom:8px}
.rp-loading-toolbar>span{width:140px;height:28px;border-radius:5px}
.rp-loading-table{border:1px solid var(--border);border-radius:9px;overflow:hidden}
.rp-loading-table>div{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:18px;padding:14px;border-bottom:1px solid var(--theme-border,#ffffff08)}
.rp-loading-table span{height:16px;border-radius:4px}
.rp-loading span,.chart-skeleton i{background:linear-gradient(100deg,var(--theme-neutral-tint,#ffffff04) 20%,var(--theme-neutral-tint,#ffffff0c) 45%,var(--theme-neutral-tint,#ffffff04) 70%);background-size:250% 100%;animation:warehouse-loading 1.6s ease-in-out infinite}
.rp-loading>small{display:block;color:var(--muted);font-size:11px;padding-top:6px}
.chart-skeleton{height:220px;display:flex;gap:20px;align-items:end;padding:18px 30px;border-bottom:1px solid var(--border)}
.chart-skeleton i{flex:1;height:35%;border-radius:5px 5px 0 0}.chart-skeleton i:nth-child(2){height:65%}.chart-skeleton i:nth-child(3){height:50%}.chart-skeleton i:nth-child(4){height:80%}
@keyframes warehouse-loading{0%{background-position:100% 0}100%{background-position:-150% 0}}
.compact-shell .delivery-loading-inline{display:flex;align-items:center;gap:6px;border:0;padding:0;margin:5px 0;background:none;box-shadow:none;font-size:10px;color:var(--muted);min-height:16px}
.compact-shell .delivery-status{font-size:10px;margin:4px 0 7px}
.compact-shell .delivery-shipment-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:6px 0 12px}
.compact-shell .delivery-shipment-card{padding:12px;border-radius:11px;min-width:0}
.compact-shell .delivery-shipment-card>header{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.compact-shell .delivery-shipment-card h3{font-size:14px;margin:0}
.compact-shell .delivery-market-mark{font-size:10px;width:25px;height:25px}
.compact-shell .delivery-shipment-card .delivery-slot-panel{margin:0;padding:0;border:0}
.compact-shell .delivery-shipment-card .delivery-slot-heading{margin:0 0 6px}
.compact-shell .delivery-slot-heading h4{font-size:12px}.compact-shell .delivery-slot-heading>span{font-size:12px}
.compact-shell .delivery-slot-controls{margin:5px 0;gap:6px;font-size:10px}
.compact-shell .delivery-slot-controls select{min-height:28px;font-size:11px;padding:3px 6px}
.compact-shell .delivery-slot-legend{gap:4px 10px;margin:7px 0;font-size:10px;min-height:40px}
.compact-shell .delivery-slot-legend>span{gap:4px;font-size:10px}
.compact-shell .delivery-shipment-card svg{width:100%;height:auto;max-height:235px;min-width:0}
.compact-shell .delivery-chart-notes{font-size:10px;color:var(--muted);margin-top:6px}
.compact-shell .delivery-chart-notes summary{cursor:pointer;color:var(--accent)}
.compact-shell .delivery-chart-notes .delivery-note{font-size:11px;line-height:1.45;margin:6px 0}
.compact-shell .delivery-dashboard-heading{margin:10px 0 6px}.compact-shell .delivery-dashboard-heading h2{font-size:15px}
.compact-shell .delivery-dashboard-heading p{font-size:11px;margin:2px 0}
.compact-shell .delivery-dashboard-grid{gap:12px}
.compact-shell .delivery-dashboard-card{padding:12px}
.compact-shell .delivery-dashboard-card h3{font-size:14px}
.compact-shell .delivery-market-total{padding:8px 0;gap:10px}.compact-shell .delivery-market-total>strong{font-size:24px}
.compact-shell .delivery-market-total>span{font-size:12px}.compact-shell .delivery-market-total small{font-size:10px}
.compact-shell .delivery-market-goal{font-size:10px;margin:6px 0}
.compact-shell .delivery-stage-list{gap:4px}.compact-shell .delivery-stage{padding:6px 9px;min-height:0}
.compact-shell .delivery-stage b{font-size:11px}.compact-shell .delivery-stage small{font-size:10px}.compact-shell .delivery-stage strong{font-size:17px}
.compact-shell .delivery-market-rules{font-size:11px;margin-top:10px;padding-top:8px}
.compact-shell .delivery-dashboard-card footer{font-size:10px;margin-top:8px;padding-top:8px}
.compact-shell .main-content :is(.analysis-scroll,.table-wrap,.excel-table-scroll,.finance-month-table-scroll,.source-matrix-scroll,.product-sheet-scroll,.month-data-table-wrap,.delivery-table-scroll,.insight-table-scroll){max-height:none}
@media(max-width:1000px){.compact-shell .delivery-shipment-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-shell .rp-summary-inline{gap:8px}}
@media(max-width:720px){
 .compact-shell .rp-commandbar{padding:6px;gap:5px}.compact-shell .rp-commandbar .rp-platform{flex:1}.compact-shell .rp-commandbar .rp-platform .button{min-height:36px;flex:1}
 .compact-shell .rp-summary-inline{order:3;flex-basis:100%;gap:10px;padding:3px 0}.compact-shell .rp-commandbar .rp-live-status{margin-left:0}
 .compact-shell .rp-commandbar>.rp-parameters{font-size:11px;min-height:36px}.compact-shell .rp-toolbar input{flex-basis:100%;width:100%}
 .compact-shell .rp-toolbar select{max-width:none;flex:1 1 44%;min-height:40px}.compact-shell .rp-toolbar .button{flex:1;min-height:40px}
 .compact-shell .delivery-shipment-charts{grid-template-columns:1fr}.compact-shell .delivery-slot-legend{min-height:0}
}
@media(prefers-reduced-motion:reduce){.rp-loading span,.chart-skeleton i{animation:none}}

/* A name and its change are one reading; wrap whole readings, never their values. */
.comparison-readout{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 12px;margin:0 0 7px;font-variant-numeric:tabular-nums}
.comparison-entry{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;min-width:0;min-height:24px;padding:2px 0 5px;box-sizing:border-box;line-height:1.25;color:var(--ink);font-weight:400;white-space:nowrap}
.comparison-entry i{position:absolute;left:0;right:0;bottom:0;display:block;border-top:2px solid var(--series-color);border-radius:1px}
:root{
 --quality-wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='5' viewBox='0 0 12 5'%3E%3Cpath d='M-3 2.5Q0 0.5 3 2.5T9 2.5T15 2.5' fill='none' stroke='black' stroke-width='1.15'/%3E%3C/svg%3E");
 --quality-wave-bold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='5' viewBox='0 0 12 5'%3E%3Cpath d='M-3 2.5Q0 0.5 3 2.5T9 2.5T15 2.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");
}
.comparison-entry.is-incomplete i{height:5px;border:0;border-radius:0;background:var(--series-color);-webkit-mask:var(--quality-wave-bold) repeat-x left bottom/12px 5px;mask:var(--quality-wave-bold) repeat-x left bottom/12px 5px}
.comparison-entry.is-incomplete.is-off i{opacity:.35}
.comparison-entry .comparison-name{font-size:12px;color:var(--muted)}
.comparison-entry.is-current .comparison-name{color:var(--ink)}
.comparison-entry b{font-size:12px;line-height:1.25;white-space:nowrap;font-weight:600;margin-left:1px}
.comparison-entry input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.comparison-entry.is-off i{border-color:var(--subtle);border-top-style:dotted}.comparison-entry.is-off .comparison-name{color:var(--subtle)}
.comparison-entry:has(input){cursor:pointer}.comparison-entry:has(input):hover{background:var(--theme-neutral-tint,#ffffff06)}
.comparison-entry:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.compact-shell .chart-viewport{min-width:0;overflow:visible}
.compact-shell :is(.range-plot,.hourly-plot,.month-plot,.buyout-plot) .hourly-chart{display:block;width:100%;height:auto;min-width:0;min-height:0;max-height:none;overflow:visible}
.compact-shell .hourly-chart text{font-size:11px;fill:var(--muted);font-variant-numeric:tabular-nums}
.compact-shell .hourly-chart .chart-axis-unit{font-size:10px;fill:var(--subtle)}
.compact-shell .hourly-chart .chart-grid{stroke:var(--theme-grid,#ffffff13);stroke-dasharray:none;stroke-width:1}
.compact-shell .hourly-chart .chart-zero{stroke:var(--theme-grid,#ffffff28)}
.comparison-line,.hour-series{opacity:var(--series-opacity,1)}
.comparison-line{transition:opacity .12s ease}
@media(max-width:720px){
 .compact-shell .monitor-tools.monitoring-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;max-width:100%;box-sizing:border-box;gap:6px;padding:7px;overflow:visible}
 .compact-shell .monitoring-controls .monitoring-options,.compact-shell .monitoring-controls .monitoring-filter-row{display:contents}
 #app .compact-shell .monitoring-controls :is(select,.monitoring-date-control,.insight-period-button){width:100%!important;min-width:0!important;max-width:100%!important;min-height:42px;height:42px;box-sizing:border-box;flex:initial;margin:0;padding:0 24px 0 9px;font-size:14px}
 #app .compact-shell .monitoring-controls .monitoring-date-control{display:flex;padding:0 8px}
 #app .compact-shell .monitoring-controls .monitoring-date{width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px}
 .compact-shell .monitoring-controls .monitoring-date-range{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:5px;min-width:0;width:100%}
 .compact-shell .monitoring-controls .monitor-scope{grid-column:1/-1;min-width:0;width:100%;display:flex;gap:6px}
 .compact-shell .monitoring-controls:has(.monitoring-options>:nth-child(5):last-child) .monitor-scope{grid-column:2}
 .compact-shell .monitoring-controls .monitor-scope-mobile{display:flex;flex:1;width:0;min-width:0;max-width:100%;min-height:42px;height:42px;align-items:center;justify-content:center;font-size:13px;padding:4px 8px}
 .compact-shell .monitoring-controls .monitor-scope-reset{flex:none;min-width:32px;width:32px;height:42px}
 .compact-shell .monitoring-controls .monitor-scope-reset:disabled{display:none}
 .compact-shell .month-card-heading{align-items:start;flex-wrap:wrap}.compact-shell .month-card-heading h2{flex:1;min-width:130px}
}


/* The same tables on desktop and phone: page scrolling vertically, table
   scrolling horizontally. Keep identifiers visible while comparing columns. */
@media(max-width:720px){
 .compact-shell .main-content .table-wrap:has(.ui-product-months),.compact-shell .source-matrix-details .source-matrix-scroll{display:block;overflow:auto;max-height:none}
 .compact-shell .source-mobile-periods,.compact-shell .ui-mobile-months{display:none}
 .compact-shell .source-matrix-details .source-legend{display:flex}
 .compact-shell .main-content :is(.data-table,.excel-table) tr>:first-child:not([colspan]){position:sticky;left:0;z-index:2;background:var(--surface);box-shadow:1px 0 var(--border)}
 .compact-shell .main-content :is(.data-table,.excel-table) thead tr>:first-child{z-index:4}
 .compact-shell .main-content :is(.analysis-table,.excel-table) tr>:first-child{min-width:140px!important;width:140px!important;max-width:160px!important;white-space:normal}
 .compact-shell .main-content :is(.analysis-table,.excel-table) :is(.product-name,.excel-product-link){min-width:0;max-width:140px;white-space:normal;overflow-wrap:anywhere}
 .compact-shell .main-content .finance-month-table tr>:first-child{min-width:80px;width:80px}
 .compact-shell .main-content .finance-month-table :is(td,th){padding-top:8px;padding-bottom:8px}
 .compact-shell .main-content .finance-cell-value{min-height:32px}
}

/* Compact task directory, shared by desktop menu and mobile page. */
.more-task-browser{min-width:0}.more-search{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);margin-bottom:14px;padding:4px 0 10px;color:var(--muted)}
.more-search input{background:transparent;border:0;color:var(--ink);font:inherit;min-width:0;flex:1;outline-offset:3px;padding:6px 0}
.compact-shell .more-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 28px}
.compact-shell .more-directory-group{border:0;padding:0;background:none;min-width:0}
.compact-shell .more-directory-group h2{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 5px}
.compact-shell .more-directory-group a{border:0;margin:0;padding:7px 0;min-height:0;display:block;font-size:13px;line-height:1.35;text-decoration:none;color:var(--ink)}
.more-directory-group a small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:2px}
.compact-shell .more-directory-group a:hover{color:var(--accent)}
.more-task-browser [hidden]{display:none!important}.more-page-heading{display:flex;justify-content:space-between;align-items:center}
.compact-shell .more-directory-page{max-width:1100px}.compact-shell .primary-more-menu{width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 90px);padding:18px 22px}
.primary-more-menu .more-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 26px}
.primary-more-menu .more-directory-group{border:0;padding:0}.primary-more-menu .more-directory-group h2{font-size:12px;color:var(--muted);margin:0 0 5px}
.primary-more-menu .more-directory-group a{display:block;margin:0;min-height:0;border:0;padding:7px 0;font-size:13px;text-decoration:none;color:var(--ink)}
.primary-more-menu .more-directory-group a:hover{color:var(--accent)}
@media(max-width:720px){.compact-shell .more-directory{grid-template-columns:1fr;gap:20px 16px}.more-directory-group nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.compact-shell .more-directory-group a{min-height:40px;box-sizing:border-box;padding:8px 0}.more-search input{font-size:16px}}
@media(max-width:380px){.compact-shell .more-directory{grid-template-columns:1fr}.more-directory-group nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}}

/* Shared comparison presentation in every chart. */
.month-chart-card,.cabinet-chart-card,.buyout-chart-card{container-type:inline-size}
.comparison-readout{font-variant-numeric:tabular-nums}
/* First paint has structure. It never pretends to contain measured values. */
.loading-heading,.loading-legend i,.loading-axis i,.loading-table td i{display:block;background:var(--border,#393941);border-radius:3px;animation:placeholder-pulse 1.5s ease-in-out infinite alternate}
.loading-heading{width:36%;height:16px;margin:4px 0 22px}
.loading-legend{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:18px 0}
.loading-legend i{height:9px;width:80%}.loading-legend i:first-child{grid-column:1/-1;width:40%}
.loading-plot{height:180px;display:flex;flex-direction:column;justify-content:space-between;margin:20px 0 10px 30px}
.loading-plot i{display:block;height:1px;width:100%;background:var(--border,#393941);opacity:.5}
.loading-axis{display:flex;justify-content:space-between;margin-left:30px}.loading-axis i{height:8px;width:36px}
.loading-table .table-wrap{overflow-x:auto}.loading-table table{min-width:600px;width:100%}.loading-table td{height:36px}
.loading-table td i{width:72%;height:10px}.loading-table tr:nth-child(even) td i{width:54%}
@keyframes placeholder-pulse{from{opacity:.28}to{opacity:.65}}
.page-data-skeleton{display:block;padding:14px 16px;min-height:0;overflow:hidden}
.page-loading-label{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:14px}
.page-loading-rows>div{display:grid;grid-template-columns:minmax(100px,2fr) repeat(5,minmax(32px,1fr));align-items:center;gap:24px;height:36px;border-top:1px solid var(--border,#393941)}
.page-loading-rows i{display:block;width:65%;height:9px;border-radius:2px;background:var(--border,#393941);animation:placeholder-pulse 1.5s ease-in-out infinite alternate;justify-self:end}
.page-loading-rows i:first-child{width:72%;justify-self:start}
.page-loading-rows>div:nth-child(even) i{width:52%}
@media(max-width:600px){.page-data-skeleton{padding:12px}.page-loading-rows>div{grid-template-columns:minmax(100px,2fr) repeat(2,minmax(40px,1fr));gap:16px}.page-loading-rows i:nth-child(n+4){display:none}.compact-shell .excel-overview .excel-summary article{padding-left:8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){.page-loading-rows i{animation:none;opacity:.45}}
@media(prefers-reduced-motion:reduce){.loading-heading,.loading-legend i,.loading-axis i,.loading-table td i{animation:none;opacity:.4}}
/* Compact, top-aligned headings; values keep their tabular digit alignment. */
.compact-shell .data-table thead th{vertical-align:top}
.compact-shell .product-analysis .analysis-table{min-width:0;width:max-content;table-layout:fixed}
.compact-shell .product-analysis .analysis-table th.number,.compact-shell .product-analysis .analysis-table td.number{min-width:90px;width:90px;max-width:90px;padding:3px 5px;font-size:12px}
.compact-shell :is(.product-analysis,.page-table-header) .analysis-table thead th.number{vertical-align:top;text-align:left;padding:8px 5px}
.compact-shell :is(.product-analysis,.page-table-header) .analysis-table thead th button{font-size:11px;line-height:1.3;text-align:left;max-width:100%;overflow-wrap:normal}
.compact-shell :is(.product-analysis,.page-table-header) .analysis-table thead th small{font-size:9px;margin-bottom:4px}
.page-table-header .analysis-header-unit{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.compact-shell .product-analysis .analysis-table .analysis-product{min-width:188px;width:188px;max-width:188px;padding:3px 8px;line-height:1.2}
.compact-shell .product-analysis .analysis-table tbody .analysis-product{height:auto}
.compact-shell .product-analysis .analysis-table .analysis-value,.compact-shell .product-analysis .analysis-table .analysis-missing{min-height:24px;padding:2px 0;font-size:12px;white-space:nowrap}
.compact-shell .product-analysis .analysis-table .analysis-family-toggle{line-height:1.3;gap:6px}
.compact-shell .product-analysis .analysis-table .analysis-product small{font-size:10px;line-height:1.3;margin-top:1px}
.compact-shell .product-analysis .analysis-table .analysis-total td{padding-top:6px;padding-bottom:6px}
.analysis-table td[data-heat]{background-color:rgba(var(--cell-color),var(--cell-intensity));font-variant-numeric:tabular-nums}
.analysis-table td[data-heat=amount]{--cell-color:102,180,239}.analysis-table td[data-heat=cost]{--cell-color:226,158,107}
.analysis-table td[data-heat=profit]{--cell-color:104,191,161}.analysis-table td[data-heat=loss]{--cell-color:234,125,140}
.analysis-table td[data-heat=profit] button{color:var(--theme-good,#90d5bc)}.analysis-table td[data-heat=loss] button{color:var(--theme-bad,#f09aa7)}
.money-hidden .analysis-table td[data-heat]{background-color:transparent}.money-hidden .analysis-table td[data-heat] button{color:inherit}
.analysis-color-key{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--muted);padding:7px 0}
.analysis-color-key span{white-space:nowrap}.analysis-color-key i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px}
.key-amount{background:#66b4ef}.key-cost{background:#e29e6b}.key-profit{background:#68bfa1}.key-loss{background:#ea7d8c}
.analysis-color-key small{font-size:10px}
.plan-group-name,.plan-column-kind{display:block}
.plan-column-kind{color:var(--muted);font-weight:400;margin-top:2px}
.data-table :is(th,td).plan-group-start{border-left:1px solid var(--border)}
.data-table th.plan-group-start,.data-table th.plan-group-end{background:var(--theme-accent-bg,rgba(177,158,230,.055))}
.marketplace-product-heading,.marketplace-product-section h2{font-size:15px;margin:12px 0 7px}
.marketplace-product-section{margin-top:18px;scroll-margin-top:80px}
.marketplace-product-section header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.marketplace-products-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:10px}
.marketplace-products-table{width:max-content;table-layout:fixed;min-width:0!important;font-size:12px;font-variant-numeric:tabular-nums}
.marketplace-products-table :is(td,th){padding:4px 6px;line-height:1.3}
.marketplace-products-table :is(td,th).number{min-width:90px;width:90px;max-width:90px}
.compact-shell .marketplace-products-table thead th{font-size:11px;text-align:left;vertical-align:top;padding-top:7px;padding-bottom:7px;white-space:normal;overflow-wrap:break-word}
.marketplace-products-table thead small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.marketplace-products-table tr>:first-child{min-width:188px;width:188px;max-width:188px;white-space:normal;overflow-wrap:anywhere}
.marketplace-products-table tbody th small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:2px}
.marketplace-products-table .finance-cell-value{width:100%;min-height:24px;padding:2px 0;text-align:right;white-space:nowrap;font-size:12px}
.marketplace-products-table .finance-heat-cell{background:var(--cell-heat,transparent)}
.marketplace-products-table .finance-cell-value:hover{background:var(--theme-neutral-tint,rgba(128,128,128,.12))}
.money-hidden .marketplace-products-table .finance-heat-cell{background:transparent}
.marketplace-products-table .analysis-total{background:var(--theme-accent-bg,rgba(177,158,230,.13));font-weight:600}
.finance-platform-scope{margin:6px 0 12px}
.finance-platform-scope .finance-marketplace-jumps{margin:0 0 8px}
.accounting-reconciliation>summary{font-size:12px;font-weight:600;margin-bottom:7px;cursor:pointer}
.accounting-reconciliation>.fineprint{font-size:11px;margin:6px 0}
.analysis-tools [data-analysis-plan-toggle][aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
@media(max-width:720px){
 .compact-shell .product-analysis .analysis-table .analysis-product{min-width:140px;width:140px;max-width:140px}
 .compact-shell .product-analysis .analysis-table .analysis-value,.compact-shell .product-analysis .analysis-table .analysis-missing{min-height:34px}
 .comparison-readout{column-gap:12px}
 .comparison-entry{min-height:30px}
 .analysis-color-key small{flex-basis:100%}
 .marketplace-products-table tr>:first-child{min-width:140px;width:140px;max-width:140px}
 .marketplace-products-table .finance-cell-value{min-height:34px}
}
/* One product table across marketplaces, with short nearby labels. */
.unified-product-analysis{min-width:0}
.unified-scope{display:flex;gap:10px;align-items:baseline;margin:7px 0;font-size:12px}
.unified-scope>span{color:var(--muted)}
.unified-products-table{--product-name-width:188px}
.unified-products-table .unified-name-col{width:var(--product-name-width)}
.marketplace-products-table.unified-products-table :is(td,th).number{width:auto;min-width:0;max-width:none;padding-inline:5px}
.marketplace-products-table.unified-products-table thead th{overflow-wrap:normal}
.unified-products-table :is(thead,tbody)>tr>:first-child{position:sticky;left:0;z-index:2;background:var(--panel,#202127);box-shadow:1px 0 var(--border)}
.unified-products-table thead>tr>:first-child{z-index:4;background:var(--surface,#25252e)}
.unified-products-table tbody :is(td,th){vertical-align:top}
.unified-products-table .finance-cell-value{display:block;line-height:16px}
.unified-products-table .analysis-total>:first-child{background:var(--theme-surface-raised,#34303f)}
.unified-products-table .analysis-family-toggle{padding:0;min-height:28px;text-align:left;width:100%;display:flex;gap:6px;align-items:baseline;white-space:normal;font-size:12px;line-height:1.3}
.unified-products-table strong{font-weight:500}
.unified-products-table .analysis-size>:first-child{padding-left:18px}
.unified-partial{display:block;color:var(--muted);font-size:9px;line-height:1.1}
.unified-product-analysis>.panel-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:7px 0;padding:0;font-size:11px;color:var(--muted)}
.unified-product-analysis :is(.accounting-reconciliation,.analysis-native-wb){margin-top:8px;font-size:12px}
.unified-product-analysis .analysis-native-wb>summary{cursor:pointer;color:var(--muted)}
.unified-product-analysis .analysis-tools{margin:5px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.unified-product-analysis .analysis-tools select{width:auto;max-width:200px;min-width:0}
.unified-product-analysis .analysis-tools .analysis-search{flex:1;min-width:180px;max-width:320px}
@media(max-width:720px){
 .unified-products-table{--product-name-width:140px}
 .unified-product-analysis .analysis-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .unified-product-analysis .analysis-tools>:is(input,select,button){width:100%;max-width:none;min-width:0;font-size:12px;min-height:38px}
 .unified-product-analysis .analysis-tools .analysis-search{grid-column:1/-1;min-width:0;max-width:none}
 .unified-product-analysis .analysis-tools [data-unified-jump]{grid-column:1/-1}
 .unified-products-table .analysis-family-toggle{min-height:34px}
 .unified-scope{flex-wrap:wrap;gap:4px 8px}
}

/* Floating headers remain tables on narrow screens, including inside details. */
.page-table-header .page-table-copy{display:table!important;min-width:0!important}
.page-table-header thead{display:table-header-group!important}
.page-table-header tr{display:table-row!important}
.page-table-header th{display:table-cell!important}
.page-table-header[hidden]{display:none!important}
.chart-layer-tooltip[popover]{position:fixed!important;inset:auto;margin:0;box-sizing:border-box;max-height:calc(100dvh - 20px)!important;overflow:auto!important}
.chart-layer-tooltip[popover]::backdrop{background:transparent;pointer-events:none}
.finance-calculation-scroll th small{overflow-wrap:anywhere}

/* The period is one control; editing dates opens a fully readable form. */
.compact-shell .stockout-period-picker{position:relative;min-width:0}
.compact-shell .stockout-period-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;cursor:pointer;list-style:none;white-space:nowrap}
.compact-shell .stockout-period-picker>summary::-webkit-details-marker{display:none}
.compact-shell .stockout-period-picker .stockout-controls{position:absolute;z-index:30;top:calc(100% + 6px);left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:340px;max-width:calc(100vw - 40px);padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px var(--theme-shadow-color,#0004)}
.compact-shell .stockout-period-picker .stockout-controls label{min-width:0;display:block}
.compact-shell .stockout-period-picker .stockout-controls input{width:100%;min-width:0}
.compact-shell .stockout-period-picker .stockout-controls .button{grid-column:1/-1}
.compact-shell .stockout-period-picker .form-error{grid-column:1/-1;margin:0;font-size:12px}
.compact-shell .stockout-period-picker .form-error:empty{display:none}
.compact-shell .stockout-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,220px) minmax(160px,220px);gap:6px;margin:8px 0}
.compact-shell .stockout-filters>*{width:100%;min-width:0;max-width:none;min-height:36px;font-size:12px;padding:7px 9px}
.compact-shell .stockout-summary{margin:10px 0 6px;font-size:12px;gap:6px}
.compact-shell .stockout-summary strong{font-size:18px}
.compact-shell .catalog-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.compact-shell .catalog-tools .search-field{flex:1;min-width:180px;max-width:400px}
@media(max-width:720px){
 .compact-shell .stockout-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .compact-shell .stockout-filters input{grid-column:1/-1}
 .compact-shell .stockout-filters>*{min-height:40px}
 .compact-shell .stockout-summary span{width:auto}
 .compact-shell .catalog-tools{display:grid;grid-template-columns:minmax(0,1fr)}
 .compact-shell .catalog-tools .search-field{max-width:none;width:100%;min-width:0}
 .compact-shell .catalog-tools .segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0}
 .compact-shell .catalog-tools .segmented button{min-width:0;white-space:normal;font-size:12px;padding:6px;min-height:40px}
}
@media(max-width:720px){
 .compact-shell .stockout-filterbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .compact-shell .stockout-period-picker{min-width:0}
 .compact-shell .stockout-period-picker>summary{font-size:12px;min-height:40px;white-space:normal}
 .compact-shell .stockout-period-picker>summary [data-stockout-range]{min-width:0}
 .compact-shell .stockout-filterbar>.monitor-scope{grid-column:auto;width:auto;min-width:0;max-width:none;margin:0;gap:2px;order:0}
 .compact-shell .stockout-filterbar .monitor-scope-mobile{width:auto;min-height:40px;white-space:nowrap}
 .compact-shell .stockout-filterbar .monitor-scope-reset:disabled{display:none}
 .compact-shell .stockout-summary{margin:10px 0}
 .compact-shell .stockout-summary>span{display:inline}
}

/* Background reads never replace or dim the saved report. */
.data-refresh-progress{display:block;position:relative;height:2px;max-width:100%;overflow:hidden;border-radius:2px;contain:paint}
.data-refresh-progress::after{content:"";display:block;width:25%;height:100%;background:var(--accent,#bca5fa);opacity:.65;animation:data-refresh-progress 1.8s ease-in-out infinite}
@keyframes data-refresh-progress{from{transform:translateX(-100%)}to{transform:translateX(500%)}}
@media(prefers-reduced-motion:reduce){.data-refresh-progress::after{animation:none;width:100%;opacity:.35}}

.data-refresh-progress>.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Match the legend's wave geometry, with a lighter stroke for numeric values.
   Absolute positioning preserves the number's width, baseline and row height. */
.estimated-value {
  position:relative;
  display:inline-block;
  text-decoration:none;
  white-space:nowrap;
}
.estimated-value::after {
  content:"";
  opacity:.5;
  position:absolute;
  left:0;right:0;bottom:-3px;height:5px;
  background:currentColor;
  pointer-events:none;
  -webkit-mask:var(--quality-wave) repeat-x left bottom/12px 5px;
  mask:var(--quality-wave) repeat-x left bottom/12px 5px;
}

/* One refresh signal in the page heading, without shifting saved charts. */
body:has([data-refresh-summary]) .data-refresh-progress{display:none}

/* Shared selection controls in the two working tables. */
.compact-shell :is(.excel-filters,.rp-toolbar){gap:6px;margin:8px 0;min-width:0}
.compact-shell :is(.excel-filters,.rp-toolbar)>.monitor-scope{order:0;min-width:220px;flex:1 1 280px;max-width:460px}
.compact-shell :is(.excel-filters,.rp-toolbar)>input[type=search]{flex:1 1 180px;min-width:150px;max-width:420px}
.compact-shell :is(.excel-filters,.rp-toolbar)>select{flex:0 1 180px;min-width:120px;max-width:200px}
.compact-shell :is(.excel-filters,.rp-toolbar)>.button{margin-left:0;white-space:nowrap}
.table-export-short{display:none}
@media(max-width:720px){
 .compact-shell :is(.excel-filters,.rp-toolbar){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto;gap:6px}
 .compact-shell :is(.excel-filters,.rp-toolbar)>input[type=search]{grid-column:1/-1;width:100%;min-width:0;max-width:none;min-height:42px}
 .compact-shell :is(.excel-filters,.rp-toolbar)>.monitor-scope{grid-column:auto;width:auto;min-width:0;max-width:none;gap:2px}
 .compact-shell :is(.excel-filters,.rp-toolbar)>.monitor-scope .monitor-scope-mobile{width:0;flex:1;min-width:0;min-height:42px;height:42px;font-size:12px;padding:0 6px}
 .compact-shell :is(.excel-filters,.rp-toolbar) .monitor-scope-reset{width:27px;min-width:27px;height:42px}
 .compact-shell :is(.excel-filters,.rp-toolbar) .monitor-scope-reset:disabled{display:none}
 .compact-shell :is(.excel-filters,.rp-toolbar)>select{min-width:0;max-width:none;width:100%;min-height:42px;font-size:12px;padding-left:8px}
 .compact-shell :is(.excel-filters,.rp-toolbar)>.button{min-height:42px;font-size:12px;padding:6px 9px}
 .table-export-long{display:none}.table-export-short{display:inline}
 .compact-shell .excel-overview{padding:6px 0;gap:6px;margin-bottom:6px}
 .compact-shell .excel-overview .excel-summary article{padding-top:2px;padding-bottom:2px}
 .compact-shell .excel-overview .excel-summary strong{font-size:20px}
 .compact-shell .rp-versions{gap:5px;margin-bottom:6px}
 .compact-shell .rp-versions>small{font-size:10px;line-height:1.3}
}

/* Financial product rows: compact values with secondary shares, no repeated units. */
.marketplace-products-table.unified-products-table :is(td,th).number{padding-inline:3px}
.unified-products-table tbody :is(th,td){padding-block:3px}
.compact-shell .unified-products-table thead th.number{text-align:right;vertical-align:bottom;line-height:1.18}
.unified-products-table .finance-cell-value{min-height:26px;padding-block:1px}
.unified-products-table .finance-expense-share{display:block;font-size:10px;line-height:12px;font-weight:400;opacity:.76;color:inherit}
.unified-products-table tbody th .product-sale-tag{display:inline;font-size:9px;border:1px solid var(--border);border-radius:3px;padding:0 3px;margin:0 0 0 4px;white-space:nowrap}
.finance-group-controls{display:inline-flex;gap:3px;flex-wrap:wrap}
.finance-group-controls button{font-size:11px;padding-inline:6px}
.finance-group-controls button[aria-expanded=false]{border-color:var(--accent);color:var(--accent)}
@media(max-width:720px){.unified-products-table .finance-cell-value{min-height:34px}.finance-group-controls button{min-height:34px}}
