﻿/* Dashboard navigation and focused school workspaces. */
@media screen {
body .app-container .sidebar .dashboard-menu-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:11px;border:1px solid #ffffff20;border-radius:9px;color:#e5efff;background:#ffffff09;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;text-align:left}
.dashboard-menu-toggle>span{flex:1}.dashboard-menu-toggle>svg{width:18px;height:18px}.dashboard-menu-toggle>svg:last-child{width:14px;transition:transform .18s}.dashboard-menu-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.dashboard-submenu{list-style:none;padding:8px 0 4px 12px;margin:5px 0 0 8px;border-left:1px solid #ffffff26;display:grid;gap:4px}.dashboard-submenu[hidden]{display:none!important}
body .app-container .sidebar .dashboard-submenu .sidebar-item a{font-size:12px;padding:9px 10px;line-height:1.5;white-space:normal}
.dashboard-focused #home-dashboard,#focused-dashboard[hidden]{display:none!important}
}
#focused-dashboard{--fv-accent:#2563eb;--fv-ink:var(--hd-ink,#243c42);--fv-muted:var(--hd-muted,#6b7b83);--fv-line:var(--hd-line,#e6eaed);--fv-surface:var(--hd-surface,#fff);margin-top:0;color:var(--fv-ink)}
#focused-dashboard[data-view=attendance],#focused-dashboard[data-view=activity]{--fv-accent:#7c3aed}
#focused-dashboard[data-view=accounts]{--fv-accent:#087f78}
.fv-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:20px;padding:0 0 18px;border-bottom:1px solid var(--fv-line)}
.fv-period{display:flex;align-items:center;gap:12px;min-width:0}.fv-workspace-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:1px solid color-mix(in srgb,var(--fv-accent) 20%,var(--fv-line));border-radius:12px;background:color-mix(in srgb,var(--fv-accent) 9%,var(--fv-surface));color:var(--fv-accent)}
.fv-period strong{display:block;font-size:15px;font-weight:650;line-height:1.5}.fv-period div>span{display:block;font-size:13px;color:var(--fv-muted);margin-top:2px;line-height:1.6}
.fv-toolbar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.fv-primary-action,.fv-secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 14px;border:1px solid var(--fv-line);border-radius:9px;font-size:13px;font-weight:600;line-height:1.5;text-align:center}
#focused-dashboard .fv-primary-action{background:var(--fv-accent);border-color:var(--fv-accent);color:#fff;box-shadow:0 4px 10px color-mix(in srgb,var(--fv-accent) 15%,transparent)}
#focused-dashboard .fv-secondary-action{background:var(--fv-surface);color:var(--fv-ink)}.fv-toolbar-actions svg{width:16px;height:16px}.fv-toolbar-actions a:hover{filter:brightness(.94)}
.fv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
#focused-dashboard .fv-stat{--fv-stat-start:#1d4ed8;--fv-stat-end:#2563eb;display:block;min-width:0;position:relative;overflow:hidden;padding:21px 22px;border:0;border-radius:13px;background:linear-gradient(120deg,var(--fv-stat-start),var(--fv-stat-end));box-shadow:0 7px 18px color-mix(in srgb,var(--fv-stat-end) 13%,transparent);color:#fff;transition:transform .15s}
#focused-dashboard .fv-stat[data-tone=teal]{--fv-stat-start:#0f766e;--fv-stat-end:#087f78}#focused-dashboard .fv-stat[data-tone=rose]{--fv-stat-start:#a82355;--fv-stat-end:#bc3764}#focused-dashboard .fv-stat[data-tone=violet]{--fv-stat-start:#6d28d9;--fv-stat-end:#7c3aed}#focused-dashboard .fv-stat[data-tone=amber]{--fv-stat-start:#a04b08;--fv-stat-end:#b85b08}
.fv-stat:after{content:"";position:absolute;right:-25px;bottom:-50px;width:105px;height:105px;border:20px solid #ffffff0d;border-radius:50%;pointer-events:none}
.fv-stat:hover{transform:translateY(-2px)}.fv-stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:550;line-height:1.5}.fv-stat-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:#ffffff24;border:1px solid #ffffff1a;border-radius:9px}.fv-stat-icon svg{width:17px;height:17px}
#focused-dashboard .fv-stat>strong{display:block;margin:14px 0 11px;font-size:clamp(24px,1.9vw,32px);font-weight:700;letter-spacing:-.7px;line-height:1.3;color:#fff;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fv-stat-foot{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.6}.fv-stat-foot>span{min-width:0}.fv-stat-foot svg{width:14px;height:14px;flex-shrink:0}
.fv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.fv-wide{grid-column:1/-1}
.fv-card{--fv-card-color:#2563eb;min-width:0;border:1px solid var(--fv-line);border-radius:15px;background:var(--fv-surface);box-shadow:0 3px 12px #203c4804;overflow:hidden}
.fv-card[data-tone=teal]{--fv-card-color:#0d9488}.fv-card[data-tone=violet]{--fv-card-color:#8b5cf6}.fv-card[data-tone=rose]{--fv-card-color:#d44876}.fv-card[data-tone=amber]{--fv-card-color:#d97706}
.fv-card>header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:20px 22px;border-bottom:1px solid var(--fv-line);background:linear-gradient(110deg,color-mix(in srgb,var(--fv-card-color) 8%,var(--fv-surface)),var(--fv-surface))}
.fv-card-title{display:flex;align-items:flex-start;gap:11px;min-width:0}.fv-card-title>div{min-width:0}.fv-card-icon{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:10px;color:var(--fv-card-color);background:color-mix(in srgb,var(--fv-card-color) 10%,var(--fv-surface))}.fv-card-icon svg{width:18px;height:18px}
#focused-dashboard .fv-card h2{font-size:18px;font-weight:650;letter-spacing:-.25px;line-height:1.45;color:var(--fv-ink);margin:0}
#focused-dashboard .fv-card header p{font-size:13px;line-height:1.65;color:var(--fv-muted);margin-top:4px}
#focused-dashboard .fv-report-link{display:inline-flex;align-items:center;gap:5px;padding:4px 0;font-size:13px;font-weight:600;line-height:1.6;color:var(--fv-accent)}.fv-report-link svg{width:14px;height:14px}.fv-report-link:hover{text-decoration:underline}
.fv-card-body{padding:22px;min-width:0}.fv-card-body .hd-empty{min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;padding:22px;line-height:1.8;color:var(--fv-muted)}
#focused-dashboard .fv-card .hd-donut-layout{padding:12px 0;min-height:220px;gap:22px}.fv-card .hd-chart-legend{min-width:135px}
.fv-bar-list{max-height:390px;overflow-y:auto;padding-right:4px;scrollbar-width:thin}.fv-bar-row{margin-bottom:21px}.fv-bar-row:last-child{margin-bottom:0}.fv-bar-row>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:9px;font-size:14px;line-height:1.6}.fv-bar-row>div>span{min-width:0;overflow-wrap:anywhere}.fv-bar-row strong{font-size:14px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.fv-bar-track{height:9px;border-radius:5px;background:var(--fv-line);overflow:hidden;position:relative}.fv-bar-track>span{display:block;height:100%;border-radius:5px}.fv-signed-track:after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--fv-muted)}
.fv-chart-key{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-bottom:8px;font-size:13px;color:var(--fv-muted)}.fv-chart-key>span{display:flex;align-items:center;gap:7px}.fv-chart-key>span:last-child{margin-left:auto}.fv-chart-key i{display:block;width:9px;height:9px;border-radius:3px}
.fv-column-chart{overflow-x:auto;scrollbar-width:thin}#focused-dashboard .fv-column-chart svg{display:block;width:100%;min-width:var(--fv-chart-width,640px);height:auto;max-width:none}#focused-dashboard .fv-column-chart text{fill:var(--fv-muted);font:13px Inter,system-ui,sans-serif}.fv-gridline{stroke:var(--fv-line);stroke-dasharray:4 5}.fv-zero-line{stroke:var(--fv-muted);stroke-opacity:.4}.fv-column-chart rect:hover,.fv-column-chart rect:focus{filter:brightness(.85);outline:0;stroke:var(--fv-ink);stroke-width:2}
.fv-chart-values{font-size:13px;color:var(--fv-muted);margin-top:14px}.fv-chart-values summary{cursor:pointer;font-weight:550;padding:5px 0}.fv-chart-values[open] summary{margin-bottom:8px}
.fv-table{overflow-x:auto;scrollbar-width:thin}.fv-table table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;text-align:left}.fv-table th,.fv-table td{padding:14px 13px;border-bottom:1px solid var(--fv-line);vertical-align:middle}.fv-table th{font-weight:600}.fv-table thead th{font-size:13px;color:var(--fv-muted);background:color-mix(in srgb,var(--fv-card-color) 5%,var(--fv-surface));white-space:nowrap}.fv-table tbody tr:last-child>*{border-bottom:0}.fv-table tbody tr:hover{background:color-mix(in srgb,var(--fv-card-color) 3%,var(--fv-surface))}.fv-record-table{min-width:700px}.fv-record-table td:first-child{min-width:210px;max-width:360px;overflow-wrap:anywhere}.fv-record-table td:first-child strong{font-weight:600}.fv-record-table td:nth-child(4){white-space:nowrap}.fv-attendance-table{min-width:650px}
.fv-badge{display:inline-block;white-space:nowrap;font-size:13px;font-weight:550;line-height:1.5;padding:5px 9px;border-radius:6px;color:var(--fv-muted);background:var(--fv-line)}.fv-badge.today{color:#9a5413;background:#fff1dc}.fv-badge.upcoming{color:#2c5cab;background:#edf3ff}.fv-badge.past{color:#70529c;background:#f3edff}
.fv-register-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:16px;font-size:13px;color:var(--fv-muted);line-height:1.7}.fv-register-summary>span:first-child{font-weight:600;color:var(--fv-ink)}.fv-rate-cell{display:flex;align-items:center;gap:12px;min-width:170px}.fv-rate-cell strong{font-size:14px;font-weight:650;min-width:54px;font-variant-numeric:tabular-nums}.fv-rate-track{height:7px;display:block;flex:1;background:var(--fv-line);border-radius:5px;overflow:hidden}.fv-rate-track>i{display:block;height:100%;border-radius:5px}
.fv-data-note{font-size:13px;line-height:1.8;color:var(--fv-muted);margin-top:17px;padding-top:14px;border-top:1px solid var(--fv-line)}
html[data-color-mode=night] #focused-dashboard{--fv-accent:#b69bff}html[data-color-mode=night] #focused-dashboard[data-view=accounts]{--fv-accent:#62d7c4}html[data-color-mode=night] #focused-dashboard .fv-primary-action{background:#6442bd;border-color:#8766de;color:#fff}html[data-color-mode=night] #focused-dashboard[data-view=accounts] .fv-primary-action{background:#0f6c63;border-color:#36978c}html[data-color-mode=night] .fv-badge.today{background:#4d3822;color:#ffd3a2}html[data-color-mode=night] .fv-badge.upcoming{background:#233e62;color:#bcd7ff}html[data-color-mode=night] .fv-badge.past{background:#382951;color:#dcc5ff}
@media(max-width:1250px){.fv-stats{gap:12px}.fv-stat-top{font-size:13px}#focused-dashboard .fv-stat{padding:18px 17px}.fv-grid{gap:18px}.fv-card>header{padding:18px}.fv-card-body{padding:18px}.fv-stat-foot{font-size:13px}}
@media(max-width:1100px){.fv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-grid{grid-template-columns:1fr}.fv-wide{grid-column:auto}#focused-dashboard .fv-card .hd-donut-layout{justify-content:center;gap:35px}.fv-chart-key>span:last-child{margin-left:0}}
@media(max-width:600px){.fv-toolbar{gap:14px}.fv-toolbar-actions{width:100%}.fv-primary-action{flex:1}.fv-period div>span{font-size:13px}.fv-stat-top{align-items:flex-start}.fv-stat-top>span:first-child{font-size:14px}.fv-stat-icon{width:27px;height:27px}.fv-stat-icon svg{width:15px;height:15px}#focused-dashboard .fv-stat>strong{font-size:24px;margin:12px 0 10px}.fv-stat-foot{font-size:13px}.fv-card-title{gap:9px}#focused-dashboard .fv-card h2{font-size:18px}.fv-card-icon{width:30px;height:30px}.fv-card-icon svg{width:16px;height:16px}.fv-bar-row>div:first-child{font-size:13px}.fv-bar-row strong{font-size:13px}.fv-table th,.fv-table td{padding:12px}.fv-period strong{font-size:14px}#focused-dashboard .fv-card .hd-donut-layout{gap:18px}.fv-register-summary{font-size:13px}}
@media(max-width:400px){.fv-stats{grid-template-columns:1fr}#focused-dashboard .fv-stat>strong{font-size:28px}.fv-toolbar-actions{align-items:stretch;flex-direction:column}.fv-card-title{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.fv-stat{transition:none}.fv-stat:hover{transform:none}}
.fv-bar-list:focus-visible{outline:2px solid var(--fv-accent);outline-offset:3px}

/* Keep the accounts comparison graph compact instead of scaling to page width. */
#focused-dashboard[data-view=accounts] .fv-column-chart svg{width:max(100%,var(--fv-chart-width,640px));height:300px;margin-inline:auto}
