/* /campus module styles on top of the design system (src/Ui/wwwroot/css/ui.css). Tokens only, no hex values.
   Shared pieces (shell, tables, pills, sections, stats, record header, loader) live in ui.css; put a style here only when
   one module needs it. */

/* report pages (Reports/Students, Reports/Due) */
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.report-filters { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sunken); }
.report-filters .form-label { margin-bottom: 2px; }
.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; }
.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; }
.legend-short { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--info-soft); box-shadow: inset 3px 0 0 var(--info); vertical-align: middle; }
.due-summary { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* 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); }
.book-form .form-label { margin-bottom: 2px; }

/* M5 admission office */
.office { max-width: 1240px; }
.file-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--sunken); }   /* M26 Office/Files */
.emp-photo { width: 140px; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }   /* M26 Hr/Photo */
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.office-grid__wide { grid-column: 1 / -1; }
.office-grid section .mb-2:last-child { margin-bottom: 0 !important; }
.office-top { width: 7em; }
.office-narrow { max-width: 460px; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; margin: 16px -28px -40px; padding: 12px 28px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 900px) { .form-actions { margin: 16px -16px -32px; padding: 12px 16px; border-radius: 0; } }

/* T1 bus desk, H1 hostel desk, P1 promotion, T2 carry-over */
.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; }
.bus-pass { border: 0; margin: 0; padding: 0; }
.bus-list { max-height: 50vh; }
.bus-seats { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; font-size: var(--fs-12); }
.bus-seat { padding: 2px 8px; border-radius: var(--r-full); background: var(--hover); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bus-seat--full { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.carry-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px 16px; }
.carry-side { margin: 0; }
.carry-sides > div:not(.carry-side) { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.carry-side legend { float: none; width: auto; padding: 0 4px; margin-bottom: 6px; font: 600 var(--fs-14) var(--font-display); color: var(--ink); }

/* student portal (Areas/Student) */
.stu { max-width: 980px; }
.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); }
.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; }
.stu-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.stu-figs > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); font: 700 var(--fs-18)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.stu-figs span { font: 400 var(--fs-12) var(--font-ui); color: var(--ink-3); }
.stu-pending { color: var(--ok); }
.stu-bounce { color: var(--bad); }
.stu-table { font-size: var(--fs-13); width: 100%; }
.stu-table td.num, .stu-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stu-row-pending td { color: var(--ok); font-weight: 600; }
.stu-row-bounce td { color: var(--bad); font-weight: 600; }
.stu-row-other td { font-weight: 600; }
.stu-total th, .stu-total td { font-weight: 700; color: var(--brand-text); }
.stu-last td, .stu-last th { font-weight: 700; }
.stu-table td:first-child, .stu-table td[data-l="Date"] { white-space: nowrap; }
@media (max-width: 575.98px) {
  /* phones: one card per receipt, Print visible without scrolling sideways */
  .stu-table thead { display: none; }
  .stu-table, .stu-table tbody, .stu-table tfoot, .stu-table tr { display: block; width: 100%; }
  .stu-table tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; padding: 8px 12px; background: var(--panel); }
  .stu-table td, .stu-table th { display: flex; justify-content: space-between; gap: 12px; border: 0 !important; padding: 2px 0 !important; text-align: right; white-space: normal; position: static !important; background: none !important; }
  .stu-table td[data-l]::before { content: attr(data-l); font-weight: 400; color: var(--ink-3); text-align: left; }
  .stu-table td.stu-rno { font-weight: 700; font-size: var(--fs-14); }
  .stu-table td.stu-e, .stu-table td:empty { display: none; }
  .stu-table td.stu-print { justify-content: flex-end; }
  .table-wrap:has(.stu-table), .report-table-wrap:has(.stu-table) { border: 0; background: none; max-height: none; overflow: visible; }
}
.stu-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; align-items: end; margin: 6px 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sunken); }
.stu-form label { font-size: var(--fs-12); color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.stu-form .btn { justify-self: start; }

/* A1 class attendance (Pages/Academics/Attendance) */
.att-setup { border-color: var(--warn-line); background: var(--warn-soft); }
.att-setup h2 { display: flex; align-items: center; gap: 6px; color: var(--warn); }
.att-setup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-13); }
.att-setup__list .pill { min-width: 3.2em; justify-content: center; font-variant-numeric: tabular-nums; }
.att-day { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.att-today__item { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--ink); text-decoration: none; font-size: var(--fs-13); }
.att-today__item b { font-size: var(--fs-14); color: var(--brand-text); }
.att-today__item:hover, .att-today__item[aria-current] { border-color: var(--brand); background: var(--hover); }
.att-stats { margin: 8px 0; }
.att-bulk { display: flex; gap: 8px; margin-bottom: 8px; }
.att-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); max-width: 820px; }
.att-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.att-row:first-child { border-top: 0; }
.att-row.is-absent { background: var(--bad-soft); }
.att-who { display: grid; min-width: 0; }
.att-who b { font-variant-numeric: tabular-nums; color: var(--brand-text); font-size: var(--fs-13); }
.att-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-mark { display: inline-flex; flex: none; border: 1px solid var(--line-strong); border-radius: var(--r-full); overflow: hidden; }
.att-mark input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.att-mark label { padding: 6px 14px; min-height: 36px; display: inline-flex; align-items: center; cursor: pointer; font-size: var(--fs-13); color: var(--ink-2); user-select: none; }
.att-mark input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: -2px; }
.att-mark input[value="P"]:checked + label { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.att-mark input[value="A"]:checked + label { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.att-topic { flex: 1 1 18em; }
@media (max-width: 560px) {
    .att-row { padding: 8px; }
    .att-mark label { padding: 6px 10px; }
}

/* A2-A3 student attendance and timetable */
.att-cell { font-weight: 600; }
.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); }
.stu-check span { flex-direction: row; display: flex; align-items: center; gap: 6px; min-height: 31px; }

