/* Machadka Al-Macarif — clean modern design */
:root {
  --bg: #F4F6F5; --card: #FFFFFF; --line: #E7ECEA; --line2: #F0F3F2;
  --ink: #0F1F19; --ink-2: #34443E; --ink-3: #6B7C75; --ink-4: #8A9A93;
  --green: #0B3328; --green-2: #0B6B4B; --green-soft: #E8F3EE;
  --gold: #E6C67F; --gold-2: #C8A04F; --gold-soft: #FBF4E4; --gold-text: #8A6417;
  --red: #C2362F; --red-bg: #FDECEC; --ok: #13814A; --ok-bg: #E7F6EE; --pu: #7A3DB8; --pu-bg: #F3ECFB; --blue: #2B5BA8; --blue-bg: #EAF1FB;
  --amber-bg: #FFF8EB;
  --r: 20px; --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 8px 24px rgba(16, 24, 20, .05);
  --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: 'Tajawal', 'Inter', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.muted { color: var(--ink-3); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.side { flex: 0 0 224px; margin: 12px; margin-inline-end: 0; border-radius: 24px; background: var(--green); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 12px; height: calc(100vh - 24px); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.side .brand .ar { font-family: 'Amiri', serif; font-size: 20px; line-height: 1.1; }
.side .brand small { display: block; font-size: 11px; color: #9FB8AD; font-weight: 600; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: none; border-radius: 12px; background: transparent; color: #BFD3CA; font-size: 15px; font-weight: 500; text-align: start; transition: background .15s, color .15s; }
.side nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav button.active { background: rgba(230, 198, 127, .16); color: #F3D99A; font-weight: 600; }
.side .grow { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 8px; border: none; background: transparent; color: #fff; border-radius: 12px; text-align: start; }
.side .me:hover { background: rgba(255, 255, 255, .06); }
.side .me .av { width: 34px; height: 34px; border-radius: 11px; background: var(--gold); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 34px; }
.side .me small { display: block; color: #9FB8AD; font-size: 11px; }

.main { flex: 1; min-width: 0; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.gsearch { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--card); border: 1px solid #E3E9E6; border-radius: 14px; color: var(--ink-3); font-size: 15px; text-align: start; transition: border-color .15s, box-shadow .15s; }
.gsearch:hover { border-color: #C9D5D0; box-shadow: var(--shadow); }
.gsearch .k { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: var(--ink-2); background: #F2F5F4; border: 1px solid #E3E9E6; border-radius: 7px; padding: 3px 7px; }
.lang { display: flex; gap: 2px; background: var(--card); border: 1px solid #E3E9E6; border-radius: 12px; padding: 3px; }
.lang button { border: none; background: transparent; padding: 8px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lang button.active { background: var(--green); color: #fff; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid #E3E9E6; background: var(--card); align-items: center; justify-content: center; }
#page { display: flex; flex-direction: column; gap: 20px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- cards & numbers ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 20, .05), 0 14px 30px rgba(16, 24, 20, .08); }
.stat .lbl { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat .val { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; }
.c-ok { color: var(--ok) !important; } .c-red { color: var(--red) !important; } .c-pu { color: var(--pu) !important; } .c-muted { color: var(--ink-4) !important; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.link { border: none; background: none; color: var(--green-2); font-weight: 600; font-size: 14px; padding: 8px 0 0; }
.link:hover { text-decoration: underline; }

/* list rows */
.rows { display: flex; flex-direction: column; }
.ritem { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line2); }
.ritem:last-child { border-bottom: none; }
.ritem.click { cursor: pointer; border-radius: 12px; padding-inline: 8px; margin-inline: -8px; transition: background .12s; }
.ritem.click:hover { background: #F7FAF8; }
.ritem .grow { flex: 1; min-width: 0; }
.ritem .grow b { display: block; font-size: 15px; font-weight: 600; }
.ritem .grow small { display: block; font-size: 13px; color: var(--ink-3); }
.ritem .amt { font-size: 15px; font-weight: 700; }

.av { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: 0 0 40px; color: #fff; overflow: hidden; background: #A8801F; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.c1 { background: #0B6B4B; } .av.c2 { background: #4553B8; } .av.c3 { background: #A8801F; } .av.c4 { background: #B4523A; }
.av.sm { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.av.lg { width: 76px; height: 76px; flex-basis: 76px; font-size: 28px; border: 3px solid var(--gold); }

/* chips & filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: none; padding: 8px 16px; border-radius: 999px; background: #F2F5F4; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background .12s; }
.chip:hover { background: #E8EEEB; }
.chip.active { background: var(--green); color: #fff; }
.chip.red { background: var(--red-bg); color: var(--red); } .chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.pu { background: var(--pu-bg); color: var(--pu); }
.chip.red.active, .chip.ok.active, .chip.pu.active { box-shadow: inset 0 0 0 2px currentColor; }
.seg { display: inline-flex; gap: 2px; background: #F2F5F4; border-radius: 10px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button.active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); color: var(--ink); }
select.sel { height: 40px; border-radius: 10px; border: 1px solid #E3E9E6; background: #fff; padding: 0 10px; font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: start; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; transition: background .12s; }
.tbl tr.click:hover td { background: #F7FAF8; }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-weight: 600; }
.who small { display: block; font-size: 12.5px; color: var(--ink-3); }
.empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty-light { padding: 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--ink-3); font-size: 14px; text-align: center; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lt-paid, .st-paid, .g-excellent { background: var(--ok-bg); color: var(--ok); }
.lt-owes, .st-owes, .g-fail, .lt-partial, .st-partial { background: var(--red-bg); color: var(--red); }
.lt-credit, .st-credit { background: var(--pu-bg); color: var(--pu); }
.lt-plan, .st-plan, .g-good { background: var(--blue-bg); color: var(--blue); }
.g-very_good { background: var(--gold-soft); color: var(--gold-text); }
.st-grey { background: #F2F5F4; color: var(--ink-3); }
.m-zaad { background: var(--ok-bg); color: var(--ok); } .m-cash { background: var(--blue-bg); color: var(--blue); } .m-edahab { background: var(--pu-bg); color: var(--pu); }
.neg { color: var(--red) !important; font-weight: 700; } .pos { color: var(--ok) !important; font-weight: 700; } .cred { color: var(--pu) !important; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 13px; font-size: 15px; font-weight: 600; border: 1px solid #E3E9E6; background: #fff; color: var(--ink); white-space: nowrap; text-decoration: none; transition: transform .1s, box-shadow .15s, background .15s; }
.btn:hover { box-shadow: 0 2px 8px rgba(16, 24, 20, .08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-main, .btn-gold { border: none; background: var(--gold); color: var(--green); font-weight: 700; }
.btn-main:hover, .btn-gold:hover { background: #EDD08F; }
.btn-dark { border: none; background: var(--green); color: #fff; font-weight: 700; }
.btn-dark:hover { background: #134A3A; }
.btn-soft, .btn-outline-gold, .btn-outline-green { background: #F2F5F4; border-color: transparent; color: var(--ink); }
.btn-soft:hover, .btn-outline-gold:hover, .btn-outline-green:hover { background: #E8EEEB; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-danger { border: 1px solid #F6C2C0; background: #fff; color: var(--red); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: none; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- drawer (student card) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(11, 33, 26, .32); backdrop-filter: blur(3px); animation: fade .18s ease-out; }
.drawer { position: fixed; z-index: 41; top: 12px; bottom: 12px; inset-inline-end: 12px; width: min(600px, calc(100vw - 24px)); background: #fff; border-radius: 24px; box-shadow: -20px 0 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; animation: slide .26s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .drawer { animation-name: slide-rtl; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dhead { position: relative; padding: 20px 22px 18px; background: linear-gradient(135deg, #0B3328 0%, #145A45 100%); color: #fff; overflow: hidden; }
.dhead::after { content: ''; position: absolute; inset-inline-end: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(230, 198, 127, .10); pointer-events: none; }
.dhead .top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.dhead .top span { font-size: 12px; color: #BFD3CA; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.dhead .id { display: flex; align-items: center; gap: 16px; margin-top: 12px; position: relative; z-index: 1; }
.dhead h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.dhead .ar { font-family: 'Amiri', serif; font-size: 17px; color: #F3D99A; }
.tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tags span { padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 11.5px; font-weight: 600; }
.dbody { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.dfoot { display: flex; gap: 8px; padding: 14px 22px 16px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.dfoot .btn { flex: 1 1 120px; }
.sum3 { display: flex; align-items: stretch; gap: 8px; text-align: center; }
.sum3 > div { flex: 1; border-radius: 16px; padding: 12px 6px; }
.sum3 > i { display: flex; align-items: center; color: #B4C0BB; font-style: normal; font-weight: 700; font-size: 18px; }
.sum3 small { display: block; font-size: 12px; font-weight: 600; }
.sum3 b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.sum3 .a { background: #F4F6F5; } .sum3 .b { background: var(--ok-bg); color: var(--ok); } .sum3 .c { background: var(--red-bg); color: var(--red); box-shadow: inset 0 0 0 1.5px #F6C2C0; }
.sum3 .c.ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1.5px #BDE5CF; } .sum3 .c.pu { background: var(--pu-bg); color: var(--pu); box-shadow: inset 0 0 0 1.5px #DCC8F2; }
.say { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--amber-bg); color: var(--gold-text); font-size: 14px; }
.say.ok { background: var(--ok-bg); color: var(--ok); } .say.pu { background: var(--pu-bg); color: var(--pu); }
.say .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 8px; }
.say button { margin-inline-start: auto; border: none; background: none; font-weight: 700; color: var(--green-2); }
.mstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mstrip div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; }
.mstrip b { font-size: 12px; } .mstrip span { font-size: 10.5px; font-weight: 600; }
.ms-paid { background: var(--ok-bg); color: var(--ok); } .ms-ahead { background: #F1ECFB; color: #6D4BC3; } .ms-unpaid, .ms-partial { background: var(--red-bg); color: var(--red); } .ms-upcoming, .ms-none { background: #F4F6F5; color: var(--ink-4); }
.box2 { border: 1px solid var(--line2); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.box2 .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.box2 .h b { font-size: 15px; }
.subj { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.subj div { background: #F4F6F5; border-radius: 12px; padding: 10px; }
.subj small { display: block; font-size: 11.5px; color: var(--ink-3); }
.subj b { font-size: 18px; } .subj i { font-style: normal; font-size: 11px; font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: #EEF2F0; overflow: hidden; } .bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0B6B4B, #2FBF85); transition: width .6s ease; }
.kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kvs div { background: #F7F9F8; border-radius: 12px; padding: 10px 12px; } .kvs small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; } .kvs b { font-size: 14px; }

/* dropdown menu */
.pop-menu { position: absolute; z-index: 60; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 24, 20, .18); padding: 6px; animation: rise .15s ease-out; }
.pop-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; background: none; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: start; color: var(--ink); }
.pop-menu button:hover { background: #F4F6F5; }
.pop-menu .ic { width: 30px; height: 30px; border-radius: 9px; background: #F2F5F4; display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex: 0 0 30px; }

/* ---------- search palette ---------- */
.palette-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(11, 33, 26, .42); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; animation: fade .15s ease-out; }
.palette { width: 100%; max-width: 680px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); overflow: hidden; animation: pop .18s ease-out; }
.palette .in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line2); color: var(--green-2); }
.palette .in input { flex: 1; border: none; outline: none; font-size: 19px; font-weight: 600; color: var(--ink); background: transparent; min-width: 0; }
.palette .k { font-size: 11px; font-weight: 700; color: var(--ink-2); background: #F2F5F4; border: 1px solid #E3E9E6; border-radius: 7px; padding: 4px 8px; }
.palette .res { padding: 8px 10px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.palette .sec { font-size: 11px; letter-spacing: 1px; font-weight: 700; color: var(--ink-4); padding: 8px 12px 6px; text-transform: uppercase; }
.palette .hit { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: none; background: none; width: 100%; text-align: start; }
.palette .hit .grow { flex: 1; min-width: 0; } .palette .hit b { display: block; font-size: 14.5px; font-weight: 600; } .palette .hit small { display: block; font-size: 12.5px; color: var(--ink-3); }
.palette .hit.on { background: #F0F7F3; box-shadow: inset 3px 0 0 var(--green-2); }
[dir="rtl"] .palette .hit.on { box-shadow: inset -3px 0 0 var(--green-2); }
.palette .foot { display: flex; gap: 18px; padding: 11px 20px; background: #F8FAF9; border-top: 1px solid var(--line2); font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.palette .foot b { color: var(--ink-2); }

/* ---------- modal (forms) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 33, 26, .40); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 820px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); animation: pop .2s ease-out; }
.modal.wide { max-width: 960px; } .modal.narrow { max-width: 560px; } .modal.xwide { max-width: 1180px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line2); }
.modal-head .t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.modal-head .mi { width: 44px; height: 44px; border-radius: 13px; background: var(--green-soft); color: var(--green-2); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; overflow: hidden; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.modal-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.x-btn { width: 40px; height: 40px; border-radius: 12px; border: none; background: #F2F5F4; color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.x-btn:hover { background: #E8EEEB; }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 22px; background: #F8FAF9; border-top: 1px solid var(--line2); }
.modal-foot .spacer { flex: 1; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 46px; border: 1px solid #E3E9E6; border-radius: 12px; padding: 0 14px; font-size: 14.5px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 80px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .mark-input:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(11, 107, 75, .15); }
.section-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.box { background: #F7F9F8; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { flex: 1 1 110px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #E3E9E6; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: all .12s; }
.choice:hover { border-color: #C9D5D0; }
.choice.active { border-color: var(--green); background: var(--green); color: #fff; font-weight: 700; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #E3E9E6; border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--green-2); }
.student-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #F7F9F8; border-radius: 16px; padding: 12px 14px; }
.student-strip .av { width: 46px; height: 46px; flex-basis: 46px; font-size: 18px; }
.student-strip .grow { flex: 1 1 200px; } .student-strip .grow b { display: block; font-size: 16px; } .student-strip .grow small { font-size: 13px; color: var(--ink-3); }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.sum { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: #F4F6F5; }
.sum span { font-size: 12px; font-weight: 600; } .sum b { font-size: 22px; }
.hist { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; }
.hist.rev { opacity: .6; background: #FFF6F5; }
.hist .grow { flex: 1; min-width: 0; } .hist .grow b { display: block; font-size: 14px; } .hist .grow small { font-size: 12px; color: var(--ink-3); }
.alloc { background: #FBFCFB; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.alloc-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--line2); font-size: 14px; }
.amount-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 62px; padding: 8px 14px; border-radius: 12px; border: 1px solid #E3E9E6; background: #fff; text-align: start; transition: all .12s; }
.amount-opt span { font-size: 12px; } .amount-opt b { font-size: 18px; }
.amount-opt.active { border-color: var(--green); background: var(--green); color: #fff; }
.plan-box { border: 1px solid #CFE0F5; background: #F5F9FE; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: #1E3A6B; }
.inst { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px solid #DBEAFE; }
.inst .no { width: 30px; height: 30px; border-radius: 50%; background: #1E3A6B; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 30px; }
.switch { position: relative; flex: 0 0 44px; height: 26px; border-radius: 999px; background: #C9D3CD; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: all .15s; }
.switch.on { background: var(--ok); } .switch.on::after { inset-inline-start: 21px; }
.bubble-wrap { background: #EFE7DE; border-radius: 16px; padding: 16px; }
.bubble { max-width: 92%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 14px; line-height: 1.6; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); white-space: pre-wrap; }
table.light { width: 100%; border-collapse: collapse; font-size: 14px; }
table.light th { background: #F7F9F8; color: var(--ink-3); text-align: start; padding: 10px 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }
table.light td { padding: 9px 12px; border-top: 1px solid var(--line2); }
.mark-input { width: 72px; height: 42px; border: 1px solid #E3E9E6; border-radius: 10px; text-align: center; font-weight: 700; font-size: 15px; }
.mark-input.bad { border-color: var(--red); background: #FEF2F2; }
.photo-drop { width: 136px; height: 136px; border-radius: 50%; border: 2px dashed var(--gold-2); background: var(--gold-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold-text); font-size: 12px; font-weight: 600; text-align: center; padding: 8px; overflow: hidden; }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; text-align: start; width: 100%; }
.pick:hover { border-color: var(--green-2); background: #F7FAF8; }
.pick .grow { flex: 1; } .pick .grow b { display: block; } .pick .grow small { color: var(--ink-3); font-size: 12px; }
.err { color: #B91C1C; font-size: 13px; font-weight: 600; }
.reversed-stamp { text-align: center; color: #B91C1C; font-weight: 800; border: 2px solid #B91C1C; border-radius: 10px; padding: 6px; letter-spacing: 2px; margin-bottom: 6px; }
.skel { background: linear-gradient(90deg, #EEF2F0 25%, #F6F8F7 50%, #EEF2F0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* small A5 receipt / A5 result card */
.rc5 { max-width: 520px; margin: 0 auto; width: 100%; font-size: 13px; color: #1B2B25; font-family: 'Inter', 'Tajawal', sans-serif; }
.rc5-in { border: 1.5px solid #C9A55A; border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
.rc5-head { background: #0D3B2E; color: #fff; padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border-bottom: 3px solid #C9A55A; }
.rc5-head svg { width: 42px; height: 38px; }
.rc5-head .ar { font-family: 'Amiri', serif; font-size: 24px; line-height: 1.1; }
.rc5-head small { color: #C8D9D1; font-size: 11px; }
.rc5-tag { padding: 4px 18px; border-radius: 999px; background: #E6C67F; color: #1D2B22; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.rc5-body { padding: 6px 22px 12px; display: flex; flex-direction: column; position: relative; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted #C9D3CD; }
.rc-line span { color: #4A5F57; } .rc-line b { text-align: end; }
.rc5-money { margin: 10px 0 4px; border: 1px solid #E3EAE6; border-radius: 12px; overflow: hidden; }
.rc5-money > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.rc5-money .r1 { background: #FBE7DF; color: #9A3412; }
.rc5-money .r2 { background: #0D3B2E; color: #fff; padding: 10px 12px; } .rc5-money .r2 span { font-size: 12px; color: #C8D9D1; font-weight: 600; } .rc5-money .r2 b { font-size: 26px; color: #E3C27A; }
.rc5-money .r3 { background: #E5F0EB; color: #0D3B2E; }
.rc5-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; }
.rc5-foot i { display: block; width: 140px; border-bottom: 1px solid #1B2B25; height: 28px; } .rc5-foot small { font-size: 10px; color: #4A5F57; }
.stamp { width: 86px; height: 86px; border-radius: 50%; border: 2px dashed #C9A55A; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #A9822F; font-size: 9px; font-weight: 700; text-align: center; flex: 0 0 86px; }
.rc5-thanks { background: #F4EEDC; padding: 7px; text-align: center; font-size: 10px; color: #6B5420; }
.rcard table { width: 100%; border-collapse: collapse; font-size: 12.5px; border: 1px solid #E3EAE6; }
.rcard th { background: #0D3B2E; color: #fff; padding: 7px 10px; text-align: start; } .rcard th.c, .rcard td.c { text-align: center; }
.rcard td { padding: 7px 10px; border-top: 1px solid #EEF2F0; }
.rcard tr.tot td { border-top: 2px solid #0D3B2E; background: #F7F9F8; font-weight: 700; }
.rcard .who5 { display: flex; align-items: center; gap: 14px; border: 1.5px solid #C9A55A; border-radius: 14px; padding: 8px 12px; background: #FFFDF7; margin-bottom: 10px; }
.rcard .who5 img, .rcard .who5 .av { width: 58px; height: 58px; border-radius: 50%; border: 2.5px solid #C9A55A; object-fit: cover; flex: 0 0 58px; }
.rcard .gr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: center; margin: 10px 0 6px; }
.rcard .gr > div { border-radius: 12px; padding: 8px; } .rcard .gr small { display: block; font-size: 10px; font-weight: 700; } .rcard .gr b { font-size: 18px; }
.rcard .wm { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-family: 'Amiri', serif; font-size: 90px; color: #0D3B2E; opacity: .045; pointer-events: none; }

/* photo crop */
.crop-box { position: relative; width: 300px; height: 300px; max-width: 100%; border-radius: 16px; overflow: hidden; background: #1B2B25; touch-action: none; }
.crop-box canvas { display: block; cursor: grab; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 200px rgba(10, 30, 24, .55); border: 3px solid #E6C67F; }

/* A4 reports */
.a4-preview { background: #EDF1EF; padding: 16px; border-radius: 14px; max-height: 70vh; overflow: auto; }
.a4 { width: 100%; max-width: 794px; margin: 0 auto 16px; background: #fff; border: 1px solid #DCE5E0; display: flex; flex-direction: column; font-size: 12px; color: #1B2B25; font-family: 'Inter', 'Tajawal', sans-serif; }
.a4-head { background: #0D3B2E; color: #fff; padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 4px solid #C9A55A; }
.a4-head svg { width: 46px; height: 42px; } .a4-head small { color: #C8D9D1; font-size: 10px; }
.a4-body { padding: 18px 26px 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.a4-body small { color: #4A5F57; }
.a4-title { font-size: 21px; font-weight: 700; color: #0D3B2E; }
.a4-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.a4-grid4 .k { background: #F2F6F4; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.a4-grid4 .k b { font-size: 20px; } .a4-grid4 .k.dark { background: #0D3B2E; color: #E3C27A; } .a4-grid4 .k.dark small { color: #C8D9D1; }
.a4-box { border: 1px solid #E3EAE6; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.bar-bg { height: 8px; border-radius: 99px; background: #EEF2F0; overflow: hidden; } .bar-bg > div { height: 100%; border-radius: 99px; }
.a4-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.a4-table th { background: #0D3B2E; color: #fff; text-align: start; padding: 7px 8px; } .a4-table td { padding: 6px 8px; border-top: 1px solid #EEF2F0; }
.a4-table tr.tot td { border-top: 2px solid #0D3B2E; font-weight: 700; font-size: 13px; }
.a4-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; font-size: 11px; color: #4A5F57; }
.a4-sign > div:not(.stamp) { display: flex; flex-direction: column; gap: 4px; } .a4-sign i { display: block; width: 170px; border-bottom: 1px solid #1B2B25; height: 28px; }
.card-who { display: flex; align-items: center; gap: 18px; border: 1.5px solid #C9A55A; border-radius: 16px; padding: 12px 16px; background: #FFFDF7; }
.card-who img { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #C9A55A; object-fit: cover; }
.dots { display: block; border-bottom: 1px dotted #9AA9A2; height: 18px; }
.wm { position: absolute; top: 300px; left: 0; right: 0; text-align: center; font-family: 'Amiri', serif; font-size: 130px; color: #0D3B2E; opacity: .045; pointer-events: none; }
.g-excellent-lt { background: #DCF3E4 !important; color: #14532D; } .g-very_good-lt { background: #FBF1DC !important; color: #6B5420; } .g-good-lt { background: #DBE7F7 !important; color: #1E3A6B; } .g-fail-lt { background: #FBE7DF !important; color: #9A3412; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #145A45 0%, #0B3328 55%, #062219 100%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: pop .25s ease-out; }
.login-card .lh { padding: 28px 26px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-card .lh .ar { font-family: 'Amiri', serif; font-size: 30px; color: var(--green); }
.login-card .lh small { color: var(--ink-3); }
.login-card form { padding: 18px 26px 26px; display: flex; flex-direction: column; gap: 14px; }

/* toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; font-weight: 600; animation: rise .2s ease-out; display: flex; align-items: center; gap: 8px; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.toast.error::before { background: #F87171; }

/* print */
#print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block; position: absolute; inset: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .a4 { border: none; margin: 0; max-width: none; } .a4.page, .rc5.page { page-break-after: always; break-after: page; }
  .a4-preview { max-height: none; overflow: visible; padding: 0; background: none; }
}


/* small extras used by popups */
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slip { font-family: 'Inter', 'Tajawal', sans-serif; font-size: 13px; color: #1B2B25; }
.slip h3 { margin: 6px 0; }
.lang-switch { display: none; }

/* ================= departments: landing, logins, themes, bell ================= */
.ruq { font-family: 'Aref Ruqaa', 'Amiri', serif; }
.mes { font-family: 'El Messiri', 'Cairo', serif; }
[dir="rtl"] body, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif; }
.logo-c { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; overflow: hidden; flex: 0 0 auto; }
.logo-c img { width: 92%; height: 92%; object-fit: contain; }
.pattern { position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.2'><rect x='24' y='24' width='36' height='36'/><rect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/><circle cx='42' cy='42' r='9'/><path d='M0 42h12M72 42h12M42 0v12M42 72v12'/></g></svg>"); }
.pattern.ink { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23154F86' stroke-opacity='0.06' stroke-width='1.2'><rect x='24' y='24' width='36' height='36'/><rect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/><circle cx='42' cy='42' r='9'/></g></svg>"); }

/* themes: Sharia = deep green, Arabic Diploma = maroon */
body.th-em { --green: #0A4D3A; --green-2: #0F6B50; --green-soft: #E6F2EC; --side1: #0B5A44; --side2: #073B2D; --bg: #F3F6F4; }
body.th-mr { --green: #5A0F1C; --green-2: #8A1C2E; --green-soft: #FBEDEF; --side1: #6B1222; --side2: #4A0B17; --bg: #F7F3F1; --line: #EFE6E2; --line2: #F5EEEB; }
body.th-em .side, body.th-mr .side { background: linear-gradient(180deg, var(--side1), var(--side2)); overflow: hidden; }
.side .brand { padding-bottom: 8px; }
.side .brand .logo-c { width: 44px; height: 44px; }
.side .brand .ar { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 21px; color: #F3D99A; }
.side .dept-box { margin: 8px 6px 16px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-align: start; width: calc(100% - 12px); display: flex; align-items: center; gap: 8px; }
.side .dept-box small { display: block; font-size: 10.5px; letter-spacing: 1px; opacity: .65; font-weight: 700; text-transform: uppercase; }
.side .dept-box .mes { font-size: 15px; display: block; line-height: 1.4; }
.side .dept-box.can:hover { background: rgba(255, 255, 255, .14); }

/* bell */
.bell-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid #E3E9E6; display: flex; align-items: center; justify-content: center; color: var(--green-2); }
.bell-btn:hover { box-shadow: var(--shadow); }
.bell-btn.open { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--green-soft); }
.bell-btn b { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: #D93A2B; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); padding: 0 5px; }
.bell-btn.ring svg { animation: ring 1.2s ease 2; transform-origin: 50% 10%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.np { position: fixed; z-index: 60; width: min(440px, calc(100vw - 24px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(40, 10, 10, .25); border: 1px solid var(--line); overflow: hidden; animation: rise .15s ease-out; }
.np .hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.np .hd b { font-size: 16px; } .np .hd button { border: none; background: none; font-size: 13px; font-weight: 600; color: var(--green-2); }
.np .tabs { display: flex; gap: 6px; padding: 10px 18px 4px; flex-wrap: wrap; }
.np .tabs button { border: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #F4EFEC; color: #5B4F49; }
.np .tabs button.on { background: var(--green-2); color: #fff; }
.np .list { max-height: 60vh; overflow-y: auto; padding-bottom: 4px; }
.np .sec { font-size: 11px; letter-spacing: 1px; font-weight: 700; color: #A0948D; padding: 10px 18px 4px; text-transform: uppercase; }
.ni { display: flex; gap: 12px; padding: 11px 18px; align-items: flex-start; }
.ni.new { background: #FFF8F4; }
.ni .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.ni .ic.red { background: var(--red-bg); color: var(--red); } .ni .ic.amb { background: #FFF4E0; color: #9A6A10; } .ni .ic.blue { background: var(--blue-bg); color: var(--blue); }
.ni .g { flex: 1; min-width: 0; } .ni .g b { display: block; font-size: 14px; } .ni .g small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; display: block; } .ni .g .tm { color: #A0948D; font-size: 11.5px; margin-top: 3px; }
.ni .btn { align-self: center; }
.np .ft { display: block; width: 100%; padding: 12px 18px; border: none; border-top: 1px solid var(--line2); background: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--green-2); }

/* landing */
.land { min-height: 100vh; position: relative; overflow: hidden; background: linear-gradient(180deg, #FBFAF6 0%, #F3F0E6 100%); display: flex; flex-direction: column; }
.land-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 22px 48px; }
.land-nav .logo-c { width: 50px; height: 50px; box-shadow: 0 4px 14px rgba(21, 79, 134, .12); }
.land-nav .nm b { display: block; font-size: 15px; color: #154F86; } .land-nav .nm span { font-size: 15px; color: #5E8A08; }
.land-nav .sp { flex: 1; }
.land-nav .pillbtn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid #E2DCCB; background: #fff; font-size: 14px; font-weight: 600; color: #2E2A22; text-decoration: none; }
.land .lang { border-radius: 999px; border-color: #E2DCCB; } .land .lang button { border-radius: 999px; } .land .lang button.active { background: #1F1A14; }
.land-hero { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; padding: 10px 48px 20px; }
.kick { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #E7E0CC; font-size: 13px; font-weight: 600; color: #7A5B1C; }
.kick i { width: 8px; height: 8px; border-radius: 50%; background: #C9A246; }
.land-hero .big { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: clamp(56px, 7vw, 100px); line-height: 1.15; color: #14223A; margin: 18px 0 0; }
.land-hero h1 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -1.2px; line-height: 1.1; margin: 6px 0 14px; color: #14223A; }
.land-hero h1 em { font-style: normal; background: linear-gradient(90deg, #154F86, #5E8A08); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-hero p { font-size: 18px; color: #5D564A; line-height: 1.6; margin: 0; max-width: 540px; }
.orb { position: relative; justify-self: center; width: min(520px, 40vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #F1ECDD); box-shadow: inset 0 0 0 1px #EAE2CC, 0 40px 80px rgba(60, 44, 10, .10); animation: float 6s ease-in-out infinite; }
.orb::before { content: ''; position: absolute; inset: -24px; border-radius: 50%; border: 1px dashed #D8CCA8; }
.orb img { position: absolute; left: 50%; top: 50%; width: 68%; transform: translate(-50%, -50%); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.land-depts { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 48px 40px; }
.dpt { border: none; border-radius: 28px; padding: 24px 26px; display: flex; align-items: center; gap: 20px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 26px 50px rgba(20, 10, 10, .18); text-align: start; transition: transform .2s, box-shadow .2s; }
.dpt:hover { transform: translateY(-4px); box-shadow: 0 34px 60px rgba(20, 10, 10, .25); }
.dpt.em { background: linear-gradient(120deg, #0A4D3A, #0F6B50); } .dpt.mr { background: linear-gradient(120deg, #5A0F1C, #8A1C2E); }
.dpt .ic { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: 0 0 76px; color: #F3D99A; }
.dpt .t { flex: 1; min-width: 0; } .dpt .t .mes { display: block; font-size: 30px; line-height: 1.3; } .dpt .t small { display: block; font-size: 14px; opacity: .82; margin-top: 2px; }
.dpt .go { width: 56px; height: 56px; border-radius: 50%; background: #E8C77E; color: #2A1A08; display: flex; align-items: center; justify-content: center; flex: 0 0 56px; transition: transform .2s; }
.dpt:hover .go { transform: translateX(4px); } [dir="rtl"] .dpt:hover .go { transform: translateX(-4px) scaleX(-1); } [dir="rtl"] .dpt .go svg { transform: scaleX(-1); }
.dpt .glow { position: absolute; inset-inline-end: 90px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(232, 199, 126, .14); }

/* department login */
.dlog { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 90px 96px 40px; color: #fff; }
.dlog.mr { background: radial-gradient(900px 600px at 20% 0%, #9E2438 0%, #6B1222 45%, #3E0812 100%); }
.dlog.em { background: radial-gradient(900px 600px at 20% 0%, #16815F 0%, #0A5240 45%, #052C22 100%); }
.dlog .topl { position: absolute; top: 24px; inset-inline: 48px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.dlog .topl .back { border: none; background: none; color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: .9; }
.dlog .lang { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); border-radius: 999px; } .dlog .lang button { color: #fff; border-radius: 999px; } .dlog .lang button.active { background: #E8C77E; color: #2A1A08; }
.dlog .info { position: relative; z-index: 2; max-width: 560px; }
.dlog .info .ruq { font-size: clamp(44px, 5vw, 66px); line-height: 1.3; color: #F3D99A; }
.dlog .info h2 { font-size: 22px; font-weight: 600; margin: 8px 0 16px; }
.dlog .info p { opacity: .78; font-size: 16px; line-height: 1.7; margin: 0; }
.dlog .feat { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; } .dlog .feat span { padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.lcard { position: relative; z-index: 2; width: 100%; max-width: 460px; background: rgba(255, 255, 255, .98); color: #1A1414; border-radius: 30px; padding: 30px 36px 32px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35); animation: pop .3s ease-out; }
.lcard > .logo-c { width: 96px; height: 96px; margin: -78px auto 10px; display: flex; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.lcard .tg { text-align: center; } .lcard .tg .mes { font-size: 25px; color: var(--green-2); } .lcard .tg small { display: block; color: #7A6E66; font-size: 13px; }
.lcard h3 { font-size: 26px; margin: 20px 0 4px; letter-spacing: -.4px; } .lcard .s { color: #7A6E66; margin: 0 0 18px; font-size: 14px; }
.lcard form { display: flex; flex-direction: column; gap: 14px; }
.lcard .field input { height: 52px; border-radius: 14px; background: #FCFAF8; border: 1.5px solid #E9E2DC; }
.lcard .sb { height: 54px; border: none; border-radius: 15px; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(90deg, var(--side1), var(--green-2)); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.lcard .or { margin-top: 16px; text-align: center; font-size: 13px; color: #7A6E66; } .lcard .or button { border: none; background: none; font-weight: 700; padding: 0; }
@media (max-width: 900px) {
  .land-nav { padding: 16px 18px; } .land-nav .nm { display: none; }
  .land-hero { grid-template-columns: 1fr; padding: 0 18px 10px; text-align: center; } .land-hero p { margin: 0 auto; }
  .orb { width: 220px; grid-row: 1; }
  .land-depts { grid-template-columns: 1fr; padding: 0 18px 24px; gap: 14px; }
  .dpt { padding: 18px; } .dpt .ic { width: 56px; height: 56px; flex-basis: 56px; } .dpt .t .mes { font-size: 22px; }
  .dlog { flex-direction: column; padding: 80px 18px 30px; justify-content: flex-start; gap: 60px; } .dlog .info { text-align: center; } .dlog .feat { justify-content: center; }
  .lcard { padding: 26px 22px; }
}
.side .me-row { display: flex; flex-direction: column; gap: 6px; }
.side .logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13.5px; font-weight: 600; }
.side .logout-btn:hover { background: rgba(217, 58, 43, .85); border-color: transparent; }

/* downloads & import */
.fi { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.fi.xl { background: #1D6F42; } .fi.pdf { background: #C2362F; font-size: 14px; }
.fmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fmt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 18px; border: 2px solid #E3E9E6; background: #fff; text-align: start; transition: all .15s; }
.fmt b { font-size: 16px; color: var(--ink); } .fmt small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; line-height: 1.45; }
.fmt i { position: absolute; top: 12px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-2); color: #fff; display: none; align-items: center; justify-content: center; }
.fmt.active { border-color: var(--green-2); box-shadow: 0 0 0 4px var(--green-soft); } .fmt.active i { display: flex; }
.isteps { display: flex; gap: 10px; flex-wrap: wrap; }
.isteps div { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #F7F9F8; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.isteps b { width: 26px; height: 26px; border-radius: 50%; background: #E3E9E6; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 26px; }
.isteps .on { background: var(--green-soft); color: var(--green); } .isteps .on b { background: var(--green-2); color: #fff; } .isteps .done b { background: var(--ok); color: #fff; }
.idrop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 2px dashed #BFD8CC; border-radius: 18px; background: #F6FBF8; padding: 18px 20px; cursor: pointer; transition: all .15s; }
.idrop.over, .idrop:hover { border-color: var(--green-2); background: var(--green-soft); }
.idrop b { display: block; font-size: 15px; } .idrop small { display: block; font-size: 13px; color: var(--ink-3); }
.badc { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--red-bg); color: var(--red); font-weight: 700; }
.tbl td.ltr { white-space: nowrap; }

/* users page */
.side nav .nav-badge { margin-inline-start: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; }
.r-admin { background: #FBF4E4; color: #8A6417; } .r-acc { background: var(--ok-bg); color: var(--ok); } .r-reg { background: var(--blue-bg); color: var(--blue); } .r-tea { background: var(--pu-bg); color: var(--pu); }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .role-grid { grid-template-columns: 1fr; } }
.role-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 2px solid #E3E9E6; background: #fff; text-align: start; transition: all .15s; }
.role-card b { display: block; font-size: 14.5px; color: var(--ink); } .role-card small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; font-weight: 500; }
.role-card.active { border-color: var(--green-2); box-shadow: 0 0 0 4px var(--green-soft); }
.role-card:disabled { opacity: .6; cursor: not-allowed; }
.ric { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
button.switch { padding: 0; cursor: pointer; width: 44px; display: inline-block; vertical-align: middle; } button.switch:disabled { opacity: .5; cursor: not-allowed; }

/* ================= responsive: laptop · tablet · phone ================= */
.m-brand, .m-title, .tabbar { display: none; }
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.mcard:active, .fcard:active { background: #F7FAF8; }
.mcard .g, .fcard .g { flex: 1; min-width: 0; } .mcard .g b, .fcard .g b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .g small, .fcard .g small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .chev { color: var(--ink-4); font-size: 22px; } [dir="rtl"] .mcard .chev { transform: scaleX(-1); }
.fcard { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.fcard .t { display: flex; align-items: center; gap: 10px; }
.fcard .m { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.fcard .m > div { background: #F4F6F5; border-radius: 12px; padding: 7px 4px; } .fcard .m small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; } .fcard .m b { font-size: 15px; }
.fcard .m .owes { background: var(--red-bg); color: var(--red); } .fcard .m .paid { background: var(--ok-bg); color: var(--ok); } .fcard .m .credit { background: var(--pu-bg); color: var(--pu); }
.fcard .m .owes small, .fcard .m .paid small, .fcard .m .credit small { color: inherit; }
.more-list { display: flex; flex-direction: column; gap: 6px; }
.more-list button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; font-size: 15px; font-weight: 600; text-align: start; }
.more-list .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--green-soft); color: var(--green-2); display: flex; align-items: center; justify-content: center; }
.more-list .go { margin-inline-start: auto; color: var(--ink-4); font-size: 20px; } [dir="rtl"] .more-list .go { transform: scaleX(-1); }
.install-card { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise .25s ease-out; }
.install-card .r { display: flex; gap: 12px; align-items: center; } .install-card img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.install-card .g { flex: 1; min-width: 0; } .install-card .g b { display: block; font-size: 15px; } .install-card .g small { display: block; font-size: 12.5px; color: var(--ink-3); }
.install-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.install-card .step { display: flex; gap: 10px; align-items: center; font-size: 13.5px; padding: 9px 10px; border-radius: 12px; background: #F4F6F5; }
.install-card .step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--green-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 24px; }
@media (min-width: 701px) { .install-card { bottom: 24px; } }

/* tablet (iPad): slim icon menu */
@media (max-width: 1100px) and (min-width: 701px) {
  .side { flex: 0 0 86px; padding: 16px 8px; align-items: center; }
  .side .brand { padding: 0 0 10px; } .side .brand > div, .side .dept-box small, .side .me > span:not(.av), .side .me > svg, .side .logout-btn span { display: none; }
  .side .dept-box { display: none; }
  .side nav { width: 100%; } .side nav button { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 11px; text-align: center; justify-content: center; }
  .side nav .nav-badge { display: none; }
  .side .me-row { align-items: center; } .side .me { padding: 4px; } .side .logout-btn { width: 52px; padding: 0; }
  .main { padding: 18px 18px 32px; gap: 16px; }
  .topbar h1 { font-size: 22px; }
  .gsearch { flex-basis: 200px; min-width: 0; } .gsearch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btn-main { padding: 0 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .drawer { width: min(560px, calc(100vw - 24px)); }
}

/* phone: app-style top bar, bottom tabs, cards, popups slide up */
@media (max-width: 700px) {
  .app { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .main { padding: 0 0 20px; gap: 12px; }
  .topbar { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, var(--side1, #0B5A44), var(--green)); padding: calc(10px + env(safe-area-inset-top)) 14px 12px; gap: 10px; border-radius: 0 0 20px 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
  .topbar h1, .topbar .lang { display: none; }
  .m-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; }
  .m-brand .ar { display: block; font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 18px; color: #F3D99A; line-height: 1.1; }
  .m-brand small { display: block; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bell-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
  .bell-btn b { border-color: var(--green); }
  .gsearch { order: 5; flex: 1 1 100%; height: 44px; border: none; font-size: 14px; }
  .gsearch .k { display: none; }
  .m-title { display: block; margin: 6px 16px 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
  #page { padding: 0 14px 74px; gap: 14px; }
  #main-act { position: fixed; z-index: 35; inset-inline-end: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); height: 52px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
  .tabbar { display: flex; position: fixed; z-index: 36; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -4px 20px rgba(0, 0, 0, .05); }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; font-size: 11px; font-weight: 600; color: var(--ink-4); padding: 2px 0; min-width: 0; }
  .tabbar button i { display: flex; align-items: center; justify-content: center; width: 54px; height: 30px; border-radius: 12px; font-style: normal; }
  .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar button.active { color: var(--green-2); } .tabbar button.active i { background: var(--green-soft); }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stats .stat:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px; border-radius: 16px; } .stat .lbl { font-size: 12.5px; } .stat .val { font-size: 24px; }
  .card { padding: 14px; border-radius: 18px; }
  #page > *, .card, .card-head > *, .grid2 > * { min-width: 0; max-width: 100%; }
  .card-head .chips { width: 100%; }
  select.sel { width: 100%; }
  .main, .app { overflow-x: hidden; }
  .card-head { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: 0 0 auto; }
  .grid2 { grid-template-columns: 1fr; }
  .ritem { gap: 10px; }
  .ritem .grow b, .ritem .grow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ritem [data-remind] { font-size: 0; width: 38px; padding: 0; gap: 0; }
  .ritem [data-remind] svg { width: 16px; height: 16px; }
  .tbl { font-size: 13.5px; } .tbl th, .tbl td { padding: 10px 8px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  /* popups and the student card slide up from the bottom */
  .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.wide, .modal.narrow, .modal.xwide { max-width: none; border-radius: 24px 24px 0 0; max-height: 94vh; display: flex; flex-direction: column; animation: sheet .25s ease-out; }
  .modal-body { overflow-y: auto; padding: 16px; } .modal-head { padding: 14px 16px; } .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1 1 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .drawer { top: auto; bottom: 0; inset-inline: 0; width: 100%; height: 92vh; border-radius: 24px 24px 0 0; animation-name: sheet !important; }
  .dfoot { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); } .dfoot .btn { min-height: 44px; font-size: 14px; }
  .sum3 b { font-size: 19px; } .mstrip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .palette-wrap { padding: 0; align-items: stretch; } .palette { max-width: none; border-radius: 0; height: 100%; display: flex; flex-direction: column; } .palette .res { max-height: none; flex: 1; } .palette .in { padding-top: calc(16px + env(safe-area-inset-top)); }
  .np { left: 8px !important; right: 8px; width: auto; }
  .fmt-row { grid-template-columns: 1fr; }
  .isteps div { flex-basis: 100%; }
  #toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= class tabs, fee popup, general report, print choice ================= */
.cls { display: flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.cls::-webkit-scrollbar { display: none; }
.cls button { border: none; background: none; padding: 10px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; flex: 0 0 auto; }
.cls button small { font-weight: 500; color: var(--ink-4); margin-inline-start: 4px; }
.cls button:hover { background: #F4F6F5; }
.cls button.active { background: var(--green); color: #fff; } .cls button.active small { color: rgba(255, 255, 255, .7); }
.psearch { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #E3E9E6; background: #fff; color: var(--ink-3); }
.psearch:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--green-soft); }
.psearch input { flex: 1; border: none; outline: none; font-size: 14.5px; background: transparent; min-width: 0; color: var(--ink); }
/* fee popup */
.fp-modal .modal { max-width: 1120px; }
.fp-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: linear-gradient(135deg, var(--side2, #0B3328), var(--green-2)); color: #fff; }
.fp-head h2 { margin: 0; font-size: 21px; font-weight: 800; } .fp-head .ar { font-family: 'Amiri', serif; font-size: 17px; color: #F3D99A; }
.fp-cols { display: grid; grid-template-columns: 1.08fr 1fr; }
.fp-col { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fp-col + .fp-col { border-inline-start: 1px solid var(--line2); background: #FBFCFB; }
.fp-amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fp-alloc { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #BFD8CC; background: #F6FBF8; font-size: 13.5px; }
.fp-alloc:empty { display: none; }
.fp-save { min-height: 52px; font-size: 16px; }
.fp-done { align-items: center; text-align: center; justify-content: center; }
.fp-done h3 { margin: 0; font-size: 22px; } .fp-done p { margin: 0; }
.fp-done .sum3 { width: 100%; }
.ok-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.fp-two { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; } .fp-two .btn { flex: 1 1 140px; }
.fp-preview { background: #EDF1EF !important; align-items: center; justify-content: center; }
.fp-preview .rc5 { transform: scale(.92); transform-origin: top center; }
/* general report */
.rp-opts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.rp-opts label { display: flex; gap: 8px; align-items: center; }
.rp-opts .sel { width: auto; }
.rp-sec { font-size: 12px; letter-spacing: 1px; font-weight: 800; color: var(--ink-4); text-transform: uppercase; margin-top: 4px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rcard-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: transform .15s; }
.rcard-tile:hover { transform: translateY(-2px); }
.rthumb { height: 84px; border-radius: 12px; background: #F4F6F5; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.rthumb .h { height: 18px; background: #0D3B2E; border-bottom: 3px solid #C9A55A; } .rthumb .l { height: 6px; border-radius: 3px; background: #DDE5E1; margin: 0 10px; } .rthumb .l.s { width: 55%; }
.rt-owes .l:nth-child(2) { background: #F6C9C5; } .rt-months .l { background: repeating-linear-gradient(90deg, #DCF3E4 0 18px, #fff 18px 21px, #FBE7DF 21px 39px, #fff 39px 42px); }
.rt-cards .h, .rt-top .h { background: #A8801F; }
.rt-t { display: flex; gap: 8px; align-items: center; } .rt-t b { font-size: 15.5px; }
.ric2 { width: 28px; height: 28px; border-radius: 9px; background: var(--green-soft); color: var(--green-2); display: flex; align-items: center; justify-content: center; flex: 0 0 28px; }
.rcard-tile > small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.rt-b { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
/* print choice previews */
.pv { display: flex; flex-direction: column; gap: 5px; width: 100%; height: 74px; border-radius: 10px; border: 1px solid #E3E9E6; overflow: hidden; background: #fff; }
.pv .h { height: 16px; background: #0D3B2E; border-bottom: 3px solid #C9A55A; } .pv .r { display: flex; gap: 5px; margin: 0 8px; } .pv .r s { flex: 1; height: 16px; border-radius: 5px; background: #E5F0EB; } .pv .r s.d { background: #0D3B2E; }
.pv .l { height: 5px; margin: 0 8px; border-radius: 3px; background: #DDE5E1; } .pv .l.red { background: #FBE7DF; }
.pv.bwv .h { background: #fff; border-bottom: 2px solid #111; } .pv.bwv .r s { background: #fff; border: 1px solid #999; } .pv.bwv .r s.d { border: 2px solid #111; background: #fff; }
/* black & white printing / PDF */
.bw *, .bw *::before, .bw *::after { background: transparent !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; }
.bw img { filter: grayscale(1); }
.bw .rc5-head, .bw .a4-head { border-bottom: 3px solid #111 !important; } .bw .rc5-in, .bw .a4 { border-color: #111 !important; }
.bw th { border-bottom: 2px solid #111 !important; } .bw td { border-top: 1px solid #bbb !important; }
.bw .rc5-money > div, .bw .a4-grid4 .k, .bw .gr > div, .bw .card-who, .bw .who5, .bw .a4-box { border: 1px solid #999 !important; }
.bw .rc5-money .r2, .bw .a4-grid4 .k.dark { border: 2px solid #111 !important; }
.bw .rc5-tag { border: 1.5px solid #111 !important; }
.pdf-holder { position: absolute; left: 0; top: 0; z-index: -5; background: #fff; pointer-events: none; }
.pdf-page { background: #fff; } .pdf-page .a4 { margin: 0 auto; border: none; } .pdf-page .page { margin-bottom: 0; }
@media (max-width: 900px) {
  .fp-cols { grid-template-columns: 1fr; } .fp-col + .fp-col { border-inline-start: none; border-top: 1px solid var(--line2); }
  .fp-preview { display: none !important; }
}
@media (max-width: 700px) {
  .fp-head { padding: 14px 16px; } .fp-col { padding: 14px 16px; } .fp-amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: 1fr; }
  .cls { margin: 0; }
}
.fp-modal .modal { overflow-y: auto; max-height: 94vh; }
.pv em { display: block; font-style: normal; } .pv .r { display: flex; } .pv s { display: block; text-decoration: none; }
@media (max-width: 700px) { .psearch { flex: 0 0 auto; height: 44px; } .fp-head .av.lg { width: 58px; height: 58px; flex-basis: 58px; font-size: 22px; } .fp-head h2 { font-size: 18px; } }

/* ================= new Home ================= */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 24px 28px; color: #fff; background: linear-gradient(120deg, var(--side1, #0A4D3A) 0%, var(--green-2) 70%); display: flex; align-items: center; gap: 24px; box-shadow: 0 14px 36px rgba(0, 0, 0, .12); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'><rect x='24' y='24' width='36' height='36'/><rect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/><circle cx='42' cy='42' r='9'/></g></svg>"); pointer-events: none; }
.hero .hg { position: relative; flex: 1; min-width: 0; } .hero small { opacity: .85; font-size: 14px; } .hero h1 { margin: 4px 0 2px; font-size: 30px; letter-spacing: -.6px; }
.hero .ruq { color: #F3D99A; font-size: 21px; }
.hero .hdate { position: relative; text-align: end; } .hero .hdate b { display: block; font-size: 44px; line-height: 1; font-weight: 800; } .hero .hdate span { opacity: .85; font-size: 13px; }
.big3 { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 18px; } .big3.two { grid-template-columns: 1fr 1.4fr; }
.bc { text-align: start; position: relative; overflow: hidden; background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 20px 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 30px rgba(16, 24, 20, .06); display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s; color: var(--ink); }
.bc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 20px 40px rgba(16, 24, 20, .10); }
.bc .top { display: flex; align-items: center; gap: 12px; } .bc .ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ic-g { background: var(--green-soft); color: var(--green-2); } .ic-ok { background: var(--ok-bg); color: var(--ok); } .ic-y { background: var(--gold-soft); color: var(--gold-text); }
.bc .lb { font-size: 15px; font-weight: 700; } .bc .go { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--green-2); padding: 6px 10px; border-radius: 10px; background: var(--green-soft); }
.bc .num { font-size: 50px; font-weight: 800; letter-spacing: -2px; line-height: 1; } .bc small { color: var(--ink-3); font-size: 13px; }
.bc .row { display: flex; gap: 16px; align-items: center; } .bc .rv { display: flex; flex-direction: column; min-width: 0; } .bc .rv b { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.donut { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 96px; }
.donut i { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 20px; color: var(--ink); }
.bc .split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .bc .split > span { background: #F4F6F5; border-radius: 14px; padding: 10px 12px; } .bc .split small { display: block; font-size: 11.5px; } .bc .split b { font-size: 20px; }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbars > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); } .hbars em { flex: 0 0 74px; font-style: normal; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars i { flex: 1; height: 8px; border-radius: 9px; background: #EEF2F0; overflow: hidden; } .hbars s { display: block; height: 100%; border-radius: 9px; background: var(--green-2); text-decoration: none; }
.hbars s.gold { background: #A8801F; } .hbars s.low { background: var(--red); } .hbars b { flex: 0 0 auto; min-width: 26px; text-align: end; }
.hsec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .hsec h2 { margin: 0; font-size: 19px; } .hsec small { color: var(--ink-3); }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cc { text-align: start; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 22px rgba(16, 24, 20, .05); transition: transform .15s, box-shadow .15s; color: var(--ink); }
.cc:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 24, 20, .10); }
.cc .h { display: flex; align-items: center; gap: 10px; } .cc .badge, .cbadge { width: 42px; height: 42px; border-radius: 13px; background: var(--green); color: #F3D99A; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.cbadge { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 24px; }
.cc .h b { display: block; font-size: 16px; } .cc .h small { display: block; color: var(--ink-3); font-size: 12px; }
.cc .ln { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); } .cc .ln b { color: var(--ink); }
.pb { display: block; height: 8px; border-radius: 9px; background: #EEF2F0; overflow: hidden; } .pb i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #0B6B4B, #2FBF85); }
.pb.ex i { background: linear-gradient(90deg, #A8801F, #E6C67F); }
.pbw { display: inline-flex; align-items: center; gap: 8px; } .pbw .pb { width: 110px; }
.chipx { display: flex; gap: 6px; flex-wrap: wrap; } .chipx > span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.chipx .r { background: var(--red-bg); color: var(--red); } .chipx .g { background: var(--ok-bg); color: var(--ok); } .chipx .y { background: var(--gold-soft); color: var(--gold-text); } .chipx .p { background: var(--pu-bg); color: var(--pu); }
.cc .open { margin-top: auto; text-align: center; font-size: 13px; font-weight: 700; color: var(--green-2); padding: 8px; border-radius: 10px; background: #F2F7F4; }
.story { display: flex; gap: 10px; align-items: flex-start; background: #F6FBF8; border: 1px solid #D7EBE0; border-radius: 16px; padding: 14px 16px; font-size: 14.5px; line-height: 1.7; color: #24433A; }
.story svg { flex: 0 0 auto; margin-top: 4px; color: var(--green-2); }
.k4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .k4 > span { border-radius: 16px; padding: 12px 14px; background: #F4F6F5; } .k4 small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; } .k4 b { font-size: 22px; }
.fp-modal .modal-body { padding: 18px 22px; }
.tot-row td { font-weight: 800; background: #F7F9F8; } .link-c { color: var(--green-2); font-weight: 700; white-space: nowrap; }
@media (max-width: 1100px) { .big3, .big3.two { grid-template-columns: 1fr 1fr; } .big3 .bc:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .hero { padding: 18px; border-radius: 20px; } .hero h1 { font-size: 22px; } .hero .ruq { font-size: 17px; } .hero .hdate b { font-size: 34px; }
  .big3, .big3.two { grid-template-columns: 1fr; } .bc .num { font-size: 40px; } .donut { width: 80px; height: 80px; flex-basis: 80px; } .donut i { width: 62px; height: 62px; font-size: 17px; } .bc .rv b { font-size: 26px; }
  .classes { grid-template-columns: 1fr 1fr; gap: 10px; } .cc { padding: 12px; border-radius: 18px; } .cc .open { display: none; }
  .fp-modal .modal-body { padding: 14px 16px; }
}

/* delete student */
.del-warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--red-bg); color: #8E2621; border: 1px solid #F6C2C0; font-size: 14px; }
.del-warn svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; } .del-warn ul { margin: 6px 0 0; padding-inline-start: 18px; line-height: 1.7; }
.btn-del { border: none; background: var(--red); color: #fff; font-weight: 700; } .btn-del:hover { background: #A52C26; }
.del-ic { background: var(--red-bg) !important; color: var(--red) !important; width: 36px; height: 36px; }
.demo-box { border: 1px dashed var(--line, #E3E6EA); border-radius: 12px; padding: 12px 14px; }
.demo-box p { margin: 0 0 10px; }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btns [hidden] { display: none; }
/* fee popup — payment sum: Fee price (+ previous) − Amount paid = Outstanding */
.np-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.np-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.np-row > span { min-width: 0; }
.np-row small { display: block; color: var(--ink-4); font-size: 12px; font-weight: 500; margin-top: 2px; }
.np-row > b { font-size: 17px; white-space: nowrap; }
.np-row.tot { background: #F6F8F7; }
.np-row.tot > span b { font-size: 15px; }
.np-row.tot > b { font-size: 20px; }
.np-in { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #FFFBF0; }
.np-in label { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.np-in label small { color: var(--ink-4); font-weight: 500; font-size: 12px; }
.np-in .big { display: flex; align-items: center; border: 2px solid #C9A55A; border-radius: 12px; background: #fff; margin-top: 8px; padding: 0 14px; height: 54px; direction: ltr; }
.np-in .big:focus-within { box-shadow: 0 0 0 4px rgba(201, 165, 90, .2); }
.np-in .big span { font-size: 22px; color: var(--ink-4); margin-right: 6px; }
.np-in .big input { border: 0; outline: 0; font-size: 24px; font-weight: 800; width: 100%; min-width: 0; background: transparent; padding: 0; height: 100%; box-shadow: none; }
.np-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.np-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.np-chips button:hover { border-color: #C9A55A; }
.np-out { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: #FDECEC; }
.np-out.ok { background: #E7F5EE; }
.np-out.pu { background: #F1ECFB; }
.np-out .l { font-weight: 700; min-width: 0; }
.np-out .l small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.np-out .r { white-space: nowrap; }
.np-out b { font-size: 24px; color: #C0392B; }
.np-out.ok b { color: #16794C; }
.np-out.pu b { color: #6D4BC4; }
.np-eq { color: var(--ink-4); font-weight: 700; margin-inline-end: 8px; font-size: 14px; }
.np-date { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.np-today { font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink-3); padding: 7px 12px; border-radius: 999px; margin-bottom: 10px; cursor: pointer; }
.np-today.on { color: #16794C; background: #E7F5EE; border-color: #E7F5EE; }
@media (max-width: 700px) { .np-eq { display: block; margin: 0; font-size: 12px; text-align: end; } .np-out b { font-size: 21px; } }
/* ---------- Dashboard (people, school fee, trend, latest paid) ---------- */
.ic-b { background: #EAF0FB; color: #2F5BB7; }
.s3, .f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sc { text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; box-shadow: 0 12px 30px rgba(16, 24, 20, .06); display: flex; gap: 16px; align-items: center; color: var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
.sc:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(16, 24, 20, .1); }
.sc .ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sc .g { min-width: 0; } .sc small { display: block; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.sc b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.sc em { font-style: normal; font-size: 12.5px; color: var(--ink-4); }
.fc { text-align: start; border: 0; border-radius: 22px; padding: 18px 20px; color: #fff; display: flex; flex-direction: column; min-width: 0; transition: transform .15s; }
.fc:hover { transform: translateY(-2px); }
.fc small { opacity: .88; font-weight: 600; font-size: 13px; } .fc b { display: block; font-size: 32px; font-weight: 800; margin: 4px 0; } .fc em { font-style: normal; font-size: 12.5px; opacity: .88; }
.fc.a { background: linear-gradient(120deg, var(--side1, #0A4D3A), var(--green-2, #13814A)); } .fc.b { background: linear-gradient(120deg, #8A6A1C, #C9A55A); } .fc.c { background: linear-gradient(120deg, #9B2C2C, #D2524A); }
.fc .bar { display: block; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .25); margin-top: 10px; } .fc .bar i { display: block; height: 100%; border-radius: 9px; background: #fff; }
.tr2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.pnl { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: 0 12px 30px rgba(16, 24, 20, .06); min-width: 0; }
.pnl h3 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 8px; align-items: center; } .pnl h3 > small, .pnl h3 > .link, .pnl h3 > .btn { margin-inline-start: auto; } .pnl h3 > small { font-size: 12.5px; color: var(--ink-4); font-weight: 600; }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 14px 4px 0; border-bottom: 1px solid var(--line); }
.chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart > div i { display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #1E9B5F, #0A4D3A); }
body.th-mr .chart > div i { background: linear-gradient(180deg, #B33A4E, #6E1424); }
.chart > div.now i { background: linear-gradient(180deg, #E0BE73, #A8801F); }
.chart > div b { font-size: 12px; white-space: nowrap; } .chart > div span { font-size: 12px; color: var(--ink-4); font-weight: 600; }
.trend-note { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.up { font-size: 12px; font-weight: 700; color: #13814A; background: #E7F5EE; border-radius: 999px; padding: 3px 9px; } .up.down { color: #C0392B; background: #FDECEC; }
.lp { width: 100%; text-align: start; display: flex; align-items: center; gap: 12px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); border-radius: 0; }
.lp:last-child { border-bottom: 0; } .lp:hover { background: #F7FAF8; }
.lp .g { flex: 1; min-width: 0; } .lp .g b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lp .g small { color: var(--ink-4); font-size: 12.5px; }
.lp .amt { text-align: end; } .lp .amt b { color: #13814A; font-size: 16px; display: block; } .lp .amt small { font-size: 11.5px; color: var(--ink-4); }
/* ---------- Teachers, Subjects & Classes ---------- */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .ph h2 { margin: 0; font-size: 24px; } .ph p { margin: 2px 0 0; color: var(--ink-3); }
.ph-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ph-act .psearch { flex: 0 1 260px; }
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.tcard.off { opacity: .55; }
.tcard .t { display: flex; gap: 12px; align-items: center; min-width: 0; } .tcard .t .g { min-width: 0; } .tcard .t b { display: block; font-size: 16px; } .tcard .t small { color: var(--ink-4); }
.tav { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; } .tchips span { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: #F1F4F2; color: var(--ink-2); }
.tchips span.cl { background: #FFF6E0; color: #7A5A12; } .tchips span.muted { background: none; padding: 0; font-weight: 500; }
.tcard .ft { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--ink-3); margin-top: auto; }
.tcard .ft b { color: var(--ink); }
.mchips { margin-top: 6px; } .mchips .chip.active::before { content: '✓ '; }
.sg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.srow { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1fr) 44px minmax(0, 1.2fr) auto; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.srow:last-child { border-bottom: 0; } .srow.off { opacity: .55; }
.srow .n { width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); color: var(--green-2); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.srow .nm small { display: block; color: var(--ink-4); font-size: 12px; } .srow .ar { font-family: Cairo, sans-serif; text-align: end; } .srow .mx { color: var(--ink-3); font-weight: 600; }
.lvl { display: flex; flex-direction: column; gap: 10px; }
.lv { border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; background: #fff; }
.lv .bd { width: 44px; height: 44px; border-radius: 13px; background: var(--side1, #0A4D3A); color: #F3D99A; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.lv .g { flex: 1; min-width: 0; } .lv .g > b { display: block; } .lv .g small { display: block; color: var(--ink-4); }
@media (max-width: 1100px) { .tr2, .sg { grid-template-columns: 1fr; } .s3, .f3 { gap: 12px; } .sc b { font-size: 30px; } .fc b { font-size: 26px; } }
@media (max-width: 760px) {
  .s3, .f3 { grid-template-columns: 1fr; } .sc { padding: 14px 16px; } .sc .ic { width: 48px; height: 48px; }
  .chart { gap: 6px; height: 170px; } .chart > div b { font-size: 10px; }
  .srow { grid-template-columns: 30px minmax(0, 1fr) auto; } .srow .ar, .srow .mx { display: none; } .srow > .btn { grid-column: 3; grid-row: 1; } .srow .tchips { grid-column: 2 / -1; grid-row: 2; }
  .ph-act, .ph-act .psearch { width: 100%; flex: 1 1 100%; }
}
.side nav button { min-width: 0; } .side nav button svg { flex: 0 0 auto; } .side nav button .nl { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .side nav .nav-badge { flex: 0 0 auto; }
/* ---------- landing photos: arch (photo ↔ logo), small card, gallery ---------- */
.ph-wrap { position: relative; height: 520px; display: flex; justify-content: center; align-items: center; }
.ph-arch { position: relative; width: 390px; height: 500px; border-radius: 200px 200px 26px 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 34, 58, .25); border: 8px solid #fff; outline: 2px solid #C9A55A; outline-offset: 6px; background: #0A4D3A; }
.ph-arch .sl { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.ph-arch .sl.on { opacity: 1; }
.ph-arch .sl > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7s ease; }
.ph-arch .sl.on > img { transform: scale(1); }
.ph-arch .logo-sl { background: radial-gradient(circle at 50% 40%, #13814A 0%, #0A4D3A 60%, #07382A 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.ph-arch .logo-sl > img { width: 58%; height: auto; object-fit: contain; background: #fff; border-radius: 50%; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); transform: none; }
.ph-arch .logo-sl b { font-family: 'Aref Ruqaa', 'Amiri', serif; color: #F3D99A; font-size: 44px; font-weight: 400; line-height: 1.2; }
.ph-arch .logo-sl small { color: rgba(255, 255, 255, .82); font-size: 14px; letter-spacing: .5px; }
.ph-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; direction: ltr; }
.ph-dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .55); transition: all .4s; }
.ph-dots i.on { width: 22px; background: #fff; }
.ph-small { position: absolute; inset-inline-start: 0; bottom: 30px; width: 230px; height: 160px; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 20px 40px rgba(20, 34, 58, .22); background: #E9E4D6; }
.ph-small img { width: 100%; height: 100%; object-fit: cover; }
.ph-badge { position: absolute; inset-inline-end: -6px; top: 70px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 16px 32px rgba(20, 34, 58, .16); display: flex; gap: 10px; align-items: center; z-index: 2; }
.ph-badge .d { width: 42px; height: 42px; border-radius: 13px; background: #0A4D3A; color: #F3D99A; display: flex; align-items: center; justify-content: center; font-family: 'Aref Ruqaa', serif; font-size: 22px; flex: 0 0 auto; }
.ph-badge b { display: block; font-size: 14px; color: #14223A; } .ph-badge small { color: #7A7262; font-size: 12px; }
.ph-logo { position: absolute; inset-inline-end: 30px; bottom: 6px; width: 86px; height: 86px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 12px 26px rgba(20, 34, 58, .2); z-index: 2; }
.ph-logo img { width: 100%; height: 100%; object-fit: contain; }
.gal { position: relative; z-index: 2; padding: 10px 48px 56px; }
.gal h2 { font-size: 30px; margin: 0 0 4px; color: #14223A; letter-spacing: -.6px; }
.gal h2 span { font-family: 'Aref Ruqaa', 'Amiri', serif; color: #8A6A1C; font-weight: 400; margin-inline-start: 10px; letter-spacing: 0; }
.gal p.s { color: #7A7262; margin: 0 0 18px; }
.gal-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 210px 210px; gap: 16px; }
.gal-grid.n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.gal-grid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 340px; }
.gal-grid figure { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 30px rgba(20, 34, 58, .12); background: #E9E4D6; }
.gal-grid.n3 figure:first-child { grid-row: 1 / 3; }
.gal-grid .fx { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.gal-grid .fx.on { opacity: 1; }
.gal-grid .fx img { width: 100%; height: 100%; object-fit: cover; }
.gal-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 14px; background: linear-gradient(180deg, transparent, rgba(10, 30, 24, .85)); color: #fff; font-weight: 700; z-index: 1; }
.gal-grid figcaption small { display: block; font-weight: 500; opacity: .88; font-size: 12.5px; }
@media (max-width: 1100px) { .ph-wrap { height: 470px; } .ph-arch { width: 330px; height: 440px; } .ph-small { width: 190px; height: 132px; } }
@media (max-width: 760px) {
  .ph-wrap { height: 430px; width: 100%; } .ph-arch { width: 270px; height: 380px; border-width: 6px; }
  .ph-small { width: 150px; height: 108px; bottom: 10px; border-width: 4px; } .ph-badge { inset-inline-end: 0; top: 18px; padding: 9px 12px; }
  .ph-logo { width: 64px; height: 64px; inset-inline-end: 6px; } .ph-arch .logo-sl b { font-size: 34px; }
  .gal { padding: 10px 18px 40px; } .gal h2 { font-size: 24px; }
  .gal-grid, .gal-grid.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 140px; }
  .gal-grid.n3 figure:first-child { grid-column: 1 / 3; grid-row: 1; }
  .gal-grid.n2 { grid-template-rows: 200px; } .gal-grid.n1 { grid-template-rows: 230px; }
}
/* Settings → Landing photos */
.lp-group { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.lp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.lp-head b { display: block; } .lp-head small { display: block; font-size: 12.5px; }
.lp-head label.loading { opacity: .6; pointer-events: none; }
.lp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lp-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lp-item > img { width: 100%; height: 110px; object-fit: cover; display: block; background: #EEE; }
.lp-cap { padding: 8px 10px 4px; min-width: 0; } .lp-cap b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lp-cap small { display: block; color: var(--ink-4); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-act { display: flex; gap: 5px; padding: 6px 10px 10px; align-items: center; } .lp-act .btn-soft { margin-inline-start: auto; }
.lp-act .ibtn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.lp-act .ibtn:disabled { opacity: .35; cursor: default; }
.lp-prev { border-radius: 16px; overflow: hidden; height: 220px; margin-bottom: 10px; background: #EEE; } .lp-prev img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- student card: information + this month paid/not + Fees / Exams buttons ---------- */
.drawer.stcard { background: #fff; padding: 0; gap: 0; align-items: stretch; text-align: start; border: 0; box-shadow: -20px 0 60px rgba(0, 0, 0, .18); transform: none; }
.sc-hd { background: linear-gradient(135deg, var(--side1, #0A4D3A), var(--green-2, #13814A)); color: #fff; padding: 20px 22px 66px; display: flex; justify-content: space-between; align-items: flex-start; flex: 0 0 auto; }
body.th-mr .sc-hd { background: linear-gradient(135deg, #5E1020, #8E1C33); }
.sc-hd > span { letter-spacing: 1.5px; font-size: 11.5px; font-weight: 700; opacity: .85; text-transform: uppercase; }
.sc-hd .icon-btn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; }
.sc-body { margin-top: -56px; padding-top: 0 !important; display: flex; flex-direction: column; gap: 14px; }
.sc-pf { background: #fff; border-radius: 22px; box-shadow: 0 14px 30px rgba(20, 34, 58, .12); padding: 16px 18px; display: flex; gap: 16px; align-items: center; position: relative; }
.sc-pf h2 { margin: 0; font-size: 21px; } .sc-pf .ar { font-family: 'El Messiri', Cairo, sans-serif; color: #8A6A1C; font-size: 17px; }
.sc-pf .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .sc-pf .tags span { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: #EEF2F0; color: #3d4655; }
.av.sc-av { width: 76px; height: 76px; font-size: 30px; border: 4px solid #F3D99A; flex: 0 0 auto; }
.sc-paid { border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.sc-paid b { display: block; font-size: 15.5px; } .sc-paid small { display: block; font-weight: 600; opacity: .82; font-size: 12.5px; }
.sc-paid.ok { background: #E3F5EA; color: #0C6B3C; } .sc-paid.no { background: #FDEAEA; color: #B42318; }
.sc-paid .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.sc-paid.ok .dot { background: #13814A; } .sc-paid.no .dot { background: #D2524A; }
.sc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-info > div { background: #F7FAF8; border-radius: 14px; padding: 10px 14px; min-width: 0; } .sc-info small { display: block; color: #6B7C75; font-size: 12px; font-weight: 600; } .sc-info b { font-size: 15px; overflow-wrap: anywhere; }
.st-active { color: #0C6B3C; } .st-left { color: #B42318; } .st-graduated { color: #2B55A8; }
.sc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-btn { border: 0; border-radius: 20px; padding: 18px; text-align: start; color: #fff; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; cursor: pointer; font: inherit; box-shadow: 0 12px 24px rgba(20, 34, 58, .18); transition: transform .15s; min-height: 132px; }
.sc-btn:hover { transform: translateY(-2px); }
.sc-btn .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.sc-btn b { font-size: 18px; } .sc-btn small { opacity: .9; font-size: 12.5px; padding-inline-end: 40px; }
.sc-btn .go { position: absolute; inset-inline-end: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: #F3D99A; color: #14223A; display: flex; align-items: center; justify-content: center; }
[dir=rtl] .sc-btn .go svg { transform: scaleX(-1); }
.sc-btn::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sc-btn.f { background: linear-gradient(135deg, #0A4D3A, #13814A); } .sc-btn.e { background: linear-gradient(135deg, #7A5A12, #B38E3E); }
@media (max-width: 520px) { .sc-info { grid-template-columns: 1fr 1fr; } .sc-big { grid-template-columns: 1fr 1fr; gap: 10px; } .sc-btn { padding: 14px; min-height: 120px; } .sc-btn small { display: none; } .av.sc-av { width: 62px; height: 62px; font-size: 24px; } }
/* ---------- all results ---------- */
.rs-hero { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg, #0A4D3A, #13814A); color: #fff; flex-wrap: wrap; }
.rs-hero .av.sc-av { width: 58px; height: 58px; font-size: 22px; } .rs-hero b { font-size: 19px; display: block; } .rs-hero small { opacity: .85; }
.rs-hero .k { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; } .rs-hero .k > div { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 8px 14px; text-align: center; } .rs-hero .k b { font-size: 20px; } .rs-hero .k small { font-size: 11.5px; display: block; }
.rs-steps { display: flex; gap: 10px; margin: 14px 0 6px; overflow-x: auto; padding-bottom: 4px; }
.rs-step { flex: 1 0 180px; border: 1px solid #E3E8E5; border-radius: 16px; padding: 10px 14px; position: relative; background: #fff; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.rs-step.on { border: 2px solid #0A4D3A; background: #F1F8F4; }
.rs-step small { color: #6B7C75; font-size: 12px; display: block; } .rs-step b { font-size: 15px; display: block; } .rs-step .pc { font-size: 22px; font-weight: 800; color: #0A4D3A; display: block; }
.rs-step .tag { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: #E3F5EA; color: #0C6B3C; }
.rs-step .tag.cur { background: #FFF4D6; color: #8A6200; } .rs-step .tag.no { background: #FDEAEA; color: #B42318; }
.rs-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; } .rs-bar b { font-size: 16px; }
.rs-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.rs-tbl th { font-size: 11px; text-transform: uppercase; color: #6B7C75; text-align: center; padding: 8px 6px; border-bottom: 1px solid #E3E8E5; background: #F7FAF8; }
.rs-tbl th.grp { background: #EEF6F1; color: #0A4D3A; font-size: 11.5px; } .rs-tbl th.nw { background: #FFF4D6; color: #8A6200; }
.rs-tbl td { padding: 9px 6px; border-bottom: 1px solid #EEF2F0; text-align: center; } .rs-tbl .l { text-align: start; }
.rs-tbl tr.tot td { font-weight: 800; background: #F7FAF8; }
.rs-note { font-size: 12px; color: #6B7C75; margin-top: 10px; }
.rs-print h1 { margin: 0; font-size: 20px; } .rs-print h2 { font-size: 15px; margin: 18px 0 4px; } .rs-print .rs-tbl { font-size: 11px; } .rs-print .table-wrap { overflow: visible; }
/* ---------- monthly exams / assignments / quizzes ---------- */
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tk-term h3 { margin: 0 0 8px; font-size: 15px; }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; flex-wrap: wrap; }
.tk-ic { width: 38px; height: 38px; border-radius: 12px; background: #F1F8F4; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.tk-item .g { flex: 1 1 180px; min-width: 0; } .tk-item .g b { display: block; } .tk-item .g small { color: var(--ink-4); font-size: 12px; }
.tk-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.tk-kinds button { border: 2px solid #E3E8E5; border-radius: 16px; padding: 14px; text-align: center; background: #fff; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tk-kinds button.on { border-color: #0A4D3A; background: #F1F8F4; } .tk-kinds span { font-size: 24px; } .tk-kinds small { color: #6B7C75; font-size: 12px; }
.tk-w { margin-top: 12px; border: 1px dashed #C9D6CF; border-radius: 16px; padding: 12px 14px; background: #FBFDFC; font-size: 13px; }
.tk-w > div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .tk-w > div span { background: #fff; border: 1px solid #E3E8E5; border-radius: 12px; padding: 7px 12px; font-size: 12.5px; } .tk-w > div b { display: block; font-size: 16px; }
.am-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .am-top .seg { overflow-x: auto; max-width: 100%; }
.am-in { width: 84px; height: 38px; text-align: center; border: 1px solid #DCE3DF; border-radius: 10px; font: inherit; } .am-in.bad { border-color: #D2524A; background: #FDEAEA; }
.form-grid.w5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .tk-grid { grid-template-columns: 1fr; } .tk-kinds button { padding: 10px 6px; } .tk-kinds small { display: none; } .form-grid.w5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rs-hero .k { margin: 0; } }

/* ---------------- transcript (A4 portrait, one page per student) ---------------- */
.tp-wrap { display: block; }
.tp-page { width: 190mm; height: 276mm; position: relative; overflow: hidden; background: #fff; color: #13261d; font-family: 'Inter', 'Cairo', sans-serif; font-size: 11px; page-break-after: always; break-after: page; margin: 0 auto; }
.tp-page:last-child { page-break-after: auto; break-after: auto; }
.tp-frame { position: absolute; inset: 0; border: 1.5px solid #C9A961; border-radius: 6px; pointer-events: none; }
.tp-frame::after { content: ""; position: absolute; inset: 4px; border: .6px solid #E6D3A4; border-radius: 4px; }
.tp-wm { position: absolute; top: 46%; left: 50%; width: 92mm; transform: translate(-50%, -50%); opacity: .05; }
.tp-in { position: relative; padding: 9mm 9mm 6mm; height: 100%; display: flex; flex-direction: column; }
.tp-hd { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #0C5B42; }
.tp-hd > img { width: 64px; height: 64px; }
.tp-hd .t { flex: 1; min-width: 0; }
.tp-hd .ar { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 26px; color: #0C5B42; line-height: 1.45; }
.tp-hd .la { font-weight: 800; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.tp-hd small { display: block; font-size: 10px; color: #5E6F66; margin-top: 2px; }
.tp-hd .r { text-align: end; }
.tp-hd .doc { display: inline-block; background: #0C5B42; color: #fff; font-weight: 800; letter-spacing: .16em; font-size: 10.5px; padding: 6px 12px; border-radius: 20px; }
.tp-hd .doc2 { font-family: 'Amiri', serif; font-size: 15px; color: #9A7A2C; margin-top: 3px; }
.tp-stu { margin-top: 12px; display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #F4F8F5, #FBF7EC); border: 1px solid #E3EAE5; border-radius: 12px; padding: 10px 14px; }
.tp-av { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: #3F4FB5; color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; border: 3px solid #E8C879; overflow: hidden; }
.tp-av img { width: 100%; height: 100%; object-fit: cover; }
.tp-stu .nm b { display: block; font-weight: 800; font-size: 16px; }
.tp-stu .nm i { display: block; font-style: normal; font-family: 'Amiri', serif; font-size: 16px; color: #9A7A2C; }
.tp-stu .kv { display: flex; gap: 16px; margin-inline-start: auto; font-size: 10px; }
.tp-stu .kv small { display: block; color: #6B7C73; }
.tp-stu .kv b { font-size: 11.5px; white-space: nowrap; }
.tp-term { margin-top: 12px; }
.tp-th { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.tp-th .n { width: 24px; height: 24px; border-radius: 7px; background: #0C5B42; color: #E8C879; font-weight: 800; display: grid; place-items: center; font-size: 12px; }
.tp-th h3 { margin: 0; font-size: 12.5px; letter-spacing: .03em; }
.tp-th small { font-size: 9.5px; color: #6B7C73; }
.tp-th .p { margin-inline-start: auto; font-size: 10.5px; font-weight: 700; color: #0C5B42; background: #E6F2EC; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.tp-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 10.5px; border: 1px solid #DFE7E2; border-radius: 9px; overflow: hidden; }
.tp-tbl thead th { background: #0C5B42; color: #fff; font-weight: 700; font-size: 9.5px; letter-spacing: .03em; padding: 6px 5px; text-align: center; }
.tp-tbl thead th.opt { background: #2F735C; } .tp-tbl thead th.tpm { background: #08402F; }
.tp-tbl th.l, .tp-tbl td.l { text-align: start; padding-inline-start: 10px; }
.tp-tbl td { padding: 4.5px 5px; text-align: center; border-top: 1px solid #EEF2EF; font-variant-numeric: tabular-nums; }
.tp-tbl td.l b { font-weight: 600; }
.tp-tbl td.l i { display: inline-block; font-style: normal; font-family: 'Amiri', serif; color: #9A7A2C; padding-inline-start: 7px; font-size: 12px; }
.tp-page .arb { letter-spacing: 0 !important; text-transform: none !important; display: inline-block; font-family: 'Amiri', serif; font-weight: 700; padding-inline-start: 6px; }
.tp-tbl td, .tp-tbl th { white-space: nowrap; }
.tp-tbl td small { color: #8A9890; font-size: 8.5px; }
.tp-tbl td.opt { color: #55665D; background: #FBFDFC; }
.tp-tbl td.tpm { background: #F4F9F6; } .tp-tbl td.tpm b { font-weight: 800; }
.tp-tbl td.tot { font-weight: 800; color: #0C5B42; }
.tp-tbl tfoot td { background: #EEF5F1; font-weight: 800; border-top: 1.5px solid #CFDCD4; }
.tp-d { color: #B9C4BE; }
.tp-g { display: inline-block; padding: 2px 7px; border-radius: 6px; font-weight: 800; font-size: 9px; white-space: nowrap; }
.tp-g.ex { background: #E3F3EA; color: #0B6B43; } .tp-g.vg { background: #FBF1DC; color: #7A5A12; } .tp-g.gd { background: #E8F0FB; color: #2856A8; } .tp-g.fl { background: #FDE6E6; color: #B3261E; }
.tp-sum { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tp-sum > div { border: 1px solid #E3EAE5; border-radius: 10px; padding: 8px 6px; text-align: center; }
.tp-sum b { display: block; font-size: 17px; font-weight: 800; color: #0C5B42; }
.tp-sum small { font-size: 9px; color: #6B7C73; text-transform: uppercase; letter-spacing: .05em; }
.tp-sum .hl { background: #0C5B42; border-color: #0C5B42; } .tp-sum .hl b { color: #E8C879; } .tp-sum .hl small { color: #CFE5DA; }
.tp-sum .ok b { color: #0B6B43; } .tp-sum .no b { color: #B3261E; }
.tp-note { margin-top: 8px; font-size: 9px; color: #6B7C73; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.tp-note .k { display: inline-block; width: 9px; height: 9px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 4px; } .tp-note .k.a { background: #08402F; } .tp-note .k.b { background: #2F735C; }
.tp-rem { margin-top: 10px; display: flex; gap: 8px; align-items: flex-end; border-inline-start: 3px solid #C9A961; background: #FDFAF2; padding: 8px 12px; font-size: 10.5px; border-radius: 0 8px 8px 0; }
.tp-rem span { flex: 1; border-bottom: 1px dotted #B9A57A; height: 14px; }
.tp-sig { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr 70px 1fr; gap: 16px; align-items: end; font-size: 10px; text-align: center; color: #55665D; }
.tp-sig > div:not(.stp) { border-top: 1px solid #9AA9A1; padding-top: 5px; }
.tp-sig .stp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1.5px dashed #C9A961; border-radius: 50%; color: #B8963F; font-size: 8px; letter-spacing: .1em; justify-self: center; }
.tp-sig .stp svg { width: 22px; height: 22px; }
.tp-ft { margin-top: 10px; display: flex; justify-content: space-between; font-size: 8.5px; color: #8A9890; }
@media print { .tp-page { margin: 0; } }
.bw .tp-tbl thead th { color: #111 !important; border-bottom: 2px solid #111 !important; } .bw .tp-hd .doc, .bw .tp-sum .hl b { color: #111 !important; border: 1px solid #111 !important; }
.tp-page .arb { line-height: 1; vertical-align: baseline; }
/* Arabic letters must stay joined: no letter spacing / capitals on transcript text in Arabic mode */
[dir=rtl] .tp-page *:not(.doc), [dir=rtl].tp-page *:not(.doc), [dir=rtl] .tp-page { letter-spacing: 0 !important; text-transform: none !important; }
.tp-th h3 { line-height: 1.6; } .tp-th small { display: block; }

/* landing footer: developer credit */
.dev-ft { position: relative; z-index: 2; margin: 34px auto 0; max-width: 1180px; width: 100%; padding: 18px 26px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(201,169,97,.35); color: #5E6F66; font: 500 13px Inter, Cairo, sans-serif; }
.dev-ft .cp { flex: 1; min-width: 200px; }
.dev-ft .dv { display: inline-flex; align-items: center; gap: 10px; color: #13261D; background: #fff; border: 1px solid #E3EAE5; border-radius: 999px; padding: 7px 16px 7px 8px; box-shadow: 0 4px 14px rgba(12,91,66,.08); }
.dev-ft .mk { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #0C5B42, #08402F); display: grid; place-items: center; }
.dev-ft small { display: block; font-size: 10px; color: #8A9890; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.dev-ft b { font-weight: 800; font-size: 13.5px; } .dev-ft b em { font-style: normal; color: #B8963F; }

/* ---------------- sections (boys / girls, morning / evening) ---------------- */
.sec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.sec-row .lbl { font-size: 13px; font-weight: 600; color: var(--ink-3, #6B7C73); }
.sec-row .chips { flex: 1; }
.chip.sec { background: #FBF3DF; color: #7A5A12; border-color: transparent; }
.chip.sec.active { background: #B8963F; color: #fff; }
.sec-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; background: #F3EAD3; color: #7A5A12; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mv-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0; }
.mv-list { max-height: 50vh; overflow: auto; border: 1px solid #E3EAE6; border-radius: 14px; }
.mv-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #F1F4F2; cursor: pointer; }
.mv-row:last-child { border-bottom: 0; }
.mv-row input { width: 18px; height: 18px; accent-color: #0C5B42; }
.mv-row .g { flex: 1; min-width: 0; } .mv-row .g b { display: block; } .mv-row .g small { color: #6B7C73; }
.cf-secs { display: flex; flex-direction: column; gap: 8px; }
.cf-sec { display: grid; grid-template-columns: 1fr 1fr 40px 40px; gap: 8px; align-items: center; }
.cf-sec input, .cf-sec select { height: 42px; }
.cf-add { display: flex; gap: 8px; margin-top: 8px; } .cf-add input { flex: 1; height: 44px; }
.grad-box { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #FBF7EC; border: 1px solid #EBDDB6; }
.grad-box small { display: block; }
.tags .grad, .tags .gr { background: #0C5B42 !important; color: #E8C879 !important; }
@media (max-width: 560px) { .cf-sec { grid-template-columns: 1fr 40px 40px; } .cf-sec select { grid-column: 1 / -1; grid-row: 2; } }

/* ---------------- graduates page ---------------- */
.gr-top { margin-bottom: 14px; } .gr-top .psearch { max-width: 520px; }
.gr-batches { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.gr-b { background: #fff; border: 1.5px solid #E6ECE8; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.gr-b.on { border-color: #B8963F; box-shadow: 0 10px 30px rgba(184, 150, 63, .15); }
.gr-b .h { display: flex; gap: 12px; align-items: center; }
.gr-b .ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: linear-gradient(135deg, #B8963F, #7A5A12); display: grid; place-items: center; font-size: 24px; }
.gr-b .g { flex: 1; min-width: 0; } .gr-b .g > b { display: block; font-size: 18px; } .gr-b .g small { color: #6B7C73; display: block; }
.gr-b .a { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.grad-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; background: #0C5B42; color: #E8C879; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------------- import ---------------- */
.imp-steps { display: flex; gap: 8px; margin-bottom: 16px; }
.imp-steps div { flex: 1; border-radius: 12px; padding: 9px; text-align: center; font-size: 12.5px; font-weight: 700; background: #EEF2EF; color: #6B7C73; }
.imp-steps .on { background: #0C5B42; color: #fff; } .imp-steps .dn { background: #E3F3EA; color: #0B6B43; }
.imp-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed #B9CBC1; border-radius: 18px; cursor: pointer; text-align: center; }
.imp-drop:hover { border-color: #0C5B42; background: #F6FAF8; } .imp-drop .ic { font-size: 34px; }
.imp-file { background: #F6F9F7; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.imp-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.imp-k div { border: 1px solid #E6ECE8; border-radius: 14px; padding: 10px; text-align: center; } .imp-k b { display: block; font-size: 22px; color: #0C5B42; } .imp-k small { color: #6B7C73; font-size: 12px; }
.imp-ln { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1F4F2; font-size: 13.5px; } .imp-ln i { font-style: normal; }
.imp-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #F6F9F7; margin-top: 10px; cursor: pointer; font-size: 13.5px; }
.imp-opt input { width: 18px; height: 18px; margin-top: 1px; accent-color: #0C5B42; } .imp-opt small { display: block; color: #6B7C73; margin-top: 2px; }
.imp-opt.danger { background: #FDF1F0; } .imp-opt.danger input { accent-color: #B3261E; } .imp-opt.danger b { color: #B3261E; }
.imp-done { text-align: center; padding: 24px 10px; } .imp-done .ic { font-size: 44px; display: block; } .imp-done b { font-size: 20px; }
@media (max-width: 560px) { .imp-k { grid-template-columns: repeat(2, 1fr); } .imp-steps div { font-size: 11px; padding: 7px 4px; } }

/* ---------------- old-system transcript ---------------- */
.tp-h td.tt, .tp-h th.tt { background: #F4F9F6; font-weight: 800; }
.tp-h thead th.tt { background: #0A4A37; }
.tp-h td.tot { font-weight: 800; color: #0C5B42; background: #EEF5F1; }
.tp-page.tight .tp-tbl td { padding: 3px 5px; font-size: 10px; }
.tp-page.tight .tp-stu { margin-top: 8px; padding: 8px 12px; } .tp-page.tight .tp-term { margin-top: 8px; } .tp-page.tight .tp-sum { margin-top: 8px; }
.tp-page.tight .tp-sum b { font-size: 15px; } .tp-page.tight .tp-sig { padding-top: 10px; }

/* ---------------- phones: never slide sideways, never zoom when typing ---------------- */
html, body { max-width: 100%; overflow-x: hidden; }
body { overscroll-behavior-x: none; }
@media (max-width: 700px) {
  html, body { touch-action: pan-y pinch-zoom; }
  .chips, .cls, .table-wrap, .rs-steps, .seg, .mv-list, .am-top .seg { touch-action: pan-x pan-y; }
  input, select, textarea { font-size: 16px !important; }   /* iPhone zooms in on boxes with smaller text */
  #root, .app, .main, #page { max-width: 100vw; }
  img, svg, video, canvas { max-width: 100%; }
}
.inst-steps { display: flex; flex-direction: column; gap: 10px; }
.inst-steps .step { display: flex; gap: 12px; align-items: center; background: #F6F9F7; border-radius: 14px; padding: 12px 14px; }
.inst-steps .step i { font-style: normal; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
/* section chips: always all visible; on phones the move button goes under them */
.chip.sec b { font-weight: 800; opacity: .75; margin-inline-start: 2px; }
.chip.sec.active b { opacity: 1; }
@media (max-width: 700px) {
  .sec-row { flex-wrap: wrap; gap: 8px; }
  .sec-row .lbl { flex: 0 0 100%; }
  .sec-row .chips { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
  .sec-row .btn { flex: 1 1 100%; justify-content: center; min-height: 42px; }
}
@media (max-width: 700px) { #gr-secs { flex-wrap: wrap; overflow: visible; } }

/* ---------- Morning / Evening shifts and groups ---------- */
:root { --am: #FFF6E3; --am-line: #F3DDA8; --am-ink: #9A5B00; --ev: #EEF0FB; --ev-line: #CDD3F2; --ev-ink: #33408F; }
.cls-pnl { grid-column: 1 / -1; order: -1; }
.shf-hint { margin: -4px 0 14px; font-size: 13.5px; }
.cls-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cls-sum .st { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.cls-sum .st small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.cls-sum .st b { display: block; font-size: 24px; margin-top: 2px; }
.cls-sum .st.am { background: var(--am); border-color: var(--am-line); } .cls-sum .st.am small { color: var(--am-ink); }
.cls-sum .st.ev { background: var(--ev); border-color: var(--ev-line); } .cls-sum .st.ev small { color: var(--ev-ink); }
.cls-sum .st.warn { background: var(--red-bg); border-color: #F5C6C3; } .cls-sum .st.warn b { color: var(--red); }
.cls-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.cls-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cls-h .bd { width: 42px; height: 42px; border-radius: 13px; background: var(--side1, #0A4D3A); color: #F3D99A; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.cls-h .g { flex: 1; min-width: 0; } .cls-h .g b { display: block; font-size: 17px; } .cls-h .g small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.cls-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shift-box { border-radius: 16px; padding: 12px; border: 1px solid; }
.shift-box.am { background: var(--am); border-color: var(--am-line); } .shift-box.ev { background: var(--ev); border-color: var(--ev-line); }
.shh { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.am .shh { color: var(--am-ink); } .ev .shh { color: var(--ev-ink); }
.shh .ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.am .shh .ico { background: #FFE3A3; } .ev .shh .ico { background: #D8DDF8; }
.shh .n { margin-inline-start: auto; font-size: 12px; background: #fff; border-radius: 999px; padding: 3px 10px; }
.grp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grp { background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.06); text-align: start; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.grp:hover { box-shadow: 0 6px 16px rgba(16,24,20,.08); transform: translateY(-1px); }
.grp .t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.grp .t small { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.grp .t .c { margin-inline-start: auto; background: var(--green-soft); color: var(--green-2); border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.grp .tc { display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-add { border: 1.5px dashed rgba(0,0,0,.16); background: transparent; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font: 600 13px var(--font); min-height: 58px; cursor: pointer; }
.grp-add:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.unplaced { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--red-bg); border: 1px solid #F5C6C3; color: #9C2A24; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.unplaced .btn { margin-inline-start: auto; background: var(--red); color: #fff; border-color: var(--red); flex: 0 0 auto; }
/* group form */
.gf-l { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 10px 0 6px; }
.gf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gf-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 8px; font: 700 14px var(--font); color: var(--ink-2); cursor: pointer; }
.gf-opt.am.on { background: var(--am); border-color: var(--am-ink); color: var(--am-ink); }
.gf-opt.ev.on { background: var(--ev); border-color: var(--ev-ink); color: var(--ev-ink); }
.gf-opt.gd.on { background: var(--gold-soft); border-color: var(--gold-2); color: var(--gold-text); }
.gf-prev { margin-top: 10px; background: var(--green-soft); color: var(--green-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.gf-prev:empty { display: none; }
/* students page: shift switch + groups */
.shf-box { margin: 0 0 12px; }
.shf-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 8px; margin-bottom: 10px; }
.shf { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 10px; font: 700 13px var(--font); color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.shf b { font-size: 17px; }
.shf.shf-morning { background: var(--am); border-color: var(--am-line); color: var(--am-ink); }
.shf.shf-evening { background: var(--ev); border-color: var(--ev-line); color: var(--ev-ink); }
.shf.on { box-shadow: 0 0 0 2px var(--green-2); border-color: transparent; }
.shf.shf-morning.on { box-shadow: 0 0 0 2px var(--am-ink); } .shf.shf-evening.on { box-shadow: 0 0 0 2px var(--ev-ink); }
.shf-groups { flex-wrap: wrap; margin-bottom: 8px; }
.shf-crumb { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin: 2px 2px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shf-crumb i { font-style: normal; opacity: .6; } .shf-crumb em { font-style: normal; }
@media (max-width: 700px) {
  .cls-sum { grid-template-columns: 1fr 1fr; }
  .cls-shifts { grid-template-columns: 1fr; }
  .cls-h .btn { padding: 6px 10px; }
  .unplaced { flex-wrap: wrap; } .unplaced .btn { width: 100%; justify-content: center; }
  .shf-seg { grid-template-columns: repeat(3, 1fr); }
  .shf-move { width: 100%; justify-content: center; }
}
.sg:has(.cls-pnl) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .cls-h { align-items: flex-start; } .cls-h .btn .lbl { display: none; } .cls-h .btn { padding: 8px; flex: 0 0 auto; } }
.shift-box, .cls-shifts { min-width: 0; } .grp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grp { min-width: 0; }

/* ---------- class page (one class only) ---------- */
.cv-modal .modal { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cv-hero { background: linear-gradient(135deg, #0B3328, #0F4A39); color: #fff; padding: 20px 24px 0; position: relative; flex: 0 0 auto; }
.cv-x { position: absolute; inset-inline-end: 16px; top: 16px; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; }
.cv-hh { display: flex; gap: 14px; align-items: center; padding-inline-end: 44px; }
.cv-bd { width: 56px; height: 56px; border-radius: 17px; background: #E6C67F; color: #0B3328; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; flex: 0 0 auto; }
.cv-hh h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0; } .cv-hh p { opacity: .75; font-size: 13.5px; margin: 2px 0 0; }
.cv-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cv-tags span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.cv-tabs { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x pan-y; }
.cv-tabs::-webkit-scrollbar { display: none; }
.cv-tabs button { border: 0; background: transparent; color: rgba(255,255,255,.72); padding: 11px 18px; border-radius: 14px 14px 0 0; font: 700 14.5px var(--font); cursor: pointer; white-space: nowrap; }
.cv-tabs button.on { background: var(--bg, #F4F6F5); color: #0B3328; }
.cv-body { background: var(--bg, #F4F6F5); padding: 20px 24px 24px; overflow-y: auto; }
.cv-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cv-k.cv-k3 { grid-template-columns: repeat(3, 1fr); }
.cv-k > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.cv-k small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.cv-k b { display: block; font-size: 26px; margin-top: 4px; } .cv-k b.cv-muted { color: var(--ink-3); }
.cv-k em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cv-k .pb { margin-top: 8px; }
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; min-width: 0; }
.cv-box h4 { font-size: 15.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-box h4 small { margin-inline-start: auto; color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.cv-box .shift-box + .shift-box { margin-top: 10px; }
.cv-none { color: var(--ink-3); font-size: 13px; padding: 2px; }
.cv-subj { display: flex; flex-wrap: wrap; gap: 6px; } .cv-subj span { background: var(--green-soft); color: var(--green-2); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.cv-q { margin-bottom: 10px; display: flex; }
.cv-chips { flex-wrap: wrap; margin-bottom: 8px; }
.cv-list { display: flex; flex-direction: column; gap: 6px; }
.cv-st { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.cv-st:hover { box-shadow: 0 6px 16px rgba(16,24,20,.07); }
.cv-st .g { flex: 1; min-width: 0; } .cv-st .g b { display: block; font-size: 14px; } .cv-st .g small { color: var(--ink-3); font-size: 12px; }
.cv-ok { color: var(--green-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; } .cv-ow { color: var(--red); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 700px) {
  .cv-hero { padding: 16px 14px 0; } .cv-hh h2 { font-size: 19px; } .cv-bd { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
  .cv-tabs button { padding: 9px 12px; font-size: 13px; }
  .cv-body { padding: 12px; }
  .cv-k, .cv-k.cv-k3 { grid-template-columns: 1fr 1fr; } .cv-k b { font-size: 22px; }
  .cv-two { grid-template-columns: 1fr; }
}

/* ---------- 10-second "deleted" message ---------- */
.toast.bin-toast { display: block; width: min(440px, calc(100vw - 24px)); padding: 13px 16px 12px; position: relative; }
.toast.bin-toast::before { display: none; }
.bt-l1 { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-inline-end: 26px; }
.bt-go { margin-inline-start: auto; background: none; border: 0; color: #E6C67F; font: 700 13px var(--font); text-decoration: underline; cursor: pointer; padding: 0; white-space: nowrap; }
.bin-toast small { display: block; color: #B9C6C1; font-size: 12px; font-weight: 500; margin: 4px 0 10px; }
.bt-sec { position: absolute; inset-inline-end: 14px; top: 13px; font-size: 11px; color: #B9C6C1; }
.bt-bar { height: 4px; background: rgba(255,255,255,.15); border-radius: 9px; overflow: hidden; }
.bt-bar i { display: block; height: 100%; background: #E6C67F; animation: btbar 10s linear forwards; }
@keyframes btbar { from { width: 100%; } to { width: 0; } }

/* ---------- Recycle bin ---------- */
.rb-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rb-head > div { flex: 1; min-width: 220px; } .rb-head p { margin: 4px 0 0; font-size: 13.5px; }
.rb-t { font-size: 22px; display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.pill-n { font-size: 12px; background: var(--green-soft); color: var(--green-2); border-radius: 999px; padding: 3px 10px; font-weight: 700; }
.rb-warn { background: #FFF6E3; border: 1px solid #F3DDA8; color: #9A5B00; border-radius: 14px; padding: 11px 14px; font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.rb-chips { flex-wrap: wrap; margin-bottom: 12px; }
.rb-list { display: flex; flex-direction: column; gap: 8px; }
.rb-it { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; transition: box-shadow .3s, background .3s; }
.rb-it.hl { box-shadow: 0 0 0 2px #C8A04F; background: #FFFCF3; }
.rb-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; }
.rb-it .g { flex: 1; min-width: 0; } .rb-it .g b { display: block; font-size: 14.5px; } .rb-it .g small { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.rb-tg { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; background: #F1F4F3; color: var(--ink-2); margin-inline-end: 7px; vertical-align: 2px; }
.rb-act { display: flex; gap: 6px; flex: 0 0 auto; }
.rb-prev { background: var(--green-soft); color: var(--green-2); border-radius: 14px; padding: 12px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.6; }
.rb-prev.purge { background: var(--red-bg); color: var(--red); }
@media (max-width: 700px) { .rb-it { flex-wrap: wrap; } .rb-act { width: 100%; } .rb-act .btn { flex: 1; justify-content: center; } }

/* ---------- Cases ---------- */
.cs-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.cs-sum > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.cs-sum small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; } .cs-sum b { display: block; font-size: 24px; }
.cs-sum .r { background: var(--red-bg); border-color: #F5C6C3; } .cs-sum .r b { color: var(--red); }
.cs-sum .g { background: var(--green-soft); border-color: #CFE6DA; } .cs-sum .g b { color: var(--green-2); }
.cs-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cs-filters .chips { flex-wrap: wrap; } .cs-q { flex: 1; min-width: 200px; display: flex; }
.cs-list { display: flex; flex-direction: column; gap: 6px; }
.cs-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) auto minmax(0, 1.6fr) auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.cs-row.bad { background: linear-gradient(90deg, #FDECEC, #fff 60%); box-shadow: inset 4px 0 0 var(--red); }
[dir=rtl] .cs-row.bad { background: linear-gradient(270deg, #FDECEC, #fff 60%); box-shadow: inset -4px 0 0 var(--red); }
.cs-row.good { box-shadow: inset 4px 0 0 #2E9E6B; } [dir=rtl] .cs-row.good { box-shadow: inset -4px 0 0 #2E9E6B; }
.cs-row .who b { display: block; font-size: 14px; } .cs-row .who small { color: var(--ink-3); font-size: 12px; }
.cs-cls span { display: block; font-size: 13.5px; } .cs-cls small { color: var(--ink-3); font-size: 12px; }
.st-ok { color: var(--green-2); background: var(--green-soft); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.st-bad { color: var(--red); background: #fff; border: 1px solid #F5C6C3; border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.cs-last b { display: block; font-size: 13px; } .cs-last small { color: var(--ink-3); font-size: 12px; }
.cf-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cf-types button, .cf-sev button { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 4px; font: 700 13px var(--font); color: var(--ink-2); cursor: pointer; }
.cf-types button.on { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.cf-sev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cf-sev .sv-light.on { background: #FFF8E6; border-color: #E8C873; color: #8A6417; }
.cf-sev .sv-medium.on { background: #FFF3D6; border-color: #E0B24F; color: #9A5B00; }
.cf-sev .sv-serious.on { background: var(--red-bg); border-color: var(--red); color: var(--red); }
/* inside the student card */
.sc-cases { margin: 12px 0 4px; }
.cs-banner { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 11px 12px; font-size: 14px; }
.cs-banner > div { flex: 1; min-width: 0; } .cs-banner b { display: block; } .cs-banner small { display: block; font-size: 12px; opacity: .85; }
.cs-banner.bad { background: var(--red-bg); color: var(--red); border: 1px solid #F5C6C3; }
.cs-banner.good { background: var(--green-soft); color: var(--green-2); border: 1px solid #CFE6DA; }
.cs-banner .btn { flex: 0 0 auto; }
.cs-case { border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; margin-top: 8px; background: #fff; border-inline-start: 4px solid var(--red); }
.cs-case.sev-light { border-inline-start-color: #E8C873; } .cs-case.sev-medium { border-inline-start-color: #E0B24F; }
.cs-case .t { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cs-case .t .d { margin-inline-start: auto; color: var(--ink-3); font-size: 12px; }
.cs-case p { font-size: 13px; color: var(--ink-2); margin: 5px 0; } .cs-case small { font-size: 12px; color: var(--ink-3); }
.cs-case .sev { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.s-light { background: #FFF8E6; color: #8A6417; } .s-medium { background: #FFF3D6; color: #9A5B00; } .s-serious { background: var(--red-bg); color: var(--red); }
.cs-del { width: 28px !important; height: 28px !important; color: var(--ink-3); }
@media (max-width: 700px) {
  .cs-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .cs-row .cs-cls { grid-column: 1; } .cs-row .cs-last { grid-column: 1 / -1; } .cs-row .btn { grid-column: 2; grid-row: 2; }
  .cs-sum b { font-size: 20px; }
}
.rb-p { margin: 0 !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-q { flex: 0 0 auto !important; }
.cv-body > * { flex-shrink: 0; }
.cv-chips { flex-wrap: wrap !important; overflow: visible !important; }
@media (max-width: 700px) { .cs-row .st-ok, .cs-row .st-bad { justify-self: start; } }

/* ---------- Subjects & Classes page (two rows) ---------- */
.sp-sec { margin-top: 20px; }
.sp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sp-h .ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.sp-h h3 { font-size: 19px; margin: 0; } .sp-h .n { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.sp-h .btn { margin-inline-start: auto; box-shadow: 0 6px 16px rgba(200,160,79,.3); }
.sp-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sp-cls { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,20,.05); display: flex; flex-direction: column; }
.sp-cls::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(230,198,127,.3), transparent 70%); pointer-events: none; }
.sp-cls .ch { display: flex; gap: 12px; align-items: center; }
.sp-cls .bd { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); color: #E6C67F; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 23px; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(11,51,40,.22); }
.sp-cls .ch b { display: block; font-size: 18px; } .sp-cls .ch small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 1px; font-family: 'Tajawal', var(--font); font-weight: 700; }
.sp-cls .big { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 10px; } .sp-cls .big b { font-size: 34px; line-height: 1; } .sp-cls .big span { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.sc-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-sf { border-radius: 13px; padding: 9px 11px; border: 1px solid; min-width: 0; }
.sc-sf.am { background: var(--am); border-color: var(--am-line); } .sc-sf.ev { background: var(--ev); border-color: var(--ev-line); }
.sc-sf .t { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; } .sc-sf.am .t { color: var(--am-ink); } .sc-sf.ev .t { color: var(--ev-ink); }
.sc-sf .g { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; font-weight: 700; line-height: 1.5; } .sc-sf .g b { color: var(--green-2); }
.sc-sf .g.none { color: var(--ink-3); font-weight: 500; }
.sp-cls .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; } .sp-cls .meta b { color: var(--ink); }
.sp-warn { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-bg); border-radius: 10px; padding: 6px 10px; }
.sp-edit { margin-top: auto; width: 100%; justify-content: center; background: var(--green-soft); color: var(--green-2); border: 1px solid #D3E8DD; position: relative; z-index: 1; }
.sp-cls .meta + .sp-edit, .sp-warn + .sp-edit { margin-top: 14px; }
.sp-filter { flex-wrap: wrap; margin-bottom: 10px; }
.sp-subj { padding-top: 6px; padding-bottom: 6px; }
/* Edit class */
.cf-names { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.cf-gbox { border-radius: 14px; padding: 10px; border: 1px solid; margin-bottom: 8px; }
.cf-gbox.am { background: var(--am); border-color: var(--am-line); } .cf-gbox.ev { background: var(--ev); border-color: var(--ev-line); }
.cf-gbox .t { font-size: 12.5px; font-weight: 800; margin-bottom: 7px; display: flex; justify-content: space-between; } .cf-gbox.am .t { color: var(--am-ink); } .cf-gbox.ev .t { color: var(--ev-ink); }
.cf-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 11px; font: 600 13px var(--font); margin: 0 4px 4px 0; border: 1px solid rgba(0,0,0,.07); cursor: pointer; color: var(--ink); }
.cf-chip em { font-style: normal; background: var(--green-soft); color: var(--green-2); border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 700; }
.cf-chip svg { color: var(--ink-3); }
.cf-chip.add { border: 1.5px dashed rgba(0,0,0,.18); background: transparent; color: var(--ink-3); }
.cf-chip:hover { box-shadow: 0 4px 12px rgba(16,24,20,.08); }
@media (max-width: 700px) {
  .sp-classes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; touch-action: pan-x pan-y; scrollbar-width: none; }
  .sp-classes::-webkit-scrollbar { display: none; }
  .sp-cls { flex: 0 0 82%; scroll-snap-align: start; padding: 14px; }
  .sp-cls .big b { font-size: 28px; }
  .sp-h .btn { padding: 8px 12px; font-size: 13px; }
  .cf-names { grid-template-columns: 1fr; }
}
.sc-sf .g { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-sf .gp { display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 8px; padding: 2px 7px; font-size: 12.5px; }
.sp-foot { margin-top: auto; padding-top: 14px; position: relative; z-index: 1; }
.sp-foot .sp-edit { margin-top: 0 !important; }

/* ---------- dashboard: latest registered students ---------- */
.rg-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.rg h3 { display: flex; align-items: center; gap: 10px; }
.rg-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto; }
.rg-t { display: flex; flex-direction: column; } .rg-t small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 0 !important; }
.rg h3 .link { margin-inline-start: auto; }
.rg-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.rg-k > div { border-radius: 14px; padding: 9px 12px; background: #F6F8F7; border: 1px solid var(--line); }
.rg-k small { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 600; } .rg-k b { font-size: 20px; }
.rg-k .hl { background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); border: 0; } .rg-k .hl small { color: rgba(255,255,255,.7); } .rg-k .hl b { color: #E6C67F; }
.rg-list { display: flex; flex-direction: column; }
.rg-st { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: start; font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
.rg-st:first-child { border-top: 0; } .rg-st:hover { background: #FAFBFA; }
.rg-st .g { flex: 1; min-width: 0; } .rg-st .g b { display: block; font-size: 14.5px; } .rg-st .g small { color: var(--ink-3); font-size: 12px; }
.rg-new { font-size: 10px; font-weight: 800; background: var(--green-soft); color: var(--green-2); border-radius: 6px; padding: 1px 6px; margin-inline-start: 6px; vertical-align: 2px; }
.rg-c { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.rg-pill { background: var(--side2, #0B3328); color: #E6C67F; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rg-w { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.rg-empty { padding: 18px 8px !important; } .rg-empty small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; font-weight: 500; }
.rg-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.rg-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; } .rg-bar span { width: 70px; font-weight: 700; flex: 0 0 auto; }
.rg-bar i { flex: 1; height: 9px; border-radius: 9px; background: #EEF2F0; overflow: hidden; } .rg-bar i s { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), #2E9E6B); border-radius: 9px; min-width: 2px; }
.rg-bar b { width: 26px; text-align: end; }
.rg-sh { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.rg-s { border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; border: 1px solid; }
.rg-s.morning { background: var(--am); color: var(--am-ink); border-color: var(--am-line); } .rg-s.evening { background: var(--ev); color: var(--ev-ink); border-color: var(--ev-line); } .rg-s.none { background: #F1F4F3; color: var(--ink-3); border-color: var(--line); }
@media (max-width: 900px) { .rg-row { grid-template-columns: 1fr; } }
.rg h3 .link { white-space: nowrap; }

/* ---------- one student's cases ---------- */
.cp-modal .modal { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-width: 560px; }
.cp-h { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid; flex: 0 0 auto; }
.cp-h.bad { background: linear-gradient(135deg, #FDECEC, #fff); border-color: #F5C6C3; } .cp-h.good { background: linear-gradient(135deg, #E6F2EC, #fff); border-color: #CFE6DA; }
.cp-h .g { flex: 1; min-width: 0; } .cp-h .g b { display: block; font-size: 17px; } .cp-h .g small { color: var(--ink-3); font-size: 12.5px; }
.cp-b { padding: 14px 18px 18px; overflow-y: auto; }
.cp-b > * { flex-shrink: 0; }
.cp-cnt { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cp-cnt span { border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.cp-cnt .r { background: var(--red-bg); color: var(--red); } .cp-cnt .g { background: var(--green-soft); color: var(--green-2); } .cp-cnt .n { background: #F3F5F4; color: var(--ink-2); } .cp-cnt .ok { background: var(--green-soft); color: var(--green-2); }
.cp-add { border: 1.5px dashed #E5B9BE; border-radius: 16px; padding: 12px; background: #FFFAFA; margin-top: 10px; }
.cp-add h4 { font-size: 14px; margin: 0 0 10px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.cp-r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cp-f { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cp-f small { flex: 1; min-width: 160px; font-size: 12px; }

/* sidebar: the menu scrolls when it is taller than the screen, so Sign out always shows */
.side > * { flex-shrink: 0; }
.side nav { flex: 0 1 auto !important; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; margin-inline-end: -6px; padding-inline-end: 6px; overscroll-behavior: contain; }
.side nav::-webkit-scrollbar { width: 5px; } .side nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 9px; }
.side .grow { flex: 1 1 0 !important; min-height: 8px; }

/* Sign out in the top bar */
.top-out { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid #F5C6C3; background: #fff; color: var(--red); font: 700 13.5px var(--font); cursor: pointer; flex: 0 0 auto; white-space: nowrap; }
.top-out:hover { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 760px) { .top-out { height: 36px; padding: 0 10px; font-size: 12.5px; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #FFD5D2; } .top-out:hover { background: rgba(217,58,43,.85); color: #fff; } }

/* ---------- Users ---------- */
.um-head { margin-bottom: 12px; } .um-head b { font-size: 17px; } .um-head p { margin: 2px 0 0; font-size: 13.5px; }
.um-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.um-k > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; } .um-k small { color: var(--ink-3); font-size: 12px; font-weight: 600; display: block; } .um-k b { font-size: 24px; }
.um-list { display: flex; flex-direction: column; gap: 8px; }
.um-row { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr) 110px auto; gap: 14px; align-items: center; }
.um-row.off { opacity: .6; }
.um-row .who b { font-size: 14.5px; } .um-row .who small { color: var(--ink-3); font-size: 12px; }
.um-av { width: 42px; height: 42px; border-radius: 13px; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.um-me { font-size: 10.5px; background: var(--green-soft); color: var(--green-2); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.um-role { border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.um-admin { background: var(--side2, #0B3328); color: #E6C67F; } .um-accountant { background: #FFF3E0; color: #B86A00; } .um-registrar { background: #E6F2EC; color: #0F6B50; } .um-teacher { background: #EAF0FB; color: #2F5BB7; } .um-custom { background: #F3EAFB; color: #6B3FA0; }
.um-menus { display: flex; flex-wrap: wrap; gap: 5px; } .um-menus span { font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 3px 8px; background: #F1F4F3; color: var(--ink-2); }
.um-menus .e { background: var(--green-soft); color: var(--green-2); } .um-menus .v { background: #EAF0FB; color: #2F5BB7; }
.um-st { display: flex; align-items: center; gap: 7px; } .um-st small { font-size: 11.5px; color: var(--ink-3); }
.um-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 10px; } .um-legend .um-menus { margin-inline-start: 8px; }
.um-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.um-presets button { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 12px; font: 700 13px var(--font); color: var(--ink-2); cursor: pointer; }
.um-presets button.on { background: var(--side2, #0B3328); border-color: var(--side2, #0B3328); color: #E6C67F; }
.um-perm { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.um-perm .pr { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.um-perm .pr:first-child { border-top: 0; } .um-perm .pr.h { background: #F7F9F8; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.um-perm .pr.dim { color: var(--ink-3); background: #FAFBFA; }
.um-perm .m { display: flex; gap: 9px; align-items: center; font-weight: 600; } .um-perm .m i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; background: #F1F4F3; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.um-sel { height: 36px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; font: 700 12.5px var(--font); background: #fff; color: var(--ink-3); }
.um-sel.edit { border-color: #BFE0CF; background: var(--green-soft); color: var(--green-2); } .um-sel.view { border-color: #C9D8F2; background: #EAF0FB; color: #2F5BB7; }
.um-lock { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.um-adminbox { background: var(--green-soft); color: var(--green-2); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 13.5px; }
@media (max-width: 760px) {
  .um-k { grid-template-columns: 1fr 1fr; }
  .um-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .um-row .um-menus { grid-column: 1 / -1; } .um-row .um-role { grid-column: 2; grid-row: 1; }
  .um-perm .pr { grid-template-columns: minmax(0, 1fr) 140px; }
}

/* ---------- Attendance ---------- */
.at-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.at-date { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; color: var(--ink-3); }
.at-date input { border: 0; outline: 0; font: 700 14px var(--font); color: var(--ink); background: transparent; height: 38px; }
.at-tabs { margin-inline-start: auto; }
.at-groups { flex-wrap: wrap; margin-bottom: 12px; }
.at-k { display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.at-k > div { border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.at-k small { display: block; font-size: 12px; font-weight: 700; } .at-k b { display: block; font-size: 24px; margin-top: 2px; }
.at-ring { display: flex; align-items: center; gap: 10px; } .at-ring small { color: var(--ink-3); }
.at-c.P { background: var(--green-soft); border-color: #CFE6DA; color: var(--green-2); } .at-c.A { background: var(--red-bg); border-color: #F5C6C3; color: var(--red); }
.at-c.L { background: #FFF3E0; border-color: #F4D7A8; color: #B86A00; } .at-c.E { background: #EAF0FB; border-color: #C9D8F2; color: #2F5BB7; }
.at-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .at-tools .muted { font-size: 12.5px; }
.at-ro { background: #F3F5F4; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.at-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.at-row { display: grid; grid-template-columns: 30px minmax(0, 2fr) minmax(200px, 2.2fr) 120px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); width: 100%; background: #fff; border-left: 0; border-right: 0; border-bottom: 0; text-align: start; font: inherit; color: inherit; }
.at-row:first-child { border-top: 0; }
.at-row .n { color: var(--ink-3); font-weight: 700; font-size: 12px; }
.at-who { background: none; border: 0; padding: 0; text-align: start; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.at-who b, .at-hrow .who b { display: block; font-size: 14px; } .at-who small, .at-hrow .who small { color: var(--ink-3); font-size: 12px; }
.at-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.at-btns button { height: 36px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 800 13px var(--font); color: var(--ink-3); cursor: pointer; transition: background .12s, color .12s; }
.at-btns button:disabled { cursor: default; }
.at-btns .P.on { background: #2E9E6B; border-color: #2E9E6B; color: #fff; } .at-btns .A.on { background: var(--red); border-color: var(--red); color: #fff; }
.at-btns .L.on { background: #E08A00; border-color: #E08A00; color: #fff; } .at-btns .E.on { background: #2F5BB7; border-color: #2F5BB7; color: #fff; }
.at-rate { text-align: end; font-size: 12px; color: var(--ink-3); } .at-rate b { display: block; font-size: 14px; color: var(--ink); } .at-rate small { display: none; }
.at-rate i { display: block; height: 6px; border-radius: 9px; background: #EEF2F0; margin-top: 4px; overflow: hidden; } .at-rate i s { display: block; height: 100%; background: #2E9E6B; }
.at-rate.low b { color: var(--red); } .at-rate.low i s { background: var(--red); }
.at-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--side2, #0B3328); color: #fff; border-radius: 16px; padding: 10px 12px 10px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 5; }
.at-bar span { flex: 1; font-size: 13px; color: #D5E3DD; } .at-bar.done { background: #2E7D57; }
.at-hk { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.at-hrow { cursor: pointer; grid-template-columns: 30px minmax(0, 2fr) minmax(0, 2fr) 120px; } .at-hrow:hover { background: #FAFBFA; }
.at-cnt { display: flex; gap: 6px; flex-wrap: wrap; } .at-cnt span { border-radius: 9px; padding: 3px 8px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; }
.at-cnt .P { background: var(--green-soft); color: var(--green-2); } .at-cnt .A { background: var(--red-bg); color: var(--red); } .at-cnt .L { background: #FFF3E0; color: #B86A00; } .at-cnt .E { background: #EAF0FB; color: #2F5BB7; }
.ac-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .ac-head b { flex: 1; text-align: center; font-size: 15px; }
.ac-rate { font-weight: 800; color: var(--green-2); } .ac-rate.low { color: var(--red); }
.ac-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ac-grid .w { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.ac-grid .dd { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.ac-grid .P { background: #2E9E6B; } .ac-grid .A { background: var(--red); } .ac-grid .L { background: #E08A00; } .ac-grid .E { background: #2F5BB7; } .ac-grid .none { background: #EEF2F0; color: var(--ink-3); }
.ac-leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 10px; } .ac-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; }
.ac-leg i.P { background: #2E9E6B; } .ac-leg i.A { background: var(--red); } .ac-leg i.L { background: #E08A00; } .ac-leg i.E { background: #2F5BB7; }
.sc-att { margin: 8px 0 4px; }
.at-line { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--green-soft); color: var(--green-2); border: 1px solid #CFE6DA; border-radius: 14px; padding: 10px 12px; text-align: start; font: inherit; cursor: pointer; }
.at-line span:not(.go) { flex: 1; } .at-line b { display: block; font-size: 13.5px; } .at-line small { font-size: 12px; opacity: .85; } .at-line .go { font-size: 18px; }
.at-line.low { background: var(--red-bg); color: var(--red); border-color: #F5C6C3; }
.at-alert { background: var(--red-bg); border: 1px solid #F5C6C3; border-radius: 18px; padding: 14px 16px; margin: 0 0 16px; }
.at-alert .h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--red); } .at-alert .h small { color: var(--ink-3); font-size: 12px; }
.at-alert .l { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.at-alert .aa { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #F5C6C3; border-radius: 12px; padding: 6px 10px; text-align: start; font: inherit; cursor: pointer; }
.at-alert .aa b { display: block; font-size: 13px; } .at-alert .aa small { font-size: 11.5px; color: var(--red); }
@media (max-width: 760px) {
  .at-tabs { margin-inline-start: 0; }
  .at-k { grid-template-columns: repeat(4, 1fr); gap: 6px; } .at-k .at-ring { grid-column: 1 / -1; } .at-k > div { padding: 8px 10px; } .at-k b { font-size: 19px; }
  .at-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who rate' 'btn btn'; row-gap: 8px; padding: 10px 12px; }
  .at-row .n { display: none; } .at-row .at-who, .at-hrow .who { grid-area: who; } .at-row .at-btns, .at-hrow .at-cnt { grid-area: btn; } .at-row .at-rate { grid-area: rate; min-width: 64px; }
  .at-btns button { height: 40px; }
  .at-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Exams: old years ---------- */
.ox-years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ox-y { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; cursor: pointer; font: inherit; color: var(--ink); text-align: start; }
.ox-y b { font-size: 14px; } .ox-y small { font-size: 11.5px; color: var(--ink-3); }
.ox-y.now { border-style: dashed; } .ox-y.on { background: var(--side2, #0B3328); border-color: var(--side2, #0B3328); color: #fff; } .ox-y.on small { color: rgba(255,255,255,.7); }
.ox-note { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.ox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ox-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: start; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(16,24,20,.04); transition: box-shadow .15s, transform .15s; }
.ox-card:hover { box-shadow: 0 12px 28px rgba(16,24,20,.09); transform: translateY(-1px); }
.ox-card .h { display: flex; gap: 10px; align-items: center; } .ox-card .g { min-width: 0; } .ox-card .g b { display: block; font-size: 15px; font-family: 'Tajawal', var(--font); } .ox-card .g small { color: var(--ink-3); font-size: 12px; }
.ox-card .bd, .ox-sh-h .bd { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); color: #E6C67F; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.ox-card .tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 22px; }
.ox-tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; } .ox-tag.now { background: var(--green-soft); color: var(--green-2); } .ox-tag.gr { background: #FBF4E4; color: #8A6417; }
.ox-card .st { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); } .ox-card .st b { color: var(--ink); }
.ox-card .open { background: var(--green-soft); color: var(--green-2); border-radius: 11px; padding: 8px; text-align: center; font-weight: 700; font-size: 13px; }
.ox-sh-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ox-sh-h .g { flex: 1; min-width: 200px; } .ox-sh-h h3 { margin: 0; font-size: 19px; } .ox-sh-h small { color: var(--ink-3); font-size: 12.5px; }
.ox-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ox-term { margin-bottom: 12px; }
.ox-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ox-k > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; } .ox-k small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; } .ox-k b { font-size: 21px; }
.ox-tbl th.sbj { font-family: 'Tajawal', var(--font); white-space: nowrap; } .ox-tbl td.c, .ox-tbl th { text-align: center; }
.ox-rk { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; border-radius: 8px; background: #F1F4F3; font-weight: 800; font-size: 12px; }
.ox-rk.r1 { background: #FBF0D2; color: #8A6417; } .ox-rk.r2 { background: #EEF0F2; color: #4b5563; } .ox-rk.r3 { background: #F7E6DA; color: #8a4b1f; }
.ox-foot { font-size: 12px; margin-top: 8px; }
.ox-print h2 { margin: 0 0 4px; } .ox-print p { margin: 0 0 10px; color: #555; } .ox-print table { width: 100%; border-collapse: collapse; font-size: 10px; } .ox-print th, .ox-print td { border: 1px solid #ccc; padding: 3px; text-align: center; } .ox-print .av { display: none; }
@media (max-width: 760px) { .ox-k { grid-template-columns: 1fr 1fr; } .ox-years { flex-wrap: nowrap; overflow-x: auto; touch-action: pan-x pan-y; scrollbar-width: none; } .ox-y { flex: 0 0 auto; } }
.ox-tbl td:nth-child(2) { min-width: 210px; } .ox-tbl td:nth-child(2) b { white-space: nowrap; } .ox-tbl .pill { white-space: nowrap; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: #FAFBFA; flex: 0 0 auto; }
.cp-foot.saved { background: var(--green-soft); } .cp-foot span { font-size: 13px; font-weight: 700; color: var(--green-2); }
.old-no { opacity: .8; } .old-no b { font-weight: 700; }
.cv-one { grid-template-columns: 1fr !important; }

/* ---------- attendance report ---------- */
.at-rep { margin-inline-start: auto; } .at-rep + .at-tabs { margin-inline-start: 0; }
.ar-modal .modal { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ar-h { display: flex; gap: 12px; align-items: center; padding: 18px 22px; background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); color: #fff; flex: 0 0 auto; }
.ar-h h2 { margin: 0; font-size: 20px; color: #fff; } .ar-h p { margin: 2px 0 0; opacity: .75; font-size: 13px; }
.ar-h .icon-btn { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; }
.ar-ic { width: 44px; height: 44px; border-radius: 13px; background: #E6C67F; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.ar-f { padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ar-f .chips { flex-wrap: wrap; }
.ar-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ar-d { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: #F6F8F7; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; height: 42px; }
.ar-d input { border: 0; background: transparent; font: 700 13.5px var(--font); color: var(--ink); outline: 0; }
.ar-q { flex: 1 1 220px; }
.ar-b { background: var(--bg, #F3F6F4); padding: 16px 22px 22px; overflow-y: auto; }
.ar-b > * { flex-shrink: 0; }
.ar-k { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.ar-k > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; } .ar-k small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); } .ar-k b { font-size: 22px; }
.ar-k .ring { background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); border: 0; } .ar-k .ring b { color: #E6C67F; font-size: 26px; display: block; } .ar-k .ring b.c-red { color: #FFB4AD; } .ar-k .ring small { color: rgba(255,255,255,.75); }
.ar-k .P { background: var(--green-soft); border-color: #CFE6DA; } .ar-k .P b { color: var(--green-2); } .ar-k .A { background: var(--red-bg); border-color: #F5C6C3; } .ar-k .A b { color: var(--red); }
.ar-k .L { background: #FFF3E0; border-color: #F4D7A8; } .ar-k .L b { color: #B86A00; } .ar-k .E { background: #EAF0FB; border-color: #C9D8F2; } .ar-k .E b { color: #2F5BB7; }
.ar-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ar-tw { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ar-tbl td.c, .ar-tbl th { text-align: center; } .ar-tbl th:nth-child(2), .ar-tbl td:nth-child(2) { text-align: start; }
.ar-rc { min-width: 120px; } .ar-rc b { display: block; font-size: 13.5px; }
.ar-bar { display: block; height: 6px; border-radius: 9px; background: #EEF2F0; overflow: hidden; margin-top: 4px; } .ar-bar i { display: block; height: 100%; background: #2E9E6B; } .ar-bar.low i { background: var(--red); }
.ar-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 14px 14px 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ar-chart .col { flex: 1 0 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.ar-chart .col i { width: 100%; max-width: 26px; background: linear-gradient(180deg, #2E9E6B, var(--green-2)); border-radius: 6px 6px 2px 2px; min-height: 2px; } .ar-chart .col i.low { background: var(--red); }
.ar-chart .col small { font-size: 10px; color: var(--ink-3); }
.ar-print { font-family: var(--font); color: #0F1F19; padding: 6mm; } .ap-h { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0B3328; padding-bottom: 8px; margin-bottom: 10px; }
.ap-h h1 { margin: 0; font-size: 18px; } .ap-h p { margin: 2px 0 0; font-size: 11px; color: #555; } .ap-r { text-align: center; background: #0B3328; color: #E6C67F; border-radius: 10px; padding: 6px 14px; } .ap-r b { font-size: 20px; display: block; } .ap-r small { font-size: 9px; color: #fff; }
.ap-k { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; margin-bottom: 10px; } .ar-print table { width: 100%; border-collapse: collapse; font-size: 10.5px; } .ar-print th, .ar-print td { border: 1px solid #DDE3E0; padding: 4px 6px; text-align: center; } .ar-print th { background: #F1F4F3; } .ar-print .av { display: none; } .ar-print .ar-bar { display: none; } .ap-f { font-size: 9px; color: #888; margin-top: 8px; }
@media (max-width: 760px) { .ar-k { grid-template-columns: repeat(3, 1fr); } .ar-k .ring { grid-column: 1 / -1; } .ar-h, .ar-f, .ar-b { padding-left: 12px; padding-right: 12px; } .at-rep { margin-inline-start: 0; } }

/* ---------- daily fee report ---------- */
.dr-arw { width: 38px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 800 18px var(--font); color: var(--ink-3); cursor: pointer; }
.dr-arw:disabled { opacity: .35; cursor: default; }
.dr-date input { min-width: 130px; }
.dr-hero { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.dr-hero .hc { border-radius: 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.dr-hero .hc small { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.dr-hero .hc b { display: block; font-size: 30px; margin: 2px 0; letter-spacing: -.5px; }
.dr-hero .hc em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.dr-hero .hc.today { background: linear-gradient(135deg, var(--side1, #0B5A44), var(--side2, #073B2D)); border: 0; }
.dr-hero .hc.today small { color: #BFD3CB; } .dr-hero .hc.today b { color: #E6C67F; } .dr-hero .hc.today em { color: #D5E3DD; }
.dr-hero .up { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: rgba(255,255,255,.14); color: #BFF0D7; margin-inline-start: 4px; }
.dr-hero .up.dn { color: #FFC9C4; }
.dr-hero .hc.month { background: #FBF4E4; border-color: #F1DFB3; } .dr-hero .hc.month b { color: #8A6417; }
.dr-hero .prog { height: 8px; border-radius: 9px; background: #F0E4C4; margin-top: 8px; overflow: hidden; } .dr-hero .prog i { display: block; height: 100%; background: linear-gradient(90deg, #C8A04F, #E6C67F); }
.dr-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-bottom: 14px; }
.dr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.dr-card h4 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .dr-card h4 small { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.dr-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; border-bottom: 1px solid var(--line); padding-bottom: 4px; overflow-x: auto; }
.dr-chart .col { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; border: 0; background: none; padding: 0; cursor: pointer; }
.dr-chart .col i { width: 100%; max-width: 22px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2E9E6B, var(--green-2)); }
.dr-chart .col i.t { background: linear-gradient(180deg, #E6C67F, #C8A04F); }
.dr-chart .col small { font-size: 9.5px; color: var(--ink-3); }
.dr-cls > div { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.dr-cls span { min-width: 110px; max-width: 55%; font-weight: 700; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dr-cls i { flex: 1; height: 9px; border-radius: 9px; background: #EEF2F0; overflow: hidden; }
.dr-cls i s { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), #2E9E6B); } .dr-cls b { width: 80px; text-align: end; }
.dr-meth { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; } .dr-meth span { border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: #F3F5F4; }
.dr-tbl th.e, .dr-tbl td.e { text-align: end; } .dr-tbl .amt { font-weight: 800; color: var(--green-2); }
.dr-tbl tr.rv { opacity: .55; } .dr-tbl tr.tot td { font-weight: 800; background: #F7F9F8; }
.dr-rc { font-size: 11.5px; background: #F3F5F4; border-radius: 7px; padding: 2px 7px; font-weight: 700; }
.dr-print .dp-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.dr-print .dp-k > div { border: 1px solid #DDE3E0; border-radius: 6px; padding: 5px 8px; } .dr-print .dp-k small { display: block; font-size: 9.5px; color: #555; } .dr-print .dp-k b { font-size: 14px; } .dr-print .dp-k em { display: block; font-style: normal; font-size: 9px; color: #777; }
.dr-print .dp-cls { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; margin-bottom: 8px; }
.dr-print .dr-rc { background: none; padding: 0; } .dr-print td:nth-child(2) { text-align: start; } .dr-print tr.tot td { font-weight: 800; }
@media (max-width: 760px) { .dr-hero { grid-template-columns: 1fr 1fr; } .dr-hero .hc b { font-size: 22px; } .dr-two { grid-template-columns: 1fr; } .dr-cls span { width: 96px; } }

/* ---------- unpaid fee slip (half A4) ---------- */
.fs-prev { display: flex; justify-content: center; background: #EEF2F0; border-radius: 14px; padding: 16px; }
.fs-prev .fslip { box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 6px; }
.fslip { width: 100%; max-width: 640px; background: #fff; color: #0F1F19; padding: 16px 18px; font-family: var(--font); position: relative; }
.fs-h { display: flex; gap: 10px; align-items: center; border-bottom: 3px solid #0B3328; padding-bottom: 8px; color: #0B3328; }
.fs-h svg { width: 42px; height: 42px; flex: 0 0 auto; } .fs-h .g { flex: 1; min-width: 0; } .fs-h b { display: block; font-size: 13.5px; } .fs-h .ar { font-family: Amiri, Tajawal, serif; } .fs-h small { color: #6B7C75; font-size: 11px; }
.fs-st { background: #FDECEC; color: #C2362F; border: 1px solid #F5C6C3; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.fs-t { text-align: center; margin: 10px 0 8px; } .fs-t b { font-size: 15px; letter-spacing: .05em; } .fs-t small { display: block; color: #6B7C75; font-size: 11px; }
.fs-i { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: #F7F9F8; border-radius: 10px; padding: 8px 12px; font-size: 11.5px; margin-bottom: 8px; }
.fs-i span { color: #6B7C75; } .fs-i b { display: block; font-size: 13px; color: #0F1F19; }
.fs-m { width: 100%; border-collapse: collapse; font-size: 12px; } .fs-m th { font-size: 10.5px; color: #6B7C75; text-align: start; padding: 5px 6px; border-bottom: 1px solid #E7ECEA; text-transform: uppercase; }
.fs-m td { padding: 5px 6px; border-bottom: 1px solid #EEF2F0; } .fs-m .e { text-align: end; } .fs-m .o { color: #C2362F; font-weight: 800; } .fs-m .p { color: #0F6B50; font-weight: 700; }
.fs-due { display: flex; justify-content: space-between; align-items: center; background: #0B3328; color: #fff; border-radius: 10px; padding: 9px 14px; margin-top: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fs-due span { font-size: 12px; color: #BFD3CB; } .fs-due b { font-size: 21px; color: #E6C67F; }
.fs-pay { font-size: 11px; color: #4A5A54; margin-top: 8px; line-height: 1.6; border-top: 1px dashed #DDE3E0; padding-top: 6px; }
.fs-sig { display: flex; justify-content: space-between; margin-top: 18px; font-size: 10.5px; color: #6B7C75; } .fs-sig span { border-top: 1px solid #bbb; padding-top: 4px; width: 40%; text-align: center; }
.fs-page { display: flex; flex-direction: column; gap: 0; page-break-after: always; break-after: page; }
.fs-page:last-child { page-break-after: auto; break-after: auto; }
.fs-page .fslip { max-width: none; min-height: 132mm; }
.fs-cut { border-top: 1.5px dashed #9AA8A2; margin: 4mm 0; }
.bw .fs-due { background: #fff; color: #000; border: 2px solid #000; } .bw .fs-due span, .bw .fs-due b { color: #000; } .bw .fs-st { background: #fff; color: #000; border-color: #000; }
.fc-slip { margin: 6px 0 2px; }
.dr-pc > div { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dr-pc .g { flex: 1; min-width: 0; } .dr-pc .g b { display: block; } .dr-pc .g small { display: block; color: var(--ink-3); font-size: 12px; }
.dr-pc .amt { color: var(--green-2); font-size: 16px; } .dr-pc .rv { opacity: .55; }
.dr-pc .tot { display: flex; justify-content: space-between; border: 0; font-weight: 800; padding-top: 12px; } .dr-pc .tot b { font-size: 18px; }
.cv-box > .h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- finance: expenses, payroll, accounts ---------- */
.fa-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .fa-top .muted { margin: 0; font-size: 13.5px; }
.fa-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.fa-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 700 12.5px var(--font); color: var(--ink-3); cursor: pointer; }
.fa-seg button.on { background: #E6F2EC; color: var(--green-2); }
.fa-seg-f { margin-bottom: 12px; display: flex; } .fa-seg-f button { flex: 1; }
.fa-chips { align-items: center; margin-bottom: 14px; } .fa-sep { width: 8px; }
.fa-mn { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.fa-mn b { font-size: 13px; padding: 0 8px; white-space: nowrap; } .fa-mn button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #F3F5F4; font: 800 15px var(--font); cursor: pointer; color: var(--ink-2); } .fa-mn button:disabled { opacity: .35; cursor: default; }
.fa-kp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fa-kp > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.fa-kp small { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); } .fa-kp b { display: block; font-size: 27px; margin: 2px 0; letter-spacing: -.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fa-kp em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.fa-kp .rd { background: linear-gradient(135deg, #C2362F, #9E2A24); border: 0; } .fa-kp .rd small, .fa-kp .rd em { color: #FBD5D2; } .fa-kp .rd b { color: #fff; }
.fa-kp .gn { background: linear-gradient(135deg, #0B5A44, #073B2D); border: 0; } .fa-kp .gn small, .fa-kp .gn em { color: #BFD3CB; } .fa-kp .gn b { color: #E6C67F; }
.fa-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; } .fa-two-r { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.fa-card { padding: 14px 16px; min-width: 0; } .fa-card h4 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .fa-card h4 small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.fa-cat > div { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 11px; }
.fa-cat .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: #F3F5F4; flex: 0 0 auto; }
.fa-cat .n { width: 110px; font-weight: 700; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fa-cat i { flex: 1; height: 8px; border-radius: 9px; background: #EEF2F0; overflow: hidden; }
.fa-cat i s { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #C2362F, #E2665F); } .fa-cat.in i s { background: linear-gradient(90deg, var(--green-2), #2E9E6B); } .fa-cat b { min-width: 64px; text-align: end; }
.fa-lock { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: #8A6417; background: #FBF4E4; border: 1px solid #F1DFB3; border-radius: 10px; padding: 8px 10px; }
.fa-lock.ok { background: #E6F2EC; border-color: #CFE6DA; color: var(--green-2); }
.fa-tbl td { vertical-align: middle; } .fa-tbl th.e, .fa-tbl td.e { text-align: end; } .fa-tbl tr.off { opacity: .5; }
#page .out, .fa-det .out { color: #C2362F; font-weight: 800; } #page .in, .fa-det .in { color: var(--green-2); font-weight: 800; }
.fa-ci { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; white-space: nowrap; } .fa-ci em { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #F3F5F4; font-size: 13px; }
.fa-acc { font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 2px 8px; background: #F3F5F4; white-space: nowrap; } .fa-acc.k-zaad { background: #E8F4EE; color: #0F6B50; } .fa-acc.k-edahab { background: #FFF1E0; color: #A0611A; } .fa-acc.k-bank { background: #EAF0FB; color: #2D5BA8; }
.fa-dep { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #E6F2EC; color: var(--green-2); white-space: nowrap; }
.fa-ph { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; display: block; border: 1px solid var(--line); }
.fa-pc > button, .fa-pc > div { display: flex; gap: 10px; align-items: center; width: 100%; text-align: start; border: 0; background: none; padding: 10px 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.fa-pc .ic { width: 34px; height: 34px; border-radius: 10px; background: #F3F5F4; display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.fa-pc .g { flex: 1; min-width: 0; } .fa-pc .g b { display: block; } .fa-pc .g small { display: block; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-pc .e { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .fa-pc .av, .fa-av { width: 32px; height: 32px; border-radius: 50%; background: var(--green-2); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.fa-av.big { width: 40px; height: 40px; font-size: 17px; }
.fa-det { display: flex; flex-direction: column; gap: 2px; } .fa-det > b { font-size: 30px; margin-bottom: 8px; } .fa-det > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .fa-det > div span { color: var(--ink-3); }
.fa-big { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; background: #F7F9F8; }
.fa-cg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; } .fa-cg2 { grid-template-columns: 1fr 1fr; }
.fa-cg button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 6px; text-align: center; font: 600 12px var(--font); color: var(--ink-2); cursor: pointer; } .fa-cg button i { display: block; font-style: normal; font-size: 18px; margin-bottom: 3px; }
.fa-cg button.on { border: 2px solid #C2362F; background: #FDECEC; color: #C2362F; } .fa-cg button.on.in { border-color: var(--green-2); background: #E6F2EC; color: var(--green-2); }
.fa-ag { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fa-ag button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font: 700 12.5px var(--font); text-align: start; cursor: pointer; color: var(--ink); } .fa-ag button small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.fa-ag button.on { border: 2px solid var(--green-2); background: #E6F2EC; }
.fa-big-in { font-size: 20px !important; font-weight: 800; }
.fa-up { display: block; border: 1.5px dashed #C9D3CF; border-radius: 12px; padding: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); cursor: pointer; } .fa-up.on { border-color: var(--green-2); color: var(--green-2); background: #F3FAF6; }
.fa-tot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; margin-bottom: 14px; font-size: 13px; } .fa-tot > span:first-child { color: var(--ink-3); font-weight: 700; } .fa-tot > b { font-size: 22px; }
.fa-ac { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fa-ac > button { border: 0; border-radius: 20px; padding: 16px; color: #fff; position: relative; overflow: hidden; text-align: start; font: inherit; cursor: pointer; background: linear-gradient(135deg, #5B6B65, #3E4B46); }
.fa-ac > button.k-cash { background: linear-gradient(135deg, #0B5A44, #073B2D); } .fa-ac > button.k-zaad { background: linear-gradient(135deg, #1E9E62, #0F6B50); } .fa-ac > button.k-edahab { background: linear-gradient(135deg, #E8963A, #B8691E); } .fa-ac > button.k-bank { background: linear-gradient(135deg, #3C6FC4, #244E96); }
.fa-ac small { display: block; font-size: 12.5px; font-weight: 700; opacity: .88; padding-inline-end: 30px; } .fa-ac b { display: block; font-size: 27px; margin: 6px 0 10px; } .fa-ac .io { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; opacity: .9; }
.fa-ac .ico { position: absolute; inset-inline-end: 14px; top: 12px; font-size: 24px; opacity: .55; }
.fa-ac .fa-add { background: #fff; border: 1.5px dashed #C9D3CF; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; min-height: 120px; }
.fa-mv > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.fa-mv .ar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; } .fa-mv .ar.i { background: #E6F2EC; color: var(--green-2); } .fa-mv .ar.o { background: #FDECEC; color: #C2362F; } .fa-mv .ar.t { background: #EAF0FB; color: #2D5BA8; }
.fa-mv .g { flex: 1; min-width: 0; font-size: 13px; } .fa-mv .g b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fa-mv .g small { display: block; color: var(--ink-3); font-size: 11.5px; } .fa-mv .amt { min-width: 74px; text-align: end; }
.fa-tf { display: flex; align-items: flex-end; gap: 8px; } .fa-tf .field { flex: 1; } .fa-arr { font-size: 20px; padding-bottom: 22px; color: var(--ink-3); }
.fa-adm { display: inline-block; font-size: 11.5px; font-weight: 800; color: #8A6417; background: #FBF4E4; border-radius: 999px; padding: 3px 9px; margin-inline-end: 6px; }
.fa-st { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; display: inline-block; } .fa-st.p { background: #E6F2EC; color: var(--green-2); } .fa-st.u { background: #FDECEC; color: #C2362F; }
.fa-tabs { display: flex; gap: 6px; margin-bottom: 14px; } .fa-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 700 12.5px var(--font); color: var(--ink-2); cursor: pointer; } .fa-tabs button.on { background: #0B3328; color: #fff; border-color: #0B3328; }
.fa-netrow { display: flex; justify-content: space-between; align-items: center; background: #0B3328; color: #fff; border-radius: 12px; padding: 10px 14px; margin-top: 10px; } .fa-netrow b { color: #E6C67F; font-size: 20px; }
.fa-paylist { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin-bottom: 12px; max-height: 220px; overflow: auto; } .fa-paylist > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #EEF2F0; font-size: 13px; } .fa-paylist .tot { border: 0; font-weight: 800; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nw { white-space: nowrap; }
/* payslip */
.ps-page { display: flex; justify-content: center; }
.pslip { width: 100%; max-width: 520px; background: #fff; color: #0F1F19; padding: 18px 20px; font-family: var(--font); border-radius: 6px; }
.fs-prev .pslip { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.pslip .h { display: flex; gap: 10px; align-items: center; border-bottom: 3px solid #0B3328; padding-bottom: 8px; margin-bottom: 10px; } .pslip .h svg { width: 40px; height: 40px; flex: 0 0 auto; } .pslip .h .g { flex: 1; } .pslip .h b { font-size: 14px; color: #0B3328; display: block; } .pslip .h small { color: #6B7C75; font-size: 11px; }
.pslip .l { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid #EEF2F0; } .pslip .l > span:first-child { color: #6B7C75; }
.pslip .tot { display: flex; justify-content: space-between; align-items: center; background: #0B3328; color: #fff; border-radius: 10px; padding: 10px 14px; margin-top: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pslip .tot b { color: #E6C67F; font-size: 21px; }
.pslip .sg { display: flex; justify-content: space-between; margin-top: 26px; font-size: 11px; color: #6B7C75; } .pslip .sg span { border-top: 1px solid #bbb; width: 40%; text-align: center; padding-top: 4px; }
.pslip .in { color: #0F6B50; } .pslip .out { color: #C2362F; }
@media (max-width: 760px) { .fa-kp { grid-template-columns: 1fr 1fr; } .fa-kp b { font-size: 21px; } .fa-two, .fa-two-r { grid-template-columns: 1fr; } .fa-cg { grid-template-columns: repeat(4, 1fr); } .fa-top .fa-seg { order: 5; width: 100%; } .fa-cat .n { width: 90px; } .fa-ac b { font-size: 22px; } }
/* dashboard top bar: smaller search + green "Register student" */
.topbar.tb-dash { gap: 10px; }
.topbar.tb-dash .gsearch { flex: 0 1 280px; max-width: 280px; min-width: 150px; margin-inline-end: auto; }
@media (min-width: 1100px) { .topbar.tb-dash { flex-wrap: nowrap; } .topbar.tb-dash .btn-main, .topbar.tb-dash .btn-reg, .topbar.tb-dash .top-out { flex: 0 0 auto; } }
.btn-reg { border: none; background: linear-gradient(135deg, #0F6B50, #0B5A44); color: #fff; font-weight: 700; white-space: nowrap; }
.btn-reg:hover { filter: brightness(1.08); }
@media (max-width: 700px) { .btn-reg { display: none; } }
/* ---------- one search style for every page ---------- */
.psearch { border: 2px solid #DCE7E2; background: #F9FCFA; border-radius: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.psearch svg { color: var(--green-2); flex: 0 0 auto; }
.psearch:focus-within { background: #fff; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(15, 107, 80, .12); }
.psearch input::placeholder { color: #8A9A94; }
.ps-n { font-size: 12px; font-weight: 700; color: var(--green-2); white-space: nowrap; }
.ps-n:empty { display: none; }
.fa-sbar { display: flex; margin-bottom: 10px; } .fa-sbar .psearch { flex: 1 1 auto; }
mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
/* class pop-up: students tab */
.cv-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .cv-tools .psearch { flex: 1 1 320px; }
.cv-roster td { vertical-align: middle; } .cv-roster th.e, .cv-roster td.e { text-align: end; }
.cv-ic { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); margin-inline-start: 4px; }
.cv-ic:hover { border-color: var(--green-2); color: var(--green-2); } .cv-ic.d { border-color: #F5C6C3; color: #C2362F; } .cv-ic.d:hover { background: #FDECEC; }
.cv-abs { font-size: 11px; font-weight: 800; color: #C2362F; background: #FDECEC; border-radius: 999px; padding: 1px 7px; }
.cv-case { color: #C2362F; font-weight: 800; }
.cv-hint { font-size: 12px; margin-top: 10px; }
/* top search: filters, groups */
.pal-f { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line2, #EEF2F0); }
.pal-ic { width: 36px; height: 36px; border-radius: 10px; background: #F2F5F4; display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.pal-adm { font-size: 10px; font-weight: 800; background: #E6C67F; color: #0B3328; border-radius: 5px; padding: 1px 5px; margin-inline-start: 4px; text-transform: none; letter-spacing: 0; }
.palette .hit small { display: block; }
[hidden] { display: none !important; }
.topbar.tb-dash .gsearch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .topbar.tb-dash .gsearch svg { flex: 0 0 auto; }
/* ---------- WhatsApp buttons and window ---------- */
.btn-wa { border: none; background: #25D366; color: #fff; font-weight: 700; } .btn-wa:hover { background: #1EBE5A; }
.btn-wa-i { border: 1px solid #BDEDCD; background: #E8FAEF; padding: 0 9px; }
.cv-ic.wa { border-color: #BDEDCD; background: #E8FAEF; font-size: 14px; } .cv-ic.wa:hover { background: #D3F5DF; }
.ex-wa { margin-inline-start: 8px; width: 28px; height: 28px; }
.at-wa { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #BDEDCD; background: #E8FAEF; cursor: pointer; font-size: 15px; flex: 0 0 auto; }
.wa-ic { width: 40px; height: 40px; border-radius: 12px; background: #25D366; display: grid; place-items: center; font-size: 20px; }
.wa-to { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.wa-to button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; text-align: start; cursor: pointer; font: inherit; color: var(--ink); }
.wa-to button b { display: block; font-size: 13px; } .wa-to button small { font-size: 11.5px; color: var(--ink-3); }
.wa-to button.on { border: 2px solid var(--green-2); background: #E6F2EC; }
.wa-num { width: 100%; border: 2px solid #DCE7E2; border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-bottom: 10px; }
.wa-kinds { margin-bottom: 10px; }
.wa-bub { background: #DCF8C6; border-radius: 12px 3px 12px 12px; padding: 12px 14px; font-size: 14px; line-height: 1.55; color: #111; max-height: 340px; overflow: auto; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-ed { width: 100%; min-height: 240px; border: 2px solid #DCE7E2; border-radius: 12px; padding: 10px 12px; font: 14px/1.5 var(--font); }
.wa-row { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.wa-go { width: 100%; justify-content: center; border: none; background: #25D366; color: #fff; font-size: 16px; padding: 14px; border-radius: 14px; margin-top: 8px; font-weight: 800; } .wa-go:hover { background: #1EBE5A; }
.wa-pdf { width: 100%; justify-content: center; margin-top: 8px; }
.wa-hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }

/* ---- receive payment: debt lines (oldest first) + pay ahead months ---- */
.np-l { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin: 2px 0 6px; }
.np-owe { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.np-o { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.np-o .ck { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CBD5D0; display: grid; place-items: center; font-size: 13px; color: transparent; }
.np-o .g { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.np-o .g small { flex-basis: 100%; color: var(--ink-4); font-size: 12px; }
.np-o .a { font-size: 15px; }
.np-o.on { border-color: var(--ok); background: var(--ok-bg); } .np-o.on .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.np-o.part .ck { border-color: var(--ok); background: linear-gradient(90deg, var(--ok) 50%, #fff 50%); }
.np-o.prev { border-color: #E9D7A3; background: #FFFBEF; } .np-o.prev.on { border-color: #B98B1D; background: #FBF2D6; } .np-o.prev.on .ck { background: #B98B1D; border-color: #B98B1D; }
.np-tg { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; } .np-tg.r { background: var(--red-bg); color: var(--red); } .np-tg.y { background: #F6E7BC; color: #8A6510; }
.np-ahead { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.np-ahead button { font: inherit; font-weight: 700; font-size: 13px; background: #fff; border: 1.5px dashed #C9BCEB; color: #5B3FA8; border-radius: 10px; padding: 6px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 58px; }
.np-ahead button small { font-weight: 500; font-size: 11px; color: var(--ink-4); }
.np-ahead button.on { border-style: solid; border-color: #6D4BC3; background: #F1ECFB; } .np-ahead button.on small { color: #6D4BC3; }
.np-sum { border-top: 1px dashed var(--line); padding-top: 8px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.np-sum > div { display: flex; justify-content: space-between; gap: 10px; } .np-sum span { color: var(--ink-3); }
.c-pu { color: #6D4BC3; }
.np-prevtile { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FFFBEF; border: 1px solid #E9D7A3; border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; }
.np-prevtile span { font-weight: 700; color: #8A6510; } .np-prevtile small { display: block; font-weight: 500; color: var(--ink-4); font-size: 12px; } .np-prevtile b { color: var(--red); }
.ms-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--ink-4); margin: -2px 0 6px; }
.ms-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.ms-key .k-ok { background: var(--ok); } .ms-key .k-ah { background: #6D4BC3; } .ms-key .k-no { background: #D5DBD8; }
.ms-key b { color: var(--ok); margin-inline-start: auto; } .ms-key em { font-style: normal; color: var(--ink-3); flex-basis: 100%; }
.rc5-lines { margin: 6px 0 4px; border: 1px solid #E6EAE8; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.rc5-lines .h { font-size: 11px; color: #7A857F; margin-bottom: 3px; }
.rc5-lines > div:not(.h) { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.rc5-lines .ah { color: #5B3FA8; } .rc5-lines .ah i { font-style: normal; font-size: 10.5px; background: #F1ECFB; border-radius: 99px; padding: 1px 6px; }
.rc5-lines .py span { color: #8A6510; }
.rc5-money .r4 { text-align: center; font-size: 12px; font-weight: 700; color: var(--ok); padding-top: 4px; }
.np-top { padding: 12px 16px 2px; }

/* ---- real signature + stamp on printouts: the stamp is printed on top of the signature ---- */
.seal { position: relative; width: 210px; height: 170px; flex: none; color: #4A5F57; }
.seal .s1 { position: absolute; left: 6px; bottom: 40px; width: 168px; max-height: 80px; object-fit: contain; object-position: left bottom; z-index: 1; }
.seal .s2 { position: absolute; left: 76px; bottom: 34px; width: 122px; height: 122px; object-fit: contain; opacity: .95; transform: rotate(-6deg); z-index: 2; }
.seal.nosign .s2 { left: 44px; }
.seal.side { width: 300px; } .seal.side .s2 { left: 182px; bottom: 30px; width: 108px; height: 108px; }
.seal i { position: absolute; left: 0; right: 0; bottom: 30px; border-top: 1.2px solid #1B2B25; }
.seal.side i { right: 120px; }
.seal small { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10px; line-height: 1.3; color: #55665D; }
.seal.side small { right: 120px; }
.seal small b { display: block; color: #0F1F19; font-size: 11px; }
[dir=rtl] .seal .s1 { left: auto; right: 6px; object-position: right bottom; } [dir=rtl] .seal .s2 { left: auto; right: 76px; transform: rotate(6deg); }
[dir=rtl] .seal.nosign .s2 { right: 44px; } [dir=rtl] .seal.side .s2 { right: 182px; } [dir=rtl] .seal.side i, [dir=rtl] .seal.side small { right: 0; left: 120px; }
.seal-foot { display: flex !important; justify-content: space-between; align-items: flex-end; gap: 10px; }
.seal-foot .dt { font-size: 10px; color: #6B7C75; padding-bottom: 6px; }
.fs-sig.seal-foot { border: 0; } .fs-sig.seal-foot span { border: 0; width: auto; }
.pslip .sg.seal-foot > span { align-self: flex-end; }
.a4-sign .seal { margin-inline-start: auto; }
.tp-sig .tp-seal { border: 0 !important; padding: 0 !important; justify-self: end; }
.tp-sig:has(.tp-seal) { grid-template-columns: 1fr 1fr 150px; padding-top: 2px; }
.tp-seal .seal { width: 150px; height: 82px; }
.tp-seal .seal .s1 { width: 112px; max-height: 44px; bottom: 20px; left: 2px; }
.tp-seal .seal .s2 { width: 68px; height: 68px; left: 64px; bottom: 14px; }
[dir=rtl] .tp-seal .seal .s1 { left: auto; right: 2px; } [dir=rtl] .tp-seal .seal .s2 { left: auto; right: 64px; }
.tp-seal .seal i { bottom: 16px; } .tp-seal .seal small { font-size: 8px; line-height: 1.2; } .tp-seal .seal small b { display: inline; font-size: 9px; margin-inline-end: 4px; }
/* settings */
.seal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; } @media (max-width: 720px) { .seal-grid { grid-template-columns: 1fr; } }
.seal-up { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.seal-up .pv { width: 110px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(#F2F4F3 0 25%, #fff 0 50%) 0 0/14px 14px; display: grid; place-items: center; flex: none; }
.seal-up .pv img { max-width: 100px; max-height: 56px; } .seal-up .pv em, .seal-pv em { font-style: normal; font-size: 11.5px; color: var(--ink-4); }
.seal-up .g { flex: 1; min-width: 0; } .seal-up .g b { display: block; font-size: 14px; } .seal-up .g small { color: var(--ink-4); font-size: 12px; }
.seal-sw { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.seal-sw input { position: absolute; opacity: 0; pointer-events: none; }
.seal-sw i { width: 38px; height: 22px; border-radius: 99px; background: #CBD5D0; position: relative; flex: none; transition: background .15s; }
.seal-sw i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.seal-sw input:checked + i { background: var(--ok); } .seal-sw input:checked + i::after { inset-inline-start: 19px; }
.seal-sw input:focus-visible + i { outline: 2px solid var(--ok); outline-offset: 2px; }
.seal-pv { margin-top: 8px; border: 1px dashed var(--line); border-radius: 14px; padding: 10px; display: grid; place-items: center; min-height: 110px; background: #fff; }
.a4-sign, .seal-foot, .seal { break-inside: avoid; page-break-inside: avoid; }

.um-seen { display: flex !important; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.um-seen i { width: 7px; height: 7px; border-radius: 50%; background: #C3CCC8; flex: none; } .um-seen.on { color: var(--ok); font-weight: 700; } .um-seen.on i { background: #22B573; box-shadow: 0 0 0 3px #DDF5E9; }

/* ---- fee corrections ---- */
.fe-st { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 8px; } .fe-st h4 { font-size: 14px; margin: 0; }
.fe-li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 8px 10px 8px 12px; margin-bottom: 6px; background: #fff; }
.fe-li .g { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; } .fe-li .g b { font-size: 14px; } .fe-li .g small { flex-basis: 100%; font-size: 12px; color: var(--ink-4); }
.fe-li .a { font-size: 15px; white-space: nowrap; } .fe-li .a s { color: var(--ink-4); font-weight: 600; font-size: 12.5px; margin-inline-end: 6px; }
.fe-li .ic { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); font-size: 15px; flex: none; }
.fe-li .ic:hover { border-color: var(--ok); } .fe-li .ic.rd { color: var(--red); } .fe-li .ic.rd:hover { border-color: var(--red); }
.fe-li.prev { background: #FFFBEF; border-color: #E9D7A3; } .fe-li.edited { border-color: #C9BCEB; } .fe-li.off { opacity: .55; }
.fe-tg { flex: none; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; } .fe-tg.r { background: var(--red-bg); color: var(--red); } .fe-tg.ok { background: var(--ok-bg); color: var(--ok); } .fe-tg.y { background: #F6E7BC; color: #8A6510; } .fe-tg.p, .fe-tg.pu { background: #F1ECFB; color: #6D4BC3; } .fe-tg.gr { background: #EEF1F0; color: var(--ink-3); }
.fe-log { border-inline-start: 2px solid var(--line); margin-inline-start: 6px; padding-inline-start: 14px; display: flex; flex-direction: column; gap: 10px; }
.fe-log > div { position: relative; font-size: 13px; line-height: 1.45; } .fe-log > div::before { content: ''; position: absolute; inset-inline-start: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.fe-log > div.rv::before { background: var(--red); } .fe-log > div.ad::before { background: #E6C67F; } .fe-log small { display: block; color: var(--ink-4); font-size: 11.5px; }
.fe-lock { margin-top: 12px; background: #FFFBEF; border: 1px solid #E9D7A3; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: #6b5414; }
.fe-big { display: flex; align-items: center; gap: 8px; border: 1.5px solid #DCE7E2; border-radius: 12px; padding: 6px 12px; margin-top: 5px; } .fe-big:focus-within { border-color: var(--ok); box-shadow: 0 0 0 3px #E2F1EA; }
.fe-big span { font-weight: 800; color: var(--ink-3); } .fe-big input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 22px; font-weight: 800; background: transparent; padding: 4px 0; } .fe-big small { color: var(--ink-4); font-size: 12px; white-space: nowrap; }
.fe-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); background: #F6F8F7; border-radius: 10px; padding: 8px 10px; }
.rc5-corr { display: inline-block; margin-inline-start: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #F1ECFB; color: #6D4BC3; border-radius: 99px; padding: 3px 8px; vertical-align: 1px; }
.ox-fix { cursor: pointer; } .ox-fix:hover { background: #FFF6DC !important; outline: 1.5px dashed #E6C67F; outline-offset: -3px; }
.um-row .um-me { display: inline-block !important; width: auto; }

.fe-k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } @media (max-width: 640px) { .fe-k3 { grid-template-columns: 1fr; } }
.fe-kc { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.fe-kc small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); } .fe-kc b { font-size: 22px; } .fe-kc b s { font-size: 13px; color: var(--ink-4); font-weight: 600; margin-inline-start: 6px; }
.fe-kc em { font-style: normal; font-size: 11.5px; color: var(--ink-4); min-height: 15px; } .fe-kc .btn { align-self: flex-start; margin-top: 4px; }
.fe-kc.red { background: #FFF7F6; border-color: #F3C9C6; } .fe-kc.red b { color: var(--red); } .fe-kc.pu { background: #FBF9FF; border-color: #C9BCEB; } .fe-kc.pu b { color: #6D4BC3; }
.fe-chk { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.fe-mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .fe-mchips button { font: inherit; font-weight: 700; font-size: 13px; border: 1.5px dashed #C9BCEB; color: #5B3FA8; background: #fff; border-radius: 10px; padding: 6px 11px; cursor: pointer; }
.fe-mchips button.on { border-style: solid; border-color: #6D4BC3; background: #F1ECFB; }
.fe-big input, .fe-big input:focus { border: 0 !important; box-shadow: none !important; outline: 0 !important; background: transparent !important; padding-inline: 0 !important; }
.tp-sig .tp-nm { display: block; margin-top: 3px; font-family: 'Amiri', serif; font-size: 12.5px; font-weight: 700; color: #0F1F19; }

/* transcript: keep the signatures and names well inside the page border */
.tp-page .tp-in { padding-bottom: 9mm !important; }
.tp-sig .tp-nm { margin-top: 2px; line-height: 1.3; }

/* ---- subjects: clean table ---- */
.sb2-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .sb2-h .ic { width: 48px; height: 48px; border-radius: 15px; background: #FFF3D6; display: grid; place-items: center; font-size: 22px; flex: none; }
.sb2-h h3 { margin: 0; font-size: 22px; font-weight: 800; } .sb2-h small { color: var(--ink-3); font-size: 13px; } .sb2-h .g { min-width: 0; } .sb2-h .btn { margin-inline-start: auto; }
.sb2-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 5px; margin-bottom: 14px; overflow-x: auto; }
.sb2-tabs button { flex: 1; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-3); background: none; border: 0; border-radius: 12px; padding: 9px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.sb2-tabs button i { font-style: normal; font-size: 11.5px; background: #F2F4F3; border-radius: 99px; padding: 1px 7px; }
.sb2-tabs button.on { background: var(--side2, #0B3328); color: #fff; } .sb2-tabs button.on i { background: rgba(255,255,255,.18); color: #fff; }
.sb2-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.sb2-th, .sb2-tr { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) 110px minmax(0, 260px) 120px 96px; align-items: center; gap: 10px; padding: 0 16px; }
.sb2-th { height: 42px; background: #FAFBFA; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-4); }
.sb2-tr { min-height: 60px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid #F1F3F2; background: #fff; } .sb2-tr:last-child { border-bottom: 0; }
.sb2-tr .hdl { color: #C9D0CD; font-size: 16px; letter-spacing: -2px; text-align: center; cursor: grab; user-select: none; }
.sb2-tr .n { width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft, #E8F5EE); color: var(--green-2, #0F6B50); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.sb2-tr .nm { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; } .sb2-tr .mk { font-weight: 800; font-size: 15px; }
.sb2-tr .sb2-lv { display: flex; flex-wrap: wrap; gap: 4px; } .sb2-tr .sb2-lv b { font-size: 11.5px; font-weight: 700; background: var(--ok-bg); color: var(--ok); border-radius: 99px; padding: 3px 10px; white-space: nowrap; } .sb2-tr .sb2-lv b.p { background: #F2F4F3; color: var(--ink-3); }
.sb2-tr .st { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.sb2-tr.off { background: #FCFCFB; } .sb2-tr.off .nm, .sb2-tr.off .mk, .sb2-tr.off .sb2-lv { opacity: .55; }
.sb2-tr.drag { opacity: .5; background: #FFF9EA; }
.sb2-sec { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; font-weight: 800; color: var(--ink-3); background: #FAFBFA; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .sb2-sec span { font-weight: 500; color: var(--ink-4); }
.sb2-hint { margin-top: 10px; font-size: 12.5px; color: var(--ink-4); }
.sf-big { font-size: 18px !important; font-weight: 700; }
@media (max-width: 760px) {
  .sb2-th { display: none; }
  .sb2-tr { grid-template-columns: 24px 30px minmax(0, 1fr) auto; grid-template-areas: "h n nm mk" ". . lv lv" ". . st ed"; row-gap: 6px; }
  .sb2-tr .hdl { grid-area: h; } .sb2-tr .n { grid-area: n; } .sb2-tr .nm { grid-area: nm; } .sb2-tr .mk { grid-area: mk; } .sb2-tr .sb2-lv { grid-area: lv; } .sb2-tr .st { grid-area: st; } .sb2-tr .btn { grid-area: ed; justify-self: end; }
}

.sp-cls.click { cursor: pointer; transition: box-shadow .15s, transform .15s; } .sp-cls.click:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-2px); }
.sp-cls .sp-foot { display: flex; gap: 8px; } .sp-cls .sp-foot .btn { flex: 1; justify-content: center; }

/* ---- clickable summary cards + list window ---- */
.fa-kp > .click, .cs-sum > .click, #fe-stats .stat.click { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.fa-kp > .click:hover, .cs-sum > .click:hover, #fe-stats .stat.click:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.lw-bar { display: flex; gap: 10px; margin-bottom: 12px; } .lw-bar .psearch { flex: 1; }
.lw-list { display: flex; flex-direction: column; }
.lw-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.lw-row:hover { background: #F7F9F8; } .lw-row:last-child { border-bottom: 0; }
.lw-ic { width: 34px; height: 34px; border-radius: 10px; background: #F2F4F3; display: grid; place-items: center; font-size: 16px; flex: none; }
.lw-g { flex: 1; min-width: 0; } .lw-g b { display: block; font-size: 14px; } .lw-g small { color: var(--ink-4); font-size: 12px; }
.lw-a { font-size: 15px; white-space: nowrap; } .lw-a.out { color: var(--red); }
.lw-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink-2); } .lw-btn:hover { border-color: var(--ok); }

/* =====================================================================
   Typography & screen fit (global layer — sizes only, no redesign)
   Headings ~15–20% smaller, responsive with clamp(); body text unchanged.
   Printed documents (.tp-page, .rc5, .a4, .fslip, .pslip, .ar-print) are not touched.
   ===================================================================== */
.topbar h1 { font-size: clamp(18px, 0.9vw + 11px, 22px); line-height: 1.2; white-space: nowrap; flex: none; }
.topbar .psearch, .topbar .tb-search { min-width: 0; flex-shrink: 1; }
.ph h2 { font-size: clamp(17px, 0.8vw + 11px, 20px); }
.ph { margin-bottom: 12px; }
.hero h1 { font-size: clamp(20px, 1.4vw + 9px, 29px); line-height: 1.15; }
.hsec h2, .modal-head h2, .sp-h h3, .ox-sh-h h3, .rs-hero b { font-size: clamp(15px, 0.4vw + 12px, 17px); }
.fp-head h2, .dhead h2, .sc-pf h2 { font-size: clamp(16px, 0.5vw + 12.5px, 18px); }
.sb2-h h3 { font-size: clamp(17px, 0.6vw + 13px, 19px); }
.section-title { font-size: 14px; }
.stat .val { font-size: clamp(21px, 1.4vw + 11px, 28px); }
.sum3 b { font-size: clamp(17px, 0.8vw + 12px, 21px); }
.k4 b { font-size: clamp(16px, 0.6vw + 12px, 19px); }
.bc .num { font-size: clamp(30px, 2.6vw + 8px, 42px); }
.gal h2 { font-size: clamp(19px, 1.4vw + 10px, 25px); }
.lcard h3 { font-size: clamp(19px, 1vw + 12px, 22px); }
.dlog .info h2, .fp-done h3 { font-size: clamp(17px, 0.6vw + 13px, 19px); }
.fa-kp b { font-size: clamp(18px, 1vw + 11px, 23px); }
.cs-sum b, .um-k b { font-size: clamp(18px, 0.8vw + 12px, 21px); }
.sp-cls .big b { font-size: clamp(23px, 1.4vw + 12px, 29px); }
.fe-kc b, .kc b { font-size: clamp(18px, 0.8vw + 12px, 21px); }

/* headings: balanced, no awkward breaks; long words never push the layout */
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: anywhere; }
.modal-head h2, .fp-head h2, .dhead h2 { line-height: 1.25; }

/* fit every screen: flex/grid children may shrink, wide content scrolls inside its box */
.app, .main, #page, .card, .modal, .modal-body, .fp-cols > *, .sp-classes > *, .stats > * { min-width: 0; }
.main > * { min-width: 0; max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#page img, .modal img { max-width: 100%; height: auto; }
.modal { max-width: calc(100vw - 16px); }
.overlay { padding-inline: 8px; }

/* tablet */
@media (max-width: 1100px) {
  .topbar { gap: 10px; }
  .stats { gap: 10px; }
}
/* phone */
@media (max-width: 700px) {
  .topbar h1 { font-size: 17px; }
  .modal-head { padding-inline: 16px; }
  .modal-head h2 { font-size: 16px; }
  .hsec h2, .sp-h h3 { font-size: 15px; }
  .stat .val { font-size: 20px; }
}

/* tablet / phone: the dashboard number tiles never squeeze side by side */
@media (max-width: 1100px) { .s3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .s3 .sc { padding: 14px 16px; gap: 12px; } .s3 .sc .ic { width: 46px; height: 46px; border-radius: 14px; } }
@media (max-width: 760px) { .s3 { grid-template-columns: 1fr !important; } .kvs { grid-template-columns: 1fr 1fr !important; } }

/* Diploma: show / hide level cards */
.lv-vb { margin-inline-start: auto; border: 1.5px solid var(--line); background: #fff; font-weight: 800; } .lv-vb small { color: var(--ink-4); font-weight: 600; } .lv-vb.none { border-style: dashed; }
.lv-vb + .btn-gold { margin-inline-start: 8px !important; }
.lv-empty { background: #fff; border: 1.5px dashed var(--line); border-radius: 18px; padding: 34px 20px; text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 8px; } .lv-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.lv-hidn { margin-top: 10px; font-size: 12.5px; color: var(--ink-4); }
.lv-ck { display: flex; flex-direction: column; }
.lv-ck button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; font: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 2px; cursor: pointer; color: var(--ink); }
.lv-ck button:last-child { border-bottom: 0; }
.lv-ck .b { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #C9D3CF; display: grid; place-items: center; font-size: 13px; color: transparent; flex: none; }
.lv-ck button.on .b { background: var(--ok); border-color: var(--ok); color: #fff; }
.lv-ck .t { font-weight: 700; font-size: 14px; } .lv-ck .t small { display: block; font-weight: 600; color: var(--ink-4); font-size: 12px; } .lv-ck em { margin-inline-start: auto; font-style: normal; color: var(--ink-4); font-size: 12px; }
/* new students by class: each class name on one line, all bars start at the same place */
.rg-bars { display: grid; grid-template-columns: minmax(0, max-content) minmax(48px, 1fr) auto; column-gap: 10px; row-gap: 10px; align-items: center; }
.rg-bar { display: contents; }
.rg-bar span { width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.rg-bar b { width: auto; min-width: 18px; }

/* ---- sub-level cards (e.g. Reading & writing → Level 1, 2, 3) ---- */
.subc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sc2 { border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); border: 1px solid var(--line); display: flex; flex-direction: column; }
.sc2 .top { padding: 22px 18px 18px; text-align: center; color: #fff; }
.sc2 .bdg { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.45); display: grid; place-items: center; margin: 0 auto 8px; font-size: 28px; }
.sc2 h2 { font-size: clamp(20px, 1.2vw + 12px, 25px); font-weight: 800; margin: 0; color: #fff; }
.sc2 .tg { display: inline-block; margin-top: 7px; background: rgba(255,255,255,.2); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 12.5px; }
.sc2 .ar { display: block; margin-top: 5px; font-size: 13.5px; opacity: .9; }
.sc2 .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sc2 .k { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; } .sc2 .k div { border-radius: 14px; padding: 9px; text-align: center; } .sc2 .k b { display: block; font-size: 21px; } .sc2 .k small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.sc2 .inf { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.sc2 .nm { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; font-size: 13px; } .sc2 .nm > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F3F5F4; } .sc2 .nm > div:last-child { border-bottom: 0; }
.sc2 .nm small { color: var(--ink-4); white-space: nowrap; } .sc2 .nm .more { justify-content: center; color: var(--ink-4); }
.sc2 .op { border: 0; border-radius: 16px; padding: 12px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; margin-top: auto; }
.sc2 .r2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sc2 .r2 button { font: inherit; font-weight: 800; font-size: 12.5px; border-radius: 12px; padding: 8px 6px; background: #fff; border: 1.5px solid; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; }
.sc2 .r2 .del { color: #B4232C !important; border-color: #F2CACD !important; }
.sc2.maroon .top { background: linear-gradient(140deg, #7A2335, #4A1220); } .sc2.maroon .k div { background: #F8ECEF; color: #5A1F2B; } .sc2.maroon .op { background: #6B1D2A; } .sc2.maroon .r2 button { border-color: #EAD2D7; color: #6B1D2A; }
.sc2.green .top { background: linear-gradient(140deg, #13865D, #0A4A36); } .sc2.green .k div { background: #E7F5EE; color: #0F6B50; } .sc2.green .op { background: #0F6B50; } .sc2.green .r2 button { border-color: #CFE8DD; color: #0F6B50; }
.sc2.blue .top { background: linear-gradient(140deg, #2563C9, #173A80); } .sc2.blue .k div { background: #EAF1FD; color: #1E4FA8; } .sc2.blue .op { background: #1E4FA8; } .sc2.blue .r2 button { border-color: #D3E0F7; color: #1E4FA8; }
/* a sub-level's own window takes its colour */
.sub-maroon .modal-head { background: linear-gradient(140deg, #7A2335, #4A1220); color: #fff; } .sub-green .modal-head { background: linear-gradient(140deg, #13865D, #0A4A36); color: #fff; } .sub-blue .modal-head { background: linear-gradient(140deg, #2563C9, #173A80); color: #fff; }
.sub-maroon .modal-head h2, .sub-green .modal-head h2, .sub-blue .modal-head h2 { color: #fff; }
.sub-maroon .modal-head .icon-btn, .sub-green .modal-head .icon-btn, .sub-blue .modal-head .icon-btn { background: rgba(255,255,255,.2); color: #fff; }

.sub-maroon .cv-hero { background: linear-gradient(140deg, #7A2335, #4A1220) !important; } .sub-green .cv-hero { background: linear-gradient(140deg, #13865D, #0A4A36) !important; } .sub-blue .cv-hero { background: linear-gradient(140deg, #2563C9, #173A80) !important; }

/* levels layout switch + Layout 2 sub-level cards */
.lv-lt { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-inline-start: auto; }
.lv-lt button { font: inherit; font-weight: 800; font-size: 12.5px; border: 0; background: none; color: var(--ink-3); border-radius: 9px; padding: 6px 11px; cursor: pointer; } .lv-lt button.on { background: var(--side2, #0B3328); color: #fff; }
.lv-lt + .lv-vb { margin-inline-start: 8px; }
.lv2-grp { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin: 6px 0 10px; } .lv2-grp::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sp-cls.lv2 { position: relative; border-top: 5px solid; } .sp-cls.lv2 + .sp-cls.lv2 { }
.lv2-tag { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 3px 9px; color: #fff; z-index: 1; }
.sp-cls.lv2.maroon { border-top-color: #6B1D2A; } .sp-cls.lv2.maroon .bd, .sp-cls.lv2.maroon .lv2-tag, .sp-cls.lv2.maroon .sp-open { background: #6B1D2A !important; color: #fff !important; }
.sp-cls.lv2.green { border-top-color: #0F6B50; } .sp-cls.lv2.green .bd, .sp-cls.lv2.green .lv2-tag, .sp-cls.lv2.green .sp-open { background: #0F6B50 !important; color: #fff !important; }
.sp-cls.lv2.blue { border-top-color: #1E4FA8; } .sp-cls.lv2.blue .bd, .sp-cls.lv2.blue .lv2-tag, .sp-cls.lv2.blue .sp-open { background: #1E4FA8 !important; color: #fff !important; }
.sp-classes + .lv2-grp { margin-top: 16px; }
.cc.lv2 { border-top: 5px solid; } .cc.lv2.maroon { border-top-color: #6B1D2A; } .cc.lv2.maroon .badge { background: #6B1D2A; color: #fff; } .cc.lv2.green { border-top-color: #0F6B50; } .cc.lv2.green .badge { background: #0F6B50; color: #fff; } .cc.lv2.blue { border-top-color: #1E4FA8; } .cc.lv2.blue .badge { background: #1E4FA8; color: #fff; }
.sp-cls.lv2 .ch { padding-inline-end: 78px; } .sp-cls.lv2 .ch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* Layout 2: full sub-level name on one line; the shift tag sits on its own line above */
.sp-cls.lv2 .ch { padding-inline-end: 0; } .sp-cls.lv2 .ch b { white-space: nowrap; overflow: visible; font-size: 15px; }
.sp-cls.lv2 .lv2-tag { position: static; display: inline-flex; align-self: flex-start; margin-bottom: 8px; width: max-content; }

/* every pop-up fits the screen and scrolls inside (header and buttons stay visible) */
.modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.modal > .modal-head, .modal > .modal-foot, .modal > .cv-hero { flex: none; }
.modal > .modal-body, .modal > .cv-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.overlay { align-items: center; }
@media (max-width: 760px) { .overlay { align-items: flex-end; } .modal { max-height: 94vh; max-height: 94dvh; } }
.modal > .modal-body::-webkit-scrollbar, .modal > .cv-body::-webkit-scrollbar { width: 9px; }
.modal > .modal-body::-webkit-scrollbar-thumb, .modal > .cv-body::-webkit-scrollbar-thumb { background: #C9D3CF; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
.modal > .modal-body, .modal > .cv-body { scrollbar-width: thin; scrollbar-color: #C9D3CF transparent; }

/* ---------- Parents (admin) ---------- */
.pa-acc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line, #E3E8E5); margin-bottom: 16px; }
.pa-acc.on { border-color: rgba(19,129,74,.35); background: linear-gradient(90deg, rgba(19,129,74,.07), transparent 70%), var(--card, #fff); }
.pa-acc .pa-ai { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #EEF2EF; color: #5B6B63; flex: 0 0 auto; }
.pa-acc.on .pa-ai { background: #13814A; color: #fff; }
.pa-acc .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pa-acc .g b { font-size: 16px; } .pa-acc .g small { color: var(--muted, #6B7A72); }
.pa-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pa-card { background: var(--card, #fff); border: 1px solid var(--line, #E3E8E5); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.pa-card.off { opacity: .72; }
.pa-t { display: flex; align-items: center; gap: 12px; } .pa-t .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pa-t .g b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pa-t .g small { color: var(--muted, #6B7A72); font-size: 12.5px; }
.pa-t .tav { width: 44px; height: 44px; border-radius: 14px; }
.pa-kids { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-kids span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; background: #F1F6F3; border: 1px solid #DDE9E2; cursor: pointer; max-width: 100%; }
.pa-kids span:hover { border-color: #13814A; } .pa-kids b { font-size: 13px; } .pa-kids small { font-size: 11px; color: var(--muted, #6B7A72); }
.pa-see { display: flex; flex-wrap: wrap; gap: 6px; } .pa-see i { font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: #F5F1E6; color: #7A5D12; }
.pa-ft { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line, #E3E8E5); padding-top: 10px; } .pa-ft small { color: var(--muted, #6B7A72); font-size: 12px; } .pa-ft .sp { flex: 1; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; min-height: 26px; }
.pa-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 99px; background: #E9F4EE; border: 1px solid #CFE5D8; font-size: 13px; }
.pa-chips small { color: var(--muted, #6B7A72); } .pa-chips button { border: none; background: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.pa-find { position: relative; display: block; } .pa-find svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #8A968F; pointer-events: none; } .field .pa-find input, .pa-find input { width: 100%; height: 42px; padding-inline-start: 36px; } .pa-res { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 220px; overflow: auto; }
.pa-res button { text-align: start; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #E3E8E5); background: #fff; cursor: pointer; } .pa-res button:hover { border-color: #13814A; background: #F4FAF6; } .pa-res small { color: var(--muted, #6B7A72); font-size: 12px; }
.pa-seeck { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pa-seeck button { padding: 10px; border-radius: 12px; border: 1.5px solid var(--line, #E3E8E5); background: #fff; cursor: pointer; font-weight: 600; text-align: start; }
.pa-seeck button.on { border-color: #13814A; background: #EEF8F2; color: #0A4D3A; }
.pa-hint { font-size: 12.5px; color: var(--muted, #6B7A72); margin: 10px 0 0; }

/* ---------- Discounts card + windows, monthly report ---------- */
.stat.st-disc { background: linear-gradient(135deg, #6D4BC4, #8B6BDB); color: #fff; border: none; } .stat.st-disc .lbl, .stat.st-disc .sub { color: rgba(255,255,255,.85); } .stat.st-disc .val { color: #fff; }
.dc-ic { width: 34px; height: 34px; border-radius: 11px; background: #6D4BC4; color: #fff; display: grid; place-items: center; font-weight: 800; }
.mr-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .mr-top .sp { flex: 1; } .mr-top input { height: 38px; border-radius: 10px; border: 1px solid var(--line, #E3E8E5); padding: 0 10px; }
.dc-seg { display: inline-flex; background: #F0EDF8; border-radius: 12px; padding: 3px; } .dc-seg button { border: none; background: none; padding: 7px 16px; border-radius: 9px; font-weight: 700; cursor: pointer; color: #5A4A86; } .dc-seg button.on { background: #6D4BC4; color: #fff; }
.mr-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mr-k > div { padding: 12px 14px; border-radius: 14px; background: #F6F8F7; border: 1px solid var(--line, #E3E8E5); display: flex; flex-direction: column; gap: 2px; }
.mr-k > div.pu { background: #F3EFFC; border-color: #DDD3F5; } .mr-k small { color: var(--muted, #6B7A72); font-size: 12px; } .mr-k b { font-size: 20px; } .mr-k em { font-style: normal; font-size: 11.5px; color: var(--muted, #6B7A72); }
.mr-ch { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 8px; border-radius: 14px; background: #F6F8F7; } .mr-ch i { flex: 1; background: #9CC9B0; border-radius: 3px 3px 0 0; min-width: 3px; } .mr-ch i.top { background: #0A4D3A; }
.mr-cap { font-size: 12px; color: var(--muted, #6B7A72); margin: 6px 0 14px; }
.mr-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } .mr-3 > div { border: 1px solid var(--line, #E3E8E5); border-radius: 14px; padding: 12px; } .mr-3 h4 { margin: 0 0 8px; font-size: 13px; }
.mr-3 p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0; border-bottom: 1px dashed #EEF1EF; font-size: 13.5px; } .mr-3 p:last-child { border: none; }
.dc-t { border: 1px solid var(--line, #E3E8E5); border-radius: 14px; overflow: hidden; }
.dc-r { display: grid; grid-template-columns: 36px 1.6fr 1fr .8fr 1.3fr .8fr; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #EEF1EF; font-size: 13px; cursor: pointer; }
.dc-r:first-child { border-top: none; } .dc-r.h { background: #F6F8F7; font-weight: 700; font-size: 12px; color: var(--muted, #6B7A72); cursor: default; } .dc-r:not(.h):hover { background: #FAF8FE; }
.dc-r > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; } .dc-r small { color: var(--muted, #6B7A72); font-size: 11.5px; } .dc-r .pc { color: #6D4BC4; font-weight: 700; } .dc-r .avatar, .dc-r .av { width: 32px; height: 32px; }
@media (max-width: 720px) { .dc-r { grid-template-columns: 32px 1fr auto; } .dc-r > :nth-child(5), .dc-r > :nth-child(6) { display: none; } .dc-r .pc { grid-column: 2; font-size: 12px; } .dc-r > b { grid-row: 1 / span 2; grid-column: 3; } }
.a4 .dc-r { cursor: default; font-size: 11px; padding: 5px 8px; } .a4 .mr-ch { height: 80px; }

/* ---------- Parent portal ---------- */
.pp-land { min-height: 100dvh; } .pp-login { position: relative; max-width: 400px; margin: 6vh auto 40px; background: #fff; border-radius: 24px; padding: 30px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 4px; text-align: center; color: #1D2A23; }
.pp-login .pp-ic { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, #0A4D3A, #13814A); color: #fff; display: grid; place-items: center; margin: 0 auto 8px; }
.pp-login h2 { margin: 0; } .pp-login > p { color: #6B7A72; margin: 0 0 12px; } .pp-login .field { text-align: start; }
.pp-pin { letter-spacing: .5em; font-size: 20px; text-align: center; } .pp-go { height: 48px; margin-top: 8px; } .pp-err { color: #9B2C2C; background: #FBEDED; border-radius: 10px; padding: 8px; font-size: 13.5px; }
.pp-help { font-size: 12px; color: #8A968F; margin-top: 8px; }
.pp { min-height: 100dvh; background: #F3F6F4; } .pp-h { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #0A4D3A; color: #fff; position: sticky; top: 0; z-index: 3; }
.pp-h .nm { display: flex; flex-direction: column; line-height: 1.2; } .pp-h .nm span { font-size: 13px; opacity: .85; } .pp-h .sp { flex: 1; } .pp-h .icon-btn { color: #fff; }
.pp-wrap { max-width: 1000px; margin: 0 auto; padding: 22px 16px 50px; }
.pp-hi small { color: #6B7A72; } .pp-hi h1 { margin: 2px 0 16px; font-size: clamp(22px, 4vw, 30px); }
.pp-kids { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; } .pp-kids button { flex: 0 0 auto; display: flex; flex-direction: column; text-align: start; padding: 10px 16px; border-radius: 14px; border: 1.5px solid #DDE6E1; background: #fff; cursor: pointer; }
.pp-kids button.on { border-color: #0A4D3A; background: #0A4D3A; color: #fff; } .pp-kids small { opacity: .75; font-size: 12px; }
.pp-kid { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .pp-kid .tav { background: #A8801F; } .pp-kid span:last-child { display: flex; flex-direction: column; } .pp-kid b { font-size: 17px; } .pp-kid small { color: #6B7A72; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pp-tile { background: #fff; border-radius: 20px; padding: 18px; border: 1px solid #E3E8E5; } .pp-tile h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; } .pp-tile h3 span { font-size: 18px; }
.pp-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .pp-big b { font-size: 32px; } .pp-big span { color: #6B7A72; font-size: 13px; }
.pp-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed #EEF1EF; font-size: 14px; } .pp-row small { color: #6B7A72; }
.pp-dates { font-size: 12px; color: #9B2C2C; margin: 8px 0 0; } .pp-ok { color: #13814A; font-weight: 600; margin: 0; }
.pp-attendance { border-top: 4px solid #2F5BB7; } .pp-fees { border-top: 4px solid #A8801F; } .pp-exams { border-top: 4px solid #13814A; } .pp-cases { border-top: 4px solid #9B2C2C; }

@media (max-width: 560px) { .pp-h .nm b { font-size: 14px; } .pp-h .nm span { font-size: 12px; } .pp-h .logo-c { width: 34px !important; height: 34px !important; } }
.dc-r > span:nth-child(2) b { text-align: start; }

/* ---------- Finance reports (invoices, expenses report, income statement, comparison) ---------- */
.fr-tile { cursor: pointer; } .fr-tile:hover { border-color: #0A4D3A; }
.rthumb.fr-invoices { background: linear-gradient(135deg, #A8801F, #E8C879); } .rthumb.fr-expenses { background: linear-gradient(135deg, #9B2C2C, #D46A6A); } .rthumb.fr-statement { background: linear-gradient(135deg, #0A4D3A, #13814A); } .rthumb.fr-compare { background: linear-gradient(135deg, #2F5BB7, #6D8FDB); }
.fr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fr-in { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; gap: 3px; } .fr-in input, .fr-bar .sel { height: 38px; border-radius: 10px; border: 1px solid var(--line, #E3E8E5); padding: 0 10px; background: #fff; }
.fr-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fr-a4 .a4-grid4 .k em { display: block; font-style: normal; font-size: 11px; color: #6B7A72; margin-top: 2px; }
.fr-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin: 12px 0; } .fr-2 .a4-box { margin: 0; }
.fr-bar-r { display: grid; grid-template-columns: 34% 1fr auto; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; } .fr-bar-r i { height: 9px; background: #EEF1EF; border-radius: 5px; overflow: hidden; display: block; } .fr-bar-r em { display: block; height: 100%; border-radius: 5px; }
.fr-tbl td, .fr-tbl th { font-size: 11px; padding: 5px 6px; } .fr-tbl .nw { white-space: nowrap; }
.fr-is td { padding: 7px 10px; } .fr-is .e { text-align: end; } .fr-is .h td { font-weight: 800; background: #F1F5F3; } .fr-is .in1 { padding-inline-start: 22px; display: inline-block; } .fr-is td.in1 { display: table-cell; }
.fr-is .tt td { font-weight: 800; border-top: 2px solid #333; } .fr-is .net td { background: #0A4D3A; color: #fff; font-weight: 900; font-size: 15px; } .fr-is .net td span { color: #fff !important; } .fr-is .net.loss td { background: #9B2C2C; }
.fr-note { background: #FFF8E6; border: 1px solid #F1DFAE; border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #6B5310; margin-top: 12px; }
.fr-chg { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #EEF1EF; margin-top: 4px; } .fr-chg.ok { background: #E6F4EC; color: #13814A; } .fr-chg.bad { background: #FBEDED; color: #9B2C2C; }
.fr-lg { margin-inline-start: 10px; color: #6B7A72; } .fr-lg i, .fr-pair i { display: inline-block; } .fr-lg i { width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; } .fr-lg i.p, .fr-pair i.p { background: #C9D3CD; } .fr-lg i.c, .fr-pair i.c { background: #0A4D3A; }
.fr-pair { display: flex; gap: 20px; height: 130px; padding: 10px 10px 0; } .fr-pair > div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; } .fr-pair > div > span { flex: 1; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid #DDE3E0; width: 100%; justify-content: center; } .fr-pair i { width: 26px; border-radius: 5px 5px 0 0; } .fr-pair small { font-size: 11px; color: #6B7A72; padding: 4px 0; }
.inv-page { display: flex; flex-direction: column; padding: 0 !important; } .inv { flex: 1; padding: 26px 34px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; } .inv-cut { border-top: 1.5px dashed #9AA6A0; }
.inv-h { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #0A4D3A; padding-bottom: 10px; } .inv-h > div { flex: 1; display: flex; flex-direction: column; } .inv-h b { font-size: 16px; } .inv-h small { color: #6B7A72; } .inv-h .ar { font-family: Amiri, serif; font-size: 24px; color: #0A4D3A; }
.inv-m { display: flex; justify-content: space-between; gap: 12px; } .inv-m > div { display: flex; flex-direction: column; } .inv-m .e { text-align: end; } .inv-m small { color: #6B7A72; font-size: 11.5px; } .inv-m b { font-size: 14.5px; }
.inv table { width: 100%; border-collapse: collapse; } .inv th { background: #F1F5F3; text-align: start; padding: 7px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #4E5E56; } .inv th:last-child, .inv td:last-child { text-align: end; } .inv td { padding: 7px 10px; border-bottom: 1px solid #EEF1EF; } .inv .tot td { font-weight: 900; font-size: 15px; border-top: 2px solid #333; border-bottom: none; }
.inv-f { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; } .inv-f small { color: #6B7A72; } .inv-sg { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 12px; } .inv-sg i { width: 150px; border-top: 1px solid #333; margin-bottom: 4px; } .inv-f .seal { margin-top: 6px; }
.fa-pen { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line, #E3E8E5); background: #F6F8F7; cursor: pointer; display: inline-grid; place-items: center; color: #4E5E56; } .fa-pen:hover { background: #0A4D3A; color: #fff; border-color: #0A4D3A; }
.btn.fa-advb { background: #FFF6E0; color: #7A5D12; border: 1px solid #F1DFAE; margin-inline-end: 6px; } .btn.fa-advb:hover { background: #F8E7B4; }
.fa-owes { display: block; color: #A8801F; font-size: 11.5px; font-weight: 700; } .who .g { display: flex; flex-direction: column; }
@media (max-width: 720px) { .fr-2 { grid-template-columns: 1fr; } .inv { padding: 16px; } }
.fr-pair i.neg { background: #C0504D !important; }

/* ---------- Backup page ---------- */
.bk-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.bk-k > div { background: var(--card, #fff); border: 1px solid var(--line, #E3E8E5); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.bk-k small { color: var(--muted, #6B7A72); font-size: 12.5px; } .bk-k b { font-size: 21px; } .bk-k em { font-style: normal; font-size: 12px; color: var(--muted, #6B7A72); }
.bk-k .ok { background: linear-gradient(135deg, #0A4D3A, #13814A); border: none; color: #fff; } .bk-k .ok small, .bk-k .ok em { color: #CFE5D8; } .bk-k .no { border-color: #F1CFCF; background: #FFF7F7; }
.bk-sw { display: flex; align-items: center; gap: 10px; }
.bk-card { padding: 0; overflow: hidden; } .bk-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; } .bk-h b { font-size: 17px; }
.bk-r { display: grid; grid-template-columns: 1.6fr 80px 150px auto; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid #EEF1EF; }
.bk-r .g { display: flex; flex-direction: column; min-width: 0; } .bk-r small { color: var(--muted, #6B7A72); font-size: 12.5px; } .bk-r .sz { color: var(--muted, #6B7A72); font-size: 13px; } .bk-r .act { display: flex; gap: 6px; justify-content: flex-end; }
.bk-tag { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #EEF2FB; color: #2F5BB7; justify-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .bk-tag.auto { background: #E6F4EC; color: #13814A; } .bk-tag.before_restore { background: #FFF3D6; color: #7A5D12; }
.bk-note { background: #FFF8E6; border: 1px solid #F1DFAE; color: #6B5310; border-radius: 14px; padding: 12px 16px; font-size: 13.5px; margin-top: 16px; line-height: 1.5; }
@media (max-width: 720px) { .bk-r { grid-template-columns: 1fr auto; } .bk-r .sz { display: none; } .bk-r .act { grid-column: 1 / -1; justify-content: stretch; } .bk-r .act > * { flex: 1; justify-content: center; } }
.fp-dup { background: #FBEDED; border: 1px solid #F1CFCF; color: #7A1F1F; border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.5; margin: 10px 0; } .fp-dup b { display: block; }
input.bad { border-color: #D46A6A !important; background: #FFF7F7; }
.bk-pc { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; flex-wrap: wrap; } .bk-pci { width: 48px; height: 48px; border-radius: 14px; background: #EEF2FB; display: grid; place-items: center; font-size: 24px; flex: none; }
.bk-pc .g { flex: 1; min-width: 260px; } .bk-pc .g b { font-size: 16.5px; display: block; } .bk-pc .g small { color: var(--muted, #6B7A72); } .bk-pc ol { margin: 10px 0 0; padding-inline-start: 20px; font-size: 13.5px; line-height: 1.7; color: #33443B; }
.bk-pcs { font-size: 12.5px; color: var(--muted, #6B7A72); margin: 8px 0 0; } .bk-pc .act { display: flex; flex-direction: column; gap: 8px; }

/* ---------- WhatsApp icon on every WhatsApp button ---------- */
.wa-i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; border-radius: 5px; }
.wa-i.wa-t { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0, 150, 60, .25); }
/* buttons that are only the icon: the icon is the button */
.wa-i.wa-b { width: 100%; height: 100%; border-radius: 9px; display: block; }
.btn.btn-wa:has(> .wa-b), .btn.btn-wa-i, .cv-ic.wa, .at-wa { width: 34px; height: 34px; min-width: 34px; padding: 0; border: none; background: none; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 150, 60, .28); transition: transform .12s, box-shadow .12s; }
.cv-ic.wa { width: 32px; height: 32px; min-width: 32px; }
.btn.btn-wa:has(> .wa-b):hover, .btn.btn-wa-i:hover, .cv-ic.wa:hover, .at-wa:hover { background: none; transform: translateY(-1px) scale(1.05); box-shadow: 0 4px 10px rgba(0, 150, 60, .35); }
.btn.btn-wa:has(> .wa-b):disabled { opacity: .45; transform: none; }
/* buttons with words: white, green edge, the icon on the left */
.btn.btn-wa:not(:has(> .wa-b)) { background: #fff; color: #0B7A3B; border: 1.5px solid #25D366; font-weight: 700; gap: 8px; }
.btn.btn-wa:not(:has(> .wa-b)):hover { background: #EFFBF3; }
.btn.btn-wa:not(:has(> .wa-b)) .wa-i { width: 22px; height: 22px; }
.wa-go { background: #EFFBF3 !important; color: #0B6B36 !important; border: 2px solid #25D366 !important; gap: 10px; } .wa-go:hover { background: #DDF6E6 !important; } .wa-go .wa-i { width: 28px; height: 28px; border-radius: 7px; }
#fs-wa .wa-i { margin-inline-end: 4px; }
.btn.btn-wa:has(> .wa-b), .btn.btn-wa-i, .cv-ic.wa, .at-wa { vertical-align: middle; display: inline-block; line-height: 0; }

/* ---------- Sidebar menu in groups ---------- */
.side nav .ng { display: flex; flex-direction: column; gap: 4px; }
.side nav button.ng-h { padding: 14px 14px 4px; background: none; color: #E6C67F; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; gap: 6px; border-radius: 8px; }
.side nav button.ng-h:hover { background: none; color: #F3D99A; }
.side nav button.ng-h span { flex: 1; } .side nav button.ng-h em { font-style: normal; font-size: 11px; color: #9FC2B2; letter-spacing: 0; } .side nav button.ng-h i { font-style: normal; font-size: 10px; color: #9FC2B2; }
.side nav .ng.shut .ng-b { display: none; } .side nav .ng.shut button.ng-h { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
.side nav .ng-b { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 1100px) and (min-width: 701px) { .side nav button.ng-h { display: none; } .side nav .ng.shut .ng-b { display: flex; } }
/* expense categories */
.fa-cg .fa-cg-new { border-style: dashed !important; color: #A8801F !important; border-color: #E8C879 !important; background: #FFFBF0 !important; }
.chip.chip-new { border-style: dashed; color: #7A5D12; background: #FFFBF0; border-color: #E8C879; }
.ec-em { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; } .ec-em button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line, #E3E8E5); background: #fff; font-size: 19px; cursor: pointer; } .ec-em button.on { border-color: #0A4D3A; background: #EEF8F2; }
.ec-top { margin-bottom: 12px; } .ec-t { border: 1px solid var(--line, #E3E8E5); border-radius: 14px; overflow: hidden; }
.ec-r { display: grid; grid-template-columns: 40px 1fr 150px 80px 170px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #EEF1EF; font-size: 14px; } .ec-r:first-child { border: none; } .ec-r.h { background: #F6F8F7; font-size: 12px; font-weight: 700; color: var(--muted, #6B7A72); }
.ec-r .em { width: 34px; height: 34px; border-radius: 10px; background: #F6F8F7; display: grid; place-items: center; font-size: 17px; } .ec-r.off { opacity: .5; } .ec-act { display: flex; gap: 6px; justify-content: flex-end; }
.ec-tag { justify-self: start; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #F1F4F2; color: #6B7A72; } .ec-tag.b { background: #E6F4EC; color: #13814A; } .ec-tag.d { background: #EEF2FB; color: #2F5BB7; }
.ec-note { font-size: 12.5px; color: var(--muted, #6B7A72); margin: 10px 2px 0; }
@media (max-width: 720px) { .ec-r { grid-template-columns: 34px 1fr auto; } .ec-r > :nth-child(3), .ec-r > :nth-child(4) { display: none; } .ec-r.h { display: none; } }
/* payroll: pick a teacher */
.sp-box { position: relative; } .sp-in { position: relative; display: block; } .sp-in svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #8A968F; } .sp-in input { width: 100%; height: 44px; padding-inline-start: 38px; }
.sp-dd { margin-top: 6px; border: 1px solid var(--line, #E3E8E5); border-radius: 14px; max-height: 320px; overflow: auto; box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.sp-dd button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: none; border-top: 1px solid #F0F2F1; background: #fff; padding: 9px 12px; cursor: pointer; font: inherit; color: inherit; } .sp-dd button:hover:not(:disabled) { background: #F1F8F4; } .sp-dd button:disabled { cursor: default; opacity: .65; }
.sp-dd .g, .sp-sel .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sp-dd b, .sp-sel b { font-size: 14px; } .sp-dd small, .sp-sel small { color: var(--muted, #6B7A72); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dd .tav, .sp-sel .tav { width: 34px; height: 34px; border-radius: 11px; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.sp-h { font-size: 11px; font-weight: 800; color: var(--muted, #6B7A72); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; background: #F6F8F7; }
.sp-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #EEF2FB; color: #2F5BB7; white-space: nowrap; } .sp-tag.ok { background: #E6F4EC; color: #13814A; }
.sp-sel { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid #0A4D3A; border-radius: 14px; background: #F4FAF6; margin-bottom: 12px; }
#sp-rest.sp-t #sf-d, #sp-rest.sp-t .gf-l:first-child { display: none; }
/* parents: choose children */
.pk-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; } .pk-f .sel { height: 36px; border-radius: 10px; border: 1px solid var(--line, #E3E8E5); padding: 0 8px; }
.pa-res.pk-list { max-height: 300px; border: 1px solid var(--line, #E3E8E5); border-radius: 14px; gap: 0; overflow: auto; }
.pa-res.pk-list button { flex-direction: row; align-items: center; gap: 10px; border: none; border-top: 1px solid #F0F2F1; border-radius: 0; }
.pa-res.pk-list button .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pa-res.pk-list button.on { background: #F1F8F4; }
.pk-list .ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #CBD4CF; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; } .pk-list button.on .ck { background: #0A4D3A; border-color: #0A4D3A; }
.pk-h { font-size: 11px; font-weight: 800; color: var(--muted, #6B7A72); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; background: #F6F8F7; position: sticky; top: 0; z-index: 1; }
.pk-g { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; } .pk-g.female { background: #FCE8F1; color: #A3326A; } .pk-g.male { background: #E8F0FB; color: #2F5BB7; }
.pk-sib { background: #FFF8E6; border: 1px solid #F1DFAE; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #6B5310; margin-top: 10px; }
.pk-list .g > b, .sp-dd .g > b, .ec-r > b { align-self: flex-start; justify-self: start; }

/* ---------- Dashboard: students card ---------- */
.sc.sc-st { flex-direction: column; align-items: stretch; gap: 0; cursor: pointer; }
.st-top { display: flex; align-items: center; gap: 14px; } .st-top .ic { width: 52px; height: 52px; border-radius: 16px; } .st-top .g { flex: 1; min-width: 0; }
.st-all { font-size: 12.5px; font-weight: 700; color: var(--brand, #0A4D3A); align-self: flex-start; white-space: nowrap; }
.st-bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: #EEF1EF; margin: 14px 0 8px; } .st-bar i { display: block; height: 100%; }
.st-bar .bo, .st-leg i.bo { background: #2F5BB7; } .st-bar .gi, .st-leg i.gi { background: #B03C78; } .st-bar .ns { background: repeating-linear-gradient(45deg, #D9DFDC 0 5px, #ECEFED 5px 10px); } .st-leg i.ns { background: #CFD6D2; }
.st-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); } .st-leg span { display: inline-flex; align-items: center; gap: 6px; } .st-leg i { width: 9px; height: 9px; border-radius: 3px; display: block; } .st-leg b { font-size: 12.5px; font-weight: 800; letter-spacing: 0; display: inline; color: var(--ink); line-height: 1; }
.st-warn { display: flex; align-items: center; gap: 8px; background: #FFF8E6; border: 1px solid #F1DFAE; border-radius: 12px; padding: 7px 8px 7px 11px; font-size: 12px; color: #6B5310; margin-top: 10px; line-height: 1.35; } .st-warn span { flex: 1; }
.st-warn button { border: none; background: #E8C879; color: #3E3008; font-weight: 800; font-size: 12px; border-radius: 9px; padding: 6px 10px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.st-cls { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.st-r { display: grid; grid-template-columns: minmax(0, 1fr) 34% 30px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; color: var(--ink-2); }
.st-r .nm { display: flex; align-items: center; gap: 7px; min-width: 0; } .st-r .nm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-r .nm i { width: 8px; height: 8px; border-radius: 50%; flex: none; display: block; }
.st-r .br { height: 7px; border-radius: 99px; background: #F0F2F1; overflow: hidden; } .st-r .br i { display: block; height: 100%; border-radius: 99px; }
.st-r b { font-size: 13px; font-weight: 800; letter-spacing: 0; text-align: end; line-height: 1.2; } .st-r.mt { color: var(--ink-4); } .st-r.mt .nt { font-size: 11.5px; } .st-r.mt .nm { white-space: normal; }
/* set boy / girl window */
.sg-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .sg-f button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; } .sg-f button.on { background: var(--brand, #0A4D3A); color: #fff; border-color: transparent; }
.sg-r { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0F2F1; } .sg-r .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sg-r .g b { font-size: 14.5px; align-self: flex-start; } .sg-r small { color: var(--ink-3); font-size: 12px; }
.sg-s { display: inline-flex; background: #F1F4F2; border-radius: 10px; padding: 3px; flex: none; } .sg-s button { border: none; background: none; padding: 7px 13px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #4E5E56; cursor: pointer; font-family: inherit; }
.sg-s button.bo { background: #2F5BB7; color: #fff; } .sg-s button.gi { background: #B03C78; color: #fff; }
.s3 > .sc:not(.sc-st) { align-items: flex-start; }
.land-hero h1.land-long { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.6; letter-spacing: 0; max-width: 34ch; }

/* ---------- Teachers: three layouts ---------- */
.tv-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tv-k { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 130px; } .tv-k small { color: var(--ink-3); font-size: 12px; font-weight: 600; } .tv-k b { font-size: 22px; font-weight: 800; }
.tv-q { flex: 1; min-width: 220px; height: 46px; }
.tv-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.tv-seg button { border: none; background: none; padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; } .tv-seg button.on { background: var(--brand, #0A4D3A); color: #fff; }
.tch { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: #F1F5F3; color: #33443B; font-weight: 600; white-space: nowrap; }
.tcl { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.tcl.f1 { background: #FFF7E3; color: #8A6A1C; border-color: #F1E2B6; } .tcl.fb { background: #EEF3FC; color: #2F5BB7; border-color: #D6E2F7; } .tcl.fg { background: #FCEEF4; color: #A3326A; border-color: #F3D3E2; }
.tsi { font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 99px; background: #F1F4F2; color: #6B7A72; white-space: nowrap; display: inline-block; } .tsi.on { background: #E6F4EC; color: #13814A; }
.tib { width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--ink-2); cursor: pointer; flex: none; } .tib:hover { background: #F4FAF6; color: var(--brand, #0A4D3A); }
.btn.tib-wa { width: 36px !important; height: 36px !important; min-width: 36px !important; border-radius: 11px !important; }
/* list */
.tvl { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.tvl-r { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1.7fr) 90px 136px; gap: 16px; align-items: center; padding: 13px 20px; border-top: 1px solid #EEF1EF; }
.tvl-r.h { background: #F6F8F7; font-size: 12px; font-weight: 700; color: var(--ink-3); border: none; padding: 11px 20px; } .tvl-r.off { opacity: .55; }
.tvl-who { display: flex; align-items: center; gap: 12px; min-width: 0; } .tvl-who .tav { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; flex: none; } .tvl-who .g { min-width: 0; display: flex; flex-direction: column; } .tvl-who b { font-size: 15px; align-self: flex-start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .tvl-who small { color: var(--ink-3); font-size: 12.5px; }
.tvl-c { display: flex; flex-wrap: wrap; gap: 6px; } .tvl-a { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) { .tvl-r.h { display: none; } .tvl-r { grid-template-columns: 1fr auto; gap: 10px; } .tvl-r > :nth-child(2), .tvl-r > :nth-child(3) { grid-column: 1 / -1; } .tvl-r > :nth-child(4) { grid-row: 1; grid-column: 2; } .tvl-a { grid-column: 1 / -1; justify-content: flex-start; } }
/* profile cards */
.tvc-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tvc { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 8px 24px rgba(16, 40, 30, .05); display: flex; flex-direction: column; } .tvc.off { opacity: .55; }
.tvc .band { height: 60px; position: relative; } .tvc .av { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 23px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.tvc .bd { padding: 38px 16px 14px; text-align: center; flex: 1; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.tvc .nm { font-size: 16px; font-weight: 800; } .tvc .ph { color: var(--ink-3); font-size: 13px; margin-top: -6px; }
.tvc .st { display: flex; width: 100%; border: 1px solid #EEF1EF; border-radius: 14px; overflow: hidden; } .tvc .st div { flex: 1; padding: 7px 4px; } .tvc .st div + div { border-inline-start: 1px solid #EEF1EF; } .tvc .st b { display: block; font-size: 17px; } .tvc .st small { font-size: 11px; color: var(--ink-3); }
.tvc .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tvc .ft { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-top: 1px solid #EEF1EF; background: #FAFBFA; } .tvc .ft .sp { flex: 1; }
.tvc-g { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .tvc .ft .tsi { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
@media (max-width: 700px) { .tv-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tv-k { min-width: 0; padding: 8px 10px; border-radius: 13px; } .tv-k small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv-k b { font-size: 19px; }
  .tv-q { grid-column: 1 / -1; min-width: 0; } .tv-seg { grid-column: 1 / -1; justify-content: space-between; } .tv-seg button { flex: 1; justify-content: center; padding: 8px 6px; } .tvc-g { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .tvl-c:has(> .muted:only-child) { display: none; } }

/* ---------- Dashboard layouts 2 (Calm) and 3 (Tiles) ---------- */
.dl-sw { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: -4px 0 10px; } .dl-sw span { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-inline-end: 4px; }
.dl-sw button { width: 30px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; } .dl-sw button.on { background: var(--brand, #0A4D3A); color: #fff; border-color: transparent; }
.dl-hi { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; } .dl-hi small { color: var(--ink-3); font-size: 13px; } .dl-hi h1 { margin: 2px 0 0; font-size: clamp(20px, 2vw, 26px); }
.dl-hi .ar { color: #A8801F; font-family: 'Amiri', serif; font-weight: 700; font-size: .85em; } .dl-hi .d { text-align: end; color: var(--ink-3); font-size: 13px; flex: none; } .dl-hi .d b { display: block; font-size: 22px; color: var(--ink); }
.dl-strip { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 16px; }
.dl-strip > button { text-align: start; border: none; border-inline-start: 1px solid #EEF1EF; background: none; padding: 14px 16px; cursor: pointer; font-family: inherit; color: inherit; min-width: 0; } .dl-strip > button:first-child { border: none; } .dl-strip > button:hover { background: #FAFBFA; }
.dl-strip small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dl-strip b { display: block; font-size: 23px; font-weight: 800; margin: 2px 0; } .dl-strip b.ok { color: #13814A; } .dl-strip b.bad { color: #B4372F; } .dl-strip em { font-style: normal; font-size: 11.5px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-warn { margin: -4px 0 16px; }
.dl-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dl-line svg { width: 100%; height: 160px; display: block; margin-top: 8px; } .dl-ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.dl-cls { margin-top: 16px; }
.dl-ct { display: grid; grid-template-columns: minmax(0, 1.4fr) 80px minmax(0, 1.4fr) minmax(0, 1.2fr) 60px; gap: 14px; align-items: center; padding: 11px 4px; border: none; border-top: 1px solid #F0F2F1; font-size: 13.5px; width: 100%; background: none; text-align: start; font-family: inherit; color: inherit; cursor: pointer; }
.dl-ct:hover { background: #FAFBFA; } .dl-ct.h { cursor: default; border: none; font-size: 11.5px; color: var(--ink-3); font-weight: 700; padding-top: 4px; } .dl-ct.h:hover { background: none; }
.dl-ct .nm { display: flex; align-items: center; gap: 8px; min-width: 0; } .dl-ct .nm i, .dt-c .nm i { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; } .dl-ct .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbw { display: flex; align-items: center; gap: 8px; } .pbw em { font-style: normal; font-size: 11.5px; color: var(--ink-3); width: 40px; text-align: end; }
.pb2 { flex: 1; height: 8px; border-radius: 99px; background: #EEF1EF; overflow: hidden; display: block; } .pb2 i { display: block; height: 100%; border-radius: 99px; background: #13814A; } .pb2.ex i { background: #2F5BB7; }
.dl-ct .ow { color: var(--ink-3); }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; } .dt-grid.nofee { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dt { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; text-align: start; font-family: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; min-width: 0; min-height: 118px; }
.dt:not(.pnl):hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 40, 30, .08); } .dt small { color: var(--ink-3); font-size: 12px; font-weight: 600; } .dt b { font-size: 26px; font-weight: 800; margin-top: 4px; } .dt b.ok { color: #13814A; } .dt b.bad { color: #B4372F; } .dt em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.dt .ic { position: absolute; inset-inline-end: 14px; top: 14px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.dt.big { grid-row: span 2; background: linear-gradient(150deg, var(--side1, #0A4D3A), var(--green-2, #13814A)); color: #fff; border: none; } .dt.big small { color: rgba(255,255,255,.8); }
.dt.big .ring { width: 150px; height: 150px; margin: 10px auto 8px; position: relative; display: block; } .dt.big .ring svg { width: 100%; height: 100%; } .dt.big .ring b { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 28px; }
.dt.big .rw { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; color: rgba(255,255,255,.85); } .dt.big .rw span { display: flex; flex-direction: column; } .dt.big .rw b { font-size: 15px; margin: 0; color: #fff; }
.dt.w2 { grid-column: span 2; cursor: default; } .dt.pnl { padding: 18px 20px; }
.dt-cls { margin-top: 0; } .dt-cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dt-c { border: 1px solid #EEF1EF; border-radius: 16px; padding: 12px; background: #fff; text-align: start; font-family: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 7px; } .dt-c:hover { border-color: var(--brand, #0A4D3A); }
.dt-c .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; } .dt-c .r { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); } .dt-c .r b { font-size: 19px; color: var(--ink); } .dt-c .ex { font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 1100px) { .dl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .dl-strip > button:nth-child(4) { border-inline-start: none; } .dl-strip > button:nth-child(n+4) { border-top: 1px solid #EEF1EF; } .dt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dt.big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 760px) { .dl-two { grid-template-columns: 1fr; } .dl-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .dl-strip > button:nth-child(odd) { border-inline-start: none; } .dl-strip > button:nth-child(n+3) { border-top: 1px solid #EEF1EF; } .dl-strip > button:nth-child(4) { border-inline-start: 1px solid #EEF1EF; }
  .dl-ct { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); } .dl-ct > :nth-child(4), .dl-ct > :nth-child(5) { display: none; } .dt.w2 { grid-column: 1 / -1; } .dl-hi .d { display: none; } }
.dl-sw + .hero { margin-top: 0; } .hero + .dl-strip, .hero + .st-warn, .hero + .dt-grid { margin-top: 16px; }

/* ---------- fees by class, statement, charge a class, case WhatsApp, what's new ---------- */
.rthumb.fr-byclass { background: linear-gradient(135deg, #0E7C86, #3FB5BE); }
.bc-pb { display: inline-block; width: 70px; height: 7px; border-radius: 99px; background: #EEF1EF; overflow: hidden; vertical-align: middle; } .bc-pb i { display: block; height: 100%; background: #13814A; border-radius: 99px; }
.fa-ac .stm { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 9px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.08); color: var(--ink); cursor: pointer; } .fa-ac .stm:hover { background: #fff; }
.cc-lv { display: flex; flex-wrap: wrap; gap: 8px; } .cc-lv button { padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; } .cc-lv button.on { border-color: #0A4D3A; background: #EEF8F2; color: #0A4D3A; } .cc-lv small { color: var(--ink-3); }
.cc-note { background: #FFF8E6; border: 1px solid #F1DFAE; border-radius: 12px; padding: 10px 13px; font-size: 13px; color: #6B5310; margin-top: 12px; line-height: 1.5; }
.cc-past { margin-top: 6px; } .cc-pr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #F0F2F1; } .cc-pr .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cc-pr b { font-size: 13.5px; } .cc-pr small { color: var(--ink-3); font-size: 12px; }
.btn.cs-wa { width: 30px !important; height: 30px !important; min-width: 30px !important; border-radius: 9px !important; margin-inline-start: auto; }
.wn-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; } .wn-top p { margin: 0; color: var(--ink-3); }
.wn-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.wn-r { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-top: 1px solid #EEF1EF; } .wn-r:first-child { border: none; } .wn-r.new { background: linear-gradient(90deg, rgba(232,200,121,.12), transparent 60%); }
.wn-d { width: 92px; flex: none; color: var(--ink-3); font-size: 12.5px; font-weight: 700; } .wn-r .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .wn-r .g b { font-size: 15px; } .wn-r .g > span { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.wn-new { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #A8801F; color: #fff; margin-inline-start: 8px; vertical-align: middle; }
.nav-badge.wn-b { background: #E8C879; color: #3E3008; }
@media (max-width: 700px) { .wn-r { flex-wrap: wrap; gap: 6px 12px; } .wn-d { width: auto; } .wn-r .btn { margin-inline-start: auto; } }
#cc-i button.on { border-color: #0A4D3A !important; background: #EEF8F2 !important; color: #0A4D3A !important; }

/* ---------- fix payments ---------- */
.fx-help { background: #F5F8FC; border: 1px solid #E1E8F2; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #445; line-height: 1.5; margin-bottom: 12px; }
.fx-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.fx-mn { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line, #E5E7EB); border-radius: 12px; padding: 4px; }
.fx-mn button { width: 32px; height: 32px; border: 0; background: #F3F4F6; border-radius: 9px; font-size: 18px; cursor: pointer; }
.fx-mn button:disabled { opacity: .35; cursor: default; }
.fx-mn b { min-width: 120px; text-align: center; }
.fx-q { flex: 1; min-width: 160px; height: 40px; border: 1px solid var(--line, #E5E7EB); border-radius: 12px; padding: 0 12px; }
.fx-l { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; margin: 10px 0; background: #fff; }
.fx-all { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #FAFAFA; border-bottom: 1px solid #EEE; position: sticky; top: 0; z-index: 1; cursor: pointer; }
.fx-r { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #F1F1F1; cursor: pointer; }
.fx-r:last-child { border-bottom: 0; }
.fx-r.on { background: #FFF5F4; }
.fx-r input, .fx-all input { width: 18px; height: 18px; accent-color: #C0392B; flex: none; }
.fx-r .g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-r .g small, .fx-m small { color: #888; font-size: 12px; }
.fx-m { text-align: end; display: flex; flex-direction: column; }
.fx-warn { font-size: 13px; color: #777; padding: 8px 2px 12px; }
.fx-warn.on { color: #B03A2E; background: #FDECEA; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }

/* ---------- advances ---------- */
.fa-advb { background: #FFF7E6; border: 1px solid #F1D9A6; color: #8A6417; }
.av-k, .ad-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.av-k > div, .ad-top > div { background: #fff; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.av-k small, .ad-top small { color: #777; font-size: 12px; }
.av-k b { font-size: 22px; }
.ad-top b { font-size: 18px; }
.av-k em { font-style: normal; font-size: 12px; color: #999; }
.av-k .red b, .ad-top .red b, .av-n.red b { color: #B03A2E; }
.av-k .grn b, .ad-top .grn b, .av-n.grn b { color: #1E7B4F; }
.av-how { font-size: 13px; color: #556; background: #F7F8FA; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.5; }
.av-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.av-r { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: #fff; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; }
.av-r:hover { border-color: #E2C27A; box-shadow: 0 2px 10px rgba(138, 100, 23, .08); }
.av-r .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.av-r .g small { color: #888; font-size: 12px; }
.av-r .av-pl { color: #8A6417 !important; font-weight: 600; }
.av-bar { display: block; height: 6px; background: #F1ECE0; border-radius: 6px; overflow: hidden; max-width: 260px; }
.av-bar.big { height: 10px; max-width: none; margin: 6px 0; }
.av-bar i { display: block; height: 100%; background: linear-gradient(90deg, #E0A93B, #1E9B5F); border-radius: 6px; }
.av-n { display: flex; flex-direction: column; text-align: end; min-width: 84px; }
.av-n small { color: #888; font-size: 11px; }
.av-empty { text-align: center; padding: 36px 10px; font-size: 34px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.av-empty b { font-size: 15px; } .av-empty small { font-size: 13px; color: #888; }
.ga-sal { font-size: 13px; color: #666; margin-top: 6px; }
.ga-plan { margin-top: 10px; background: #FFF9EC; border: 1px solid #F3E0B5; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #6B5313; }
.ga-plan:empty { display: none; }
.ad-plan { font-weight: 600; color: #8A6417; margin: 4px 0 12px; }
.ad-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin-bottom: 8px; }
.ad-kv span { color: #888; }
.ad-h { display: flex; flex-direction: column; border: 1px solid #EEE; border-radius: 12px; overflow: hidden; }
.ad-h > div { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #F3F3F3; font-size: 13px; }
.ad-h > div:last-child { border-bottom: 0; } .ad-h > small { padding: 10px 12px; }
.ad-form { margin-top: 12px; background: #F8F9FB; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.adv-print { font-family: inherit; padding: 8mm; } .adv-print .ap-h { display: flex; justify-content: space-between; border-bottom: 2px solid #8A6417; padding-bottom: 8px; margin-bottom: 12px; }
.adv-print h1 { font-size: 20px; margin: 0; } .adv-print .ap-r { text-align: end; } .adv-print .ap-r b { font-size: 22px; display: block; }
.adv-t { width: 100%; border-collapse: collapse; font-size: 13px; } .adv-t th, .adv-t td { border: 1px solid #DDD; padding: 7px 10px; text-align: start; } .adv-t th { background: #FAF6EC; width: 38%; }
.adv-agree { font-size: 12px; color: #555; margin: 14px 0; }

/* ---------- teacher attendance ---------- */
.ta-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.ta-day { display: flex; align-items: center; gap: 8px; }
.ta-arrow { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line, #E5E7EB); background: #fff; font-size: 20px; cursor: pointer; }
.ta-arrow:disabled { opacity: .3; cursor: default; }
.ta-date { display: flex; flex-direction: column; min-width: 150px; text-align: center; }
.ta-date b { font-size: 17px; } .ta-date small { color: #888; font-size: 12px; }
.ta-how { display: flex; gap: 10px; align-items: flex-start; background: #F2F8F5; border: 1px solid #D5EADF; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.ta-how > span:first-child { font-size: 20px; } .ta-how div { flex: 1; display: flex; flex-direction: column; } .ta-how small { color: #4A5E55; }
.ta-fp { white-space: nowrap; font-size: 12px; background: #fff; border: 1px dashed #B9D6C7; border-radius: 20px; padding: 4px 10px; color: #4A7A62; align-self: center; }
.ta-k { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.ta-kk { background: #fff; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; border-top: 4px solid #CCC; }
.ta-kk b { font-size: 24px; } .ta-kk small { font-size: 12px; color: #666; }
.ta-kk.sP { border-top-color: #1E9B5F; } .ta-kk.sL { border-top-color: #E0A93B; } .ta-kk.sA { border-top-color: #D24C3F; } .ta-kk.sV { border-top-color: #4A7BD0; } .ta-kk.sN { border-top-color: #BBB; }
.ta-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ta-list { display: flex; flex-direction: column; gap: 8px; }
.ta-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #EEE; border-radius: 14px; padding: 10px 12px; border-inline-start: 5px solid #DDD; background: #fff; }
.ta-r.sP { border-inline-start-color: #1E9B5F; } .ta-r.sL { border-inline-start-color: #E0A93B; background: #FFFCF4; } .ta-r.sA { border-inline-start-color: #D24C3F; background: #FFF8F7; } .ta-r.sV { border-inline-start-color: #4A7BD0; }
.ta-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.ta-who .g { display: flex; flex-direction: column; } .ta-who small { color: #888; font-size: 12px; }
.ta-self { color: #2B6CB0; font-weight: 600; }
.ta-bt { display: flex; gap: 6px; }
.ta-bt button { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 70px; padding: 7px 8px; border-radius: 12px; border: 1.5px solid #E3E3E3; background: #fff; cursor: pointer; font: inherit; font-size: 12px; color: #555; }
.ta-bt button i { font-style: normal; font-size: 17px; font-weight: 700; }
.ta-bt .bP.on { background: #1E9B5F; border-color: #1E9B5F; color: #fff; } .ta-bt .bL.on { background: #E0A93B; border-color: #E0A93B; color: #fff; }
.ta-bt .bA.on { background: #D24C3F; border-color: #D24C3F; color: #fff; } .ta-bt .bV.on { background: #4A7BD0; border-color: #4A7BD0; color: #fff; }
.ta-tm { display: flex; flex-direction: column; } .ta-tm small { font-size: 11px; color: #888; } .ta-tm input { height: 36px; border: 1px solid #DDD; border-radius: 10px; padding: 0 8px; }
.ta-foot { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 12px; z-index: 3; }
.ta-foot .btn { box-shadow: 0 6px 20px rgba(0, 0, 0, .15); padding-inline: 26px; }
.ta-rt { font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #EEE; }
.ta-rt.hi { background: #E3F5EC; color: #1E7B4F; } .ta-rt.mid { background: #FFF3DC; color: #8A6417; } .ta-rt.lo { background: #FDE7E5; color: #B03A2E; }
.ta-dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; }
.ta-dots i, .ta-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: #DDD; }
.ta-dots .sP, .ta-legend .sP { background: #1E9B5F; } .ta-dots .sL, .ta-legend .sL { background: #E0A93B; } .ta-dots .sA, .ta-legend .sA { background: #D24C3F; } .ta-dots .sV, .ta-legend .sV { background: #4A7BD0; }
.ta-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #666; margin-top: 10px; } .ta-legend span { display: flex; gap: 5px; align-items: center; }
.ci-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #F3FBF7, #fff); border: 1px solid #D5EADF; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; }
.ci-card.sL { background: linear-gradient(135deg, #FFF8EA, #fff); border-color: #F1DDAE; } .ci-card.sA { background: linear-gradient(135deg, #FFF3F2, #fff); border-color: #F3CDC9; } .ci-card.sV { background: linear-gradient(135deg, #F1F5FD, #fff); border-color: #CFDCF3; }
.ci-ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ci-card .g { flex: 1; display: flex; flex-direction: column; } .ci-card small { color: #667; font-size: 13px; }
.ci-btn { background: #1E9B5F; color: #fff; border: 0; font-weight: 700; padding: 10px 18px; border-radius: 12px; }

/* ---------- attendance in marks ---------- */
.am-intro { font-size: 13px; color: #556; line-height: 1.5; margin-bottom: 12px; }
.am-w { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.am-w button { height: 44px; border-radius: 12px; border: 1.5px solid #E3E3E3; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.am-w button.on { background: #1E7B4F; border-color: #1E7B4F; color: #fff; }
.am-eg { background: #F2F8F5; border: 1px solid #D5EADF; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; margin-bottom: 10px; }
.am-eg.off { background: #F6F6F6; border-color: #E6E6E6; color: #777; }
.am-on { background: #1E7B4F; color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; }
.am-res { display: flex; gap: 10px; align-items: center; background: #F2F8F5; border: 1px solid #D5EADF; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.am-res.low { background: #FFF3F2; border-color: #F3CDC9; }
.am-res div { display: flex; flex-direction: column; } .am-res small { color: #556; font-size: 12px; }
@media (max-width: 700px) {
  .ta-k { grid-template-columns: repeat(3, 1fr); }
  .ta-bt { width: 100%; } .ta-bt button { flex: 1; min-width: 0; }
  .av-k, .ad-top { grid-template-columns: 1fr 1fr; } .av-k > div:first-child { grid-column: 1 / -1; }
  .av-r { flex-wrap: wrap; } .av-r .g { flex-basis: calc(100% - 60px); }
  .ta-how { flex-wrap: wrap; }
}
.ad-h, .ad-top, .ad-kv, .ad-form, .ad-plan, .av-bar.big, .ga-plan, .am-eg, .fx-help, .fx-warn, .av-k, .av-how, .av-list { flex-shrink: 0; }
#ga-s { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; font: inherit; } .am-w button { font-size: 13px; line-height: 1.1; }
@media (max-width: 700px) {
  .ta-how div { flex-basis: calc(100% - 40px); }
  .ta-fp { margin-inline-start: 30px; }
  .ta-k { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .ta-kk { padding: 8px 2px; } .ta-kk b { font-size: 19px; } .ta-kk small { font-size: 10px; }
  .ta-head { flex-direction: column; align-items: stretch; } .ta-day { justify-content: space-between; }
  .ta-foot { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ta-foot .btn { width: 100%; }
  .ci-card { flex-wrap: wrap; } .ci-btn { width: 100%; }
}
.ta-bar .btn { white-space: normal; text-align: start; max-width: 100%; }

/* ---------- fee charge chips ---------- */
.fchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.fch { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 7px; background: #F1F4F3; color: #34443E; white-space: nowrap; }
.fch b { font-weight: 700; }
.fch.mo { background: #E8F3EE; color: #0B6B4B; } .fch.ex { background: #F3ECFB; color: #7A3DB8; } .fch.bk { background: #EAF1FB; color: #2B5BA8; } .fch.pv { background: #FFF3DC; color: #8A6417; }
.cc-pr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-act { display: flex; gap: 6px; margin-inline-start: auto; }
#cc-past { max-height: 260px; overflow: auto; }
/* ---------- Arabic names ---------- */
.an-tag { font-size: 10.5px; font-weight: 600; background: #F1F1F1; color: #888; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.an-ban { display: flex; align-items: center; gap: 12px; background: #F2F8F5; border: 1px solid #D5EADF; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.an-ban .ic { width: 40px; height: 40px; border-radius: 12px; background: #0B6B4B; color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.an-ban .g { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .an-ban small { color: #4A5E55; font-size: 12.5px; }
.an-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; flex-shrink: 0; }
.an-steps div { background: #F7FAF8; border: 1px solid #E3EEE8; border-radius: 12px; padding: 9px 11px; font-size: 12.5px; color: #4A5E55; } .an-steps b { color: #0F1F19; }
.an-l { border: 1px solid #E7ECEA; border-radius: 14px; margin-top: 10px; max-height: 48vh; overflow: auto; flex-shrink: 0; }
.an-r { display: grid; grid-template-columns: 1fr 22px 1.1fr 86px; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #F0F3F2; }
.an-r:last-child { border-bottom: 0; } .an-r span small { display: block; color: #999; font-size: 11px; } .an-r .ar { color: #999; text-align: center; }
.an-h { background: #FAFBFA; font-size: 12px; color: #8A9A93; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.an-r input { height: 38px; border: 1.5px solid #CFE6DA; border-radius: 10px; padding: 0 10px; font-size: 16px; font-family: 'Noto Naskh Arabic', inherit; }
.an-st { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 3px 6px; text-align: center; } .an-st.ok { color: #13814A; background: #E7F6EE; } .an-st.chk { color: #8A6417; background: #FFF3DC; }
@media (max-width: 700px) { .an-steps { grid-template-columns: 1fr; } .an-r { grid-template-columns: 1fr 70px; } .an-r .ar { display: none; } .an-r input { grid-column: 1 / -1; grid-row: 2; } }
.cc-card { border: 1px solid #E7ECEA; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.cc-ch { display: flex; flex-direction: column; margin-bottom: 6px; } .cc-ch small { color: #8A9A93; font-size: 12px; }
.cc-lr { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #F0F3F2; border-radius: 10px; margin-top: 6px; }
.cc-lr .g { flex: 1; } .cc-lr small { color: #8A9A93; }
.cc-card .cc-act { justify-content: flex-end; margin-top: 10px; }
#cc-past { max-height: 340px; }
.tp-l { border: 1px solid #E7ECEA; border-radius: 14px; overflow: hidden; }
.tp-r { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #F0F3F2; }
.tp-r:last-child { border-bottom: 0; } .tp-r.off { opacity: .6; } .tp-r .g { flex: 1; display: flex; flex-direction: column; } .tp-r small { color: #8A9A93; font-size: 12px; }
.tp-sw { width: auto; padding: 0; border: 0; background: none; }
.tp-k { font-size: 11px; font-weight: 700; border-radius: 7px; padding: 2px 7px; background: #E8F3EE; color: #0B6B4B; } .tp-k.st { background: #FFF3DC; color: #8A6417; }
.fa-av.st { background: #8A6417; }
.tp-add { margin-top: 12px; background: #F8F9FB; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tp-add select, .tp-add input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; }
.cc-tabs { display: flex; gap: 6px; background: #F1F4F3; border-radius: 12px; padding: 4px; margin-bottom: 14px; flex-shrink: 0; }
.cc-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: #6B7C75; cursor: pointer; }
.cc-tabs button.on { background: #fff; color: #0F1F19; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.cc-n { background: #C2362F; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-inline-start: 4px; }
.cc-n:empty { display: none; }
#cc-past { max-height: none; overflow: visible; }
.fx-reset { display: flex; gap: 12px; align-items: center; margin: 10px 0; padding: 12px 14px; border: 1.5px solid #E7B9A8; background: #FFF4EF; border-radius: 14px; }
.fx-reset .i { font-size: 24px; }
.fx-reset .g { flex: 1; min-width: 0; }
.fx-reset b { color: #9A3412; display: block; }
.fx-reset small { color: #6b4a3f; font-size: 12.5px; line-height: 1.45; display: block; margin-top: 2px; }
.fx-reset .btn { flex: none; }
#fx-allm { flex: none; }
.dev-ft .rs { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: #B8963F; letter-spacing: .04em; line-height: 1.2; }
/* footer: copyright and the developer credit centred at the bottom */
.dev-ft { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
.dev-ft .cp { flex: none; min-width: 0; }
.dev-ft .dv { text-align: start; }
/* make a month unpaid */
.mu-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; flex-shrink: 0; }
.mu-st > div { border: 1px solid #E7ECEA; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.mu-st small { color: #777; font-size: 12px; } .mu-st b { font-size: 22px; } .mu-st em { font-style: normal; font-size: 12px; color: #999; }
.mu-st .g { color: #1E7B4F; } .mu-st .r { color: #B03A2E; }
.mu-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; flex-shrink: 0; }
.mu-opt button { text-align: start; border: 2px solid #E7ECEA; background: #fff; border-radius: 16px; padding: 14px; font: inherit; cursor: pointer; display: block; position: relative; }
.mu-opt button.on { border-color: #C2362F; background: #FFF8F7; }
.mu-opt b { display: block; font-size: 14px; margin-bottom: 4px; padding-inline-end: 26px; } .mu-opt small { color: #5E6F66; font-size: 12.5px; line-height: 1.45; }
.mu-opt .rd { position: absolute; top: 14px; inset-inline-end: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CCC; }
.mu-opt .on .rd { border: 5px solid #C2362F; }
.fx-warn.ok { background: #E7F6EE; color: #13814A; }
@media (max-width: 700px) { .mu-st, .mu-opt { grid-template-columns: 1fr; } }
.mu-entry { display: flex; align-items: center; gap: 12px; margin-top: 14px; border: 2px solid #F3CDC9; background: #FFF8F7; border-radius: 14px; padding: 12px 14px; flex-shrink: 0; }
.mu-entry .ic { width: 40px; height: 40px; border-radius: 12px; background: #FDECEA; display: grid; place-items: center; font-size: 18px; }
.mu-entry .g { flex: 1; display: flex; flex-direction: column; } .mu-entry small { color: #6B5A58; font-size: 12px; }
#mu-lv { flex-wrap: wrap; overflow: visible; }
.wn-day { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B7C75; }
.wn-day:first-child { margin-top: 4px; }
.wn-day span { background: #E8F3EE; color: #0B6B4B; border-radius: 10px; padding: 1px 8px; font-size: 11px; letter-spacing: 0; }
.wn-day::after { content: ''; flex: 1; height: 1px; background: #E7ECEA; }
/* pay window: lines ticked on their own */
.np-st { display: none; font-size: 10.5px; font-weight: 700; color: #8A6417; background: #FFF3DC; border-radius: 8px; padding: 2px 7px; margin-inline-start: 6px; vertical-align: middle; }
.np-o.stay .np-st { display: inline-block; }
.np-o.stay .a { color: #999; }
.np-stay { margin: 4px 14px 8px; font-size: 12.5px; color: #8A6417; background: #FFF8EA; border-radius: 10px; padding: 8px 11px; }
.np-stay b { color: #5E4A12; }
.say.say-ch { flex-direction: column; align-items: stretch; gap: 8px; } .say.say-ch > div:first-child { display: flex; align-items: center; gap: 8px; } .say-ch .fchips { margin-top: 0; } .say-ch .fch { font-size: 12.5px; padding: 4px 9px; }
/* bell: fee checklist button */
.np-dl { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 4px 12px 10px; border: 0; cursor: pointer; text-align: start; font: inherit; background: linear-gradient(135deg, #0B4D38, #0B6B4B); color: #fff; border-radius: 14px; padding: 11px 12px; }
.np-dl .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 17px; }
.np-dl .g { flex: 1; display: flex; flex-direction: column; } .np-dl b { font-size: 13.5px; } .np-dl small { color: #CFE3DA; font-size: 11.5px; }
.np-dl .bt { background: #E8C77A; color: #0B3328; font-weight: 800; font-size: 12px; border-radius: 9px; padding: 7px 10px; }
/* printed fee checklist */
.ck-t th, .ck-t td { padding: 5px 7px !important; font-size: 11.5px; }
.ck-c { width: 30px; text-align: center !important; }
.ck-bx { width: 16px; height: 16px; border: 1.6px solid #34443E; border-radius: 4px; display: inline-grid; place-items: center; font-weight: 900; color: #0B6B4B; font-size: 12px; line-height: 1; vertical-align: middle; }
.ck-bx.on { background: #E7F6EE; border-color: #0B6B4B; }
.ck-cls td { background: #0B3328 !important; color: #E8C77A !important; font-weight: 800; }
.ck-paid td { color: #5E6F66; }
.ck-ok { color: #1E7B4F; font-weight: 700; } .ck-g { color: #999; } .ck-ow { color: #B03A2E; }
.ck-b { display: block; color: #8A6417; font-size: 10px; }
.ck-hand { display: inline-block; width: 70px; border-bottom: 1px dotted #888; height: 12px; }
.ck-key { display: flex; gap: 16px; justify-content: flex-end; font-size: 11.5px; color: #5E6F66; margin: 4px 0 8px; } .ck-key > span { display: inline-flex; gap: 5px; align-items: center; }
.ck-sig { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; color: #34443E; }
/* sign in: remember me */
.rem-row { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; padding: 10px 12px; border: 1.5px solid #E1E8E4; border-radius: 12px; background: #FAFCFB; cursor: pointer; text-align: start; }
.rem-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rem-row .cbx { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #B9C6C0; display: grid; place-items: center; color: transparent; margin-top: 1px; background: #fff; }
.rem-row input:checked ~ .cbx { background: #0F6B50; border-color: #0F6B50; color: #fff; }
.rem-row input:checked ~ .cbx + span b { color: #0F1F19; }
.rem-row:has(input:checked) { border-color: #CFE6DA; background: #F4FBF7; }
.rem-row input:focus-visible ~ .cbx { outline: 2px solid #0F6B50; outline-offset: 2px; }
.rem-row b { display: block; font-size: 13.5px; color: #34443E; } .rem-row small { display: block; font-size: 11.5px; color: #5E6F66; line-height: 1.4; margin-top: 2px; }
.mr .rem-row input:checked ~ .cbx { background: #8A1C2E; border-color: #8A1C2E; }
.mr .rem-row:has(input:checked) { border-color: #EBC9CF; background: #FCF5F6; }
/* assessment marks: subjects with how many marks they have */
.am-subs { flex-wrap: wrap; }
.am-subs button { display: inline-flex; align-items: center; gap: 6px; }
.am-n { font-size: 10.5px; font-weight: 800; border-radius: 8px; padding: 1px 6px; background: #E3F5EC; color: #1E7B4F; }
.am-subs button.none { color: #9AA6A0; } .am-subs button.none .am-n { background: #F0F2F1; color: #9AA6A0; }

/* ---- monthly marks added into an exam (exam link) */
.ml-th { display: block; font-weight: 600; color: var(--muted, #6B7C75); font-size: 11px; }
.ml-ban { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; background: linear-gradient(135deg, #F4FBF7, #EAF5EF); border: 1.5px solid #CFE7DA; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; cursor: pointer; font: inherit; color: inherit; }
.ml-ban:hover { border-color: #0B6B4B; }
.ml-ban .g { flex: 1; } .ml-ban b { display: block; font-size: 14px; } .ml-ban small { color: #5E7268; font-size: 12px; }
.ml-ban .go { font-weight: 800; color: #0B6B4B; font-size: 13px; white-space: nowrap; }
.ml-ban .ml-mini { width: 110px; flex: none; }
.ml-mini { display: flex; height: 12px; border-radius: 8px; background: #E8EEEB; overflow: hidden; direction: ltr; }
.ml-mini i { background: #2FA36F; display: block; height: 100%; }
.ml-mini em { background: #0F4A3A; display: block; height: 100%; }
.ml-ban .ml-mini { background: #0F4A3A; }
.ml-sw { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: #F6F8F7; border: 1.5px solid #E3E9E6; border-radius: 16px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.ml-sw.on { background: #F4FBF7; border-color: #CFE7DA; }
.ml-sw .g { flex: 1; } .ml-sw b { display: block; font-size: 14.5px; } .ml-sw small { color: #5E7268; font-size: 12px; }
.ml-l { font-size: 11.5px; font-weight: 800; color: #7A8B84; text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 8px; }
.ml-seg { display: flex; background: #F1F4F3; border-radius: 12px; padding: 4px; gap: 4px; }
.ml-seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; font: inherit; font-weight: 700; color: #6B7C75; cursor: pointer; }
.ml-seg button.on { background: #fff; color: #0B3328; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ml-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ml-chip { display: flex; align-items: center; gap: 8px; text-align: start; border: 1.5px solid #E5EBE8; border-radius: 12px; padding: 9px 10px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.ml-chip i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid #C3CEC9; display: grid; place-items: center; font-size: 11px; color: transparent; }
.ml-chip.on { border-color: #0B6B4B; background: #F4FBF7; } .ml-chip.on i { background: #0B6B4B; border-color: #0B6B4B; color: #fff; }
.ml-chip b { display: block; font-size: 13px; } .ml-chip small { color: #8A9A93; font-size: 11px; }
.ml-bar { display: flex; height: 56px; border-radius: 16px; overflow: hidden; direction: ltr; }
.ml-bar > span { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.ml-bar .mo { background: linear-gradient(135deg, #2FA36F, #1E7B4F); min-width: 54px; }
.ml-bar .ex { flex: 1; background: linear-gradient(135deg, #0F4A3A, #0B3328); }
.ml-bar b { font-size: 19px; line-height: 1; } .ml-bar small { font-size: 11px; opacity: .85; margin-top: 3px; }
.ml-scale { display: flex; justify-content: space-between; color: #8A9A93; font-size: 11px; margin-top: 5px; }
.ml-note, .ml-off { font-size: 12.5px; color: #46594F; background: #F6F8F7; border-radius: 12px; padding: 11px 13px; margin-top: 14px; line-height: 1.55; }
.ml-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ml-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 20px; background: #F1F4F3; color: #5E6F66; cursor: pointer; }
.ml-tabs button small { font-size: 11px; background: rgba(0,0,0,.07); border-radius: 8px; padding: 0 6px; }
.ml-tabs button.on { background: #0B3328; color: #fff; } .ml-tabs button.on small { background: rgba(255,255,255,.18); }
.ml-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) 2fr 90px 64px; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #F0F3F2; }
.ml-row:hover { background: #FAFCFB; }
.ml-mini.big { height: 14px; }
.ml-sc { text-align: center; font-size: 12.5px; color: #6B7C75; } .ml-sc b { color: var(--ink, #0F1F19); }
.ml-tt { text-align: center; font-size: 19px; font-weight: 800; }
.ml-wait { font-size: 11px; font-weight: 700; background: #FFF3DC; color: #8A6417; padding: 3px 8px; border-radius: 8px; }
.ml-leg { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #5E6F66; margin-top: 14px; }
.ml-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ml-leg i { width: 12px; height: 12px; border-radius: 4px; background: #E8EEEB; border: 1px solid #DDE4E1; display: inline-block; }
.ml-leg i.mo { background: #2FA36F; border: 0; } .ml-leg i.ex { background: #0F4A3A; border: 0; }
@media (max-width: 640px) { .ml-row { grid-template-columns: 1fr 52px; } .ml-row .ml-mini { grid-column: 1 / -1; order: 3; } .ml-row .ml-sc { display: none; } .ml-ban .ml-mini { display: none; } }
.ml-top { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }

/* ---- File Manager */
.fm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.fm-top .sp { flex: 1; }
.fm-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E1E8E4; border-radius: 13px; padding: 0 13px; min-width: 300px; flex: 0 1 420px; color: #8A9A93; }
.fm-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; padding: 11px 0; flex: 1; color: var(--ink, #0F1F19); min-width: 0; }
.fm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.fm-stat { background: #fff; border-radius: 16px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 10px rgba(11,51,40,.04); }
.fm-stat .i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }
.fm-stat b { font-size: 19px; display: block; line-height: 1.2; } .fm-stat small { color: #6B7C75; font-size: 12px; }
.fm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.fm-cat { position: relative; text-align: start; background: #fff; border: 2px solid transparent; border-radius: 18px; padding: 15px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 2px 10px rgba(11,51,40,.04); transition: border-color .15s, transform .15s; }
.fm-cat:hover { transform: translateY(-1px); border-color: #DCE7E1; }
.fm-cat.on { border-color: #0B6B4B; box-shadow: 0 6px 18px rgba(11,107,75,.12); }
.fm-cat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; margin-bottom: 10px; }
.fm-cat b { display: block; font-size: 14.5px; } .fm-cat small { color: #6B7C75; font-size: 12px; }
.fm-cat .n { position: absolute; top: 15px; inset-inline-end: 15px; font-size: 12px; font-weight: 800; color: #5E6F66; background: #F1F4F3; border-radius: 9px; padding: 3px 9px; }
.fm-panel { padding: 0 !important; overflow: hidden; }
.fm-ph { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #EEF2F0; flex-wrap: wrap; }
.fm-ph b { font-size: 16px; } .fm-ph .sp { flex: 1; }
.fm-sel { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid #E1E8E4; border-radius: 10px; padding: 7px 10px; background: #fff; color: inherit; }
.fm-sec { font-size: 11px; font-weight: 800; color: #7A8B84; text-transform: uppercase; letter-spacing: .6px; padding: 12px 18px 6px; background: #FAFCFB; }
.fm-none { padding: 14px 18px; font-size: 13px; color: #6B7C75; }
.fm-f { display: flex; align-items: center; gap: 13px; padding: 11px 18px; border-bottom: 1px solid #F2F5F4; }
.fm-f:last-child { border-bottom: 0; }
.fm-f .nm { flex: 1; min-width: 0; } .fm-f .nm b { display: block; font-size: 13.8px; } .fm-f .nm small { color: #7A8B84; font-size: 12px; }
.fm-ty { width: 40px; height: 46px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; }
.fm-ty.pdf { background: linear-gradient(160deg, #E25A4E, #B83A2F); } .fm-ty.xl { background: linear-gradient(160deg, #2FA36F, #1E7B4F); }
.fm-ty.zip { background: linear-gradient(160deg, #6B7BD6, #4A55A2); } .fm-ty.bk { background: linear-gradient(160deg, #5E6F66, #3D4C45); font-size: 18px; }
.fm-tag { font-size: 10.5px; font-weight: 800; border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.fm-tag.live { background: #E7F6EE; color: #1E7B4F; } .fm-tag.auto { background: #EEF0FB; color: #4A55A2; } .fm-tag.lock { background: #FFF3DC; color: #8A6417; }
.fm-meta { width: 86px; text-align: end; color: #7A8B84; font-size: 12px; flex: none; }
.fm-dl { display: flex; gap: 6px; flex: none; }
.fm-dl button, .fm-dl a { font: inherit; font-size: 12px; font-weight: 800; border-radius: 9px; padding: 6px 11px; border: 1px solid #E1E8E4; background: #fff; cursor: pointer; text-decoration: none; }
.fm-dl .p { color: #B83A2F; } .fm-dl .x { color: #1E7B4F; }
.fm-dl button:hover, .fm-dl a:hover { background: #F6F8F7; }
.fm-dl button:disabled { opacity: .5; }
.fm-how { margin-top: 14px; font-size: 12.8px; line-height: 1.6; color: #46594F; background: #fff; border-radius: 16px; padding: 13px 16px; }
#fm-zip[disabled]::after { content: attr(data-prog); margin-inline-start: 6px; font-size: 12px; opacity: .8; }
@media (max-width: 900px) { .fm-grid, .fm-stats { grid-template-columns: repeat(2, 1fr); } .fm-search { min-width: 0; flex: 1 1 100%; } }
@media (max-width: 640px) { .fm-f { flex-wrap: wrap; } .fm-f .nm { flex: 1 1 calc(100% - 60px); } .fm-meta { display: none; } .fm-tag { margin-inline-start: 53px; } .fm-dl { margin-inline-start: auto; } .fm-stat b { font-size: 16px; } }

/* ---- teacher attendance: lesson times + reports */
.ta-off { background: #FFF8E6; border: 1px solid #F3E2B5; color: #7A5A12; border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.tr-g { border: 1.5px solid #E3E9E6; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.tr-g.off { background: #F7F9F8; }
.tr-gh { display: flex; align-items: center; gap: 10px; } .tr-gh .g { flex: 1; } .tr-gh b { display: block; font-size: 14px; } .tr-gh small { color: #6B7C75; font-size: 12px; }
.tr-g .row2 { margin-top: 10px; }
.tr-line { font-size: 12.5px; color: #46594F; margin: 6px 0 10px; }
.tr-k { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.tr-k > div { border: 1px solid #E3EAE6; border-top: 4px solid #9AA8A2; border-radius: 10px; padding: 8px 10px; }
.tr-k small { display: block; color: #6B7C75; font-size: 11px; } .tr-k b { font-size: 20px; }
.tr-k .sP { border-top-color: #1E9E5A; } .tr-k .sL { border-top-color: #E0A526; } .tr-k .sA { border-top-color: #D0463B; } .tr-k .sV { border-top-color: #3D74D6; }
.tr-st { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 2px 8px; }
.tr-st.sP { background: #E3F5EA; color: #13814A; } .tr-st.sL { background: #FFF2D6; color: #9A6A0B; } .tr-st.sA { background: #FDE6E3; color: #B0342A; } .tr-st.sV { background: #E5EEFC; color: #2D5DB8; } .tr-st.sN { color: #8A9A93; }
.tr-sq { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: #E6ECE9; vertical-align: middle; }
.tr-sq.sP { background: #1E9E5A; } .tr-sq.sL { background: #E0A526; } .tr-sq.sA { background: #D0463B; } .tr-sq.sV { background: #3D74D6; } .tr-sq.sF { background: transparent; border: 1px dashed #D5DDD9; }
.tr-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 4px 0 12px; padding-bottom: 16px; border-bottom: 1px solid #E3EAE6; }
.tr-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.tr-chart i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 0 0; background: #1E9E5A; }
.tr-chart i.mid { background: #E0A526; } .tr-chart i.lo { background: #D0463B; }
.tr-chart small { position: absolute; bottom: -16px; font-size: 9.5px; color: #6B7C75; }
.tr-leg { margin-top: 10px; }
@media (max-width: 640px) { .tr-k { grid-template-columns: repeat(3, 1fr); } }

/* ---- WhatsApp sender (developer only) */
.wa-note { display: flex; align-items: center; gap: 10px; background: #F3F0FF; border: 1px solid #DCD3FF; color: #3E3470; border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.wa-note .dev, .wa-pg .dev { font-size: 10.5px; font-weight: 800; background: #1F1B3A; color: #C9B8FF; border-radius: 7px; padding: 3px 8px; letter-spacing: .5px; flex: none; }
.wa-cols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.wa-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wa-c { padding: 0 !important; overflow: hidden; }
.wa-hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #EEF2F0; flex-wrap: wrap; }
.wa-hd b { font-size: 15px; } .wa-hd small { display: block; color: #7A8B84; font-size: 12px; } .wa-hd .sp, .wa-qh .sp { flex: 1; }
.wa-ic { width: 42px; height: 42px; border-radius: 13px; background: #25D366; display: grid; place-items: center; color: #fff; font-size: 21px; flex: none; }
.wa-bd { padding: 14px 18px; }
.wa-link { display: flex; gap: 22px; align-items: center; padding: 16px 18px; flex-wrap: wrap; }
.wa-qr { width: 220px; height: 220px; border-radius: 14px; border: 1px solid #E1E8E4; background: #fff; padding: 6px; flex: none; }
.wa-qr.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 40px; color: #8A9A93; background: #F6F8F7; }
.wa-qr.ph small { font-size: 12.5px; }
.wa-qr .spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #D5DED9; border-top-color: #25D366; animation: waspin 1s linear infinite; }
@keyframes waspin { to { transform: rotate(360deg); } }
.wa-steps { flex: 1; min-width: 220px; }
.wa-steps > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-bottom: 10px; line-height: 1.45; }
.wa-steps i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0B3328; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.wa-err { display: block; color: #B0342A; margin-top: 8px; font-size: 12px; }
.wa-state { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 13px 15px; border: 1.5px solid #E3E9E6; background: #F6F8F7; flex-wrap: wrap; }
.wa-state .g { flex: 1; min-width: 200px; } .wa-state b { display: block; font-size: 14.5px; } .wa-state small { color: #5E7268; font-size: 12px; }
.wa-state .dot { width: 12px; height: 12px; border-radius: 50%; background: #A9B6B0; flex: none; }
.wa-state.on { background: #E9F8EF; border-color: #BFE6CD; } .wa-state.on .dot { background: #1E9E5A; box-shadow: 0 0 0 5px rgba(30,158,90,.18); }
.wa-state.pz { background: #FFF8E6; border-color: #F3E2B5; } .wa-state.pz .dot { background: #E0A526; }
.wa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.wa-stats > div { background: #F6F8F7; border-radius: 13px; padding: 10px 12px; } .wa-stats small { display: block; color: #6B7C75; font-size: 11.5px; } .wa-stats b { font-size: 19px; }
.wa-bar { height: 8px; border-radius: 6px; background: #E8EEEB; overflow: hidden; margin: 12px 0 6px; } .wa-bar i { display: block; height: 100%; background: linear-gradient(90deg, #25D366, #1E9E5A); }
.wa-qh { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: #FAFCFB; border-top: 1px solid #EEF2F0; border-bottom: 1px solid #EEF2F0; }
.wa-q { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #F2F5F4; }
.wa-q .av { width: 34px; height: 34px; border-radius: 50%; background: #EEF3F0; display: grid; place-items: center; font-size: 15px; flex: none; }
.wa-q .g { flex: 1; min-width: 0; } .wa-q b { display: block; font-size: 13.5px; } .wa-q small { display: block; color: #7A8B84; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-q .tm { width: 46px; text-align: end; color: #7A8B84; font-size: 12px; flex: none; }
.wa-tag { font-size: 10.5px; font-weight: 800; border-radius: 7px; padding: 3px 8px; white-space: nowrap; flex: none; }
.wa-tag.sent { background: #E3F5EA; color: #13814A; } .wa-tag.wait { background: #FFF3DC; color: #8A6417; } .wa-tag.now { background: #E5EEFC; color: #2D5DB8; } .wa-tag.fail { background: #FDE6E3; color: #B0342A; }
.wa-rule { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F2F5F4; }
.wa-rule .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex: none; }
.wa-rule .g { flex: 1; } .wa-rule b { display: block; font-size: 13.5px; } .wa-rule small { color: #7A8B84; font-size: 12px; }
.wa-rem { padding: 10px 0 2px; }
.wa-l { font-size: 11.5px; font-weight: 800; color: #7A8B84; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }
.wa-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-f2 .field { margin: 0; }
.wa-pair { display: flex; align-items: center; gap: 6px; } .wa-pair input { min-width: 0; flex: 1; } .wa-pair small { color: #7A8B84; }
.wa-test { display: flex; align-items: center; gap: 10px; border: 1.5px solid #E3E9E6; border-radius: 14px; padding: 11px 13px; margin-top: 12px; }
.wa-test.on { background: #F3F0FF; border-color: #DCD3FF; } .wa-test .g { flex: 1; } .wa-test b { display: block; font-size: 13.5px; } .wa-test small { color: #6B7C75; font-size: 12px; }
.wa-warn { font-size: 12.5px; color: #7A5A12; background: #FFF8E6; border: 1px solid #F3E2B5; border-radius: 14px; padding: 11px 13px; line-height: 1.55; margin-top: 14px; }
@media (max-width: 1100px) { .wa-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .wa-stats { grid-template-columns: repeat(2, 1fr); } .wa-qr { width: 180px; height: 180px; } .wa-q { flex-wrap: wrap; } .wa-q .g { flex: 1 1 calc(100% - 50px); } }

/* ---- WhatsApp · New message */
.wa-new { background: #25D366 !important; color: #fff !important; border-color: #25D366 !important; }
.wc-ic { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, #34E07A, #1FAF55); color: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.wc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.wc-l, .wc-r { min-width: 0; }
.wc-lbl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; color: #5E6F66; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.wc-lbl i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #0B3328; color: #fff; display: grid; place-items: center; font-size: 10.5px; }
.wc-lbl.sm { margin: 14px 0 8px; font-size: 11px; color: #7A8B84; }
.wc-seg { display: flex; background: #F1F4F3; border-radius: 13px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.wc-seg button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13.5px; color: #6B7C75; padding: 9px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.wc-seg button.on { background: #fff; color: #0B3328; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wc-op { display: flex; align-items: center; gap: 10px; text-align: start; border: 1.5px solid #E5EBE8; border-radius: 14px; padding: 10px 12px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wc-op:hover { border-color: #CFE0D7; transform: translateY(-1px); }
.wc-op.on { border-color: #0B6B4B; background: #F4FBF7; box-shadow: 0 4px 14px rgba(11,107,75,.10); }
.wc-op .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex: none; }
.wc-op b { display: block; font-size: 13.5px; } .wc-op small { color: #7A8B84; font-size: 11.5px; }
.wc-ctl { display: flex; gap: 8px; margin-top: 12px; }
.wc-ctl select { flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid #E1E8E4; border-radius: 11px; padding: 9px 11px; background: #fff; color: inherit; }
.wc-find { position: relative; margin-top: 12px; }
.wc-sbox { display: flex; align-items: center; gap: 8px; border: 1px solid #E1E8E4; border-radius: 12px; padding: 0 12px; color: #8A9A93; background: #fff; }
.wc-sbox input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; padding: 10px 0; flex: 1; color: var(--ink, #0F1F19); min-width: 0; }
.wc-res { position: absolute; z-index: 5; left: 0; right: 0; top: 46px; background: #fff; border: 1px solid #E1E8E4; border-radius: 14px; box-shadow: 0 14px 34px rgba(11,51,40,.16); overflow: hidden; max-height: 260px; overflow-y: auto; }
.wc-res button { display: block; width: 100%; text-align: start; border: 0; background: #fff; font: inherit; padding: 9px 13px; border-bottom: 1px solid #F2F5F4; cursor: pointer; }
.wc-res button:hover { background: #F4FBF7; } .wc-res b { display: block; font-size: 13.5px; } .wc-res small { color: #7A8B84; font-size: 11.5px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wc-chip { display: inline-flex; align-items: center; gap: 6px; background: #EAF6EF; color: #0B5A40; border-radius: 20px; padding: 5px 6px 5px 12px; font-size: 12.5px; font-weight: 700; }
.wc-chip button { border: 0; background: rgba(11,90,64,.12); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 10px; }
.wc-pills { display: flex; gap: 6px; }
.wc-pills button { border: 0; font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 20px; background: #F1F4F3; color: #5E6F66; cursor: pointer; }
.wc-pills button.on { background: #0B3328; color: #fff; }
.wc-man textarea { width: 100%; min-height: 190px; border: 1px solid #E1E8E4; border-radius: 14px; padding: 12px 14px; font: 13.5px/1.8 ui-monospace, Menlo, monospace; resize: vertical; }
.wc-man small { display: block; color: #7A8B84; font-size: 12px; margin-top: 6px; line-height: 1.5; }
.wc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.wc-stats > div { background: #F6F8F7; border-radius: 13px; padding: 9px 11px; } .wc-stats small { display: block; color: #6B7C75; font-size: 11px; line-height: 1.3; } .wc-stats b { font-size: 18px; }
.wc-list { margin-top: 10px; border: 1px solid #EEF2F0; border-radius: 14px; max-height: 250px; overflow-y: auto; }
.wc-li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #F2F5F4; }
.wc-li:last-child { border-bottom: 0; }
.wc-li .av { width: 30px; height: 30px; border-radius: 50%; background: #E8F1FD; color: #2D5DB8; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.wc-li .g { flex: 1; min-width: 0; } .wc-li b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wc-li small { color: #7A8B84; font-size: 11.5px; }
.wc-li.dup { background: #FFFBF0; } .wc-li.off { opacity: .6; } .wc-li.off .av { background: #F1F4F3; color: #8A9A93; }
.wc-tag { font-size: 10px; font-weight: 800; background: #FFF3DC; color: #8A6417; border-radius: 7px; padding: 2px 7px; white-space: nowrap; }
.wc-empty { padding: 18px; text-align: center; color: #7A8B84; font-size: 13px; }
.wc-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wc-tpl button { font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid #E1E8E4; background: #fff; border-radius: 10px; padding: 6px 11px; cursor: pointer; }
.wc-tpl button:hover { background: #F6F8F7; } .wc-tpl button.on { border-color: #0B6B4B; background: #F4FBF7; color: #0B5A40; }
.wc-ta { position: relative; }
.wc-ta textarea { width: 100%; min-height: 170px; border: 1px solid #E1E8E4; border-radius: 14px; padding: 12px 14px 26px; font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; }
.wc-ta textarea:focus, .wc-man textarea:focus { outline: 0; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.15); }
.wc-n { position: absolute; bottom: 9px; inset-inline-end: 12px; font-size: 11px; color: #A0AEA8; }
.wc-var { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.wc-var button { font: 12px/1 ui-monospace, Menlo, monospace; font-weight: 700; border: 0; background: #EEF0FB; color: #4A55A2; border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.wc-var button:hover { background: #E0E4FA; } .wc-var small { color: #A0AEA8; font-size: 11.5px; }
.wc-chat { background: #EFE7DE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.2' fill='%23e2d6c8'/%3E%3C/svg%3E"); border-radius: 16px; padding: 16px; min-height: 120px; }
.wc-bub { position: relative; background: #E7FFDB; border-radius: 4px 14px 14px 14px; padding: 10px 13px 18px; font-size: 13px; line-height: 1.55; box-shadow: 0 1px 1.5px rgba(0,0,0,.1); max-width: 92%; display: inline-block; min-width: 160px; }
.wc-bub::after { content: '✓✓'; position: absolute; bottom: 4px; inset-inline-end: 9px; font-size: 10px; color: #53BDEB; letter-spacing: -2px; }
.wc-test { margin-top: 12px; font-size: 12.5px; color: #3E3470; background: #F3F0FF; border: 1px solid #DCD3FF; border-radius: 12px; padding: 9px 12px; }
.wc-test.live { background: #FDECEA; border-color: #F6C8C2; }
.wc-foot { flex: 1; text-align: end; font-size: 12.5px; color: #7A8B84; padding-inline-end: 6px; }
@media (max-width: 900px) { .wc { grid-template-columns: 1fr; } .wc-stats { grid-template-columns: repeat(2, 1fr); } .wc-foot { display: none; } }

/* ---- WhatsApp · several school numbers */
.wn-sum { padding: 14px 18px 2px; margin-top: 0 !important; }
.wn-sum b span { font-size: 13px; color: #7A8B84; font-weight: 600; }
.wn-paused { margin: 12px 18px 0; background: #FFF8E6; border: 1px solid #F3E2B5; color: #7A5A12; border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.wn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.wn { position: relative; border: 1.5px solid #E5EBE8; border-radius: 18px; padding: 14px; background: #fff; display: flex; flex-direction: column; min-height: 196px; transition: box-shadow .15s; }
.wn:hover { box-shadow: 0 8px 22px rgba(11,51,40,.08); }
.wn.on { border-color: #BFE6CD; background: linear-gradient(180deg, #F4FBF7, #fff 62%); }
.wn.warm { border-color: #F3E2B5; background: linear-gradient(180deg, #FFFAEE, #fff 62%); }
.wn.off { border-color: #F6C8C2; background: linear-gradient(180deg, #FFF5F3, #fff 62%); }
.wn.pz { border-color: #E1E8E4; background: #F9FAFA; }
.wn.link { border-color: #CFE0F7; background: linear-gradient(180deg, #F4F8FE, #fff 62%); }
.wn-top { display: flex; align-items: center; gap: 10px; }
.wn-top .g { flex: 1; min-width: 0; } .wn-top b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wn-top small { color: #6B7C75; font-size: 12px; }
.wn-n { width: 40px; height: 40px; border-radius: 13px; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: none; box-shadow: 0 4px 12px rgba(37,211,102,.25); }
.wn.warm .wn-n { background: #E0A526; box-shadow: 0 4px 12px rgba(224,165,38,.25); } .wn.off .wn-n { background: #D0463B; box-shadow: none; } .wn.pz .wn-n { background: #9AA8A2; box-shadow: none; } .wn.link .wn-n { background: #3D74D6; }
.wn-st { font-size: 10px; font-weight: 800; border-radius: 7px; padding: 3px 7px; white-space: nowrap; flex: none; letter-spacing: .2px; }
.wn-st.ok { background: #E3F5EA; color: #13814A; } .wn-st.wm { background: #FFF3DC; color: #8A6417; } .wn-st.bad { background: #FDE6E3; color: #B0342A; } .wn-st.pz { background: #EEF2F0; color: #5E6F66; } .wn-st.lk { background: #E5EEFC; color: #2D5DB8; }
.wn-meter { margin-top: 14px; } .wn-meter .l { display: flex; justify-content: space-between; font-size: 12px; color: #6B7C75; margin-bottom: 5px; } .wn-meter .l b { color: #0F1F19; }
.wn-bar { height: 8px; border-radius: 6px; background: #E8EEEB; overflow: hidden; } .wn-bar i { display: block; height: 100%; background: linear-gradient(90deg, #25D366, #1E9E5A); border-radius: 6px; }
.wn.warm .wn-bar i { background: linear-gradient(90deg, #F2C14E, #E0A526); }
.wn-facts { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #7A8B84; margin-top: 8px; }
.wn-msg { font-size: 12.5px; color: #8A3A30; margin: 12px 0 0; line-height: 1.5; }
.wn-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.wn-qr img, .wn-qr .ph { width: 168px; height: 168px; border-radius: 12px; border: 1px solid #E1E8E4; background: #fff; padding: 4px; }
.wn-qr .ph { display: grid; place-items: center; background: #F6F8F7; }
.wn-qr .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #D5DED9; border-top-color: #25D366; animation: waspin 1s linear infinite; }
.wn-qr small { font-size: 11.5px; color: #5E6F66; text-align: center; }
.wn-acts { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.wn-acts button { flex: 1; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid #E1E8E4; background: #fff; border-radius: 10px; padding: 7px 6px; cursor: pointer; white-space: nowrap; }
.wn-acts button:hover { background: #F6F8F7; } .wn-acts button.dk { background: #0B3328; color: #fff; border-color: #0B3328; flex: 2; }
.wn-add { border: 2px dashed #CFE0D7; border-radius: 18px; background: #FAFCFB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #0B6B4B; min-height: 196px; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.wn-add:hover { background: #F2FAF5; border-color: #9FD3B5; }
.wn-add .plus { width: 46px; height: 46px; border-radius: 50%; background: #E7F6EE; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.wn-add b { font-size: 14px; } .wn-add small { color: #7A8B84; font-size: 12px; text-align: center; max-width: 210px; }
.wn-share { display: flex; flex-direction: column; gap: 8px; }
.wn-share button { display: flex; align-items: flex-start; gap: 10px; text-align: start; border: 1.5px solid #E5EBE8; border-radius: 14px; padding: 10px 12px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.wn-share button.on { border-color: #0B6B4B; background: #F4FBF7; }
.wn-share .r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C3CEC9; flex: none; margin-top: 2px; } .wn-share button.on .r { border: 5px solid #0B6B4B; }
.wn-share b { display: block; font-size: 13.5px; } .wn-share small { color: #7A8B84; font-size: 12px; }
.wn-danger { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF2F0; } .wn-danger .btn { flex: 1; }
.wa-qh small { margin-inline-start: 6px; }
.wq-via { font-size: 11px; font-weight: 800; border-radius: 8px; padding: 3px 8px; background: #EEF0FB; color: #4A55A2; white-space: nowrap; flex: none; }
.wq-tick { font-size: 12px; font-weight: 800; white-space: nowrap; flex: none; min-width: 84px; text-align: end; }
.wq-tick.t1 { color: #8A9A93; } .wq-tick.t2 { color: #5E6F66; } .wq-tick.t3, .wq-leg .t3 { color: #34B7F1; }
.wq-test { display: inline-block; font-size: 11px; color: #3E3470; background: #F3F0FF; border-radius: 7px; padding: 1px 7px; margin-inline-start: 6px; font-weight: 700; }
.wq-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #5E6F66; padding: 10px 18px 14px; }
.modal .wn-n { width: 40px; height: 40px; }
@media (max-width: 640px) { .wn-grid { grid-template-columns: 1fr; padding: 12px; } .wq-via { display: none; } }
.wn-hb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wa-f2.one { grid-template-columns: 1fr; }
.wa-f2.one .field { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
.wa-f2.one .wa-pair input { width: 64px; flex: none; }
.wn-msg.nl { color: #2D5DB8; }
@media (max-width: 640px) { .wa-f2.one .field { grid-template-columns: 1fr; } }
.wa-f2.one .wa-pair input[type="time"] { width: 118px; }
.wn-err { display: block; color: #B0342A !important; font-size: 11px !important; max-width: 230px; word-break: break-word; }
.wa-srv { margin-inline-start: auto; font-size: 11px; color: #7A71A8; white-space: nowrap; }

/* ---------- Monthly attendance calendar (students & teachers) ---------- */
.ag { padding: 16px 16px 12px; --agP: #16C766; --agA: #FF4545; --agL: #FFC21C; --agE: #FF8A00; }
.ag-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ag-mon { display: flex; align-items: center; gap: 8px; }
.ag-mon b { font-size: 15px; min-width: 128px; text-align: center; }
.ag-nb { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 17px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.ag-nb:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .ag-nb { transform: scaleX(-1); }
.ag-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #FAFBFB; border: 1px solid var(--line2); border-radius: 12px; padding: 5px 6px; }
.ag-pick small { color: var(--ink-4); font-size: 11.5px; padding: 0 4px; }
.ag-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ag-chip i, .ag-legend i, .ag-menu i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: 0 0 auto; }
.ag-chip.clr { color: var(--ink-3); font-weight: 600; }
.ag-chip.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 31, 25, .10); color: var(--ink); }
.ag-rep { margin-inline-start: auto; }
.ag-hint { margin: 10px 2px 8px; font-size: 12px; color: var(--ink-4); }
.ag.picking .ag-hint { color: var(--ink-2); font-weight: 600; }
i.P, .ag-sq.P { background: var(--agP, #16C766); } i.A, .ag-sq.A { background: var(--agA, #FF4545); }
i.L, .ag-sq.L { background: var(--agL, #FFC21C); } i.E, .ag-sq.E { background: var(--agE, #FF8A00); }
i.N { background: #fff; box-shadow: inset 0 0 0 1.5px #D9E0DD; }
i.W, .ag-sq.W { background: #F1F3F2 repeating-linear-gradient(45deg, #E2E6E4 0 2px, transparent 2px 5px); }
.ag-wrap { overflow: auto; border: 1px solid var(--line2); border-radius: 14px; max-height: calc(100vh - 260px); -webkit-overflow-scrolling: touch; }
.ag-t { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.ag-t th, .ag-t td { text-align: center; padding: 0; }
.ag-t thead th { position: sticky; top: 0; z-index: 3; background: #FBFCFC; border-bottom: 1px solid var(--line2); padding: 6px 1px 5px; min-width: 30px; }
.ag-t thead th small { display: block; font-size: 9.5px; color: var(--ink-4); font-weight: 600; line-height: 1.2; }
.ag-t thead th b { font-size: 12px; color: var(--ink); }
.ag-t thead th.we { background: #1C2622; } .ag-t thead th.we small { color: #AEB9B4; } .ag-t thead th.we b { color: #fff; }
.ag-t thead th.tdy { background: var(--gold-soft); } .ag-t thead th.tdy b { color: var(--gold-text); }
.ag-t .ag-nm { position: sticky; inset-inline-start: 0; z-index: 2; background: #fff; text-align: start; padding: 6px 12px; min-width: 190px; max-width: 230px; border-inline-end: 1px solid var(--line2); }
.ag-t thead .ag-nm { z-index: 4; background: #FBFCFC; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ag-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ag-who .av, .ag-who .fa-av { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; }
.ag-who > span:last-child { min-width: 0; }
.ag-who b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-who small { display: block; font-size: 10.5px; color: var(--ink-4); }
.ag-t tbody td { position: relative; padding: 13px 2px 6px; border-bottom: 1px solid #DDE4E0; border-inline-start: 1px solid #EBF0ED; }
.ag-t tbody tr:last-child td, .ag-t tbody tr:last-child th { border-bottom: none; }
.ag-t tbody th.ag-nm { border-bottom: 1px solid #F3F5F4; }
.ag-t td.tdy { background: #FFFCF4; }
.ag-sq { position: relative; display: block; margin: 0 auto; width: 20px; height: 20px; border-radius: 6px; border: none; background: #fff; box-shadow: inset 0 0 0 1.5px #D9E0DD; padding: 0; transition: transform .12s, box-shadow .12s; }
.ag-sq.P, .ag-sq.A, .ag-sq.L, .ag-sq.E { box-shadow: none; }
.ag-sq.W { box-shadow: none; }
.ag-sq:not(:disabled):hover { transform: scale(1.18); box-shadow: inset 0 0 0 1.5px #9FB0A9, 0 2px 6px rgba(0, 0, 0, .12); }
.ag-sq.P:not(:disabled):hover, .ag-sq.A:not(:disabled):hover, .ag-sq.L:not(:disabled):hover, .ag-sq.E:not(:disabled):hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.ag-sq.fut { opacity: .45; }
.ag-sq:disabled { cursor: default; }
.ag-sq.busy { animation: agPulse .8s infinite; }
@keyframes agPulse { 50% { opacity: .35; } }
.ag-sq:disabled { pointer-events: none; }
.ag-tip { position: fixed; z-index: 10000; min-width: 150px; max-width: 240px; background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 12px 10px; box-shadow: 0 12px 32px rgba(16, 24, 20, .20), 0 0 0 1px rgba(16, 24, 20, .06); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; }
.ag-tip.on { opacity: 1; transform: none; }
.ag-tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 5px rgba(16, 24, 20, .06); }
.ag-tip.below::after { bottom: auto; top: -6px; box-shadow: -2px -2px 4px rgba(16, 24, 20, .05); }
.ag-tip small { display: block; font-size: 11px; color: var(--ink-4); font-weight: 600; }
.ag-tip b { display: block; font-size: 13px; font-weight: 800; margin: 1px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-tip span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.ag-tip span i { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.ag-tip em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.ag-mn { position: absolute; top: 1px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; color: #A27A00; white-space: nowrap; line-height: 1; }
.ag-t .ag-s { min-width: 34px; padding-inline: 4px; border-inline-start: 1px solid #F0F2F1; font-size: 12px; }
.ag-t .ag-s b.P { color: #10A957; } .ag-t .ag-s b.A { color: #E53935; } .ag-t .ag-s b.L { color: #C79400; } .ag-t .ag-s b.E { color: #E07A00; }
.ag-t tbody .ag-s b { color: var(--ink); font-weight: 700; }
.ag-t .ag-s small { display: block; font-size: 9px; color: #A27A00; font-weight: 700; }
.ag-t .ag-s.pc b { font-weight: 800; } .ag-s.pc.hi b { color: var(--ok) !important; } .ag-s.pc.mid b { color: #C48A00 !important; } .ag-s.pc.lo b { color: var(--red) !important; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 4px 2px; font-size: 12px; color: var(--ink-3); }
.ag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend .ag-lm b { font-size: 10px; color: #A27A00; }
/* choose-a-status popup */
.ag-menu { position: fixed; z-index: 9999; width: 190px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 16px 44px rgba(16, 24, 20, .22), 0 0 0 1px rgba(16, 24, 20, .04); animation: agIn .12s ease-out; }
@keyframes agIn { from { opacity: 0; transform: translateY(-4px); } }
.ag-menu .hd { font-size: 11px; color: var(--ink-4); padding: 3px 7px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; padding: 9px 8px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: start; }
.ag-menu button:hover, .ag-menu button.cur { background: #F3F6F5; }
.ag-menu button i { width: 14px; height: 14px; border-radius: 5px; }
.ag-menu kbd { margin-inline-start: auto; font-family: inherit; font-size: 10.5px; color: var(--ink-4); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.ag-menu .clr { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
/* late minutes / excuse windows */
.modal.ag-modal { max-width: 380px; }
.ag-mi { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.ag-mi.L { background: #FFF5D6; } .ag-mi.E { background: #FFEEDD; }
.ag-num { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.ag-num button { width: 52px; height: 52px; border: none; background: #F6F8F7; font-size: 22px; color: var(--ink-3); }
.ag-num input { flex: 1; min-width: 0; border: none; text-align: center; font-size: 26px; font-weight: 800; outline: none; -moz-appearance: textfield; }
.ag-num input::-webkit-outer-spin-button, .ag-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ag-quick { display: flex; gap: 6px; margin-top: 10px; }
.ag-quick button { flex: 1; padding: 8px 0; border-radius: 10px; border: none; background: #F3F6F5; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.ag-quick button.on { background: #FFF6DA; color: #8A6600; box-shadow: inset 0 0 0 1.5px #FFC21C; }
.ag-rs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ag-rs button { border: none; background: #F3F6F5; border-radius: 20px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ag-rs button.on { background: #FFF1E2; color: #B85F00; box-shadow: inset 0 0 0 1.5px #FF8A00; }
.ag-ta { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; outline: none; font-size: 13.5px; }
.ag-ta:focus, .ag-num:focus-within { border-color: #B7C5BF; }
.btn.ag-ok { border: none; font-weight: 800; }
.btn.ag-ok.L { background: #FFC21C; color: #3D2E00; } .btn.ag-ok.E { background: #FF8A00; color: #fff; }
/* report window */
.ag-rmodal .ag-rf { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ag-prev { background: #F2F4F3; border-radius: 14px; padding: 14px; overflow: auto; max-height: 62vh; }
.ag-sheet { width: 1060px; margin: 0 auto; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); padding: 22px 26px; }
/* the printed page (A4 landscape, black & white friendly) */
.ag-print { font-size: 10px; color: #111; }
.ag-print .agp-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 8px; }
.ag-print h1 { font-size: 16px; margin: 0 0 2px; }
.ag-print .agp-h p { margin: 0; font-size: 10px; color: #333; }
.ag-print .agp-r { text-align: center; } .ag-print .agp-r b { display: block; font-size: 18px; } .ag-print .agp-r small { font-size: 9px; color: #444; }
.agp-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.agp-t th, .agp-t td { border: 1px solid #8F8F8F; padding: 0; text-align: center; font-size: 8px; height: 18px; overflow: hidden; }
.agp-t thead th { background: #EDEDED; font-weight: 700; line-height: 1.05; height: 24px; }
.agp-t thead th small { font-size: 6.5px; font-weight: 600; }
.agp-t th.w, .agp-t td.w { background: repeating-linear-gradient(45deg, #D8D8D8 0 1px, #fff 1px 4px); }
.agp-t thead th.w { background: #2B2B2B; color: #fff; }
.agp-t .nm { width: 128px; text-align: start; padding: 0 4px; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.agp-t .id { width: 50px; font-size: 7.5px; }
.agp-t .s { width: 24px; font-size: 8.5px; } .agp-t thead th.s:nth-last-child(3) { width: 32px; } .agp-t thead .s { font-size: 7px; }
.agp-t .b { position: relative; display: block; font-weight: 800; font-size: 8.5px; line-height: 18px; }
.agp-t .b sup { position: absolute; top: 0; left: 0; right: 0; font-size: 5.5px; line-height: 6px; font-weight: 700; }
.agp-t .b.P { background: #E3F8EC; } .agp-t .b.A { background: #FFE4E4; } .agp-t .b.L { background: #FFF4D3; } .agp-t .b.E { background: #FFEBD6; }
.agp-t tfoot td { background: #F4F4F4; font-weight: 700; }
.agp-key { font-size: 8.5px; color: #333; margin: 6px 0 0; }
.bw .agp-t .b { background: none !important; }
/* premium attendance report (coloured; the print window can switch to black & white) */
.agx { font-size: 10px; color: #1C2B26; -webkit-print-color-adjust: exact; print-color-adjust: exact; border: 1px solid #DCE5E0; border-radius: 6px; overflow: hidden; background: #fff; }
.agx-hb { display: flex; align-items: center; gap: 14px; background: var(--side1, #0B5A44); color: #fff; border-bottom: 4px solid #D4A94A; padding: 12px 18px; }
.agx-logo { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 3px solid #D4A94A; object-fit: contain; padding: 3px; flex: none; }
.agx-in .la { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: .2px; } .agx-in .ar { font-size: 24px; font-weight: 800; color: #F1D58A; line-height: 1.3; font-family: 'Amiri', 'Noto Naskh Arabic', var(--font); }
.agx-rt { margin-inline-start: auto; text-align: end; } .agx-rt b { display: inline-block; background: #D4A94A; color: #3B2A05; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 14px; } .agx-rt span { display: block; font-size: 9.5px; color: #D5E6DE; margin-top: 6px; }
.agx-inf { display: flex; gap: 0; background: #F3F8F5; border-bottom: 1px solid #DCE5E0; } .agx-inf > div { flex: 1; padding: 7px 18px; min-width: 0; } .agx-inf small { display: block; font-size: 8.5px; color: #5B6B64; } .agx-inf b { display: block; font-size: 11.5px; color: var(--side1, #0B5A44); font-weight: 800; }
.agx-bd { padding: 12px 18px 14px; }
.agx-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; } .agx-sm > div { border-radius: 10px; padding: 8px 12px; border: 1px solid; } .agx-sm b { display: block; font-size: 21px; line-height: 1.2; font-weight: 800; } .agx-sm span { font-size: 9.5px; } .agx-sm i { display: block; height: 4px; border-radius: 2px; margin-top: 5px; }
.agx-sm .r { background: #EAF7F0; border-color: #BFE6D1; color: #14623D; } .agx-sm .r i { background: #1F9D6A; } .agx-sm .A { background: #FDECEB; border-color: #F3C6C3; color: #9B2A22; } .agx-sm .A i { background: #D64545; }
.agx-sm .L { background: #FEF6DC; border-color: #F3DFA0; color: #7A5A05; } .agx-sm .L i { background: #E0A21A; } .agx-sm .E { background: #FDEEDD; border-color: #F3D0AB; color: #8A4A0A; } .agx-sm .E i { background: #E07B2A; }
.agx-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; } .agx-t thead { display: table-header-group; } .agx-t tr { break-inside: avoid; page-break-inside: avoid; }
.agx-t th { background: var(--side1, #0B5A44); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 0; text-align: center; line-height: 1.15; } .agx-t th small { display: block; font-size: 7px; font-weight: 600; color: #BFD9CD; } .agx-t th.w { background: #1C2B26; }
.agx-t th.nm, .agx-t td.nm { width: 142px; text-align: start; padding-inline: 8px; } .agx-t td.nm b { display: block; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agx-t td.nm small { display: block; font-size: 7.5px; color: #7A8A83; }
.agx-t th.s, .agx-t td.s { width: 24px; } .agx-t th.pc, .agx-t td.pc { width: 56px; }
.agx-t td { height: 24px; text-align: center; padding: 0; border-bottom: 1px solid #C9D5CF; border-inline-start: 1px solid #E1E8E4; } .agx-t td.nm { border-inline-start: 0; } .agx-t tbody tr:nth-child(even) td { background: #F8FBF9; }
.agx-t td.w { background: repeating-linear-gradient(45deg, #E4E9E6 0 2px, #F1F4F2 2px 4px) !important; }
.agx-d { position: relative; display: inline-flex; width: 15px; height: 15px; border-radius: 50%; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; color: #fff; font-style: normal; line-height: 1; vertical-align: middle; }
.agx-d sup { position: absolute; top: -6px; inset-inline: 0; text-align: center; font-size: 6px; font-weight: 700; color: #7A5A05; line-height: 6px; }
.agx-d.P { background: #1F9D6A; } .agx-d.A { background: #D64545; } .agx-d.L { background: #E0A21A; } .agx-d.E { background: #E07B2A; } .agx-d.W { background: #C9D1CD; }
.agx-wk { display: block; height: 100%; }
.agx-pl { display: inline-block; min-width: 18px; border-radius: 9px; padding: 1px 6px; font-size: 9.5px; font-weight: 800; font-style: normal; } .agx-pl.P { background: #D8F1E4; color: #14623D; } .agx-pl.A { background: #F8D3D1; color: #9B2A22; } .agx-pl.L { background: #FBE9B4; color: #7A5A05; } .agx-pl.E { background: #FBDDBD; color: #8A4A0A; }
.agx-bar { display: block; height: 5px; border-radius: 3px; background: #E3EBE7; overflow: hidden; margin: 2px 6px 1px; } .agx-bar i { display: block; height: 5px; background: #1F9D6A; } .agx-t td.pc b { font-size: 9.5px; font-weight: 800; }
.agx-ft { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #DCE5E0; font-size: 9px; color: #5B6B64; }
.agx-lk { display: flex; gap: 12px; flex-wrap: wrap; } .agx-lk span { display: inline-flex; align-items: center; gap: 4px; } .agx-lk .agx-d { width: 13px; height: 13px; font-size: 7.5px; }
.agx-sg { display: flex; gap: 22px; } .agx-sg > div { min-width: 120px; text-align: center; } .agx-sg i { display: block; height: 30px; border-bottom: 1px solid #8A9A93; margin-bottom: 3px; }
.agx .a4-sign { margin-top: 0; }
/* one person */
.agx-pg { display: grid; grid-template-columns: 190px 1fr; gap: 14px; margin-bottom: 12px; align-items: stretch; }
.agx-ringbox { border: 1px solid #DCE5E0; border-radius: 14px; background: #F8FBF9; text-align: center; padding: 12px 8px; } .agx-ringbox p { margin: 6px 0 0; font-size: 9px; color: #5B6B64; }
.agx-ring { width: 124px; height: 124px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: conic-gradient(#1F9D6A calc(var(--p) * 1%), #F3C9C6 0); }
.agx-ring span { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--side1, #0B5A44); } .agx-ring small { font-size: 8.5px; font-weight: 600; color: #5B6B64; }
.agx-tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .agx-tl > div { border-radius: 12px; padding: 12px 12px; border: 1px solid; display: flex; flex-direction: column; justify-content: center; } .agx-tl b { font-size: 28px; line-height: 1.1; font-weight: 800; } .agx-tl span { font-size: 10px; }
.agx-tl .P { background: #EAF7F0; border-color: #BFE6D1; color: #14623D; } .agx-tl .A { background: #FDECEB; border-color: #F3C6C3; color: #9B2A22; } .agx-tl .L { background: #FEF6DC; border-color: #F3DFA0; color: #7A5A05; } .agx-tl .E { background: #FDEEDD; border-color: #F3D0AB; color: #8A4A0A; } .agx-tl .M { background: #F3F6F5; border-color: #DCE5E0; color: #44524C; }
.agx-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; } .agx-box { border: 1px solid #DCE5E0; border-radius: 14px; padding: 10px 12px; } .agx-box h4 { margin: 0 0 8px; font-size: 11.5px; color: var(--side1, #0B5A44); font-weight: 800; }
.agx-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; } .agx-cal .h { font-size: 8.5px; font-weight: 700; color: #5B6B64; padding-bottom: 2px; }
.agx-cal .c { border-radius: 8px; min-height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; line-height: 1.1; } .agx-cal .c em { font-style: normal; font-size: 9px; font-weight: 800; }
.agx-cal .P { background: #D8F1E4; color: #14623D; } .agx-cal .A { background: #F8D3D1; color: #9B2A22; } .agx-cal .L { background: #FBE9B4; color: #7A5A05; } .agx-cal .E { background: #FBDDBD; color: #8A4A0A; } .agx-cal .W { background: repeating-linear-gradient(45deg, #E4E9E6 0 2px, #F1F4F2 2px 4px); color: #9AA6A0; } .agx-cal .N { background: #F6F8F7; color: #9AA6A0; }
.agx-ev { width: 100%; border-collapse: collapse; font-size: 10px; } .agx-ev td { padding: 5px 4px; border-bottom: 1px solid #D5DEDA; text-align: start; } .agx-ok { margin: 8px 0; font-size: 11px; color: #14623D; font-weight: 700; }
/* black & white */
.bw .agx { border-color: #111 !important; } .bw .agx-hb { border-bottom: 3px solid #111 !important; } .bw .agx-logo { border: 2px solid #111 !important; } .bw .agx-rt b { border: 1.5px solid #111 !important; }
.bw .agx-inf, .bw .agx-box, .bw .agx-ringbox, .bw .agx-sm > div, .bw .agx-tl > div { border: 1px solid #555 !important; }
.bw .agx-t th { border-bottom: 2px solid #111 !important; } .bw .agx-t td { border-bottom: 1px solid #bbb !important; }
.bw .agx-d { border: 1.5px solid #111 !important; font-weight: 800; } .bw .agx-d.A { border-radius: 3px !important; } .bw .agx-d.L { border-style: dashed !important; } .bw .agx-d.E { border-radius: 3px !important; border-style: dotted !important; }
.bw .agx-pl, .bw .agx-cal .c { border: 1px solid #555 !important; } .bw .agx-t td.w, .bw .agx-cal .W { background: repeating-linear-gradient(45deg, #bbb 0 1px, #fff 1px 4px) !important; }
.bw .agx-ring { background: conic-gradient(#111 calc(var(--p) * 1%), #ddd 0) !important; } .bw .agx-ring span { border: 0 !important; }

@media (max-width: 700px) {
  .ag { padding: 12px 10px 10px; }
  .ag-top { gap: 8px; } .ag-rep { margin-inline-start: 0; }
  .ag-pick { width: 100%; } .ag-chip { padding: 6px 9px; }
  .ag-t .ag-nm { min-width: 128px; max-width: 150px; padding: 6px 8px; }
  .ag-who .av, .ag-who .fa-av { display: none; }
  .ag-sq { width: 26px; height: 26px; border-radius: 7px; }
  .ag-t thead th { min-width: 34px; }
  .ag-wrap { max-height: calc(100vh - 230px); }
}

/* ---- Edit fees (simple): months as tiles, tap one, choose, preview */
.fq-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fq-k { display: flex; align-items: center; gap: 12px; border: 1px solid #E7EDEA; background: #FAFCFB; border-radius: 16px; padding: 12px 14px; flex-wrap: wrap; }
.fq-k .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }
.fq-k small { display: block; color: #6B7C75; font-size: 11.5px; } .fq-k b { font-size: 20px; } .fq-k b s { font-size: 13px; color: #9AA8A2; font-weight: 600; } .fq-k .sp { flex: 1; }
.fq-k.rd b { color: #B0342A; } .fq-k.cr { background: #F7F4FF; border-color: #E2DAFF; } .fq-k.cr b { color: #5B3FC4; }
.fq-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; border: 1px solid #EEF2F0; border-radius: 20px; margin-top: 14px; overflow: hidden; }
.fq-l { padding: 16px 18px; min-width: 0; }
.fq-rp { padding: 16px 18px; background: #FBFCFC; border-inline-start: 1px solid #EEF2F0; }
.fq-lbl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; color: #5E6F66; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.fq-lbl small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #8A9A93; font-size: 12px; } .fq-lbl .sp { flex: 1; }
.fq-others { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fq-o { display: flex; align-items: center; gap: 12px; text-align: start; border: 1.5px solid #E5EBE8; background: #fff; border-radius: 15px; padding: 10px 13px; font: inherit; color: inherit; cursor: pointer; }
.fq-o .ic { font-size: 18px; } .fq-o .g { flex: 1; min-width: 0; } .fq-o b { font-size: 13.5px; } .fq-o small { display: block; font-size: 12px; color: #7A8B84; } .fq-o .a { font-size: 16px; }
.fq-months { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.fq-m { position: relative; text-align: start; border: 1.5px solid #E5EBE8; background: #fff; border-radius: 15px; padding: 10px 11px; min-height: 82px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: transform .12s, box-shadow .12s; }
.fq-m:hover, .fq-o:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,51,40,.08); }
.fq-m .n { font-size: 13px; font-weight: 800; } .fq-m .n i { font-style: normal; font-size: 10.5px; color: #8A9A93; font-weight: 600; margin-inline-start: 3px; }
.fq-m b { font-size: 16px; margin-top: 4px; } .fq-m .st { font-size: 10.5px; font-weight: 800; }
.fq-m .rc { position: absolute; top: 9px; inset-inline-end: 9px; font-size: 9.5px; color: #7A8B84; font-weight: 700; }
.fq-m .bar { height: 4px; border-radius: 3px; background: #EADFC3; overflow: hidden; margin-top: 4px; } .fq-m .bar i { display: block; height: 100%; background: #E0A526; }
.s-paid.fq-m, .s-paid.fq-o { background: #F1FAF5; border-color: #C6E8D4; } .s-paid .st, .s-paid small { color: #13814A !important; }
.s-ahead.fq-m, .s-ahead.fq-o { background: #F6F2FF; border-color: #DCCFFF; } .s-ahead .st { color: #5B3FC4; }
.s-owes.fq-m, .s-owes.fq-o { background: #FFF4F2; border-color: #F6CFC9; } .s-owes .st, .s-owes small { color: #B0342A !important; } .s-owes.fq-o .a { color: #B0342A; }
.s-part.fq-m, .s-part.fq-o { background: #FFF9EC; border-color: #F3DFB0; } .s-part .st { color: #8A6417; }
.s-free.fq-m, .s-free.fq-o, .s-none.fq-m, .s-removed.fq-m { background: #F6F8F7; border-color: #E5EBE8; } .s-free .st, .s-none .st, .s-removed .st { color: #7A8B84; }
.s-coming.fq-m { background: #fff; border-style: dashed; border-color: #D5DFDA; } .s-coming b, .s-coming .st { color: #A3B1AB; }
.fq-m.sel, .fq-o.sel { box-shadow: 0 0 0 3px #0B3328 !important; border-color: #0B3328 !important; }
.fq-leg { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: #46594F; margin-top: 12px; }
.fq-leg span { display: inline-flex; align-items: center; gap: 6px; } .fq-leg i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid #E5EBE8; }
.fq-leg i.s-paid { background: #C6E8D4; border-color: #C6E8D4; } .fq-leg i.s-ahead { background: #DCCFFF; border-color: #DCCFFF; } .fq-leg i.s-part { background: #F3DFB0; border-color: #F3DFB0; } .fq-leg i.s-owes { background: #F6CFC9; border-color: #F6CFC9; } .fq-leg i.s-free { background: #E5EBE8; } .fq-leg i.s-coming { border-style: dashed; border-color: #C9D3CE; }
.fq-r { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #EEF2F0; border-radius: 15px; margin-bottom: 8px; flex-wrap: wrap; }
.fq-r .ic { width: 38px; height: 38px; border-radius: 12px; background: #EEF3F0; display: grid; place-items: center; font-size: 16px; flex: none; }
.fq-r .g { flex: 1; min-width: 180px; } .fq-r b { font-size: 13.5px; } .fq-r small { color: #7A8B84; font-size: 12px; } .fq-r .a { font-size: 16px; }
.fq-r .cv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fq-r .cv span { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 3px 8px; background: #F1FAF5; color: #13814A; } .fq-r .cv span.ah { background: #F6F2FF; color: #5B3FC4; } .fq-r .cv span.cr { background: #F1F4F3; color: #5E6F66; } .fq-r .cv span.rf { background: #FFF3DC; color: #8A6417; }
.fq-r .cv span span { background: none !important; padding: 0; }
.fq-rb { display: flex; gap: 6px; }
.fq-logh { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-top: 1px solid #EEF2F0; background: none; font: inherit; font-size: 12.5px; color: #5E6F66; padding: 12px 2px 4px; margin-top: 10px; cursor: pointer; text-align: start; }
.fq-logh span { margin-inline-start: auto; font-weight: 700; color: #0B6B4B; }
.fq-ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fq-ph b { display: block; font-size: 15.5px; } .fq-ph small { color: #6B7C75; font-size: 12.5px; }
.fq-bd { width: 46px; height: 46px; border-radius: 14px; background: #0B3328; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; letter-spacing: .5px; }
.fq-bd.s-paid { background: #1E9E5A; } .fq-bd.s-ahead { background: #5B3FC4; } .fq-bd.s-owes { background: #D0463B; } .fq-bd.s-part { background: #E0A526; } .fq-bd.s-coming { background: #9AA8A2; } .fq-bd.s-free, .fq-bd.s-none, .fq-bd.s-removed { background: #7A8B84; }
.fq-big { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 1.5px solid #E1E8E4; background: #fff; border-radius: 14px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; margin-bottom: 8px; transition: border-color .12s; }
.fq-big:hover { border-color: #9FC9B2; } .fq-big .i { width: 32px; height: 32px; border-radius: 10px; background: #F1F4F3; display: grid; place-items: center; font-size: 16px; flex: none; }
.fq-big b { display: block; font-size: 14px; } .fq-big small { color: #7A8B84; font-size: 12px; }
.fq-big.pri { background: #0B3328; color: #fff; border-color: #0B3328; } .fq-big.pri .i { background: rgba(255,255,255,.14); } .fq-big.pri small { color: #BFD8CC; }
.fq-mode { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .fq-mode b { font-size: 14px; }
.fq-back { border: 0; background: #F1F4F3; border-radius: 9px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fq-q { font-size: 12.5px; font-weight: 800; color: #33463D; margin: 2px 0 8px; }
.fq-opt { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: start; border: 1.5px solid #E5EBE8; background: #fff; border-radius: 13px; padding: 10px 12px; margin-bottom: 7px; font: inherit; color: inherit; cursor: pointer; }
.fq-opt.on { border-color: #0B6B4B; background: #F4FBF7; }
.fq-opt .ra { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C3CEC9; flex: none; margin-top: 1px; } .fq-opt.on .ra { border: 5px solid #0B6B4B; }
.fq-opt b { display: block; font-size: 13.5px; } .fq-opt small { color: #7A8B84; font-size: 12px; }
.fq-res { background: #EEF7F2; border-radius: 13px; padding: 11px 13px; font-size: 12.8px; line-height: 1.75; color: #24433A; margin-top: 10px; }
.fq-res > b { display: block; color: #0B3328; }
.fq-why { margin-top: 12px; }
.fq-go { display: flex; gap: 8px; margin-top: 14px; } .fq-go .btn { flex: 1; }
@media (max-width: 1000px) { .fq-body { grid-template-columns: 1fr; } .fq-rp { border-inline-start: 0; border-top: 1px solid #EEF2F0; } .fq-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fq-months { grid-template-columns: repeat(3, 1fr); } .fq-l, .fq-rp { padding: 12px; } }

.fq-k .fq-kb { display: flex; gap: 6px; flex-wrap: wrap; }
.fq-k { flex-wrap: nowrap; } .fq-k > div:not(.fq-kb) { min-width: 0; }
.fq-k .btn { white-space: nowrap; }
.fq-k.cr { flex-wrap: wrap; }
@media (max-width: 640px) { .fq-m .rc { position: static; order: 9; font-size: 9px; } }
/* time a record was saved, shown small under its date in reports */
.a4-tm { display: block; font-size: 8.5px; color: #7A8B84; font-weight: 600; letter-spacing: .3px; margin-top: 1px; }
.a4-dt { white-space: nowrap; }
.a4-tm { white-space: nowrap; }

/* ---------- Monthly · Assignments · Quizzes: year by month + month window ---------- */
.mv-kpi { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.mv-kpi > div { border: 1px solid #E3E8E5; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; background: #fff; min-width: 0; }
.mv-kpi i { font-style: normal; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; }
.mv-kpi small { display: block; color: #6B7A72; font-size: 12px; } .mv-kpi b { font-size: 21px; }
.mv-kpi .hero { background: linear-gradient(135deg, #0A4D3A, #13814A); border: none; color: #fff; } .mv-kpi .hero small { color: #CFE5D8; } .mv-kpi .hero i { background: rgba(255,255,255,.14); }
.mv-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.mv-th { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 14px; margin: 0 0 8px 2px; } .mv-th small { color: #6B7A72; font-weight: 600; }
.mv-months { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; }
.mv-mo { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 15px; padding: 11px 11px 10px; border: 1.5px solid #E3E8E5; background: #fff; position: relative; min-height: 104px; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.mv-mo:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,59,46,.10); }
.mv-mo .n { font-weight: 800; font-size: 14px; } .mv-mo .n i { font-style: normal; color: #8A978F; font-weight: 600; font-size: 11px; margin-inline-start: 3px; }
.mv-mo .mk { display: flex; gap: 4px; margin: 8px 0 6px; } .mv-mo .mk span { font-size: 13px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #F1F4F2; }
.mv-mo .mk .pl { background: none; color: #B8C2BC; }
.mv-mo .s { font-size: 11.5px; font-weight: 700; line-height: 1.3; } .mv-mo .bar { height: 5px; border-radius: 9px; background: #EEF1EF; margin-top: auto; overflow: hidden; } .mv-mo .bar b { display: block; height: 100%; border-radius: 9px; }
.mv-mo.done { background: #F0F8F3; border-color: #BFE3CC; } .mv-mo.done .s { color: #13814A; } .mv-mo.done .bar b { background: #13814A; }
.mv-mo.part { background: #FFFAEC; border-color: #F0DA9E; } .mv-mo.part .s { color: #8A6510; } .mv-mo.part .bar b { background: #D9A93A; }
.mv-mo.empty { border-style: dashed; background: #FBFCFB; } .mv-mo.empty .s { color: #9AA69F; font-weight: 600; }
.mv-mo.sel { border: 2.5px solid #0D3B2E; box-shadow: 0 6px 18px rgba(13,59,46,.14); }
.mv-mo .now { position: absolute; top: 9px; inset-inline-end: 9px; font-size: 9.5px; font-weight: 800; background: #0D3B2E; color: #fff; border-radius: 99px; padding: 2px 7px; letter-spacing: .04em; }
.mv-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #5B6B63; margin: 4px 0 18px 2px; } .mv-leg span { display: flex; align-items: center; gap: 6px; }
.mv-leg i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; } .mv-leg i.dash { border: 1.5px dashed #B8C2BC; }
.mv-dh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border-top: 1px solid #EEF1EF; padding-top: 18px; flex-wrap: wrap; }
.mv-dh .bd, .mv-hd .bd { width: 46px; height: 46px; border-radius: 14px; background: #0D3B2E; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; line-height: 1.1; text-align: center; flex: none; }
.mv-dh .g { flex: 1; min-width: 160px; } .mv-dh b { font-size: 18px; display: block; } .mv-dh small { color: #6B7A72; }
.mv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.mv-it { border: 1px solid #E3E8E5; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.mv-it .ih { display: flex; gap: 12px; align-items: flex-start; } .mv-it .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex: none; }
.mv-it .g { flex: 1; min-width: 0; } .mv-it .g b { font-size: 16px; display: block; } .mv-it .g small { color: #6B7A72; font-size: 12.5px; }
.mv-it .tag { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; display: inline-block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.mv-it.k-monthly .ic, .mv-it.k-monthly .tag { background: #E8F1FD; } .mv-it.k-monthly .tag { color: #2F5BB7; }
.mv-it.k-assignment .ic, .mv-it.k-assignment .tag { background: #F2ECFD; } .mv-it.k-assignment .tag { color: #6A3FB5; }
.mv-it.k-quiz .ic, .mv-it.k-quiz .tag { background: #FFF3D6; } .mv-it.k-quiz .tag { color: #7A5D12; }
.mv-it .chips2 { display: flex; flex-wrap: wrap; gap: 5px; } .mv-it .chips2 span { font-size: 11.5px; background: #F1F4F2; border-radius: 8px; padding: 3px 8px; color: #3D4C44; }
.mv-it .stats { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; background: #F7F9F8; border-radius: 13px; padding: 11px 13px; }
.mv-it .stats small { display: block; color: #6B7A72; font-size: 11.5px; margin-bottom: 5px; } .mv-it .stats b { font-size: 15px; }
.mv-it .pb { height: 7px; border-radius: 9px; background: #E3E8E5; overflow: hidden; margin-top: 6px; } .mv-it .pb i { display: block; height: 100%; background: #13814A; border-radius: 9px; } .mv-it .pb.y i { background: #D9A93A; }
.mv-it .act { display: flex; gap: 8px; } .mv-it .act .btn-gold { flex: 1; justify-content: center; }
.mv-add { all: unset; box-sizing: border-box; cursor: pointer; border: 2px dashed #D5DED9; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #3D6B57; font-weight: 700; min-height: 140px; font-size: 14px; background: #FBFCFB; text-align: center; padding: 12px; }
.mv-add:hover { border-color: #13814A; background: #F0F8F3; } .mv-add small { color: #8A978F; font-weight: 500; margin-top: 4px; }
/* month window */
.modal.mv-modal { max-width: 1400px; width: calc(100vw - 32px); }
.modal.mv-modal > .modal-head { display: none; }
.modal.mv-modal > .modal-body { padding: 0; }
.mv-load { padding: 60px; text-align: center; color: #6B7A72; }
.mv-hd { background: linear-gradient(135deg, #0A4D3A 0%, #0F6B4A 60%, #13814A 100%); color: #fff; padding: 20px 24px 0; }
.mv-hd .row { display: flex; align-items: center; gap: 14px; } .mv-hd .bd { width: 54px; height: 54px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.mv-hd .g { min-width: 0; } .mv-hd h1 { margin: 0; font-size: 22px; } .mv-hd small { color: #CFE5D8; font-size: 13px; }
.mv-hd .sp, .mv-tools .sp, .mv-foot .sp { flex: 1; }
.mv-hd .mnav { display: flex; gap: 6px; } .mv-hd .mnav button, .mv-hd .x { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.13); font-size: 13px; font-weight: 700; }
.mv-hd .mnav button:hover, .mv-hd .x:hover { background: rgba(255,255,255,.24); } .mv-hd .x { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: 17px; }
.mv-hd .hb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mv-hd .hk { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 11px 14px; min-width: 0; }
.mv-hd .hk small { display: block; font-size: 12px; } .mv-hd .hk b { font-size: 21px; } .mv-hd .hk b.tp { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; vertical-align: bottom; }
.mv-hd .hk em { font-style: normal; font-size: 12px; color: #CFE5D8; margin-inline-start: 4px; }
.mv-hd .tabs { display: flex; gap: 4px; margin-top: 16px; } .mv-hd .tabs button { all: unset; cursor: pointer; padding: 12px 18px; font-weight: 700; font-size: 14px; border-radius: 14px 14px 0 0; color: #D8EBE0; } .mv-hd .tabs .on { background: #fff; color: #0D3B2E; }
.mv-bd { padding: 20px 24px 24px; background: #fff; }
.mv-sec { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 15px; margin: 0 0 12px; } .mv-sec small { color: #6B7A72; font-weight: 600; font-size: 12.5px; }
.mv-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 22px; }
.mv-subs .sb { border: 1px solid #E3E8E5; border-radius: 16px; padding: 13px 14px; background: #fff; }
.mv-subs .t { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .mv-subs b.n { font-size: 16px; }
.mv-subs .avg { font-size: 23px; font-weight: 800; margin: 6px 0 2px; } .mv-subs .avg i { font-style: normal; font-size: 12px; color: #6B7A72; font-weight: 600; margin-inline-start: 4px; }
.mv-subs .ring { height: 6px; border-radius: 9px; background: #EEF1EF; overflow: hidden; margin: 6px 0 8px; } .mv-subs .ring i { display: block; height: 100%; border-radius: 9px; }
.mv-subs .mm { display: flex; justify-content: space-between; font-size: 11.5px; color: #6B7A72; } .mv-subs .mm b { color: #1D2A23; }
.mv-modal .pill { white-space: nowrap; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.mv-modal .p-ok { background: #E6F4EC; color: #13814A; } .mv-modal .p-w { background: #FFF3D6; color: #7A5D12; }
.mv-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.mv-search { display: flex; align-items: center; gap: 8px; border: 1px solid #DDE3E0; border-radius: 12px; padding: 0 12px; width: 260px; max-width: 100%; color: #8A978F; }
.mv-search input { border: none; outline: none; padding: 10px 0; font: inherit; font-size: 13.5px; width: 100%; background: none; }
.mv-tw { overflow-x: auto; border-radius: 14px; }
.mv-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.mv-t th { font-size: 12px; color: #6B7A72; font-weight: 700; text-align: center; padding: 10px 6px; background: #F6F8F7; border-bottom: 1px solid #E3E8E5; white-space: nowrap; }
.mv-t th .ar { display: block; font-size: 14px; color: #1D2A23; font-weight: 800; } .mv-t th small { font-weight: 600; font-size: 10.5px; }
.mv-t td { padding: 9px 6px; border-bottom: 1px solid #EEF1EF; text-align: center; } .mv-t tbody tr { cursor: pointer; } .mv-t tbody tr:hover td { background: #F7FAF8; }
.mv-t .nm { text-align: start; padding-inline-start: 12px; } .mv-t .nm .w { display: flex; align-items: center; gap: 10px; } .mv-t .nm b { display: block; font-size: 14px; white-space: nowrap; } .mv-t .nm small { color: #8A978F; font-size: 11.5px; }
.mv-modal .rk { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; background: #F1F4F2; color: #3D4C44; flex: none; }
.mv-modal .r1 { background: linear-gradient(135deg, #F7DD8C, #E2B547); color: #5A400A; } .mv-modal .r2 { background: #E7ECEF; color: #3D4C55; } .mv-modal .r3 { background: #F3DCC8; color: #7A4A1F; }
.mv-modal .c { display: inline-block; min-width: 44px; padding: 6px 8px; border-radius: 10px; font-weight: 800; font-size: 13.5px; }
.mv-modal .g4 { background: #E3F4EA; color: #0E6B3C; } .mv-modal .g3 { background: #EEF6E6; color: #4A7A1C; } .mv-modal .g2 { background: #FFF5DA; color: #86610D; } .mv-modal .g1 { background: #FDECEA; color: #B42318; }
.mv-modal .g0 { border: 1.5px dashed #CBD5CF; color: #9AA69F; font-weight: 600; background: #fff; } .mv-modal .c.half { box-shadow: inset 0 0 0 1.5px #E2B547; }
.mv-t .tot b { font-size: 15px; } .mv-t .tot small { color: #6B7A72; }
.mv-t .bar { width: 80px; height: 7px; border-radius: 9px; background: #EEF1EF; overflow: hidden; display: inline-block; vertical-align: middle; margin-inline-end: 8px; } .mv-t .bar i { display: block; height: 100%; border-radius: 9px; background: #13814A; }
.mv-t tr.low td { background: #FFFBFA; }
.mv-foot { display: flex; gap: 16px; align-items: center; font-size: 12px; color: #5B6B63; margin-top: 14px; flex-wrap: wrap; } .mv-foot > span { display: flex; gap: 6px; align-items: center; }
.mv-foot i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.mv-cards { display: none; }
.mv-cards .mv-sc { background: #fff; border: 1px solid #E3E8E5; border-radius: 18px; padding: 13px; margin-bottom: 10px; cursor: pointer; } .mv-cards .mv-sc.low { background: #FFFBFA; }
.mv-cards .mv-st { display: flex; align-items: center; gap: 10px; } .mv-cards .mv-sg0 { flex: 1; min-width: 0; } .mv-cards .mv-sg0 b { font-size: 15px; display: block; } .mv-cards .mv-sg0 small { color: #8A978F; font-size: 11.5px; }
.mv-cards .mv-pc { text-align: end; } .mv-cards .mv-pc b { font-size: 18px; } .mv-cards .mv-pc small { display: block; color: #6B7A72; font-size: 11px; }
.mv-cards .mv-sg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.mv-cards .mv-sg div { background: #F7F9F8; border-radius: 11px; padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; min-width: 0; }
.mv-cards .mv-sg div > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mv-cards .mv-sg .c { min-width: 34px; padding: 3px 6px; font-size: 13px; text-align: center; }
@media (max-width: 1100px) { .mv-kpi { grid-template-columns: 1fr 1fr; } .mv-terms { grid-template-columns: 1fr; } .mv-hd .hb { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mv-months { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 6px; margin: -10px -2px 0; }
  .mv-mo { min-width: 92px; scroll-snap-align: start; min-height: 96px; } .mv-mo .now { top: -8px; inset-inline-end: 6px; }
  .mv-list { grid-template-columns: 1fr; } .mv-leg { display: none; }
  .modal.mv-modal { width: 100vw; max-width: 100vw; }
  .mv-hd { padding: 14px 14px 0; } .mv-hd h1 { font-size: 18px; } .mv-hd .row { flex-wrap: wrap; } .mv-hd .mnav { order: 5; width: 100%; justify-content: space-between; }
  .mv-hd .hb { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .mv-hd .hk { padding: 8px 10px; } .mv-hd .hk b { font-size: 17px; } .mv-hd .hk em { display: block; margin: 0; font-size: 11px; }
  .mv-hd .hk:nth-child(2) { display: none; } .mv-hd .tabs button { padding: 10px 12px; font-size: 13px; }
  .mv-bd { padding: 14px; } .mv-subs { display: flex; overflow-x: auto; gap: 8px; } .mv-subs .sb { min-width: 140px; }
  .mv-tw { display: none; } .mv-cards { display: block; } .mv-search { width: 100%; } .mv-tools .seg { width: 100%; overflow-x: auto; }
}
.mv-t td:last-child { white-space: nowrap; }
.mv-mo .now { top: -8px; }
.mv-months { padding-top: 8px; }

@media (max-width: 760px) {
  .mv-hd .row { flex-wrap: wrap; gap: 10px; } .mv-hd .row .g { flex: 1 1 0; } .mv-hd .row .sp { display: none; } .mv-hd .x { order: 3; }
  .mv-hd .mnav { order: 4; } .mv-hd .hb { grid-template-columns: 1fr 1fr; } .mv-hd .hk b.tp { font-size: 14px; }
  .mv-kpi > div { padding: 12px; } .mv-kpi i { display: none; } .mv-kpi b { font-size: 19px; } .mv-kpi .hero small[style] { display: block !important; }
  .mv-cards .mv-sg0 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- salary advance window: summary + history on the left, clear actions on the right ---------- */
.modal.adv-modal { max-width: 1100px; width: calc(100vw - 32px); }
.modal.adv-modal > .modal-head { display: none; } .modal.adv-modal > .modal-body { padding: 0; gap: 0; }
.adv-hd { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #EEF1EF; }
.adv-av { width: 48px; height: 48px; border-radius: 50%; background: #0D3B2E; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.adv-hd .g { min-width: 0; } .adv-hd .g b { font-size: 19px; display: block; } .adv-hd .g small { color: #6B7A72; font-size: 13px; } .adv-hd .sp { flex: 1; }
.adv-st { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: #FDECEA; color: #B42318; white-space: nowrap; } .adv-st.ok { background: #E6F4EC; color: #13814A; }
.adv-x { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 12px; background: #F1F4F2; display: grid; place-items: center; font-size: 17px; flex: none; } .adv-x:hover { background: #E3E8E5; }
.adv-body { display: grid; grid-template-columns: minmax(0, 1fr) 430px; }
.adv-l { padding: 20px 22px; border-inline-end: 1px solid #EEF1EF; min-width: 0; }
.adv-k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adv-k3 > div { border: 1px solid #E3E8E5; border-radius: 16px; padding: 13px 15px; background: #fff; } .adv-k3 small { display: block; color: #6B7A72; font-size: 12px; } .adv-k3 b { font-size: 23px; }
.adv-k3 .g { background: #F0F8F3; border-color: #BFE3CC; } .adv-k3 .g b { color: #13814A; } .adv-k3 .r { background: #FFF6F5; border-color: #F6D3CF; } .adv-k3 .r b { color: #B42318; }
.adv-pb { height: 9px; border-radius: 9px; background: #EEF1EF; overflow: hidden; margin: 14px 0 6px; } .adv-pb i { display: block; height: 100%; background: linear-gradient(90deg, #13814A, #2FBF85); border-radius: 9px; }
.adv-pl { font-size: 13px; color: #3D4C44; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adv-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0; font-size: 13.5px; background: #F7F9F8; border-radius: 14px; padding: 14px 16px; } .adv-kv span { color: #6B7A72; }
.adv-sec { font-weight: 800; font-size: 14px; margin: 18px 0 10px; } .adv-sec small { color: #6B7A72; font-weight: 600; font-size: 12px; margin-inline-start: 6px; }
.adv-tl { position: relative; padding-inline-start: 22px; } .adv-tl:before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: #E3E8E5; }
.adv-tl .ev { position: relative; margin-bottom: 12px; font-size: 13.5px; } .adv-tl .ev:before { content: ""; position: absolute; inset-inline-start: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #13814A; box-sizing: border-box; }
.adv-tl .ev.o:before { border-color: #B42318; } .adv-tl .ev.e:before { border-color: #D9A93A; }
.adv-tl .ev .a { float: inline-end; font-weight: 800; } .adv-tl .ev .a.gr { color: #13814A; } .adv-tl .ev small { display: block; color: #8A978F; font-size: 12px; margin-top: 2px; }
.adv-r { padding: 20px 22px; background: #FAFBFA; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.adv-q { font-size: 12.5px; font-weight: 800; color: #6B7A72; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 2px; }
.adv-big { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: center; border: 1.5px solid #E3E8E5; background: #fff; border-radius: 16px; padding: 13px 14px; transition: border-color .12s, transform .12s; }
.adv-big:hover { border-color: #0D3B2E; transform: translateY(-1px); }
.adv-big .i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: none; } .adv-big b { display: block; font-size: 14.5px; } .adv-big small { color: #6B7A72; font-size: 12.5px; }
.adv-big.g .i { background: #E6F4EC; } .adv-big.r .i { background: #FDECEA; } .adv-big.y .i { background: #FFF3D6; } .adv-big.b .i { background: #E8F1FD; }
.adv-mode { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .adv-mode b { font-size: 15px; }
.adv-back { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 700; background: #F1F4F2; border-radius: 10px; padding: 7px 10px; }
.adv-amt { font-size: 20px !important; font-weight: 800; }
.adv-bigw { display: flex; flex-direction: column; gap: 4px; } .adv-bigw small { color: #8A978F; font-size: 12px; }
.adv-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-res { background: #F0F8F3; border: 1px solid #CDE8D6; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.75; }
.adv-res b.t { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #13814A; } .adv-res s { color: #9AA69F; }
.adv-warn { background: #FFF8EA; border: 1px solid #F0DA9E; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #6B4E0E; line-height: 1.55; }
.adv-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; border: 1.5px solid #E3E8E5; border-radius: 14px; padding: 11px 12px; background: #fff; font-size: 13px; }
.adv-opt .ra { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B8C2BC; flex: none; margin-top: 2px; box-sizing: border-box; }
.adv-opt.on { border-color: #13814A; background: #F3FAF6; } .adv-opt.on .ra { border: 5px solid #13814A; } .adv-opt b { display: block; font-size: 13.5px; } .adv-opt small { color: #6B7A72; }
.adv-opt.off { opacity: .55; cursor: not-allowed; }
.adv-go { display: flex; gap: 10px; margin-top: 4px; } .adv-go .btn { flex: 1; justify-content: center; padding: 13px; }
@media (max-width: 900px) {
  .modal.adv-modal { width: 100vw; max-width: 100vw; }
  .adv-body { grid-template-columns: 1fr; } .adv-l { border: none; padding: 14px; } .adv-r { padding: 14px; border-top: 1px solid #EEF1EF; }
  .adv-hd { padding: 14px; flex-wrap: wrap; } .adv-hd .g { flex: 1 1 0; } .adv-hd .sp { display: none; } .adv-st { order: 5; }
  .adv-k3 b { font-size: 18px; } .adv-k3 > div { padding: 10px; }
}
.adv-body { grid-template-areas: "sum act" "his act"; grid-template-rows: auto 1fr; } .adv-l { grid-area: sum; padding-bottom: 0; } .adv-h { grid-area: his; padding: 0 22px 20px; border-inline-end: 1px solid #EEF1EF; } .adv-r { grid-area: act; }
@media (max-width: 900px) { .adv-body { grid-template-areas: "sum" "act" "his"; } .adv-h { padding: 14px; border: none; border-top: 1px solid #EEF1EF; } .adv-l .adv-kv { margin-bottom: 4px; } }
@media (max-width: 900px) { .adv-hd .g { flex: 1 1 calc(100% - 130px); } .adv-hd .g b { font-size: 17px; } .adv-hd .adv-x { order: 3; } .adv-st { order: 5; margin-inline-start: 62px; } }

/* ---------- home page editing (main admin): one button → every edit button ---------- */
.le-fabw { position: fixed; z-index: 45; inset-inline-end: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.le-fab { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; background: #0D3B2E; color: #fff; font-weight: 800; font-size: 15px; border-radius: 99px; padding: 13px 20px 13px 14px; box-shadow: 0 14px 34px rgba(13,59,46,.35), 0 0 0 4px rgba(232,200,121,.35); transition: transform .15s; }
.le-fab:hover { transform: translateY(-2px); } .le-fab i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: #E8C879; color: #0D3B2E; display: grid; place-items: center; font-size: 15px; }
.le-fab small { display: block; font-weight: 500; font-size: 11px; color: #BFD8CB; }
.le-back { all: unset; cursor: pointer; background: #fff; color: #0D3B2E; font-weight: 700; font-size: 12.5px; border-radius: 99px; padding: 8px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.le-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; background: #0D3B2E; color: #fff; padding: 10px 18px; font-size: 13.5px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.le-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #E8C879; box-shadow: 0 0 0 4px rgba(232,200,121,.25); flex: none; }
.le-bar small { color: #BFD8CB; } .le-bar .sp { flex: 1; } .le-lg { display: flex; background: rgba(255,255,255,.12); border-radius: 10px; padding: 3px; }
.le-lg button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; } .le-lg .on { background: #fff; color: #0D3B2E; }
.le-done { all: unset; cursor: pointer; background: #E8C879; color: #0D3B2E; border-radius: 10px; padding: 8px 16px; font-weight: 800; }
.le-on [data-ek] { outline: 2px dashed rgba(13,59,46,.35); outline-offset: 6px; border-radius: 6px; cursor: pointer; transition: outline-color .15s, background .15s; }
.le-on [data-ek]:not(.ph-badge) { position: relative; }
.le-on [data-ek]:hover { outline-color: #13814A; background: rgba(19,129,74,.05); }
.le-on [data-ek]:after { content: "✎"; position: absolute; top: -14px; inset-inline-end: -14px; width: 26px; height: 26px; border-radius: 50%; background: #0D3B2E; color: #fff; font-size: 13px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.2); font-family: Inter, sans-serif; font-weight: 400; letter-spacing: 0; line-height: 1; }
.le-on .land-depts { opacity: .55; pointer-events: none; }
.le-pen { position: absolute; z-index: 6; display: flex; gap: 6px; top: 12px; inset-inline-start: 12px; }
.le-pen button { all: unset; cursor: pointer; background: rgba(255,255,255,.96); color: #0D3B2E; font-weight: 700; font-size: 12.5px; border-radius: 10px; padding: 7px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.18); white-space: nowrap; }
.le-pen button.k { background: #0D3B2E; color: #fff; } .le-pen button:hover { transform: translateY(-1px); }
.le-arch { top: 22%; left: 50%; right: auto; transform: translateX(-50%); }
.le-nav { position: absolute; z-index: 6; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: rgba(13,59,46,.92); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px; white-space: nowrap; }
.le-nav span { padding: 0 8px; } .le-nav button { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 15px; }
.le-addcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2.5px dashed #9FC2B0 !important; background: rgba(240,248,243,.92) !important; color: #0D3B2E; font-size: 22px; font-weight: 800; }
.le-addcard small { font-size: 12px; }
.le-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.le-fig { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: #E9EEEB; box-shadow: 0 10px 28px rgba(16,24,20,.10); }
.le-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-fig figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; color: #fff; font-weight: 800; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.6)); } .le-fig figcaption small { display: block; font-weight: 500; font-size: 12px; opacity: .9; }
.le-add { all: unset; box-sizing: border-box; cursor: pointer; border: 2.5px dashed #9FC2B0; border-radius: 22px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(240,248,243,.85); color: #0D3B2E; text-align: center; padding: 10px; }
.le-add:hover { border-color: #13814A; } .le-add i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; background: #0D3B2E; color: #fff; display: grid; place-items: center; font-size: 24px; } .le-add b { font-size: 15px; } .le-add small { color: #5B7A6A; font-size: 12px; }
.le-pop { position: absolute; z-index: 90; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(13,59,46,.28); padding: 14px; font-size: 13px; color: #1D2A23; display: flex; flex-direction: column; gap: 10px; }
.le-tabs { display: flex; gap: 4px; } .le-tabs button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 9px; background: #F1F4F2; font-weight: 700; font-size: 12px; } .le-tabs .on { background: #0D3B2E; color: #fff; }
.le-f { display: flex; flex-direction: column; gap: 5px; } .le-f > span { font-size: 12px; font-weight: 700; color: #3D4C44; } .le-f em { font-style: normal; color: #8A978F; font-weight: 500; }
.le-f textarea { border: 1.5px solid #CFDCD5; border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 600; resize: vertical; outline: none; } .le-f textarea:focus { border-color: #13814A; }
.le-hint { color: #8A978F; font-size: 11.5px; } .le-pf { display: flex; gap: 8px; align-items: center; } .le-pf .sp { flex: 1; } .le-reset { all: unset; cursor: pointer; color: #B42318; font-size: 12px; font-weight: 700; }
.modal.le-crop-modal { max-width: 1080px; width: calc(100vw - 32px); } .modal.le-crop-modal > .modal-head { display: none; } .modal.le-crop-modal > .modal-body { padding: 0; gap: 0; }
.le-ch { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #EEF1EF; } .le-ch .ic { width: 42px; height: 42px; border-radius: 12px; background: #E8F1FD; display: grid; place-items: center; font-size: 20px; flex: none; }
.le-ch .g { min-width: 0; } .le-ch b { font-size: 17px; display: block; } .le-ch small { color: #6B7A72; } .le-ch .sp, .le-cf .sp { flex: 1; }
.le-cb { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.le-stage { position: relative; height: min(560px, 62vh); background: #1E2723; overflow: hidden; touch-action: none; cursor: grab; user-select: none; } .le-stage:active { cursor: grabbing; }
.le-stage img { position: absolute; left: 0; top: 0; z-index: 0; max-width: none; pointer-events: none; }
.le-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 0 0 3px #E8C879; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.le-tip { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.95); border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.le-zoom { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.96); border-radius: 14px; padding: 8px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; width: min(360px, 86%); }
.le-zoom input { flex: 1; accent-color: #0D3B2E; }
.le-side { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FAFBFA; }
.le-sec { font-size: 11.5px; font-weight: 800; color: #6B7A72; text-transform: uppercase; letter-spacing: .06em; }
.le-prev { background: #FBF8F1; border: 1px solid #EEE6D2; border-radius: 16px; padding: 16px; display: grid; place-items: center; } .le-prev canvas { box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px #D9B46A, 0 8px 20px rgba(0,0,0,.12); }
.le-q { background: #F0F8F3; border: 1px solid #CDE8D6; border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.7; } .le-q .r { display: flex; justify-content: space-between; gap: 8px; } .le-q s { color: #9AA69F; } .le-q b.g { color: #13814A; }
.le-q .bar { height: 8px; border-radius: 9px; background: #DDE3E0; overflow: hidden; margin: 6px 0; } .le-q .bar i { display: block; height: 100%; width: 5%; background: #13814A; transition: width .3s; }
.le-ok { display: flex; gap: 6px; flex-wrap: wrap; } .le-ok span { font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid #CDE8D6; color: #13814A; border-radius: 99px; padding: 4px 9px; }
.le-cf { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid #EEF1EF; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .le-bar small, .le-bar .le-tf { display: none; } .le-bar { padding: 9px 12px; gap: 8px; }
  .le-fabw { inset-inline-end: 14px; bottom: 16px; } .le-fab { padding: 11px 16px 11px 11px; font-size: 14px; } .le-fab small { display: none; }
  .le-on [data-ek] { outline-offset: 3px; } .le-on [data-ek]:after { inset-inline-end: -4px; top: -12px; width: 22px; height: 22px; font-size: 11px; }
  .modal.le-crop-modal { width: 100vw; max-width: 100vw; } .le-cb { grid-template-columns: 1fr; } .le-stage { height: 58vh; } .le-side { padding: 12px 14px; } .le-prev, .le-side .le-sec:first-child { display: none; }
  .le-cf { padding: 12px 14px; } #le-other { order: 9; width: 100%; justify-content: center; }
  .le-gal { grid-template-columns: 1fr 1fr; gap: 10px; } .le-fig .le-pen button:not(.k):not([data-ldel]) { display: none; } .le-add small { display: none; }
}
.le-dim { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
@media (max-width: 860px) { .le-bar b { font-size: 13px; white-space: nowrap; } .le-done { padding: 7px 12px; white-space: nowrap; } .le-lg button { padding: 5px 8px; } }
.go-home { cursor: pointer; } .go-home:hover { opacity: .85; }

/* ---------- many signatures: Settings library + "who signs?" beside report previews ---------- */
.seal .seal-lb { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #55665D; text-transform: uppercase; }
.seal.side .seal-lb { right: 120px; }
.seal small b + * { display: block; }
.sg-sec { font-weight: 800; font-size: 14px; margin: 16px 0 10px; } .sg-sec small { color: #6B7A72; font-weight: 600; font-size: 12px; margin-inline-start: 6px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sg-card { border: 1.5px solid #E3E8E5; border-radius: 18px; padding: 12px; position: relative; background: #fff; }
.sg-card.def { border-color: #13814A; box-shadow: 0 6px 16px rgba(19,129,74,.12); }
.sg-card .pic { height: 92px; border-radius: 12px; background: repeating-conic-gradient(#F4F6F5 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.sg-card .pic img { max-height: 80px; max-width: 90%; }
.sg-card b { display: block; font-size: 14.5px; margin-top: 10px; } .sg-card > small { color: #6B7A72; font-size: 12px; }
.sg-card .tg { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 10.5px; font-weight: 800; background: #E6F4EC; color: #13814A; border-radius: 99px; padding: 3px 8px; z-index: 1; }
.sg-card .ac { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sg-add { all: unset; box-sizing: border-box; cursor: pointer; border: 2px dashed #CFDCD5; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #0D3B2E; background: #FBFCFB; min-height: 190px; text-align: center; padding: 12px; }
.sg-add:hover { border-color: #13814A; } .sg-add i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: #0D3B2E; color: #fff; display: grid; place-items: center; font-size: 22px; } .sg-add b { font-size: 14px; } .sg-add small { color: #6B7A72; font-size: 12px; }
.sg-stamps { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-st { border: 1.5px solid #E3E8E5; border-radius: 16px; padding: 10px; display: flex; gap: 8px; align-items: center; min-width: 250px; background: #fff; }
.sg-st img { width: 56px; height: 56px; object-fit: contain; } .sg-st .g { flex: 1; } .sg-st b { display: block; font-size: 13.5px; } .sg-st small { color: #13814A; font-size: 11.5px; font-weight: 700; }
.sg-st.add { all: unset; box-sizing: border-box; cursor: pointer; border: 2px dashed #CFDCD5; border-radius: 16px; padding: 18px; min-width: 200px; text-align: center; font-weight: 800; color: #0D3B2E; }
.sg-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sg-use { border: 1px solid #E3E8E5; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; background: #fff; } .sg-use.off { background: #F7F9F8; }
.sg-use .t { display: flex; justify-content: space-between; align-items: center; } .sg-use b { font-size: 13.5px; }
.sg-use select { border: 1px solid #DDE3E0; border-radius: 10px; padding: 7px 9px; font: inherit; font-size: 13px; background: #fff; } .sg-use select:disabled { opacity: .55; }
.sg-lb { font-size: 12.5px; color: #3D4C44; display: flex; gap: 6px; align-items: center; }
.seal-sw.sm { padding: 0; border: none; background: none; }
.sg-drop { border: 2px dashed #9FC2B0; border-radius: 16px; background: #F7FBF8; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-drop .b { border-radius: 12px; height: 140px; display: grid; place-items: center; position: relative; overflow: hidden; background: #EDE7DA; }
.sg-drop .b.one { grid-column: 1 / -1; } .sg-drop .b small { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 10.5px; font-weight: 800; color: #6B7A72; text-transform: uppercase; }
.sg-drop .b img { max-width: 88%; max-height: 110px; object-fit: contain; }
.sg-drop .clean { background: repeating-conic-gradient(#F4F6F5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.sg-pick { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 26px; color: #0D3B2E; } .sg-pick b { font-size: 14px; } .sg-pick small { position: static !important; font-size: 12px !important; text-transform: none !important; font-weight: 500 !important; }
.sg-chips { display: flex; gap: 6px; flex-wrap: wrap; } .sg-chips span { font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid #CDE8D6; color: #13814A; border-radius: 99px; padding: 4px 9px; }
.spk-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.spk { position: sticky; top: 0; background: #fff; border: 1px solid #E3E8E5; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.spk-q { font-size: 12px; font-weight: 800; color: #6B7A72; text-transform: uppercase; letter-spacing: .05em; }
.spk-box { border: 1px solid #EEF1EF; border-radius: 14px; padding: 10px; } .spk-t { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.spk-list { display: flex; flex-direction: column; gap: 6px; }
.spk-o { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; border: 1.5px solid #E3E8E5; border-radius: 12px; padding: 7px 10px; font-size: 13px; background: #fff; }
.spk-o .m { width: 58px; height: 30px; display: grid; place-items: center; flex: none; } .spk-o .m img { max-height: 28px; max-width: 58px; object-fit: contain; }
.spk-o .g { min-width: 0; flex: 1; } .spk-o b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .spk-o small { color: #6B7A72; font-size: 11.5px; }
.spk-o i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B8C2BC; flex: none; box-sizing: border-box; }
.spk-o.on { border-color: #13814A; background: #F3FAF6; } .spk-o.on i { border: 5px solid #13814A; } .spk-o.none b { color: #6B7A72; font-weight: 600; }
.spk-tg { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #E3E8E5; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.spk-tg small { display: block; color: #6B7A72; font-weight: 500; font-size: 11.5px; } .spk-tg input { display: none; }
.spk-tg em { width: 40px; height: 24px; border-radius: 99px; background: #CBD5CF; position: relative; flex: none; transition: background .15s; } .spk-tg em:after { content: ""; position: absolute; inset-inline-start: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.spk-tg input:checked + em { background: #13814A; } .spk-tg input:checked + em:after { inset-inline-start: 19px; }
.spk-rem { font-size: 12.5px; color: #3D4C44; display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) {
  .spk-wrap { grid-template-columns: 1fr; } .spk { position: static; order: -1; padding: 12px; gap: 10px; }
  .spk-list { flex-direction: row; overflow-x: auto; } .spk-o { flex-direction: column; min-width: 110px; text-align: center; gap: 4px; padding: 8px; } .spk-o i { display: none; }
  .spk-wrap > div:first-child { order: 2; }
}
.spk-wrap > * { min-width: 0; } .spk { min-width: 0; overflow: hidden; }
@media (max-width: 900px) { .spk-o { width: 120px; flex: none; } .spk-o .g { width: 100%; } .spk-o b { font-size: 12px; } }
/* ---------- "Who signs this?" popup + automatic signing ---------- */
.spp-tag { font-size: 11.5px; font-weight: 800; background: #E8F1FD; color: #2F5BB7; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.spp-n { display: flex; gap: 8px; } .spp-n button { all: unset; cursor: pointer; flex: 1; text-align: center; border: 1.5px solid #E3E8E5; border-radius: 12px; padding: 10px; font-weight: 700; font-size: 13.5px; } .spp-n .on { border-color: #0D3B2E; background: #F0F8F3; }
.spp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .spp-two.one { grid-template-columns: 1fr; }
.spk-t small { color: #6B7A72; font-weight: 600; margin-inline-start: 4px; }
.spp-w { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 8px; color: #3D4C44; cursor: pointer; } .spp-w input { display: none; }
.spp-w em { width: 34px; height: 20px; border-radius: 99px; background: #CBD5CF; position: relative; flex: none; } .spp-w em:after { content: ""; position: absolute; inset-inline-start: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.spp-w input:checked + em { background: #13814A; } .spp-w input:checked + em:after { inset-inline-start: 16px; }
.spp-row { display: flex; gap: 12px; align-items: stretch; } .spp-st { flex: 0 0 240px; }
.spp-pv { flex: 1; border: 1px dashed #CFDCD5; border-radius: 16px; background: #FCFDFC; padding: 8px 14px 10px; min-width: 0; }
.spp-pv .q { font-size: 10.5px; font-weight: 800; color: #6B7A72; text-transform: uppercase; letter-spacing: .06em; }
.spp-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; text-align: center; gap: 8px; min-height: 100px; }
.spp-strip .sx { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; } .spp-strip .sx em { font-style: normal; font-size: 8.5px; font-weight: 800; color: #6B7A72; letter-spacing: .05em; text-transform: uppercase; }
.spp-strip img.s { max-height: 36px; max-width: 110px; object-fit: contain; } .spp-strip .sx i { display: block; width: 100%; max-width: 120px; border-top: 1px solid #1D2A23; margin-top: 1px; }
.spp-strip .sx b { font-size: 10px; margin-top: 3px; } .spp-strip .sx small { font-size: 9px; color: #6B7A72; } .spp-strip img.st { width: 64px; transform: rotate(-8deg); opacity: .9; }
.spp-rem { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #3D4C44; } .spp-rem label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.seal-l { width: 190px; } .seal-l .s1 { left: 6px; } .a4-me { display: block; color: #0F1F19; font-size: 11px; }
.sg-ul { font-size: 11px; color: #6B7A72; font-weight: 700; margin-bottom: -4px; } .sg-user { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #2F5BB7; background: #E8F1FD; border-radius: 99px; padding: 2px 8px; }
.sg-auto { margin: 10px 0 0; font-size: 12.5px; } .sg-ask { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; background: #FFF8EA; border: 1px solid #F0DA9E; border-radius: 12px; padding: 8px 12px; } .sg-ask .btn { margin-inline-start: auto; }
.sg-link { border: 2px solid #13814A; background: #F3FAF6; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; } .sg-link b { font-size: 13px; } .sg-link select { border: 1px solid #CDE8D6; border-radius: 10px; padding: 9px; font: inherit; background: #fff; } .sg-link small { color: #3D5A4A; font-size: 12px; }
@media (max-width: 760px) { .spp-two { grid-template-columns: 1fr; } .spp-row { flex-direction: column; } .spp-st { flex: none; } .spp-two .spk-list, .spp-st .spk-list { flex-direction: row; overflow-x: auto; } .spp-two .spk-o, .spp-st .spk-o { flex-direction: column; width: 116px; flex: none; text-align: center; gap: 3px; padding: 8px; } .spp-two .spk-o i, .spp-st .spk-o i { display: none; } .spp-n button { padding: 8px 4px; font-size: 12.5px; } }

/* ---------- Files → Our documents (uploaded) ---------- */
.dc-ph { flex-wrap: wrap; gap: 10px; } .dc-ph .sp { flex: 1; }
.dc-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid #DDE3E0; border-radius: 12px; padding: 0 12px; width: 340px; max-width: 100%; color: #6B7A72; background: #fff; }
.dc-search.on { border-color: #13814A; } .dc-search input { border: none; outline: none; padding: 9px 0; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: none; } .dc-search small { white-space: nowrap; font-weight: 700; }
.dc-chips { display: flex; gap: 6px; padding: 10px 18px; border-bottom: 1px solid #EEF1EF; flex-wrap: wrap; align-items: center; }
.dc-chips button { all: unset; cursor: pointer; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 5px 11px; background: #F1F4F2; white-space: nowrap; }
.dc-chips button.on { background: #0D3B2E; color: #fff; } .dc-chips button.kw { background: #FFF8E6; color: #7A5D12; } .dc-chips button.kw.on { background: #E8C879; color: #0D3B2E; }
.dc-chips small { color: #6B7A72; font-weight: 700; font-size: 11.5px; margin-inline: 8px 2px; }
.dc-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #F1F4F2; }
.dc-row:hover { background: #FAFCFB; }
.dc-ty { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: none; overflow: hidden; background: #8A978F; }
.dc-ty.pdf { background: #D94841; } .dc-ty.doc { background: #2F6BD9; } .dc-ty.xls { background: #1E8E4E; } .dc-ty.ppt { background: #D2691E; } .dc-ty.img { background: #E9EEEB; font-size: 20px; } .dc-ty.img img { width: 100%; height: 100%; object-fit: cover; }
.dc-row .nm { flex: 1; min-width: 0; } .dc-row .nm b { font-size: 14.5px; display: block; } .dc-row mark, .dc-kws span.m { background: #FFE58A; border-radius: 3px; }
.dc-lock { font-size: 11px; font-weight: 800; background: #FDECEA; color: #B42318; border-radius: 99px; padding: 2px 8px; margin-inline-start: 6px; white-space: nowrap; }
.dc-kws { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; } .dc-kws span { font-size: 11px; font-weight: 700; background: #FFF8E6; color: #7A5D12; border-radius: 99px; padding: 2px 8px; cursor: pointer; }
.dc-kws .dc-fd { background: #EEF1EF; color: #3D4C44; cursor: default; }
.dc-meta { font-size: 12px; color: #6B7A72; text-align: end; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; } .dc-meta s { color: #9AA69F; } .dc-meta b { color: #13814A; }
.dc-acts { display: flex; gap: 6px; } .dc-acts button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; background: #F1F4F2; display: grid; place-items: center; font-size: 14px; } .dc-acts button:hover { background: #E3E8E5; }
.dc-empty { all: unset; box-sizing: border-box; cursor: pointer; margin: 18px; border: 2px dashed #CFDCD5; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #0D3B2E; width: calc(100% - 36px); }
.dc-empty i { font-style: normal; width: 50px; height: 50px; border-radius: 50%; background: #0D3B2E; color: #fff; display: grid; place-items: center; font-size: 22px; } .dc-empty small { color: #6B7A72; }
.dc-drag { outline: 3px dashed #13814A; outline-offset: -6px; border-radius: 20px; }
.modal.dc-up-modal { max-width: 720px; }
.dc-all { background: #F7F9F8; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; } .dc-all b { white-space: nowrap; } .dc-all > div { flex: 1; min-width: 0; }
.dc-all select { border: 1px solid #DDE3E0; border-radius: 10px; padding: 8px; font: inherit; font-size: 13px; background: #fff; }
.dc-kwbox { border: 1px solid #DDE3E0; border-radius: 10px; padding: 5px 8px; background: #fff; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; min-height: 38px; cursor: text; }
.dc-kwbox .c, .dc-kall .c { font-size: 11.5px; font-weight: 700; background: #FFF8E6; color: #7A5D12; border-radius: 99px; padding: 3px 4px 3px 9px; display: inline-flex; align-items: center; gap: 3px; }
.dc-kall .c.all { padding: 3px 9px; opacity: .8; }
.dc-kwbox .c button { all: unset; cursor: pointer; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; } .dc-kwbox .c button:hover { background: #F0DA9E; }
.dc-kwbox input { border: none; outline: none; font: inherit; font-size: 13px; flex: 1; min-width: 70px; padding: 4px 2px; background: none; }
.dc-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow: auto; padding: 2px; }
.dc-uf { border: 1px solid #E3E8E5; border-radius: 16px; padding: 12px; display: flex; gap: 12px; transition: opacity .2s; } .dc-uf.saved { opacity: .5; } .dc-uf .dc-ty { width: 52px; height: 52px; }
.dc-uf .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; } .dc-uf .r { display: flex; gap: 8px; align-items: center; }
.dc-nm { flex: 1; min-width: 0; border: 1px solid #DDE3E0; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 700; }
.dc-rm { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 9px; background: #F1F4F2; display: grid; place-items: center; color: #6B7A72; flex: none; }
.dc-kwrow { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; } .dc-kwrow > div { flex: 1; min-width: 160px; } .dc-kall { display: contents; }
.dc-lk { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6B7A72; white-space: nowrap; cursor: pointer; } .dc-lk input { display: none; }
.dc-lk em { width: 30px; height: 18px; border-radius: 99px; background: #CBD5CF; position: relative; flex: none; } .dc-lk em:after { content: ""; position: absolute; inset-inline-start: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.dc-lk input:checked + em { background: #B42318; } .dc-lk input:checked + em:after { inset-inline-start: 14px; } .dc-lk input:checked ~ span { color: #B42318; } .dc-lk input:disabled ~ * { opacity: .5; }
.dc-lk.big { border: 1px solid #E3E8E5; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #1D2A23; white-space: normal; } .dc-lk.big small { display: block; color: #6B7A72; font-weight: 500; font-size: 11.5px; }
.dc-sz { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3D4C44; } .dc-sz .bar { flex: 1; height: 6px; border-radius: 9px; background: #EEF1EF; overflow: hidden; } .dc-sz .bar i { display: block; height: 100%; background: #13814A; border-radius: 9px; transition: width .3s; }
.dc-sz s { color: #9AA69F; } .dc-sz b { color: #13814A; } .dc-sz small { color: #6B7A72; } .dc-sz em { font-style: normal; font-weight: 700; }
.dc-tot { margin-inline-end: auto; color: #6B7A72; font-size: 12.5px; }
@media (max-width: 760px) {
  .dc-row { padding: 12px; gap: 10px; flex-wrap: wrap; } .dc-row .nm { flex: 1 1 calc(100% - 60px); } .dc-meta { order: 3; text-align: start; flex: 1; } .dc-acts { order: 4; }
  .dc-search { width: 100%; } .dc-chips { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
  .dc-all { flex-wrap: wrap; } .dc-all > div { flex: 1 1 100%; } .dc-lk span { display: none; } .dc-uf .dc-ty { width: 42px; height: 42px; }
}
@media (max-width: 760px) { .dc-sz small { display: none; } .dc-sz span, .dc-sz b { white-space: nowrap; } }
.boot-wait { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: #F3F6F4; }
.boot-wait img { width: 74px; height: 74px; } .boot-wait b { font-size: 20px; color: #0D3B2E; } .boot-wait small { color: #5B6B63; max-width: 340px; font-size: 14px; line-height: 1.5; }
.boot-wait i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #CFE2D7; border-top-color: #13814A; animation: bw-spin .9s linear infinite; margin-top: 8px; }
@keyframes bw-spin { to { transform: rotate(360deg); } }

/* ---------- Files: two tabs (Our documents first · System files) + document cards ---------- */
.fx-tabs { display: flex; gap: 8px; background: #fff; border-radius: 18px; padding: 6px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(13,59,46,.05); }
.fx-tab { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; min-width: 0; transition: background .15s; }
.fx-tab:hover { background: #F5F8F6; } .fx-tab .i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #F1F4F2; flex: none; }
.fx-tab .g { min-width: 0; } .fx-tab b { display: block; font-size: 15.5px; } .fx-tab small { color: #6B7A72; font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tab .n { margin-inline-start: auto; font-size: 12px; font-weight: 800; background: #F1F4F2; border-radius: 99px; padding: 4px 10px; flex: none; }
.fx-tab.on { background: linear-gradient(135deg, #0A4D3A, #13814A); color: #fff; box-shadow: 0 8px 22px rgba(13,59,46,.25); } .fx-tab.on small { color: #CFE5D8; } .fx-tab.on .i { background: rgba(255,255,255,.16); } .fx-tab.on .n { background: #E8C879; color: #0D3B2E; }
.dx-hero { background: linear-gradient(135deg, #FFF9EC, #FFFFFF 60%); border: 1px solid #F0E3BE; border-radius: 22px; padding: 18px 22px; display: flex; gap: 18px; align-items: center; margin-bottom: 14px; position: relative; overflow: hidden; flex-wrap: wrap; }
.dx-hero:after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(#F6E3AE, transparent 70%); opacity: .6; pointer-events: none; }
.dx-hero .big { width: 62px; height: 62px; border-radius: 18px; background: #0D3B2E; color: #E8C879; display: grid; place-items: center; font-size: 28px; flex: none; z-index: 1; }
.dx-hero .g { flex: 1; min-width: 220px; z-index: 1; } .dx-hero h2 { margin: 0; font-size: 22px; } .dx-hero p { margin: 4px 0 0; color: #5B6B63; font-size: 13.5px; }
.dx-hero .st { display: flex; gap: 10px; z-index: 1; } .dx-hero .st div { background: #fff; border: 1px solid #EEE6D2; border-radius: 14px; padding: 8px 14px; min-width: 100px; } .dx-hero .st small { display: block; color: #6B7A72; font-size: 11.5px; } .dx-hero .st b { font-size: 18px; } .dx-hero .st b.g { color: #13814A; }
.dx-up { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; background: #E8C879; color: #0D3B2E; font-weight: 800; border-radius: 14px; padding: 13px 18px; z-index: 1; box-shadow: 0 6px 16px rgba(232,200,121,.45); white-space: nowrap; } .dx-up:hover { filter: brightness(1.03); transform: translateY(-1px); }
.dx-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.dx-search { flex: 1; min-width: 240px; background: #fff; border: 1.5px solid #E3E8E5; border-radius: 14px; padding: 0 16px; display: flex; gap: 10px; align-items: center; color: #8A978F; } .dx-search.on { border-color: #13814A; }
.dx-search input { border: none; outline: none; background: none; font: inherit; font-size: 14.5px; padding: 12px 0; flex: 1; min-width: 0; color: #1D2A23; } .dx-search small { white-space: nowrap; font-weight: 700; color: #13814A; }
.dx-seg { display: flex; background: #fff; border: 1px solid #E3E8E5; border-radius: 12px; padding: 4px; } .dx-seg button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #5B6B63; white-space: nowrap; } .dx-seg .on { background: #0D3B2E; color: #fff; }
.dx-folds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dx-folds .fd { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1.5px solid #E3E8E5; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 5px; transition: border-color .15s, transform .15s; }
.dx-folds .fd:hover { transform: translateY(-1px); border-color: #B8CCC1; } .dx-folds .fd.on { border-color: #0D3B2E; box-shadow: 0 6px 16px rgba(13,59,46,.10); }
.dx-folds .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; } .dx-folds b { font-size: 13.5px; } .dx-folds small { color: #6B7A72; font-size: 11.5px; }
.dx-sec { font-weight: 800; font-size: 14px; margin: 0 0 10px; } .dx-sec small { color: #6B7A72; font-weight: 600; font-size: 12px; margin-inline-start: 6px; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dx-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #E9EEEB; box-shadow: 0 4px 14px rgba(16,24,20,.05); position: relative; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.dx-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,20,.10); }
.dx-card .cv { all: unset; box-sizing: border-box; cursor: pointer; height: 132px; display: grid; place-items: center; position: relative; overflow: hidden; background: #F1F4F2; }
.dx-card .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dx-card .cv.pdf { background: linear-gradient(135deg, #FDECEA, #FFF6F5); } .dx-card .cv.doc { background: linear-gradient(135deg, #E8F0FD, #F5F8FF); } .dx-card .cv.xls { background: linear-gradient(135deg, #E3F4EA, #F3FBF6); } .dx-card .cv.ppt { background: linear-gradient(135deg, #FDEFE3, #FFF8F2); }
.dx-card .pgi { width: 70px; height: 88px; border-radius: 8px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.dx-card .pgi:before { content: ""; position: absolute; left: 10px; right: 10px; top: 12px; height: 4px; border-radius: 3px; background: #E3E8E5; box-shadow: 0 10px 0 #E3E8E5, 0 20px 0 #E3E8E5, 0 30px 0 #EEF1EF; }
.dx-card .pgi i { font-style: normal; font-weight: 900; font-size: 12px; color: #fff; border-radius: 6px; padding: 3px 8px; background: #8A978F; }
.dx-card .cv.pdf .pgi i { background: #D94841; } .dx-card .cv.doc .pgi i { background: #2F6BD9; } .dx-card .cv.xls .pgi i { background: #1E8E4E; } .dx-card .cv.ppt .pgi i { background: #D2691E; }
.dx-card .lk { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 11px; font-weight: 800; background: #B42318; color: #fff; border-radius: 99px; padding: 3px 9px; }
.dx-card .dots { all: unset; cursor: pointer; position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.1); font-weight: 900; z-index: 2; }
.dx-card .cb { padding: 11px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .dx-card .cb b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dx-card mark { background: #FFE58A; border-radius: 3px; }
.dx-card .dc-kws { margin: 0; min-height: 0; } .dx-card .mt { display: flex; justify-content: space-between; font-size: 11.5px; color: #6B7A72; margin-top: auto; } .dx-card .mt s { color: #9AA69F; } .dx-card .mt b { display: inline; font-size: 11.5px; color: #13814A; }
.dx-drop { all: unset; box-sizing: border-box; cursor: pointer; border: 2px dashed #CFDCD5; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #0D3B2E; background: #FBFCFB; min-height: 220px; text-align: center; padding: 12px; }
.dx-drop:hover { border-color: #13814A; background: #F3FAF6; } .dx-drop i { font-style: normal; width: 48px; height: 48px; border-radius: 50%; background: #0D3B2E; color: #E8C879; display: grid; place-items: center; font-size: 22px; } .dx-drop b { font-size: 15px; } .dx-drop small { color: #6B7A72; font-size: 12px; }
.dx-list { padding: 0; overflow: hidden; }
@media (max-width: 760px) {
  .fx-tabs { padding: 4px; gap: 4px; } .fx-tab { padding: 9px 10px; gap: 8px; } .fx-tab .i { width: 30px; height: 30px; font-size: 15px; } .fx-tab b { font-size: 13.5px; } .fx-tab small, .fx-tab .n { display: none; }
  .dx-hero { padding: 14px; gap: 12px; } .dx-hero .big { width: 46px; height: 46px; font-size: 22px; } .dx-hero h2 { font-size: 17px; } .dx-hero p { display: none; } .dx-hero .g { min-width: 0; }
  .dx-hero .st { order: 3; width: 100%; } .dx-hero .st div { flex: 1; min-width: 0; padding: 7px 10px; } .dx-hero .st b { font-size: 15px; } .dx-up { padding: 11px 14px; }
  .dx-bar { gap: 8px; } .dx-search { flex: 1 1 100%; } .dx-seg { overflow-x: auto; } #dx-ty { flex: 1; }
  .dx-folds { display: flex; overflow-x: auto; gap: 8px; } .dx-folds .fd { min-width: 104px; padding: 9px; flex-direction: row; align-items: center; flex-wrap: wrap; } .dx-folds .fi { width: 28px; height: 28px; font-size: 14px; } .dx-folds small { width: 100%; }
  .dx-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dx-card .cv { height: 100px; } .dx-card .pgi { width: 50px; height: 64px; padding-bottom: 6px; } .dx-card .pgi:before { top: 9px; height: 3px; box-shadow: 0 7px 0 #E3E8E5, 0 14px 0 #E3E8E5; } .dx-card .pgi i { font-size: 9px; padding: 2px 5px; }
  .dx-card .cb { padding: 9px 10px; } .dx-card .cb b { font-size: 12.5px; } .dx-card .dc-kws { display: none; } .dx-card .lk { font-size: 10px; } .dx-drop { min-height: 160px; }
}
.agx[dir="rtl"] .agx-d { font-size: 11.5px; } .agx[dir="rtl"] .agx-d sup { font-size: 6.5px; }

/* ===== Student summary report: the button on the card + the A4 pages ===== */
.sr-open { width: 100%; display: flex; align-items: center; gap: 14px; border: 0; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; color: #fff; text-align: start; cursor: pointer; font-family: inherit; background: linear-gradient(135deg, var(--side1, #0B5A44), #14805C); box-shadow: 0 10px 24px rgba(11, 74, 55, .28); transition: transform .15s; }
.sr-open:hover { transform: translateY(-2px); } .sr-open:disabled { opacity: .7; }
.sr-open .ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: none; }
.sr-open .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; } .sr-open b { font-size: 15px; } .sr-open small { opacity: .85; font-size: 12px; }
[dir=rtl] .sr-open .go svg { transform: scaleX(-1); }

.sr-wrap { font-family: 'Inter', 'Cairo', 'Tajawal', sans-serif; color: #12261E; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sr-pg { width: 190mm; height: 276mm; position: relative; overflow: hidden; background: #fff; margin: 0 auto 16px; display: flex; flex-direction: column; font-size: 11px; page-break-after: always; break-after: page; border: 1px solid #DCE5E0; border-radius: 6px; }
@media print { .sr-pg { margin: 0; border: 0; border-radius: 0; } }
.sr-top { height: 5px; background: linear-gradient(90deg, var(--side1, #0B5A44), #D4A94A); flex: none; }
.sr-hb { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--side1, #0B5A44); color: #fff; border-bottom: 3px solid #D4A94A; flex: none; }
.sr-logo { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid #D4A94A; object-fit: contain; flex: none; }
.sr-in { flex: 1; min-width: 0; } .sr-in .la { font-size: 18px; font-weight: 800; letter-spacing: .2px; } .sr-in .ar { font-family: Amiri, 'Cairo', serif; font-size: 22px; color: #F1D68B; line-height: 1.2; }
.sr-rt { text-align: end; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; } .sr-rt b { background: #D4A94A; color: #3B2A05; border-radius: 20px; padding: 4px 14px; font-size: 12px; } .sr-rt span { font-size: 10.5px; opacity: .9; }
.sr-mh { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--side1, #0B5A44); color: #fff; border-bottom: 2px solid #D4A94A; flex: none; font-size: 12px; }
.sr-mh img { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain; } .sr-mh em { margin-inline-start: auto; font-style: normal; color: #F1D68B; font-size: 11px; }
.sr-bd { flex: 1; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.sr-ft { flex: none; display: flex; justify-content: space-between; padding: 6px 16px 9px; font-size: 9.5px; color: #6B7B74; border-top: 1px solid #E4ECE8; margin: 0 16px; padding-inline: 0; }
.sr-id { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #F1FBF5, #fff); border: 1px solid #D9EFE2; border-radius: 16px; padding: 12px 14px; }
.sr-av { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, #0F6B4F, #1F9D6A); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 0 0 2px #CFE9DC; overflow: hidden; flex: none; } .sr-av img { width: 100%; height: 100%; object-fit: cover; }
.sr-who { min-width: 0; } .sr-who h2 { margin: 0; font-size: 19px; color: #0B4A37; } .sr-ar { font-family: Amiri, 'Cairo', serif; font-size: 16px; color: #8A6D1F; font-weight: 700; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .sr-tags span { background: #fff; border: 1px solid #D9E4DE; border-radius: 20px; padding: 2px 9px; font-size: 10px; } .sr-tags .st.active { background: #E3F5EA; color: #14623D; border-color: #BFE6D1; font-weight: 700; } .sr-tags .st.graduated { background: #FFF3D1; color: #7A5A05; border-color: #F0DC9C; font-weight: 700; } .sr-tags .st.left { background: #FDE7E7; color: #A12B2B; border-color: #F3C5C5; font-weight: 700; }
.sr-sub { margin-top: 5px; font-size: 10px; color: #4E5F58; }
.sr-short { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, #FFF7E0, #FFFDF5); border: 1px solid #F0DC9C; border-radius: 14px; padding: 10px 14px; color: #4A3A05; } .sr-short svg { flex: none; color: #B8860B; } .sr-short small { font-weight: 700; letter-spacing: .3px; text-transform: uppercase; font-size: 9px; color: #8A6D1F; } .sr-short p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; }
.sr-kp { display: grid; gap: 9px; } .sr-kp.n4 { grid-template-columns: repeat(4, 1fr); } .sr-kp.n3 { grid-template-columns: repeat(3, 1fr); } .sr-kp.n2 { grid-template-columns: repeat(2, 1fr); } .sr-kp.n1 { grid-template-columns: 1fr; }
.sr-k { display: flex; gap: 8px; align-items: center; border-radius: 14px; padding: 10px; border: 1px solid #D9EFE2; background: linear-gradient(135deg, #F1FBF5, #fff); } .sr-k.b { border-color: #DDE2FA; background: linear-gradient(135deg, #F1F3FF, #fff); } .sr-k.y { border-color: #F4E2A8; background: linear-gradient(135deg, #FFF8E4, #fff); }
.sr-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; background: linear-gradient(135deg, #BFF0D3, #7FD6A6); color: #0B4A37; } .sr-ic svg { width: 19px; height: 19px; } .sr-ic.b { background: linear-gradient(135deg, #D3DAFB, #A4B1F2); color: #2C3A8A; } .sr-ic.y { background: linear-gradient(135deg, #FDE7A1, #F3C64F); color: #7A5A05; }
.sr-k small { display: block; font-size: 9.5px; color: #5B6B64; } .sr-k b { display: block; font-size: 17px; line-height: 1.2; color: #0B4A37; } .sr-k.b b { color: #2C3A8A; } .sr-k.y b { color: #7A5A05; } .sr-k em { font-style: normal; font-size: 9px; font-weight: 700; color: #14623D; } .sr-k em.bad { color: #B3261E; }
.sr-two { display: grid; gap: 9px; } .sr-two.n2 { grid-template-columns: 1fr 1fr; } .sr-two.n1 { grid-template-columns: 1fr; }
.sr-card { border: 1px solid #E1E9E5; border-radius: 14px; padding: 10px 12px; } .sr-card h3 { margin: 0 0 8px; font-size: 11.5px; color: #0B4A37; }
.sr-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 10px; } .sr-bar span { width: 62px; flex: none; } .sr-bar i { flex: 1; height: 7px; background: #E4ECE8; border-radius: 5px; overflow: hidden; } .sr-bar s { display: block; height: 7px; background: linear-gradient(90deg, #1F9D6A, #34B07E); border-radius: 5px; } .sr-bar b { width: 38px; text-align: end; }
.sr-ring { display: flex; align-items: center; gap: 14px; } .sr-cnt { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; } .sr-cnt i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; } .sr-cnt .P { background: #1F9D6A; } .sr-cnt .A { background: #D64545; } .sr-cnt .L { background: #E0A21A; } .sr-cnt .E { background: #E07B2A; }
.sr-sec h3 { margin: 0 0 6px; font-size: 12.5px; color: #0B4A37; padding-inline-start: 9px; border-inline-start: 4px solid #D4A94A; } .sr-sec h3 small { color: #6B7B74; font-weight: 500; }
.sr-t { width: 100%; border-collapse: collapse; font-size: 10px; } .sr-t th { background: #EAF4EE; color: #0B4A37; font-weight: 700; text-align: start; padding: 5px 6px; border-bottom: 2px solid #BFD9CB; } .sr-t td { padding: 4px 6px; border-bottom: 1px solid #DDE6E1; vertical-align: middle; } .sr-t tbody tr:nth-child(even) td { background: #F8FBF9; }
.sr-t tr.cur td { background: #F3FBF6 !important; font-weight: 600; } .sr-t tr.tot td { background: #EAF4EE !important; font-weight: 700; border-top: 2px solid #BFD9CB; }
.sr-mu { color: #8A9791; } .sr-none { margin: 4px 0; }
.sr-g { display: inline-block; border-radius: 20px; padding: 1px 8px; font-size: 9px; font-weight: 700; } .sr-g.excellent { background: #DDF3E6; color: #14623D; } .sr-g.very_good { background: #E1E8FB; color: #2C3A8A; } .sr-g.good { background: #FFF1CC; color: #7A5A05; } .sr-g.fail { background: #FBE0E0; color: #A12B2B; }
.sr-r { font-size: 9px; font-weight: 700; color: #4E5F58; } .sr-r.now { color: #0B5A44; } .sr-r.ok { color: #14623D; } .sr-r.no { color: #B3261E; }
.sr-d { border-radius: 20px; padding: 1px 8px; font-size: 9px; font-weight: 700; } .sr-d.A { background: #FBE0E0; color: #A12B2B; } .sr-d.L { background: #FFF1CC; color: #7A5A05; } .sr-d.E { background: #FFE6D2; color: #9A4A0E; }
.sr-sv { font-size: 9px; font-weight: 700; border-radius: 20px; padding: 1px 8px; background: #EEF2F0; } .sr-sv.serious { background: #FBE0E0; color: #A12B2B; } .sr-sv.medium { background: #FFF1CC; color: #7A5A05; }
.sr-fs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .sr-fs > div { border-radius: 12px; padding: 8px 10px; background: #F3F6F5; } .sr-fs small { display: block; font-size: 9px; color: #5B6B64; } .sr-fs b { font-size: 15px; } .sr-fs .ok { background: #E3F5EA; color: #14623D; } .sr-fs .gd { background: #FFF7E0; color: #7A5A05; } .sr-fs .bad { background: #FDE7E7; color: #A12B2B; }
.sr-ok { display: flex; align-items: center; gap: 8px; margin: 0; background: #E3F5EA; color: #14623D; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.sr-sign { margin-top: auto; padding-top: 6px; } .sr-sg { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; } .sr-sg > div:not(.stamp) { flex: 1; text-align: center; font-size: 10px; } .sr-sg i { display: block; height: 34px; border-bottom: 1px solid #8A9A93; margin-bottom: 3px; }
.bw .sr-hb, .bw .sr-mh { background: #fff !important; color: #111 !important; border-bottom: 3px solid #111 !important; } .bw .sr-in .ar, .bw .sr-mh em { color: #111 !important; } .bw .sr-top { background: #111 !important; } .bw .sr-rt b { background: #fff !important; color: #111 !important; border: 1.5px solid #111; } .bw .sr-logo { border-color: #111 !important; }
.bw .sr-t th { background: #E6E6E6 !important; color: #111 !important; border-bottom: 2px solid #111 !important; } .bw .sr-t td { border-bottom: 1px solid #999 !important; background: #fff !important; } .bw .sr-id, .bw .sr-short, .bw .sr-k, .bw .sr-card, .bw .sr-fs > div, .bw .sr-ok { background: #fff !important; border: 1px solid #111 !important; color: #111 !important; }
.bw .sr-ic, .bw .sr-g, .bw .sr-d, .bw .sr-sv, .bw .sr-tags span { background: #fff !important; color: #111 !important; border: 1px solid #111 !important; } .bw .sr-av { background: #fff !important; color: #111 !important; border: 2px solid #111 !important; box-shadow: none; } .bw .sr-bar s { background: #111 !important; } .bw .sr-bar i { background: #DDD !important; } .bw .sr-sec h3 { border-color: #111 !important; color: #111 !important; }

.sr-prev { background: #DDE6E1; margin: -18px; padding: 18px; max-height: 72vh; overflow: auto; } .sr-prev .sr-pg { box-shadow: 0 8px 26px rgba(11, 40, 30, .18); border: 0; border-radius: 4px; }
.sr-t.sub { font-size: 9px; } .sr-t.sub th.gp { text-align: center; background: #DCEBE2; border-bottom: 1px solid #BFD9CB; } .sr-t.sub th.sm { font-size: 8px; font-weight: 600; padding: 3px 3px; } .sr-t.sub td { padding: 4px 4px; }
.bw .sr-t.sub th.gp { background: #D5D5D5 !important; } .bw .sr-prev { background: #ccc; }

/* evening report to parents (developer) */
.dr .dr-ic{background:#1F2A44;color:#FFD66B}
.dr-next{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:#E7F6EE;color:#17633F;white-space:nowrap}
.dr-next.off{background:#EEF1F0;color:#6B7772}
.dr-warn{margin:0 16px 10px;padding:10px 12px;border-radius:10px;background:#FDE6E3;color:#A1271B;font-size:13px;font-weight:600;line-height:1.5}
.dr-testn{margin:0 16px 10px;padding:9px 12px;border-radius:10px;background:#FFF6DF;color:#7A5300;font-size:12.5px;line-height:1.5}
.dr-set{display:flex;gap:14px;flex-wrap:wrap;padding:0 16px}
.dr-f{display:flex;flex-direction:column;gap:6px;padding:0 16px;margin-bottom:12px;min-width:0}
.dr-set .dr-f{padding:0}.dr-f.grow{flex:1}
.dr-f>span{font-size:11.5px;font-weight:700;color:#6B7772;text-transform:uppercase;letter-spacing:.04em}
.dr-f input[type=time]{height:40px;border:1.5px solid #DCE3E0;border-radius:10px;padding:0 10px;font:600 16px inherit;font-family:inherit;width:128px;background:#fff}
.dr-days,.dr-inc{display:flex;flex-wrap:wrap;gap:6px}
.dr-days button{min-width:46px;height:40px;border-radius:10px;border:1.5px solid #DCE3E0;background:#fff;font:600 13px inherit;font-family:inherit;color:#56625D;cursor:pointer}
.dr-days button.on{background:#14532D;border-color:#14532D;color:#fff}
.dr-inc button{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;border:1.5px solid #DCE3E0;background:#fff;font:600 12.5px inherit;font-family:inherit;color:#56625D;cursor:pointer}
.dr-inc button i{width:16px;height:16px;border-radius:5px;border:1.5px solid #C5CFCB;display:grid;place-items:center;font-style:normal;font-size:11px}
.dr-inc button.on{border-color:#1E7A4C;color:#17633F;background:#F0FAF4}.dr-inc button.on i{background:#1E7A4C;border-color:#1E7A4C;color:#fff}
.dr-who{max-width:520px}
.dr-today{margin:4px 16px 12px;border:1px solid #E6ECE9;border-radius:14px;background:#FAFCFB;padding:12px}
.dr-th{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.dr-th small{color:#6B7772}
.dr-tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.dr-tiles>div{border-radius:11px;padding:9px 10px;background:#fff;border:1px solid #E6ECE9}
.dr-tiles b{display:block;font-size:20px;line-height:1.1}.dr-tiles small{font-size:11.5px;color:#6B7772}
.dr-tiles .r b{color:#C2341F}.dr-tiles .a b{color:#B7791F}.dr-tiles .p b{color:#7A4FD1}.dr-tiles .b b{color:#2563C9}.dr-tiles .g{background:#14532D;border-color:#14532D}.dr-tiles .g b,.dr-tiles .g small{color:#fff}
.dr-list{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.dr-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:11px;background:#fff;border:1px solid #E6ECE9;cursor:pointer;text-align:start;font-family:inherit;width:100%}
.dr-row:hover{border-color:#B9D8C7}
.dr-row .av{width:32px;height:32px;border-radius:50%;background:#E7F6EE;color:#17633F;display:grid;place-items:center;font-weight:700;flex:none}
.dr-row .g{flex:1;min-width:0;display:flex;flex-direction:column}.dr-row .g b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dr-row .g small{font-size:11.5px;color:#6B7772}
.dr-tags{display:flex;gap:4px}.dr-tags i{font-style:normal;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-size:13px}
.dr-tags .r{background:#FDE6E3}.dr-tags .a{background:#FFF3DC}.dr-tags .p{background:#F1ECFB}.dr-tags .b{background:#E8F1FD}.dr-tags .g{background:#E7F6EE}
.dr-row em{font-style:normal;font-size:11px;color:#C2341F;font-weight:600}
.dr-more{border:0;background:none;color:#17633F;font:700 13px inherit;font-family:inherit;padding:6px;cursor:pointer}
.dr-acts{display:flex;gap:8px;justify-content:flex-end;padding:0 16px 14px}
.dr-hist{padding:0 16px 14px}.dr-h{display:flex;gap:12px;align-items:center;font-size:12.5px;padding:6px 0;border-top:1px dashed #E6ECE9}
.dr-h>span:first-child{flex:1;color:#56625D}.dr-h .ok{color:#17633F;font-weight:700}.dr-h .bad{color:#C2341F;font-weight:700}.dr-h .wt{color:#B7791F;font-weight:700}
.dr-pv{display:grid;grid-template-columns:240px 1fr;gap:14px;min-height:360px}
.dr-pl{display:flex;flex-direction:column;gap:4px;max-height:460px;overflow:auto}
.dr-pl button{text-align:start;border:1px solid #E6ECE9;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;font-family:inherit;display:flex;flex-direction:column}
.dr-pl button.on{border-color:#1E7A4C;background:#F0FAF4}.dr-pl small{color:#6B7772;font-size:11.5px}
.dr-to{font-size:12px;color:#6B7772;margin-top:8px}
@media (max-width:720px){.dr-tiles{grid-template-columns:repeat(3,1fr)}.dr-pv{grid-template-columns:1fr}.dr-pl{max-height:150px}.dr .wa-hd{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.dr .wa-hd .sp{display:none}.dr .wa-hd .dr-next{grid-column:1/3;justify-self:start}.dr .wa-hd #dr-on{grid-row:2;grid-column:3}.dr-set{flex-direction:column;gap:12px}.dr-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.dr-days button{min-width:0;padding:0;font-size:12px}.dr-f input[type=time]{width:100%}}

/* evening report: chosen parents */
.dr-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dr-opts button{display:flex;gap:10px;align-items:flex-start;text-align:start;border:1.5px solid #DCE3E0;background:#fff;border-radius:12px;padding:11px 12px;font-family:inherit;cursor:pointer}
.dr-opts .r{width:18px;height:18px;border-radius:50%;border:2px solid #C5CFCB;flex:none;margin-top:1px}
.dr-opts button.on{border-color:#1E7A4C;background:#F0FAF4}.dr-opts button.on .r{border:5px solid #1E7A4C}
.dr-opts b{display:block;font-size:13.5px}.dr-opts small{font-size:12px;color:#6B7772}
.dr-pick{margin:0 16px 12px;border:1.5px solid #1E7A4C;border-radius:14px;background:#FAFCFB;padding:12px}
.dr-pt{display:flex;align-items:center;gap:8px;margin-bottom:10px}.dr-cnt{background:#14532D;color:#fff;font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px}
.dr-prow{display:flex;gap:8px}.dr-q{flex:1;min-width:0}
.drp-cls{height:40px;border:1.5px solid #DCE3E0;border-radius:10px;background:#fff;padding:0 10px;font:600 13px inherit;font-family:inherit;max-width:220px}
.dr-res{background:#fff;border:1px solid #E3E9E6;border-radius:12px;margin-top:8px;overflow:hidden}
.dr-res button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-top:1px solid #F0F3F2;background:#fff;text-align:start;font-family:inherit;cursor:pointer}
.dr-res button:first-child{border-top:0}.dr-res .av{width:30px;height:30px;border-radius:50%;background:#E7F6EE;color:#17633F;display:grid;place-items:center;font-weight:700;flex:none}
.dr-res .g{flex:1;min-width:0;display:flex;flex-direction:column}.dr-res small{color:#6B7772;font-size:11.5px}
.dr-res .add{font-size:12px;font-weight:700;color:#17633F;border:1.5px solid #B9D8C7;border-radius:8px;padding:4px 10px;white-space:nowrap}
.dr-res .in .add{background:#1E7A4C;color:#fff;border-color:#1E7A4C}
.drp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.drp-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #DCE3E0;border-radius:99px;padding:3px 4px 3px 4px;font-size:12.5px;max-width:100%}
.drp-chip .a{width:22px;height:22px;border-radius:50%;background:#E7F6EE;color:#17633F;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.drp-chip b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drp-chip em{font-style:normal;color:#6B7772;font-size:11.5px;white-space:nowrap}
.drp-chip button{border:0;background:none;color:#8A9590;cursor:pointer;padding:2px 6px;font-size:12px;border-radius:50%}.drp-chip button:hover{background:#FDE6E3;color:#C2341F}
.drp-chip.nop{border-color:#F3C2BB}.drp-chip.nop em{color:#C2341F}
.dr-pick .empty-mini{margin-top:10px}
.dr-pf{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px;font-size:12px;color:#6B7772}
.dr-pf button{border:0;background:none;color:#C2341F;font:600 12px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.dr-sum{margin-top:10px;background:#14532D;color:#fff;border-radius:11px;padding:10px 12px;font-size:13px}
@media (max-width:720px){.dr-opts{grid-template-columns:1fr}.dr-prow{flex-direction:column}.drp-cls{max-width:none}}

/* Files → Exam sheets */
.xs-top{display:flex;gap:10px;align-items:center;margin:14px 0;flex-wrap:wrap}.xs-top .fm-search{flex:1;max-width:420px}
.xs-seg{display:flex;background:#fff;border:1px solid var(--line,#DCE3E0);border-radius:12px;padding:3px}.xs-seg button{border:0;background:none;padding:8px 14px;border-radius:9px;font:600 13px var(--font,inherit);color:#6B7772;cursor:pointer}.xs-seg button.on{background:#14532D;color:#fff}
.xs-cls{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.xs-cc{background:#fff;border:1px solid #E3E9E6;border-radius:18px;padding:16px;position:relative;overflow:hidden;text-align:start;font-family:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;transition:box-shadow .15s,border-color .15s}
.xs-cc:before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#0B5A44,#2FA36B)}
.xs-cc:hover{box-shadow:0 6px 18px rgba(20,83,45,.08)}.xs-cc.on{border:2px solid #1E7A4C;box-shadow:0 6px 20px rgba(20,83,45,.12)}
.xs-cc .f{width:46px;height:46px;border-radius:13px;background:#E7F6EE;display:grid;place-items:center;font-size:22px;margin-bottom:10px}
.xs-cc b{font-size:17px}.xs-cc small{font-size:12.5px;color:#6B7772}.xs-cc .meta{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}.xs-cc .meta span{font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:99px;background:#F2F4F3;color:#56625D}.xs-cc .meta .g{background:#E7F6EE;color:#17633F}
.xs-panel{margin-top:12px;padding:0;overflow:hidden}
.xs-ph{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #EEF2F0}.xs-ph b{font-size:16px}.xs-ph small{display:block;color:#6B7772;font-size:12.5px}.xs-big{font-size:22px}
.xs-all{display:flex;align-items:center;gap:6px;border:1.5px solid #B9D8C7;color:#17633F;background:#fff;height:38px;padding:0 13px;border-radius:10px;font:700 13px var(--font,inherit);cursor:pointer;white-space:nowrap}
.xs-row{display:grid;grid-template-columns:auto minmax(0,1.6fr) auto auto auto;gap:14px;align-items:center;padding:12px 16px;border-top:1px solid #F0F3F2}.xs-ph+.xs-row{border-top:0}
.xs-ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:17px}.xs-ic.m{background:#E8F1FD}.xs-ic.t{background:#FFF3DC}
.xs-row .g{min-width:0}.xs-row b{font-size:14px;display:block}.xs-row b em{font-style:normal;color:#6B7772;font-weight:600}.xs-row small{font-size:12px;color:#6B7772}
.xs-ser{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;font-weight:700;background:#F4F6F5;border:1px dashed #C5CFCB;color:#33403A;padding:3px 8px;border-radius:7px;white-space:nowrap;justify-self:start;direction:ltr}
.xs-ser.new{font-family:inherit;font-weight:600;color:#8A9590}
.xs-st{justify-self:start;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:99px;white-space:nowrap}.xs-st.ok{background:#E7F6EE;color:#17633F}.xs-st.wt{background:#FFF3DC;color:#8A5A00}
.xs-dl{display:flex;align-items:center;gap:6px;background:#14532D;color:#fff;border:0;height:38px;padding:0 14px;border-radius:10px;font:700 13px var(--font,inherit);cursor:pointer;white-space:nowrap}.xs-dl:hover{background:#0F3F22}
/* the progress popup */
.xp-ov{position:fixed;inset:0;z-index:300;background:rgba(10,30,22,.55);backdrop-filter:blur(3px);display:grid;place-items:center;padding:16px;opacity:0;transition:opacity .25s}.xp-ov.in{opacity:1}
.xp{width:min(460px,100%);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.35);transform:translateY(12px) scale(.98);transition:transform .3s}.xp-ov.in .xp{transform:none}
.xp-top{background:radial-gradient(120% 140% at 50% 0%,#1A7A4C 0%,#0B5A44 55%,#073B2D 100%);padding:26px 22px 22px;text-align:center;color:#fff;position:relative}
.xp-top:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(230,198,127,.07) 0 2px,transparent 2px 14px);pointer-events:none}
.xp-logo{width:76px;height:76px;border-radius:50%;background:#fff;margin:0 auto 10px;display:grid;place-items:center;box-shadow:0 0 0 5px rgba(230,198,127,.35),0 10px 24px rgba(0,0,0,.25);position:relative;z-index:1;animation:xpPulse 1.8s ease-in-out infinite}.xp-logo img{width:62px;height:62px;object-fit:contain}
@keyframes xpPulse{50%{box-shadow:0 0 0 9px rgba(230,198,127,.18),0 10px 24px rgba(0,0,0,.25)}}
.xp-top .ar{font-size:19px;font-weight:700;color:#E6C67F;position:relative;z-index:1}.xp-top .so{font-size:13px;color:#CFE6DA;margin-top:2px;letter-spacing:.06em;position:relative;z-index:1}
.xp-b{padding:20px 22px 22px}.xp-what{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.xp-what b{font-size:15px}.xp-what span{font-size:22px;font-weight:800;color:#14532D}
.xp-sub{font-size:12.5px;color:#6B7772;margin:2px 0 12px}
.xp-track{height:14px;border-radius:99px;background:#EEF1F0;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.08)}
.xp-fill{height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#0B5A44,#1E9A5E 60%,#E6C67F);position:relative;box-shadow:0 0 12px rgba(30,154,94,.5)}
.xp-fill:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(120deg,rgba(255,255,255,.28) 0 10px,transparent 10px 20px);background-size:23px 100%;animation:xpStripe .8s linear infinite;border-radius:99px}
@keyframes xpStripe{to{background-position:23px 0}}
[dir=rtl] .xp-fill{margin-inline-start:0}
.xp-steps{margin-top:16px;display:flex;flex-direction:column;gap:9px}
.xp-s{display:flex;align-items:center;gap:10px;font-size:13px;transition:color .2s}.xp-s i{width:22px;height:22px;border-radius:50%;flex:none;position:relative}
.xp-s.d i{background:#1E7A4C}.xp-s.d i:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:700;font-style:normal}.xp-s.d{color:#33403A}
.xp-s.a i{border:2.5px solid #1E7A4C;border-top-color:transparent;animation:xpSpin .8s linear infinite}.xp-s.a{font-weight:700}
.xp-s.w i{border:2px solid #DCE3E0}.xp-s.w{color:#9AA5A0}
@keyframes xpSpin{to{transform:rotate(360deg)}}
.xp-s em{margin-inline-start:auto;font-style:normal;font-size:12px;color:#6B7772;white-space:nowrap}
.xp-foot{display:flex;align-items:center;gap:8px;margin-top:16px;padding:10px 12px;background:#F7FBF9;border-radius:12px;font-size:12px;color:#56625D;flex-wrap:wrap}.xp-foot .xs-ser{background:#fff}
.xp-err{padding:12px;border-radius:12px;background:#FDE6E3;color:#A1271B;font-weight:600;font-size:13.5px}.xp-acts{display:flex;justify-content:flex-end;margin-top:14px}
/* upload check */
.xs-files{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.xs-fr{display:flex;gap:10px;align-items:center;border:1px solid #E3E9E6;border-radius:12px;padding:10px 12px}.xs-fr .x{width:34px;height:34px;border-radius:9px;background:#1D6F42;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.xs-fr .g{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.xs-fr b{font-size:13px;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}.xs-fr small{font-size:12px;color:#C2341F}
.xs-pill{padding:4px 9px;border-radius:99px;font-size:11.5px;font-weight:700;white-space:nowrap}.xs-pill.ok{background:#E7F6EE;color:#17633F}.xs-pill.bad{background:#FDE6E3;color:#C2341F}
.xs-rec{border-radius:14px;background:#14532D;color:#fff;padding:12px 14px;margin-bottom:8px;display:grid;gap:6px}.xs-rec small{opacity:.8;font-size:12px}.xs-rec .code{font-family:ui-monospace,Menlo,Consolas,monospace;color:#FFD66B;font-weight:700;font-size:14px}
.xs-rec .arrow{display:flex;gap:6px;flex-wrap:wrap}.xs-rec .arrow span{background:rgba(255,255,255,.14);padding:3px 10px;border-radius:99px;font-size:12.5px;font-weight:600}.xs-rec .mini{font-size:12px;opacity:.85}
.xs-rec.lk{background:#56625D}.xs-rec .lkn{font-size:12.5px;font-weight:600}
.xs-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}.xs-tiles div{border:1px solid #E3E9E6;border-radius:12px;padding:9px 10px}.xs-tiles b{font-size:20px;display:block}.xs-tiles small{font-size:11.5px;color:#6B7772}
.xs-tiles .k1 b{color:#17633F}.xs-tiles .k2 b{color:#2563C9}.xs-tiles .k3 b{color:#6B7772}.xs-tiles .k4 b{color:#C2341F}
.xs-prob{margin-top:12px;border:1px solid #F3C2BB;background:#FFF7F6;border-radius:12px;padding:10px 12px;font-size:12.5px;color:#5B2A24;line-height:1.7;max-height:200px;overflow:auto}.xs-prob b{color:#A1271B;display:block}
.xs-note{font-size:12px;color:#6B7772;margin:12px 0 0}
@media (max-width:720px){.xs-top .fm-search{max-width:none;flex-basis:100%}.xs-seg{flex:1}.xs-seg button{flex:1}.xs-top .sp{display:none}.xs-top #xs-up{flex-basis:100%;justify-content:center}
.xs-cls{grid-template-columns:1fr 1fr}.xs-row{grid-template-columns:auto minmax(0,1fr);gap:8px 12px}.xs-row .xs-ser,.xs-row .xs-st{grid-column:2}.xs-row .xs-dl{grid-column:1/-1;justify-content:center}
.xs-ph{flex-wrap:wrap}.xs-ph .xs-all{width:100%;justify-content:center}.xs-tiles{grid-template-columns:1fr 1fr}}
.dash-hid{margin:10px 2px 0;font-size:12.5px;color:#8A9590}
/* weekend shift */
:root { --wk: #E9F7F1; --wk-line: #BFE3D2; --wk-ink: #17633F; }
.shift-box.wk, .cf-gbox.wk, .sc-sf.wk, .cls-sum .st.wk { background: var(--wk); border-color: var(--wk-line); }
.wk .shh { color: var(--wk-ink); } .wk .shh .ico { background: #CDEBDD; } .sc-sf.wk .t, .cf-gbox.wk .t { color: var(--wk-ink); }
.gf-opt.wk.on { background: var(--wk); border-color: var(--wk-ink); color: var(--wk-ink); }
.shf.shf-weekend { background: var(--wk); border-color: var(--wk-line); color: var(--wk-ink); } .shf.shf-weekend.on { box-shadow: 0 0 0 2px var(--wk-ink); }
.gf-two.gf-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .gf-two.gf-3 { grid-template-columns: 1fr 1fr; } }
/* two signers: one in each corner of the page */
.a4-sign { align-items: flex-end; }
.a4-sign > .seal-l, .a4-sign > div:first-child { margin-inline-start: 0; margin-inline-end: auto; }
.a4-sign > .seal:last-child, .a4-sign > div:last-child { margin-inline-start: auto; margin-inline-end: 0; }
.seal small .sg-role { display: block; font-size: 10px; color: #55665D; }
/* attendance report foot: the key on its own line, the two signers across the full width (one in each corner) */
.agx-ft:has(.a4-sign) { flex-direction: column; align-items: stretch; gap: 8px; }
.agx-ft .a4-sign { width: 100%; }
.a4-sign .seal i { height: 0; width: auto; border-bottom: 0; }   /* one signature line, not two */
