
#totalDashboardView{--td-ink:#123f37;--td-muted:#68788c;--td-line:#e0e7ef;--td-teal:#087f69;display:grid;gap:14px;min-height:0;padding:8px 14px 18px;background:#f1f5f9;color:var(--td-ink)}
#totalDashboardView *{box-sizing:border-box}#totalDashboardView[hidden]{display:none!important}
.td-header{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:2px 4px 7px;border-bottom:1px solid var(--td-line)}
.td-title{display:flex;align-items:center;gap:12px;min-width:230px}.td-mark{color:var(--td-teal);font-size:30px;font-weight:800;line-height:1}
.td-header h1{margin:0;font-size:22px;line-height:1.2;font-weight:780;letter-spacing:-.025em}.td-header p{margin:3px 0 0;color:var(--td-muted);font-size:11px}
.td-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}.td-updated{color:var(--td-muted);font-size:11px;white-space:nowrap}
.td-api-chip{display:grid;grid-template-columns:auto auto;align-items:center;gap:1px 8px;min-width:136px;padding:6px 9px;border:1px solid var(--td-line);border-radius:9px;background:#fff}
.td-api-chip b,.td-api-chip span{font-size:11px}.td-api-chip span{color:#788a85;font-weight:700}.td-api-chip small{grid-column:1/-1;color:var(--td-muted);font-size:9px;white-space:nowrap}
.td-api-chip[data-state=ok] span{color:#11815e}.td-api-chip[data-state=error] span{color:#bb493f}.td-api-chip[data-state=partial] span{color:#b17a19}
.td-range-label select,.td-filters select,.td-filters input,.td-dialog-filters select,.td-dialog-filters input{height:35px;padding:0 10px;border:1px solid #cbd6e3;border-radius:8px;background:#fff;color:#173d36;font:inherit;font-size:11px}
.td-refresh{height:36px;padding:0 14px;border:0;border-radius:8px;background:var(--td-teal);color:#fff;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.td-refresh:disabled{opacity:.6;cursor:wait}
.td-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.td-alert-strip{padding:7px 11px;border:1px solid #eddcb6;border-radius:9px;background:#fff9eb;color:#785613;font-size:11px}.td-alert-strip[hidden]{display:none}
.td-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-top:20px}
.td-kpis article,.td-panel{min-width:0;border:1px solid var(--td-line);border-radius:13px;background:#fff;box-shadow:0 2px 8px #192e460e}
.td-kpis article{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto 1fr;align-items:center;column-gap:10px;min-height:125px;padding:12px 15px}
.td-kpis i{display:grid;grid-row:1/3;grid-column:1;place-items:center;width:40px;height:44px;border-radius:11px;background:#e9f8ef;color:var(--td-teal);font-size:20px;font-style:normal}
.td-kpis span{color:#23364d;font-size:13px;font-weight:700}.td-kpis b{overflow:hidden;color:#101d2d;font-size:22px;line-height:1.18;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.td-kpis small{grid-column:1/-1;align-self:end;padding-top:7px;color:#748197;font-size:10px;line-height:1.35}
.td-main-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);gap:12px;min-width:0}
.td-panel{min-height:0;padding:13px 15px}.td-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.td-panel h2{margin:0;color:#14283e;font-size:16px;line-height:1.25}.td-panel header p{margin:3px 0 0;color:var(--td-muted);font-size:10px}
.td-main-grid>.td-panel{height:260px}
.td-segment{display:flex;overflow:hidden;border:1px solid #cbd6e3;border-radius:8px}.td-segment button,.td-product-actions button{border:0;background:#fff;color:#4f6075;font-size:11px;cursor:pointer}
.td-segment button{padding:7px 12px}.td-segment button+button{border-left:1px solid var(--td-line)}.td-segment button.is-active,.td-product-actions button.is-active{background:var(--td-teal);color:#fff}
.td-chart{display:grid;place-items:center;height:205px;min-height:0}.td-chart svg{width:100%;height:205px;overflow:visible}
.td-chart .td-gridline{stroke:#e8edf3;stroke-width:1}.td-chart .td-line{fill:none;stroke:var(--td-teal);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.td-chart .td-point{fill:var(--td-teal);stroke:#fff;stroke-width:2}.td-chart text{fill:#8491a2;font-size:10px}
.td-empty{padding:18px!important;color:#8995a5;font-size:12px;text-align:center}
.td-platform-panel #tdPlatforms{padding:7px 3px}.td-platform-row{display:grid;grid-template-columns:minmax(95px,120px) minmax(60px,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e8edf3}
.td-platform-row:last-child{border-bottom:0}.td-platform-row>span{font-size:12px;font-weight:650}.td-bar{overflow:hidden;height:9px;border-radius:9px;background:#e4e9ef}.td-bar i{display:block;height:100%;border-radius:inherit;background:var(--td-teal)}
.td-platform-value{display:grid;gap:2px;text-align:right;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}.td-platform-value small{color:var(--td-muted);font-size:10px;font-weight:500}
.td-bottom-grid{display:grid;grid-template-columns:minmax(0,1.86fr) minmax(330px,1fr);align-items:stretch;gap:12px;min-width:0}
.td-store-panel{min-height:414px}.td-store-header{align-items:flex-end!important}.td-filters{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
.td-filters input{width:140px;min-width:0}.td-filters select{max-width:150px}
.td-table-wrap{width:100%;overflow:visible}.td-table-wrap table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}
.td-table-wrap th{overflow:hidden;padding:8px 6px;background:#eff3f6;color:#44566b;font-size:10px;font-weight:700;text-align:left;text-overflow:ellipsis}
.td-table-wrap td{overflow:hidden;padding:7px 6px;border-top:1px solid #e8edf3;color:#263b52;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.td-store-table th:nth-child(1){width:7%}.td-store-table th:nth-child(2){width:17%}.td-store-table th:nth-child(3){width:12%}.td-store-table th:nth-child(4){width:10%}.td-store-table th:nth-child(5),.td-store-table th:nth-child(6),.td-store-table th:nth-child(7){width:13%}.td-store-table th:nth-child(8){width:15%}
.td-table-wrap tbody tr:hover{background:#f8fbfd}.td-store-open{display:block;width:100%;overflow:hidden;padding:0;border:0;background:none;color:#14283e;font:inherit;font-weight:700;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.td-rank{display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:50%;background:#e8edf3;color:#607086;font-size:10px;font-weight:700}
.td-store-table tbody tr:nth-child(1) .td-rank,.td-products-panel tbody tr:nth-child(1) .td-rank{background:#f3c900;color:#fff}.td-store-table tbody tr:nth-child(2) .td-rank,.td-products-panel tbody tr:nth-child(2) .td-rank{background:#a9b6c8;color:#fff}.td-store-table tbody tr:nth-child(3) .td-rank,.td-products-panel tbody tr:nth-child(3) .td-rank{background:#e89b55;color:#fff}
.td-status{display:inline-block;overflow:hidden;max-width:100%;padding:3px 6px;border-radius:12px;background:#eef3f1;color:#64756f;font-size:9px;text-overflow:ellipsis}.td-status.is-ok{background:#e8f5ef;color:#147451}.td-status.is-error{background:#fff0ed;color:#b2473e}.td-status.is-warning{background:#fff7e5;color:#9b701e}
.td-store-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.td-source-note,.td-products-panel>small{display:block;margin:0;color:#8290a0;font-size:9px}
.td-view-all{border:0;background:transparent;color:var(--td-teal);font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}.td-view-all:hover{text-decoration:underline}
.td-side-stack{display:grid;grid-template-rows:minmax(160px,.8fr) minmax(230px,1.2fr);gap:12px;min-width:0}
.td-exception-panel ul{display:grid;align-content:start;gap:6px;margin:0;padding:0;list-style:none}.td-exception-panel li:not(.td-empty){min-width:0;padding:6px 8px;border-left:3px solid #d6a13f;border-radius:0 7px 7px 0;background:#fff9ed;font-size:10px}
.td-exception-panel li b{display:block;overflow:hidden;margin-bottom:2px;color:#684f1d;text-overflow:ellipsis;white-space:nowrap}.td-exception-panel li small{color:#83775c}
.td-exception-order-sync,.td-exception-api-failed{border-color:#d35f54!important}.td-exception-api-stale{border-color:#d6a13f!important}
.td-product-actions{display:flex;gap:2px;flex-wrap:wrap}.td-product-actions button{padding:5px 7px;border-radius:6px;font-size:10px;white-space:nowrap}
.td-product-table-wrap{overflow:hidden}.td-product-table-wrap th:first-child,.td-product-table-wrap td:first-child{width:10%}.td-product-table-wrap th:nth-child(2),.td-product-table-wrap td:nth-child(2){width:34%}.td-product-table-wrap th:nth-child(n+3),.td-product-table-wrap td:nth-child(n+3){width:18.6%}
.td-sku{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-footer{padding:0 4px;color:#748196;font-size:9px}
.td-fresh-stale{color:#a26f19!important}.td-no-value{color:#9b6c23!important;font-size:13px!important}.td-count-warning{color:#ad6e19!important}
.td-detail-dialog{width:min(1180px,94vw);max-height:86vh;padding:0;border:1px solid var(--td-line);border-radius:14px;color:var(--td-ink);box-shadow:0 18px 70px #11283c40}
.td-detail-dialog::backdrop{background:#10233380}.td-detail-dialog form{margin:0}.td-detail-dialog form>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--td-line);background:#fff}
.td-detail-dialog h2{margin:0;font-size:17px}.td-detail-dialog form>header p{margin:4px 0 0;color:var(--td-muted);font-size:11px}.td-dialog-close{width:32px;height:32px;border:0;border-radius:7px;background:#eef3f6;font-size:20px;cursor:pointer}
.td-dialog-content{max-height:calc(86vh - 68px);overflow:auto;padding:14px 18px}.td-dialog-table{overflow:auto!important}.td-dialog-table table{min-width:780px}
.td-dialog-filters{display:flex;gap:8px;margin:0 0 12px}.td-dialog-filters input{flex:1;min-width:150px}
.td-dialog-exceptions{display:grid;gap:8px;margin:0;padding:0;list-style:none}.td-dialog-exceptions li:not(.td-empty){padding:9px 12px;border-left:3px solid #d6a13f;border-radius:0 8px 8px 0;background:#fff9ed;font-size:12px}.td-dialog-exceptions b{display:block;margin-bottom:4px;color:#684f1d}
@media(max-width:1380px){.td-updated{display:none}.td-title{min-width:205px}.td-header h1{font-size:19px}}
@media(max-width:1100px){.td-header{align-items:flex-start;flex-wrap:wrap}.td-header-tools{justify-content:flex-start;flex-wrap:wrap}.td-main-grid,.td-bottom-grid{grid-template-columns:minmax(0,1fr)}.td-main-grid>.td-panel{height:auto;min-height:250px}.td-store-panel{min-height:0}.td-side-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}.td-exception-panel,.td-products-panel{min-height:200px}}
@media(max-width:850px){.td-table-wrap table,.td-table-wrap tbody,.td-table-wrap tr,.td-table-wrap td{display:block;width:100%}.td-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.td-table-wrap tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;margin:7px 0;padding:3px 8px;border:1px solid var(--td-line);border-radius:8px}.td-table-wrap td{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;padding:6px 0;white-space:normal}.td-table-wrap td:before{flex:0 0 42%;content:attr(data-label);color:#718095;font-size:9px}.td-table-wrap td:nth-child(2){grid-column:span 2}.td-table-wrap td:nth-child(2):before{flex-basis:22%}.td-table-wrap td:last-child{grid-column:span 2}.td-table-wrap table,.td-dialog-table table{min-width:0!important}.td-dialog-filters{flex-direction:column}.td-dialog-filters input,.td-dialog-filters select{width:100%}}
@media(max-width:720px){#totalDashboardView{gap:9px;padding:6px}.td-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:0}.td-kpis article{grid-template-columns:32px minmax(0,1fr);column-gap:7px;min-height:102px;padding:9px}.td-kpis i{width:32px;height:36px;font-size:17px}.td-kpis span{font-size:11px}.td-kpis b{font-size:17px}.td-kpis small{font-size:9px}.td-panel{padding:10px;border-radius:10px}.td-panel>header,.td-store-header{align-items:flex-start!important;flex-direction:column}.td-filters{width:100%;justify-content:flex-start;flex-wrap:wrap}.td-filters select{max-width:none;min-width:120px;flex:1}.td-filters input{min-width:100%;flex:1}.td-side-stack{grid-template-columns:1fr}.td-main-grid>.td-panel{min-height:220px}.td-chart,.td-chart svg{height:175px}.td-table-wrap td:nth-child(2){grid-column:span 2}.td-store-open{white-space:normal;text-align:right}.td-status{white-space:normal;text-align:right}.td-store-foot{align-items:flex-start;flex-direction:column}.td-detail-dialog{width:96vw;max-height:90vh}.td-dialog-content{max-height:calc(90vh - 65px);padding:8px}}
@media(max-width:760px){.td-detail-dialog{width:96vw}.td-dialog-table{overflow:visible!important}.td-dialog-table table{min-width:0!important}}

/* V3: credibility-first analysis layout */
#totalDashboardView{--td-ink:#17322d;--td-muted:#6d7c83;--td-line:#e5ebee;--td-teal:#087f69;background:#f4f7f8;gap:16px;padding:12px 24px 24px;overflow-x:clip}
#totalDashboardView .td-header{flex-wrap:nowrap;min-height:64px}
#totalDashboardView .td-kpis{margin-top:0;grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:14px}
#totalDashboardView .td-kpis article{min-height:118px;padding:15px 17px;border-radius:13px}
#totalDashboardView .td-kpi-primary{border-color:#c8e2d9;background:linear-gradient(135deg,#fff,#f4fbf8)}
#totalDashboardView .td-kpi-primary b{font-size:28px;color:#086b5a}
#totalDashboardView .td-kpis article>b{display:flex;align-items:center;gap:8px}
#totalDashboardView .td-kpis article>b small.td-kpi-divider{font-size:18px;padding:0;color:#9ca9ad}
#totalDashboardView #tdExceptionMetric{color:#b4493f}
#totalDashboardView #tdPendingMetric{color:#b17a19}
#totalDashboardView .td-period-badge{display:inline-flex;padding:2px 6px;border-radius:10px;background:#fff4dc;color:#9c6812;font-size:10px;font-weight:700}
#totalDashboardView .td-main-grid{grid-template-columns:minmax(0,1.85fr) minmax(330px,1fr);gap:16px;align-items:stretch}
#totalDashboardView .td-trend-panel{position:relative;min-width:0;height:390px;padding:18px 20px}
#totalDashboardView .td-trend-header{margin-bottom:8px}
#totalDashboardView .td-trend-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 8px}
#totalDashboardView .td-trend-toolbar .td-segment button{min-height:32px;padding:7px 13px}
#totalDashboardView .td-zoom-controls{display:flex;margin-left:auto;overflow:hidden;border:1px solid var(--td-line);border-radius:7px}
#totalDashboardView .td-zoom-controls button{height:30px;min-width:34px;padding:0 8px;border:0;background:#fff;color:var(--td-ink);font-size:11px;cursor:pointer}
#totalDashboardView .td-zoom-controls button+button{border-left:1px solid var(--td-line)}
#totalDashboardView .td-store-picker{display:flex;align-items:center;gap:8px;margin:4px 0;color:var(--td-muted);font-size:11px}
#totalDashboardView .td-store-picker[hidden]{display:none}
#totalDashboardView .td-store-picker select{min-width:200px;max-width:100%;height:54px;padding:4px 8px;border:1px solid #cbd6e3;border-radius:7px;background:#fff;color:var(--td-ink);font:inherit}
#totalDashboardView .td-chart{position:relative;display:block;width:100%;height:245px;min-height:0;overflow:hidden}
#totalDashboardView .td-chart-scroll{width:100%;height:100%;overflow:auto hidden;overscroll-behavior-x:contain;touch-action:pan-x}
#totalDashboardView .td-chart svg{display:block;height:235px;max-width:none;overflow:visible}
#totalDashboardView .td-chart .td-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#totalDashboardView .td-chart .td-point{stroke:#fff;stroke-width:2;cursor:pointer}
#totalDashboardView .td-chart .td-point:focus{outline:2px solid #183e35;outline-offset:3px}
#totalDashboardView .td-trend-legend{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;min-height:22px;margin-top:3px}
#totalDashboardView .td-legend-item{display:inline-flex;align-items:center;gap:4px}
#totalDashboardView .td-legend-item>button{display:inline-flex;align-items:center;gap:5px;padding:3px 5px;border:0;border-radius:5px;background:transparent;color:#42565d;font:inherit;font-size:10px;cursor:pointer}
#totalDashboardView .td-legend-item>button:hover{background:#f0f6f4}
#totalDashboardView .td-legend-item>button i{width:9px;height:9px;border-radius:50%;background:var(--td-series-color)}
#totalDashboardView .td-legend-item.is-hidden{opacity:.45;text-decoration:line-through}
#totalDashboardView .td-legend-item .td-legend-only{color:var(--td-teal)}
#totalDashboardView [data-td-series-reset]{padding:3px 6px;border:1px solid var(--td-line);border-radius:5px;background:#fff;color:var(--td-teal);font:inherit;font-size:10px;cursor:pointer}
#totalDashboardView .td-trend-footnote{margin:5px 0 0;color:var(--td-muted);font-size:9px;line-height:1.35}
#totalDashboardView .td-trend-tooltip{position:absolute;z-index:2;max-width:320px;padding:9px 11px;border:1px solid #d5e2dd;border-radius:8px;background:#fff;box-shadow:0 5px 18px #193b3220;color:var(--td-ink);font-size:11px;pointer-events:none}
#totalDashboardView .td-trend-tooltip[hidden]{display:none}
#totalDashboardView .td-trend-tooltip>*{display:block;margin:2px 0}
#totalDashboardView .td-trend-tooltip small{color:var(--td-muted);line-height:1.4}
#totalDashboardView .td-analysis-side-stack{display:grid;grid-template-rows:1fr 1fr;gap:14px;min-width:0;min-height:390px}
#totalDashboardView .td-analysis-side-stack>.td-panel{min-height:0;overflow:hidden}
#totalDashboardView .td-platform-panel{height:auto}
#totalDashboardView .td-platform-panel #tdPlatforms{padding:0 2px}
#totalDashboardView .td-platform-row{display:grid;width:100%;grid-template-columns:minmax(80px,120px) minmax(40px,1fr) minmax(85px,auto);align-items:center;gap:9px;padding:9px 2px;border:0;border-bottom:1px solid #e8edf3;background:#fff;text-align:left;cursor:pointer}
#totalDashboardView .td-platform-row:hover{background:#f0f6f4}
#totalDashboardView .td-platform-row>span{font-size:11px}
#totalDashboardView .td-platform-value{font-size:10px;white-space:nowrap}
#totalDashboardView .td-platform-value small{font-size:9px}
#totalDashboardView .td-exception-panel{height:auto}
#totalDashboardView .td-exception-panel ul{max-height:118px;overflow:auto;padding:0;margin:0;list-style:none}
#totalDashboardView .td-exception-panel li:not(.td-empty){padding:7px 9px;margin:4px 0;border-radius:7px;font-size:10px}
#totalDashboardView .td-exception-panel li small{display:block;margin-top:3px;font-size:9px;line-height:1.35}
#totalDashboardView .td-bottom-grid{grid-template-columns:minmax(0,1.85fr) minmax(330px,1fr);gap:16px;align-items:start}
#totalDashboardView .td-store-panel,#totalDashboardView .td-products-panel{height:auto;min-height:0;padding:16px 18px}
#totalDashboardView .td-side-stack{display:block;min-width:0}
#totalDashboardView .td-store-color{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--td-series-color);vertical-align:middle}
#totalDashboardView .td-store-table tbody tr{cursor:pointer}
#totalDashboardView .td-store-table tbody tr.is-selected{background:#eaf5f1}
#totalDashboardView .td-store-table .td-store-open{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#totalDashboardView .td-product-table-wrap{max-height:270px}
#totalDashboardView .td-product-table-wrap table{width:100%;table-layout:fixed}
#totalDashboardView .td-product-table-wrap th:first-child{width:40px}
#totalDashboardView .td-product-table-wrap th:nth-child(2){width:35%}
#totalDashboardView .td-product-table-wrap td{overflow:hidden;text-overflow:ellipsis}
#totalDashboardView .td-sku{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#totalDashboardView .td-footer{margin-top:0}
@media(max-width:1280px){#totalDashboardView{padding-inline:16px}#totalDashboardView .td-header-tools{gap:6px}#totalDashboardView .td-api-chip{min-width:120px}#totalDashboardView .td-main-grid,#totalDashboardView .td-bottom-grid{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}}
@media(max-width:1050px){#totalDashboardView .td-header{align-items:flex-start;flex-wrap:wrap}#totalDashboardView .td-header-tools{justify-content:flex-start;flex-wrap:wrap}#totalDashboardView .td-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#totalDashboardView .td-main-grid,#totalDashboardView .td-bottom-grid{grid-template-columns:minmax(0,1fr)}#totalDashboardView .td-trend-panel{height:auto;min-height:390px}#totalDashboardView .td-analysis-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;min-height:0}#totalDashboardView .td-analysis-side-stack>.td-panel{min-height:180px}}
@media(max-width:680px){#totalDashboardView{padding:8px 10px 16px;gap:11px}#totalDashboardView .td-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#totalDashboardView .td-kpis article{min-height:100px;padding:10px}#totalDashboardView .td-kpi-primary{grid-column:1/-1}#totalDashboardView .td-kpi-primary b{font-size:25px}#totalDashboardView .td-header-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}#totalDashboardView .td-updated{grid-column:1/-1}#totalDashboardView .td-api-chip{min-width:0}#totalDashboardView .td-range-label select,#totalDashboardView .td-refresh{width:100%}#totalDashboardView .td-trend-panel{padding:12px;min-height:0}#totalDashboardView .td-trend-toolbar{gap:6px}#totalDashboardView .td-trend-toolbar .td-segment button{padding:6px 8px}#totalDashboardView .td-zoom-controls{margin-left:0}#totalDashboardView .td-chart{height:220px}#totalDashboardView .td-chart svg{height:210px}#totalDashboardView .td-analysis-side-stack{grid-template-columns:minmax(0,1fr);gap:10px}#totalDashboardView .td-store-header{align-items:flex-start;flex-direction:column}#totalDashboardView .td-filters{width:100%;flex-wrap:wrap}#totalDashboardView .td-filters select,#totalDashboardView .td-filters input{flex:1;min-width:130px}#totalDashboardView .td-store-panel,#totalDashboardView .td-products-panel{padding:12px}#totalDashboardView .td-table-wrap{max-width:100%;overflow-x:auto}#totalDashboardView .td-store-table{min-width:760px}#totalDashboardView .td-product-table-wrap table{min-width:0}#totalDashboardView .td-product-table-wrap th,#totalDashboardView .td-product-table-wrap td{padding:6px 4px;font-size:10px}}

#totalDashboardView .td-line-partial{stroke-dasharray:6 4;opacity:.72}
#totalDashboardView .td-point-partial{stroke-dasharray:3 2;opacity:.78}

#totalDashboardView .td-chart svg{width:auto}
#totalDashboardView .td-chart [data-td-line]{transition:opacity .12s ease;cursor:pointer}

/* V2 overview density: one aggregate trend, compact summaries, readable at desktop widths. */
#totalDashboardView .td-trend-panel{position:relative}
#totalDashboardView .td-trend-toolbar{justify-content:flex-end;margin:0 0 4px}
#totalDashboardView .td-trend-panel .td-chart{display:block;height:210px;padding:0;overflow:hidden}
#totalDashboardView .td-trend-panel .td-chart svg{display:block;width:100%;height:210px;max-width:100%;overflow:visible}
#totalDashboardView .td-trend-panel .td-chart text{fill:#8491a2;font-size:10px}
#totalDashboardView .td-trend-panel .td-chart .td-line{fill:none;stroke:var(--td-teal);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#totalDashboardView .td-trend-panel .td-chart .td-line-partial{stroke-dasharray:6 4}
#totalDashboardView .td-trend-panel .td-chart .td-point{fill:var(--td-teal);stroke:#fff;stroke-width:2;cursor:crosshair}
#totalDashboardView .td-trend-tooltip{max-width:220px;padding:8px 10px;font-size:11px}
#totalDashboardView .td-trend-tooltip small{display:none}
#totalDashboardView .td-store-preview th:nth-child(1){width:7%}
#totalDashboardView .td-store-preview th:nth-child(2){width:31%}
#totalDashboardView .td-store-preview th:nth-child(3){width:17%}
#totalDashboardView .td-store-preview th:nth-child(4){width:13%}
#totalDashboardView .td-store-preview th:nth-child(5),#totalDashboardView .td-store-preview th:nth-child(6){width:16%}
#totalDashboardView .td-product-table-wrap th:first-child,#totalDashboardView .td-product-table-wrap td:first-child{width:12%}
#totalDashboardView .td-product-table-wrap th:nth-child(2),#totalDashboardView .td-product-table-wrap td:nth-child(2){width:42%}
#totalDashboardView .td-product-table-wrap th:nth-child(3),#totalDashboardView .td-product-table-wrap td:nth-child(3){width:20%}
#totalDashboardView .td-product-table-wrap th:nth-child(4),#totalDashboardView .td-product-table-wrap td:nth-child(4){width:26%}
#totalDashboardView .td-kpis small{font-size:9px;line-height:1.3}
#totalDashboardView .td-exception-panel li:not(.td-empty){padding:5px 8px}
#totalDashboardView .td-exception-panel li small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#totalDashboardView .td-exception-panel ul{max-height:none;overflow:visible}
@media(max-width:850px){#totalDashboardView .td-store-preview{min-width:0!important}}


/* P0 dashboard integrity/layout correction: bounded overview row and isolated tables. */
#totalDashboardView .td-main-grid{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);align-items:start;min-width:0}
#totalDashboardView .td-trend-panel{height:448px;min-width:0}
#totalDashboardView .td-analysis-side-stack{height:448px;min-height:0;grid-template-rows:minmax(0,1.12fr) minmax(0,.88fr);gap:12px;min-width:0}
#totalDashboardView .td-analysis-side-stack>.td-panel{height:100%;min-width:0;min-height:0;overflow:hidden}
#totalDashboardView .td-platform-panel{padding:12px 14px}
#totalDashboardView .td-platform-panel>header,#totalDashboardView .td-exception-panel>header{margin-bottom:6px}
#totalDashboardView .td-platform-row{grid-template-columns:minmax(82px,110px) minmax(40px,1fr) minmax(112px,auto);gap:8px;padding:7px 2px}
#totalDashboardView .td-exception-panel{padding:12px 14px}
#totalDashboardView .td-exception-panel ul{max-height:none;height:auto;overflow:hidden}
#totalDashboardView .td-exception-panel li:not(.td-empty){padding:5px 8px;margin:3px 0;font-size:11px;line-height:1.3}
#totalDashboardView .td-exception-panel li b{margin-bottom:1px}
#totalDashboardView .td-exception-panel li small{margin-top:2px;font-size:10px;line-height:1.25}
#totalDashboardView .td-bottom-grid{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);align-items:start;min-width:0}
#totalDashboardView .td-bottom-grid>*{min-width:0;max-width:100%}
#totalDashboardView .td-store-panel .td-table-wrap{min-width:0;max-width:100%;overflow:visible}
#totalDashboardView .td-store-panel .td-table-wrap table{display:table;width:100%;min-width:0;max-width:100%;table-layout:fixed}
#totalDashboardView .td-store-panel .td-table-wrap th,#totalDashboardView .td-store-panel .td-table-wrap td{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#totalDashboardView .td-store-preview td:nth-child(4),#totalDashboardView .td-store-preview td:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}
#totalDashboardView .td-side-stack{min-width:0;max-width:100%}
#totalDashboardView .td-products-panel .td-product-table-wrap{min-width:0;max-width:100%;overflow:hidden}
#totalDashboardView .td-products-panel .td-product-table-wrap table{display:table;width:100%;min-width:0;max-width:100%;table-layout:fixed}
#totalDashboardView .td-trend-tooltip{z-index:6;max-width:min(240px,calc(100% - 20px));padding:10px 12px;border:1px solid #b9d4cb;border-radius:9px;background-color:#fff!important;opacity:1!important;filter:none!important;box-shadow:0 8px 24px #17322d30;color:#17322d;font-size:12px;line-height:1.45;isolation:isolate}
#totalDashboardView .td-trend-tooltip b{color:#102f29;font-size:12px}
#totalDashboardView .td-trend-tooltip span{color:#243c37;font-size:12px}
#totalDashboardView .td-kpis small{font-size:10px;line-height:1.4}
#totalDashboardView .td-diagnostics-table table{min-width:1120px;table-layout:fixed}
#totalDashboardView .td-diagnostics-table th:nth-child(1){width:150px}
#totalDashboardView .td-diagnostics-table th:nth-child(2){width:390px}
#totalDashboardView .td-diagnostics-table th:nth-child(n+3){width:125px}
#totalDashboardView .td-diagnostics-table th:nth-child(2){width:360px}
#totalDashboardView .td-diagnostics-table td{white-space:normal;vertical-align:top;font-size:11px;line-height:1.4}
#totalDashboardView .td-diagnostics-table td small{display:block;margin-top:4px;color:var(--td-muted)}
#totalDashboardView .td-diagnostics-table .td-diagnostic-source div+div{margin-top:5px;padding-top:5px;border-top:1px solid var(--td-line)}
@media(max-width:1050px){#totalDashboardView .td-trend-panel{height:auto;min-height:390px}#totalDashboardView .td-analysis-side-stack{height:auto;min-height:420px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(180px,auto)}#totalDashboardView .td-analysis-side-stack>.td-panel{height:auto}}
@media(max-width:680px){#totalDashboardView .td-analysis-side-stack{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto}#totalDashboardView .td-analysis-side-stack>.td-panel{height:auto;min-height:0}#totalDashboardView .td-store-panel .td-table-wrap{overflow-x:auto}#totalDashboardView .td-store-panel .td-store-preview{min-width:680px}#totalDashboardView .td-diagnostics-table table{min-width:1120px}}

/* Final V2.0 overview refinement. */
#totalDashboardView .td-header-tools{flex-wrap:wrap;gap:7px}
#totalDashboardView .td-status-entry{height:34px;padding:0 10px;border:1px solid #d8e7e1;border-radius:8px;background:#f1f8f5;color:#17634f;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
#totalDashboardView .td-status-entry:hover{background:#e5f3ec}
#totalDashboardView .td-kpis{gap:10px;margin-top:8px}
#totalDashboardView .td-kpis article{min-height:112px;padding:11px 14px}
#totalDashboardView .td-kpis b{font-size:25px;font-variant-numeric:tabular-nums}
#totalDashboardView .td-kpis small{font-size:10px;line-height:1.35}
#totalDashboardView .td-main-grid{align-items:start}
#totalDashboardView .td-trend-panel{height:374px;min-height:0}
#totalDashboardView .td-analysis-side-stack{height:374px;grid-template-rows:minmax(0,1.55fr) minmax(0,1fr);gap:10px}
#totalDashboardView .td-analysis-side-stack>.td-panel{min-height:0;overflow:visible}
#totalDashboardView .td-platform-panel #tdPlatforms{padding:2px 2px}
#totalDashboardView .td-platform-row{grid-template-columns:minmax(88px,120px) minmax(42px,1fr) minmax(112px,auto);gap:9px;padding:6px 2px}
#totalDashboardView .td-platform-row>span{font-size:12px}
#totalDashboardView .td-platform-value{font-size:11px;line-height:1.2}
#totalDashboardView .td-platform-value small{font-size:10px}
#totalDashboardView .td-exception-panel ul{display:grid;grid-template-rows:repeat(2,minmax(36px,auto));gap:5px;overflow:auto}
#totalDashboardView .td-exception-panel li:not(.td-empty){padding:6px 8px;font-size:11px}
#totalDashboardView .td-exception-panel li small{font-size:10px}
#totalDashboardView .td-trend-panel .td-chart,#totalDashboardView .td-trend-panel .td-chart svg{height:184px}
#totalDashboardView .td-trend-panel .td-chart svg{width:100%}
#totalDashboardView .td-trend-panel .td-line-current{stroke-dasharray:7 4;stroke-width:3.25}
#totalDashboardView .td-trend-panel .td-point-current{fill:#fff;stroke:#087f69;stroke-width:3}
#totalDashboardView .td-trend-panel .td-point-partial{stroke-dasharray:3 2}
#totalDashboardView .td-store-preview td{height:40px;padding:8px 7px;font-size:11px}
#totalDashboardView .td-store-preview th{padding:9px 7px;font-size:11px}
#totalDashboardView .td-products-panel td,#totalDashboardView .td-products-panel th{height:39px;padding:8px 7px;font-size:11px}
#totalDashboardView .td-inline-status{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:10px;background:#eaf5ef;color:#247353;font-size:10px;font-weight:650;vertical-align:2px}
#totalDashboardView .td-inline-status:empty{display:none}
#tdExceptionPage{min-height:70vh;padding:20px 24px;background:#f1f5f9;color:#123f37}
#tdExceptionPage[hidden]{display:none!important}
#tdExceptionPage>header{display:flex;align-items:center;gap:20px;margin-bottom:18px;padding:14px 16px;border:1px solid #e0e7ef;border-radius:12px;background:#fff}
#tdExceptionPage h1{margin:0;font-size:22px}
#tdExceptionPage header p,#tdExceptionPage>p{margin:5px 0 0;color:#68788c;font-size:12px}
#tdExceptionPage>section{padding:18px;border:1px solid #e0e7ef;border-radius:12px;background:#fff}
#tdExceptionPage>section h2{margin:0 0 12px;font-size:16px}
#tdExceptionPage .td-dialog-exceptions{gap:9px}
#tdExceptionPage .td-dialog-exceptions li:not(.td-empty){padding:11px 13px;font-size:12px}
#tdExceptionPage .td-history-unavailable{padding:12px 16px;border:1px solid #e7e3d3;border-radius:9px;background:#fffaf0}
@media(max-width:1450px){#totalDashboardView .td-header{align-items:flex-start;flex-wrap:wrap}#totalDashboardView .td-header-tools{justify-content:flex-start}}
@media(max-width:1050px){#totalDashboardView .td-trend-panel{height:auto;min-height:330px}#totalDashboardView .td-analysis-side-stack{height:auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}#totalDashboardView .td-analysis-side-stack>.td-panel{height:auto}#totalDashboardView .td-exception-panel ul{grid-template-rows:none}}

/* td-v2-scroll-and-card-fit-fix */
@media(min-width:1051px){
  #totalDashboardView .td-header{position:relative!important;top:auto!important;z-index:auto!important;height:auto!important;min-height:64px;background:#fff!important;backdrop-filter:none!important}
  #totalDashboardView .td-trend-panel{height:398px}
  #totalDashboardView .td-analysis-side-stack{height:auto;grid-template-rows:minmax(240px,auto) minmax(148px,auto);align-content:start}
  #totalDashboardView .td-analysis-side-stack>.td-panel{height:auto;min-height:0;overflow:visible}
  #totalDashboardView .td-platform-panel{min-height:240px}
  #totalDashboardView .td-exception-panel{min-height:148px}
}

/* td-v2-grid-row-alignment-fix */
@media(min-width:1051px){
  #totalDashboardView .td-panel>header{position:static!important;top:auto!important;z-index:auto!important;height:auto!important;min-height:0!important;background:#fff!important;backdrop-filter:none!important}
  #totalDashboardView .td-trend-panel{height:398px}
  #totalDashboardView .td-analysis-side-stack{height:398px;grid-template-rows:224px 164px;gap:10px}
  #totalDashboardView .td-analysis-side-stack>.td-panel{height:100%;min-height:0;overflow:visible}
  #totalDashboardView .td-platform-panel{min-height:0}
  #totalDashboardView .td-platform-row{padding:3px 2px}
  #totalDashboardView .td-exception-panel{min-height:0}
  #totalDashboardView .td-exception-panel ul{grid-template-rows:repeat(2,minmax(36px,auto));gap:3px;overflow:visible}
  #totalDashboardView .td-exception-panel li:not(.td-empty){padding:4px 8px;margin:2px 0}
}

/* td-v2-compact-row-fix */
@media(min-width:1051px){
  #totalDashboardView .td-trend-panel{height:355px}
  #totalDashboardView .td-analysis-side-stack{height:355px;grid-template-rows:202px 143px;gap:10px}
  #totalDashboardView .td-platform-panel{padding:10px 12px}
  #totalDashboardView .td-platform-panel>header{margin-bottom:4px}
  #totalDashboardView .td-platform-row{padding:3px 2px}
  #totalDashboardView .td-exception-panel{padding:10px 12px}
  #totalDashboardView .td-exception-panel>header{margin-bottom:4px}
  #totalDashboardView .td-exception-panel ul{grid-template-rows:repeat(2,minmax(32px,auto));gap:3px;overflow:visible}
  #totalDashboardView .td-exception-panel li:not(.td-empty){padding:2px 8px;margin:1px 0}
}

/* td-v2-chart-row-compact-fix */
@media(min-width:1051px){
  #totalDashboardView .td-trend-panel{height:330px}
  #totalDashboardView .td-analysis-side-stack{height:330px;grid-template-rows:188px 132px;gap:10px}
  #totalDashboardView .td-platform-panel{padding:8px 10px}
  #totalDashboardView .td-platform-panel>header{margin-bottom:3px}
  #totalDashboardView .td-platform-row{padding:2px 2px}
  #totalDashboardView .td-exception-panel{padding:8px 10px}
  #totalDashboardView .td-exception-panel>header{margin-bottom:3px}
  #totalDashboardView .td-exception-panel li:not(.td-empty){padding:1px 8px;margin:0}
}

/* td-v2-trend-axis-readable */
#totalDashboardView .td-trend-panel .td-chart text{fill:#68788d;font-size:12px;font-weight:500}


/* td-v2-kpi-fit-narrow */
@media (max-width: 1450px) {
  #totalDashboardView .td-kpis article {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 7px;
    padding: 10px 9px;
  }
  #totalDashboardView .td-kpis i {
    width: 32px;
    height: 36px;
    font-size: 17px;
  }
  #totalDashboardView .td-kpis b {
    font-size: 18px;
    letter-spacing: -0.3px;
  }
  #totalDashboardView .td-kpi-primary b {
    font-size: 23px;
  }
}

/* td-v2-ranking-partial-sales */
#totalDashboardView .td-rank-partial{display:block;color:#9b6c23;font-size:9px;font-weight:500;line-height:1.1}

.td-missing-open{margin-left:5px;padding:2px 7px;border:1px solid #c9ddd6;border-radius:6px;background:#f5fbf8;color:#087b68;cursor:pointer;font-size:11px}
.td-missing-detail-row>td{padding:10px 14px;background:#f7fbf9;color:#31465a}
.td-missing-detail-row ol{margin:7px 0 9px;padding-left:22px}
.td-missing-detail-row li{padding:3px 0;overflow-wrap:anywhere}
.td-missing-detail-row button{margin-right:8px;padding:4px 10px;border:1px solid #c9ddd6;border-radius:6px;background:#fff;color:#087b68;cursor:pointer}
