:root {
    --bg: #F7F8F6;
    --card-bg: #FFFFFF;
    --primary-navy: #163A5F;
    --secondary-navy: #102A43;
    --teal: #438A82;
    --gold: #B7832F;
    --soft-gold: #E9D8B4;
    --success: #2F806F;
    --warning: #C58A2B;
    --muted-red: #B23A48;
    --text: #172B3A;
    --muted-text: #718096;
    --border: #E5E9E7;
  }
  
  * { box-sizing: border-box; }

  :root {
    --sidebar-w: 236px;
    --sidebar-w-collapsed: 72px;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
  }
  
  .font-display { font-family: 'Fraunces', serif; }
  .font-mono { font-family: 'IBM Plex Mono', monospace; }

  /* Sidebar Navigation */
  .app-shell { display: flex; min-height: 100vh; }

  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--primary-navy);
    color: #E7EEF3;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 200ms ease;
    z-index: 20;
  }
  .sidebar.collapsed { width: var(--sidebar-w-collapsed); }
  .sidebar.collapsed .sb-label,
  .sidebar.collapsed .sb-brand-text,
  .sidebar.collapsed .sb-section-label,
  .sidebar.collapsed .sb-footer-text { display: none; }
  .sidebar.collapsed .sb-item { justify-content: center; }
  .sidebar.collapsed .sb-brand { justify-content: center; }

  .sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .sb-crest {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 700; font-size: 12px;
    color: var(--gold); flex-shrink: 0;
  }
  .sb-brand-text { line-height: 1.2; }
  .sb-brand-name { font-family: 'Fraunces', serif; font-size: 12.5px; font-weight: 600; color: #FFFFFF; }
  .sb-brand-sub { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-gold); }

  .sb-toggle {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #C9D6E0;
    width: 26px; height: 26px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    transition: background 150ms ease;
  }
  .sb-toggle:hover { background: rgba(255,255,255,0.16); color: #FFFFFF; }
  .sb-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .sb-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
  .sb-section-label {
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(233,216,180,0.55);
    font-weight: 600;
    padding: 14px 12px 6px;
  }
  .sb-section-label:first-child { padding-top: 4px; }

  .sb-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #C9D6E0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
    white-space: nowrap;
  }
  .sb-item:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; text-decoration: none; }
  .sb-item.active { background: rgba(233,216,180,0.14); color: #FFFFFF; }
  .sb-item.active .sb-icon { color: var(--soft-gold); }
  .sb-icon {
    width: 17px; height: 17px; flex-shrink: 0;
    stroke: currentColor; fill: none; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
  }

  .sb-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sb-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: var(--primary-navy);
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
    flex-shrink: 0;
  }
  .sb-footer-text { line-height: 1.25; overflow: hidden; }
  .sb-footer-name { font-size: 12px; font-weight: 600; color: #FFFFFF; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .sb-footer-role { font-size: 10.5px; color: rgba(255,255,255,0.55); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(16,42,67,0.5);
    z-index: 19;
  }
  .sidebar-backdrop.show { display: block; }

  .mobile-topbar-toggle {
    display: none;
    background: var(--primary-navy);
    border: none;
    color: #FFFFFF;
    width: 34px; height: 34px;
    border-radius: 8px;
    align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mobile-topbar-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .content-area { flex: 1; min-width: 0; }

  .main { 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 24px 32px 40px; 
    position: relative; 
    z-index: 1; 
  }

  /* Header & Navigation */
  .topbar {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    padding: 22px 28px; 
    margin-bottom: 24px; 
    flex-wrap: wrap; 
    gap: 16px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-top: 2px solid #438A82;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22,58,95,0.05);
  }
  .topbar-left { display: flex; flex-direction: column; gap: 4px; }
  .topbar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
  .crest {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 700; font-size: 13px;
    color: var(--gold); background: var(--primary-navy); flex-shrink: 0;
  }
  .brand-name { font-size: 13px; line-height: 1.2; letter-spacing: .02em; color: var(--primary-navy); font-weight: 600; }
  .brand-sub { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  
  .topbar .eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
  .topbar h1 { 
    font-family: 'Fraunces', serif; 
    font-weight: 500; 
    font-size: 21px; 
    margin: 2px 0 0; 
    color: var(--text); 
    letter-spacing: -0.01em;
  }
  
  .topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
  .meta-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
  .academic-badge {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    color: var(--primary-navy); background: #FFFFFF; padding: 5px 10px; border-radius: 6px;
    border: 1px solid var(--border);
  }
  .date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted-text); }

  .school-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .chip {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    padding: 5px 12px; border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg); color: var(--muted-text);
    cursor: pointer; transition: all .2s ease;
  }
  .chip.active { background: var(--primary-navy); color: var(--soft-gold); border-color: var(--primary-navy); font-weight: 500; }
  .chip:hover:not(.active) { border-color: var(--gold); color: var(--primary-navy); }

  /* Section Titles */
  .section-header { margin: 28px 0 14px; }
  .section-header h3 { font-family: 'Fraunces', serif; font-size: 17.5px; font-weight: 600; color: var(--primary-navy); margin: 0 0 2px; }
  .section-header p { font-size: 12.5px; color: var(--muted-text); margin: 0; }

  /* KPI Summary Cards */
  .stat-tile {
    border-radius: 12px; 
    padding: 18px 20px; 
    height: 110px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden; 
    box-shadow: 0 4px 16px rgba(22,58,95,0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,58,95,0.1);
  }
  
  .tile-fees { background: #9E732D; color: #FFFFFF; border: 1px solid #845D22; }
  .tile-apps { background: #163A5F; color: #FFFFFF; border: 1px solid #102A43; }
  .tile-emp { background: #37736C; color: #FFFFFF; border: 1px solid #2C5B55; }
  .tile-obs { background: #9C323E; color: #FFFFFF; border: 1px solid #7D2731; }

  .stat-tile .n { font-family: 'IBM Plex Mono', monospace; font-size: 23px; font-weight: 600; line-height: 1; color: #FFFFFF; }
  .stat-tile .t { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
  .stat-tile .sub { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(255, 255, 255, 0.8); }
  .stat-tile .ic { 
    position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; 
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; background: rgba(255, 255, 255, 0.15); color: #FFFFFF;
  }

  /* Module Overview — Row List Style */
  .module-row-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--mc-color, var(--primary-navy));
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 48px 200px 150px 120px 76px minmax(160px, 1fr) 44px;
    align-items: center;
    column-gap: 20px;
    box-shadow: 0 4px 16px rgba(22,58,95,0.05);
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .module-row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px var(--mc-shadow, rgba(22,58,95,0.14));
  }
  .module-row-card.accent-fees { --mc-color: #B7832F; --mc-tint: rgba(183,131,47,0.12); --mc-shadow: rgba(183,131,47,0.20); }
  .module-row-card.accent-apps { --mc-color: #163A5F; --mc-tint: rgba(22,58,95,0.10); --mc-shadow: rgba(22,58,95,0.20); }
  .module-row-card.accent-emp  { --mc-color: #438A82; --mc-tint: rgba(67,138,130,0.12); --mc-shadow: rgba(67,138,130,0.20); }
  .module-row-card.accent-stu  { --mc-color: #B7832F; --mc-tint: rgba(183,131,47,0.12); --mc-shadow: rgba(183,131,47,0.20); }
  .module-row-card.accent-lib  { --mc-color: #6E4C7D; --mc-tint: rgba(110,76,125,0.12); --mc-shadow: rgba(110,76,125,0.20); }

  .module-row-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--mc-tint, #EEF2F5);
    border: 1px solid var(--mc-color, var(--border));
    color: var(--mc-color, var(--primary-navy));
    display: flex; align-items: center; justify-content: center;
  }
  .module-row-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  .module-row-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .module-row-title .tag { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mc-color, var(--gold)); white-space: nowrap; }
  .module-row-title h4 { font-family: 'Fraunces', serif; font-size: 15.5px; font-weight: 600; margin: 0; color: var(--primary-navy); letter-spacing: -0.01em; white-space: nowrap; }

  .module-row-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .module-row-stat .lbl { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-text); white-space: nowrap; }
  .module-row-stat .val { font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 700; color: var(--primary-navy); line-height: 1.1; white-space: nowrap; }
  .module-row-stat .trend { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
  .module-row-stat .trend.up { color: var(--success); }
  .module-row-stat .trend.down { color: var(--muted-red); }

  .module-row-minilist { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: center; }
  .module-row-minilist .mi-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-text); white-space: nowrap; }
  .module-row-minilist .mi-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

  .module-row-donut { position: relative; width: 68px; height: 68px; }
  .module-row-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .module-row-donut-track { fill: none; stroke: #EEF2F0; }
  .module-row-donut-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
  .module-row-donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  }
  .module-row-donut-pct { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 700; color: var(--primary-navy); line-height: 1; }
  .module-row-donut-sublbl { font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-text); margin-top: 2px; }

  .module-row-legend { display: flex; flex-direction: column; gap: 8px; min-width: 0; justify-content: center; }
  .module-row-legend .lg-row { display: flex; flex-direction: column; gap: 3px; }
  .module-row-legend .lg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
  .module-row-legend .lg-label { display: flex; align-items: center; gap: 5px; color: var(--muted-text); white-space: nowrap; }
  .module-row-legend .lg-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .module-row-legend .lg-val { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--text); flex-shrink: 0; }
  .module-row-legend .lg-bar { height: 4px; border-radius: 3px; width: 100%; opacity: 1; }

  .module-row-arrow {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1.5px solid var(--mc-color, var(--gold));
    color: var(--mc-color, var(--gold));
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  }
  .module-row-arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .module-row-arrow:hover { background: var(--mc-color, var(--gold)); color: #FFFFFF; transform: translateX(2px); }

  @media (max-width: 980px) {
    .module-row-card {
      grid-template-columns: 48px 1fr 44px;
      grid-template-areas:
        "icon title arrow"
        "stat stat stat"
        "mini mini mini"
        "donut legend legend";
      row-gap: 12px;
    }
    .module-row-icon { grid-area: icon; }
    .module-row-title { grid-area: title; }
    .module-row-arrow { grid-area: arrow; }
    .module-row-stat { grid-area: stat; flex-direction: row; gap: 24px; align-items: baseline; }
    .module-row-minilist { grid-area: mini; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .module-row-donut { grid-area: donut; }
    .module-row-legend { grid-area: legend; }
  }

  /* School-wise Comparison — Donut Gauges */
  .donut-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-top: 6px;
  }
  .donut-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-top: 3px solid var(--border); border-radius: 12px;
    padding: 18px 16px 16px; box-shadow: 0 4px 16px rgba(22,58,95,0.04);
  }
  .donut-card-name {
    font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600;
    color: var(--primary-navy); margin-bottom: 2px; display: block;
  }
  .donut-row { display: flex; flex-wrap: wrap; gap: 12px 6px; justify-content: space-between; }
  .donut-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 auto; }
  .donut-svg-wrap { position: relative; width: 58px; height: 58px; }
  .donut-svg-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .donut-track { fill: none; stroke: #EEF2F0; }
  .donut-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
  .donut-value {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--primary-navy);
  }
  .donut-label { font-size: 9.5px; font-weight: 500; color: var(--muted-text); text-align: center; }
  .donut-formula { font-size: 8.5px; color: var(--muted-text); text-align: center; opacity: 0.85; }
  @media (max-width: 900px) { .donut-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .donut-grid { grid-template-columns: 1fr; } }

  /* School-Wise Attendance Executive Chart Section */
  .attendance-container {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px 26px; margin-top: 24px;
    box-shadow: 0 4px 16px rgba(22,58,95,0.04);
  }
  .attendance-header-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
  }
  .attendance-summary-box {
    display: flex; gap: 18px; background: #F7F8F6;
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px;
  }
  .attendance-summary-item { display: flex; flex-direction: column; gap: 2px; }
  .attendance-summary-label {
    font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted-text); font-weight: 600;
  }
  .attendance-summary-val {
    font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; color: var(--primary-navy);
  }

  .chart-arena {
    position: relative; height: 230px; display: flex;
    align-items: flex-end; justify-content: space-around;
    padding: 25px 16px 8px 45px; border-bottom: 1px solid var(--border); margin-top: 8px;
  }
  .chart-grid-lines {
    position: absolute; inset: 15px 16px 0 45px;
    display: flex; flex-direction: column; justify-content: space-between; pointer-events: none;
  }
  .grid-line { width: 100%; border-top: 1px solid var(--border); position: relative; }
  .grid-line span {
    position: absolute; left: -38px; top: -7px;
    font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--muted-text);
  }

  .month-cluster {
    display: flex; flex-direction: column; align-items: center;
    position: relative; height: 100%; justify-content: flex-end; flex: 1; max-width: 150px; z-index: 2;
  }
  .month-bars-row { display: flex; align-items: flex-end; gap: 4px; height: 175px; }
  .month-bar-wrap { position: relative; width: 16px; height: 175px; display: flex; align-items: flex-end; cursor: pointer; }
  .month-bar-fill { width: 100%; height: 0%; border-radius: 3px 3px 0 0; transition: height 1s cubic-bezier(0.1, 1, 0.1, 1); }
  .month-cluster-label { font-size: 12.5px; font-weight: 500; color: var(--text); margin-top: 10px; text-align: center; }
  .month-bar-tooltip {
    position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(4px); margin-bottom: 8px;
    background: var(--primary-navy); color: #FFFFFF; padding: 6px 9px;
    border-radius: 6px; font-size: 10px; font-family: 'IBM Plex Mono', monospace;
    box-shadow: 0 4px 12px rgba(22,58,95,0.15); pointer-events: none; opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease; z-index: 10; white-space: nowrap; text-align: center;
  }
  .month-bar-wrap:hover .month-bar-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
  .trend-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
  .trend-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); }
  .trend-legend-swatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
  .trend-legend-val { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--muted-text); }

  /* Notifications & Events Feed Cards */
  .feed-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 22px 24px; box-shadow: 0 4px 16px rgba(22,58,95,0.04);
    height: 100%; display: flex; flex-direction: column;
  }
  .feed-card h3 {
    font-family: 'Fraunces', serif; font-size: 16.5px; font-weight: 600;
    color: var(--primary-navy); margin: 0 0 14px 0;
  }
  .feed-list { display: flex; flex-direction: column; gap: 12px; }
  .feed-item { display: flex; align-items: center; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #F0F3F1; }
  .feed-item:last-child { padding-bottom: 0; border-bottom: none; }
  .feed-icon-box {
    width: 36px; height: 36px; border-radius: 9px; background: #F4F7F5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #E5E9E7;
  }
  .feed-icon-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .feed-content { display: flex; flex-direction: column; gap: 1px; }
  .feed-title { font-size: 13px; font-weight: 600; color: var(--primary-navy); }
  .feed-time { font-size: 11px; color: var(--muted-text); }

  /* Footer */
  .executive-footer {
    margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 12px; font-size: 11px; color: var(--muted-text); font-family: 'IBM Plex Mono', monospace;
  }

  @media (max-width: 768px) {
    .main { padding: 16px; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .topbar-right { align-items: flex-start; width: 100%; }
    .school-chips { justify-content: flex-start; }
    . attendance-header-row { flex-direction: column; align-items: flex-start; }
    .attendance-summary-box { width: 100%; justify-content: space-between; }
    .chart-arena { overflow-x: auto; justify-content: flex-start; gap: 20px; padding-bottom: 8px; }
    .month-cluster { min-width: 90px; }

    .sidebar {
      position: fixed; left: 0; top: 0; width: 250px;
      transform: translateX(-100%); transition: transform 220ms ease;
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar.collapsed { width: 250px; }
    .sidebar.collapsed .sb-label,
    .sidebar.collapsed .sb-brand-text,
    .sidebar.collapsed .sb-section-label,
    .sidebar.collapsed .sb-footer-text { display: block; }
    .sidebar.collapsed .sb-item,
    .sidebar.collapsed .sb-brand { justify-content: flex-start; }
    .sb-toggle { display: none; }
    .mobile-topbar-toggle { display: flex; }
  }
