/* Admin overview only; shared partner charts retain their existing behavior. */
[data-view="admin"] .admin-grid-main{grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr)}
[data-view="admin"] .sales-panel,[data-view="admin"] .sales-chart,[data-view="admin"] .dashboard-chart{min-width:0;max-width:100%;box-sizing:border-box}
[data-view="admin"] #admin-sales-chart.dashboard-chart{display:block;overflow:hidden;height:auto;max-height:none;min-height:170px;padding:0;border-radius:9px}
.dashboard-chart-window{width:100%;max-width:100%;overflow:hidden}
.dashboard-chart-plot{height:170px;width:100%;position:relative;isolation:isolate}
.dashboard-chart-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:0}
.dashboard-trend-line{fill:none;stroke:#ef6937;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dashboard-chart-columns{display:grid;grid-template-columns:repeat(var(--chart-count),minmax(0,1fr));height:100%;position:relative;z-index:1}
.dashboard-chart-point{font-family:inherit;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:10px 0 5px;border:0;background:transparent;color:var(--muted);min-width:0;border-radius:7px;cursor:pointer}
.dashboard-chart-point:hover{background:#ff784410}
.dashboard-chart-point:focus-visible{outline:2px solid #ed8d5e;outline-offset:-2px}
.dashboard-chart-point>span{font-size:10px;line-height:1.25;background:#fffcf8;border:1px solid #f2dfd4;border-radius:20px;padding:2px 6px;color:#8a4c31;white-space:nowrap}
.dashboard-chart-point>b{font-size:10px;line-height:1.3;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.dashboard-chart-point.is-last>span{background:#fff6df;border-color:#f3c76d}
.dashboard-chart-plot.is-daily .dashboard-chart-point>span{font-size:9px;padding:2px 3px}
.dashboard-chart-plot.is-daily .dashboard-chart-point>b{font-size:9px}
.dashboard-chart-empty{font-size:12px;display:grid;place-items:center;height:150px;color:var(--muted)}
[data-view="admin"] .funnel-list{gap:5px}
[data-view="admin"] .funnel-list>.dashboard-funnel-row{position:relative;isolation:isolate;overflow:hidden;width:100%!important;min-height:31px;padding:6px 10px;box-sizing:border-box;grid-template-columns:34px minmax(0,1fr) 38px;gap:7px;background:#f4f6f7;border-radius:8px}
.dashboard-funnel-row:before{content:'';position:absolute;z-index:-1;inset:0 auto 0 0;width:var(--funnel-fill,0%);background:#dcefe3;transition:width .3s ease}
.dashboard-funnel-row.tone-1:before{background:#e1ecf7}.dashboard-funnel-row.tone-2:before{background:#ece6f7}.dashboard-funnel-row.tone-3:before{background:#fbe8d8}
[data-view="admin"] .dashboard-funnel-row span{font-size:15px;line-height:1.25}
[data-view="admin"] .dashboard-funnel-row b{font-size:11px;line-height:1.25}
[data-view="admin"] .dashboard-funnel-row em{font-size:10px;text-align:right}
.dashboard-plan-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 8px}
.dashboard-plan-toolbar label{font-size:11px;display:inline-flex;align-items:center;gap:7px}
.dashboard-plan-toolbar input{height:28px;min-height:28px;border:1px solid var(--line);border-radius:7px;padding:4px 7px;font-family:inherit;font-size:11px;color:inherit;background:var(--surface,#fff)}
#partner-plan-state{font-size:10px;color:var(--muted)}
.dashboard-plan-cell-content{display:flex;align-items:center;gap:5px;white-space:nowrap}
.dashboard-plan-editor{display:inline-flex;align-items:center;gap:2px;flex-shrink:0}
.dashboard-plan-editor input{box-sizing:border-box;width:40px;height:20px;min-height:20px;padding:1px 4px;border:1px solid var(--line);border-radius:4px;font-family:inherit;font-size:10px;line-height:1.1;color:inherit;background:var(--surface,#fff)}
.dashboard-plan-editor button{width:19px;height:20px;min-height:20px;padding:0;border:1px solid #e9d6c8;border-radius:4px;background:#fff6ee;color:#ac5027;font-size:10px;cursor:pointer}
.dashboard-plan-editor button:disabled{opacity:.5;cursor:default}
.dashboard-plan-fact{display:inline!important;font-size:8px!important;line-height:1.1!important;margin:0!important;white-space:nowrap}
.dashboard-plan-unavailable{font-size:10px;color:var(--muted)}
.dashboard-plan-progress{display:block;width:73px;height:3px;margin-top:3px;overflow:hidden;border-radius:4px;background:#edf0ee}
.dashboard-plan-progress span{display:block;height:100%;background:#a7d9b9}
.dashboard-day-dialog{width:min(960px,calc(100vw - 32px));max-width:none;max-height:90dvh;border:1px solid var(--line);border-radius:15px;padding:0;overflow:hidden;background:var(--surface,#fff);color:var(--ink,#1b1917);box-shadow:0 25px 90px #21180e33}
.dashboard-day-dialog[open]{display:flex;flex-direction:column}
.dashboard-day-dialog::backdrop{background:#20191155;backdrop-filter:blur(2px)}
.dashboard-day-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.dashboard-day-head h2{font-size:17px!important;margin:0!important}
.dashboard-day-head p{font-size:9px;margin:0 0 4px;color:var(--muted)}
.dashboard-day-head button{border:1px solid var(--line);border-radius:7px;background:transparent;color:inherit;width:30px;height:30px;font-size:20px;cursor:pointer}
#dashboard-day-body{padding:10px 14px 14px;overflow:auto;min-height:70px}
.dashboard-day-summary,.dashboard-day-empty{font-size:11px;line-height:1.4;color:var(--muted);margin:0 0 8px}
.dashboard-day-scroll{overflow:auto;border:1px solid var(--line);border-radius:8px}
.dashboard-day-scroll table{border-collapse:collapse;width:100%;min-width:650px;text-align:left;font-size:11px;line-height:1.3}
.dashboard-day-scroll th,.dashboard-day-scroll td{padding:7px 9px;border-bottom:1px solid var(--line)}
.dashboard-day-scroll th{font-size:9px;color:var(--muted);background:#f6f7f8}
html[data-theme="dark"] .dashboard-funnel-row:before{opacity:.22}
html[data-theme="dark"] .funnel-list>.dashboard-funnel-row,html[data-theme="dark"] .dashboard-day-scroll th,html[data-theme="dark"] .dashboard-plan-editor input,html[data-theme="dark"] .dashboard-plan-toolbar input,html[data-theme="dark"] .dashboard-day-dialog{background:#29231f;color:#f2eae4}
html[data-theme="dark"] .dashboard-chart-point>span{background:#33271f;border-color:#5e4435;color:#f2b991}
@media(max-width:760px){[data-view="admin"] .admin-grid-main{grid-template-columns:minmax(0,1fr)}.dashboard-chart-window{overflow-x:auto;overscroll-behavior-x:contain}.dashboard-chart-plot.is-daily{min-width:calc(var(--chart-count) * 28px)}.dashboard-chart-point>b{font-size:9px}.dashboard-day-dialog{width:calc(100vw - 14px);max-height:94dvh}}
@media(prefers-reduced-motion:reduce){.dashboard-funnel-row:before{transition:none}}
