:root {
  --brand: #19b000;
  --brand-dark: #118300;
  --brand-soft: #e9f9e7;
  --ink: #152019;
  --muted: #59675e;
  --line: #e8ece9;
  --surface: #ffffff;
  --canvas: #f6f8f6;
  --sidebar: #0d1711;
  --shadow: 0 10px 30px rgba(20, 37, 25, .055);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: clip; color: var(--ink); background: var(--canvas); font-family: Cairo, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[ng-cloak] { display: none !important; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
.sirb-dropdown { position: relative; min-width: 0; }
.sirb-dropdown.open { z-index: 330; }
.sirb-dropdown-trigger { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 52px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); text-align: inherit; transition: .18s ease; }
.sirb-dropdown-trigger:hover,.sirb-dropdown.open .sirb-dropdown-trigger { border-color: rgba(25,176,0,.45); box-shadow: 0 0 0 4px rgba(25,176,0,.07); }
.sirb-dropdown.invalid .sirb-dropdown-trigger { border-color: #ef9b9b; background: color-mix(in srgb, var(--surface) 88%, #fff1f1); box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.sirb-dropdown.invalid .sirb-dropdown-icon { color: #c83f3f; background: #ffe5e5; }
.sirb-dropdown-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 19px; }
.sirb-dropdown-copy { display: grid; min-width: 0; gap: 1px; }
.sirb-dropdown-copy small { color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }
.sirb-dropdown-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sirb-dropdown-copy strong.placeholder { color: var(--muted); font-weight: 700; }
.sirb-dropdown-chevron { color: var(--muted); font-size: 20px; transition: .18s ease; }
.sirb-dropdown.open .sirb-dropdown-chevron { transform: rotate(180deg); }
.sirb-dropdown-menu { position: absolute; z-index: 320; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 42px rgba(10,25,15,.18); }
.sirb-dropdown-menu.above { box-shadow: 0 -18px 42px rgba(10,25,15,.16); }
.sirb-dropdown-search,.modal .sirb-dropdown-search { display: flex; grid-template-columns: none; align-items: center; gap: 7px; min-height: 42px; height: 42px; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.sirb-dropdown-search .material-symbols-rounded { width: 20px; height: 20px; color: var(--muted); font-size: 20px; }
.sirb-dropdown-search input,.modal .sirb-dropdown-search input { width: 100%; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; color: var(--ink); background: transparent; box-shadow: none; font-size: 13px; font-weight: 700; }
.sirb-dropdown-search input:focus,.modal .sirb-dropdown-search input:focus { border-color: transparent; box-shadow: none; }
.sirb-dropdown-options { max-height: 205px; overflow-y: auto; padding: 5px; }
.sirb-dropdown-options button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 38px; padding: 0 9px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; text-align: inherit; }
.sirb-dropdown-options button:hover,.sirb-dropdown-options button.selected { color: var(--brand-dark); background: var(--brand-soft); }
.sirb-dropdown-options .material-symbols-rounded { color: var(--brand-dark); font-size: 18px; }
.sirb-dropdown-empty { margin: 0; padding: 16px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.compact-dropdown { width: 180px; }
.compact-dropdown .sirb-dropdown-trigger { min-height: 39px; border-radius: 10px; }
.compact-dropdown .sirb-dropdown-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 17px; }
.compact-dropdown .sirb-dropdown-copy small { display: none; }
.compact-dropdown .sirb-dropdown-copy strong { font-size: 12px; }
.row-action-menu { position: fixed; z-index: 240; display: grid; width: 214px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 42px rgba(10,25,15,.2); }
.row-action-menu a,.row-action-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; text-align: inherit; white-space: nowrap; }
.row-action-menu a:hover,.row-action-menu button:hover { background: var(--canvas); }
.row-action-menu .material-symbols-rounded { color: var(--muted); font-size: 20px; }
.row-action-menu button.danger { color: #b43d3d; }
.row-action-menu button.danger .material-symbols-rounded { color: #c64b4b; }
.field-invalid { color: #a83232 !important; }
.modal label.field-invalid { gap: 4px; }
.modal .field-invalid input { border-color: #ef9b9b; background: color-mix(in srgb, var(--surface) 88%, #fff1f1); box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.field-error { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; color: #b43d3d; font-size: 11px; font-weight: 800; line-height: 1.35; }
.modal label.field-invalid .field-error { margin-top: 0; }
.field-error .material-symbols-rounded { color: #d74242; font-size: 16px; }
.soft-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.soft-link:hover { color: var(--brand-dark); }
.school-monogram { color: #056d0b; background: linear-gradient(135deg, #d8ffd9, #c7f6df); }
.location-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 190px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #647069; background: color-mix(in srgb, var(--surface) 88%, #effff0); font-size: 11px; font-weight: 700; direction: ltr; }
.location-chip .material-symbols-rounded { color: var(--brand-dark); font-size: 17px; }
.table-text-clip { display: block; max-width: 220px; overflow: hidden; color: var(--muted-strong, var(--muted)); font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.school-location-editor { margin: 0; }
.school-modal { width: min(620px, 100%); }
.material-symbols-rounded { display: inline-grid; flex: 0 0 auto; font-size: 21px; line-height: 1; place-items: center; vertical-align: middle; }
.app-shell { min-height: 100vh; }

.boot-splash { position: fixed; z-index: 1000; inset: 0; display: grid; min-width: 320px; place-items: center; overflow: hidden; color: #eee; background: radial-gradient(circle at 28% 18%, rgba(25,176,0,.2), transparent 30%), radial-gradient(circle at 68% 85%, rgba(25,176,0,.14), transparent 34%), linear-gradient(135deg, #102719 0%, #07120c 58%, #050d08 100%); }
.boot-splash::before { content: ''; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at center, #000, transparent 76%); }
.boot-splash::after { content: ''; position: absolute; width: min(52vw, 700px); aspect-ratio: 1; border: 1px solid rgba(25,176,0,.16); border-radius: 50%; transform: translate(36%, 28%); }
.boot-splash-card { position: relative; z-index: 1; display: grid; width: 100%; min-height: 100dvh; justify-items: center; align-content: center; padding: 36px 22px; text-align: center; animation: bootCardIn .42s ease-out both; }
.boot-splash-mark { position: relative; width: clamp(196px, 54vmin, 248px); height: clamp(220px, 60.75vmin, 279px); margin-top: -4.5vh; }
.boot-splash-mark span { position: absolute; display: block; width: 16.875%; border-radius: 999px; background: #eee; transform-origin: center center; animation: sirbSplashBar 1.8s ease-in-out infinite; }
.boot-splash-mark span:nth-child(1) { left: 20.3125%; top: 29.4444%; height: 58.8889%; --lift: 3.2px; --phase-y: -2px; transform: rotate(12deg); }
.boot-splash-mark span:nth-child(2) { left: 45.9375%; top: 11.3889%; height: 77.7778%; --lift: 2.3px; --phase-y: -1px; transform: rotate(12deg); animation-delay: -.206s; }
.boot-splash-mark span:nth-child(3) { left: 71.5625%; top: 38.8889%; height: 50%; --lift: 3.6px; --phase-y: -3px; transform: rotate(12deg); animation-delay: -.412s; }
.boot-splash-copy { display: grid; margin-top: 18px; }
.boot-splash h1 { margin: 0; color: #eee; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.boot-splash-copy p { margin: 10px 0 0; color: #a9b9ad; font-size: 15px; font-weight: 700; line-height: 1.6; }
.boot-splash-footer { position: absolute; right: 0; bottom: 32px; left: 0; display: grid; gap: 4px; justify-items: center; color: #eee; }
.boot-splash-footer strong { font-size: 16px; font-weight: 400; line-height: 1.4; }
.boot-splash-footer small { font-size: 12px; font-weight: 400; line-height: 1.4; }
.boot-splash-footer b { font-weight: 700; }
.ltr .boot-splash-card { direction: ltr; }

@keyframes bootCardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sirbSplashBar { 0%,100% { opacity: .96; transform: rotate(12deg) scaleY(.965) translateY(3.2px); } 28% { opacity: 1; transform: rotate(12deg) scaleY(1.035) translateY(-3.2px); } 64% { opacity: .98; transform: rotate(12deg) scaleY(.99) translateY(1px); } }

.sidebar { position: fixed; z-index: 30; inset: 0 0 0 auto; display: flex; flex-direction: column; width: 260px; padding: 27px 18px 20px; overflow-y: auto; color: #fff; background: radial-gradient(circle at 30% 0%, #1b3122 0, var(--sidebar) 35%); }
.brand { display: flex; gap: 12px; align-items: center; margin: 0 8px 30px; color: #fff; text-decoration: none; }
.sirb-brand-logo { display: grid; flex: 0 0 46px; width: 46px; height: 46px; padding: 6px; place-items: center; border-radius: 14px; background: var(--brand); box-shadow: 0 8px 20px rgba(25,176,0,.24); }
.sirb-brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; min-height: 46px; flex-direction: column; justify-content: center; gap: 4px; }
.brand strong { display: block; font-size: 22px; line-height: 1; }.brand small { color: #8ca094; font-size: 10px; letter-spacing: .03em; line-height: 1.25; }
.nav-label { margin: 0 14px 9px; color: #718078; font-size: 10px; font-weight: 700; }
.main-nav { display: grid; gap: 4px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 14px; border-radius: 11px; color: #a7b2ab; font-size: 12px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.05); transform: translateX(-2px); }
.main-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(25,176,0,.2), rgba(25,176,0,.11)); box-shadow: inset -3px 0 var(--brand); }
.main-nav a.active .material-symbols-rounded { color: #57db45; }
.main-nav a b { margin-right: auto; min-width: 22px; padding: 2px 6px; color: #d3ded5; background: rgba(255,255,255,.1); border-radius: 8px; font-size: 9px; text-align: center; }
.sidebar-card { display: flex; align-items: center; gap: 10px; margin: auto 4px 16px; padding: 13px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.035); }
.sidebar-card > .material-symbols-rounded { color: #71df62; font-size: 19px; }.sidebar-card div { min-width: 0; }.sidebar-card strong,.sidebar-card small { display: block; }.sidebar-card strong { font-size: 10px; }.sidebar-card small { margin-top: 3px; color: #718078; font-size: 8px; white-space: nowrap; }.status-dot { width: 7px; height: 7px; margin-right: auto; border-radius: 50%; background: #46d331; box-shadow: 0 0 0 4px rgba(70,211,49,.11); }
.profile-mini { display: flex; align-items: center; gap: 10px; padding: 15px 6px 0; border-top: 1px solid rgba(255,255,255,.07); }.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #0d2b0e; background: #c5f5bc; font-size: 10px; font-weight: 800; }.profile-mini div:nth-child(2) { min-width: 0; }.profile-mini strong,.profile-mini small { display: block; white-space: nowrap; }.profile-mini strong { font-size: 10px; }.profile-mini small { color: #718078; font-size: 8px; }.profile-mini button { margin-right: auto; padding: 3px; border: 0; color: #758078; background: none; }

.main-content { min-height: 100vh; margin-right: 260px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 34px; border-bottom: 1px solid rgba(226,231,227,.8); background: rgba(255,255,255,.88); backdrop-filter: blur(15px); }
.topbar-start,.topbar-actions { display: flex; align-items: center; gap: 11px; }.topbar-actions { position: relative; }.menu-button { display: none !important; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(360px, 32vw); height: 41px; padding: 0 12px; border: 1px solid #e2e7e3; border-radius: 11px; color: #87928a; background: #f9faf9; transition: .2s ease; }.search-box.focused { width: min(400px, 36vw); border-color: rgba(25,176,0,.45); background: #fff; box-shadow: 0 0 0 3px rgba(25,176,0,.07); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.search-box input::placeholder { color: #a7b0aa; }.search-box kbd { padding: 2px 6px; border: 1px solid #dfe4e0; border-radius: 5px; color: #9aa39d; background: #fff; font: 9px Arial; white-space: nowrap; }
.icon-button { display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-content: center; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #647069; background: #fff; line-height: 1; transition: .2s ease; }.icon-button > .material-symbols-rounded { width: 1em; height: 1em; }.icon-button:hover { color: var(--brand-dark); border-color: #cce7c8; background: #f7fff5; }.notification-button { position: relative; }.notification-button i { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 1.5px solid white; border-radius: 50%; background: #ef4444; }
.primary-button,.secondary-button,.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 0 17px; border-radius: 11px; font-size: 11px; font-weight: 700; transition: .2s ease; }.primary-button { border: 1px solid var(--brand); color: #fff; background: linear-gradient(135deg, #23bc0b, #159800); box-shadow: 0 7px 16px rgba(25,176,0,.18); }.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(25,176,0,.26); }.secondary-button { border: 1px solid var(--line); color: #4f5c54; background: #fff; }.secondary-button:hover { color: var(--brand-dark); border-color: #cde7c9; background: #f9fff8; }
.topbar-actions > .primary-button { position: relative; display: grid; flex: 0 0 46px; width: 46px; height: 46px; min-height: 46px; overflow: hidden; padding: 0; place-items: center; border-radius: 12px; color: transparent; font-size: 0; line-height: 0; white-space: nowrap; }
.topbar-actions > .primary-button .material-symbols-rounded { position: absolute; top: 50%; left: 50%; color: #fff; font-size: 30px; line-height: 1; transform: translate(-50%, -50%); }
.topbar-actions > .quick-actions-trigger { flex-basis: 40px; width: 40px; height: 40px; min-height: 40px; border-radius: 11px; }
.topbar-actions > .quick-actions-trigger .material-symbols-rounded { font-size: 24px; }
.quick-actions-trigger.active { box-shadow: 0 13px 30px rgba(25,176,0,.32), 0 0 0 4px rgba(25,176,0,.12); transform: translateY(-1px); }
.quick-actions-menu { position: absolute; z-index: 65; top: calc(100% + 12px); inset-inline-end: 0; width: min(320px, calc(100vw - 28px)); padding: 10px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: color-mix(in srgb, var(--surface) 94%, #e9fff0); box-shadow: 0 24px 60px rgba(10,25,15,.18); text-align: initial; }
.quick-actions-menu::before { content: ''; position: absolute; top: -7px; inset-inline-end: 17px; width: 14px; height: 14px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); background: inherit; transform: rotate(45deg); }
.quick-actions-menu header { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 9px 13px; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); }
.quick-actions-spark { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #078700; background: linear-gradient(135deg, #dcffdb, #bff7bd); font-size: 21px; }
.quick-actions-menu header strong,.quick-actions-menu header small { display: block; }.quick-actions-menu header strong { font-size: 15px; line-height: 1.35; }.quick-actions-menu header small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quick-actions-menu button { position: relative; display: flex; width: 100%; align-items: center; gap: 11px; margin-top: 7px; padding: 10px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); background: transparent; text-align: start; transition: .18s ease; }
.quick-actions-menu button:hover { border-color: #ccefc9; background: rgba(236,255,233,.82); transform: translateY(-1px); }
.quick-action-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: #078700; background: #e3fbe0; font-size: 22px; }
.quick-actions-menu button strong,.quick-actions-menu button small { display: block; }.quick-actions-menu button strong { font-size: 13px; line-height: 1.35; }.quick-actions-menu button small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.notifications-panel { position: absolute; z-index: 50; top: 67px; left: 116px; width: 350px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 50px rgba(10,25,15,.15); }.notifications-panel header { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 12px; border-bottom: 1px solid var(--line); }.notifications-panel header strong { font-size: 13px; }.notifications-panel header button { border: 0; color: var(--brand-dark); background: transparent; font-size: 9px; }.notifications-panel article { display: flex; gap: 11px; padding: 12px 8px; border-bottom: 1px solid #f0f2f0; }.notifications-panel article:last-child { border: 0; }.notification-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: 17px; }.notification-icon.success { color: #168b05; background: #eaf8e8; }.notification-icon.warning { color: #c27a00; background: #fff5df; }.notification-icon.info { color: #087fae; background: #e8f6fc; }.notifications-panel article strong { display: block; font-size: 10px; }.notifications-panel article p { margin: 3px 0; color: var(--muted); font-size: 9px; }.notifications-panel article small { color: #a4ada7; font-size: 8px; }

.page { max-width: 1600px; margin: 0 auto; padding: 30px 34px 45px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }.eyebrow { display: block; margin-bottom: 4px; color: var(--brand-dark); font-size: 9px; font-weight: 800; }.page-heading h1 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.45; letter-spacing: -.04em; }.page-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.date-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #667269; background: var(--surface); font-size: 9px; }.date-chip .material-symbols-rounded { color: var(--brand-dark); font-size: 17px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }.kpi-card { position: relative; min-width: 0; min-height: 166px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.kpi-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; font-size: 19px; }.kpi-icon.green { color: #148b03; background: #eaf8e8; }.kpi-icon.blue { color: #0781b5; background: #e7f5fc; }.kpi-icon.purple { color: #7445c2; background: #f0eafd; }.kpi-icon.orange { color: #c87800; background: #fff3dc; }.trend { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; direction: ltr; }.trend .material-symbols-rounded { font-size: 14px; }.trend.up { color: #149002; }.trend.down { color: #e44949; }.kpi-card > small { display: block; color: var(--muted); font-size: 9px; }.kpi-card > strong { display: block; margin-top: 2px; font-size: 26px; line-height: 1.4; letter-spacing: -.03em; direction: ltr; text-align: right; }.kpi-card > p { margin: 0; color: #9aa39d; font-size: 8px; }.spark { position: absolute; left: 17px; bottom: 18px; display: flex; align-items: end; gap: 3px; width: 62px; height: 28px; opacity: .75; }.spark i { flex: 1; min-height: 4px; border-radius: 3px; background: linear-gradient(to top, #b9e8b2, var(--brand)); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, .75fr); gap: 16px; margin-bottom: 16px; }.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.panel-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 20px 0; }.panel-header h2 { margin: 0; font-size: 13px; }.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.panel-header select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #6c766f; background: #fff; font-size: 8px; }
.performance-panel { min-height: 354px; }.chart-summary { display: flex; align-items: flex-end; justify-content: space-between; margin: 19px 21px 0; }.chart-summary div:first-child strong,.chart-summary div:first-child span { display: block; }.chart-summary div:first-child strong { font-size: 23px; line-height: 1.2; direction: ltr; }.chart-summary div:first-child span { color: var(--muted); font-size: 8px; }.chart-legend { display: flex; gap: 15px; color: var(--muted); font-size: 8px; }.chart-legend span { display: flex; align-items: center; gap: 5px; }.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }.legend-current { background: var(--brand); }.legend-previous { background: #dce5dd; }
.bar-chart { position: relative; display: flex; align-items: end; justify-content: space-around; height: 205px; padding: 10px 20px 20px; direction: rtl; }.chart-lines { position: absolute; inset: 14px 20px 39px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }.chart-lines i { display: block; border-top: 1px dashed #eef1ee; }.bar-group { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 10%; height: 100%; }.bars { display: flex; align-items: end; gap: 4px; width: 22px; height: 145px; }.bars i { width: 9px; min-height: 4px; border-radius: 5px 5px 2px 2px; transition: height .4s ease; }.bars .previous { background: #dfe7e0; }.bars .current { background: linear-gradient(to top, #22bb0b, #5fd94d); box-shadow: 0 4px 10px rgba(25,176,0,.12); }.bar-group > span { margin-top: 9px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; color: #168d06; background: #ecf9ea; font-size: 8px; font-weight: 700; }.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(25,176,0,.12); animation: pulse 1.8s infinite; }.radial-wrap { display: grid; place-items: center; padding: 20px 0 16px; }.radial { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) 0 96%, #e8eee9 96% 100%); }.radial::before { content: ''; grid-area: 1/1; width: 86px; height: 86px; border-radius: 50%; background: var(--surface); }.radial div { z-index: 1; grid-area: 1/1; text-align: center; }.radial strong,.radial span { display: block; }.radial strong { font-size: 20px; direction: ltr; }.radial span { color: var(--muted); font-size: 8px; }.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 18px 16px; padding: 12px 0; border-block: 1px solid var(--line); }.live-stats > div { display: flex; align-items: flex-start; justify-content: center; gap: 6px; border-left: 1px solid var(--line); }.live-stats > div:last-child { border: 0; }.dot { width: 5px; height: 5px; margin-top: 4px; border-radius: 50%; }.dot.green { background: var(--brand); }.dot.orange { background: #f59e0b; }.dot.red { background: #ef4444; }.live-stats p { margin: 0; color: var(--muted); font-size: 7px; }.live-stats strong { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; }.live-panel > .secondary-button { display: flex; width: calc(100% - 36px); margin: 0 18px 18px; }
.lower-grid { grid-template-columns: minmax(0, 1.8fr) minmax(285px, .75fr); }.organizations-panel,.alerts-panel { min-height: 310px; }.text-button { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--brand-dark); background: none; font-size: 9px; font-weight: 700; }.text-button .material-symbols-rounded { font-size: 15px; }
.table-wrap { width: 100%; overflow-x: auto; }.organizations-panel table { margin-top: 10px; }table { width: 100%; border-collapse: collapse; white-space: nowrap; }th,td { padding: 11px 16px; border-bottom: 1px solid #edf0ed; text-align: right; font-size: 9px; }th { color: #8a958e; background: #fafbfa; font-size: 8px; font-weight: 600; }tbody tr { transition: background .15s; }tbody tr:hover { background: #fbfdfb; }tbody tr:last-child td { border-bottom: 0; }.org-cell { display: flex; align-items: center; gap: 9px; }.org-cell > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--org-color); background: color-mix(in srgb, var(--org-color) 11%, white); font-size: 8px; font-weight: 800; }.org-cell strong,.org-cell small { display: block; }.org-cell strong { font-size: 9px; }.org-cell small { margin-top: 1px; color: #9da59f; font: 7px Arial; direction: ltr; text-align: right; }.state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; font-size: 7px; font-weight: 700; }.state i { width: 5px; height: 5px; border-radius: 50%; }.state.active { color: #188b08; background: #edf9eb; }.state.active i { background: #25b70f; }.state.pending { color: #b87509; background: #fff5e4; }.state.pending i { background: #f59e0b; }.state.paused { color: #c74444; background: #fff0f0; }.state.paused i { background: #ef4444; }.row-action { display: grid; width: 26px; height: 26px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #8b958e; background: transparent; }.row-action:hover,.row-action.active { color: var(--ink); background: #f0f3f0; }
.alert-count { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #d33b3b; background: #ffeded; font-size: 9px; font-weight: 800; }.alert-item { display: flex; align-items: flex-start; gap: 10px; margin: 12px 17px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.alert-item:last-child { border-bottom: 0; }.alert-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: 17px; }.alert-icon.danger { color: #db4545; background: #ffeded; }.alert-icon.warning { color: #c77a00; background: #fff3dd; }.alert-icon.info { color: #1481ae; background: #e9f5fb; }.alert-item div { flex: 1; min-width: 0; }.alert-item strong { display: block; font-size: 9px; }.alert-item p { margin: 3px 0; color: var(--muted); font-size: 8px; line-height: 1.6; }.alert-item small { color: #a2aba4; font-size: 7px; }.alert-item button { align-self: center; padding: 0; border: 0; color: #a0aaa3; background: none; }.alert-item button:hover { color: var(--brand-dark); }
.management-panel { min-height: 480px; overflow: hidden; }.management-tools { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }.management-tools > div { display: flex; gap: 8px; }.filter-search { display: flex; align-items: center; gap: 7px; width: 300px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #95a099; }.filter-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }.filter-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); color: #657168; background: #fff; }.empty-state { padding: 75px 20px; color: var(--muted); text-align: center; }.empty-state > .material-symbols-rounded { font-size: 42px; color: #bdc6bf; }.empty-state h3 { margin: 10px 0 3px; color: var(--ink); font-size: 14px; }.empty-state p { margin: 0; font-size: 10px; }
.not-found-card { position: relative; display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1fr); gap: 28px; min-height: 470px; padding: 42px; overflow: hidden; align-items: center; background: radial-gradient(circle at 18% 20%, rgba(25,176,0,.12), transparent 30%), var(--surface); }
.not-found-card::after { content: ''; position: absolute; inset-inline-end: -120px; bottom: -150px; width: 360px; height: 360px; border: 1px solid rgba(25,176,0,.12); border-radius: 50%; pointer-events: none; }
.not-found-art { position: relative; display: grid; min-height: 300px; place-items: center; }
.not-found-code { color: color-mix(in srgb, var(--brand) 22%, transparent); font-size: clamp(86px, 13vw, 168px); font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.not-found-orbit { position: absolute; width: min(240px, 48vw); aspect-ratio: 1; border: 1px dashed rgba(25,176,0,.28); border-radius: 50%; animation: notFoundOrbit 15s linear infinite; }
.not-found-orbit::before { content: ''; position: absolute; top: 17px; inset-inline-start: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 8px rgba(25,176,0,.1); }
.not-found-icon { position: absolute; display: grid; width: 76px; height: 76px; place-items: center; border-radius: 22px; color: var(--brand-dark); background: var(--brand-soft); box-shadow: 0 18px 42px rgba(25,176,0,.16); font-size: 38px; }
.not-found-copy { position: relative; z-index: 1; max-width: 620px; }
.not-found-copy h1 { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.15; letter-spacing: -.05em; }
.not-found-copy p { max-width: 540px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@keyframes notFoundOrbit { to { transform: rotate(360deg); } }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(7,18,10,.62); backdrop-filter: blur(4px); animation: fadeIn .18s; }.modal { width: min(540px, 100%); overflow: visible; border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgba(0,0,0,.25); animation: slideUp .25s ease; }.modal > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 21px 23px 18px; border-bottom: 1px solid var(--line); }.modal > header > div { display: flex; gap: 12px; }.modal-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); }.modal h2 { margin: 0; font-size: 15px; }.modal header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.modal form { display: grid; gap: 15px; padding: 22px 23px; }.modal label { display: grid; gap: 6px; color: #445148; font-size: 9px; font-weight: 700; }.modal input,.modal select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe5e0; border-radius: 10px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; }.modal input:focus,.modal select:focus { border-color: rgba(25,176,0,.55); box-shadow: 0 0 0 3px rgba(25,176,0,.07); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: -80px; display: flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 12px; color: #fff; background: #142019; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 10px; font-weight: 600; opacity: 0; transform: translateX(-50%); transition: .3s ease; }.toast .material-symbols-rounded { color: #62da50; }.toast.error { background: #241615; }.toast.error .material-symbols-rounded { color: #ff8f85; }.toast.show { bottom: 25px; opacity: 1; }
.mobile-overlay { display: none; }

.dark-theme { --ink: #e9f0ea; --muted: #89958d; --line: #29352d; --surface: #17221b; --canvas: #101712; --shadow: 0 12px 30px rgba(0,0,0,.15); }.dark-theme .topbar { border-color: #29352d; background: rgba(23,34,27,.9); }.dark-theme .search-box,.dark-theme .icon-button,.dark-theme .secondary-button,.dark-theme .filter-button,.dark-theme .panel-header select { color: #a8b3ab; border-color: #324039; background: #1c2920; }.dark-theme .search-box kbd { color: #8d9a91; border-color: #39473e; background: #243129; }.dark-theme th { background: #1b281f; }.dark-theme tbody tr:hover { background: #1a271e; }.dark-theme .chart-lines i,.dark-theme th,.dark-theme td { border-color: #29352d; }.dark-theme .bars .previous { background: #354239; }.dark-theme .org-cell > span { background: #243128; }.dark-theme .modal input,.dark-theme .modal select { color: var(--ink); border-color: #344139; background: #1c2920; }
.dark-theme .sirb-dropdown-trigger,.dark-theme .sirb-dropdown-menu { border-color: #344139; background: #1c2920; }.dark-theme .sirb-dropdown-icon { color: #9cf28e; background: #1d3021; }.dark-theme .sirb-dropdown-search { border-color: #344139; }.dark-theme .sirb-dropdown-search input { color: var(--ink); }.dark-theme .sirb-dropdown-options button:hover,.dark-theme .sirb-dropdown-options button.selected { color: #9cf28e; background: #1d3021; }
.dark-theme .sirb-dropdown.invalid .sirb-dropdown-trigger,.dark-theme .modal .field-invalid input { border-color: #8f3d3d; background: #2a1e1e; box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.dark-theme .sirb-dropdown.invalid .sirb-dropdown-icon { color: #ff9a9a; background: #3a2323; }
.dark-theme .field-invalid,.dark-theme .field-error,.dark-theme .field-error .material-symbols-rounded { color: #ff9a9a !important; }

@keyframes pulse { 50% { opacity: .4; box-shadow: 0 0 0 6px rgba(25,176,0,.03); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid,.lower-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); }
}

@media (max-width: 940px) {
  body.nav-open { overflow: hidden; }.sidebar { width: min(280px, calc(100vw - 44px)); transform: translateX(100%); transition: transform .25s ease; will-change: transform; }.nav-open .sidebar { transform: translateX(0); }.nav-open .mobile-overlay { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(3,12,6,.5); touch-action: none; }
  .main-content { margin-right: 0; }.menu-button { display: grid !important; }.topbar { padding: 0 22px; }.page { padding-inline: 22px; }.dashboard-grid,.lower-grid { grid-template-columns: 1fr; }.alerts-panel { min-height: auto; }.search-box { width: 300px; }
}

@media (max-width: 640px) {
  .topbar { height: 67px; gap: 8px; padding: 0 12px; }.topbar-start,.topbar-actions { min-width: 0; gap: 6px; }.page { padding: 23px 14px 35px; }.search-box { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; justify-content: center; }.search-box input,.search-box kbd { display: none; }.search-box.focused { position: absolute; z-index: 40; inset: 9px 12px; display: flex; width: auto; padding: 0 12px; }.search-box.focused input { display: block; }.topbar-actions > .primary-button { flex: 0 0 40px; width: 40px; padding: 0; font-size: 0; }.topbar-actions > .primary-button .material-symbols-rounded { font-size: 21px; }.topbar-actions .logout-button { display: none; }.page-heading { align-items: flex-start; gap: 16px; }.date-chip { display: none; }.page-heading > .primary-button { width: 42px; padding: 0; font-size: 0; }.page-heading h1 { font-size: 21px; }.kpi-grid { grid-template-columns: 1fr; gap: 11px; }.kpi-card { min-height: 150px; }.chart-legend { display: none; }.performance-panel { min-height: 330px; }.bar-chart { padding-inline: 8px; }.panel-header { padding-inline: 15px; }.lower-grid { gap: 11px; }.management-tools { align-items: stretch; flex-direction: column; }.management-tools > div,.filter-search { width: 100%; }.filter-button { flex: 1; }.form-row { grid-template-columns: 1fr; }.modal { max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 17px; }.modal > header,.modal form { padding-inline: 18px; }.notifications-panel { position: fixed; top: 66px; right: 10px; left: 10px; width: auto; max-height: calc(100dvh - 78px); overflow-y: auto; }.toast { width: calc(100% - 28px); justify-content: center; }.table-wrap { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Authentication */
.auth-page { overflow-x: hidden; background: #fff; }
.login-page { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(510px, .86fr); min-height: 100vh; direction: ltr; }
.login-visual { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 36px 55px 28px; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 72%, rgba(68,211,46,.24), transparent 30%), linear-gradient(145deg, #15251a, #09110c 72%); direction: rtl; isolation: isolate; }
.login-visual::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 90%); }
.login-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; }.login-brand strong,.login-brand small { display: block; }.login-brand strong { font-size: 22px; line-height: 1; }.login-brand small { color: #86988c; font-size: 9px; line-height: 1.25; }
.visual-content { position: relative; z-index: 2; width: min(580px, 95%); margin: auto 0; }.visual-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(118,224,102,.18); border-radius: 20px; color: #b8c8bc; background: rgba(55,110,60,.13); font-size: 9px; }.visual-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #54dd3f; box-shadow: 0 0 0 4px rgba(84,221,63,.09); }.visual-content h1 { margin: 22px 0 16px; font-size: clamp(39px,4vw,64px); line-height: 1.32; letter-spacing: -.055em; }.visual-content h1 em { color: #61df4d; font-style: normal; }.visual-content > p { width: min(470px,90%); margin: 0; color: #a4b1a8; font-size: 13px; line-height: 2; }.visual-metrics { display: flex; gap: 35px; margin-top: 43px; }.visual-metrics div { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.1); }.visual-metrics div:first-child { border: 0; }.visual-metrics strong,.visual-metrics span { display: block; }.visual-metrics strong { font-size: 21px; direction: ltr; text-align: right; }.visual-metrics span { margin-top: 3px; color: #7f9185; font-size: 8px; }.visual-footer { display: flex; align-items: center; gap: 7px; margin: 0; color: #718077; font-size: 8px; }.visual-footer .material-symbols-rounded { color: #4aa53e; font-size: 16px; }.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgba(85,217,66,.11); border-radius: 50%; }.orbit-one { right: -250px; bottom: -300px; width: 750px; height: 750px; }.orbit-two { right: -100px; bottom: -160px; width: 470px; height: 470px; box-shadow: 0 0 90px rgba(25,176,0,.05) inset; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 40px clamp(35px,6vw,95px) 20px; background: #fff; direction: rtl; }.login-card { width: min(430px,100%); margin: auto; }.login-card header { margin-bottom: 25px; }.login-eyebrow { display: block; margin-bottom: 4px; color: var(--brand-dark); font-size: 9px; font-weight: 800; }.login-card h2 { margin: 0; color: #142019; font-size: clamp(23px,2.2vw,30px); letter-spacing: -.04em; }.login-card header > p { margin: 5px 0 0; color: #7c8980; font-size: 10px; }.mobile-login-logo,.mobile-login-brand { display: none; }
.social-login-grid { display: grid; grid-template-columns: 1fr; gap: 10px; direction: ltr; }.social-login-grid button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid #dfe5e0; border-radius: 12px; color: #26322a; background: #fff; font-size: 9px; font-weight: 700; direction: rtl; transition: .2s; }.social-login-grid button:hover:not(:disabled) { border-color: #b8c5bb; background: #fafcfa; transform: translateY(-1px); }.social-login-grid button:disabled,.login-submit:disabled { cursor: not-allowed; opacity: .55; }.provider-logo { display: block; flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }.google-logo { width: 18px; height: 18px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #98a29b; font-size: 8px; }.login-divider::before,.login-divider::after { content: ''; flex: 1; height: 1px; background: #e7ebe8; }.phone-login label { display: block; margin-bottom: 7px; color: #3d4941; font-size: 9px; font-weight: 700; }.phone-input { display: flex; align-items: center; height: 47px; overflow: hidden; border: 1px solid #dfe5e0; border-radius: 11px; transition: .2s; }.phone-input:focus-within { border-color: rgba(25,176,0,.55); box-shadow: 0 0 0 3px rgba(25,176,0,.07); }.phone-input span { display: grid; height: 100%; padding: 0 13px; place-items: center; border-right: 1px solid #e4e8e5; color: #59655d; background: #f7f9f7; font: 11px Arial; }.phone-input input { flex: 1; height: 100%; padding: 0 13px; border: 0; outline: 0; color: #172019; background: #fff; font: 12px Arial; }.phone-login small { display: block; margin-top: 6px; color: #98a19b; font-size: 8px; }.login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 19px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#28bd11,#148f04); box-shadow: 0 9px 22px rgba(25,176,0,.2); font-size: 10px; font-weight: 800; transition: .2s; }.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 27px rgba(25,176,0,.27); }.button-loading { display: flex; align-items: center; gap: 7px; }.button-loading i { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }.otp-step { position: relative; }.otp-input { width: 100%; height: 54px; border: 1px solid #dfe5e0; border-radius: 11px; outline: 0; color: #172019; background: #fff; font: 600 20px Arial; text-align: center; letter-spacing: .4em; direction: ltr; }.otp-input:focus { border-color: rgba(25,176,0,.55); box-shadow: 0 0 0 3px rgba(25,176,0,.07); }.back-phone { position: absolute; top: -3px; left: 0; display: flex; align-items: center; gap: 3px; padding: 0; border: 0; color: var(--brand-dark); background: none; font-size: 8px; }.back-phone .material-symbols-rounded { font-size: 14px; }.login-help { margin: 22px 0 0; color: #8b958e; font-size: 8px; text-align: center; }.login-help a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }.login-form-side > footer { margin: auto auto 0; color: #a0aaa3; font-size: 7px; }.login-form-side > footer a { color: #7a867e; text-decoration: none; }
.auth-config-alert,.auth-error { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; padding: 10px 11px; border-radius: 10px; }.auth-config-alert { color: #9a680e; border: 1px solid #f2dfb8; background: #fff9ec; }.auth-error { color: #b93636; border: 1px solid #f1cece; background: #fff4f4; }.auth-config-alert > .material-symbols-rounded,.auth-error > .material-symbols-rounded { flex: 0 0 auto; margin-top: 1px; font-size: 17px; }.auth-config-alert strong { display: block; font-size: 9px; }.auth-config-alert p,.auth-error p { flex: 1; margin: 2px 0 0; font-size: 8px; line-height: 1.6; }.auth-config-alert code { direction: ltr; }.auth-error button { padding: 0; border: 0; color: inherit; background: none; }.auth-error button .material-symbols-rounded { font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; }.login-visual { display: none; }.login-form-side { padding: 35px 24px 18px; }.mobile-login-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 25px; color: var(--ink); text-decoration: none; }.mobile-login-brand .mobile-login-logo { display: grid; margin: 0; }.mobile-login-brand strong,.mobile-login-brand small { display: block; }.mobile-login-brand strong { font-size: 22px; line-height: 1; }.mobile-login-brand small { color: var(--muted); font-size: 11px; line-height: 1.25; }.login-card { max-width: 440px; } }
@media (max-width: 460px) { .social-login-grid { grid-template-columns: 1fr; }.login-form-side { justify-content: flex-start; padding-top: 26px; }.login-card { margin-top: 0; }.login-card h2 { font-size: 23px; } }

/* Readability scale */
.material-symbols-rounded { font-size: 24px; }
.main-nav a { min-height: 49px; font-size: 14px; }
.main-nav a .material-symbols-rounded { font-size: 23px; }
.nav-label { font-size: 12px; }
.brand small { font-size: 11px; }
.sidebar-card strong { font-size: 12px; }
.sidebar-card small { font-size: 10px; }
.profile-mini strong { font-size: 12px; }
.profile-mini small { font-size: 10px; }
.search-box input { font-size: 13px; }
.primary-button,.secondary-button,.filter-button { min-height: 44px; font-size: 13px; }
.notifications-panel header strong { font-size: 15px; }
.notifications-panel header button { font-size: 11px; }
.notifications-panel article strong { font-size: 12px; }
.notifications-panel article p { font-size: 11px; }
.notifications-panel article small { font-size: 10px; }
.eyebrow { font-size: 12px; }
.page-heading p { font-size: 14px; }
.date-chip { font-size: 12px; }
.kpi-card > small { font-size: 12px; }
.kpi-card > strong { font-size: 30px; }
.kpi-card > p { font-size: 11px; }
.trend { font-size: 11px; }
.trend .material-symbols-rounded { font-size: 18px; }
.kpi-icon { width: 42px; height: 42px; font-size: 23px; }
.panel-header h2 { font-size: 16px; }
.panel-header p { font-size: 12px; }
.panel-header select { font-size: 11px; }
.chart-summary div:first-child span,.chart-legend,.bar-group > span { font-size: 11px; }
.live-pill { font-size: 11px; }
.radial span { font-size: 11px; }
.live-stats p { font-size: 10px; }
.live-stats strong { font-size: 16px; }
.text-button { font-size: 12px; }
.text-button .material-symbols-rounded { font-size: 19px; }
th,td { padding-block: 14px; font-size: 13px; }
th { font-size: 12px; }
.org-cell > span { width: 36px; height: 36px; font-size: 11px; }
.org-cell strong { font-size: 13px; }
.org-cell small { font-size: 10px; }
.state { font-size: 11px; }
.row-action { width: 34px; height: 34px; }
.alert-count { width: 28px; height: 28px; font-size: 12px; }
.alert-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 22px; }
.alert-item strong { font-size: 12px; }
.alert-item p { font-size: 11px; }
.alert-item small { font-size: 10px; }
.filter-search { height: 44px; }
.filter-search input { font-size: 13px; }
.empty-state p { font-size: 12px; }
.modal h2 { font-size: 18px; }
.modal header p,.modal label { font-size: 12px; }
.modal input,.modal select { height: 46px; font-size: 13px; }
.toast { font-size: 13px; }
.login-brand small { font-size: 11px; }
.visual-kicker { font-size: 12px; }
.visual-content > p { font-size: 15px; }
.visual-metrics span,.visual-footer { font-size: 11px; }
.login-eyebrow { font-size: 12px; }
.login-card header > p { font-size: 13px; }
.social-login-grid button { min-height: 52px; font-size: 13px; }
.provider-logo { width: 24px; height: 24px; }
.google-logo { width: 21px; height: 21px; }
.login-divider { font-size: 11px; }
.phone-login label { font-size: 12px; }
.phone-input { height: 52px; }
.phone-input span,.phone-input input { font-size: 14px; }
.phone-login small { font-size: 11px; }
.login-submit { min-height: 52px; font-size: 14px; }
.back-phone,.login-help { font-size: 11px; }
.login-form-side > footer { font-size: 10px; }
.auth-config-alert strong { font-size: 12px; }
.auth-config-alert p,.auth-error p { font-size: 11px; }
.auth-config-alert > .material-symbols-rounded,.auth-error > .material-symbols-rounded { font-size: 22px; }
.auth-error button .material-symbols-rounded { font-size: 20px; }

/* Secondary text contrast */
.login-card header > p { color: #526158; }
.login-divider { color: #637168; }
.phone-login small { color: #5f6e64; }
.phone-input input::placeholder { color: #66746b; opacity: 1; }
.login-help { color: #59675e; }
.login-form-side > footer { color: #66746b; }
.page-heading p,.panel-header p,.kpi-card > small,.live-stats p,
.alert-item p,.notifications-panel article p { color: var(--muted); }

/* Language and bidirectional layout */
.language-switch { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #536158; background: var(--surface); font-size: 12px; font-weight: 700; line-height: 1; }
.language-switch:hover { color: var(--brand-dark); border-color: #bcdcb7; }
.language-switch .material-symbols-rounded { font-size: 19px; }
.login-language-switch { position: absolute; z-index: 4; top: 26px; right: 30px; }
.dark-theme .topbar .language-switch { color: #c5d0c8; border-color: #3a493f; background: #1c2920; }
.dark-theme .topbar .language-switch:hover { color: #f1f7f2; border-color: #5d7163; background: #26362b; }
.dark-theme .topbar .language-switch .material-symbols-rounded { color: #aab8ae; }
.dark-theme .quick-actions-menu { border-color: #2e4436; background: linear-gradient(180deg, #14241a, #101d15); box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.dark-theme .quick-actions-menu button:hover { border-color: #2d6430; background: rgba(36,74,42,.42); }
.dark-theme .quick-actions-spark,.dark-theme .quick-action-icon { color: #62ee52; background: rgba(72,211,55,.14); }
.dark-theme .login-language-switch { color: #536158; border-color: #d7e2da; background: #fff; }
.dark-theme .login-language-switch:hover { color: var(--brand-dark); border-color: #bcdcb7; background: #f7fff5; }
.login-form-side { position: relative; }
.ltr { font-family: Cairo, Arial, sans-serif; }
.ltr .sidebar { inset: 0 auto 0 0; }
.ltr .main-content { margin-right: 0; margin-left: 260px; }
.ltr .main-nav a.active { box-shadow: inset 3px 0 var(--brand); }
.ltr .main-nav a:hover { transform: translateX(2px); }
.ltr .main-nav a b,.ltr .profile-mini button { margin-right: 0; margin-left: auto; }
.ltr .status-dot { margin-right: 0; margin-left: auto; }
.ltr .page-heading,.ltr .panel-header,.ltr .management-tools,.ltr .modal,.ltr .notifications-panel { text-align: left; }

/* Student onboarding and trip-plan roster */
.student-toolbar { gap: 12px; }
.student-filter-panel { width: min(460px, calc(100vw - 24px)); }
.student-monogram { color: #6750a4; background: #f0ebff; }
.students-table { min-width: 1120px; table-layout: fixed; }
.students-table th:nth-child(1) { width: 25%; }
.students-table th:nth-child(2) { width: 24%; }
.students-table th:nth-child(3) { width: 23%; }
.students-table th:nth-child(4) { width: 18%; }
.students-table th:nth-child(5) { width: 10%; }
.students-table td { vertical-align: middle; }
.students-table .org-link,
.students-table .table-stacked-value,
.students-table .student-readiness,
.students-table .count-chip,
.students-table .state { min-width: 0; }
.students-table .org-link span:last-child,
.students-table .table-stacked-value { overflow: hidden; }
.students-table .org-link strong,
.students-table .org-link small,
.students-table .table-stacked-value strong,
.students-table .table-stacked-value small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.students-table .state { max-width: 100%; }
.students-table .state .chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-readiness { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.student-readiness .count-chip { max-width: 100%; overflow: hidden; }
.student-create-modal { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1040px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 28px 90px rgba(18,38,24,.2); }
.student-create-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--brand-soft)), var(--surface)); }
.student-create-header > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.student-create-header .modal-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; font-size: 22px; box-shadow: none; }
.student-create-header h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1.25; }
.student-create-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; }
.student-step-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; white-space: nowrap; }
.student-create-modal .student-create-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; min-height: 0; gap: 0; padding: 0; overflow: hidden; background: transparent; }
.student-create-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 14px 22px; border-bottom: 1px solid var(--line); background: transparent; scrollbar-width: none; }
.student-create-steps::-webkit-scrollbar { display: none; }
.student-create-steps button { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 60px; padding: 8px 10px; border: 1px solid transparent; border-radius: 16px; color: var(--muted); background: transparent; text-align: start; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.student-create-steps button:not(:disabled):hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 24%, var(--line)); background: var(--surface); }
.student-create-steps button:disabled { cursor: default; opacity: .72; }
.student-create-steps button.active { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--surface); box-shadow: 0 8px 24px rgba(18,38,24,.07); }
.student-create-steps button.complete { background: color-mix(in srgb, var(--surface) 88%, var(--brand-soft)); }
.student-create-step-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: #728078; background: var(--surface); font-size: 22px; transition: .18s ease; }
.student-create-steps button.active .student-create-step-icon { color: #fff; border-color: var(--brand); background: linear-gradient(145deg, #24b80c, #138f03); }
.student-create-steps button.complete .student-create-step-icon { color: var(--brand-dark); border-color: #acdca4; background: var(--brand-soft); }
.student-create-steps button span:last-child { display: grid; overflow: hidden; color: inherit; line-height: 1.35; }
.student-create-steps button strong { overflow: hidden; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.student-create-steps button.active span:last-child,.student-create-steps button.complete span:last-child { color: var(--brand-dark); }
.student-create-body { min-height: 0; padding: 22px 24px; overflow-y: auto; overflow-x: visible; background: transparent; }
.student-create-step { display: grid; width: 100%; gap: 18px; align-content: start; animation: fadeIn .18s ease; }
.student-create-step-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.student-create-step-heading > .material-symbols-rounded { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 21px; }
.student-create-step-heading div { display: grid; gap: 2px; min-width: 0; }
.student-create-step-heading strong { color: var(--ink); font-size: 17px; font-weight: 900; line-height: 1.3; }
.student-create-step-heading small { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.55; }
.student-form-grid { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.student-form-grid.compact { gap: 12px; }
.student-form-grid .full,.student-form-grid .full-span { grid-column: 1 / -1; }
.student-field-spacer { min-height: 88px; }
.student-create-modal .student-field { display: grid; align-content: start; gap: 7px; min-width: 0; min-height: 88px; color: #445148; font-size: 12px; font-weight: 800; line-height: 1.35; }
.student-field input { width: 100%; height: 46px; padding: 0 13px; border-radius: 13px; font-size: 13px; font-weight: 800; }
.student-create-modal .sirb-dropdown { display: grid; align-content: start; gap: 7px; min-height: 88px; }
.student-create-modal .sirb-dropdown-trigger { min-height: 46px; border-radius: 13px; }
.student-create-modal .sirb-dropdown-copy small { font-size: 12px; font-weight: 800; }
.student-create-modal .sirb-dropdown-copy strong { font-size: 13px; font-weight: 900; }
.student-create-modal .sirb-dropdown-menu { border-radius: 13px; }
.student-create-modal .sirb-dropdown-menu.above { box-shadow: 0 -18px 42px rgba(10,25,15,.16); }
.student-create-modal .sirb-dropdown-search { display: flex; align-items: center; min-height: 42px; height: 42px; padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.student-create-modal .sirb-dropdown-search input { height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 13px; font-weight: 700; }
.student-create-modal .field-error { display: flex; align-items: center; gap: 5px; min-height: 17px; margin: 0; color: #d92d20; font-size: 11px; font-weight: 800; line-height: 1.35; }
.student-create-modal .field-error .material-symbols-rounded { font-size: 15px; }
.student-create-error { grid-column: 1 / -1; }
.student-create-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid #d5ead1; border-radius: 13px; color: #3f6045; background: #f3faf2; font-size: 11px; font-weight: 800; line-height: 1.65; }
.student-create-note.compact { align-items: center; padding: 10px 12px; border-style: dashed; color: var(--muted); background: transparent; }
.student-create-note > .material-symbols-rounded { flex: 0 0 auto; color: var(--brand-dark); font-size: 19px; }
.student-create-note.success { color: #315b38; border-color: #cce8c8; background: #f1faf0; }
.student-create-note strong { display: block; font-size: 12px; }
.student-create-note p { margin: 3px 0 0; color: #67806b; font-size: 10px; line-height: 1.6; }
.student-skip-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--surface) 96%, var(--brand-soft)); }
.student-skip-card > .material-symbols-rounded { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 22px; }
.student-skip-card strong { display: block; color: var(--ink); font-size: 13px; font-weight: 900; }
.student-skip-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.55; }
.student-skip-card .secondary-button { white-space: nowrap; }
.student-guardian-list { display: grid; gap: 10px; }
.guardian-form-card { display: grid; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 97%, var(--canvas)); }
.guardian-form-card > header { display: flex; align-items: center; justify-content: space-between; }
.guardian-form-card > header > div { display: flex; align-items: center; gap: 8px; }
.guardian-number { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 800; }
.guardian-form-card > header .icon-button { width: 32px; height: 32px; color: #b42318; }
.primary-contact-toggle { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.primary-contact-toggle.active { color: var(--brand-dark); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-soft); }
.add-guardian-button { width: fit-content; }
.student-add-grade { width: fit-content; }
.nested-modal { z-index: 120; }
.grade-modal { width: min(520px, 100%); }
.grade-section-list { display: grid; gap: 9px; }
.grade-section-list article { display: grid; grid-template-columns: 1fr 36px; align-items: end; gap: 8px; }
.grade-section-list article .icon-button { margin-bottom: 4px; color: #b42318; }
.student-check-row { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; cursor: pointer; }
.student-check-row input { width: 18px !important; height: 18px !important; accent-color: var(--brand); }
.student-check-row span { display: grid; gap: 2px; }
.student-check-row small { color: var(--muted); font-weight: 500; }
.student-toggle-card { position: relative; display: grid !important; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px !important; min-height: 70px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: color-mix(in srgb, var(--surface) 96%, var(--canvas)); cursor: pointer; transition: .18s ease; }
.student-toggle-card input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.student-toggle-card > .material-symbols-rounded { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 22px; }
.student-toggle-card > span:last-child { display: grid; gap: 2px; }
.student-toggle-card strong { font-size: 12px; font-weight: 900; }
.student-toggle-card small { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.5; }
.student-toggle-card.active { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); background: color-mix(in srgb, var(--surface) 89%, var(--brand-soft)); box-shadow: 0 8px 22px rgba(25,176,0,.08); }
.student-option-card { grid-template-columns: 18px 36px 1fr !important; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 96%, var(--canvas)); transition: .2s ease; }
.student-option-card.active { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--surface) 91%, var(--brand-soft)); box-shadow: 0 6px 18px rgba(25,176,0,.06); }
.student-option-card .student-option-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 19px; }
.student-address-fields { display: grid; gap: 12px; }
.student-review-screen { display: grid; gap: 16px; }
.student-review-hero { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, var(--brand-soft)), var(--surface)); box-shadow: 0 12px 30px rgba(18,38,24,.06); }
.student-review-hero .student-monogram { width: 58px; height: 58px; font-size: 17px; }
.student-review-hero h3 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 900; line-height: 1.25; }
.student-review-hero p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.5; }
.student-review-status { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 12px; font-weight: 900; white-space: nowrap; }
.student-review-status .material-symbols-rounded { font-size: 19px; }
.student-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-review-section { display: grid; align-content: start; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface) 96%, var(--canvas)); }
.student-review-section.wide { grid-column: 1 / -1; }
.student-review-section > header { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.student-review-section > header > .material-symbols-rounded { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 22px; }
.student-review-section > header div { display: grid; gap: 2px; min-width: 0; }
.student-review-section > header strong { color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.3; }
.student-review-section > header small { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.student-review-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.student-review-details.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-review-details div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--line) 74%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--surface) 92%, var(--canvas)); }
.student-review-details dt { color: var(--muted); font-size: 11px; font-weight: 900; line-height: 1.3; }
.student-review-details dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.45; }
.student-review-guardians { display: grid; gap: 10px; }
.student-review-guardian { display: grid; gap: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--surface) 93%, var(--canvas)); }
.student-review-guardian > header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.student-review-guardian > header .guardian-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 900; }
.student-review-guardian > header div { display: grid; gap: 1px; min-width: 0; }
.student-review-guardian > header strong { overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.student-review-guardian > header small { color: var(--muted); font-size: 12px; font-weight: 800; }
.student-review-guardian > header em { padding: 5px 9px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-style: normal; font-weight: 900; white-space: nowrap; }
.student-review-empty { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px; border: 1px dashed color-mix(in srgb, var(--line) 86%, var(--muted)); border-radius: 15px; color: var(--muted); background: color-mix(in srgb, var(--surface) 94%, var(--canvas)); }
.student-review-empty > .material-symbols-rounded { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: 20px; }
.student-review-empty strong { display: block; color: var(--ink); font-size: 14px; font-weight: 900; }
.student-review-empty p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.5; }
.student-support-panel,.student-support-form { display: grid; gap: 12px; align-content: start; }
.student-support-panel { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 96%, var(--canvas)); }
.student-support-choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.student-support-choice { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: color-mix(in srgb, var(--surface) 96%, var(--canvas)); text-align: start; font: inherit; cursor: pointer; transition: .18s ease; }
.student-support-choice > .material-symbols-rounded { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 22px; }
.student-support-choice > span:last-child { display: grid; gap: 2px; min-width: 0; }
.student-support-choice strong { color: var(--ink); font-size: 13px; font-weight: 900; line-height: 1.35; }
.student-support-choice small { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.45; }
.student-support-choice.active { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); background: color-mix(in srgb, var(--surface) 89%, var(--brand-soft)); box-shadow: 0 8px 22px rgba(25,176,0,.08); }
.student-create-modal .student-create-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 86px; padding: 16px 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, transparent), color-mix(in srgb, var(--surface) 90%, var(--canvas))); }
.student-footer-secondary,.student-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.student-footer-secondary { justify-content: flex-start; }
.student-footer-actions { justify-content: flex-end; margin-inline-start: auto; padding-inline-end: 8px; }
.student-create-footer .secondary-button,.student-create-footer .primary-button,.student-create-footer .student-skip-button { min-width: 142px; min-height: 52px; justify-content: center; border-radius: 16px; font-size: 14px; font-weight: 900; letter-spacing: -.01em; }
.student-create-footer .primary-button { min-width: 172px; box-shadow: 0 16px 30px rgba(25,176,0,.24); }
.student-create-footer .secondary-button { border-color: color-mix(in srgb, var(--line) 86%, var(--ink)); background: color-mix(in srgb, var(--surface) 94%, var(--canvas)); }
.student-create-footer .student-cancel-button { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; min-height: 52px; padding: 0 18px; border: 1px solid transparent; border-radius: 16px; color: var(--muted); background: transparent; box-shadow: none; font: inherit; font-size: 14px; font-weight: 900; }
.student-create-footer .student-cancel-button:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 86%, var(--canvas)); }
.student-skip-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); color: color-mix(in srgb, var(--ink) 82%, var(--brand-dark)); background: color-mix(in srgb, var(--surface) 92%, var(--brand-soft)); font: inherit; cursor: pointer; transition: .18s ease; }
.student-skip-button .material-symbols-rounded { color: var(--brand-dark); font-size: 20px; }
.student-skip-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); background: color-mix(in srgb, var(--surface) 86%, var(--brand-soft)); box-shadow: 0 12px 24px rgba(25,176,0,.1); }
.dark-theme .student-create-modal { border-color: #344139; background: #17221b; box-shadow: 0 28px 90px rgba(0,0,0,.44); }
.dark-theme .student-create-header { background: linear-gradient(180deg, #18241d, #17221b); }
.dark-theme .student-create-steps { border-color: #344139; background: transparent; }
.dark-theme .student-create-footer { border-color: #344139; background: linear-gradient(180deg, #17221b, #121d16); }
.dark-theme .student-create-steps button.active { background: #1c2920; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.dark-theme .student-create-steps button.complete,.dark-theme .student-option-card.active,.dark-theme .primary-contact-toggle.active,.dark-theme .student-toggle-card.active,.dark-theme .student-support-choice.active { background: #1b3020; }
.dark-theme .student-create-steps button:disabled { opacity: .78; }
.dark-theme .student-create-step-icon { color: #9aaaa0; background: #1a261f; }
.dark-theme .student-create-steps button span:last-child,.dark-theme .student-create-step-heading strong { color: #edf5ef; }
.dark-theme .student-create-modal .student-field { color: #c5d0c8; }
.dark-theme .student-field input::placeholder { color: #87938b; }
.dark-theme .student-create-note { color: #b9d8bd; border-color: #35513a; background: #1b3020; }
.dark-theme .student-create-note.compact { color: #91aa95; background: transparent; }
.dark-theme .student-create-note p { color: #91aa95; }
.dark-theme .student-skip-card { border-color: #35513a; background: #1a261f; }
.dark-theme .student-skip-button { color: #dce9de; border-color: #3a5a40; background: #1b3020; }
.dark-theme .student-skip-button .material-symbols-rounded { color: #88f08b; }
.dark-theme .student-skip-button:hover { border-color: #168d06; background: #203b25; box-shadow: 0 14px 28px rgba(25,176,0,.12); }
.dark-theme .guardian-form-card,.dark-theme .student-option-card,.dark-theme .student-support-panel,.dark-theme .student-toggle-card,.dark-theme .student-support-choice { background: #1a261f; }
.roster-modal { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; }
.roster-candidate-list { display: grid; gap: 9px; max-height: 55vh; overflow: auto; }
.roster-candidate-list > article { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.roster-candidate-list > article.selected { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--surface) 90%, var(--brand-soft)); }
.roster-candidate-list > article.disabled { opacity: .58; }
.roster-student-choice { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; cursor: pointer; }
.roster-student-choice > input { width: 18px !important; height: 18px !important; accent-color: var(--brand); }
.roster-student-choice > span:last-child { display: grid; gap: 2px; }
.roster-student-choice small,.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.roster-order-fields { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-inline-start: 46px; }
.roster-table .stop-index { position: static; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
@media (max-width: 900px) { .student-toolbar { align-items: stretch; flex-direction: column; } .student-review-grid { grid-template-columns: 1fr; } .student-review-section.wide { grid-column: auto; } }
@media (max-width: 700px) { .student-create-modal { width: min(100%, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border-radius: 18px; } .student-create-header { align-items: flex-start; padding: 15px 16px; } .student-create-header .modal-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; } .student-step-pill { min-height: 24px; padding-inline: 8px; font-size: 10px; } .student-create-steps { gap: 6px; padding: 10px 12px; } .student-create-steps button { display: flex; min-height: 44px; justify-content: center; padding: 0; } .student-create-step-icon { flex: 0 0 34px; width: 34px; height: 34px; } .student-create-steps button span:last-child { display: none; } .student-create-body { padding: 14px; } .student-form-grid,.student-support-choice-group,.student-review-details,.student-review-details.compact { grid-template-columns: 1fr; } .student-review-hero { grid-template-columns: 48px minmax(0, 1fr); } .student-review-hero .student-monogram { width: 48px; height: 48px; } .student-review-status { grid-column: 1 / -1; justify-content: center; } .student-field-spacer { display: none; } .student-skip-card { grid-template-columns: 38px minmax(0, 1fr); } .student-skip-card .secondary-button { grid-column: 1 / -1; width: 100%; } .student-create-modal .student-create-footer { align-items: stretch; flex-direction: column-reverse; padding: 12px 14px; } .student-footer-secondary,.student-footer-actions { width: 100%; } .student-footer-actions { margin: 0; } .student-create-footer .secondary-button,.student-create-footer .primary-button,.student-create-footer .student-skip-button,.student-cancel-button { flex: 1; min-width: 0; justify-content: center; } }
@media (max-width: 620px) { .roster-modal { max-height: calc(100dvh - 20px); } .roster-order-fields { grid-template-columns: 1fr; margin-inline-start: 0; } }
@media (max-width: 460px) { .student-create-footer .secondary-button,.student-create-footer .primary-button { padding-inline: 10px; } .student-create-footer .secondary-button { font-size: 0; } .student-create-footer .secondary-button .material-symbols-rounded { font-size: 19px; } }
.ltr th,.ltr td { text-align: left; }
.ltr .kpi-card > strong,.ltr .org-cell small { text-align: left; }
.ltr .spark { left: auto; right: 17px; }
.ltr .notifications-panel { left: auto; right: 116px; }
.ltr .login-form-side,.ltr .login-card,.ltr .phone-login { direction: ltr; text-align: left; }
.ltr .login-page { direction: ltr; }
.ltr .visual-content,.ltr .login-visual { direction: ltr; text-align: left; }
.ltr .visual-metrics div { padding-left: 0; padding-right: 30px; border-left: 0; border-right: 1px solid rgba(255,255,255,.1); }
.ltr .visual-metrics div:first-child { border-right: 0; }
.ltr .login-language-switch { right: auto; left: 30px; }
.ltr .back-phone { left: auto; right: 0; }
.ltr .phone-input span { border-right: 1px solid #e4e8e5; }
.ltr .brand,.ltr .login-brand { align-items: center; }
.ltr .brand-copy { justify-content: center; }
@media (max-width: 940px) { .ltr .sidebar { transform: translateX(-100%); }.ltr.nav-open .sidebar { transform: translateX(0); }.ltr .main-content { margin-left: 0; } }
@media (max-width: 640px) { .boot-splash-card { padding: 30px 18px; }.boot-splash-mark { width: 196px; height: 220px; }.boot-splash h1 { font-size: 40px; }.boot-splash-footer { bottom: 28px; }.language-switch { width: 40px; padding: 0; font-size: 0; }.login-language-switch { width: auto; padding: 0 11px; font-size: 12px; }.ltr .notifications-panel { right: 10px; left: 10px; }.quick-actions-menu { position: fixed; top: 66px; right: 10px; left: 10px; width: auto; max-height: calc(100dvh - 78px); overflow-y: auto; }.quick-actions-menu::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .boot-splash-card,.boot-splash-mark span { animation-duration: .001ms; animation-iteration-count: 1; } }

/* Mobile control alignment fixes */
@media (max-width: 900px) {
  .login-language-switch {
    position: static;
    z-index: auto;
    align-self: flex-end;
    width: auto;
    margin: 0 0 18px;
    padding: 0 12px;
    font-size: 12px;
  }
  .ltr .login-language-switch {
    right: auto;
    left: auto;
  }
}

@media (max-width: 940px) {
  .topbar {
    padding-inline: 12px;
  }
  .topbar-start,
  .topbar-actions {
    gap: 7px;
  }
  .search-box,
  .icon-button,
  .topbar .language-switch,
  .topbar-actions > .primary-button,
  .page-heading > .primary-button {
    position: relative;
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    place-items: center;
    align-items: center;
    justify-items: center;
    line-height: 0;
  }
  .search-box {
    overflow: hidden;
    cursor: pointer;
  }
  .search-box input,
  .search-box kbd {
    display: none;
  }
  .search-box.focused {
    position: absolute;
    z-index: 40;
    inset: 10px 12px;
    display: flex;
    width: auto;
    height: 46px;
    padding: 0 12px;
    justify-content: flex-start;
    line-height: 1;
  }
  .search-box.focused input {
    display: block;
  }
  .search-box.focused kbd {
    display: none;
  }
  .topbar .language-switch {
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }
  .topbar-actions .logout-button {
    display: grid;
  }
  .search-box > .material-symbols-rounded,
  .icon-button > .material-symbols-rounded,
  .topbar .language-switch .material-symbols-rounded,
  .topbar-actions > .primary-button .material-symbols-rounded,
  .page-heading > .primary-button .material-symbols-rounded {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: auto;
    font-size: 26px;
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
  }
  .topbar-actions > .primary-button .material-symbols-rounded,
  .page-heading > .primary-button .material-symbols-rounded {
    font-size: 31px;
    transform: translate(-50%, -50%);
  }
  .topbar-actions > .primary-button,
  .page-heading > .primary-button {
    overflow: hidden;
    border-radius: 12px;
    font-size: 0;
    white-space: nowrap;
    color: transparent;
  }
  .topbar-actions > .quick-actions-trigger {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
  .topbar-actions > .primary-button .material-symbols-rounded,
  .page-heading > .primary-button .material-symbols-rounded {
    color: #fff;
  }
  .login-language-switch {
    min-height: 40px;
    width: auto;
    height: auto;
    padding: 0 12px;
    font-size: 12px;
  }
  .login-language-switch .material-symbols-rounded {
    width: auto;
    height: auto;
    font-size: 19px;
  }
}

/* Admin readability pass */
@media (min-width: 941px) {
  .main-nav a { min-height: 52px; font-size: 15px; }
  .brand { gap: 14px; }
  .brand-copy { min-height: 52px; }
  .sirb-brand-logo { flex-basis: 52px; width: 52px; height: 52px; }
  .brand strong,.login-brand strong { font-size: 24px; }
  .brand small,.login-brand small { font-size: 13px; }
  .topbar { height: 82px; }
  .search-box { height: 46px; }
  .search-box input { font-size: 15px; }
  .page-heading h1 { font-size: 32px; letter-spacing: 0; }
  .page-heading p { font-size: 16px; }
  .panel-header h2 { font-size: 18px; }
  .panel-header p { font-size: 14px; }
  th,td { font-size: 15px; }
  th { font-size: 13px; }
  .state { font-size: 13px; }
  .primary-button,.secondary-button,.filter-button { min-height: 48px; font-size: 15px; }
  .modal input,.modal select { height: 50px; font-size: 15px; }
  .modal h2 { font-size: 20px; }
  .modal header p,.modal label { font-size: 14px; }
}
@media (max-width: 760px) {
  .not-found-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 28px 20px;
    text-align: center;
  }
  .not-found-art {
    min-height: 190px;
  }
  .not-found-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 31px;
  }
  .not-found-copy p {
    margin-inline: auto;
    font-size: 14px;
  }
  .not-found-actions {
    justify-content: center;
  }
}
.dark-theme .search-box input,
.dark-theme .filter-search input { color: #f0f7f1; }
.dark-theme .search-box input::placeholder,
.dark-theme .filter-search input::placeholder { color: #9cab9f; }
.dark-theme .search-box.focused { background: #1c2920; }
.dark-theme .row-action-menu { border-color: var(--line); background: #1c2920; box-shadow: 0 18px 42px rgba(0,0,0,.32); }
.dark-theme .location-chip { color: #a8b3ab; background: #1c2920; }
a.row-action { text-decoration: none; }
