
:root{--navy:#064e3b;--blue:#0f7b54;--gold:#d5a62a;--bg:#f3f8f5;--card:#fff;--text:#142033;--muted:#68758a;--line:#e4e9f1;--danger:#c62828;--success:#147a4b}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}
.layout{min-height:100vh;display:flex}.sidebar{width:245px;background:var(--navy);color:#fff;padding:20px 16px;position:fixed;inset:0 auto 0 0;z-index:10}.brand{font-size:20px;font-weight:800;padding:8px 10px 20px;border-bottom:1px solid rgba(255,255,255,.12)}.brand small{display:block;color:#b9c7dd;font-size:11px;font-weight:500;margin-top:4px}.nav{display:flex;flex-direction:column;gap:6px;margin-top:20px}.nav button{background:transparent;color:#dbe5f6;border:0;text-align:left;padding:12px;border-radius:10px}.nav button:hover,.nav button.active{background:rgba(255,255,255,.11);color:#fff}.logout{position:absolute;bottom:18px;left:16px;right:16px}
.main{margin-left:245px;width:calc(100% - 245px);padding:24px}.topbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.topbar h2{margin:0;font-size:20px;color:#0f7b54!important;font-weight:850}.user-pill{background:#e7f7ef;border:1px solid #9fd8bc;color:#0f7b54!important;border-radius:999px;padding:9px 13px;font-size:13px;font-weight:800}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 4px 15px rgba(20,32,51,.04)}.metric-label{color:var(--muted);font-size:12px}.metric{font-size:24px;font-weight:800;margin-top:8px}.section{margin-top:18px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.section h3{margin:0;font-size:16px}.muted{color:var(--muted)}.small{font-size:12px}
.btn{border:0;border-radius:9px;padding:10px 14px;font-weight:700}.btn-primary{background:var(--blue);color:#fff}.btn-secondary{background:#edf2f8;color:#24344e}.btn-danger{background:#feecec;color:#a51f1f}.btn-success{background:#e7f7ef;color:#146b45}.btn-full{width:100%}
.toolbar{display:flex;gap:10px;flex-wrap:wrap}.toolbar input{min-width:240px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field label{font-size:12px;font-weight:700;color:#526075}.field input,.field select,.field textarea{width:100%;border:1px solid #d7deea;border-radius:9px;padding:10px 11px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7da1ee;box-shadow:0 0 0 3px rgba(29,78,216,.08)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.span-2{grid-column:span 2}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}.table{width:100%;border-collapse:collapse;min-width:700px}.table th,.table td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.table th{color:#657289;font-size:11px;text-transform:uppercase;letter-spacing:.04em;background:#fafbfd}.table tr:last-child td{border-bottom:0}
.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.badge-green{background:#e7f7ef;color:#147a4b}.badge-red{background:#feecec;color:#b3261e}.badge-blue{background:#eaf1ff;color:#1e4fae}.badge-gold{background:#fff5d7;color:#7a5a00}
.notice{padding:11px 12px;border-radius:9px;margin-bottom:12px;font-size:13px}.notice.error{background:#feecec;color:#a51f1f}.notice.success{background:#e7f7ef;color:#146b45}.notice.info{background:#eaf1ff;color:#1e4fae}
.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#064e3b,#0f8a5f)}.login-card{width:min(440px,100%);background:#fff;border-radius:26px;padding:34px 28px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.logo{width:48px;height:48px;border-radius:12px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:16px}.login-card h1{margin:0 0 5px;font-size:23px}.login-card .muted{margin-bottom:22px}.setup-warning{background:#fff7dd;border:1px solid #eed58c;padding:12px;border-radius:10px;font-size:12px;margin-top:15px}
.modal-backdrop{position:fixed;inset:0;background:rgba(10,20,35,.5);z-index:30;display:grid;place-items:center;padding:18px}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-head h3{margin:0}.close{border:0;background:#edf2f8;border-radius:8px;width:34px;height:34px}
.empty{padding:28px;text-align:center;color:var(--muted)}.actions{display:flex;gap:8px;flex-wrap:wrap}.photo{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#eef2f7}.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#e9eef6}.kicker{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}.balance{font-size:26px;font-weight:900;color:#a51f1f}.positive{color:#147a4b}

.login-logo{width:86px;height:86px;object-fit:contain;border-radius:14px;margin-bottom:12px;background:#fff}.portal-page{min-height:100vh;background:linear-gradient(135deg,#eef8f2,#f7fbf9);padding:22px}.portal-wrap{width:min(1050px,100%);margin:0 auto}.portal-header{display:flex;align-items:center;gap:16px;margin-bottom:18px}.portal-header h1{margin:0;font-size:22px}.school-logo{width:82px;height:82px;object-fit:contain;background:#fff;border-radius:14px;padding:6px;box-shadow:0 6px 20px rgba(0,0,0,.08)}.portal-card{background:#fff;border:1px solid #dfe9e3;border-radius:18px;padding:22px;box-shadow:0 8px 30px rgba(12,40,25,.06)}.student-hero{display:flex;align-items:center;gap:16px;margin-bottom:18px}.student-hero h2{margin:0 0 5px}.portal-photo{width:92px;height:92px;border-radius:50%;object-fit:cover;background:#edf4ef;border:4px solid #fff;box-shadow:0 3px 15px rgba(0,0,0,.12)}.portal-grid{margin-top:14px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.detail-grid p{margin:0;background:#f7faf8;padding:12px;border-radius:10px}.portal-school{background:#f3faf5}.portal-loading{padding:60px;text-align:center;color:var(--muted)}
@media(max-width:650px){.portal-page{padding:12px}.portal-header{align-items:flex-start}.detail-grid{grid-template-columns:1fr 1fr}.portal-header h1{font-size:18px}.portal-card{padding:15px}}

/* ---- Login (green theme) ---- */
.login-card{text-align:center}.login-card .field{text-align:left}
.login-logo-frame{width:104px;height:104px;margin:0 auto 14px;border:3px solid #1f9d6b;border-radius:24px;display:grid;place-items:center;background:#fff;padding:6px}
.login-logo-frame .login-logo{width:100%;height:100%;margin:0;border-radius:14px;object-fit:contain}
.login-title{font-size:21px;letter-spacing:.06em;color:#0b4a32;margin:0;line-height:1.3}
.login-sub{font-size:11px;letter-spacing:.2em;color:#7b8794;font-weight:700;margin-top:8px}
.login-divider{border:0;border-top:1px solid #e3e8e5;margin:22px 0}
.login-select{font-weight:800;font-size:16px;color:#14352a;margin-bottom:16px}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}
.role-card{background:#fff;border:1.5px solid #cfdcd5;border-radius:16px;padding:18px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#111;transition:.15s}
.role-card:hover,.role-card:focus-visible{border-color:#1f9d6b;box-shadow:0 4px 16px rgba(15,123,84,.15);outline:none}
.role-card b{font-size:13px;letter-spacing:.02em}.role-card small{font-size:11px;color:#7b8794}.role-emoji{font-size:34px;line-height:1}
.role-wide{width:100%;flex-direction:row;justify-content:center;gap:12px;padding:16px;font-size:14px}
.login-foot{margin-top:22px;font-size:11px;color:#98a2a0}
.btn-link{background:transparent;color:#0f7b54;margin-top:6px}
.pw-wrap{position:relative}.pw-wrap input{padding-right:62px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:#edf5f0;color:#0f7b54;font-weight:700;font-size:12px;padding:6px 10px;border-radius:7px}
.brand-logo{width:100%;max-height:70px;object-fit:contain;background:#fff;border-radius:10px;padding:4px;display:block;margin:0 auto 8px}
.wa-preview{white-space:pre-wrap;background:#f3f8f5;border:1px solid var(--line);border-radius:10px;padding:12px;font:13px/1.5 inherit;max-height:40vh;overflow:auto}
a.btn{text-decoration:none;display:inline-block}
.portal-page{background:linear-gradient(135deg,#e8f6ee,#f7fbf9)}
@media(max-width:720px){.brand-logo{max-height:40px}.role-grid{grid-template-columns:1fr}.role-grid-3 .role-card{min-height:110px}}

/* ---- Navigation icon + label ---- */
.nav button{display:flex;align-items:center;gap:10px}.nav button .ic{width:22px;text-align:center;font-size:16px}.nav button .lb{font-size:14px}
.logout.nav{display:flex}
/* ---- Student form ---- */
.form-sec{grid-column:span 2;margin:10px 0 8px;padding-bottom:5px;border-bottom:1px solid var(--line);font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--blue)}
.form-sec:first-child{margin-top:0}
.declaration{background:#f3f8f5;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:14px;font-size:13px;line-height:1.5}
.check{display:flex;gap:10px;align-items:flex-start}.check input{margin-top:3px;width:18px;height:18px;flex:none}
.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;font-size:13px;overflow-wrap:anywhere}
.metric{overflow-wrap:anywhere}
/* ---- Responsive: tablet = 3 columns, phone = compact 2 columns ---- */
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .sidebar{width:68px;padding:10px 5px}
  .brand{padding:4px 0 10px;font-size:0}.brand small{display:none}.brand-logo{max-height:34px;padding:2px;margin:0}
  .nav{margin-top:10px;gap:2px}
  .nav button{flex-direction:column;gap:2px;padding:8px 2px;border-radius:9px;text-align:center}
  .nav button .ic{font-size:18px;width:auto;line-height:1.1}.nav button .lb{font-size:9.5px;line-height:1.15;letter-spacing:.01em}
  .logout{left:5px;right:5px;bottom:10px}
  .main{margin-left:68px;width:calc(100% - 68px);padding:10px}
  .topbar{flex-direction:row;align-items:center;margin-bottom:12px;gap:8px}
  .topbar h2{font-size:14px;line-height:1.25}.kicker{font-size:9px}
  .user-pill{font-size:10px;padding:6px 9px;max-width:42%;text-align:center}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .card{padding:11px;border-radius:12px}.metric-label{font-size:11px}.metric{font-size:16px;margin-top:5px}.balance{font-size:18px}
  .section{margin-top:13px}.section-head{gap:8px;flex-wrap:wrap}.section-head h3{font-size:15px;margin:0}
  .btn{padding:9px 11px;font-size:13px}
  .toolbar input{min-width:0;flex:1}
  .table{min-width:520px}.table th,.table td{padding:8px 9px;font-size:12px}
  .modal-backdrop{padding:6px}.modal{padding:14px;border-radius:14px;max-height:95vh}
  .form-grid{grid-template-columns:1fr}.form-sec,.span-2{grid-column:span 1}
  .detail-list{grid-template-columns:1fr 1fr}
}
@media(max-width:360px){.nav button .lb{font-size:8.5px}.metric{font-size:15px}}
/* ---- Logout button ---- */
.logout.nav{background:rgba(255,255,255,.08);color:#dbe5f6;border:0;border-radius:10px;padding:10px 12px;flex-direction:row;align-items:center;gap:10px;margin-top:0}
.logout.nav:hover{background:rgba(255,255,255,.16);color:#fff}
.logout .ic{width:22px;text-align:center;font-size:16px}.logout .lb{font-size:14px}
@media(max-width:720px){.logout.nav{flex-direction:column;gap:2px;padding:8px 2px;justify-content:center}.logout .ic{width:auto;font-size:18px}.logout .lb{font-size:9.5px}}

/* ---- Vehicle tick boxes ---- */
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.chip{display:flex;align-items:center;gap:8px;border:1px solid #d7deea;border-radius:9px;padding:9px 10px;background:#fff;font-size:13px;font-weight:600;color:#24344e;cursor:pointer}
.chip input{width:17px;height:17px;flex:none;accent-color:#0f7b54}
.chip:has(input:checked){border-color:#0f7b54;background:#e7f7ef;color:#0b5a38}
.install-btn{cursor:pointer}

/* ---- Printing (receipts + admission form) ---- */
#printArea{display:none}
@page{size:A4;margin:12mm}
@media print{
  html,body{background:#fff!important}
  body>*:not(#printArea){display:none!important}
  #printArea{display:block!important;color:#000;font-family:Arial,Helvetica,sans-serif}
  .pr-page{width:100%;max-width:190mm;margin:0 auto;font-size:12.5px;line-height:1.45}
  .pr-receipt{max-width:150mm;border:1.5px solid #000;padding:10mm}
  .pr-head{display:flex;align-items:center;gap:14px;border-bottom:3px solid #0f7b54;padding-bottom:8px}
  .pr-head img{height:70px;width:auto;object-fit:contain}
  .pr-school h1{margin:0;font-size:20px;color:#064e3b;letter-spacing:.03em}
  .pr-title{text-align:center;margin:12px 0 10px;font-size:16px;letter-spacing:.12em;text-decoration:underline}
  .pr-meta{width:100%;margin-bottom:8px}.pr-meta td{padding:2px 0}
  .pr-table{width:100%;border-collapse:collapse}.pr-table th,.pr-table td{border:1px solid #000;padding:7px 9px;text-align:left}
  .pr-table th{width:38%;background:#f1f1f1}.pr-strong td,.pr-strong th{font-weight:800;font-size:14px}
  .pr-sign{display:flex;justify-content:space-between;gap:30px;margin-top:34px}.pr-sign div{flex:1;font-size:12px}.pr-sign span{display:block;border-bottom:1px solid #000;height:28px;margin-bottom:4px}
  .pr-note{text-align:center;font-size:11px;margin-top:18px}
  .pr-official-mark{display:none}
  .pr-company-mark{height:36px;display:flex;align-items:center;gap:5px}
  .pr-stamp{width:43px;height:43px;object-fit:contain;display:block}
  .pr-company-signature{width:88px;height:34px;object-fit:contain;display:block;margin:0}
  .pr-company-sign-area>span{display:block;border-bottom:1px solid #000;height:3px;margin-bottom:4px}
  .pf-office{position:relative;padding-right:82px}
  .pf-office .company-signature-inline{width:76px;height:28px;object-fit:contain;vertical-align:middle}
  .pf-office .pf-stamp{position:absolute;right:8px;bottom:12px;width:68px;height:68px;object-fit:contain}
  .pf-top{display:flex;gap:14px;margin-top:4px}.pf-fields{flex:1}
  .pf-photo{width:34mm;height:42mm;border:1px dashed #000;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;flex:none}
  .pf-photo img{width:100%;height:100%;object-fit:cover}
  .pf-row{display:flex;gap:6px;align-items:flex-end;border-bottom:1px dotted #000;padding:4px 0;min-height:24px}
  .pf-row span{white-space:nowrap}.pf-row em{font-style:normal;flex:1}
  .pf-two{display:flex;gap:16px}.pf-two .pf-row{flex:1}.pf-wide .pf-row:first-child{flex:2}
  .pf-line{margin-top:9px}
  .pf-machines{display:flex;flex-wrap:wrap;gap:6px 22px;margin:5px 0 4px}
  .pf-sub{margin:14px 0 4px;font-size:13px;text-decoration:underline;text-align:center}
  .pf-decl{margin:4px 0;text-align:justify}
  .pf-sig{display:flex;justify-content:space-between;margin-top:22px}
  .pf-blank{display:inline-block;border-bottom:1px dotted #000;width:55mm;height:14px;vertical-align:bottom}.pf-blank.short{width:32mm}
  .pf-office{margin-top:18px;border:1.5px solid #000;border-radius:8px;padding:6px 12px 8px}.pf-office h3{margin:0 0 4px;text-align:center;font-size:13px;text-decoration:underline}
}
.photo-row{display:flex;gap:12px;align-items:flex-start}.photo-preview{width:78px;height:96px;object-fit:cover;border-radius:10px;border:1px solid var(--line);flex:none;background:#f3f8f5}.photo-row input[type=file]{width:100%;font-size:13px}
.pay-hint{background:#e7f7ef;border:1px solid #9fd8bc;color:#0b5a38;font-weight:700;font-size:13px;border-radius:10px;padding:10px 12px;margin-bottom:12px}.pay-hint.bad{background:#feecec;border-color:#f3b4b4;color:#a51f1f}

/* ---- Training period ---- */
.pbadge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.pbadge.ok{background:#e7f7ef;color:#146b45}.pbadge.warn{background:#fff4d6;color:#8a5a00}.pbadge.bad{background:#feecec;color:#a51f1f}
.pbar{height:12px;border-radius:999px;background:#e8eef0;overflow:hidden;margin:10px 0 8px}
.pfill{height:100%;border-radius:999px;background:#1f9d6b}.pfill.warn{background:#e0a800}.pfill.bad{background:#d64545}
.pdates{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12.5px;color:#4a5b57}
.dur-row{display:flex;gap:8px}.dur-row input{flex:1;min-width:0}.dur-row select{flex:1.2;min-width:0}
.mchip{display:inline-block;margin:8px 8px 0 0;padding:9px 14px;border-radius:999px;background:#e7f7ef;border:1px solid #9fd8bc;color:#0b5a38;font-weight:800;font-size:14px}

/* ---- Required field marker (replaces text asterisks) ---- */
.req::after{content:"";display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:#c0392b;vertical-align:middle}

/* ---- Reports ---- */
.rep-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin:4px 0 12px;-webkit-overflow-scrolling:touch}
.rep-tabs button,.rep-presets button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;font-weight:700;font-size:13px;color:#24344e;cursor:pointer}
.rep-tabs button.active,.rep-presets button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.rep-filter{margin-bottom:14px}.rep-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.rep-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rep-dates .field{margin-bottom:0}
.rep-cards{margin:14px 0}.rep-sec{margin:22px 0 8px;font-size:15px;color:var(--navy)}
.rep-table td.num,.rep-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.rep-table tfoot td{font-weight:800;background:#f1f7f4;border-top:2px solid var(--line)}
.rep-table{min-width:560px}

/* ---- Responsive system (final, overrides earlier rules) ----
   Breakpoints: 1100 tablet landscape, 900 tablet portrait (icon rail), 720 phone, 480 small phone, short landscape */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh}
.login{min-height:100vh;min-height:100dvh}
.modal{max-height:90vh;max-height:90dvh}
.sidebar{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.sidebar>*{flex-shrink:0}
.logout.nav{position:static;left:auto;right:auto;bottom:auto;margin-top:auto}
.main{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.main>*{max-width:1400px;margin-left:auto;margin-right:auto}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
  .sidebar{width:68px;padding:10px 5px}
  .brand{padding:4px 0 10px;font-size:0}.brand small{display:none}.brand-logo{max-height:34px;padding:2px;margin:0}
  .nav{margin-top:10px;gap:2px}
  .nav button{flex-direction:column;gap:2px;padding:8px 2px;border-radius:9px;text-align:center}
  .nav button .ic{font-size:18px;width:auto;line-height:1.1}.nav button .lb{font-size:10.5px;line-height:1.15}
  .logout.nav{flex-direction:column;gap:2px;padding:8px 2px;justify-content:center}.logout .ic{width:auto;font-size:18px}.logout .lb{font-size:10.5px}
  .main{margin-left:68px;width:calc(100% - 68px);padding:16px}
  .form-grid{grid-template-columns:1fr}.form-sec,.span-2{grid-column:span 1}
}
@media(max-width:720px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .main{padding:10px}
  .nav button .lb,.logout .lb{font-size:9.5px}
  input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px;min-height:44px}
  .btn{min-height:42px}.nav button{min-height:48px}
  .rep-dates{grid-template-columns:1fr}
  .modal-backdrop{padding:6px}
}
@media(max-width:480px){
  .login{padding:12px}.login-card{padding:26px 18px;border-radius:22px}
  .login-title{font-size:18px}.section-head{align-items:flex-start}
  .actions .btn{flex:1 1 100%}
}
@media(max-height:520px) and (orientation:landscape){
  .nav button{min-height:0;padding:5px 2px}.nav button .ic{font-size:15px}
  .login{align-items:start}.modal{max-height:96vh;max-height:96dvh}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
  .pr-report{max-width:none;font-size:10.5px}.pr-range{margin:2px 0 8px;font-size:11px}
  .pr-cards{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.pr-cards div{border:1px solid #999;padding:5px 10px;min-width:130px}.pr-cards span{display:block;font-size:9.5px}.pr-cards b{font-size:13px}
  .pr-sec{margin:12px 0 4px;font-size:12px;color:#064e3b}
  .pr-grid{width:100%;border-collapse:collapse;font-size:10px}.pr-grid th,.pr-grid td{border:1px solid #888;padding:3px 5px;text-align:left}.pr-grid th{background:#eee}
  .pr-grid .num{text-align:right}.pr-grid tfoot td{font-weight:700;background:#f1f1f1}.pr-grid tr{page-break-inside:avoid}.pr-grid thead{display:table-header-group}
}

.metric-hint{font-size:11.5px;color:#7b8794;margin-top:5px;line-height:1.3}
.danger-zone{margin-top:22px;border:1px solid #f0c4c4;background:#fff8f8}.danger-zone h3{margin:0 0 6px;color:#a51f1f}
.reset-opt{padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;font-size:13.5px;line-height:1.45;background:#fff}

/* ---- Training assessments ---- */
.assessment-box{border:1px solid var(--line);border-radius:14px;padding:14px;background:#f8fbf9;margin:14px 0}.assessment-row{display:grid;grid-template-columns:1fr 90px;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #e7eee9}.assessment-row:last-of-type{border-bottom:0}.assessment-row b{display:block;font-size:13px}.assessment-row input{width:100%;padding:9px;border:1px solid #ccdcd4;border-radius:8px;text-align:center;font-weight:800}.assessment-total{font-size:24px;font-weight:900;color:#0f7b54}.assessment-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:12px;font-size:10px;color:var(--muted)}.assessment-level{display:inline-block;margin-top:10px;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:800}.assessment-level.green{background:#e7f7ef;color:#0b5a38}.assessment-level.blue{background:#eaf2ff;color:#1d5ca8}.assessment-level.warn{background:#fff4dc;color:#8a5b00}.assessment-level.red{background:#fdecec;color:#a51f1f}.assessment-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.assessment-summary>div{background:#f7faf8;border-radius:10px;padding:12px}.assessment-summary strong{display:block;margin-top:4px}.assessment-portal-card{border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:12px;background:#fbfdfc}.assessment-score{font-size:22px;font-weight:900;color:#0f7b54}.assessment-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}.assessment-areas span{background:#f2f7f4;border-radius:8px;padding:7px;font-size:11px}.assessment-portal-card .detail-grid{margin-top:12px}
@media(max-width:720px){.assessment-summary{grid-template-columns:1fr 1fr}.assessment-areas{grid-template-columns:1fr}.assessment-row{grid-template-columns:1fr 72px}}

/* ---- V24 mobile dashboard refinement ----
   Designed for narrow Android screens and browser zoomed layouts. */
@media(max-width:720px){
  .sidebar{width:58px;padding:8px 3px}
  .brand{padding:3px 0 8px}
  .brand-logo{max-height:29px;padding:1px;border-radius:7px}
  .nav{margin-top:8px;gap:1px}
  .nav button{min-height:43px;padding:6px 1px;border-radius:8px}
  .nav button .ic{font-size:16px;line-height:1}
  .nav button .lb{font-size:8px;line-height:1.05;max-width:54px;white-space:normal}
  .logout.nav{padding:6px 1px;min-height:43px}
  .logout .ic{font-size:16px}.logout .lb{font-size:8px}
  .main{margin-left:58px;width:calc(100% - 58px);padding:8px}
  .topbar{margin-bottom:9px;gap:5px;align-items:flex-start}
  .topbar h2{font-size:13px;line-height:1.18}
  .kicker{font-size:8px;letter-spacing:.06em}
  .user-pill{font-size:8.5px;padding:5px 7px;max-width:38%;line-height:1.15}
  .grid{gap:6px}
  .card{padding:9px;border-radius:10px}
  .metric-label{font-size:9.5px;line-height:1.2}
  .metric{font-size:14px;margin-top:4px;line-height:1.15}
  .metric-hint{font-size:9px;line-height:1.2;margin-top:4px}
  .section{margin-top:10px}
  .section-head{margin-bottom:8px;gap:5px}
  .section-head h3{font-size:13px}
  .btn{padding:7px 8px;font-size:11px;min-height:36px;border-radius:8px}
}
@media(max-width:480px){
  .main{padding:7px}
  .topbar h2{font-size:12.5px}
  .user-pill{font-size:8px}
  .grid{gap:5px}
  .card{padding:8px;border-radius:9px}
  .metric-label{font-size:9px}
  .metric{font-size:13px}
  .metric-hint{font-size:8.5px}
  .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .actions .btn{flex:initial;width:100%;min-height:36px}
}
@media(max-width:360px){
  .sidebar{width:54px}
  .main{margin-left:54px;width:calc(100% - 54px)}
  .nav button .lb,.logout .lb{font-size:7.5px}
  .nav button .ic,.logout .ic{font-size:15px}
  .metric{font-size:12.5px}
}

/* Employee management */
.compact-metrics{margin:14px 0 18px}
@media(max-width:700px){
  .compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .compact-metrics .metric{padding:14px}
  .compact-metrics .metric strong{font-size:18px}
}

/* ---- V26: professional student portal navigation ---- */
.portal-header{padding:4px 2px 16px}.portal-brand{min-width:0}.portal-brand h1{font-weight:850;line-height:1.15}.portal-menu{position:sticky;top:0;z-index:20;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid #dce8e1;border-radius:14px;padding:7px;margin-bottom:16px;box-shadow:0 6px 20px rgba(12,40,25,.06);overflow-x:auto;scrollbar-width:none}.portal-menu::-webkit-scrollbar{display:none}.portal-menu-item{flex:0 0 auto;border:0;background:transparent;color:#52645c;padding:10px 13px;border-radius:10px;font-size:12px;font-weight:800;display:flex;align-items:center;gap:6px;white-space:nowrap}.portal-menu-item.active{background:#0f7b54;color:#fff;box-shadow:0 4px 10px rgba(15,123,84,.18)}.portal-menu-item:hover{background:#eaf6ef;color:#0f6b49}.portal-menu-item.active:hover{background:#0f7b54;color:#fff}.portal-welcome{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,#0b6044,#12835d);color:#fff;border-radius:18px;padding:20px 22px;margin-bottom:14px;box-shadow:0 10px 28px rgba(10,82,58,.15)}.portal-welcome .kicker{color:#c8eadb}.portal-welcome h2{margin:4px 0 5px;font-size:24px}.portal-welcome p{margin:0;color:#d9eee5;font-size:13px}.portal-student-id{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:10px 13px;font-size:11px;white-space:nowrap}.portal-student-id strong{display:block;font-size:15px;margin-top:2px}.portal-profile-card{padding:20px}.portal-anchor{scroll-margin-top:78px}.portal-menu+.install-btn{display:none!important}
@media(max-width:650px){.portal-page{padding:10px}.portal-header{gap:11px;margin-bottom:10px}.school-logo{width:64px;height:64px;border-radius:12px}.portal-header h1{font-size:17px}.portal-header .muted{font-size:12px}.portal-menu{margin-bottom:12px;padding:5px;border-radius:12px;top:0}.portal-menu-item{padding:9px 11px;font-size:11px}.portal-welcome{padding:16px;border-radius:15px;align-items:flex-start}.portal-welcome h2{font-size:20px}.portal-welcome p{font-size:12px;line-height:1.4}.portal-student-id{padding:8px 10px}.portal-profile-card{padding:14px}.student-hero{gap:11px}.student-hero h2{font-size:19px}.portal-photo{width:72px;height:72px}.portal-grid{grid-template-columns:1fr 1fr}.portal-grid .card{padding:12px}.portal-grid .metric{font-size:18px}.portal-grid .balance{font-size:19px}.portal-anchor{scroll-margin-top:68px}}
@media(max-width:430px){.portal-welcome{display:block}.portal-student-id{display:inline-block;margin-top:11px}.portal-menu-item{padding:8px 10px}.portal-grid{grid-template-columns:1fr 1fr}.portal-grid .card:last-child{grid-column:span 2}}

/* ---- V29 Live Feed dashboard ---- */
.live-feed-section{overflow:hidden}
.live-status{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding:3px 7px;border-radius:999px;background:#e7f7ef;color:#0b6b46;font-size:9px;font-weight:900;letter-spacing:.06em;vertical-align:middle}
.live-status i{width:7px;height:7px;border-radius:50%;background:#13a568;display:inline-block;box-shadow:0 0 0 3px rgba(19,165,104,.12)}
.live-feed{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.live-feed-item{display:flex;gap:11px;padding:12px 14px;border-bottom:1px solid var(--line);min-width:0}
.live-feed-item:last-child{border-bottom:0}
.live-feed-avatar{width:34px;height:34px;min-width:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e7f7ef;color:#0b6b46;font-size:11px;font-weight:900}
.live-feed-body{min-width:0;flex:1}
.live-feed-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;font-size:12px}
.live-feed-time{font-size:10px;color:var(--muted);white-space:nowrap}
.live-feed-type{font-size:10px;font-weight:800;color:#0b7b53;margin-top:2px}
.live-feed-text{font-size:12px;color:#334155;line-height:1.35;margin-top:2px;overflow-wrap:anywhere}
.live-feed-empty{padding:22px;text-align:center;color:var(--muted);font-size:12px}
.full-live-feed{max-width:100%}
@media(max-width:720px){
  .live-feed-item{padding:9px 10px;gap:8px}
  .live-feed-avatar{width:29px;height:29px;min-width:29px;font-size:9px}
  .live-feed-top{font-size:10.5px}
  .live-feed-time{font-size:8px}
  .live-feed-type{font-size:8.5px}
  .live-feed-text{font-size:10px;line-height:1.3}
  .live-status{font-size:7px;padding:2px 5px;margin-left:3px}
  .live-status i{width:5px;height:5px}
}

/* ---- V30 dashboard layout refinement ----
   Management live feed sits in a clean right-hand column beneath the financial cards.
   On smaller screens it stacks naturally without horizontal overflow. */
.dashboard-lower{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.95fr);gap:18px;align-items:start;margin-top:18px}
.dashboard-left{min-width:0}
.dashboard-right{min-width:0;position:sticky;top:14px}
.dashboard-right .dashboard-live-card{margin-top:0}
.dashboard-live-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;box-shadow:0 4px 15px rgba(20,32,51,.04);overflow:hidden}
.dashboard-live-card .section-head{margin-bottom:10px}
.dashboard-live-card .section-head h3{font-size:15px}
.dashboard-live-card .live-feed{max-height:430px;overflow-y:auto}
.dashboard-live-card .live-feed-item{padding:10px 9px;gap:9px}
.dashboard-live-card .live-feed-avatar{width:31px;height:31px;min-width:31px;font-size:10px}
.dashboard-live-card .live-feed-top{font-size:11px}
.dashboard-live-card .live-feed-time{font-size:9px}
.dashboard-live-card .live-feed-type{font-size:9px}
.dashboard-live-card .live-feed-text{font-size:11px;line-height:1.3}
@media(max-width:900px){
  .dashboard-lower{grid-template-columns:minmax(0,1.35fr) minmax(245px,.9fr);gap:12px}
  .dashboard-live-card{padding:11px}
}
@media(max-width:720px){
  .dashboard-lower{display:block;margin-top:12px}
  .dashboard-right{position:static;margin-top:12px}
  .dashboard-live-card{padding:9px;border-radius:11px}
  .dashboard-live-card .live-feed{max-height:none}
}

/* ---- V31: professional responsive dashboard ---- */
.mobile-only{display:none}
.dashboard-live-wrap{width:min(520px,46%);margin:14px 0 0 auto}
.dashboard-live-wrap .dashboard-live-card{width:100%}
.dashboard-actions{margin-top:14px}
.dash-list{display:flex;flex-direction:column;gap:8px}
.dash-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 12px;box-shadow:0 2px 8px rgba(20,32,51,.035)}
.dash-item-main{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.dash-item-main b{font-size:13px;overflow-wrap:anywhere}
.dash-item-main .small{white-space:nowrap}
.dash-item-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:8px;margin-top:9px}
.dash-item-meta>span{min-width:0}
.dash-item-meta small{display:block;color:var(--muted);font-size:9px;margin-bottom:2px}
.dash-item-meta b{font-size:11px;overflow-wrap:anywhere}
.dash-open{white-space:nowrap;padding:7px 9px;font-size:11px}
@media(max-width:900px){
  .dashboard-live-wrap{width:50%;}
}
@media(max-width:720px){
  .desktop-only{display:none!important}
  .mobile-only{display:flex}
  .dashboard-live-wrap{width:100%;margin:12px 0 0}
  .dashboard-live-card{padding:12px;border-radius:14px}
  .dashboard-live-card .section-head{align-items:center;flex-wrap:nowrap}
  .dashboard-live-card .section-head>div{min-width:0}
  .dashboard-live-card .section-head h3{font-size:15px}
  .dashboard-live-card .section-head .btn{flex:none;font-size:11px;padding:8px 9px}
  .dashboard-live-card .live-feed{max-height:300px;overflow-y:auto}
  .dashboard-live-card .live-feed-item{padding:10px 9px}
  .dashboard-actions{margin-top:12px}
  .dashboard-section{margin-top:12px}
  .dashboard-section .section-head{align-items:center}
  .dashboard-section .section-head .btn{font-size:11px;padding:8px 9px}
  .dash-item-meta{grid-template-columns:1fr 1fr;gap:7px 10px}
  .dash-item-meta>span:nth-child(3){grid-column:1}
  .dash-open{grid-column:2;grid-row:2;justify-self:end;align-self:end}
}
@media(max-width:390px){
  .grid{gap:7px}
  .card{padding:10px}
  .metric-label{font-size:10px}
  .metric{font-size:15px}
  .metric-hint{font-size:9px;line-height:1.2}
  .topbar h2{font-size:13px}
  .user-pill{font-size:9px;max-width:40%}
  .dash-item{padding:10px}
  .dash-item-main b{font-size:12px}
}

/* ---- V32: professional dashboard workspace ---- */
.dashboard-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dashboard-kpis .card{min-width:0}
.dashboard-workspace{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(0,1.5fr);gap:18px;align-items:start;margin-top:18px}
.dashboard-feed-column,.dashboard-attention-column{min-width:0}
.dashboard-feed-column{position:sticky;top:14px}
.dashboard-live-card{margin:0;background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px;box-shadow:0 4px 15px rgba(20,32,51,.04);overflow:hidden}
.dashboard-live-card .section-head{margin-bottom:9px}
.dashboard-live-card .section-head h3{font-size:15px}
.dashboard-live-card .live-feed{max-height:335px;overflow-y:auto}
.dashboard-live-card .live-feed-item{padding:9px 8px;gap:8px}
.dashboard-live-card .live-feed-avatar{width:30px;height:30px;min-width:30px;font-size:9px}
.dashboard-live-card .live-feed-top{font-size:10.5px}
.dashboard-live-card .live-feed-time{font-size:8px}
.dashboard-live-card .live-feed-type{font-size:8.5px}
.dashboard-live-card .live-feed-text{font-size:10.5px;line-height:1.3}
.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px;box-shadow:0 4px 15px rgba(20,32,51,.035);margin-bottom:14px;overflow:hidden}
.dashboard-panel:last-child{margin-bottom:0}
.dashboard-panel .section-head{margin-bottom:10px}
.dashboard-panel .section-head h3{font-size:15px}
.dashboard-panel .table-wrap{border-radius:11px}
.dashboard-panel .table{min-width:620px}
.dashboard-panel .table th,.dashboard-panel .table td{padding:10px 11px}
.dashboard-attention-column .dashboard-section{margin-top:0}
.dashboard-workspace.single-workspace{grid-template-columns:minmax(0,1fr)}
@media(max-width:1100px){
  .dashboard-workspace{grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr);gap:14px}
  .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .dashboard-kpis .card{padding:14px}
  .dashboard-kpis .metric{font-size:20px}
}
@media(max-width:720px){
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dashboard-kpis .card{padding:11px;border-radius:12px}
  .dashboard-kpis .metric{font-size:16px}
  .dashboard-workspace{display:flex;flex-direction:column;gap:12px;margin-top:12px}
  .dashboard-feed-column{position:static;width:100%;order:1}
  .dashboard-attention-column{width:100%;order:2}
  .dashboard-live-card{padding:11px;border-radius:13px}
  .dashboard-live-card .live-feed{max-height:260px}
  .dashboard-panel{padding:11px;border-radius:13px;margin-bottom:12px}
  .dashboard-panel .section-head h3{font-size:14px}
  .dashboard-panel .section-head .btn,.dashboard-live-card .section-head .btn{font-size:11px;padding:8px 9px}
}

/* V33 — professional student portal navigation and profile cleanup */
.portal-page{padding:24px 18px 40px}.portal-wrap{width:min(1080px,100%)}
.portal-menu{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;padding:5px;position:sticky;top:10px;border-radius:16px;margin-bottom:16px}
.portal-menu-item{min-width:0;width:100%;justify-content:center;flex-direction:column;gap:3px;padding:9px 7px;font-size:11px;line-height:1.15;border-radius:11px}
.portal-menu-icon{font-size:16px;line-height:1;font-weight:900}.portal-menu-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.portal-menu-item.active{box-shadow:0 4px 12px rgba(15,123,84,.16)}
.portal-profile-card{padding:20px 22px}.student-hero{margin-bottom:18px}.student-hero-copy{min-width:0}.student-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.student-name-row h2{margin:0}.portal-private-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#e9f7ef;color:#0f6b49;font-size:10px;font-weight:800}.portal-photo-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.portal-photo-btn{display:inline-flex;margin-top:8px;padding:8px 11px;border:1px solid #cfe1d7;border-radius:9px;background:#f4faf6;color:#0f6b49;font-size:11px;font-weight:800;cursor:pointer}.portal-photo-btn:hover{background:#eaf6ef}.portal-grid{margin-top:12px}.portal-grid .card{min-width:0}.portal-anchor{scroll-margin-top:92px}.portal-school{margin-top:14px}
@media(max-width:650px){.portal-page{padding:9px 10px 28px}.portal-header{margin-bottom:9px}.portal-menu{top:0;margin-bottom:10px;gap:3px;padding:4px;border-radius:14px}.portal-menu-item{padding:8px 3px;font-size:9px;gap:4px}.portal-menu-icon{font-size:15px}.portal-profile-card{padding:14px}.student-hero{align-items:center;margin-bottom:14px}.portal-photo{width:70px;height:70px}.student-hero h2{font-size:19px}.student-name-row{gap:6px}.portal-private-badge{font-size:9px;padding:4px 7px}.portal-photo-btn{font-size:10px;padding:7px 9px;margin-top:6px}.portal-grid{gap:8px}.portal-grid .card{padding:11px}.portal-anchor{scroll-margin-top:72px}}
@media(max-width:380px){.portal-menu-item{font-size:8px;padding:7px 2px}.portal-menu-icon{font-size:14px}.portal-photo{width:64px;height:64px}.student-hero h2{font-size:18px}}

/* V38 — collection period visibility on Deposits */
.collection-summary-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0 10px;padding:14px 16px;background:linear-gradient(135deg,#eefaf5,#fff);border:1px solid var(--line);border-radius:15px}
.collection-summary-head h4,.deposit-position-title h4{margin:0 0 3px;font-size:16px;color:var(--ink)}
.collection-all-time{font-size:25px;font-weight:800;color:var(--green);white-space:nowrap}
.collection-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.collection-kpis .card{min-width:0;padding:14px;border-radius:13px}
.collection-kpis .metric{font-size:21px}
.collection-primary{border-color:#a9dfca;box-shadow:0 5px 18px rgba(16,125,87,.08)}
.deposit-position-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 10px}
@media(max-width:720px){
  .collection-summary-head{padding:12px;align-items:flex-start}
  .collection-all-time{font-size:20px}
  .collection-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .collection-kpis .card{padding:11px}
  .collection-kpis .metric{font-size:17px}
  .deposit-position-title{display:block}
}
@media(max-width:390px){
  .collection-kpis{gap:7px}
  .collection-kpis .metric{font-size:15px}
  .collection-kpis .metric-label{font-size:10px}
  .collection-kpis .metric-hint{font-size:9px}
}

/* V40 — professional Reports & Financial Analysis */
.reports-head{align-items:flex-end}.reports-head .eyebrow{font-size:10px;letter-spacing:.12em;font-weight:850;color:#13805a;margin-bottom:3px}.reports-head h3{font-size:22px;margin:0 0 2px}.financial-filter{padding:16px 18px;background:linear-gradient(135deg,#f8fcfa,#fff);border-color:#d7e7df}.rep-filter-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.rep-filter-title>div:first-child{display:flex;flex-direction:column;gap:3px}.inline-year{display:flex;align-items:center;gap:8px;margin:0}.inline-year label{margin:0;font-size:12px;font-weight:750;color:var(--muted)}.inline-year select{min-width:105px;min-height:40px}.financial-presets{margin-bottom:0}.financial-note{margin-top:13px;margin-bottom:0;font-size:12px;line-height:1.45}.report-metric{min-height:92px}.report-metric .metric-label{font-weight:650}.report-metric:nth-child(1){border-color:#b9dfcf}.report-metric:nth-child(3){border-color:#b9dfcf}.rep-sec{font-weight:850;letter-spacing:.01em}.rep-table th{white-space:nowrap}.rep-table tbody tr:hover{background:#f8fbf9}.rep-table td,.rep-table th{vertical-align:middle}.rep-table tfoot td{background:#eef8f3}.financial-filter .rep-presets button{padding:9px 15px}.financial-filter .rep-presets button.active{box-shadow:0 3px 9px rgba(15,123,84,.15)}
@media(max-width:720px){.reports-head{align-items:flex-start}.reports-head h3{font-size:18px}.rep-filter-title{align-items:flex-start}.inline-year{align-items:flex-start}.inline-year select{min-height:42px}.financial-filter{padding:13px}.financial-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.financial-filter .rep-presets button{padding:9px 7px;font-size:11px}.financial-note{font-size:11px}.report-metric{min-height:74px}.report-metric .metric{font-size:17px}}
@media(max-width:420px){.financial-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-filter-title{display:block}.inline-year{margin-top:10px}.report-metric .metric{font-size:15px}}

/* V50: Gracious Pearl company-green branding for dashboard heading and signed-in name pill */
.main .topbar .kicker{color:#0f7b54!important}
.main .topbar h2{color:#0f7b54!important}
.main .topbar h2{text-transform:uppercase!important;color:#0f7b54!important;font-weight:900!important}
.main .topbar .user-pill{color:#0f7b54!important;background:#e7f7ef!important;border-color:#9fd8bc!important}
.assessment-suggestion{width:100%;margin:6px 0 8px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#334155;font:inherit}
.assessment-suggestion:focus{outline:2px solid rgba(0,128,96,.18);border-color:#008060}


/* V53 student portal installation card */
@media(max-width:640px){}

/* V54 — concise professional reports */
.reports-head{padding-bottom:4px}.reports-head .actions{gap:7px}.reports-head .actions .btn{min-height:38px;padding:8px 12px;font-size:12px}
.rep-tabs{gap:5px;margin:6px 0 10px;padding:2px 0 7px}.rep-tabs button{padding:8px 12px;font-size:12px;border-radius:10px}.rep-tabs button.active{box-shadow:0 2px 7px rgba(6,78,59,.14)}
.compact-filter{padding:12px 14px;margin-bottom:12px}.compact-filter .rep-presets{margin-bottom:8px}.compact-filter .rep-presets button{padding:7px 11px;font-size:12px}.compact-filter .rep-dates{gap:9px}.report-note{margin-top:8px;padding:8px 10px;border-left:3px solid var(--green,#13805a);background:#f5faf7;color:#667085;font-size:11px;line-height:1.4;border-radius:7px}
.rep-cards{margin:10px 0 16px;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.report-metric{min-height:82px;padding:13px 14px;border-radius:12px}.report-metric .metric-label{font-size:11px;color:#687386}.report-metric .metric{font-size:20px;margin-top:4px}.rep-sec{margin:16px 0 7px;font-size:14px}.table-wrap{border-radius:11px}.rep-table th,.rep-table td{padding:9px 10px;font-size:12px}.rep-table th{font-size:10px}.rep-table tfoot td{padding-top:9px;padding-bottom:9px}
@media(max-width:900px){.rep-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.reports-head{gap:8px}.reports-head .actions{width:100%}.reports-head .actions .btn{flex:1}.rep-tabs button{padding:7px 10px;font-size:11px}.rep-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-metric{min-height:70px;padding:11px 12px}.report-metric .metric{font-size:17px}.rep-sec{margin-top:13px}.compact-filter{padding:10px}.compact-filter .rep-presets{display:flex;overflow-x:auto;flex-wrap:nowrap}.compact-filter .rep-presets button{white-space:nowrap}.report-note{font-size:10px}}

.student-login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#f5fbf8,#ffffff)}
.student-login-card{width:min(460px,100%);background:#fff;border:1px solid #dce8e2;border-radius:18px;box-shadow:0 16px 45px rgba(4,78,59,.10);padding:30px;text-align:center}
.student-login-logo{width:92px;height:92px;object-fit:contain;border-radius:14px;margin-bottom:12px}
.student-login-card h1{margin:4px 0 8px;color:#075b40;font-size:28px}
.student-login-card .field{text-align:left;margin-top:14px}
.student-login-card input{width:100%}
.portal-header{position:relative}
@media(max-width:600px){.student-login-card{padding:24px 18px}.portal-header{gap:10px;align-items:center}}

/* V64 Student Portal polish: no switch/install controls inside the authenticated portal. */
.portal-header{padding:8px 2px 18px;min-height:84px}.portal-brand .kicker{letter-spacing:.12em;font-weight:800}.portal-brand h1{font-size:clamp(18px,2.4vw,28px);letter-spacing:-.02em}.portal-brand .muted{margin-top:3px}.portal-header .school-logo{flex:0 0 auto}
@media(max-width:650px){.portal-header{padding:4px 0 14px;min-height:68px}.portal-header .school-logo{width:58px;height:58px}.portal-brand h1{font-size:17px}.portal-brand .kicker{font-size:10px}}

/* Student portal logout button */
.portal-menu .portal-menu-logout { margin-left:auto; background:#feecec; color:#a51f1f; }
.portal-menu .portal-menu-logout:hover { background:#fbdada; color:#861b1b; }


/* GP PROFESSIONAL STUDENT PORTAL V72 */
.portal-page {
  --gp-navy: #10233f;
  --gp-navy-light: #1b365b;
  --gp-gold: #d4ad62;
  --gp-gold-soft: #fbf4e6;
  --gp-ink: #17263d;
  --gp-muted: #718096;
  --gp-line: #e5eaf1;
  --gp-green: #167a58;
  min-height: 100vh;
  padding: 26px;
  color: var(--gp-ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212,173,98,.12), transparent 32%),
    linear-gradient(145deg, #f4f7fb 0%, #edf2f8 55%, #f8f9fc 100%);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.portal-wrap { max-width: 1160px; }
.portal-header {
  gap: 17px;
  align-items: center;
  padding: 2px 3px 21px;
}
.portal-header .school-logo {
  width: 76px;
  height: 76px;
  border: 1px solid #e7e0d2;
  border-radius: 19px;
  padding: 7px;
  box-shadow: 0 8px 22px rgba(16,35,63,.08);
}
.portal-brand .kicker {
  color: #9a7838;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 900;
}
.portal-brand h1 {
  color: var(--gp-navy);
  letter-spacing: -.5px;
  font-size: 23px;
  font-weight: 850;
}
.portal-brand .muted { color: #64748b; }
.portal-menu {
  top: 8px;
  gap: 5px;
  padding: 8px;
  margin-bottom: 21px;
  border: 1px solid rgba(220,228,238,.95);
  border-radius: 16px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 10px 30px rgba(16,35,63,.075);
}
.portal-menu-item {
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 11px;
  color: #526178;
  font-size: 12px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease;
}
.portal-menu-item.active,
.portal-menu-item.active:hover {
  color: #fff;
  background: var(--gp-navy);
  box-shadow: 0 5px 13px rgba(16,35,63,.2);
}
.portal-menu-item:hover {
  color: var(--gp-navy);
  background: #eef2f8;
}
.portal-menu .portal-menu-logout {
  margin-left: auto;
  color: #a12c35;
  background: #fff1f1;
}
.portal-menu .portal-menu-logout:hover {
  color: #84202a;
  background: #ffe3e5;
}
.portal-welcome {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 29px 30px;
  margin-bottom: 19px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 23px;
  background: linear-gradient(120deg, #10233f 0%, #18385f 70%, #24466a 100%);
  box-shadow: 0 16px 34px rgba(16,35,63,.16);
}
.portal-welcome:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -55px;
  top: -115px;
  border: 1px solid rgba(212,173,98,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(212,173,98,.045),
              0 0 0 52px rgba(212,173,98,.035);
  pointer-events: none;
}
.portal-welcome > div { position: relative; z-index: 1; }
.portal-welcome .kicker {
  color: #e3c98f;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 850;
}
.portal-welcome h2 {
  margin: 9px 0 8px;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.7px;
}
.portal-welcome p {
  max-width: 520px;
  color: #d9e3f0;
  line-height: 1.65;
  font-size: 13px;
}
.portal-student-id {
  z-index: 1;
  padding: 12px 16px;
  color: #f6e7c5;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(226,201,143,.42);
  border-radius: 13px;
  font-size: 11px;
}
.portal-student-id strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: .5px;
}
.portal-page .portal-card,
.portal-page .portal-anchor,
.portal-page .portal-school {
  border: 1px solid var(--gp-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,35,63,.045);
}
.portal-page .portal-profile-card {
  padding: 24px;
  margin-bottom: 18px;
}
.portal-page .student-hero {
  gap: 19px;
  padding-bottom: 21px;
  margin-bottom: 21px;
  border-bottom: 1px solid #edf0f5;
}
.portal-photo {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border: 3px solid #fff;
  outline: 2px solid #e4d1a7;
  box-shadow: 0 7px 20px rgba(16,35,63,.12);
}
.portal-page .student-hero h2 {
  color: var(--gp-navy);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.35px;
}
.portal-page .student-hero-copy > p {
  color: var(--gp-muted);
  font-size: 12px;
}
.portal-private-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #eadbb9;
  border-radius: 999px;
  color: #87662b;
  background: var(--gp-gold-soft);
  font-size: 10px;
  font-weight: 800;
}
.portal-photo-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 8px 12px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  color: var(--gp-navy);
  background: #f8fafd;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.portal-photo-btn:hover { background: #edf2f8; }
.portal-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.portal-page .portal-grid > .card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 19px;
  border: 1px solid #e4eaf2;
  border-radius: 15px;
  background: linear-gradient(145deg,#fff,#f9fbfe);
  box-shadow: 0 5px 16px rgba(16,35,63,.035);
}
.portal-page .portal-grid > .card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gp-gold);
}
.portal-page .portal-grid > .card:nth-child(2):before {
  background: #23936b;
}
.portal-page .portal-grid > .card:nth-child(3):before {
  background: #d28a40;
}
.portal-page .metric-label {
  color: #718096;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
}
.portal-page .metric,
.portal-page .balance {
  margin-top: 10px;
  color: var(--gp-navy);
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.6px;
  overflow-wrap: anywhere;
}
.portal-page .metric.positive { color: #167a58; }
.portal-page .balance { color: #b16d22; }
.portal-page .section {
  padding: 23px;
  margin: 17px 0;
  scroll-margin-top: 90px;
}
.portal-page .section h3,
.portal-page .portal-school h3 {
  margin: 0 0 15px;
  color: var(--gp-navy);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.25px;
}
.portal-page .section-head {
  gap: 12px;
  margin-bottom: 13px;
}
.portal-page .section-head .muted,
.portal-page .small {
  line-height: 1.6;
}
.portal-page .mchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px 5px 3px 0;
  padding: 9px 12px;
  border: 1px solid #e6dfd0;
  border-radius: 10px;
  color: #5c4a2b;
  background: #fcf8ef;
  font-size: 12px;
  font-weight: 750;
}
.portal-page .detail-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
}
.portal-page .detail-grid p {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  color: #526178;
  background: #f8fafd;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.portal-page .detail-grid p b {
  display: inline-block;
  margin-bottom: 3px;
  color: #7b8799;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .65px;
}
.portal-page .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
}
.portal-page .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.portal-page .table th {
  padding: 13px 14px;
  color: #53637a;
  background: #f3f6fa;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
.portal-page .table td {
  padding: 13px 14px;
  border-top: 1px solid #edf0f5;
  color: #34445c;
  vertical-align: middle;
}
.portal-page .table tbody tr:hover { background: #fafbfd; }
.portal-page .btn {
  min-height: 38px;
  border-radius: 10px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease;
}
.portal-page .btn:hover { transform: translateY(-1px); }
.portal-page .btn-primary {
  border: 1px solid var(--gp-navy);
  background: var(--gp-navy);
  box-shadow: 0 4px 10px rgba(16,35,63,.13);
}
.portal-page .btn-secondary {
  border: 1px solid #dce4ef;
  color: var(--gp-navy);
  background: #fff;
}
.portal-page .assessment-portal-card {
  padding: 18px;
  margin-top: 14px;
  border: 1px solid #e4eaf2;
  border-radius: 15px;
  background: #fbfcfe;
}
.portal-page .assessment-score {
  color: var(--gp-green);
  font-size: 25px;
  font-weight: 900;
}
.portal-page .pbar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf4;
}
.portal-page .pfill { border-radius: inherit; }
.portal-page .assessment-areas span {
  padding: 10px;
  border: 1px solid #e8edf3;
  border-radius: 9px;
  color: #526178;
  background: #f4f7fb;
  line-height: 1.5;
}
.portal-page .portal-school {
  padding: 23px;
  margin-top: 18px;
  background: linear-gradient(140deg,#fff,#f8fafd);
}
.portal-page .portal-school p {
  color: #526178;
  font-size: 12px;
  line-height: 1.75;
}
.portal-page .portal-school p b { color: var(--gp-navy); }
.portal-page .empty {
  padding: 25px;
  color: #78869a;
  text-align: center;
}
.portal-page .portal-anchor { scroll-margin-top: 88px; }

@media (min-width: 900px) {
  .portal-page .detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .portal-page { padding: 12px; }
  .portal-header {
    gap: 12px;
    padding: 3px 2px 16px;
  }
  .portal-header .school-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .portal-brand h1 { font-size: 16px; line-height: 1.35; }
  .portal-brand .kicker { font-size: 9px; letter-spacing: 1.5px; }
  .portal-brand .muted { font-size: 11px; }
  .portal-menu {
    top: 4px;
    gap: 4px;
    padding: 6px;
    border-radius: 13px;
  }
  .portal-menu-item { min-height: 39px; padding: 10px 11px; font-size: 11px; }
  .portal-menu .portal-menu-logout { margin-left: 0; }
  .portal-welcome {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 22px 19px;
    border-radius: 18px;
  }
  .portal-welcome h2 { font-size: 23px; overflow-wrap: anywhere; }
  .portal-welcome p { font-size: 12px; }
  .portal-student-id { align-self: stretch; }
  .portal-page .portal-profile-card { padding: 17px; }
  .portal-page .student-hero { align-items: flex-start; gap: 14px; }
  .portal-photo { width: 76px; height: 76px; }
  .portal-page .student-hero h2 { font-size: 17px; overflow-wrap: anywhere; }
  .portal-page .student-name-row { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .portal-page .portal-grid { grid-template-columns: 1fr; gap: 10px; }
  .portal-page .portal-grid > .card { padding: 16px 17px; }
  .portal-page .metric,
  .portal-page .balance { font-size: 23px; }
  .portal-page .section { padding: 17px; margin: 13px 0; }
  .portal-page .section h3,
  .portal-page .portal-school h3 { font-size: 16px; }
  .portal-page .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .portal-page .detail-grid p { padding: 12px; }
  .portal-page .assessment-areas { grid-template-columns: 1fr; }
  .portal-page .assessment-portal-card { padding: 13px; }
  .portal-page .section-head { align-items: flex-start; flex-wrap: wrap; }
  .portal-page .actions { gap: 9px; }
  .portal-page .actions .btn { max-width: 100%; white-space: normal; }
  .portal-page .portal-school { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-page *, .portal-page *:before, .portal-page *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* GP STUDENT PORTAL V73 — professional academy contact profile */
.portal-page .portal-school {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 0;
  border: 1px solid #dce3ee;
  border-radius: 20px;
  background: linear-gradient(145deg,#fff 0%,#f7f9fd 100%);
  box-shadow: 0 12px 32px rgba(16,35,63,.075);
}
.portal-page .school-profile-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px;
  color: #fff;
  background: linear-gradient(115deg,#101d38 0%,#1e3558 72%,#263e60 100%);
  border-bottom: 3px solid #c8a65d;
}
.portal-page .school-profile-logo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
.portal-page .school-profile-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-page .school-profile-title { min-width: 0; }
.portal-page .school-profile-eyebrow {
  margin-bottom: 6px;
  color: #e4c77f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.portal-page .school-profile-title h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(17px,2.5vw,23px);
  line-height: 1.35;
  font-weight: 800;
}
.portal-page .school-profile-subtitle {
  margin: 7px 0 0;
  color: #d8e1ef;
  font-size: 12px;
  line-height: 1.6;
}
.portal-page .school-profile-details {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  padding: 20px 22px;
}
.portal-page .school-profile-detail {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid #e4e9f1;
  border-radius: 13px;
  background: #fff;
}
.portal-page .school-profile-symbol {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f7f0df;
  color: #8b6b2d;
  font-size: 20px;
  font-weight: 800;
}
.portal-page .school-profile-label {
  display: block;
  margin: 2px 0 7px;
  color: #77849a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.portal-page .school-profile-detail p {
  margin: 0;
  color: #263650;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.portal-page .school-profile-detail a {
  color: #183d70;
  font-weight: 750;
  text-decoration: none;
}
.portal-page .school-profile-detail a:hover { text-decoration: underline; }
.portal-page .school-profile-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 13px 22px;
  border-top: 1px solid #e5eaf2;
  color: #748096;
  font-size: 11px;
}
.portal-page .school-profile-secure {
  color: #24654d;
  font-weight: 800;
}
@media(max-width:720px) {
  .portal-page .school-profile-heading { padding: 19px 16px; gap: 13px; }
  .portal-page .school-profile-logo { flex-basis: 61px; width: 61px; height: 61px; border-radius: 13px; }
  .portal-page .school-profile-details { grid-template-columns: 1fr; padding: 14px; gap: 9px; }
  .portal-page .school-profile-detail { padding: 12px; }
  .portal-page .school-profile-footer { padding: 13px 16px; }
}


/* EXPENSE REGISTER MOBILE FIX */
@media (max-width: 600px) {
  .expense-register-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .expense-register-table .table {
    width: 100%;
    min-width: 0;
    display: block;
    border-collapse: separate;
  }
  .expense-register-table .table thead {
    display: none;
  }
  .expense-register-table .table tbody {
    display: grid;
    gap: 10px;
  }
  .expense-register-table .table tbody tr[data-expense-search] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .expense-register-table .table tbody tr[data-expense-search] td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 10px;
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .expense-register-table .table tbody tr[data-expense-search] td::before {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(1)::before { content: "Date"; }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(2)::before { content: "Category"; }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(3)::before { content: "Description"; }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(4)::before { content: "Amount"; }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(5)::before { content: "Method"; }
  .expense-register-table .table tbody tr[data-expense-search] td:nth-child(6)::before { content: "Recorded by"; }
  .expense-register-table .table tbody tr:not([data-expense-search]) {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .expense-register-table .table tbody tr:not([data-expense-search]) td {
    display: block;
    padding: 12px;
    overflow-wrap: anywhere;
  }
}


/* Signature layout and legibility corrections (October 2026) */
.pr-company-mark{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-height:54px}
.pr-company-mark .pr-company-signature{width:108px;height:36px;max-width:100%;object-fit:contain;object-position:center;background:#fff}
.pr-company-mark .pr-stamp{width:54px;height:54px;object-fit:contain;flex:0 0 auto}
.pr-signature-placeholder,.signature-not-recorded{display:inline-block;color:#697386;font-size:10px;font-style:italic;font-weight:400}
.pf-office .company-signature-inline{display:inline-block;width:92px;height:32px;max-width:100%;object-fit:contain;object-position:left center;background:#fff;vertical-align:middle}
.pr-sign>div{min-width:0;break-inside:avoid}
@media print{.pr-company-mark{gap:5px}.pr-company-mark .pr-company-signature{width:96px;height:32px}.pr-company-mark .pr-stamp{width:48px;height:48px}}

/* Highlight unpaid training fees for management */
.dashboard-kpis .outstanding-alert {
  background: #b91c1c;
  border: 2px solid #991b1b;
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(185, 28, 28, 0.22);
}
.dashboard-kpis .outstanding-alert .metric-label,
.dashboard-kpis .outstanding-alert .metric,
.dashboard-kpis .outstanding-alert .metric-hint {
  color: #ffffff;
}


/* Student portal dashboard redesign V77 */
.portal-page .portal-wrap{
  width:100%;max-width:1440px;margin:auto;padding:24px;
  display:grid;grid-template-columns:245px minmax(0,1fr);
  gap:20px;align-items:start;box-sizing:border-box
}
.portal-page .portal-header{
  grid-column:1/-1;display:flex;align-items:center;gap:16px;
  padding:18px 22px;background:#fff;border:1px solid #e1e9e3;
  border-radius:16px;box-shadow:0 4px 18px #123d2d0d
}
.portal-page .portal-header .school-logo{width:72px;height:72px;object-fit:contain}
.portal-page .portal-brand h1,.portal-page #schoolInfoTitle{text-transform:uppercase}
.portal-page .portal-sidebar{
  grid-column:1;grid-row:2/span 20;position:sticky;top:14px;
  display:flex;flex-direction:column;gap:7px;padding:12px;
  background:#123d2d;border-radius:16px
}
.portal-page .portal-menu-item{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  width:100%;min-height:46px;padding:11px 13px;border:1px solid transparent;
  border-radius:9px;background:transparent;color:#f3faf5;
  text-align:left;font:inherit;font-weight:600;cursor:pointer
}
.portal-page .portal-menu-item:hover{background:#ffffff18}
.portal-page .portal-menu-item.active{background:#fff;color:#123d2d}
.portal-page .portal-menu-icon{width:24px;flex:0 0 24px;text-align:center;font-size:19px}
.portal-page .portal-menu-logout{margin-top:12px;border-top:1px solid #ffffff40}
.portal-page .portal-view{
  display:none!important;grid-column:2;min-width:0;width:100%;
  box-sizing:border-box;scroll-margin-top:20px
}
.portal-page .portal-view.is-active{display:block!important}
.portal-page .portal-welcome{
  padding:25px;border-radius:16px;
  background:linear-gradient(135deg,#123d2d,#24734f);
  color:white;box-shadow:0 6px 20px #123d2d1c
}
.portal-page .portal-welcome h2{color:white}
.portal-page .portal-welcome p,.portal-page .portal-welcome .muted{color:#e6f3e9}
.portal-page #portalProfileCard,.portal-page #portalSchoolInfo,
.portal-page #portalCertificates,.portal-page #portalDocuments,
.portal-page #portalDetails,.portal-page #portalPayments,
.portal-page #portalTraining{
  padding:20px;border:1px solid #e1e9e3;border-radius:15px;
  background:#fff;box-shadow:0 4px 18px #123d2d0b
}
@media(max-width:800px){
  .portal-page .portal-wrap{grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}
  .portal-page .portal-header{grid-column:1;padding:13px;gap:11px}
  .portal-page .portal-header .school-logo{width:56px;height:56px}
  .portal-page .portal-brand h1{font-size:1.1rem;overflow-wrap:anywhere}
  .portal-page .portal-sidebar{
    grid-column:1;grid-row:auto;position:sticky;top:0;z-index:20;
    flex-direction:row;overflow-x:auto;gap:5px;padding:8px;border-radius:11px
  }
  .portal-page .portal-menu-item{width:auto;min-width:max-content;min-height:40px;padding:9px 11px;font-size:.87rem}
  .portal-page .portal-menu-logout{margin-top:0;border-top:0;border-left:1px solid #ffffff40}
  .portal-page .portal-view{grid-column:1}
  .portal-page #portalProfileCard,.portal-page #portalSchoolInfo,
  .portal-page #portalCertificates,.portal-page #portalDocuments,
  .portal-page #portalDetails,.portal-page #portalPayments,
  .portal-page #portalTraining,.portal-page .portal-welcome{padding:14px}
}


/* DASHBOARD CARDS + LIVE INDICATOR (v78) */
.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-kpis .card.kpi{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:118px;padding:16px 16px 14px;border:1px solid #e3e9f0;border-left:4px solid var(--kc,#1b365b);border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(16,35,63,.05);transition:transform .15s,box-shadow .15s}
.dashboard-kpis .card.kpi:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,35,63,.09)}
.kpi-navy{--kc:#1b365b;--kb:#eaf0f8}.kpi-green{--kc:#13a568;--kb:#e7f7ef}.kpi-gold{--kc:#d4ad62;--kb:#fbf4e6}.kpi-amber{--kc:#e08a1e;--kb:#fff2df}.kpi-red{--kc:#c62828;--kb:#feecec}
.kpi-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.kpi-icon{flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--kb,#eaf0f8);color:var(--kc,#1b365b);font-weight:900;font-size:14px}
.dashboard-kpis .card.kpi .metric{font-size:clamp(18px,1.9vw,25px);margin-top:10px;color:#10233f;overflow-wrap:anywhere}
.dashboard-kpis .card.kpi .metric-label{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6b7a90}
.dashboard-kpis .card.kpi .metric-hint{margin-top:4px}
.dashboard-kpis .card.kpi.outstanding-alert{background:linear-gradient(135deg,#b71c1c,#d32f2f);border-left-color:#7f1010}
.dashboard-kpis .card.kpi.outstanding-alert .kpi-icon{background:rgba(255,255,255,.18);color:#fff}
.dashboard-kpis .card.kpi.outstanding-alert .metric,.dashboard-kpis .card.kpi.outstanding-alert .metric-label,.dashboard-kpis .card.kpi.outstanding-alert .metric-hint{color:#fff}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
  .dashboard-kpis{gap:9px}
  .dashboard-kpis .card.kpi{min-height:98px;padding:11px 11px 10px;border-radius:13px}
  .kpi-icon{width:24px;height:24px;border-radius:8px;font-size:11px}
  .dashboard-kpis .card.kpi .metric{font-size:16px;margin-top:6px}
  .dashboard-kpis .card.kpi .metric-label{font-size:9px}
}

.sys-live{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:3px 9px 3px 8px;border-radius:999px;background:#e7f7ef;border:1px solid #9fd8bc;color:#0b6b46!important;font-size:9px;font-weight:900;letter-spacing:.08em;vertical-align:middle;text-transform:uppercase}
.sys-live i{position:relative;width:8px;height:8px;border-radius:50%;background:#13a568;display:inline-block}
.sys-live i:after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid #13a568;opacity:.6;animation:sysLivePulse 1.8s ease-out infinite}
.sys-live.off{background:#f1f3f6;border-color:#cfd6df;color:#6b7280!important}
.sys-live.off i{background:#9aa3af}.sys-live.off i:after{display:none}
@keyframes sysLivePulse{0%{transform:scale(.6);opacity:.7}100%{transform:scale(1.7);opacity:0}}
@media(prefers-reduced-motion:reduce){.sys-live i:after{animation:none}}
@media(max-width:650px){.sys-live{margin-left:4px;padding:2px 6px;font-size:7.5px;gap:4px}.sys-live i{width:6px;height:6px}}


/* DEPOSITS PAGE (v79) */
.dashboard-kpis.cols-4{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.dashboard-kpis.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.dep-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:center;margin:16px 0 14px;padding:24px 26px;border-radius:20px;color:#fff;position:relative;overflow:hidden;background:linear-gradient(120deg,#10233f 0%,#18385f 70%,#24466a 100%);box-shadow:0 14px 30px rgba(16,35,63,.16)}
.dep-hero:after{content:"";position:absolute;width:230px;height:230px;right:-60px;top:-110px;border:1px solid rgba(212,173,98,.35);border-radius:50%;box-shadow:0 0 0 24px rgba(212,173,98,.045);pointer-events:none}
.dep-hero>*{position:relative;z-index:1}
.dep-hero-label{font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#e3c98f}
.dep-hero-amount{font-size:clamp(26px,4vw,38px);font-weight:850;letter-spacing:-.5px;margin:6px 0 4px;color:#fff;overflow-wrap:anywhere}
.dep-hero-sub{font-size:12.5px;color:#d9e3f0}
.dep-hero-progress{padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(226,201,143,.35)}
.dep-progress-top{display:flex;justify-content:space-between;font-size:12px;color:#d9e3f0;margin-bottom:9px}
.dep-progress-top b{color:#fff;font-size:15px}
.dep-bar{height:9px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
.dep-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#13a568,#6fdcae)}
.dep-progress-foot{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#c9d6e6;margin-top:9px;flex-wrap:wrap}
.deposit-position-title{margin:6px 2px 12px}
@media(max-width:1100px){.dashboard-kpis.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-kpis.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-kpis.cols-3 .card:last-child{grid-column:span 2}}
@media(max-width:760px){.dep-hero{grid-template-columns:1fr;padding:18px;gap:14px}}


/* REPORTS / EXPENSES / CERTIFICATES (v80) */
.rep-cards.grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;margin:14px 0 18px}
.rep-cards .card.kpi{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:104px;padding:14px 15px;border:1px solid #e3e9f0;border-left:4px solid var(--kc,#1b365b);border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(16,35,63,.05)}
.rep-cards .card.kpi .metric{font-size:clamp(17px,1.6vw,22px);margin-top:8px;color:#10233f;overflow-wrap:anywhere}
.rep-cards .card.kpi .metric-label{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6b7a90}
.rep-tabs{display:flex;gap:4px;padding:5px;margin:8px 0 14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px rgba(16,35,63,.04)}
.rep-tabs button{border:0;background:transparent;color:#526178;border-radius:10px;padding:9px 14px;font-size:12.5px;font-weight:750;white-space:nowrap}
.rep-tabs button:hover{background:#eef2f8;color:#10233f}
.rep-tabs button.active{background:#10233f;color:#fff;box-shadow:0 5px 13px rgba(16,35,63,.2)}
.rep-filter.card{border-radius:16px;border:1px solid #e3e9f0;box-shadow:0 4px 14px rgba(16,35,63,.04)}
.rep-presets button{border:1px solid #dfe6ee;background:#f7f9fc;border-radius:999px;color:#34445c}
.rep-presets button.active{background:#10233f;border-color:#10233f;color:#fff}
.rep-dates{display:flex;gap:12px;flex-wrap:wrap}
.rep-dates .field{flex:0 1 210px}
.rep-sections.rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.rep-block{min-width:0}
.rep-sec{margin:18px 0 8px;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#9a7838}
.rep-grid .rep-sec{margin-top:6px}
.rep-table,.cert-table,.expense-register-table .table{border-collapse:separate;border-spacing:0}
.rep-block .table-wrap,.cert-table,.expense-register-table{border-radius:14px}
:is(.rep-table,.cert-table,.expense-register-table .table) thead th{background:#f4f7fb;color:#5b6b82;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid #e3e9f0}
:is(.rep-table,.cert-table,.expense-register-table .table) tbody tr:nth-child(even){background:#fafbfd}
:is(.rep-table,.cert-table,.expense-register-table .table) tbody tr:hover{background:#f1f6fb}
.rep-table tfoot td{background:#10233f;color:#fff;font-weight:800}
.rep-table td.num,.rep-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.cert-fee-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-left:4px solid #d4ad62}
.cert-fee-card h3{margin:0 0 3px}.cert-fee-card p{margin:0}.cert-fee-line{margin-top:8px!important}
.cert-actions{white-space:nowrap}.cert-actions .btn{padding:7px 11px;font-size:12px}
.cert-kpis,.exp-kpis{margin-bottom:16px}
@media(max-width:700px){.rep-tabs{overflow-x:auto}.rep-dates .field{flex:1 1 140px}.cert-actions{white-space:normal}}
@media(max-width:560px){.rep-cards.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rep-cards .card.kpi{min-height:88px;padding:10px 11px}.rep-cards .card.kpi .metric{font-size:15px}.rep-cards .card.kpi .metric-label{font-size:9px}.rep-cards .kpi-icon{width:22px;height:22px;font-size:10px}}
.rep-sections.rep-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr))}
.cert-kpis~.card{margin-bottom:14px}
.cert-kpis~.card .section-head{margin-bottom:10px}
.rep-grid .rep-table,.rep-grid .table-wrap .table{min-width:0!important;width:100%}
.rep-grid .rep-table th,.rep-grid .rep-table td{padding-left:12px;padding-right:12px}

/* HANDOVER WELCOME + VICTORY (v83) */
.welcome-note{background:linear-gradient(135deg,#10233f,#1b3a66);color:#fff;border-radius:16px;padding:18px 18px 16px;margin:0 0 18px;text-align:center;border:1px solid #d4ad62;box-shadow:0 8px 22px rgba(16,35,63,.18)}
.welcome-note .wn-spark{font-size:22px}
.welcome-note b{display:block;color:#f3dfa6;font-size:16px;margin:2px 0 6px}
.welcome-note p{margin:0;font-size:13px;line-height:1.55;color:#e6ecf5}
.victory{position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at 50% 0,#1b3a66,#0a1730 70%);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;animation:vfade .5s ease}
.victory-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.victory-confetti i{position:absolute;top:-14px;width:8px;height:14px;border-radius:2px;opacity:.9;animation:vfall 5s linear infinite}
.victory-card{position:relative;max-width:480px;width:100%;background:#fff;border-radius:22px;padding:26px 22px;text-align:center;border-top:6px solid #d4ad62;box-shadow:0 24px 60px rgba(0,0,0,.4);animation:vpop .6s cubic-bezier(.2,1.3,.4,1)}
.victory-trophy{font-size:54px;line-height:1}
.victory-kicker{margin-top:8px;font-size:11px;letter-spacing:.18em;font-weight:800;color:#b8923f}
.victory-card h2{margin:6px 0 4px;font-size:25px;color:#10233f}
.victory-lead{font-weight:700;color:#10233f;margin:0 0 8px}
.victory-card p{font-size:14px;line-height:1.6;color:#4a5a6e;margin:0 0 10px}
.victory-wish{background:#fbf5e6;border:1px solid #ecd9a6;color:#6b5522;border-radius:12px;padding:12px;font-size:14px;font-weight:600;line-height:1.5;margin:12px 0}
.victory-dev{margin:14px 0 18px;padding-top:14px;border-top:1px dashed #d5dbe5}
.victory-dev span{display:block;font-size:12px;color:#7a8799}
.victory-dev b{display:block;font-size:18px;color:#10233f;margin:2px 0}
.victory-dev a{color:#0b7a4b;font-weight:700;text-decoration:none}
@keyframes vfall{to{transform:translateY(110vh) rotate(540deg)}}
@keyframes vpop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
@keyframes vfade{from{opacity:0}to{opacity:1}}

/* STUDENTS PAGE (v84) */
.stu-kpis{margin-bottom:14px}
.stu-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px}
.stu-tools input{flex:1 1 260px;min-width:0;border-radius:999px;padding:10px 16px}
.stu-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid #d6dde8;background:#fff;color:#10233f;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer}
.chip.on{background:#10233f;color:#f3dfa6;border-color:#10233f}
.stu-av{position:relative;flex:0 0 auto;width:44px;height:44px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#10233f,#1f4a7a);color:#f3dfa6;display:inline-flex;align-items:center;justify-content:center;border:2px solid #d4ad62;box-shadow:0 2px 6px rgba(16,35,63,.2)}
.stu-av em{font-style:normal;font-weight:800;font-size:15px}
.stu-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.stu-av.lg{width:56px;height:56px}
.stu-id{display:flex;align-items:center;gap:12px}
.stu-table tbody tr:hover{background:#f7f9fc}
.stu-cards{flex-direction:column;gap:12px}
.stu-card{background:#fff;border:1px solid #e3e8f0;border-radius:16px;padding:14px;box-shadow:0 2px 8px rgba(16,35,63,.06);cursor:pointer}
.stu-card-top{display:flex;align-items:center;gap:12px}
.stu-card-name{flex:1;min-width:0;display:flex;flex-direction:column}
.stu-card-name b{font-size:15px;color:#10233f}
.stu-card-name span{font-size:12px;color:#6b7788}
.stu-card-money{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed #dde3ec}
.stu-card-money small{display:block;font-size:11px;color:#8a95a5}
.stu-card-money b{font-size:13px;color:#10233f}

/* PAYMENTS PAGE (v85) */
.pay-amt{color:#0b7a4b;font-weight:800;white-space:nowrap}
.pm{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:700}
.pm-cash{background:#e6f6ee;color:#0b7a4b}.pm-momo{background:#fff4d6;color:#8a6410}.pm-bank{background:#e4edfb;color:#1f4a8a}
.pay-foot{grid-template-columns:auto 1fr auto;align-items:center}
.pay-foot .btn{padding:7px 10px;font-size:12px}

/* DRIVING ANIMATION (v86) */
.topbar .drive-road{position:relative;flex:1 1 120px;min-width:0;height:58px;overflow:hidden;align-self:flex-end}
.dr-line{position:absolute;left:0;right:0;bottom:5px;height:5px;border-radius:3px;background:#2b3442;box-shadow:0 1px 0 rgba(255,255,255,.4)}
.dr-line::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,#f3dfa6 0 14px,transparent 14px 30px);height:1.5px;top:1.8px;animation:dr-dash .5s linear infinite}
.dr-car-wrap{position:absolute;bottom:2px;left:0;width:84px;animation:dr-drive 7s linear infinite}
.dr-car{width:100%;display:block;animation:dr-bob .45s ease-in-out infinite}
.dr-wheel{animation:dr-spin .5s linear infinite}
.dr-head{animation:dr-nod 1.6s ease-in-out infinite}.dr-head.d2{animation-delay:.5s}
@keyframes dr-drive{0%{left:0;opacity:0}6%{opacity:1}88%{opacity:1}100%{left:calc(100% - 84px);opacity:0}}
@keyframes dr-dash{to{background-position:-30px 0}}
@keyframes dr-spin{to{transform:rotate(360deg)}}
@keyframes dr-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.2px)}}
@keyframes dr-nod{0%,100%{transform:translateY(0)}50%{transform:translateY(.8px)}}
@media(max-width:760px){.topbar{flex-wrap:wrap}.topbar .drive-road{order:3;flex:1 1 100%;height:50px}.dr-car-wrap{width:70px}@keyframes dr-drive{0%{left:0;opacity:0}6%{opacity:1}88%{opacity:1}100%{left:calc(100% - 70px);opacity:0}}}
@media(prefers-reduced-motion:reduce){.dr-car-wrap,.dr-car,.dr-wheel,.dr-head,.dr-line::after{animation:none}.dr-car-wrap{left:40%}}

/* ASSESSMENTS (v87) */
.as-score{min-width:110px}.as-score b{font-size:15px;color:#10233f}.as-score small{font-size:11px;color:#8a95a5;font-weight:600}
.as-bar{height:7px;border-radius:99px;background:#e8edf4;overflow:hidden;margin-top:4px}
.as-bar i{display:block;height:100%;border-radius:99px}
.t-green{background:#12a66a}.t-blue{background:#2f6fd0}.t-gold{background:#d4a017}.t-red{background:#d64545}
.as-sess{display:inline-block;background:#eef2f8;color:#10233f;font-weight:700;font-size:12px;padding:3px 10px;border-radius:99px}
.as-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px dashed #dde3ec}
.as-card-foot .as-score{flex:1}
.as-head{display:flex;align-items:center;gap:12px}
.as-hero{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#f6f9fd,#fbf6e6);border:1px solid #e3e8f0;border-radius:16px;padding:16px;margin:6px 0 14px;flex-wrap:wrap}
.as-ring{--c:#12a66a;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p)*1%),#e3e8f0 0);position:relative;flex:0 0 auto}
.as-ring.t-green{--c:#12a66a}.as-ring.t-blue{--c:#2f6fd0}.as-ring.t-gold{--c:#d4a017}.as-ring.t-red{--c:#d64545}
.as-ring{background-color:transparent}
.as-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff}
.as-ring span{position:relative;text-align:center;line-height:1}.as-ring b{font-size:26px;color:#10233f}.as-ring small{display:block;font-size:11px;color:#8a95a5;margin-top:2px}
.as-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;flex:1;min-width:200px}
.as-facts small{display:block;font-size:11px;color:#8a95a5;text-transform:uppercase;letter-spacing:.05em}.as-facts b{font-size:14px;color:#10233f}
.as-list{display:grid;gap:10px;margin-bottom:14px}
.as-item{background:#fff;border:1px solid #e8edf4;border-radius:12px;padding:10px 12px}
.as-item-top{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:#10233f}
.as-item em{display:block;font-size:12px;color:#6b7788;margin-top:6px;font-style:normal}
.as-notes{display:grid;gap:10px}
.as-note{border-radius:12px;padding:12px 14px;border:1px solid}
.as-note b{font-size:13px}.as-note p{margin:6px 0 0;font-size:13px;line-height:1.5;color:#33415a;white-space:pre-wrap}
.as-note.ok{background:#eaf7f0;border-color:#bfe6d1}.as-note.warn{background:#fff6e3;border-color:#f0dba5}.as-note.info{background:#eaf1fc;border-color:#c5d8f4}

/* PEOPLE PAGES: employees / instructors / staff (v88) */
.rb{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2f8;color:#10233f}
.rb-ceo{background:#fff1cc;color:#7a5a08}.rb-manager{background:#e4edfb;color:#1f4a8a}.rb-front{background:#e3f6f1;color:#0b6b57}.rb-role{background:#eef2f8;color:#33415a}
.stu-table td .actions,.stu-card .actions{display:flex;gap:8px;flex-wrap:wrap}
.stu-table td a,.stu-card a{color:#1f4a8a;font-weight:600;text-decoration:none}
.handover-card{display:flex;gap:16px;align-items:flex-start;background:linear-gradient(135deg,#fff9ef,#fff3f3);border:1px solid #f0d9b5}
.handover-card .hz-icon{font-size:34px;line-height:1}
.handover-card h3{margin:0 0 6px;color:#8a3b12}
.handover-card .hz-body{flex:1;min-width:0}
.handover-card .actions{margin-top:12px}
.stu-tools+.section{margin-top:12px}

/* Reset dialog: keep the confirm box and button always visible (v89) */
.reset-foot{position:sticky;bottom:-20px;background:#fff;padding:12px 0 6px;margin-top:10px;border-top:1px solid #e3e8f0;z-index:2}
.reset-opt{padding:8px 12px;margin-bottom:6px}

/* v90 payroll */
.pr-month{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.pr-month b{min-width:130px;text-align:center;white-space:nowrap}
.pr-month .btn{width:auto;padding:8px 14px}
