.dashboard-view:has(.sales-dashboard) {container-type:inline-size}
.dashboard-view #panel:has(> .sales-dashboard) {display:block;flex:none;height:auto;min-height:100%}
.sales-dashboard {--sea:#77e5dc;--sea-wash:#58e8dc16;--pink:#f295c8;--violet:#c3b6fa;--blue:#a5cefd;--tile:linear-gradient(130deg,#1a2a3b,#182437 72%,#202437);--edge:#42546b;max-width:1850px;margin:auto;padding-bottom:8px;color:var(--ink)}
.light .sales-dashboard {--sea:#006c69;--sea-wash:#0078700e;--pink:#9c2e68;--violet:#6540a3;--blue:#226fa4;--tile:linear-gradient(125deg,#fff,#f4f7fc);--edge:#b4c5d7}
.sales-dashboard :is(h1,h2,p){margin:0}
.sales-heading,.sales-actions,.sales-filters,.sales-range,.sales-card-head,.sales-kpi-title,.sales-figure,.sales-segments,.sales-pages,.sales-share,.sales-movers,.sales-edit-note {display:flex;align-items:center}
.sales-heading,.sales-card-head,.sales-edit-note {justify-content:space-between;gap:12px}
.sales-heading {align-items:flex-start;flex-wrap:wrap}
.sales-heading h1 {color:var(--ink);font:750 clamp(27px,3cqw,43px)/1.05 Inter,Arial,sans-serif;letter-spacing:-.055em}
.sales-heading p {margin-top:5px;color:var(--sub);font-size:15px}
.sales-actions,.sales-filters,.sales-range {gap:10px;flex-wrap:wrap}
.sales-actions button,.sales-choice,.sales-pages button {display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--field);border:1px solid var(--edge);border-radius:10px;color:var(--ink);min-height:38px}
.sales-actions button {padding:6px 12px;font-weight:630}
.sales-actions svg,.sales-choice svg,.sales-pages svg {width:17px;height:17px;flex:none}
.sales-garage-toggle i {border:1px solid var(--edge);width:29px;height:17px;border-radius:20px;background:var(--raised);padding:2px}
.sales-garage-toggle i::after {content:'';display:block;width:11px;height:11px;border-radius:50%;background:var(--sub)}
.sales-garage-toggle[aria-checked=true] i {background:var(--sea);border-color:var(--sea)}
.sales-garage-toggle[aria-checked=true] i::after {transform:translateX(11px);background:var(--field)}
.sales-actions button:hover,.sales-choice:hover,.sales-config[aria-pressed=true],.sales-pages button:enabled:hover {border-color:var(--sea)}
.sales-filters {margin:16px 0;gap:9px}
.sales-range {margin-left:auto;gap:12px}
.sales-range>span,.sales-card-head p,.sales-footnote,.sales-tile>p {color:var(--sub);font-size:12px}
.sales-choice {position:relative;max-width:100%;min-width:0}
.sales-choice select {appearance:none;max-width:100%;height:36px;padding:0 34px 0 38px;border:0;background:transparent;color:inherit;border-radius:inherit;font-weight:600;cursor:pointer}
.sales-choice option {color:var(--ink);background:var(--panel)}
.sales-choice>svg {position:absolute;left:12px;pointer-events:none;color:var(--sub)}
.sales-choice>svg:last-child {left:auto;right:11px;width:14px}
.sales-range .sales-choice {border-color:var(--sea)}
.sales-grid {display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:12px;align-items:stretch}
.sales-tile {min-width:0;position:relative;grid-column:span 3;background:var(--tile);border:1px solid var(--edge);border-radius:16px;padding:clamp(13px,1.45cqw,22px);box-shadow:inset 0 1px 0 #ffffff0d,0 3px 9px #04081813}
.tile-revenue {grid-column:span 4;border-color:color-mix(in srgb,var(--sea) 55%,var(--edge));background:linear-gradient(128deg,var(--sea-wash),transparent 80%),var(--tile)}
.tile-garage {grid-column:span 8;grid-row:span 2;display:flex;flex-direction:column;min-height:230px;padding:0;border:0;background:none}
.tile-garage>.garage-card {flex:1 1 auto;width:100%;position:relative;border-radius:16px}
.tile-garage .garage-bay {position:absolute;inset:0}
.with-garage .tile-revenue {grid-column:span 8}
.with-garage :is(.tile-tickets,.tile-orders,.tile-subscribers,.tile-events){grid-column:span 2}
.tile-performance {grid-column:span 10}
.tile-audience {grid-column:span 6}
.tile-report {grid-column:1/-1}
.sales-kpi-title {gap:8px}
.sales-kpi-title h2 {font-size:14px;line-height:1.25;letter-spacing:-.02em}
.sales-kpi-title svg {width:19px;height:19px;color:var(--blue);stroke-width:1.7}
.tile-revenue .sales-kpi-title svg {color:var(--sea)}
.tile-subscribers .sales-kpi-title svg,.tile-orders .sales-kpi-title svg {color:var(--violet)}
.tile-events .sales-kpi-title svg {color:var(--pink)}
.sales-figure {position:relative;z-index:1;flex-wrap:wrap;gap:5px 10px;margin:8px 0 4px;line-height:1.1}
.sales-figure>strong,.sales-person strong {font-weight:750;letter-spacing:-.055em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sales-figure>strong {font-size:clamp(24px,3.15cqw,46px)}
.sales-change {color:var(--sea);font-size:12px;font-weight:700}
.sales-change.down {color:var(--pink)}
.sales-trend {position:absolute;bottom:13%;right:5%;width:29%;height:38%;color:var(--sea);pointer-events:none}
.tile-revenue:has(.sales-trend) {padding-right:30%}
.sales-card-head {align-items:flex-start;flex-wrap:wrap}
.sales-card-head h2 {font-size:clamp(17px,1.75cqw,24px);line-height:1.2;letter-spacing:-.045em}
.sales-card-head p {margin-top:4px}
.sales-segments,.sales-report-tabs {display:flex;gap:2px;padding:3px}
.sales-segments {background:var(--field);border:1px solid var(--line);border-radius:9px}
.sales-segments button,.sales-report-tabs button {padding:5px 10px;font-size:12px;font-weight:630;line-height:1.4;border-radius:6px;color:var(--sub)}
.sales-dashboard :is(.sales-segments,.sales-report-tabs) button[aria-pressed=true] {background:#8ce9df;color:#092b30}
.sales-segments button:hover,.sales-report-tabs button:hover {background:var(--raised);color:var(--ink)}
.sales-chart-readout {min-height:27px;text-align:right;margin:5px 0;color:var(--sub);font-size:12px}
.sales-chart-readout strong {color:var(--ink);margin-left:4px}
.sales-plot {display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:clamp(112px,11cqw,170px) auto;gap:5px 8px}
.sales-scale {font-size:10px;min-width:25px;color:var(--sub);display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}
.sales-bars {position:relative;display:flex;align-items:stretch;flex:1;gap:clamp(1px,.55cqw,8px);border-bottom:1px solid var(--edge);background:repeating-linear-gradient(to top,var(--line) 0 1px,transparent 1px 50%)}
.sales-bars button {width:0;flex:1;display:flex;align-items:flex-end;justify-content:center;padding:0;height:100%;background:transparent}
.sales-bars button span {width:min(100%,65px);border-radius:4px 4px 0 0;background:linear-gradient(#8af0e5,#36a6a8)}
.sales-bars .current span {background:linear-gradient(#f9a8d3,#d46da8)}
.sales-empty-chart {position:absolute;inset:35% 0 auto;text-align:center;color:var(--sub);font-size:13px;pointer-events:none}
.sales-axis {grid-column:2;display:grid;gap:clamp(1px,.55cqw,8px);font-size:10px;color:var(--sub)}
.sales-axis span {display:flex;justify-content:center;white-space:nowrap}
.sales-axis span:first-child {justify-content:flex-start}
.sales-axis span:last-child {justify-content:flex-end}
.sales-audience-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0 10px}
.sales-person {--accent:var(--sea);display:flex;align-items:center;gap:10px;border-radius:10px;border:1px solid color-mix(in srgb,var(--accent) 44%,transparent);background:color-mix(in srgb,var(--accent) 8%,transparent);padding:clamp(8px,1cqw,16px)}
.sales-person.spectator {--accent:var(--blue)}
.sales-person.showshine {--accent:var(--violet)}
.sales-person.vendor {--accent:var(--pink)}
.sales-person svg {width:22px;height:22px;flex:none;color:var(--accent)}
.sales-person span {font-size:12px;display:block;line-height:1.2}
.sales-person strong {font-size:25px;line-height:1.3}
.sales-report-tabs {margin:8px 0;flex-wrap:wrap;padding-left:0}
.sales-table-wrap {max-width:100%;overflow-x:auto}
.sales-table {width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.sales-table :is(td,th) {padding:10px 8px;text-align:right;border-top:1px solid var(--line);white-space:nowrap}
.sales-table tr>:first-child {text-align:left;white-space:normal;overflow-wrap:anywhere;min-width:100px}
.sales-table tr>:last-child {text-align:left;width:20%}
.sales-table thead {color:var(--sub);font-size:12px}
.sales-table tfoot {background:var(--raised);font-weight:bold}
.sales-table .sales-no-rows {text-align:center;padding:22px;color:var(--sub)}
.sales-share {gap:10px}
.sales-share i {display:block;flex:1;height:5px;border-radius:5px;background:var(--raised)}
.sales-share b {display:block;height:100%;border-radius:inherit;background:var(--pink)}
.sales-pages {justify-content:flex-end;gap:9px;margin-top:8px}
.sales-pages button {width:34px}
.sales-edit-note {margin:0 0 10px;color:var(--sub);font-size:13px}
.sales-edit-note button {color:var(--sea);text-decoration:underline}
.sales-movers {gap:3px;align-self:stretch;margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:5px}
.sales-movers span {flex:1;font-size:11px;line-height:1.15}
.sales-movers button {display:grid;place-items:center;border-radius:5px;min-width:24px;min-height:28px;padding:0}
.sales-movers button:hover {background:var(--raised)}
.sales-movers svg {width:14px;height:14px}
.sales-movers button:disabled,.sales-pages button:disabled {opacity:.35}
.sales-grip {cursor:grab;touch-action:none}
.sales-grip:active {cursor:grabbing}
.tile-garage .sales-movers {margin:0 0 4px}
.sales-grid.editing .tile-revenue {padding-right:clamp(13px,1.45cqw,22px)}
.sales-tile.drop-target {outline:2px dashed var(--sea);outline-offset:-2px}
@container content (max-width:1040px) {
  .with-garage .sales-kpi-title {gap:5px}
  .with-garage .sales-kpi-title svg {width:15px}
  .with-garage .sales-kpi-title h2 {font-size:12px}
  .sales-person {gap:6px}
}
@container content (max-width:820px) {
  .sales-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  .sales-grid .sales-tile {grid-column:span 1}
  .sales-grid .tile-garage,.sales-grid .tile-revenue,.sales-grid .tile-performance,.sales-grid .tile-audience {grid-column:span 2}
  .sales-grid .tile-garage {grid-row:auto;min-height:165px}
  .sales-grid:not(.with-garage) .tile-revenue,.sales-grid .tile-report {grid-column:1/-1}
  .sales-audience-grid {gap:6px}
  .sales-range>span {display:none}
}
@container content (max-width:560px) {
  .sales-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .sales-grid .tile-garage {min-height:182px}
  .sales-grid .tile-performance,.sales-grid .tile-audience {grid-column:1/-1}
  .sales-heading {gap:9px}
  .sales-heading p {font-size:13px}
  .sales-filters {margin:12px 0;gap:6px}
  .sales-range {margin:0}
  .sales-choice select {padding-left:10px;padding-right:24px;font-size:12px}
  .sales-choice>svg:first-child {display:none}
  .sales-choice>svg:last-child {right:7px}
  .sales-tile {padding:13px}
  .sales-tile.tile-garage {padding:0}
  .sales-actions button {min-height:40px}
  .sales-table {min-width:475px}
  .sales-movers button {min-height:34px}
}
@container content (min-width:821px) {
  .with-garage :is(.tile-tickets,.tile-orders,.tile-subscribers,.tile-events) {padding:clamp(11px,1cqw,18px)}
  .with-garage :is(.tile-tickets,.tile-orders,.tile-subscribers,.tile-events) .sales-kpi-title {gap:6px}
  .with-garage .sales-kpi-title svg {flex-shrink:0}
}
