/* SHABAB SCHOOL PRO 1.0.0 — navy + gold. LIGHT is the default, dark is an option (Theme Studio). Montserrat (English) + Tajawal (Arabic). Strict CSP: no inline styles. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-700-normal.woff2") format("woff2"); font-weight: 700; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-latin-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0000-00FF; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-latin-700-normal.woff2") format("woff2"); font-weight: 700; unicode-range: U+0000-00FF; font-display: swap; }

:root { --navy: #0B2A5B; --navy2: #123C7C; --gold: #C9A227; --gold2: #E8C766; --bg: #F4F6FA; --card: #FFFFFF; --ink: #14213D; --muted: #5B6578; --line: #DDE3EC; --soft: #EEF2F8;
  --ok: #138A4B; --warn: #B7791F; --bad: #C0392B; --info: #1F6FB2; --bar-booking: #3D7BE0; --bar-contract: #0B2A5B; --bar-overdue: #C0392B; --bar-workshop: #8A8F99; --bar-done: #9DB3D6;
  --radius: 14px; --shadow: 0 2px 10px rgba(11, 42, 91, .08); --font: "Montserrat", "Tajawal", "Segoe UI", system-ui, Arial, sans-serif; color-scheme: light; }
:root[data-preset="royal"] { --navy: #1B2F7A; --navy2: #2A47B0; --gold: #D4AF37; }
:root[data-preset="desert"] { --navy: #3E2C1C; --navy2: #6B4A2B; --gold: #D9A441; --bg: #F8F4EE; }
:root[data-preset="emerald"] { --navy: #0E4D3A; --navy2: #17705A; --gold: #C9A227; }
:root[data-preset="graphite"] { --navy: #22262E; --navy2: #3A404B; --gold: #C9A227; }
:root[data-theme="dark"] { --bg: #0A1426; --card: #111F38; --ink: #E8EDF6; --muted: #9AA7BD; --line: #22365A; --soft: #16294A; --navy2: #2A5BAA; --shadow: 0 2px 12px rgba(0, 0, 0, .35); color-scheme: dark; }
html[lang="ar"] { --font: "Tajawal", "Montserrat", "Segoe UI", system-ui, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy2); }
:root[data-theme="dark"] a { color: var(--gold2); }
.num, .mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .bold { font-weight: 700; } .right { text-align: end; } .center { text-align: center; } .hide { display: none !important; } .nowrap { white-space: nowrap; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.boot { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- login */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(1200px 600px at 10% -10%, #fff7dc 0, transparent 60%), linear-gradient(160deg, var(--bg), var(--soft)); }
:root[data-theme="dark"] .auth { background: linear-gradient(160deg, #07101f, #0d1d38); }
.auth .box { width: 100%; max-width: 400px; background: var(--card); border-radius: 20px; box-shadow: 0 10px 40px rgba(11, 42, 91, .15); padding: 26px 24px 20px; border-top: 4px solid var(--gold); }
.auth .logo { display: block; margin: 0 auto 10px; height: 150px; width: auto; max-width: 100%; object-fit: contain; border-radius: 16px; }
.auth h1 { margin: 0; font-size: 17px; text-align: center; color: var(--navy); letter-spacing: .02em; }
:root[data-theme="dark"] .auth h1 { color: var(--gold2); }
.auth .sub { margin: 2px 0 14px; color: var(--muted); font-size: 13px; text-align: center; }
.auth .foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- forms */
.field { display: block; margin: 0 0 11px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea, input.in, select.in { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-height: 42px; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, input.in:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; } .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; cursor: pointer; } .check input { width: 20px; height: 20px; accent-color: var(--navy); }
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-inline-end: 44px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover { background: var(--soft); color: var(--navy); }
.msg { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; } .msg.err { background: #fdecea; color: #8e2318; } .msg.ok { background: #e7f6ee; color: #0f6a39; } .msg.warn { background: #fff5dc; color: #7a5410; } .msg.info { background: #e8f1fb; color: #154c7d; }
:root[data-theme="dark"] .msg.err { background: #3b1a17; color: #ffb4a8; } :root[data-theme="dark"] .msg.ok { background: #12301f; color: #9be3b8; } :root[data-theme="dark"] .msg.warn { background: #3a2c0c; color: #f6d48a; } :root[data-theme="dark"] .msg.info { background: #10294a; color: #a9cdf5; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 42px; font-size: 14px; }
:root[data-theme="dark"] .btn { background: var(--navy2); color: #fff; }
.btn:hover { filter: brightness(1.1); } .btn:disabled { opacity: .55; cursor: default; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1d1600; } .btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); } :root[data-theme="dark"] .btn.ghost { color: var(--ink); }
.btn.danger { background: var(--bad); } .btn.ok { background: var(--ok); } .btn.sm { padding: 5px 10px; min-height: 34px; font-size: 13px; } .btn.block { width: 100%; }
a.btn, a.btn:visited { color: #fff; } a.btn.ghost, a.btn.ghost:visited { color: var(--navy); } :root[data-theme="dark"] a.btn.ghost { color: var(--ink); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; } .row.end { justify-content: flex-end; } .row .grow { flex: 1 1 auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; } .chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; color: var(--ink); text-decoration: none; } .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ib { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font: 700 12px/18px Georgia, serif; cursor: pointer; padding: 0; vertical-align: middle; margin-inline-start: 6px; }

/* ---------- shell */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: linear-gradient(90deg, var(--navy), var(--navy2)); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); min-height: 58px; }
.top .brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; } .top .brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #fff; }
.top .brand b { font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; display: block; } .top .brand small { display: block; font-size: 11px; color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.top .search { flex: 1 1 auto; max-width: 520px; margin-inline-start: auto; position: relative; } .top .search input { width: 100%; border-radius: 99px; border: 0; padding: 9px 16px; min-height: 40px; background: rgba(255, 255, 255, .95); color: #14213D; }
.top .tb { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 10px; min-height: 40px; min-width: 40px; padding: 0 10px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.top .tb:hover { background: var(--line); }
.sres { position: absolute; top: 46px; inset-inline: 0; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .25); max-height: 70vh; overflow: auto; z-index: 50; }
.sres a { display: flex; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); align-items: center; } .sres a:hover, .sres a.sel { background: var(--soft); } .sres .k { font-size: 11px; color: #fff; background: var(--navy2); border-radius: 6px; padding: 1px 6px; text-transform: uppercase; } .sres .s { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 58px); }
.side { background: var(--card); border-inline-end: 1px solid var(--line); padding: 10px 8px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13.5px; margin-bottom: 2px; } .side a:hover { background: var(--soft); } .side a.on { background: var(--navy); color: #fff; }
.side a .ic { width: 28px; height: 28px; flex: none; } .side .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.main { padding: 16px 18px 60px; min-width: 0; max-width: 1400px; }
.pagehead { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; } .pagehead input.in, .pagehead select.in { width: auto; min-width: 140px; }
.pagehead h2 { margin: 0; font-size: 20px; color: var(--navy); } :root[data-theme="dark"] .pagehead h2 { color: var(--gold2); } .pagehead .sp { flex: 1; }
.navbtns { display: flex; gap: 6px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--line); min-width: 0; } .card h3 { margin: 0 0 10px; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 6px; } :root[data-theme="dark"] .card h3 { color: var(--gold2); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } .cols > .card { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink); white-space: nowrap; }
.badge.available, .badge.paid, .badge.closed, .badge.recharged, .badge.refunded { background: #dff3e8; color: #0f6a39; } .badge.on_rent, .badge.open, .badge.matched, .badge.held { background: #e3ecfb; color: #173f8a; } .badge.reserved, .badge.partial, .badge.converted { background: #fff1cf; color: #7a5410; } .badge.workshop, .badge.cancelled, .badge.no_show, .badge.waived, .badge.paid_by_company { background: #ebedf1; color: #4a5160; } .badge.overdue, .badge.unpaid, .badge.unmatched, .badge.bl, .badge.expired { background: #fde3df; color: #9b2216; }
:root[data-theme="dark"] .badge { filter: brightness(.9) saturate(1.1); }

/* ---------- tables (phone: cards, sb-mobile.js) */
.tw { overflow-x: auto; } table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.t th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; } table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; } table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--soft); } table.t td.r, table.t th.r { text-align: end; } table.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.empty { padding: 20px; text-align: center; color: var(--muted); }

/* ---------- NEXUS-style glossy tiles + KPI */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 0 0 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; font-size: 12.5px; font-weight: 600; transition: transform .12s; }
.tile:hover { transform: translateY(-2px); } .tile .gl { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy2), var(--navy)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 4px 10px rgba(11, 42, 91, .25); border: 1.5px solid var(--gold); }
.tile .gl::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .05)); border-radius: 16px 16px 40% 40%; }
.tile .gl svg { width: 30px; height: 30px; color: var(--gold2); position: relative; z-index: 1; } .tile .cnt { position: absolute; top: 6px; inset-inline-end: 8px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; min-width: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; border-inline-start: 4px solid var(--gold); } .kpi b { display: block; font-size: 22px; color: var(--navy); line-height: 1.2; } :root[data-theme="dark"] .kpi b { color: var(--gold2); } .kpi span { font-size: 12px; color: var(--muted); } .kpi.bad { border-inline-start-color: var(--bad); } .kpi.ok { border-inline-start-color: var(--ok); } .kpi.info { border-inline-start-color: var(--info); }
.dash.v-compact .kpis { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; } .dash.v-compact .kpi { padding: 6px 9px; } .dash.v-compact .kpi b { font-size: 17px; } .dash.v-compact .tiles { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .dash.v-compact .tile .gl { width: 44px; height: 44px; border-radius: 12px; } .dash.v-compact .tile .gl svg { width: 22px; height: 22px; } .dash.v-compact .tile { font-size: 11.5px; padding: 10px 4px 8px; }
.dash.v-list .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; } .dash.v-list .tile { flex-direction: row; padding: 7px 10px; text-align: start; } .dash.v-list .tile .gl { width: 34px; height: 34px; border-radius: 10px; } .dash.v-list .tile .gl svg { width: 18px; height: 18px; } .dash.v-list .kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.meter { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }

