.filter-tools{display:flex;justify-content:flex-end;margin:0 0 8px}.filter-toggle,.expand-panel{border:1px solid #40546a;background:#182430;color:#bcd3ee;border-radius:6px;padding:8px 12px;cursor:pointer;font:inherit;font-size:11px}.filter-toggle:hover,.expand-panel:hover{background:#2b4056;color:#fff}.filters-collapsed .filter-bar,.filters-collapsed #extra-filters{display:none!important}.filter-bar select,.filter-bar input,.extra-filters select,.extra-filters input:not([type=checkbox]),.cost-filter-row select{background:#101820!important;color:#e2ebf6;border:1px solid #40546a!important;border-radius:6px;min-height:38px;padding:8px 11px;color-scheme:dark}.filter-bar select,.extra-filters select,.cost-filter-row select{cursor:pointer;appearance:auto}.filter-bar select:focus-visible,.filter-bar input:focus-visible,.extra-filters select:focus-visible{outline:2px solid #699eff;outline-offset:2px}.expand-panel{margin-left:auto;flex-shrink:0;font-size:17px;line-height:1;padding:7px 10px}.has-expanded-panel{overflow:hidden}.panel-expanded{position:fixed!important;inset:16px!important;z-index:300!important;margin:0!important;width:auto!important;height:auto!important;max-height:none!important;overflow:auto!important;background:#151e28!important;box-shadow:0 0 0 40px #080e16ed!important;display:block!important}.panel-expanded>.panel-heading{position:sticky;top:0;background:#151e28;z-index:10}.panel-expanded .trend-chart{height:calc(100vh - 230px)!important;min-height:400px}.panel-expanded .trend-chart>svg{height:100%;width:100%}.panel-expanded .g-region-scroll{max-height:calc(100vh - 160px)}.panel-expanded .category-scroll{max-height:calc(100vh - 190px)}.detail-view-controls{padding:0 22px 16px;display:flex;gap:14px;align-items:center;justify-content:space-between}.detail-metric{background:#101820;color:#e2ebf6;border:1px solid #40546a;border-radius:6px;padding:8px}.category-chart{padding:0 20px 18px}.category-scroll{overflow:auto;width:100%}.category-scroll svg{display:block;max-width:none}.category-legend{display:flex;gap:22px;padding:4px 0 14px;font-size:12px;color:#b6c5d7}.category-legend span{display:flex;align-items:center;gap:7px}.category-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}.g-table-panel .export-actions{display:flex;gap:8px;margin-left:auto}.g-table-panel .export-actions button{border:1px solid #35485e;background:#1b2a3a;border-radius:5px;padding:7px 12px}.g-table-panel [hidden]{display:none!important}@media(max-width:650px){.panel-expanded{inset:6px!important}.detail-view-controls{padding-left:14px;padding-right:14px}.g-table-panel .panel-heading{align-items:center}.g-table-panel .export-actions{margin-left:0}.expand-panel{margin-left:auto}.category-chart{padding-left:12px;padding-right:12px}}

.g-table-panel .expand-panel{margin-left:0}.panel-expanded .category-scroll{max-height:none}.category-chart svg{max-width:none!important}

/* Keep the collapse control reachable alongside sticky filters. */
.filter-tools{position:sticky;top:8px;z-index:10;height:36px;margin:0 0 8px;background:var(--bg);align-items:center}.filter-bar{top:52px}.extra-filters{top:calc(var(--filter-height,0px) + 60px)}.filters-collapsed .filter-tools{box-shadow:0 8px 18px #0003;border-radius:7px}.has-expanded-panel .filter-tools{z-index:10}

.g-two:has(#g-cc-regions),.g-two:has(#g-robot-regions){grid-template-columns:minmax(0,1fr)}.regional-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 22px 16px}.regional-table-scroll{overflow:auto;max-height:420px}.g-regional-view .category-chart{padding-bottom:12px}.panel-expanded .regional-table-scroll{max-height:calc(100vh - 180px)}.panel:has(.g-regional-view) .g-comparison-legend{display:none}.panel:has(.g-regional-view) .panel-heading{flex-wrap:wrap}.panel:has(.g-regional-view) .panel-heading>.segmented{margin-left:auto}.panel:has(.g-regional-view) .expand-panel{margin-left:0}.g-regional-view [hidden]{display:none!important}

.g-analysis-switch{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 12px}.g-analysis>.g-chart-panel{margin-top:0}.region-sort{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.region-sort select{min-height:34px;background:#101820;color:var(--text);border:1px solid #40546a;border-radius:6px;padding:7px 10px}.regional-view-toolbar{flex-wrap:wrap}.regional-view-toolbar .region-sort{margin-left:auto}.detail-view-controls{flex-wrap:wrap}

body:has([data-page="sales"].active) .bottom-layout{grid-template-columns:minmax(0,1fr)}.sales-summary{min-width:660px;font-size:12px}.sales-summary th,.sales-summary td{padding:13px 20px}.sales-summary tfoot td{font-weight:600;border-top:2px solid #40546a}.sales-summary th{position:sticky;top:0;background:#1c2630}.sales-summary td:first-child{white-space:normal;min-width:180px}.sales-summary .ranking-scroll{max-height:420px}.chart-legend{flex-wrap:wrap}

.sales-direction-menu{width:220px;max-width:100%;min-width:160px}.sales-direction-menu summary{height:38px;flex-direction:row;align-items:center;justify-content:space-between;border-color:#40546a}.sales-direction-menu summary:after{content:"⌄";color:var(--muted)}.sales-direction-menu .g-options label{display:flex;align-items:center;gap:8px;font-size:12px;padding:8px;margin:0;color:var(--text)}.sales-direction-menu input{min-height:0!important;width:14px!important;height:14px!important;padding:0!important}.sales-direction-menu .g-options{min-width:250px}.sales-direction-menu summary b{max-width:180px}#sales-detail-tabs{flex-wrap:wrap}#detail-panel:has(#sales-detail-tabs:not([hidden])) .panel-heading{flex-wrap:wrap;align-items:center}#detail-panel:has(#sales-detail-tabs:not([hidden])) .detail-actions{margin-left:auto;display:flex;gap:18px;align-items:center;flex-wrap:wrap}

body:has([data-subsection="inventory"].active) .bottom-layout{grid-template-columns:minmax(0,1fr)}.inventory-view-body .g-compare-table{min-width:850px}.inventory-view-body tfoot td{font-weight:600;background:#233244;border-top:2px solid #40546a}.inventory-view-body .g-compare-table th:first-child,.inventory-view-body .g-compare-table td:first-child{width:30%}body:has([data-subsection="inventory"].active) .export-actions{display:flex;gap:12px}.inventory-view-body .category-chart{min-width:0}

#operations-analysis{display:grid;gap:18px;margin-top:18px}.op-panel .panel-heading{flex-wrap:wrap}.op-panel .panel-heading>.segmented{margin-left:auto}.op-panel .expand-panel{margin-left:0}.op-panel .export-actions{display:flex;gap:12px}.op-panel .op-body:not(.trend-chart){padding-bottom:16px}.op-grains{width:max-content;margin:0 22px 12px}.inventory-distribution{height:auto!important;max-height:480px;overflow:auto;padding:5px 22px 18px}.inventory-region{margin:13px 0 18px}.inventory-region>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px}.inventory-region b{font-weight:500}.inventory-region small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.inventory-share-track{height:10px;background:#253345;border-radius:4px;overflow:hidden;margin-top:7px}.inventory-share-track>div{display:flex;height:100%;min-width:0}.inventory-share-track i{display:block;height:100%;flex-shrink:0}.priority-quadrant{grid-template-columns:1fr 1fr;padding:8px 22px 20px;gap:14px}.priority-quadrant>div{background:#1b2937;border:1px solid #354a61;border-radius:8px;padding:15px;max-height:320px;overflow:auto}.priority-quadrant h3{font-size:12px;color:#bfd6f1}.priority-quadrant p{font-size:11px;line-height:1.7;border-top:1px solid var(--line);padding-top:8px;color:var(--muted)}.priority-quadrant b{color:var(--text)}.kpi-grid.eight-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-grid.eight-cards .kpi-value{font-size:27px}body:has([data-economy].active) .bottom-layout{grid-template-columns:minmax(0,1fr)}@media(max-width:850px){.kpi-grid.eight-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.eight-cards .kpi:last-child{grid-column:auto}.priority-quadrant{grid-template-columns:1fr}.op-panel .panel-heading>.segmented{margin-left:0}.op-panel .expand-panel{margin-left:auto}}.panel-expanded .inventory-distribution{max-height:calc(100vh - 180px)}

.overview-layout:has(.attention-panel[hidden]){grid-template-columns:minmax(0,1fr)}.priority-quadrant.g-stages>div{min-width:0}

.panel-expanded #trend-chart.category-chart{height:auto!important;min-height:0}.op-panel .trend-chart{padding-bottom:16px}

/* Shared day / week / month control across all dashboard sections. */
.time-grain.segmented{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;width:max-content;max-width:100%;height:34px;padding:3px;margin:0 0 0 auto!important;background:#111a23;border:1px solid #354658;border-radius:7px;box-shadow:none}.time-grain.segmented button{display:flex;align-items:center;justify-content:center;min-width:58px;height:26px;padding:0 11px;border:0;border-radius:4px;font-size:11px;font-weight:500;line-height:1;white-space:nowrap;color:#91a3b7;background:transparent}.time-grain.segmented button.active{background:#2b4058;color:#e0ecff}.time-grain.segmented button:hover{background:#223246;color:#e0ecff}.panel-heading:has(.time-grain){align-items:center;gap:12px;flex-wrap:wrap}.panel-heading:has(>.time-grain)>:first-child{flex:1 1 200px;min-width:0}.panel-heading:has(.time-grain)>.expand-panel{margin-left:0}.op-panel .panel-heading>.time-grain{margin-left:auto!important}.detail-actions .time-grain{margin-left:auto!important}@media(max-width:650px){.panel-heading:has(>.time-grain)>:first-child{flex-basis:100%}.time-grain.segmented{align-self:center}.time-grain.segmented button{min-width:54px;padding:0 9px}}

.section-filter-field{display:flex;flex-direction:column;gap:7px;flex:1 1 170px;min-width:160px}.section-multi{min-width:0;width:100%}.section-multi summary{height:38px;display:flex;align-items:center;flex-direction:row;justify-content:space-between;border-color:#40546a}.section-multi summary:after{content:"⌄";color:var(--muted)}.section-multi summary b{max-width:calc(100% - 18px)}.section-multi .g-options{min-width:260px;max-width:min(340px,85vw)}.section-multi:nth-child(even) .g-options{left:auto;right:0}.section-multi .g-options label{margin:0!important;font-size:12px;padding:8px}.extra-filters .section-multi input[type=checkbox]{min-height:0!important;height:14px;width:14px!important;padding:0!important}.view-switch-row{display:flex;align-items:center;justify-content:flex-start;padding:0 22px 14px}.data-view-switch.segmented{display:inline-flex;flex:0 0 auto;align-self:flex-start;margin:0!important;height:34px;width:max-content;padding:3px;gap:2px;border:1px solid #354658;border-radius:7px;background:#111a23}.data-view-switch.segmented button{height:26px;min-width:66px;padding:0 12px;border-radius:4px;font-size:11px;line-height:1;font-weight:500;color:#91a3b7;background:transparent}.data-view-switch.segmented button.active{color:#e0ecff;background:#2b4058}.data-view-switch.segmented button:hover{color:#e0ecff;background:#223246}.regional-view-toolbar,.detail-view-controls{justify-content:flex-start}.regional-view-toolbar .export-actions,.detail-view-controls .region-sort{margin-left:auto}@media(max-width:650px){.view-switch-row{padding-left:16px;padding-right:16px}.section-filter-field{min-width:130px}.data-view-switch.segmented button{min-width:62px;padding:0 10px}}

#extra-filters .section-multi .g-options{left:0;right:auto}#extra-filters .section-filter-field:nth-child(even) .g-options{left:auto;right:0}

/* Telegram identity in the sidebar. */
.main-nav{margin-top:42px}.sidebar-bottom{padding:18px 0 0}.telegram-profile{align-items:center;gap:12px;padding:18px 0 0;margin-top:auto}.telegram-profile .avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;overflow:hidden;background:#243446;color:#91a9c2}.telegram-profile .avatar img{width:100%;height:100%;object-fit:cover;display:block}.telegram-profile .avatar svg{width:25px;height:25px;opacity:.8}.profile-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:3px}.profile-copy strong{font-size:12px;font-weight:600;color:var(--text);letter-spacing:.2px}.profile-separator{font-size:10px;line-height:1;color:#7f98b2}.profile-name{font-size:11px;line-height:1.4;color:#b2c3d5;overflow-wrap:anywhere}.topbar>.crumb{margin-left:0}
