:root{font-family:system-ui,-apple-system,"Noto Sans Devanagari",sans-serif;color:#14333c;background:#f4f7f5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:9px;padding:10px 14px;background:#126c71;color:white;cursor:pointer}button:disabled{opacity:.45;cursor:default}input,select,textarea{border:1px solid #b9c8c6;border-radius:8px;padding:10px;max-width:100%;background:white}textarea{min-height:85px}.login{max-width:440px;margin:8vh auto;background:white;border:1px solid #d6e2de;border-radius:16px;padding:32px;box-shadow:0 10px 40px #174c4910}.login form,.form{display:grid;gap:12px}.login input,.form input,.form select,.form textarea{width:100%}.wrap{max-width:1180px;margin:auto;padding:16px}.top{background:#123e45;color:#fff;padding:15px 20px}.top .inner{max-width:1180px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:8px}.top b{font-size:20px}.top small{display:block;opacity:.78}.top button{background:#e7f2ef;color:#123e45}nav{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}nav button{background:white;color:#123e45;border:1px solid #ccd9d5}nav button.selected{background:#126c71;color:white}main{background:white;border-radius:16px;padding:20px;min-height:350px;border:1px solid #dce5e1}h1,h2,h3{margin:8px 0 15px}p{line-height:1.5}.sub{color:#5a7474}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px}.card{background:#f0f7f4;border:1px solid #dce8e1;border-radius:12px;padding:17px}.card b{font-size:28px;display:block}.card small{color:#50706d}.tablebox{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid #dfe9e5;padding:12px;text-align:left}th{background:#f0f7f4}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}.panel{padding:16px;border:1px solid #dce6e1;border-radius:12px;margin:14px 0}.check{display:flex;align-items:flex-start;gap:9px;margin:12px 0}.check input{margin-top:5px}.stack{display:grid;gap:12px}.stack>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eee;padding:7px 0}.message{padding:12px;background:#e7f6ef;margin:12px 0;border-radius:8px}.error{background:#ffebeb;color:#9d2323;padding:10px;border-radius:8px}.empty{color:#728681}footer{font-size:12px;color:#617a75;margin:14px 0}.small{font-size:13px}.pill{border-radius:20px;background:#deefe9;padding:5px 12px;color:#18534d;font-size:12px}@media(max-width:620px){.top b{font-size:15px}main{padding:12px}nav button{padding:8px 10px}.wrap{padding:10px}.stack>div{align-items:flex-start;flex-direction:column}}
/* Colourful school interface */
:root{background:#f1f5fc}
body{background:linear-gradient(135deg,#eef8ff 0%,#f3f5ff 44%,#fff7ee 100%);min-height:100vh}
.top{background:linear-gradient(105deg,#154b82,#158a82,#7b4cc0)}
main{box-shadow:0 15px 35px rgba(45,69,105,.09);border:1px solid #dbe3f4}
nav button{box-shadow:0 2px 9px #d2dced50;border-color:#d2dfed}
nav button.selected{background:linear-gradient(100deg,#106cc2,#087c93);color:white;border-color:transparent}
button{background:linear-gradient(110deg,#1474c3,#0b8d88)}
.pill{background:#dfecff;color:#19518a}
.card:nth-child(4n+1){background:#e7f3ff;border-color:#b9dafa}
.card:nth-child(4n+2){background:#e7f8ee;border-color:#c3ebcf}
.card:nth-child(4n+3){background:#fff1e2;border-color:#f8d6ae}
.card:nth-child(4n+4){background:#f4ecff;border-color:#d8c4fa}
.panel:nth-of-type(4n+1){background:#f4f9ff}
.panel:nth-of-type(4n+2){background:#f3fff8}
.panel:nth-of-type(4n+3){background:#fffbf1}
.panel:nth-of-type(4n+4){background:#faf5ff}
th{background:#e9f1fe;color:#174f88}
tr:nth-child(even) td{background:#fafcff}
.absence-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 10px;border-bottom:1px solid #dbe9f1;cursor:pointer}
.absence-row:nth-child(even){background:#f9fbff}
.absence-row input{width:21px;height:21px;vertical-align:middle;accent-color:#dc364f}
.absence-row:has(input:checked){background:#ffe9ed;color:#a92b44;border-radius:8px}
.toolbar{row-gap:14px}
.toolbar input{max-width:150px}
.marks{width:110px}
#exportData{background:linear-gradient(110deg,#8655bb,#bd578f)}

/* Vivid but readable colour system for tabs, labels and actions */
nav button{font-weight:750;border:2px solid transparent;color:#fff;transition:transform .13s ease,box-shadow .13s ease;box-shadow:0 4px 12px #29496822}
nav button:nth-child(1){background:#1768c9}
nav button:nth-child(2){background:#009688}
nav button:nth-child(3){background:#dd6531}
nav button:nth-child(4){background:#7448c2}
nav button:nth-child(5){background:#bd3a79}
nav button:nth-child(6){background:#34748d}
nav button:nth-child(7){background:#946013}
nav button:nth-child(8){background:#4d589f}
nav button:hover{filter:brightness(1.08);transform:translateY(-2px)}
nav button.selected{outline:3px solid #203e55;outline-offset:2px;box-shadow:0 5px 15px #244e6e44}
nav button:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f4af28;outline-offset:2px}
main h2{color:#185aa6}main h3{color:#8736a1}
.toolbar>strong{background:#dcecff;color:#124c93;padding:9px 14px;border-radius:10px;border-left:5px solid #2772d1}
label{font-weight:600;color:#28517d}
.toolbar label{background:#e8f5ff;padding:8px 12px;border-radius:10px}
.panel>h3{background:linear-gradient(90deg,#e2e9ff,#f2e7ff);padding:10px 12px;border-radius:9px;color:#6b2e9d}
input:not([type="checkbox"]),select,textarea{border:2px solid #b6cde8;background:#fbfdff}
input:not([type="checkbox"]):focus,select:focus,textarea:focus{border-color:#2a7bc9}
button:not(nav button):not(.top button){font-weight:750;box-shadow:0 3px 10px #1c61732b}
#saveAttendance{background:linear-gradient(110deg,#008b77,#1ca85f)}
#saveMarks{background:linear-gradient(110deg,#cc4780,#8b51ce)}
#exportData{background:linear-gradient(110deg,#a343c8,#b23c82)}
button[data-action="approved"]{background:#16834d}
button[data-action="changes_requested"]{background:#bb6222}
#add button{background:linear-gradient(100deg,#1766ce,#00a390)}
.pill{background:#d4edff;color:#105184;font-weight:750;border:1px solid #b0d6f6}
.message{background:#e2faeb;color:#135f3d;border-left:5px solid #15935e}
.error{border-left:5px solid #bf3045}
.absence-row span:last-child{color:#b42c47;font-weight:750}
#reportPreview .card b{color:#155793}
@media(max-width:700px){nav{gap:8px}nav button{font-size:13px}.toolbar label{width:100%}}

/* Large, accessible hosteller tick option */
.hosteller-choice{display:flex;align-items:center;gap:16px;min-height:78px;padding:16px 20px;border:3px solid #76b5d7;border-radius:15px;background:#e5f5ff;cursor:pointer;user-select:none;color:#114b77}
.hosteller-choice:hover{background:#d6efff;border-color:#2981bc}
.hosteller-choice:has(input:checked){background:#dbf9e6;border-color:#218c55;color:#17613b}
.hosteller-choice input[type="checkbox"]{appearance:auto;accent-color:#0b9c59;width:32px;height:32px;min-width:32px;min-height:32px;cursor:pointer;flex:none}
.hosteller-choice .hosteller-label{display:flex;flex-direction:column;gap:4px}
.hosteller-choice strong{font-size:19px}
.hosteller-choice small{font-size:13px;font-weight:500}

/* Homework and detailed monthly student reviews */
.report-table{min-width:1180px}
.report-table th{white-space:nowrap;background:#dce9ff;color:#174c82}
.report-table td{vertical-align:top;min-width:110px}
.report-table td:nth-child(1){position:sticky;left:0;background:#f9fbff;z-index:1;min-width:150px}
.report-table td:nth-child(2){min-width:200px;white-space:normal;font-size:13px;line-height:1.7}
.report-table select{min-width:125px;padding:8px}
.report-table textarea{min-width:170px;min-height:75px;font-size:13px}
#hwArea th{background:#e5dbff;color:#583587}
#hwArea input[type="checkbox"]{width:24px;height:24px;accent-color:#218c55;cursor:pointer}
#hwArea select{min-width:170px}
#hwArea tr:has(.hwStatus option[value="not_submitted"]:checked){background:#fff3ee}
#saveReviews{background:linear-gradient(110deg,#3f7bc9,#7f54bc)}
#exportMonthly{background:linear-gradient(110deg,#208a81,#38a66d)}
#reportGrid>.cards{margin:12px 0 22px}
@media(max-width:650px){.report-table{min-width:1120px}#hwArea .tablebox{overflow-x:auto}}

/* Center Gurukulam heading while keeping sign-out on the right */
.top .inner{position:relative;display:flex;align-items:center;justify-content:center;min-height:72px;padding:10px 100px}
.top .school-heading{text-align:center;max-width:100%}
.top .school-heading b{font-size:clamp(19px,2.8vw,29px);display:block;line-height:1.35;letter-spacing:.015em}
.top .school-heading small{display:block;text-align:center}
.top .inner>#logout{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
.login h2{text-align:center;font-size:24px}
@media(max-width:620px){.top .inner{padding:12px 2px 58px;min-height:120px}.top .school-heading b{font-size:20px}.top .inner>#logout{right:6px;top:auto;bottom:5px;transform:none}.top .school-heading{width:100%}}

/* Weekly exception-based homework register */
.weekly-table{min-width:760px}
.weekly-table th{background:#e9e2ff;color:#533687}
.weekly-table td{vertical-align:middle}
.issue-check{display:flex;gap:10px;align-items:center;cursor:pointer;border:2px solid #d4ddea;background:#f5f8fc;border-radius:10px;padding:9px 13px;font-weight:750;white-space:nowrap}
.issue-check:has(input:checked){background:#ffe5e9;border-color:#dc5373;color:#9a2745}
.issue-check input{height:25px;width:25px;min-width:25px;accent-color:#db3557;cursor:pointer}
#hwPeriod{background:#e7f1ff;border-left:6px solid #346eca;color:#184d87}
#hwPeriod strong{font-size:20px}
#hwPeriod p{margin:5px 0}
#saveWeekly{background:linear-gradient(110deg,#068d84,#3877c8)}

/* Every test in the monthly report remains visible as an independent assessment */
.complete-test-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.complete-test-table th{min-width:165px;max-width:240px;white-space:normal;vertical-align:bottom;background:#dde9ff;color:#134779;border-bottom:2px solid #a7c5ee}
.complete-test-table td{min-width:125px;text-align:center;white-space:nowrap}
.complete-test-table th:first-child,.complete-test-table td:first-child{position:sticky;left:0;z-index:2;min-width:180px;max-width:200px;text-align:left;background:#f0f7ff;border-right:2px solid #b6cdea}
.complete-test-table th:first-child{z-index:3;background:#c9ddfa}
#exportTestMatrix{margin:14px 0;background:linear-gradient(110deg,#206fc0,#7954b2)}

.demo-banner{padding:14px 17px;margin:12px 0 22px;border:2px solid #ecb54d;border-radius:12px;background:#fff4d8;color:#795011;font-weight:500}
.demo-banner b{color:#a25012}
.demo-pill{display:inline-block;border:1px solid #dea739;padding:3px 7px;background:#fff0c3;border-radius:30px;color:#89500b;font-size:11px}
.progress-track{width:95px;max-width:100%;height:9px;background:#e2e8f0;border-radius:20px;overflow:hidden;display:inline-block;margin-right:8px}
.progress-fill{height:100%;border-radius:20px}

/* Both statuses visible; only negative action is editable */
.binary-status{display:inline-flex;gap:12px;align-items:center;flex-wrap:wrap}
.positive-status{display:inline-flex;align-items:center;background:#d8f8e5;color:#12603b;border:2px solid #5fbd85;border-radius:10px;padding:8px 12px;font-weight:750;white-space:nowrap}
.binary-status.has-issue .positive-status{background:#edf0f2;color:#7b868c;border-color:#d3dbe0;text-decoration:line-through}
.negative-choice{display:inline-flex;align-items:center;gap:8px;border:2px solid #eca7b3;background:#fff2f4;color:#9f3347;padding:8px 12px;border-radius:10px;font-weight:750;cursor:pointer}
.negative-choice:has(input:checked),.binary-status.has-issue .issue-check{background:#ffe0e7;color:#9e1735;border-color:#db5870}
.negative-choice input{width:24px;height:24px;min-width:24px;accent-color:#d63c57;cursor:pointer}
.weekly-table .binary-status{flex-wrap:nowrap}
@media(max-width:760px){.weekly-table .binary-status{flex-wrap:wrap}.binary-status{gap:7px}}

/* Principal: all classes on a single read-only page */
.all-class-section{padding:18px;margin:22px 0;border:1px solid #cbd9e6;border-radius:15px;background:#fff;box-shadow:0 3px 12px #143d6010}
.all-class-section h3{margin:0 0 14px;padding:10px 14px;background:#e7f1fc;border-left:5px solid #257ac0;border-radius:7px;color:#154b7b}
.all-class-section .tablebox{max-width:100%;overflow-x:auto}
.all-class-section table{min-width:max-content}
.all-class-section th:first-child,.all-class-section td:first-child{position:sticky;left:0;background:#edf5ff;z-index:1}
.all-class-section thead th{background:#dbe9f8;white-space:nowrap}
.all-class-section .pill{font-size:12px;font-weight:500}

/* App-shell design: works in installed Android APK and mobile browsers */
.nav-symbol{display:none}
@media(max-width:760px){
 :root{color:#1d3046;background:#f3f6fb}
 body{background:#f3f6fb;min-height:100dvh}
 .top{position:sticky;top:0;z-index:40;background:#ffffff!important;color:#173a63!important;padding:0!important;box-shadow:0 2px 16px #12284512;border-bottom:1px solid #e4eaf2}
 .top .inner{padding:13px 14px 13px!important;min-height:74px!important;display:flex;justify-content:flex-start;gap:10px}
 .top .school-heading{width:auto!important;flex:1;min-width:0;text-align:left}
 .top .school-heading b{font-size:19px!important;line-height:1.25;text-align:left;color:#16436d}
 .top .school-heading small{text-align:left;font-size:11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#507393;opacity:1}
 .top .inner>#logout{position:static!important;transform:none!important;flex:none;padding:9px 11px;font-size:12px;border-radius:12px;background:#eaf1fb;color:#1c568a}
 .wrap{padding:14px 12px calc(102px + env(safe-area-inset-bottom))!important;max-width:100%}
 .wrap>nav{position:fixed;bottom:0;left:0;right:0;z-index:60;display:flex;gap:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0;padding:9px 5px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce5f1;box-shadow:0 -5px 24px #0f305118;justify-content:space-around}
 .wrap>nav::-webkit-scrollbar{display:none}
 .wrap>nav button,.wrap>nav button:nth-child(n){background:transparent!important;color:#72839a!important;box-shadow:none!important;border:none!important;outline:0!important;border-radius:14px;min-width:70px;min-height:60px;padding:6px 8px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;white-space:nowrap;flex-shrink:0;transform:none}
 .wrap>nav button.selected,.wrap>nav button.selected:nth-child(n){background:#eaf2ff!important;color:#1764bb!important}
 .wrap>nav .nav-symbol{display:block;font-size:24px;line-height:25px;font-weight:800}
 .wrap>nav .nav-label{font-size:10px;line-height:13px;font-weight:700}
 main{border:0!important;border-radius:20px!important;padding:15px 13px!important;box-shadow:0 5px 24px #1d487810!important;min-height:60vh}
 main h2{font-size:21px!important;letter-spacing:-.02em;margin:4px 0 14px}
 main h3{font-size:17px}
 .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .card{border-radius:18px!important;padding:17px 13px!important;min-height:103px;box-shadow:0 4px 10px #204b6a08}
 .card b{font-size:27px!important}
 .card small{font-size:11px!important;line-height:1.3}
 .toolbar{display:flex;align-items:stretch;gap:10px;margin:0 0 15px}
 .toolbar>strong{width:100%;padding:7px 11px;font-size:15px}
 .toolbar label{flex:1;min-width:135px;padding:9px}
 .toolbar input,.toolbar select{min-width:0;width:100%;max-width:none}
 .panel{border-radius:18px!important;padding:15px 12px!important;margin:12px 0}
 input:not([type=checkbox]),select,textarea{min-height:46px;border-radius:11px!important;font-size:16px}
 button{min-height:44px;border-radius:12px;font-weight:700}
 .form{gap:11px}
 .tablebox{max-width:100%;overflow-x:auto;border:1px solid #e1e8f2;border-radius:12px}
 .tablebox table{font-size:12px;min-width:max-content}
 .tablebox th,.tablebox td{padding:11px 10px}
 footer{display:none}
 .login{margin:9vh 12px;padding:28px 20px;border-radius:24px}
 .all-class-section{padding:12px 10px;margin:15px 0}
}

/* Keep Monthly Reports visible without sideways scrolling in Android */
@media(max-width:760px){
 .wrap>nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:58px;overflow:visible!important;gap:2px!important;padding:5px 5px calc(6px + env(safe-area-inset-bottom))!important}
 .wrap:has(nav button[data-view="admin"])>nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .wrap>nav button,.wrap>nav button:nth-child(n){min-width:0!important;width:100%!important;min-height:55px!important;padding:3px 2px!important}
 .wrap>nav .nav-symbol{font-size:20px!important;line-height:21px!important}
 .wrap>nav .nav-label{font-size:10px!important}
 .wrap{padding-bottom:calc(160px + env(safe-area-inset-bottom))!important}
}

/* Simple rotating launch indicator while the application initializes */
.launch-loading{min-height:100dvh;display:flex;align-items:center;justify-content:center;background:#f3f6fb}
.launch-spinner{width:58px;height:58px;border:5px solid #dce9f7;border-top-color:#1466aa;border-right-color:#178d88;border-radius:50%;animation:gurukulam-spin .85s linear infinite}
@keyframes gurukulam-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.launch-spinner{animation-duration:2s}}
@supports(padding-top:env(safe-area-inset-top)){
 .top{padding-top:max(15px,env(safe-area-inset-top))}
}

/* Android bottom navigation: exactly one row, swipe for remaining menu items */
@media(max-width:760px){
 .wrap>nav,.wrap:has(nav button[data-view="admin"])>nav{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  gap:3px!important;
  grid-template-columns:none!important;
  grid-auto-rows:auto!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  padding:7px 7px calc(8px + env(safe-area-inset-bottom))!important;
 }
 .wrap>nav button,.wrap>nav button:nth-child(n){
  flex:0 0 74px!important;
  width:74px!important;
  min-width:74px!important;
  max-width:74px!important;
  min-height:58px!important;
  scroll-snap-align:start;
 }
 .wrap{padding-bottom:calc(94px + env(safe-area-inset-bottom))!important}
}

/* Final header: safely below Android status bar; separate school colors */
@media(max-width:760px){
 .top{background:linear-gradient(110deg,#fff4dc 0%,#e8f4ff 55%,#efeaff 100%)!important;color:#123f73!important;border-bottom:2px solid #c9dff3!important;box-shadow:0 3px 14px #244a771b!important;padding-top:0!important}
 .top .inner{padding:18px 14px 16px!important;min-height:90px!important;align-items:center!important}
 .top .school-heading b{color:#154a8c!important;font-weight:800;font-size:19px!important}
 .top .school-heading small{color:#446b92!important}
 .top .inner>#logout{background:#ffe4df!important;border:1px solid #f3bdaf!important;color:#932f27!important;font-weight:800!important}
}

/* Black app header with system-status-bar clearance */
.top,.top .inner{background:#050505!important;color:#fff!important}
.top .school-heading b,.top b{color:#fff!important}
.top .school-heading small,.top small{color:#e6e6e6!important}
.top .inner>#logout{background:#303030!important;color:#fff!important;border:1px solid #676767!important}
@media(max-width:760px){
 .top{background:#050505!important;color:#fff!important;border-bottom:2px solid #333!important;box-shadow:0 3px 12px #0002!important}
 .top .inner{background:#050505!important;padding:16px 14px!important;min-height:80px!important}
 .top .school-heading b{color:#fff!important}
 .top .school-heading small{color:#ddd!important}
 .top .inner>#logout{background:#303030!important;color:#fff!important;border:1px solid #777!important}
}

/* Final light header: system notification bar belongs to Android, not the web page */
.top,.top .inner{background:#edf5ff!important;color:#19466e!important}
.top .school-heading b,.top b{color:#19466e!important}
.top .school-heading small,.top small{color:#55708a!important}
.top .inner>#logout{background:#e0e9f5!important;color:#214d76!important;border:1px solid #c9d9ed!important}
@media(max-width:760px){
 .top{background:#edf5ff!important;border-bottom:1px solid #cedff1!important;box-shadow:0 2px 12px #23476614!important;padding-top:0!important}
 .top .inner{background:#edf5ff!important;min-height:80px!important;padding:15px 14px!important}
 .top .school-heading b{color:#19466e!important}
 .top .school-heading small{color:#55708a!important}
 .top .inner>#logout{background:#e0e9f5!important;color:#214d76!important;border:1px solid #c9d9ed!important}
}

/* Mobile-first readability: clear hierarchy, compact controls, full-width student cards */
@media(max-width:760px){
 body{font-size:14px;line-height:1.5}
 .top .inner{min-height:72px!important;padding:12px 14px!important}
 .top .school-heading b{font-size:18px!important;line-height:1.2!important}
 .top .school-heading small{font-size:11px!important;max-width:60vw}
 .top .inner>#logout{font-size:12px!important;padding:9px 11px!important}
 main{padding:13px 12px!important}
 main h2{font-size:21px!important;line-height:1.25}
 main h3{font-size:17px!important;line-height:1.35}
 main p{font-size:13px;line-height:1.5}
 .panel{padding:12px!important;border-radius:16px!important}
 .toolbar{gap:8px!important}
 .toolbar label{min-width:0!important;flex:1 1 135px;font-size:13px}
 .pill{font-size:12px;line-height:1.5;white-space:normal}
 .issue-check{padding:8px 9px!important;min-height:44px!important;white-space:normal!important;font-size:13px!important;gap:7px!important}
 .issue-check input{width:22px!important;height:22px!important;min-width:22px!important}
 .positive-status{font-size:12px!important;padding:6px 8px!important;white-space:nowrap!important}
 .weekly-table,.weekly-table tbody,.weekly-table tr,.weekly-table td{display:block!important;width:100%!important;min-width:0!important;max-width:none!important}
 #hwArea .tablebox{overflow:visible!important;border:none!important}
 .weekly-table{border-collapse:separate!important;min-width:0!important}
 .weekly-table thead{display:none!important}
 .weekly-table tr[data-week-student]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:start!important;border:1px solid #d4e2ef!important;border-radius:14px!important;background:#fff!important;padding:12px!important;margin:0 0 11px!important;box-shadow:0 2px 8px #183e6b0c}
 .weekly-table tr[data-week-student] td{border:0!important;padding:0!important;background:transparent!important;position:static!important}
 .weekly-table tr[data-week-student] td:first-child{grid-column:1 / -1;font-size:16px!important;color:#1c4e81;border-bottom:1px solid #edf1f7!important;padding-bottom:8px!important}
 .weekly-table tr[data-week-student] td:nth-child(2)::before{content:"Homework";display:block;color:#56718b;font-weight:700;font-size:12px;margin-bottom:5px}
 .weekly-table tr[data-week-student] td:nth-child(3)::before{content:"Notebook / Test Copy";display:block;color:#56718b;font-weight:700;font-size:12px;margin-bottom:5px}
 .weekly-table tr[data-week-student] td:nth-child(4){grid-column:1 / -1}
 .weekly-table tr[data-week-student] td:nth-child(4)::before{content:"Remarks (optional)";display:block;color:#56718b;font-weight:700;font-size:12px;margin:3px 0 5px}
 .weekly-table .binary-status{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important}
 .weekly-table .issue-check{justify-content:center!important}
 .weekly-table .positive-status{justify-content:center!important}
 .weekly-table .weeklyNotes{width:100%!important}
 .absence-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:11px!important;margin:0 0 8px;border:1px solid #dce6ef!important;border-radius:12px;background:#fff!important}
 .absence-row>span:first-child{font-size:15px;font-weight:700}
 .absence-row .binary-status{justify-content:space-between;gap:8px}
 .absence-row .positive-status,.absence-row .negative-choice{font-size:13px!important;padding:8px 11px!important}
 .wrap>nav .nav-label{font-size:11px!important}
 .wrap>nav button,.wrap>nav button:nth-child(n){flex-basis:78px!important;width:78px!important;min-width:78px!important;max-width:78px!important}
 #hwPeriod strong{font-size:18px!important}
 #hwPeriod p{font-size:14px}
 #hwCounts{display:inline-flex;max-width:100%;margin-bottom:10px}
 #saveWeekly,#saveAttendance{width:100%;max-width:100%}
}

/* Only Students and Tests expose an export action. Hide legacy export widgets. */
#exportMonthly,#exportTestMatrix,#allCsv,#principalMarksCsv,#principalAttendanceCsv{display:none!important}
@media(max-width:760px){
 #exportData{min-height:42px;padding:9px 13px;font-size:13px;white-space:nowrap}
 main>.sub{font-size:12px}
 .toolbar>strong{font-size:14px}
}

/* Professional mobile typography + test-entry layout: single source of final overrides */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:760px){
 html{font-size:14px!important}
 body{font-family:system-ui,-apple-system,"Noto Sans Devanagari",sans-serif;font-size:14px!important;line-height:1.45;color:#213a52}
 .top .school-heading b{font-size:17px!important;line-height:1.24!important}
 .top .school-heading small{font-size:11px!important;line-height:1.3!important}
 .top .inner>#logout{font-size:12px!important;min-height:39px!important}
 main{padding:14px 12px!important;border-radius:16px!important}
 main h2{font-size:20px!important;line-height:1.25!important;font-weight:750!important;margin:3px 0 11px!important}
 main h3{font-size:16px!important;line-height:1.3!important;margin:13px 0 9px!important}
 main p,.sub{font-size:13px!important;line-height:1.48!important;margin:7px 0 12px}
 .panel{padding:12px!important;border-radius:15px!important}
 label{font-size:13px!important;font-weight:650!important}
 button{font-size:13px!important;font-weight:700!important;min-height:42px!important;padding:10px 12px!important}
 input:not([type="checkbox"]),select,textarea{font-size:16px!important;min-height:44px!important;line-height:1.25!important;padding:9px 10px!important;border-radius:10px!important}
 .toolbar{gap:10px!important}
 .toolbar label{padding:0!important;background:transparent!important;min-width:0!important}
 .toolbar>strong{font-size:14px!important}
 .pill{font-size:12px!important}
 .card b{font-size:25px!important}
 .card small{font-size:12px!important}
 .tablebox th,.tablebox td{font-size:12px!important;padding:9px 10px!important}
 #testMonth,#testFortnight,#testPaper,#subjectFilter,#testDate,#fullMarks{width:100%;max-width:100%;min-width:0}
 main:has(#testMonth)>.panel:first-of-type{padding:14px!important;background:#fff!important;border:1px solid #e0e7f0!important}
 main:has(#testMonth) .toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 12px!important;align-items:end!important}
 main:has(#testMonth) .toolbar label{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;flex:none!important}
 main:has(#testMonth) .toolbar label:last-child{grid-column:1/-1}
 #addExtraTest{background:#e8f3ff!important;border:1px solid #b6d3ee!important;color:#195b9a!important;box-shadow:none!important;min-height:44px!important;align-self:end}
 #marksPanel h3{color:#245c93!important;background:transparent!important;font-size:16px!important;margin:17px 0 6px!important}
 #marksPanel p{font-size:12px!important;color:#62788b}
 #paperProgress .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #paperProgress .card{min-height:85px!important;padding:12px!important}
 #paperProgress .card b{font-size:17px!important}
 .wrap>nav .nav-symbol{font-size:21px!important}
 .wrap>nav .nav-label{font-size:10px!important}
}
@media(max-width:360px){
 main:has(#testMonth) .toolbar{grid-template-columns:1fr!important}
 main:has(#testMonth) .toolbar label:last-child{grid-column:auto}
}

/* Visible school branding and native-system-bar friendly mobile header */
.school-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.school-brand .school-heading{min-width:0;flex:1}
.school-logo{display:block;flex:none;width:42px;height:42px;object-fit:contain;background:#fff;border:1px solid #d7e4f1;border-radius:10px;padding:3px}
@media(max-width:760px){
 .top .inner{display:flex!important;gap:10px!important;align-items:center!important;padding:12px 13px!important;min-height:75px!important}
 .top .school-brand{flex:1!important;min-width:0!important;gap:9px!important}
 .top .school-heading{flex:1!important;min-width:0!important}
 .school-logo{width:40px!important;height:40px!important}
 .top .school-heading b{font-size:16px!important;line-height:1.25!important;white-space:normal!important}
 .top .school-heading small{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .top .inner>#logout{font-size:12px!important;padding:9px!important;white-space:nowrap!important}
}

/* Android OEM status bars: keep header text below status icons even when system decor overlaps */
@media(max-width:760px){
 html.gurukulam-native .top{padding-top:34px!important;top:0!important}
 html.gurukulam-native .top .inner{padding-top:12px!important}
 html.gurukulam-native .school-logo{width:40px!important;height:40px!important;object-fit:contain}
}

/* App header: no web-based status-bar padding; native Android handles exact insets. */
@media(max-width:760px){
 .top,.top .inner{padding-top:0!important}
 .top .inner{padding:12px 14px!important;min-height:70px!important}
 html.gurukulam-native .top{padding-top:0!important}
 html.gurukulam-native .top .inner{padding-top:12px!important}
 .school-logo{display:none!important}
 .school-brand{gap:0!important}
}

/* Weekly whole-class notebook checking */
.copy-week{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px;padding:13px 15px;border-radius:12px;background:#e8f2ff;color:#1e5387;margin:12px 0}
.copy-week span{font-size:12px;color:#587592}
.copy-list{display:grid;gap:9px}
.copy-subject-row{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(120px,1.3fr);gap:12px;align-items:center;padding:11px 12px;border:1px solid #dce6f1;border-radius:13px;background:#fff}
.copy-subject-name{font-weight:750;font-size:15px;color:#254b71}
.copy-status{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:13px}
.copy-status input{width:23px;height:23px;accent-color:#12846a}
.copy-status:has(input:checked){color:#127c5d}
.copy-remark{width:100%}
.copy-progress{margin:13px 0;font-size:13px;font-weight:700;color:#285475}
@media(max-width:760px){
 .copy-week{font-size:14px}
 .copy-subject-row{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px}
 .copy-subject-name{font-size:15px}
 .copy-subject-row .copy-remark{grid-column:1/-1;font-size:14px!important}
 #saveClassCopies{width:100%;max-width:100%}
}

/* Principal student admission: large tap-friendly Day Scholar / Hosteller choices */
.student-type-picker{border:0;margin:8px 0 12px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.student-type-picker legend{font-weight:750;color:#274967;margin:0 0 12px}
.student-type-option{display:block;position:relative;cursor:pointer;min-width:0}
.student-type-option input{position:absolute;opacity:0;width:1px;height:1px}
.student-type-option span{display:flex;align-items:center;justify-content:center;min-height:54px;text-align:center;padding:10px 6px;background:#fff;border:2px solid #b9cddd;border-radius:14px;color:#2b4d6e;font-size:15px;font-weight:750}
.student-type-option input:checked+span{background:#dcf5eb;border-color:#0c8c73;color:#075f52;box-shadow:0 0 0 1px #0c8c73 inset}
.student-type-option input:checked+span:before{content:'✓';font-weight:900;margin-right:7px}
.student-type-option input:focus-visible+span{outline:3px solid #2563eb;outline-offset:2px}

/* Dashboard refresh action — visible and easy to tap on phone */
.dashboard-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.dashboard-title-row h2{flex:1 1 210px;margin-bottom:0}
.refresh-dashboard{flex:0 0 auto;width:auto;min-width:110px;min-height:42px;border-radius:12px;background:#e4f0ff;color:#15568b;border:1px solid #b6cfe7;padding:9px 12px;font-weight:700;box-shadow:none}
.refresh-dashboard:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.dashboard-title-row{gap:9px}.dashboard-title-row h2{font-size:clamp(22px,5vw,28px)}.refresh-dashboard{font-size:14px}}

/* Separate saved test-result tables for each student */
.student-result-group{margin:0 0 24px;padding:14px;border:1px solid #c8d8e8;border-left:5px solid #207ca7;border-radius:14px;background:#f8fbff}
.student-result-group h4{margin:0 0 12px;font-size:1.12rem;color:#1b527d;font-weight:800}
.student-result-group .tablebox{background:#fff;margin:0}
.student-result-group + .student-result-group{margin-top:22px}

/* Compact homework cards: no overlapping controls on narrow phones */
.hw-compact-list{display:grid;gap:9px;margin:12px 0}
.hw-compact-student{min-width:0;background:#fff;border:1px solid #d7e3ee;border-radius:12px;padding:12px;display:grid;gap:9px}
.hw-student-name{font-weight:800;color:#224e73;overflow-wrap:anywhere}
.hw-compact-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
.hw-compact-controls label{min-width:0;display:grid;gap:4px;font-size:13px;font-weight:700;color:#576c7d}
.hw-compact-controls select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:9px 26px 9px 8px;font-size:14px;min-height:43px;border-radius:9px}
.hw-compact-student .weeklyNotes{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;font-size:14px}
.hw-save-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
@media(max-width:370px){.hw-compact-controls{gap:6px}.hw-compact-controls select{font-size:13px;padding-left:5px}.hw-compact-student{padding:9px}}

/* Definitive fix: override older #hwArea select min-width:170px and global !important styles */
#hwArea .hw-compact-list{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0}
#hwArea .hw-compact-student{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;overflow:hidden}
#hwArea .hw-student-name{font-size:15px;line-height:1.35;margin-bottom:7px;overflow-wrap:anywhere}
#hwArea .hw-compact-controls{display:flex;flex-direction:column;gap:7px;width:100%;min-width:0}
#hwArea .hw-compact-controls label{display:grid;grid-template-columns:minmax(0,104px) minmax(0,1fr);align-items:center;gap:8px;width:100%;min-width:0;margin:0;font-size:13px;line-height:1.25}
#hwArea .hw-compact-controls select,#hwArea select.homeworkStatus,#hwArea select.copyStatus{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:36px!important;height:38px!important;font-size:14px!important;line-height:1.2!important;padding:5px 25px 5px 8px!important;border-radius:8px!important;margin:0!important;position:static!important;transform:none!important;float:none!important}
#hwArea .hw-compact-student input.weeklyNotes{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:36px!important;height:38px!important;font-size:14px!important;padding:6px 9px!important;margin-top:8px!important;position:static!important}
#hwArea .hw-save-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media(max-width:360px){#hwArea .hw-compact-controls label{grid-template-columns:minmax(0,87px) minmax(0,1fr);gap:5px;font-size:12px}}

/* Ensure the principal's Overview and Teachers tabs remain visible on desktop. */
@media (min-width: 761px) {
 .wrap>nav button[data-view="principal_reports"],
 .wrap>nav button[data-view="principal_reports"]:nth-child(n) {
   background:#087d77!important;color:#fff!important;border:2px solid #087d77!important;
 }
 .wrap>nav button[data-view="admin"],
 .wrap>nav button[data-view="admin"]:nth-child(n) {
   background:#6a419f!important;color:#fff!important;border:2px solid #6a419f!important;
 }
 .wrap>nav button[data-view="principal_reports"].selected,
 .wrap>nav button[data-view="admin"].selected {
   outline:3px solid #203e55!important;outline-offset:2px!important;
 }
 .wrap>nav button[data-view="principal_reports"] .nav-label,
 .wrap>nav button[data-view="admin"] .nav-label,
 .wrap>nav button[data-view="principal_reports"] .nav-symbol,
 .wrap>nav button[data-view="admin"] .nav-symbol {
   color:#fff!important;opacity:1!important;
 }
}

/* Principal complete student register class selector */
.register-class-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0;padding:12px;border:1px solid #cbddec;border-radius:12px;background:#eef6ff}
.register-class-filter label{font-weight:800;color:#24557e}
.register-class-filter select{width:auto!important;min-width:165px;max-width:100%;background:#fff!important}
.register-class-filter span{color:#48667d;font-weight:700}
@media(max-width:520px){.register-class-filter select{flex:1 1 170px;width:100%!important;min-width:0}}

/* Clear per-class academic tables in principal home overview */
.class-academic-section{margin:20px 0 26px;padding:14px;border:1px solid #ccdae8;border-radius:14px;background:#f7faff}
.class-academic-section h4{font-size:1.15rem;color:#205b8d;margin:0 0 13px;font-weight:850}
.class-academic-block{margin:10px 0 16px;min-width:0}
.class-academic-block h5{font-size:1rem;font-weight:800;color:#783a9b;margin:0 0 7px}
.class-academic-block .tablebox{background:#fff;margin:0;max-width:100%;overflow-x:auto}

/* Monthly class teacher report cards */
.teacher-score-card{margin:16px 0;padding:16px;border:2px solid #bed6ea;border-radius:14px;background:#f9fcff;break-inside:avoid}
.teacher-score-card>p{line-height:1.55}
.teacher-score-card .tablebox{background:#fff}
#scoreEditor #scoreInputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
#scoreEditor #scoreInputs label{display:grid;gap:5px;font-weight:700;color:#2d5d7e}
#scoreEditor #scoreInputs input{width:100%;box-sizing:border-box}
@media(max-width:600px){.teacher-score-card{padding:11px}#scoreEditor #scoreInputs{grid-template-columns:1fr 1fr}}

/* Desktop principal menu: two tidy rows, no blank white buttons */
@media (min-width: 761px){
 .wrap:has(>nav button[data-view="admin"])>nav{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:10px!important;
  overflow:visible!important;
  width:100%!important;
  padding:10px 0!important;
  align-items:stretch!important;
 }
 .wrap:has(>nav button[data-view="admin"])>nav>button,
 .wrap:has(>nav button[data-view="admin"])>nav>button:nth-child(n){
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  flex:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:64px!important;
  padding:8px 5px!important;
  border-radius:12px!important;
  color:#fff!important;
  font-weight:750!important;
  border:2px solid transparent!important;
  white-space:normal!important;
  text-align:center!important;
 }
 .wrap>nav button[data-view="dashboard"]{background:#1768c9!important}
 .wrap>nav button[data-view="students"]{background:#009688!important}
 .wrap>nav button[data-view="attendance"]{background:#dd6531!important}
 .wrap>nav button[data-view="homework"]{background:#7448c2!important}
 .wrap>nav button[data-view="copies"]{background:#bd3a79!important}
 .wrap>nav button[data-view="tests"]{background:#34748d!important}
 .wrap>nav button[data-view="reports"]{background:#946013!important}
 .wrap>nav button[data-view="scorecard"]{background:#4d589f!important}
 .wrap>nav button[data-view="salary"]{background:#237c83!important}
 .wrap>nav button[data-view="performance"]{background:#be4b75!important}
 .wrap>nav button[data-view="principal_reports"]{background:#087d77!important}
 .wrap>nav button[data-view="admin"]{background:#6a419f!important}
 .wrap:has(>nav button[data-view="admin"])>nav>button .nav-label,
 .wrap:has(>nav button[data-view="admin"])>nav>button .nav-symbol{
  color:#fff!important;opacity:1!important;
 }
 .wrap:has(>nav button[data-view="admin"])>nav>button.selected{
  outline:3px solid #203e55!important;
  outline-offset:2px!important;
  box-shadow:0 4px 13px #244e6e44!important;
 }
}

/* Clear selected-class overview instead of all-class spreadsheet */
.class-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.class-summary-chip{background:#eef5fd;border:1px solid #d1e1ef;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px;min-width:0}
.class-summary-chip strong{font-size:22px;color:#195e95;overflow-wrap:anywhere}
.class-summary-chip small{font-size:13px;color:#52708b;font-weight:700}
@media(max-width:650px){.class-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact principal class tables and clear student boundaries */
.compact-class-section{padding:11px 13px!important;margin:12px 0!important}
.compact-class-section h4{margin:0 0 8px!important}
.compact-class-section .tablebox table th,.compact-class-section .tablebox table td{padding:7px 10px!important;font-size:13px!important;line-height:1.35!important;vertical-align:top}
.compact-class-section tbody tr.student-group-start td{border-top:3px solid #5f91bd!important}
.compact-class-section tbody tr.student-group-start{background:#eef5ff!important}
@media(max-width:700px){.compact-class-section{padding:8px!important}.compact-class-section .tablebox table th,.compact-class-section .tablebox table td{padding:6px 8px!important;font-size:12px!important}}

/* Principal: one Class Teacher navigation button with four submenu items */
.class-teacher-submenu[hidden]{display:none!important}
.class-teacher-submenu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:4px 0 15px;padding:12px;border:1px solid #c4d6ea;border-radius:15px;background:#edf4fc}
.class-teacher-submenu button{width:100%;min-width:0;min-height:46px;padding:8px 10px;color:#fff!important;background:#594a9c;border:0;border-radius:10px;font-weight:800;box-shadow:0 3px 10px #344b6c22}
.class-teacher-submenu button:nth-child(2){background:#237c83}
.class-teacher-submenu button:nth-child(3){background:#bd4b7b}
.class-teacher-submenu button:nth-child(4){background:#505b9f}
@media(min-width:761px){
 .wrap:has(>nav button[data-view="class_teacher_menu"])>nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important}
 .wrap>nav button[data-view="class_teacher_menu"]{background:#65419b!important;color:#fff!important}
 .wrap>nav button[data-view="class_teacher_menu"] .nav-label,.wrap>nav button[data-view="class_teacher_menu"] .nav-symbol{color:#fff!important}
}
@media(max-width:760px){
 .class-teacher-submenu{grid-template-columns:repeat(2,minmax(0,1fr));margin:7px 8px;padding:9px;gap:7px}
 .class-teacher-submenu button{min-height:42px;font-size:13px}
}

/* Unified top-bar hamburger and slide-out menu: principal and teacher */
.top .inner{display:flex!important;align-items:center!important;gap:13px!important}
#openSideNav{display:flex!important;align-items:center;justify-content:center;flex:0 0 46px!important;width:46px!important;height:45px!important;padding:0!important;border:1px solid #b7cee1!important;background:#e7f1fc!important;color:#184a76!important;border-radius:12px!important;font-size:25px!important;font-weight:800!important;box-shadow:none!important}
.side-nav-backdrop{position:fixed!important;inset:0!important;background:rgba(11,30,49,.52)!important;z-index:9995!important}
.side-nav-backdrop[hidden]{display:none!important}
.side-nav{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(320px,88vw)!important;max-width:88vw!important;background:#f5f9ff!important;z-index:9996!important;transform:translateX(-105%)!important;transition:transform .23s ease!important;box-shadow:9px 0 28px #173a5336!important;display:flex!important;flex-direction:column!important;padding:14px!important;box-sizing:border-box!important;overflow-y:auto!important}
.side-nav.is-open{transform:translateX(0)!important}
.side-nav-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;padding:8px 2px;border-bottom:1px solid #d1e0ee;color:#174e7d;font-size:20px}
#closeSideNav{width:36px!important;height:36px!important;padding:0!important;border:0!important;border-radius:9px!important;background:#e4edf8!important;color:#244e73!important;font-size:20px!important}
.side-nav nav.side-nav-links{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;overflow:visible!important;position:static!important;width:100%!important;max-height:none!important;height:auto!important;min-height:0!important;flex:1 0 auto!important;padding:0!important;margin:0!important;box-shadow:none!important;background:transparent!important;border:0!important}
.side-nav .side-nav-links>button,.side-nav .side-teacher-group button{display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-start!important;text-align:left!important;flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:43px!important;height:auto!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#245477!important;font-size:15px!important;font-weight:700!important;white-space:normal!important;box-shadow:none!important}
.side-nav .side-nav-links>button.selected,.side-nav .side-teacher-group button.selected{background:#d6e8fb!important;color:#165b98!important}
.side-nav .side-nav-links>button:hover,.side-nav .side-teacher-group button:hover{background:#e5f0fd!important}
.side-nav .side-nav-links>button span:first-child{width:22px;text-align:center;font-size:18px}
.side-nav .side-nav-arrow{margin-left:auto!important}
.side-nav .side-teacher-group{padding:4px 5px 7px 24px;background:#ebf3fc;border-radius:11px;display:grid!important;gap:2px!important}
.side-nav .side-teacher-group[hidden]{display:none!important}
.side-nav .side-teacher-group button{font-size:14px!important;min-height:38px!important}
.side-nav .side-signout{margin-top:14px!important;min-height:46px!important;width:100%!important;background:#fff1f1!important;color:#a23d40!important;border:1px solid #f1d2d2!important;border-radius:10px!important;font-weight:800!important}
@media(max-width:760px){.top .inner{gap:9px!important}#openSideNav{flex-basis:43px!important;width:43px!important;height:43px!important}.side-nav{width:min(300px,86vw)!important}.school-heading b{overflow-wrap:anywhere}}

/* Teacher monthly student report maker: prominent entry and save action */
.teacher-monthly-shortcut{margin:18px 0;padding:16px;border:2px solid #acd3eb;border-radius:14px;background:#f1f9ff}
.teacher-monthly-shortcut h3{margin:0 0 8px;color:#1e5a86}
#openMonthlyStudentReport,.save-monthly-student-reviews{display:inline-flex;align-items:center;justify-content:center;min-height:46px;background:#147e78!important;color:#fff!important;border:0!important;border-radius:11px;padding:11px 17px;font-weight:800!important}
@media(max-width:600px){.teacher-monthly-shortcut button{width:100%!important}.save-monthly-student-reviews{width:100%!important}}

/* Focused dashboard: details on demand, concise records */
#principalHomeOverview{margin-top:14px}
#showClassDetails{width:100%;min-height:44px;text-align:left;background:#e7f1fb;color:#17517c;border:1px solid #b9d0e4;border-radius:10px;padding:10px 14px;font-weight:800}
#classDetailsArea:not([hidden]){padding-top:12px}
#homeTeacherProgress{margin-top:16px}
#homeTeacherProgress h3{margin-bottom:7px}
#homeTeacherProgress .tablebox td,#homeTeacherProgress .tablebox th{padding:7px 9px;font-size:13px}
#homeTeacherProgress .sub{margin:3px 0 9px}
.teacher-monthly-shortcut{padding:11px 14px;margin-top:12px}
.teacher-monthly-shortcut h3{font-size:17px}

/* Principal student profile editor */
.student-edit-button{background:#146e9c!important;color:#fff!important;margin-right:8px!important;padding:7px 12px!important;border-radius:8px!important}
.student-edit-row td{padding:8px!important;background:#f0f7fe!important}
.student-inline-edit{margin:0!important;padding:12px!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.student-inline-edit h4,.student-inline-edit .student-edit-actions,.student-inline-edit .student-edit-status{grid-column:1/-1;margin:2px 0}
.student-inline-edit label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}
.student-inline-edit input,.student-inline-edit select{width:100%;min-height:38px;box-sizing:border-box}
.student-edit-actions{display:flex;gap:9px;flex-wrap:wrap}

/* Confirmation toast for successful save, edit, remove, delete and import actions */
.school-action-notice{position:fixed;top:20px;right:20px;z-index:10020;display:flex;align-items:center;gap:12px;max-width:min(440px,calc(100vw - 32px));padding:15px 17px;border-radius:14px;background:#eaf9ee;color:#165b32;border:2px solid #75ca92;box-shadow:0 12px 32px #123b2c30;font-weight:750;font-size:15px;line-height:1.4;transform:translateY(-115%);opacity:0;visibility:hidden;transition:transform .2s ease,opacity .2s ease,visibility .2s;box-sizing:border-box}
.school-action-notice.notice-visible{transform:translateY(0);opacity:1;visibility:visible}
.school-action-notice.notice-error{background:#fff1f0;color:#a12929;border-color:#e7a4a2}
.school-action-notice .notice-icon{flex:none;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#238b4d;color:white;font-size:18px;font-weight:900}
.school-action-notice.notice-error .notice-icon{background:#be3838}
.school-action-notice button{margin-left:auto!important;flex:none!important;width:30px!important;height:30px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:inherit!important;font-size:23px!important}
@media(max-width:600px){.school-action-notice{top:10px;right:12px;left:12px;max-width:none;font-size:14px}}

/* Principal teacher management: one section at a time */
.teacher-management-tabs{display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;margin:16px 0 18px}
.teacher-management-tabs button{flex:1 1 145px;min-width:0;min-height:46px;padding:10px 12px;border-radius:10px!important;background:#e7f0fc!important;color:#245278!important;border:1px solid #bfd5eb!important;font-weight:750!important;box-shadow:none!important}
.teacher-management-tabs button.selected{background:#1c679b!important;color:white!important;border-color:#1c679b!important}
.teacher-management-group[hidden]{display:none!important}
.teacher-management-group{margin-top:10px}
.teacher-management-group>.panel{margin:12px 0}
@media(max-width:600px){.teacher-management-tabs{gap:6px}.teacher-management-tabs button{flex:1 1 135px;font-size:13px!important;min-height:40px}}

/* Subjects selected together with primary class teacher assignments */
.assignment-subject-choices{display:flex;flex-wrap:wrap;gap:8px 16px;border:1px solid #c8d8e9;border-radius:12px;padding:12px}
.assignment-subject-choices legend{font-weight:750;color:#245278;padding:0 6px}
.assignment-subject-choices label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:14px}
.assignment-subject-choices input[type=checkbox]{width:17px;height:17px;accent-color:#176e9c}

/* Edit an existing teacher/class/subject assignment inline */
.teacher-assignment-edit-row>td{background:#f1f7fd!important;padding:10px!important}
.teacher-assignment-edit-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:0!important}
.teacher-assignment-edit-form h4,.teacher-assignment-edit-form fieldset,.teacher-assignment-edit-form .student-edit-actions,.teacher-assignment-edit-form .assignment-edit-status{grid-column:1/-1}
.teacher-assignment-edit-form label{display:flex;flex-direction:column;gap:5px}
.teacher-assignment-edit-form .assignment-subject-choices label{display:inline-flex;flex-direction:row}

.teacher-password-entry{display:flex;gap:8px;align-items:stretch}.teacher-password-entry input{min-width:0;flex:1}.teacher-password-entry #toggleTeacherPassword{flex:0 0 auto;width:82px;min-height:44px;border-radius:9px;background:#e1effa;color:#174e7b;border:1px solid #b5cfeb;font-weight:750}

.remove-principal-button{background:#b74040!important;color:#fff!important;border-radius:8px!important;padding:8px 12px!important}.remove-principal-button:disabled{opacity:.6}

/* Phone-friendly monthly student review: one readable card per student */
@media(max-width:760px){
 .monthly-report-tablebox{overflow:visible!important;width:100%!important;max-width:100%!important;border:0!important;background:transparent!important}
 .monthly-report-tablebox .report-table,.monthly-report-tablebox .report-table tbody{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
 .monthly-report-tablebox .report-table thead{display:none!important}
 .monthly-report-tablebox .report-table tbody tr[data-review]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0 0 13px!important;padding:13px!important;background:#fff!important;border:1px solid #d2dfec!important;border-radius:15px!important;box-shadow:0 3px 12px #1d476012!important;width:100%!important;box-sizing:border-box!important}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow:visible!important;box-sizing:border-box!important;text-align:left!important;font-size:13px!important}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(1){grid-column:1/-1;font-size:17px!important;color:#15527d!important;border-bottom:1px solid #d6e4f0!important;padding-bottom:8px!important}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(2){grid-column:1/-1;color:#455f72}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(3)::before{content:"Attendance";display:block;font-weight:700;color:#486481;margin-bottom:4px}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(4)::before{content:"Homework / Copies";display:block;font-weight:700;color:#486481;margin-bottom:4px}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(5)::before{content:"Behaviour"}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(6)::before{content:"Cleanliness"}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(7)::before{content:"Progress"}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(5)::before,.monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(6)::before,.monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(7)::before,.monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(8)::before{display:block;font-weight:750;color:#245478;margin-bottom:5px;font-size:13px}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(7),.monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(8){grid-column:1/-1}
 .monthly-report-tablebox .report-table tbody tr[data-review]>td:nth-child(8)::before{content:"Remarks (optional)"}
 .monthly-report-tablebox .report-table select,.monthly-report-tablebox .report-table textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding:9px!important;font-size:14px!important;line-height:1.3!important;min-height:43px!important;border-radius:9px!important}
 .monthly-report-tablebox .report-table textarea{height:60px!important;resize:vertical}
 .monthly-report-tablebox .report-table .behaviour,.monthly-report-tablebox .report-table .cleanliness{background:#edf5ff!important;border-color:#b4cdec!important}
 .monthly-report-tablebox .report-table .progress{background:#edfaf2!important;border-color:#abd9b6!important}
 .report-explainer{font-size:12px!important;margin:8px 0!important}
}

/* Immediate, accessible weekly homework and notebook status feedback */
#hwArea select.homeworkStatus[data-status="done"]{background:#e5f7e9!important;color:#176534!important;border:1px solid #8acb9a!important}
#hwArea select.homeworkStatus[data-status="not_done"]{background:#fff0f0!important;color:#a32232!important;border:1px solid #e6a1a9!important}
#hwArea select.copyStatus[data-status="checked"]{background:#e7f3ff!important;color:#165a94!important;border:1px solid #91bde6!important}
#hwArea select.copyStatus[data-status="not_checked"]{background:#fff1df!important;color:#92500e!important;border:1px solid #e4b77b!important}

/* Teacher-first principal salary management */
.salary-teacher-picker select{display:block;width:100%;max-width:420px;margin-top:9px;min-height:44px}
.salary-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.salary-summary-grid .card{display:flex;flex-direction:column;gap:8px;padding:14px;min-width:0}
.salary-summary-grid small{font-size:12px;color:#526a80;font-weight:700}
.salary-summary-grid b{font-size:clamp(16px,2vw,23px);overflow-wrap:anywhere}
.salary-action-tabs{display:flex;gap:9px;margin:16px 0;flex-wrap:wrap}
.salary-action-tabs button{background:#e9f1f9!important;color:#225276!important;border-radius:10px!important;font-weight:700}
.salary-action-tabs button.active{background:#126b9b!important;color:#fff!important}
#salaryHistory[hidden],#salaryPayment[hidden]{display:none!important}
@media(max-width:600px){.salary-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-summary-grid .card:last-child{grid-column:1/-1}.salary-action-tabs button{flex:1;min-height:44px}.salary-month-toolbar{align-items:flex-end}}

/* Sign out at upper-left of the mobile/desktop slide-out menu */
.side-nav .side-nav-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
.side-nav .side-nav-heading .side-signout{margin:0!important;width:auto!important;min-height:39px!important;padding:7px 14px!important;font-size:14px!important;flex:0 0 auto!important}

/* Saved teacher report card actions */
.score-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.score-card-actions button{min-height:40px!important;padding:8px 12px!important;border-radius:9px!important;font-size:13px!important}
.score-card-actions .editTeacherScore{background:#e6f1ff!important;color:#155a91!important;border:1px solid #a8c9e8!important}
.score-card-actions .deleteTeacherScore{background:#fff0f0!important;color:#a42d37!important;border:1px solid #edb9bf!important}
@media(max-width:600px){.teacher-score-card .dashboard-title-row{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.score-card-actions{width:100%}.score-card-actions button{flex:1 1 auto}}

/* Calm startup screen while restoring a saved login */
.app-startup{min-height:75dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:25px;color:#215475}
.app-startup h2{margin:5px 0;font-size:clamp(19px,4vw,27px)}
.app-startup p{margin:0;color:#61798b;font-size:14px}
.app-startup .launch-spinner{width:42px;height:42px;border:4px solid #d6e8f5;border-top-color:#168f93;border-radius:50%;animation:gurukulam-spin .85s linear infinite}

/* Principal class-record presentation */
#classDetailsArea{margin-top:16px;padding:clamp(12px,2vw,24px);border:1px solid #d4e2ef;border-radius:20px;background:linear-gradient(155deg,#f3f8ff,#fff 55%);box-shadow:0 8px 24px rgba(19,63,109,.08)}
#showClassDetails{width:100%;min-height:58px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-radius:16px;border:1px solid #b9d2e9;background:#eaf4ff;color:#1c527a;font-weight:800;font-size:clamp(15px,2vw,19px);box-shadow:0 3px 10px rgba(32,87,136,.06)}
#showClassDetails:hover{background:#dfefff}
.class-detail-intro{display:flex;align-items:center;gap:14px;padding:12px 0 18px}
.class-detail-intro h3{margin:0 0 4px;color:#184b71;font-size:clamp(19px,2.5vw,25px)}
.class-detail-intro p{margin:0;line-height:1.55}
.class-detail-icon{display:grid;place-items:center;flex:0 0 50px;height:50px;border-radius:15px;background:#d9eafb;color:#195c91;font-size:28px}
#principalClassDetails{width:100%;max-width:460px;min-height:48px;border:1px solid #b6cfe3;border-radius:12px;background:#fff;padding:9px 12px}
#principalClassDetailsTables{display:grid;gap:15px;margin-top:18px;min-width:0}
#principalClassDetailsTables>.panel,#principalClassDetailsTables>.card,#principalClassDetailsTables>.tablebox{border-radius:16px;border:1px solid #e0eaf3;box-shadow:0 3px 14px rgba(20,63,106,.05);background:#fff;overflow:hidden}
#principalClassDetailsTables table{width:100%;min-width:560px;border-collapse:collapse}
#principalClassDetailsTables th{background:#e8f1fa;color:#204e72;font-weight:750;white-space:nowrap}
#principalClassDetailsTables td{border-bottom:1px solid #e8edf3}
#principalClassDetailsTables tr:nth-child(even) td{background:#f8fbff}
#principalClassDetailsTables .tablebox{overflow-x:auto;max-width:100%}
@media(max-width:650px){#classDetailsArea{padding:12px}#showClassDetails{font-size:15px;padding:13px 14px}.class-detail-intro{align-items:flex-start}.class-detail-icon{flex-basis:42px;height:42px}}

/* Unified entry point: prominent parent login + staff sign-in */
.portal-login{max-width:490px;margin:clamp(22px,5vh,65px) auto;padding:clamp(20px,4vw,34px)}
.portal-login-brand{text-align:center}.portal-login-brand h2{margin:8px 0;color:#16514c;font-size:clamp(20px,4vw,26px)}.portal-login-brand p{margin:0 0 20px;color:#5c7771}
.portal-login-symbol{margin:auto;display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#e1f2e9;color:#176754;font-size:31px}
.portal-login-parent{display:flex;align-items:center;gap:13px;padding:17px 15px;border-radius:16px;background:linear-gradient(110deg,#176d60,#258b73);color:white;text-decoration:none;box-shadow:0 7px 18px #145f5433;min-height:92px}
.portal-login-parent strong{display:block;font-size:19px}.portal-login-parent small{display:block;font-size:12px;line-height:1.5;opacity:.95;margin-top:5px}.portal-login-emoji{font-size:27px}.portal-login-arrow{font-size:30px;margin-left:auto}.portal-login-divider{display:flex;align-items:center;gap:10px;text-align:center;font-size:13px;font-weight:750;color:#617975;margin:23px 0 15px}.portal-login-divider:before,.portal-login-divider:after{content:"";height:1px;background:#d3e0da;flex:1}.portal-login form{gap:12px}.portal-login form button{min-height:46px;font-weight:750}

/* Principal dashboard hero and class records action */
.dashboard-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px;padding:clamp(18px,3vw,28px);border-radius:22px;background:linear-gradient(125deg,#f1f8ff 0%,#fff 60%,#edf8f4 100%);border:1px solid #dbe9f3;box-shadow:0 6px 22px rgba(27,77,116,.06)}
.dashboard-heading{min-width:0;flex:1 1 260px}.dashboard-eyebrow{display:inline-block;padding:6px 11px;background:#dceefa;border-radius:99px;color:#205a84;font-size:11px;font-weight:850;letter-spacing:1.1px}
.dashboard-heading h2{font-size:clamp(23px,3.5vw,34px);line-height:1.2;margin:12px 0 7px;color:#184f79;letter-spacing:-.5px}.dashboard-subtitle{font-size:clamp(13px,1.8vw,15px);line-height:1.5;color:#627d89;margin:0}
.dashboard-title-row .refresh-dashboard{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:43px;padding:10px 16px;border:1px solid #c1d9ea;border-radius:12px;background:#fff;color:#1b5b83;font-size:14px;font-weight:750;box-shadow:0 3px 9px rgba(25,82,122,.06);transition:background .2s,transform .2s}.dashboard-title-row .refresh-dashboard:hover{background:#e8f3fb;transform:translateY(-1px)}
#principalHomeOverview{margin:16px 0 24px}#principalHomeOverview #showClassDetails{display:flex;align-items:center;gap:14px;width:100%;min-height:94px;padding:17px 20px;border:1px solid #b9d9d3;border-radius:18px;background:linear-gradient(105deg,#e9f6f2,#eff8ff);color:#175c59;text-align:left;box-shadow:0 6px 18px rgba(26,95,92,.08);transition:transform .2s,box-shadow .2s,background .2s}
#principalHomeOverview #showClassDetails:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(26,95,92,.12)}
.detail-button-icon{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:15px;background:#d4eae5;color:#166b60;font-size:26px}.detail-button-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.detail-button-copy strong{font-size:clamp(16px,2.4vw,20px);line-height:1.25}.detail-button-copy small{font-size:12px;line-height:1.4;color:#527b78;font-weight:500}.detail-button-chevron{font-size:28px;transition:transform .2s}.is-open .detail-button-chevron{transform:rotate(180deg)}
@media(max-width:650px){.dashboard-title-row{padding:18px;border-radius:17px;gap:14px}.dashboard-heading{flex-basis:100%}.dashboard-title-row .refresh-dashboard{font-size:13px;min-height:40px;padding:8px 14px}.dashboard-heading h2{font-size:25px}#principalHomeOverview #showClassDetails{padding:14px;min-height:78px;gap:11px}.detail-button-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:22px}.detail-button-copy small{font-size:11px}}

.portal-login-accountant{display:flex;align-items:center;gap:13px;margin-top:12px;padding:15px;border:1px solid #d1dfeb;border-radius:15px;background:linear-gradient(105deg,#eff6ff,#f8fbff);color:#1b5679;text-decoration:none;min-height:76px}.portal-login-accountant>span:first-child{font-size:26px}.portal-login-accountant>span:nth-child(2){flex:1}.portal-login-accountant strong,.portal-login-accountant small{display:block}.portal-login-accountant strong{font-size:17px}.portal-login-accountant small{font-size:12px;color:#53778c;margin-top:4px}.portal-login-accountant>span:last-child{font-size:25px}

/* Dashboard: separate class-wise absence cards */
.absent-class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:13px;margin-top:14px}.absent-class-card{border:1px solid #d4e4e6;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(25,75,86,.06)}.absent-class-card>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;cursor:pointer;background:#f0f8f7;color:#184c53}.absent-class-card>summary::-webkit-details-marker{display:none}.absent-class-count{flex-shrink:0;border-radius:30px;background:#fde7e5;color:#9d332c;padding:5px 10px;font-size:12px;font-weight:700}.absent-class-body{padding:12px 15px}.absent-student-line{display:flex;gap:10px;align-items:center;padding:9px 3px;border-bottom:1px solid #edf1f3;font-size:14px}.absent-student-line:last-child{border-bottom:0}.absent-student-number{color:#7d9296;min-width:23px}@media(max-width:640px){.absent-class-grid{grid-template-columns:1fr}.absent-class-card>summary{padding:13px}}

/* Principal single-table attendance dashboard */
.principal-attendance-table{width:100%;border-collapse:collapse;min-width:550px}.principal-attendance-table th,.principal-attendance-table td{padding:13px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #e4edef}.principal-attendance-table thead th{background:#eaf4f3;color:#17565a}.principal-attendance-table tfoot th{background:#dcefea;color:#16514c;font-weight:800}.principal-absent-names{display:flex;flex-wrap:wrap;gap:6px}.principal-absent-names span{background:#fff0ed;color:#9e352d;padding:5px 9px;border-radius:8px;font-size:13px}.principal-attendance-table td:nth-child(2),.principal-attendance-table td:nth-child(3){font-variant-numeric:tabular-nums}

/* Principal detailed class records - clear, mobile-friendly expandable panel */
.principal-details-section{margin:22px 0 12px;padding:20px;border:1px solid #c9e1e5;border-radius:20px;background:linear-gradient(135deg,#f1f9fb 0%,#fff 65%);box-shadow:0 5px 22px rgba(20,76,91,.07)}.principal-details-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px}.principal-details-header h3{font-size:clamp(19px,2.2vw,25px);color:#174d61;margin:5px 0 7px}.principal-details-header .sub{margin:0;line-height:1.45}.principal-details-eyebrow{display:inline-block;font-size:11px;letter-spacing:1.5px;font-weight:800;color:#247b81}.principal-details-header button{flex-shrink:0;background:#176e77;color:white;border:0;border-radius:12px;padding:13px 17px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 3px 10px rgba(23,110,119,.15)}.principal-details-header button:hover{background:#10565f}.principal-details-section #classDetailsArea:not([hidden]){margin-top:20px;padding-top:18px;border-top:1px solid #dbe8eb}.principal-details-section #classDetailsArea[hidden]{display:none!important}@media(max-width:640px){.principal-details-section{padding:16px;margin:18px 0}.principal-details-header{align-items:stretch}.principal-details-header button{width:100%;padding:12px 14px}.principal-details-header h3{font-size:20px}}

/* Center the detailed records control at the top of the principal dashboard */
.principal-details-section{max-width:900px;margin:8px auto 24px;text-align:center}.principal-details-header{flex-direction:column;align-items:center;justify-content:center;text-align:center}.principal-details-header>div{max-width:680px}.principal-details-header button{min-width:min(100%,320px);max-width:100%;margin:3px auto 0}.principal-details-section #classDetailsArea{text-align:left}@media(max-width:640px){.principal-details-section{margin:8px auto 20px}.principal-details-header button{width:100%;min-width:0}}

/* V2 layout parity: compact, colourful, touch-friendly single-row navigation */
:root{--v2-ink:#173b46;--v2-line:#dce9ec;--v2-bg:#f1f6fa}
body{background:var(--v2-bg);color:var(--v2-ink)}
.top{background:#e9f4fc;color:#204d6b;border-bottom:1px solid #d2e3ee}
.top .inner{max-width:1200px}.top b{color:#1d5277}
.wrap{max-width:1200px;padding:12px}
main{padding:clamp(12px,3vw,24px);border-radius:22px;box-shadow:0 8px 26px #1d5c7a0a}
nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:8px;padding:8px 2px 14px;margin:8px 0 20px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
nav button{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;border:0;color:#fff;font-weight:700;min-height:44px;border-radius:13px;padding:10px 16px;box-shadow:0 5px 14px #27485a19}
nav button:nth-child(12n + 1){background:#1c6bca}
nav button:nth-child(12n + 2){background:#00998d}
nav button:nth-child(12n + 3){background:#df6732}
nav button:nth-child(12n + 4){background:#7949c4}
nav button:nth-child(12n + 5){background:#b73582}
nav button:nth-child(12n + 6){background:#377d99}
nav button:nth-child(12n + 7){background:#9a6615}
nav button:nth-child(12n + 8){background:#535fa6}
nav button:nth-child(12n + 9){background:#087e77}
nav button:nth-child(12n + 10){background:#9552a6}
nav button:nth-child(12n + 11){background:#267e50}
nav button:nth-child(12n + 12){background:#576679}
nav button.selected{outline:3px solid #204d6b;outline-offset:2px;filter:saturate(1.1)}
nav button[hidden]{display:none!important}
#content{min-height:210px}#content h3{color:#214e71;margin:14px 0}
.cards{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.card{background:#e6f3fc;border:1px solid #b7d7e9;border-radius:17px;padding:18px}
.card b{color:#214e71}
.form{max-width:680px;gap:12px}
.form label{font-weight:600;color:#29516b}
.form input,.form select,.form textarea{font-weight:400;border:1px solid #bbd0e1;border-radius:11px;min-height:44px}
.form input[type=checkbox]{min-height:unset;width:auto;accent-color:#008f87}
.form button{min-height:44px;background:linear-gradient(105deg,#176bc7,#07988b);font-weight:700;border-radius:12px}
.panel{border-color:#d1e2ec;background:#fbfdff}
.tablebox{border:1px solid #d7e6ef;border-radius:12px;overflow-x:auto}
.tablebox th{white-space:nowrap;background:#eaf4fb;color:#214e71}
.tablebox td{border-bottom:1px solid #e1ebf1}
.tablebox button{padding:8px 12px;margin:2px}
.absence-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #dce8ed}
.absence-row:nth-child(even){background:#f4f9fc}
#notice{color:#a53142;font-weight:600}
@media(max-width:600px){.top{padding:12px}.top .inner{align-items:flex-start;flex-direction:column;gap:3px}.top b{font-size:17px}.top small{font-size:12px}.wrap{padding:10px}main{padding:12px;border-radius:17px}nav button{font-size:14px;padding:10px 12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:14px}.card b{font-size:23px}.tablebox{max-width:100%}}

@media print{
  @page{size:A4;margin:12mm}
  body{background:#fff!important;color:#111!important;font-size:11px}
  .top,nav,#notice,.toolbar,form,button{display:none!important}
  .wrap,main,#content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;min-height:0!important}
  .tablebox{overflow:visible!important;border:0!important}
  table{width:100%!important;border-collapse:collapse!important}
  th,td{padding:5px!important;border:1px solid #bbb!important;white-space:normal!important;overflow-wrap:anywhere}
  tr{break-inside:avoid}
  h3{color:#111!important}
  .panel{break-inside:avoid;box-shadow:none!important}
}

/* Fee audit: compact controls and accessible horizontal table on phones. */
#feeAuditRows .tablebox{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
#feeAuditRows table{min-width:560px}
#feeAuditRows td:last-child{max-width:360px;overflow-wrap:anywhere;word-break:break-word}
#feeAuditRows [role=status]{font-weight:600;margin:12px 0}
@media(max-width:600px){#feeAuditView,#feeAuditNext,#feeAuditCsv{min-height:44px}#feeAuditRows td{font-size:13px}#feeAuditRows th{font-size:13px}}


/* V2 mobile teacher navigation: preserve every tab, avoid cramped multi-row buttons. */
@media(max-width:700px){
 nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:8px;padding:6px 3px 12px;margin:12px 0 16px;scrollbar-width:thin}
 nav button{flex:0 0 auto;white-space:nowrap;min-height:44px;scroll-snap-align:start;font-size:13px;padding:10px 13px}
 nav button[hidden]{display:none}
 .toolbar{gap:9px}
 .toolbar input,.toolbar select{max-width:100%;min-width:0}
 .tablebox{max-width:100%;-webkit-overflow-scrolling:touch}
 .panel{padding:12px}
 .absence-row{min-height:52px}
}
@media(prefers-reduced-motion:reduce){nav button{transition:none}nav button:hover{transform:none}}

/* Mobile usability: maintain tappable actions, readable tables, and printable reports. */
@media (max-width:640px){
 .wrap{padding:10px}
 main{padding:12px;min-height:280px}
 .top{padding:12px}
 .top .inner{flex-wrap:wrap}
 .top b{font-size:17px}
 nav{gap:6px;margin:12px 0}
 nav button{min-height:44px;padding:10px 12px}
 .toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
 .toolbar label{min-width:0;flex:1 1 135px}
 .toolbar input,.toolbar select{width:100%}
 .toolbar button{min-height:44px}
 .tablebox{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .tablebox table{min-width:540px}
 .form button{min-height:44px}
 .cards{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
}
@media print{
 header.top,nav,.toolbar button,button,.demo-controls{display:none!important}
 .wrap,main{max-width:none;border:0;box-shadow:none}
 .tablebox{overflow:visible}
 .tablebox table{min-width:0}
}

/* V2 usability batch: 22 isolated, responsive improvements for the authenticated app. */
/* 01 */ :root{color-scheme:light;scroll-behavior:smooth}
/* 02 */ button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #f1a62d;outline-offset:3px}
/* 03 */ button:not(:disabled):active{transform:translateY(1px)}
/* 04 */ button:disabled{filter:grayscale(.3);opacity:.55;cursor:not-allowed}
/* 05 */ input:invalid:not(:placeholder-shown),select:invalid{border-color:#d04b54}
/* 06 */ input[type="checkbox"]{accent-color:#1477ad;min-width:20px;min-height:20px}
/* 07 */ input[type="date"]{min-width:0}
/* 08 */ .form label{display:grid;gap:5px;font-weight:550}
/* 09 */ .form label:has(input[type="checkbox"]){display:flex;align-items:center;gap:10px}
/* 10 */ .form button[type="submit"]{min-height:44px;font-weight:650}
/* 11 */ .toolbar button{min-height:42px}
/* 12 */ .toolbar label{display:grid;gap:5px;min-width:0}
/* 13 */ .tablebox{border:1px solid #dce5ed;border-radius:10px;scrollbar-gutter:stable}
/* 14 */ .tablebox th{position:sticky;top:0;z-index:1}
/* 15 */ .tablebox tr:hover td{background:#eef7ff}
/* 16 */ .tablebox td,.tablebox th{vertical-align:middle;line-height:1.4}
/* 17 */ .tablebox input[type="number"]{width:90px;max-width:100%}
/* 18 */ #studentSearch{width:min(100%,430px);margin:6px 0 12px}
/* 19 */ #studentSearchCount{color:#496f7a;font-size:13px}
/* 20 */ [role="status"]{overflow-wrap:anywhere}
/* 21 */ .panel{overflow-wrap:anywhere}
/* 22 */ .cards .card{min-width:0}
@media(max-width:760px){
 /* 23 */ nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px;scrollbar-width:thin}
 /* 24 */ nav button{flex:0 0 auto;min-height:44px;white-space:nowrap}
 /* 25 */ .top .inner{gap:12px;flex-wrap:wrap}
 /* 26 */ .top button{min-height:44px}
 /* 27 */ .toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:10px}
 /* 28 */ .toolbar input,.toolbar select{width:100%;max-width:none}
 /* 29 */ .toolbar button{width:100%;min-height:44px}
 /* 30 */ .tablebox{max-width:100%;overflow:auto}
 /* 31 */ .tablebox table{min-width:520px;font-size:13px}
 /* 32 */ .tablebox th,.tablebox td{padding:9px 8px}
 /* 33 */ .login{margin:16px 8px;padding:20px}
 /* 34 */ .form{gap:14px}
 /* 35 */ .form input,.form select,.form textarea{min-height:44px}
 /* 36 */ .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 /* 37 */ .card{padding:12px}
 /* 38 */ .card b{font-size:23px}
 /* 39 */ .absence-row{gap:10px;padding:12px 8px;min-height:48px}
 /* 40 */ .stack>div{gap:8px}
}
@media(max-width:360px){.cards{grid-template-columns:1fr}.top b{font-size:14px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.tablebox th{position:static}.tablebox tr:hover td{background:transparent}nav,.top button,#studentSearch{display:none!important}}


/* School-branded responsive navigation, based on latest original Gurukulam app. */
#navToggle,#navBackdrop,#navClose,.navSchoolBrand,.navIdentity{display:none}
@media(max-width:760px){
 #navToggle{display:inline-flex;align-items:center;margin:8px 0;min-height:44px;position:relative;z-index:2}
 #schoolNav{position:fixed;top:0;left:0;bottom:0;width:min(84vw,320px);max-height:100dvh;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;background:#f8fbff;color:#143e51;padding:16px;overflow-y:auto;box-shadow:4px 0 35px #112d5260;transform:translateX(-110%);transition:transform .18s ease;z-index:1002;margin:0;overscroll-behavior:contain;scrollbar-width:thin}
 #schoolNav.open{transform:translateX(0)}
 #schoolNav button{flex:0 0 auto;min-height:44px;text-align:left;white-space:normal;width:100%}
 #schoolNav #navClose{display:block;background:#e5eef4;color:#214d70}
 #schoolNav .navSchoolBrand{display:block;font-weight:750;font-size:17px;line-height:1.4;padding:14px 4px 2px}
 #schoolNav .navIdentity{display:block;font-size:12px;margin:0 0 10px;overflow-wrap:anywhere;color:#52717a}
 #navBackdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0b283e91;z-index:1001;padding:0;border-radius:0}
 body:has(#schoolNav.open){overflow:hidden}
 .teacher-score-card{break-inside:avoid}
}
@media(min-width:761px){#schoolNav{display:flex;flex-wrap:wrap;overflow:visible!important;transform:none!important}#schoolNav #navClose,#schoolNav .navSchoolBrand,#schoolNav .navIdentity{display:none}}
@media print{#navToggle,#navBackdrop,#schoolNav,.top,.toolbar,#scoreEntry{display:none!important}.teacher-score-card{page-break-inside:avoid;background:white!important;box-shadow:none!important}main{border:0;box-shadow:none!important}}


/* GURUKULAM PULSE: calm banking-grade layout, original school identity. */
body.pulse-experience{background:#f5f7fc;color:#182646;font-family:system-ui,-apple-system,"Noto Sans Devanagari",sans-serif}
.pulse-experience .top{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid #e7eaf4;padding:12px 22px;box-shadow:0 2px 16px #121d3a08}
.pulse-experience .top .inner{max-width:1480px}
.pulse-top-brand{display:flex;align-items:center;gap:12px;color:#283056}
.pulse-top-brand b{font-size:17px;letter-spacing:.1px}
.pulse-top-brand small{font-size:11px;color:#7a82a0;opacity:1}
.pulse-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#7135ad,#a04bb3);color:#fff;font-size:24px;box-shadow:0 5px 15px #63269520}
.pulse-top-meta{font-size:12px;color:#58617f;font-weight:600}
.pulse-live-dot{display:inline-block;width:8px;height:8px;background:#28b781;border-radius:50%;margin-right:6px}
.pulse-experience .wrap{max-width:1480px;padding:26px 24px}
.pulse-experience main{background:transparent;border:0;box-shadow:none;padding:0;min-height:65vh}
.pulse-experience #app{display:grid;grid-template-columns:244px minmax(0,1fr);grid-template-areas:"menu hero" "menu content" "menu notice";gap:18px 24px;align-items:start}
.pulse-experience #schoolNav{grid-area:menu;display:flex;flex-direction:column;flex-wrap:nowrap;position:sticky;top:98px;margin:0;padding:14px;background:white;border:1px solid #e7eaf4;border-radius:24px;box-shadow:0 12px 38px #212e6c0c;gap:5px;max-height:calc(100vh - 120px);overflow-y:auto}
.pulse-experience #schoolNav button.pulse-nav-item{display:flex;align-items:center;gap:11px;min-height:43px;padding:8px 12px;text-align:left;border:0;background:transparent;box-shadow:none;color:#5b637d;border-radius:12px;font-weight:560;font-size:13px;width:100%;flex:0 0 auto;transition:background .15s,color .15s}
.pulse-experience #schoolNav button.pulse-nav-item:hover{background:#f4f1fb;color:#62319a}
.pulse-experience #schoolNav button.pulse-nav-item.selected{color:#71359f;background:#f0e8fb;font-weight:760;box-shadow:none}
.pulse-nav-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#f5f3f9;font-size:17px;color:#75529f;flex:none}
.pulse-nav-item.selected .pulse-nav-icon{background:#e2d0fa;color:#6e2b9d}
.pulse-experience #schoolNav #logout{margin-top:9px;background:#fff1f1;color:#a83b4e;border:1px solid #f9dede;font-weight:650}
.pulse-experience #schoolNav #navClose,.pulse-experience #schoolNav .navSchoolBrand,.pulse-experience #schoolNav .navIdentity{display:none}
.pulse-experience .pulse-greeting{grid-area:hero;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 28px;border-radius:24px;color:white;background:linear-gradient(115deg,#472081,#8138ae 62%,#b150a7);box-shadow:0 14px 34px #6f39a32b;position:relative;overflow:hidden}
.pulse-greeting:after{content:"ॐ";position:absolute;right:28px;top:-42px;font-size:180px;color:#ffffff12;pointer-events:none}
.pulse-greeting h2{font-size:clamp(20px,2.6vw,30px);color:white;margin:4px 0}
.pulse-greeting p{font-size:12px;margin:2px 0;opacity:.86}
.pulse-kicker{font-size:10px;font-weight:750;letter-spacing:1.8px;color:#e9cbff}
.pulse-greeting-badge{font-size:12px;white-space:nowrap;background:#ffffff25;border:1px solid #ffffff35;border-radius:999px;padding:8px 13px;z-index:1}
.pulse-experience #content{grid-area:content;background:white;border:1px solid #e7eaf4;border-radius:24px;padding:26px;box-shadow:0 14px 40px #28306e09;min-width:0;min-height:400px}
.pulse-experience #content>h3{font-size:20px;letter-spacing:-.3px;color:#2b285a}
.pulse-experience #notice{grid-area:notice}
.pulse-experience .cards{gap:14px}
.pulse-experience .card{background:#fff;border:1px solid #eceaf4;border-radius:18px;box-shadow:0 8px 24px #291f5e08;padding:20px;position:relative}
.pulse-experience .card:nth-child(4n+1){background:#f5efff;border-color:#e7d9fb}
.pulse-experience .card:nth-child(4n+2){background:#edf6ff;border-color:#dceaff}
.pulse-experience .card:nth-child(4n+3){background:#effbf7;border-color:#dbf3e8}
.pulse-experience .card:nth-child(4n){background:#fff7ef;border-color:#f8e7d4}
.pulse-experience .card b{color:#34295d;font-size:clamp(20px,2vw,29px)}
.pulse-experience button{background:linear-gradient(120deg,#6d36a9,#914db1);border-radius:12px;font-weight:650;min-height:42px;box-shadow:none}
.pulse-experience button.secondary,.pulse-experience .toolbar button{background:#f2ecfa;color:#693b99}
.pulse-experience input,.pulse-experience select,.pulse-experience textarea{border-color:#dfe0eb;border-radius:12px;background:#fff;min-height:42px}
.pulse-experience .panel{border-color:#e7e8f2;border-radius:18px;background:#fff}
.pulse-experience .tablebox{border-radius:14px;border-color:#e7e8f2}
.pulse-experience .tablebox th{background:#f5f3fb;color:#494268;font-weight:700}
.pulse-home-actions{padding:12px 0 19px}
.pulse-home-actions h3{font-size:15px;color:#414269}
.pulse-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.pulse-experience .pulse-shortcut{display:flex;align-items:center;flex-direction:column;gap:9px;justify-content:center;border:1px solid #ede8f6;min-height:94px;background:white;color:#44375f;font-size:12px;padding:10px 4px;border-radius:15px}
.pulse-shortcut-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#f1eafa;color:#733ca6;font-size:21px}
.pulse-experience .pulse-shortcut.selected{background:#f3eafb;border-color:#d9c3ef}
.pulse-bottom-dock{display:none}
.pulse-experience #navToggle{display:none}
@media(max-width:1100px) and (min-width:761px){.pulse-experience #app{grid-template-columns:206px minmax(0,1fr);gap:14px}.pulse-experience .wrap{padding:18px}.pulse-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .pulse-experience .top{padding:10px 12px;position:sticky;top:0}
 .pulse-top-brand b{font-size:13px}.pulse-top-brand small{font-size:10px}.pulse-top-meta{display:none}.pulse-mark{width:38px;height:38px;font-size:21px;border-radius:12px}
 .pulse-experience .wrap{padding:12px 12px 94px}
 .pulse-experience #app{display:flex;flex-direction:column;gap:12px}
 .pulse-experience #navToggle{display:flex;align-self:flex-start;order:1;margin:0;background:#eee8fb;color:#69349b;border:1px solid #e2d4f7}
 .pulse-experience .pulse-greeting{order:0;width:100%;padding:21px 17px;border-radius:19px}
 .pulse-greeting h2{font-size:21px}.pulse-greeting-badge{font-size:10px}.pulse-kicker{font-size:9px}
 .pulse-experience #content{order:2;padding:17px 13px;border-radius:19px;width:100%;min-height:340px}
 .pulse-experience #notice{order:3}
 .pulse-experience #schoolNav{position:fixed;z-index:1002;top:0;left:0;bottom:0;max-height:100dvh;width:min(86vw,345px);transform:translateX(-110%);transition:transform .2s ease;display:flex;flex-direction:column;flex-wrap:nowrap;margin:0;padding:18px 14px;gap:5px;border-radius:0 22px 22px 0;box-shadow:7px 0 45px #20123a50;overflow-y:auto}
 .pulse-experience #schoolNav.open{transform:translateX(0)}
 .pulse-experience #schoolNav #navClose{display:block;background:#f0eaf8;color:#593283;text-align:left;margin-bottom:8px}
 .pulse-experience #schoolNav .navSchoolBrand{display:block;color:#442364;font-weight:800;font-size:16px;padding:8px 5px}
 .pulse-experience #schoolNav .navIdentity{display:block;color:#7b718d;font-size:12px;padding:0 5px 12px;margin:0}
 .pulse-experience #navBackdrop:not([hidden]){display:block;z-index:1001}
 .pulse-experience .pulse-bottom-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:950;justify-content:space-around;background:#fffffffa;border-top:1px solid #e9e3f2;box-shadow:0 -5px 28px #49306814;padding:9px 4px calc(9px + env(safe-area-inset-bottom));gap:1px;margin:0}
 .pulse-experience .pulse-bottom-dock button{display:grid;place-items:center;gap:3px;flex:1;min-height:45px;border-radius:11px;background:transparent;color:#75708a;padding:6px 1px;font-size:21px}
 .pulse-experience .pulse-bottom-dock button small{font-size:10px}
 .pulse-experience .pulse-bottom-dock button.selected{color:#6d329c;background:#f3ecfb}
 .pulse-experience .pulse-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .pulse-experience .pulse-shortcut{min-height:83px;font-size:11px}
 .pulse-experience #content>h3{font-size:18px}
 .pulse-experience .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pulse-experience .card{padding:14px}
 .pulse-experience .tablebox{max-width:100%;overflow-x:auto}
 .pulse-experience .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .pulse-experience .toolbar>*{min-width:0}
 .pulse-experience .toolbar button{min-height:44px}
}
@media(max-width:380px){.pulse-experience .pulse-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.pulse-greeting-badge{display:none}}
@media print{.pulse-experience .pulse-bottom-dock,.pulse-experience #schoolNav,.pulse-experience #navToggle,.pulse-experience .pulse-greeting,.pulse-experience .top,.pulse-experience .pulse-home-actions{display:none!important}.pulse-experience #app{display:block}.pulse-experience #content{border:0;box-shadow:none}}


/* Service finder / grouped menus and critical role-hidden protection */
.pulse-experience #schoolNav button[hidden],.pulse-experience #schoolNav [hidden],.pulse-experience .pulse-bottom-dock [hidden]{display:none!important}
.pulse-nav-search-wrap{display:grid;gap:8px;padding:12px 6px;font-size:11px;color:#7a7391;font-weight:700}
.pulse-experience #schoolNav .pulse-nav-search{min-height:40px;width:100%;font-size:12px;border:1px solid #e5def1;border-radius:11px;padding:9px 11px;background:#f7f4fb}
.pulse-nav-section{color:#9b96ac;font-weight:760;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;padding:14px 12px 5px}
.pulse-experience #schoolNav button.pulse-nav-item:focus-visible{outline:3px solid #b982ef;outline-offset:1px}
@media(max-width:760px){.pulse-experience #schoolNav .pulse-nav-search{font-size:16px}}

/* Premium Gurukulam staff workspace, UI-only and role-safe */
body.pulse-experience{background:#f5f6fb;color:#20243b;overflow-x:hidden}
.pulse-experience .top{display:none!important}
.pulse-experience .wrap{max-width:1600px;padding:16px 20px}
.pulse-experience #app{grid-template-columns:284px minmax(0,1fr);gap:16px 22px}
.pulse-experience #schoolNav{top:16px;max-height:calc(100dvh - 32px);padding:16px 12px;border-radius:22px;border-color:#e9e7f2}
.pulse-experience #schoolNav .navSchoolBrand{display:block!important;font-size:16px;font-weight:850;color:#41226b;padding:12px 12px 3px;line-height:1.45}
.pulse-experience #schoolNav .navIdentity{display:block!important;font-size:12px;color:#77728a;padding:2px 12px 14px}
.pulse-experience #schoolNav button.pulse-nav-item{min-height:54px;font-size:15px;font-weight:650;gap:12px;padding:5px 8px;border-radius:14px;color:#42415d}
.pulse-nav-icon{width:44px;height:44px;min-width:44px;border-radius:13px;background:#f1edf8;color:#6c3b9c}
.pulse-nav-icon svg{width:24px;height:24px}
.pulse-experience #schoolNav button.pulse-nav-item:hover{background:#f1ebfa;color:#552488;transform:none}
.pulse-experience #schoolNav button.pulse-nav-item.selected{background:#ede3fa;color:#552288;box-shadow:inset 3px 0 #7834b2;font-weight:800}
.pulse-nav-item.selected .pulse-nav-icon{background:#7436aa;color:white}
.pulse-nav-section{font-size:11px;letter-spacing:.9px;color:#79718b;padding:18px 12px 8px}
.pulse-nav-search-wrap{position:relative;margin:4px 2px 8px;padding:6px 2px;display:block}
.pulse-search-title{display:block;font-size:12px;margin:0 0 8px 6px}
.pulse-search-symbol{position:absolute;left:14px;bottom:17px;display:flex;color:#6a5390;pointer-events:none}
.pulse-search-symbol svg{width:20px;height:20px}
.pulse-experience #schoolNav .pulse-nav-search{height:48px;padding:10px 10px 10px 43px;font-size:14px;background:#f8f6fc}
.pulse-experience .pulse-greeting{padding:21px 24px;border-radius:20px;background:linear-gradient(112deg,#352065,#633394 68%,#8751a4)}
.pulse-experience #content{border-radius:20px;padding:24px;max-width:100%;overflow-wrap:anywhere}
.pulse-experience #content .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}
.pulse-experience #content .card{min-width:0}
.pulse-experience #content .tablebox{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.pulse-experience #content table{min-width:max-content}
.pulse-experience #content .form{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:end}
.pulse-experience #content input,.pulse-experience #content select,.pulse-experience #content textarea{max-width:100%;min-width:0}
.pulse-experience #content button{min-height:44px}
.pulse-experience #content [role="alert"]{padding:14px 18px;background:#fff1f1;color:#912b42;border-radius:12px}
.pulse-experience #content [role="status"]{line-height:1.6}
.pulse-experience .pulse-shortcut-icon svg{width:25px;height:25px}
.pulse-experience .pulse-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}
.pulse-experience button:focus-visible{outline:3px solid #f0ad44;outline-offset:2px}
@media(min-width:761px) and (max-width:1100px){.pulse-experience #app{grid-template-columns:244px minmax(0,1fr)}.pulse-experience .pulse-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .pulse-experience .wrap{padding:10px 10px 94px;max-width:100vw}
 .pulse-experience #app{display:flex;gap:10px}
 .pulse-experience #schoolNav{top:0;left:0;width:min(88vw,360px);max-height:100dvh;border-radius:0 20px 20px 0;padding:14px 10px}
 .pulse-experience #schoolNav button.pulse-nav-item{min-height:55px}
 .pulse-experience #schoolNav #navClose{display:flex;align-items:center;min-height:45px}
 .pulse-experience #navToggle{min-height:48px;display:flex;align-items:center;gap:10px;order:0}
 .pulse-experience #navToggle svg{width:22px;height:22px}
 .pulse-experience .pulse-greeting{order:1;padding:17px;border-radius:16px;min-width:0}
 .pulse-experience #content{order:2;padding:14px 11px;border-radius:16px;min-width:0}
 .pulse-experience .pulse-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pulse-experience .pulse-bottom-dock button{min-height:54px;font-size:13px;gap:5px}
 .pulse-experience .pulse-bottom-dock button svg{width:24px;height:24px}
 .pulse-experience .pulse-bottom-dock button small{font-size:11px}
 .pulse-experience #content .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pulse-experience #content .toolbar input{width:100%;max-width:100%}
 .pulse-experience #content .form{grid-template-columns:minmax(0,1fr)}
 .pulse-experience #content .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pulse-experience #content table{font-size:13px}
 .pulse-experience #content td,.pulse-experience #content th{padding:10px}
}
@media(max-width:380px){.pulse-experience #content .cards{grid-template-columns:minmax(0,1fr)}.pulse-experience .pulse-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.pulse-experience #schoolNav,.pulse-experience button{transition:none!important}}

/* Collapsible staff-service navigation; visually distinct field labels */
.pulse-experience #schoolNav .pulse-service-group{display:block;margin:5px 1px;border:1px solid #e7e2f0;border-radius:15px;background:#fff;overflow:hidden;flex:none}
.pulse-experience #schoolNav .pulse-service-group.expanded{border-color:#c9b6e5;box-shadow:0 5px 17px #482b7b0e}
.pulse-experience #schoolNav .pulse-group-trigger{width:100%;display:flex;align-items:center;gap:9px;min-height:58px;padding:7px 9px;text-align:left;background:#f8f6fc;color:#382753;border:0;border-radius:0;box-shadow:none;font-size:14px;font-weight:800}
.pulse-experience #schoolNav .pulse-group-trigger:hover{background:#efe8fa;color:#522583;transform:none}
.pulse-experience #schoolNav .pulse-service-group.expanded .pulse-group-trigger{background:#eee4f9;color:#5b258c}
.pulse-group-symbol{width:38px;height:38px;display:grid;place-items:center;background:white;color:#673398;border-radius:11px;flex:none}
.pulse-group-symbol svg{width:22px;height:22px}
.pulse-group-name{flex:1;min-width:0}
.pulse-group-count{font-size:11px;font-weight:800;border-radius:99px;background:#e8dff5;color:#60308f;min-width:25px;padding:4px;text-align:center}
.pulse-group-chevron{font-size:20px;transition:transform .16s}
.expanded .pulse-group-chevron{transform:rotate(180deg)}
.pulse-group-items{padding:6px;background:#fff;display:grid;gap:4px}
.pulse-group-items[hidden],.pulse-service-group[hidden]{display:none!important}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item{border:1px solid #eeeaf5;background:#fdfcff;min-height:52px;font-size:14px;font-weight:650;margin:0}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item.selected{border-color:#a87cd4;background:#efe5fb;box-shadow:inset 3px 0 #7136aa}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item[hidden]{display:none!important}
.pulse-experience #content label:not(.check):not(.absence-row):not(.hosteller-choice){display:block;font-size:14px;font-weight:750;color:#302948;margin:5px 0;line-height:1.5}
.pulse-experience #content label input:not([type=checkbox]),.pulse-experience #content label select,.pulse-experience #content label textarea{display:block;margin-top:7px}
.pulse-experience #content input:not([type=checkbox]),.pulse-experience #content select,.pulse-experience #content textarea{border:1.5px solid #bcb7cd;background:#fff;color:#27243e;border-radius:11px;min-height:45px}
.pulse-experience #content input::placeholder,.pulse-experience #content textarea::placeholder{color:#797586}
.pulse-experience #content input:focus,.pulse-experience #content select:focus,.pulse-experience #content textarea:focus{border-color:#7140a4;box-shadow:0 0 0 3px #7444a61b}
.pulse-experience #content .panel{border:1px solid #d9d0e5;padding:17px}
.pulse-experience #content .toolbar label{padding:10px 12px;background:#f0ebf8;border:1px solid #dfd1ee}
.pulse-experience #content th{color:#3b2b5a;background:#eee9f7;border-bottom:2px solid #d2c5e1}
.pulse-experience #content td{border-bottom:1px solid #e3deeb}
.pulse-experience #content .tablebox{border:1px solid #ded7e9;border-radius:13px}
@media(max-width:760px){.pulse-experience #schoolNav .pulse-group-trigger{min-height:58px}.pulse-experience #content label:not(.check){font-size:14px}.pulse-experience #content .panel{padding:12px}}


/* 2026 refreshed pop-up banking-inspired school workspace */
.pulse-experience{--ink:#25213e;--line:#e5e5f0;--muted:#686985}
.pulse-experience .wrap{padding:18px 22px}
.pulse-experience #app{grid-template-columns:248px minmax(0,1fr);gap:18px 24px}
.pulse-experience #schoolNav{border-radius:22px;padding:15px 12px;overflow-y:auto;background:#fff;box-shadow:0 12px 36px #1a23400d}
.pulse-experience #schoolNav .navSchoolBrand{font-size:17px;letter-spacing:-.4px;line-height:1.4;color:#272050;margin-bottom:2px;padding-top:7px}
.pulse-experience #schoolNav .navIdentity{font-size:12px;color:#6d6680}
.pulse-experience #schoolNav .pulse-nav-search{font-size:13px;height:46px}
.pulse-experience #schoolNav .pulse-service-group{border:0;margin:3px 0;border-radius:14px;overflow:visible;box-shadow:none;background:transparent}
.pulse-experience #schoolNav .pulse-group-trigger{min-height:59px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:8px 10px;box-shadow:0 3px 8px #16113c07;color:#30294a}
.pulse-experience #schoolNav .pulse-group-trigger:hover{transform:translateX(2px);box-shadow:0 5px 16px #1a113c15}
.pulse-experience #schoolNav .pulse-service-group.current .pulse-group-trigger{border-width:2px}
.pulse-experience #schoolNav .pulse-service-group[data-group="Overview"]{--group:#6542bb;--tint:#f1eaff}
.pulse-experience #schoolNav .pulse-service-group[data-group="Academics"]{--group:#126fb2;--tint:#e7f3ff}
.pulse-experience #schoolNav .pulse-service-group[data-group="Records"]{--group:#07846d;--tint:#e5f8f1}
.pulse-experience #schoolNav .pulse-service-group[data-group="Administration"]{--group:#b65a1d;--tint:#fff2e4}
.pulse-experience #schoolNav .pulse-service-group[data-group="Finance"]{--group:#b03575;--tint:#ffe9f3}
.pulse-experience #schoolNav .pulse-service-group[data-group="More"]{--group:#63748b;--tint:#eef1f7}
.pulse-experience #schoolNav .pulse-service-group .pulse-group-trigger{border-left:4px solid var(--group)}
.pulse-experience #schoolNav .pulse-service-group .pulse-group-symbol{color:#fff;background:var(--group);width:41px;height:41px;border-radius:13px}
.pulse-experience #schoolNav .pulse-service-group .pulse-group-count{color:var(--group);background:var(--tint)}
.pulse-experience #schoolNav .pulse-service-group.expanded .pulse-group-trigger,.pulse-experience #schoolNav .pulse-service-group.current .pulse-group-trigger{color:var(--group);background:var(--tint);border-color:var(--group)}
.pulse-experience #schoolNav .pulse-group-items{position:fixed;z-index:1200;top:var(--popup-top,100px);left:var(--popup-left,280px);width:310px;max-width:calc(100vw - 24px);max-height:min(72vh,650px);overflow-y:auto;display:grid;grid-template-columns:1fr;gap:7px;padding:12px;border:1px solid #e2daec;border-radius:19px;background:#fff;box-shadow:0 24px 68px #24153e38}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item{background:#fff;border:1px solid #e8e7ef;padding:7px 9px;min-height:60px;font-weight:650;border-radius:12px;color:#302b45;transition:background .15s,border .15s}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item:hover{background:var(--tint);border-color:var(--group);color:var(--group)}
.pulse-experience #schoolNav .pulse-group-items .pulse-nav-icon{background:var(--tint);color:var(--group);width:42px;height:42px;min-width:42px}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item.selected{background:var(--tint);color:var(--group);border-color:var(--group)}
.pulse-experience .pulse-greeting{min-height:140px;padding:20px 26px;border-radius:19px;background:linear-gradient(120deg,#402574,#6f3d9f 70%,#9249a3)}
.pulse-experience .pulse-greeting:after{font-size:130px;top:-12px}
.pulse-experience .pulse-greeting h2{font-size:clamp(23px,2.8vw,32px)}
.pulse-experience #content{min-height:280px;padding:24px;border-radius:20px}
.pulse-experience #content:empty{min-height:180px}
.pulse-experience #content .cards{gap:14px}
.pulse-experience #content .card{border-radius:15px;border:1px solid #e5e5ef;box-shadow:0 3px 11px #20224009}
.pulse-experience #content .panel{border-left:4px solid #8a63ba}
.pulse-experience #content .form>label{border:1px solid #e4deec;padding:12px;border-radius:12px;background:#faf9fd}
.pulse-experience #content input:not([type=checkbox]),.pulse-experience #content select,.pulse-experience #content textarea{background:#fff}
.pulse-experience .pulse-shortcut{border-radius:13px}
.pulse-experience .pulse-shortcut:nth-child(6n+1) .pulse-shortcut-icon{background:#ece6fb;color:#6036a6}
.pulse-experience .pulse-shortcut:nth-child(6n+2) .pulse-shortcut-icon{background:#e4f6f2;color:#008b77}
.pulse-experience .pulse-shortcut:nth-child(6n+3) .pulse-shortcut-icon{background:#e6efff;color:#2465b1}
.pulse-experience .pulse-shortcut:nth-child(6n+4) .pulse-shortcut-icon{background:#fff0e3;color:#ba6829}
.pulse-experience .pulse-shortcut:nth-child(6n+5) .pulse-shortcut-icon{background:#fce8f0;color:#b43476}
.pulse-experience .pulse-shortcut:nth-child(6n) .pulse-shortcut-icon{background:#edf3e9;color:#49834a}
@media(max-width:760px){
 .pulse-experience .wrap{padding:10px 9px 94px}
 .pulse-experience #app{display:flex;gap:10px}
 .pulse-experience #schoolNav{width:min(91vw,360px);top:0;bottom:0;overflow-y:auto;border-radius:0 19px 19px 0;padding:12px}
 .pulse-experience #schoolNav .pulse-group-items{position:static;top:auto;left:auto;width:100%;max-width:none;max-height:none;box-shadow:none;border:0;border-radius:0 0 13px 13px;background:#fcfbff;padding:6px}
 .pulse-experience #schoolNav .pulse-service-group.expanded{border:1px solid #e7dfef;overflow:visible}
 .pulse-experience #schoolNav .pulse-group-trigger{min-height:59px}
 .pulse-experience .pulse-greeting{min-height:122px;padding:15px}
 .pulse-experience .pulse-greeting:after{font-size:99px;right:8px}
 .pulse-experience #content{min-height:260px;padding:14px 12px}
 .pulse-experience #content .form>label{padding:10px}
 .pulse-experience .pulse-bottom-dock button.selected{color:#6039a5;border-top:2px solid #7141ad}
}
@media(min-width:761px) and (max-width:1050px){.pulse-experience #app{grid-template-columns:225px minmax(0,1fr)}.pulse-experience #schoolNav .pulse-group-items{width:280px}}


/* Gurukulam 2026 soft multicolour identity and Hindi typography.
   Local Noto Sans Devanagari preferred; Windows Nirmala UI and Mangal are fallbacks. */
:root{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",system-ui,sans-serif}
html,body,button,input,select,textarea{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",system-ui,sans-serif}
body.pulse-experience{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",system-ui,sans-serif;background:linear-gradient(115deg,#fffaf4 0%,#f7faf6 42%,#f9f5fb 100%);color:#343847}
.pulse-experience #schoolNav{background:#fffefa;border:1px solid #ece8df;box-shadow:0 11px 34px #5146330c}
.pulse-experience #schoolNav .navSchoolBrand{color:#54452d}
.pulse-experience #schoolNav .navIdentity{color:#6c756d}
.pulse-experience #schoolNav .pulse-service-group[data-group="Overview"]{--group:#8a5eab;--tint:#f3ecfa}
.pulse-experience #schoolNav .pulse-service-group[data-group="Academics"]{--group:#327f66;--tint:#e9f7ef}
.pulse-experience #schoolNav .pulse-service-group[data-group="Records"]{--group:#b77b36;--tint:#fff3e4}
.pulse-experience #schoolNav .pulse-service-group[data-group="Administration"]{--group:#bf716c;--tint:#fff0ef}
.pulse-experience #schoolNav .pulse-service-group[data-group="Finance"]{--group:#5e85a5;--tint:#ecf4fa}
.pulse-experience #schoolNav .pulse-service-group[data-group="More"]{--group:#68796d;--tint:#f0f5ef}
.pulse-experience #schoolNav .pulse-service-group .pulse-group-trigger{background:#fffefd;border-color:#e9e5dc;color:#3e4246;font-weight:750}
.pulse-experience #schoolNav .pulse-service-group .pulse-group-symbol{background:var(--tint);color:var(--group);border:1px solid color-mix(in srgb,var(--group) 20%,white)}
.pulse-experience #schoolNav .pulse-service-group.expanded .pulse-group-trigger,.pulse-experience #schoolNav .pulse-service-group.current .pulse-group-trigger{background:var(--tint)}
.pulse-experience #schoolNav .pulse-group-items{border-color:#e8e4dc;background:#fffefb}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item{background:#fffefa;border-color:#e9e5df;color:#3d4144}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item.selected{color:var(--group);background:var(--tint)}
.pulse-experience #schoolNav .pulse-nav-search{background:#fff;border:1px solid #deded6;color:#42494a}
.pulse-experience .pulse-greeting{background:linear-gradient(112deg,#e9f4e9 0%,#fff3df 55%,#f1e9f6 100%);color:#35473e;border:1px solid #e2e7de;box-shadow:0 12px 25px #6657440d}
.pulse-experience .pulse-greeting h2{color:#405547}
.pulse-experience .pulse-greeting p{color:#566a60;opacity:1}
.pulse-experience .pulse-greeting .pulse-kicker{color:#64806f}
.pulse-experience .pulse-greeting-badge{color:#4e6154;background:#ffffffba;border-color:#dce5d9}
.pulse-experience .pulse-greeting:after{color:#7c9d7c12}
.pulse-experience #content{background:#fffefb;border-color:#e9e6de;box-shadow:0 10px 33px #4d47310a}
.pulse-experience #content>h3{color:#405d4d}
.pulse-experience #content .card:nth-child(4n+1){background:#f0f7ef;border-color:#dcebd9}
.pulse-experience #content .card:nth-child(4n+2){background:#fff6e9;border-color:#f1e3ce}
.pulse-experience #content .card:nth-child(4n+3){background:#f7eff7;border-color:#e9dce8}
.pulse-experience #content .card:nth-child(4n){background:#eef5f8;border-color:#dbe9ee}
.pulse-experience #content .card b{color:#3a5146}
.pulse-experience #content .panel{border-color:#e7e4dc;border-left-color:#8aab88;background:#fffdf8}
.pulse-experience #content .form>label{background:#f8f8f3;border-color:#e5e7df;color:#46594a}
.pulse-experience #content .toolbar label{background:#f0f7ed;border-color:#dfebd7;color:#425a44}
.pulse-experience #content th{background:#eff5eb;color:#415b46;border-bottom-color:#cfdcc9}
.pulse-experience #content td{border-bottom-color:#e9e9e2}
.pulse-experience #content button:not(.secondary){background:#558878;color:#fff}
.pulse-experience #content button.secondary,.pulse-experience #content .toolbar button{background:#edf5ed;color:#3d765f}
.pulse-experience .pulse-shortcut:nth-child(6n+1) .pulse-shortcut-icon{background:#f3eaf9;color:#805aa0}
.pulse-experience .pulse-shortcut:nth-child(6n+2) .pulse-shortcut-icon{background:#e8f6ed;color:#388167}
.pulse-experience .pulse-shortcut:nth-child(6n+3) .pulse-shortcut-icon{background:#fff1df;color:#ad7737}
.pulse-experience .pulse-shortcut:nth-child(6n+4) .pulse-shortcut-icon{background:#fff0ed;color:#b96f63}
.pulse-experience .pulse-shortcut:nth-child(6n+5) .pulse-shortcut-icon{background:#edf5fa;color:#5f86a5}
.pulse-experience .pulse-shortcut:nth-child(6n) .pulse-shortcut-icon{background:#f4f3e5;color:#858b42}
.pulse-experience .pulse-bottom-dock{background:#fffefa;border-top-color:#e8e6de}
.pulse-experience .pulse-bottom-dock button.selected{background:#edf7ed;color:#417860}
@media(max-width:760px){.pulse-experience #schoolNav{background:#fffefa}.pulse-experience .pulse-group-items{background:#fffefa!important}.pulse-experience .pulse-greeting{background:linear-gradient(115deg,#eaf7e9,#fff1df 60%,#f4ecfa)}}


/* Compact horizontal staff header: replaces giant welcome card */
.pulse-experience #app{grid-template-rows:auto minmax(0,1fr) auto;gap:12px 20px}
.pulse-experience #schoolNav{grid-row:1/span 3}
.pulse-experience .pulse-greeting.pulse-compact-strip{grid-area:hero;min-height:66px;height:auto;padding:11px 18px;border-radius:15px;background:#fffdf8;color:#394c40;border:1px solid #e3e8de;box-shadow:0 4px 16px #423d2610;display:flex;align-items:center;justify-content:space-between;gap:10px}
.pulse-experience .pulse-greeting.pulse-compact-strip:after{display:none!important}
.pulse-strip-main{display:flex;align-items:center;gap:11px;min-width:0}
.pulse-strip-badge{display:grid;place-items:center;width:42px;height:42px;min-width:42px;background:#eaf5eb;color:#417a60;border-radius:11px}
.pulse-strip-badge svg{height:22px;width:22px}
.pulse-strip-copy{display:grid;gap:2px;min-width:0}
.pulse-strip-copy strong{font-size:17px;font-weight:800;color:#385241;line-height:1.35}
.pulse-strip-copy span{font-size:12px;color:#68796b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pulse-strip-date{font-size:12px;color:#637c64;background:#f0f7ef;padding:8px 11px;border:1px solid #e0eadc;border-radius:9px;white-space:nowrap}
.pulse-experience #schoolNav{padding-top:13px}
.pulse-experience #schoolNav .pulse-nav-search-wrap{margin-top:0}
.pulse-experience #content{min-height:200px}
.pulse-experience #content .pulse-home-actions{padding-top:8px}
.pulse-experience #content .card{transition:transform .15s ease,box-shadow .15s ease}
@media(hover:hover){.pulse-experience #content .card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #29263112}}
@media(max-width:760px){
 .pulse-experience #app{display:flex;flex-direction:column;gap:10px}
 .pulse-experience #schoolNav{grid-row:auto}
 .pulse-experience .pulse-greeting.pulse-compact-strip{order:1;min-height:60px;padding:9px 11px;width:100%;border-radius:12px}
 .pulse-strip-badge{width:36px;height:36px;min-width:36px}
 .pulse-strip-copy strong{font-size:15px}
 .pulse-strip-copy span{font-size:11px;max-width:53vw}
 .pulse-strip-date{padding:7px;font-size:10px}
 .pulse-experience #navToggle{order:0}
 .pulse-experience #content{order:2;min-height:200px}
}
@media(max-width:370px){.pulse-strip-date{display:none}.pulse-strip-copy span{max-width:68vw}}
@media print{.pulse-experience .pulse-compact-strip{display:none!important}}


/* Dark compact header and contained navigation popup — October UI refinement */
.pulse-experience .pulse-greeting.pulse-compact-strip{
 background:linear-gradient(108deg,#254c45 0%,#335c4b 58%,#465c48 100%)!important;
 border:1px solid #2b5045;color:#fff!important;min-height:60px;
 padding:9px 15px;box-shadow:0 5px 16px #273e3429
}
.pulse-experience .pulse-strip-copy strong{color:#fff!important;font-weight:800}
.pulse-experience .pulse-strip-copy span{color:#e0f0e3!important;opacity:1}
.pulse-experience .pulse-strip-badge{background:#ffffff22;color:#fff;border:1px solid #ffffff33}
.pulse-experience .pulse-strip-date{background:#ffffff19;color:#f8fff8;border:1px solid #ffffff3b}
.pulse-experience #schoolNav{overflow-y:auto;overflow-x:hidden}
.pulse-experience #schoolNav .pulse-group-items{
 top:var(--popup-top,120px)!important;left:var(--popup-left,25px)!important;
 width:230px;max-width:calc(100vw - 24px);max-height:min(350px,65dvh);
 box-shadow:0 13px 32px #273a2b3a;border:1px solid #d9ded4;
 z-index:1250;padding:9px;border-radius:15px
}
.pulse-experience #schoolNav .pulse-group-trigger{gap:7px;padding:8px;min-width:0}
.pulse-experience #schoolNav .pulse-group-name{min-width:0;overflow-wrap:anywhere;word-break:normal;line-height:1.35;font-size:13px}
.pulse-experience #schoolNav .pulse-group-count{flex-shrink:0}
.pulse-experience #schoolNav .pulse-group-chevron{flex-shrink:0}
.pulse-experience #schoolNav .pulse-group-items button.pulse-nav-item{min-height:52px;font-size:13px;gap:8px;padding:5px 8px}
.pulse-experience #schoolNav .pulse-group-items .pulse-nav-icon{height:37px;width:37px;min-width:37px}
.pulse-experience #schoolNav .pulse-group-items .pulse-nav-icon svg{height:21px;width:21px}
.pulse-experience #content .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:12px}
.pulse-experience #content .card{padding:15px;border-radius:15px}
.pulse-experience #content .card b{font-size:26px;font-weight:800}
.pulse-experience #content .tablebox{width:100%;overflow-x:auto}
.pulse-experience #content .toolbar{gap:9px}
.pulse-experience #content button{transition:filter .15s ease,transform .15s ease}
.pulse-experience #content button:focus-visible,.pulse-experience #schoolNav button:focus-visible{outline:3px solid #d09c48;outline-offset:2px}
@media(max-width:760px){
 .pulse-experience #schoolNav{overflow-y:auto;overflow-x:hidden}
 .pulse-experience #schoolNav .pulse-group-items{position:static!important;left:auto!important;top:auto!important;width:100%;max-height:unset;border-radius:0 0 12px 12px;box-shadow:none}
 .pulse-experience .pulse-greeting.pulse-compact-strip{min-height:56px;padding:8px 10px}
 .pulse-experience .pulse-strip-copy span{white-space:nowrap}
}


/* Shared academic, administrative and finance workspace refinements */
.pulse-experience #content{container-type:inline-size}
.pulse-experience #content .school-section-heading{font-size:clamp(17px,2vw,22px);letter-spacing:0;line-height:1.45;border-left:4px solid #598a6b;padding-left:10px;margin:15px 0;color:#355c43}
.pulse-experience #content .school-table-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 8px;padding:10px;background:#f8faf5;border:1px solid #e0e8dc;border-radius:12px}
.pulse-experience #content .school-table-tools .school-table-filter{flex:1 1 170px;width:auto;max-width:340px;min-width:0;background:white}
.pulse-experience #content .school-table-tools button{min-height:39px;padding:8px 12px;background:#e5f2e8;color:#27664a;border:1px solid #cfe4d4;box-shadow:none;font-size:13px}
.pulse-experience #content .school-table-count{font-size:12px;font-weight:750;color:#476653;margin-right:auto}
.pulse-experience #content .tablebox:focus-visible{outline:3px solid #b88947;outline-offset:2px}
.pulse-experience #content table .school-filtered-out{display:none!important}
.pulse-experience #content table tbody tr:hover td{background:#f2f8ef}
.pulse-experience #content table thead th{position:sticky;top:0;z-index:2}
.pulse-experience #content table{font-variant-numeric:tabular-nums;line-height:1.5}
.pulse-experience #content .school-enhanced-form{padding:14px;background:#fffefb;border:1px solid #e2e8de;border-radius:15px}
.pulse-experience #content .school-enhanced-form input:disabled,.pulse-experience #content .school-enhanced-form select:disabled{background:#f1f1ed;cursor:not-allowed}
.pulse-experience #content .school-enhanced-form button.school-submitting{filter:saturate(.6);opacity:.78}
.pulse-experience #content .school-status-block{border-radius:11px;overflow-wrap:anywhere}
.pulse-experience #content .school-responsive-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.pulse-experience #content .school-responsive-cards .card{min-width:0;overflow-wrap:anywhere}
.pulse-experience #content .panel{overflow-wrap:anywhere}
.pulse-experience #content .tablebox{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.pulse-experience #content input[type="checkbox"]{accent-color:#378468;cursor:pointer}
.pulse-experience #content input[type="date"],.pulse-experience #content input[type="month"]{min-width:0}
@container(max-width:550px){.pulse-experience #content .school-table-tools{display:grid;grid-template-columns:minmax(0,1fr) auto}.pulse-experience #content .school-table-tools .school-table-filter{max-width:none;width:100%}.pulse-experience #content .school-table-export{grid-column:1/-1}}
@media(max-width:760px){.pulse-experience #content .school-enhanced-form{padding:10px}.pulse-experience #content .school-table-tools{padding:8px}.pulse-experience #content .school-responsive-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.pulse-experience #content .school-responsive-cards{grid-template-columns:1fr}}
@media print{.pulse-experience #content .school-table-tools{display:none!important}.pulse-experience #content .tablebox{overflow:visible!important}}


/* Old-app-inspired Gurukulam comfort theme (2026) — restore generous, calm, colorful controls */
body.pulse-experience{background:linear-gradient(135deg,#f0f8fd 0%,#f5f8f5 49%,#fff8ef 100%);color:#213e43}
.pulse-experience .wrap{max-width:1540px}
.pulse-experience #schoolNav{background:#fff;border:1px solid #dce6e3;box-shadow:0 10px 28px #174c4910}
.pulse-experience #schoolNav .pulse-group-trigger{background:#fff;border-color:#dce5e3;box-shadow:0 2px 8px #1b554a0c}
.pulse-experience #schoolNav .pulse-service-group[data-group="Overview"]{--group:#276ab1;--tint:#e9f3ff}
.pulse-experience #schoolNav .pulse-service-group[data-group="Academics"]{--group:#138a7b;--tint:#e5f7f1}
.pulse-experience #schoolNav .pulse-service-group[data-group="Records"]{--group:#a96532;--tint:#fff2e7}
.pulse-experience #schoolNav .pulse-service-group[data-group="Administration"]{--group:#8050a9;--tint:#f3ebfc}
.pulse-experience #schoolNav .pulse-service-group[data-group="Finance"]{--group:#a94571;--tint:#fff0f5}
.pulse-experience #schoolNav .pulse-group-name{font-size:14px;font-weight:750}
.pulse-experience #schoolNav .pulse-nav-search{background:#f8fbfa}
.pulse-experience #content{background:#fff;border:1px solid #dfe7e5;box-shadow:0 12px 30px #174c4910}
.pulse-experience #content .card:nth-child(4n+1){background:#eaf5ff;border-color:#c8e1f8}
.pulse-experience #content .card:nth-child(4n+2){background:#e9f8ed;border-color:#ccebd5}
.pulse-experience #content .card:nth-child(4n+3){background:#fff2e8;border-color:#f5dbbf}
.pulse-experience #content .card:nth-child(4n){background:#f4ecfc;border-color:#dfcef2}
.pulse-experience #content .card b{color:#204b4e}
.pulse-experience #content .panel{background:#fff;border:1px solid #dfe8e4;border-left:4px solid #138a7b}
.pulse-experience #content .school-section-heading{color:#19556a;border-left-color:#138a7b}
.pulse-experience #content .tablebox th{background:#e9f3ff;color:#1b547d;border-color:#c9dfef}
.pulse-experience #content .tablebox tbody tr:nth-child(even) td{background:#f9fcff}
.pulse-experience #content .tablebox tbody tr:hover td{background:#eaf8f2}
.pulse-experience #content button:not(.secondary){background:linear-gradient(110deg,#1474a5,#0b8d80);color:#fff}
.pulse-experience #content button.secondary{background:#e6f3f0;color:#156b64}
.pulse-experience #content input:not([type=checkbox]),.pulse-experience #content select,.pulse-experience #content textarea{border-color:#b6d1d3;background:#fff}
.pulse-experience #content .school-enhanced-form{background:#f9fcfa;border-color:#d6e6e1}
.pulse-experience #content .school-table-tools{background:#f1f8f7;border-color:#d2e7e1}
.pulse-experience .pulse-greeting.pulse-compact-strip{background:linear-gradient(105deg,#164d56,#1b676a,#257065)!important}
.pulse-experience .pulse-strip-badge{background:#ffffff24}
.pulse-experience #content .message{background:#e1f8e9;border-left-color:#178c62;color:#176040}
.pulse-experience #content .error{background:#fff0ed;border-left-color:#c94853;color:#9a3042}
.pulse-experience #content .absence-row:has(input:checked){background:#ffebed;color:#a52d44}
.pulse-experience #content input[type=checkbox]{accent-color:#168f78}
.pulse-experience .pulse-shortcut{background:white;border-color:#dbe7e4;box-shadow:0 2px 8px #174c4910}
.pulse-experience .pulse-shortcut:nth-child(6n+1) .pulse-shortcut-icon{background:#e6f1ff;color:#1c65ad}
.pulse-experience .pulse-shortcut:nth-child(6n+2) .pulse-shortcut-icon{background:#e3f7ed;color:#148769}
.pulse-experience .pulse-shortcut:nth-child(6n+3) .pulse-shortcut-icon{background:#fff0e5;color:#af6430}
.pulse-experience .pulse-shortcut:nth-child(6n+4) .pulse-shortcut-icon{background:#f3eaff;color:#7b4cb1}
.pulse-experience .pulse-shortcut:nth-child(6n+5) .pulse-shortcut-icon{background:#ffeaf1;color:#ae4773}
.pulse-experience .pulse-shortcut:nth-child(6n) .pulse-shortcut-icon{background:#e8f5f9;color:#257e99}
@media(max-width:760px){.pulse-experience .wrap{padding:9px 9px 92px}.pulse-experience #content{border-radius:14px}.pulse-experience #schoolNav .pulse-group-items{background:#fff!important}}


/* Original Gurukulam: practical authenticated class/subject context */
.pulse-experience #content .old-parity-snapshot{margin-top:16px;background:#fbfefa;border:1px solid #d9e8de;border-left:4px solid #2d8b78;padding:16px}
.pulse-experience #content .old-parity-snapshot>h3{color:#255d55}
.old-parity-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.old-parity-chip{display:inline-flex;align-items:center;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:750;color:#226b69;background:#e6f5f1;border:1px solid #cde8e2}
.old-parity-chip:nth-child(3n+2){background:#fff3e9;color:#a06131;border-color:#f0ddcb}
.old-parity-chip:nth-child(3n){background:#f3edfc;color:#7750a2;border-color:#e2d4f3}
.old-parity-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.old-parity-metrics span{border-radius:12px;padding:12px;background:#f1f6fa;border:1px solid #dce9ef;color:#335967;font-weight:650}
.old-parity-metrics span:nth-child(2){background:#e8f7ed;color:#276b46;border-color:#d5e8d9}
.old-parity-metrics span:nth-child(3){background:#fff0e7;color:#985a32;border-color:#f0deca}
.old-parity-metrics b{font-size:22px;margin-left:5px}
@media(max-width:600px){.old-parity-metrics{grid-template-columns:1fr}.pulse-experience #content .old-parity-snapshot{padding:11px}}


/* User-requested full-width dashboard and on-demand navigation (all breakpoints) */
body.pulse-experience{overflow-x:hidden}
.pulse-experience .wrap{max-width:none!important;width:100%!important;padding:12px 16px!important}
.pulse-experience main{width:100%;max-width:none;min-width:0}
.pulse-experience #app{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"hero" "content" "notice"!important;grid-template-rows:auto minmax(0,1fr) auto!important;width:100%;min-width:0;max-width:none;gap:12px!important}
.pulse-experience #content{grid-area:content;width:100%;min-width:0;max-width:none;overflow-x:auto}
.pulse-experience .pulse-greeting.pulse-compact-strip{grid-area:hero;width:100%;padding-right:145px;min-width:0}
.pulse-experience #notice{grid-area:notice}
.pulse-experience #schoolNav{
 display:flex!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;
 width:min(360px,91vw)!important;max-height:100dvh!important;overflow-y:auto;overflow-x:hidden;
 z-index:1502!important;transform:translateX(-110%)!important;transition:transform .24s ease!important;
 margin:0!important;padding:15px!important;border-radius:0 20px 20px 0!important;
 box-shadow:8px 0 38px #1c342b29!important;
}
.pulse-experience #schoolNav.open{transform:translateX(0)!important}
.pulse-experience #schoolNav #navClose{display:block!important;background:#edf7f0;color:#205b4b;border:1px solid #d6e6da;margin-bottom:10px;font-weight:750;text-align:left;min-height:45px}
.pulse-experience #navToggle{display:flex!important;position:fixed!important;right:27px;top:22px;align-items:center;justify-content:center;gap:8px;z-index:1100;min-height:44px;padding:9px 14px;background:#eaf5eb;color:#1e604d;border:1px solid #d4e7d9;border-radius:12px;box-shadow:0 2px 12px #163e2b1c;cursor:pointer}
.pulse-experience #navToggle svg{width:21px;height:21px}
.pulse-experience #navBackdrop:not([hidden]){display:block!important;position:fixed!important;inset:0!important;z-index:1501!important;background:#142b2799!important;border:0;border-radius:0;box-shadow:none}
.pulse-experience #navBackdrop[hidden]{display:none!important}
.pulse-experience #schoolNav[aria-hidden="true"]{pointer-events:none}
.pulse-experience #schoolNav .pulse-group-items{position:static!important;top:auto!important;left:auto!important;width:100%!important;max-width:none!important;max-height:40dvh!important;overflow:auto;box-shadow:none!important;border:1px solid #e4e9e1;border-radius:12px;padding:7px}
.pulse-experience #schoolNav .pulse-service-group.expanded{border-radius:13px;background:#fff}
.pulse-experience #schoolNav .pulse-group-trigger{width:100%}
.pulse-experience #content .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
.pulse-experience #content .tablebox{width:100%;max-width:100%;overflow-x:auto}
@media(max-width:760px){
 .pulse-experience .wrap{padding:10px 9px 92px!important}
 .pulse-experience #app{display:flex!important;flex-direction:column!important;gap:10px!important}
 .pulse-experience #navToggle{right:14px;top:14px;min-height:44px;padding:8px 10px}
 .pulse-experience .pulse-greeting.pulse-compact-strip{order:0;padding-right:125px;min-height:58px}
 .pulse-experience #content{order:1;width:100%;overflow-x:hidden}
 .pulse-experience #notice{order:2}
 .pulse-experience #schoolNav{width:min(355px,94vw)!important}
}
@media(max-width:420px){.pulse-experience #navToggle{right:12px;top:12px;font-size:12px}.pulse-experience .pulse-greeting.pulse-compact-strip{padding-right:112px}.pulse-experience .pulse-strip-date{display:none}}
@media(prefers-reduced-motion:reduce){.pulse-experience #schoolNav{transition:none!important}}
@media print{.pulse-experience #navToggle,.pulse-experience #navBackdrop,.pulse-experience #schoolNav{display:none!important}.pulse-experience #app{display:block!important}}

/* Drawer launch control belongs at the left edge on every screen. */
.pulse-experience #navToggle{left:27px!important;right:auto!important}
.pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:166px!important;padding-right:16px!important}
@media(max-width:760px){
 .pulse-experience #navToggle{left:14px!important;right:auto!important}
 .pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:132px!important;padding-right:10px!important}
}
@media(max-width:420px){
 .pulse-experience #navToggle{left:12px!important;right:auto!important}
 .pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:121px!important;padding-right:8px!important}
}

/* Compact, icon-only left navigation launcher */
.pulse-experience #navToggle{width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;left:24px!important;right:auto!important;display:grid!important;place-items:center!important}
.pulse-experience #navToggle svg{width:24px!important;height:24px!important}
.pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:86px!important}
@media(max-width:760px){.pulse-experience #navToggle{left:14px!important;top:14px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}.pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:71px!important}}
@media(max-width:420px){.pulse-experience #navToggle{left:12px!important;top:12px!important}.pulse-experience .pulse-greeting.pulse-compact-strip{padding-left:68px!important}}

/* Hide closed drawer from keyboard tab order without disabling dashboard shortcuts. */
.pulse-experience #schoolNav{visibility:hidden!important}
.pulse-experience #schoolNav.open{visibility:visible!important}

/* Portal-backed category popups, never clipped by the slide-out drawer. */
body.pulse-experience #schoolServicePopups .pulse-group-items{position:fixed!important;z-index:1510!important;left:var(--popup-left,370px)!important;top:var(--popup-top,100px)!important;width:min(300px,calc(100vw - 24px))!important;max-height:min(70dvh,540px)!important;display:grid;gap:7px;overflow-y:auto;background:#fff!important;padding:12px;border:1px solid #dce6df;border-radius:17px;box-shadow:0 20px 54px #17352a44}
body.pulse-experience #schoolServicePopups .pulse-group-items[hidden]{display:none!important}
body.pulse-experience #schoolServicePopups .pulse-nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:57px;padding:8px 11px;text-align:left;background:#fff;color:#254941;border:1px solid #e1e9e2;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer}
body.pulse-experience #schoolServicePopups .pulse-nav-item:hover{background:#edf8f2;border-color:#7bb79f}
body.pulse-experience #schoolServicePopups .pulse-nav-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:#eaf5f0;color:#238069}
body.pulse-experience #schoolServicePopups .pulse-nav-icon svg{width:23px;height:23px}
body.pulse-experience #schoolServicePopups .pulse-nav-item.selected{background:#e5f7ee;color:#175d49;border-color:#338b6c}
body.pulse-experience #schoolServicePopups .pulse-nav-item[hidden]{display:none!important}
@media(max-width:760px){body.pulse-experience #schoolServicePopups .pulse-group-items{left:max(8px,calc(100vw - 320px))!important;top:auto!important;bottom:16px!important;width:min(305px,calc(100vw - 16px))!important;max-height:56dvh!important;box-shadow:0 12px 46px #15292366}}

/* Consistent top section tabs for multi-panel school records and forms */
.pulse-experience #content .school-section-tabs{position:sticky;top:8px;z-index:30;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:11px;background:#ffffffed;border:1px solid #dce9e1;border-radius:14px;box-shadow:0 5px 17px #173e2a18;backdrop-filter:blur(10px)}
.pulse-experience #content .school-tabs-title{font-size:12px;font-weight:800;color:#416a58;padding:0 8px;white-space:nowrap}
.pulse-experience #content .school-section-tab{min-height:42px;padding:9px 13px;border:1px solid #d9e7de;border-radius:10px;background:#eef7f0;color:#285b47;font-size:13px;font-weight:750;box-shadow:none;white-space:normal;text-align:center}
.pulse-experience #content .school-section-tab:nth-of-type(4n+2){background:#edf4ff;border-color:#d9e4f7;color:#2a6390}
.pulse-experience #content .school-section-tab:nth-of-type(4n+3){background:#fff3e8;border-color:#f2dec6;color:#956331}
.pulse-experience #content .school-section-tab:nth-of-type(4n){background:#f4ecfb;border-color:#e4d8f0;color:#79549c}
.pulse-experience #content .school-section-tab:hover,.pulse-experience #content .school-section-tab.active{outline:2px solid #308e70;outline-offset:1px}
.pulse-experience #content .school-section-heading{scroll-margin-top:110px}
@media(max-width:760px){.pulse-experience #content .school-section-tabs{position:sticky;top:4px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;padding:9px 7px}.pulse-experience #content .school-section-tab{flex:0 0 auto;min-height:44px}.pulse-experience #content .school-tabs-title{position:sticky;left:0;background:#fff;padding:8px}}
@media print{.pulse-experience #content .school-section-tabs{display:none!important}}

/* Distinct, immediate-access panel tabs */
.pulse-experience #content .school-tabs-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:0}
.pulse-experience #content [data-school-tab-hidden][hidden]{display:none!important}
.pulse-experience #content .school-section-tabs button.active{background:#286d5c!important;color:#fff!important;border-color:#286d5c!important;box-shadow:0 2px 9px #193c2924}
.pulse-experience #content .school-section-tabs .school-show-all{background:#fff9ed;color:#966735;border-color:#eedec7}
@media(max-width:760px){.pulse-experience #content .school-tabs-actions{flex-wrap:nowrap;width:max-content;flex:0 0 auto}.pulse-experience #content .school-section-tabs{align-items:center}}

/* Uniform premium fee tabs: equal visual treatment, only selected one highlighted */
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"]{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fbfdfb;border:1px solid #dce8de;padding:12px;border-radius:15px}
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-tabs-title{color:#335b4b;min-width:96px}
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab,
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab:nth-of-type(n),
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab:not(.secondary){background:#f3f7f5!important;color:#325649!important;border:1px solid #d7e5db!important;outline:0!important;box-shadow:none!important;border-radius:10px!important;font-size:13px;font-weight:700;min-height:44px;opacity:1}
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab.active,
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab.active:nth-of-type(n){background:#286d5c!important;color:#fff!important;border-color:#286d5c!important;box-shadow:0 2px 8px #244e3930!important}
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab:disabled{background:#f4f5f4!important;color:#6f7b76!important;border-style:dashed!important;cursor:wait!important}
.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab:focus-visible{outline:3px solid #d5a64d!important;outline-offset:2px!important}
@media(max-width:760px){.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"]{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:8px}.pulse-experience #content .school-section-tabs[aria-label="Fee page tabs"] .school-section-tab{flex:0 0 auto}}


/* Original Gurukulam login and compact drawer — single coherent visual language */
body:has(.school-login-card){background:#f0f5ff!important}
body:has(.school-login-card) .top{display:none!important}
body:has(.school-login-card) .wrap{max-width:100%!important;padding:24px 16px!important}
body:has(.school-login-card) main#app{border:0;background:transparent;box-shadow:none;min-height:0;padding:0;display:block!important}
.school-login-card.login{width:min(100%,490px);max-width:490px;margin:24px auto;padding:34px;border:1px solid #d5e4e0;border-radius:19px;background:white;box-shadow:0 12px 30px #1b4e5012}
.school-login-brand{text-align:center;margin-bottom:23px}
.school-login-om{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:#e5f4ee;color:#166d5d;font-size:34px;margin:0 auto 12px}
.school-login-brand h1{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",sans-serif;font-size:clamp(22px,5vw,28px);color:#145349;margin:0 0 7px;line-height:1.5}
.school-login-brand p{margin:0;color:#5c7775;font-size:14px}
.school-role-choices{display:grid;gap:12px}
.school-role-card{width:100%;min-height:79px;display:flex;align-items:center;gap:13px;padding:13px 17px;text-align:left;border:1px solid #cbdde9;border-radius:15px;background:#f1f6fd;color:#145381;box-shadow:none}
.school-role-card>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.school-role-card strong{font-size:16px;font-weight:800}
.school-role-card small{font-size:12px;line-height:1.4;font-weight:400;color:inherit;opacity:.82}
.school-role-card .school-role-icon{font-size:26px;flex:none}
.school-role-card .school-role-arrow{font-size:29px;line-height:1}
.school-parent-card{background:linear-gradient(105deg,#176d60,#238f76);border-color:#218c78;color:#fff;box-shadow:0 7px 17px #13675a25}
.school-role-card.chosen{outline:3px solid #e3b65e;outline-offset:2px}
.school-role-card:focus-visible{outline:3px solid #d5a34f;outline-offset:2px}
.school-login-divider{text-align:center;display:flex;align-items:center;gap:10px;margin:23px 0 17px;color:#55746a;font-size:12px;font-weight:750}
.school-login-divider:before,.school-login-divider:after{content:"";height:1px;background:#d1e2da;flex:1}
.school-login-card .school-login-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.school-login-card #login{gap:12px}
.school-login-card #login input{height:45px;border:2px solid #b7d0ed;border-radius:9px;background:#fff;font-size:14px;padding:10px}
.school-login-card .school-login-submit{width:100%;min-height:46px;background:linear-gradient(100deg,#2379c5,#118f84);border-radius:9px;font-weight:800;color:#fff;box-shadow:0 5px 12px #236ca51f}
.school-login-card .school-back-staff{background:transparent;color:#226e74;font-size:13px;padding:11px 0}
.school-login-card #openSetup{font-size:12px}
.pulse-experience #schoolNav.school-flat-drawer{display:flex!important;flex-direction:column!important;gap:0!important;background:#f3f8ff!important;width:min(320px,93vw)!important;padding:12px 12px 26px!important;border-radius:0!important}
.pulse-experience #schoolNav.school-flat-drawer .school-simple-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 4px 12px;border-bottom:1px solid #d9e7ed}
.pulse-experience #schoolNav.school-flat-drawer #logout.school-sign-out{display:block!important;margin:0!important;width:auto!important;min-height:39px!important;padding:8px 13px!important;background:#fff0ef!important;color:#af3541!important;border:1px solid #f4d1cd!important;border-radius:11px!important;font-size:12px;font-weight:800}
.pulse-experience #schoolNav.school-flat-drawer #navClose.school-simple-close{display:grid!important;place-items:center;width:40px!important;min-height:40px!important;height:40px!important;padding:0!important;margin:0!important;background:#e9f2ff!important;color:#194a72!important;border:0!important;border-radius:12px!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links{display:flex;flex-direction:column;gap:4px;padding:12px 0;min-height:0}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item{display:flex;align-items:center;width:100%;min-height:46px;padding:8px 12px;gap:12px;border:2px solid transparent;background:transparent;color:#164e7b;border-radius:12px;box-shadow:none;text-align:left;font-size:14px;font-weight:700}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item .pulse-nav-icon{background:transparent!important;color:#18527f!important;width:24px!important;height:26px!important;min-width:24px!important;padding:0!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item .pulse-nav-icon svg{width:19px;height:19px}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item.selected{background:#d5e7fb!important;border-color:#274b64!important;color:#145180!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item:hover:not(.selected){background:#e6f1fd!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item:focus-visible{outline:3px solid #acbfe8;outline-offset:1px}
@media(max-width:540px){.school-login-card.login{margin:9px auto;padding:24px 19px}.school-login-brand h1{font-size:24px}.school-role-card{padding:12px}.pulse-experience #schoolNav.school-flat-drawer{width:min(320px,94vw)!important}}


/* Compact class-copy checklist: subjects and actions line up as a practical register */
.pulse-experience #content .copy-subject-row{display:grid!important;grid-template-columns:minmax(145px,1fr) minmax(185px,2fr) 110px!important;align-items:center!important;gap:12px!important;min-height:70px!important;padding:10px 14px!important;margin:0 0 9px!important;background:#fff!important;border:1px solid #dbe7e4!important;border-radius:12px!important;box-shadow:none!important}
.pulse-experience #content .copy-subject-row label{display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important;margin:0!important;font-size:15px!important;color:#244b49!important;cursor:pointer}
.pulse-experience #content .copy-subject-row label b{order:1;font-weight:750;white-space:nowrap}
.pulse-experience #content .copy-subject-row input[type=checkbox]{order:0!important;appearance:auto!important;width:21px!important;height:21px!important;min-width:21px!important;margin:0!important;accent-color:#16856d!important}
.pulse-experience #content .copy-subject-row input[data-copy-note]{height:42px!important;min-width:0!important;width:100%!important;border:1px solid #c6d8d6!important;border-radius:9px!important;background:#fff!important;font-size:14px!important;padding:8px 12px!important}
.pulse-experience #content .copy-subject-row button[data-copy-save]{width:110px!important;min-height:42px!important;height:42px!important;padding:8px 12px!important;border-radius:9px!important;background:#19796a!important;color:white!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important}
.pulse-experience #content .copy-subject-row button[data-copy-save]:disabled{background:#b4d7d3!important;color:#476b67!important;opacity:.8}
.pulse-experience #content .copy-subject-row:has(input[type=checkbox]:checked){background:#eff9f3!important;border-color:#9ccfb6!important}
@media(max-width:640px){.pulse-experience #content .copy-subject-row{grid-template-columns:minmax(0,1fr) 100px!important;gap:9px!important;padding:12px!important}.pulse-experience #content .copy-subject-row label{grid-column:1/-1}.pulse-experience #content .copy-subject-row input[data-copy-note]{grid-column:1}.pulse-experience #content .copy-subject-row button[data-copy-save]{grid-column:2;width:100px!important}}
@media(max-width:360px){.pulse-experience #content .copy-subject-row{grid-template-columns:minmax(0,1fr)!important}.pulse-experience #content .copy-subject-row label,.pulse-experience #content .copy-subject-row input[data-copy-note],.pulse-experience #content .copy-subject-row button[data-copy-save]{grid-column:1;width:100%!important}}


/* Original Gurukulam academic screens — stable, airy, classroom-first */
.pulse-experience #content[data-classic-page]{--classic-ink:#185993;--classic-line:#d6e4f1;--classic-pale:#f2f8ff;color:#284c56}
.pulse-experience #content[data-classic-page] h3{font-size:clamp(19px,2.2vw,27px)!important;font-weight:800;color:#165da6!important;margin:14px 0 18px;letter-spacing:-.02em}
.pulse-experience #content[data-classic-page] .toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0 16px}
.pulse-experience #content[data-classic-page] .toolbar label{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:12px;background:#e9f4fe;color:#1e507a;font-weight:650;min-width:0}
.pulse-experience #content[data-classic-page] .toolbar input,.pulse-experience #content[data-classic-page] .toolbar select{border:2px solid #bbd2ec;background:#fff;min-height:43px;width:auto;max-width:100%;font-size:14px;border-radius:9px}
.pulse-experience #content[data-classic-page] .tablebox{border:1px solid var(--classic-line);border-radius:12px;overflow-x:auto}
.pulse-experience #content[data-classic-page] .tablebox th{background:#e3eeff!important;color:#174f86!important;font-weight:800;padding:12px 14px}
.pulse-experience #content[data-classic-page] .tablebox td{padding:10px 14px;border-bottom:1px solid #dce8ea}
.pulse-experience #content[data-classic-page] .tablebox tbody tr:nth-child(even) td{background:#f8fbff}
.pulse-experience #content[data-classic-page] .cards .card{padding:18px;border-radius:12px;box-shadow:none}
.pulse-experience #content[data-classic-page] .cards .card b{font-size:30px;color:#153c44}
.pulse-experience #content[data-classic-page] .panel{border:1px solid #d6e6ed;border-radius:15px;padding:18px;background:#f5faff}
.pulse-experience #content[data-classic-page] input[type=number]{max-width:165px;min-height:42px;border:2px solid #b9d0e9;border-radius:9px}
.pulse-experience #content[data-classic-page] input[type=checkbox]{width:20px;height:20px;accent-color:#187968}
.pulse-experience #content[data-classic-page] .sub{color:#4d7180;line-height:1.6}
.pulse-experience #content[data-classic-page=homework] .panel{background:#f3f8ff}
.pulse-experience #content[data-classic-page=homework] select{min-height:42px;border:1px solid #acd0ee}
.pulse-experience #content[data-classic-page=monthly] .tablebox{max-width:100%;overflow-x:auto}
.pulse-experience #content[data-classic-page=monthly] table{min-width:930px}
.pulse-experience #content[data-classic-page=monthly] .cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.pulse-experience #content[data-classic-page=attendance] .panel{padding:12px 17px}
.pulse-experience #content[data-classic-page=attendance] label:has(input[type=checkbox]:checked){background:#fff0f1;border-color:#efbac0}
.pulse-experience #content[data-classic-page=tests] .tablebox input[type=number]{width:105px}
.pulse-experience #content[data-classic-page=students] .tablebox td:first-child{font-weight:700}
@media(max-width:760px){
 .pulse-experience #content[data-classic-page] .toolbar{gap:8px}
 .pulse-experience #content[data-classic-page] .toolbar label{flex:1 1 155px;justify-content:space-between;padding:7px 9px}
 .pulse-experience #content[data-classic-page] .panel{padding:12px}
 .pulse-experience #content[data-classic-page] .tablebox th,.pulse-experience #content[data-classic-page] .tablebox td{padding:9px 10px;font-size:13px}
 .pulse-experience #content[data-classic-page] h3{font-size:20px!important}
}


/* Gurukulam Workspace 2026: reference-inspired compact school-management theme.
   Design-only changes. The drawer stays button-controlled and workflows stay intact. */
body.pulse-experience{background:#f3f6fb!important;color:#253443;font-family:Inter,"Noto Sans Devanagari",system-ui,sans-serif}
.pulse-experience .wrap{padding:9px 14px 40px!important}
.pulse-experience #app{gap:11px!important}
.pulse-experience .pulse-greeting.pulse-compact-strip{background:#202632!important;border:1px solid #303849!important;border-radius:13px!important;min-height:64px!important;padding-top:9px!important;padding-bottom:9px!important;box-shadow:0 5px 18px #17223816!important}
.pulse-experience .pulse-strip-copy strong{font-size:19px!important;letter-spacing:0!important}
.pulse-experience .pulse-strip-badge{background:#34445c!important;border:1px solid #4b5e77!important;border-radius:9px!important}
.pulse-experience #navToggle{background:#f1f6ff!important;color:#1855a1!important;border:1px solid #b9cfe9!important;box-shadow:none!important}
.pulse-experience #content{border:1px solid #e0e6f0!important;background:#fff!important;border-radius:13px!important;padding:clamp(12px,2vw,22px)!important;box-shadow:0 3px 18px #293d5a0b!important;min-height:calc(100dvh - 118px)}
.pulse-experience #content h3{color:#26384b!important;font-size:clamp(18px,1.7vw,23px)!important;line-height:1.35;border:0!important;padding:0!important;margin:13px 0 14px!important}
.pulse-experience #content .panel{background:#fff!important;border:1px solid #e0e7ef!important;border-left:3px solid #3264d8!important;border-radius:10px!important;box-shadow:none!important;padding:15px!important;margin:12px 0!important}
.pulse-experience #content .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))!important;gap:12px!important}
.pulse-experience #content .cards .card{background:#fff!important;border:1px solid #dce6f2!important;border-radius:12px!important;box-shadow:0 3px 12px #24364c12!important;padding:15px!important}
.pulse-experience #content .cards .card:nth-child(3n+1){border-top:4px solid #3168da!important}
.pulse-experience #content .cards .card:nth-child(3n+2){border-top:4px solid #17a079!important}
.pulse-experience #content .cards .card:nth-child(3n){border-top:4px solid #e9a441!important}
.pulse-experience #content .cards .card b{font-size:26px!important;color:#223344!important}
.pulse-experience #content .cards .card small{font-size:12px!important;color:#526578!important}
.pulse-experience #content .toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:10px 0 14px}
.pulse-experience #content .toolbar label{background:#f4f7fc!important;border:1px solid #dfe7f0!important;border-radius:9px!important;padding:7px 10px!important;color:#354b64!important}
.pulse-experience #content input:not([type=checkbox]),.pulse-experience #content select,.pulse-experience #content textarea{background:#fff!important;color:#263748!important;border:1px solid #bdcee1!important;border-radius:8px!important;box-shadow:none!important}
.pulse-experience #content input:focus-visible,.pulse-experience #content select:focus-visible,.pulse-experience #content textarea:focus-visible{outline:2px solid #447de0!important;outline-offset:1px}
.pulse-experience #content .tablebox{border:1px solid #dce3ed!important;border-radius:9px!important;overflow-x:auto!important}
.pulse-experience #content table{width:100%;border-collapse:collapse}
.pulse-experience #content table th{background:#f0f3f8!important;color:#364456!important;border-bottom:1px solid #dce3ed!important;font-size:13px!important;padding:10px 12px!important;text-align:left!important}
.pulse-experience #content table td{font-size:13px!important;padding:9px 12px!important;border-bottom:1px solid #e4e9ef!important;line-height:1.5}
.pulse-experience #content table tbody tr:nth-child(even) td{background:#fafbfe!important}
.pulse-experience #content table tbody tr:hover td{background:#eef4ff!important}
.pulse-experience #content .school-section-tabs{background:#fff!important;border:1px solid #dfe7f0!important;box-shadow:none!important}
.pulse-experience #content .school-section-tab{background:#f1f4fa!important;color:#334e6a!important;border:1px solid #dbe4ef!important;min-height:38px!important;padding:8px 12px!important;font-size:13px!important}
.pulse-experience #content .school-section-tab.active{background:#315fd3!important;color:#fff!important;border-color:#315fd3!important}
.pulse-experience #schoolNav.school-flat-drawer{background:#f8fafd!important;border-right:1px solid #dfe6f0!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item{font-size:13px!important;min-height:43px!important;border-radius:8px!important;color:#33465e!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item.selected{background:#e7efff!important;color:#204f9d!important;border-color:#3862b2!important}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item:hover:not(.selected){background:#edf2f8!important}
.pulse-experience #content button:not(.secondary):not(.school-section-tab){background:#2869c7!important;color:white!important;box-shadow:none!important}
.pulse-experience #content button.secondary{background:#edf3fa!important;color:#29547e!important;border:1px solid #d2e1ef!important}
.pulse-experience #content button:focus-visible{outline:3px solid #efb446!important;outline-offset:2px}
@media(max-width:760px){.pulse-experience .wrap{padding:8px 8px 88px!important}.pulse-experience #content{min-height:65dvh;padding:12px!important}.pulse-experience #content table td,.pulse-experience #content table th{padding:9px 8px!important}.pulse-experience #content .panel{padding:11px!important}.pulse-experience .pulse-strip-copy strong{font-size:16px!important}}
@media print{.pulse-experience #content{box-shadow:none!important;min-height:0!important}.pulse-experience #content .panel{break-inside:avoid}}

/* Screenshot-matched weekly homework roster, separate student cards */
.pulse-experience #content .classic-homework{max-width:100%;font-family:"Noto Sans Devanagari",system-ui,sans-serif}
.pulse-experience #content .classic-homework>h3{font-size:25px!important;color:#185caa!important;margin:13px 0 20px!important}
.pulse-experience #content .classic-homework .toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.pulse-experience #content .classic-homework .toolbar label{display:flex;align-items:center;gap:11px;background:#e7f3ff!important;color:#164a7b!important;padding:11px 13px!important;border-radius:12px;font-weight:750}
.pulse-experience #content .classic-homework .toolbar select,.pulse-experience #content .classic-homework .toolbar input{min-height:44px;border:2px solid #b8d0ed!important;border-radius:9px;background:#fff!important;padding:8px 11px}
.pulse-experience #content .classic-week-summary{display:grid;gap:5px;padding:22px 24px;margin:12px 0 18px;border:1px solid #d1e2f7;border-left:7px solid #286cd0;border-radius:14px;background:#e5f0ff;color:#14508a}
.pulse-experience #content .classic-week-summary strong{font-size:21px;font-weight:800}
.pulse-experience #content .classic-week-summary span{font-size:16px}
.pulse-experience #content .classic-week-summary small{font-size:13px}
.pulse-experience #content .classic-homework-student{padding:15px 17px;margin-bottom:10px;background:white;border:1px solid #d4e3f4;border-radius:14px}
.pulse-experience #content .classic-homework-student h4{font-size:16px;color:#204d79;margin:0 0 12px;font-weight:800}
.pulse-experience #content .classic-homework-line{margin:8px 0}
.pulse-experience #content .classic-homework-line label{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:12px;color:#4d6275;font-weight:750}
.pulse-experience #content .classic-homework-line select{min-height:45px;width:100%;padding:8px 12px!important;background:#e6f7eb!important;border:1px solid #9bd2aa!important;color:#165d37!important;font-weight:700}
.pulse-experience #content .classic-homework-line:nth-of-type(2) select{background:#e7f3ff!important;border-color:#9dc8ee!important;color:#175a96!important}
.pulse-experience #content .classic-homework-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:10px}
.pulse-experience #content .classic-homework-actions button{padding:8px 22px!important;min-height:39px;background:#198678!important;color:#fff!important}
.pulse-experience #content .classic-homework-actions span{font-size:12px;color:#52707d}
@media(max-width:560px){.pulse-experience #content .classic-homework .toolbar label{flex:1 1 170px;justify-content:space-between}.pulse-experience #content .classic-week-summary{padding:15px}.pulse-experience #content .classic-homework-student{padding:12px}.pulse-experience #content .classic-homework-line label{grid-template-columns:1fr;gap:5px}.pulse-experience #content .classic-homework>h3{font-size:20px!important}}

/* Homework roster grid: 3 on wide desktops, 2 on laptops, 1 on phones */
.pulse-experience #content .classic-homework #rosterCards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch;gap:14px!important;width:100%;min-width:0}
.pulse-experience #content .classic-homework #rosterCards>.classic-homework-student{min-width:0;margin:0!important;padding:15px!important;display:flex;flex-direction:column;gap:9px}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-student h4{margin:0 0 3px!important;overflow-wrap:anywhere}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-line{margin:0!important;min-width:0}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-line label{display:flex!important;flex-direction:column;align-items:stretch!important;gap:6px!important;font-size:13px}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-line select{width:100%!important;min-width:0}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-actions{margin-top:auto!important;padding-top:8px;display:flex;flex-wrap:wrap;justify-content:space-between!important;align-items:center;gap:8px}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-actions button{min-width:82px;min-height:42px}
.pulse-experience #content .classic-homework #rosterCards .classic-homework-actions span{font-size:12px;flex:1;text-align:right}
@media(max-width:1150px){.pulse-experience #content .classic-homework #rosterCards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.pulse-experience #content .classic-homework #rosterCards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}}

/* Old Gurukulam Test Results as three-column cards, visually dim after successful save */
.pulse-experience #content .school-test-grid-page{max-width:100%;min-width:0}
.pulse-experience #content .school-test-grid-page>h3{color:#185da7!important;font-size:25px!important}
.pulse-experience #content .school-test-filters{display:flex;flex-wrap:wrap;gap:10px;background:#f3f8ff;border:1px solid #dbe9f7;border-radius:13px;padding:15px;margin-bottom:15px}
.pulse-experience #content .school-test-filters label{display:flex;align-items:center;gap:8px;background:#e7f2ff!important;border-radius:10px;padding:9px 11px!important;font-weight:700;color:#1a527e}
.pulse-experience #content .school-test-filters input,.pulse-experience #content .school-test-filters select{min-height:42px;max-width:190px;border:1px solid #b6ceec!important;background:#fff!important;border-radius:8px}
.pulse-experience #content .school-test-status{margin:12px 0;color:#4e6979;font-size:14px}
.pulse-experience #content .school-test-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.pulse-experience #content .school-test-student-card{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:205px;padding:16px;background:#fff;border:1px solid #d6e3f2;border-radius:13px;transition:background .15s,border-color .15s}
.pulse-experience #content .school-test-student-card h4{margin:0;color:#1b548b;font-size:16px;font-weight:800;overflow-wrap:anywhere}
.pulse-experience #content .school-test-student-card label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#385d78;font-weight:700}
.pulse-experience #content .school-test-student-card input{width:110px;max-width:50%;height:43px;border:2px solid #b4cdea!important;border-radius:8px}
.pulse-experience #content .school-test-card-meta{font-size:13px;color:#577182}
.pulse-experience #content .school-test-card-actions{display:flex;align-items:center;gap:9px;justify-content:space-between;margin-top:auto}
.pulse-experience #content .school-test-card-actions button{min-height:40px;min-width:88px;border-radius:9px;background:#226ec2!important;color:#fff!important;font-weight:750}
.pulse-experience #content .school-test-card-actions span{font-size:12px;color:#637781}
.pulse-experience #content .school-test-student-card.is-saved{background:#eff3f6;border-color:#d9e0e7;opacity:.66}
.pulse-experience #content .school-test-student-card.is-saved button{background:#597d79!important}
.pulse-experience #content .school-test-student-card.is-saved:focus-within{opacity:1}
@media(max-width:1100px){.pulse-experience #content .school-test-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pulse-experience #content .school-test-card-grid{grid-template-columns:minmax(0,1fr)}.pulse-experience #content .school-test-filters label{flex:1 1 170px}.pulse-experience #content .school-test-student-card{min-height:180px}}


/* Workspace Home icon: clearly interactive and keyboard-accessible */
.pulse-experience .pulse-strip-badge.pulse-home-button{display:grid!important;place-items:center;flex:none;cursor:pointer!important;padding:0!important;min-width:46px!important;width:46px!important;height:46px!important;min-height:46px!important;appearance:none;border:1px solid #587086!important;background:#34445c!important;border-radius:11px!important;color:#fff!important}
.pulse-experience .pulse-strip-badge.pulse-home-button:hover{background:#465e7a!important;transform:translateY(-1px)}
.pulse-experience .pulse-strip-badge.pulse-home-button:focus-visible{outline:3px solid #f2b446!important;outline-offset:3px}
.pulse-experience .pulse-strip-badge.pulse-home-button svg{width:25px;height:25px}

/* Authorized teacher roster usability: saved cards remain legible but visually recede. */
.school-roster-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:12px 0}
.school-roster-filters label{display:grid;gap:5px;min-width:170px;flex:1 1 170px}
.school-roster-filters input,.school-roster-filters select{width:100%;min-height:42px}
.school-roster-filters [role="status"]{padding:9px 0;font-size:.9rem;font-weight:600}
.classic-homework-student.is-saved{background:#eff3f6;border-color:#d4dce2;opacity:.76}
.classic-homework-student.is-saved:focus-within,.school-test-student-card.is-saved:focus-within{opacity:1}
.classic-homework-student[hidden],.school-test-student-card[hidden]{display:none!important}
.school-homework-progress{margin:6px 0 0;font-weight:650}
@media(max-width:560px){.school-roster-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.school-roster-filters label{min-width:0}.school-roster-filters [role="status"]{grid-column:1/-1}}


/* Slightly darker original-app blue theme: keep existing layout and branding. */
.pulse-experience{--school-ink:#163a65;--school-blue:#19539b}
.pulse-experience #content h3{color:#16477c!important}
.pulse-experience #content .tablebox th,.pulse-experience #content table th{background:#c9d9f0!important;color:#153f72!important}
.pulse-experience #content .panel,.pulse-experience #content .card{border-color:#bdcfe2!important}
.pulse-experience #content .toolbar label{color:#174b80!important}
.pulse-experience #content input:focus-visible,.pulse-experience #content select:focus-visible{outline:2px solid #1e58a0!important;outline-offset:1px}
.pulse-experience #content button:not(.secondary):not(:disabled){filter:saturate(1.13)}
.pulse-experience #content .school-test-student-card.is-saved{opacity:.73}
.attendance-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.attendance-student-card{background:#f2f6fc;border:2px solid #bfd0e5;border-radius:14px;display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:17px 15px;min-height:105px;color:#153d67}
.attendance-student-card strong{flex:1 1 55%;overflow-wrap:anywhere;font-size:16px}
.attendance-student-card .student-number{font-weight:750;color:#24558b}
.attendance-toggle{display:flex;align-items:center;gap:8px;background:#dae9fa;border-radius:8px;padding:8px 12px;font-weight:700}
.attendance-toggle input{width:21px;height:21px;accent-color:#a82d51;cursor:pointer}
.attendance-student-card.is-absent{background:#f8e6ea;border-color:#ba5870;color:#75263e}
.attendance-student-card.is-absent .attendance-toggle{background:#eed1d9}
.attendance-student-card:focus-within{outline:3px solid #2c64ab;outline-offset:2px}
@media(max-width:1100px){.attendance-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.attendance-card-grid{grid-template-columns:minmax(0,1fr)}.attendance-student-card{min-height:85px}}
@media print{.attendance-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-student-card{break-inside:avoid}}


/* School-wide palette from the preferred Gurukulam login: emerald, navy and mist blue. */
body.pulse-experience{--gurukul-emerald:#187c69;--gurukul-emerald-deep:#126352;--gurukul-navy:#164c7b;--gurukul-mist:#edf4fd;--gurukul-outline:#bed4ea;background:#eaf1fb!important;color:#183d57!important}
.pulse-experience .top{background:#e9f3ff!important;color:#153f64!important}
.pulse-experience #content,.pulse-experience #app{color:#193d58}
.pulse-experience #content h3,.pulse-experience #content h4{color:var(--gurukul-navy)!important}
.pulse-experience #content .panel,.pulse-experience #content .card,.pulse-experience #content .school-test-student-card,.pulse-experience #content .classic-homework-student{background:#f0f6fe!important;border-color:var(--gurukul-outline)!important}
.pulse-experience #content .tablebox th,.pulse-experience #content table th{background:#dce9fa!important;color:#154979!important}
.pulse-experience #content table tbody tr:nth-child(even){background:#f1f7fd}
.pulse-experience #content input,.pulse-experience #content select,.pulse-experience #content textarea{border-color:#aac7e5;color:#173e62}
.pulse-experience #content button:not(.secondary):not(:disabled){background:var(--gurukul-emerald)!important;color:white!important}
.pulse-experience #content button:not(.secondary):not(:disabled):hover{background:var(--gurukul-emerald-deep)!important}
.pulse-experience #content .school-test-student-card.is-saved,.pulse-experience #content .classic-homework-student.is-saved{background:#dfeae9!important;opacity:.75}
.pulse-experience #content .attendance-student-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;gap:12px;background:#eff5fe!important;border:2px solid #bed1e9!important;padding:16px 20px;min-height:150px}
.pulse-experience #content .attendance-student-heading{display:flex;align-items:baseline;gap:14px;min-width:0;line-height:1.5}
.pulse-experience #content .attendance-student-heading .student-number{flex:0 0 auto;min-width:25px;font-weight:800;font-size:17px;color:#1d5a8e}
.pulse-experience #content .attendance-student-heading strong{font-size:18px;font-weight:800;letter-spacing:.012em;min-width:0;overflow-wrap:anywhere;color:#203e5f}
.pulse-experience #content .attendance-toggle{width:100%;min-height:60px;background:#dceafb!important;justify-content:flex-start;gap:16px;color:#174d75;border-radius:12px;padding:14px 18px}
.pulse-experience #content .attendance-student-card.is-absent{background:#fbeff2!important;border-color:#bb7183!important}
.pulse-experience #content .attendance-student-card.is-absent .attendance-toggle{background:#f2dce4!important;color:#74344b}
.pulse-experience #content .attendance-student-card:focus-within{outline:3px solid var(--gurukul-emerald);outline-offset:2px}
@media(max-width:650px){.pulse-experience #content .attendance-student-card{min-height:125px;padding:14px}.pulse-experience #content .attendance-student-heading{gap:12px}.pulse-experience #content .attendance-student-heading strong{font-size:16px}}

/* Extend login palette across workspace navigation without altering layout/handlers. */
.pulse-experience .pulse-shortcut,.pulse-experience .pulse-nav-item{color:#164d78!important;border-color:#c4d9ec!important}
.pulse-experience .pulse-shortcut.selected,.pulse-experience .pulse-bottom-dock button.selected{background:#d8eee9!important;color:#126b59!important;border-color:#76b4a5!important}
.pulse-experience #content .school-section-tab.active,.pulse-experience #content .school-submit-action:not(:disabled){background:#167b69!important;color:#fff!important}
.pulse-experience #content .school-section-tab:not(.active){background:#e3effb!important;color:#174e7a!important}

/* English school heading in warm light brown, retained blue-and-emerald controls. */
.top .inner > b,.pulse-experience .pulse-top-brand b{color:#ac815b!important;font-weight:750!important;letter-spacing:.012em}
.login .school-login-brand h1{color:#ac815b!important}


/* Pale sage green workspace masthead with English Gurukulam wordmark. */
body.pulse-experience .pulse-greeting.pulse-compact-strip{background:#dcefe5!important;background-image:none!important;color:#184c3c!important;border:1px solid #bbd8ca!important;box-shadow:0 3px 12px #184c3c12!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
body.pulse-experience .pulse-compact-strip .pulse-school-name{display:block;color:#236451!important;font:700 clamp(17px,1.65vw,24px)/1.2 Georgia,"Times New Roman",serif!important;letter-spacing:.015em;white-space:normal}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy strong{color:#163e34!important;font-size:clamp(15px,1.3vw,20px)!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy>span:not(.pulse-school-name){color:#366e5b!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-date{color:#245b49!important;background:#eef8f2!important;border:1px solid #b0d4c2!important}
body.pulse-experience .pulse-compact-strip .pulse-home-button{background:#267b62!important;border-color:#267b62!important;color:#fff!important}
body.pulse-experience .pulse-compact-strip .pulse-home-button:hover{background:#17634f!important}
@media(max-width:650px){body.pulse-experience .pulse-compact-strip .pulse-school-name{font-size:17px!important}}

/* Warm brown text on the existing pale-green authenticated workspace header. */
body.pulse-experience .pulse-compact-strip .pulse-school-name{color:#8b6248!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy strong{color:#795239!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy>span:not(.pulse-school-name){color:#906c53!important}

/* Full-width school masthead follows the role and teacher identity. */
body.pulse-experience .pulse-greeting.pulse-compact-strip{display:flex!important;align-items:center!important;gap:20px!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-main{display:flex!important;align-items:center!important;gap:15px!important;flex:0 0 auto!important;min-width:0}
body.pulse-experience .pulse-compact-strip .pulse-strip-copy{flex:0 1 auto!important}
body.pulse-experience .pulse-compact-strip .pulse-school-name{display:block!important;flex:1 1 auto!important;min-width:0;text-align:center!important;color:#8b6248!important;font:700 clamp(24px,3.1vw,51px)/1.15 Georgia,"Times New Roman",serif!important;white-space:normal!important;letter-spacing:.012em!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-date{flex:0 0 auto!important}
@media(max-width:900px){body.pulse-experience .pulse-greeting.pulse-compact-strip{flex-wrap:wrap!important;gap:12px!important}body.pulse-experience .pulse-compact-strip .pulse-school-name{order:2;flex:1 1 100%!important;text-align:center!important;font-size:clamp(22px,5vw,34px)!important}body.pulse-experience .pulse-compact-strip .pulse-strip-date{margin-left:auto}}

/* Let identity row and school name share the entire available header width. */
body.pulse-experience .pulse-compact-strip .pulse-strip-main{flex:1 1 auto!important;width:auto!important}
body.pulse-experience .pulse-compact-strip .pulse-strip-main>.pulse-school-name{flex:1 1 0!important;text-align:center!important}
@media(max-width:900px){body.pulse-experience .pulse-compact-strip .pulse-strip-main{flex-wrap:wrap!important;width:100%!important}body.pulse-experience .pulse-compact-strip .pulse-strip-main>.pulse-school-name{flex:1 1 100%!important}}

/* Keep student search/results; remove redundant Students title above them. */
#content:has(#studentSearch)>h3:first-child{display:none!important}


/* Previous-app-inspired fortnight controls; keep responsive student mark cards. */
.pulse-experience #content .school-test-grid-page{background:#f2f7fd;border:1px solid #cbdaeb;border-radius:17px;padding:18px}
.pulse-experience #content .school-test-grid-page .school-test-filters{display:flex!important;flex-wrap:wrap!important;align-items:end;gap:12px;padding:10px 0 16px}
.pulse-experience #content .school-test-grid-page .school-test-filters label{display:flex!important;align-items:center;gap:9px;background:#e3f0fe;padding:10px 12px;border-radius:12px;color:#174b7e!important;font-weight:700;min-height:64px}
.pulse-experience #content .school-test-grid-page .school-test-filters select,.pulse-experience #content .school-test-grid-page .school-test-filters input{background:white;min-height:45px;max-width:210px}
.pulse-experience #content .school-test-grid-page .school-add-extra-test{background:linear-gradient(120deg,#176abb,#118d83)!important;color:white!important;min-height:48px;margin-bottom:8px;padding:10px 19px;font-weight:750}
.pulse-experience #content .school-test-grid-page .school-add-extra-test[hidden]{display:none!important}
.pulse-experience #content .school-test-selection{color:#8d388f;font-size:1.16rem;font-weight:750;margin:8px 0 12px}
@media(max-width:680px){.pulse-experience #content .school-test-grid-page{padding:10px}.pulse-experience #content .school-test-grid-page .school-test-filters label{flex:1 1 180px;justify-content:space-between}.pulse-experience #content .school-test-grid-page .school-test-filters input,.pulse-experience #content .school-test-grid-page .school-test-filters select{max-width:65%}}


/* Monthly student report parity: desktop overview, mobile-friendly independent student rows. */
.monthly-student-report>.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 0}
.monthly-student-report>.toolbar label{display:grid;gap:6px;font-weight:700;color:#1b4c7d}
.monthly-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px;background:#f1f7fe;border:1px solid #cbddec;border-radius:14px}
.monthly-report-metrics>div{padding:18px;border-radius:13px;border:1px solid #b4d8fb;background:#e5f2ff}
.monthly-report-metrics>div:nth-child(2){background:#e5f6ec;border-color:#b8e4ca}
.monthly-report-metrics>div:nth-child(3){background:#fff1e4;border-color:#f0cfa5}
.monthly-report-metrics>div:nth-child(4){background:#f2eafb;border-color:#dac5fb}
.monthly-report-metrics b{display:block;font-size:30px;color:#163c55}.monthly-report-metrics small{display:block;margin-top:7px;color:#456271}
.monthly-report-rows{display:grid;gap:14px;margin-top:16px}
.monthly-student-report-card{background:#f3f8fe;border:1px solid #cbdceb;border-radius:12px;padding:17px}
.monthly-student-report-card h4{font-size:19px;margin:0 0 12px;color:#1c527e}
.monthly-student-report-card h4 span{display:inline-block;min-width:28px;margin-right:9px}
.monthly-student-facts{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding-bottom:12px}
.monthly-student-facts>div{padding:10px 12px;background:#e6f0fb;border-radius:8px}
.monthly-student-facts b{color:#194c79}.monthly-student-facts p{margin:6px 0 0;overflow-wrap:anywhere}
.monthly-student-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(180px,1.4fr);gap:12px}
.monthly-student-inputs label{font-weight:650;color:#154b79;display:grid;gap:7px}
.monthly-student-inputs select,.monthly-student-inputs textarea{width:100%;min-width:0;background:white;border:1px solid #b5d0ea;border-radius:8px;padding:10px;min-height:44px}
.monthly-student-inputs textarea{min-height:65px;resize:vertical}
.monthly-student-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:12px}
.monthly-student-report-card.is-saved{border-color:#b1d4c2;background:#eff8f2}
@media(max-width:900px){.monthly-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-student-facts,.monthly-student-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.monthly-student-facts,.monthly-student-inputs{grid-template-columns:1fr}.monthly-report-metrics{padding:10px;gap:8px}.monthly-report-metrics>div{padding:12px}.monthly-student-actions{flex-wrap:wrap}}
@media print{.monthly-student-report .toolbar,.monthly-student-actions{display:none!important}.monthly-student-report-card{break-inside:avoid}}

/* Monthly class report: complete test matrix and principal submission below student observations. */
.monthly-class-submit{margin-top:22px;padding:18px;background:#f1f7fd;border:1px solid #cadaec;border-radius:14px}
.monthly-class-submit h3{padding:9px 12px;background:#e7d9f7;border-radius:7px;color:#70449c!important;font-size:1rem}
.monthly-class-submit .tablebox{overflow-x:auto;margin:12px 0 20px}
.monthly-class-submit .tablebox table{min-width:650px}
.monthly-class-submit .form textarea{width:100%;min-height:80px}
.monthly-class-submit .form button{background:#118879!important;color:white!important}
@media print{.monthly-class-submit .form{display:none!important}}


/* Previous-app teacher class dashboard; independent of principal, parent and accountant. */
.teacher-class-dashboard{background:#fff;border:1px solid #d8e5f1;border-radius:18px;padding:16px}
.teacher-class-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(100deg,#f0f7ff,#eefaf5);border:1px solid #d5e6f3;border-radius:15px;padding:18px 22px}
.teacher-class-heading h2{margin:0;font-size:clamp(19px,2vw,26px);color:#175084}
.teacher-class-heading button{background:#fff!important;color:#175084!important;border:1px solid #bad1e9!important}
.teacher-class-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 0 10px}
.teacher-class-metrics>div{background:#e3f2ff;border:1px solid #b6d8fa;border-radius:12px;padding:17px}
.teacher-class-metrics>div:nth-child(2){background:#e4f7ee;border-color:#b8e6ce}
.teacher-class-metrics>div:nth-child(3){background:#fff0df;border-color:#f4ce9e}
.teacher-class-metrics b{display:block;font-size:28px;color:#173c54}
.teacher-class-metrics small{display:block;font-size:13px;color:#426176}
.teacher-class-dashboard>h3{font-size:17px!important;color:#8a3aa2!important;margin:12px 0!important}
.teacher-class-dashboard .tablebox table{min-width:500px}
.teacher-class-dashboard .tablebox thead{background:#deebfb}
.teacher-class-dashboard progress{width:90px;height:9px;accent-color:#187b9b}
.teacher-absent-box,.teacher-subject-mark-card{background:#f2f8fe;border:1px solid #d6e4ef;border-radius:12px;padding:14px;margin:12px 0}
.teacher-absent-box h3{font-size:16px!important;color:#793d9d!important;background:#ede2fa;padding:10px;border-radius:7px;margin:0 0 10px}
.teacher-subject-mark-card h4{margin:0 0 9px;color:#174f79}
.teacher-marks-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-bottom:12px}
.teacher-marks-controls label{display:flex;gap:8px;align-items:center;background:#e5f2ff;padding:8px;border-radius:8px}
.teacher-marks-controls input,.teacher-marks-controls select{max-width:200px;min-height:38px}
@media(max-width:680px){.teacher-class-dashboard{padding:9px}.teacher-class-metrics{gap:6px}.teacher-class-metrics>div{padding:11px}.teacher-class-metrics b{font-size:22px}.teacher-class-heading{padding:12px}.teacher-marks-controls label{flex:1 1 180px;justify-content:space-between}}

/* Teacher role has exactly nine visible drawer services. */
body.pulse-experience #schoolNav button.pulse-nav-item[hidden]{display:none!important}


/* Compact teacher-only drawer: all nine actions within the available viewport. */
body.pulse-experience #schoolNav.teacher-compact-drawer{display:flex!important;flex-direction:column!important;gap:clamp(2px,.55dvh,7px)!important;padding:clamp(8px,1.1dvh,15px)!important;overflow-y:auto!important;overscroll-behavior:contain}
body.pulse-experience #schoolNav.teacher-compact-drawer .pulse-nav-item{box-sizing:border-box!important;display:flex!important;align-items:center!important;flex:1 1 0!important;min-height:0!important;max-height:clamp(38px,6.9dvh,64px)!important;margin:0!important;padding:clamp(5px,.9dvh,11px) 13px!important;gap:13px!important;line-height:1.2!important;font-size:clamp(14px,1.8dvh,19px)!important}
body.pulse-experience #schoolNav.teacher-compact-drawer .pulse-nav-item[hidden]{display:none!important}
body.pulse-experience #schoolNav.teacher-compact-drawer .pulse-nav-icon{width:24px!important;height:24px!important;flex:0 0 24px!important}
body.pulse-experience #schoolNav.teacher-compact-drawer .navSchoolBrand,body.pulse-experience #schoolNav.teacher-compact-drawer .navIdentity,body.pulse-experience #schoolNav.teacher-compact-drawer #navClose{display:none!important}
@media(max-height:600px){body.pulse-experience #schoolNav.teacher-compact-drawer{gap:2px!important;padding:5px!important}body.pulse-experience #schoolNav.teacher-compact-drawer .pulse-nav-item{padding:4px 9px!important;font-size:13px!important}.teacher-compact-drawer .pulse-nav-icon{transform:scale(.84)}}

/* Separate, non-persistent demo preview link; never touches production records. */
.demo-preview-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;padding:13px;margin:6px auto 15px;background:#e7f5ef;border:1px solid #badcce;border-radius:13px;max-width:850px}
.demo-preview-entry a{font-weight:750;color:#126a55;text-decoration:underline}
.demo-preview-entry small{color:#536a65}


/* Teacher academic history / entry navigation and spreadsheet-style records */
.teacher-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 16px;padding:7px;background:#ebf3f4;border:1px solid #bed7df;border-radius:12px}
.teacher-history-tabs button{margin:0!important;min-height:44px;background:#fff!important;color:#27556e!important;border:1px solid #c8dae7!important;border-radius:9px;font-weight:700}
.teacher-history-tabs button.selected{background:#167b69!important;color:#fff!important;border-color:#167b69!important}
.teacher-history-page{background:#fff;border:1px solid #d8e5ef;border-radius:13px;padding:17px;min-width:0}
.teacher-history-page h2{margin:0 0 14px;color:#224d71}
.teacher-history-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.teacher-history-filters label{display:flex;flex-direction:column;gap:5px;min-width:148px;flex:1 1 155px}
.teacher-history-filters select,.teacher-history-filters input{width:100%;min-height:39px}
.teacher-sheet-scroll{overflow:auto;max-width:100%;max-height:66dvh;border:1px solid #c5d5e5;border-radius:9px;margin-top:12px}
.teacher-sheet{border-collapse:separate;border-spacing:0;min-width:640px;width:100%;font-size:14px}
.teacher-sheet th,.teacher-sheet td{padding:10px 12px;border-right:1px solid #dbe4ef;border-bottom:1px solid #dbe4ef;text-align:left;white-space:nowrap}
.teacher-sheet th{background:#deedfb;color:#1d5076;font-weight:750;position:sticky;top:0;z-index:2}
.teacher-sheet td:first-child,.teacher-sheet th:first-child{position:sticky;left:0;z-index:1;background:#f4f9fe;font-weight:650}
.teacher-sheet th:first-child{z-index:3;background:#cfe4f7}
.teacher-sheet tbody tr:nth-child(even) td:not(:first-child){background:#f8fbff}
.teacher-marksheet{padding:18px;border:1px solid #d5e1ed;border-radius:12px;background:#fff;margin-top:12px}
.teacher-marksheet header{text-align:center;border-bottom:2px solid #a8ced0;padding:0 0 14px}
.teacher-marksheet h3,.teacher-marksheet h4{margin:5px 0;color:#1b574c}
@media(max-width:700px){.teacher-history-page{padding:9px}.teacher-history-filters label{flex:1 1 120px}.teacher-sheet{font-size:13px}.teacher-sheet th,.teacher-sheet td{padding:8px}}
@media print{.teacher-history-tabs,.teacher-history-filters,.teacher-marksheet button{display:none!important}.teacher-marksheet{border:0}.teacher-sheet-scroll{overflow:visible;max-height:none}.teacher-sheet{min-width:0}}


/* Spreadsheet-style teacher entry: a complete editable student record on one line. */
#rosterCards.teacher-entry-sheet,#tgCards.teacher-entry-sheet{display:block!important;overflow-x:auto!important;max-width:100%;border:1px solid #cbdbe8;border-radius:12px;background:#fff}
.teacher-entry-head{display:grid;align-items:center;gap:0;min-width:790px;background:#dcecf9;color:#205277;font-size:13px;font-weight:750;position:sticky;top:0;z-index:2}
.teacher-entry-head>span{padding:12px 10px;border-right:1px solid #c2d7e7;white-space:nowrap}
.homework-entry-head,.test-entry-head{grid-template-columns:minmax(190px,2fr) minmax(130px,1fr) minmax(130px,1fr) 100px minmax(170px,1.35fr)}
#rosterCards.teacher-entry-sheet .classic-homework-student,#tgCards.teacher-entry-sheet .school-test-student-card{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(190px,2fr) minmax(130px,1fr) minmax(130px,1fr) 100px minmax(170px,1.35fr)!important;align-items:center!important;gap:0!important;min-width:790px!important;max-width:none!important;width:100%!important;padding:0!important;border-radius:0!important;border:0!important;border-bottom:1px solid #d8e4ef!important;margin:0!important;box-shadow:none!important;background:#fff!important}
#rosterCards.teacher-entry-sheet .classic-homework-student:nth-child(odd),#tgCards.teacher-entry-sheet .school-test-student-card:nth-child(odd){background:#f6faff!important}
#rosterCards.teacher-entry-sheet .classic-homework-student.is-saved,#tgCards.teacher-entry-sheet .school-test-student-card.is-saved{background:#eff5f1!important}
#rosterCards.teacher-entry-sheet .classic-homework-student>h4,#tgCards.teacher-entry-sheet .school-test-student-card>h4{margin:0!important;padding:12px 10px!important;font-size:14px!important;line-height:1.3!important}
#rosterCards.teacher-entry-sheet .classic-homework-line,#rosterCards.teacher-entry-sheet .classic-homework-actions,#tgCards.teacher-entry-sheet .school-test-card-actions{display:contents!important}
#rosterCards.teacher-entry-sheet .classic-homework-line>label,#tgCards.teacher-entry-sheet .school-test-student-card>label{display:flex!important;align-items:center!important;padding:7px 9px!important;margin:0!important;gap:5px}
#rosterCards.teacher-entry-sheet .classic-homework-line>label{font-size:0!important}
#rosterCards.teacher-entry-sheet .classic-homework-line select,#tgCards.teacher-entry-sheet .school-test-student-card input{font-size:14px!important;width:100%!important;min-width:0!important;margin:0!important;min-height:39px!important}
#rosterCards.teacher-entry-sheet [data-save],#tgCards.teacher-entry-sheet .school-test-card-actions button{margin:5px!important;min-height:37px!important;padding:7px!important}
#rosterCards.teacher-entry-sheet .classic-homework-actions [role=status],#tgCards.teacher-entry-sheet .school-test-card-actions [role=status]{padding:8px 10px!important;font-size:12px!important;line-height:1.3!important}
#tgCards.teacher-entry-sheet .school-test-card-meta{padding:9px 10px!important;margin:0!important;font-size:13px!important}
#tgCards.teacher-entry-sheet .school-test-card-actions button{grid-column:4!important;grid-row:1!important}
#tgCards.teacher-entry-sheet .school-test-card-actions [role=status]{grid-column:5!important;grid-row:1!important}
#rosterCards.teacher-entry-sheet .classic-homework-student[hidden],#tgCards.teacher-entry-sheet .school-test-student-card[hidden]{display:none!important}


/* Attendance and Class Copies use the same single-row entry language. */
.teacher-attendance-sheet{overflow-x:auto;border:1px solid #cbdbe8;border-radius:10px}
.teacher-attendance-head{min-width:440px;display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr);background:#dcecf9;color:#205277;font-weight:750;font-size:13px}
.teacher-attendance-head span{padding:11px 13px}
.teacher-attendance-rows{display:block!important;min-width:440px}
.teacher-attendance-rows .attendance-student-card{display:grid!important;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr)!important;align-items:center!important;width:100%!important;max-width:none!important;min-height:46px!important;border:0!important;border-top:1px solid #dce6ed!important;border-radius:0!important;margin:0!important;padding:6px 12px!important;box-shadow:none!important}
.teacher-attendance-rows .attendance-student-card:nth-child(even){background:#f6faff}
.teacher-attendance-rows .attendance-toggle{justify-self:start}
#copyRows .copy-subject-row{display:grid!important;grid-template-columns:minmax(155px,1fr) minmax(220px,2fr) 95px;align-items:center;gap:9px;margin:0!important;padding:8px 10px!important;border-bottom:1px solid #dbe7ef}
#copyRows .copy-subject-row input[type=text]{width:100%;min-width:0}
#copyRows .panel{overflow-x:auto}
#copyRows .copy-subject-row{min-width:540px}
@media(max-width:700px){#rosterCards.teacher-entry-sheet,#tgCards.teacher-entry-sheet{border-radius:8px}.teacher-entry-head{font-size:12px}}


/* Compact test marks sheet: short rows, balanced widths, no repeated label text. */
#tgCards.teacher-entry-sheet{overflow-x:auto!important}
#tgCards.teacher-entry-sheet .test-entry-head,
#tgCards.teacher-entry-sheet .school-test-student-card{
 grid-template-columns:minmax(170px,2.4fr) minmax(95px,1fr) minmax(85px,.75fr) minmax(88px,.75fr) minmax(100px,1fr)!important;
 min-width:570px!important;
}
#tgCards.teacher-entry-sheet .school-test-student-card{
 min-height:44px!important;height:auto!important;
 grid-auto-rows:minmax(44px,auto)!important;
 align-content:center!important;
}
#tgCards.teacher-entry-sheet .school-test-student-card>h4{
 padding:7px 10px!important;margin:0!important;font-size:13px!important;
}
#tgCards.teacher-entry-sheet .school-test-student-card>label{
 display:block!important;padding:4px 8px!important;margin:0!important;
 font-size:0!important;line-height:0!important;overflow:hidden!important;
}
#tgCards.teacher-entry-sheet .school-test-student-card>label input{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 padding:4px 7px!important;margin:0!important;font-size:14px!important;line-height:22px!important;
}
#tgCards.teacher-entry-sheet .school-test-card-meta{
 padding:5px 8px!important;font-size:12px!important;white-space:nowrap!important;
}
#tgCards.teacher-entry-sheet .school-test-card-actions{display:contents!important}
#tgCards.teacher-entry-sheet .school-test-card-actions button{
 width:calc(100% - 12px)!important;min-height:32px!important;height:32px!important;
 padding:3px 7px!important;margin:4px 6px!important;font-size:13px!important;
}
#tgCards.teacher-entry-sheet .school-test-card-actions [role=status]{
 padding:5px 8px!important;margin:0!important;font-size:12px!important;
 line-height:1.15!important;white-space:normal!important;
}
#tgCards.teacher-entry-sheet .test-entry-head>span{padding:9px 8px!important}
#tgCards.teacher-entry-sheet .school-test-student-card[hidden]{display:none!important}


/* Attendance: name and Absent on one short row, separated into stable columns. */
.attendance-grid-page .teacher-attendance-rows.attendance-card-grid{
 display:block!important;grid-template-columns:none!important;min-width:440px!important;
}
.attendance-grid-page .teacher-attendance-rows .attendance-student-card{
 display:grid!important;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr)!important;
 grid-auto-flow:row!important;grid-auto-rows:auto!important;
 align-items:center!important;justify-items:stretch!important;
 min-height:44px!important;height:auto!important;
 padding:5px 12px!important;gap:0!important;
}
.attendance-grid-page .teacher-attendance-rows .attendance-student-heading{
 grid-column:1!important;grid-row:1!important;display:flex!important;
 align-items:center!important;gap:10px!important;
 margin:0!important;padding:0 12px 0 0!important;width:auto!important;
}
.attendance-grid-page .teacher-attendance-rows .attendance-toggle{
 grid-column:2!important;grid-row:1!important;display:flex!important;
 flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;justify-self:stretch!important;
 gap:12px!important;width:auto!important;min-height:34px!important;
 margin:0!important;padding:3px 10px!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
.attendance-grid-page .teacher-attendance-rows .attendance-toggle input{
 position:static!important;flex:0 0 auto!important;margin:0!important;
 width:19px!important;height:19px!important;
}


/* One unified monthly marksheet workflow. */
.monthly-mark-page{background:#fff;border:1px solid #d6e5ef;border-radius:13px;padding:16px}
.monthly-mark-page h2{margin:2px 0 14px;color:#1f567d}
.monthly-mark-page .teacher-sheet-scroll{max-height:60dvh}
.monthly-mark-page [data-show]{min-height:32px;padding:5px 13px!important;background:#137b69!important;color:#fff!important}
.monthly-mark-person{margin:0 0 18px;padding:10px 12px;border:1px solid #cddfeb;border-radius:11px;background:#f3f9ff}
.monthly-mark-person label{display:flex;flex-wrap:wrap;gap:9px;align-items:center;font-weight:700}
.monthly-mark-person select{min-width:180px;max-width:410px}
.monthly-student-report-card[hidden]{display:none!important}
@media(max-width:700px){.monthly-mark-page{padding:9px}.monthly-mark-person select{width:100%;min-width:0}}


/* Definitive attendance table reset: override older card rules and pseudo decorations. */
#agCards.teacher-attendance-rows{display:block!important;min-width:440px!important}
#agCards.teacher-attendance-rows>.attendance-sheet-row{
 display:grid!important;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr)!important;
 grid-template-rows:44px!important;grid-auto-flow:row!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 height:44px!important;min-height:44px!important;max-height:44px!important;
 margin:0!important;padding:0!important;gap:0!important;
 border:0!important;border-bottom:1px solid #d5e2ed!important;
 border-radius:0!important;box-shadow:none!important;
 background:#fff!important;align-items:center!important;
}
#agCards.teacher-attendance-rows>.attendance-sheet-row:nth-child(even){background:#f5f9fd!important}
#agCards.teacher-attendance-rows>.attendance-sheet-row.is-absent{background:#fff3f5!important}
#agCards.teacher-attendance-rows>.attendance-sheet-row>.attendance-student-heading{
 display:flex!important;grid-column:1!important;grid-row:1!important;
 align-items:center!important;flex-flow:row nowrap!important;justify-content:flex-start!important;
 height:44px!important;min-height:0!important;margin:0!important;
 padding:0 14px!important;gap:11px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 font-size:14px!important;
}
#agCards.teacher-attendance-rows>.attendance-sheet-row>.attendance-toggle{
 display:flex!important;grid-column:2!important;grid-row:1!important;
 align-items:center!important;justify-content:flex-start!important;flex-direction:row!important;
 height:44px!important;min-height:0!important;max-height:44px!important;
 margin:0!important;padding:0 15px!important;gap:11px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 font-size:14px!important;font-weight:600!important;
}
#agCards.teacher-attendance-rows>.attendance-sheet-row>.attendance-toggle input{
 display:inline-block!important;position:static!important;appearance:auto!important;
 width:18px!important;height:18px!important;margin:0!important;padding:0!important;flex:none!important;
}
#agCards.teacher-attendance-rows>.attendance-sheet-row>.attendance-toggle::before,
#agCards.teacher-attendance-rows>.attendance-sheet-row>.attendance-toggle::after{display:none!important}


/* Monthly Marksheet Add New: two compact rows instead of oversized separate panels. */
.monthly-mark-person.monthly-mark-compact{
 display:grid!important;grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) auto auto!important;
 grid-template-rows:auto auto!important;align-items:end!important;
 column-gap:10px!important;row-gap:8px!important;
 padding:10px 13px!important;margin:0 0 12px!important;
 background:#f4f9fc!important;border:1px solid #ccdeea!important;border-radius:12px!important;
}
.monthly-mark-compact>.teacher-history-tabs{grid-column:1/-1!important;grid-row:1!important;display:flex!important;gap:8px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
.monthly-mark-compact>.teacher-history-tabs button{flex:0 0 auto!important;padding:6px 14px!important;min-height:34px!important}
.monthly-mark-compact>h2{display:none!important}
.monthly-mark-compact>label{grid-column:1!important;grid-row:2!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;margin:0!important;padding:0!important;font-size:13px!important}
.monthly-mark-compact>label select{min-width:0!important;max-width:none!important;width:100%!important;height:39px!important;min-height:39px!important;margin:0!important}
.monthly-mark-compact>.monthly-mark-compact-controls{grid-column:2/-1!important;grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;align-items:end!important;gap:9px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.monthly-mark-compact-controls>label{flex:1 1 150px!important;min-width:0!important;max-width:240px!important;display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;padding:0!important;font-size:13px!important}
.monthly-mark-compact-controls>label input,.monthly-mark-compact-controls>label select{height:39px!important;min-height:39px!important;width:100%!important;margin:0!important}
.monthly-mark-compact-controls>button{flex:0 0 auto!important;height:39px!important;min-height:39px!important;padding:5px 12px!important;margin:0!important;font-size:13px!important}
@media(max-width:850px){
 .monthly-mark-person.monthly-mark-compact{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:8px!important}
 .monthly-mark-compact>.teacher-history-tabs{width:100%!important}
 .monthly-mark-compact>label{flex:1 1 180px!important;min-width:150px!important}
 .monthly-mark-compact>.monthly-mark-compact-controls{flex:2 1 370px!important;flex-wrap:wrap!important}
}


/* Homework roster: definitive spreadsheet reset against the legacy 3-card grid. */
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet{
 display:block!important;grid-template-columns:none!important;grid-auto-flow:row!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 overflow-x:auto!important;overflow-y:visible!important;padding:0!important;gap:0!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.homework-entry-head,
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(190px,2.4fr) minmax(125px,1fr) minmax(145px,1.2fr) 95px minmax(135px,1.1fr)!important;
 min-width:740px!important;width:100%!important;max-width:none!important;
 margin:0!important;gap:0!important;float:none!important;clear:both!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student{
 height:48px!important;min-height:48px!important;max-height:48px!important;
 grid-template-rows:48px!important;grid-auto-rows:48px!important;
 align-content:center!important;align-items:center!important;padding:0!important;
 border:0!important;border-bottom:1px solid #d5e3ee!important;border-radius:0!important;
 box-shadow:none!important;overflow:hidden!important;background:#fff!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student:nth-child(odd){background:#f5f9fd!important}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student.is-saved{background:#eaf4ef!important}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student>h4{
 grid-column:1!important;grid-row:1!important;min-width:0!important;
 padding:0 12px!important;margin:0!important;font-size:13px!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-line,
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-actions{
 display:contents!important;margin:0!important;padding:0!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-line>label{
 display:block!important;min-width:0!important;margin:0!important;padding:5px 7px!important;
 font-size:0!important;line-height:0!important;overflow:hidden!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-line:nth-of-type(1)>label{grid-column:2!important;grid-row:1!important}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-line:nth-of-type(2)>label{grid-column:3!important;grid-row:1!important}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-line select{
 box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 margin:0!important;padding:3px 7px!important;font-size:12px!important;line-height:22px!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-actions [data-save]{
 grid-column:4!important;grid-row:1!important;justify-self:stretch!important;
 box-sizing:border-box!important;width:calc(100% - 12px)!important;min-width:0!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 margin:0 6px!important;padding:4px 7px!important;font-size:12px!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet .classic-homework-actions [role=status]{
 grid-column:5!important;grid-row:1!important;box-sizing:border-box!important;min-width:0!important;
 padding:0 9px!important;margin:0!important;font-size:12px!important;line-height:1.2!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:left!important;
}
.pulse-experience #content .classic-homework #rosterCards.teacher-entry-sheet>.classic-homework-student[hidden]{display:none!important}
.pulse-experience #content .classic-homework .school-roster-filters{position:relative;z-index:1}


/* Class Copies: clearly dim completed records while preserving editability. */
#copyRows .copy-subject-row.is-saved{background:#e9efed!important;border-color:#d3dfda!important;opacity:.62;transition:opacity .16s,background .16s}
#copyRows .copy-subject-row.is-saved button[data-copy-save]{background:#7b9990!important;border-color:#7b9990!important;cursor:default}
#copyRows .copy-subject-row.is-saved:focus-within,#copyRows .copy-subject-row.is-saved:hover{opacity:1}
#copyRows .copy-subject-row:not(.is-saved){opacity:1!important}


/* Principal students: all-class filter and top add action. */
.principal-student-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:10px 0 12px;padding:10px 12px;border:1px solid #d5e3eb;border-radius:10px;background:#f2f8fb}
.principal-student-tools label{display:flex;flex-direction:column;gap:4px;min-width:190px;font-size:13px;font-weight:700;color:#264e65}
.principal-student-tools select{min-height:38px;padding:6px 10px}
.principal-student-tools button{min-height:38px;padding:7px 15px;margin:0;background:#12816f;color:white}
#add[hidden]{display:none!important}
tr[data-student-class][hidden]{display:none!important}


/* Compact, two-column school drawer; Sign Out stays at bottom. */
.pulse-experience #schoolNav.school-flat-drawer{
 width:min(420px,96vw)!important;max-height:100dvh!important;
 height:100dvh!important;box-sizing:border-box!important;
 padding:10px 12px 12px!important;display:flex!important;flex-direction:column!important;
 overflow-y:auto!important;gap:0!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-simple-drawer-head{
 flex:0 0 auto!important;min-height:42px!important;padding:0 3px 7px!important;
 justify-content:flex-end!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-content:start!important;align-items:stretch!important;
 gap:3px 5px!important;min-height:0!important;padding:7px 0!important;
 flex:0 1 auto!important;overflow:visible!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 height:35px!important;min-height:35px!important;max-height:35px!important;
 padding:4px 6px!important;gap:5px!important;border-width:1px!important;
 border-radius:8px!important;font-size:11px!important;line-height:1.1!important;
 white-space:nowrap!important;overflow:hidden!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item .pulse-nav-icon{
 width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 19px!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item .pulse-nav-label{
 min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.pulse-experience #schoolNav.school-flat-drawer>#logout.school-sign-out{
 display:block!important;position:sticky!important;bottom:0!important;flex:0 0 auto!important;
 margin:auto 0 0!important;width:100%!important;height:39px!important;min-height:39px!important;
 background:#fff0ef!important;color:#af3541!important;border:1px solid #f4d1cd!important;
 border-radius:9px!important;font-size:13px!important;font-weight:750!important;z-index:3!important;
}
@media(max-width:360px){
 .pulse-experience #schoolNav.school-flat-drawer .school-flat-links .pulse-nav-item{font-size:10px!important;padding:4px!important}
}


/* Principal navigation: compact expandable categories with the real existing page buttons. */
.pulse-experience #schoolNav.school-flat-drawer .school-flat-links.school-grouped-links{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-content:start!important;align-items:start!important;gap:6px!important;
 padding:9px 0!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-grouped-links>.school-nav-category{
 grid-column:1/-1;min-width:0;border:1px solid #d4e2ee;border-radius:10px;
 background:#fff;overflow:hidden;
}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-trigger{
 display:flex;align-items:center;gap:9px;padding:10px 13px;min-height:22px;
 font-size:13px;font-weight:750;color:#174d78;cursor:pointer;list-style:none;
 background:#eef5fc;
}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-trigger::-webkit-details-marker{display:none}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-trigger:focus-visible{outline:2px solid #155dba;outline-offset:-2px}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-symbol{width:20px;height:20px;display:inline-flex;align-items:center}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-symbol svg{width:19px;height:19px}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-chevron{margin-left:auto;font-size:18px;transition:transform .16s}
.pulse-experience #schoolNav.school-flat-drawer details[open] .school-nav-category-chevron{transform:rotate(180deg)}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-items{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;
}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-items>.pulse-nav-item{
 min-height:38px!important;height:auto!important;max-height:none!important;
 line-height:1.25!important;white-space:normal!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-nav-category-items .pulse-nav-label{
 white-space:normal!important;overflow-wrap:break-word!important;
}
.pulse-experience #schoolNav.school-flat-drawer .school-grouped-links>.pulse-nav-item{
 height:41px!important;min-height:41px!important;max-height:41px!important;
 font-size:13px!important;
}


/* Monthly Marks Register: separate assessments by short headings and subtle vertical bands. */
.mr-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;margin:12px 0;background:#edf5f5;border:1px solid #d0e4e5;border-radius:10px;font-size:13px;color:#30546b}
.mr-summary strong{font-size:15px;color:#164e78}
.mr-scroll{max-width:100%;overflow:auto;border:1px solid #ccddeb;border-radius:12px;background:white}
.mr-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}
.mr-table th,.mr-table td{box-sizing:border-box;border-right:1px solid #e0eaf2;border-bottom:1px solid #e1eaf1;padding:10px 12px;height:46px;vertical-align:middle}
.mr-table thead th{position:sticky;top:0;z-index:2;background:#dceafa;color:#174875;text-align:center;font-weight:750}
.mr-table .mr-student{position:sticky;left:0;min-width:170px;width:200px;max-width:235px;z-index:3;background:#f4f8fd;text-align:left;font-weight:750;color:#194b72}
.mr-table .mr-father{position:sticky;left:200px;min-width:165px;width:185px;max-width:220px;z-index:3;background:#f7fafc;text-align:left}
.mr-table thead .mr-student,.mr-table thead .mr-father{z-index:5;background:#dceafa}
.mr-table .mr-exam{min-width:132px;width:150px;white-space:normal;line-height:1.35;padding:8px 10px}
.mr-table .mr-subject,.mr-table .mr-type,.mr-table .mr-date{display:block}
.mr-table .mr-subject{font-weight:850;font-size:14px}
.mr-table .mr-type{font-size:12px;font-weight:700;color:#49647b}
.mr-table .mr-date{font-size:11px;color:#63798b;margin-top:3px}
.mr-table .mr-mark{text-align:center;min-width:132px}
.mr-table .mr-score{font-size:15px;font-weight:750;color:#145e55}
.mr-table .mr-score small{font-size:11px;color:#657a88;font-weight:500}
.mr-table .mr-empty{color:#a3b0bc}
.mr-table tbody tr:nth-child(even) .mr-student{background:#ebf3fa}
.mr-table tbody tr:nth-child(even) .mr-father{background:#f0f6fa}
.mr-table .mr-band-0{background:#f9fcff}
.mr-table .mr-band-1{background:#f1f8f5}
.mr-table .mr-band-2{background:#fff9f1}
.mr-table .mr-band-3{background:#f7f5fc}
.mr-table thead .mr-band-0{background:#d9e9fb}
.mr-table thead .mr-band-1{background:#d9eee5}
.mr-table thead .mr-band-2{background:#fae7cf}
.mr-table thead .mr-band-3{background:#e9e2f9}
.mr-table tbody tr:hover td,.mr-table tbody tr:hover th{filter:brightness(.97)}
@media(max-width:650px){.mr-table .mr-student{width:150px;min-width:150px}.mr-table .mr-father{left:150px;width:135px;min-width:135px}.mr-table th,.mr-table td{padding:8px}}


/* Principal role-management: consistent, compact two-choice management pages. */
.staff-manage-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 15px;padding:7px;background:#f1f7fc;border:1px solid #d4e4f1;border-radius:11px}
.staff-manage-tabs>button{flex:0 1 auto;min-height:38px;padding:7px 15px;background:#fff;color:#23567c;border:1px solid #cbddea;border-radius:9px;font-size:13px;font-weight:700}
.staff-manage-tabs>button[aria-pressed="true"]{background:#117e6c!important;color:white!important;border-color:#117e6c!important}
.staff-manage-body{min-width:0}
.staff-manage-body form[hidden],.staff-manage-body [hidden]{display:none!important}
.staff-manage-body .teacher-sheet-scroll{overflow:auto;max-width:100%;border:1px solid #dbe6f1;border-radius:11px}
.staff-manage-body .teacher-sheet{width:100%;font-size:13px}
.staff-assign-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}


/* Global mutation confirmation: visible, compact, accessible and independent of page redraws. */
.school-success-toast{position:fixed;right:18px;top:18px;z-index:2147483000;display:flex;align-items:center;gap:11px;max-width:min(430px,calc(100vw - 28px));padding:12px 14px;background:#edf9f2;color:#145841;border:1px solid #a6d9ba;box-shadow:0 12px 30px #193e2e24;border-radius:12px;font-size:14px;font-weight:700;opacity:0;visibility:hidden;transform:translateY(-12px);transition:opacity .2s,transform .2s,visibility .2s;pointer-events:none}
.school-success-toast.visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.school-success-toast .school-success-icon{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;background:#167e5c;color:white;font-size:17px}
.school-success-toast button{border:0;background:transparent;color:inherit;font-size:21px;cursor:pointer;margin-left:auto;padding:0 3px}
@media(max-width:600px){.school-success-toast{left:12px;right:12px;top:12px;max-width:none}}


/* Old-app-inspired Accountant fee workspace. */
.accountant-workspace{max-width:1400px;margin:auto;padding:12px}
.accountant-mode-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0;padding:7px;background:#eaf4f2;border:1px solid #c7e0da;border-radius:11px}
.accountant-mode-tabs button{font-size:13px;padding:9px 12px;background:#fff;color:#1f6257;border:1px solid #b5d4cd;border-radius:8px}
.accountant-mode-tabs button[aria-pressed=true]{background:#117d6b!important;color:#fff!important}
.accountant-profile-filters{display:grid;grid-template-columns:repeat(3,minmax(155px,1fr));gap:10px;background:#f5faf9;padding:12px;border:1px solid #d5e4df;border-radius:11px}
.accountant-profile-filters label{display:flex;flex-direction:column;gap:5px;font-weight:650}
.accountant-profile-filters select,.accountant-profile-filters input{width:100%;min-width:0;min-height:38px;padding:7px}
.accountant-fee-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}
.accountant-fee-stats>div{border:1px solid #d0e2df;border-radius:11px;background:#f4faf8;padding:13px;display:flex;flex-direction:column;gap:6px}
.accountant-fee-stats small{color:#536d67;font-size:12px}
.accountant-fee-stats b{color:#096950;font-size:19px;font-variant-numeric:tabular-nums}
.accountant-profile-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.accountant-workspace .teacher-sheet-scroll{overflow:auto;max-width:100%}
@media(max-width:650px){.accountant-profile-filters{grid-template-columns:1fr 1fr}.accountant-profile-filters label:last-child{grid-column:1/-1}.accountant-fee-stats{grid-template-columns:1fr}.accountant-workspace{padding:4px}}
@media print{.accountant-mode-tabs,.accountant-profile-filters,.accountant-profile-actions,#schoolNav{display:none!important}.accountant-workspace{max-width:none}}

/* Accountant fee rules: three focused rule types, compact forms. */
.accountant-rule-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.accountant-rule-tabs button{border:1px solid #b8d8d1;border-radius:9px;padding:10px 13px;background:#ecf5f2;color:#1e6558}
.accountant-rule-tabs button[aria-pressed="true"]{background:#107e68;color:white}
.accountant-annual-rules #afrForm .form{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:10px;max-width:790px}
.accountant-annual-rules #afrForm .form button{align-self:end}
@media(max-width:650px){.accountant-annual-rules #afrForm .form{grid-template-columns:1fr}}

/* Center the five Accountant Home options without affecting fee forms. */
.accountant-workspace[data-account-view="home"]{max-width:1100px;margin:0 auto;min-height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.accountant-workspace[data-account-view="home"]>h2{text-align:center;width:100%;margin:0 0 24px}
.accountant-workspace[data-account-view="home"] .accountant-mode-tabs{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:12px;width:min(100%,1000px);padding:18px;background:#eef6f3;border-radius:15px}
.accountant-workspace[data-account-view="home"] .accountant-mode-tabs button{flex:1 1 175px;max-width:290px;min-height:68px;text-align:center;font-size:15px;font-weight:750;padding:12px 16px}
.accountant-workspace[data-account-view="home"] #accountStatus:empty,.accountant-workspace[data-account-view="home"] #accountBody:empty{display:none}
@media(max-width:600px){.accountant-workspace[data-account-view="home"]{min-height:45vh}.accountant-workspace[data-account-view="home"] .accountant-mode-tabs{gap:9px;padding:11px}.accountant-workspace[data-account-view="home"] .accountant-mode-tabs button{flex:1 1 135px;min-height:58px;font-size:13px}}


/* Accountant portal density pass: compact rows and fewer vertical blocks. */
.accountant-workspace:not([data-account-view="home"]){max-width:1500px;padding:6px 10px}
.accountant-workspace:not([data-account-view="home"])>h2{margin:4px 0 8px;font-size:clamp(23px,2vw,30px)}
.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs{margin:6px 0 9px;padding:5px;gap:5px}
.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs button{min-height:35px;padding:6px 10px;font-size:12px;border-radius:7px}
.accountant-workspace #accountStatus{margin:4px 0 7px;font-size:13px}
.accountant-workspace #acctResult>h3{font-size:21px;margin:9px 0 4px}
.accountant-workspace #acctResult>h4{font-size:16px;margin:9px 0 6px}
.accountant-workspace #acctResult>p{font-size:13px;margin:4px 0 8px}
.accountant-workspace .accountant-profile-filters{gap:7px;padding:8px;border-radius:9px}
.accountant-workspace .accountant-profile-filters label{font-size:12px;gap:3px}
.accountant-workspace .accountant-profile-filters input,.accountant-workspace .accountant-profile-filters select{min-height:35px;height:35px;padding:4px 8px;border-radius:7px;font-size:13px}
.accountant-workspace #acctResult .form,.accountant-workspace #afrForm .form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:end;max-width:none!important;width:100%;gap:7px!important;padding:10px!important;margin:6px 0!important;box-sizing:border-box}
.accountant-workspace #acctResult .form>label,.accountant-workspace #afrForm .form>label{min-width:0!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;border:0!important;background:transparent!important;font-size:12px!important}
.accountant-workspace #acctResult .form input,.accountant-workspace #acctResult .form select,.accountant-workspace #afrForm .form input,.accountant-workspace #afrForm .form select{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:5px 8px!important;font-size:13px!important}
.accountant-workspace #acctResult .form>button,.accountant-workspace #afrForm .form>button{min-height:36px!important;height:36px!important;padding:6px 9px!important;font-size:12px!important;align-self:end!important}
.accountant-workspace #acctResult .form>p{margin:0;align-self:center;font-size:12px}
.accountant-workspace .accountant-fee-stats{gap:7px;margin:8px 0}
.accountant-workspace .accountant-fee-stats>div{padding:8px 10px;gap:2px}
.accountant-workspace .accountant-fee-stats small{font-size:11px}
.accountant-workspace .accountant-fee-stats b{font-size:16px}
.accountant-workspace .accountant-profile-actions{gap:7px;margin:8px 0}
.accountant-workspace .accountant-profile-actions button{min-height:36px;padding:6px 10px;font-size:12px}
.accountant-workspace .teacher-sheet th,.accountant-workspace .teacher-sheet td{padding:7px 9px!important;font-size:12px}
.accountant-workspace .accountant-rule-tabs{gap:5px;margin:7px 0}
.accountant-workspace .accountant-rule-tabs button{min-height:35px;padding:6px 9px;font-size:12px}
@media(max-width:950px){.accountant-workspace #acctResult .form,.accountant-workspace #afrForm .form{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:550px){.accountant-workspace:not([data-account-view="home"]){padding:3px}.accountant-workspace #acctResult .form,.accountant-workspace #afrForm .form{grid-template-columns:minmax(0,1fr)!important;padding:7px!important}.accountant-workspace .accountant-profile-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.accountant-workspace .accountant-fee-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.accountant-workspace .accountant-mode-tabs button{flex:1 1 auto}}


/* Keep Student Fee Profile action on the right; clear assigned/edit states. */
.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs .accountant-profile-tab{order:10;margin-left:auto}
.accountant-workspace .accountant-assigned-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 12px;background:#e9f6ee;border:1px solid #a9dcc0;border-radius:9px;color:#175c42}
.accountant-workspace .accountant-assigned-status strong{color:#13754f}
.accountant-workspace .accountant-assignment-edit{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:5px 0 10px;font-size:13px}
.accountant-workspace .accountant-assignment-edit button{min-height:35px;padding:6px 12px}
.accountant-workspace #acctAssignFees[hidden]{display:none!important}
@media(max-width:650px){.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs .accountant-profile-tab{margin-left:0}}

/* Compact accountant filtering controls shared across fee lists and rules. */
.accountant-workspace .accountant-list-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:8px 0}
.accountant-workspace .accountant-list-filters label,.accountant-workspace .accountant-rule-search{display:flex;flex-direction:column;gap:4px;min-width:180px;font-size:12px;font-weight:700}
.accountant-workspace .accountant-list-filters input,.accountant-workspace .accountant-list-filters select,.accountant-workspace .accountant-rule-search input{height:36px;min-height:36px;padding:5px 9px;font-size:13px}
.accountant-workspace .teacher-sheet tr[hidden]{display:none!important}

/* Fee Rules sits immediately left of Student Fee Profile at the right edge. */
.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs .accountant-rules-tab{order:9;margin-left:auto}
.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs .accountant-profile-tab{order:10;margin-left:0}
@media(max-width:650px){.accountant-workspace:not([data-account-view="home"]) .accountant-mode-tabs .accountant-rules-tab{margin-left:0}}

/* Parent workspace: reuse Gurukulam compact drawer and clear app-grade home tiles. */
.pulse-experience .parent-home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.pulse-experience .parent-home-tile{background:#eff5f0!important;color:#174f43!important;border:1px solid #bfd9cb!important;border-left:5px solid #197d67!important;border-radius:14px!important;padding:24px 16px!important;min-height:98px;text-align:left;font-size:19px;font-weight:750;box-shadow:0 5px 16px #214b3312;white-space:normal}
.pulse-experience .parent-home-tile:nth-child(2){background:#eef2fa!important;color:#234c7b!important;border-left-color:#3b6caa!important}
.pulse-experience .parent-home-tile:nth-child(3){background:#fdf4e7!important;color:#7d5723!important;border-left-color:#ca954a!important}
.pulse-experience .parent-home-tile:nth-child(4){background:#f0edf9!important;color:#563f87!important;border-left-color:#8567ad!important}
.pulse-experience .parent-home-tile:nth-child(5){background:#eef5f8!important;color:#235c73!important;border-left-color:#42809a!important}
.pulse-experience .parent-home-tile:nth-child(6){background:#f1f7ec!important;color:#4a6731!important;border-left-color:#769853!important}
.pulse-experience .parent-home-tile:hover,.pulse-experience .parent-home-tile:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px #214b3322;outline-offset:3px}
.pulse-experience .parent-welcome{font-size:clamp(21px,2.4vw,29px);color:#205744;margin:10px 0 4px}
.pulse-experience .parent-intro{font-size:16px;color:#607772;margin:0}
.pulse-experience .parent-child-view{max-width:1100px}
.pulse-experience .parent-child-view>.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
@media(max-width:850px){.pulse-experience .parent-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.pulse-experience .parent-home-cards{grid-template-columns:1fr 1fr;gap:9px}.pulse-experience .parent-home-tile{font-size:15px;min-height:80px;padding:13px!important}}

/* Parent: full academic-year attendance calendar, compact and responsive. */
.parent-attendance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 12px}
.parent-attendance-stats>div{padding:15px 18px;background:#eef4fa;border:1px solid #d7e3ec;border-radius:12px;text-align:center}
.parent-attendance-stats>div:nth-child(2){background:#e8f5ec;border-color:#b8dec7}
.parent-attendance-stats>div:nth-child(3){background:#fff0ed;border-color:#efc8c0}
.parent-attendance-stats small{display:block;font-size:13px;color:#486574}.parent-attendance-stats strong{display:block;font-family:Arial,sans-serif;font-size:27px;color:#164b73;margin-top:3px}
.parent-attendance-key{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin:16px 0;color:#456172;font-size:13px}
.parent-attendance-key span:nth-child(1){color:#207c4d}.parent-attendance-key span:nth-child(2){color:#b64232}.parent-attendance-key span:nth-child(3){color:#7f9099}
.parent-calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:14px auto 24px;max-width:1250px}
.parent-calendar-month{border:1px solid #d7e4df;border-radius:15px;padding:12px;background:#fff;box-shadow:0 3px 14px #174b4110;min-width:0}
.parent-calendar-month h4{text-align:center;background:#e8f4ee;color:#145f4c;border-radius:8px;padding:8px 5px;margin:0 0 10px;font-size:16px}
.parent-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.parent-day{display:grid;place-items:center;border-radius:7px;min-width:0;aspect-ratio:1;font:600 13px Arial,sans-serif;color:#4c6170;background:#f0f3f4}
.parent-day.weekday{background:transparent;color:#728491;font-size:11px;aspect-ratio:auto;min-height:21px}
.parent-day.empty{background:transparent}.parent-day.present{background:#d5f0dc;color:#17693b}.parent-day.absent{background:#ffe0dc;color:#ae3529}.parent-day.unrecorded{background:#f0f3f4;color:#7c8c95}
@media(max-width:960px){.parent-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.parent-calendar-grid{grid-template-columns:1fr;max-width:440px}.parent-attendance-stats{gap:6px}.parent-attendance-stats>div{padding:10px 6px}.parent-attendance-stats strong{font-size:22px}.parent-day{font-size:14px}}

/* Parent Test Results: compact optional subject and month filters. */
.parent-test-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:12px 0 14px}.parent-test-filters label{display:grid;gap:6px;min-width:180px;max-width:270px;flex:1;color:#295269;font-weight:650}.parent-test-filters select{width:100%;border:1px solid #b9d1d5;background:#fff;padding:9px 12px;border-radius:10px}.parent-test-count{font-size:13px;color:#526b75;margin:6px 0 12px}@media(max-width:500px){.parent-test-filters{gap:9px}.parent-test-filters label{min-width:135px}}

.parent-attendance-filter{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 18px}.parent-attendance-filter label{font-weight:700;color:#205b78}.parent-attendance-filter select{min-width:200px;max-width:100%;background:#fff;border:1px solid #bfd5d4;border-radius:10px;padding:10px 14px}.parent-calendar-month[hidden]{display:none!important}

/* Parent Home: centered, balanced 2-by-2 dashboard in the established Gurukulam theme. */
.pulse-experience .parent-child-view:has(.parent-home-cards){width:100%;max-width:1100px;margin:0 auto;padding:20px 24px 34px;text-align:center}
.pulse-experience .parent-child-view:has(.parent-home-cards) .parent-welcome{margin:8px auto 8px;text-align:center}
.pulse-experience .parent-child-view:has(.parent-home-cards) .parent-intro{text-align:center;margin:0 auto 26px}
.pulse-experience .parent-child-view .parent-home-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:880px!important;margin:0 auto!important;gap:20px!important;justify-content:center}
.pulse-experience .parent-child-view .parent-home-tile{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:114px!important;width:100%;font-size:21px!important;line-height:1.3;border-radius:17px!important}
@media(max-width:650px){.pulse-experience .parent-child-view:has(.parent-home-cards){padding:12px 8px 24px}.pulse-experience .parent-child-view .parent-home-cards{gap:10px!important}.pulse-experience .parent-child-view .parent-home-tile{font-size:15px!important;min-height:88px!important;padding:12px 8px!important}}

/* Linked student portrait in read-only Parent Portal. */
.parent-profile-photo{width:128px;height:128px;margin:8px auto 18px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e9f4f0;border:4px solid #bedbcb;box-shadow:0 6px 20px #1c5d4620;font-size:48px}.parent-profile-photo img{display:block;width:100%;height:100%;object-fit:cover}.parent-child-view:has(.parent-profile-photo){text-align:center}.parent-child-view:has(.parent-profile-photo) .cards{text-align:left}

/* MOBILE EXPERIENCE V3 — desktop styles are intentionally untouched. */
@media(max-width:700px){
 html,body,#app{max-width:100%;overflow-x:clip}
 #app{min-width:0}#content,#content>*,.pulse-experience main,.pulse-experience .wrap{min-width:0;max-width:100%}
 .pulse-experience .wrap,.wrap{padding-inline:10px!important}
 #content>.panel,#content>section,.panel{max-width:100%;min-width:0}
 #content h2,#content h3{font-size:clamp(19px,5vw,25px);line-height:1.25;overflow-wrap:anywhere}
 #content .cards,#content .accountant-fee-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #content .card{min-width:0;overflow-wrap:anywhere;padding:12px!important}
 #content .card b{font-size:clamp(18px,5vw,26px)}
 #content .form,#content form{min-width:0;max-width:100%}
 #content .form input,#content .form select,#content .form textarea,#content form input:not([type=checkbox]):not([type=radio]),#content form select,#content form textarea{max-width:100%;min-width:0;width:100%;box-sizing:border-box}
 #content input,#content select,#content textarea{font-size:16px}
 #content button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:39px}
 #content .form label{min-width:0}
 .teacher-sheet-scroll,.tablebox,.accountant-table-wrap,[class*="table-scroll"],[class*="table-wrap"]{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 #content table{max-width:100%}
 #content table:not(.mobile-card-table) th,#content table:not(.mobile-card-table) td{padding:7px 9px;font-size:13px;white-space:nowrap}
 #content table:not(.mobile-card-table) th:first-child,#content table:not(.mobile-card-table) td:first-child{position:sticky;left:0;z-index:1;background:#f0f6fb}
 #content table:not(.mobile-card-table) thead th:first-child{z-index:2;background:#dbe7f7}
 #content table:not(.mobile-card-table) input,#content table:not(.mobile-card-table) select{min-width:64px;width:auto;max-width:125px;font-size:14px;padding:6px}
 #content .parent-calendar-grid{grid-template-columns:1fr!important}
 #content .parent-test-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 #content .parent-test-filters label{min-width:0}
 #content .parent-child-view{padding-inline:0!important}
 .pulse-experience .parent-child-view .parent-home-cards{gap:9px!important;width:100%}
 .pulse-experience .parent-child-view .parent-home-tile{min-height:84px!important}
 #content .accountant-profile-actions,#content .accountant-actions,#content .teacher-history-tabs{display:flex;flex-wrap:wrap;gap:7px}
 #content .accountant-profile-actions button,#content .accountant-actions button{flex:1 1 130px}
}
@media(max-width:700px){
 /* Read-only tables become labelled vertical records; editing grids retain horizontal scrolling. */
 #content table.mobile-card-table{border:0!important;display:block!important;width:100%!important;min-width:0!important}
 #content table.mobile-card-table thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #content table.mobile-card-table tbody{display:grid!important;grid-template-columns:1fr;gap:10px;width:100%}
 #content table.mobile-card-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr;gap:0 10px;padding:10px 12px;border:1px solid #cddfe5;border-radius:12px;background:#fff;box-shadow:0 3px 12px #1c4d6812;min-width:0;width:100%}
 #content table.mobile-card-table td{position:static!important;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;max-width:100%;padding:7px 3px!important;border:0!important;border-bottom:1px solid #edf2f5!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:14px!important;text-align:left!important}
 #content table.mobile-card-table td::before{content:attr(data-mobile-label);display:block;margin-bottom:3px;color:#667f8d;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.2px}
 #content table.mobile-card-table td button{width:100%;min-width:0;padding:8px 9px}
 #content table.mobile-card-table td:last-child{border:0!important}
 #content table.mobile-card-table tbody tr[hidden]{display:none!important}
 #content table.mobile-card-table tbody tr:has(td:only-child){grid-template-columns:1fr}
}
@media(max-width:390px){#content .cards,#content .accountant-fee-stats{grid-template-columns:1fr!important}#content table.mobile-card-table tbody tr{grid-template-columns:1fr 1fr}}

/* MOBILE COMPACT TEACHER WORKSPACE — desktop deliberately unchanged */
@media(max-width:700px){
 body{font-size:14px!important}
 .pulse-experience .pulse-workspace-strip,.pulse-experience .pulse-header-strip,.pulse-experience .pulse-workspace-hero{padding:8px 10px!important;min-height:0!important}
 .pulse-experience .pulse-school-name{font-size:18px!important;line-height:1.15!important}
 .pulse-experience .pulse-strip-copy strong{font-size:16px!important}
 .pulse-experience .pulse-strip-copy span{font-size:12px!important}
 #content{padding:6px!important}
 #content h2,#content h3{font-size:19px!important;margin:8px 0 12px!important}
 #content h4{font-size:16px!important;margin:8px 0!important}
 #content .panel,#content .teacher-history-page,#content .school-test-grid-page,#content .classic-homework,#content .attendance-grid-page{padding:10px!important;margin:8px 0!important;border-radius:12px!important}
 #content .toolbar,#content .teacher-history-filters,#content .school-test-filters,#content .school-roster-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:7px!important;margin:5px 0 10px!important}
 #content .toolbar>label,#content .teacher-history-filters>label,#content .school-test-filters>label,#content .school-roster-filters>label{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;gap:4px!important;padding:7px!important;margin:0!important;font-size:12px!important}
 #content .toolbar label input,#content .toolbar label select,#content .teacher-history-filters input,#content .teacher-history-filters select,#content .school-test-filters input,#content .school-test-filters select{width:100%!important;max-width:100%!important;min-width:0!important;height:38px!important;padding:5px 7px!important;font-size:13px!important}
 #content .toolbar>button,#content .school-test-filters>button,#content .teacher-history-filters>button{min-width:0!important;width:100%!important;min-height:38px!important;padding:8px!important;font-size:13px!important;margin:0!important}
 #content .teacher-history-tabs{padding:5px!important;margin:6px 0!important}
 #content .teacher-history-tabs button{min-height:38px!important;padding:7px 12px!important;font-size:14px!important}
 #content .classic-week-summary,#content .school-test-selection,#content .school-test-status{padding:9px 11px!important;margin:8px 0!important;font-size:13px!important;line-height:1.4!important}
 #content .classic-week-summary h3,#content .school-test-selection h3{font-size:16px!important;margin:3px 0!important}
 #content .attendance-grid-page .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content .attendance-grid-page .toolbar button{min-height:38px!important;padding:7px!important;font-size:13px!important}
 #content .teacher-attendance-sheet{max-width:100%!important;overflow:hidden!important}
 #content .attendance-card-grid.teacher-attendance-rows{display:grid!important;grid-template-columns:1fr!important;gap:3px!important}
 #content .teacher-attendance-rows>*,#content .attendance-student-heading{min-width:0!important}
 #content .teacher-attendance-rows>div{padding:7px 9px!important;min-height:46px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
 #content .teacher-attendance-head{font-size:13px!important;padding:8px!important}
 #content .attendance-toggle{min-width:36px!important;min-height:36px!important;flex-shrink:0!important}
 #content .school-test-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 #content .school-test-card-grid>*{min-width:0!important;padding:8px!important}
 #content .school-test-card-grid input{max-width:100%!important}
 #content .classic-homework-line{padding:7px!important;gap:6px!important}
 #content .teacher-sheet-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important}
 #content .teacher-sheet{font-size:12px!important}
 #content .teacher-sheet th,#content .teacher-sheet td{padding:6px!important}
}
@media(max-width:390px){#content .school-test-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

@media(max-width:700px){
 /* Make the attendance checkbox visible at the right edge of every student row. */
 #content .teacher-attendance-sheet{width:100%!important}
 #content .attendance-student-card.attendance-sheet-row{display:grid!important;grid-template-columns:minmax(0,1fr) 86px!important;align-items:center!important;width:100%!important;max-width:100%!important;gap:5px!important;min-height:44px!important;padding:5px 8px!important}
 #content .attendance-student-heading{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;overflow:hidden!important;font-size:13px!important}
 #content .attendance-student-heading strong{font-size:13px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 #content .student-number{font-size:13px!important;flex:0 0 23px!important}
 #content .attendance-toggle{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;width:86px!important;gap:4px!important;font-size:11px!important}
 #content .attendance-toggle input{width:20px!important;height:20px!important;min-width:20px!important;margin:0!important}
 #content .teacher-attendance-head{display:grid!important;grid-template-columns:minmax(0,1fr) 86px!important;gap:5px!important}
 #content #agCards{padding:0!important;max-width:100%!important}
 #content .toolbar:has(#agPresent){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content #agSave{grid-column:1/-1!important}
 /* Reduce repeated full-width boxes and tall form panels. */
 #content .school-test-filters>label,#content .teacher-history-filters>label,#content .classic-homework .toolbar>label{min-height:0!important;max-height:none!important;box-shadow:none!important;border-radius:9px!important}
 #content .school-test-filters>label{padding:5px!important}
 #content .school-test-filters>label select,#content .school-test-filters>label input{font-size:12px!important}
 #content #tgSelection,#content #tgStatus{padding:7px!important;font-size:12px!important}
 #content .school-add-extra-test{padding:6px!important}
 #content .teacher-entry-head{padding:5px!important}
 #content .teacher-history-filters>label{padding:5px!important}
}

@media(max-width:700px){
 body.pulse-experience .pulse-compact-strip{padding:9px 12px!important;margin:4px 0 9px!important;min-height:0!important;border-radius:13px!important}
 body.pulse-experience .pulse-compact-strip .pulse-strip-main{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:5px 11px!important;align-items:center!important}
 body.pulse-experience .pulse-compact-strip .pulse-home-button{width:42px!important;height:42px!important;min-width:42px!important;padding:7px!important;grid-row:1/3!important;grid-column:1!important}
 body.pulse-experience .pulse-compact-strip .pulse-strip-copy{grid-column:2!important;grid-row:1!important;min-width:0!important}
 body.pulse-experience .pulse-compact-strip .pulse-strip-copy strong{font-size:15px!important;line-height:1.2!important}
 body.pulse-experience .pulse-compact-strip .pulse-strip-copy span{font-size:11px!important}
 body.pulse-experience .pulse-compact-strip .pulse-strip-main>.pulse-school-name{grid-column:2!important;grid-row:2!important;flex:auto!important;font:700 15px/1.2 Georgia,serif!important;text-align:left!important;min-width:0!important;overflow-wrap:anywhere}
 body.pulse-experience .pulse-compact-strip .pulse-strip-date{display:none!important}
}

/* MOBILE OLD-APP PARITY: compact teacher student editing cards and controls.
   Scoped to phones; desktop layouts and all data handlers remain untouched. */
@media(max-width:700px){
 .pulse-experience #content{padding:6px 8px!important}
 .pulse-experience #content .teacher-entry-sheet,.pulse-experience #content .classic-homework,.pulse-experience #content .school-test-grid-page{width:100%;min-width:0;margin-inline:0!important}
 .pulse-experience #content .teacher-entry-head{display:none!important}
 .pulse-experience #content .classic-homework-student,
 .pulse-experience #content .school-test-student-card{border:1px solid #d7e3e9!important;border-radius:13px!important;background:#fff!important;box-shadow:0 2px 8px #1c406010!important;padding:9px 11px!important;margin:0!important;min-width:0!important;min-height:0!important}
 .pulse-experience #content .classic-homework-student h4,
 .pulse-experience #content .school-test-student-card h4{font-size:15px!important;margin:0 0 6px!important;color:#174d78!important}
 .pulse-experience #content .classic-homework-student{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:8px!important;row-gap:6px!important}
 .pulse-experience #content .classic-homework-student h4{grid-column:1/-1}
 .pulse-experience #content .classic-homework-line{min-width:0!important;display:block!important;margin:0!important;padding:0!important}
 .pulse-experience #content .classic-homework-line label{display:flex!important;flex-direction:column!important;min-width:0!important;gap:4px!important;font-size:11px!important;font-weight:700!important}
 .pulse-experience #content .classic-homework-line select{width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;padding:5px!important;font-size:12px!important}
 .pulse-experience #content .classic-homework-actions{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
 .pulse-experience #content .classic-homework-actions button{flex:0 0 auto!important;min-height:34px!important;padding:6px 15px!important;font-size:12px!important}
 .pulse-experience #content .classic-homework-actions [role=status]{font-size:11px!important;min-width:0!important}
 .pulse-experience #content .school-test-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .pulse-experience #content .school-test-student-card{display:flex!important;flex-direction:column!important;gap:5px!important}
 .pulse-experience #content .school-test-student-card label{font-size:11px!important;display:grid!important;gap:3px!important;min-width:0!important}
 .pulse-experience #content .school-test-student-card input{width:100%!important;height:38px!important;min-width:0!important;max-width:100%!important;font-size:16px!important;padding:6px!important}
 .pulse-experience #content .school-test-card-meta{font-size:11px!important}
 .pulse-experience #content .school-test-card-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;min-width:0!important}
 .pulse-experience #content .school-test-card-actions button{padding:6px 10px!important;min-height:34px!important;font-size:12px!important;min-width:0!important}
 .pulse-experience #content .school-test-card-actions [role=status]{font-size:10px!important;overflow-wrap:anywhere}
 .pulse-experience #content .attendance-student-card{padding:7px 9px!important;border-radius:9px!important;min-height:44px!important}
 .pulse-experience #content .teacher-attendance-sheet{border-radius:12px!important}
 .pulse-experience #content .teacher-attendance-sheet .attendance-toggle span{font-size:12px!important}
 .pulse-experience #content .school-roster-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important}
 .pulse-experience #content .school-roster-filters>*{min-width:0!important}
 .pulse-experience #content .school-roster-filters input,.pulse-experience #content .school-roster-filters select{max-width:100%!important}
 .pulse-experience #content .school-test-selection,.pulse-experience #content .school-test-status,.pulse-experience #content .classic-week-summary{border-radius:11px!important;padding:8px!important;font-size:12px!important}
 .pulse-experience #content .teacher-history-page .teacher-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .pulse-experience #content .teacher-history-page button{font-size:12px!important;min-height:36px!important}
}

@media(max-width:700px){
 /* Preserve compact, legible controls across remaining Principal/Accountant/Teacher cards. */
 body.pulse-experience #content .teacher-marksheet,
 body.pulse-experience #content .teacher-history-page,
 body.pulse-experience #content .school-workflow-page{max-width:100%;min-width:0}
 body.pulse-experience #content .teacher-sheet-scroll{border-radius:10px!important}
 body.pulse-experience #content .teacher-sheet-scroll input[type=number]{width:56px!important;min-width:48px!important;padding:5px!important;font-size:14px!important}
 body.pulse-experience #content .toolbar>span[role=status]{grid-column:1/-1!important;font-size:12px!important}
 body.pulse-experience #content .teacher-history-page .toolbar>button{padding:7px!important}
 body.pulse-experience #content .classic-homework .toolbar>button{padding:7px!important;font-size:12px!important}
 body.pulse-experience #content textarea{min-height:58px!important}
 body.pulse-experience #content .teacher-entry-sheet>section{min-width:0}
}

/* Final phone-only old-app layout reset, deliberately after all older rules. */
@media screen and (max-width:700px){
 body.pulse-experience #app #content .teacher-history-tabs{display:flex!important;gap:6px!important;padding:5px!important;margin:0 0 10px!important}
 body.pulse-experience #app #content .teacher-history-tabs button{flex:1!important;min-height:38px!important;padding:7px!important;font-size:14px!important}
 body.pulse-experience #app #content .school-test-grid-page>.toolbar.school-test-filters,
 body.pulse-experience #app #content .classic-homework>.toolbar,
 body.pulse-experience #app #content .teacher-history-page .toolbar.teacher-history-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:5px!important}
 body.pulse-experience #app #content .school-test-grid-page>.toolbar.school-test-filters>label,
 body.pulse-experience #app #content .classic-homework>.toolbar>label,
 body.pulse-experience #app #content .teacher-history-page .toolbar.teacher-history-filters>label{display:flex!important;flex-direction:column!important;gap:3px!important;padding:5px!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;box-shadow:none!important}
 body.pulse-experience #app #content .school-test-filters label>select,
 body.pulse-experience #app #content .school-test-filters label>input,
 body.pulse-experience #app #content .classic-homework>.toolbar label>select,
 body.pulse-experience #app #content .classic-homework>.toolbar label>input,
 body.pulse-experience #app #content .teacher-history-filters label>select,
 body.pulse-experience #app #content .teacher-history-filters label>input{height:36px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:5px!important;font-size:13px!important}
 body.pulse-experience #app #content .school-test-grid-page>.toolbar.school-test-filters>button,
 body.pulse-experience #app #content .teacher-history-page .toolbar>button{align-self:end!important;min-width:0!important;min-height:36px!important;padding:6px!important}
 body.pulse-experience #app #content .school-test-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 body.pulse-experience #app #content .school-test-card-grid>.school-test-student-card{width:auto!important;min-width:0!important;max-width:100%!important;padding:8px!important}
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-student{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:9px!important;width:auto!important;min-width:0!important}
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-student>h4,
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-student>.classic-homework-actions{grid-column:1/-1!important}
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-line{width:auto!important;min-width:0!important;margin:0!important}
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-line label{display:flex!important;flex-direction:column!important;min-width:0!important;font-size:11px!important}
 body.pulse-experience #app #content .teacher-entry-sheet .classic-homework-line select{height:36px!important;width:100%!important;min-width:0!important;padding:4px!important;font-size:12px!important}
 body.pulse-experience #app #content .attendance-student-card.attendance-sheet-row{display:grid!important;grid-template-columns:minmax(0,1fr) 94px!important;width:100%!important;max-width:100%!important;min-height:46px!important;padding:6px!important}
 body.pulse-experience #app #content .attendance-student-card .attendance-toggle{display:flex!important;width:94px!important;min-width:0!important;justify-content:flex-end!important;align-items:center!important}
 body.pulse-experience #app #content .attendance-student-card .attendance-student-heading{min-width:0!important;white-space:nowrap!important;overflow:hidden!important}
 body.pulse-experience #app #content .attendance-student-card .attendance-toggle input{width:21px!important;height:21px!important;flex-shrink:0!important}
}

/* Non-principal Print/Export controls must remain hidden even under button display overrides. */
#content [data-role-export-hidden]{display:none!important}
