/* ===== Dashboard vertical rhythm =====
   Target: the whole overview fits without scrolling. Every value below was measured rather
   than guessed — the page was 1377px tall in a 950px viewport before this. */



/* Panel headers were 52px tall for a 15px title — mostly air. */
.dash-grid{ gap:12px; }
/* The overview is meant to be read without scrolling the page. Rather than tuning heights to
   one screen size, the grid takes the space actually available below the header and identity
   block, and any panel whose content exceeds its share scrolls inside itself. */
body.on-dashboard .dash-grid{
  /* height, not max-height: max-height only caps the grid, so with light content the panels
     stayed short and left a large band of background below them. A real height makes the two
     rows share the available space and the panels stretch to fill it. */
  height:calc(100vh - var(--dash-offset, 200px));
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
}
/* The left column matches that height so the menu column and the panels end level. */
body.on-dashboard .sidebar-col{ max-height:calc(100vh - var(--dash-offset, 200px)); }
body.on-dashboard .dash-panel{ min-height:0; }
body.on-dashboard .dash-panel-body{ overflow:auto; }
@media(max-width:1100px){
  body.on-dashboard .dash-grid{ height:auto; grid-template-rows:auto; }
  body.on-dashboard .sidebar-col{ max-height:none; position:static; }
  body.on-dashboard .dash-panel-body{ overflow:visible; }
}

