/* Logged-in workspace. Authentication surfaces retain their existing layout. */
.dashboard-view .workspace-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
}
.dashboard-view .topbar {
  position: relative;
  min-height: 68px;
  padding: 12px 32px;
  gap: 24px;
  box-shadow: none;
}
.dashboard-view .brand-title { font-size: 22px; color: #153d70; line-height: 1.4; }
.dashboard-view .brand-sub { display: none; }
.dashboard-view .brand-mark { background: transparent; width: 36px; height: 40px; flex-shrink: 0; }
.dashboard-view .brand-mark img { width: 36px; height: 36px; }
.dashboard-view .topbar-left { min-width: 0; }
.dashboard-view .topbar-right { flex-shrink: 0; }
.dashboard-view .last-refresh { display: none; }
.workbench-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dashboard-view .role-badge { background: transparent; color: var(--ink); }
.dashboard-view .topbar-right .ghost { border: 0; display: inline-flex; align-items: center; gap: 6px; }
.button-icon, .heading-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon-button { width: 36px; height: 36px; padding: 8px !important; }
.icon-button img { width: 20px; height: 20px; }

.dashboard-view .section-nav-groups {
  position: relative;
  top: auto;
  z-index: 6;
  padding: 0 32px;
  gap: 28px;
  background: #fff;
  backdrop-filter: none;
}
.dashboard-view .nav-group { position: static; width: auto; flex: 0 0 auto; }
.dashboard-view .nav-group > summary {
  position: relative;
  width: auto;
  padding: 13px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}
.dashboard-view .nav-group > summary::after { display: none; }
.dashboard-view .nav-group-active > summary { color: var(--primary); box-shadow: inset 0 -3px var(--primary); }
.dashboard-view .nav-group[open] > summary { color: var(--primary); background: var(--primary-soft); }
.dashboard-view .nav-group-items {
  position: absolute;
  top: 100%;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(23 32 51 / 10%);
}
.dashboard-view .nav-group:not([open]) .nav-group-items { display: none; }
.dashboard-view .nav-group-items .section-tab { width: 100%; text-align: left; border-radius: 4px; padding: 9px 12px; color: var(--ink); font-weight: 500; }
.dashboard-view .nav-group-items .section-tab.active { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.dashboard-view .range-bar { position: static; top: auto; padding: 12px 32px; }
.dashboard-view > .page { max-width: 1600px; padding: 0 24px 32px; gap: 0; }
.dashboard-view .view { gap: 16px; min-width: 0; padding-top: 20px; }
.dashboard-view #view-overview { padding-top: 0; }
.dashboard-view .overview-campus { min-height: 200px; padding: 24px 16px; border: 0; margin: 0 -24px; }
.dashboard-view .overview-campus-copy { max-width: 55%; padding-left: 24px; }
.dashboard-view .overview-campus h1 { font-size: 36px; color: #142b4c; }
.dashboard-view .overview-campus p { font-size: 19px; margin-top: 6px; }
.dashboard-view .overview-campus-art { width: min(100%, 1120px); opacity: .95; object-fit: cover; }
.dashboard-view #overview-range-slot .range-bar { padding: 0; border: 0; margin-top: 18px; background: transparent; gap: 8px; }
.dashboard-view #overview-range-slot .range-bar > .muted { display: none; }
.dashboard-view .range-control { border-radius: 4px; background: #fff; }
.dashboard-view .range-control button { min-width: 64px; min-height: 34px; }

.dashboard-view .kpis { gap: 0; padding: 18px 0; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.dashboard-view .kpi {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  padding: 0 24px;
  min-width: 0;
  min-height: 60px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}
.dashboard-view .kpi:last-child { border-right: 0; }
.dashboard-view .kpi:hover { background: var(--primary-soft); }
.dashboard-view .kpi-icon { grid-area: 1 / 1 / 3 / 2; width: 48px; height: 48px; display: grid; place-items: center; background: #edf4fd; border-radius: 50%; }
.dashboard-view .kpi-icon img { width: 25px; height: 25px; }
.dashboard-view .kpi-danger .kpi-icon { background: var(--danger-soft); }
.dashboard-view .kpi-num { grid-area: 1 / 2; font-size: 30px; line-height: 1.2; }
.dashboard-view .kpi-label { grid-area: 2 / 2; margin: 5px 0 0; font-size: 14px; color: var(--ink); white-space: normal; }
.workbench-charts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 18px 20px; background: #fff; border-block: 1px solid var(--border); }
.workbench-chart { min-width: 0; }
.workbench-chart + .workbench-chart { padding-left: 24px; border-left: 1px solid var(--border); }
.dashboard-view .panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.dashboard-view .workbench-charts .panel-head { margin-bottom: 12px; }
.dashboard-view #overview-trend-chart { height: 218px; min-height: 0; position: relative; }
.dashboard-view #overview-trend-chart svg { width: 100%; height: 100%; }
.dashboard-view #overview-category-bars { height: 218px; overflow-y: auto; padding-right: 4px; }
.dashboard-view #overview-category-bars .bar-row { grid-template-columns: minmax(70px, 100px) minmax(0, 1fr) 36px; min-height: 28px; }
.dashboard-view #overview-category-bars .bar-track { height: 12px; border-radius: 3px; }
.dashboard-view #overview-category-bars .bar-fill { background: #548fd0; border-radius: 3px; }
.text-link { padding: 3px 0; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.dashboard-view button:focus-visible, .dashboard-view summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.workbench-recent { padding: 18px 20px; background: #fff; border-block: 1px solid var(--border); min-width: 0; }
.overview-recent-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.overview-recent-table th { color: var(--muted); background: #f2f5fa; font-weight: 500; }
.overview-recent-table th, .overview-recent-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #edf1f6; }
.overview-recent-table th:last-child, .overview-recent-table td:last-child { text-align: right; }
.overview-recent-table td:first-child { font-variant-numeric: tabular-nums; }
.overview-more { border-top: 1px solid var(--border); }
.overview-more > summary { cursor: pointer; padding: 14px 0; color: var(--muted); font-size: 14px; }
.overview-detail-content { display: grid; gap: 16px; }
.overview-totals { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 0; color: var(--muted); }
.overview-totals strong { margin-left: 10px; color: var(--primary); }

@media (max-width: 1100px) {
  .dashboard-view .brand-title { font-size: 18px; }
  .dashboard-view .topbar { padding: 12px 20px; gap: 12px; }
  .dashboard-view .section-nav-groups { padding-inline: 20px; gap: 16px; }
  .dashboard-view .kpi { padding: 0 12px; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
  .dashboard-view .kpi-icon { width: 36px; height: 36px; }
  .dashboard-view .kpi-icon img { width: 21px; height: 21px; }
  .dashboard-view .kpi-num { font-size: 26px; }
}
@media (max-width: 720px) {
  .dashboard-view .topbar { align-items: flex-start; flex-wrap: wrap; padding: 12px 16px 8px; gap: 8px; }
  .dashboard-view .topbar-left { width: 100%; }
  .dashboard-view .brand-title { font-size: 17px; white-space: normal; max-width: none; overflow: visible; }
  .dashboard-view .brand-mark, .dashboard-view .brand-mark img { width: 28px; height: 32px; }
  .dashboard-view .topbar-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
  .dashboard-view .topbar-right .role-badge { margin-right: auto; }
  .dashboard-view .section-nav-groups { gap: 0; padding: 0 8px; flex-wrap: wrap; }
  .dashboard-view .nav-group { flex: 1 1 auto; }
  .dashboard-view .nav-group > summary { font-size: 13px; padding: 11px 8px; text-align: center; }
  .dashboard-view .nav-group-items { left: 8px; right: 8px; max-width: none; }
  .dashboard-view > .page { padding: 0 12px 24px; }
  .dashboard-view .overview-campus { min-height: 184px; margin-inline: -12px; padding: 18px 16px; }
  .dashboard-view .overview-campus-copy { max-width: 100%; width: 100%; padding-left: 0; }
  .dashboard-view .overview-campus h1 { font-size: 28px; }
  .dashboard-view .overview-campus p { font-size: 16px; }
  .dashboard-view .overview-campus-art { opacity: .4; }
  .dashboard-view .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .dashboard-view .kpi { padding: 12px 16px; border: 0; }
  .dashboard-view .kpi:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; }
  .workbench-charts { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 12px; }
  .workbench-chart + .workbench-chart { padding: 18px 0 0; border: 0; border-top: 1px solid var(--border); }
  .dashboard-view #overview-trend-chart { height: 190px; }
  .dashboard-view #overview-category-bars { height: auto; max-height: 230px; }
  .workbench-recent { padding: 16px 12px; }
  .overview-recent-table { min-width: 590px; }
  .dashboard-view .range-bar { padding: 10px 16px; }
}
