/* School system: staff portal (#a-) + online registration (#j-). Uses the site's tokens (--ink, --panel, --mint ...). */
.pt { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pt-body { grid-template-columns: minmax(0, 1fr); } .pt-body > *, .pt > * { min-width: 0; }
.pt-login { max-width: 560px; }
.pt-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; margin: 8px 0; }
.pt-who div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 2px; }
.pt-who b { font-weight: 600; font-size: .9rem; } .pt-who small { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.pt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.pt-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mint) 22%, var(--panel-2)); color: var(--mint); font-weight: 700; font-size: 1.2rem; flex: none; }
.pt-me { display: grid; min-width: 0; flex: 1; } .pt-me b { font-weight: 600; } .pt-me small { color: var(--muted); font-size: .8rem; }
.pt-acts { display: flex; gap: 6px; flex-wrap: wrap; } .pt-acts .pill { padding: 6px 14px; font-size: .82rem; }
.pt-role { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .74rem; border: 1px solid; }
.pt-role.r-admin { color: #ffcf7a; border-color: rgba(255, 207, 122, .45); } .pt-role.r-accountant { color: #9be7b0; border-color: rgba(155, 231, 176, .45); }
.pt-role.r-registrar { color: #c7a6ff; border-color: rgba(199, 166, 255, .45); } .pt-role.r-teacher { color: #7cc4ff; border-color: rgba(124, 196, 255, .45); }
.pt-demo { background: repeating-linear-gradient(-45deg, rgba(243, 212, 138, .1) 0 12px, rgba(243, 212, 138, .04) 12px 24px); border: 1px dashed rgba(243, 212, 138, .5); color: #f3d48a; border-radius: 12px; padding: 8px 14px; font-size: .84rem; }
.pt-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); padding-bottom: 0; position: sticky; top: var(--hdr, 0); background: var(--ink); z-index: 5; }
.pt-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: .9rem; padding: 10px 12px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pt-tabs button:hover { color: var(--paper); }
.pt-tabs button[aria-selected="true"] { color: var(--mint); border-bottom-color: var(--mint); }
.pt-tabs i, .pt-seg i { font-style: normal; background: #e0815f; color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 7px; line-height: 1.6; }
.pt-msg { margin: 0; min-height: 0; font-size: .88rem; } .pt-msg:empty { display: none; }
.pt-msg.ok { color: #8fd6a6; background: rgba(143, 214, 166, .08); border: 1px solid rgba(143, 214, 166, .3); border-radius: 12px; padding: 8px 14px; }
.pt-msg.err { color: #f2a596; background: rgba(242, 165, 150, .08); border: 1px solid rgba(242, 165, 150, .35); border-radius: 12px; padding: 8px 14px; }
.pt-body { display: grid; gap: 14px; min-width: 0; }
.pt-body > .f-card { margin: 0; }
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.pt-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.pt-tile small { color: var(--muted); font-size: .78rem; } .pt-tile b { font-size: 1.45rem; font-weight: 600; line-height: 1.3; } .pt-tile span { color: var(--muted); font-size: .76rem; }
.pt-tile.good b { color: #8fd6a6; } .pt-tile.warn b { color: #f3d48a; }
.pt-tile .chip { font-size: .72rem; padding: 2px 10px; }
.pt-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; } .pt-2col .f-card { margin: 0; }
.pt-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .pt-tools .chip { font-size: .78rem; }
.pt-log { display: grid; gap: 2px; max-height: 70vh; overflow: auto; }
.pt-lg { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.pt-lg i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); margin-top: 9px; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 20%, transparent); }
.pt-lg p { margin: 0; font-size: .88rem; line-height: 1.6; } .pt-lg small { color: var(--muted); font-size: .76rem; } .pt-lg small b { color: var(--paper); font-weight: 500; }
.pt-cls { display: grid; gap: 8px; } .pt-cls > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pt-cls b { min-width: 120px; font-weight: 500; font-size: .9rem; }
.pt-cls .chip { cursor: default; font-size: .76rem; }
.pt-filters { display: grid; gap: 8px; }
.pt-q { width: 100%; font: inherit; color: var(--paper); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pt-q:focus { outline: none; border-color: var(--mint); }
.pt-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .pt-chips > span { color: var(--muted); font-size: .8rem; }
.pt-chips .chip small { color: var(--muted); margin-inline-start: 4px; font-size: .7rem; }
.pt-row-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.pt-row-tools > span:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pt-row-tools .chip svg { width: 14px; height: 14px; vertical-align: -2px; }
.pt-check { display: flex; gap: 8px; align-items: center; font-size: .88rem; cursor: pointer; margin: 6px 0; } .pt-check input { accent-color: var(--mint); width: 18px; height: 18px; }
.pt-list { display: grid; gap: 6px; }
.pt-li { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.pt-li > button, .pt-li-in { flex: 1; min-width: 0; text-align: right; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 0; display: grid; }
.pt-li-in { cursor: default; }
.pt-li:hover { border-color: color-mix(in srgb, var(--mint) 50%, transparent); }
.pt-li b { font-weight: 500; } .pt-li small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; }
.pt-li.off { opacity: .55; }
.pt-li .f-mini { width: 130px; flex: none; } .pt-li .f-mini .f-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #8fd6a6); }
.pt-sel { width: 18px; height: 18px; accent-color: var(--mint); flex: none; }
.pt-more { color: var(--muted); text-align: center; font-size: .82rem; }
.pt-move { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--mint); border-radius: 12px; padding: 8px 12px; }
.pt-move select { font: inherit; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.pt-back { padding: 6px 14px; font-size: .82rem; justify-self: start; width: max-content; }
.pt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-head h3 { margin: 0; font-size: 1.35rem; font-weight: 600; } .pt-head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.pt-head .pill { padding: 7px 14px; font-size: .84rem; }
.pt-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 18px; margin: 0; }
.pt-dl dt { color: var(--muted); font-size: .76rem; } .pt-dl dd { margin: 0; font-weight: 500; }
.pt-pin { letter-spacing: .2em; }
.bad { color: #f2a596; } .ok { color: #8fd6a6; } .due { color: #f3d48a; }
.pt-hint { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.7; } .pt-hint a { color: var(--mint); }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pt-gcard { text-align: right; background: linear-gradient(160deg, color-mix(in srgb, var(--mint) 12%, var(--panel)), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 2px; }
.pt-gcard:hover { border-color: var(--mint); } .pt-gcard small { color: var(--muted); font-size: .78rem; } .pt-gcard b { font-size: 1.15rem; font-weight: 600; } .pt-gcard span { color: var(--muted); font-size: .82rem; }
.pt-gcard em { font-style: normal; color: #8fd6a6; font-size: .76rem; }
.pt-asg { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); } .pt-asg:last-child { border: 0; }
.pt-asg b { font-weight: 500; } .pt-asg b small { color: var(--muted); font-weight: 400; font-size: .76rem; }
.pt-asg > div { display: flex; flex-wrap: wrap; gap: 6px; } .pt-asg .chip { display: grid; text-align: right; line-height: 1.4; padding: 5px 12px; border-radius: 12px; }
.pt-asg .chip small { color: var(--muted); font-size: .7rem; margin: 0; }
.pt-seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; width: max-content; max-width: 100%; overflow-x: auto; }
.pt-seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; padding: 8px 16px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pt-seg button + button { border-inline-start: 1px solid var(--line); }
.pt-seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--mint); }
.pt-gtab td, .pt-gtab th { white-space: nowrap; }
.pt-gtab th.calc, .pt-gtab td.calc { color: var(--mint); } .pt-gtab td.calc.fin { color: #f3d48a; font-weight: 600; }
.pt-gtab th.mine, .pt-gtab td.mine { background: color-mix(in srgb, var(--mint) 10%, transparent); }
.pt-gtab td.low, .pt-gt td.low { color: #f2a596; } .pt-gt td.fin { color: #f3d48a; font-weight: 600; }
.pt-gin { width: 74px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; color: var(--paper); font: inherit; font-size: 1rem; font-weight: 600; padding: 4px 8px; direction: ltr; text-align: center; }
.pt-gin:focus { outline: none; border-color: var(--mint); } .pt-gin.changed { border-color: #f3d48a; background: rgba(243, 212, 138, .08); } .pt-gin.bad { border-color: #e06c5a; color: #f2a596; }
.pt-save { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: color-mix(in srgb, var(--ink) 92%, transparent); padding: 10px 0; backdrop-filter: blur(6px); z-index: 4; }
.pt-save span { color: var(--muted); font-size: .84rem; }
.pt-attbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.pt-attbar .f-fld { min-width: 160px; }
.pt-attsum { display: flex; gap: 10px; flex-wrap: wrap; font-size: .86rem; margin-inline-start: auto; } .pt-attsum span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.pt-att { display: grid; gap: 6px; }
.pt-ar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid #8fd6a6; border-radius: 12px; padding: 6px 12px; }
.pt-ar.m-a { border-inline-start-color: #e0815f; background: rgba(224, 129, 95, .07); } .pt-ar.m-l { border-inline-start-color: #f3d48a; } .pt-ar.m-e { border-inline-start-color: #7cc4ff; }
.pt-ar b { font-weight: 500; } .pt-ar small { color: var(--muted); font-size: .72rem; margin-inline-start: 6px; }
.pt-mk { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pt-mk button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; padding: 5px 11px; cursor: pointer; }
.pt-mk button + button { border-inline-start: 1px solid var(--line); }
.pt-mk button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.pt-mk button[data-mk$="|p"][aria-pressed="true"] { background: #8fd6a6; } .pt-mk button[data-mk$="|a"][aria-pressed="true"] { background: #e0815f; }
.pt-mk button[data-mk$="|l"][aria-pressed="true"] { background: #f3d48a; } .pt-mk button[data-mk$="|e"][aria-pressed="true"] { background: #7cc4ff; }
.pt-click { cursor: pointer; } .pt-click:hover td { background: var(--panel-2); }
.pt-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 8px 0; }
.pt-plan > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 1px; }
.pt-plan small { color: var(--muted); font-size: .74rem; } .pt-plan b { font-weight: 600; } .pt-plan span { font-size: .74rem; color: var(--muted); }
.pt-plan .ok { border-color: rgba(143, 214, 166, .45); } .pt-plan .ok span { color: #8fd6a6; } .pt-plan .late { border-color: rgba(242, 165, 150, .5); } .pt-plan .late span { color: #f2a596; }
.pt-adv { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin: 10px 0; }
.pt-ginfo { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; display: grid; gap: 4px; }
.pt-ginfo span { color: var(--muted); font-size: .82rem; } .pt-ginfo ul { margin: 4px 0 0; padding-inline-start: 18px; columns: 2 220px; font-size: .84rem; }
.pt-ginfo b { font-weight: 500; }
.pt-timer { text-align: center; background: rgba(243, 212, 138, .08); border: 1px solid rgba(243, 212, 138, .45); border-radius: 14px; padding: 6px 16px; display: grid; }
.pt-timer small { color: var(--muted); font-size: .74rem; } .pt-timer b { color: #f3d48a; font-weight: 600; }
.pt-ok { text-align: center; background: rgba(143, 214, 166, .06); border: 1px solid rgba(143, 214, 166, .4); border-radius: 18px; padding: 22px 16px; display: grid; gap: 8px; justify-items: center; }
.pt-ok > b { font-size: 1.3rem; color: #8fd6a6; } .pt-ok p { margin: 0; }
.pt-codes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pt-codes div { background: var(--ink); border: 1px dashed var(--mint); border-radius: 14px; padding: 8px 20px; display: grid; text-align: center; }
.pt-codes small { color: var(--muted); font-size: .76rem; } .pt-codes b { font-size: 1.5rem; letter-spacing: .08em; color: var(--mint); }
.pt-kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; } .pt-kv:last-child { border: 0; }
.pt-perms { margin: 0; padding-inline-start: 18px; display: grid; gap: 3px; font-size: .86rem; }
.pt-perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.pt-perm-grid > div { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; } .pt-perm-grid .pt-role { width: max-content; }
.pt-permbox { background: var(--panel-2); border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: grid; gap: 4px; font-size: .88rem; }
.pt-code { font-size: .9rem; color: var(--mint); white-space: nowrap; }
.pt-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.pt-grp { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.pt-grp > b { font-weight: 600; } .pt-grp small { color: var(--muted); font-size: .76rem; } .pt-grp ul { margin: 6px 0 0; padding-inline-start: 16px; font-size: .8rem; display: grid; gap: 1px; } .pt-grp ul b { font-weight: 500; }
.pt-teach { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; margin-top: 10px; }
.pt-inl { font: inherit; font-weight: 600; font-size: 1rem; color: var(--paper); background: transparent; border: 0; border-bottom: 1px dashed var(--line); padding: 2px 0; width: 180px; }
.pt-inl:focus { outline: none; border-color: var(--mint); }
.pt-colpick { position: sticky; top: calc(var(--hdr, 0px) + 44px); background: var(--ink); z-index: 4; padding: 6px 0; }
.f-card h3 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
/* online registration */
.j-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; counter-reset: s; }
.j-steps li { counter-increment: s; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 10px; }
.j-steps li::before { content: counter(s, arabic-indic) " · "; }
.j-steps li.on { color: var(--mint); border-color: var(--mint); } .j-steps li.done { color: #8fd6a6; }
.j-h { font-size: 1.15rem; margin: 6px 0 12px; font-weight: 600; }
.j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.j-card { text-align: right; background: linear-gradient(160deg, color-mix(in srgb, var(--mint) 14%, var(--panel)), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 4px; }
.j-card:hover { border-color: var(--mint); transform: translateY(-2px); } .j-card { transition: transform .15s, border-color .15s; }
.j-card b { font-size: 1.2rem; font-weight: 600; } .j-card span { color: var(--muted); font-size: .84rem; } .j-card em { font-style: normal; font-size: .8rem; }
.j-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 14px; }
.j-grp { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.j-grp.full { opacity: .6; }
.j-grp-h { display: flex; justify-content: space-between; align-items: center; } .j-grp-h b { font-size: 1.15rem; font-weight: 600; } .j-grp-h span { font-size: .8rem; }
.j-grp small { color: var(--muted); font-size: .8rem; }
.j-grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.j-grp li { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; border-bottom: 1px dashed var(--line); padding-bottom: 3px; } .j-grp li span { color: var(--muted); } .j-grp li b { font-weight: 500; text-align: left; }
.j-pick { background: var(--panel-2); border: 1px solid var(--mint); border-radius: 14px; padding: 10px 14px; display: grid; gap: 2px; margin: 10px 0; } .j-pick span { color: var(--muted); font-size: .82rem; }
.j-done { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 18px; display: grid; gap: 8px; justify-items: center; max-width: 620px; margin: 0 auto; }
.j-done > small { color: var(--muted); } .j-done > b { font-size: 2rem; letter-spacing: .08em; color: var(--mint); }
.j-done p { margin: 0; } .j-done .pt-perms { text-align: right; justify-self: stretch; }
.j-st { border-radius: 999px; padding: 3px 14px; font-size: .86rem; background: rgba(243, 212, 138, .1); color: #f3d48a; }
.j-done.done .j-st { background: rgba(143, 214, 166, .12); color: #8fd6a6; } .j-done.expired .j-st, .j-done.cancelled .j-st { background: rgba(242, 165, 150, .1); color: #f2a596; }
.j-timer { display: grid; background: rgba(243, 212, 138, .06); border: 1px solid rgba(243, 212, 138, .4); border-radius: 16px; padding: 10px 26px; }
.j-timer small, .j-timer span { color: var(--muted); font-size: .78rem; } .j-timer b { font-size: 1.4rem; color: #f3d48a; }
.j-status { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; }
.j-status summary { cursor: pointer; color: var(--mint); } .j-status form { margin-top: 10px; align-items: end; }
/* print: student cards + codes guide */
.p-scs { width: 210mm; padding: 8mm; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5mm; background: #fff; font-family: var(--font-body); color: #111; }
.p-sc { background: #fff; color: #111; border: 1.3px solid #333; border-radius: 3.5mm; padding: 3.5mm 4.5mm; height: 63mm; display: flex; flex-direction: column; gap: 2mm; break-inside: avoid; position: relative; overflow: hidden; }
.p-sc::before { content: ""; position: absolute; inset: 0 0 auto; height: 1.6mm; background: var(--rc); }
.p-sc-h { display: flex; gap: 3mm; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 1.5mm; margin-top: 1mm; }
.p-sc-h img { width: 10mm; height: 10mm; object-fit: contain; } .p-sc-h b { display: block; font-size: 10pt; } .p-sc-h small { font-size: 7.5pt; color: #555; }
.p-sc-b { display: flex; gap: 3mm; flex: 1; } .p-sc-b > div:first-child { flex: 1; display: grid; align-content: start; gap: .5mm; }
.p-sc-b small { font-size: 7pt; color: #666; } .p-sc-b > div > b { font-size: 11pt; line-height: 1.35; }
.p-sc-c { display: flex; gap: 3mm; margin-top: 1.5mm; } .p-sc-c span { border: 1px dashed #999; border-radius: 2mm; padding: .6mm 2.5mm; display: grid; }
.p-sc-c b { font-size: 12pt; letter-spacing: .5pt; }
.p-sc-qr { width: 25mm; display: grid; justify-items: center; gap: .5mm; align-content: center; } .p-sc-qr svg { width: 24mm; height: 24mm; }
.p-sc-f { font-size: 6.5pt; color: #666; border-top: 1px solid #eee; padding-top: 1mm; }
.p-codes h3 { font-size: 12pt; margin: 6mm 0 1mm; } .p-codes h3 small { color: #666; font-weight: 400; }
.p-codes .p-perm { font-size: 8.5pt; color: #444; margin: 0 0 2mm; } .p-codes td.ltr b { font-size: 11pt; letter-spacing: .5pt; }
.p-codes .p-rc-h { margin-bottom: 3mm; }
@media (max-width: 560px) {
  .pt-li .f-mini { display: none; }
  .pt-ar { padding: 8px 10px; } .pt-mk button { padding: 6px 9px; }
  .pt-tile b { font-size: 1.2rem; }
}
.pt-body .f-grid, .j-groups ~ .f-card .f-grid, #j-form .f-grid { align-items: start; }

/* view / edit bar */
.reg-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--muted); border-radius: 14px; padding: 12px 16px; }
.reg-sw.on { border-inline-start-color: var(--mint); } .reg-sw b { display: block; } .reg-sw small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.7; } .reg-sw small a { color: var(--mint); }
.pt-viewbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-viewbar .pill svg { width: 17px; height: 17px; }
.pt-badge { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 3px 12px; font-size: .78rem; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.pt-badge.edit { color: #f3d48a; border-color: rgba(243, 212, 138, .5); background: rgba(243, 212, 138, .08); } .pt-badge svg { width: 14px; height: 14px; }
.pt-view td, .pt-view th { text-align: center; } .pt-view td:nth-child(2), .pt-view th:nth-child(2) { text-align: right; } .pt-view tfoot td:nth-child(2) { text-align: center; }
.pt-view tfoot td { color: var(--mint); font-weight: 600; border-top: 2px solid var(--line); }
.pt-li .pill { padding: 5px 10px; } .pt-li .pill svg { width: 16px; height: 16px; }

/* ---------- printed documents (A4, school identity) ---------- */
.pd, .rc2-sheet, .p-scs { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd { background: #fff; color: #1b1b1b; font-family: var(--font-body); font-size: 9.5pt; line-height: 1.5; direction: rtl; }
.pd-h { display: flex; align-items: center; gap: 4mm; padding: 0 0 3mm; border-bottom: 2.4px solid var(--rc); position: relative; }
.pd-h::after { content: ""; position: absolute; inset-inline: 0; bottom: -4.2px; height: 1.2px; background: var(--ra); }
.pd-logo { width: 17mm; height: 17mm; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #fff; box-shadow: 0 0 0 1mm color-mix(in srgb, var(--ra) 35%, #fff); flex: none; }
.pd-logo img { width: 92%; height: 92%; object-fit: contain; }
.pd-n b { display: block; font-size: 14pt; color: var(--rc); line-height: 1.3; } .pd-n small { color: #666; font-size: 8pt; }
.pd-t { margin-inline-start: auto; text-align: center; display: grid; gap: 1mm; justify-items: center; }
.pd-t strong { background: var(--rc); color: #fff; border-radius: 2mm; padding: 1.2mm 5mm; font-size: 12.5pt; font-weight: 700; }
.pd-t span { font-size: 8.5pt; color: #444; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 2mm; margin: 4.5mm 0 3mm; }
.pd-meta span { border: 1px solid color-mix(in srgb, var(--rc) 30%, #ddd); border-radius: 2mm; padding: .8mm 3mm; background: color-mix(in srgb, var(--rc) 5%, #fff); display: grid; }
.pd-meta small { font-size: 6.8pt; color: #777; } .pd-meta b { font-size: 9.5pt; }
.pd-b { margin-top: 2mm; }
.pd-sec { font-size: 11pt; color: var(--rc); margin: 4mm 0 1.5mm; padding-inline-start: 2.5mm; border-inline-start: 1.2mm solid var(--ra); break-after: avoid; } .pd-sec small { color: #777; font-weight: 400; font-size: 8.5pt; }
.pd-perm { font-size: 8pt; color: #555; margin: 0 0 1.5mm; }
.pd-note { font-size: 8.5pt; color: #444; margin: 2mm 0; }
.pd-tbl { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.pd-tbl th { background: var(--rc); color: #fff; font-weight: 600; padding: 1.6mm 1.5mm; text-align: center; border: .3mm solid color-mix(in srgb, var(--rc) 80%, #000); font-size: 8pt; }
.pd-tbl th u { text-decoration: none; color: color-mix(in srgb, var(--ra) 70%, #fff); }
.pd-tbl td { border: .25mm solid #c9c9c9; padding: 1.2mm 1.5mm; text-align: center; }
.pd-tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--rc) 4%, #fff); }
.pd-tbl td.nm { text-align: right; font-weight: 600; white-space: nowrap; } .pd-tbl td.sm { font-size: 7.6pt; } .pd-tbl td.msg { text-align: right; font-size: 8pt; }
.pd-tbl td.code { font-weight: 700; letter-spacing: .4pt; font-size: 10pt; }
.pd-tbl td.fin { font-weight: 700; color: var(--rc); background: color-mix(in srgb, var(--ra) 12%, #fff) !important; }
.pd-tbl td.low { color: #b3261e; font-weight: 700; }
.pd-tbl tfoot td { font-weight: 700; background: color-mix(in srgb, var(--ra) 18%, #fff); border-top: .6mm solid var(--rc); }
.pd-tbl tr.void td { text-decoration: line-through; color: #999; }
.pd-tbl td.sig { width: 30mm; } .pd-tbl.roll td:not(:nth-child(-n+2)) { width: 17mm; height: 7mm; }
.pd-tbl.att td { padding: .8mm .5mm; font-size: 8pt; } .pd-tbl.att td.a { color: #b3261e; font-weight: 700; background: #fbe9e6 !important; } .pd-tbl.att td.l { color: #a06a00; } .pd-tbl.att td.e { color: #2a62a8; } .pd-tbl.att td.p { color: #3a8f5a; }
.pd-tbl.att td.tot { font-weight: 700; } .pd-tbl .vd { font-size: 6.5pt; line-height: 1.15; display: block; }
.pd-tbl tr, .pd-tbl.keep { break-inside: avoid; }
.pd-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 6mm; margin: 0; } .pd-dl div { border-bottom: 1px dotted #aaa; padding-bottom: 1mm; } .pd-dl dt { font-size: 7.5pt; color: #777; } .pd-dl dd { margin: 0; font-weight: 600; }
.pd-form { display: flex; gap: 5mm; align-items: flex-start; margin-top: 2mm; } .pd-form .pd-dl { flex: 1; }
.pd-photo { width: 30mm; height: 38mm; border: 1.2px dashed var(--rc); border-radius: 2mm; display: grid; place-items: center; text-align: center; color: #999; font-size: 8pt; flex: none; }
.pd-sign { display: flex; justify-content: space-around; align-items: flex-end; gap: 8mm; margin-top: 10mm; break-inside: avoid; font-size: 9pt; }
.pd-sign div { min-width: 45mm; text-align: center; } .pd-sign i { display: block; border-top: 1px solid #333; margin-bottom: 1mm; }
.pd-stamp { width: 20mm; height: 20mm; border: 1.4px dashed var(--rc); border-radius: 50%; display: grid; place-items: center; color: var(--rc); font-size: 7.5pt; opacity: .7; }
.pd-f { display: flex; justify-content: space-between; gap: 4mm; margin-top: 6mm; padding-top: 1.5mm; border-top: 1px solid #ddd; font-size: 7pt; color: #888; }

/* ---------- receipt / voucher: two copies on one A4 ---------- */
.rc2-sheet { width: 210mm; height: 297mm; padding: 7mm 9mm; box-sizing: border-box; background: #fff; color: #1b1b1b; display: flex; flex-direction: column; font-family: var(--font-body); direction: rtl; }
.rc2 { flex: 1; min-height: 0; position: relative; border: 1.3px solid color-mix(in srgb, var(--rc) 60%, #999); border-radius: 4mm; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.rc2::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2.2mm; background: linear-gradient(var(--rc), var(--ra)); z-index: 3; }
.rc2-wm { position: absolute; inset: 0; display: grid; place-items: center; opacity: .055; pointer-events: none; } .rc2-wm img { width: 68mm; }
.rc2-void { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64pt; font-weight: 800; color: rgba(179, 38, 30, .2); transform: rotate(-16deg); z-index: 2; pointer-events: none; }
.rc2-h { display: flex; align-items: center; gap: 4mm; padding: 3.5mm 7mm 3mm 6mm; background: linear-gradient(110deg, color-mix(in srgb, var(--rc) 10%, #fff), #fff 70%); border-bottom: 2.4px solid var(--rc); position: relative; }
.rc2-logo { width: 16mm; height: 16mm; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1mm color-mix(in srgb, var(--ra) 40%, #fff); flex: none; } .rc2-logo img { width: 92%; height: 92%; object-fit: contain; }
.rc2-n { min-width: 0; } .rc2-n b { display: block; font-size: 13pt; color: var(--rc); line-height: 1.3; } .rc2-n small { color: #666; font-size: 7.8pt; }
.rc2-t { margin-inline-start: auto; display: grid; justify-items: center; gap: .6mm; }
.rc2-t strong { background: var(--rc); color: #fff; border-radius: 2mm; padding: 1mm 6mm; font-size: 14.5pt; font-weight: 800; }
.rc2-t span { font-size: 6.5pt; letter-spacing: 2.2pt; color: #888; }
.rc2-t em { font-style: normal; font-size: 10.5pt; font-weight: 700; color: #b3261e; border: 1.3px solid var(--ra); border-radius: 1.6mm; padding: .2mm 3mm; background: #fff; }
.rc2-band { display: flex; justify-content: space-between; gap: 3mm; padding: 1.4mm 7mm 1.4mm 6mm; font-size: 8.5pt; background: color-mix(in srgb, var(--ra) 16%, #fff); color: #333; }
.rc2-copy { font-weight: 700; color: var(--rc); }
.rc2-body { flex: 1; min-height: 0; padding: 3mm 7mm 2.5mm 6mm; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 2mm 6mm; position: relative; z-index: 1; }
.rc2-row { display: flex; gap: 2mm; align-items: baseline; font-size: 9.8pt; min-width: 0; } .rc2-row.wide { grid-column: 1 / -1; }
.rc2-row span { color: #666; white-space: nowrap; font-size: 8.5pt; } .rc2-row b { flex: 1; border-bottom: 1px dotted #9a9a9a; padding-bottom: .3mm; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc2-amt { grid-column: 1 / -1; display: flex; gap: 3mm; align-items: stretch; margin-top: .5mm; }
.rc2-amt .box { background: var(--rc); color: #fff; border-radius: 2.5mm; padding: 1.2mm 5mm; display: grid; justify-items: center; align-content: center; min-width: 42mm; }
.rc2-amt .box small { font-size: 6.8pt; opacity: .85; } .rc2-amt .box b { font-size: 17pt; line-height: 1.15; } .rc2-amt .box i { font-style: normal; font-size: 7.5pt; color: color-mix(in srgb, var(--ra) 60%, #fff); }
.rc2-amt .words { flex: 1; border: 1.2px dashed var(--ra); border-radius: 2.5mm; padding: 1.5mm 4mm; font-size: 9.8pt; font-weight: 600; background: color-mix(in srgb, var(--ra) 6%, #fff); display: flex; align-items: center; }
.rc2-fig { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm; }
.rc2-fig div { border: 1px solid #d5d5d5; border-top: .8mm solid var(--rc); border-radius: 1.6mm; padding: .7mm 3mm; } .rc2-fig small { display: block; font-size: 6.8pt; color: #777; } .rc2-fig b { font-size: 10.5pt; }
.rc2-fig .rem { border-top-color: #b3261e; } .rc2-fig .rem b { color: #b3261e; }
.rc2-ack { grid-column: 1 / -1; font-size: 8.5pt; color: #2e7d4f; background: #edf7f0; border: 1px solid #bfe0c9; border-radius: 1.6mm; padding: 1mm 3mm; }
.rc2-sign { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 1mm; font-size: 8.5pt; }
.rc2-sign div { min-width: 48mm; text-align: center; } .rc2-sign i { display: block; border-top: 1px solid #333; margin-bottom: .8mm; margin-top: 7mm; }
.rc2-stamp { width: 18mm; height: 18mm; border: 1.4px dashed var(--rc); border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--rc); font-size: 7pt; line-height: 1.2; opacity: .75; }
.rc2-f { display: flex; justify-content: space-between; gap: 3mm; padding: 1.2mm 7mm 1.2mm 6mm; border-top: 1px solid #e6e6e6; font-size: 6.8pt; color: #888; background: #fafafa; }
.rc2-cut { text-align: center; color: #999; font-size: 7.5pt; margin: 2.5mm 0; border-top: 1px dashed #aaa; line-height: 0; } .rc2-cut span { background: #fff; padding: 0 3mm; position: relative; top: -1px; }
.pd .ltr, .rc2 .ltr { color: inherit; font-family: inherit; } .pd-tbl td.code { color: var(--rc); font-family: Consolas, "Courier New", monospace; }

/* ---------- school team + teacher pages ---------- */
.sis-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 18px; }
.sis-card { text-decoration: none; color: inherit; }
.sis-card .avatar { width: 104px; height: 104px; }
.sis-card h3 { font-size: 1rem; }
.sis-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.t-sec h3.sub small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.sis-quote { margin: 16px 0 0; padding: 12px 18px; border-inline-start: 3px solid var(--mint); background: var(--panel); border-radius: 12px; font-size: 1.05rem; color: var(--mint); }
.sis-teach { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.sis-tg { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 3px; }
.sis-tg small { color: var(--muted); font-size: .78rem; } .sis-tg b { font-size: 1.1rem; font-weight: 600; } .sis-tg span { color: var(--muted); font-size: .84rem; }
.sis-tg .pill { margin-top: 8px; justify-self: start; padding: 6px 14px; font-size: .82rem; }
.sis-honor { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; margin-bottom: 18px; }
.sis-honor > div { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.sis-honor .top { border-color: rgba(230, 194, 122, .55); background: linear-gradient(120deg, rgba(230, 194, 122, .1), var(--panel)); }
.sis-honor .rk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-weight: 700; flex: none; }
.sis-honor .top .rk { background: #e6c27a; color: #1b1406; }
.sis-honor div div { flex: 1; min-width: 0; display: grid; } .sis-honor b { font-weight: 500; } .sis-honor small { color: var(--muted); font-size: .74rem; }
.sis-honor em { font-style: normal; font-size: 1.25rem; font-weight: 700; color: #e6c27a; }
.avatar.mini { width: 30px; height: 30px; border-width: 1px; flex: none; }
.j-t { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-radius: 999px; padding: 2px 2px 2px 10px; }
.j-t:hover b { color: var(--mint); text-decoration: underline; }
.j-grp li { align-items: center; } .j-grp li .j-t { margin-inline-start: auto; }
.j-team { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.j-team .j-t span { display: grid; line-height: 1.3; } .j-team small { color: var(--muted); font-size: .7rem; } .j-team b { font-weight: 500; font-size: .86rem; }
.pf-top { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.pf-photo { display: grid; gap: 8px; justify-items: center; } .pf-photo .avatar { width: 120px; height: 120px; }
.pf-photo .pill { cursor: pointer; padding: 6px 14px; font-size: .82rem; }
.f-fld textarea { background: var(--panel-2); border: 1px solid var(--line); color: var(--paper); border-radius: 10px; padding: 8px 12px; font: inherit; resize: vertical; width: 100%; }

/* ---------- school records (أمين السجلات) ---------- */
.pt-role.r-records { color: #e6c27a; border-color: rgba(230, 194, 122, .45); }
.pt-own { color: var(--muted); font-size: .74rem; }
.pt-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.pt-form1 { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.pt-form1 > b { font-size: 1rem; } .pt-form1 > small { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.pt-form1 .f-acts { margin: 0; } .pt-form1 .pt-q { margin: 0; }
.pt-dl dd.miss { color: #e0815f; font-weight: 400; font-size: .85rem; }
.pt-papers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.pt-papers li.ok { color: var(--mint); }
.pt-papers-ed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 16px; }
.pt-hists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; } .pt-hists b small { color: var(--muted); font-weight: 400; }
.pt-hed { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.pt-hgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; margin-top: 8px; max-width: 520px; }
.pt-hgrid input { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; color: inherit; font: inherit; padding: 6px 10px; min-width: 0; }
.pt-panes { display: grid; gap: 4px; margin-bottom: 8px; } .pt-panes .f-fld { max-width: 320px; margin-inline-start: 26px; }
.pt-hint.bad { color: #e0815f; }
.pt-lbw { margin-bottom: 10px; } .pt-lbh { margin: 12px 0 6px; font-size: .9rem; color: var(--mint); }
.pt-body .f-card .pt-chips + .pt-chips { margin-top: 8px; }

/* blank columns in printed lists */
.pd-tbl td.bl { min-width: 16mm; height: 6.5mm; } .pd-tbl.blank td.bl { min-width: 12mm; }
.pd-tbl.lbt td.nm { width: 1%; }

/* ---------- official forms: admission form + grade confirmation (plain, like the ministry papers) ---------- */
.od { background: #fff; color: #111; font-family: var(--font-body); font-size: 11pt; line-height: 1.55; direction: rtl; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.od b { font-weight: 700; }
.od-photo { width: 30mm; height: 36mm; border: 1.6px solid #111; display: grid; place-items: center; text-align: center; font-size: 10.5pt; line-height: 1.7; flex: none; }
.od-photo.sm { width: 20mm; height: 25mm; font-size: 9pt; border-width: 1px; border-color: #888; }
.od-logo { width: 22mm; height: 22mm; display: grid; place-items: center; } .od-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.od-adm-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 6mm; }
.od th, .od td { color: #111 !important; } .od small { color: inherit; }
.od-adm-t { display: grid; justify-items: center; gap: 1.5mm; padding-top: 3mm; flex: 1; } .od-adm-t b { font-size: 15pt; }
.od-band { display: flex; justify-content: space-between; gap: 6mm; flex-wrap: wrap; margin: 5mm 0 4mm; padding: 4mm 6mm; background: #b9dca6; border: 1px solid #8fbf78; font-size: 12.5pt; }
.od-t { width: 100%; border-collapse: collapse; }
.od-t th { width: 52mm; background: #dde9f4; text-align: right; font-weight: 700; padding: 1.6mm 3mm; border: 1px solid #555; font-size: 11.5pt; white-space: nowrap; }
.od-t td { border: 1px solid #555; padding: 1.6mm 3mm; height: 7.5mm; font-size: 11.5pt; }
.od-sig2 { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #555; border-top: 0; }
.od-sig2 div { height: 30mm; padding: 2mm 4mm; font-weight: 700; text-align: center; font-size: 12pt; } .od-sig2 div + div { border-inline-start: 1px solid #555; }
.od-rules { margin-top: 5mm; font-size: 10.2pt; line-height: 1.65; }
.od-rules > b { display: inline-block; color: #c00; border: 1px solid #c00; padding: 1mm 4mm; margin-bottom: 2mm; }
.od-rules ol { margin: 0; padding-inline-start: 7mm; list-style: arabic-indic; } .od-rules li { margin-bottom: 1.6mm; text-align: justify; }
.od-f { margin-top: 4mm; font-size: 7.5pt; color: #888; text-align: center; }
.od-bsm { text-align: center; font-weight: 700; font-size: 14pt; margin: 0 0 3mm; }
.od-top { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; gap: 4mm; }
.od-from { text-align: center; font-size: 11pt; } .od-from b { font-size: 11.5pt; }
.od-subj { display: grid; justify-items: center; gap: 4mm; padding-top: 2mm; } .od-subj b { font-size: 13pt; }
.od-ph { display: grid; justify-items: end; gap: 1mm; font-size: 10.5pt; }
.od-txt { margin: 5mm 0 4mm; font-size: 12pt; line-height: 2.1; text-align: justify; }
.od-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.od-g { width: 100%; border-collapse: collapse; font-size: 10pt; break-inside: avoid; }
.od-g th, .od-g td { border: 1px solid #444; padding: 1mm 1.5mm; text-align: center; height: 6.4mm; }
.od-g thead tr:first-child th { background: #ecefe2; text-align: right; font-size: 11pt; } .od-g thead small { font-weight: 400; }
.od-g th.m { background: #e3eedb; width: 40%; } .od-g th.d { background: #fbe3d0; } .od-g th.n { background: #bfe1ee; }
.od-g tbody tr:nth-child(even) td { background: #f3f3f3; } .od-g td.w { font-size: 9pt; }
.od-note { margin-top: 4mm; font-size: 10.5pt; line-height: 1.9; } .od-note p { margin: 0; } .od-note > b { display: block; }
.od-sign { display: flex; justify-content: space-between; align-items: center; margin-top: 8mm; font-weight: 700; font-size: 12pt; padding: 0 8mm; }
.od-sign div { display: grid; justify-items: center; gap: 1mm; min-width: 40mm; } .od-sign small { font-weight: 400; font-size: 9pt; color: #555; }
.od .pd-stamp { --rc: #777; }

/* ---------- uploaded papers ---------- */
.pt-up { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; } .pt-up .f-fld { min-width: 240px; flex: 1; margin: 0; } .pt-up .pt-hint { flex-basis: 100%; margin: 0; }
.pt-upbtn { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; } .pt-upbtn svg { width: 16px; height: 16px; }
.pt-files { display: grid; gap: 6px; }
.pt-file { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pt-file > div { flex: 1; min-width: 0; display: grid; } .pt-file small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-fic { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, var(--panel)); }
.pt-hint.ok { color: var(--mint); }
.pt-viewer { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .82); display: flex; flex-direction: column; padding: 12px; gap: 10px; }
.pt-vbar { display: flex; gap: 8px; align-items: center; color: #fff; } .pt-vbar b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-viewer img { flex: 1; min-height: 0; object-fit: contain; width: 100%; } .pt-viewer iframe { flex: 1; border: 0; background: #fff; border-radius: 8px; width: 100%; }
.pt-codein { display: flex; gap: 6px; align-items: center; } .pt-codein input { flex: 1; min-width: 0; }

/* ---------- online registration form ---------- */
.j-form { display: grid; gap: 12px; }
.j-form .f-card h3 small { color: var(--muted); font-weight: 400; font-size: .78rem; margin-inline-start: 6px; }
.j-n { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--mint) 20%, var(--panel-2)); color: var(--mint); font-size: .85rem; margin-inline-end: 6px; }
.j-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.j-file { cursor: pointer; border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; text-align: center; transition: border-color .2s; }
.j-file:hover { border-color: var(--mint); } .j-file b { font-size: .9rem; } .j-file span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-file.ok { border-style: solid; border-color: var(--mint); } .j-file.ok span { color: var(--mint); }

/* ---------- printing, v2: nothing of the site's screen layers reaches the paper ---------- */
#print-root { color: #111; color-scheme: light; }
#print-root table { color: inherit; font-family: inherit; }
@media print {
  body.printing::before, body.printing::after { content: none !important; display: none !important; }
  body.printing #print-root :is(table, thead, tbody, tfoot, tr, td, th) { position: static !important; inset: auto !important; }
}
/* the letterhead: logo and school name on one side, the document's title on the other */
.pd { position: relative; font-family: "IBM Plex Sans Arabic", var(--font-body); font-size: 9.6pt; color: #161a17; font-variant-numeric: tabular-nums; }
.pd + .pd { break-before: page; }
.pd-wm { position: absolute; inset: 34mm 0 auto; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.pd-wm img { width: 92mm; height: 92mm; object-fit: contain; opacity: .045; filter: grayscale(1); }
.pd > *:not(.pd-wm) { position: relative; z-index: 1; }
.pd-h { display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding: 0 0 3mm; border: 0; }
.pd-h::after { content: none; }
.pd-id { display: flex; align-items: center; gap: 3.5mm; min-width: 0; }
.pd-logo { width: 19mm; height: 19mm; box-shadow: none; border: .5mm solid color-mix(in srgb, var(--rc) 35%, #fff); }
.pd-n { display: grid; gap: .3mm; } .pd-n b { font-family: "Noto Kufi Arabic", var(--font-body); font-weight: 700; font-size: 14pt; line-height: 1.35; color: var(--rc); }
.pd-n small { font-size: 7.8pt; color: #5d655f; line-height: 1.45; }
.pd-t { margin: 0; text-align: left; justify-items: end; }
.pd-t strong { font-family: "Noto Kufi Arabic", var(--font-body); font-weight: 700; font-size: 13pt; background: none; color: #161a17; padding: 0; border-radius: 0; line-height: 1.4; }
.pd-t span { font-size: 8.6pt; color: #4b544d; background: color-mix(in srgb, var(--rc) 8%, #fff); border: .3mm solid color-mix(in srgb, var(--rc) 25%, #fff); border-radius: 99px; padding: .4mm 3mm; }
.pd-rule { display: grid; gap: .7mm; margin-bottom: 4mm; } .pd-rule i { display: block; height: .7mm; background: var(--rc); } .pd-rule i + i { height: .3mm; background: var(--ra); width: 100%; }
.pd-meta { margin: 0 0 4mm; gap: 0; border: .3mm solid #d5dad6; border-radius: 2mm; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(32mm, 1fr)); }
.pd-meta span { border: 0; border-inline-start: .3mm solid #d5dad6; border-radius: 0; background: #fafbfa; padding: 1.2mm 3mm; } .pd-meta span:first-child { border-inline-start: 0; }
.pd-meta small { font-size: 6.8pt; color: #707871; } .pd-meta b { font-size: 9.4pt; font-weight: 600; }
.pd-sec { font-family: "Noto Kufi Arabic", var(--font-body); font-weight: 700; font-size: 10.5pt; }
.pd-tbl { font-size: 9pt; }
.pd-tbl th { font-weight: 600; font-size: 8.4pt; padding: 1.8mm 1.5mm; border-color: color-mix(in srgb, var(--rc) 70%, #000); }
.pd-tbl td { border-color: #cfd5d0; padding: 1.35mm 1.6mm; }
.pd-tbl td.rn { color: #7a827c; font-size: 8pt; width: 7mm; } .pd-tbl td.nv { font-weight: 600; }
.pd-tbl.lbt td.nm { font-weight: 600; font-size: 9.6pt; }
.pd-sign { margin-top: 12mm; } .pd-sign div { font-weight: 600; }
.pd-f { font-size: 6.8pt; color: #8a918b; border-top: .3mm solid #dfe3e0; }

/* official forms: Naskh for the text, Kufi for titles */
.od { font-family: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif; font-size: 12pt; }
.od-adm-t b, .od-subj b, .od-bsm, .od-rules > b, .od-band b, .od-sign { font-family: "Noto Kufi Arabic", var(--font-body); }
.od-t th, .od-g th { font-family: "Noto Kufi Arabic", var(--font-body); font-weight: 600; font-size: 10pt; }
.od-from { display: grid; justify-items: center; gap: .5mm; } .od-flogo { width: 16mm; height: 16mm; object-fit: contain; margin-bottom: 1mm; }
.od-from b { font-family: "Noto Kufi Arabic", var(--font-body); font-size: 11pt; }

/* list builder chips: the order number of each picked column */
.pt-lbrow { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 8px; } .pt-lbrow > span { color: var(--muted); font-size: .82rem; padding-top: 6px; }
.pt-lbc i { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: .7rem; font-weight: 700; margin-inline-end: 5px; }
@media (max-width: 560px) { .pt-lbrow { grid-template-columns: 1fr; } }
/* fit the official forms on one A4 with the Naskh font */
.od { font-size: 11pt; line-height: 1.45; }
.od-photo { width: 27mm; height: 33mm; }
.od-band { margin: 3.5mm 0 3mm; padding: 2.6mm 5mm; font-size: 11pt; row-gap: 1mm; }
.od-t th, .od-t td { padding: 1.1mm 3mm; height: 6.6mm; font-size: 10.8pt; } .od-t th { font-size: 9.8pt; }
.od-sig2 div { height: 21mm; font-size: 11pt; }
.od-rules { margin-top: 3.5mm; font-size: 9.3pt; line-height: 1.55; } .od-rules li { margin-bottom: 1mm; }
.od-txt { font-size: 11.5pt; line-height: 2; margin: 4mm 0 3mm; }
.od-g th, .od-g td { height: 5.9mm; padding: .8mm 1.4mm; }
.od-note { line-height: 1.75; font-size: 10.2pt; } .od-sign { margin-top: 6mm; }
.pd-sign { margin-top: 8mm; break-before: avoid; } .pd-tbl td { padding: 1.15mm 1.6mm; }
.pd-tbl tr:last-child { break-after: avoid; }

/* ---------- records library + search ---------- */
.pt-search { display: flex; align-items: center; gap: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; margin-bottom: 10px; }
.pt-search:focus-within { border-color: var(--mint); } .pt-search svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
.pt-search input { flex: 1; min-width: 0; background: none; border: 0; color: inherit; font: inherit; padding: 9px 0; outline: none; }
.pt-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 6px; max-height: 430px; overflow: auto; }
.pt-libi { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pt-libi b { font-weight: 500; font-size: .88rem; } .pt-libi span { display: flex; gap: 4px; flex: none; } .pt-libi .pill { padding: 5px 12px; font-size: .78rem; }
/* control register setup */
.pt-exrow { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; } .pt-exrow > select, .pt-exrow > input { flex: 1; min-width: 180px; }
.pt-exrow select, .pt-exrow input, .pt-extbl select, .pt-extbl input { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; color: inherit; font: inherit; padding: 7px 10px; }
.pt-exrow .f-fld { margin: 0; max-width: 150px; }
.pt-extbl td { vertical-align: top; } .pt-extbl td small { display: block; color: var(--muted); font-size: .72rem; } .pt-extbl select { min-width: 110px; }
.pt-exauto { margin: 0; max-width: 190px; }
.pt-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 0 18px; }
.pt-ctl .pt-check { justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; } .pt-ctlb { display: flex; gap: 4px; margin-inline-start: auto; }

/* ---------- control register prints ---------- */
.ctl-p { font-size: 10pt; line-height: 1.9; text-align: justify; } .ctl-p.sm { font-size: 8.8pt; line-height: 1.7; color: #3d453f; }
.ctl-ol { margin: 2mm 0; padding-inline-start: 6mm; list-style: arabic-indic; font-size: 9.6pt; line-height: 1.75; } .ctl-ol li { margin-bottom: 1.2mm; text-align: justify; }
.ctl-ul { font-size: 9.6pt; line-height: 1.8; }
.pd-tbl.ctl { margin-bottom: 3mm; } .pd-tbl.ctl td { height: 6.4mm; } .pd-tbl.ctl th { white-space: normal; }
.ctl-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 5mm; } .ctl-sub { display: block; font-family: "Noto Kufi Arabic", var(--font-body); font-size: 9.6pt; color: var(--rc); margin: 1mm 0; }
.ctl-map { width: 100%; border-collapse: separate; border-spacing: 2.5mm; } .ctl-map td { border: .5mm solid #333; border-radius: 2mm; padding: 3mm; text-align: center; width: 33%; height: 17mm; }
.ctl-map td b { display: block; font-family: "Noto Kufi Arabic", var(--font-body); font-size: 10.5pt; } .ctl-map td small { font-size: 8.4pt; color: #3d453f; }
.ctl-cover { height: 270mm; display: grid; place-items: center; break-after: page; font-family: "Noto Kufi Arabic", var(--font-body); color: #161a17; }
.ctl-cv-in { width: 100%; height: 100%; border: 1.6mm double var(--rc); border-radius: 4mm; display: grid; align-content: center; justify-items: center; gap: 5mm; text-align: center; padding: 14mm; box-sizing: border-box; }
.ctl-cv-in img { width: 40mm; height: 40mm; object-fit: contain; } .ctl-cv-in span { font-size: 14pt; color: var(--rc); }
.ctl-cv-in h1 { font-size: 64pt; margin: 4mm 0 0; line-height: 1.2; color: var(--rc); } .ctl-cv-in h2 { font-size: 22pt; margin: 0; line-height: 1.6; } .ctl-cv-in h3 { font-size: 16pt; margin: 0; color: #3d453f; font-weight: 500; }
.ctl-sign { height: 270mm; break-after: page; display: grid; grid-template-rows: auto 1fr auto; font-family: "Noto Kufi Arabic", var(--font-body); color: #161a17; border: 1.4mm solid var(--rc); border-radius: 4mm; padding: 10mm; box-sizing: border-box; }
.ctl-sign:last-child { break-after: auto; }
.ctl-sg-h { display: flex; align-items: center; gap: 5mm; font-size: 13pt; } .ctl-sg-h img { width: 24mm; height: 24mm; object-fit: contain; } .ctl-sg-h b { color: var(--rc); }
.ctl-sg-b { display: grid; align-content: center; gap: 8mm; } .ctl-sg-b div { display: flex; align-items: center; justify-content: space-between; border-bottom: .6mm solid #ccc; padding-bottom: 4mm; }
.ctl-sg-b small { font-size: 26pt; color: #3d453f; } .ctl-sg-b b { font-size: 60pt; color: var(--rc); line-height: 1.2; }
.ctl-sg-b div.sm small { font-size: 18pt; } .ctl-sg-b div.sm b { font-size: 22pt; color: #161a17; }
.ctl-sign p { text-align: center; font-size: 12pt; color: #5d655f; margin: 0; }

/* ---------- Eridu: the school system's signature ---------- */
.er-mk { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.er-sign { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; } .er-sign b { font-family: Lalezar, var(--font-body); font-weight: 400; letter-spacing: .02em; }
#a-head .er-sign, .r-head .er-sign { margin-inline-start: auto; align-self: center; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; }
#a-head .er-sign b, .r-head .er-sign b { color: var(--mint); font-size: 1rem; }
@media (max-width: 640px) { #a-head .er-sign, .r-head .er-sign { display: none; } }
.er-login { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.er-login .er-mk { width: 38px; height: 38px; } .er-login b { display: block; font: 400 1.35rem/1 Lalezar, var(--font-body); color: var(--paper); } .er-login span { color: var(--muted); font-size: .78rem; }
.pd-f .er-sign, .rc2-f .er-sign, .od-f .er-sign { color: #4b544d; } .pd-f .er-sign b, .rc2-f .er-sign b, .od-f .er-sign b { color: #0b5e48; font-size: 1.15em; }
.od-f { display: flex; justify-content: center; align-items: center; gap: .4em; flex-wrap: wrap; }
.p-sc-f .er-mk { width: 1.1em; height: 1.1em; margin-inline-end: .35em; }
.ctl-er { margin: 6mm 0 0; font-size: 11pt; color: #5d655f; } .ctl-er .er-sign b { color: #0b5e48; }

/* ---------- the teacher's own Eridu account (#teach) ---------- */
.er-mk.sm { width: 18px; height: 19px; vertical-align: -4px; margin-inline-end: 4px; flex: none; }
.pt-er { display: inline-flex; align-items: center; gap: 2px; border-color: color-mix(in srgb, var(--mint) 55%, transparent) !important; }
.pt-erhint { display: flex; gap: 8px; align-items: flex-start; background: color-mix(in srgb, var(--mint) 9%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; color: var(--paper); }
.pt-erhint .er-mk { margin-top: 3px; }
.pt-eid { color: #e6c27a; direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.te-gate { max-width: 620px; margin: 10px auto 0; display: grid; gap: 18px; }
.te-hero { display: flex; gap: 18px; align-items: center; background: radial-gradient(120% 140% at 90% 0%, color-mix(in srgb, var(--mint) 16%, var(--panel)), var(--panel) 60%); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 20px; }
.te-hero .te-mk { width: 74px; height: 78px; flex: none; filter: drop-shadow(0 0 18px rgba(169,211,176,.35)); }
.te-hero small { color: #e6c27a; font-weight: 600; letter-spacing: .3px; }
.te-hero h2 { margin: 2px 0 4px; font-family: var(--display, inherit); font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.15; }
.te-hero p { margin: 0; color: var(--muted); line-height: 1.75; }
.te-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin: 4px 0 10px; }
.te-how div { display: flex; gap: 8px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; font-size: .84rem; color: var(--muted); line-height: 1.6; }
.te-how b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mint) 22%, transparent); color: var(--mint); font-size: .8rem; }
.te { display: grid; gap: 14px; }
.te-no { color: #e6c27a; letter-spacing: .5px; }
.te-h { margin: 6px 0 -2px; font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.te-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.te-sc { background: linear-gradient(170deg, color-mix(in srgb, var(--mint) 8%, var(--panel)), var(--panel) 45%); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.te-sc.off { opacity: .6; }
.te-sc header { display: flex; gap: 12px; align-items: center; }
.te-sc header .p-logo, .te-sc header .logo, .te-sc header img { width: 52px !important; height: 52px !important; flex: none; border-radius: 14px; }
.te-sc header b { display: block; font-size: 1.05rem; line-height: 1.4; } .te-sc header small { color: var(--muted); font-size: .8rem; }
.te-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.te-st div { background: var(--panel-2); border-radius: 12px; padding: 7px 8px; text-align: center; } .te-st small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.3; } .te-st b { font-size: 1.05rem; font-weight: 600; }
.te-g { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.te-g li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; background: color-mix(in srgb, var(--panel-2) 70%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; }
.te-g b { font-size: .88rem; font-weight: 600; } .te-g span { grid-column: 1; color: var(--muted); font-size: .78rem; } .te-g i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--mint); font-size: .8rem; white-space: nowrap; }
.te-warn { margin: 0; color: #f3d48a; font-size: .84rem; } .te-last { margin: 0; color: var(--muted); font-size: .8rem; }
.te-inv { flex-wrap: wrap; } .te-invin { display: flex; gap: 10px; align-items: center; } .te-invin img, .te-invin .logo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.te-btns { display: flex; gap: 6px; flex: none; }
.te-foot { display: flex; justify-content: center; padding: 6px 0 2px; opacity: .85; }
@media (max-width: 520px) { .te-st { grid-template-columns: repeat(2, 1fr); } .te-hero { flex-direction: column; text-align: center; } }
.te-new { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: 4px 0 12px; padding: 11px 14px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--paper);
  background: color-mix(in srgb, #e6c27a 10%, var(--panel-2)); border: 1px dashed color-mix(in srgb, #e6c27a 60%, transparent); }
.te-new b { color: #f0d9a3; } .te-new span { color: var(--muted); font-size: .86rem; } .te-new:hover { border-style: solid; }
.te-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.te-codes b { font-size: 1.5rem; letter-spacing: 1px; }
.lg-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 5px; margin-bottom: 4px; }
.lg-k button, .lg-k label { font: inherit; color: var(--muted); background: none; border: 0; border-radius: 12px; padding: 10px 6px; cursor: pointer; text-align: center; }
.lg-k label input { position: absolute; opacity: 0; pointer-events: none; }
.lg-k button[aria-selected="true"], .lg-k label:has(input:checked) { background: var(--mint); color: var(--ink); }
.lg-k b { font-weight: 700; }
.te-ended { text-align: center; background: linear-gradient(160deg, color-mix(in srgb, #e6c27a 12%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, #e6c27a 45%, transparent); border-radius: 20px; padding: 26px 18px; display: grid; gap: 8px; justify-items: center; }
.te-ended h2 { margin: 0; font-family: var(--display, inherit); font-weight: 400; font-size: 2rem; } .te-ended p { margin: 0; color: var(--muted); max-width: 520px; line-height: 1.8; }
.te-ended.sm { padding: 14px; text-align: right; justify-items: start; } .te-ended.sm b { color: #f0d9a3; }
.pt-hqbar { display: flex; gap: 8px; align-items: center; border-color: color-mix(in srgb, var(--mint) 50%, transparent) !important; background: color-mix(in srgb, var(--mint) 10%, var(--panel)) !important; }
.pt-extra[hidden] { display: none; } .pt-xgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 2px 12px; margin: 6px 0; }
.pt-del { color: #f2a7a7 !important; border-color: color-mix(in srgb, #e07a7a 55%, transparent) !important; margin-inline-start: auto; }
.hq-acts { flex-wrap: wrap; justify-content: flex-end; } .hq-acts select { background: var(--panel-2); color: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .82rem; }
.hq-del { color: #f2a7a7 !important; } .hq-show { border-color: color-mix(in srgb, #e6c27a 55%, transparent); }
.pu { border-color: color-mix(in srgb, #e6c27a 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, #e6c27a 7%, var(--panel)), var(--panel)); }
.pu-ok { color: #9fe0b4; } .pu-steps { margin: 6px 0 0; padding-inline-start: 20px; color: var(--paper); line-height: 1.9; font-size: .9rem; }
.pu-msg { margin: 6px 0 0; font-size: .86rem; min-height: 0; } .pu-msg.ok { color: #9fe0b4; } .pu-msg.err { color: #f2a7a7; }
.pt-keep { justify-content: center; margin: 10px 0 2px; font-size: .9rem; flex-wrap: wrap; } .pt-keep small { color: var(--muted); font-size: .78rem; }
.md-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 14px; }
.md-v { position: relative; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #0d3b2c center / cover no-repeat; cursor: pointer; overflow: hidden; display: flex; align-items: flex-end; padding: 0; font: inherit; color: #fff; box-shadow: 0 14px 30px rgba(10, 40, 30, .25); }
.md-v:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .65)); }
.md-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(230, 194, 122, .95); color: #0d3b2c; font-size: 28px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.md-v small { position: relative; z-index: 2; padding: 10px 14px; font-weight: 600; }
.md-vp { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; margin-bottom: 14px; }
.md-vthumb { width: 140px; height: 90px; border-radius: 12px; background: #0d3b2c center / cover no-repeat; display: flex; align-items: flex-end; padding: 6px 8px; color: #fff; font-size: 13px; font-weight: 600; }
.md-fig { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.act-pts { margin: 14px 0 20px; padding: 0 22px 0 0; color: #5a655f; line-height: 1.9; font-size: 15px; } .act-gate .r-go { width: 100%; }
.act-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #eef5ef; border: 1px solid #d3e3d6; } .act-panel b { color: #14513f; } .act-line { margin: 6px 0 12px; }
.lg-saved .pt-list { gap: 8px; } .lg-row { display: flex; gap: 8px; align-items: stretch; } .lg-row .lg-acc { flex: 1; min-width: 0; } .lg-rm { flex: none; width: 44px; border-radius: 12px; border: 1px solid rgba(179,38,30,.35); background: transparent; color: #b3261e; font: 700 16px/1 inherit; cursor: pointer; } .lg-rm:hover, .lg-rm:focus-visible { background: #b3261e; color: #fff; } .lg-acc { width: 100%; font: inherit; color: inherit; text-align: right; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.lg-acc .logo, .lg-acc img, .lg-acc .pt-av { width: 42px; height: 42px; border-radius: 12px; flex: none; } .lg-acc .pt-av .er-mk { width: 26px; height: 27px; }
.lg-go { margin-inline-start: auto; color: var(--mint); font-weight: 600; white-space: nowrap; }
.nt-pick { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin: 6px 0; display: grid; gap: 0; }
.nt-pick small { color: var(--muted); } .stu { display: grid; gap: 12px; margin-top: 14px; }
.lg-k { grid-template-columns: repeat(5, 1fr); } @media (max-width: 520px) { .lg-k { grid-template-columns: repeat(3, 1fr); } }
.lg-kid { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.fm-kids { margin: -4px 0 0; } .fm-g td.low { color: #f2a7a7; } .fm-g td.fin { font-weight: 700; color: var(--mint); } .fm-codes .pt-tile b { font-size: 1.15rem; letter-spacing: 1px; }
/* the printed login card: student half + parent half */
#print-root .p-lcs { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
#print-root .p-lc { border: 1.2px solid var(--rc, #0b5e48); border-radius: 4mm; padding: 4mm; break-inside: avoid; color: #111; }
#print-root .p-lc-b { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin: 3mm 0; }
#print-root .p-lc-h { border: 1px dashed #999; border-radius: 3mm; padding: 2.5mm; text-align: center; display: grid; gap: 1mm; justify-items: center; }
#print-root .p-lc-h small { font-weight: 700; color: var(--rc, #0b5e48); font-size: 8pt; } #print-root .p-lc-h b { font: 700 11pt Consolas, monospace; letter-spacing: .5pt; }
#print-root .p-lc-h span { font-size: 6.8pt; color: #444; line-height: 1.4; } #print-root .p-lc-qr svg { width: 22mm; height: 22mm; }
.te { grid-template-columns: minmax(0, 1fr); } .te > * { min-width: 0; } .fm .pt-gtab-w { overflow-x: auto; max-width: 100%; }
.bk-pick { cursor: pointer; } .pt-sub { margin: 14px 0 6px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.pc-kinds { display: grid; gap: 2px; margin: 10px 0; } .pc-kinds b { font-size: .9rem; color: var(--muted); }
.pc-sum { margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
/* the cut-out cards: bank-card size, 2 x 5 on A4, dashed lines to cut along */
#print-root .cc-page { display: grid; grid-template-columns: 85.6mm 85.6mm; grid-auto-rows: 54mm; justify-content: center; gap: 0; break-after: page; }
#print-root .cc-page:last-child { break-after: auto; }
#print-root .cc { box-sizing: border-box; width: 85.6mm; height: 54mm; border: .3mm dashed #9a9a9a; padding: 3mm 3.4mm 2.4mm; display: grid; grid-template-rows: auto 1fr auto; color: #111; position: relative; overflow: hidden; background: #fff; }
#print-root .cc::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2.4mm; background: var(--rc); }
#print-root .cc-g::before { background: #c9a24f; } #print-root .cc-r::before { background: #7d8a80; } #print-root .cc-t::before { background: #0b5e48; }
#print-root .cc-top { display: flex; align-items: center; gap: 2mm; padding-inline-start: 1.6mm; }
#print-root .cc-top img { width: 7mm; height: 7mm; object-fit: contain; border-radius: 1.4mm; }
#print-root .cc-top b { font: 700 8.6pt "Noto Kufi Arabic", sans-serif; flex: 1; line-height: 1.2; }
#print-root .cc-tag { font: 700 7pt "Noto Kufi Arabic", sans-serif; color: #fff; background: var(--rc); border-radius: 5mm; padding: .5mm 2.4mm; white-space: nowrap; }
#print-root .cc-g .cc-tag { background: #b8892f; } #print-root .cc-r .cc-tag { background: #6b776e; } #print-root .cc-t .cc-tag { background: #0b5e48; }
#print-root .cc-mid { display: grid; grid-template-columns: 1fr 22mm; gap: 2mm; align-items: center; padding-inline-start: 1.6mm; }
#print-root .cc-who small { display: block; font: 400 6.4pt "Noto Naskh Arabic", serif; color: #555; }
#print-root .cc-who > b { display: block; font: 700 9.6pt "Noto Kufi Arabic", sans-serif; line-height: 1.35; margin: .4mm 0; }
#print-root .cc-code { margin-top: 1.4mm; background: #f2f5f2; border-radius: 1.6mm; padding: 1mm 2mm; }
#print-root .cc-code b { display: block; font: 700 11.5pt Consolas, "Courier New", monospace; letter-spacing: .5pt; direction: ltr; text-align: center; }
#print-root .cc-qr svg { width: 22mm; height: 22mm; display: block; }
#print-root .cc-foot { display: flex; align-items: center; gap: 1.4mm; font: 400 5.8pt "Noto Naskh Arabic", serif; color: #444; padding-inline-start: 1.6mm; line-height: 1.3; }
#print-root .cc-foot .er-mk { width: 3.6mm; height: 3.8mm; flex: none; }

/* ---------- Eridu's directory on the site: mark, region, «قريباً», «منطقتي» ---------- */
.er-badge { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; margin-inline-start: .32em; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); flex: none; }
.er-badge.big { width: .9em; height: .9em; vertical-align: -0.08em; }
.rgn { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.rgn svg { width: 13px; height: 13px; flex: none; }
.tag.soon { color: #e6c27a; border-color: rgba(230, 194, 122, .55); }
.soon-note { margin: 14px 0 0; padding: 12px 16px; border: 1px solid rgba(230, 194, 122, .45); border-radius: 12px; background: rgba(230, 194, 122, .07); display: grid; gap: 4px; }
.soon-note b { color: #e6c27a; } .soon-note span { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.near-home .nh-box { border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 26px); background: linear-gradient(135deg, rgba(11, 94, 72, .28), rgba(13, 21, 15, .9)); display: grid; gap: 16px; }
.nh-t { display: flex; gap: 14px; align-items: flex-start; }
.nh-t h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 3vw, 1.6rem); } .nh-t h2 em { color: #e6c27a; font-style: normal; }
.nh-t p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .92rem; }
.nh-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(230, 194, 122, .14); color: #e6c27a; flex: none; }
.nh-ic svg { width: 26px; height: 26px; }
#hn-go { justify-self: start; }
.rg-sel { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-sel label { display: grid; gap: 4px; min-width: 0; }
.rg-sel small { color: var(--muted); font-size: .76rem; }
.rg-sel select { width: 100%; min-width: 0; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .92rem; }
.rg-sel select:disabled { opacity: .45; }
@media (max-width: 560px) { .rg-sel { grid-template-columns: minmax(0, 1fr); } }
.near-tools { display: grid; gap: 12px; margin-bottom: 10px; }
.nr-sum { color: #e6c27a; font-size: .9rem; margin: 6px 0 14px; min-height: 1.2em; }
.nr-h { margin: 22px 0 12px; font-size: 1.05rem; display: flex; gap: 8px; align-items: baseline; } .nr-h small { color: var(--muted); font-weight: 400; }
.vids { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.vid { display: grid; gap: 8px; } .vid > b { font-size: .92rem; }
.vid.link { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
.vid.link small { display: block; color: var(--muted); font-size: .8rem; }
.vi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(230, 194, 122, .15); color: #e6c27a; }
.vi svg { width: 22px; height: 22px; }
.gal a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); color: inherit; text-decoration: none; }
.gal a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gal a span { display: block; padding: 8px 12px; font-size: .85rem; color: var(--muted); }

/* ---------- control panel: accounts (state, features, mark, logo) and the teacher's page editor ---------- */
.hq-h { margin: 18px 0 8px; font-size: .95rem; color: #e6c27a; }
.hq-h small { color: var(--muted); font-weight: 400; }
.hq-logo, .pe-av { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hq-logo img, .pe-av img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.pe-av img { object-fit: cover; border-radius: 50%; }
.hq-nologo { width: 84px; height: 84px; border-radius: 14px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; }
.hq-states { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hq-st { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.hq-st small { grid-column: 2; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.hq-st:has(input:checked) { border-color: #e6c27a; background: rgba(230, 194, 122, .07); }
.hq-st.off:has(input:checked) { border-color: #d36a5f; background: rgba(211, 106, 95, .08); }
.hq-st.live:has(input:checked) { border-color: #5fd38a; background: rgba(95, 211, 138, .07); }
.hq-feats { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.hq-badge { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.hq-pl-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; align-self: center; margin-inline-end: 8px; }
.hq-pk { margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.f-tag.hq-s-live { color: #5fd38a; border-color: rgba(95, 211, 138, .5); }
.f-tag.hq-s-soon { color: #e6c27a; border-color: rgba(230, 194, 122, .55); }
.f-tag.hq-s-off { color: #e08a80; border-color: rgba(224, 138, 128, .55); }
.pe { display: grid; gap: 10px; }
.pe-c { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; }
.pe-c select, .pe-c input { min-width: 0; width: 100%; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .9rem; }
@media (max-width: 560px) { .pe-c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .pe-c .pe-cv { grid-column: 1 / -1; order: 3; } }
.pe-gal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pe-gal figure { margin: 0; display: grid; gap: 6px; }
.pe-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pe-gal figcaption { font-size: .75rem; color: var(--muted); }
.pe-add { aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #e6c27a; }
#hq-plf, #hq-mkf, .r-form.pe { max-width: none; }
#hq-plf input[type=color] { height: 42px; padding: 4px; }

/* ---------- Eridu's own documents (agreement, receipt, voucher, code slip) and books ---------- */
.er-pages .er-page { break-after: page; page-break-after: always; }
.er-pages .er-page:last-child { break-after: auto; page-break-after: auto; }
.rc2-logo.er img { width: 100%; height: 100%; object-fit: contain; }
.er-doc { --rc: #0b5e48; }
.er-void { text-align: center; color: #b3261e; font-weight: 700; margin: 6px 0 0; }
.er-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.er-parties div { border: 1px solid #c8d8cf; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.er-parties small { color: #0b5e48; font-weight: 700; font-size: 9pt; } .er-parties b { font-size: 12pt; } .er-parties span { font-size: 9.5pt; color: #333; }
.er-lead { font-size: 10.5pt; margin: 8px 0; color: #111; }
.er-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; margin: 8px 0 10px; }
.er-grid div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted #b9c9bf; padding: 3px 0; font-size: 10pt; }
.er-grid small { color: #555; } .er-grid b { color: #111; }
.er-terms { margin: 6px 0 12px; padding-inline-start: 18px; font-size: 9.6pt; line-height: 1.75; color: #111; }
.er-slip { border: 1.5px dashed #0b5e48; border-radius: 10px; padding: 0 14px 14px; color: #111; max-width: 170mm; margin: 0 auto; }
.er-cut { text-align: center; font-size: 9pt; color: #b3261e; font-weight: 700; padding: 6px 0; border-bottom: 1px dashed #b9c9bf; margin-bottom: 10px; }
.er-slip-in { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.er-slip-in small { color: #b3261e; font-weight: 700; font-size: 9pt; } .er-slip-in b { display: block; font-size: 13pt; } .er-slip-in span { color: #0b5e48; font-size: 10pt; }
.er-code { font: 700 20pt Consolas, monospace; letter-spacing: 2px; background: #eef6f0; border-radius: 6px; padding: 8px; text-align: center; margin: 8px 0; }
.er-slip-in p { font-size: 9.5pt; margin: 0; line-height: 1.7; }
.er-qr svg { width: 34mm; height: 34mm; display: block; }
.er-kinds { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.er-kinds div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.er-kinds small { color: var(--muted); font-size: .78rem; } .er-kinds b { font-size: 1rem; }
.hq-plan { margin-top: 12px; }

/* ---------- plans and the form designer ---------- */
.tier-l li.on { color: #a9d3b0; } .tier-l li.off { color: var(--muted); opacity: .75; }
.tier-n { border: 1px solid rgba(230, 194, 122, .45); background: rgba(230, 194, 122, .07); border-radius: 10px; padding: 10px 12px; color: #f0d18e; }
.fd-opt { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 8px; }
.fd-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 6px; align-items: center; margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.fd-row input, .fd-row select { min-width: 0; width: 100%; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .9rem; }
.fd-row .ck { white-space: nowrap; font-size: .85rem; }
.fd-b { display: flex; gap: 4px; } .fd-b .pill { padding: 6px 10px; }
@media (max-width: 640px) { .fd-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fd-row .fd-l { grid-column: 1 / -1; } .fd-row .fd-o { grid-column: 1 / -1; } }

/* ---------- teacher's grade table, messages, the investor's own arrangement ---------- */
.gte-row { display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .9fr) auto auto; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.gte-row input, .gte-row select { min-width: 0; width: 100%; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; }
.gte-n { color: #e6c27a; font-weight: 700; }
.gte-max { display: flex; align-items: center; gap: 4px; } .gte-max small { color: var(--muted); }
.gte-src { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px; } .gte-src small { color: var(--muted); }
@media (max-width: 640px) { .gte-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); } }
.g-own { margin-bottom: 8px; }
.mw-th { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; margin-bottom: 10px; }
.mw-m { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.mw-m p { margin: 0 0 4px; white-space: pre-wrap; line-height: 1.6; } .mw-m small { color: var(--muted); font-size: .75rem; }
.mw-m.me { justify-self: start; background: rgba(11, 94, 72, .35); border-color: rgba(169, 211, 176, .3); }
.mw-m.them { justify-self: end; }
.mw-f { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.mw-f textarea { width: 100%; min-width: 0; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.mw-pick { margin-bottom: 10px; }
.ui-l { display: grid; gap: 6px; } .ui-r { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }

/* plan «برو ماكس»: staff attendance and posts */
.sa-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-r .pt-li-in { flex: 1 1 160px; }
.sa-seg button[aria-pressed="true"][data-v="a"] { background: #b42318; color: #fff; }
.sa-seg button[aria-pressed="true"][data-v="l"] { background: #b54708; color: #fff; }
.ps-prev { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.ps-prev img { max-width: 180px; max-height: 120px; border-radius: 10px; object-fit: cover; }
.ps-li { display: flex; align-items: flex-start; gap: 10px; }
.ps-li .pt-li-in { flex: 1; }
.ps-th { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- the staff portal's light app look (from the Lovable design) ----------
   body.pt-light: light "clay paper" tokens for the whole admin view (login included);
   the app shell (.pt-shell): a dark side menu; the site header and footer hide while it is open.
   Light twins of hard-coded dark-ground colours are generated in portal-light.css (make-light.py). */
body.pt-light, body.school-mode.pt-light, body.school-mode.accent.pt-light {
  --ink: #f5f5ef; --panel: #fdfdfb; --panel-2: #eef3ec; --line: #e2e5dc; --paper: #1b2a23; --muted: #67756c;
  --mint: #1e5e4e; --gold: #a87a1f; --side: #0f1511; --side-2: #18211b; --side-line: #26322a; --side-tx: #e7ede8; --side-mu: #93a397; --side-ac: #a9d3b0;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 8px 24px -14px rgba(20, 40, 30, .22);
  color-scheme: light; background: var(--ink); color: var(--paper);
}
body.pt-light::before { background: var(--ink); }
body.pt-light .f-card, body.pt-light .pt-tile, body.pt-light .pt-li { box-shadow: var(--shadow); }
body.pt-light .pt-tile { border-radius: 16px; padding: 16px 18px; }
body.pt-light .pt-tile b { font-size: 1.7rem; color: var(--paper); }
body.pt-light .pt-tile.good b { color: #1d7a4a; } body.pt-light .pt-tile.warn b { color: #9a6a0e; }
body.pt-light .f-card { border-radius: 18px; }
body.pt-light .pill { border-color: var(--line); background: var(--panel); }
body.pt-light .pill.solid, body.pt-light .r-go { background: var(--mint); color: #fff; border-color: var(--mint); }
body.pt-light .chip[aria-pressed="true"], body.pt-light .chip.on { background: var(--mint); color: #fff; border-color: var(--mint); }
body.pt-light input, body.pt-light select, body.pt-light textarea { background: #fff; color: var(--paper); border-color: var(--line); }
body.pt-light input:focus, body.pt-light select:focus, body.pt-light textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(30, 94, 78, .12); }
body.pt-light table th { background: #f1f4ee; color: var(--muted); font-weight: 600; }
body.pt-light .pt-demo { background: #fff8e6; border-color: #e8cf8f; color: #7a5a12; }
body.pt-light .pt-role.r-admin { color: #8a5d00; border-color: #e8cf8f; background: #fff8e6; }
body.pt-light .pt-role.r-accountant { color: #1d7a4a; border-color: #b5dcc3; background: #eef8f1; }
body.pt-light .pt-role.r-registrar { color: #6b46c1; border-color: #d7c8f5; background: #f5f1fd; }
body.pt-light .pt-role.r-teacher { color: #1f6fb0; border-color: #bcd8f1; background: #eef5fc; }
body.pt-light .pt-msg.ok { color: #1d7a4a; background: #eef8f1; border-color: #b5dcc3; }
body.pt-light .pt-msg.err { color: #b3402e; background: #fdf0ed; border-color: #f0c2b8; }

/* the app shell: whenever the open view holds a .pt-shell (school staff, Eridu management, sales point) */
body:has([data-view]:not([hidden]) .pt-shell) > header.top, body:has([data-view]:not([hidden]) .pt-shell) > footer, body:has([data-view]:not([hidden]) .pt-shell) .site-foot, body:has([data-view]:not([hidden]) .pt-shell) #nav-back, body:has([data-view]:not([hidden]) .pt-shell) [data-view]:not([hidden]) .back, body:has([data-view]:not([hidden]) .pt-shell) #a-head { display: none !important; }
body:has([data-view]:not([hidden]) .pt-shell) main { padding: 0 !important; margin: 0 !important; }
body:has([data-view]:not([hidden]) .pt-shell) [data-view]:not([hidden]), body:has([data-view]:not([hidden]) .pt-shell) [data-view]:not([hidden]) > .wrap, body:has([data-view]:not([hidden]) .pt-shell) #a-out, body:has([data-view]:not([hidden]) .pt-shell) #hq-out, body:has([data-view]:not([hidden]) .pt-shell) #po-out { max-width: none; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }
.pt.pt-shell { border: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.pt-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0; min-height: 100vh; align-items: start; }
.pt-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: var(--side-tx); display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; border-inline-start: 1px solid var(--side-line); scrollbar-width: thin; }
.pt-sbrand { display: flex; align-items: center; gap: 10px; background: var(--side-2); border: 1px solid var(--side-line); border-radius: 16px; padding: 12px; }
.pt-sbrand > :first-child { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.pt-sbrand > :first-child img { width: 92%; height: 92%; object-fit: contain; }
.pt-sbrand div { display: grid; min-width: 0; } .pt-sbrand b { font-weight: 700; font-size: .95rem; line-height: 1.4; } .pt-sbrand small { color: var(--side-ac); font-size: .75rem; }
.pt-side .pt-tabs { position: static; display: grid; gap: 2px; border: 0; background: none; overflow: visible; padding: 0; }
.pt-side .pt-tabs button { justify-content: flex-start; gap: 10px; border: 0; border-radius: 11px; color: var(--side-mu); padding: 9px 12px; font-size: .92rem; text-align: right; }
.pt-side .pt-tabs button svg { width: 19px; height: 19px; flex: none; }
.pt-side .pt-tabs button span { flex: 1; }
.pt-side .pt-tabs button:hover { color: var(--side-tx); background: var(--side-2); }
.pt-side .pt-tabs button[aria-selected="true"] { color: var(--side-ac); background: var(--side-2); box-shadow: inset -3px 0 0 var(--side-ac); font-weight: 600; }
.pt-sme { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--side-line); padding-top: 14px; }
.pt-sme .pt-av { width: 40px; height: 40px; font-size: 1.05rem; background: var(--side-2); color: var(--side-ac); }
.pt-sme .pt-me b { font-size: .88rem; color: var(--side-tx); } .pt-sme .pt-me small { color: var(--side-mu); font-size: .74rem; }
.pt-sme .pt-role { background: none !important; }
.pt-ssign { display: flex; align-items: center; gap: 8px; color: var(--side-mu); font-size: .74rem; text-decoration: none; } .pt-ssign b { color: var(--side-tx); }
.pt-ssign .er-mk { width: 22px; height: 23px; }
.pt-main { display: grid; gap: 16px; padding: 28px clamp(16px, 3.4vw, 48px) 48px; min-width: 0; max-width: 1360px; width: 100%; }
.pt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pt-ttl small { color: var(--mint); font-size: .82rem; font-weight: 600; }
.pt-ttl h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.25; color: var(--paper); }
.pt-top .pt-acts .pill { padding: 7px 14px; font-size: .84rem; }
.pt-main > .pt-body { gap: 16px; }
@media (max-width: 900px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: column; gap: 8px; padding: 10px 12px 6px; border: 0; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .pt-sbrand { padding: 6px 8px; border-radius: 12px; } .pt-sbrand > :first-child { width: 34px; height: 34px; }
  .pt-side .pt-tabs { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; } .pt-side .pt-tabs::-webkit-scrollbar { display: none; }
  .pt-side .pt-tabs button { white-space: nowrap; padding: 7px 11px; font-size: .85rem; flex: none; }
  .pt-side .pt-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--side-ac); }
  .pt-sme, .pt-ssign { display: none; }
  .pt-main { padding: 18px 14px 40px; }
}
.pt-sbrand .pt-slogo { background: var(--side); border: 1px solid var(--side-line); } .pt-sbrand .pt-slogo .er-mk { width: 28px; height: 30px; }
/* hovers in the light look: the dark-ground hovers flip to light text, so give them their own */
body.pt-light .pill:hover { background: var(--panel-2); color: var(--paper); border-color: var(--mint); }
body.pt-light .pill.solid:hover, body.pt-light .r-go:hover { background: #174b3e; border-color: #174b3e; color: #fff; }
/* a name with buttons beside it: on narrow screens the buttons drop under the name instead of squeezing it */
.pt-bar .pt-me { flex: 1 1 200px; }

/* ---------- Eridu management: grouped side menu, the new-account form, prices (phase 1 of the new layout) ---------- */
.pt-side .pt-sgrp { display: block; color: var(--side-mu); opacity: .7; font-size: .7rem; letter-spacing: .5px; padding: 12px 12px 2px; }
.pt-side .pt-sgrp:first-child { padding-top: 0; }
@media (max-width: 900px) { .pt-side .pt-sgrp { display: none; } }
.ac-warn { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff8e6; border: 1px solid #e8cf8f; border-radius: 16px; padding: 14px 18px; color: #6b4e0e; }
.ac-warn div { display: grid; gap: 2px; } .ac-warn small { color: #8a6a24; }
.ac-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ac-q { display: grid; justify-items: start; gap: 4px; text-align: right; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; font: inherit; color: var(--paper); box-shadow: var(--shadow, none); }
.ac-q svg { width: 26px; height: 26px; color: var(--mint); } .ac-q b { font-size: 1rem; } .ac-q small { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.ac-q:hover { border-color: var(--mint); } .ac-q.main { background: var(--mint); color: #fff; border-color: var(--mint); } .ac-q.main svg, .ac-q.main small { color: rgba(255, 255, 255, .82); }
/* the new-account form: numbered steps */
.ac-f { display: grid; gap: 14px; max-width: 980px; }
.ac-sec { margin: 0; } .ac-sec h3 span { display: inline-flex; align-items: center; gap: 10px; }
.ac-n { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--mint); color: #fff; font-size: .85rem; font-weight: 700; }
.ac-f[data-kind="teacher"] .for-pl, .ac-f:not([data-kind="teacher"]) .for-t { display: none !important; }
.ac-f .f-fld span em { font-style: normal; }
.ac-kinds, .ac-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.ac-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.ac-kind input, .ac-plan input, .ac-span input { position: absolute; opacity: 0; pointer-events: none; }
.ac-kind span, .ac-plan > span { display: grid; gap: 4px; justify-items: center; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 10px; cursor: pointer; background: var(--panel); transition: border-color .15s, background .15s; height: 100%; }
.ac-kind svg { width: 26px; height: 26px; color: var(--muted); }
.ac-plan > span { justify-items: start; text-align: right; padding: 14px 16px; }
.ac-plan b { font-size: 1.05rem; letter-spacing: .5px; } .ac-plan em { font-style: normal; color: var(--mint); font-weight: 700; font-size: .9rem; } .ac-plan small { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.ac-kind input:checked + span, .ac-plan input:checked + span { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 7%, var(--panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 14%, transparent); }
.ac-kind input:checked + span svg { color: var(--mint); }
.ac-kind input:focus-visible + span, .ac-plan input:focus-visible + span, .ac-span input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.ac-spans { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; } .ac-spans > span { color: var(--muted); font-size: .88rem; margin-inline-end: 4px; }
.ac-span span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; background: var(--panel); font-size: .9rem; }
.ac-span span i { font-style: normal; font-size: .72rem; color: #1d7a4a; background: #eef8f1; border-radius: 999px; padding: 0 7px; }
.ac-span input:checked + span { border-color: var(--mint); background: var(--mint); color: #fff; } .ac-span input:checked + span i { background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, 1); }
.ac-f.is-trial .ac-spans, .ac-f.is-trial .ac-type, .ac-f.is-trial .ac-pay, .ac-f.is-free .ac-pay { display: none; }
.ac-free > span, .ac-renew .ac-free { border-style: dashed; }
.ac-free i { color: #0b5e48; }
.ac-type { max-width: 420px; }
.ac-sum-in { border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 6px; margin-top: 10px; }
.ac-sum-in.warn { background: #fff8e6; border-color: #e8cf8f; } .ac-sum-in small { color: var(--muted); }
.ac-sum-r { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; } .ac-sum-r.off { color: #1d7a4a; }
.ac-sum-r.tot { border-top: 1px dashed var(--line); padding-top: 8px; font-size: 1.05rem; } .ac-sum-r.tot b { color: var(--mint); font-size: 1.25rem; }
.ac-paid { display: flex; gap: 6px; align-items: center; } .ac-paid input { flex: 1; min-width: 0; } .ac-paid .chip { white-space: nowrap; }
.ac-go { align-items: center; } .ac-done { max-width: 980px; }
/* prices */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 10px 0; }
.pr-plan { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); }
.pr-plan b { letter-spacing: .5px; } .pr-plan small { color: var(--muted); font-size: .76rem; line-height: 1.6; min-height: 2.4em; }
.pr-in { display: flex; align-items: center; gap: 6px; } .pr-in input { flex: 1; min-width: 0; font-size: 1.05rem; } .pr-in i { font-style: normal; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.pr-disc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; max-width: 640px; }
.pr-prev { overflow-x: auto; }
.pr-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.pr-tbl th, .pr-tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; } .pr-tbl td:first-child, .pr-tbl th:first-child { text-align: right; }
.pr-tbl th small { display: block; color: #1d7a4a; font-weight: 400; font-size: .72rem; }
/* documents: which copy, and two receipts on one page */
.er-doc { position: relative; }
.er-copy { display: table; margin: 0 0 2mm auto; font-size: 8.5pt; font-weight: 700; color: #0b5e48; border: 1px solid #0b5e48; border-radius: 999px; padding: 1px 10px; background: #fff; }
.er-two { display: grid; gap: 4mm; } .er-two .er-cut { border: 0; margin: 0; padding: 2mm 0; letter-spacing: 1px; }
.er-two .rc2 { zoom: .8; }   /* two receipts fit one A4 page */
.er-words { font-weight: 700; color: #0b5e48; }
/* the new-account form and the prices form sit straight on the page: their own sections are the cards */
.ac-f.r-form { background: none; border: 0; padding: 0; max-width: 980px; box-shadow: none; }
#hq-prf.r-form { background: none; border: 0; padding: 0; max-width: none; box-shadow: none; }
.pr-in input { background: var(--panel-2); border: 1px solid var(--line); color: var(--paper); border-radius: 10px; padding: 9px 12px; font: inherit; width: 100%; }
.pr-in input:focus { outline: none; border-color: var(--mint); }
@media (max-width: 600px) {
  .ac-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-kind span { padding: 10px 8px; } .ac-kind svg { width: 22px; height: 22px; }
  .ac-sec { padding: 14px; }
}
/* plans: «soon» and stopped; dollars beside dinars; the dollar rate */
.ac-plan.soon > span { opacity: .55; cursor: not-allowed; background: var(--panel-2); }
.ac-soon { font-style: normal; font-size: .7rem; font-weight: 700; color: #8a5d00; background: #fff8e6; border: 1px solid #e8cf8f; border-radius: 999px; padding: 0 8px; vertical-align: 2px; }
.ac-plan .ac-iq { color: var(--muted); font-size: .76rem; margin-top: -2px; }
.ac-sum-r.iq { color: var(--muted); font-size: .85rem; } .ac-sum-r.iq b { color: var(--paper); }
.pr-rate { max-width: 320px; margin: 6px 0 4px; } .pr-rate .pr-in input { font-size: 1.1rem; font-weight: 600; }
.pr-plan.off { opacity: .6; }
.pr-st { display: flex; gap: 4px; margin-top: 4px; } .pr-st label { flex: 1; }
.pr-st input { position: absolute; opacity: 0; pointer-events: none; }
.pr-st span { display: block; text-align: center; font-size: .78rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--panel); color: var(--muted); }
.pr-st .on input:checked + span { background: #eef8f1; border-color: #8fcaa5; color: #1d7a4a; font-weight: 700; }
.pr-st .soon input:checked + span { background: #fff8e6; border-color: #e8cf8f; color: #8a5d00; font-weight: 700; }
.pr-st .off input:checked + span { background: #fdf0ed; border-color: #f0c2b8; color: #b3402e; font-weight: 700; }
.pr-st input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 1px; }
.pr-tbl td small, .pr-tbl td b { display: block; } .pr-tbl td small { color: var(--muted); font-size: .76rem; }
.pr-tbl tr.off td { opacity: .45; } .pr-tbl tr.soon td:first-child small { color: #8a5d00; } .pr-tbl tr.off td:first-child small { color: #b3402e; }
/* a sales point's page */
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 0; }
.pl-head h3 { margin: 0 0 4px; } .pl-head .pt-hint { margin: 0; line-height: 1.9; }
/* handouts (the main code) */
.ho-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ho-card { display: grid; grid-template-rows: auto 1fr auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow, none); }
.ho-card.off { opacity: .65; }
.ho-cv { position: relative; aspect-ratio: 3 / 4; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.ho-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ho-cv i { position: absolute; top: 8px; font-style: normal; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.ho-new { right: 8px; background: var(--mint); color: #fff; } .ho-off { left: 8px; background: #fdf0ed; color: #b3402e; border: 1px solid #f0c2b8; }
.ho-in { display: grid; gap: 2px; padding: 10px 12px; } .ho-in b { font-size: .95rem; line-height: 1.5; } .ho-in small { color: var(--muted); font-size: .78rem; }
.ho-acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 12px; } .ho-acts .pill { padding: 5px 12px; font-size: .8rem; }
.ho-link { color: #1d7a4a; font-weight: 600; } .ho-nolink { color: var(--muted); }
.ho-linked { margin: 4px 0 0; font-size: .85rem; min-height: 1.4em; }
.ho-flags { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.ho-x { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 6px; margin-bottom: 6px; }
.ho-x input { background: var(--panel-2); border: 1px solid var(--line); color: var(--paper); border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 0; }
.ho-imgs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 700px) { .ho-imgs { grid-template-columns: minmax(0, 1fr); } }
.ho-cover, .ho-pages { display: grid; gap: 8px; justify-items: start; } .ho-cover > small, .ho-pages > small { color: var(--muted); }
.ho-cover img { width: 100%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.ho-empty { display: grid; place-items: center; width: 100%; max-width: 220px; aspect-ratio: 3 / 4; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; text-align: center; padding: 10px; }
.ho-pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; }
.ho-pg figure { margin: 0; display: grid; gap: 4px; } .ho-pg img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ho-pg figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); } .ho-pg figcaption .chip { padding: 0 8px; }
label.pill.busy { opacity: .6; pointer-events: none; }
/* the site's content (the main code) */
.si-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-bottom: 10px; }
.si-ph figure { margin: 0; display: grid; gap: 6px; } .si-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.si-ph input { background: var(--panel-2); border: 1px solid var(--line); color: var(--paper); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .85rem; }
.si-ph .chip { justify-self: start; }
/* one account's page */
.ac-head { align-items: center; } .ac-who { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 320px; }
.ac-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.ac-logo.none { display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 1.6rem; font-weight: 700; border: 0; }
.ac-renew { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.ac-renew .pill { flex-direction: column; gap: 0; padding: 8px 10px; border-radius: 14px; } .ac-renew .pill small { color: var(--muted); font-size: .74rem; font-weight: 400; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; } .ac-grid .pill { justify-content: center; }
/* the full amount on the new-account form; the image tiles on a handout */
.ac-due { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--mint) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--mint) 30%, var(--line)); }
.ac-due:empty { display: none; } .ac-due span small { display: block; color: var(--muted); font-size: .78rem; } .ac-due b { color: var(--mint); font-size: 1.25rem; } .ac-due b small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.ho-drop { display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; aspect-ratio: 3 / 4; border: 2px dashed color-mix(in srgb, var(--mint) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--mint) 5%, var(--panel)); color: var(--mint); cursor: pointer; padding: 10px; transition: background .15s, border-color .15s; }
.ho-drop:hover { background: color-mix(in srgb, var(--mint) 11%, var(--panel)); border-color: var(--mint); }
.ho-drop svg { width: 34px; height: 34px; } .ho-drop b { font-size: .9rem; } .ho-drop small { color: var(--muted); font-size: .72rem; }
.ho-drop.cover { width: 100%; max-width: 220px; }
.ho-drop:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.ho-drop.busy { opacity: .6; pointer-events: none; }
.ho-cv-acts { display: flex; gap: 6px; }
.ho-pages > small b { color: var(--paper); }
/* the sales point's notices */
.po-new { border-color: color-mix(in srgb, var(--mint) 45%, var(--line)); background: color-mix(in srgb, var(--mint) 5%, var(--panel)); }
.po-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0815f; margin-inline-end: 8px; vertical-align: 1px; }
.po-text { margin: 6px 0 4px; line-height: 1.85; font-size: .92rem; }
.ac-soon.cur { color: #1d7a4a; background: #eef8f1; border-color: #b5dcc3; }
/* a plan written out (new-account and renewal forms) */
.ac-spec:empty { display: none; } .ac-spec { margin-top: 12px; }
.ac-spec-in { border: 1px solid color-mix(in srgb, var(--mint) 30%, var(--line)); background: color-mix(in srgb, var(--mint) 5%, var(--panel)); border-radius: 14px; padding: 12px 16px; }
.ac-spec-in b { display: block; margin-bottom: 6px; color: var(--mint); }
.ac-spec-in ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 3px; font-size: .88rem; line-height: 1.75; }
/* the registration page: the whole class's staff once */
.j-cteam { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: var(--panel); }
.j-cteam > b { display: block; margin-bottom: 6px; } .j-cteam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.j-cteam li { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .j-cteam li > span { color: var(--muted); font-size: .85rem; }

/* START: the teaching staff — a teacher's row with photo, the Eridu box, the "what they teach" rows */
.te-er { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.te-er .er-mk { align-self: center; } .te-er .f-fld { flex: 1; min-width: 200px; margin: 0; }
.te-li > button { display: flex !important; gap: 12px; align-items: center; text-align: start; }
.te-li .avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; } .te-li .avatar .ph { width: 100%; height: 100%; }
.te-li > button > span { display: grid; gap: 2px; min-width: 0; }
.tt-h { margin: 16px 0 8px; font-size: .95rem; }
.tt-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.tt-row .f-grid { margin: 0; }
.tt-grps { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; } .tt-grps > span { font-weight: 700; font-size: .85rem; }
.tt-grps small { opacity: .7; } .tt-x { justify-self: start; }

/* PLUS: the statistics table (a class's own row stands out) */
.f-tbl tr.st-cls td { background: color-mix(in srgb, var(--mint) 10%, transparent); }

/* the registration desk's list of documents asked for on the form */
.pe-list { display: grid; gap: 8px; margin: 10px 0; }
.pe-row { display: flex; gap: 10px; align-items: center; } .pe-row .pe-f { flex: 1; margin: 0; } .pe-n { width: 26px; text-align: center; opacity: .7; font-weight: 700; }

/* the teacher's section: names open the student, the codes choice next to the print buttons */
.tg-name { all: unset; cursor: pointer; } .tg-name:hover b, .tg-name:focus-visible b { text-decoration: underline; color: var(--mint); }
.tg-codes { margin-inline-end: 6px; font-size: .85rem; }

/* students from a file: each column's field, the preview's rows that can't go */
.im-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.im-map .f-fld span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-tbl tr.im-bad td { opacity: .6; } .im-drop { margin-top: 10px; min-height: 110px; justify-content: center; }

/* the list builder's added columns' names; the end-of-year move list; the final delete button */
.lb-bn { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; flex: 1; } .lb-bn .f-fld { margin: 0; }
.pm-li { display: flex !important; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; } .pm-li > span:nth-child(2) { flex: 1; display: grid; }
.pt .pill.solid.pt-delgo, .pill.solid.pt-delgo { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }

/* each class's own installments in the fee settings */
.cp-cls { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.cp-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; } .cp-head > b { min-width: 120px; align-self: center; } .cp-head .f-fld { margin: 0; min-width: 180px; }

/* the teacher's page editor: where they teach, their own groups */
.pe-w, .pe-g { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pe-w select, .pe-w input, .pe-g select, .pe-g input { min-width: 0; flex: 1 1 150px; background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .9rem; }
.pe-g .pg-n, .pe-w .pw-n { flex: 2 1 240px; }
.pe-w .hq-del, .pe-g .hq-del { flex: 0 0 auto; }

.pr-deal { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.pr-deal select { min-height: 42px; border-radius: 12px; padding: 0 10px; font: inherit; }
.ac-deal span i { color: #8a6a1f; }
.pr-offer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pr-offer label { display: grid; gap: 2px; flex: 1 1 110px; }
.pr-offer small { color: #8a6a1f; font-size: 11px; }
.pr-offer input[type=date] { padding: 8px; border: 1px solid #d9d4c2; border-radius: 8px; background: #fff; font: inherit; }
.ac-plan s { opacity: .55; margin-inline-end: 2px; }
.ac-plan .pr-off { color: #0b5e48; }

/* the student's own printed result (printNode puts it alone on an A4 page) */
.fp { direction: rtl; font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif; color: #111; background: #fff; padding: 14mm 14mm 10mm; min-height: 100vh; }
.fp-h { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #0b5e48; padding-bottom: 8px; margin-bottom: 12px; }
.fp-h b { display: block; font-size: 20px; color: #0b5e48; } .fp-h small { color: #555; font-size: 12px; }
.fp-tag { background: #0b5e48; color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.fp-who, .fp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fp-who > div, .fp-sum > div { border: 1px solid #cfd8d3; border-radius: 8px; padding: 6px 10px; }
.fp small { display: block; color: #666; font-size: 11px; } .fp-who b, .fp-sum b { font-size: 15px; }
.fp-sum b { font-size: 20px; color: #0b5e48; }
.fp-t { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.fp-t th, .fp-t td { border: 1px solid #b9c4be; padding: 5px 7px; text-align: center; }
.fp-t th { background: #eaf2ee; } .fp-t td:first-child { text-align: right; font-weight: 600; }
.fp-key { background: #f3ead2; font-weight: 700; } .fp-low { color: #b3261e; }
.fp-f { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 11px; color: #666; }
