/* Dashboard-only palette. Public campus pages and login retain tenant branding. */
.app-shell {
  --ink: #243044;
  --muted: #617087;
  --line: #e7ebf1;
  --surface: #fff;
  --work-canvas: #f4f6f9;
  --work-soft: #f7f9fc;
  background: var(--work-canvas);
  color: var(--ink);
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}
.app-shell .main { background: var(--work-canvas); }
.app-shell .sidebar { background: #fff; color: var(--ink); box-shadow: none; border-right: 1px solid var(--line); }
.app-shell .sidebar-head { padding: 20px 16px 16px; }
.app-shell .brand-row { color: #263247; font-size: 14px; font-weight: 650; line-height: 1.5; }
.app-shell .brand-dot { border: 0; background: #fff; border-radius: 6px; }
.app-shell .tenant-name, .app-shell .user-chip { color: var(--muted); }
.app-shell .portal-pill { color: var(--green-dark); background: color-mix(in srgb, var(--green) 8%, white); font-weight: 600; border-radius: 4px; }
.app-shell .nav-menu-search input { color: var(--ink); background: #f3f5f8; min-height: 38px; }
.app-shell .nav-menu-search input::placeholder { color: var(--muted); }
.app-shell .nav-group-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.app-shell .nav button { color: #526176; font-size: 12px; font-weight: 500; min-height: 37px; border-radius: 6px; }
.app-shell .nav button:hover { color: var(--green-dark); background: #f0f4f8; }
.app-shell .nav button.active { color: #fff; background: linear-gradient(110deg, var(--green), var(--green-dark)); box-shadow: none; font-weight: 600; }
.app-shell .nav-icon { color: inherit; }
.app-shell .nav-submenu { border-left-color: #dce3ec; }
.app-shell .nav-submenu label > span { color: var(--muted); font-weight: 600; }
.app-shell .nav-submenu select { background: #f1f4f8; color: #33455d; border: 0; font-size: 11px; font-weight: 500; }
.app-shell .sidebar-foot { background: #fafbfd; border-top: 1px solid #edf0f5; }
.app-shell .user-chip strong { color: #344258; font-weight: 600; }
.app-shell .sidebar .secondary-btn, .app-shell .mobile-menu-toggle { background: #eef2f7; color: #42546c; border: 0; }
.app-shell .topbar { background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
.app-shell .topbar-context span { color: var(--muted); font-weight: 500; }
.app-shell .topbar-context strong { color: #354358; font-weight: 600; }
.app-shell .search-box input { background: #f3f5f8; color: var(--ink); border: 0; min-height: 38px; font-size: 13px; }
.app-shell .search-box input::placeholder { color: var(--muted); }
.app-shell .top-actions :is(button, .connection-pill) { font-weight: 500; font-size: 11px; }
.app-shell .connection-pill { background: #eaf8f1; color: #217351; }
.app-shell .connection-pill.offline { background: #fff3dc; color: #94600e; }
.app-shell .workspace-content { color: var(--ink); background: transparent; padding: 26px 28px 48px; }
.app-shell .workspace-content :is(h1, h2, h3) { font-family: Inter, Roboto, Arial, sans-serif; color: #29374c; letter-spacing: 0; }
.app-shell .workspace-content .view-title h1 { font-size: 22px; line-height: 1.4; font-weight: 600; }
.app-shell .workspace-content .view-title .eyebrow { color: var(--muted); font-size: 10px; font-weight: 500; }
.app-shell .workspace-content .muted { color: var(--muted); }
.app-shell .module-nav { margin-bottom: 22px; }
.app-shell .module-tabs { gap: 24px; padding-bottom: 0; box-shadow: inset 0 -1px #e0e6ee; }
.app-shell .module-tabs button { color: var(--muted); font-weight: 500; padding: 12px 2px 14px; }
.app-shell .module-tabs button[aria-selected=true] { color: var(--green-dark); font-weight: 600; }
.app-shell .workspace-content .module-mobile-nav { color: var(--muted); }
.app-shell .workspace-content .module-mobile-nav select { background: #fff; color: #324359; min-height: 42px; }

/* Panels form continuous work surfaces; only repeated metrics are small cards. */
.app-shell .workspace-content :is(.panel, .dashboard-panel) { background: #fff; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 20px; }
.app-shell .workspace-content .panel .panel { padding: 16px 0; background: transparent; }
.app-shell .workspace-content :is(.panel-head, .module-section .panel-head) { background: transparent; padding: 0 0 16px; gap: 12px; }
.app-shell .workspace-content :is(.panel-body, .module-section .panel-body) { padding: 4px 0 0; }
.app-shell .workspace-content :is(.panel-head h2, .module-section .panel-head h2, .panel-head .report-meta > strong) { font-size: 14px; font-weight: 600; line-height: 1.5; color: #2d3c51; }
.app-shell .workspace-content .panel-head :is(p, .report-meta > span) { font-size: 12px; color: var(--muted); }
.app-shell .workspace-content .section-grid, .app-shell .workspace-content .module-section { gap: 20px; }
.app-shell .workspace-content .metrics { gap: 12px; }
.app-shell .workspace-content .metric { background: #fff; border-radius: 6px; padding: 16px; min-width: 0; box-shadow: 0 2px 5px #22314804; }
.app-shell .workspace-content .metric > span { color: #657389; font-size: 11px; line-height: 1.5; font-weight: 500; text-transform: none; }
.app-shell .workspace-content .metric strong { font-family: Inter, Roboto, Arial, sans-serif; font-size: 21px; line-height: 1.4; font-weight: 600; color: #304665; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.app-shell .workspace-content .metric small { color: var(--muted); font-size: 11px; font-weight: 400; }
.app-shell .workspace-content .metric-warning { background: #fffbf1; }
.app-shell .workspace-content .metric-warning strong { color: #976719; }
.app-shell .workspace-content .metric-danger { background: #fff5f6; }
.app-shell .workspace-content .metric-danger strong { color: #b74158; }
.app-shell .workspace-content .panel .metric { background: #f6f8fb; box-shadow: none; border-radius: 4px; }
.app-shell .workspace-content .dashboard-kpi-strip { gap: 16px; }
.app-shell .workspace-content .dashboard-kpi-card { background: #fff; border-radius: 6px; padding: 18px 16px 16px 64px; min-height: 116px; box-shadow: 0 2px 6px #24375406; }
.app-shell .workspace-content .dashboard-kpi-icon { top: 18px; left: 16px; width: 34px; height: 34px; border-radius: 6px; color: var(--kpi-color); background: color-mix(in srgb, var(--kpi-color) 10%, white); box-shadow: none; }
.app-shell .workspace-content .dashboard-kpi-label { font-size: 12px; font-weight: 500; line-height: 1.4; color: #5e6c82; text-transform: none; }
.app-shell .workspace-content .dashboard-kpi-card strong { color: #29384e; font-family: Inter, Roboto, Arial, sans-serif; font-size: 26px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.app-shell .workspace-content .dashboard-kpi-card small { color: var(--muted); font-weight: 400; font-size: 11px; line-height: 1.45; }
.app-shell .workspace-content .dashboard-quick-panel { background: transparent; padding: 4px 0; }
.app-shell .workspace-content .dashboard-quick-panel .action-card { border-radius: 6px; background: #fff; padding: 12px; }
.app-shell .workspace-content .dashboard-status-row { border-radius: 0; background: transparent; border-bottom: 1px solid #edf1f6; }
.app-shell .workspace-content .dashboard-status-row:hover { background: #f7f9fc; }
.app-shell .workspace-content .dashboard-bar-track { background: repeating-linear-gradient(to top, #fff 0, #fff 37px, #e9eef5 37px, #e9eef5 38px); }
.app-shell .workspace-content .dashboard-bar-track span { width: min(64px, 70%); margin-inline: auto; border-radius: 4px 4px 0 0; }
.app-shell .workspace-content .dashboard-bar-item small { color: #61728a; font-size: 11px; font-weight: 500; text-transform: none; }
.app-shell .workspace-content .dashboard-chart-summary { background: #f3f6fa; color: #526783; }

/* Quiet striped rows, stronger headings, semantic status colors. */
.app-shell .workspace-content .table-wrap { background: #fff; border-radius: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b8c5d6 #eef2f7; }
.app-shell .workspace-content table { font-size: 13px; color: #3e4e65; font-variant-numeric: tabular-nums; }
.app-shell .workspace-content th { background: #edf2f8; color: #52647f; font-size: 11px; line-height: 1.5; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 13px 14px; border: 0; white-space: nowrap; }
.app-shell .workspace-content td { padding: 14px; font-size: 13px; line-height: 1.5; vertical-align: middle; border: 0; border-bottom: 1px solid #edf1f6; }
.app-shell .workspace-content tbody tr:nth-child(odd) { background: #fff; }
.app-shell .workspace-content tbody tr:nth-child(even) { background: #f7f9fc; }
.app-shell .workspace-content tbody tr:hover { background: #eef5ff; }
.app-shell .workspace-content tbody tr:hover td { background: transparent; }
.app-shell .workspace-content td strong { font-weight: 600; color: #34475e; }
.app-shell .workspace-content td .muted { color: var(--muted); font-size: 11px; line-height: 1.5; }
.app-shell .workspace-content td :is(.secondary-btn, .ghost-btn, .icon-btn) { color: #3263a4; background: #eaf1fc; font-weight: 500; border-radius: 4px; }
.app-shell .workspace-content .badge { font-size: 10px; font-weight: 500; line-height: 1.4; padding: 4px 8px; border-radius: 4px; background: #eaf1ff; color: #355f9a; }
.app-shell .workspace-content .badge.low { background: #e8f7ef; color: #217553; }
.app-shell .workspace-content .badge.warning { background: #fff3da; color: #8a5c0b; }
.app-shell .workspace-content .badge.danger { background: #ffedf0; color: #b03f55; }
.app-shell .workspace-content .empty { color: var(--muted); font-size: 13px; background: #fafbfd; }

.app-shell .workspace-content .field > span { color: #526176; font-size: 12px; font-weight: 500; text-transform: none; }
.app-shell .workspace-content :is(.field input, .field select, .field textarea, td input, td select) { background: #f5f7fa; color: #2f4058; border: 1px solid #e5eaf1; border-radius: 5px; box-shadow: none; font-family: Roboto, Inter, Arial, sans-serif; font-size: 13px; }
.app-shell .workspace-content :is(input, textarea)::placeholder { color: var(--muted); }
.app-shell .workspace-content .form-action-bar, .app-shell .workspace-content .module-section .form-action-bar { background: #fff; border-top: 1px solid #edf0f5; padding: 16px 0 4px; }
.app-shell .workspace-content :is(.primary-btn, .secondary-btn, .ghost-btn) { font-size: 12px; font-weight: 500; border-radius: 5px; }
.app-shell .secondary-btn { background: #edf2f8; color: #405772; }
.app-shell .workspace-content .settings-tabs button { color: var(--muted); font-weight: 500; }
.app-shell .workspace-content .settings-tabs button[aria-selected=true] { color: var(--green-dark); font-weight: 600; }
.app-shell .workspace-content .access-group > summary { color: #4f617b; }
.app-shell .workspace-content :is(.job-row, .audit-item, .notification-item, .list-row) { padding: 14px 12px; background: #f7f9fc; border-radius: 4px; }
.app-shell .workspace-content :is(.job-row, .audit-item, .notification-item, .list-row):nth-child(even) { background: #fff; }
.app-shell :is(button, input, select, textarea, a, summary):focus-visible { outline: 2px solid #3271bd; outline-offset: 3px; }

@media (max-width: 1100px) {
  .app-shell .workspace-content { padding: 22px; }
}
@media (max-width: 780px) {
  .app-shell .sidebar { border-right: 0; border-bottom: 1px solid #e7ebf1; }
  .app-shell .sidebar-head { padding: 12px 14px; }
  .app-shell .brand-row { font-size: 13px; }
  .app-shell .topbar { padding: 10px 14px; }
  .app-shell .workspace-content { padding: 20px 14px 32px; }
  .app-shell .workspace-content .view-title h1 { font-size: 20px; }
  .app-shell .workspace-content :is(.panel, .dashboard-panel) { padding: 16px 12px; }
  .app-shell .workspace-content .dashboard-quick-panel { padding: 0; background: transparent; }
  .app-shell .workspace-content .dashboard-kpi-strip { gap: 10px; }
  .app-shell .workspace-content .dashboard-kpi-card { padding: 52px 12px 14px; min-height: 152px; }
  .app-shell .workspace-content .dashboard-kpi-icon { top: 12px; left: 12px; width: 30px; height: 30px; }
  .app-shell .workspace-content .dashboard-kpi-card strong { font-size: 23px; }
  .app-shell .workspace-content .dashboard-kpi-label { font-size: 11px; }
  .app-shell .workspace-content .metric { padding: 12px; }
  .app-shell .workspace-content .metric strong { font-size: 19px; }
  .app-shell .workspace-content th, .app-shell .workspace-content td { padding: 12px; }
  .app-shell .workspace-content .form-action-bar { padding-bottom: 10px; }
}
@media print {
  .app-shell, .app-shell .main, .app-shell .workspace-content { background: #fff; }
  .app-shell .workspace-content :is(.metric, .dashboard-kpi-card) { box-shadow: none; }
}