/* M13 HR: teaching classes, my classes and subjects, e-notes (staff + student) */
.hr-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.hr-chips li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunken); font-size: var(--fs-13); color: var(--ink-2); }
.hr-chips b { color: var(--brand-text); font-weight: 600; }
.hr-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.hr-branch { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.hr-branch:first-of-type { border-top: 0; padding-top: 0; }
.hr-branch__name { font-weight: 600; font-size: var(--fs-14); }
.hr-branch__name .section-note { margin-left: 6px; }
.hr-branch__opts, .hr-subjects { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.hr-branch__body { display: grid; gap: 8px; padding-left: 26px; }
.hr-branch__body[hidden], .hr-subjects[hidden] { display: none; }
.hr-subjects > span { flex-basis: 100%; }
.hr-tick { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px 2px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); cursor: pointer; font-size: var(--fs-13); transition: background-color var(--d-2), border-color var(--d-2); }
.hr-tick:hover { background: var(--hover); }
.hr-tick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.hr-tick input { margin: 0; accent-color: var(--brand); }
.hr-branch__name.hr-tick { border: 0; background: none; padding-left: 0; font-size: var(--fs-14); }
.hr-branch__name.hr-tick:has(input:checked) { background: none; color: var(--ink); }
.hr-upload { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.hr-upload__wide { grid-column: 1 / -1; }
details.section > summary { cursor: pointer; }
.stu-notes { list-style: none; padding: 0; margin: 0 0 16px; 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); box-shadow: var(--shadow-1); }
.stu-notes__main { display: grid; gap: 2px; min-width: 0; }
.stu-notes__main b { font-weight: 600; overflow-wrap: anywhere; }
.stu-notes__main span { font-size: var(--fs-13); color: var(--ink-3); }

/* A5-A6 timetable settings and entry */
.tt-edit td { min-width: 8.5em; }
.tt-also { color: var(--warn); }
.tt-del { border: 0; background: none; padding: 0; color: var(--bad); font-size: var(--fs-11); text-decoration: underline; cursor: pointer; justify-self: start; }
.tt-add { border: 1px dashed var(--line-strong); background: none; color: var(--ink-3); border-radius: var(--r-sm); width: 100%; min-height: 28px; margin-top: 4px; cursor: pointer; }
.tt-add:hover, .tt-add:focus-visible { border-color: var(--brand); color: var(--brand-text); }
.tt-period { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tt-period .form-control, .tt-period .form-select { width: 7em; }
.tt-no { width: 5em !important; }
.tt-rules { display: grid; gap: 12px; }
.tt-rules fieldset { border: 0; margin: 0; padding: 0; }

/* M2 part 2: Student Home (who you are, office notices, tiles) and My documents */
.stu-me { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1); }
.stu-me__photo { width: 72px; height: 72px; flex: none; border-radius: 16px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--ember-soft)); border: 1px solid var(--line); font: 700 var(--fs-22) var(--font-display); color: var(--brand-text); }
.stu-me__main { min-width: 0; display: grid; gap: 2px; }
.stu-me__main h1 { margin: 0 0 2px; overflow-wrap: anywhere; }
.stu-me__main p { margin: 0; font-size: var(--fs-14); color: var(--ink-2); }
.stu-me__main b { color: var(--brand-text); font-variant-numeric: tabular-nums; }
.stu-me__ses { color: var(--ink-3) !important; font-size: var(--fs-13) !important; }
.stu-notices { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--warn-line); border-radius: var(--r-lg); background: var(--warn-soft); }
.stu-notices h2 { margin: 0 0 8px; }
.stu-notices ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.stu-notices li { display: grid; gap: 2px; }
.stu-notices li span { font-size: var(--fs-14); }
.stu-notices li small { color: var(--ink-3); font-size: var(--fs-12); }
.stu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 16px; }
.stu-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic t" "ic b" "ic s"; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: border-color var(--d-2), box-shadow var(--d-2), transform var(--d-2); }
.stu-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.stu-tile:active { transform: translateY(1px); }
.stu-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stu-tile__ic { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); align-self: start; }
.stu-tile__t { grid-area: t; font-weight: 600; font-size: var(--fs-14); }
.stu-tile b { grid-area: b; font: 700 var(--fs-22)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.stu-tile small { grid-area: s; color: var(--ink-3); font-size: var(--fs-12); }
@media (max-width: 560px) {
    .stu-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stu-tile { grid-template-columns: 1fr; grid-template-areas: "ic" "t" "b" "s"; row-gap: 4px; padding: 12px; }
    .stu-me { padding: 12px; gap: 12px; }
    .stu-me__photo { width: 60px; height: 60px; }
}

/* M5 E1-E2 enquiry desk (Pages/Office/Enquiries, Enquiry) */
.enq-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.enq-wide { grid-column: span 2; }
.enq-table td { vertical-align: top; }
.enq-remarks { max-width: 18em; white-space: normal; font-size: var(--fs-12); color: var(--ink-2); }
.enq-due { color: var(--warn); font-weight: 600; }
.enq-wa { font-size: var(--fs-11); margin-left: 4px; }
.enq-follow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-13); }
.enq-follow li { border-left: 3px solid var(--line-strong); padding-left: 10px; }
@media (max-width: 560px) { .enq-wide { grid-column: auto; } }

