:root {
  --navy: #102a4c;
  --navy-2: #173a64;
  --navy-3: #214c7a;
  --blue: #2a66a1;
  --blue-soft: #eaf2fb;
  --gold: #e4b64f;
  --gold-soft: #fff6df;
  --ink: #1c2a3a;
  --muted: #738093;
  --line: #e6ebf1;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --green: #18845e;
  --green-soft: #e7f5ef;
  --red: #c44d50;
  --red-soft: #fff0f0;
  --orange: #b97923;
  --orange-soft: #fff5e8;
  --purple: #6f64a9;
  --shadow: 0 12px 34px rgba(24, 43, 68, .065);
  --shadow-soft: 0 3px 14px rgba(24, 43, 68, .045);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
.text-right { text-align: right !important; }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--orange) !important; }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

/* Main application frame */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 265px; z-index: 30; display: flex; flex-direction: column; padding: 26px 17px 17px; color: #fff; background: linear-gradient(170deg, #102a4c 0%, #0d2340 68%, #0b1e36 100%); box-shadow: 8px 0 34px rgba(13, 35, 64, .09); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 9px 25px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand:hover { color: #fff; }
.brand > span:last-child, .portal-brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { overflow: hidden; color: #fff; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 3px; color: #9eafc5; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; }
.brand-mark, .mark-fallback { width: 43px; height: 43px; flex: 0 0 43px; object-fit: contain; border-radius: 13px; }
.mark-fallback { display: grid; place-items: center; color: var(--navy); background: linear-gradient(145deg, #f4d27e, #dba63d); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 24px; font-weight: 800; box-shadow: 0 5px 15px rgba(228,182,79,.22); }
.school-logo { object-fit: contain; background: rgba(255,255,255,.97); padding: 3px; }
.side-caption { padding: 25px 11px 10px; color: #8095b1; font-size: 9px; font-weight: 700; letter-spacing: 1.65px; }
.side-caption-spaced { padding-top: 26px; }
.side-nav { overflow-y: auto; flex: 1; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 0 12px; color: #c2cede; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 600; transition: background .18s, color .18s, transform .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.nav-link.active { color: #fff; background: linear-gradient(100deg, rgba(228,182,79,.22), rgba(228,182,79,.09)); border-color: rgba(228,182,79,.2); box-shadow: inset 3px 0 0 var(--gold); }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #a9bdd5; font-size: 16px; }
.nav-link.active .nav-icon { color: #f0c969; }
.sidebar-bottom { padding: 17px 6px 2px; border-top: 1px solid rgba(255,255,255,.12); }
.profile-mini { display: flex; align-items: center; gap: 10px; padding: 2px 7px 13px; }
.avatar, .top-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 11px; color: var(--navy); background: #f0cc76; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 14px; font-weight: 800; }
.profile-mini > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.profile-mini b { overflow: hidden; color: #f4f7fb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-mini small { margin-top: 2px; color: #8296b1; font-size: 10px; }
.logout-link { display: flex; justify-content: space-between; padding: 9px 10px; color: #c6d2df; border-radius: 8px; font-size: 11px; font-weight: 600; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-area { min-width: 0; width: calc(100% - 265px); min-height: 100vh; margin-left: 265px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px clamp(20px, 3vw, 44px); background: rgba(255,255,255,.93); border-bottom: 1px solid #e9edf2; backdrop-filter: blur(16px); }
.topbar-title { min-width: 0; }
.overline, .eyebrow, .section-kicker { display: block; color: #8190a3; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; text-transform: uppercase; }
.topbar-title .overline { margin-bottom: 2px; color: #8b97a6; font-size: 9px; letter-spacing: 1px; }
.topbar h1 { margin: 0; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.65px; line-height: 1.3; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: #768498; font-size: 11px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #5a7c6c; font-weight: 600; }
.live-indicator i, .secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #38a77b; box-shadow: 0 0 0 4px rgba(56,167,123,.12); }
.top-date { white-space: nowrap; }
.top-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 50%; background: #e8edf4; color: var(--navy); }
.mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: #fff; font-size: 18px; }
.page-content { flex: 1; width: 100%; max-width: 1700px; margin: 0 auto; padding: 26px clamp(20px, 3vw, 44px) 20px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 3vw, 44px) 22px; color: #8994a2; font-size: 10px; }
.sidebar-scrim { display: none; }

/* Page headings and common surfaces */
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 2px 0 23px; }
.page-heading-row h2 { margin: 5px 0 5px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: clamp(23px, 2vw, 29px); font-weight: 800; letter-spacing: -.8px; line-height: 1.2; }
.page-heading-row p { max-width: 760px; margin: 0; color: #758296; font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.back-link { display: inline-block; margin-bottom: 12px; color: #748399; font-size: 11px; font-weight: 600; }
.surface { min-width: 0; margin-bottom: 19px; padding: 22px; background: var(--surface); border: 1px solid #e8edf2; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.surface-heading h3 { margin: 4px 0 3px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.25px; }
.surface-heading p { margin: 0; color: #8792a1; font-size: 11px; }
.section-kicker { color: #9b875b; font-size: 8px; letter-spacing: 1.55px; }
.heading-link { align-self: center; color: var(--blue); font-size: 11px; font-weight: 700; white-space: nowrap; }
.heading-link:hover { color: var(--navy); }
.subtle-chip, .secure-pill, .danger-pill { display: inline-flex; align-items: center; padding: 6px 10px; color: #5d6c7d; background: #f2f5f8; border: 1px solid #e7ecf1; border-radius: 30px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.secure-pill { color: #406d5c; background: #edf7f2; border-color: #deeee5; }
.danger-pill { color: #b4484e; background: var(--red-soft); border-color: #f5dddd; }
.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .16s, box-shadow .16s, background .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(130deg, #214e7d, #14385f); box-shadow: 0 5px 13px rgba(20,56,95,.15); }
.btn-primary:hover { color: #fff; background: #102a4c; box-shadow: 0 7px 18px rgba(20,56,95,.19); }
.btn-light { color: #42546a; background: #fff; border-color: #e1e7ed; }
.btn-light:hover, .btn-ghost:hover { color: var(--navy); background: #f5f8fb; border-color: #ccd7e3; }
.btn-ghost { color: #718197; background: transparent; border-color: transparent; }
.btn-gold { color: #283345; background: linear-gradient(135deg, #f5d88f, #e3b650); box-shadow: 0 6px 16px rgba(228,182,79,.16); }
.btn-gold:hover { color: #1c2a3a; background: #f2cf7b; }
.btn-danger { color: #fff; background: #b8444a; box-shadow: 0 5px 13px rgba(184,68,74,.12); }
.btn-danger:hover { color: #fff; background: #a8373d; }
.btn-small { min-height: 32px; padding: 7px 11px; font-size: 10px; }
.btn-large { min-height: 48px; padding: 13px 18px; border-radius: 12px; font-size: 12px; }
.action-group, .row-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.row-actions { flex-wrap: wrap; gap: 8px; font-size: 10px; font-weight: 700; }
.row-actions a, .row-actions button { color: #32628f; }
.row-actions a:hover, .row-actions button:hover { color: var(--navy); }
.link-button { padding: 0; color: #32628f; background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.link-button.text-danger { color: var(--red); }
.inline-form { display: inline; }

/* Dashboard */
.hero-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 190px; margin-bottom: 19px; padding: 30px 34px; color: #fff; background: linear-gradient(115deg, #102a4c 0%, #173b64 60%, #234f79 100%); border-radius: 20px; box-shadow: 0 13px 30px rgba(16,42,76,.13); }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero-kicker { color: #e9c46e; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.hero-copy h2 { margin: 7px 0 7px; color: #fff; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: clamp(23px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.8px; }
.hero-copy p { max-width: 560px; margin: 0; color: #c1d0e2; font-size: 12px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #a6bbd3; font-size: 10px; font-weight: 600; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-actions { position: relative; z-index: 2; display: flex; align-items: flex-start; flex-direction: column; gap: 12px; min-width: 175px; }
.hero-link { color: #d9e4f1; font-size: 10px; font-weight: 600; }
.hero-link b { margin-left: 7px; color: var(--gold); }
.hero-decoration { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 360px; overflow: hidden; opacity: .45; pointer-events: none; }
.hero-decoration span { position: absolute; display: block; border: 1px solid rgba(233,196,110,.28); border-radius: 50%; }
.hero-decoration span:nth-child(1) { width: 250px; height: 250px; top: -65px; right: -18px; }
.hero-decoration span:nth-child(2) { width: 310px; height: 310px; top: -94px; right: -46px; }
.hero-decoration span:nth-child(3) { width: 380px; height: 380px; top: -126px; right: -79px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { min-width: 0; padding: 17px 18px 16px; background: #fff; border: 1px solid #e8edf2; border-radius: 15px; box-shadow: var(--shadow-soft); }
.metric-card.metric-highlight { background: linear-gradient(145deg, #fff 0%, #f3faf6 100%); border-color: #dcefe4; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; }
.metric-blue { color: #3977b6; background: #eaf3fc; }
.metric-purple { color: #7866a8; background: #f1eef9; }
.metric-green { color: #248865; background: #e8f6ef; }
.metric-orange { color: #b97923; background: #fff4e4; }
.metric-trend { color: #a1aab7; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.metric-card > strong { display: block; overflow: hidden; margin-top: 14px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: clamp(19px, 1.85vw, 25px); font-weight: 800; letter-spacing: -.65px; text-overflow: ellipsis; white-space: nowrap; }
.metric-label { display: block; margin-top: 3px; color: #4b596b; font-size: 10px; font-weight: 700; }
.metric-card > small { display: block; margin-top: 6px; color: #9aa4b1; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(275px, .92fr); gap: 17px; margin-bottom: 17px; }
.dashboard-grid-bottom { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); }
.chart-panel, .collection-panel { min-height: 290px; margin: 0; }
.bar-chart { height: 190px; display: flex; align-items: stretch; gap: clamp(12px, 3vw, 35px); padding: 12px 8px 0; }
.bar-column { flex: 1; min-width: 0; display: flex; align-items: center; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bar-column strong { color: #7b8898; font-size: 9px; font-weight: 600; }
.bar-track { width: min(39px, 75%); height: 138px; display: flex; align-items: flex-end; overflow: hidden; background: #f1f4f8; border-radius: 8px 8px 3px 3px; }
.bar-track i { width: 100%; display: block; min-height: 4px; background: linear-gradient(180deg, #e8c16c 0%, #b98c3c 100%); border-radius: 8px 8px 2px 2px; }
.bar-column small { color: #8996a7; font-size: 9px; }
.empty-chart { min-height: 180px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #8e9bad; text-align: center; }
.empty-chart span { width: 36px; height: 36px; display: grid; place-items: center; color: #b98b37; background: #fff5df; border-radius: 12px; font-size: 18px; }
.empty-chart b { margin-top: 9px; color: #4d5d70; font-size: 11px; }
.empty-chart p { margin: 3px 0; font-size: 10px; }
.progress-ring-wrap { display: grid; place-items: center; padding: 2px 0 12px; }
.progress-ring { width: 138px; height: 138px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#c89b49 calc(var(--progress) * 1%), #edf1f5 0); position: relative; }
.progress-ring:before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.progress-ring > div { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; }
.progress-ring strong { color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 25px; font-weight: 800; }
.progress-ring small { color: #8d99a8; font-size: 9px; }
.progress-legend { display: grid; gap: 8px; }
.progress-legend > div { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 7px; color: #8190a1; font-size: 10px; }
.progress-legend b { color: #425267; font-size: 10px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-collected { background: #c89b49; }
.dot-balance { background: #dfe5ed; }
.mini-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 11px; color: #8995a5; border-top: 1px solid var(--line); font-size: 10px; }
.mini-total strong { color: var(--navy); }
.activity-list, .followup-list { display: flex; flex-direction: column; }
.activity-row { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #f0f2f5; }
.activity-row:first-child { border-top: 0; }
.activity-avatar, .followup-initial { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #6a7e99; background: #eff3f8; border-radius: 11px; font-size: 11px; font-weight: 800; }
.activity-main, .activity-amount, .followup-name { min-width: 0; display: flex; flex-direction: column; }
.activity-main { flex: 1; }
.activity-main b, .followup-name b { overflow: hidden; color: #3b4a5d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small, .activity-amount small, .followup-name small { overflow: hidden; margin-top: 2px; color: #9aa4b1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { align-items: flex-end; }
.activity-amount strong { color: #1b7957; font-size: 10px; white-space: nowrap; }
.followup-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0f2f5; color: inherit; }
.followup-row:first-child { border-top: 0; }
.followup-name { flex: 1; }
.followup-row > strong { color: #af4d51; font-size: 10px; white-space: nowrap; }
.followup-arrow { color: #a8b2bf; font-size: 14px; }
.empty-state { min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px; color: #91a0b1; text-align: center; }
.empty-state > span { width: 36px; height: 36px; display: grid; place-items: center; color: #a9853c; background: #fff6e5; border-radius: 12px; font-size: 18px; }
.empty-state b { margin-top: 9px; color: #4d5b6d; font-size: 11px; }
.empty-state p { max-width: 310px; margin: 3px 0 0; color: #96a1af; font-size: 10px; }
.quick-actions { margin-top: 4px; padding: 4px 0 0; }
.quick-actions h3 { margin: 4px 0 12px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 16px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.quick-action-grid a { display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); }
.quick-action-grid a > span { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; color: #9d7934; background: #fff5df; border-radius: 10px; font-size: 17px; }
.quick-action-grid b { color: #34465b; font-size: 10px; }
.quick-action-grid small { color: #98a2af; font-size: 9px; }

/* Metrics, tables and filters */
.table-summary-row, .overview-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.summary-mini, .overview-strip > div { min-width: 130px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.summary-mini span, .overview-strip span { color: #8b97a7; font-size: 9px; }
.summary-mini b, .overview-strip b { color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 13px; }
.table-surface { padding: 0; overflow: hidden; }
.table-surface > .surface-heading { padding: 20px 22px 0; }
.table-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px 18px; background: #fafbfd; border-bottom: 1px solid #edf0f4; }
.table-toolbar select, .table-toolbar input[type="date"] { width: auto; min-width: 145px; min-height: 36px; }
.search-field { min-width: min(310px, 100%); flex: 1; position: relative; }
.search-field > span { position: absolute; top: 50%; left: 12px; color: #9aa6b4; font-size: 19px; transform: translateY(-50%); }
.search-field input { padding-left: 35px; }
.responsive-table { width: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #cfd7e1 transparent; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 10px; text-align: left; white-space: nowrap; }
th { padding: 12px 13px; color: #7d8998; background: #fbfcfd; border-bottom: 1px solid #e9edf2; font-size: 8px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
td { padding: 12px 13px; color: #526174; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfdff; }
td b { color: #30435a; font-size: 10px; font-weight: 700; }
.cell-subline, .subline { display: block; margin-top: 3px; color: #9ba6b4; font-size: 9px; }
.person-cell { display: flex; align-items: center; gap: 9px; min-width: 155px; }
.person-cell > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.person-cell b { overflow: hidden; max-width: 210px; text-overflow: ellipsis; }
.person-cell small { color: #9ba6b4; font-size: 9px; }
.person-initial { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; color: #607c9e; background: #eef3f9; border-radius: 10px; font-size: 10px; font-weight: 800; }
.person-cell img { width: 31px; height: 31px; flex: 0 0 31px; object-fit: cover; border-radius: 10px; }
.status-tag, .role-chip { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; color: #697789; background: #f0f3f6; border-radius: 30px; font-size: 8px; font-weight: 700; }
.status-active { color: #1b805b; background: #eaf6ef; }
.status-muted { color: #778395; background: #f0f2f5; }
.status-issued { color: #466b9b; background: #edf4fc; }
.status-part_paid { color: #a16a17; background: #fff5e4; }
.status-paid { color: #1b805b; background: #eaf6ef; }
.status-overdue { color: #ad4a4d; background: #fff0f0; }
.status-void { color: #7e8794; background: #f0f1f3; }
.role-chip { color: #415d7e; background: #edf2f8; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; color: #98a3b0; border-top: 1px solid #edf0f3; font-size: 9px; }
.table-footer a { color: #376a9c; font-weight: 700; }
.empty-cell, .empty { padding: 25px; color: #929dac; text-align: center; white-space: normal; }

/* Forms, inputs, notes and alerts */
form label { display: flex; flex-direction: column; gap: 6px; color: #536276; font-size: 10px; font-weight: 700; }
label small { color: #9aa4b1; font-size: 9px; font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; color: #2d3d51; background: #fff; border: 1px solid #dfe6ed; border-radius: 9px; outline: none; font-size: 11px; transition: border-color .16s, box-shadow .16s; }
textarea { min-height: 72px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #aab4c0; }
input:focus, select:focus, textarea:focus { border-color: #88a9cb; box-shadow: 0 0 0 3px rgba(42,102,161,.09); }
input[type="file"] { min-height: auto; padding: 9px; background: #fafbfd; font-size: 10px; }
input[type="checkbox"], input[type="radio"] { accent-color: #1e4f7c; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 13px; }
.form-actions { justify-content: flex-end; padding-top: 5px; }
.form-note { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; color: #637286; background: #f5f8fb; border: 1px solid #eaf0f5; border-radius: 10px; font-size: 9px; }
.form-note b { color: #344b67; font-size: 10px; }
.field-hint { display: block; color: #929eae; font-size: 9px; font-weight: 500; }
.form-section-title { padding: 6px 0 1px; color: #9a8759; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.check-label { display: flex !important; align-items: center; flex-direction: row; gap: 8px !important; color: #526276; }
.check-label input { width: 14px; height: 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; padding: 12px 13px; border: 1px solid transparent; border-radius: 11px; font-size: 11px; }
.alert > span { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; border-radius: 50%; font-weight: 800; }
.alert-success { color: #25694f; background: #ecf7f1; border-color: #d8eee2; }
.alert-success > span { color: #fff; background: #2a9870; }
.alert-error { color: #9c4449; background: #fff1f1; border-color: #f3dcdc; }
.alert-error > span { color: #fff; background: #c45b5f; }
.alert button { margin-left: auto; color: inherit; background: transparent; border: 0; font-size: 17px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; overflow-y: auto; padding: 24px; background: rgba(11,26,45,.54); backdrop-filter: blur(4px); }
.modal-backdrop.is-open { display: flex; }
.modal-card { position: relative; width: min(100%, 480px); max-height: min(90vh, 820px); overflow-y: auto; padding: 23px; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; box-shadow: 0 25px 70px rgba(10,25,45,.22); animation: modal-in .17s ease-out; }
.modal-wide { width: min(100%, 680px); }
@keyframes modal-in { from { opacity: .4; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.modal-head h3 { margin: 4px 0; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.modal-head p { margin: 0; color: #8491a1; font-size: 10px; }
.modal-close { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; color: #718094; background: #f2f5f8; border: 0; border-radius: 9px; font-size: 19px; }
.modal-close:hover { color: var(--navy); background: #e9eef4; }

/* Billing and fee configuration */
.billing-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; padding: 14px 16px; background: #fff9eb; border: 1px solid #f1e7c9; border-radius: 12px; }
.billing-note > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; color: #96702f; background: #f9ebc8; border-radius: 9px; font-size: 16px; }
.billing-note b { color: #6f5529; font-size: 10px; }
.billing-note p { margin: 2px 0 0; color: #8d7958; font-size: 9px; }
.billing-layout, .schedule-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.15fr); gap: 17px; align-items: start; }
.invoice-generator, .billing-steps, .schedule-editor, .schedule-register { min-width: 0; }
.step-list { display: flex; flex-direction: column; gap: 16px; padding: 5px 2px 4px; }
.step-list > div { display: flex; align-items: flex-start; gap: 12px; }
.step-list > div > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; color: #a07a36; background: #fff4db; border-radius: 9px; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 10px; font-weight: 800; }
.step-list section { display: flex; flex-direction: column; padding-top: 2px; }
.step-list b { color: #3e5064; font-size: 10px; }
.step-list small { margin-top: 3px; color: #8c98a7; font-size: 9px; }
.schedule-layout { grid-template-columns: minmax(295px, .88fr) minmax(350px, 1.12fr); }
.fee-table-head { display: flex; justify-content: space-between; margin: 6px 0 -5px; color: #4a5a6d; font-size: 10px; }
.fee-table-head span { color: #9aa4b1; font-size: 9px; }
.fee-item-rows { display: flex; flex-direction: column; gap: 7px; }
.fee-line { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(88px,.8fr) auto 26px; align-items: center; gap: 6px; }
.fee-line select, .fee-line input { min-height: 35px; padding: 7px 8px; font-size: 10px; }
.fee-required { display: inline-flex !important; align-items: center; flex-direction: row; gap: 4px !important; color: #8491a1; font-size: 8px; white-space: nowrap; }
.fee-required input { width: 12px; height: 12px; }
.remove-fee-row { width: 25px; height: 25px; color: #ad555a; background: #fff0f0; border: 0; border-radius: 7px; font-size: 17px; }
.add-fee-row { align-self: flex-start; padding: 5px 0; color: #356b9d; background: none; border: 0; font-size: 9px; font-weight: 700; }
.compact-toolbar { padding: 0 0 13px; background: none; border: 0; }
.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-card { padding: 12px; background: #fbfcfd; border: 1px solid #edf0f4; border-radius: 11px; }
.schedule-card-top, .schedule-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.schedule-card-top > div, .schedule-card-bottom > div:not(.row-actions) { display: flex; flex-direction: column; }
.schedule-card-top b { color: #3c4e63; font-size: 10px; }
.schedule-card-top small, .schedule-card-bottom small { color: #98a3b0; font-size: 8px; }
.schedule-card-bottom { margin-top: 11px; padding-top: 10px; border-top: 1px solid #edf0f4; }
.schedule-card-bottom strong { color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 12px; }
.schedule-card-bottom .row-actions { margin-left: auto; }
.fee-library { padding-bottom: 17px; }
.fee-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.fee-library-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 9px; padding: 10px 11px; background: #fbfcfd; border: 1px solid #edf0f4; border-radius: 10px; }
.fee-library-item > div { min-width: 0; display: flex; flex-direction: column; }
.fee-library-item b { overflow: hidden; color: #44566a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fee-library-item small { color: #9ba5b2; font-size: 8px; }
.fee-library-item strong { color: var(--navy); font-size: 9px; white-space: nowrap; }
.fee-library-item form { grid-column: 1 / -1; justify-self: end; }

/* Guardians, profiles and settings */
.guardian-profile-row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #f0f2f5; }
.guardian-profile-row > div { flex: 1; display: flex; flex-direction: column; }
.guardian-profile-row b { color: #405267; font-size: 10px; }
.guardian-profile-row small { color: #8b98a8; font-size: 9px; }
.empty-inline { padding: 20px 10px; color: #98a3b0; font-size: 10px; }
.profile-hero-card { display: flex; align-items: center; gap: 17px; margin-bottom: 17px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.profile-large-avatar { width: 70px; height: 70px; display: grid; place-items: center; flex: 0 0 70px; overflow: hidden; color: #607b9e; background: #edf3fa; border-radius: 19px; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 27px; font-weight: 800; }
.profile-large-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-name { min-width: 180px; flex: 1; }
.profile-hero-name h3 { margin: 7px 0 2px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 19px; }
.profile-hero-name p { margin: 0; color: #8c98a7; font-size: 10px; }
.profile-finance { display: flex; align-items: center; gap: 23px; margin-left: auto; padding-left: 20px; border-left: 1px solid var(--line); }
.profile-finance > div { display: flex; flex-direction: column; }
.profile-finance small { color: #909baa; font-size: 8px; }
.profile-finance b { margin-top: 3px; color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 12px; }
.profile-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; }
.detail-grid small { color: #98a3b0; font-size: 9px; }
.detail-grid b { color: #43556b; font-size: 10px; font-weight: 600; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 17px; align-items: start; }
.settings-main .surface-heading, .period-panel .surface-heading { margin-bottom: 17px; }
.branding-setting { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; padding: 13px; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 12px; }
.settings-logo-preview { width: 65px; height: 65px; display: grid; place-items: center; flex: 0 0 65px; overflow: hidden; color: var(--navy); background: #eef2f7; border-radius: 13px; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 25px; font-weight: 800; }
.settings-logo-preview img { width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.branding-setting label { flex: 1; }
.settings-divider { height: 1px; margin: 20px 0; background: #edf0f4; }
.compact-heading { margin-bottom: 13px; }
.current-period-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; background: linear-gradient(135deg,#fff9e9,#fffdf8); border: 1px solid #f1e8d0; border-radius: 12px; }
.current-period-card small { color: #a18447; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.current-period-card b { color: #51432d; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 16px; }
.current-period-card span { color: #968567; font-size: 9px; }
.period-list { display: flex; flex-direction: column; margin-top: 11px; }
.period-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #f0f2f5; }
.period-row > div { min-width: 0; display: flex; flex-direction: column; }
.period-row b { color: #45566b; font-size: 9px; }
.period-row small { color: #98a3b0; font-size: 8px; }
.period-row form { display: block; }

/* Attendance */
.attendance-filter { padding: 14px 18px; }
.attendance-filter-form { display: flex; align-items: flex-end; gap: 12px; }
.attendance-filter-form label { min-width: 190px; }
.attendance-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 17px; }
.attendance-stats > div { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 2px 9px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.attendance-stat-icon { grid-row: span 2; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-weight: 800; }
.attendance-stat-icon.present { color: #25835f; background: #eaf6ef; }
.attendance-stat-icon.absent { color: #bb5257; background: #fff0f0; }
.attendance-stat-icon.late { color: #b17b2c; background: #fff6e8; }
.attendance-stat-icon.excused { color: #7667a9; background: #f1effa; }
.attendance-stat-icon.total { color: #3974a9; background: #edf4fb; }
.attendance-stats small { color: #8b98a7; font-size: 9px; }
.attendance-stats b { color: var(--navy); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 16px; }
.attendance-choices { display: flex; gap: 4px; }
.attendance-choice { position: relative; display: block !important; }
.attendance-choice input { position: absolute; opacity: 0; }
.attendance-choice span { display: inline-flex; padding: 5px 7px; color: #768496; background: #f4f6f8; border: 1px solid transparent; border-radius: 7px; font-size: 8px; cursor: pointer; }
.attendance-choice input:checked + span { color: #1c4e7d; background: #eaf3fc; border-color: #bfd5e9; font-weight: 700; }
.attendance-choice.state-absent input:checked + span { color: #a8464b; background: #fff0f0; border-color: #f0cfd1; }
.attendance-choice.state-late input:checked + span { color: #9a6b25; background: #fff5e5; border-color: #eedcb8; }
.attendance-choice.state-excused input:checked + span { color: #6d60a0; background: #f2effa; border-color: #ded7f0; }
.remark-input { min-width: 120px !important; min-height: 31px !important; padding: 6px 8px !important; font-size: 9px !important; }
.attendance-save { justify-content: space-between; padding: 13px 17px; }
.attendance-guidance { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.attendance-guidance h3 { margin: 4px 0; color: var(--navy); font-family: Manrope,sans-serif; font-size: 15px; }
.attendance-guidance p { max-width: 900px; margin: 0; color: #8290a1; font-size: 10px; }

/* Reports */
.report-tabs { display: flex; align-items: center; gap: 5px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.report-tabs a { padding: 9px 13px; color: #78879a; background: #fff; border: 1px solid #e8edf2; border-radius: 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.report-tabs a.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.report-filter { padding: 13px 16px; }
.report-filter-form { display: flex; align-items: flex-end; gap: 11px; }
.report-filter-form label { min-width: 170px; }
.report-kpi-row { display: flex; gap: 11px; margin-bottom: 17px; }
.report-kpi-row > div { min-width: 160px; display: flex; flex-direction: column; padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.report-kpi-row small { color: #8c98a8; font-size: 8px; }
.report-kpi-row b { margin-top: 3px; color: var(--navy); font-family: Manrope,sans-serif; font-size: 16px; }
.report-kpi-row span { color: #9ba5b1; font-size: 8px; }
.report-surface { padding: 0; overflow: hidden; }
.report-surface > .surface-heading { padding: 20px 22px 0; }
.report-bars { display: flex; flex-direction: column; gap: 9px; margin: 0 20px 18px; padding: 15px; background: #fafbfd; border: 1px solid #edf0f4; border-radius: 11px; }
.report-bar-row > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.report-bar-row b { color: #59697c; font-size: 9px; }
.report-bar-row strong { color: var(--navy); font-size: 9px; }
.report-bar-row > span { height: 6px; display: block; overflow: hidden; background: #e9eef3; border-radius: 8px; }
.report-bar-row > span i { height: 100%; display: block; background: linear-gradient(90deg,#d6ad5c,#214f7c); border-radius: 8px; }
.report-surface .table-footer { margin-top: 0; }

/* Import/export and restore */
.data-tool-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.data-tool-card { display: flex; flex-direction: column; min-height: 320px; margin-bottom: 17px; }
.tool-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 15px; color: #947234; background: #fff5df; border-radius: 11px; font-size: 18px; }
.data-tool-card h3 { margin: 4px 0 5px; color: var(--navy); font-family: Manrope,sans-serif; font-size: 17px; }
.data-tool-card p { margin: 0 0 15px; color: #8592a2; font-size: 10px; }
.download-template { display: inline-block; margin-bottom: 15px; color: #356b9b; font-size: 9px; font-weight: 700; }
.data-tool-card .form-stack { margin-top: auto; }
.export-links { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.export-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; color: #4b5e73; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 9px; font-size: 10px; font-weight: 600; }
.export-links a span { color: #8ba0b6; font-size: 14px; }
.backup-facts { display: flex; gap: 8px; margin: 6px 0 18px; }
.backup-facts span { flex: 1; display: flex; flex-direction: column; padding: 8px; background: #f8fafc; border-radius: 8px; }
.backup-facts b { color: #40546c; font-size: 9px; }
.backup-facts small { color: #98a4b1; font-size: 8px; }
.backup-card .btn { margin-top: auto; }
.restore-panel { border-color: #f0dede; }
.restore-panel .surface-heading p { max-width: 800px; }
.restore-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.restore-form .form-note { grid-column: 1 / -1; }
.restore-form button { justify-self: start; }
.import-result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 12px 15px; color: #276b51; background: #eaf7ef; border: 1px solid #d6eee0; border-radius: 11px; font-size: 10px; }
.import-result b { font-size: 11px; }
.import-result details { flex-basis: 100%; margin-top: 3px; }
.import-result summary { cursor: pointer; font-weight: 700; }
.import-result ul { margin-bottom: 0; }

/* Receipt / invoice print documents */
.receipt-body { min-height: 100vh; padding: 28px 18px 50px; background: #edf1f5; }
.receipt-toolbar { width: min(850px,100%); display: flex; align-items: center; justify-content: space-between; margin: 0 auto 16px; }
.print-receipt, .print-invoice { width: min(850px,100%); margin: 0 auto; padding: 45px 48px; background: #fff; border: 1px solid #e4e9ef; border-radius: 4px; box-shadow: 0 12px 35px rgba(20,40,65,.09); }
.receipt-school { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 2px solid var(--navy); }
.receipt-logo { width: 68px; height: 68px; flex: 0 0 68px; object-fit: contain; border-radius: 8px; }
.receipt-school > div { min-width: 0; flex: 1; }
.receipt-school h1 { margin: 0 0 3px; color: var(--navy); font-family: Manrope,sans-serif; font-size: 20px; font-weight: 800; }
.receipt-school p { margin: 1px 0; color: #768498; font-size: 9px; }
.receipt-status { padding: 7px 10px; color: #1f855f; background: #eaf6ef; border: 1px solid #d8eee2; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.receipt-reversed { color: #b3424a; background: #fff0f0; border-color: #f0d8d8; }
.receipt-title { margin: 26px 0 18px; text-align: center; }
.receipt-title span, .document-type span { color: #9b8350; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.receipt-title h2 { margin: 3px 0; color: var(--navy); font-family: Manrope,sans-serif; font-size: 22px; letter-spacing: .5px; }
.receipt-details, .document-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid #e9edf1; border-bottom: 1px solid #e9edf1; }
.receipt-details > div, .document-meta-grid > div { display: flex; flex-direction: column; gap: 3px; }
.receipt-details small, .document-meta-grid small { color: #97a1ae; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.receipt-details b, .document-meta-grid b { color: #35475d; font-size: 12px; }
.receipt-details span, .document-meta-grid span { color: #8491a1; font-size: 9px; }
.receipt-amount { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; padding: 17px 19px; color: #fff; background: linear-gradient(100deg,#112d50,#214f7a); border-radius: 7px; }
.receipt-amount small { color: #c1d0e0; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.receipt-amount strong { color: #f3d58d; font-family: Manrope,sans-serif; font-size: 24px; font-weight: 800; }
.receipt-detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 9px 1px; border-bottom: 1px solid #f0f2f5; color: #8591a0; font-size: 9px; }
.receipt-detail-row b { color: #43546a; text-align: right; }
.receipt-allocation { margin: 17px 0; padding: 13px; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 8px; }
.receipt-allocation > b { color: #43556b; font-size: 10px; }
.receipt-allocation > div { display: flex; justify-content: space-between; gap: 15px; padding-top: 7px; color: #778596; font-size: 9px; }
.receipt-allocation strong { color: #33475e; }
.receipt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 16px; border-top: 1px dashed #d9dfe6; color: #8793a2; font-size: 9px; }
.receipt-bottom b { color: #40566e; font-size: 10px; }
.print-receipt footer { margin-top: 24px; color: #a2acb8; font-size: 8px; text-align: center; }
.reversal-banner { display: flex; flex-direction: column; gap: 2px; margin-top: 15px; padding: 12px; color: #a64249; background: #fff0f0; border: 1px solid #f2d5d5; border-radius: 7px; font-size: 9px; }
.print-document-top { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 2px solid var(--navy); }
.print-school-brand { display: flex; align-items: center; gap: 12px; }
.print-school-brand h1 { margin: 0; color: var(--navy); font-family: Manrope,sans-serif; font-size: 18px; }
.print-school-brand p { margin: 2px 0; color: #8792a0; font-size: 8px; }
.document-type { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; }
.document-type b { color: var(--navy); font-family: Manrope,sans-serif; font-size: 16px; }
.document-type small { color: #8491a1; font-size: 8px; }
.document-meta-grid { margin: 18px 0; }
.document-table { margin-top: 14px; white-space: normal; }
.document-table th { color: #fff; background: var(--navy); }
.document-table td { padding: 12px; color: #4c5b6d; font-size: 9px; }
.document-totals { width: min(330px,100%); margin: 20px 0 0 auto; }
.document-totals > div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid #edf0f3; color: #8290a0; font-size: 9px; }
.document-totals b { color: #45576b; }
.document-totals .document-total { color: #5c6c7f; }
.document-totals .document-total strong { color: var(--navy); font-family: Manrope,sans-serif; font-size: 16px; }
.document-balance { color: #a0494e !important; }
.document-balance strong { color: #ad484e; font-family: Manrope,sans-serif; font-size: 16px; }
.document-note { margin: 24px 0; padding: 12px; color: #768699; background: #f8fafc; border-left: 3px solid var(--gold); font-size: 9px; }
.document-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px dashed #dfe4e9; color: #8793a0; font-size: 8px; }
.document-footer b { color: #455a70; }

/* Parent portal */
.portal-body { min-height: 100vh; background: #f3f6f9; }
.portal-shell { width: min(1200px,calc(100% - 42px)); margin: 0 auto; padding-bottom: 40px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 77px; border-bottom: 1px solid #e2e8ee; }
.portal-brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.portal-brand b { color: var(--navy); font-family: Manrope,sans-serif; font-size: 14px; }
.portal-brand small { color: #8a97a6; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.portal-header-right { display: flex; align-items: center; gap: 13px; color: #718094; font-size: 10px; }
.portal-header-right form { margin: 0; }
.portal-hero { margin: 22px 0 17px; padding: 28px 30px; color: #fff; background: linear-gradient(110deg,#102a4c,#234f79); border-radius: 17px; }
.portal-hero .eyebrow { color: #edca78; }
.portal-hero h1 { margin: 7px 0 5px; color: #fff; font-family: Manrope,sans-serif; font-size: clamp(23px,3vw,32px); letter-spacing: -.7px; }
.portal-hero p { margin: 0; color: #c3d1e2; font-size: 11px; }
.portal-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.portal-surface { padding: 20px; }
.child-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.child-card { padding: 16px; background: #fbfcfd; border: 1px solid #edf0f4; border-radius: 13px; }
.child-card-top { display: flex; align-items: center; justify-content: space-between; }
.child-avatar { width: 39px; height: 39px; display: grid; place-items: center; color: #466e98; background: #eaf2fb; border-radius: 12px; font-family: Manrope,sans-serif; font-weight: 800; }
.child-code { color: #8995a4; font-size: 9px; }
.child-card h3 { margin: 9px 0 2px; color: var(--navy); font-family: Manrope,sans-serif; font-size: 14px; }
.child-card p { margin: 0; color: #8b97a5; font-size: 9px; }
.child-finance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; padding: 11px 0; border-top: 1px solid #e9edf2; border-bottom: 1px solid #e9edf2; }
.child-finance > div { min-width: 0; display: flex; flex-direction: column; }
.child-finance small { color: #9aa4b0; font-size: 8px; }
.child-finance b { overflow: hidden; margin-top: 3px; color: #44566c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.child-open-link { display: inline-block; margin-top: 12px; color: #326b9f; font-size: 9px; font-weight: 700; }
.portal-footer { padding: 22px 0 0; color: #94a0ad; font-size: 9px; text-align: center; }
.portal-auth-layout { width: min(430px,calc(100% - 32px)); margin: 7vh auto 0; }
.portal-auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.portal-auth-brand b { display: block; color: #fff; font-family: Manrope,sans-serif; font-size: 14px; }
.portal-auth-brand small { color: #9fb2c8; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.portal-auth-card { width: 100%; }

/* Authentication and installation */
.auth-body { min-height: 100vh; overflow-x: hidden; background: #0f2745; }
.auth-background { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 22% 12%, rgba(44,93,139,.28), transparent 38%), linear-gradient(130deg,#0c2039,#152f50 62%,#0c223f); }
.auth-glow { position: absolute; width: 580px; height: 580px; border: 1px solid rgba(232,192,105,.13); border-radius: 50%; }
.auth-glow:before, .auth-glow:after { content: ''; position: absolute; inset: 40px; border: 1px solid rgba(232,192,105,.1); border-radius: 50%; }
.auth-glow:after { inset: 90px; }
.auth-glow-one { top: -310px; left: -120px; }
.auth-glow-two { right: -270px; bottom: -430px; width: 760px; height: 760px; }
.auth-layout { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(35px,6vw,75px); color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: #fff; }
.auth-brand:hover { color: #fff; }
.auth-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; color: var(--navy); background: linear-gradient(145deg,#f5d88e,#dba73f); border-radius: 14px; font-family: Manrope,sans-serif; font-size: 25px; font-weight: 800; box-shadow: 0 8px 23px rgba(228,182,79,.2); }
.auth-brand b { display: block; color: #fff; font-family: Manrope,sans-serif; font-size: 17px; font-weight: 800; }
.auth-brand small { color: #9db1c9; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; }
.auth-message { max-width: 620px; margin: 50px 0; }
.auth-message .eyebrow { color: #e8c36f; }
.auth-message h1 { max-width: 590px; margin: 14px 0; color: #fff; font-family: Manrope,sans-serif; font-size: clamp(35px,4.7vw,58px); font-weight: 800; letter-spacing: -2px; line-height: 1.12; }
.auth-message > p { max-width: 500px; color: #b6c5d8; font-size: 13px; line-height: 1.8; }
.auth-benefits { display: grid; gap: 10px; margin-top: 27px; color: #d8e2ed; font-size: 11px; }
.auth-benefits span { display: flex; align-items: center; gap: 10px; }
.auth-benefits i { width: 19px; height: 19px; display: grid; place-items: center; color: #243a54; background: #e6bb61; border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 800; }
.auth-brand-foot { display: flex; justify-content: space-between; gap: 14px; color: #758ca8; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100vh; padding: 35px clamp(23px,5vw,66px); background: #f6f8fa; }
.auth-card { width: min(100%,420px); padding: clamp(23px,3vw,34px); background: #fff; border: 1px solid #e8edf2; border-radius: 17px; box-shadow: 0 16px 45px rgba(7,25,46,.09); }
.auth-card > .eyebrow { color: #9d8553; }
.auth-card h2 { margin: 7px 0 5px; color: var(--navy); font-family: Manrope,sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.auth-subtitle { margin: 0 0 22px; color: #8793a2; font-size: 11px; }
.auth-card label { margin-top: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-field button { position: absolute; top: 4px; right: 4px; width: 31px; height: 31px; color: #8492a2; background: transparent; border: 0; border-radius: 7px; }
.auth-options { display: flex; justify-content: space-between; gap: 10px; margin: 15px 0 17px; color: #8b97a5; font-size: 9px; }
.auth-options > span { display: inline-flex; align-items: center; gap: 7px; }
.auth-options .secure-dot { width: 6px; height: 6px; }
.auth-options a { font-weight: 700; }
.auth-submit { width: 100%; }
.auth-note { margin-top: 18px; padding-top: 14px; color: #98a3b0; border-top: 1px solid #eef1f4; font-size: 9px; line-height: 1.7; text-align: center; }
.auth-copyright { margin-top: 18px; color: #a0aab6; font-size: 9px; text-align: center; }
.auth-alert { margin: 0 0 14px; }
.password-change-wrap { position: relative; z-index: 1; width: min(460px,calc(100% - 32px)); margin: 9vh auto; }
.password-change-wrap > .auth-brand { justify-content: center; margin-bottom: 18px; }
.text-link { display: block; margin-top: 15px; font-size: 10px; font-weight: 700; text-align: center; }
.install-body { min-height: 100vh; background: #f1f4f7; }
.install-wrap { width: min(1180px,calc(100% - 44px)); min-height: 680px; display: grid; grid-template-columns: .8fr 1.2fr; margin: 5vh auto; overflow: hidden; background: #fff; border: 1px solid #e7ecf1; border-radius: 21px; box-shadow: 0 18px 50px rgba(15,38,64,.1); }
.install-visual { display: flex; flex-direction: column; justify-content: space-between; padding: 38px; color: #fff; background: linear-gradient(150deg,#102a4c,#1a446e); }
.install-brand { display: flex; align-items: center; gap: 11px; }
.install-brand > span:last-child { display: flex; flex-direction: column; }
.install-brand b { color: #fff; font-family: Manrope,sans-serif; font-size: 15px; }
.install-brand small { color: #9fb3ca; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.install-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 12px; font-family: Manrope,sans-serif; font-size: 22px; font-weight: 800; }
.install-visual-copy { margin: 40px 0; }
.install-visual-copy .eyebrow { color: #e6c26e; }
.install-visual-copy h1 { margin: 12px 0; color: #fff; font-family: Manrope,sans-serif; font-size: clamp(30px,3.3vw,42px); font-weight: 800; letter-spacing: -1.3px; line-height: 1.17; }
.install-visual-copy p { color: #b8c8da; font-size: 11px; line-height: 1.8; }
.install-visual-foot { display: flex; justify-content: space-between; gap: 9px; color: #879eb9; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.install-content { padding: 37px clamp(25px,4vw,56px); }
.install-content-inner { max-width: 610px; margin: 0 auto; }
.install-step { display: flex; justify-content: space-between; color: #8c98a8; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.install-step b { color: #b28b45; }
.install-progress { height: 4px; overflow: hidden; margin: 10px 0 30px; background: #edf0f4; border-radius: 10px; }
.install-progress span { height: 100%; display: block; background: linear-gradient(90deg,#dfb557,#214d79); border-radius: inherit; }
.install-intro h1, .install-complete h1 { margin: 7px 0; color: var(--navy); font-family: Manrope,sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.install-intro p, .install-complete p { margin: 0 0 17px; color: #8290a0; font-size: 10px; }
.install-check-list { display: grid; gap: 10px; margin: 18px 0; }
.install-check-list > div { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: #f9fbfc; border: 1px solid #edf0f3; border-radius: 10px; }
.install-check-list > div > span { width: 22px; height: 22px; display: grid; place-items: center; color: #258562; background: #e8f6ef; border-radius: 50%; font-size: 10px; font-weight: 800; }
.install-check-list section { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.install-check-list b { color: #3c4f65; font-size: 9px; }
.install-check-list small { margin-top: 2px; color: #929eac; font-size: 8px; }
.install-check-list strong { color: #328263; font-size: 8px; }
.install-admin-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding: 17px; background: #fafbfd; border: 1px solid #e9edf2; border-radius: 12px; }
.install-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.install-primary-btn { width: 100%; }
.install-info { margin: 17px 0; padding: 14px 16px; background: #f7f9fb; border: 1px solid #e9eef3; border-radius: 11px; }
.install-info h2 { margin: 0 0 8px; color: #42566e; font-size: 12px; }
.install-info li, .install-info p { color: #7d8b9b; font-size: 9px; }
.install-info ol, .install-info ul { margin: 7px 0 0; padding-left: 17px; }
.install-complete { padding: 15px 0; text-align: center; }
.install-check { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; background: #31916d; border-radius: 50%; font-size: 21px; }
.install-error { margin: 15px 0; padding: 13px; color: #9d474c; background: #fff0f0; border: 1px solid #f1dddd; border-radius: 10px; font-size: 10px; }
.install-error p { margin: 3px 0 0; }
.install-small { margin-top: 14px; color: #98a3af; font-size: 8px; text-align: center; }
.install-footer { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 13px; color: #a2acb8; border-top: 1px solid #eef1f4; font-size: 8px; }

/* Small helper components */
.backup-facts, .action-group { flex-wrap: wrap; }
.field-hint a { font-weight: 700; }

@media (max-width: 1250px) {
  .sidebar { width: 245px; }
  .main-area { width: calc(100% - 245px); margin-left: 245px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid-five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .data-tool-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .dashboard-grid-bottom { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); }
}
@media (max-width: 980px) {
  .sidebar { width: 265px; transform: translateX(-105%); transition: transform .24s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .main-area { width: 100%; margin-left: 0; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; visibility: hidden; opacity: 0; background: rgba(11,25,42,.45); transition: opacity .2s, visibility .2s; }
  .sidebar-open .sidebar-scrim { visibility: visible; opacity: 1; }
  .mobile-menu { display: grid; place-items: center; flex: 0 0 38px; }
  .topbar { justify-content: flex-start; }
  .topbar-title { flex: 1; }
  .topbar-right { gap: 10px; }
  .billing-layout, .schedule-layout, .settings-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid, .dashboard-grid-bottom { grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); }
  .profile-hero-card { flex-wrap: wrap; }
  .profile-finance { width: 100%; justify-content: space-around; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 760px) {
  .topbar { min-height: 70px; padding: 10px 15px; }
  .topbar h1 { font-size: 19px; }
  .topbar-right .live-indicator { display: none; }
  .top-date { font-size: 9px; }
  .page-content { padding: 19px 14px 15px; }
  .app-footer { padding: 13px 15px 18px; font-size: 8px; }
  .page-heading-row { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 17px; }
  .page-heading-row h2 { font-size: 24px; }
  .hero-banner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 23px; }
  .hero-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .dashboard-grid, .dashboard-grid-bottom, .profile-columns, .billing-layout, .schedule-layout, .settings-grid { grid-template-columns: 1fr; }
  .metric-grid { gap: 9px; }
  .metric-grid-five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { padding: 13px; }
  .metric-card > strong { font-size: 19px; }
  .quick-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .surface { padding: 16px; border-radius: 14px; }
  .table-surface, .report-surface { padding: 0; }
  .table-surface > .surface-heading, .report-surface > .surface-heading { padding: 16px 15px 0; }
  .table-toolbar { padding: 11px; }
  .table-toolbar .search-field { flex-basis: 100%; }
  .table-toolbar select, .table-toolbar input[type="date"] { flex: 1; min-width: 120px; }
  .table-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .attendance-filter-form, .report-filter-form { align-items: stretch; flex-direction: column; }
  .attendance-filter-form label, .report-filter-form label { min-width: 0; }
  .attendance-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .attendance-guidance { align-items: flex-start; flex-direction: column; }
  .restore-form { grid-template-columns: 1fr; }
  .data-tool-cards { grid-template-columns: 1fr 1fr; }
  .data-tool-card { min-height: 0; }
  .fee-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-hero-card { padding: 15px; }
  .profile-finance { gap: 13px; }
  .profile-finance b { font-size: 10px; }
  .install-wrap { grid-template-columns: 1fr; margin: 15px auto; }
  .install-visual { min-height: 270px; padding: 25px; }
  .install-visual-copy { margin: 25px 0; }
  .install-visual-copy h1 { max-width: 470px; font-size: 29px; }
  .install-content { padding: 25px 22px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 250px; padding: 25px 26px 17px; }
  .auth-message { margin: 28px 0 18px; }
  .auth-message h1 { max-width: 540px; font-size: 31px; letter-spacing: -1px; }
  .auth-message > p { font-size: 11px; }
  .auth-benefits { display: none; }
  .auth-brand-foot { display: none; }
  .auth-form-panel { min-height: auto; padding: 20px 17px 30px; }
  .auth-card { width: min(100%,480px); }
  .portal-shell { width: calc(100% - 26px); }
  .portal-header { min-height: 65px; }
  .portal-header-right > span { display: none; }
  .portal-hero { padding: 22px; }
  .portal-metrics { grid-template-columns: 1fr; }
  .child-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar-title .overline { font-size: 7px; }
  .topbar h1 { font-size: 17px; }
  .topbar-right { margin-left: auto; }
  .top-date { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid-five { grid-template-columns: 1fr 1fr; }
  .metric-card > strong { font-size: 17px; }
  .metric-card > small { font-size: 8px; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-trend { font-size: 7px; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .quick-action-grid a { grid-template-columns: 29px 1fr; padding: 9px; gap: 7px; }
  .quick-action-grid a > span { width: 29px; height: 29px; }
  .surface-heading { gap: 8px; }
  .surface-heading h3 { font-size: 14px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; padding: 9px 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .fee-line { grid-template-columns: minmax(0,1fr) 82px 23px; }
  .fee-required { grid-column: 1 / -1; grid-row: 2; padding: 1px 0 3px; }
  .fee-library-grid { grid-template-columns: 1fr; }
  .data-tool-cards { grid-template-columns: 1fr; }
  .attendance-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .attendance-choices { flex-wrap: wrap; max-width: 175px; }
  .attendance-choice span { padding: 5px 6px; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .profile-hero-card { align-items: flex-start; gap: 12px; }
  .profile-large-avatar { width: 55px; height: 55px; flex-basis: 55px; }
  .profile-hero-name { min-width: 0; }
  .profile-hero-name h3 { font-size: 15px; }
  .profile-finance { justify-content: space-between; gap: 6px; }
  .profile-finance small { font-size: 7px; }
  .profile-finance b { font-size: 9px; }
  .report-kpi-row { flex-wrap: wrap; }
  .report-kpi-row > div { flex: 1 1 135px; min-width: 0; }
  .restore-form button { width: 100%; }
  .receipt-body { padding: 12px 7px 25px; }
  .receipt-toolbar { padding: 0 4px; }
  .print-receipt, .print-invoice { padding: 22px 17px; }
  .receipt-school { gap: 9px; }
  .receipt-logo { width: 45px; height: 45px; flex-basis: 45px; }
  .receipt-school h1 { font-size: 14px; }
  .receipt-school p { font-size: 7px; }
  .receipt-status { padding: 5px; font-size: 7px; }
  .receipt-details, .document-meta-grid { gap: 10px; }
  .receipt-amount { align-items: flex-start; flex-direction: column; gap: 5px; }
  .receipt-amount strong { font-size: 21px; }
  .document-type b { font-size: 12px; }
  .print-school-brand h1 { font-size: 14px; }
  .install-wrap { width: calc(100% - 18px); border-radius: 14px; }
  .install-form-grid { grid-template-columns: 1fr; }
  .install-content { padding: 20px 15px; }
  .install-visual-foot { font-size: 6px; }
  .portal-header .brand-mark, .portal-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .portal-brand b { font-size: 11px; }
  .child-finance { gap: 4px; }
  .child-finance b { font-size: 8px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
@media print {
  body, .receipt-body { background: #fff !important; }
  .receipt-toolbar, .no-print { display: none !important; }
  .print-receipt, .print-invoice { width: 100%; max-width: none; margin: 0; padding: 12mm; border: 0; border-radius: 0; box-shadow: none; }
  @page { size: A4; margin: 12mm; }
}

/* JSC workspace refinements: keep navigation usable without visible scrollbars. */
.sidebar { overflow: hidden; }
.side-nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar-bottom { flex: 0 0 auto; }
.sidebar-bottom form { margin: 0; }
.logout-link {
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  text-align: left;
  transition: background .18s, border-color .18s, color .18s;
}
.logout-link:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(240,201,105,.28); }
.logout-symbol { display: inline-grid; place-items: center; width: 19px; height: 19px; color: #f0c969; font-size: 17px; line-height: 1; }
.logout-link span:last-child { font-size: 11px; font-weight: 700; }
.is-submitting { opacity: .78; cursor: wait !important; }
.guardian-dependent.hidden { display: none !important; }
.guardian-dependent { padding: 16px; border: 1px solid #e7edf4; border-radius: 13px; background: #f8fafc; }
.guardian-dependent-grid { margin-top: 12px; }
.paycode-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px dashed rgba(16,42,76,.24);
  border-radius: 11px;
  color: #16365d;
  background: #f5f8fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .7px;
}
.tranche-document-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; }
.tranche-document-table th, .tranche-document-table td { padding: 10px 12px; border: 1px solid #dce4ed; text-align: left; }
.tranche-document-table th { color: #183454; background: #edf2f8; font-size: 10px; letter-spacing: .55px; text-transform: uppercase; }
.tranche-document-table td { font-size: 12px; }
.tranche-document-table .numeric { text-align: right; white-space: nowrap; }
@media (max-height: 620px) {
  .sidebar { padding-top: 14px; }
  .brand { padding-bottom: 13px; }
  .side-caption { padding-top: 14px; }
  .sidebar-bottom { padding-top: 10px; }
}

/* Interaction reliability and accessible overlay behaviour. */
body.modal-open { overflow: hidden; }
.sidebar { height: 100vh; height: 100dvh; }
.side-nav { scrollbar-width: none; -ms-overflow-style: none; }
.side-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
