/* Adaptive workspaces: use the screen, not a centered desktop-sized canvas. */
@media screen {
  .app-shell > main { max-width:none; margin:0; min-width:0; }
  .app-shell > main > * { min-width:0; }
  .app-shell .metrics,.app-shell .tiles { grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr)); }
  .report-metrics,.report-panels { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin:12px 0; }
  .report-metrics > .card,.report-panels > .card { margin:0; min-width:0; }
  .report-metrics > .card { font-size:13px;color:var(--muted);padding:16px; }
  .report-panels .scroll { max-width:100%;overflow:auto; }
  .report-panels .scroll:focus-visible { outline:3px solid #83a9dc;outline-offset:2px; }
}
@media screen and (min-width:721px) {
  .report-metrics { grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); }
}
@media screen and (min-width:1600px) {
  .app-shell { grid-template-columns:248px minmax(0,1fr); }
  .app-shell > main { padding-inline:clamp(28px,2vw,64px); }
  .report-panels { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
  .report-panels > .wide-report { grid-column:1/-1; }
  .report-metrics { grid-template-columns:repeat(6,minmax(0,1fr));gap:16px; }
  .salegrid { grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr); }
}
@media screen and (min-width:2400px) {
  .app-shell { grid-template-columns:264px minmax(0,1fr); }
  .report-panels { grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
  .app-shell .card { padding:22px; }
  .app-shell .metric { font-size:28px; }
  .app-shell table { font-size:14px; }
}
@media screen and (max-width:720px) {
  .report-metrics { grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); }
  .report-panels { gap:12px; }
}