/* A7 marks entry (Pages/Academics/Marks) */
.marks-table td { vertical-align: middle; }
.marks-in { width: 4.2em; text-align: center; font-variant-numeric: tabular-nums; }

/* M16 part 1: staff home dashboard. Two series colours, validated with the dataviz palette check (CVD dE 25.1 light / 20.4 dark):
   income = brand maroon, expenditure = blue; dark mode has its own steps. */
:root { --series-in: #a3302e; --series-out: #2a78d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-in: #e0675e; --series-out: #3987e5; } }
:root[data-theme="dark"] { --series-in: #e0675e; --series-out: #3987e5; }
.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-att { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.dash-att__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.dash-att > div { flex: 1 1 14em; min-width: 0; }
.dash-att p { margin: 0; font-size: var(--fs-13); color: var(--ink-2); }
.dash-chart { margin: 0 0 16px; }
.dash-chart__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dash-chart__head h2 { margin: 0; font: 600 var(--fs-14)/1.3 var(--font-display); }
.seg a { display: inline-block; padding: 3px 10px; border-radius: 4px; font: 500 var(--fs-12) var(--font-ui); color: var(--ink-3); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-1); }
.dash-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 6px; font-size: var(--fs-13); color: var(--ink-2); }
.dash-legend b { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sw-in { background: var(--series-in); } .sw-out { background: var(--series-out); }
.dash-svg { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-svg svg { width: 100%; min-width: 560px; height: auto; display: block; overflow: visible; }
.dash-svg .grid { stroke: var(--line); stroke-width: 1; }
.dash-svg .ax { stroke: var(--line-strong); stroke-width: 1; }
.dash-svg .yl { font: 400 11px var(--font-ui); fill: var(--ink-3); text-anchor: end; font-variant-numeric: tabular-nums; }
.dash-svg .xl { font: 400 11px var(--font-ui); fill: var(--ink-3); text-anchor: middle; }
.b-in { fill: var(--series-in); } .b-out { fill: var(--series-out); }
.dash-svg .hit { fill: transparent; }
.dash-svg .mo:hover .hit, .dash-svg .mo:focus .hit { fill: var(--hover); }
.dash-svg .mo:focus { outline: none; }
.dash-svg .mo:focus-visible .hit { stroke: var(--brand); stroke-width: 1.5; }
.dash-table { margin-top: 8px; font-size: var(--fs-13); }
.dash-table summary { cursor: pointer; color: var(--ink-3); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 0 0 16px; }
.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: 5.5em 1fr auto 2.5em; gap: 10px; align-items: center; font-size: var(--fs-13); }
.dash-bars .lb { color: var(--ink-2); }
.dash-bars svg.bar { width: 100%; height: 8px; display: block; }
.dash-bars .bar-bg { fill: var(--sunken); }
.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; }
.dash-mini { width: 100%; font-size: var(--fs-13); }
.dash-mini td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-pad-title { font: 600 var(--fs-14)/1.3 var(--font-display); color: var(--ink-3); margin: 24px 0 10px; }
/* M16 part 4: the rest of Menu.aspx on the home (buttons, today's summary, bus reminders, periods, mailbox, user logins) */
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 16px; }
.dash-note { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-13); font-weight: 600; color: var(--warn); }
.dash-remind { margin: 0 0 16px; border-color: var(--warn); }
.dash-remind h2 { display: flex; gap: 6px; align-items: center; font: 600 var(--fs-14)/1.3 var(--font-display); margin: 0 0 10px; color: var(--warn); }
.dash-sum { margin: 0 0 16px; }
.dash-sum h2 { font: 600 var(--fs-14)/1.3 var(--font-display); margin: 0 0 10px; }
.dash-sum .stats { margin: 0; }
.dash-sum a.stat { color: inherit; text-decoration: none; transition: border-color var(--d-2); }
.dash-sum a.stat:hover { border-color: var(--brand); }
.dash-sum .stat small { font-size: var(--fs-12); color: var(--ink-3); }
.dash-lower { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
.dash-lower--solo { grid-template-columns: minmax(0, 1fr); }
.dash-lower > div { display: grid; gap: 16px; min-width: 0; }
.dash-lower .section h2 { font: 600 var(--fs-14)/1.3 var(--font-display); margin: 0; }
.dash-lower .section > h2 { margin-bottom: 10px; }
.dash-mail__bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.dash-mail__list { font-size: var(--fs-13); }
.dash-mail__list tr.unread td { font-weight: 600; background: var(--brand-soft); }
.dash-open { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin: 0 0 12px; background: var(--sunken); }
.dash-open__text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
.dash-files { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: var(--fs-13); }
.dash-files a { display: inline-flex; gap: 6px; align-items: center; }
.badge-count { font-size: var(--fs-12); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.dash-loglist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; font-size: var(--fs-13); }
.dash-loglist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dash-loglist b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-loglist small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dash-loglist .dot { width: 8px; height: 8px; border-radius: 50%; }
.dash-loglist .dot.in { background: var(--ok); }
.dash-loglist .dot.out { background: var(--bad); }
.dash-loglist__h { font: 600 var(--fs-12)/1.3 var(--font-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }
.mail-form { display: grid; gap: 12px; max-width: 40rem; }
.mail-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
    .dash-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .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; }
}