/* ---------- timeline */
.tl { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tl .in { position: relative; min-width: 900px; } .tl .hd, .tl .ln { display: grid; grid-template-columns: 170px 1fr; } .tl .hd { position: sticky; top: 0; background: var(--soft); font-size: 11.5px; color: var(--muted); z-index: 2; } .tl .days { display: grid; } .tl .days div { border-inline-start: 1px solid var(--line); padding: 4px 2px; text-align: center; } .tl .days div.we { background: rgba(201, 162, 39, .08); } .tl .days div.td { background: rgba(201, 162, 39, .25); color: var(--ink); font-weight: 700; }
.tl .ln { border-top: 1px solid var(--line); min-height: 40px; } .tl .ln .cn { padding: 6px 8px; font-size: 12.5px; border-inline-end: 1px solid var(--line); } .tl .ln .cn b { display: block; } .tl .track { position: relative; } .tl .grid { position: absolute; inset: 0; display: grid; } .tl .grid div { border-inline-start: 1px dashed var(--line); }
.tl .bar { position: absolute; top: 6px; height: 28px; border-radius: 8px; color: #fff; font-size: 11.5px; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tl .bar.booking { background: var(--bar-booking); } .tl .bar.contract { background: var(--bar-contract); border: 1px solid var(--gold); } .tl .bar.overdue { background: var(--bar-overdue); } .tl .bar.workshop { background: repeating-linear-gradient(45deg, var(--bar-workshop), var(--bar-workshop) 6px, #a3a8b1 6px, #a3a8b1 12px); } .tl .bar.done { background: var(--bar-done); color: #102a52; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0; } .legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: middle; } .legend .booking { background: var(--bar-booking); } .legend .contract { background: var(--bar-contract); } .legend .overdue { background: var(--bar-overdue); } .legend .workshop { background: var(--bar-workshop); } .legend .done { background: var(--bar-done); }

/* ---------- check-out / check-in */
.steps { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; } .steps span { flex: 1 0 auto; text-align: center; padding: 6px 10px; border-radius: 99px; background: var(--soft); font-size: 12px; color: var(--muted); } .steps span.on { background: var(--navy); color: #fff; } .steps span.done { background: var(--gold); color: #1d1600; }
.fuel { display: flex; gap: 4px; } .fuel button { flex: 1; min-height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; font-size: 12px; } .fuel button.on { background: var(--gold); border-color: var(--gold); color: #1d1600; font-weight: 700; } .fuel button.lo.on { background: var(--bad); color: #fff; border-color: var(--bad); }
.dmg { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; } .dmg svg { width: 230px; max-width: 100%; height: auto; background: var(--soft); border-radius: 14px; border: 1px solid var(--line); touch-action: manipulation; cursor: crosshair; } .dmg .types { display: flex; flex-direction: column; gap: 6px; } .dmg .types button { min-width: 120px; }
.dmg .mk circle { stroke: #fff; stroke-width: 1.5; } .dmg .mk.old circle { fill: #8A8F99; } .dmg .mk.new circle { fill: var(--bad); } .dmg .mk text { fill: #fff; font: 700 11px var(--font); }
.carbody { fill: #fff; stroke: var(--navy); stroke-width: 2.2; } :root[data-theme="dark"] .carbody { fill: #1b2c4b; stroke: var(--gold2); } .carglass { fill: #cfe0f5; stroke: var(--navy); stroke-width: 1.2; } :root[data-theme="dark"] .carglass { fill: #2b4670; } .carwheel { fill: #333; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sig { width: 100%; max-width: 520px; height: 180px; border: 2px dashed var(--gold); border-radius: 12px; background: #fff; touch-action: none; display: block; }
.charges td:last-child { text-align: end; white-space: nowrap; } .charges tr.tot td { font-weight: 700; font-size: 15px; border-top: 2px solid var(--navy); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); }

/* ---------- dialogs + toasts + hints (no alert / confirm / prompt) */
.dlg-back { position: fixed; inset: 0; background: rgba(5, 15, 35, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: var(--card); color: var(--ink); border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border-top: 4px solid var(--gold); } .dlg.wide { max-width: 860px; } .dlg .hd { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; } .dlg .hd h3 { margin: 0; font-size: 16px; color: var(--navy); flex: 1; } :root[data-theme="dark"] .dlg .hd h3 { color: var(--gold2); } .dlg .bd { padding: 6px 16px 10px; } .dlg .ft { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px 16px; flex-wrap: wrap; }
.once { font: 700 22px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: #fff5dc; color: #5a3d00; padding: 12px; border-radius: 10px; text-align: center; user-select: all; direction: ltr; }
.toasts { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); max-width: 360px; font-size: 13.5px; } .toast.err { background: var(--bad); } .toast.ok { background: var(--ok); }
.hint { font-size: 13.5px; } .hint .ex { background: var(--soft); border-inline-start: 3px solid var(--gold); padding: 8px 10px; border-radius: 8px; margin-top: 8px; white-space: pre-line; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; } .sw { width: 92px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; overflow: hidden; background: var(--card); padding: 0; } .sw.on { border-color: var(--gold); } .sw i { display: block; height: 34px; } .sw span { display: block; font-size: 11.5px; padding: 4px; }
.sw .p-navy-gold { background: linear-gradient(90deg, #0B2A5B 60%, #C9A227 60%); } .sw .p-royal { background: linear-gradient(90deg, #1B2F7A 60%, #D4AF37 60%); } .sw .p-desert { background: linear-gradient(90deg, #3E2C1C 60%, #D9A441 60%); } .sw .p-emerald { background: linear-gradient(90deg, #0E4D3A 60%, #C9A227 60%); } .sw .p-graphite { background: linear-gradient(90deg, #22262E 60%, #C9A227 60%); }
.imgprev { max-width: 100%; max-height: 90px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; margin: 6px 0; }

/* ---------- print documents (contract, invoice, reports). Screen shows an A4 sheet; Print = Save as PDF */
.doc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.sheet { background: #fff; color: #111; width: 210mm; max-width: 100%; margin: 0 auto 20px; padding: 12mm 12mm 10mm; box-shadow: 0 4px 24px rgba(0, 0, 0, .15); font-size: 10.5pt; line-height: 1.38; font-family: "Montserrat", "Tajawal", Arial, sans-serif; }
.sheet .ar, .sheet [dir="rtl"] { font-family: "Tajawal", Arial, sans-serif; } .sheet h1 { font-size: 15pt; margin: 2mm 0 1mm; color: #0B2A5B; text-align: center; } .sheet h2 { font-size: 11pt; margin: 4mm 0 1.5mm; color: #0B2A5B; border-bottom: 1.5px solid #C9A227; padding-bottom: .8mm; display: flex; justify-content: space-between; gap: 6mm; }
.sheet .lh { display: flex; align-items: center; gap: 6mm; border-bottom: 2px solid #C9A227; padding-bottom: 3mm; margin-bottom: 3mm; } .sheet .lh img.lg { height: 22mm; width: auto; max-width: 40mm; object-fit: contain; } .sheet .lh .co { flex: 1; } .sheet .lh .co b { font-size: 13pt; color: #0B2A5B; display: block; } .sheet .lh .co div { font-size: 8.5pt; color: #444; } .sheet .lh .co.ar { text-align: right; }
.sheet img.lhimg { width: 100%; display: block; margin-bottom: 3mm; } .sheet img.ftimg { width: 100%; display: block; margin-top: 4mm; }
.sheet table.f { width: 100%; border-collapse: collapse; font-size: 9.5pt; } .sheet table.f td { border: 1px solid #c9ced8; padding: 1.3mm 2mm; vertical-align: top; } .sheet table.f td.l { width: 26%; color: #333; background: #f4f6fa; } .sheet table.f td.l.ar { text-align: right; } .sheet table.f td.v { font-weight: 600; }
.sheet table.lines { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-top: 2mm; } .sheet table.lines th { background: #0B2A5B; color: #fff; padding: 1.6mm 2mm; font-weight: 600; text-align: start; } .sheet table.lines td { border-bottom: 1px solid #d5dae3; padding: 1.4mm 2mm; } .sheet table.lines td.r, .sheet table.lines th.r { text-align: end; } .sheet table.lines tr.tot td { font-weight: 700; border-top: 2px solid #0B2A5B; } .sheet table.lines tr.grand td { font-weight: 700; font-size: 11pt; background: #fbf4dc; }
.sheet .terms { columns: 1; font-size: 7.6pt; line-height: 1.32; } .sheet .terms p { margin: 0 0 1.2mm; break-inside: avoid; } .sheet .terms.ar { direction: rtl; text-align: right; font-size: 8.2pt; }
.sheet .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 5mm; } .sheet .sigs div { border-top: 1px solid #555; padding-top: 1.5mm; font-size: 9pt; min-height: 26mm; position: relative; } .sheet .sigs img.s { height: 20mm; display: block; } .sheet .sigs img.stamp { height: 26mm; position: absolute; inset-inline-end: 0; top: -6mm; opacity: .9; }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; } .sheet .dmgp { display: flex; gap: 4mm; align-items: flex-start; } .sheet .dmgp svg { width: 34mm; height: auto; border: 1px solid #ccc; border-radius: 3mm; } .sheet .prevails { text-align: center; font-weight: 700; font-size: 9pt; margin: 3mm 0 0; padding: 1.5mm; border: 1px solid #C9A227; background: #fffaf0; }
.sheet .foot { font-size: 7.5pt; color: #666; text-align: center; margin-top: 4mm; border-top: 1px solid #ddd; padding-top: 1.5mm; } .sheet .gauge { font-family: monospace; letter-spacing: 1px; } .sheet .ph { display: flex; flex-wrap: wrap; gap: 1.5mm; } .sheet .ph img { width: 22mm; height: 16mm; object-fit: cover; border: 1px solid #ccc; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; } .top, .side, .doc-tools, .toasts, .navbtns, .pagehead { display: none !important; } .layout { display: block; } .main { padding: 0; max-width: none; }
  .sheet { box-shadow: none; margin: 0; width: auto; padding: 10mm 12mm; } .sheet .pagebreak { break-before: page; }
}

/* ---------- phone */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; } .side { display: none; } .side.open { display: block; position: fixed; top: 58px; inset-inline-start: 0; width: 82%; max-width: 320px; z-index: 40; height: calc(100vh - 58px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
  .main { padding: 12px 16px 70px; } .top { padding: 6px 10px; gap: 6px; } .top .brand > span { display: none; } .top .search { position: static; } .top .search input { min-height: 38px; padding: 7px 12px; } .sres { top: 56px; inset-inline: 8px; position: fixed; }
  .navbtns { display: flex; } .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .cols { grid-template-columns: 1fr; } .pagehead h2 { font-size: 17px; }
  table.mcard, table.mcard tbody, table.mcard tr, table.mcard td { display: block; width: 100%; } table.mcard tr.mhead { display: none; } table.mcard tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; padding: 6px 10px; background: var(--card); }
  table.mcard td { border: 0; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; text-align: end; } table.mcard td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: start; flex: none; } table.mcard td.nolab::before { content: none; } table.mcard tfoot tr { background: var(--soft); }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; } .tile { padding: 10px 4px; font-size: 11.5px; } .tile .gl { width: 48px; height: 48px; } .kpis { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 6mm; font-size: 9.5pt; } .sheet .terms { columns: 1; } .sheet .two, .sheet .sigs { grid-template-columns: 1fr; } .tl .hd, .tl .ln { grid-template-columns: 110px 1fr; }
  .toasts { inset-inline: 12px; bottom: 12px; } .toast { max-width: none; }
}
@media (max-width: 420px) { .top .brand small { display: none; } .top .tb.opt { display: none; } }

/* ================= SCHOOL PRO additions ================= */
.badge.new, .badge.open { background: #fff1cf; color: #7a5410; } .badge.contacted, .badge.info { background: #e3ecfb; color: #173f8a; } .badge.form_issued, .badge.test, .badge.offered { background: #efe6fb; color: #5a2a8a; }
.badge.admitted, .badge.active, .badge.paid { background: #dff3e8; color: #0f6a39; } .badge.left, .badge.graduated { background: var(--soft); color: var(--muted); } .badge.suspended, .badge.cancelled { background: #fde2e0; color: #8f2219; }
.kpi.warn { border-inline-start-color: var(--warn); } .kpis.mini { grid-template-columns: repeat(2, 1fr); } .kpis.mini .kpi b { font-size: 18px; }
.btn.danger.ghost { background: transparent; color: var(--bad); border-color: var(--bad); } .btn.wa { background: #1f9d55; color: #fff; text-decoration: none; } .chip.off { opacity: .5; text-decoration: line-through; }
.alerts { display: grid; gap: 6px; margin: 0 0 14px; } .alert { display: block; padding: 8px 12px; border-radius: 10px; background: #fff6e0; color: #7a5410; text-decoration: none; border: 1px solid #f1d98a; font-size: 13.5px; } :root[data-theme="dark"] .alert { background: #3a2f12; color: #f5d58a; border-color: #5d4a17; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 14px; } .cols3 > .card { margin: 0; }
.donut { position: relative; width: 150px; height: 150px; margin: 6px auto; } .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dn { fill: none; stroke-width: 14; } .dn.bg { stroke: var(--soft); } .dn.ok { stroke: var(--ok); } .dn.bad { stroke: var(--bad); } .dn.warn { stroke: var(--warn); } .dn.c1 { stroke: var(--navy2); } .dn.c2 { stroke: var(--gold); }
.dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .dc b { font-size: 24px; color: var(--navy); } :root[data-theme="dark"] .dc b { color: var(--gold2); } .dc small { color: var(--muted); font-size: 11.5px; }
.lg2 { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12.5px; } .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; vertical-align: -1px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); } .dot.c1 { background: var(--navy2); } .dot.c2 { background: var(--gold); }
.strength { display: grid; gap: 5px; } .srow { display: grid; grid-template-columns: 110px 1fr 70px; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); font-size: 13px; } .srow .meter { margin: 0; } .srow .num { text-align: end; }
.ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); vertical-align: middle; flex: none; } .ph .ic { width: 20px; height: 20px; }
.ph.big { width: 104px; height: 124px; border-radius: 12px; } .ph.big .ic { width: 48px; height: 48px; }
.stuhead { display: flex; gap: 16px; align-items: flex-start; } .stuhead h2 { margin: 0 0 4px; } .grow { flex: 1; min-width: 0; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; }
.notes { list-style: none; padding: 0; margin: 10px 0 0; } .notes li { border-inline-start: 3px solid var(--gold); padding: 4px 10px; margin: 0 0 8px; font-size: 13px; } .notes li b { font-size: 12px; color: var(--muted); }
.attl { display: grid; gap: 6px; margin: 8px 0; } .atr { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; } .atr .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .atr .nm small { font-size: 11.5px; }
.pal { display: flex; gap: 4px; } .pb { min-width: 44px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.pb.on.P { background: var(--ok); color: #fff; border-color: var(--ok); } .pb.on.A { background: var(--bad); color: #fff; border-color: var(--bad); } .pb.on.L { background: var(--warn); color: #fff; border-color: var(--warn); } .pb.on.E { background: var(--navy2); color: #fff; border-color: var(--navy2); }
table.grid td, table.grid th { padding: 4px 6px; vertical-align: middle; } table.grid .in { width: 100%; min-width: 70px; padding: 6px 8px; } .in.amt { max-width: 110px; text-align: end; } input.mk.bad { border-color: var(--bad); background: #fde2e0; } input.mk.low { color: var(--bad); font-weight: 700; } table.grid th select { margin-top: 4px; font-size: 12px; }
.idgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; max-height: 420px; overflow: auto; padding: 4px 0; }
.card.inner { box-shadow: none; border: 1px solid var(--line); margin: 10px 0; } .health { font-weight: 700; padding: 8px 12px; border-radius: 10px; } .health.ok { background: #dff3e8; color: #0f6a39; } .health.bad { background: #fde2e0; color: #8f2219; }
.void { border: 2px solid #C0392B; color: #C0392B; text-align: center; font-weight: 800; font-size: 14pt; padding: 2mm; margin: 0 0 3mm; letter-spacing: 1px; } .void.sm { font-size: 9pt; padding: 1mm; margin: 2mm 0; }
.sheet .sigs.three { grid-template-columns: 1fr 1fr 1fr; } .sheet .rch { display: flex; gap: 4mm; align-items: flex-start; } .sheet .rch table { flex: 1; } .sheet .aph { width: 26mm; height: 32mm; object-fit: cover; border: 1px solid #bbb; border-radius: 2mm; }
.sheet .aph.none { display: flex; align-items: center; justify-content: center; color: #999; font-size: 8pt; flex: none; } .sheet .rcs { display: flex; gap: 3mm; margin: 4mm 0; flex-wrap: wrap; } .sheet .rcs div { flex: 1; min-width: 26mm; border: 1px solid #C9A227; border-radius: 2mm; padding: 2mm; text-align: center; }
.sheet .rcs span { display: block; font-size: 8pt; color: #666; } .sheet .rcs b { font-size: 13pt; color: #0B2A5B; } .sheet .rcs small { display: block; font-size: 7.5pt; }
.sheet.admits { padding: 8mm 10mm; } .admit { border: 1.5px solid #0B2A5B; border-radius: 3mm; padding: 4mm; height: 133mm; overflow: hidden; margin: 0 0 6mm; position: relative; font-size: 9.5pt; } .admit.blocked { border-color: #C0392B; }
.admit .ahd { display: flex; gap: 3mm; align-items: center; border-bottom: 1px solid #C9A227; padding-bottom: 2mm; margin-bottom: 3mm; } .admit .ahd img { height: 13mm; } .admit .ahd > div:nth-child(2) { flex: 1; font-size: 9pt; } .admit .at { font-weight: 800; color: #0B2A5B; text-align: end; font-size: 11pt; } .admit .at small { display: block; font-weight: 400; font-size: 8.5pt; color: #444; }
.admit .abody { display: flex; gap: 4mm; margin-bottom: 2mm; } .admit .abody .kv { flex: 1; font-size: 9.5pt; } .admit .asig { position: absolute; bottom: 4mm; inset-inline: 4mm; display: flex; justify-content: space-between; font-size: 8.5pt; } .admit .asig span { border-top: 1px solid #555; padding-top: 1mm; min-width: 45mm; text-align: center; position: relative; } .admit .asig img.stamp { position: absolute; height: 18mm; bottom: 4mm; inset-inline-end: 0; opacity: .85; } .admit .asig img.s { position: absolute; height: 12mm; bottom: 4mm; inset-inline-start: 6mm; }
.idsheet { background: #fff; width: 210mm; max-width: 100%; margin: 0 auto 20px; padding: 10mm 12mm; display: grid; grid-template-columns: 85.6mm 85.6mm; grid-auto-rows: 54mm; gap: 3mm 8mm; justify-content: center; box-shadow: 0 4px 24px rgba(0, 0, 0, .15); }
.idc { width: 85.6mm; height: 54mm; border-radius: 3mm; overflow: hidden; border: .3mm solid #ccc; color: #111; font-family: "Montserrat", "Tajawal", Arial, sans-serif; position: relative; background: #fff; }
.idc.f .ib1 { background: var(--cc, #0A1F44); color: #fff; display: flex; gap: 2mm; align-items: center; padding: 1.5mm 2.5mm; height: 11mm; border-bottom: .8mm solid var(--ca, #C9A227); } .idc.f .ib1 img { height: 8mm; width: 8mm; object-fit: contain; background: #fff; border-radius: 1mm; } .idc.f .ib1 b { display: block; font-size: 7.5pt; line-height: 1.1; } .idc.f .ib1 small { display: block; font-size: 6.5pt; direction: rtl; }
.idc.f .ib2 { display: flex; gap: 2mm; padding: 2mm 2.5mm; height: 36mm; } .idc .iph { width: 22mm; height: 27mm; object-fit: cover; border-radius: 1.5mm; border: .3mm solid #bbb; flex: none; } .idc .iph.none { display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 6pt; }
.idc .iinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .4mm; font-size: 6.8pt; line-height: 1.2; } .idc .iinfo b { font-size: 8.2pt; color: var(--cc, #0A1F44); } .idc .iqr { width: 15mm; height: 15mm; align-self: flex-end; image-rendering: pixelated; }
.idc.f .ib3 { position: absolute; bottom: 0; inset-inline: 0; background: var(--cc, #0A1F44); color: #fff; font-size: 6.3pt; text-align: center; padding: .8mm; letter-spacing: .3px; }
.idc.b { padding: 3mm 4mm; font-size: 7pt; line-height: 1.3; border-top: 2mm solid var(--cc, #0A1F44); } .idc.b p { margin: 0 0 1.2mm; } .idc.b .isig { position: absolute; bottom: 2mm; inset-inline-end: 4mm; text-align: center; font-size: 6.5pt; } .idc.b .isig img { height: 9mm; display: block; margin: 0 auto; } .idc.b.empty { border: .3mm dashed #ddd; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } .stuhead { flex-direction: column; } .srow { grid-template-columns: 90px 1fr 60px; } .pb { min-width: 38px; } .idsheet { transform-origin: top left; } }
@media print {
  .noprint, #rf, .wa { display: none !important; } .sheet + .sheet { break-before: page; } .sheet.admits .admit:nth-child(2n) { margin-bottom: 0; }
  .idsheet { box-shadow: none; margin: 0; padding: 10mm 12mm; break-after: page; } .idc { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .idc.f .ib1, .idc.f .ib3 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet table.lines th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.apply { max-width: 760px; margin: 0 auto; padding: 14px; } .ahead { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; } .ahead img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); } .ahead div { flex: 1; } .ahead h1 { margin: 0; font-size: 19px; color: var(--navy); } .ahead p { margin: 0; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- SCHOOL PRO default look: TEAL (dark teal side menu, white cards, amber accent) */
:root[data-preset="teal"] { --navy: #0E4F54; --navy2: #17777D; --gold: #F0A93A; --gold2: #F7C56B; --bg: #F3F7F7; --soft: #E8F1F1; --line: #D6E3E3; --ink: #12292B; --info: #17777D; }
:root[data-preset="teal"][data-theme="dark"] { --bg: #071F21; --card: #0D2E31; --ink: #E6F2F2; --muted: #9DB9BA; --line: #1C4A4E; --soft: #123A3D; --navy2: #23989F; }
.p-teal { background: linear-gradient(90deg, #0E4F54 60%, #F0A93A 60%); }
.side { background: linear-gradient(180deg, var(--navy), color-mix(in srgb, var(--navy) 82%, #000)); border-inline-end: 0; }
.side a { color: #E9F3F3; } .side a:hover { background: rgba(255, 255, 255, .10); } .side a.on { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side .sep { background: rgba(255, 255, 255, .16); } .side .muted { color: rgba(255, 255, 255, .65); }
.top { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--line); } .top .brand b { color: var(--navy); } :root[data-theme="dark"] .top .brand b { color: var(--gold2); } .top .brand small { color: var(--muted); }
.top .tb { color: var(--ink); background: var(--soft); border-color: var(--line); } .top .search input { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
table.t th { text-transform: none; } .sheet h1 { color: var(--navy); } .sheet table.lines th { background: var(--navy); } .sheet .rcs b { color: var(--navy); } .sheet .rcs div { border-color: var(--gold); }

/* ---------- TEAL GLASS 3D (default look): frosted glass cards, glossy 3D icon tiles, soft colour glow behind */
:root[data-preset="teal"] body { background: radial-gradient(900px 520px at 88% -8%, rgba(35, 190, 190, .30), transparent 60%), radial-gradient(760px 480px at 12% 108%, rgba(240, 169, 58, .24), transparent 60%), radial-gradient(600px 400px at 55% 45%, rgba(120, 220, 210, .16), transparent 70%), linear-gradient(160deg, #EAF6F5, #F4F8FB 55%, #FBF4E8); background-attachment: fixed; }
:root[data-preset="teal"][data-theme="dark"] body { background: radial-gradient(900px 520px at 88% -8%, rgba(35, 190, 190, .28), transparent 60%), radial-gradient(760px 480px at 12% 108%, rgba(240, 169, 58, .16), transparent 60%), linear-gradient(160deg, #041517, #082629 55%, #0B1F26); background-attachment: fixed; }
:root[data-preset="teal"] .card, :root[data-preset="teal"] .kpi, :root[data-preset="teal"] .tile, :root[data-preset="teal"] .auth .box, :root[data-preset="teal"] .dlg { background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58)); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .85); border-radius: 20px; box-shadow: 0 14px 34px rgba(14, 79, 84, .14), 0 2px 6px rgba(14, 79, 84, .08), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 22px rgba(23, 119, 125, .05); }
:root[data-preset="teal"][data-theme="dark"] .card, :root[data-preset="teal"][data-theme="dark"] .kpi, :root[data-preset="teal"][data-theme="dark"] .tile, :root[data-preset="teal"][data-theme="dark"] .auth .box, :root[data-preset="teal"][data-theme="dark"] .dlg { background: linear-gradient(145deg, rgba(30, 80, 84, .72), rgba(12, 44, 48, .62)); border-color: rgba(120, 220, 215, .22); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(160, 240, 235, .18); }
:root[data-preset="teal"] .kpi { position: relative; overflow: hidden; border-inline-start: 0; padding: 12px 14px 12px 18px; transition: transform .15s ease, box-shadow .15s ease; }
:root[data-preset="teal"] .kpi::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 7px; width: 5px; border-radius: 6px; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 0 10px rgba(240, 169, 58, .6); }
:root[data-preset="teal"] .kpi.ok::before { background: linear-gradient(180deg, #4BE08C, #138A4B); box-shadow: 0 0 10px rgba(19, 138, 75, .5); } :root[data-preset="teal"] .kpi.bad::before { background: linear-gradient(180deg, #FF8C7A, #C0392B); box-shadow: 0 0 10px rgba(192, 57, 43, .5); } :root[data-preset="teal"] .kpi.info::before { background: linear-gradient(180deg, #5FE3E0, #17777D); box-shadow: 0 0 10px rgba(23, 119, 125, .5); } :root[data-preset="teal"] .kpi.warn::before { background: linear-gradient(180deg, #FFD27A, #B7791F); }
:root[data-preset="teal"] .kpi::after { content: ""; position: absolute; top: -40%; inset-inline-end: -20%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(255, 255, 255, .75), transparent); pointer-events: none; }
:root[data-preset="teal"][data-theme="dark"] .kpi::after { background: radial-gradient(closest-side, rgba(140, 240, 235, .12), transparent); }
:root[data-preset="teal"] a.kpi:hover, :root[data-preset="teal"] .tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(14, 79, 84, .22), inset 0 1px 0 #fff; }
:root[data-preset="teal"] .kpi b { background: linear-gradient(180deg, #17939A, #0B3F43); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 24px; } :root[data-preset="teal"][data-theme="dark"] .kpi b { background: linear-gradient(180deg, #B8FFF8, #4FD3CF); -webkit-background-clip: text; background-clip: text; }
:root[data-preset="teal"] .side { background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 22%), linear-gradient(170deg, #1A8E93 0%, #0E5B60 42%, #093B3F 100%); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .18), 8px 0 30px rgba(9, 59, 63, .28); border-start-end-radius: 26px; border-end-end-radius: 26px; padding: 12px 10px; }
:root[data-preset="teal"] .side a { border-radius: 14px; padding: 7px 9px; margin-bottom: 4px; font-weight: 600; }
:root[data-preset="teal"] .side a .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 6px rgba(0, 0, 0, .18), 0 4px 8px rgba(0, 0, 0, .22); }
:root[data-preset="teal"] .side a.on { background: linear-gradient(145deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .10)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px rgba(0, 0, 0, .22); }
:root[data-preset="teal"] .side a.on .ic { background: linear-gradient(145deg, var(--gold2), var(--gold)); color: #3a2600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(120, 70, 0, .3), 0 4px 10px rgba(240, 169, 58, .55); }
:root[data-preset="teal"] .top { background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 20px rgba(14, 79, 84, .10), inset 0 -1px 0 rgba(255, 255, 255, .9); }
:root[data-preset="teal"][data-theme="dark"] .top { background: linear-gradient(180deg, rgba(16, 58, 62, .85), rgba(10, 40, 44, .7)); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
:root[data-preset="teal"] .top .brand img { border-radius: 12px; box-shadow: 0 4px 10px rgba(14, 79, 84, .3); }
:root[data-preset="teal"] .btn { border-radius: 12px; box-shadow: 0 3px 0 rgba(9, 59, 63, .28), 0 8px 16px rgba(14, 79, 84, .16), inset 0 1px 0 rgba(255, 255, 255, .35); background: linear-gradient(180deg, #1F9BA1, #0E5B60); border-color: transparent; }
:root[data-preset="teal"] .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(9, 59, 63, .28), inset 0 1px 0 rgba(255, 255, 255, .25); }
:root[data-preset="teal"] .btn.gold { background: linear-gradient(180deg, #FFD98A, #F0A93A 60%, #D98D1E); color: #3a2600; box-shadow: 0 3px 0 #B6740F, 0 10px 18px rgba(240, 169, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
:root[data-preset="teal"] .btn.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)); color: var(--navy); box-shadow: 0 2px 0 rgba(14, 79, 84, .14), 0 6px 12px rgba(14, 79, 84, .08), inset 0 1px 0 #fff; border: 1px solid rgba(255, 255, 255, .9); } :root[data-preset="teal"][data-theme="dark"] .btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
:root[data-preset="teal"] .btn.danger { background: linear-gradient(180deg, #F0685A, #C0392B); box-shadow: 0 3px 0 #8f2219, inset 0 1px 0 rgba(255, 255, 255, .35); } :root[data-preset="teal"] .btn.danger.ghost { background: rgba(255, 255, 255, .7); box-shadow: none; } :root[data-preset="teal"] .btn.wa { background: linear-gradient(180deg, #34C46B, #1B8F4A); box-shadow: 0 3px 0 #136b37, inset 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-preset="teal"] .chip { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)); border-color: rgba(255, 255, 255, .9); box-shadow: 0 2px 6px rgba(14, 79, 84, .10), inset 0 1px 0 #fff; } :root[data-preset="teal"] .chip.on { background: linear-gradient(180deg, #1F9BA1, #0E5B60); color: #fff; box-shadow: 0 3px 0 rgba(9, 59, 63, .3), inset 0 1px 0 rgba(255, 255, 255, .35); } :root[data-preset="teal"][data-theme="dark"] .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
:root[data-preset="teal"] .tile .gl { background: linear-gradient(145deg, #23A7AD, #0E5B60); color: #fff; border-radius: 18px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -6px 10px rgba(0, 0, 0, .22), 0 10px 18px rgba(14, 79, 84, .35); }
:root[data-preset="teal"] .tile:nth-child(3n+2) .gl { background: linear-gradient(145deg, #FFD27A, #E0921F); color: #3a2600; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -6px 10px rgba(120, 70, 0, .25), 0 10px 18px rgba(240, 169, 58, .4); }
:root[data-preset="teal"] .donut svg { filter: drop-shadow(0 8px 10px rgba(14, 79, 84, .22)); } :root[data-preset="teal"] .dn { stroke-width: 15; stroke-linecap: butt; } :root[data-preset="teal"] .dn.bg { stroke: rgba(14, 79, 84, .09); }
:root[data-preset="teal"] .donut .dc { inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #E6F3F2 70%); box-shadow: inset 0 -6px 12px rgba(14, 79, 84, .10), 0 4px 10px rgba(14, 79, 84, .12); } :root[data-preset="teal"][data-theme="dark"] .donut .dc { background: radial-gradient(circle at 35% 28%, #1E5A5E, #0C2F32 70%); }
:root[data-preset="teal"] .meter { background: rgba(14, 79, 84, .09); box-shadow: inset 0 2px 3px rgba(14, 79, 84, .14); border-radius: 99px; height: 10px; } :root[data-preset="teal"] .meter i { background: linear-gradient(180deg, #5FE3E0, #17777D); border-radius: 99px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(23, 119, 125, .4); }
:root[data-preset="teal"] .alert { background: linear-gradient(145deg, rgba(255, 246, 224, .92), rgba(255, 236, 190, .7)); border-color: rgba(240, 169, 58, .45); border-radius: 14px; box-shadow: 0 6px 14px rgba(240, 169, 58, .14), inset 0 1px 0 #fff; }
:root[data-preset="teal"] .in, :root[data-preset="teal"] .field input, :root[data-preset="teal"] .field select, :root[data-preset="teal"] .field textarea, :root[data-preset="teal"] .top .search input { border-radius: 12px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 2px 4px rgba(14, 79, 84, .10); border: 1px solid rgba(14, 79, 84, .16); } :root[data-preset="teal"][data-theme="dark"] .in, :root[data-preset="teal"][data-theme="dark"] .field input, :root[data-preset="teal"][data-theme="dark"] .field select, :root[data-preset="teal"][data-theme="dark"] .field textarea, :root[data-preset="teal"][data-theme="dark"] .top .search input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
:root[data-preset="teal"] .pagehead h2 { background: linear-gradient(90deg, #0E5B60, #1FA3A9); -webkit-background-clip: text; background-clip: text; color: transparent; } :root[data-preset="teal"][data-theme="dark"] .pagehead h2 { background: linear-gradient(90deg, #B8FFF8, #4FD3CF); -webkit-background-clip: text; background-clip: text; }
:root[data-preset="teal"] .pb { border-radius: 12px; box-shadow: 0 2px 0 rgba(14, 79, 84, .16), inset 0 1px 0 #fff; } :root[data-preset="teal"] .pb.on { box-shadow: 0 3px 0 rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .4); }
:root[data-preset="teal"] .auth { background: radial-gradient(700px 420px at 80% 0%, rgba(35, 190, 190, .5), transparent 60%), radial-gradient(600px 400px at 10% 100%, rgba(240, 169, 58, .35), transparent 60%), linear-gradient(160deg, #0B3F43, #12686D); }
@media print { :root[data-preset="teal"] body { background: #fff; } :root[data-preset="teal"] .card { box-shadow: none; } }
@media (max-width: 860px) { :root[data-preset="teal"] .side { border-radius: 0 0 22px 0; } }
:root[data-preset="teal"] .kpi b, :root[data-preset="teal"] .kpi span { position: relative; z-index: 1; } :root[data-preset="teal"] .kpi b { font-size: 21px; white-space: nowrap; } :root[data-preset="teal"] .kpis { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }

.card.dim { opacity: .6; } p.pre { white-space: pre-wrap; margin: 6px 0 0; } .sigimg { max-height: 60px; max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }

/* ================= SCHOOL MANAGER look (default): dark navy menu, pink active, sky-blue + pink accents, white cards */
:root[data-preset="manager"] { --navy: #0C1F4D; --navy2: #1298D6; --gold: #E81E79; --gold2: #FF5C9F; --bg: #EEF4FB; --soft: #E6EEF8; --line: #D6E1EE; --ink: #101C3A; --muted: #5C6B86; --info: #1298D6; --radius: 16px; }
:root[data-preset="manager"][data-theme="dark"] { --bg: #070F26; --card: #0F1C40; --ink: #E9F0FB; --muted: #9AABC8; --line: #20325E; --soft: #152650; --navy2: #35B6EE; }
.p-manager { background: linear-gradient(90deg, #0C1F4D 45%, #1298D6 45% 75%, #E81E79 75%); }
.sidelogo { display: block !important; padding: 6px 10px 12px !important; text-align: center; background: none !important; box-shadow: none !important; } .sidelogo img { width: 150px; max-width: 86%; height: auto; }
:root[data-preset="manager"] body { background: linear-gradient(180deg, #EAF2FB, #F5F8FC); } :root[data-preset="manager"][data-theme="dark"] body { background: linear-gradient(180deg, #060D22, #0A1430); }
:root[data-preset="manager"] .side { background: linear-gradient(180deg, #0E2458, #081638); padding: 10px 10px 16px; }
:root[data-preset="manager"] .side a { font-weight: 600; font-size: 14px; padding: 9px 12px; border-radius: 12px; color: #E8EEFA; } :root[data-preset="manager"] .side a .ic { width: 24px; height: 24px; }
:root[data-preset="manager"] .side a.on { background: linear-gradient(90deg, #F0247F, #FF4F9A); color: #fff; box-shadow: 0 8px 18px rgba(232, 30, 121, .40), inset 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-preset="manager"] .top { background: var(--card); box-shadow: 0 1px 0 var(--line); }
:root[data-preset="manager"] .card, :root[data-preset="manager"] .kpi, :root[data-preset="manager"] .tile, :root[data-preset="manager"] .stat { border-radius: 18px; border: 1px solid rgba(214, 225, 238, .8); box-shadow: 0 10px 26px rgba(16, 40, 90, .08), 0 2px 4px rgba(16, 40, 90, .04); } :root[data-preset="manager"][data-theme="dark"] .card, :root[data-preset="manager"][data-theme="dark"] .kpi, :root[data-preset="manager"][data-theme="dark"] .stat { border-color: #20325E; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
:root[data-preset="manager"] .btn { background: linear-gradient(180deg, #1BA8E4, #0E86C4); border-radius: 12px; box-shadow: 0 6px 14px rgba(18, 152, 214, .25); } :root[data-preset="manager"] .btn.gold { background: linear-gradient(180deg, #FF4F9A, #E81E79); color: #fff; box-shadow: 0 6px 14px rgba(232, 30, 121, .30); }
:root[data-preset="manager"] .btn.ghost { background: var(--card); color: var(--navy); border-color: var(--line); box-shadow: none; } :root[data-preset="manager"][data-theme="dark"] .btn.ghost { color: var(--ink); } :root[data-preset="manager"] .btn.danger { background: linear-gradient(180deg, #F0685A, #C0392B); box-shadow: none; } :root[data-preset="manager"] .btn.danger.ghost { background: var(--card); } :root[data-preset="manager"] .btn.wa { background: linear-gradient(180deg, #34C46B, #1B8F4A); box-shadow: none; } :root[data-preset="manager"] .btn.ok { background: var(--ok); }
:root[data-preset="manager"] .chip.on { background: linear-gradient(90deg, #F0247F, #FF4F9A); border-color: transparent; } :root[data-preset="manager"] .kpi { border-inline-start: 4px solid #1298D6; } :root[data-preset="manager"] .kpi.bad { border-inline-start-color: #E81E79; } :root[data-preset="manager"] .kpi.ok { border-inline-start-color: #22B573; } :root[data-preset="manager"] .kpi.warn { border-inline-start-color: #F0A93A; }
:root[data-preset="manager"] .kpi b, :root[data-preset="manager"] .dc b { color: var(--navy); } :root[data-preset="manager"][data-theme="dark"] .kpi b, :root[data-preset="manager"][data-theme="dark"] .dc b { color: #fff; }
:root[data-preset="manager"] .pagehead h2 { font-size: 26px; font-weight: 800; color: var(--ink); position: relative; padding-bottom: 6px; } :root[data-preset="manager"] .pagehead h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #E81E79, #FF5C9F); }
:root[data-preset="manager"] .dn.c1, :root[data-preset="manager"] .dn.ok { stroke: #12A5DE; } :root[data-preset="manager"] .dn.c2, :root[data-preset="manager"] .dn.bad { stroke: #E81E79; } :root[data-preset="manager"] .dot.c1 { background: #12A5DE; } :root[data-preset="manager"] .dot.c2 { background: #E81E79; } :root[data-preset="manager"] .meter i { background: linear-gradient(90deg, #12A5DE, #5CCBF5); } :root[data-preset="manager"] .tile .gl { background: linear-gradient(160deg, #1BA8E4, #0C1F4D); }
:root[data-preset="manager"] .alert { border-radius: 14px; } :root[data-preset="manager"] .auth { background: radial-gradient(700px 420px at 85% 0%, rgba(18, 165, 222, .55), transparent 60%), radial-gradient(600px 400px at 5% 100%, rgba(232, 30, 121, .40), transparent 60%), linear-gradient(160deg, #081638, #0E2458); } :root[data-preset="manager"] .auth .box { border-radius: 22px; }
/* dashboard blocks (all looks) */
.greet { font-size: 15px; color: var(--muted); margin: -4px 0 12px; font-weight: 600; } .yearpill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 700; } .yearpill .ic { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 14px; }
.stat { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -46px; width: 150px; height: 100px; border-radius: 50%; background: var(--sc, #12A5DE); opacity: .22; } .stat .si { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; background: linear-gradient(160deg, var(--sc2, #35C3F3), var(--sc, #12A5DE)); box-shadow: 0 8px 16px color-mix(in srgb, var(--sc, #12A5DE) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); } .stat .si .ic { width: 30px; height: 30px; }
.stat .sx { display: flex; flex-direction: column; position: relative; z-index: 1; min-width: 0; } .stat small { font-size: 13.5px; font-weight: 600; color: var(--muted); } .stat b { font-size: 27px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.c-cyan { --sc: #12A5DE; --sc2: #45CBF7; } .c-green { --sc: #22B573; --sc2: #5ADB9C; } .c-pink { --sc: #E81E79; --sc2: #FF62A6; } .c-navy { --sc: #0C1F4D; --sc2: #27408A; } .c-teal { --sc: #0FA3B1; --sc2: #3FD0DC; } .c-grey { --sc: #55627E; --sc2: #8391AE; }
.dgrid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; margin: 0 0 14px; } .dgrid > .card, .dgrid3 > .card { margin: 0; } .dgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 14px; } .card h3 .ic { width: 20px; height: 20px; vertical-align: -4px; }
.bars { display: flex; align-items: stretch; justify-content: space-around; gap: 10px; height: 230px; padding: 22px 6px 0; border-bottom: 2px solid var(--line); margin-bottom: 34px; } .bg { flex: 1; max-width: 120px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); position: relative; } .bb { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.b { width: 44%; border-radius: 8px 8px 0 0; position: relative; min-height: 3px; } .b.p { background: linear-gradient(180deg, #35C3F3, #0E97D2); } .b.a { background: linear-gradient(180deg, #FF62A6, #E81E79); width: 34%; } .b em { position: absolute; top: -19px; inset-inline: -10px; text-align: center; font-style: normal; font-weight: 700; font-size: 12.5px; } .bg small { position: absolute; bottom: -34px; inset-inline: 0; text-align: center; font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 600; }
.feebox { display: flex; align-items: center; gap: 14px; } .feebox .donut { flex: none; width: 160px; height: 160px; margin: 4px 0; } .feekv { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; margin: 0; font-size: 14px; } .feekv dd { margin: 0; font-weight: 700; text-align: end; } .feekv .tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.overdue { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #FFE9F2; border: 1px solid #F9B8D3; color: #C2185B; font-weight: 700; text-decoration: none; } .overdue b { width: 26px; height: 26px; border-radius: 50%; background: #E81E79; color: #fff; display: flex; align-items: center; justify-content: center; } .overdue span { flex: 1; } .overdue i { font-style: normal; font-size: 22px; } :root[data-theme="dark"] .overdue { background: #3A1227; border-color: #7A2148; color: #FF8FBE; }
.evl { display: grid; gap: 4px; } .ev { display: flex; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); } .ev:last-child { border-bottom: 0; } .evd { width: 52px; flex: none; text-align: center; background: var(--soft); border-radius: 10px; padding: 5px 0; } .evd small { display: block; font-size: 11.5px; color: var(--info); font-weight: 700; } .evd b { font-size: 19px; } .ev:nth-child(2n) .evd { background: #FFE9F2; } .ev:nth-child(2n) .evd small { color: #E81E79; } :root[data-theme="dark"] .ev:nth-child(2n) .evd { background: #3A1227; } .evt { min-width: 0; display: flex; flex-direction: column; } .evt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 86px; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; text-align: center; padding: 8px; background: linear-gradient(160deg, var(--sc2), var(--sc)); box-shadow: 0 8px 16px color-mix(in srgb, var(--sc) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); } .q .ic { width: 30px; height: 30px; } .q:hover { transform: translateY(-2px); }
@media (max-width: 1100px) { .dgrid, .dgrid3 { grid-template-columns: 1fr; } } @media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; gap: 8px; } .stat { padding: 10px; gap: 8px; } .stat .si { width: 40px; height: 40px; border-radius: 12px; } .stat .si .ic { width: 22px; height: 22px; } .stat b { font-size: 18px; } .stat small { font-size: 11.5px; } .feebox { flex-direction: column; } .bars { height: 180px; } :root[data-preset="manager"] .pagehead h2 { font-size: 19px; } .sidelogo img { width: 110px; } }
@media print { .greet, .stats { display: none; } }
.stat b { font-size: clamp(18px, 1.9vw, 27px); } .stat::after { z-index: 0; }

/* ---------- LOGIN PAGE 1.0.0b (SB concept 12 Nov 2026): picture side + sign-in card. Only for .auth.au2 (school login). The /super login keeps the small box. */
.auth.au2 { --aubg: #EAF4FD; --au1: #0A1B4A; --au2: #12409C; --au3: #2A9BEA; --auA: #12C8E8; --auM: #6A5BD6; --auB: #F0147E; --auT: #fff; min-height: 100vh; min-height: 100dvh; display: flex; align-items: stretch; justify-content: flex-start; padding: 0; }
:root .auth.au2, :root[data-preset] .auth.au2, :root[data-preset][data-theme] .auth.au2 { background: var(--aubg); }
:root[data-preset="teal"] .auth.au2 { --aubg: #EAF5F5; --au1: #08363A; --au2: #12686D; --au3: #23BEBE; --auA: #23BEBE; --auM: #17777D; --auB: #F0A93A; }
:root:not([data-preset="manager"]):not([data-preset="teal"]) .auth.au2 { --aubg: var(--bg); --au1: var(--navy); --au2: var(--navy); --au3: var(--navy2); --auA: var(--gold2); --auM: var(--gold); --auB: var(--gold); --auT: #1d1600; }
:root[data-theme="dark"] .auth.au2 { --aubg: #0A1330; }
.au-hero { position: relative; flex: 1.38 1 0; min-width: 0; overflow: hidden; color: #fff; background: var(--au2); background: linear-gradient(180deg, var(--au1) 0%, var(--au2) 30%, var(--au3) 56%, color-mix(in srgb, var(--au3) 45%, #fff) 76%); display: flex; flex-direction: column; }
.au-top { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); padding: clamp(20px, 3.4vw, 46px) clamp(70px, 9vw, 130px) 0 clamp(20px, 3.4vw, 50px); }
[dir="rtl"] .au-top { padding: clamp(20px, 3.4vw, 46px) clamp(20px, 3.4vw, 50px) 0 clamp(70px, 9vw, 130px); }
.au-logo { height: clamp(110px, 13vw, 200px); width: auto; flex: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.au-div { flex: none; width: 2px; align-self: stretch; margin: 18px 0; background: rgba(255, 255, 255, .6); border-radius: 2px; }
.au-wel h2 { margin: 0; font-size: clamp(26px, 2.9vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.au-wel p { margin: 8px 0 14px; font-size: clamp(14px, 1.45vw, 23px); opacity: .96; }
.au-wel i { display: block; width: clamp(80px, 9vw, 130px); height: 6px; border-radius: 3px; background: var(--auB); }
.au-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 900 / 640; max-height: 72%; object-fit: cover; object-position: center bottom; z-index: 1; pointer-events: none; -webkit-user-select: none; user-select: none; }
.au-curve { position: absolute; top: 0; bottom: 0; right: -1px; width: clamp(60px, 8vw, 120px); height: 100%; z-index: 3; }
[dir="rtl"] .au-curve { right: auto; left: -1px; transform: scaleX(-1); }
.au-curve path { fill: var(--aubg); }
.au-side { position: relative; flex: 1 1 0; min-width: min(430px, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 22px clamp(16px, 2.6vw, 40px); }
.au-lang { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border: 1.5px solid #9FB2CC; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600; }
.au-lang select { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; padding: 6px 4px; min-height: 40px; cursor: pointer; outline: 0; }
.au-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth.au2 .box { width: 100%; max-width: 540px; background: var(--card); border: 0; border-top: 0; border-radius: 28px; padding: clamp(22px, 2.8vw, 40px) clamp(18px, 2.6vw, 38px) 22px; box-shadow: 0 24px 60px rgba(12, 31, 77, .13), 0 2px 8px rgba(12, 31, 77, .06); }
.au-sch { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.au-sch img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; flex: none; }
.au-sch b { display: block; font-size: 17px; color: var(--ink); line-height: 1.25; } .au-sch small { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.au-f { display: block; margin: 0 0 16px; } .au-f > span:first-child { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.au-in { position: relative; display: block; color: var(--ink); }
.au-in > .au-ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.au-in input { width: 100%; min-height: 54px; padding: 12px 14px; padding-inline-start: 48px; border: 1.5px solid #B9C6D8; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; }
.au-in input::placeholder { color: #7C8AA3; } .au-in input:focus { outline: 0; border-color: var(--auA); box-shadow: 0 0 0 4px color-mix(in srgb, var(--auA) 22%, transparent); }
.au-in .pw-wrap input { padding-inline-end: 50px; } .au-in .pw-eye { inset-inline-end: 8px; width: 40px; height: 40px; color: var(--ink); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 20px; flex-wrap: wrap; font-size: 15px; }
.au-rem { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); cursor: pointer; } .au-rem input { width: 22px; height: 22px; accent-color: var(--auM); cursor: pointer; }
.au-row a { color: #0B86D6; font-weight: 600; text-decoration: none; } .au-row a:hover { text-decoration: underline; }
.au-go { width: 100%; min-height: 60px; border: 0; border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-size: 21px; font-weight: 700; color: var(--auT); background: linear-gradient(90deg, var(--auA) 0%, var(--auM) 52%, var(--auB) 100%); box-shadow: 0 12px 24px rgba(106, 91, 214, .28), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s, box-shadow .12s, filter .12s; }
.au-go .au-ic { width: 28px; height: 28px; stroke-width: 2; } [dir="rtl"] .au-go .au-ic { transform: scaleX(-1); }
.au-go:hover { filter: brightness(1.06); transform: translateY(-1px); } .au-go:active { transform: translateY(1px); } .au-go:disabled { opacity: .65; cursor: default; transform: none; }
.au-go:focus-visible, .au-row a:focus-visible, .au-lang select:focus-visible, .au-rem input:focus-visible { outline: 3px solid var(--auA); outline-offset: 3px; }
.au-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.au-help { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--ink); }
.auth.au2 .msg { margin-top: 12px; }
.au-copy { margin: 0; text-align: center; font-size: 13.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink); } .au-copy span { display: block; margin-top: 3px; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 12.5px; }
:root[data-theme="dark"] .au-in input, :root[data-theme="dark"] .au-lang { border-color: #33466B; } :root[data-theme="dark"] .au-row a { color: #5CC2FF; } :root[data-theme="dark"] .auth.au2 .box { box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
@media (max-width: 900px) { .auth.au2 { flex-direction: column; } .au-hero { flex: none; border-radius: 0 0 28px 28px; background: linear-gradient(165deg, var(--au1) 0%, var(--au2) 62%, var(--au3) 100%); } .au-top { padding: 18px 18px 20px !important; gap: 14px; } .au-logo { height: 104px; } .au-wel h2 { font-size: 25px; } .au-wel p { font-size: 14.5px; margin: 4px 0 10px; } .au-wel i { height: 5px; width: 70px; } .au-art, .au-curve { display: none; } .au-side { flex: 1 1 auto; justify-content: flex-start; padding: 14px 12px 20px; gap: 12px; min-width: 0; } .au-lang { height: 42px; } .auth.au2 .box { border-radius: 22px; } .au-go { min-height: 54px; font-size: 19px; } }
@media (max-height: 640px) and (min-width: 901px) { .au-side { justify-content: flex-start; } .au-f { margin-bottom: 10px; } .au-in input { min-height: 46px; } .au-go { min-height: 50px; } .au-help { margin-top: 12px; padding-top: 10px; } }
@media print { .au-hero { display: none; } }

/* LOGIN 1.0.0c: SB's own picture ("exact use the image") on the left. The picture already has the logo + Welcome Back, so the drawn ones are hidden on big screens. */
:root[data-preset="manager"] .auth.au2 { --aubg: #E1F3FE; }
.au-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: 4; -webkit-user-select: none; user-select: none; }
[dir="rtl"] .au-photo { transform: none; }
.au-hero:has(.au-photo) .au-top, .au-hero:has(.au-photo) .au-art, .au-hero:has(.au-photo) .au-curve { visibility: hidden; }
.au-hero { flex: 0 0 auto; width: min(62vw, calc(100vh * 962 / 941)); width: min(62vw, calc(100dvh * 962 / 941)); background: #E1F3FE; }
@media (max-width: 900px) { .au-photo { display: none; } .au-hero:has(.au-photo) .au-top { visibility: visible; } }

/* ---------- LEARNING 1.1.0: student page /learn/<CODE> (mobile first, navy + sky + pink, colour subject cards) */
.lrn-body { background: #EEF5FC; }
.lrn-body, .lrn-body button, .lrn-body input { font-family: "Montserrat", "Tajawal", Arial, sans-serif; }
[dir="rtl"] .lrn-body, [dir="rtl"] .lrn-body button, [dir="rtl"] .lrn-body input { font-family: "Tajawal", "Montserrat", Arial, sans-serif; }
.lic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .lic.flip { transform: scaleX(-1); }
.lic.gold { fill: #FFC93C; stroke: #E0A100; }
.lrn-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px solid #B9C6D8; border-radius: 12px; background: #fff; color: #0C1F4D; font-weight: 600; font-size: 14px; cursor: pointer; }
.lrn-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 16px 14px 24px; background: linear-gradient(170deg, #0C1F4D 0%, #12409C 42%, #1298D6 78%, #EEF5FC 78.2%); }
.lrn-lhead { width: 100%; max-width: 460px; display: flex; justify-content: flex-end; }
.lrn-lhead .lrn-lang { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.lrn-lcard { width: 100%; max-width: 460px; margin-top: 18px; background: #fff; border-radius: 26px; padding: 26px 20px 22px; text-align: center; box-shadow: 0 22px 50px rgba(12, 31, 77, .22); }
.lrn-llogo { width: 92px; height: 92px; object-fit: contain; border-radius: 20px; margin-top: -70px; background: #fff; padding: 8px; box-shadow: 0 8px 22px rgba(12, 31, 77, .18); }
.lrn-lcard h1 { margin: 12px 0 2px; font-size: 20px; color: #0C1F4D; line-height: 1.3; }
.lrn-sub { margin: 0 0 14px; font-size: 26px; font-weight: 800; background: linear-gradient(90deg, #1298D6, #6A5BD6, #E81E79); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lrn-demo { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #FFF6D6; color: #6B5300; font-size: 14px; line-height: 1.5; }
.lrn-f { display: block; text-align: start; margin: 0 0 14px; } .lrn-f > span:first-child { display: block; font-weight: 700; font-size: 15px; color: #0C1F4D; margin-bottom: 6px; }
.lrn-in { position: relative; display: block; color: #0C1F4D; } .lrn-in > .lic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.lrn-in input { width: 100%; min-height: 54px; padding: 12px 14px; padding-inline-start: 46px; border: 1.5px solid #B9C6D8; border-radius: 14px; font-size: 18px; color: #0C1F4D; background: #fff; letter-spacing: .04em; }
.lrn-in input:focus { outline: 0; border-color: #1298D6; box-shadow: 0 0 0 4px rgba(18, 152, 214, .2); }
.lrn-in .pw-wrap input { padding-inline-end: 50px; } .lrn-in .pw-eye { inset-inline-end: 8px; }
.lrn-go { width: 100%; min-height: 56px; border: 0; border-radius: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #12C8E8 0%, #6A5BD6 52%, #E81E79 100%); box-shadow: 0 10px 22px rgba(106, 91, 214, .28); }
.lrn-go:disabled { opacity: .6; cursor: default; } .lrn-go:focus-visible, .lrn-lang:focus-visible, .lrn-ib:focus-visible, .lrn-sub:focus-visible, .lrn-li:focus-visible { outline: 3px solid #1298D6; outline-offset: 3px; }
.lrn-go.alt { background: #0C1F4D; box-shadow: none; }
.lrn-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDE7EF; color: #A3114F; font-size: 14px; }
.lrn-help { margin: 14px 0 0; font-size: 14px; color: #55627A; } .lrn-copy { margin: auto 0 0; padding-top: 18px; font-size: 12.5px; color: #55627A; font-weight: 600; }
.lrn { min-height: 100vh; max-width: 760px; margin: 0 auto; }
.lrn-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0C1F4D; color: #fff; }
.lrn-top .lrn-lang { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); min-height: 38px; padding: 0 10px; } .lrn-top .lrn-lang span { font-size: 13px; }
.lrn-tlogo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.lrn-tname { flex: 1; min-width: 0; } .lrn-tname b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lrn-tname small { display: block; font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrn-ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; text-decoration: none; }
.lrn-demobar { margin: 0; padding: 6px 12px; background: #FFF6D6; color: #6B5300; font-size: 13px; text-align: center; }
.lrn-main { padding: 14px 14px 40px; } .lrn-main h2 { font-size: 18px; color: #0C1F4D; margin: 22px 0 10px; }
.lrn-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #12409C 0%, #1298D6 60%, #12C8E8 100%); box-shadow: 0 12px 26px rgba(18, 64, 156, .25); }
.lrn-hello h1 { margin: 0; font-size: 23px; } .lrn-hello p { margin: 4px 0 0; opacity: .92; font-size: 15px; }
.lrn-stars { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .18); min-width: 74px; }
.lrn-stars .lic { width: 30px; height: 30px; fill: #FFC93C; stroke: #FFC93C; } .lrn-stars b { font-size: 22px; line-height: 1.1; } .lrn-stars small { font-size: 12px; }
.lrn-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.lrn-kpis div { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: 0 4px 12px rgba(12, 31, 77, .07); } .lrn-kpis b { display: block; font-size: 20px; color: #0C1F4D; } .lrn-kpis small { font-size: 12px; color: #55627A; }
.lrn-cont { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; color: #0C1F4D; text-decoration: none; border: 2px solid #E81E79; box-shadow: 0 6px 16px rgba(232, 30, 121, .12); }
.lrn-cont > .lic:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #E81E79; color: #fff; fill: #fff; stroke: none; } .lrn-cont div { flex: 1; min-width: 0; } .lrn-cont small { display: block; color: #E81E79; font-weight: 700; font-size: 12.5px; } .lrn-cont b { display: block; font-size: 16px; }
.lrn-subs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .lrn-subs { grid-template-columns: repeat(3, 1fr); } }
.lrn-sub { display: flex; flex-direction: column; gap: 8px; min-height: 142px; padding: 14px; border-radius: 20px; color: #fff; text-decoration: none; box-shadow: 0 10px 20px rgba(12, 31, 77, .14); transition: transform .12s; }
.lrn-sub:active { transform: scale(.98); } .lrn-sub b { font-size: 16px; line-height: 1.25; flex: 1; }
.lrn-sic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .24); font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.c0 { background: linear-gradient(140deg, #1298D6, #0E6FB8); } .c1 { background: linear-gradient(140deg, #E81E79, #B3125C); } .c2 { background: linear-gradient(140deg, #22B573, #13804F); } .c3 { background: linear-gradient(140deg, #F29A1F, #C9700A); }
.c4 { background: linear-gradient(140deg, #6A5BD6, #4B3BB0); } .c5 { background: linear-gradient(140deg, #12B3B8, #0B7F83); } .c6 { background: linear-gradient(140deg, #EF5A4E, #C2372C); } .c7 { background: linear-gradient(140deg, #12409C, #0C1F4D); }
.lrn-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .3); overflow: hidden; } .lrn-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #fff; transition: width .5s; }
.lrn-bt { font-size: 12.5px; opacity: .95; }
.lrn-hw { display: flex; flex-direction: column; gap: 10px; }
.lrn-hwi { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 4px 12px rgba(12, 31, 77, .07); }
.lrn-hwi.done .lrn-hwt b { text-decoration: line-through; color: #7C8AA3; }
.lrn-tick { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #B9C6D8; background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lrn-hwi.done .lrn-tick { background: #22B573; border-color: #22B573; color: #fff; }
.lrn-hwt { flex: 1; min-width: 0; } .lrn-hwt b { display: block; color: #0C1F4D; font-size: 15px; } .lrn-hwt p { margin: 3px 0; font-size: 14px; color: #33405A; } .lrn-hwt small { color: #55627A; font-size: 12.5px; }
.lrn-late { flex: none; align-self: center; padding: 3px 9px; border-radius: 10px; background: #FDE7EF; color: #A3114F; font-size: 12px; font-weight: 700; }
.lrn-empty { padding: 18px; border-radius: 16px; background: #fff; color: #55627A; text-align: center; }
.lrn-shead { padding: 20px 18px; border-radius: 22px; color: #fff; display: flex; flex-direction: column; gap: 8px; } .lrn-shead h1 { margin: 0; font-size: 24px; }
.lrn-ch { margin-top: 18px; } .lrn-ch h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.lrn-ch h2 span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: #0C1F4D; color: #fff; font-size: 14px; }
.lrn-li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: #fff; color: #0C1F4D; text-decoration: none; box-shadow: 0 4px 12px rgba(12, 31, 77, .07); }
.lrn-st { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #E3F2FC; color: #1298D6; flex: none; } .lrn-li.done .lrn-st { background: #DDF5E9; color: #13804F; }
.lrn-lt { flex: 1; min-width: 0; } .lrn-lt b { display: block; font-size: 15.5px; } .lrn-lt small { color: #55627A; font-size: 12.5px; }
.lrn-lesson h1 { margin: 4px 0 12px; font-size: 24px; color: #0C1F4D; line-height: 1.3; } .lrn-crumb { color: #1298D6; font-weight: 700; font-size: 13px; }
.lrn-media { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lrn-mbtn { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; color: #fff; text-decoration: none; font-weight: 700; } .lrn-mbtn.vid { background: #E81E79; } .lrn-mbtn.pdf { background: #12409C; }
.lrn-text { white-space: pre-line; padding: 18px; border-radius: 18px; background: #fff; font-size: 17px; line-height: 1.75; color: #1D2840; box-shadow: 0 4px 12px rgba(12, 31, 77, .07); }
.lrn-quiz { margin-top: 18px; padding: 16px; border-radius: 20px; background: #fff; border: 2px solid #E6E0FA; } .lrn-quiz h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #4B3BB0; } .lrn-quiz h2 .lic { fill: #FFC93C; stroke: #E0A100; } .lrn-quiz h2 small { font-size: 13px; color: #55627A; font-weight: 600; }
.lrn-q { border: 0; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: #F6F8FC; } .lrn-q legend { display: flex; gap: 8px; font-weight: 700; color: #0C1F4D; font-size: 16px; padding: 0; margin-bottom: 8px; width: 100%; }
.lrn-q legend span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: #6A5BD6; color: #fff; font-size: 13px; }
.lrn-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1.5px solid #D5DEEB; cursor: pointer; font-size: 16px; }
.lrn-opt input { width: 22px; height: 22px; accent-color: #6A5BD6; flex: none; } .lrn-opt.right { border-color: #22B573; background: #E6F7EE; } .lrn-opt.wrong { border-color: #E81E79; background: #FDE7EF; }
.lrn-score { margin-top: 14px; padding: 16px; border-radius: 16px; background: #EEF5FC; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; } .lrn-score b { font-size: 34px; color: #12409C; } .lrn-score.full { background: #FFF6D6; } .lrn-score.full b { color: #B37A00; }
.lrn-done { margin-top: 18px; } .lrn-ok { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 16px; background: #DDF5E9; color: #13804F; font-weight: 700; margin: 0; }
.lrn-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; } .lrn-pn a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #0C1F4D; text-decoration: none; font-weight: 700; box-shadow: 0 4px 12px rgba(12, 31, 77, .07); }
.lrn-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: #13804F; color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); max-width: 90vw; } .lrn-toast.bad { background: #A3114F; }

/* LEARNING staff pages */
.lms-ls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.lms-l { text-align: start; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.lms-l:hover { border-color: var(--navy2, #1298D6); } .lms-l small { color: var(--muted); font-size: 12px; } .lms-l.dim { opacity: .55; }
.lms-qh { margin: 18px 0 8px; font-size: 15px; } .lms-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--soft); }
.lms-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lms-o { display: flex; align-items: center; gap: 8px; } .lms-o input[type=radio] { width: 20px; height: 20px; flex: none; accent-color: var(--auM, #6A5BD6); } .lms-o input[name=opt] { flex: 1; min-width: 0; }
@media (max-width: 640px) { .lms-opts { grid-template-columns: 1fr; } }
.pinsheet { background: #fff; width: 210mm; max-width: 100%; margin: 0 auto 20px; padding: 10mm; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 66mm; gap: 0; box-shadow: 0 4px 24px rgba(0, 0, 0, .15); color: #0C1F4D; }
.pinslip { border: 1px dashed #9FB2CC; padding: 4mm 5mm; display: flex; flex-direction: column; gap: 2mm; font-size: 10pt; }
.ps-h { display: flex; align-items: center; gap: 3mm; } .ps-h img { width: 11mm; height: 11mm; object-fit: contain; } .ps-h b { display: block; font-size: 10.5pt; } .ps-h small { font-size: 8.5pt; color: #55627A; }
.ps-b { display: flex; gap: 3mm; align-items: flex-start; flex: 1; } .ps-b > div { flex: 1; } .ps-b p { margin: 0 0 1.2mm; } .ps-b p span { display: block; font-size: 8pt; color: #55627A; } .ps-pin { font-size: 16pt; letter-spacing: .12em; }
.ps-url { font-size: 8pt; word-break: break-all; color: #12409C; } .ps-qr { width: 24mm; height: 24mm; image-rendering: pixelated; } .pinslip > small { font-size: 7.5pt; color: #55627A; }
@media print { .pinsheet { box-shadow: none; margin: 0; break-after: page; } }
