/* Dashboard-only layout adjustments, plus the requested station selector/sidebar scrolling. */
.app-shell .sidebar{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.app-shell .sidebar .brand{flex:0 0 auto!important}
.app-shell .sidebar .station-switch{
  display:flex!important;
  flex:0 0 auto!important;
}
.app-shell .sidebar #navigation{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#ffffff40 transparent;
}
.app-shell .sidebar .sidebar-bottom{
  position:relative!important;
  inset:auto!important;
  flex:0 0 auto!important;
  margin-top:auto!important;
  padding-bottom:8px;
  z-index:2;
}

.app-shell.dashboard-active .admin-dashboard .admin-dash-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.admin-dash-panel{
  align-self:stretch!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.admin-dash-panel>.admin-dash-panel-body{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.fuel-sale-panel>.admin-dash-panel-body{
  overflow:visible!important;
  padding-bottom:12px!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.admin-dash-panel:not(.fuel-sale-panel)>.admin-dash-panel-body{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:8px;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid .admin-tank{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:space-between;
  min-height:70px;
  margin-bottom:0!important;
}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history{
  display:flex!important;
  flex:1 1 auto;
  flex-direction:column!important;
  max-height:none!important;
  overflow:visible!important;
}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history-row{
  flex:1 1 auto;
  align-items:center;
  min-height:40px;
}

.app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);
  align-items:stretch;
  gap:10px;
  margin-top:10px;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-column{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-trend .dashboard-insight-shifts{
  margin-top:0;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-column>.admin-dash-panel,
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid>.admin-dash-panel{
  min-width:0;
  height:auto!important;
  max-height:none!important;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-column>.admin-dash-panel{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-column>.admin-dash-panel>.admin-dash-panel-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:space-between;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-operations .dashboard-quick-actions,
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-operations .admin-operations,
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-trend .dashboard-shift-status-grid{
  flex:1 1 auto;
  align-content:stretch;
  grid-auto-rows:minmax(0,1fr);
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-shifts .admin-reconciliation{
  flex:1 1 auto;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid .admin-dash-panel-body,
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid .admin-dash-panel-body{
  max-height:none!important;
  overflow:visible!important;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
  gap:10px;
  margin-top:10px;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid .admin-dash-alerts{
  min-width:0;
  padding:12px;
  border:1px solid #f1dcba;
  border-radius:10px;
  background:#fffaf2;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid .admin-dash-alerts .admin-dash-alert{
  flex:0 0 auto;
  align-items:center;
  min-height:0;
}

/* Keep the dashboard usable at normal browser zoom without shrinking its text. */
.app-shell.dashboard-active .page-content{padding:8px 12px 24px!important}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid,
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid,
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid{gap:8px!important;margin-top:8px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi{
  height:auto!important;
  min-height:205px!important;
  max-height:none!important;
  overflow:hidden!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:5px!important;
  row-gap:2px!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading>span{
  grid-column:1 / -1;
  min-width:0;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:10px!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading>.admin-density-primary{
  grid-column:1;
  min-width:0;
  align-items:flex-start;
  text-align:left;
  font-size:13px!important;
  line-height:1.15;
  white-space:nowrap!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading>small{
  grid-column:2;
  max-width:80px;
  font-size:9px;
  line-height:1.15;
  overflow-wrap:normal;
  word-break:normal;
}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile{
  height:auto!important;
  min-height:58px!important;
  max-height:none!important;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button{min-height:56px!important}
.app-shell.dashboard-active .admin-dashboard .dashboard-insight-chart .dashboard-trend-svg{height:125px}
@media(min-width:1180px) and (max-width:1480px){
  .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles,
  .app-shell.dashboard-active .admin-dashboard .admin-kpis{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}
@media(max-width:1480px){
  .app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading{
    grid-template-columns:minmax(0,1fr);
  }
  .app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-density-reading>small{
    grid-column:1;
    max-width:none;
  }
}

/* The six shortcuts use the same semantic SVG icons as the existing operation cards. */
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button{
  min-width:0;
  min-height:62px!important;
  padding:7px 4px!important;
  gap:4px!important;
  border-radius:10px!important;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button span{
  display:grid;
  place-items:center;
  color:#087b58;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button:nth-child(even) span{color:#287bea}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button svg{width:19px;height:19px}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button strong{
  font-size:10px!important;
  line-height:1.2;
  white-space:normal;
}

.app-shell.dashboard-active .admin-dashboard .dashboard-insight-chart .dashboard-trend-svg{
  height:145px;
}
.app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid .admin-dash-table,
.app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid .admin-dash-table{
  max-width:100%;
}

@media(max-width:1000px){
  .app-shell.dashboard-active .admin-dashboard .admin-dash-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.purchase-receipt-history-panel{
    grid-column:1/-1;
  }
  .app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .app-shell.dashboard-active .admin-dashboard .dashboard-layout-trend{
    grid-column:1/-1;
  }
}
@media(max-width:680px){
  .app-shell.dashboard-active .admin-dashboard .admin-kpi{min-height:0!important}
  .app-shell.dashboard-active .admin-dashboard .admin-dash-grid,
  .app-shell.dashboard-active .admin-dashboard .dashboard-layout-grid,
  .app-shell.dashboard-active .admin-dashboard .dashboard-bottom-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.purchase-receipt-history-panel,
  .app-shell.dashboard-active .admin-dashboard .dashboard-layout-trend{
    grid-column:auto;
  }
  .app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button{min-height:68px!important}
}