/* M14 staff attendance (Pages/StaffAtt): IN / OUT entry grid, group policy grid */
.att-entry .att-time { width: 7.5em; min-width: 0; }
.att-entry tr.is-changed td { background: var(--warn-soft); }
.att-acts { white-space: nowrap; }
.att-acts .btn { padding: 2px 8px; }
.att-remark { flex: 1 1 18em; max-width: 30em; }
.att-policy .att-t { width: 5.5em; min-width: 0; text-align: center; }
.att-policy .att-n { width: 4.5em; min-width: 0; text-align: center; }
.att-days { display: flex; flex-wrap: wrap; gap: 2px 8px; border: 0; margin: 0; padding: 0; min-width: 13em; }
.att-day { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-12); white-space: nowrap; }

/* F2 student sign-in with a code (Areas/Student/SignIn) */
.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; }
/* M9 accounts: the status tabs wrap on a phone */
.acc-seg { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-left: 0; }
/* ---------- M8 other due fee (Pages/Fees/Other*) ---------- */
.odf-heads .odf-amt { width: 6.5em; margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.odf-amt { text-align: right; font-variant-numeric: tabular-nums; }
.odf-due { color: var(--bad); font-weight: 600; }
.odf-pay > div { min-width: 10em; }
.odf-pay .odf-remarks { flex: 1 1 20em; }
.odf-heads tfoot output { font-weight: 700; }
.odf-edit { display: inline-block; }
.odf-edit[open] { display: block; margin-bottom: 6px; }
.odf-edit summary { list-style: none; }
.odf-edit summary::-webkit-details-marker { display: none; }
.odf-sheet { display: grid; gap: 24px; max-width: 820px; }
.odf-copy { position: relative; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.odf-copy__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.odf-copy__logo { width: 48px; height: 48px; object-fit: contain; }
.odf-copy__college { font: 700 var(--fs-16)/1.25 var(--font-display); }
.odf-copy__no { margin: 0 0 0 auto; display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: var(--fs-13); }
.odf-copy__no dt { color: var(--ink-3); font-weight: 400; }
.odf-copy__no dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.odf-copy__kv { margin-bottom: 10px; }
.odf-copy__lines { width: 100%; margin-bottom: 8px; }
.odf-copy__foot { display: flex; justify-content: space-between; margin-top: 24px; font-size: var(--fs-13); color: var(--ink-2); }
.odf-copy__stamp { position: absolute; inset: 0; display: grid; place-items: center; font: 800 56px/1 var(--font-display); color: var(--bad); opacity: .22; transform: rotate(-18deg); pointer-events: none; }
@media (max-width: 575.98px) { .odf-copy__head { flex-wrap: wrap; } .odf-copy__no { margin-left: 0; } }
@media print {
  .odf-sheet { gap: 10mm; max-width: none; }
  .odf-copy { break-inside: avoid; border-color: var(--line-strong); padding: 6mm 8mm; }
  .odf-print, .alert { display: none !important; }
}
/* ---------- A10 class subjects (Pages/Academics/ClassSubjects) ---------- */
.cls-subjects td:first-child { min-width: 14em; white-space: normal; }
.cls-subjects select { min-width: 8em; }
.cls-subjects .cls-num { width: 4.75em; text-align: right; font-variant-numeric: tabular-nums; }
.cls-subjects .cls-new td { background: var(--sunken); }

/* M16 part 2: user rights tree and the fee link SMS page (Pages/Admin/Rights, StudentSms) */
.rt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.rt-head h2 { margin: 0; }
.rt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rt-tools input[type=search] { width: 220px; max-width: 100%; }
.sms-compose { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 24px; align-items: start; }
.sms-other { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sms-other input[type=text], .sms-other .form-control { width: 280px; max-width: 100%; }
.sms-compose .form-check-label { overflow-wrap: anywhere; }

/* M7 fee counter + the moved-over old pages that share its stand-in controls (OldPageHtml: fc-field, fc-kv, fc-actions ...).
   Shared rules first (used by ~150 pages: keep them generic); the fee counter's own layout below, under .fc-counter. */
.fc .section { margin-bottom: 16px; }
.fc-field { min-width: 9em; }
.fc-field .form-label { margin-bottom: 4px; }
.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: 9.5em; margin-left: auto; font-weight: 600; }
.fc-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }
.bus-form .fc-kv { min-width: 8em; }
.fc-kv { display: flex; flex-direction: column; gap: 2px; }
.fc-kv span { font: 700 var(--fs-11)/1.2 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.fc-kv b { font: 700 var(--fs-16)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink); }
.fc-kv.amt-due b { color: var(--bad); }
.fc-kv--strong b { font: 800 var(--fs-22)/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: 800; color: var(--th-ink); background: var(--th-bg); }
.fc-admin summary { cursor: pointer; font: 700 var(--fs-14) var(--font-display); display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .fc-num { max-width: none; }
  .fc-field, .fc-field--wide { flex: 1 1 100%; }
}

/* fee counter (/campus/fees/counter), visual refresh 2026-11-24: student card + figures on top, fee groups as tabs on the
   left (the old page's tabs), the payment card beside them and sticky (the old page's right-hand panel), receipts below. */
.office.fc-counter { max-width: 1480px; }
.fc-counter .fc-kvs--foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.fc-counter .fc-hint { color: var(--ink-2); font-size: var(--fs-14); margin: 0 0 12px; }
.fc-counter .fc-field--check .form-check { min-height: 38px; display: flex; align-items: center; gap: 8px; margin: 0; }

/* find bar */
.fc-counter .fc-find { padding: 14px 20px; border-left: 4px solid var(--brand); }
.fc-counter .fc-find .bus-form { align-items: flex-end; gap: 10px 14px; }
.fc-counter .fc-find .fc-field--roll { flex: 0 1 22em; }
.fc-counter .fc-find .fc-field--roll .form-control { min-height: 44px; font: 600 var(--fs-16) var(--font-ui); }
.fc-counter .fc-find .fc-field--btn .btn { min-height: 44px; padding-inline: 22px; }
.fc-counter .fc-find-sep { align-self: stretch; width: 1px; background: var(--line); margin: 4px 6px; }
.fc-counter .fc-find .fc-field:not(.fc-field--roll) .form-control { max-width: 12em; }

/* student card */
.fc-counter .fc-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; border-top: 4px solid var(--brand); }
.fc-counter .fc-hero__who { display: flex; gap: 16px; min-width: 0; flex: 1 1 520px; }
.fc-counter .fc-avatar { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font: 800 var(--fs-18) var(--font-display); box-shadow: 0 8px 18px -8px var(--wine-shadow); }
.fc-counter .fc-photo { margin: 0; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fc-counter .fc-photo__box { position: relative; width: 64px; height: 76px; }
.fc-counter .fc-photo__box .fc-avatar { width: 100%; height: 100%; }
.fc-counter .fc-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.fc-counter .fc-photo figcaption { font-size: var(--fs-12); color: var(--ink-2); white-space: nowrap; }
.fc-counter .fc-photo figcaption b { color: var(--ink); font-weight: 700; }
.fc-counter .fc-hero__name { min-width: 0; }
.fc-counter .fc-hero__name h2 { margin: 0; font: 800 var(--fs-22)/1.2 var(--font-display); color: var(--head-ink); letter-spacing: -.01em; }
.fc-counter .fc-hero__name > p { margin: 2px 0 10px; color: var(--ink-2); font-size: var(--fs-14); }
.fc-counter .fc-hero__name > p b { color: var(--brand-text); font-variant-numeric: tabular-nums; }
.fc-counter .fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-counter .fc-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-full); background: var(--sunken); border: 1px solid var(--line); font: 600 var(--fs-12) var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.fc-counter .fc-remark { margin: 10px 0 0; font-size: var(--fs-13); color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.fc-counter .fc-hero .fc-hero__sem { flex: 0 0 auto; align-items: flex-end; padding: 12px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0; }

/* figures */
.fc-counter .fc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.fc-counter .fc-stats .stat b { font-size: var(--fs-22); }

/* two columns: fee groups | payment */
.fc-counter .fc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.fc-counter .fc-side { position: sticky; top: 72px; }
.fc-counter .fc-tabs { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fc-counter .fc-tabs::-webkit-scrollbar { display: none; }
.fc-counter .fc-tabs button { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink-2); font: 600 var(--fs-13) var(--font-ui); cursor: pointer; transition: background-color var(--d-2), color var(--d-2), border-color var(--d-2); }
.fc-counter .fc-tabs button:hover { border-color: var(--brand); color: var(--brand-text); }
.fc-counter .fc-tabs button em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--bad-soft); color: var(--bad); font: 700 var(--fs-11)/20px var(--font-ui); text-align: center; }
.fc-counter .fc-tabs button[aria-selected="true"] { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px var(--wine-shadow); }
.fc-counter .fc-tabs button[aria-selected="true"] em { background: rgba(255,255,255,.25); color: #fff; }
.fc-counter .fc-main[data-tab] .fc-panel:not(.on) { display: none; }
.fc-counter .fc-main[data-tab] .fc-panel { animation: rise var(--d-3) var(--e-out) both; }

/* fee tables */
.fc-counter .fc-grid td { height: 46px; }
.fc-counter .fc-grid th, .fc-counter .fc-grid td { padding-inline: 8px; }
.fc-counter .fc-grid thead th { white-space: normal; letter-spacing: .04em; vertical-align: bottom; padding-block: 8px; }
.fc-counter .fc-grid .fc-headname { white-space: normal; min-width: 9em; font-weight: 600; color: var(--ink); }
.fc-counter .fc-grid .fc-num { width: 6.75em; min-width: 6.75em; max-width: 6.75em; padding-inline: 8px; }
.fc-counter .fc-grid tr.fc-due > td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.fc-counter .fc-grid td.fc-in { padding-block: 4px; }
.fc-counter .fc-line { padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: flex-end; margin-top: 0; }
.fc-counter .fc-line:last-child { border-bottom: 0; padding-bottom: 0; }

/* payment card */
.fc-counter .fc-pay { border-top: 4px solid var(--brand); margin-bottom: 0; }
.fc-counter .fc-net { display: grid; gap: 2px; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--r-lg); background: var(--ok-soft); border: 1px solid var(--ok-line); }
.fc-counter .fc-net span { font: 700 var(--fs-11)/1.2 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ok); }
.fc-counter .fc-net b { font: 800 var(--fs-28)/1.15 var(--font-display); color: var(--ok); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fc-counter .fc-payform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 0; }
.fc-counter .fc-payform > .fc-field { min-width: 0; }
.fc-counter .fc-payform > .fc-field--amount, .fc-counter .fc-payform > .fc-field--wide { grid-column: 1 / -1; }
.fc-counter .fc-payform .fc-num { max-width: none; }
.fc-counter .fc-field--amount .form-control { min-height: 48px; font: 800 var(--fs-22) var(--font-display); text-align: right; border-color: var(--brand); }
.fc-counter .fc-pay .fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.fc-counter .fc-pay .fc-actions .btn { width: 100%; }
.fc-counter .fc-pay .fc-actions .fc-submit { grid-column: 1 / -1; }

