/* ==========================================================================
   Academix Lite additions on top of app.css (school-specific components)
   ========================================================================== */

/* ---------- shell ---------- */
.sidebar { background: linear-gradient(180deg, #0b1a33 0%, #0d2142 60%, #0b1a33 100%); }
.sidebar-brand img { border-radius: 8px; border: 0; background: transparent; object-fit: contain; }
.sidebar-brand .name { font-family: var(--font); letter-spacing: .02em; font-weight: 800; }
.sidebar-brand .name .lite, .auth-hero .brand .lite { color: var(--orange); font-weight: 700; }
.nav-link.active { background: linear-gradient(90deg, rgba(10,143,208,.28), rgba(10,143,208,.05)); box-shadow: inset 3px 0 0 var(--gold-2); }
.term-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--gold-pale);
  color: var(--ink-2); font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid #cde9f8; }
@media (max-width: 700px) { .term-chip { display: none; } }
.btn-gold { background: linear-gradient(180deg, #14a3e6, #0a8fd0); border-color: #0a86c4; color: #fff; }
.btn-gold:hover { background: linear-gradient(180deg, #0f97d8, #087fbc); color: #fff; }
.btn-orange { background: var(--orange); border-color: #d96c10; color: #fff; }
.btn-orange:hover { background: #db6d12; color: #fff; }
.page-head .eyebrow { color: var(--orange); }
.kpi.orange .kpi-icon { background: var(--orange-pale); color: var(--orange); }
.text-orange { color: var(--orange); }
.req { color: var(--danger); }

/* ---------- sign in ---------- */
.ax-auth .auth-hero { background: linear-gradient(160deg, rgba(8,20,42,.92), rgba(11,26,51,.78)), url("../img/hero.jpg") center/cover no-repeat; }
.ax-auth .auth-hero .brand img { border-radius: 10px; background: transparent; border: 0; }
.hero-school { display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: .7rem .9rem; margin-bottom: 1.2rem; max-width: 520px; }
.hero-school img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.hero-school b { display: block; color: #fff; font-size: 1.05rem; }
.hero-school span { color: #9fd8f5; font-size: .82rem; }
.auth-crest { display: flex; justify-content: center; margin-bottom: .6rem; }
.auth-crest img { width: 108px; height: auto; }
.pw-meter { height: 5px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: .35rem; border: 1px solid var(--border); }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s; }
.pw-meter span[data-level="3"] { background: var(--warning); } .pw-meter span[data-level="4"], .pw-meter span[data-level="5"] { background: var(--success); }

/* ---------- error page ---------- */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .4rem; }
.error-page .code { font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; }

/* ---------- documents ---------- */
.doc-brand img { max-height: 92px; width: auto; }
.doc-brand .motto { font-style: italic; color: var(--orange); margin: 0 0 .15rem; }
.doc .doc-section { margin-top: 1.1rem; }
.doc .watermark-void { position: relative; }
.doc .watermark-void::after { content: "VOID"; position: absolute; inset: 30% 0 auto; text-align: center; font-size: 7rem; font-weight: 900;
  color: rgba(181,18,43,.14); transform: rotate(-18deg); pointer-events: none; }
.sig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.sig-row div { border-top: 1px solid #333; padding-top: .3rem; font-size: .82rem; color: #555; }
.amount-words { font-style: italic; color: var(--text-2); margin-top: .4rem; }
.doc-banner { background: var(--gold-pale); border-left: 4px solid var(--gold); padding: .55rem .8rem; border-radius: 6px; margin: .8rem 0; }

/* ---------- learner profile ---------- */
.profile-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.photo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: var(--gold-pale); display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.8rem; font-weight: 800; color: var(--gold); flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.photo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; border-width: 2px; }
.chips-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }
.balance-pill { font-weight: 800; font-size: 1.25rem; }
.balance-pill.owing { color: var(--danger); } .balance-pill.credit { color: var(--success); }

/* ---------- attendance register ---------- */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .55rem; padding: .8rem; }
.reg-card { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .55rem; background: var(--surface); }
.reg-card .nm { flex: 1; min-width: 0; } .reg-card .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.reg-card .nm small { color: var(--muted); font-size: .72rem; }
.att-btns { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.att-btns button { border: 0; background: var(--surface); padding: .3rem .5rem; font: inherit; font-weight: 700; font-size: .78rem; cursor: pointer; color: var(--muted); min-width: 30px; }
.att-btns button + button { border-left: 1px solid var(--border); }
.att-btns button.on[data-s="Present"] { background: var(--success); color: #fff; }
.att-btns button.on[data-s="Absent"] { background: var(--danger); color: #fff; }
.att-btns button.on[data-s="Late"] { background: var(--warning); color: #fff; }
.att-btns button.on[data-s="Excused"] { background: var(--info); color: #fff; }
.reg-card.st-Absent { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: var(--danger-bg); }
.reg-card.st-Late { background: var(--warning-bg); }
.att-cell { width: 26px; text-align: center; font-weight: 700; font-size: .75rem; }
.att-P { color: var(--success); } .att-A { color: var(--danger); background: var(--danger-bg); } .att-L { color: var(--warning); } .att-E { color: var(--info); }

/* ---------- marks entry ---------- */
.marks-table input.mk { width: 78px; text-align: right; padding: .25rem .4rem; height: 30px; }
.marks-table input.mk.bad { border-color: var(--danger); background: var(--danger-bg); }
.marks-table input.mk.saved { border-color: var(--success); }
.marks-table td.sym { font-weight: 800; text-align: center; }
.sticky-first th:first-child, .sticky-first td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* ---------- report card ---------- */
.rc-head { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; margin: .8rem 0; font-size: .9rem; }
.rc-head div span { color: var(--muted); display: inline-block; min-width: 120px; }
.rc-grade { font-weight: 800; text-align: center; }
.rc-comments { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.rc-comments .box { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .75rem; min-height: 80px; }
.rc-comments .box h4 { margin: 0 0 .3rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .8rem 0; }
.rc-summary div { border: 1px solid var(--border); border-radius: 8px; padding: .5rem; text-align: center; }
.rc-summary b { display: block; font-size: 1.2rem; color: var(--ink); } .rc-summary span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .rc-head, .rc-comments { grid-template-columns: 1fr; } .rc-summary { grid-template-columns: repeat(2, 1fr); } }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal .dow { padding: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; font-weight: 700; }
.cal .day { min-height: 96px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .25rem; font-size: .78rem; background: var(--surface); }
.cal .day.out { background: var(--surface-2); color: var(--muted); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal .day .n { font-weight: 700; font-size: .8rem; }
.cal .ev { display: block; margin-top: 2px; padding: 1px 5px; border-radius: 4px; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gold-pale); color: var(--ink-2); border-left: 3px solid var(--gold); cursor: pointer; }
.cal .ev.c-Holiday { background: var(--success-bg); border-color: var(--success); } .cal .ev.c-Exams { background: var(--danger-bg); border-color: var(--danger); }
.cal .ev.c-Sports { background: var(--orange-pale); border-color: var(--orange); } .cal .ev.c-Term { background: #ece8fb; border-color: #6b4c9a; }
@media (max-width: 700px) { .cal .day { min-height: 64px; } .cal .ev { font-size: .62rem; } }

/* ---------- notices ---------- */
.notice { border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 10px; padding: .8rem 1rem; background: var(--surface); }
.notice + .notice { margin-top: .7rem; }
.notice.Important { border-left-color: var(--orange); } .notice.Urgent { border-left-color: var(--danger); background: #fff9fa; }
.notice h3 { margin: 0 0 .2rem; } .notice .meta { font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.notice .body { white-space: pre-wrap; }

/* ---------- dashboard ---------- */
.welcome-band { background: linear-gradient(120deg, #0b1a33, #16305a 60%, #0a8fd0); color: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; position: relative; overflow: hidden; }
.welcome-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(76,195,245,.18); }
.welcome-band img { width: 64px; height: 64px; background: #fff; border-radius: 14px; padding: 4px; object-fit: contain; z-index: 1; }
.welcome-band h2 { color: #fff; margin: 0; font-size: 1.15rem; } .welcome-band p { margin: .15rem 0 0; color: #bfe6fa; font-size: .86rem; }
.welcome-band .wb-term { margin-left: auto; text-align: right; z-index: 1; } .welcome-band .wb-term b { display: block; font-size: 1rem; }
.welcome-band .wb-term span { color: #bfe6fa; font-size: .8rem; }
.progress-term { height: 6px; border-radius: 4px; background: rgba(255,255,255,.2); margin-top: .35rem; overflow: hidden; width: 180px; margin-left: auto; }
.progress-term span { display: block; height: 100%; background: var(--orange); }
@media (max-width: 700px) { .welcome-band .wb-term { display: none; } }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.qa { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.qa:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.qa i { font-size: 1.25rem; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold); }
.qa.o i { background: var(--orange-pale); color: var(--orange); } .qa.g i { background: var(--success-bg); color: var(--success); } .qa.r i { background: var(--danger-bg); color: var(--danger); }
.qa b { font-size: .88rem; } .qa small { color: var(--muted); font-size: .74rem; line-height: 1.25; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.stat-list li:last-child { border-bottom: 0; }
.bar-mini { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: .25rem; }
.bar-mini span { display: block; height: 100%; background: var(--gold); }

/* ---------- empty-state illustration ---------- */
.illustration { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; text-align: center; color: var(--muted); }
.illustration svg { width: 140px; height: auto; }

/* ---------- id card ---------- */
.id-cards { display: grid; grid-template-columns: repeat(auto-fill, 340px); gap: 14px; }
.id-card { width: 340px; height: 214px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #cfd8e3; position: relative; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; font-size: .78rem; break-inside: avoid; }
.id-card .top { background: linear-gradient(120deg, #0b1a33, #16305a 70%, #0a8fd0); color: #fff; display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; }
.id-card .top img { width: 36px; height: 36px; background: #fff; border-radius: 8px; padding: 2px; object-fit: contain; }
.id-card .top b { display: block; font-size: .82rem; } .id-card .top span { font-size: .64rem; color: #bfe6fa; }
.id-card .mid { display: flex; gap: .7rem; padding: .55rem .7rem; flex: 1; }
.id-card .mid .photo { width: 78px; height: 92px; border-radius: 8px; font-size: 1.4rem; }
.id-card .mid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem; align-content: start; }
.id-card .mid dt { color: #6b7790; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; } .id-card .mid dd { margin: 0; font-weight: 700; }
.id-card .bot { background: var(--orange); color: #fff; font-size: .64rem; padding: .2rem .6rem; display: flex; justify-content: space-between; }

/* ---------- misc ---------- */
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin: 0; }
.legend { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; background: var(--c, var(--gold)); vertical-align: -1px; }
.money-in { color: var(--success); font-weight: 700; } .money-out { color: var(--danger); font-weight: 700; }
.diff-old { background: var(--danger-bg); text-decoration: line-through; padding: 0 3px; border-radius: 3px; }
.diff-new { background: var(--success-bg); padding: 0 3px; border-radius: 3px; }
.diff-table td { vertical-align: top; font-size: .8rem; word-break: break-word; }
.steps-line { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.steps-line span { padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
.steps-line span.done { background: var(--success-bg); color: var(--success); border-color: transparent; }
.steps-line span.now { background: var(--gold-pale); color: var(--ink-2); border-color: var(--gold); font-weight: 700; }
.fee-matrix input { width: 92px; text-align: right; height: 30px; padding: .2rem .4rem; }
.fee-matrix th, .fee-matrix td { white-space: nowrap; }

/* ---------- public pages ---------- */
.pub { min-height: 100vh; background: linear-gradient(180deg, #0b1a33 0, #0b1a33 260px, var(--bg) 260px); }
.pub-head { max-width: 980px; margin: 0 auto; padding: 1.2rem 1rem 1rem; display: flex; gap: .9rem; align-items: center; color: #fff; }
.pub-head img { width: 70px; height: 70px; background: #fff; border-radius: 14px; padding: 4px; object-fit: contain; }
.pub-head h1 { color: #fff; margin: 0; font-size: 1.35rem; } .pub-head p { margin: 0; color: #9fd8f5; font-size: .85rem; }
.pub-head .ax { margin-left: auto; display: flex; gap: .45rem; align-items: center; color: #9fb3d1; font-size: .78rem; }
.pub-head .ax img { width: 28px; height: 28px; background: transparent; padding: 0; }
.pub-main { max-width: 980px; margin: 0 auto; padding: 0 1rem 2rem; }
.pub-foot { text-align: center; color: var(--muted); font-size: .76rem; padding: 1rem; }
@media (max-width: 600px) { .pub-head .ax { display: none; } }

/* ---------- quick access (after sign-in and on the dashboard) ---------- */
.qa-modal .modal-content { overflow: hidden; border: 0; }
.qa-hero { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #fff; background: linear-gradient(120deg, #0b1a33, #16305a 60%, var(--gold)); }
.qa-hero img { width: 54px; height: 54px; border-radius: 12px; background: #fff; padding: 3px; object-fit: contain; }
.qa-hero h2 { color: #fff; margin: 0; font-size: 1.25rem; } .qa-hero p { margin: 2px 0 0; color: #cfe3f5; font-size: .85rem; }
.qa-hero .btn { margin-left: auto; color: #fff; }
.qa-lead { font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.qa-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .12s, box-shadow .12s, border-color .12s; min-height: 118px; }
.qa-tile:hover, .qa-tile:focus { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-2); color: var(--ink); outline: none; }
.qa-tile i { font-size: 1.35rem; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold); margin-bottom: 6px; }
.qa-tile.g i { background: var(--success-bg); color: var(--success); } .qa-tile.o i { background: var(--orange-pale); color: var(--orange); } .qa-tile.r i { background: var(--danger-bg); color: var(--danger); }
.qa-tile b { font-size: .95rem; } .qa-tile small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.qa-tips { margin: 16px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
kbd { background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: .75rem; font-family: var(--mono); color: var(--text); }
.dash-quick { margin-bottom: 1rem; }
.dash-quick .qa-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dash-quick .qa-tile { min-height: 104px; padding: 14px; }

/* ---------- Receipting window ---------- */
.rx-modal .modal-dialog { max-width: 620px; }
.rx-pane { display: none; } .rx-pane.on { display: block; animation: rxin .18s ease; }
@keyframes rxin { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.rx-search input { height: 50px; font-size: 1.05rem; border-radius: 12px; padding-left: 2.6rem; }
.rx-search i { font-size: 1.1rem; }
.rx-results { margin-top: 10px; display: grid; gap: 6px; min-height: 120px; }
.rx-hint { color: var(--muted); text-align: center; padding: 28px 10px; } .rx-hint i { display: block; font-size: 2rem; color: var(--gold-2); margin-bottom: 6px; }
.rx-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; cursor: pointer; color: var(--text); }
.rx-item:hover, .rx-item.sel { border-color: var(--gold); background: var(--gold-pale); }
.rx-who { flex: 1; min-width: 0; } .rx-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rx-who small { color: var(--muted); }
.rx-bal { font-weight: 800; white-space: nowrap; } .rx-bal.owing { color: var(--danger); } .rx-bal.ok { color: var(--success); }
.rx-head { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.rx-photo { width: 58px; height: 58px; border-radius: 14px; background: var(--gold-pale); color: var(--gold); font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.rx-photo img { width: 100%; height: 100%; object-fit: cover; }
.rx-id { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rx-id b { font-size: 1.08rem; } .rx-id small { color: var(--muted); }
.rx-owing { text-align: right; } .rx-owing small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.rx-owing b { font-size: 1.75rem; font-weight: 900; line-height: 1.1; } .rx-owing.owing b { color: var(--danger); } .rx-owing.ok b { color: var(--success); }
.rx-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; } .rx-items span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.rx-amount-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; margin-top: 14px; }
.rx-amount-row #rxAmount { height: 56px; font-size: 1.6rem; font-weight: 800; text-align: right; border-radius: 12px; }
.rx-amount-row select { height: 56px; border-radius: 12px; font-weight: 700; }
.rx-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 8px; }
.rx-conv { font-size: .86rem; color: var(--text-2); margin-bottom: 10px; min-height: 1.2em; }
.rx-modal .modal-foot { justify-content: space-between; }
.rx-done { text-align: center; padding: 16px 10px 6px; }
.rx-ok { width: 74px; height: 74px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 2.4rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #f2f9f5; margin-bottom: 12px; }
.rx-done h3 { font-family: var(--mono); font-size: 1.3rem; margin: 4px 0; }
@media (max-width: 560px) { .rx-head { flex-wrap: wrap; } .rx-owing { text-align: left; } }

/* ---------- set-up checklist ---------- */
.checklist-card ul { list-style: none; margin: 0; padding: 0; }
.checklist-card li { display: flex; gap: 10px; align-items: center; padding: .55rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.checklist-card li:last-child { border-bottom: 0; }
.checklist-card li i { font-size: 1.1rem; } .checklist-card li.done i { color: var(--success); } .checklist-card li.todo i { color: var(--muted); }
.checklist-card li.done span { color: var(--muted); text-decoration: line-through; } .checklist-card li a { margin-left: auto; }

/* ---------- report card ZIP progress ---------- */
.zip-progress { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.zip-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }

/* ---------- print ---------- */
@media print {
  .sidebar, .topbar, .footer, .no-print, .toasts, .page-head .actions, .toolbar { display: none !important; }
  .main { margin: 0 !important; } .content { padding: 0 !important; max-width: none; }
  body { background: #fff; } .card { box-shadow: none; border-color: #ccc; }
  .id-cards { gap: 8px; } .doc { box-shadow: none !important; border: 0 !important; }
}

/* ==========================================================================
   Round 4: animated windows, intake, print/PDF choice, shortcuts, reports, list polish
   ========================================================================== */

/* ---------- every window (Bootstrap modal) opens and closes with a smooth zoom ---------- */
.modal.fade { transition: opacity .26s ease; }
.modal.fade .modal-dialog { transform: translateY(26px) scale(.94); opacity: 0; transition: transform .34s cubic-bezier(.2,.9,.25,1.05), opacity .26s ease; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-backdrop.fade { transition: opacity .26s ease; }
.modal-backdrop.show { opacity: .55; backdrop-filter: blur(2px); }
.rx-modal.show .modal-dialog { animation: axPop .32s cubic-bezier(.2,.9,.25,1.05); }
@keyframes axPop { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.modal-content { border-radius: 18px; box-shadow: 0 30px 80px rgba(8,20,42,.35); }
.modal-head { padding: 14px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-radius: 18px 18px 0 0; }
.modal-head h2 { font-size: 1.08rem; }
.modal-foot { border-radius: 0 0 18px 18px; }
@media (prefers-reduced-motion: reduce) { .modal.fade .modal-dialog, .rx-modal.show .modal-dialog { transition: none; animation: none; } }

/* ---------- Printer or PDF choice ---------- */
.out-modal { max-width: 520px; }
.out-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.out-tiles.three { grid-template-columns: repeat(3, 1fr); }
.out-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; cursor: pointer; color: var(--text); transition: transform .14s, box-shadow .14s, border-color .14s; }
.out-tile:hover, .out-tile:focus { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.out-tile i { font-size: 1.7rem; width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold); margin-bottom: 6px; }
.out-tile.pdf i { background: #fdecee; color: #c0392b; } .out-tile.xls i { background: var(--success-bg); color: var(--success); }
.out-tile b { font-size: .98rem; } .out-tile small { color: var(--muted); font-size: .76rem; }
@media (max-width: 480px) { .out-tiles.three { grid-template-columns: 1fr 1fr; } }

/* ---------- reports made in the browser ---------- */
.ax-out-host { position: fixed; left: -20000px; top: 0; width: 794px; background: #fff; }
.ax-report { background: #fff; padding: 24px 28px; max-width: none; }
.ax-report .ax-rt { width: 100%; border-collapse: collapse; font-size: .78rem; margin-top: .6rem; }
.ax-report .ax-rt th { background: #0b1a33; color: #fff; text-align: left; padding: 6px 7px; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ax-report .ax-rt td { padding: 5px 7px; border-bottom: 1px solid #e3e7ee; vertical-align: top; }
.ax-report .ax-rt tbody tr:nth-child(even) td { background: #f6f8fb; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ax-report .ax-rt .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-report .ax-rt tfoot td { border-top: 2px solid #0b1a33; font-weight: 700; }
.ax-report .ax-rt .cell { max-width: none; white-space: normal; overflow: visible; }
.ax-report .ax-rt small { display: block; color: #6b7790; }
.ax-report .ax-rt .badge { border: 0; background: none; padding: 0; color: inherit; font-weight: 600; }
.ax-report .ax-rt .avatar, .ax-report .ax-rt .photo { display: none; }
.ax-rk { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: .8rem 0; }
.ax-rk div { border: 1px solid #e3e7ee; border-left: 3px solid var(--gold); border-radius: 8px; padding: 6px 9px; }
.ax-rk small { display: block; color: #6b7790; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; } .ax-rk b { font-size: 1rem; }
#printOnly { display: none; }

/* ---------- keyboard shortcuts ---------- */
.topbar-keys { color: var(--text-2); }
@media (max-width: 700px) { .topbar-keys { display: none; } }
.sc-g { margin: 14px 0 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
a.sc-row:hover { border-color: var(--gold); background: var(--gold-pale); text-decoration: none; color: var(--ink); }
.sc-k { min-width: 92px; white-space: nowrap; } .sc-k .kp { color: var(--muted); margin: 0 2px; font-size: .7rem; }
.qa-keys { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .78rem; color: var(--text-2); }
.qa-keys-t { font-weight: 700; color: var(--ink); } .qa-key kbd { margin-right: 2px; }
.qa-key.more { color: var(--gold); font-weight: 700; }
.footer a[data-shortcuts] { color: inherit; } .footer kbd { font-size: .66rem; padding: 0 4px; }

/* ---------- Applications: stages as tabs ---------- */
.pipe { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: .4rem; scrollbar-width: thin; }
.pipe-tab { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .85rem;
  color: var(--text-2); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: all .15s; }
.pipe-tab i { color: var(--muted); } .pipe-tab b { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: .75rem; color: var(--ink); }
.pipe-tab:hover { border-color: var(--gold-2); transform: translateY(-1px); }
.pipe-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); } .pipe-tab.on i { color: var(--gold-2); } .pipe-tab.on b { background: var(--gold); color: #fff; }

/* ---------- people in lists ---------- */
.who { display: flex; align-items: center; gap: 10px; min-width: 0; } .who > div { min-width: 0; display: flex; flex-direction: column; }
.who small { font-size: .74rem; }
.avatar.m { background: #e4f1fb; color: #0a6fa8; } .avatar.f { background: #fdeaf2; color: #b2346c; }
.avatar.xl { width: 58px; height: 58px; font-size: 1.15rem; border-radius: 16px; }
.row-go { color: var(--gold); font-weight: 700; font-size: .8rem; opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; }
tr:hover .row-go, tr:focus .row-go { opacity: 1; transform: translateX(2px); }

/* ---------- intake windows ---------- */
.ik-modal { max-width: 860px; }
.ik-head { display: flex; align-items: center; gap: 14px; }
.ik-id { flex: 1; min-width: 0; } .ik-id h3 { margin: 0; font-size: 1.25rem; } .ik-id small { color: var(--muted); }
.ik-steps { list-style: none; display: flex; gap: 0; margin: 16px 0 6px; padding: 0; counter-reset: s; }
.ik-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); position: relative; text-align: center; }
.ik-steps li span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; z-index: 1; font-size: .78rem; }
.ik-steps li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.ik-steps li.done { color: var(--success); } .ik-steps li.done span { background: var(--success); border-color: var(--success); color: #fff; } .ik-steps li.done + li::before, .ik-steps li.now::before { background: var(--success); }
.ik-steps li.now { color: var(--ink); font-weight: 700; } .ik-steps li.now span { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px var(--gold-pale); }
.ik-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ik-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); }
.ik-card h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ik-card dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 0; font-size: .88rem; } .ik-card dt { color: var(--muted); } .ik-card dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ik-ic { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); margin-left: 4px; }
.ik-ic.wa { color: #25a244; }
.ik-note { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--gold-pale); font-size: .86rem; } .ik-note i { color: var(--gold); margin-right: 4px; }
.ik-zone { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.ik-q { font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.ik-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; animation: axPop .25s ease; }
.ik-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--text); transition: transform .14s, box-shadow .14s, border-color .14s; }
.ik-tile:hover, .ik-tile:focus { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.ik-tile i { font-size: 1.25rem; color: var(--gold); } .ik-tile b { font-size: .92rem; } .ik-tile small { color: var(--muted); font-size: .74rem; line-height: 1.25; }
.ik-tile.ik-main { background: linear-gradient(135deg, #0b1a33, #16305a 60%, var(--gold)); color: #fff; border-color: transparent; }
.ik-tile.ik-main i { color: #fff; } .ik-tile.ik-main small { color: #cfe3f5; }
.ik-tile.bad i { color: var(--danger); }
.ik-panel { animation: slideIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.ik-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ik-done { text-align: center; padding: 10px 0 4px; animation: axPop .35s ease; }
.ik-tick { width: 80px; height: 80px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 2.6rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #f2f9f5; margin-bottom: 10px; }
.ik-done h3 { margin: 6px 0 2px; } .ik-done p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.ik-adm { font-family: var(--mono); font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 2px 0 14px; }
.ik-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; text-align: left; }
.ik-btn { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.ik-btn:hover { border-color: var(--gold); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.ik-btn i { font-size: 1.3rem; color: var(--gold); } .ik-btn small { color: var(--muted); font-size: .75rem; }
.ik-sec { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; } .ik-sec h4 { margin: 0; font-size: .98rem; color: var(--ink); }
.ik-sec + .form-grid { margin-bottom: 8px; }
.ik-n { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .form-grid.three, .ik-cards { grid-template-columns: 1fr; } }
.ik-seg { display: flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; height: 36px; }
.ik-seg.is-invalid { border-color: var(--danger); }
.ik-seg label { flex: 1; margin: 0; } .ik-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ik-seg span { display: flex; height: 100%; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.ik-seg label + label span { border-left: 1px solid var(--border-strong); }
.ik-seg input:checked + span { background: var(--ink); color: #fff; }
.ik-seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--gold); }
.ik-more { margin: 4px 0 12px; } .ik-more summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: .86rem; padding: 4px 0; list-style: none; }
.ik-more summary::-webkit-details-marker { display: none; }
.ik-more[open] .form-grid { margin-top: 8px; animation: slideIn .25s ease; }
.ik-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; cursor: pointer; }
.ik-switch input { position: absolute; opacity: 0; }
.ik-switch span { width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; }
.ik-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ik-switch input:checked + span { background: var(--success); } .ik-switch input:checked + span::after { transform: translateX(18px); }
.ik-hint { margin-right: auto; }

/* ---------- lists, cards and pages: a cleaner, more formal look everywhere ---------- */
.page-head { padding-bottom: .7rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.page-head h1 { letter-spacing: -.01em; }
.card { border-radius: 16px; box-shadow: 0 1px 2px rgba(11,26,51,.04), 0 6px 18px rgba(11,26,51,.05); }
.card-head { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-radius: 16px 16px 0 0; }
.card-head h3 { display: flex; align-items: center; gap: .45rem; font-size: .98rem; }
.toolbar { background: var(--surface); }
.card > .toolbar:first-child { border-radius: 16px 16px 0 0; }
.table th { background: #f3f6fa; color: #4a5872; border-bottom: 1px solid var(--border-strong); }
.table tbody tr { transition: background .12s; }
.table tbody tr:nth-child(even) td { background: #fbfcfe; }
.table tbody tr:hover td { background: #eef6fc; }
.table tbody tr.qv:hover td:first-child, .table tbody tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.table td { border-bottom-color: #edf0f5; }
.pager { padding: .55rem 1rem; }
.kpi { border-radius: 16px; transition: transform .14s, box-shadow .14s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.item-card { border-radius: 14px; }
.chip { transition: background .12s, border-color .12s; }
.badge { font-weight: 700; letter-spacing: .01em; }
.badge.gold { color: #0a6fa8; }

/* ---------- student window ---------- */
.sc-head { display: flex; align-items: center; gap: 14px; }
.sc-photo { width: 64px; height: 64px; border-radius: 16px; background: var(--gold-pale); color: var(--gold); font-weight: 800; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-guards { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sc-guard { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; font-size: .88rem; flex-wrap: wrap; }
.sc-guard + .sc-guard { border-top: 1px solid var(--border); }
a.ik-tile { text-decoration: none; }
tr.click-row { cursor: pointer; } tr.click-row:hover td { background: #eef6fc; }
@media print { tr.click-row:hover td { background: none; } }

/* notices never block a click on what is under them */
.toasts { pointer-events: none; }


/* ---------- dashboard: waiting for you + system ---------- */
.dash-top { margin-bottom: 1rem; }
.todo-list { list-style: none; margin: 0; padding: 6px; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); transition: background .12s; }
.todo a:hover { background: var(--gold-pale); text-decoration: none; }
.todo a > i:first-child { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold); flex-shrink: 0; font-size: 1.05rem; }
.todo.o a > i:first-child { background: var(--orange-pale); color: var(--orange); } .todo.r a > i:first-child { background: var(--danger-bg); color: var(--danger); }
.todo.g a > i:first-child { background: var(--success-bg); color: var(--success); }
.todo span { flex: 1; } .todo .go { color: var(--muted); }
.todo-done { padding: 22px 12px; text-align: center; color: var(--success); font-weight: 600; } .todo-done i { font-size: 1.3rem; margin-right: 4px; vertical-align: -3px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 12px; }
.sys-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); }
.sys-item:hover { border-color: var(--gold); text-decoration: none; box-shadow: var(--shadow-sm); }
.sys-item i { color: var(--gold); font-size: 1.1rem; } .sys-item small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; } .sys-item b { font-size: 1.05rem; color: var(--ink); }

/* ---------- set-up quick starts ---------- */
.start-card { text-align: center; padding: 28px 20px; border: 2px dashed var(--gold-2); background: linear-gradient(180deg, var(--gold-pale), var(--surface)); }
.start-card > i { font-size: 2.6rem; color: var(--gold); } .start-card h3 { margin: 8px 0 4px; } .start-card p { color: var(--text-2); max-width: 560px; margin: 0 auto 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .pick-grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pick { margin: 0; cursor: pointer; } .pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; transition: all .12s; }
.pick span::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--border-strong); font-size: 1.1rem; }
.pick input:checked + span { border-color: var(--gold); background: var(--gold-pale); color: var(--ink); } .pick input:checked + span::before { content: "\F26A"; color: var(--gold); }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-pale); }
