/* School /campus module styles on top of the design system (src/Ui/wwwroot/css/ui.css + ui-school.css). Tokens only, no
   hex values. Shared pieces (shell, tables, pills, sections, stats, loader) live in ui.css; a style goes here only when a
   school module needs it. */

/* report pages */
.report-filters { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sunken); margin-bottom: 16px; }
.report-filters .form-label { margin-bottom: 2px; font-size: var(--fs-13); color: var(--ink-2); }
.report-radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; font-size: var(--fs-13); }
.report-radios fieldset { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.report-radios legend { float: none; width: auto; margin: 0 4px 0 0; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.report-count { margin-left: 8px; font-size: var(--fs-13); color: var(--ink-3); }
.report-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.report-table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); background: var(--sunken); }
.wing { display: inline-block; min-width: 2.2em; text-align: center; }

/* student portal */
.month-list { display: grid; gap: 8px; }
.month-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.month-row b { font: 700 var(--fs-16)/1.2 var(--font-display); }
.month-row .amt { font: 700 var(--fs-16)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.month-row small { display: block; color: var(--ink-3); font-size: var(--fs-12); }

/* F2 student sign-in with a code (Areas/Student/SignIn), as the college's */
.signin { max-width: 440px; margin: 24px auto 40px; display: grid; gap: 12px; }
.signin h1 { font: 700 var(--fs-28, 1.75rem)/1.15 var(--font-display); margin: 0; }
.signin .lead { margin: 0; color: var(--ink-2); }
.signin-form { display: grid; gap: 10px; }
.signin-actions { display: grid; gap: 8px; margin-top: 4px; }
.signin-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.signin-code { font: 600 var(--fs-22)/1.2 var(--font-display); letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-foot { margin-top: 8px; }
.portal-signout { display: contents; }

/* S2 student pages (Areas/Student: profile, timetable, homework, attendance), as the college's student pages */
.stu-head { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1); }
.section .stu-head { margin: 0; box-shadow: none; border: 0; padding: 0; background: none; }
.stu-head dt { font-size: var(--fs-12); font-weight: 400; color: var(--ink-3); }
.stu-head dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stu-table { font-size: var(--fs-13); width: 100%; }
.stu-day { max-width: 180px; }
.stu-form-narrow { max-width: 560px; }
.portal-main .section { margin-bottom: 16px; }
.stu-notes { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.stu-notes li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.stu-notes__main { display: grid; gap: 2px; min-width: 0; }
.stu-notes__main b { font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.stu-notes__main span { font-size: var(--fs-13); color: var(--ink-3); }
.att-cell { font-weight: 600; text-align: center; }
.att-p { color: var(--ok); }
.att-a { color: var(--bad); background: var(--bad-soft); }
.att-l { color: var(--info); }
.att-none { color: var(--ink-3); font-weight: 400; }
.tt-grid th small { display: block; font-weight: 400; font-size: var(--fs-11); color: var(--ink-3); white-space: nowrap; }
.tt-grid td { vertical-align: top; min-width: 7em; }
.tt-slot { display: grid; gap: 1px; }
.tt-slot + .tt-slot { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.tt-slot b { color: var(--brand-text); }
.tt-type { font-size: var(--fs-12); color: var(--ink-2); }
.tt-slot small { font-size: var(--fs-11); color: var(--ink-3); }
.home-msgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.home-msgs li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.home-msgs li.unread { border-color: var(--brand); }
.home-msgs p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.home-msgs small { color: var(--ink-3); font-size: var(--fs-12); }

/* S11 staff dashboard on the home page (Pages/Shared/_Dashboard.cshtml): bars are SVG rects (CSP: no style attributes) */
.dash-today { display: grid; gap: 12px; margin: 0 0 20px; }
.dash-today .stats { margin: 0; }
.dash-today a.stat { color: inherit; text-decoration: none; transition: border-color var(--d-2); }
.dash-today a.stat:hover { border-color: var(--brand); }
.dash-today .stat small { font-size: var(--fs-12); color: var(--ink-3); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 0 0 20px; }
.dash-grid .section h2 { font: 600 var(--fs-14)/1.3 var(--font-display); margin: 0 0 10px; }
.dash-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dash-bars li { display: grid; grid-template-columns: 6.5em 1fr auto 2em; gap: 10px; align-items: center; font-size: var(--fs-13); }
.dash-bars li.hi .lb { color: var(--brand-text); font-weight: 600; }
.dash-bars .lb { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bars svg.bar { width: 100%; height: 8px; display: block; }
.dash-bars .bar-bg { fill: var(--sunken); }
.dash-bars .b-in { fill: var(--ok); }
.dash-bars .b-out { fill: var(--bad); }
.dash-bars li.hi .b-in { fill: var(--brand); }
.dash-bars b { font-variant-numeric: tabular-nums; text-align: right; }
.dash-bars small { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .dash-today .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-today .stat b { font-size: var(--fs-18); }
    .dash-bars li { grid-template-columns: 4.5em 1fr auto; }
    .dash-bars small { display: none; }
}

/* S3 library desk pages (Pages/Library: issue, return), as the college's */
/* desk pages: one column, big scan box (barcode scanners), works on a phone */
.desk { max-width: 820px; }
.desk-scan { display: grid; gap: 6px; margin: 0 0 16px; max-width: 640px; }
.desk-scan .form-label { font-size: var(--fs-13); color: var(--ink-2); }
.desk-scan__row { display: flex; gap: 8px; }
.desk-scan__row .form-control { min-height: 44px; font-size: var(--fs-16); }
.desk-scan__row .btn { min-height: 44px; padding: 0 18px; }
.desk-msg { margin: 8px 0; }
.desk-card { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 16px; }
.desk-card__photo { width: 72px; height: 86px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sunken); flex: none; }
.desk-card__name { font: 700 var(--fs-18)/1.25 var(--font-display); }
.desk-card strong { font-variant-numeric: tabular-nums; }
.desk-card__fine { margin-top: 6px; font-size: var(--fs-13); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.desk-table { width: 100%; white-space: normal; }
.desk-fine { font-weight: 700; color: var(--bad); }

/* S1 fee defaulters (Pages/Reports/Defaulters): month ticks + quarter quick picks */
.report-months { border: 0; margin: 10px 0 0; padding: 0; }
.report-months legend { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.month-ticks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.month-ticks label { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; }
.month-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.report-table tr.muted td { color: var(--muted, #667085); }
.stat small { display: block; font-size: 12px; color: var(--muted, #667085); }

/* S10 school-masters: old pages moved over line for line (shared engine src/Campus/Fees/Counter, same classes as the college /campus) */
.office { max-width: 1240px; }
.bus-filter, .bus-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.bus-filter > div { min-width: 9em; }
.bus-form { margin-top: 12px; }
.bus-form > div { min-width: 10em; }
.fc .section { margin-bottom: 14px; }
.fc-field { min-width: 9em; }
.fc-field .form-label { font-size: var(--fs-12); color: var(--ink-3); margin-bottom: 2px; }
.fc-field--wide { flex: 1 1 18em; }
.fc-field--amount .form-control { font-weight: 700; font-size: var(--fs-16); }
.fc-field--btn, .fc-field--check { min-width: 0; }
.fc-num { text-align: right; font-variant-numeric: tabular-nums; max-width: 9em; margin-left: auto; }
.fc-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.bus-form .fc-kv { min-width: 8em; }
.fc-kv { display: flex; flex-direction: column; gap: 1px; }
.fc-kv span { font-size: var(--fs-12); color: var(--ink-3); }
.fc-kv b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.fc-kv--strong b { font: 700 var(--fs-18)/1.2 var(--font-display); color: var(--brand-text); }
.fc-strip + .fc-strip { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fc-strip .bus-form { margin-top: 4px; }
.fc-total { font: 700 var(--fs-16) var(--font-display); color: var(--ok); }
.fc-note { color: var(--info); }
.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fc-hist { font-size: var(--fs-13); }
.fc-row--bad td { color: var(--bad); font-weight: 600; }
.fc-row--ok td { color: var(--ok); font-weight: 600; }
.fc-row--note td { color: var(--info); }
.fc-foot td { font-weight: 700; color: var(--brand-text); }
.fc-admin summary { cursor: pointer; }
@media (max-width: 640px) {
  .fc-num { max-width: none; }
  .fc-field, .fc-field--wide { flex: 1 1 100%; }
}
.fc-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
/* S10 users and rights: the old menu trees as tick boxes */
.ur-tree { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; background: var(--panel); }
.ur-root { font-weight: 600; margin-top: 6px; }
.ur-leaf { font-size: var(--fs-13); }

/* Sign out (2026-11-24): the forms in the staff menu / name pop-up take no space of their own; the button looks like the links */
.nav-form, .pop-form { display: contents; }
.popover .pop-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: var(--fs-13); text-align: left; cursor: pointer; }
.popover .pop-link:hover { background: var(--hover); }
.signout-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