/* receipts */
.fc-counter .fc-switch { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-13) var(--font-ui); color: var(--ink-2); }
.fc-counter .fc-start { padding: 8px; }

@media (max-width: 1180px) {
  .fc-counter .fc-layout { grid-template-columns: minmax(0, 1fr); }
  .fc-counter .fc-side { position: static; }
  .fc-counter .fc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fc-counter .fc-find-sep { display: none; }
  .fc-counter .fc-find .fc-field:not(.fc-field--roll) .form-control { max-width: none; }
  .fc-counter .fc-payform { grid-template-columns: 1fr; }
  .fc-counter .fc-hero__who { flex-basis: 100%; }
  .fc-counter .fc-hero .fc-hero__sem { flex: 1 1 100%; min-width: 0; }
  .fc-counter .fc-hero .fc-hero__sem > .fc-field { flex: 1 1 100%; }
}

/* M4 part 4: fee dues figures on /campus home (linked tiles, as the "today" ones) */
.dash-dues a.stat { color: inherit; text-decoration: none; transition: border-color var(--d-2); }
.dash-dues a.stat:hover { border-color: var(--brand); }
.dash-dues .stat small { font-size: var(--fs-12); color: var(--ink-3); }

/* fees-acc-rest: old Account/StudentSlipPrint.aspx slips (Fees/Counter/SlipHtml: table markup only) */
.old-slip table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); margin-bottom: 1rem; }
.old-slip td { padding: .15rem .4rem; vertical-align: top; }
.old-slip .old-slip-logo { max-width: 100%; height: auto; }
@media print { .old-slip table { break-inside: avoid; } }

/* M19 part 2: the sign-in chooser and staff sign-in (Pages/SignIn) */
.signin--wide { max-width: 560px; }
.signin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.signin-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1), var(--highlight); color: var(--ink); text-decoration: none; transition: background-color var(--d-2); }
.signin-tile:hover, .signin-tile:focus-visible { background: var(--hover); }
.signin-tile b { display: block; font: 600 var(--fs-14) var(--font-display); }
.signin-tile small { display: block; color: var(--ink-3); font-size: var(--fs-12); }
.signin-when { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 8px 12px; font-size: var(--fs-13); }
.signin-when summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.signin-when summary::-webkit-details-marker { display: none; }
.signin-when summary::marker { content: ""; }
.signin-change { margin-left: auto; color: var(--brand-text); font-weight: 600; }
.signin-when[open] .signin-change { display: none; }
.signin-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
/* "Keep me signed in on this phone" (teachers): the remembered-phone card + the tick box */
.signin-phone { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1), var(--highlight); }
.signin-phone-who { display: flex; align-items: center; gap: 12px; }
.signin-phone-who b { display: block; font: 600 var(--fs-14) var(--font-display); }
.signin-phone-who small { display: block; color: var(--ink-3); font-size: var(--fs-12); overflow-wrap: anywhere; }
.signin-phone .btn-lg { width: 100%; }
.signin-phone-forget { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.signin-or { display: flex; align-items: center; gap: 10px; margin: 0; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin-keep { padding: 10px 12px 10px 36px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: var(--fs-14); }
/* pages without the staff menu (sign-in, signed out): the main panel takes the whole width */
.shell:not(:has(> .side)), :root[data-rail] .shell:not(:has(> .side)) { grid-template-columns: minmax(0, 1fr); }
.shell:not(:has(> .side)) > .shell-main { padding-left: 8px; }
@media (max-width: 900px) { .shell:not(:has(> .side)) > .shell-main { padding-left: 0; } }
/* M26 student admission documents (Areas/Student/AdmDocs, old Student/StudentDocuments.aspx) */
.admdocs-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.admdocs-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); align-items: start; }
.admdocs-item.is-bad { border-color: var(--bad-line); }
.admdocs-thumb { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); font-weight: 700; font-size: var(--fs-12); }
.admdocs-why { margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: var(--bad-soft); color: var(--bad); }
.admdocs-why.is-info { background: var(--info-soft); color: var(--info); }
.admdocs-up { margin-top: 8px; }
.admdocs-st { margin-top: 5px; font-weight: 600; }
.admdocs-st.is-bad { color: var(--bad); }
.admdocs-st.is-good { color: var(--ok); }
.admdocs-bring { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
@media (max-width: 560px) { .admdocs-item { grid-template-columns: 72px minmax(0, 1fr); } .admdocs-thumb { width: 72px; height: 72px; } }
