:root{--bg:#f6f7fb;--ink:#172033;--muted:#667085;--line:#e5e7eb;--card:#fff;--brand:#203864;--accent:#2f80ed;--red:#c0392b;--blue:#1f65d6}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header{position:sticky;top:0;z-index:5;display:flex;gap:18px;align-items:center;padding:14px 22px;background:#0f172a;color:white;box-shadow:0 2px 12px #0002}header strong{display:block;font-size:18px}header span{font-size:12px;color:#cbd5e1}nav{display:flex;gap:8px;flex:1}nav a,.logout{color:#cbd5e1;text-decoration:none;padding:9px 12px;border-radius:999px;font-weight:700;font-size:14px}nav a.active,nav a:hover{background:white;color:#0f172a}.logout{border:1px solid #334155}main{max-width:1280px;margin:0 auto;padding:24px}.hero{background:linear-gradient(135deg,#203864,#2f80ed);color:white;border-radius:24px;padding:34px;margin-bottom:20px}.hero h1{font-size:34px;margin:0 0 8px}.hero p{margin:0;color:#e5eefc}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card,.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px #1018280a}.card{padding:22px}.card b{font-size:34px;display:block}.card span{color:var(--muted);font-weight:700}.split{display:grid;grid-template-columns:430px 1fr;gap:18px}.panel{padding:20px;overflow:auto}.panel h2{margin:0 0 16px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid .wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px;color:#344054}input,select,textarea{border:1px solid #d0d5dd;border-radius:10px;padding:10px;font:inherit;background:white}textarea{min-height:74px}button{border:0;border-radius:10px;padding:11px 16px;background:var(--brand);color:white;font-weight:800;cursor:pointer}button:hover{filter:brightness(1.08)}table{width:100%;border-collapse:collapse;font-size:14px}th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}th{color:#475467;background:#f9fafb}.pill{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:800;font-size:12px}.math{background:#e8f1ff;color:#174ea6}.reading{background:#ffecec;color:#a61b1b}.check{flex-direction:row;align-items:center;gap:8px}.filters{display:flex;gap:8px;align-items:center;margin-bottom:14px}.login{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#0f172a,#203864)}.login-card{width:min(420px,92vw);padding:30px;background:white;border-radius:24px;box-shadow:0 30px 80px #0005}.login-card h1{margin-top:0}.login-card form{display:grid;gap:12px}.alert{background:#fee2e2;color:#991b1b;padding:10px;border-radius:10px;margin:10px 0}.blue{color:var(--blue)}.red{color:var(--red)}.prep{page-break-inside:auto;margin-bottom:22px}.prep th,.prep td{border:1px solid #d9d9d9;padding:6px;font-size:12px}@media(max-width:900px){header{flex-wrap:wrap}nav{order:3;overflow:auto}.cards,.split{grid-template-columns:1fr}.grid{grid-template-columns:1fr}}@media print{header,.filters,button{display:none!important}body{background:white}main{max-width:none;padding:0}.panel{box-shadow:none;border:0;padding:0}.prep th,.prep td{font-size:10px;padding:4px}.print-panel h2{margin-top:0}}
.calendar-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.calendar-head h2{margin-bottom:4px}.calendar-head p{margin:0;color:var(--muted)}.button{display:inline-flex;align-items:center;text-decoration:none;border-radius:10px;padding:10px 12px;background:#eef2ff;color:#203864;font-weight:800}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:12px;overflow:auto}.day-card{min-height:360px;background:#fbfcff;border:1px solid var(--line);border-radius:16px;padding:12px}.day-card h3{margin:0 0 10px;font-size:16px}.center-list,.plan-list{display:grid;gap:8px;margin-bottom:14px}.center-list strong,.plan-list strong{font-size:12px;color:#475467;text-transform:uppercase;letter-spacing:.02em}.muted{color:var(--muted);font-size:13px;margin:0}.student-chip{display:flex;justify-content:space-between;gap:8px;padding:7px 9px;background:white;border:1px solid #dbe4ff;border-radius:10px;font-weight:800}.student-chip small{color:var(--muted);font-weight:600}.plan-card{display:grid;gap:6px;background:white;border:1px solid var(--line);border-left:4px solid #94a3b8;border-radius:12px;padding:10px}.plan-card.done{border-left-color:#16a34a;background:#f7fff9}.plan-card .pages{font-weight:800}.result{font-size:12px;color:#166534;background:#dcfce7;border-radius:8px;padding:5px}.flags{font-size:12px;color:#92400e;background:#fef3c7;border-radius:8px;padding:5px}details{font-size:12px;color:#344054}details p{margin:5px 0}@media(max-width:1100px){.week-grid{grid-template-columns:repeat(7,220px)}.calendar-head{display:block}}@media print{.week-grid{display:block}.day-card{break-inside:avoid;margin-bottom:10px}.calendar-head .filters{display:none!important}}
.month-title{font-size:26px;font-weight:900;margin:6px 0 14px;color:#203864}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:8px}.month-weekdays{margin-bottom:8px}.month-weekdays div{text-align:center;font-weight:900;color:#475467;background:#eef2ff;border-radius:10px;padding:8px}.month-day{min-height:170px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;overflow:hidden}.month-day.outside-month{background:#f3f4f6;color:#98a2b3}.month-day h3{margin:0 0 8px;display:flex;justify-content:space-between;align-items:center;font-size:18px}.month-day h3 small{font-size:11px;color:#98a2b3}.compact{gap:5px;margin-bottom:8px}.student-chip.small{font-size:11px;padding:4px 6px;border-radius:8px;display:inline-flex;margin:0 3px 3px 0}.plan-card.mini{gap:4px;padding:6px;border-radius:9px;font-size:11px}.plan-card.mini .pages{font-size:11px}.plan-card.mini .result,.plan-card.mini .flags{font-size:10px;padding:3px 5px}.plan-card.mini a{font-size:10px}@media(max-width:1000px){.month-grid{grid-template-columns:repeat(7,170px);overflow:visible}.panel{overflow:auto}}@media print{.month-grid{grid-template-columns:repeat(7,1fr);gap:4px}.month-day{min-height:120px;padding:5px}.plan-card.mini{font-size:9px;padding:4px}.student-chip.small{font-size:9px}.month-title{font-size:18px}}
.plan-card[draggable="true"]{cursor:grab}.plan-card.dragging{opacity:.45;transform:scale(.98);cursor:grabbing}.month-day.drop-target{outline:3px dashed #2f80ed;outline-offset:-5px;background:#eef6ff}.plan-card.saving{opacity:.7}.plan-card.saved{box-shadow:0 0 0 3px #22c55e55}
.board-wrap{overflow:auto}.progress-board th{position:sticky;top:0;z-index:1}.progress-board td{min-width:130px}.progress-board td:first-child{min-width:160px}.progress-board small{display:block;color:var(--muted);margin-top:3px}.type-pill{display:inline-block;border-radius:999px;padding:4px 8px;font-weight:900;font-size:11px;background:#e5e7eb;color:#344054}.type-pill.paper{background:#fff7ed;color:#9a3412}.type-pill.tablet{background:#e0f2fe;color:#075985}.type-pill.hybrid{background:#f3e8ff;color:#6b21a8}.mini-line{white-space:nowrap;margin:4px 0}.prep-badge{font-size:10px;border-radius:8px;padding:4px 6px;margin:3px 0;font-weight:800}.prep-badge.prepared{background:#dcfce7;color:#166534}.prep-badge.not-prepared{background:#fee2e2;color:#991b1b}
.legend{display:flex;gap:10px;flex-wrap:wrap}.legend span{font-size:12px;font-weight:900;color:#475467}.legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}.legend .done{background:#22c55e}.legend .planned{background:#60a5fa}.legend .needs-prep{background:#f97316}.classnavi-board{display:grid;gap:16px}.student-overview-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 8px 24px #1018280a}.student-card-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}.student-card-head h3{margin:0;font-size:22px}.student-card-head p{margin:4px 0 0;color:var(--muted);font-weight:700}.subject-board{display:grid;gap:8px;margin:12px 0}.subject-row{display:grid;grid-template-columns:150px 1fr;gap:10px;align-items:center}.subject-label{border-radius:10px;padding:9px 10px;color:white;font-weight:900}.subject-label b{display:block;font-size:12px;margin-top:2px;color:#eef}.subject-label.math{background:#1f65d6}.subject-label.reading{background:#c0392b}.level-map{display:grid;grid-template-columns:repeat(20,1fr);gap:3px}.level-cell{min-height:26px;display:grid;place-items:center;border-radius:5px;font-size:10px;font-weight:800;background:#eef2f7;color:#64748b}.level-cell.done{background:#22c55e;color:#fff}.level-cell.planned{background:#60a5fa;color:#fff}.level-cell.needs-prep{background:#f97316;color:#fff}.student-columns{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.student-columns>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.student-columns h4{margin:0 0 8px;font-size:13px;color:#334155;text-transform:uppercase;letter-spacing:.02em}@media(max-width:1000px){.subject-row{grid-template-columns:1fr}.level-map{grid-template-columns:repeat(10,1fr)}.student-columns{grid-template-columns:1fr 1fr}}@media(max-width:640px){.student-columns{grid-template-columns:1fr}.level-map{grid-template-columns:repeat(5,1fr)}}
.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:16px}.reference-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.reference-panel h3{margin:0 0 10px}.reference-panel input{width:100%;padding:7px;font-size:12px}@media(max-width:900px){.reference-grid{grid-template-columns:1fr}}
.classnavi-layout{display:grid;grid-template-columns:260px 1fr;gap:14px;margin:12px 0}.score-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.score-panel h4{margin:0 0 8px;font-size:12px;color:#334155;text-transform:uppercase}.score-history{display:grid;gap:6px;margin-bottom:14px}.score-row{display:grid;grid-template-columns:1fr 48px 54px;gap:6px;align-items:center;background:white;border-left:5px solid #cbd5e1;border-radius:9px;padding:6px;font-size:12px}.score-row b{display:block}.score-row small{display:block;color:#667085}.score-num{font-weight:900;text-align:center}.score-time{font-size:11px;color:#475467}.score-row.mastered{border-left-color:#1d4ed8}.score-row.review{border-left-color:#facc15}.score-row.weak,.score-row.correction{border-left-color:#dc2626}.score-row.needs-prep{border-left-color:#f97316}.graph-panel{display:grid;gap:12px}.subject-graph{display:grid;grid-template-columns:145px 1fr;gap:10px;align-items:center}.progress-grid-wrap{min-width:600px}.progress-axis{display:grid;grid-template-columns:repeat(20,1fr);font-size:10px;color:#64748b;margin-bottom:4px}.progress-grid{display:grid;grid-template-columns:repeat(20,1fr);grid-auto-rows:12px;gap:2px}.progress-cell{border-radius:2px;background:#eef2f7;border:1px solid #e2e8f0}.progress-cell.mastered{background:#1d4ed8;border-color:#1d4ed8}.progress-cell.planned{background:#7dd3fc;border-color:#38bdf8}.progress-cell.review{background:#facc15;border-color:#eab308}.progress-cell.weak,.progress-cell.correction{background:#dc2626;border-color:#b91c1c}.progress-cell.needs-prep{background:#f97316;border-color:#ea580c}.legend .mastered{background:#1d4ed8}.legend .review{background:#facc15}.legend .weak{background:#dc2626}@media(max-width:1000px){.classnavi-layout{grid-template-columns:1fr}.subject-graph{grid-template-columns:1fr}.graph-panel{overflow:auto}.progress-grid-wrap{min-width:720px}}
.worksheet-score-strip{margin:6px 0 10px;border:1px solid #dbe3ef;border-radius:10px;overflow:hidden;background:white}.ws-pages,.ws-scores{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(30px,1fr)}.ws-pages span,.ws-scores span{display:grid;place-items:center;font-size:10px;border-right:1px solid #e5e7eb;min-height:22px}.ws-pages span{background:#1f2937;color:#fff;font-weight:800}.ws-scores span{font-weight:900;background:#f8fafc}.ws-scores span.mastered{background:#1d4ed8;color:#fff}.ws-scores span.review{background:#facc15;color:#422006}.ws-scores span.weak{background:#dc2626;color:#fff}.ws-scores span.empty{background:#f1f5f9;color:#94a3b8}.score-panel .worksheet-score-strip{margin-left:0;margin-right:0}.plan-card.mini .worksheet-score-strip{max-width:100%;overflow-x:auto}.plan-card.mini .ws-pages span,.plan-card.mini .ws-scores span{min-height:18px;font-size:9px;min-width:24px}
.progress-cell{display:block;min-height:12px}.progress-cell:hover{outline:2px solid #111827;outline-offset:1px;filter:brightness(1.08)}.alert.info{background:#e0f2fe;color:#075985;margin-bottom:12px}
.score-row{grid-template-columns:1fr 54px}.score-time{display:none}.ws-pages span{display:flex;flex-direction:column;gap:1px;line-height:1.05}.ws-pages span small{font-size:9px;color:#cbd5e1}.worksheet-score-strip{cursor:help}.ws-scores span{cursor:help}
.ws-pages{display:none!important}.ws-date{background:#1f2937;color:white;font-weight:900;text-align:center;padding:5px 6px;font-size:12px;border-bottom:1px solid #111827}.worksheet-score-strip{display:block}.ws-scores{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(30px,1fr)}
.cn-shell{background:#f4f7fb;border:1px solid #dbe6f3;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #10182812}.cn-topbar{display:flex;align-items:center;gap:16px;background:#dff3fb;padding:10px 14px;border-bottom:1px solid #c9e5f0}.cn-title{display:flex;align-items:center;gap:10px;font-size:18px}.cn-back{font-size:30px;line-height:1;text-decoration:none;color:#334155}.cn-doc{background:#fff;border-radius:8px;padding:5px 8px}.cn-student-select{flex:1}.cn-student-select select{width:100%;max-width:420px;background:white;border-radius:8px}.cn-subject-tabs{display:flex;gap:6px}.cn-subject-tabs a{padding:10px 26px;border-radius:8px;text-decoration:none;background:#e5e7eb;color:#334155;font-weight:900}.cn-subject-tabs a.active{background:#14b8d4;color:white}.cn-toolbar{display:flex;align-items:center;gap:12px;background:white;padding:10px 14px;border-bottom:1px solid #e5e7eb}.cn-arrow{font-size:28px;text-decoration:none;color:#334155}.cn-level{font-size:34px;font-weight:900;min-width:48px;text-align:center}.cn-check{flex-direction:row;align-items:center;margin-left:14px}.cn-menu{background:#e5e7eb;color:#111827;border-radius:50%;width:36px;height:36px;padding:0}.cn-main{display:grid;grid-template-columns:310px 1fr;min-height:620px}.cn-left{background:white;border-right:1px solid #e5e7eb;padding:12px;overflow:auto}.cn-left-head{display:flex;justify-content:space-between;font-weight:900;margin-bottom:10px}.cn-score-group{display:grid;grid-template-columns:54px 1fr;gap:8px;margin-bottom:12px;align-items:start}.cn-date{font-size:11px;text-align:center;color:#334155}.cn-date span{display:block;color:#64748b}.cn-date b{display:block;font-size:20px}.cn-date small{display:block;color:#64748b}.cn-score-cells{display:flex;flex-wrap:wrap;gap:3px}.cn-score-cell{display:grid;grid-template-rows:18px 24px;min-width:34px;text-decoration:none;border:1px solid #cbd5e1;border-radius:3px;overflow:hidden;background:white;color:#111827}.cn-score-cell span{background:#1e3a8a;color:white;font-size:10px;font-weight:900;display:grid;place-items:center}.cn-score-cell b{font-size:12px;display:grid;place-items:center}.cn-score-cell.review b{background:#facc15}.cn-score-cell.weak b{background:#dc2626;color:white}.cn-score-cell.mastered b{background:white;color:#111827}.cn-right{overflow:auto;background:#fff}.cn-grid-wrap{min-width:900px;padding:18px;position:relative}.cn-level-caption{font-weight:900;margin-bottom:10px;color:#334155}.cn-axis{display:grid;grid-template-columns:repeat(20,1fr);font-size:11px;color:#475467;margin-left:0;margin-bottom:4px}.cn-grid{display:grid;grid-template-columns:repeat(200,5px);grid-template-rows:repeat(6,22px);gap:1px;background:#e5e7eb;border:1px solid #cbd5e1;padding:3px}.cn-grid-cell{display:block;background:white;border-radius:1px}.cn-grid-cell.mastered{background:#1d4ed8}.cn-grid-cell.planned{background:#7dd3fc}.cn-grid-cell.review{background:#facc15}.cn-grid-cell.weak,.cn-grid-cell.correction{background:#ef4444}.cn-grid-cell.needs-prep{background:#f97316}.cn-grid-cell:hover{outline:2px solid #111827;z-index:2}.cn-save{display:block;margin:18px auto 0;background:#9ca3af;color:white;min-width:120px}@media(max-width:900px){.cn-main{grid-template-columns:1fr}.cn-left{border-right:0;border-bottom:1px solid #e5e7eb}.cn-topbar,.cn-toolbar{flex-wrap:wrap}.cn-subject-tabs{width:100%}.cn-subject-tabs a{flex:1;text-align:center}.cn-grid{grid-template-columns:repeat(200,6px)}}
.cn-grid-cell.cn-selected{background:#facc15!important;outline:2px solid #111827;box-shadow:0 0 0 1px #fff inset}.cn-save-row{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.cn-save-row label{flex-direction:row;align-items:center;margin:0}.cn-selection-status{color:#475467;font-weight:700}.cn-existing{cursor:pointer}.cn-empty{cursor:crosshair}
.cn-range-bar{display:grid;grid-template-columns:repeat(200,5px);grid-auto-rows:13px;gap:1px;margin:2px 0 8px;padding:0 3px}.cn-range-segment{display:block;border-radius:7px;min-height:13px;box-shadow:0 1px 0 #fff8 inset;cursor:help}.cn-range-segment.mastered{background:#075985}.cn-range-segment.planned{background:#06b6d4}.cn-range-segment.review{background:#facc15}.cn-range-segment.weak,.cn-range-segment.correction{background:#fb7185}.cn-range-segment.needs-prep{background:#f97316}.cn-range-segment:hover{outline:2px solid #111827;outline-offset:2px;filter:brightness(1.08)}.cn-range-empty{grid-column:1/201;height:13px;border-radius:7px;background:#e5e7eb}
@media(max-width:900px){.cn-range-bar{grid-template-columns:repeat(200,6px)}}
.cn-inline-score{cursor:text}.cn-inline-score.editing{outline:2px solid #111827}.cn-score-input{width:100%;height:100%;border:0;border-radius:0;padding:0;text-align:center;font-weight:900;font-size:12px;background:#fff7ed}.cn-inline-score.saved{box-shadow:0 0 0 3px #22c55e88}
/* Class-Navi axis/range/grid must use the exact same 200-column scale. */
.cn-grid-wrap{--cn-cell:5px;--cn-gap:1px}.cn-range-bar,.cn-axis,.cn-grid{width:max-content;grid-template-columns:repeat(200,var(--cn-cell));gap:var(--cn-gap)}.cn-axis{display:grid;font-size:11px;color:#475467;margin:0 0 4px;padding:0 3px}.cn-axis span{text-align:left;line-height:16px}.cn-range-bar{display:grid}.cn-grid{display:grid}@media(max-width:900px){.cn-grid-wrap{--cn-cell:6px}}
.cn-left-head small{display:block;color:#64748b;font-size:11px;font-weight:700}.cn-level-caption{display:flex;align-items:baseline;gap:12px}.cn-level-caption span{font-size:12px;color:#64748b;font-weight:700}.cn-score-cell.empty b{background:#f8fafc;color:#94a3b8}.cn-score-cell.empty:hover b{background:#fff7ed;color:#111827}
.cn-left-head small{display:block;color:#64748b;font-size:11px;font-weight:700}.cn-level-caption{display:flex;align-items:baseline;gap:12px}.cn-level-caption span{font-size:12px;color:#64748b;font-weight:700}.cn-score-cell.empty b{background:#f8fafc;color:#94a3b8}.cn-score-cell.empty:hover b{background:#fff7ed;color:#111827}
.inventory-summary{display:grid;gap:4px;text-align:right;color:#475467}.inventory-summary b{color:#172033;font-size:18px}.inventory-table input{width:100%;min-width:70px}.inventory-table tr.inventory-missing{background:#fff1f2}.inventory-table tr.inventory-low{background:#fffbeb}.inv-status{display:inline-block;border-radius:999px;padding:4px 8px;font-weight:900;font-size:12px}.inv-status.ok{background:#dcfce7;color:#166534}.inv-status.low{background:#fef3c7;color:#92400e}.inv-status.missing{background:#fee2e2;color:#991b1b}.hidden-form{display:none}.inventory-table button{padding:6px 8px;margin:1px;min-width:38px}
.order-alert{display:flex;gap:10px;align-items:flex-start;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:12px;margin:12px 0}.order-alert b{white-space:nowrap}.order-alert span{font-size:13px;line-height:1.5}.inv-status.order-needed{background:#fef3c7;color:#92400e}.inventory-table tr.inventory-order-needed{background:#fffbeb}
.report-cards{margin-bottom:18px}.report-panel h3{margin-top:22px}.usage-table td:nth-child(3),.usage-table td:nth-child(4),.usage-table td:nth-child(5),.usage-table td:nth-child(6){font-weight:800}.report-note{margin-top:14px}@media print{.report-panel .filters, header{display:none!important}.report-cards{grid-template-columns:repeat(4,1fr)}.usage-table th,.usage-table td{font-size:11px;padding:5px}.report-panel{box-shadow:none;border:0}}
.attendance-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.nested{box-shadow:none;background:#fbfcff}.punch-list{display:grid;gap:10px}.punch-row{display:grid;grid-template-columns:1fr auto auto auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:8px;background:white}.punch-row form{display:flex;gap:6px}.punch-row button{padding:7px 10px}.qr{width:54px;height:54px;border:1px solid #e5e7eb;border-radius:8px}.staff-form{display:grid;grid-template-columns:1.2fr .8fr .7fr .7fr auto;gap:8px;margin-bottom:12px}.event-pill{display:inline-block;border-radius:999px;padding:4px 8px;font-weight:900}.event-pill.in{background:#dcfce7;color:#166534}.event-pill.out{background:#fee2e2;color:#991b1b}@media(max-width:1000px){.attendance-grid{grid-template-columns:1fr}.staff-form,.punch-row{grid-template-columns:1fr}}@media print{.attendance-panel .filters,.attendance-panel button,.qr,.staff-form,header{display:none!important}.attendance-grid{display:none}.attendance-panel{box-shadow:none;border:0}}
.qr-punch-card{background:linear-gradient(135deg,#0f172a,#2563eb);color:white;border-radius:18px;padding:22px;margin:14px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}.qr-punch-card h3{margin:0;font-size:26px}.qr-punch-card p{margin:4px 0 0;color:#dbeafe}.qr-punch-card form{display:flex;gap:10px}.qr-punch-card button{background:white;color:#0f172a;font-size:18px;padding:14px 20px}@media(max-width:700px){.qr-punch-card{display:block}.qr-punch-card form{margin-top:14px}.qr-punch-card button{flex:1}}
.qr-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:12px 0 22px}.qr-card{background:white;border:1px solid var(--line);border-radius:16px;padding:14px;text-align:center;break-inside:avoid}.qr-card.staff{border-color:#bfdbfe;background:#eff6ff}.qr-card h4{margin:0 0 4px}.qr-card p{margin:0 0 10px;color:#64748b;font-weight:800}.qr-card img{width:150px;height:150px}.qr-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#94a3b8;font-size:10px;margin:8px 0}.qr-card .button{justify-content:center;font-size:12px;padding:8px}.qr-actions{margin:8px 0 18px}@media print{.qr-card-grid{grid-template-columns:repeat(3,1fr)}.qr-card small,.qr-card .button,.qr-actions{display:none!important}.qr-card img{width:160px;height:160px}.attendance-panel table,.attendance-grid,.attendance-panel .calendar-head form{display:none!important}}
.existing-qr-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 20px}.existing-qr-grid form{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}@media(max-width:900px){.existing-qr-grid,.existing-qr-grid form{grid-template-columns:1fr}}
.qr-print-head{align-items:flex-start}.qr-print-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.qr-print-actions button{height:38px;padding:0 12px;font-size:12px}.qr-print-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.qr-print-filters label{min-width:0}.qr-print-filters select,.qr-print-filters input{width:100%;height:38px}.qr-live-search{min-width:0}.qr-print-card[hidden]{display:none!important}.qr-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 14px}.qr-selected-status{display:inline-flex;align-items:center;gap:6px;background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:999px;padding:7px 11px;font-weight:900;font-size:12px;margin:0 0 12px}.qr-manual-box{display:none}.qr-print-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:11px}.qr-print-card{position:relative;background:#fff;border:1.5px solid #cbd5e1;border-radius:12px;padding:10px 10px 11px;text-align:center;break-inside:avoid;page-break-inside:avoid;min-height:292px;box-shadow:0 6px 16px #1018280a;display:flex;flex-direction:column;justify-content:center}.qr-print-card.staff{border-color:#93c5fd;background:#dbeafe}.qr-print-card.generated{border-style:dashed}.qr-card-pick{position:absolute;top:8px;left:8px;display:inline-flex!important;flex-direction:row;align-items:center;gap:5px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:4px 7px;font-size:10px;color:#334155;z-index:2}.qr-card-pick input{width:13px;height:13px;margin:0}.qr-card-brand{margin-top:15px;color:#0f172a;font-size:13px;font-weight:950;letter-spacing:.02em;text-transform:uppercase}.qr-card-type{display:inline-flex;margin:5px auto 8px;border-radius:999px;background:#e0f2fe;color:#075985;padding:4px 8px;font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.qr-print-card h3{margin:0 0 9px;font-size:15px;line-height:1.12;color:#0f172a;min-height:34px;display:grid;place-items:center}.qr-print-card dl{display:grid;gap:4px;margin:0 0 8px;text-align:left}.qr-print-card dl div{display:grid;grid-template-columns:58px 1fr;gap:6px;align-items:center;border:1px solid #e5e7eb;border-radius:6px;padding:4px 5px;background:#f8fafc}.qr-print-card dt{font-size:7px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:950}.qr-print-card dd{margin:0;color:#0f172a;font-size:8px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qr-print-card img{width:122px;height:122px;display:block;margin:0 auto 6px}.qr-print-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;font-size:9px;font-weight:850}@media(max-width:900px){.qr-print-filters{grid-template-columns:1fr}.qr-print-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}@media print{@page{size:letter;margin:.22in}.qr-print-head,.qr-print-filters,.qr-summary-cards,.qr-manual-box,.qr-selected-status,header,.logout,nav,.qr-card-pick{display:none!important}body{background:white!important}main{padding:0!important;max-width:none!important}.qr-print-panel{box-shadow:none;border:0;padding:0;overflow:visible}.qr-print-grid{display:grid;grid-template-columns:repeat(3,2.05in);gap:.08in;align-items:start}.qr-print-card{width:2.05in;height:3.05in;min-height:0;border:1px solid #111827;border-radius:.08in;padding:.18in .08in .08in;box-shadow:none;display:flex;flex-direction:column;justify-content:center}.qr-print-card img{width:1.15in;height:1.15in}.qr-card-brand{margin-top:0;font-size:9.3pt}.qr-card-type{font-size:6.1pt;padding:.028in .06in;margin:.05in auto .07in}.qr-print-card h3{font-size:10.2pt;min-height:.3in;margin-bottom:.055in}.qr-print-card dl{gap:.035in;margin-bottom:.065in}.qr-print-card dl div{grid-template-columns:.46in 1fr;border-color:#d1d5db;border-radius:.04in;padding:.035in .05in}.qr-print-card dt{font-size:5.2pt}.qr-print-card dd{font-size:6pt}.qr-print-card small{font-size:6.2pt;color:#111827;font-weight:850;overflow:visible;text-overflow:clip}.qr-print-selected-mode .qr-print-card:not(.print-picked){display:none!important}}.classday-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;color:#475467;font-size:12px;font-weight:800}.classday-legend span{display:inline-flex;align-items:center;gap:5px}.classday-legend i{width:16px;height:10px;border-radius:999px;display:inline-block}.classday-legend .light{background:#e0f2fe}.classday-legend .medium{background:#bae6fd}.classday-legend .busy{background:#7dd3fc}.month-day.class-day-light{background:linear-gradient(180deg,#f0f9ff,#fff);border-color:#bae6fd}.month-day.class-day-medium{background:linear-gradient(180deg,#e0f2fe,#fff);border-color:#38bdf8;box-shadow:inset 4px 0 0 #38bdf8}.month-day.class-day-busy{background:linear-gradient(180deg,#cffafe,#fff);border-color:#0891b2;box-shadow:inset 5px 0 0 #0891b2}.month-day.outside-month.class-day-light,.month-day.outside-month.class-day-medium,.month-day.outside-month.class-day-busy{opacity:.72}.classday-chip{border-color:#7dd3fc;background:#ecfeff;color:#155e75}.classday-chip.paper{background:#fff7ed;border-color:#fdba74;color:#9a3412}.classday-chip.tablet{background:#e0f2fe;border-color:#7dd3fc;color:#075985}.classday-chip.hybrid{background:#f3e8ff;border-color:#d8b4fe;color:#6b21a8}.classday-chip small{margin-left:5px;font-size:9px;color:inherit;opacity:.7;font-weight:800}
.today-cards{margin-bottom:18px}.time-slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(520px,1fr));gap:14px}.time-slot{background:#fbfcff;border:1px solid var(--line);border-radius:18px;padding:14px}.time-slot h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;color:#0f172a}.time-slot h3 small{font-size:12px;color:#64748b}.slot-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.slot-column{border:1px solid #e5e7eb;border-radius:14px;background:white;padding:10px;min-height:96px}.slot-column h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#475467}.arrived-column{background:#f0fdf4;border-color:#bbf7d0}.waiting-column{background:#fff7ed;border-color:#fed7aa}.slot-students{display:grid;gap:8px}.today-student{display:flex;justify-content:space-between;gap:10px;align-items:center;border-radius:12px;padding:10px;border:1px solid #e5e7eb;background:white}.today-student small{display:block;color:#64748b;margin-top:2px}.today-student .today-student-note{color:#334155;font-weight:800}.today-student span{font-size:12px;font-weight:900;border-radius:999px;padding:5px 8px;white-space:nowrap}.today-student.arrived{border-color:#86efac;background:#f0fdf4}.today-student.arrived span{background:#dcfce7;color:#166534}.today-student.waiting{border-color:#fed7aa;background:#fff7ed}.today-student.waiting span{background:#ffedd5;color:#9a3412}.muted.compact{padding:8px 2px}@media(max-width:720px){.time-slot-grid{grid-template-columns:1fr}.slot-columns{grid-template-columns:1fr}.today-student{align-items:flex-start}.today-student span{white-space:normal;text-align:right}}
.qr-punch-card.teacher-punch{background:linear-gradient(135deg,#111827,#7c3aed)}.qr-punch-card small{display:block;margin-top:6px;color:#e0e7ff;font-weight:800}.qr-punch-card button.checkin{background:#dcfce7;color:#166534}.qr-punch-card button.checkout{background:#fee2e2;color:#991b1b}.qr-punch-card form button{min-width:140px}
.all-sessions-panel .all-sessions-week-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.all-sessions-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 12px}.all-sessions-tools input{min-width:280px;flex:1}.all-sessions-tools .danger{background:#991b1b}.all-sessions-table td small{display:block;color:#667085;font-size:11px;margin-top:2px}.all-session-row.protected{background:#f8fafc;color:#667085}.protected-badge,.planned-badge{display:inline-block;border-radius:999px;padding:4px 8px;font-weight:900;font-size:12px}.protected-badge{background:#e5e7eb;color:#475467}.planned-badge{background:#dcfce7;color:#166534}.all-session-notice.success{background:#dcfce7;color:#166534}.all-session-notice button{margin-left:8px;padding:6px 10px;background:#166534}@media(max-width:800px){.all-sessions-tools{display:grid;grid-template-columns:1fr 1fr}.all-sessions-tools input{grid-column:1/-1;min-width:0}.all-sessions-table{min-width:760px}}
.cn-grid-cell.cn-delete-target{outline:3px solid #dc2626!important;outline-offset:1px;box-shadow:0 0 0 2px #fee2e2}.cn-delete-selected{background:#dc2626;color:white;margin:18px 0 0;min-width:150px}.cn-delete-selected:disabled{background:#cbd5e1;cursor:not-allowed}
.cn-grid{user-select:none}.cn-grid-cell.cn-empty{touch-action:none}.cn-grid-cell.cn-selected{background:#facc15!important;outline:2px solid #111827;box-shadow:0 0 0 1px #fff inset}
.cn-grid-cell{-webkit-user-drag:none;user-drag:none}.cn-grid.dragging-select,.cn-grid{cursor:crosshair}.cn-grid-wrap{touch-action:none}
/* Fit the full 1–200 Class-Navi grid into the visible panel. */
.cn-grid-wrap{min-width:0;width:100%}.cn-range-bar,.cn-axis,.cn-grid{width:100%;grid-template-columns:repeat(200,minmax(3px,1fr))!important}.cn-grid{grid-template-rows:repeat(6,22px)}.cn-axis span{font-size:10px}.cn-right{overflow-x:hidden}
/* 5-page block grid: 40 columns, much easier to see and drag. */
.cn-range-bar,.cn-axis,.cn-grid.cn-grid-blocks{grid-template-columns:repeat(40,minmax(12px,1fr))!important}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(6,24px)}.cn-grid.cn-grid-blocks .cn-grid-cell{border-radius:2px}.cn-grid.cn-grid-blocks .cn-grid-cell:hover{outline-width:3px}.cn-range-bar{grid-auto-rows:15px}.cn-axis span{font-size:11px;font-weight:800}
.resizable-split{grid-template-columns:430px 10px minmax(320px,1fr);align-items:stretch}.resize-handle{background:linear-gradient(90deg,transparent,#cbd5e1,transparent);border-radius:999px;cursor:col-resize;min-height:100%;position:relative}.resize-handle:before{content:'⋮';position:sticky;top:45vh;display:block;text-align:center;color:#64748b;font-weight:900;background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;padding:8px 0}.resize-handle:hover,.is-resizing .resize-handle{background:linear-gradient(90deg,transparent,#2f80ed,transparent)}body.is-resizing{cursor:col-resize;user-select:none}.resizable-split .panel{min-width:0}@media(max-width:900px){.resizable-split{grid-template-columns:1fr!important}.resize-handle{display:none}}
.cn-inline-score,.cn-grid-cell.cn-existing,.cn-range-segment[data-id]{cursor:context-menu}.cn-inline-score:hover{outline:2px solid #ef4444;outline-offset:1px}
.bulk-delete-tools{display:flex;gap:6px;margin-top:8px}.bulk-delete-tools button{padding:6px 8px;font-size:11px}.cn-delete-mode.active{background:#f97316}.cn-bulk-delete{background:#dc2626}.cn-bulk-delete:disabled{background:#cbd5e1}.delete-mode .cn-inline-score,.delete-mode .cn-grid-cell.cn-existing,.delete-mode .cn-range-segment[data-id]{cursor:crosshair!important}.bulk-delete-target{outline:3px solid #dc2626!important;outline-offset:1px;box-shadow:0 0 0 2px #fee2e2!important;filter:saturate(1.3)}
.cn-grid.cn-grid-blocks .cn-grid-cell.mastered,.cn-range-segment.mastered{background:#1d4ed8!important}.cn-grid.cn-grid-blocks .cn-grid-cell.weak,.cn-range-segment.weak{background:#ef4444!important}.cn-grid.cn-grid-blocks .cn-grid-cell.review,.cn-range-segment.review{background:#facc15!important}.cn-grid.cn-grid-blocks .cn-grid-cell.planned,.cn-range-segment.planned{background:#7dd3fc!important}.cn-grid.cn-grid-blocks .cn-grid-cell.empty{background:#fff!important}

@media print{.qr-print-card,.qr-print-card *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.qr-print-grid{padding:.06in 0 0 .04in}.qr-print-card{width:2in!important;height:2.92in;padding:.14in .08in .08in;background:#fff!important}.qr-print-card.staff{border-color:#1d4ed8!important;background:#dbeafe!important}.qr-print-card.staff .qr-card-type{background:#93c5fd!important;color:#0f2f6b!important}}
.label-print-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.student-label-card[hidden]{display:none!important}.student-label-card{position:relative;min-height:128px;border:2px solid #111827;border-radius:8px;padding:13px 15px 11px;overflow:hidden;display:grid;grid-template-columns:1fr 84px;grid-template-rows:22px 42px 28px 20px;align-items:center;background:#ead9bf;color:#1f2937;box-shadow:0 6px 16px #1018280a;break-inside:avoid;page-break-inside:avoid}.student-label-card.tablet{background:#0f2744;color:#fff;border-color:#071525}.student-label-card.hybrid{background:linear-gradient(90deg,#ead9bf 0 50%,#0f2744 50% 100%);color:#fff}.student-label-top{grid-column:1 / 3;display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:950;letter-spacing:.04em}.student-label-top em{font-style:normal;font-size:9px}.student-label-name{grid-column:1 / 2;margin:0;font-size:22px;line-height:1.04;font-weight:950;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:clip}.student-label-name.label-name-long{font-size:19px}.student-label-name.label-name-very-long{font-size:16px}.student-label-subject{grid-column:2 / 3;grid-row:2 / 4;justify-self:end;align-self:center;background:#d1d5db;color:#111827;border-radius:5px;min-width:76px;padding:10px 8px;text-align:center;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.02em}.student-label-meta{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:850;min-width:0}.student-label-meta span{opacity:.78}.student-label-meta b{font-size:13px}.student-label-card small{grid-column:1 / 3;font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label-selected-status{margin-top:0}@media(max-width:900px){.label-print-grid{grid-template-columns:1fr}.student-label-card{grid-template-columns:1fr 78px}}@media print{@page{size:letter;margin:.34in}.label-print-panel .calendar-head,.label-print-panel .filters,.label-selected-status,header,.logout,nav,.student-label-card .qr-card-pick{display:none!important}.label-print-panel{box-shadow:none;border:0;padding:0;overflow:visible}.label-print-grid{display:grid;grid-template-columns:repeat(2,3.35in);gap:.14in;padding:.05in}.student-label-card{width:3.35in;height:1.38in;min-height:0;border:1.3pt solid #111827;border-radius:.08in;padding:.11in .13in .09in;box-shadow:none;grid-template-columns:1fr .72in;grid-template-rows:.22in .44in .28in .2in;background:#ead9bf!important;color:#1f2937!important}.student-label-card.tablet{background:#0f2744!important;color:#fff!important;border-color:#071525!important}.student-label-card.hybrid{background:linear-gradient(90deg,#ead9bf 0 50%,#0f2744 50% 100%)!important;color:#fff!important}.student-label-top{font-size:7.4pt}.student-label-top em{font-size:6.8pt}.student-label-name{font-size:17pt}.student-label-name.label-name-long{font-size:14.5pt}.student-label-name.label-name-very-long{font-size:12.7pt}.student-label-subject{min-width:.66in;border-radius:.04in;padding:.08in .06in;font-size:8pt}.student-label-meta{font-size:7.2pt}.student-label-meta b{font-size:8.5pt}.student-label-card small{font-size:6.8pt}.student-label-card,.student-label-card *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}
.student-label-card .qr-card-pick{top:auto!important;left:auto!important;right:8px!important;bottom:8px!important;border-radius:8px!important;padding:3px 6px!important;background:rgba(255,255,255,.92)!important}
.student-label-card.tablet .qr-card-pick{background:rgba(255,255,255,.95)!important;color:#0f2744!important}

/* Class Navi-style student list controls */
.classnavi-list-shell{background:#f8fbff;border:1px solid var(--line);border-radius:18px;padding:14px;overflow:auto}.classnavi-list-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.classnavi-list-top b{font-size:20px;color:#0f172a}.classnavi-list-top small{display:block;color:#64748b;font-weight:800;margin-top:3px}.classnavi-filters{align-items:center;margin-bottom:12px}.segmented{display:inline-flex;background:#e5e7eb;border-radius:999px;padding:3px;gap:3px}.segmented a{text-decoration:none;color:#334155;font-weight:900;padding:8px 14px;border-radius:999px}.segmented a.active{background:#14b8d4;color:white}.classnavi-table{min-width:980px;border:1px solid #dbe6f3;border-radius:14px;overflow:hidden;background:white}.classnavi-row{display:grid;grid-template-columns:86px minmax(220px,1.2fr) minmax(210px,1fr) minmax(210px,1fr) 110px;gap:0;border-bottom:1px solid #e5e7eb}.classnavi-row:last-child{border-bottom:0}.classnavi-row>div{padding:12px;border-right:1px solid #eef2f7}.classnavi-row>div:last-child{border-right:0}.classnavi-row.head{background:#dff3fb;color:#0f172a;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}.grade-cell{display:grid;place-items:center;font-weight:900;font-size:18px;color:#334155;background:#f8fafc}.classnavi-row b{display:block}.classnavi-row small{display:block;color:#64748b;margin-top:4px;font-weight:700}.row-actions{display:flex;gap:8px;margin-top:8px}.row-actions a,.subject-status a{display:inline-flex;text-decoration:none;font-size:12px;font-weight:900;color:#0f172a;background:#eef2ff;border-radius:999px;padding:5px 9px;margin-top:8px}.subject-status.math{border-left:4px solid #1f65d6;background:#f7fbff}.subject-status.reading{border-left:4px solid #c0392b;background:#fff8f8}.note-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#cbd5e1;margin-right:6px}.note-dot.on{background:#14b8d4;box-shadow:0 0 0 3px #cffafe}@media(max-width:900px){.classnavi-table{min-width:760px}.classnavi-row{grid-template-columns:64px 190px 190px 190px 90px}.classnavi-filters{display:flex;overflow:auto}.segmented a{white-space:nowrap}}

/* Set graph page-size options: 3 / 5 / 10 pages per cell */
.cn-range-bar,.cn-axis,.cn-grid.cn-grid-blocks{grid-template-columns:repeat(var(--cn-cols,40),minmax(12px,1fr))!important}.cn-toolbar form{margin:0}.cn-toolbar select[name="packet_size"]{font-weight:900;border-color:#bae6fd;background:#f0f9ff;color:#0f172a}.cn-level-caption span:after{content:' — choose 3/5/10 pages per cell from toolbar';color:#0e7490}

/* Student lifecycle: active / hold / inactive without deleting records */
.classnavi-row{grid-template-columns:72px minmax(210px,1.1fr) 150px minmax(150px,1fr) minmax(150px,1fr) 95px}.student-status{display:inline-flex;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px;background:#e2e8f0;color:#334155}.student-status.active{background:#dcfce7;color:#166534}.student-status.hold,.student-status.paused{background:#fef3c7;color:#92400e}.student-status.inactive{background:#fee2e2;color:#991b1b}.status-actions form{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.status-actions button{font-size:10px;padding:5px 7px;border-radius:999px;background:#f1f5f9;color:#334155}.status-actions button:hover{background:#203864;color:white}@media(max-width:900px){.classnavi-row{grid-template-columns:60px 180px 130px 180px 180px 90px}}
.status-actions .danger-mini{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.status-actions .danger-mini:hover{background:#dc2626;color:white}

/* Reports */
.report-filters{flex-wrap:wrap}.student-report-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border:1px solid #dbeafe;background:#eff6ff;border-radius:16px;padding:16px;margin:12px 0 16px}.student-report-head h3{margin:0 0 4px;font-size:24px}.student-report-head p{margin:0;color:#64748b;font-weight:800}.student-report-head span{display:block;color:#334155;margin-top:4px}.student-note-box{display:grid;gap:8px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px}.student-note-box p{margin:0}.usage-table a{font-weight:900;color:#1f65d6;text-decoration:none}.usage-table a:hover{text-decoration:underline}@media print{.report-filters,.logout,nav,header{display:none!important}.report-panel{box-shadow:none;border:0}.student-report-head{break-inside:avoid}.usage-table{font-size:11px}}

/* Report B */
.report-b-tabs{display:flex;gap:8px;margin:6px 0 16px;border-bottom:1px solid var(--line);padding-bottom:10px}.report-b-tabs a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#eef2ff;color:#203864;border:1px solid #dbeafe;border-radius:10px;padding:10px 14px;font-weight:900}.report-b-tabs a.active{background:#203864;color:white;border-color:#203864}.report-b-empty{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:18px}.report-b-empty h3{margin:0 0 8px}.report-b-upload-box{display:grid;gap:10px;margin:0 0 14px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}.report-b-upload-form{display:grid;grid-template-columns:130px minmax(220px,1.1fr) minmax(180px,1fr) auto;gap:10px;align-items:end}.report-b-upload-form label{display:grid;gap:5px;font-weight:850;color:#334155}.report-b-upload-form input,.report-b-upload-form select{width:100%;border:1px solid #cbd5e1;border-radius:7px;padding:8px;background:white}.report-b-upload-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.report-b-upload-list span{display:inline-flex;gap:6px;align-items:center;border:1px solid #dbeafe;border-radius:999px;background:white;color:#203864;padding:6px 9px;font-weight:850}.report-b-upload-list small{color:#64748b;font-weight:700}.report-b-table-wrap{overflow:auto;border:1px solid #111827;border-radius:8px;background:white}.report-b-table{min-width:1120px;border-collapse:collapse;font-size:13px}.report-b-table th,.report-b-table td{border:1px solid #111827;padding:0;text-align:center;vertical-align:middle}.report-b-table th{background:#fff200;color:#111827;font-weight:950;padding:7px 6px;white-space:nowrap}.report-b-table th.report-b-current-level{background:#bfe0ff;color:#0f3f75}.report-b-table td.report-b-current-level{background:#e0f2ff;color:#0f3f75;font-weight:950}.report-b-sort-link{display:inline-flex;gap:5px;align-items:center;justify-content:center;color:#111827;text-decoration:none}.report-b-sort-link span{font-size:14px;line-height:1}.report-b-table .report-b-number{width:58px;background:#e5e7eb;font-weight:900}.report-b-table td.report-b-number{padding:6px}.report-b-table input,.report-b-table select{width:100%;height:34px;border:0;border-radius:0;padding:5px 7px;text-align:center;background:white;font-size:13px}.report-b-table select{font-weight:850}.report-b-delete{justify-content:center;font-size:11px;padding:0 6px}.report-b-delete input{width:14px;height:14px}.report-b-actions{display:flex;gap:8px;margin-top:12px}@media(max-width:760px){.report-b-upload-form{grid-template-columns:1fr}}@media print{.report-b-panel{box-shadow:none;border:0;padding:0}.report-b-tabs,.report-b-upload-box,.report-b-actions,header,nav,.logout{display:none!important}.report-b-table{font-size:10px;min-width:0}.report-b-table input,.report-b-table select{font-size:10px;height:24px;padding:2px}.report-b-table th{font-size:10px;padding:4px}}
.report-b-table-wrap{max-height:calc(100vh - 260px)}
.report-b-table th{position:sticky;top:0;z-index:2}
@media(max-width:760px){.report-b-table-wrap{max-height:calc(100vh - 220px)}}
@media print{.report-b-table-wrap{max-height:none;overflow:visible}.report-b-table th{position:static}}

/* Dashboard enrollment counts */
.dashboard-counts{grid-template-columns:repeat(4,minmax(180px,1fr));margin-bottom:18px}.dashboard-counts .card small{display:block;margin-top:6px;color:#64748b;font-weight:800}@media(max-width:1100px){.dashboard-counts{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.dashboard-counts{grid-template-columns:1fr}}

/* ASMKUMON-style Admin Progress toolbar */
.admin-progress-filters{align-items:flex-end;flex-wrap:wrap}.admin-progress-filters label{min-width:170px}.progress-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px;margin:12px 0}.progress-toolbar .button,.progress-toolbar button{font-size:12px;padding:8px 10px;border-radius:10px}.progress-toolbar .progress-delete-selected{background:#dc2626}.progress-selected-count{font-weight:900;color:#475569;background:white;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px}.progress-record{position:relative;padding-left:28px}.progress-pick{position:absolute;left:6px;top:6px;display:block}.progress-pick input{width:16px;height:16px;padding:0}.progress-record.selected{outline:3px solid #facc15;background:#fffbeb}.progress-calendar .plan-card.mini{min-height:74px}
.record-calendar-panel{padding:14px!important}.record-calendar-panel .calendar-head{gap:10px!important;margin-bottom:8px!important}.record-calendar-panel .cards{gap:8px!important}.record-calendar-panel .card{padding:12px!important}.record-calendar-panel .card b{font-size:24px!important}.record-calendar-panel .month-title{font-size:20px!important;margin:4px 0 8px!important}.record-calendar-panel .month-weekdays{margin-bottom:5px!important}.record-calendar-panel .month-weekdays div{padding:5px!important;border-radius:7px!important;font-size:11px!important}.record-calendar-only{grid-template-columns:repeat(7,minmax(96px,1fr))!important;gap:5px!important}.record-calendar-only .month-day{min-height:104px!important;padding:5px!important;border-radius:9px!important}.record-calendar-only .month-day h3{font-size:14px!important;margin:0 0 4px!important;line-height:1.05!important}.record-calendar-only .month-day h3 small{font-size:9px!important}.record-calendar-only .plan-list.compact{display:grid!important;gap:2px!important;margin:0!important}.record-calendar-only .plan-card.mini{min-height:0!important;padding:3px 4px!important;border-radius:6px!important;font-size:9px!important;line-height:1.1!important;gap:1px!important}.record-calendar-only .plan-card.mini .pages{font-size:9px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.record-calendar-only .plan-card.mini .result,.record-calendar-only .plan-card.mini .flags{font-size:8px!important;padding:1px 3px!important;line-height:1!important}.record-calendar-only .pill{font-size:8px!important;padding:1px 4px!important}.record-calendar-only .button.small{font-size:9px!important;padding:3px 5px!important;margin-top:2px!important}
.cn-progress-link{display:inline-flex;align-items:center;justify-content:center;background:#0e7490;color:white;text-decoration:none;margin-top:18px;min-width:170px}.cn-progress-link:hover{filter:brightness(1.08)}

/* Strong visible feedback while planning in Set List */
.cn-grid.cn-grid-blocks .cn-grid-cell.cn-selected,
.cn-grid.cn-grid-blocks .cn-grid-cell.empty.cn-selected,
.cn-grid.cn-grid-blocks .cn-grid-cell.cn-empty.cn-selected{
  background:#facc15!important;
  background-image:linear-gradient(135deg,#fde047,#f59e0b)!important;
  outline:3px solid #111827!important;
  outline-offset:-1px;
  box-shadow:0 0 0 2px #fff inset,0 0 0 2px #f59e0b!important;
  z-index:5;
}

/* Prep print header: keep Print Date away from the far right edge. */
body:has(.monthly-prep-panel) .monthly-record-title-right,
.monthly-prep-panel .monthly-record-title-right{
  right:.16in!important;
}
body:has(.monthly-prep-panel) .monthly-record-title .monthly-record-print-date,
.monthly-prep-panel .monthly-record-title .monthly-record-print-date{
  margin-right:.02in!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-title-right,
  .monthly-prep-panel .monthly-record-title-right{
    right:.18in!important;
  }
}

/* Final Planer Set graph override: taken-home unfinished work before next center date is gray hatched. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-taken-unfinished,
.cn-right .cn-grid-cell.cn-existing.set-taken-unfinished,
.cn-right .cn-range-segment.set-taken-unfinished,
.cn-assignment-overlay .cn-assignment-block.set-taken-unfinished,
.cn-assignment-block.set-taken-unfinished{
  background-color:#cbd5e1!important;
  background-image:repeating-linear-gradient(135deg,rgba(71,85,105,.34) 0 4px,rgba(255,255,255,.28) 4px 8px)!important;
  border-color:#64748b!important;
  color:#334155!important;
}

/* EOF Planer Set graph override: good score with No Time stays yellow. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.missing-time,
.cn-right .cn-grid-cell.cn-existing.missing-time,
.cn-right .cn-range-segment.missing-time,
.cn-assignment-overlay .cn-assignment-block.missing-time,
.cn-assignment-block.missing-time{
  background:#facc15!important;
  background-image:none!important;
  border-color:#eab308!important;
  color:#422006!important;
}

/* Student Attendance bulk delete and action spacing. */
.attendance-row-actions{
  gap:10px!important;
}
.attendance-row-form{
  display:flex!important;
  gap:10px!important;
  align-items:center!important;
}
.attendance-select-col{
  width:36px!important;
  text-align:center!important;
}
.attendance-select-col input{
  width:18px!important;
  height:18px!important;
}
.attendance-delete-selected-form{
  display:flex!important;
  justify-content:flex-start!important;
  padding:10px 12px!important;
  border-bottom:1px solid #e5e7eb!important;
  background:#f8fafc!important;
  margin:0!important;
}
.attendance-delete-selected-form button:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}

/* Planner responsive scale: keep graph, monthly calendar, and record book from overlapping on smaller MacBook windows */
@media screen and (max-width:1380px){
  body:has(.cn-shell) main{max-width:none!important;padding:12px!important}
  .cn-shell{zoom:.94}
  .cn-main{grid-template-columns:var(--set-left,260px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-right{padding-right:190px!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{width:180px!important}
  .rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:24px!important}
  .rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:22px!important}
  .rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:30px!important}
}
@media screen and (max-width:1240px){
  .cn-shell{zoom:.88}
  .cn-main{grid-template-columns:var(--set-left,220px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-right{padding-right:178px!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{width:168px!important}
  .set-recordbook-title{font-size:9px!important}
  .set-recordbook th,.set-recordbook td,
  .set-recordbook.rb-inline th,.set-recordbook.rb-inline td{font-size:7.5px!important}
}
@media screen and (max-width:1120px){
  .cn-shell{zoom:.82}
  .cn-main{grid-template-columns:var(--set-left,190px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-toolbar{gap:8px!important}
  .cn-toolbar select{padding:7px 8px!important;font-size:12px!important}
}
@media screen and (max-width:980px){
  .cn-shell{zoom:1}
  .cn-main{grid-template-columns:1fr!important}
  .set-resize-handle{display:none!important}
  .cn-left{min-width:0!important;max-height:none!important;border-right:0!important;border-bottom:1px solid #e5e7eb!important}
  .cn-right{padding-right:0!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{position:static!important;width:100%!important;margin-top:8px!important}
}

/* Planner full-width default: leave more room for the graph at normal browser zoom. */
@media screen and (min-width:1381px){
  body:has(.cn-shell) main{max-width:none!important;padding-left:12px!important;padding-right:12px!important}
  .cn-main{grid-template-columns:var(--set-left,280px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-grid-wrap{min-width:0!important;width:100%!important;max-width:100%!important}
  .cn-grid-stack,.cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks,.cn-assignment-overlay{max-width:100%!important}
  .cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks{grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important}
  .cn-assignment-overlay{grid-template-columns:repeat(200,minmax(0,1fr))!important}
}

/* Record Book page labels must show the full range, including 191-200. */
.cn-right{padding-right:250px!important}
.cn-right .set-recordbook.rb-inline{width:238px!important}
.rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:28px!important;min-width:28px!important}
.rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:24px!important;min-width:24px!important}
.rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:34px!important;min-width:34px!important}
.rb-inline th:nth-child(4),.rb-inline td:nth-child(4){width:auto!important}
.rb-inline .rb-page-cell{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  overflow:visible!important;
  gap:2px!important;
}
.rb-page-chip{
  max-width:none!important;
  min-width:max-content!important;
  overflow:visible!important;
  text-overflow:clip!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.rb-inline .rb-pages{
  flex:1 1 46px!important;
  width:auto!important;
  min-width:42px!important;
  max-width:none!important;
}
@media(max-width:1100px){
  .cn-right{padding-right:0!important}
  .cn-right .set-recordbook.rb-inline{width:100%!important}
}

.record-calendar-only .plan-card.mini{
  overflow:visible!important;
  position:relative!important;
}
.record-calendar-only .plan-card.mini:hover{
  outline:2px solid #0284c7!important;
  outline-offset:1px!important;
  z-index:12!important;
}
.record-calendar-only .plan-card.mini:hover::after{display:none!important}
.record-calendar-only .rc-hover-preview,
body > .rc-hover-preview{
  display:none;
  position:fixed;
  left:0;
  top:0;
  z-index:10050;
  width:max-content;
  max-width:min(640px,calc(100vw - 20px));
  align-items:center;
  gap:8px;
  padding:7px 8px;
  border:1px solid #bfe9c8;
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 12px 28px rgba(15,23,42,.15);
  font-size:10.5px;
  line-height:1.15;
  pointer-events:none;
}
.record-calendar-only .rc-hover-preview.rc-hover-active,
body > .rc-hover-preview.rc-hover-active{display:flex}
.record-calendar-only .rc-hover-date,body > .rc-hover-preview .rc-hover-date{width:44px;display:grid;place-items:center;border-right:1px solid #d6f1dc;padding-right:6px;color:#1f2937}
.record-calendar-only .rc-hover-date span,body > .rc-hover-preview .rc-hover-date span{font-size:10px;font-weight:800;color:#4b5563;line-height:1}
.record-calendar-only .rc-hover-date b,body > .rc-hover-preview .rc-hover-date b{font-size:23px;line-height:1;font-weight:1000}
.record-calendar-only .rc-hover-body,body > .rc-hover-preview .rc-hover-body{display:grid;gap:3px}
.record-calendar-only .rc-hover-strip,body > .rc-hover-preview .rc-hover-strip{display:flex;align-items:end;gap:8px}
.record-calendar-only .rc-hover-score,body > .rc-hover-preview .rc-hover-score{min-width:66px;height:31px;border:1px solid #efa9b5;border-radius:999px;background:#f9dbe1;color:#8a1231;display:grid;place-items:center;font-size:16px;font-weight:1000;padding:0 10px}
.record-calendar-only .rc-hover-pages,body > .rc-hover-preview .rc-hover-pages{display:flex;align-items:end;gap:3px}
.record-calendar-only .rc-hover-page,body > .rc-hover-preview .rc-hover-page{display:grid;grid-template-rows:12px 25px;gap:2px;width:34px}
.record-calendar-only .rc-hover-page b,body > .rc-hover-preview .rc-hover-page b{font-size:10px;color:#475569;text-align:center;font-weight:1000;line-height:12px}
.record-calendar-only .rc-hover-page i,body > .rc-hover-preview .rc-hover-page i{display:grid;place-items:center;height:25px;border-radius:5px;border:1px solid #79d98e;background:#c9f7d5;color:#064e3b;font-style:normal;font-size:14px;font-weight:1000}
.record-calendar-only .rc-hover-page i.empty,body > .rc-hover-preview .rc-hover-page i.empty{background:#fff;border-color:#cbd5e1;color:#94a3b8;font-size:15px}
.record-calendar-only .rc-hover-page i.mid,body > .rc-hover-preview .rc-hover-page i.mid{background:#fff0b8;border-color:#f4d35e;color:#7c4a03}
.record-calendar-only .rc-hover-page i.low,body > .rc-hover-preview .rc-hover-page i.low{background:#ffd7d7;border-color:#f3a2a2;color:#991b1b}
.record-calendar-only .rc-hover-meta,body > .rc-hover-preview .rc-hover-meta{font-size:10px;font-weight:900;color:#475569;white-space:nowrap}
.record-calendar-only .record-calendar-edit{
  display:none!important;
}
.record-calendar-only .plan-card.mini .result{
  display:none!important;
}
.record-calendar-only .plan-card.mini .pages{
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:1000!important;
  color:#0f172a!important;
}
.record-calendar-only .rc-hover-page,
body > .rc-hover-preview .rc-hover-page{
  grid-template-rows:15px 25px;
}
.record-calendar-only .rc-hover-page b,
body > .rc-hover-preview .rc-hover-page b{
  font-size:12px;
  line-height:15px;
  color:#334155;
}
.record-calendar-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}
.record-calendar-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.38)}
.record-calendar-card{position:relative;z-index:1;width:min(560px,calc(100vw - 24px));display:grid;grid-template-columns:1fr 1fr;gap:10px;background:white;border:1px solid #cbd5e1;border-radius:12px;padding:14px;box-shadow:0 24px 80px rgba(15,23,42,.28)}
.record-calendar-modal-head{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;align-items:start;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.record-calendar-modal-head b{display:block;font-size:15px}.record-calendar-modal-head small{display:block;color:#64748b;font-weight:800;margin-top:2px}.record-calendar-close{width:28px;height:28px;border-radius:999px;padding:0;background:#f1f5f9;color:#0f172a}
.record-calendar-card label{display:grid;gap:4px;font-size:11px;font-weight:900;color:#475569}.record-calendar-card label.wide{grid-column:1/-1}.record-calendar-card input,.record-calendar-card textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:8px;font-size:13px}.record-calendar-card textarea{min-height:74px;resize:vertical}
.record-calendar-score-row{grid-column:1/-1;display:grid;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px}
.record-calendar-score-wrap{grid-column:1/-1;display:block}
.record-calendar-score-wrap .record-calendar-score-row{grid-column:auto}
.record-calendar-score-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#334155}
.record-calendar-score-head b{font-size:12px;font-weight:1000}
.record-calendar-autofill{border:0!important;border-radius:999px!important;background:#2563eb!important;color:#fff!important;padding:5px 9px!important;font-size:11px!important;font-weight:1000!important}
.record-calendar-score-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}
.record-calendar-score-grid label{display:grid!important;grid-template-rows:13px 28px!important;gap:2px!important;margin:0!important;color:#64748b!important}
.record-calendar-score-grid span{text-align:center;font-size:10px;line-height:13px;font-weight:1000;color:#475569}
.record-calendar-score-grid input{height:28px!important;padding:3px 2px!important;text-align:center!important;font-size:15px!important;font-weight:1000!important;border-radius:5px!important;background:#fff!important}
.record-calendar-score-grid input[value="-"]{background:#dcfce7!important;border-color:#86efac!important;color:#14532d!important}
.record-calendar-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;justify-content:flex-end}.record-calendar-actions span{font-size:12px;font-weight:900;color:#0284c7}.record-calendar-actions button{border-radius:9px;padding:9px 16px}
.cn-grid.dragging-select .cn-grid-cell.cn-selected{filter:saturate(1.25) brightness(1.03)}
.cn-save-row .cn-save:not(:disabled){background:#16a34a}.cn-selected-pages:not([value=""]) ~ .cn-save{background:#16a34a}
.cn-grid.cn-grid-blocks{counter-reset:dayrow}.cn-grid.cn-grid-blocks .cn-grid-cell[data-row="0"]{border-top:2px solid #0f172a}.cn-grid.cn-grid-blocks .cn-grid-cell[data-row="1"],.cn-grid.cn-grid-blocks .cn-grid-cell[data-row="3"],.cn-grid.cn-grid-blocks .cn-grid-cell[data-row="5"]{filter:brightness(.98)}
.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),24px)!important}.cn-toolbar select[name="rows"]{font-weight:900;border-color:#ddd6fe;background:#faf5ff;color:#4c1d95}

/* Undo safety toast */
.undo-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:9999;display:flex;align-items:center;gap:12px;background:#0f172a;color:white;border-radius:999px;padding:12px 16px;box-shadow:0 18px 50px #0005;font-weight:900}.undo-toast button{background:#facc15;color:#111827;border-radius:999px;padding:8px 14px}.undo-toast small{color:#cbd5e1;font-weight:800}@media(max-width:640px){.undo-toast{left:12px;right:12px;bottom:14px;transform:none;border-radius:16px;flex-wrap:wrap}}
.cn-undo-last{padding:9px 13px;border-radius:10px;background:#111827;color:#fff;font-weight:900}.cn-undo-last:disabled{background:#cbd5e1;color:#64748b;cursor:not-allowed}
.prep-skip-toggle{display:inline-flex;align-items:center;margin:0}
.prep-skip-toggle label{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 11px;border:1px solid #f59e0b;border-radius:10px;background:#fffbeb;color:#92400e;font-size:12px;font-weight:900;white-space:nowrap}
.prep-skip-toggle input[type="checkbox"]{width:15px;height:15px;accent-color:#f59e0b}
.cn-grid-cell.past-locked,.cn-range-segment.past-locked{cursor:not-allowed!important;box-shadow:inset 0 0 0 2px rgba(15,23,42,.35)!important}.cn-grid-cell.past-locked:hover,.cn-range-segment.past-locked:hover{outline:2px dashed #64748b!important}.cn-grid-cell.past-locked:after{content:'🔒';font-size:10px;display:block;text-align:center;line-height:20px;opacity:.75}

/* Link left date/score records with right Set graph */
.linked-plan-highlight{outline:3px solid #22c55e!important;outline-offset:2px!important;box-shadow:0 0 0 3px rgba(34,197,94,.18)!important;filter:saturate(1.3) brightness(1.04)}.cn-score-group.linked-plan-highlight{background:#ecfdf5;border-radius:12px;padding:6px}.cn-range-segment.linked-plan-highlight{min-height:18px!important}.cn-grid-cell.linked-plan-highlight{z-index:7!important}

/* Align Set left score rows with right graph day rows */
.cn-main{grid-template-columns:minmax(250px,300px) 1fr}.cn-left{padding:8px}.cn-left-head{display:grid;grid-template-columns:54px 1fr;gap:6px;align-items:start}.cn-left-head .bulk-delete-tools{grid-column:1/-1}.cn-score-group{grid-template-columns:48px minmax(0,1fr);gap:4px;margin-bottom:4px;min-height:24px;align-items:center}.cn-date b{font-size:18px;line-height:18px}.cn-date span,.cn-date small{font-size:9px;line-height:10px}.cn-score-cells{display:flex;flex-wrap:nowrap;gap:2px;overflow:hidden}.cn-score-cell{min-width:20px;grid-template-rows:12px 14px;border-radius:2px}.cn-score-cell span{font-size:8px}.cn-score-cell b{font-size:9px}.cn-range-bar{display:grid;grid-template-rows:repeat(var(--cn-rows,6),24px);gap:1px;margin:0 0 4px;padding:3px;background:#e5e7eb;border:1px solid #cbd5e1}.cn-range-segment{min-height:20px;border-radius:4px}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),24px)!important}.cn-right{overflow:auto}.cn-grid-wrap{min-width:760px}

/* Use only one Set graph: hide duplicate summary/range graph */
.cn-range-bar{display:none!important}.cn-axis{margin-top:6px}.cn-grid.cn-grid-blocks{margin-top:0}.cn-level-caption{margin-bottom:6px}.cn-score-group{min-height:24px;margin-bottom:1px}.cn-left-head{margin-bottom:6px}.cn-score-cells{min-height:24px;align-items:center}

/* Set List final layout: one graph only + compact date/score rows */
.cn-main{grid-template-columns:240px minmax(0,1fr)!important}.cn-left{padding:8px!important}.cn-left-head{display:block!important;font-size:13px;line-height:15px}.cn-left-head small{font-size:10px}.bulk-delete-tools{gap:4px!important}.bulk-delete-tools button{padding:5px 6px!important;font-size:10px!important}.cn-score-group{display:grid!important;grid-template-columns:42px 1fr!important;gap:4px!important;margin:0!important;min-height:24px!important;height:24px!important;overflow:visible!important}.cn-date{font-size:9px!important;line-height:9px!important}.cn-date b{font-size:14px!important;line-height:13px!important}.cn-date small{font-size:8px!important;line-height:8px!important}.cn-score-cells{display:flex!important;flex-wrap:nowrap!important;gap:1px!important;align-items:center!important;height:24px!important;overflow:visible!important}.cn-score-cell{min-width:18px!important;width:18px!important;height:22px!important;grid-template-rows:10px 12px!important;border-radius:2px!important}.cn-score-cell span{font-size:7px!important;line-height:10px!important}.cn-score-cell b{font-size:8px!important;line-height:12px!important}.cn-axis{margin-top:0!important}.cn-grid.cn-grid-blocks{border-top:2px solid #111827!important}.cn-grid-wrap{padding:10px 14px!important;min-width:700px!important}.cn-level-caption{font-size:13px!important;margin-bottom:6px!important}

/* Repair Set graph placement after removing duplicate summary */
.cn-right{display:block!important}.cn-grid-wrap{display:block!important}.cn-level-caption{display:flex!important;align-items:baseline!important;gap:8px!important}.cn-axis{display:grid!important;width:100%!important}.cn-grid.cn-grid-blocks{display:grid!important;width:100%!important;align-self:start!important}.cn-main{align-items:start!important}.cn-left,.cn-right{align-self:start!important}

/* Set List usability repair: compact top strip, readable scores, resizable score panel */
.cn-main{display:grid!important;grid-template-columns:var(--set-left,310px) 8px minmax(0,1fr)!important;align-items:start!important}.set-resize-handle{background:linear-gradient(90deg,transparent,#cbd5e1,transparent);cursor:col-resize;min-height:calc(100vh - 210px);position:relative}.set-resize-handle:before{content:'⋮';position:sticky;top:45vh;display:block;text-align:center;color:#64748b;font-weight:900;background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;padding:8px 0}.set-resize-handle:hover{background:linear-gradient(90deg,transparent,#0ea5e9,transparent)}
.cn-left{min-width:230px!important;overflow:auto!important}.cn-right{min-width:0!important;overflow:auto!important}.cn-grid-wrap{min-width:640px!important;max-width:100%!important;padding:10px 12px!important}.cn-level-caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cn-axis,.cn-grid.cn-grid-blocks,.cn-range-strip{width:100%!important;max-width:100%!important;grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr))!important}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),23px)!important}.cn-grid.cn-grid-blocks .cn-grid-cell{min-height:23px!important}.cn-range-strip{display:grid!important;grid-template-rows:repeat(var(--cn-rows,6),5px)!important;gap:1px!important;background:#f1f5f9!important;border:1px solid #dbe3ef!important;padding:2px!important;margin:2px 0 4px!important}.cn-range-strip .cn-range-segment{min-height:5px!important;border-radius:3px!important;box-shadow:none!important}.cn-range-strip .cn-range-segment:hover{outline:2px solid #111827!important;outline-offset:1px!important}
.cn-score-group{grid-template-columns:50px minmax(0,1fr)!important;min-height:27px!important;height:27px!important;margin-bottom:2px!important}.cn-date b{font-size:16px!important;line-height:15px!important}.cn-date span,.cn-date small{font-size:9px!important;line-height:9px!important}.cn-score-cells{height:27px!important;gap:2px!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:2px!important}.cn-score-cell{min-width:25px!important;width:25px!important;height:24px!important;grid-template-rows:11px 13px!important}.cn-score-cell span{font-size:8px!important}.cn-score-cell b{font-size:10px!important;font-weight:900!important}.cn-left::-webkit-scrollbar,.cn-score-cells::-webkit-scrollbar{height:7px;width:7px}.cn-left::-webkit-scrollbar-thumb,.cn-score-cells::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
@media(max-width:900px){.cn-main{grid-template-columns:1fr!important}.set-resize-handle{display:none}.cn-grid-wrap{min-width:720px!important}}

/* Final alignment pass: keep top progress strip, but align left score rows with main graph */
.cn-main{--set-top-offset:82px}.cn-left{padding-top:8px!important}.cn-left-head{height:var(--set-top-offset)!important;margin:0!important;display:block!important;overflow:hidden!important}.cn-range-strip{display:grid!important;grid-template-rows:8px!important;height:14px!important;min-height:14px!important;max-height:14px!important;gap:0!important;background:#eef2f7!important;border:1px solid #dbe3ef!important;padding:2px!important;margin:2px 0 6px!important;overflow:visible!important}.cn-range-strip .cn-range-segment{height:8px!important;min-height:8px!important;max-height:8px!important;border-radius:999px!important}.cn-level-caption{height:24px!important;margin:0 0 2px!important;line-height:20px!important}.cn-axis{height:28px!important;margin:0!important;align-items:end!important;border-bottom:2px solid #111827!important}.cn-grid.cn-grid-blocks{border-top:0!important}.cn-score-group{height:23px!important;min-height:23px!important;margin:0 0 1px!important}.cn-score-cells{height:23px!important}.cn-score-cell{height:22px!important;min-width:28px!important;width:28px!important}.cn-score-cell b{font-size:11px!important}.cn-score-cell span{font-size:8px!important}.cn-date b{font-size:16px!important}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),24px)!important}.cn-grid.cn-grid-blocks .cn-grid-cell{min-height:24px!important}

/* Score cells readability bump */
.cn-main{--set-top-offset:88px}.cn-left-head{height:var(--set-top-offset)!important}.cn-score-group{height:31px!important;min-height:31px!important;margin:0 0 3px!important;grid-template-columns:54px minmax(0,1fr)!important}.cn-score-cells{height:31px!important;align-items:center!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important}.cn-score-cell{height:29px!important;min-width:33px!important;width:33px!important;grid-template-rows:13px 16px!important;border-radius:3px!important}.cn-score-cell span{font-size:9px!important;line-height:13px!important}.cn-score-cell b{font-size:12px!important;line-height:16px!important;font-weight:900!important;overflow:visible!important}.cn-date span{font-size:10px!important;line-height:10px!important}.cn-date b{font-size:17px!important;line-height:16px!important}.cn-date small{font-size:9px!important;line-height:9px!important}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),28px)!important}.cn-grid.cn-grid-blocks .cn-grid-cell{min-height:28px!important}.cn-range-strip{margin-bottom:8px!important}.cn-axis{height:30px!important}
.cn-level-select{margin:0}.cn-level-select select{font-size:26px;font-weight:1000;min-width:88px;text-align:center;padding:6px 10px;border:0;background:#f1f5f9;color:#0f172a;border-radius:12px}.cn-level-select select:hover{background:#e0f2fe}

/* Inventory page restored */
.inventory-panel{min-height:70vh}.inventory-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.inventory-summary b{font-size:20px}.inventory-summary span{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;font-weight:900;color:#334155}.inventory-scroll{overflow:auto;border:1px solid #e5e7eb;border-radius:14px;margin:12px 0}.inventory-table{min-width:1120px}.inventory-table input{width:100%;min-width:82px;padding:7px}.inventory-table button{padding:6px 8px;margin:2px;font-size:12px}.inv-status{display:inline-flex;border-radius:999px;padding:5px 8px;font-weight:900;font-size:12px}.inv-status.ok{background:#dcfce7;color:#166534}.inv-status.order-needed{background:#fef3c7;color:#92400e}.inv-status.missing{background:#fee2e2;color:#991b1b}.order-alert{display:flex;gap:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:12px;margin:12px 0}.hidden-form{display:none}
.inventory-matrix{min-width:1320px;border-collapse:separate;border-spacing:0}.inventory-matrix th{position:sticky;top:0;z-index:2;background:#eef4ff;color:#1e3a5f;text-align:center}.inventory-matrix th small{display:block;color:#64748b;font-size:10px;font-weight:800;margin-top:2px}.inventory-matrix .sticky-col{position:sticky;left:0;z-index:3;background:#e0efff;text-align:left;min-width:86px}.inventory-matrix td{min-width:72px;text-align:center;vertical-align:top}.inventory-matrix td>input[type=number]{min-width:54px;text-align:center;font-weight:900}.inventory-matrix td.inventory-missing{background:#fff1f2}.inventory-matrix td.inventory-order-needed{background:#fffbeb}.inventory-matrix td.empty{background:#f8fafc}.inventory-cell-actions{display:grid;grid-template-columns:1fr 24px 24px;gap:2px;margin-top:4px}.inventory-cell-actions input[type=number]{min-width:34px;padding:4px;text-align:center;font-size:11px}.inventory-cell-actions button{min-width:24px;margin:0;padding:4px 0;font-weight:900}
.inventory-photo-table{min-width:960px;border-spacing:0;font-size:11px}.inventory-photo-table th,.inventory-photo-table td{border-right:1px solid #c9a979;border-bottom:1px solid #e7d3aa}.inventory-photo-table th{background:#e8f2ff;font-size:11px;padding:3px 2px}.inventory-photo-table th small{font-size:8px;line-height:1}.inventory-photo-table .sticky-col{background:#dbeafe;color:#1e3a8a;text-align:center;min-width:44px;width:44px;padding-left:2px;padding-right:2px}.inventory-photo-table td,.inventory-photo-table td.inventory-missing,.inventory-photo-table td.inventory-order-needed{background:#fffdf7;padding:1px;min-width:40px}.inventory-photo-table td.inventory-unavailable{background:#d1d5db;background-image:linear-gradient(135deg,rgba(255,255,255,.18) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.18) 50%,rgba(255,255,255,.18) 75%,transparent 75%,transparent);background-size:8px 8px}.inventory-photo-table td>input[type=number]{border:0;background:transparent;box-shadow:none;font-size:12px;line-height:1.05;padding:2px 0;min-width:32px;color:#111827}.inventory-photo-table td>input[type=number]:focus{background:#fff;border:1px solid #2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.15)}
.inventory-tabs{display:flex;gap:8px;align-items:center;margin:0 0 14px;border-bottom:1px solid #e5e7eb;padding-bottom:10px}.inventory-tabs a{display:inline-flex;text-decoration:none;background:#eef2ff;color:#203864;border:1px solid #dbeafe;border-radius:10px;padding:9px 13px;font-weight:900}.inventory-tabs a.active{background:#203864;color:white;border-color:#203864}.incoming-upload-form{display:grid;grid-template-columns:1fr 150px 1.2fr auto;gap:10px;align-items:end;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px;margin-bottom:14px}.incoming-upload-form .wide{grid-column:auto}.incoming-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px}.incoming-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px}.incoming-list h3{margin:0 0 8px;font-size:14px}.incoming-list a{display:block;text-decoration:none;color:#172033}.incoming-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;background:white;border:1px solid #e5e7eb;border-radius:8px;padding:7px;margin-bottom:6px}.incoming-order-row.active{border-color:#203864;box-shadow:0 0 0 2px rgba(32,56,100,.12)}.incoming-delete-form button{background:#fee2e2;color:#991b1b;border-color:#fecaca;border-radius:7px;padding:5px 7px;font-size:10px}.incoming-list b,.incoming-list small{display:block}.incoming-list b{font-size:12px}.incoming-list small{color:#64748b;margin-top:2px;font-size:10px;font-weight:800}.incoming-editor{min-width:0}.incoming-editor-head{display:grid;grid-template-columns:1fr 130px 1.1fr;gap:8px;margin-bottom:8px}.incoming-image-wrap{border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;padding:8px;margin-bottom:8px;text-align:center}.incoming-image-wrap img{max-width:100%;max-height:420px;border-radius:8px}.incoming-matrix td>input[type=number]{background:transparent}.incoming-actions{display:flex;gap:8px;align-items:center;margin-top:10px}.receive-button{background:#15803d}.danger-button{background:#b91c1c}.received-pill{display:inline-flex;border-radius:999px;background:#dcfce7;color:#166534;font-weight:900;padding:8px 12px}@media(max-width:900px){.incoming-upload-form,.incoming-layout,.incoming-editor-head{grid-template-columns:1fr}.incoming-upload-form .wide{grid-column:auto}}

/* Parent/contact manager */
.parent-panel{min-height:70vh}.parent-filters{flex-wrap:wrap}.parent-filters input{min-width:260px}.parent-cards{grid-template-columns:repeat(4,minmax(150px,1fr));margin:14px 0}.parent-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.parent-actions .button,.parent-actions button{font-size:13px}.parent-email-composer{display:grid;grid-template-columns:1fr 1.5fr;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px;margin:12px 0}.parent-email-composer h3,.parent-email-composer p{grid-column:1/-1;margin:0}.contact-table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:14px}.contact-table{min-width:980px}.contact-table td small{display:block;color:#64748b;margin-top:3px}.contact-table a{font-weight:900;color:#1f65d6;text-decoration:none;margin-right:8px}.contact-table a:hover{text-decoration:underline}.missing-email{background:#fff7ed}.email-parent-link{background:#e0f2fe;border-radius:999px;padding:5px 8px}@media(max-width:900px){.parent-cards{grid-template-columns:1fr 1fr}.parent-email-composer{grid-template-columns:1fr}}

/* Monthly parent report draft */
.monthly-email-draft{margin:18px 0;padding:18px;border:1px solid #d8e2ef;border-radius:16px;background:#f8fbff;box-shadow:0 8px 24px rgba(15,42,67,.06)}
.monthly-email-draft .draft-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.monthly-email-draft label{display:block;margin:10px 0;font-weight:700;color:#18324a}
.monthly-email-draft input,.monthly-email-draft textarea{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd7e5;border-radius:10px;padding:10px 12px;background:white;color:#102235;font:inherit}
.monthly-email-draft textarea{min-height:260px;line-height:1.45;white-space:pre-wrap}

/* Student subject + per-subject schedule controls */
.subject-class-box{grid-column:1/-1;border:1px solid #d8e2ef;border-radius:16px;padding:14px 16px;background:#f8fbff}
.subject-class-box h3{margin:0 0 10px;font-size:16px;color:#102235}
.subject-class-box h4{margin:0 0 8px;font-size:14px;color:#18324a}
.subject-checks{display:flex;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.subject-checks label,.day-checks label{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:800;background:white;border:1px solid #d9e2ef;border-radius:999px;padding:8px 11px}
.subject-schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.subject-schedule-grid section{background:white;border:1px solid #e3ebf5;border-radius:14px;padding:12px}
.day-checks{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.subject-schedule-grid select{width:100%;border:1px solid #ccd8e6;border-radius:10px;padding:11px;background:white;font:inherit}
@media(max-width:760px){.subject-schedule-grid{grid-template-columns:1fr}}


/* Left vertical app navigation */
body:not(.login){display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh;align-items:start}
body:not(.login) header{position:sticky;top:0;align-self:start;height:100vh;z-index:10;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:22px 14px;background:#0f172a;color:#fff;box-shadow:2px 0 18px #0002;overflow-y:auto}
body:not(.login) header>div:first-child{padding:4px 6px 12px;border-bottom:1px solid #334155}
body:not(.login) header strong{font-size:18px;letter-spacing:.01em}
body:not(.login) header span{font-size:12px;color:#cbd5e1}
body:not(.login) nav{display:flex;flex:0 0 auto;flex-direction:column;gap:6px;width:100%}
body:not(.login) nav a,body:not(.login) .logout{position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;border-radius:12px;padding:10px 26px 10px 12px;color:#cbd5e1;text-decoration:none;font-size:14px;font-weight:800;white-space:normal;line-height:1.2}
body:not(.login) nav a.active{background:#111c33;color:#f8fafc;box-shadow:inset 0 0 0 1px #334155}
body:not(.login) nav a:hover{background:#1e293b;color:#f8fafc}
body:not(.login) nav a.active::after{content:"";position:absolute;right:10px;top:50%;width:10px;height:10px;border-radius:999px;background:#facc15;border:2px solid #f59e0b;transform:translateY(-50%)}
body:not(.login) nav a.nav-child{width:calc(100% - 18px);margin-left:18px;padding:8px 10px;font-size:12px;color:#a9b6ca;border-left:2px solid #334155;border-radius:8px}
body:not(.login) nav a.nav-child::before{content:"↳";margin-right:6px;color:#64748b}
body:not(.login) .logout{margin-top:auto;border:1px solid #334155;background:#111c33;color:#e2e8f0}
body:not(.login) main{width:100%;max-width:none;margin:0;padding:24px;min-width:0}
@media(max-width:900px){body:not(.login){display:block}body:not(.login) header{position:sticky;height:auto;flex-direction:column;padding:12px 14px}body:not(.login) nav{flex-direction:row;overflow:auto;gap:8px;padding-bottom:2px}body:not(.login) nav a,body:not(.login) .logout{width:auto;white-space:nowrap;border-radius:999px}body:not(.login) .logout{margin-top:0}body:not(.login) main{padding:16px}}
@media print{body:not(.login){display:block}}
.alert.success{background:#dcfce7;color:#166534}.login-password-change{margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}.login-password-change summary{cursor:pointer;font-weight:900;color:#203864;margin-bottom:12px}.login-password-change[open] summary{margin-bottom:14px}

/* Student list add/edit modal */
.students-page{position:relative}.student-page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.student-page-head h2{margin:0}.student-page-head p{margin:4px 0 0}.student-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.student-head-stats{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.student-head-stats span{display:inline-flex;align-items:center;gap:5px;border:1px solid #dbe6f3;background:#f8fbff;border-radius:999px;padding:5px 9px;color:#334155}.student-head-stats b{font-size:14px;color:#0f172a}.student-head-stats small{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.button.primary,.add-student-open{background:#203864;color:white;border-color:#203864}.student-modal{display:none;position:fixed;inset:0;z-index:1000;padding:32px;align-items:center;justify-content:center}.student-modal.open{display:flex}.student-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}.student-modal-card{position:relative;z-index:1;width:min(980px,calc(100vw - 56px));max-height:calc(100vh - 64px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 24px 80px rgba(15,23,42,.35);padding:22px;border:1px solid #dbe6f3}.student-modal-head{position:sticky;top:-22px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e5e7eb;margin:-22px -22px 18px;padding:18px 22px}.student-modal-head h2{margin:0}.student-modal-close{display:grid;place-items:center;width:36px;height:36px;border-radius:999px;background:#f1f5f9;color:#0f172a;text-decoration:none;font-size:24px;font-weight:900}.student-modal-card form.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-modal-card form.grid button{justify-self:start}.students-page>.classnavi-list-shell{margin-top:8px}@media(max-width:760px){.student-page-head{flex-direction:column;align-items:stretch}.student-modal{padding:12px}.student-modal-card{width:100%;max-height:calc(100vh - 24px);border-radius:16px}.student-modal-card form.grid{grid-template-columns:1fr}}

/* ASMKUMON-style Add Student form */
.student-head-actions{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.student-pdf-upload-form{display:flex;align-items:center;gap:8px;border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:6px 9px;min-height:38px}
.student-pdf-upload-form label{font-size:11px;font-weight:900;color:#475569}
.student-pdf-upload-form input[type="file"]{display:block;max-width:210px;font-size:11px;margin-top:3px}
.student-pdf-upload-form button{height:32px;padding:0 12px;font-size:12px}
.student-head-actions .add-student-open{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px!important;font-size:13px!important;line-height:1!important;border-radius:8px!important}
.student-head-stats .muted-stat{background:#f1f5f9!important;color:#64748b!important}
.student-head-stats .muted-stat b{color:#475569!important}
.student-asm-form{display:grid;gap:18px}.asm-form-section{border:1px solid #dbe6f3;border-radius:18px;background:#f8fbff;padding:18px}.asm-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}.asm-section-title span{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#1f65d6;color:#fff;font-weight:900}.asm-section-title h3{margin:0;color:#0f172a}.asm-section-title p{margin:3px 0 0;color:#64748b;font-weight:700}.asm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.asm-form-grid.compact{gap:10px}.asm-form-grid .wide{grid-column:1/-1}.asm-form-grid label,.student-asm-form label{font-weight:900;color:#334155}.asm-form-grid input,.asm-form-grid select,.asm-form-grid textarea,.student-asm-form input,.student-asm-form select,.student-asm-form textarea{margin-top:6px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px}.asm-form-grid textarea{min-height:86px}.asm-enrollment-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.asm-subject-card{background:white;border:1px solid #dbe6f3;border-radius:16px;padding:16px}.asm-subject-card.math{border-top:5px solid #1f65d6}.asm-subject-card.reading{border-top:5px solid #c0392b}.asm-subject-check{display:flex!important;align-items:center;gap:8px;font-size:18px;margin-bottom:12px}.asm-subject-card h4{margin:14px 0 8px;color:#0f172a}.asm-subject-card .day-checks{background:#f8fafc;border-radius:12px;padding:10px}.asm-form-actions{position:sticky;bottom:-22px;display:flex;justify-content:flex-end;gap:10px;background:white;border-top:1px solid #e5e7eb;margin:4px -22px -22px;padding:16px 22px}.asm-form-actions button{background:#1f65d6}.student-modal-card{padding-bottom:22px}@media(max-width:760px){.asm-form-grid,.asm-enrollment-grid{grid-template-columns:1fr}.asm-form-actions{position:static;margin:0;padding:12px 0 0}}
.schedule-slots{display:grid;gap:8px;margin-top:8px}.schedule-slot{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;align-items:center}.schedule-slot select{margin-top:0!important}.asm-subject-card small{display:block;color:#64748b;font-weight:800;margin-top:8px}.student-asm-form input[type=date]{min-height:41px}
/* Keep modal form readable: no footer overlap while scrolling */
.asm-form-actions{position:static!important;margin:0!important;border-top:1px solid #e5e7eb;padding:18px 0 0!important;background:transparent!important}.student-modal-card{padding-bottom:22px!important}
.no-homework-checks{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.no-homework-checks label{display:inline-flex!important;align-items:center!important;gap:5px!important;background:#fff!important;border:1px solid #cbd5e1!important;border-radius:999px!important;padding:7px 10px!important;font-size:12px!important;font-weight:1000!important;color:#334155!important}.no-homework-checks input{margin:0!important}.no-hw-inline{display:inline-flex!important;margin-top:4px!important;border-radius:999px!important;background:#fef3c7!important;border:1px solid #facc15!important;color:#854d0e!important;padding:2px 6px!important;font-size:9px!important;font-weight:1000!important;line-height:12px!important}
.parent-two-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.parent-card{background:#fff;border:1px solid #dbe6f3;border-radius:16px;padding:16px}.parent-card h4{margin:0 0 12px;color:#0f172a}.address-grid{margin-top:16px}@media(max-width:760px){.parent-two-grid{grid-template-columns:1fr}}
/* ASMKUMON-inspired student directory table */
.asm-student-directory{min-width:1280px}.asm-student-directory .classnavi-row{grid-template-columns:90px minmax(180px,1.15fr) 78px 110px minmax(150px,1fr) minmax(150px,1fr) minmax(230px,1.1fr) 110px}.student-type-pill{display:inline-flex;border-radius:999px;padding:7px 10px;background:#e0f2fe;color:#075985;font-weight:900;font-size:12px}.subject-status.not-enrolled{border-left-color:#cbd5e1;background:#f8fafc;color:#94a3b8}.subject-status.enrolled b{color:#0f172a}.row-actions.stacked{flex-direction:column;align-items:flex-start}.row-actions.stacked a{margin-top:0}@media(max-width:900px){.asm-student-directory{min-width:1100px}.asm-student-directory .classnavi-row{grid-template-columns:80px 170px 64px 100px 170px 170px 210px 95px}}
.subject-type-stack{display:flex;flex-direction:column;gap:4px;align-items:flex-start}.subject-type-stack.combined{flex-direction:row;gap:4px;align-items:center;justify-content:center}.subject-type-stack span{display:flex;align-items:center;gap:4px}.subject-type-stack b{font-size:10px!important;color:#475569;line-height:1}.subject-type-stack i{font-style:normal}.subject-type-stack .student-type-pill{width:28px!important;min-width:28px!important;height:28px!important;padding:0!important}.subject-type-inline{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:950;line-height:1;border:1px solid #decaa8;background:#efe4cf;color:#111}.subject-type-inline.kc{background:#173f8a;color:#fff;border-color:#173f8a}

/* Compact ASMKUMON-style student directory */
.asm-student-directory{min-width:0!important;width:100%;font-size:12px}.asm-student-directory .classnavi-row{grid-template-columns:56px minmax(125px,1.05fr) 48px 76px minmax(150px,1fr) minmax(150px,1fr) minmax(170px,1.1fr) 72px!important}.asm-student-directory .classnavi-row>div{padding:8px 7px!important}.asm-student-directory .classnavi-row.head{font-size:10px}.asm-student-directory .classnavi-row b{font-size:12px}.asm-student-directory .classnavi-row small{font-size:10px;line-height:1.25;word-break:break-word}.asm-student-directory .grade-cell{font-size:12px!important;font-weight:900}.asm-student-directory .student-status{font-size:10px;padding:4px 7px}.asm-student-directory .subject-status{padding:7px!important}.asm-student-directory .subject-status a,.asm-student-directory .row-actions a{font-size:10px;padding:4px 7px}.asm-student-directory .row-actions.stacked{gap:5px}.student-type-pill{width:28px;height:28px;padding:0!important;display:grid!important;place-items:center;border-radius:999px;font-size:11px!important;line-height:1;font-weight:950}.student-type-pill{background:#efe4cf!important;color:#111!important;border:1px solid #decaa8}.student-type-pill.kc{background:#173f8a!important;color:#fff!important;border-color:#173f8a}.student-type-pill.p{background:#efe4cf!important;color:#111!important;border-color:#decaa8}@media(max-width:900px){.asm-student-directory{min-width:980px!important}.asm-student-directory .classnavi-row{grid-template-columns:52px 140px 46px 76px 145px 145px 170px 70px!important}}

/* Set List: give Score Entry / Upload more room and make score rows fit */
body:not(.login) main{padding:18px!important}
.cn-main{grid-template-columns:380px 6px minmax(0,1fr)!important;--set-top-offset:78px!important}
.cn-left{min-width:360px!important;padding:7px!important;font-size:11px!important}
.set-resize-handle{min-width:6px!important;width:6px!important}
.cn-left-head{height:var(--set-top-offset)!important;font-size:12px!important;line-height:13px!important}
.cn-left-head small{font-size:9px!important;line-height:10px!important}
.bulk-delete-tools{gap:3px!important;margin-top:5px!important}
.bulk-delete-tools button{font-size:9px!important;padding:4px 5px!important;white-space:nowrap!important}
.cn-score-group{grid-template-columns:44px minmax(0,1fr)!important;height:24px!important;min-height:24px!important;margin-bottom:1px!important;gap:3px!important}
.cn-date span,.cn-date small{font-size:8px!important;line-height:8px!important}.cn-date b{font-size:14px!important;line-height:13px!important}
.cn-score-cells{height:24px!important;gap:2px!important;overflow:hidden!important;padding-bottom:0!important}
.cn-score-cell{height:22px!important;min-width:24px!important;width:24px!important;grid-template-rows:10px 12px!important}
.cn-score-cell span{font-size:7px!important;line-height:10px!important}.cn-score-cell b{font-size:9px!important;line-height:12px!important}
.cn-grid-wrap{min-width:520px!important;padding:8px 10px!important}.cn-axis{font-size:10px!important}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),24px)!important}.cn-grid.cn-grid-blocks .cn-grid-cell{min-height:24px!important}
@media(max-width:1100px){.cn-main{grid-template-columns:340px 6px minmax(0,1fr)!important}.cn-left{min-width:320px!important}.cn-score-cell{min-width:22px!important;width:22px!important}.cn-grid-wrap{min-width:500px!important}}

/* Set List header/button clipping fix */
.cn-main{grid-template-columns:420px 6px minmax(0,1fr)!important;--set-top-offset:112px!important}
.cn-left{min-width:400px!important;overflow-x:hidden!important}
.cn-left-head{height:var(--set-top-offset)!important;overflow:visible!important;padding-right:2px!important}
.bulk-delete-tools{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;max-width:100%!important;align-items:center!important}
.bulk-delete-tools button{width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
.cn-score-group{grid-template-columns:42px minmax(0,1fr)!important}.cn-score-cell{min-width:23px!important;width:23px!important}
@media(max-width:1100px){.cn-main{grid-template-columns:380px 6px minmax(0,1fr)!important}.cn-left{min-width:360px!important}.bulk-delete-tools button{font-size:8px!important;padding:4px 3px!important}.cn-score-cell{min-width:21px!important;width:21px!important}}

/* Student Records score-entry tab */
.student-records-panel{min-height:70vh}.save-badge{background:#dcfce7;color:#166534;border:1px solid #86efac;border-radius:999px;padding:8px 12px;font-weight:900}.early-dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.early-date-filter{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;margin:0!important;white-space:nowrap}.early-date-filter label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;margin:0!important}.early-date-filter input[type=date]{height:40px;min-width:142px}.early-date-filter .button{height:40px;padding:0 12px}.record-filters{align-items:end;flex-wrap:wrap}.records-table-wrap{overflow:auto;border:1px solid #dbe6f3;border-radius:16px;background:white;margin-top:14px}.records-table{width:100%;min-width:1120px;border-collapse:collapse;font-size:12px}.records-table th{background:#eaf6fb;color:#334155;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em;padding:9px 8px;border-bottom:1px solid #dbe6f3}.records-table td{padding:8px;border-bottom:1px solid #edf2f7;vertical-align:middle}.records-table tr:hover{background:#f8fbff}.records-table td small{display:block;color:#64748b;font-size:10px;margin-top:2px}.records-table input[type=text],.records-table input:not([type]){width:100%;box-sizing:border-box;padding:7px 8px;border:1px solid #cbd5e1;border-radius:8px;font-size:12px}.records-table .score-mini{max-width:70px;font-weight:900;text-align:center}.records-table .time-mini{max-width:70px;text-align:center}.record-actions{display:flex;gap:10px;align-items:center;margin-top:14px}.empty-records{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:24px;text-align:center;margin-top:14px}.empty-records h3{margin-top:0}
.page-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,1fr));gap:4px;min-width:230px}.page-score-grid label{display:grid;grid-template-rows:auto 1fr;gap:2px;margin:0}.page-score-grid span{font-size:9px;color:#64748b;text-align:center;font-weight:900}.records-table .page-score-grid input{padding:5px 4px;text-align:center;font-size:11px;border-radius:6px}

/* Set List score entry: align left score/upload rows by page position, like Class Navi */
.cn-score-group.aligned{grid-template-columns:46px minmax(0,1fr)!important;height:26px!important;min-height:26px!important}.cn-score-track{display:grid!important;grid-template-columns:repeat(var(--cn-cols,40),minmax(7px,1fr))!important;gap:1px!important;overflow:hidden!important;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:2px!important;height:24px!important}.cn-score-block{display:grid;grid-template-rows:10px 10px;align-items:center;text-align:center;text-decoration:none;border-radius:4px;border:1px solid #cbd5e1;overflow:hidden;background:white;color:#111827;min-width:0}.cn-score-block span{font-size:7px!important;line-height:10px!important;background:#1e3a8a;color:white;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:clip}.cn-score-block b{font-size:8px!important;line-height:10px!important;background:white;color:#111827}.cn-score-block.review b{background:#facc15;color:#422006}.cn-score-block.weak b,.cn-score-block.correction b{background:#dc2626;color:white}.cn-score-block.mastered b{background:#fff;color:#111827}.cn-score-block.planned b,.cn-score-block.needs-prep b{background:#f8fafc;color:#64748b}

/* Restore individual page score cells while keeping page-position alignment */
.cn-score-pages{display:grid;grid-template-columns:repeat(var(--page-count,5),minmax(18px,1fr));grid-auto-flow:column;gap:1px;min-width:0}.cn-score-track .cn-score-cell{min-width:0!important;width:auto!important;height:22px!important;grid-template-rows:10px 12px!important;border-radius:2px!important}.cn-score-track .cn-score-cell span{font-size:7px!important}.cn-score-track .cn-score-cell b{font-size:8px!important}

/* Class Navi flow layout: plans continue horizontally and wrap only when pages restart */
.cn-grid-wrap{min-width:760px!important}.cn-grid.cn-grid-blocks{grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr))!important}.cn-axis{grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr))!important}.cn-range-strip{grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr))!important;grid-template-rows:repeat(var(--cn-rows,6),8px)!important;height:auto!important;max-height:none!important}.cn-score-track{grid-template-columns:repeat(40,minmax(7px,1fr))!important}.cn-score-pages{display:grid;grid-template-columns:repeat(5,minmax(14px,1fr))!important;gap:1px!important;min-width:0}.cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),28px)!important}.cn-grid.cn-grid-blocks .cn-grid-cell{min-height:28px!important}

/* Force Score Entry to Class Navi 2-half alignment (left half/right half repeated every 10 pages) */
.cn-left .cn-score-track{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;background:#f8fafc!important;border-color:#e2e8f0!important;padding:2px 5px!important}.cn-left .cn-score-pages{grid-template-columns:repeat(5,minmax(18px,1fr))!important}.cn-left .cn-score-group.aligned{grid-template-columns:44px minmax(0,1fr)!important;height:31px!important;min-height:31px!important}.cn-left .cn-score-track{height:29px!important}.cn-left .cn-score-track .cn-score-cell{height:25px!important;grid-template-rows:11px 14px!important}.cn-left .cn-score-track .cn-score-cell span{font-size:8px!important;line-height:11px!important}.cn-left .cn-score-track .cn-score-cell b{font-size:9px!important;line-height:14px!important}.cn-left .cn-date{align-self:center!important}

/* Level concept sections copied from ASMKUMON new concept definitions */
.cn-concept-strip{display:grid;grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr));gap:2px;margin:0 0 4px;height:24px;align-items:stretch}.cn-concept-segment{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;background:#dbeafe;border:1px solid #93c5fd;color:#1e3a8a;font-size:9px;font-weight:900;line-height:20px;padding:1px 6px;text-align:center;cursor:help}.cn-concept-segment:nth-child(2n){background:#ecfeff;border-color:#67e8f9;color:#155e75}.cn-concept-segment:nth-child(3n){background:#fef3c7;border-color:#fbbf24;color:#92400e}

/* Score entry cells: slightly taller for breathing room */
.cn-left .cn-score-group.aligned{height:37px!important;min-height:37px!important}.cn-left .cn-score-track{height:35px!important;padding-top:4px!important;padding-bottom:4px!important}.cn-left .cn-score-track .cn-score-cell{height:29px!important;grid-template-rows:12px 17px!important}.cn-left .cn-score-track .cn-score-cell span{line-height:12px!important}.cn-left .cn-score-track .cn-score-cell b{line-height:17px!important;padding-bottom:2px!important}
/* Right graph: time-based colors only — okay blue, overtime red, unsaved/planned pale */
.cn-right .cn-grid-cell.mastered,.cn-right .cn-range-segment.mastered{background:#1d4ed8!important;border-color:#1d4ed8!important}.cn-right .cn-grid-cell.weak,.cn-right .cn-range-segment.weak{background:#dc2626!important;border-color:#b91c1c!important}.cn-right .cn-grid-cell.review,.cn-right .cn-range-segment.review{background:#1d4ed8!important;border-color:#1d4ed8!important}.cn-right .cn-grid-cell.needs-prep,.cn-right .cn-range-segment.needs-prep,.cn-right .cn-grid-cell.planned,.cn-right .cn-range-segment.planned{background:#dbeafe!important;border-color:#bfdbfe!important}.cn-right .cn-grid-cell.correction,.cn-right .cn-range-segment.correction{background:#dc2626!important;border-color:#b91c1c!important}

/* Requested final color rules */
.cn-left .cn-score-cell.mastered b{background:#1d4ed8!important;color:#fff!important}.cn-left .cn-score-cell.weak b{background:#dc2626!important;color:#fff!important}.cn-left .cn-score-cell.empty b{background:#fff!important;color:#fff!important}.cn-left .cn-score-cell.empty span{background:#64748b!important}.cn-right .cn-grid-cell.planned,.cn-right .cn-range-segment.planned{background:#cbd5e1!important;border-color:#94a3b8!important}.cn-right .cn-grid-cell.needs-prep,.cn-right .cn-range-segment.needs-prep{background:#cbd5e1!important;border-color:#94a3b8!important}.cn-right .cn-grid-cell.mastered,.cn-right .cn-range-segment.mastered{background:#1d4ed8!important;border-color:#1d4ed8!important}.cn-right .cn-grid-cell.weak,.cn-right .cn-range-segment.weak{background:#dc2626!important;border-color:#b91c1c!important}.cn-right .cn-grid-cell.review,.cn-right .cn-range-segment.review{background:#1d4ed8!important;border-color:#1d4ed8!important}

/* Override: planned/no-score/no-time cells must be gray, not light blue */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.planned,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.needs-prep,
.cn-right .cn-range-strip .cn-range-segment.planned,
.cn-right .cn-range-strip .cn-range-segment.needs-prep{
  background:#b8c0cc!important;
  border-color:#7f8a99!important;
}
.cn-assignment-block.planned,.cn-assignment-block.needs-prep{background:#b8c0cc!important;border-color:#7f8a99!important}
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.planned:hover,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.needs-prep:hover{
  outline:2px solid #334155!important;
}

/* Move elapsed time from date column to upper-left of score area */
.cn-left .cn-score-track{position:relative!important;padding-left:32px!important}.cn-time-badge{position:absolute;left:5px;top:3px;min-width:24px;font-size:9px;line-height:11px;font-weight:900;color:#334155;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:999px;text-align:center;padding:1px 3px}.cn-time-badge:empty{display:none}.cn-left .cn-date small{display:none!important}.cn-left .cn-date{padding-top:2px!important}

/* Hide past-date lock icon in Set List; it was only a caution marker */
.cn-grid-cell.past-locked:after{content:none!important;display:none!important}.cn-grid-cell.past-locked,.cn-range-segment.past-locked{box-shadow:none!important;cursor:pointer!important}
/* Give the time badge breathing room and mark overtime in red */
.cn-left .cn-score-track{padding-left:64px!important;margin-left:6px!important}.cn-time-badge{left:7px!important;top:5px!important;min-width:48px!important;background:#f8fafc!important;border-color:#cbd5e1!important;color:#334155!important}.cn-time-badge.overtime{color:#dc2626!important;border-color:#fecaca!important;background:#fff1f2!important}

/* ASMKUMON-like vertical Student Records history */
.asm-record-list{display:grid;gap:10px;margin-top:14px}.asm-record-day{display:grid;grid-template-columns:74px 1fr;gap:10px;align-items:start}.asm-record-date{background:#1f2937;color:#fff;border-radius:12px;text-align:center;padding:8px 6px;position:sticky;top:86px}.asm-record-date b{display:block;font-size:22px;line-height:24px}.asm-record-date span{font-size:11px;color:#cbd5e1;font-weight:900}.asm-record-items{display:grid;gap:8px}.asm-record-card{display:grid;grid-template-columns:minmax(150px,.9fr) 150px minmax(260px,1.5fr) minmax(120px,.8fr);gap:10px;align-items:center;background:#fff;border:1px solid #dbe6f3;border-left:5px solid #cbd5e1;border-radius:14px;padding:10px}.asm-record-card.done{border-left-color:#1d4ed8}.asm-record-card.planned{background:#f8fafc}.asm-record-main b{display:block;margin-top:5px}.asm-record-main small{display:block;color:#64748b;font-size:11px;margin-top:2px}.asm-record-score{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:end}.asm-record-score label{font-size:10px}.asm-record-score input{padding:6px 7px;text-align:center}.done-check{grid-column:1/-1;display:flex!important;flex-direction:row!important;align-items:center;gap:5px!important}.asm-record-note{width:100%;padding:7px 8px}.record-page-grid{min-width:0;grid-template-columns:repeat(auto-fit,minmax(38px,1fr))}@media(max-width:1000px){.asm-record-card{grid-template-columns:1fr}.asm-record-day{grid-template-columns:58px 1fr}.asm-record-date{position:static}}

/* Compact Student Records + Class Navi left/right half alignment */
.asm-record-list{gap:5px!important;margin-top:8px!important}.asm-record-day{grid-template-columns:52px 1fr!important;gap:6px!important}.asm-record-date{border-radius:8px!important;padding:5px 4px!important}.asm-record-date b{font-size:16px!important;line-height:17px!important}.asm-record-date span{font-size:9px!important}.asm-record-items{gap:4px!important}.asm-record-card{grid-template-columns:130px 105px minmax(250px,1fr) 110px!important;gap:6px!important;border-radius:9px!important;padding:6px 7px!important;min-height:42px!important}.asm-record-main b{font-size:12px!important;margin-top:3px!important}.asm-record-main small{font-size:9px!important;line-height:10px!important}.asm-record-main .pill{font-size:9px!important;padding:2px 6px!important}.asm-record-score{grid-template-columns:48px 48px!important;gap:4px!important}.asm-record-score label{font-size:8px!important;gap:2px!important}.asm-record-score input{padding:4px 4px!important;font-size:11px!important}.done-check{display:none!important}.asm-record-note{padding:5px 6px!important;font-size:11px!important}.record-score-track{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:3px;min-height:32px}.record-page-grid{display:grid!important;grid-template-columns:repeat(5,minmax(24px,1fr))!important;gap:2px!important;min-width:0!important}.record-page-grid label{gap:1px!important;margin:0!important}.record-page-grid span{font-size:8px!important;line-height:9px!important}.record-page-grid input{padding:3px 2px!important;height:19px!important;font-size:10px!important;text-align:center!important;border-radius:5px!important}
@media(max-width:1000px){.asm-record-card{grid-template-columns:1fr!important}.record-score-track{grid-template-columns:1fr 1fr!important}}

/* Student Records ASMKUMON-like score colors and time ratio */
.asm-record-score.compact-time{grid-template-columns:50px 54px!important;align-items:center!important}.asm-record-score.compact-time label{display:none!important}.asm-record-score.compact-time .time-ratio{font-weight:900;font-size:12px;color:#334155;text-align:center;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:999px;padding:4px 5px}.asm-record-score.compact-time .time-ratio.overtime{color:#dc2626;background:#fff1f2;border-color:#fecaca}.record-page-grid label.score-ok input{background:#dcfce7!important;border-color:#86efac!important;color:#14532d!important;font-weight:900}.record-page-grid label.score-low input{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important;font-weight:900}.record-page-grid label.score-blank input{background:#fff!important;color:#111827!important}.records-table .score-mini{display:none!important}
.record-page-grid label.score-circle input{border:1px solid #64748b!important;border-radius:999px!important;background:#fff!important;color:#111827!important;width:22px!important;height:22px!important;line-height:20px!important;padding:0!important;justify-self:center!important;font-weight:1000!important}

/* Student Records tighter ASMKUMON layout: H/C, updated-by, time at right of score boxes */
.asm-record-card{grid-template-columns:128px minmax(260px,1fr) 66px 96px!important;gap:4px!important;padding:5px 6px!important}.asm-record-main{order:1}.record-score-track{order:2;gap:3px!important;padding:2px!important;min-height:28px!important}.asm-record-score.compact-time{order:3!important;display:flex!important;align-items:center!important;justify-content:center!important}.asm-record-note{order:4}.record-page-grid{gap:1px!important;grid-template-columns:repeat(5,minmax(21px,1fr))!important}.record-page-grid input{height:17px!important;padding:2px 1px!important;font-size:10px!important}.record-page-grid span{font-size:7px!important;line-height:8px!important}.asm-record-score.compact-time .time-ratio{font-size:11px!important;padding:3px 5px!important;white-space:nowrap}.session-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;border-radius:999px;min-width:20px;height:18px;padding:0 6px;font-size:10px;font-weight:1000;background:#e5e7eb;color:#111827}.session-badge.c{background:#dbeafe;color:#1e40af}.session-badge.h{background:#f1f5f9;color:#334155}.session-badge.t{background:#fef3c7;color:#92400e}.asm-record-main small{font-size:8px!important;color:#64748b!important;line-height:9px!important}.asm-record-items{gap:3px!important}.asm-record-day{gap:5px!important}.asm-record-list{gap:4px!important}

/* Make Student Records page score cells denser */
.asm-record-card{grid-template-columns:120px 188px 60px minmax(80px,.8fr)!important}.record-score-track{max-width:188px!important;width:188px!important;gap:2px!important;padding:1px!important;border-radius:6px!important}.record-page-grid{grid-template-columns:repeat(5,18px)!important;gap:0!important;justify-content:start!important}.record-page-grid label{width:18px!important}.record-page-grid span{font-size:6px!important;line-height:7px!important;height:7px!important}.record-page-grid input{width:18px!important;height:16px!important;padding:0!important;border-radius:2px!important;font-size:9px!important;border-width:1px!important}.asm-record-score.compact-time .time-ratio{font-size:10px!important;padding:2px 4px!important}.asm-record-card{gap:3px!important}.asm-record-note{font-size:10px!important;padding:4px!important}

/* Enlarge Student Records score boxes while keeping tight spacing */
.asm-record-card{grid-template-columns:120px 230px 64px minmax(80px,.8fr)!important;min-height:48px!important}.record-score-track{max-width:230px!important;width:230px!important;min-height:36px!important;padding:3px!important}.record-page-grid{grid-template-columns:repeat(5,24px)!important;gap:1px!important}.record-page-grid label{width:24px!important}.record-page-grid span{font-size:8px!important;line-height:9px!important;height:9px!important}.record-page-grid input{width:24px!important;height:22px!important;font-size:13px!important;font-weight:900!important;border-radius:3px!important}.asm-record-score.compact-time .time-ratio{font-size:11px!important;padding:3px 5px!important}

/* Match gray score track to enlarged score inputs */
.record-score-track{height:40px!important;min-height:40px!important;align-items:center!important;box-sizing:border-box!important;overflow:visible!important}.record-page-grid{align-items:center!important}.record-page-grid label{height:32px!important;display:grid!important;grid-template-rows:9px 22px!important;align-items:center!important}.record-page-grid input{box-sizing:border-box!important}.asm-record-card{align-items:center!important;overflow:visible!important}

/* Fix Student Records score half-cell alignment + editable time */
.asm-record-card{grid-template-columns:120px 280px 112px minmax(80px,.8fr)!important}.record-score-track{width:280px!important;max-width:280px!important;grid-template-columns:132px 132px!important;gap:8px!important;padding:4px!important}.record-page-grid{grid-template-columns:repeat(5,25px)!important;width:129px!important;max-width:129px!important;gap:1px!important;justify-content:start!important}.record-page-grid label{width:25px!important}.record-page-grid input{width:25px!important}.asm-record-score.compact-time{display:grid!important;grid-template-columns:48px 54px!important;gap:5px!important;justify-content:start!important}.asm-record-score.compact-time label{display:flex!important;flex-direction:column!important;gap:1px!important;font-size:8px!important;color:#64748b!important}.asm-record-score.compact-time label input{display:block!important;width:48px!important;height:24px!important;padding:2px 4px!important;font-size:12px!important;text-align:center!important}.asm-record-score.compact-time .time-ratio{align-self:end!important;margin-bottom:1px!important}.done-check{display:none!important}

/* Student Records: hide Done check and remove extra time ratio box */
.asm-record-score.compact-time .done-check,.done-check{display:none!important}.asm-record-score.compact-time .time-ratio{display:none!important}.asm-record-score.compact-time{grid-template-columns:54px!important;width:54px!important}.asm-record-card{grid-template-columns:120px 280px 58px minmax(80px,.8fr)!important}.asm-record-score.compact-time label{display:flex!important}.asm-record-score.compact-time label input{width:54px!important}

/* Student Records filter additions */
.record-filters label input[name="level_filter"]{width:72px;text-transform:uppercase}.record-filters label select[name="sort"]{min-width:112px}.record-filters{gap:6px!important}.record-filters label{font-size:11px!important}

.record-filters button{display:none!important}.record-filters .button{padding:8px 10px!important;font-size:12px!important}.record-filters input[type="date"]{display:none!important}

.asm-record-date.page-group{background:#e0f2fe!important;color:#075985!important}.asm-record-date.page-group b{font-size:13px!important;line-height:15px!important;word-break:break-word}.asm-record-date.page-group span{color:#0e7490!important}

/* Page sort still shows dates; 10-page records display in one horizontal row */
.record-score-track.wide-pages{grid-template-columns:1fr!important;width:280px!important;max-width:280px!important}.record-score-track.wide-pages .record-page-grid{grid-column:1 / -1!important}.record-page-grid.pages-10{grid-template-columns:repeat(10,25px)!important;width:259px!important;max-width:259px!important}.record-page-grid.pages-9{grid-template-columns:repeat(9,25px)!important;width:233px!important}.record-page-grid.pages-8{grid-template-columns:repeat(8,25px)!important;width:207px!important}.record-page-grid.pages-7{grid-template-columns:repeat(7,25px)!important;width:181px!important}.record-page-grid.pages-6{grid-template-columns:repeat(6,25px)!important;width:155px!important}.asm-record-date.page-group{background:#1f2937!important;color:#fff!important}.asm-record-date.page-group span{color:#cbd5e1!important}

/* Student Records score boxes: hide page-number header, show score only */
.record-page-grid span{display:none!important}.record-page-grid label{grid-template-rows:1fr!important;height:24px!important}.record-page-grid input{height:24px!important;font-size:14px!important;line-height:24px!important}.record-score-track{height:34px!important;min-height:34px!important}.record-page-grid.pages-10{width:259px!important}.record-page-grid.pages-5,.record-page-grid{align-items:center!important}

/* Restore page numbers above score boxes */
.record-page-grid span{display:block!important;font-size:8px!important;line-height:9px!important;height:9px!important;text-align:center!important;color:#64748b!important;font-weight:900!important}.record-page-grid label{display:grid!important;grid-template-rows:9px 22px!important;height:32px!important}.record-page-grid input{height:22px!important;font-size:13px!important;line-height:20px!important}.record-score-track{height:40px!important;min-height:40px!important}

/* Make page numbers clearly secondary, scores primary */
.record-page-grid span{color:#94a3b8!important;font-size:7px!important;font-weight:700!important;background:transparent!important}.record-page-grid input{font-size:14px!important;font-weight:1000!important;color:#111827!important}.record-page-grid label.score-ok input{color:#14532d!important}.record-page-grid label.score-low input{color:#991b1b!important}

/* Ensure dash scores are visible like ASMKUMON perfect marks */
.record-page-grid input[value="-"]{color:#14532d!important;background:#dcfce7!important;border-color:#86efac!important;font-size:16px!important;font-weight:1000!important;opacity:1!important;text-indent:0!important;-webkit-text-fill-color:#14532d!important}.record-page-grid input{opacity:1!important;-webkit-text-fill-color:currentColor!important}

/* Set List embedded Admin Progress-style month calendar */
.set-month-calendar{margin-top:12px;background:#fff;border:1px solid #dbe6f3;border-radius:14px;padding:10px;box-shadow:0 8px 20px #1018280a}.set-month-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.set-month-head b{display:block;font-size:14px;color:#0f172a}.set-month-head span{display:block;font-size:11px;color:#64748b;font-weight:800}.set-month-head a{font-size:11px;font-weight:900;color:#1d4ed8;text-decoration:none}.set-weekdays,.set-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.set-weekdays div{text-align:center;font-size:10px;font-weight:1000;color:#475569;background:#f1f5f9;border-radius:6px;padding:4px}.set-calendar-day{min-height:86px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:4px;overflow:hidden}.set-calendar-day.outside-month{opacity:.35;background:#f8fafc}.set-calendar-day h4{margin:0 0 3px;display:flex;justify-content:space-between;gap:2px;font-size:12px;color:#0f172a}.set-calendar-day h4 small{font-size:8px;color:#64748b;font-weight:900}.set-calendar-plan{position:relative;display:grid;gap:1px;margin-top:2px;border-radius:5px;padding:3px 4px;background:#cbd5e1;border-left:3px solid #94a3b8;color:#0f172a;font-size:9px;font-weight:900;line-height:1.1}.set-calendar-plan.done{background:#dbeafe;border-left-color:#1d4ed8}.set-calendar-plan.ok{background:#dbeafe;border-left-color:#1d4ed8}.set-calendar-plan.over{background:#fee2e2;border-left-color:#dc2626}.set-calendar-plan span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.set-calendar-plan small{font-size:8px;color:#334155}.set-calendar-plan em{position:absolute;right:3px;top:2px;font-style:normal;font-size:7px;background:#fff;border-radius:999px;padding:0 3px;color:#334155}.set-calendar-plan i{font-style:normal;font-size:8px;color:#92400e}@media(max-width:1100px){.set-calendar-day{min-height:70px}.set-calendar-plan{font-size:8px}}

/* Bulk delete drag selection feedback */
body.delete-mode .cn-inline-score,body.delete-mode .cn-grid-cell.cn-existing,body.delete-mode .cn-range-segment[data-id],body.delete-mode .set-calendar-plan[data-id],body.delete-mode .rb-page-chip[data-id]{cursor:crosshair!important;user-select:none}body.delete-mode .set-calendar-plan[data-id]:hover,body.delete-mode .rb-page-chip[data-id]:hover{outline:2px dashed #dc2626;outline-offset:1px}.bulk-delete-target{outline:3px solid #dc2626!important;box-shadow:0 0 0 3px #fee2e2!important;filter:saturate(1.2)}.cn-delete-mode.active{background:#dc2626!important;color:#fff!important}.bulk-delete-tools:after{content:'Delete Mode: drag plans, then Delete Selected';display:block;font-size:9px;color:#64748b;font-weight:800;margin-top:2px}

.bulk-delete-tools:after{content:'Delete Mode: click to select, Shift-click to select a range, then Delete Selected'!important}

/* Clean Set List right graph area per latest direction */
.cn-save-row{display:none!important}.cn-level-caption{display:none!important}.cn-concept-strip{display:none!important}.cn-axis{border-bottom:0!important}.cn-grid.cn-grid-blocks{border-top:0!important}.cn-grid-wrap{padding-top:8px!important}

/* Restore top Set List context/concept line; keep bottom action row hidden */
.cn-level-caption{display:flex!important}.cn-concept-strip{display:grid!important}.cn-axis{border-bottom:2px solid #111827!important}.cn-save-row{display:none!important}

/* Set List top cleanup: keep level + concepts, hide helper sentence and mini status strip */
.cn-level-caption span{display:none!important}.cn-range-strip{display:none!important}.cn-level-caption{height:22px!important;margin:0 0 4px!important}

/* Concept strip: square blocks aligned tight above page numbers */
.cn-concept-strip{height:18px!important;margin:0!important;gap:0!important;align-items:stretch!important}.cn-concept-segment{border-radius:0!important;line-height:15px!important;padding:1px 3px!important;font-size:8px!important;border-width:1px!important;text-align:center!important}.cn-axis{margin-top:0!important;padding-top:0!important}.cn-level-caption{margin-bottom:0!important}

/* Tighten concept strip directly to page number axis */
.cn-concept-strip{margin-bottom:-2px!important}.cn-axis{margin-top:-2px!important;height:23px!important;align-items:start!important}.cn-grid-wrap{padding-top:4px!important}

/* Page axis: visible 10-page box outlines to clarify concept boundaries */
.cn-axis.cn-axis-boxes{height:24px!important;gap:0!important;border-bottom:0!important;align-items:stretch!important;margin-top:-1px!important}.cn-axis-box{display:flex!important;align-items:center!important;justify-content:center!important;gap:1px!important;border:1px solid #64748b!important;border-left-width:0!important;background:#f8fafc!important;color:#111827!important;font-size:10px!important;font-weight:1000!important;line-height:1!important;box-sizing:border-box!important}.cn-axis-box:first-child{border-left-width:1px!important}.cn-axis-box b{font-size:11px!important}.cn-axis-box small{font-size:8px!important;color:#64748b!important;font-weight:900!important}.cn-concept-strip{margin-bottom:0!important}.cn-concept-segment{border-color:#475569!important;border-bottom:0!important;box-sizing:border-box!important}.cn-grid.cn-grid-blocks{border-top:0!important}

/* Page axis: show start page only, not end page */
.cn-axis-box small{display:none!important}.cn-axis-box b{font-size:11px!important}

/* Set List: match Student Records soft score colors */
.cn-left .cn-score-cell.mastered b,
.cn-left .cn-score-cell.review b,
.cn-score-block.mastered b,
.cn-score-block.review b,
.cn-right .cn-grid-cell.mastered,
.cn-right .cn-grid-cell.review,
.cn-right .cn-range-segment.mastered,
.cn-right .cn-range-segment.review,
.set-calendar-plan.done,
.set-calendar-plan.ok{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}
.cn-left .cn-score-cell.weak b,
.cn-left .cn-score-cell.correction b,
.cn-score-block.weak b,
.cn-score-block.correction b,
.cn-right .cn-grid-cell.weak,
.cn-right .cn-grid-cell.correction,
.cn-right .cn-range-segment.weak,
.cn-right .cn-range-segment.correction,
.set-calendar-plan.over{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#991b1b!important;
}
/* Calendar stays neutral for planned, completed, or time-only work until a score exists. */
.set-calendar-plan.done.planned{
  background:#cbd5e1!important;
  border-color:#94a3b8!important;
  color:#0f172a!important;
}
.cn-time-badge.overtime{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#991b1b!important;
}

/* Final Set List right graph colors: use the same soft pink/green as Student Records */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.mastered,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.review,
.cn-right .cn-grid-cell.cn-existing.mastered,
.cn-right .cn-grid-cell.cn-existing.review,
.cn-right .cn-range-strip .cn-range-segment.mastered,
.cn-right .cn-range-strip .cn-range-segment.review,
.cn-right .cn-range-bar .cn-range-segment.mastered,
.cn-right .cn-range-bar .cn-range-segment.review{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.weak,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.correction,
.cn-right .cn-grid-cell.cn-existing.weak,
.cn-right .cn-grid-cell.cn-existing.correction,
.cn-right .cn-range-strip .cn-range-segment.weak,
.cn-right .cn-range-strip .cn-range-segment.correction,
.cn-right .cn-range-bar .cn-range-segment.weak,
.cn-right .cn-range-bar .cn-range-segment.correction{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#991b1b!important;
}

.checkin-screen{max-width:980px;margin:0 auto;background:linear-gradient(180deg,#ffffff,#f8fbff)!important}.checkin-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#203864,#2563eb);color:#fff}.checkin-hero h2{font-size:38px;margin:0 0 6px}.checkin-hero p{margin:0;color:#e0edff;font-weight:900;font-size:18px}.checkin-hero .button{background:#fff;color:#203864}.checkin-instructions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.checkin-instructions div{display:grid;grid-template-columns:42px 1fr;gap:2px 10px;align-items:center;background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:14px 16px;box-shadow:0 8px 20px #1018280a}.checkin-instructions b{grid-row:1 / span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:999px;background:#dbeafe;color:#1e40af;font-size:20px}.checkin-instructions span{color:#64748b;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.04em}.checkin-instructions strong{font-size:18px;color:#0f172a}.checkin-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:18px;margin-bottom:18px}.checkin-input{font-size:30px;font-weight:900;padding:18px;border-radius:16px;border:2px solid #203864;letter-spacing:.02em}.checkin-form button{height:66px;font-size:18px;padding:0 24px}.checkin-result{border-radius:24px;padding:24px;margin-bottom:18px;display:grid;grid-template-columns:auto 1fr;gap:5px 16px;align-items:center;border:2px solid;box-shadow:0 16px 38px #10182814}.checkin-success-icon{grid-row:1 / span 3;display:grid;place-items:center;width:68px;height:68px;border-radius:999px;background:#dcfce7;color:#166534;font-size:18px;font-weight:1000}.checkin-result.checked_out .checkin-success-icon{background:#dbeafe;color:#1e40af}.checkin-result b{font-size:38px;line-height:1.05}.checkin-result span{font-size:24px;font-weight:1000}.checkin-result small{color:inherit;opacity:.78;font-weight:900}.checkin-result.ok{background:#ecfdf3;border-color:#22c55e;color:#14532d}.checkin-result.checked_out{background:#eff6ff;border-color:#60a5fa;color:#1e3a8a}.checkin-result.already{background:#eff6ff;border-color:#60a5fa;color:#1e3a8a}.checkin-result.bad{background:#fee2e2;border-color:#f87171;color:#991b1b;grid-template-columns:1fr}.checkin-recent h3{margin:0 0 10px}.checkin-list{display:grid;gap:8px}.checkin-list>div{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border:1px solid #e5e7eb;background:white;border-radius:12px;padding:10px 12px}.checkin-list span,.checkin-list small{font-weight:900;color:#475467}@media(max-width:720px){.checkin-hero,.checkin-form{grid-template-columns:1fr;display:grid}.checkin-instructions{grid-template-columns:1fr}.checkin-form button{width:100%}.checkin-input{font-size:22px}.checkin-result{grid-template-columns:1fr;text-align:center}.checkin-success-icon{grid-row:auto;margin:0 auto}.checkin-list>div{grid-template-columns:1fr}}
.checkin-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.attendance-manual-form{grid-template-columns:minmax(220px,1fr) 120px 190px minmax(180px,1fr) 74px;align-items:end}.attendance-manual-form label[hidden]{display:none!important}.attendance-manual-form input,.attendance-manual-form select,.attendance-manual-form button,.attendance-bulk-form input,.attendance-bulk-form button{height:38px}.attendance-manual-form button,.attendance-bulk-form button{padding:0 12px;font-size:12px;white-space:nowrap}.student-attendance-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 10px}.student-attendance-tabs a{display:inline-flex;align-items:center;gap:7px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;text-decoration:none;font-weight:900;font-size:12px;padding:8px 12px}.student-attendance-tabs a.active{background:#0f172a;color:#fff;border-color:#0f172a}.student-attendance-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#facc15;color:#422006;font-size:11px}.attendance-panel .today-cards{grid-template-columns:repeat(4,minmax(110px,1fr));gap:8px;margin:6px 0 12px}.attendance-panel .today-cards .card{padding:10px 12px;border-radius:10px;box-shadow:none}.attendance-panel .today-cards .card b{font-size:18px}.attendance-panel .today-cards .card span{font-size:11px}.attendance-tools-row{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:-2px 0 12px}.attendance-search-row{display:flex;flex:1}.attendance-search-row label{width:min(360px,100%)}.attendance-search-row input{height:38px}.attendance-bulk-form{display:flex;gap:8px;align-items:end;justify-content:flex-end;margin:0}.attendance-bulk-form label{max-width:240px}.attendance-table-wrap{overflow:auto;border:1px solid #dbe6f3;border-radius:14px;background:#fff}.attendance-log-table{width:100%;border-collapse:collapse}.attendance-log-table th,.attendance-log-table td{border-bottom:1px solid #e5e7eb;padding:8px 10px;text-align:left;font-size:13px;vertical-align:middle}.attendance-log-table th{background:#f8fafc;color:#475467;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.attendance-log-table tr:last-child td{border-bottom:0}.attendance-log-table form{margin:0}.attendance-log-table input{height:34px;border-radius:8px;padding:0 8px;font-size:12px}.attendance-log-table input[type="datetime-local"]{width:168px}.attendance-log-table input[type="time"]{width:108px}.attendance-log-table .edit-mini,.attendance-log-table .danger-mini{height:34px;padding:0 10px;font-size:12px}.attendance-row-actions{display:flex;gap:6px;align-items:center}.attendance-status{display:inline-flex;align-items:center;height:26px;border-radius:999px;padding:0 9px;font-size:11px;font-weight:900;background:#e0f2fe;color:#075985;white-space:nowrap}.attendance-status.complete{background:#dcfce7;color:#166534}.attendance-status.open{background:#ffedd5;color:#9a3412}.attendance-status.missing-check-in{background:#fee2e2;color:#991b1b}@media(max-width:1000px){.attendance-manual-form{grid-template-columns:1fr 1fr}.attendance-manual-form button{grid-column:auto}.attendance-tools-row{align-items:flex-start;flex-direction:column}.attendance-bulk-form{justify-content:flex-start;flex-wrap:wrap}}@media(max-width:720px){.checkin-hero-actions{justify-content:flex-start}.attendance-manual-form{grid-template-columns:1fr}.attendance-table-wrap{overflow:auto}}

/* Final Set List tuning: right graph a little stronger, left time only pink when overtime */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.mastered,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.review,
.cn-right .cn-grid-cell.cn-existing.mastered,
.cn-right .cn-grid-cell.cn-existing.review,
.cn-right .cn-range-strip .cn-range-segment.mastered,
.cn-right .cn-range-strip .cn-range-segment.review,
.cn-right .cn-range-bar .cn-range-segment.mastered,
.cn-right .cn-range-bar .cn-range-segment.review{
  background:#bbf7d0!important;
  border-color:#4ade80!important;
  color:#14532d!important;
}
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.weak,
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.correction,
.cn-right .cn-grid-cell.cn-existing.weak,
.cn-right .cn-grid-cell.cn-existing.correction,
.cn-right .cn-range-strip .cn-range-segment.weak,
.cn-right .cn-range-strip .cn-range-segment.correction,
.cn-right .cn-range-bar .cn-range-segment.weak,
.cn-right .cn-range-bar .cn-range-segment.correction{
  background:#fecaca!important;
  border-color:#f87171!important;
  color:#7f1d1d!important;
}
.cn-left .cn-time-badge{
  background:#fff!important;
  border-color:#cbd5e1!important;
  color:#111827!important;
}
.cn-left .cn-session-badge{
  position:absolute!important;
  left:7px!important;
  top:5px!important;
  display:grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  border-radius:999px!important;
  background:#dbeafe!important;
  border:1px solid #93c5fd!important;
  color:#1e40af!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:1000!important;
}
.cn-left .cn-session-badge + .cn-time-badge{
  left:28px!important;
  min-width:40px!important;
}
.cn-left .cn-time-badge.overtime{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#991b1b!important;
}

/* Set List score rows: 10-page assignments should span the full 10-page row, not squeeze into 5-page space */
.cn-left .cn-score-pages{
  grid-template-columns:repeat(var(--page-count,5),minmax(14px,1fr))!important;
}
.cn-left .cn-score-pages[style*="span 2"] .cn-score-cell{
  min-width:0!important;
}

/* Calendar/score/graph linked highlight */
.linked-plan-highlight{
  outline:3px solid #2563eb!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.18)!important;
  filter:saturate(1.25) brightness(1.04)!important;
  z-index:20!important;
}
.cn-score-group.linked-plan-highlight{
  background:#eff6ff!important;
}
.set-calendar-day.linked-plan-highlight,
.set-recordbook tr.linked-plan-highlight td{
  background:#eff6ff!important;
  outline:2px solid #2563eb!important;
  outline-offset:-2px!important;
}

/* Final Student Records layout override: keep calendar visible on the right. */
.student-records-workspace{
  grid-template-columns:700px 420px!important;
  gap:12px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{
  width:700px!important;
  max-width:700px!important;
}
.records-side-calendar{
  width:420px!important;
  max-width:420px!important;
}
.records-side-calendar .set-calendar-day{
  min-height:76px!important;
}
.records-side-calendar .set-calendar-plan{
  padding:2px 3px!important;
  font-size:8px!important;
  line-height:1.05!important;
}
.records-side-calendar .set-calendar-plan span{
  font-size:8.5px!important;
  line-height:1.05!important;
}
.records-side-calendar .records-cal-head{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 24px!important;
  align-items:start!important;
  gap:4px!important;
}
.records-side-calendar .records-cal-head > a.records-cal-arrow:first-child{
  grid-column:1!important;
  grid-row:1!important;
}
.records-side-calendar .records-cal-head > div:not(.record-calendar-actions){
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
}
.records-side-calendar .records-cal-head > a.records-cal-arrow:last-child{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:start!important;
}
.records-side-calendar .record-calendar-actions{
  grid-column:1 / -1!important;
  grid-row:2!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  gap:4px!important;
  overflow:visible!important;
}
.records-side-calendar .record-calendar-actions button{
  white-space:nowrap!important;
  padding:5px 6px!important;
  border-radius:7px!important;
  font-size:9px!important;
  line-height:1!important;
}
@media(max-width:1150px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
  .student-records-workspace .asm-record-card,.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-note,.student-records-workspace .assistant-picker{grid-column:auto!important;width:100%!important;max-width:none!important}
}

/* Student Records: final score-entry card layout based on the wide ASMKUMON entry mockup. */
.student-records-workspace{
  grid-template-columns:minmax(760px,860px) 420px!important;
  gap:14px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{width:100%!important;max-width:860px!important}
.student-records-workspace .asm-record-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:150px minmax(300px,1fr) 74px 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
  gap:7px 10px!important;
  align-items:start!important;
  min-height:112px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid #dbe6f3!important;
  background:#fbfdff!important;
  box-sizing:border-box!important;
}
.student-records-workspace .asm-record-main{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  max-width:none!important;
  align-self:stretch!important;
  display:block!important;
  padding-right:4px!important;
}
.student-records-workspace .asm-record-main .pill{
  font-size:17px!important;
  line-height:22px!important;
  padding:3px 12px!important;
  border-radius:999px!important;
}
.student-records-workspace .record-switch-subject{
  width:auto!important;
  height:22px!important;
  min-height:22px!important;
  margin:0 0 0 6px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:10px!important;
  vertical-align:middle!important;
}
.student-records-workspace .record-level-picker{
  display:block!important;
  margin-top:8px!important;
  font-size:13px!important;
  line-height:16px!important;
  color:#64748b!important;
}
.student-records-workspace .record-level-picker select{
  display:block!important;
  width:72px!important;
  height:42px!important;
  margin-top:4px!important;
  padding:4px 8px!important;
  border-radius:8px!important;
  font-size:22px!important;
  font-weight:1000!important;
  text-align:center!important;
}
.student-records-workspace .record-level-picker span{
  display:block!important;
  margin-top:6px!important;
  font-size:22px!important;
  line-height:24px!important;
  font-weight:1000!important;
  color:#0f172a!important;
  white-space:nowrap!important;
}
.student-records-workspace .record-type-picker{
  margin-top:6px!important;
  max-width:118px!important;
  font-size:8px!important;
}
.student-records-workspace .record-type-picker select{
  height:20px!important;
  font-size:8px!important;
  padding:1px 4px!important;
}
.student-records-workspace .record-student-name{
  display:inline-flex!important;
  margin-top:7px!important;
  max-width:138px!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border:1px solid #dbe6f3!important;
  border-radius:8px!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-height:48px!important;
  height:48px!important;
  margin-left:0!important;
  padding:5px 7px 5px 42px!important;
  border-radius:10px!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  align-self:start!important;
  box-sizing:border-box!important;
}
.student-records-workspace .record-score-track.wide-pages{grid-template-columns:1fr!important}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  width:auto!important;
  max-width:none!important;
  grid-template-columns:repeat(var(--record-score-count,10),minmax(27px,34px))!important;
  justify-content:start!important;
  gap:3px!important;
}
.student-records-workspace .record-page-grid.pages-5{--record-score-count:5}
.student-records-workspace .record-page-grid.pages-6{--record-score-count:6}
.student-records-workspace .record-page-grid.pages-7{--record-score-count:7}
.student-records-workspace .record-page-grid.pages-8{--record-score-count:8}
.student-records-workspace .record-page-grid.pages-9{--record-score-count:9}
.student-records-workspace .record-page-grid.pages-10{--record-score-count:10}
.student-records-workspace .record-page-grid label{
  width:auto!important;
  height:37px!important;
  grid-template-rows:12px 25px!important;
}
.student-records-workspace .record-page-grid span{
  display:block!important;
  height:12px!important;
  font-size:10px!important;
  line-height:12px!important;
  color:#94a3b8!important;
}
.student-records-workspace .record-page-grid input{
  width:100%!important;
  height:25px!important;
  border-radius:5px!important;
  font-size:14px!important;
  line-height:23px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:7px!important;
  top:21px!important;
  bottom:auto!important;
  width:28px!important;
  min-width:28px!important;
  height:23px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:22px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  display:block!important;
  width:74px!important;
  align-self:start!important;
}
.student-records-workspace .asm-record-score.compact-time label{
  display:block!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  display:block!important;
  width:74px!important;
  height:36px!important;
  margin-top:4px!important;
  padding:4px 6px!important;
  border-radius:14px!important;
  font-size:14px!important;
  text-align:center!important;
}
.student-records-workspace .assistant-picker{
  grid-column:4!important;
  grid-row:1!important;
  width:128px!important;
  min-width:128px!important;
  max-width:128px!important;
  align-self:start!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .assistant-picker select{
  height:36px!important;
  margin-top:4px!important;
  padding:4px 10px!important;
  border-radius:14px!important;
  font-size:13px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:46px!important;
  height:auto!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:16px!important;
  resize:vertical!important;
  overflow:auto!important;
  background:#fff!important;
}
.student-records-workspace .record-delete-inline{
  position:absolute!important;
  right:12px!important;
  bottom:12px!important;
  width:auto!important;
  min-width:70px!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:150px minmax(300px,1fr) 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  padding:5px 7px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .assistant-picker{
  grid-column:3!important;
  grid-row:1!important;
}
@media(max-width:1320px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card,
  .student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important;grid-template-rows:auto!important}
  .student-records-workspace .asm-record-main,
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note,
  .student-records-workspace .assistant-picker,
  .student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  .student-records-workspace .record-delete-inline{position:static!important;margin-top:4px!important}
}

/* Final compact Student Records override. */
.student-records-workspace .record-type-picker,
.student-records-workspace .done-check,
.student-records-workspace .assistant-picker{display:none!important}
.student-records-workspace .asm-record-card{grid-template-columns:138px minmax(250px,1fr) 56px!important;grid-template-rows:40px minmax(34px,auto)!important;gap:5px 8px!important;min-height:86px!important;padding:7px 9px!important}
.student-records-workspace .record-level-picker{margin-top:5px!important;font-size:11px!important;line-height:13px!important}
.student-records-workspace .record-level-picker select{width:58px!important;height:32px!important;margin-top:2px!important;font-size:18px!important}
.student-records-workspace .record-level-picker span{margin-top:3px!important;font-size:18px!important;line-height:20px!important}
.student-records-workspace .record-score-track{height:40px!important;min-height:40px!important;padding:4px 6px 4px 34px!important}
.student-records-workspace .record-page-grid label{height:31px!important;grid-template-rows:9px 22px!important}
.student-records-workspace .record-page-grid span{height:9px!important;font-size:8px!important;line-height:9px!important}
.student-records-workspace .record-page-grid input{height:22px!important;font-size:13px!important;line-height:20px!important}
.student-records-workspace .record-autofill-perfect{top:15px!important;width:23px!important;min-width:23px!important;height:21px!important;font-size:9px!important}
.student-records-workspace .asm-record-score.compact-time{grid-column:3!important;grid-row:1!important;width:56px!important}
.student-records-workspace .asm-record-score.compact-time label{font-size:10px!important;line-height:12px!important}
.student-records-workspace .asm-record-score.compact-time label input{width:56px!important;height:28px!important;margin-top:1px!important;padding:2px 4px!important;border-radius:8px!important;font-size:12px!important}
.student-records-workspace .asm-record-note{grid-column:2 / span 2!important;min-height:34px!important;padding:5px 7px!important;font-size:12px!important;line-height:14px!important}
.student-records-workspace .record-delete-inline{right:9px!important;bottom:7px!important;min-width:58px!important;height:24px!important;font-size:10px!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:138px minmax(250px,1fr)!important;grid-template-rows:40px minmax(34px,auto)!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{grid-column:2!important}
.record-missing-plan form{grid-template-columns:1.2fr .8fr .8fr .55fr .7fr auto!important}

/* Student Records score-entry cleanup: subject dropdown, tighter score/note fields, page beside level. */
.student-records-workspace{
  grid-template-columns:minmax(680px,760px) 420px!important;
}
.student-records-workspace .asm-record-list{max-width:760px!important}
.student-records-workspace .asm-record-card{
  grid-template-columns:128px 260px 52px!important;
  column-gap:7px!important;
}
.student-records-workspace .record-subject-picker{
  display:block!important;
  margin:0 0 5px!important;
  font-size:10px!important;
  line-height:12px!important;
  font-weight:1000!important;
  color:#475569!important;
}
.student-records-workspace .record-subject-picker select{
  display:block!important;
  width:108px!important;
  height:28px!important;
  margin-top:2px!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.student-records-workspace .record-switch-subject{display:none!important}
.student-records-workspace .record-level-picker{
  display:grid!important;
  grid-template-columns:58px auto!important;
  column-gap:7px!important;
  align-items:end!important;
  margin-top:3px!important;
}
.student-records-workspace .record-level-picker select{
  grid-column:1!important;
  grid-row:2!important;
  margin-top:1px!important;
}
.student-records-workspace .record-level-picker span{
  grid-column:2!important;
  grid-row:2!important;
  margin-top:0!important;
  align-self:end!important;
}
.student-records-workspace .record-score-track{
  width:260px!important;
  max-width:260px!important;
  padding-left:28px!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  grid-template-columns:repeat(var(--record-score-count,10),minmax(20px,22px))!important;
  gap:2px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:4px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  width:52px!important;
}
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:none!important;
}

/* Final Planer graph override: upcoming prep uses the same blue as Record Book prep chips. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-prep-upcoming,
.cn-right .cn-grid-cell.cn-existing.set-prep-upcoming,
.cn-right .cn-range-segment.set-prep-upcoming,
.cn-assignment-overlay .cn-assignment-block.set-prep-upcoming,
.cn-assignment-block.set-prep-upcoming{
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1e3a8a!important;
}

/* Student Records: final score/time/no-time alignment and tab target sizing. */
.student-records-workspace .asm-record-card{
  grid-template-columns:128px minmax(260px,1fr) 112px!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card{
    grid-template-columns:1fr!important;
  }
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note{
    grid-column:1!important;
    grid-row:auto!important;
  }
}

/* Student Records EOF override: show Time label under the time input. */
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check){
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  height:38px!important;
  font-size:0!important;
  line-height:0!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check)::after{
  content:"Time";
  display:block!important;
  margin-top:2px!important;
  font-size:8px!important;
  line-height:8px!important;
  font-weight:900!important;
  color:#64748b!important;
  text-align:center!important;
}
.student-records-workspace .asm-record-score.compact-time{
  align-items:flex-start!important;
}

/* Student Records: final score/time/no-time alignment and tab target sizing. */
.student-records-workspace .asm-record-card{
  grid-template-columns:128px minmax(260px,1fr) 112px!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card{
    grid-template-columns:1fr!important;
  }
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note{
    grid-column:1!important;
    grid-row:auto!important;
  }
}

/* Final Planer graph override: upcoming prep uses the same blue as Record Book prep chips. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-prep-upcoming,
.cn-right .cn-grid-cell.cn-existing.set-prep-upcoming,
.cn-right .cn-range-segment.set-prep-upcoming,
.cn-assignment-overlay .cn-assignment-block.set-prep-upcoming,
.cn-assignment-block.set-prep-upcoming{
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1e3a8a!important;
}

/* Planer graph: match Record Book blue for upcoming prep from the next class date. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-prep-upcoming,
.cn-right .cn-grid-cell.cn-existing.set-prep-upcoming,
.cn-right .cn-range-segment.set-prep-upcoming,
.cn-assignment-overlay .cn-assignment-block.set-prep-upcoming,
.cn-assignment-block.set-prep-upcoming{
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1e3a8a!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  width:52px!important;
}

/* Planer Set graph: homework already taken home but still unfinished before the next center date. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-taken-unfinished,
.cn-right .cn-grid-cell.cn-existing.set-taken-unfinished,
.cn-right .cn-range-segment.set-taken-unfinished,
.cn-assignment-overlay .cn-assignment-block.set-taken-unfinished,
.cn-assignment-block.set-taken-unfinished{
  background-color:#cbd5e1!important;
  background-image:repeating-linear-gradient(135deg,rgba(71,85,105,.34) 0 4px,rgba(255,255,255,.28) 4px 8px)!important;
  border-color:#64748b!important;
  color:#334155!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
  max-width:319px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:128px 260px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  max-width:260px!important;
}

/* Student Records score-entry cleanup: subject dropdown, tighter score/note fields, page beside level. */
.student-records-workspace{
  grid-template-columns:minmax(680px,760px) 420px!important;
}
.student-records-workspace .asm-record-list{max-width:760px!important}
.student-records-workspace .asm-record-card{
  grid-template-columns:128px 260px 52px!important;
  column-gap:7px!important;
}
.student-records-workspace .record-subject-picker{
  display:block!important;
  margin:0 0 5px!important;
  font-size:10px!important;
  line-height:12px!important;
  font-weight:1000!important;
  color:#475569!important;
}
.student-records-workspace .record-subject-picker select{
  display:block!important;
  width:108px!important;
  height:28px!important;
  margin-top:2px!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.student-records-workspace .record-switch-subject{display:none!important}
.student-records-workspace .record-level-picker{
  display:grid!important;
  grid-template-columns:58px auto!important;
  column-gap:7px!important;
  align-items:end!important;
  margin-top:3px!important;
}
.student-records-workspace .record-level-picker select{
  grid-column:1!important;
  grid-row:2!important;
  margin-top:1px!important;
}
.student-records-workspace .record-level-picker span{
  grid-column:2!important;
  grid-row:2!important;
  margin-top:0!important;
  align-self:end!important;
}
.student-records-workspace .record-score-track{
  width:260px!important;
  max-width:260px!important;
  padding-left:28px!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  grid-template-columns:repeat(var(--record-score-count,10),minmax(20px,22px))!important;
  gap:2px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:4px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  width:52px!important;
}
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:none!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  width:52px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
  max-width:319px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:128px 260px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  max-width:260px!important;
}

/* Final mobile navigation override: phone menus scroll vertically and do not hide lower links. */
@media(max-width:900px){
  body:not(.login) header{
    position:sticky!important;
    top:0!important;
    height:auto!important;
    max-height:58svh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  body:not(.login) header>div:first-child{padding:0 0 8px!important}
  body:not(.login) nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
    padding:0!important;
  }
  body:not(.login) nav .nav-section{
    display:flex!important;
    grid-column:1 / -1!important;
    margin:6px 0 0!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  body:not(.login) nav a,
  body:not(.login) .logout{
    width:100%!important;
    min-height:34px!important;
    border-radius:9px!important;
    padding:8px 9px!important;
    white-space:normal!important;
    font-size:12px!important;
    line-height:1.12!important;
  }
  body:not(.login) .logout{
    margin-top:4px!important;
    justify-content:center!important;
  }
  body:not(.login) main{padding:12px!important}
}
@media(max-width:420px){
  body:not(.login) nav{grid-template-columns:1fr!important}
  body:not(.login) header{max-height:64svh!important}
}

/* Final mobile navigation override: phone menus scroll vertically and do not hide lower links. */
@media(max-width:900px){
  body:not(.login) header{
    position:sticky!important;
    top:0!important;
    height:auto!important;
    max-height:58svh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  body:not(.login) header>div:first-child{padding:0 0 8px!important}
  body:not(.login) nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
    padding:0!important;
  }
  body:not(.login) nav .nav-section{
    display:flex!important;
    grid-column:1 / -1!important;
    margin:6px 0 0!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  body:not(.login) nav a,
  body:not(.login) .logout{
    width:100%!important;
    min-height:34px!important;
    border-radius:9px!important;
    padding:8px 9px!important;
    white-space:normal!important;
    font-size:12px!important;
    line-height:1.12!important;
  }
  body:not(.login) .logout{
    margin-top:4px!important;
    justify-content:center!important;
  }
  body:not(.login) main{padding:12px!important}
}
@media(max-width:420px){
  body:not(.login) nav{grid-template-columns:1fr!important}
  body:not(.login) header{max-height:64svh!important}
}

/* Mobile navigation: keep the Kumon Tenafly menu usable on phones. */
@media(max-width:900px){
  body:not(.login) header{
    position:sticky!important;
    top:0!important;
    max-height:58svh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  body:not(.login) header>div:first-child{
    padding:0 0 8px!important;
  }
  body:not(.login) nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
    padding:0!important;
  }
  body:not(.login) nav .nav-section{
    display:flex!important;
    grid-column:1 / -1!important;
    margin:6px 0 0!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  body:not(.login) nav a,
  body:not(.login) .logout{
    width:100%!important;
    min-height:34px!important;
    border-radius:9px!important;
    padding:8px 9px!important;
    white-space:normal!important;
    font-size:12px!important;
    line-height:1.12!important;
  }
  body:not(.login) .logout{
    margin-top:4px!important;
    justify-content:center!important;
  }
  body:not(.login) main{
    padding:12px!important;
  }
}
@media(max-width:420px){
  body:not(.login) nav{grid-template-columns:1fr!important}
  body:not(.login) header{max-height:64svh!important}
}
.report-b-table .report-b-ksis-current,.report-b-table .report-b-ksis-used{background:#dff3ff!important;text-align:center!important}
.report-b-table th.report-b-ksis-current,.report-b-table th.report-b-ksis-used{background:#bae6fd!important}

/* Student Records compact scoring layout: only worksheet scores, time, and memo stay visible. */
.student-records-workspace .record-type-picker,
.student-records-workspace .done-check,
.student-records-workspace .assistant-picker{
  display:none!important;
}
.student-records-workspace .asm-record-card{
  grid-template-columns:138px minmax(250px,1fr) 56px!important;
  grid-template-rows:40px minmax(34px,auto)!important;
  gap:5px 8px!important;
  min-height:86px!important;
  padding:7px 9px!important;
}
.student-records-workspace .record-level-picker{
  margin-top:5px!important;
  font-size:11px!important;
  line-height:13px!important;
}
.student-records-workspace .record-level-picker select{
  width:58px!important;
  height:32px!important;
  margin-top:2px!important;
  font-size:18px!important;
}
.student-records-workspace .record-level-picker span{
  margin-top:3px!important;
  font-size:18px!important;
  line-height:20px!important;
}
.student-records-workspace .record-score-track{
  height:40px!important;
  min-height:40px!important;
  padding:4px 6px 4px 34px!important;
}
.student-records-workspace .record-page-grid label{
  height:31px!important;
  grid-template-rows:9px 22px!important;
}
.student-records-workspace .record-page-grid span{
  height:9px!important;
  font-size:8px!important;
  line-height:9px!important;
}
.student-records-workspace .record-page-grid input{
  height:22px!important;
  font-size:13px!important;
  line-height:20px!important;
}
.student-records-workspace .record-autofill-perfect{
  top:15px!important;
  width:23px!important;
  min-width:23px!important;
  height:21px!important;
  font-size:9px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  width:56px!important;
}
.student-records-workspace .asm-record-score.compact-time label{
  font-size:10px!important;
  line-height:12px!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  width:56px!important;
  height:28px!important;
  margin-top:1px!important;
  padding:2px 4px!important;
  border-radius:8px!important;
  font-size:12px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
  min-height:34px!important;
  padding:5px 7px!important;
  font-size:12px!important;
  line-height:14px!important;
}
.student-records-workspace .record-delete-inline{
  right:9px!important;
  bottom:7px!important;
  min-width:58px!important;
  height:24px!important;
  font-size:10px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:138px minmax(250px,1fr)!important;
  grid-template-rows:40px minmax(34px,auto)!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
}
.record-missing-plan form{
  grid-template-columns:1.2fr .8fr .8fr .55fr .7fr auto!important;
}

/* Student Records: score-entry card layout based on the wide ASMKUMON entry mockup. */
.student-records-workspace{
  grid-template-columns:minmax(760px,860px) 420px!important;
  gap:14px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{
  width:100%!important;
  max-width:860px!important;
}
.student-records-workspace .asm-record-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:150px minmax(300px,1fr) 74px 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
  gap:7px 10px!important;
  align-items:start!important;
  min-height:112px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid #dbe6f3!important;
  background:#fbfdff!important;
  box-sizing:border-box!important;
}
.student-records-workspace .asm-record-main{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  max-width:none!important;
  align-self:stretch!important;
  display:block!important;
  padding-right:4px!important;
}
.student-records-workspace .asm-record-main .pill{
  font-size:17px!important;
  line-height:22px!important;
  padding:3px 12px!important;
  border-radius:999px!important;
}
.student-records-workspace .record-switch-subject{
  width:auto!important;
  height:22px!important;
  min-height:22px!important;
  margin:0 0 0 6px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:10px!important;
  vertical-align:middle!important;
}
.student-records-workspace .record-level-picker{
  display:block!important;
  margin-top:8px!important;
  font-size:13px!important;
  line-height:16px!important;
  color:#64748b!important;
}
.student-records-workspace .record-level-picker select{
  display:block!important;
  width:72px!important;
  height:42px!important;
  margin-top:4px!important;
  padding:4px 8px!important;
  border-radius:8px!important;
  font-size:22px!important;
  font-weight:1000!important;
  text-align:center!important;
}
.student-records-workspace .record-level-picker span{
  display:block!important;
  margin-top:6px!important;
  font-size:22px!important;
  line-height:24px!important;
  font-weight:1000!important;
  color:#0f172a!important;
  white-space:nowrap!important;
}
.student-records-workspace .record-type-picker{
  margin-top:6px!important;
  max-width:118px!important;
  font-size:8px!important;
}
.student-records-workspace .record-type-picker select{
  height:20px!important;
  font-size:8px!important;
  padding:1px 4px!important;
}
.student-records-workspace .record-student-name{
  display:inline-flex!important;
  margin-top:7px!important;
  max-width:138px!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border:1px solid #dbe6f3!important;
  border-radius:8px!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-height:48px!important;
  height:48px!important;
  margin-left:0!important;
  padding:5px 7px 5px 42px!important;
  border-radius:10px!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  align-self:start!important;
  box-sizing:border-box!important;
}
.student-records-workspace .record-score-track.wide-pages{
  grid-template-columns:1fr!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  width:auto!important;
  max-width:none!important;
  grid-template-columns:repeat(var(--record-score-count, 10), minmax(27px,34px))!important;
  justify-content:start!important;
  gap:3px!important;
}
.student-records-workspace .record-page-grid.pages-5{--record-score-count:5}
.student-records-workspace .record-page-grid.pages-6{--record-score-count:6}
.student-records-workspace .record-page-grid.pages-7{--record-score-count:7}
.student-records-workspace .record-page-grid.pages-8{--record-score-count:8}
.student-records-workspace .record-page-grid.pages-9{--record-score-count:9}
.student-records-workspace .record-page-grid.pages-10{--record-score-count:10}
.student-records-workspace .record-page-grid label{
  width:auto!important;
  height:37px!important;
  grid-template-rows:12px 25px!important;
}
.student-records-workspace .record-page-grid span{
  display:block!important;
  height:12px!important;
  font-size:10px!important;
  line-height:12px!important;
  color:#94a3b8!important;
}
.student-records-workspace .record-page-grid input{
  width:100%!important;
  height:25px!important;
  border-radius:5px!important;
  font-size:14px!important;
  line-height:23px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:7px!important;
  top:21px!important;
  bottom:auto!important;
  width:28px!important;
  min-width:28px!important;
  height:23px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:22px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  display:block!important;
  width:74px!important;
  align-self:start!important;
}
.student-records-workspace .asm-record-score.compact-time label{
  display:block!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  display:block!important;
  width:74px!important;
  height:36px!important;
  margin-top:4px!important;
  padding:4px 6px!important;
  border-radius:14px!important;
  font-size:14px!important;
  text-align:center!important;
}
.student-records-workspace .assistant-picker{
  grid-column:4!important;
  grid-row:1!important;
  width:128px!important;
  min-width:128px!important;
  max-width:128px!important;
  align-self:start!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .assistant-picker select{
  height:36px!important;
  margin-top:4px!important;
  padding:4px 10px!important;
  border-radius:14px!important;
  font-size:13px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:46px!important;
  height:auto!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:16px!important;
  resize:vertical!important;
  overflow:auto!important;
  background:#fff!important;
}
.student-records-workspace .record-delete-inline{
  position:absolute!important;
  right:12px!important;
  bottom:12px!important;
  width:auto!important;
  min-width:70px!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:150px minmax(300px,1fr) 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  padding:5px 7px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .assistant-picker{
  grid-column:3!important;
  grid-row:1!important;
}
@media(max-width:1320px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card,
  .student-records-workspace .asm-record-card:has(.asm-test-entry){
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
  }
  .student-records-workspace .asm-record-main,
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note,
  .student-records-workspace .assistant-picker,
  .student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  .student-records-workspace .record-delete-inline{
    position:static!important;
    margin-top:4px!important;
  }
}

/* Student Records: keep the calendar on the right on normal desktop widths. */
.student-records-workspace{
  grid-template-columns:700px 420px!important;
  gap:12px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{
  width:700px!important;
  max-width:700px!important;
}
.records-side-calendar{
  width:420px!important;
  max-width:420px!important;
}
.records-side-calendar .set-calendar-day{
  min-height:76px!important;
}
.records-side-calendar .set-calendar-plan{
  padding:2px 3px!important;
  font-size:8px!important;
  line-height:1.05!important;
}
.records-side-calendar .set-calendar-plan span{
  font-size:8.5px!important;
  line-height:1.05!important;
}
@media(max-width:1150px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
  .student-records-workspace .asm-record-card,.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-note,.student-records-workspace .assistant-picker{grid-column:auto!important;width:100%!important;max-width:none!important}
}

.program-print-scale-control{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  color:#334155;
  font-size:12px;
  font-weight:900;
}
.program-print-scale-control select{
  width:112px;
  height:38px;
  padding:6px 8px;
}

/* Program Schedule print fit options. Default is Fit 94% for printers with tight hardware margins. */
@media print{
  body:has(.program-schedule-panel) .program-sheet-page{
    width:var(--program-print-width,7.85in)!important;
    max-width:var(--program-print-width,7.85in)!important;
  }
}

/* Final Program Schedule print override: keep this block at EOF. */
@media print{
  @page program-schedule-print{size:letter portrait;margin:.1in}
  body:has(.program-schedule-panel) main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body:has(.program-schedule-panel) .program-schedule-panel{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;overflow:visible!important}
  body:has(.program-schedule-panel) .program-sheet-page{page:program-schedule-print;width:var(--program-print-width,7.85in)!important;max-width:var(--program-print-width,7.85in)!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
  body:has(.program-schedule-panel) .program-sheet-title{margin:0 0 .03in!important;padding:0 0 .025in!important;border-bottom:1pt solid #172033!important}
  body:has(.program-schedule-panel) .program-sheet-title b{font-size:9pt!important}
  body:has(.program-schedule-panel) .program-sheet-title span{font-size:6pt!important}
  body:has(.program-schedule-panel) .program-sheet-title h1{font-size:11.5pt!important}
  body:has(.program-schedule-panel) .program-summary{grid-template-columns:repeat(5,1fr)!important;gap:.025in!important;margin:0 0 .035in!important}
  body:has(.program-schedule-panel) .program-summary div{padding:.018in .03in!important;border-radius:.025in!important}
  body:has(.program-schedule-panel) .program-summary b{font-size:8pt!important}
  body:has(.program-schedule-panel) .program-summary span{font-size:4.8pt!important}
  body:has(.program-schedule-panel) .program-sheet-grid{display:block!important;width:100%!important}
  body:has(.program-schedule-panel) .program-sheet-section{width:100%!important;padding:.025in!important;border-radius:.025in!important;break-inside:auto!important;page-break-inside:auto!important}
  body:has(.program-schedule-panel) .program-sheet-section h3{font-size:7pt!important;margin:0 0 .015in!important}
  body:has(.program-schedule-panel) .program-students table{width:100%!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:5.9pt!important;line-height:1.08!important}
  body:has(.program-schedule-panel) .program-students th,
  body:has(.program-schedule-panel) .program-students td{padding:.012in .016in!important;vertical-align:top!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(1),body:has(.program-schedule-panel) .program-students td:nth-child(1){width:.5in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(2),body:has(.program-schedule-panel) .program-students td:nth-child(2){width:.66in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(3),body:has(.program-schedule-panel) .program-students td:nth-child(3){width:.48in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(4),body:has(.program-schedule-panel) .program-students td:nth-child(4){width:1.45in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(5),body:has(.program-schedule-panel) .program-students td:nth-child(5){width:1.35in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(6),body:has(.program-schedule-panel) .program-students td:nth-child(6){width:1in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(7),body:has(.program-schedule-panel) .program-students td:nth-child(7){width:auto!important}
  body:has(.program-schedule-panel) .program-students td:nth-child(4) b,
  body:has(.program-schedule-panel) .program-students td:nth-child(5) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(6) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(7) div{white-space:normal!important;overflow-wrap:anywhere!important}
  body:has(.program-schedule-panel) .program-students tr.program-time-end td{border-bottom:1pt solid #172033!important}
  body:has(.program-schedule-panel) .student-type-pill{width:.14in!important;height:.14in!important;min-width:.14in!important;font-size:4pt!important}
  body:has(.program-schedule-panel) .program-kc-pay{min-width:.16in!important;height:.12in!important;font-size:4pt!important}
  body:has(.program-schedule-panel) .program-type-cell{gap:.01in!important}
  body:has(.program-schedule-panel) .pill{font-size:5pt!important;padding:.01in .02in!important}
  body:has(.program-schedule-panel) .program-sheet-section td small{display:block!important;margin:.006in 0 0!important;font-size:4.8pt!important}
}

/* Final Program Schedule print override: keep this after all other print/page tuning. */
@media print{
  @page program-schedule-print{size:letter portrait;margin:.1in}
  body:has(.program-schedule-panel) main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body:has(.program-schedule-panel) .program-schedule-panel{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;overflow:visible!important}
  body:has(.program-schedule-panel) .program-sheet-page{page:program-schedule-print;width:var(--program-print-width,7.85in)!important;max-width:var(--program-print-width,7.85in)!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
  body:has(.program-schedule-panel) .program-sheet-title{margin:0 0 .03in!important;padding:0 0 .025in!important;border-bottom:1pt solid #172033!important}
  body:has(.program-schedule-panel) .program-sheet-title b{font-size:9pt!important}
  body:has(.program-schedule-panel) .program-sheet-title span{font-size:6pt!important}
  body:has(.program-schedule-panel) .program-sheet-title h1{font-size:11.5pt!important}
  body:has(.program-schedule-panel) .program-summary{grid-template-columns:repeat(5,1fr)!important;gap:.025in!important;margin:0 0 .035in!important}
  body:has(.program-schedule-panel) .program-summary div{padding:.018in .03in!important;border-radius:.025in!important}
  body:has(.program-schedule-panel) .program-summary b{font-size:8pt!important}
  body:has(.program-schedule-panel) .program-summary span{font-size:4.8pt!important}
  body:has(.program-schedule-panel) .program-sheet-grid{display:block!important;width:100%!important}
  body:has(.program-schedule-panel) .program-sheet-section{width:100%!important;padding:.025in!important;border-radius:.025in!important;break-inside:auto!important;page-break-inside:auto!important}
  body:has(.program-schedule-panel) .program-sheet-section h3{font-size:7pt!important;margin:0 0 .015in!important}
  body:has(.program-schedule-panel) .program-students table{width:100%!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:5.9pt!important;line-height:1.08!important}
  body:has(.program-schedule-panel) .program-students th,
  body:has(.program-schedule-panel) .program-students td{padding:.012in .016in!important;vertical-align:top!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(1),body:has(.program-schedule-panel) .program-students td:nth-child(1){width:.5in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(2),body:has(.program-schedule-panel) .program-students td:nth-child(2){width:.66in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(3),body:has(.program-schedule-panel) .program-students td:nth-child(3){width:.48in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(4),body:has(.program-schedule-panel) .program-students td:nth-child(4){width:1.45in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(5),body:has(.program-schedule-panel) .program-students td:nth-child(5){width:1.35in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(6),body:has(.program-schedule-panel) .program-students td:nth-child(6){width:1in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(7),body:has(.program-schedule-panel) .program-students td:nth-child(7){width:auto!important}
  body:has(.program-schedule-panel) .program-students td:nth-child(4) b,
  body:has(.program-schedule-panel) .program-students td:nth-child(5) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(6) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(7) div{white-space:normal!important;overflow-wrap:anywhere!important}
  body:has(.program-schedule-panel) .program-students tr.program-time-end td{border-bottom:1pt solid #172033!important}
  body:has(.program-schedule-panel) .student-type-pill{width:.14in!important;height:.14in!important;min-width:.14in!important;font-size:4pt!important}
  body:has(.program-schedule-panel) .program-kc-pay{min-width:.16in!important;height:.12in!important;font-size:4pt!important}
  body:has(.program-schedule-panel) .program-type-cell{gap:.01in!important}
  body:has(.program-schedule-panel) .pill{font-size:5pt!important;padding:.01in .02in!important}
  body:has(.program-schedule-panel) .program-sheet-section td small{display:block!important;margin:.006in 0 0!important;font-size:4.8pt!important}
}

/* Office Goal Planner */
.goal-layout{display:block}
.goal-sidebar{border:1px solid #e5e7eb;border-radius:10px;padding:12px;background:#f8fafc}
.goal-sidebar h3{margin:0 0 10px}
.goal-sidebar a{display:block;padding:9px 10px;border-radius:8px;color:#0f172a;text-decoration:none;border:1px solid transparent}
.goal-sidebar a.active,.goal-sidebar a:hover{background:#fff;border-color:#bfdbfe}
.goal-sidebar small{display:block;color:#64748b;margin-top:3px}
.goal-config-form,.goal-save-form{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;align-items:end;margin-bottom:12px}
.goal-config-form label,.goal-save-form label{display:grid;gap:4px;font-size:12px;font-weight:800;color:#475569}
.goal-config-form input,.goal-config-form select,.goal-save-form input{height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px;background:#fff;color:#0f172a}
.goal-save-form{grid-template-columns:1.2fr 2fr auto auto auto}
.goal-save-form .wide{grid-column:auto}
.goal-save-template-button{background:#047857!important;color:white!important;border-color:#047857!important}
.goal-visible-actions{position:sticky;top:0;z-index:20;display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:wrap;margin:0 0 10px;padding:8px 0;background:#f5f5f5}
.goal-start-date-controls{display:flex;align-items:flex-end;gap:8px;padding:5px 8px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff}
.goal-start-date-controls label{display:grid;gap:2px;color:#1e3a8a;font-size:11px;font-weight:800}
.goal-start-date-controls input{min-width:142px;border:1px solid #93c5fd;border-radius:6px;padding:6px 8px;background:#fff;color:#0f172a;font:inherit}
.goal-new-student-select{display:flex;align-items:center;gap:8px;margin-right:0;color:#334155;font-size:13px;font-weight:800}
.goal-new-student-select select{height:38px;min-width:230px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;padding:6px 10px;font-weight:700}
.goal-template-copy-form{margin:0}
.goal-visible-actions>button:first-of-type{margin-left:auto}
.goal-visible-actions button{border:0;border-radius:8px;padding:10px 16px;background:#2563eb;color:#fff;font-weight:800;box-shadow:0 6px 14px #1d4ed81f;cursor:pointer}
.goal-visible-actions .goal-template-copy-form button{background:#0f766e}
.goal-visible-actions button[type="button"]{background:#475569}
.goal-level-settings{grid-column:1/-1;border:1px solid #dbe3ef;border-radius:8px;background:#fff;padding:10px;max-height:300px;overflow:auto}
.goal-level-settings h3{margin:0 0 8px}
.goal-level-settings table{width:100%;border-collapse:collapse;font-size:12px}
.goal-level-settings th,.goal-level-settings td{border:1px solid #e2e8f0;padding:5px;text-align:center}
.goal-level-settings select{height:30px;min-width:86px}
.goal-planner-tabs{display:flex;gap:8px;margin:0 0 12px}
.goal-planner-tabs a{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#203864;text-decoration:none;font-weight:900;font-size:13px;padding:9px 14px}
.goal-planner-tabs a.active{background:#203864;color:#fff;border-color:#203864}
.goal-new-student-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;align-items:start}
.goal-new-student-form,.goal-new-student-list{background:#fff;border:1px solid #dbe3ef;border-radius:10px;padding:16px;box-shadow:0 1px 2px #00000008}
.goal-new-student-form{display:grid;gap:10px}
.goal-new-student-form h3,.goal-new-student-list h3{margin:0 0 6px;color:#203864}
.goal-new-student-form label{display:grid;gap:4px;font-size:12px;font-weight:800;color:#334155}
.goal-new-student-form input,.goal-new-student-form select{height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;font:inherit;background:#fff}
.excel-name-input,.excel-inline-input{border:1px solid #d2a600!important;font:inherit;color:#000}
.excel-name-input{width:100%}
.excel-inline-input{text-align:center;font-weight:700}
.goal-new-student-list table{width:100%;border-collapse:collapse;font-size:13px}
.goal-new-student-list th,.goal-new-student-list td{border-bottom:1px solid #e2e8f0;padding:9px;text-align:left;vertical-align:middle}
.goal-new-student-list th{font-size:11px;text-transform:uppercase;color:#64748b;background:#f8fafc}
.goal-new-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.goal-new-actions form{margin:0}
.goal-new-actions .danger,.goal-visible-actions .goal-delete-prospect-form button{background:#b91c1c}
.goal-delete-prospect-form{margin:0}
.goal-undo-delete-form{display:inline-flex;align-items:center;gap:8px;margin:0;background:#fef3c7;border:1px solid #facc15;border-radius:10px;padding:7px 8px}
.goal-undo-delete-form .save-badge{margin:0;background:#fff7ed;color:#92400e}
.goal-undo-delete-form button{height:32px;padding:0 12px;background:#203864}
.goal-rename-form{display:flex;gap:6px;align-items:center;margin:0}
.goal-rename-form input{height:34px;min-width:190px;border:1px solid #cbd5e1;border-radius:7px;padding:5px 8px;font-weight:700}
.goal-rename-form button{height:34px;padding:0 9px}
.goal-print-orientation{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-weight:900;color:#334155}
.goal-print-orientation select{height:38px;border-radius:8px;padding:6px 9px}
@media(max-width:900px){.goal-new-student-layout{grid-template-columns:1fr}}
.goal-print-sheet{border:1px solid #dbe3ef;border-radius:10px;background:#fff;padding:18px;color:#0f172a}
.goal-screen-hidden{display:none!important}
.goal-print-head{display:flex;justify-content:space-between;gap:16px;align-items:start;border-bottom:2px solid #0f172a;padding-bottom:10px;margin-bottom:12px}
.goal-print-head b{display:block;text-transform:uppercase;letter-spacing:.04em;color:#475569;font-size:12px}
.goal-print-head h2{margin:3px 0 0;font-size:24px}
.goal-print-head span{font-weight:900}
.goal-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.goal-summary-grid div{border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#f8fafc}
.goal-summary-grid b{display:block;font-size:18px}.goal-summary-grid span{font-size:11px;text-transform:uppercase;color:#64748b;font-weight:900}
.goal-tables{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.goal-print-sheet h3{margin:14px 0 6px;font-size:16px}
.goal-print-sheet table{width:100%;border-collapse:collapse;font-size:13px}
.goal-print-sheet th,.goal-print-sheet td{border:1px solid #dbe3ef;padding:7px;text-align:left}
.goal-print-sheet th{background:#eef2f7;color:#334155;font-size:11px;text-transform:uppercase}
.goal-note{border-left:4px solid #2563eb;background:#eff6ff;padding:10px;margin-top:12px}
.goal-one-year{margin:14px 0;border:1px solid #dbe3ef;border-radius:8px;padding:12px;background:#fbfdff}
.goal-graph-svg{display:block;width:100%;height:auto;max-height:330px;margin:4px 0 12px;font-size:12px;color:#334155}
.excel-like-settings{margin:14px 0;overflow:auto}
.excel-like-settings table{min-width:760px}
.excel-like-settings td:first-child,.excel-like-settings th:first-child{font-weight:900;background:#f8fafc}
.excel-student-data,.excel-goal-sheet{border:2px solid #111827;margin:12px 0;background:#fff}
.excel-student-data h3,.excel-sheet-title{margin:0;background:#d9eaf7;border-bottom:2px solid #111827;padding:6px 8px;font-size:15px;font-weight:1000;text-align:left}
.excel-student-data table,.excel-goal-sheet table{width:100%;border-collapse:collapse;font-size:11px}
.excel-student-data td,.excel-goal-sheet td,.excel-goal-sheet th{border:1px solid #1f2937;padding:4px 5px;text-align:center;vertical-align:middle}
.excel-student-data td:nth-child(odd){font-weight:900;background:#eef2f7;text-align:right}
.excel-yellow{background:#fff2cc!important}
.excel-blue{background:#ddebf7!important;font-weight:900}
.excel-green{background:#e2f0d9!important;font-weight:800}
.excel-student-row{display:grid;grid-template-columns:max-content 1fr max-content 1fr max-content 80px;border-bottom:1px solid #1f2937}
.excel-student-row span{background:#eef2f7;border-right:1px solid #1f2937;padding:5px;font-weight:900}
.excel-student-row b{background:#fff2cc;border-right:1px solid #1f2937;padding:5px}
.excel-month-table{float:left;width:34%!important;margin:8px}
.excel-level-wrap{overflow-x:auto;margin:8px}
.excel-level-table{min-width:780px}
.excel-level-table th{background:#d9eaf7;font-weight:1000}
.excel-level-table td:first-child{background:#eef2f7;font-weight:900;text-align:left;min-width:160px}
.excel-goal-sheet:after{content:"";display:block;clear:both}
.goal-one-year{border:2px solid #111827;background:#fff}
.goal-one-year h3{background:#d9eaf7;margin:-12px -12px 8px!important;padding:6px 8px;border-bottom:2px solid #111827}
.goal-extra-summary{display:none}
@media screen{.goal-extra-summary{display:block}}
@media print{
  .goal-extra-summary{display:none!important}
  .excel-goal-sheet{break-inside:avoid;page-break-inside:avoid}
  .goal-one-year{break-inside:avoid;page-break-inside:avoid}
  .excel-month-table{width:31%!important}
  .excel-level-wrap{overflow:visible}
  .excel-level-table{min-width:0;font-size:9px}
  .excel-goal-sheet td,.excel-goal-sheet th{padding:3px}
}
@media(max-width:1100px){.goal-layout,.goal-tables{grid-template-columns:1fr}.goal-config-form,.goal-save-form{grid-template-columns:1fr 1fr}.goal-summary-grid{grid-template-columns:1fr 1fr}}
@media print{
  body:has(.goal-planner-page) header,body:has(.goal-planner-page) nav,body:has(.goal-planner-page) .goal-sidebar,body:has(.goal-planner-page) .goal-config-form,body:has(.goal-planner-page) .goal-save-form,body:has(.goal-planner-page) .goal-visible-actions,body:has(.goal-planner-page) .calendar-head,body:has(.goal-planner-page) .goal-planner-tabs,body:has(.goal-planner-page) .goal-main>form:last-child{display:none!important}
  body:has(.goal-planner-page) main{padding:0!important}
  body:has(.goal-planner-page) .panel{box-shadow:none!important;border:0!important;padding:0!important}
  body:has(.goal-planner-page) .goal-layout{display:block!important}
  body:has(.goal-planner-page) .goal-print-sheet{border:0!important;border-radius:0!important;padding:0!important}
}

/* Goal Planner Excel-style projection sheets */
.goal-planner-page{background:#f5f5f5}
.goal-print-sheet{background:#eee!important;border:0!important;padding:14px!important;display:grid;gap:18px}
.excel-student-data-sheet,.excel-goal-sheet,.goal-graph-page{width:1280px;max-width:100%;background:#fff;color:#000;border:1px solid #bdbdbd;border-radius:0;box-shadow:0 1px 2px #0001;margin:0;overflow:auto;font-family:Arial,Helvetica,sans-serif}
.excel-student-data-sheet{width:792px;min-height:430px;padding:0;position:relative;overflow:hidden}
.excel-student-data-sheet:has(.prospective-student-form){min-height:555px}
.excel-student-scale{width:1280px;min-height:720px;padding:12px 0 0 64px;position:relative;transform:scale(.6);transform-origin:top left}
.excel-blue-button{position:absolute;left:522px;top:11px;width:137px;height:59px;padding:0 9px;border-radius:9px;background:#20aee7;color:#000;border:2px solid #006f99;font-size:12px;line-height:1.45;font-weight:700}
.excel-student-form{width:695px;height:420px;position:relative;font-size:20px;color:#000}
.prospective-student-form{height:620px}
.excel-field{position:absolute;margin:0}
.excel-label{font-weight:400;line-height:1.05;margin:0 0 6px}
.excel-box{border:2px solid #000;height:31px;display:flex;align-items:center;justify-content:center;font-weight:700;line-height:1;padding:0 7px}
.excel-name-field{top:0;left:0;width:419px}
.excel-name-box{justify-content:flex-start;font-size:21px}
.excel-name-form{margin:0}
.excel-name-select{width:100%;appearance:auto;text-align:left;color:#000;font-family:Arial,Helvetica,sans-serif;font-size:21px!important}
.excel-name-select option{font-size:11px}
.excel-dual-field{top:95px;left:3px;display:grid;grid-template-columns:390px 140px;gap:24px;align-items:end}
.excel-dual-field .excel-label{margin:0 0 5px}
.excel-short-box{font-size:20px}
.excel-date-field{top:152px;left:0;width:419px;position:absolute}
.excel-date-boxes{display:grid;grid-template-columns:1fr 1fr 1fr}
.excel-date-boxes .excel-box{font-size:16px}
.excel-day-label{display:none}
.excel-dual-start-field{top:137px;left:3px;display:grid;grid-template-columns:430px 100px;gap:12px;align-items:end;font-size:17px}
.excel-dual-start-field[hidden],.excel-math-date-field[hidden],.excel-reading-date-field[hidden]{display:none!important}
.excel-dual-start-field .excel-label{margin:0 0 5px}
.excel-math-date-field{top:248px;left:0;width:260px}
.excel-reading-date-field{top:335px;left:0;width:260px}
.excel-date-input{width:150px;height:31px;font-size:15px;font-weight:700}
.prospective-student-form .excel-date-field{top:176px}
.prospective-student-form .excel-grade-field{top:425px}
.prospective-student-form .excel-advance-field{top:485px}
.excel-grade-field{top:239px;left:0;width:140px}
.excel-grade-field .excel-box{font-size:17px}
.excel-advance-field{top:326px;left:16px;width:140px}
.excel-advance-field .excel-label{white-space:nowrap}
.excel-small-box{font-size:17px}
.excel-omit-table{width:695px!important;border-collapse:collapse!important;margin:0!important;font-size:19px!important}
.excel-omit-table caption{text-align:left;font-size:19px;margin:0 0 13px 4px;caption-side:top}
.excel-omit-table th,.excel-omit-table td{border:2px solid #000!important;padding:0 6px!important;text-align:center!important;height:24px!important}
.excel-omit-table th{background:#fff!important;color:#000!important;font-size:19px!important;text-transform:none!important;line-height:1}
.excel-omit-table tr:nth-child(2) th{font-size:17px!important;font-weight:400!important}
.excel-omit-table th:first-child{width:138px}
.excel-red-warning{font-size:30px;color:#d40000;font-weight:500;width:780px;line-height:1.18;margin:26px 0 0 5px}
.excel-yellow{background:#ffff00!important}
.excel-goal-sheet{padding:10px 12px 16px;width:1152px}
.excel-projection-header{height:34px;display:flex;align-items:flex-start}
.excel-actions{display:flex;gap:8px;align-self:start}
.excel-actions button{background:#2f69bf;border:1px solid #244f91;color:#fff;border-radius:5px;height:30px;padding:0 18px;font-size:10px;font-weight:700}
.excel-kumon-word{display:none;text-align:left;font-size:39px;font-weight:800;letter-spacing:12px;line-height:1;color:#000}
.excel-kumon-word span{display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border:3px solid #000;border-radius:50%;letter-spacing:0;margin:0 2px;font-size:0;vertical-align:-7px;position:relative}
.excel-kumon-word span:before{content:"";width:21px;height:10px;border-bottom:2px solid #000;border-radius:50%;position:absolute;bottom:9px}
.excel-kumon-word span:after{content:"";width:22px;height:4px;border-radius:50%;box-shadow:-7px -7px 0 -1px #000,7px -7px 0 -1px #000;position:absolute;top:15px}
.excel-projection-body{display:grid;grid-template-columns:214px minmax(864px,1fr);gap:5px;align-items:start}
.goal-graph-memo-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}
.goal-planner-memo-panel{
  width:min(100%,920px);
  min-height:0;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#fff;
  padding:14px;
  color:#334155;
}
.goal-planner-memo-panel label{
  display:grid;
  gap:8px;
  font-size:13px;
  font-weight:900;
}
.goal-planner-memo-panel textarea{
  width:100%;
  min-height:86px;
  resize:vertical;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:10px;
  font:inherit;
  line-height:1.35;
  background:#f8fafc;
}
.goal-planner-memo-panel small{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.excel-left-info table{border-collapse:collapse!important;width:203px!important;margin:0 0 12px!important;font-size:11px!important}
.excel-left-info th,.excel-left-info td{border:1px solid #000!important;height:22px!important;padding:3px!important;text-align:center!important;color:#000!important;background:#fff}
.excel-left-info td{font-weight:700}
.excel-name-table td,.excel-name-table th{border:0!important;text-align:left!important;background:#fff!important}
.excel-name-table th{font-size:13px!important}
.excel-date-table td:first-child,.excel-date-table td{font-weight:700!important}
.goal-sheet-start-point,.goal-sheet-days-control{height:18px;border:1px solid #000;background:#ffff00;color:#000;font-size:9px;font-weight:700;padding:0 1px}
.goal-sheet-start-point{width:58px}.goal-sheet-days-control{width:42px}
.excel-month-table{float:none!important;width:203px!important;margin:0!important}
.excel-month-table th,.excel-month-table td{border:1px solid #000!important;padding:2px 3px!important;text-align:center!important;height:22px!important;font-size:10px!important;background:#fff;color:#000;text-transform:none}
.excel-month-table th{font-weight:700}
.excel-month-table tr:first-child th{background:#bfbfbf!important}
.goal-actual-text{display:block;min-height:12px;line-height:1.05;font-size:10px;font-weight:700}
.goal-actual-text:not(:empty){background:transparent;color:#000;padding:0}
.excel-blue-row td{background:#8eaadb!important}
.excel-orange-row td{background:#f4b183!important}
.excel-month-table tr:not(:first-child) td:nth-child(-n+2){background:#d9d9d9!important}
.excel-month-table tr:not(:first-child) td:nth-child(3){background:#fff!important}
.excel-month-table tr.excel-blue-row td{background:#8eaadb!important}
.excel-month-table tr.excel-orange-row td{background:#f4b183!important}
.excel-month-table tr.excel-tier-kis td:nth-child(-n+2){background:#cc6600!important}
.excel-month-table tr.excel-tier-1 td:nth-child(-n+2){background:#969696!important}
.excel-month-table tr.excel-tier-2 td:nth-child(-n+2){background:#ffcc66!important}
.excel-month-table tr.excel-tier-3 td:nth-child(-n+2){background:#00b0f0!important}
.excel-month-table tr:not(:first-child) td:nth-child(3){background:#fff!important}
.excel-map-wrap{overflow:hidden;align-self:end}
.excel-map-table{border-collapse:collapse!important;width:100%!important;table-layout:fixed;font-size:8px!important}
.excel-map-table th,.excel-map-table td{border:1px solid #000!important;text-align:center!important;vertical-align:middle!important;padding:2px!important;color:#000!important;background:#fff!important}
.excel-map-table th{height:23px!important;background:#bfbfbf!important;font-size:10px!important;font-weight:700!important;text-transform:none!important}
.excel-map-table td{height:23px!important}
.excel-map-table tr:first-child th{background:#bfbfbf!important}
.excel-map-table th span{float:right;writing-mode:vertical-rl;font-size:7px;font-weight:400}
.excel-number-col{width:41px!important}
.excel-sct-col{width:10px!important}
.excel-map-table th:first-child{width:41px!important;white-space:nowrap!important;font-size:8px!important}
.excel-number-cell{width:41px!important;background:#bfbfbf!important;font-size:8px!important;font-weight:400!important;white-space:nowrap!important}
.excel-map-concept{white-space:pre-line;display:block;line-height:1.05}
.excel-sct-head,.excel-sct-cell{background:#bfbfbf!important;font-weight:400!important;white-space:pre-line!important;line-height:1!important;padding:0!important}
.excel-map-table th.excel-sct-head{font-size:3px!important;font-weight:400!important}
.excel-sct-cell{font-size:6.2px!important}
.excel-sct-head,.excel-sct-cell span{writing-mode:vertical-rl;text-orientation:mixed;display:inline-block;max-height:100%;line-height:1}
.excel-sct-cell span{font-size:6.2px!important;font-weight:600!important}
.excel-concept-start{border-top:2px solid #555!important}
.excel-bottom-table{border-collapse:collapse!important;width:100%!important;margin:4px 0 0!important;font-size:10px!important;table-layout:fixed}
.excel-bottom-table th,.excel-bottom-table td{border:1px solid #000!important;height:17px!important;padding:1px 4px!important;text-align:center!important;color:#000!important}
.excel-bottom-label-col{width:260px!important}
.excel-bottom-table th{width:260px;background:#bfbfbf!important;text-align:right!important;font-weight:700!important;text-transform:none!important}
.excel-bottom-table tr:nth-child(3) td,
.excel-bottom-table tr:nth-child(4) td,
.excel-bottom-table tr:nth-child(5) td{background:#bfbfbf!important}
.excel-bottom-table td.excel-yellow{background:#ffff00!important}
.excel-bottom-table tr.excel-threshold-row th{background:#fff!important;text-align:left!important}
.excel-bottom-table tr.excel-threshold-row:nth-child(6) th{color:#8b4513!important}
.excel-bottom-table tr.excel-threshold-row:nth-child(7) th{color:#7f7f7f!important}
.excel-bottom-table tr.excel-threshold-row:nth-child(8) th{color:#c89100!important}
.excel-bottom-table tr.excel-threshold-row:nth-child(9) th{color:#00a6d6!important}
.excel-bottom-table .goal-sheet-select{height:13px;min-height:13px;border:1px solid #000;background:#ffff00;color:#000;font-size:8px;font-weight:700;line-height:1;padding:0 1px;text-align:center}
.excel-bottom-table .goal-sheet-repetition-input{width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-sizing:border-box}
.excel-bottom-table td.excel-threshold-base{background:#ddebf7!important;color:#000!important}
.excel-bronze{background:#cc6600!important;color:#000!important}
.excel-silver{background:#969696!important;color:#000!important}
.excel-gold{background:#ffcc66!important;color:#000!important}
.excel-platinum{background:#00b0f0!important;color:#000!important}
.excel-bottom-table td.excel-bronze{background:#cc6600!important}
.excel-bottom-table td.excel-silver{background:#969696!important}
.excel-bottom-table td.excel-gold{background:#ffcc66!important}
.excel-bottom-table td.excel-platinum{background:#00b0f0!important}
.goal-graph-page{padding:24px 0 28px;overflow:hidden;width:860px;box-sizing:border-box}
.goal-graph-page .goal-graph-svg{width:100%!important;max-height:none!important;margin:0!important;display:block;font-family:Arial,Helvetica,sans-serif}
.goal-graph-print-page{background:#f5f5f5}
.goal-graph-print-head{align-items:flex-start}
.goal-graph-print-search{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:#334155}
.goal-graph-print-search input{width:220px;border:1px solid #cbd5e1;border-radius:999px;padding:8px 12px;font:inherit;background:#fff}
.goal-graph-print-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(4.25in,1fr));gap:.18in;align-items:start}
.goal-graph-print-item{break-inside:avoid;page-break-inside:avoid;display:grid;gap:6px;justify-items:start}
.goal-graph-print-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:#334155;font-weight:800}
.goal-graph-print-meta input{width:16px;height:16px;accent-color:#203864}
.goal-graph-print-meta span{display:inline-flex;border-radius:999px;background:#eef2ff;color:#203864;padding:3px 8px;font-size:10px;text-transform:uppercase}
.goal-graph-print-meta span.subject-reading{background:#fce7f3;color:#be185d}
.goal-graph-print-card{position:relative;width:4.25in;height:4.8in;background:#fff;border:1px solid #bdbdbd;overflow:hidden;box-shadow:0 1px 2px #0001}
.goal-graph-print-svg{display:block;width:100%;height:100%;font-family:Arial,Helvetica,sans-serif}
.goal-graph-print-id{display:none}
.goal-transfer-print-page{background:#f5f5f5}
.goal-transfer-head{align-items:flex-start}
.goal-transfer-head .filters{grid-template-columns:150px minmax(220px,1fr) auto auto auto auto}
.goal-transfer-head .filters button{height:38px;padding:0 12px;font-size:12px}
.goal-transfer-selected-status{display:inline-flex;align-items:center;gap:6px;background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:999px;padding:7px 11px;font-weight:900;font-size:12px;margin:0 0 12px}
.goal-transfer-preview{display:block;padding:18px;background:#e5e7eb;overflow:auto}
.goal-transfer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5in,1fr));gap:18px;align-items:start;justify-items:center}
.goal-transfer-card-item{position:relative;break-inside:avoid;page-break-inside:avoid}
.goal-transfer-card-item.is-filtered{display:none}
.goal-transfer-card-item.selected .goal-transfer-card{outline:3px solid #2563eb;outline-offset:4px}
.goal-transfer-card-pick{position:absolute;top:8px;left:8px;display:inline-flex!important;flex-direction:row;align-items:center;gap:5px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:4px 7px;font-size:10px;color:#334155;z-index:4;font-weight:900}
.goal-transfer-card-item.subject-math .goal-transfer-card-pick span{color:#1d4ed8}
.goal-transfer-card-item.subject-reading .goal-transfer-card-pick span{color:#db2777}
.goal-transfer-card-pick input{width:13px;height:13px;margin:0}
.goal-transfer-card{width:5in;height:6.6in;background:#fff;border:0;outline:2pt solid #d1d5db;outline-offset:0;box-shadow:0 1px 3px #0002;overflow:hidden;position:relative;font-family:Arial,Helvetica,sans-serif;color:#000}
.goal-transfer-art{position:absolute;inset:0;transform:scaleX(-1);transform-origin:center}
.goal-transfer-card .goal-graph-print-card{border:0!important;box-shadow:none!important;width:4.25in!important;height:4.8in!important}
.goal-transfer-card .goal-graph-print-svg{width:4.25in!important;height:4.8in!important}
.gt-name,.gt-phone,.gt-enroll,.gt-birth,.gt-start,.gt-grade,.gt-level,.gt-month{position:absolute;font-family:Arial,Helvetica,sans-serif;font-weight:700;line-height:1;text-align:center;white-space:nowrap;color:#000}
.gt-name{left:.10in;top:.30in;width:1.94in;font-size:17pt;text-align:left;overflow:hidden;text-overflow:clip}
.gt-name-long{font-size:14.5pt}
.gt-name-very-long{font-size:13pt}
.gt-name-extra-long{font-size:11.5pt}
.gt-phone{left:1.85in;top:.20in;width:1.65in;font-size:12pt}
.gt-enroll{top:.20in;width:.34in;font-size:12pt}.gt-enroll-m{left:3.56in}.gt-enroll-d{left:4.06in}.gt-enroll-y{left:4.50in}
.gt-birth{top:.65in;width:.42in;font-size:12pt}.gt-birth-m{left:2.09in}.gt-birth-d{left:2.61in}.gt-birth-y{left:3.09in}
.gt-start{left:3.81in;top:.66in;width:.45in;font-size:12pt}.gt-grade{left:3.82in;top:1.16in;width:.38in;font-size:12pt}
.gt-graph{position:absolute;left:.71in;top:1.50in;width:4.25in;height:4.8in;overflow:hidden}
.gt-level{left:.09in;width:.20in;font-size:13pt}
.gt-level-1{top:1.72in}.gt-level-2{top:2.32in}.gt-level-3{top:2.92in}.gt-level-4{top:3.52in}.gt-level-5{top:4.12in}.gt-level-6{top:4.72in}.gt-level-7{top:5.32in}.gt-level-8{top:5.92in}
.gt-month{top:6.35in;width:.18in;font-size:12pt}
.gt-month-1{left:.77in}.gt-month-2{left:1.13in}.gt-month-3{left:1.48in}.gt-month-4{left:1.84in}.gt-month-5{left:2.19in}.gt-month-6{left:2.55in}.gt-month-7{left:2.90in}.gt-month-8{left:3.26in}.gt-month-9{left:3.61in}.gt-month-10{left:3.97in}.gt-month-11{left:4.32in}.gt-month-12{left:4.68in}
@media(max-width:1100px){.excel-student-data-sheet,.excel-goal-sheet,.goal-graph-page{width:100%;overflow:auto}.excel-projection-body{grid-template-columns:210px 920px}.excel-goal-sheet{padding:12px}.goal-print-sheet{padding:8px!important}}
@media print{
  @page goalPlannerLandscape{size:letter landscape;margin:.22in}
  @page goalPlannerPortrait{size:letter portrait;margin:.2in}
  body:has(.goal-planner-page){background:#fff!important}
  body:has(.goal-planner-page) .goal-planner-page{page:goalPlannerLandscape}
  body.goal-print-portrait:has(.goal-planner-page) .goal-planner-page{page:goalPlannerPortrait}
  body.goal-print-landscape:has(.goal-planner-page) .goal-planner-page{page:goalPlannerLandscape}
  body:has(.goal-planner-page) .goal-print-sheet{display:block!important;background:#fff!important;padding:0!important}
  .excel-student-data-sheet,.excel-goal-sheet{width:100%!important;max-width:none!important;box-shadow:none!important;border:0!important;break-after:page;page-break-after:always;overflow:hidden!important}
  body:has(.goal-planner-page) .excel-student-data-sheet{display:none!important}
  body:has(.goal-planner-page) .goal-graph-memo-row{display:block!important}
  body:has(.goal-planner-page) .goal-planner-memo-panel{display:none!important}
  .goal-graph-page{width:10.18in!important;height:7.58in!important;max-width:none!important;box-shadow:none!important;border:0!important;break-after:page;page-break-after:always;overflow:hidden!important;margin:0 auto!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .goal-graph-page .goal-graph-svg{width:10.18in!important;height:auto!important;max-height:7.58in!important}
  .goal-print-sheet > .goal-graph-page:last-of-type{break-after:auto!important;page-break-after:auto!important}
  body:has(.goal-planner-page) .goal-note{display:none!important}
  body.goal-print-portrait:has(.goal-planner-page) .goal-graph-page{width:7.92in!important;height:10.05in!important;margin:0 auto!important;padding:0!important}
  body.goal-print-portrait:has(.goal-planner-page) .goal-graph-page .goal-graph-svg{width:7.92in!important;max-height:10.05in!important}
  body.goal-print-portrait:has(.goal-planner-page) .excel-goal-sheet{transform:scale(.74);transform-origin:top left;width:10.35in!important;min-height:10.25in!important}
  .excel-student-data-sheet{min-height:7.2in!important;padding:.18in 0 0 .32in!important}
  .excel-goal-sheet{padding:.08in!important}
  .excel-projection-body{grid-template-columns:1.85in 1fr!important;gap:.07in!important}
  .excel-left-info table{width:1.75in!important;font-size:6.6pt!important}
  .excel-month-table{width:1.75in!important}
  .excel-map-table{font-size:5.2pt!important}
  .excel-map-table th{font-size:6.5pt!important;height:.18in!important}
  .excel-bottom-table{font-size:6.3pt!important}
  .excel-date-table .goal-sheet-start-point,
  .excel-date-table .goal-sheet-days-control{
    -webkit-appearance:none!important;
    appearance:none!important;
    background:#ffff00!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
    margin:0!important;
    text-align:center!important;
    text-align-last:center!important;
    color:#000!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-weight:700!important;
  }
  .excel-date-table .goal-sheet-start-point::-ms-expand,
  .excel-date-table .goal-sheet-days-control::-ms-expand{
    display:none!important;
  }
  .excel-bottom-label-col,
  .excel-bottom-table th{width:calc(1.85in + .07in + 41px)!important}
  .excel-projection-header{height:.42in!important;grid-template-columns:1.9in 1fr!important}
  .excel-kumon-word{font-size:23pt!important}
  .excel-kumon-word span{width:.33in!important;height:.33in!important;vertical-align:-.06in!important}
  .excel-actions button{height:.18in!important;font-size:5.7pt!important;padding:0 .08in!important}
  .goal-print-sheet,.goal-print-sheet *,.goal-graph-svg,.goal-graph-svg *,.goal-graph-print-svg,.goal-graph-print-svg *,.excel-goal-sheet,.excel-goal-sheet *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
  body:has(.goal-planner-page) .excel-bottom-table select,
  body:has(.goal-planner-page) .excel-bottom-table .goal-sheet-select{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;background-image:none!important;background:#ffff00!important;color:#000!important;border:0!important;padding:0!important;text-align:center!important}
  body:has(.goal-planner-page) .excel-bottom-table select::-ms-expand{display:none!important}
}
@media print{
  @page goalGraphPrint{size:letter portrait;margin:.22in}
  @page goalGraphPrintLandscape{size:letter landscape;margin:.18in}
  body:has(.goal-graph-print-page){background:#fff!important}
  body:has(.goal-graph-print-page){page:goalGraphPrint}
  body.goal-print-landscape:has(.goal-graph-print-page){page:goalGraphPrintLandscape}
  body.goal-print-portrait:has(.goal-graph-print-page){page:goalGraphPrint}
  body:has(.goal-graph-print-page) header,
  body:has(.goal-graph-print-page) nav,
  body:has(.goal-graph-print-page) .goal-graph-print-head,
  body:has(.goal-graph-print-page) .goal-graph-print-meta{display:none!important}
  body:has(.goal-graph-print-page) main{padding:0!important;max-width:none!important}
  body:has(.goal-graph-print-page) .panel{box-shadow:none!important;border:0!important;padding:0!important;overflow:visible!important}
  .goal-graph-print-grid{display:grid!important;grid-template-columns:repeat(2,4.25in)!important;gap:0!important;align-items:start!important;justify-content:start!important;padding-top:0!important}
  body.goal-print-landscape:has(.goal-graph-print-page) .goal-graph-print-grid{grid-template-columns:repeat(2,4.25in)!important;gap:0!important;padding-top:0!important}
  .goal-graph-print-item{width:4.25in!important;height:4.8in!important;break-inside:avoid!important;page-break-inside:avoid!important;display:block!important}
  body.goal-print-landscape:has(.goal-graph-print-page) .goal-graph-print-item{width:4.25in!important;height:4.8in!important}
  body.goal-graph-print-selected-mode .goal-graph-print-item:not(.print-picked){display:none!important}
  .goal-graph-print-card{width:4.25in!important;height:4.8in!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
  .goal-graph-print-svg{width:4.25in!important;height:4.8in!important}
  body.goal-print-landscape:has(.goal-graph-print-page) .goal-graph-print-card{width:4.25in!important;height:4.8in!important}
  body.goal-print-landscape:has(.goal-graph-print-page) .goal-graph-print-svg{width:4.25in!important;height:4.8in!important}
  .goal-graph-print-id{position:absolute;right:.08in;top:.08in;z-index:3;display:block!important;max-width:1.1in;padding:.025in .04in;background:#fff;color:#111827;font-family:Arial,Helvetica,sans-serif;text-align:right;line-height:1.05}
  body.goal-print-landscape:has(.goal-graph-print-page) .goal-graph-print-id{left:auto;right:.08in;top:.08in;width:auto;max-width:1.1in}
  .goal-graph-print-id b{display:block;font-size:7.4pt;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .goal-graph-print-id span{display:block;margin-top:.02in;font-size:6.6pt;font-weight:800;color:#334155;text-transform:uppercase}
  .goal-graph-print-card,.goal-graph-print-card *,.goal-graph-print-svg,.goal-graph-print-svg *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
  @page goalTransferCard{size:letter portrait;margin:.25in}
  body:has(.goal-transfer-print-page){background:#fff!important;page:goalTransferCard}
  body:has(.goal-transfer-print-page) header,
  body:has(.goal-transfer-print-page) nav,
  body:has(.goal-transfer-print-page) .goal-planner-tabs,
  body:has(.goal-transfer-print-page) .goal-transfer-head{display:none!important}
  body:has(.goal-transfer-print-page) main{padding:0!important;max-width:none!important}
	  body:has(.goal-transfer-print-page) .panel{box-shadow:none!important;border:0!important;padding:0!important;overflow:visible!important}
	  .goal-transfer-preview{display:block!important;padding:0!important;background:#fff!important;overflow:visible!important}
		  .goal-transfer-card{width:5in!important;height:6.6in!important;border:0!important;outline:2pt solid #d1d5db!important;outline-offset:0!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important;margin:0 auto!important}
	  .goal-transfer-selected-status,.goal-transfer-card-pick{display:none!important}
	  body.goal-transfer-selected-mode .goal-transfer-card-item:not(.print-picked){display:none!important}
		  @page goalTransferCardLetter{size:letter landscape;margin:.25in}
		  body.goal-transfer-letter-print:has(.goal-transfer-print-page){page:goalTransferCardLetter}
		  body.goal-transfer-letter-print .goal-transfer-card-grid{display:grid!important;grid-template-columns:repeat(2,5in)!important;gap:.08in!important;justify-content:center!important;align-items:start!important;padding:0!important}
		  body.goal-transfer-letter-print .goal-transfer-card-item{display:block!important;width:5in!important;height:6.6in!important;break-inside:avoid!important;page-break-inside:avoid!important;transform:translateY(.7in)!important}
			  body.goal-transfer-letter-print.goal-transfer-single-print .goal-transfer-card-grid{display:grid!important;grid-template-columns:repeat(2,5in)!important;gap:.08in!important;justify-content:center!important;align-items:start!important;width:auto!important;margin:0!important}
			  body.goal-transfer-letter-print.goal-transfer-single-print .goal-transfer-card-item.print-picked{grid-column:2!important;margin-left:0!important}
		  body.goal-transfer-letter-print .goal-transfer-card{margin:0!important;outline:2pt solid #d1d5db!important;outline-offset:0!important}
	  .goal-transfer-card,.goal-transfer-card *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
	}
.set-recordbook tr.linked-plan-highlight .rb-page-chip.linked-plan-highlight{
  background:#dbeafe!important;
  border-color:#2563eb!important;
  color:#1e3a8a!important;
}

/* Set calendar: mark new concept starting work in red text */
.set-calendar-plan.new-concept-start span,
.set-calendar-plan.new-concept-start i{
  color:#dc2626!important;
  font-weight:1000!important;
}
.set-calendar-plan.new-concept-start{
  box-shadow:inset 0 0 0 1px rgba(220,38,38,.18);
}

/* Set List: show a compact save bar only after yellow cells are selected */
.cn-save-form .cn-save-row{
  display:none!important;
}
.cn-save-form.has-selection .cn-save-row{
  display:flex!important;
  position:sticky!important;
  bottom:8px!important;
  z-index:50!important;
  margin:10px auto 0!important;
  padding:8px 10px!important;
  width:max-content!important;
  max-width:calc(100% - 20px)!important;
  background:#ffffff!important;
  border:2px solid #facc15!important;
  border-radius:12px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.18)!important;
  align-items:center!important;
  gap:8px!important;
}
.cn-save-form.has-selection .cn-save-row .cn-progress-link{
  display:none!important;
}
.cn-save-form.has-selection .cn-save-row label{
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  font-size:11px!important;
}
.cn-save-form.has-selection .cn-save-row input[type="date"]{
  padding:6px 8px!important;
  font-size:12px!important;
}
.cn-save-form.has-selection .cn-save-row .cn-save{
  padding:8px 12px!important;
  background:#203864!important;
}
.cn-save-form.has-selection .cn-plan-note{
  position:relative!important;
}
.cn-save-form.has-selection .cn-plan-note summary{
  list-style:none!important;
  cursor:pointer!important;
  border:1px solid #cbd5e1!important;
  border-radius:9px!important;
  padding:7px 10px!important;
  font-size:11px!important;
  font-weight:900!important;
  background:#f8fafc!important;
}
.cn-save-form.has-selection .cn-plan-note summary::-webkit-details-marker{
  display:none!important;
}
.cn-save-form.has-selection .cn-plan-note textarea{
  position:absolute!important;
  right:0!important;
  bottom:38px!important;
  width:220px!important;
  min-height:62px!important;
  padding:8px!important;
  font-size:12px!important;
  border:1px solid #94a3b8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 10px 22px rgba(15,23,42,.16)!important;
  z-index:60!important;
}
.cn-level-caption .cn-plan-note-always{
  margin-left:auto!important;
  position:relative!important;
}
.cn-level-caption .cn-plan-note-always summary{
  list-style:none!important;
  cursor:pointer!important;
  border:1px solid #94a3b8!important;
  border-radius:9px!important;
  padding:6px 10px!important;
  font-size:11px!important;
  font-weight:1000!important;
  background:#fff!important;
  color:#203864!important;
}
.cn-level-caption .cn-plan-note-always summary::-webkit-details-marker{
  display:none!important;
}
.cn-level-caption .cn-plan-note-always textarea{
  position:absolute!important;
  right:0!important;
  top:34px!important;
  width:240px!important;
  min-height:70px!important;
  padding:8px!important;
  font-size:12px!important;
  border:1px solid #94a3b8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 12px 26px rgba(15,23,42,.2)!important;
  z-index:70!important;
}
.cn-level-caption .cn-plan-note-field{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  font-size:11px!important;
  font-weight:1000!important;
  color:#203864!important;
  white-space:nowrap!important;
}
.cn-grid-wrap .cn-level-caption{
  height:34px!important;
  min-height:34px!important;
  overflow:visible!important;
  align-items:center!important;
}
.cn-level-caption .cn-plan-note-field input{
  width:210px!important;
  height:30px!important;
  padding:5px 8px!important;
  font-size:12px!important;
  border:1px solid #94a3b8!important;
  border-radius:9px!important;
  background:#fff!important;
}
.cn-save-form.has-selection .cn-save-row .cn-selection-status{
  font-size:10px!important;
  max-width:260px!important;
}

/* Right graph: visually merge adjacent 5-page cells that belong to one 10-page assignment */
.cn-grid.cn-grid-blocks .cn-grid-cell.merge-next{
  margin-right:-1px!important;
  border-top-right-radius:0!important;
  border-bottom-right-radius:0!important;
  box-shadow:1px 0 0 currentColor!important;
}
.cn-grid.cn-grid-blocks .cn-grid-cell.merge-prev{
  margin-left:-1px!important;
  border-top-left-radius:0!important;
  border-bottom-left-radius:0!important;
  box-shadow:-1px 0 0 currentColor!important;
}
.cn-grid.cn-grid-blocks .cn-grid-cell.merge-prev.merge-next{
  border-radius:0!important;
}

/* Right graph overlay: 10-page assignments appear as one large rectangle */
.cn-grid-stack{position:relative}.cn-assignment-overlay{position:absolute;inset:4px;display:grid;grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr));grid-template-rows:repeat(var(--cn-rows,6),28px);gap:1px;pointer-events:none}.cn-assignment-block{display:block;border-radius:4px;pointer-events:auto;z-index:8;border:1px solid transparent}.cn-assignment-block.mastered,.cn-assignment-block.review{background:#bbf7d0!important;border-color:#4ade80!important}.cn-assignment-block.weak,.cn-assignment-block.correction{background:#fecaca!important;border-color:#f87171!important}.cn-assignment-block.planned,.cn-assignment-block.needs-prep{background:#b8c0cc!important;border-color:#7f8a99!important}.cn-assignment-block:hover{outline:2px solid #111827!important;outline-offset:1px!important}
.cn-assignment-overlay .cn-assignment-block.planned,.cn-assignment-overlay .cn-assignment-block.needs-prep{background:#b8c0cc!important;border-color:#7f8a99!important}
.cn-grid.cn-grid-blocks .cn-grid-cell.merge-prev,
.cn-grid.cn-grid-blocks .cn-grid-cell.merge-next{visibility:hidden!important}

/* Graph drag/drop target feedback */
.cn-grid-cell.drop-target{outline:3px dashed #2563eb!important;outline-offset:-2px!important;background:#dbeafe!important}
.cn-assignment-block.saving,.cn-grid-cell.saving{opacity:.65!important;filter:saturate(.8)!important}

/* Set List left side: show tests as memo rows instead of page-score boxes */
.cn-test-row .cn-test-memo{
  min-height:29px;
  display:grid;
  grid-template-columns:72px 1fr;
  align-items:center;
  gap:6px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-left:4px solid #f97316;
  border-radius:8px;
  padding:5px 7px;
  font-size:11px;
  color:#111827;
}
.cn-test-row .cn-test-memo b{color:#9a3412;font-size:11px;white-space:nowrap}.cn-test-row .cn-test-memo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;color:#334155}

/* 3/3/4 pieces can show as partial fragments inside a 5-page graph cell */
.cn-assignment-block[style*="width:calc"]{justify-self:start!important}

/* Exact page-width overlay: 3/3/4 pieces show true 3-page, 3-page, 4-page widths */
.cn-assignment-overlay{
  grid-template-columns:repeat(200,minmax(0,1fr))!important;
  column-gap:0!important;
  row-gap:1px!important;
  inset:4px!important;
}
.cn-assignment-block{
  min-width:0!important;
  border:1px solid rgba(15,23,42,.28)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.55) inset!important;
}
.cn-assignment-block + .cn-assignment-block{
  outline-offset:1px!important;
}

/* Left score rows: align partial 3/3/4 work to true 10-page width, not 5-page stretched width */
.cn-left .cn-score-track{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:1px!important;
}
.cn-left .cn-score-pages{
  grid-template-columns:repeat(var(--page-count,5),minmax(0,1fr))!important;
  gap:1px!important;
}
.cn-left .cn-score-pages .cn-score-cell{
  min-width:0!important;
  width:auto!important;
}
body.delete-mode .cn-score-group[data-id]{cursor:crosshair!important}
body.delete-mode .cn-score-group[data-id]:hover{outline:2px dashed #dc2626!important;outline-offset:1px!important}

/* Compact Set List vertical space so the calendar stays visible */
.cn-grid.cn-grid-blocks{
  grid-template-rows:repeat(var(--cn-rows,6),20px)!important;
}
.cn-grid.cn-grid-blocks .cn-grid-cell{
  min-height:20px!important;
}
.cn-assignment-overlay{
  grid-template-rows:repeat(var(--cn-rows,6),20px)!important;
}
.cn-range-strip{
  grid-template-rows:repeat(var(--cn-rows,6),5px)!important;
  margin-bottom:4px!important;
}
.cn-grid-wrap{
  padding-top:6px!important;
  padding-bottom:6px!important;
}
.cn-axis.cn-axis-boxes{
  height:20px!important;
}
.cn-axis-box b{
  font-size:10px!important;
}
.cn-concept-strip{
  height:20px!important;
}
.cn-concept-segment{
  line-height:16px!important;
  font-size:8px!important;
  padding:1px 4px!important;
}

/* Left score list: keep it aligned with the Set view and scroll inside the panel */
.cn-left{
  max-height:calc(100vh - 122px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.cn-score-group.linked-plan-highlight{
  scroll-margin-top:72px!important;
}

/* Test memo rows: tighter spacing + smaller text so more memo is visible */
.cn-test-row{
  min-height:24px!important;
  height:auto!important;
  margin-bottom:2px!important;
}
.cn-test-row .cn-test-memo{
  min-height:23px!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:3px!important;
  padding:3px 5px!important;
  border-radius:6px!important;
  font-size:9px!important;
  line-height:1.15!important;
}
.cn-test-row .cn-test-memo b{
  font-size:9px!important;
  line-height:1.1!important;
}
.cn-test-row .cn-test-memo span{
  font-size:9px!important;
  line-height:1.15!important;
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

/* Set List record-book side table */
.set-month-calendar{
  display:inline-block!important;
  width:calc(100% - 218px)!important;
  vertical-align:top!important;
  margin-right:8px!important;
}
.set-recordbook{
  display:inline-block!important;
  width:205px!important;
  vertical-align:top!important;
  margin-top:12px!important;
  background:#fff!important;
  border:1px solid #dbe6f3!important;
  border-radius:12px!important;
  overflow:hidden!important;
  box-shadow:0 8px 20px #1018280a!important;
}
.set-recordbook-title{
  padding:6px 8px!important;
  font-size:11px!important;
  font-weight:1000!important;
  color:#0f172a!important;
  background:#f1f5f9!important;
  border-bottom:1px solid #dbe6f3!important;
}
.set-recordbook table{
  width:100%!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  font-size:9px!important;
}
.set-recordbook th,.set-recordbook td{
  border:1px solid #e2e8f0!important;
  padding:2px 3px!important;
  height:18px!important;
  line-height:12px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.set-recordbook th{
  background:#f8fafc!important;
  color:#334155!important;
  font-weight:1000!important;
}
.set-recordbook th:nth-child(1),.set-recordbook td:nth-child(1){width:28px!important;text-align:center!important;font-weight:900!important;color:#475569!important}
.set-recordbook th:nth-child(2),.set-recordbook td:nth-child(2){width:28px!important;text-align:center!important}
.set-recordbook th:nth-child(3),.set-recordbook td:nth-child(3){width:38px!important;text-align:center!important}
.set-recordbook th:nth-child(4),.set-recordbook td:nth-child(4){width:auto!important}
@media(max-width:1100px){.set-month-calendar{width:100%!important;margin-right:0!important}.set-recordbook{width:100%!important;display:block!important}}

/* Record-book strip pinned on the right from graph top to calendar bottom */
.cn-right{
  position:relative!important;
  padding-right:218px!important;
}
.cn-right .cn-grid-wrap,
.cn-right .set-month-calendar{
  width:100%!important;
  max-width:100%!important;
  display:block!important;
  margin-right:0!important;
}
.cn-right .set-recordbook{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:205px!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.set-recordbook table{
  flex:1!important;
  height:100%!important;
}
.set-recordbook tbody tr{height:calc((100% - 20px) / 31)!important}
.set-recordbook th,.set-recordbook td{
  height:auto!important;
  padding:1px 3px!important;
  font-size:8.5px!important;
}
@media(max-width:1100px){
  .cn-right{padding-right:0!important}
  .cn-right .set-recordbook{position:static!important;width:100%!important;margin-top:8px!important}
}

/* Editable Record Book cells */
.set-recordbook-title small{float:right;font-size:8px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.set-recordbook input{width:100%;height:100%;border:0;background:transparent;padding:1px 2px;font:inherit;color:#0f172a;text-align:center;outline:none}
.set-recordbook .rb-pages{text-align:left;font-weight:800;color:#1e293b}
.set-recordbook input:focus{background:#fff7cc;box-shadow:0 0 0 1px #f59e0b inset;border-radius:3px}
.set-recordbook tr.rb-saving input{background:#e0f2fe!important}
.set-recordbook tr.rb-saved input{background:#dcfce7!important}
.set-recordbook tr.rb-error input{background:#fee2e2!important}

/* Record Book page drag picker */
.rb-page-picker{
  position:fixed;
  z-index:9999;
  width:360px;
  max-width:calc(100vw - 24px);
  background:#fff;
  border:1px solid #cbd5e1;
  border-radius:12px;
  box-shadow:0 18px 45px rgba(15,23,42,.22);
  padding:8px;
  user-select:none;
}
.rb-page-picker-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:10px;
  font-weight:1000;
  color:#334155;
  margin-bottom:6px;
}
.rb-page-picker-head button{
  border:0;
  background:#f1f5f9;
  border-radius:999px;
  width:14px;
  height:14px;
  cursor:pointer;
  font-weight:1000;
}
.rb-page-picker-grid{
  display:grid;
  grid-template-columns:repeat(20,1fr);
  gap:2px;
}
.rb-page-pick{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:3px;
  min-width:0;
  height:18px;
  padding:0;
  font-size:8px;
  line-height:16px;
  text-align:center;
  cursor:crosshair;
}
.rb-page-pick:hover{background:#dbeafe;border-color:#93c5fd}
.rb-page-pick.selected{background:#fde68a!important;border-color:#f59e0b!important;color:#7c2d12;font-weight:1000}
.rb-pages[readonly]{cursor:pointer;background:#fff!important}

/* 10-page block picker for record book */
.rb-page-block-picker{width:300px!important}
.rb-page-block-picker .rb-page-picker-grid{grid-template-columns:repeat(2,1fr)!important;gap:4px!important}
.rb-page-block-picker .rb-page-pick{height:24px!important;font-size:10px!important;line-height:22px!important;border-radius:6px!important;font-weight:900!important;cursor:pointer!important}

/* Fix record-book page picker readability/width */
.rb-page-picker.rb-page-block-picker{
  width:190px!important;
  padding:6px!important;
}
.rb-page-block-picker .rb-page-picker-head{
  font-size:9px!important;
  gap:4px!important;
  margin-bottom:5px!important;
}
.rb-page-block-picker .rb-page-picker-current{
  display:none!important;
}
.rb-page-block-picker .rb-page-picker-grid{
  grid-template-columns:1fr!important;
  gap:2px!important;
}
.rb-page-block-picker .rb-page-pick{
  height:20px!important;
  line-height:18px!important;
  font-size:10px!important;
  color:#0f172a!important;
  background:#f8fafc!important;
  border:1px solid #cbd5e1!important;
  text-align:center!important;
}
.rb-page-block-picker .rb-page-pick:hover{
  background:#dbeafe!important;
  color:#0f172a!important;
}
.rb-page-block-picker .rb-page-pick.selected{
  background:#fde68a!important;
  color:#7c2d12!important;
  border-color:#f59e0b!important;
}

/* Record-book picker follows selected packet size */
.rb-page-block-picker[data-step="5"]{width:230px!important}
.rb-page-block-picker[data-step="5"] .rb-page-picker-grid{grid-template-columns:repeat(2,1fr)!important}
.rb-page-block-picker[data-step="3"]{width:250px!important}
.rb-page-block-picker[data-step="3"] .rb-page-picker-grid{grid-template-columns:repeat(2,1fr)!important}
.rb-page-block-picker[data-step="20"]{width:170px!important}
.rb-page-block-picker[data-step="20"] .rb-page-picker-grid{grid-template-columns:1fr!important}

/* 3/3/4 picker: compact two columns of pieces */
.rb-page-block-picker[data-step="334"]{width:245px!important}
.rb-page-block-picker[data-step="334"] .rb-page-picker-grid{grid-template-columns:repeat(2,1fr)!important;max-height:520px!important;overflow:auto!important}
.rb-page-block-picker[data-step="334"] .rb-page-pick:nth-child(3n){margin-bottom:4px!important}

/* Multiple record-book rows per date */
.set-recordbook tr.rb-add-row td{background:#fbfdff!important;color:#94a3b8!important}
.set-recordbook tr.rb-add-row input{color:#64748b!important;font-style:italic!important}
.set-recordbook tr.rb-add-row input:not(:focus):placeholder-shown{opacity:.65!important}
.rb-level[readonly]{cursor:pointer;background:#fff!important}
.rb-level-picker{position:fixed;z-index:10000;width:110px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 18px 45px rgba(15,23,42,.22);padding:6px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;max-height:320px;overflow:auto}
.rb-level-pick{height:22px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;border-radius:6px;font-size:10px;font-weight:900;cursor:pointer}
.rb-level-pick:hover,.rb-level-pick.selected{background:#dbeafe!important;border-color:#60a5fa!important;color:#0f172a!important}

/* Record Book: same-date plans attach sideways instead of stacking down */
.rb-sidebook{width:315px!important}
.cn-right{padding-right:330px!important}
.rb-sidebook table{table-layout:fixed!important}
.rb-sidebook th:first-child,.rb-sidebook td:first-child{width:24px!important;text-align:center!important}
.rb-sidebook th:not(:first-child){font-size:8px!important;text-align:center!important}
.rb-sidebook td{padding:1px!important;vertical-align:top!important}
.rb-entry{display:grid!important;grid-template-columns:22px 28px minmax(42px,1fr)!important;gap:1px!important;align-items:center!important;min-height:18px!important}
.rb-entry input{height:16px!important;min-height:16px!important;padding:0 1px!important;font-size:8px!important;line-height:14px!important;border-radius:2px!important;background:#fff!important}
.rb-entry .rb-session{text-align:center!important;color:#334155!important;font-weight:900!important}
.rb-entry .rb-level{text-align:center!important;color:#0f172a!important;font-weight:900!important}
.rb-entry .rb-pages{text-align:left!important;color:#1e293b!important;font-weight:900!important}
.rb-add-entry input:not(:focus):placeholder-shown{opacity:.55!important}
@media(max-width:1100px){.cn-right{padding-right:0!important}.rb-sidebook{width:100%!important}}

/* Revert record book from cramped sideways layout back to readable stacked rows */
.cn-right{padding-right:218px!important}
.cn-right .set-recordbook:not(.rb-sidebook),
.cn-right .set-recordbook{
  width:205px!important;
}
.set-recordbook.rb-sidebook{width:205px!important}
.set-recordbook table{table-layout:fixed!important}
.set-recordbook th:nth-child(1),.set-recordbook td:nth-child(1){width:28px!important;text-align:center!important}
.set-recordbook th:nth-child(2),.set-recordbook td:nth-child(2){width:28px!important;text-align:center!important}
.set-recordbook th:nth-child(3),.set-recordbook td:nth-child(3){width:38px!important;text-align:center!important}
.set-recordbook th:nth-child(4),.set-recordbook td:nth-child(4){width:auto!important}
.set-recordbook tr{height:auto!important;min-height:18px!important}
.set-recordbook input{font-size:9px!important;color:#0f172a!important;background:transparent!important;opacity:1!important}
.rb-add-row td{background:#fbfdff!important}
.rb-add-row input:not(:focus):placeholder-shown{opacity:.6!important}

/* Record Book one row per date; multiple plans live inside Page cell */
.cn-right{padding-right:285px!important}
.cn-right .set-recordbook.rb-one-row{width:270px!important}
.rb-one-row th:nth-child(1),.rb-one-row td:nth-child(1){width:24px!important;text-align:center!important}
.rb-one-row th:nth-child(2),.rb-one-row td:nth-child(2){width:28px!important;text-align:center!important}
.rb-one-row th:nth-child(3),.rb-one-row td:nth-child(3){width:34px!important;text-align:center!important}
.rb-one-row th:nth-child(4),.rb-one-row td:nth-child(4){width:auto!important}
.rb-one-row td{height:22px!important;padding:1px 2px!important;vertical-align:middle!important}
.rb-page-cell{display:flex!important;align-items:center!important;gap:2px!important;min-width:0!important;overflow:visible!important;flex-wrap:wrap!important}
.rb-page-chip{display:inline-block!important;max-width:62px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background:#eef6ff!important;border:1px solid #bfdbfe!important;color:#1e3a8a!important;border-radius:4px!important;padding:1px 3px!important;font-size:8px!important;font-weight:900!important;line-height:13px!important;flex:0 0 auto!important}
.rb-one-row .rb-pages{min-width:42px!important;flex:1 1 42px!important;text-align:left!important;color:#1e293b!important;font-weight:900!important;background:#fff!important;border-radius:3px!important}
.rb-one-row .rb-level,.rb-one-row .rb-session{background:#fff!important;color:#0f172a!important;font-weight:900!important}
@media(max-width:1100px){.cn-right{padding-right:0!important}.cn-right .set-recordbook.rb-one-row{width:100%!important}}

/* Record Book simple one-plan-per-date view */
.cn-right{padding-right:218px!important}
.cn-right .set-recordbook{width:205px!important}
.set-recordbook th:nth-child(1),.set-recordbook td:nth-child(1){width:28px!important;text-align:center!important}
.set-recordbook th:nth-child(2),.set-recordbook td:nth-child(2){width:28px!important;text-align:center!important}
.set-recordbook th:nth-child(3),.set-recordbook td:nth-child(3){width:38px!important;text-align:center!important}
.set-recordbook th:nth-child(4),.set-recordbook td:nth-child(4){width:auto!important}
.set-recordbook td{height:18px!important;padding:1px 3px!important}
.set-recordbook input{font-size:9px!important;color:#0f172a!important;background:transparent!important;opacity:1!important}

/* Restore previous Record Book version: one date row, multiple plans visible in Page cell */
.cn-right{padding-right:285px!important}
.cn-right .set-recordbook.rb-one-row{width:270px!important}
.rb-one-row th:nth-child(1),.rb-one-row td:nth-child(1){width:24px!important;text-align:center!important}
.rb-one-row th:nth-child(2),.rb-one-row td:nth-child(2){width:28px!important;text-align:center!important}
.rb-one-row th:nth-child(3),.rb-one-row td:nth-child(3){width:34px!important;text-align:center!important}
.rb-one-row th:nth-child(4),.rb-one-row td:nth-child(4){width:auto!important}
.rb-one-row td{height:22px!important;padding:1px 2px!important;vertical-align:middle!important}
.rb-page-cell{display:flex!important;align-items:center!important;gap:2px!important;min-width:0!important;overflow:visible!important;flex-wrap:wrap!important}
.rb-page-chip{display:inline-block!important;max-width:62px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background:#eef6ff!important;border:1px solid #bfdbfe!important;color:#1e3a8a!important;border-radius:4px!important;padding:1px 3px!important;font-size:8px!important;font-weight:900!important;line-height:13px!important;flex:0 0 auto!important}
.rb-one-row .rb-pages{min-width:42px!important;flex:1 1 42px!important;text-align:left!important;color:#1e293b!important;font-weight:900!important;background:#fff!important;border-radius:3px!important}
.rb-one-row .rb-level,.rb-one-row .rb-session{background:#fff!important;color:#0f172a!important;font-weight:900!important}
@media(max-width:1100px){.cn-right{padding-right:0!important}.cn-right .set-recordbook.rb-one-row{width:100%!important}}

.set-recordbook .rb-page-chip.rb-prep{
  background:#dbeafe!important;
  border-color:#93c5fd!important;
  color:#1e3a8a!important;
}
.set-recordbook .rb-page-chip.rb-missed{
  background:#f1f5f9!important;
  background-image:repeating-linear-gradient(135deg,rgba(100,116,139,.28) 0 2px,transparent 2px 6px)!important;
  border-color:#cbd5e1!important;
  color:#475569!important;
}
.set-recordbook .rb-page-chip.rb-done{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}

/* Restore stacked Record Book: readable multiple entries per date */
.cn-right{padding-right:218px!important}
.cn-right .set-recordbook.rb-stacked,.cn-right .set-recordbook{width:205px!important}
.set-recordbook.rb-stacked th:nth-child(1),.set-recordbook.rb-stacked td:nth-child(1){width:28px!important;text-align:center!important}
.set-recordbook.rb-stacked th:nth-child(2),.set-recordbook.rb-stacked td:nth-child(2){width:28px!important;text-align:center!important}
.set-recordbook.rb-stacked th:nth-child(3),.set-recordbook.rb-stacked td:nth-child(3){width:38px!important;text-align:center!important}
.set-recordbook.rb-stacked th:nth-child(4),.set-recordbook.rb-stacked td:nth-child(4){width:auto!important}
.set-recordbook.rb-stacked tr{height:auto!important;min-height:18px!important}
.set-recordbook.rb-stacked td{height:18px!important;padding:1px 3px!important}
.set-recordbook.rb-stacked input{font-size:9px!important;color:#0f172a!important;background:transparent!important;opacity:1!important}
.rb-add-row td{background:#fbfdff!important}
.rb-add-row input:not(:focus):placeholder-shown{opacity:.6!important}
.set-recordbook tr.rb-selected td{background:#fff7cc!important;outline:1px solid #f59e0b!important;outline-offset:-1px!important}
.set-recordbook tr.rb-deleted td{background:#fee2e2!important;text-decoration:line-through!important}
body .set-recordbook tr[data-id]:focus{outline:2px solid #f59e0b!important;outline-offset:-2px!important}
.set-recordbook td.rb-session-center{background:#fee2e2!important}
.set-recordbook td.rb-session-center .rb-session,
.set-recordbook .rb-session.is-center{color:#b91c1c!important;font-weight:1000!important}
.set-recordbook .rb-level{color:#15803d!important;font-weight:1000!important}

/* Record Book inline page entries: 21-25, 16-20 style */
.cn-right{padding-right:285px!important}
.cn-right .set-recordbook.rb-inline{width:270px!important}
.rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:24px!important;text-align:center!important}
.rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:28px!important;text-align:center!important}
.rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:34px!important;text-align:center!important}
.rb-inline th:nth-child(4),.rb-inline td:nth-child(4){width:auto!important}
.rb-inline td{height:22px!important;padding:1px 2px!important;vertical-align:middle!important}
.rb-inline input{font-size:9px!important;color:#0f172a!important;background:#fff!important;opacity:1!important}
.rb-page-cell{display:flex!important;align-items:center!important;gap:2px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important}
.rb-page-chip{display:inline-block!important;border:1px solid #bfdbfe!important;background:#eef6ff!important;color:#1e3a8a!important;border-radius:4px!important;padding:1px 4px!important;font-size:8.5px!important;font-weight:900!important;line-height:14px!important;max-width:54px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;flex:0 0 auto!important;cursor:pointer!important}
.rb-page-chip.rb-chip-selected{background:#fde68a!important;border-color:#f59e0b!important;color:#7c2d12!important;outline:1px solid #f59e0b!important}
.rb-inline .rb-pages{min-width:42px!important;flex:1 1 42px!important;text-align:left!important;color:#1e293b!important;font-weight:900!important;border-radius:3px!important}
@media(max-width:1100px){.cn-right{padding-right:0!important}.cn-right .set-recordbook.rb-inline{width:100%!important}}
.set-recordbook .rb-page-chip.rb-prep{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e3a8a!important}
.set-recordbook .rb-page-chip.rb-missed{background:#f1f5f9!important;background-image:repeating-linear-gradient(135deg,rgba(100,116,139,.28) 0 2px,transparent 2px 6px)!important;border-color:#cbd5e1!important;color:#475569!important}
.set-recordbook .rb-page-chip.rb-done{background:#dcfce7!important;border-color:#86efac!important;color:#14532d!important}

/* Monthly Prep record-book printout */
.monthly-prep-panel{min-height:70vh}
.monthly-prep-head{align-items:flex-start}
.monthly-prep-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.monthly-prep-filters{align-items:end;flex-wrap:wrap}
.monthly-prep-filters input,.monthly-prep-filters select{height:38px}
.monthly-prep-filters small{display:block;color:#64748b;font-size:10px;font-weight:800;line-height:1.15;max-width:190px}
.monthly-prep-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.monthly-prep-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:13px;font-weight:900;text-decoration:none}
.monthly-prep-tabs a.active{background:#111827;border-color:#111827;color:#fff}
.monthly-prep-count{display:inline-flex;align-items:center;gap:6px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900;margin:0 0 14px}
.monthly-prep-sheets{display:grid;gap:18px}
.monthly-record-sheet{background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:12px;box-shadow:0 6px 16px rgba(15,23,42,.06);break-inside:avoid;page-break-inside:avoid}
.monthly-record-title{display:grid;grid-template-columns:1fr minmax(3.3in,max-content);gap:12px;align-items:start;border-bottom:1px solid #334155;padding-bottom:6px;margin-bottom:6px}
.monthly-record-title b{display:block;font-size:20px;line-height:1.05;color:#111827;text-transform:uppercase}
.monthly-record-title span{display:block;color:#475569;font-size:12px;font-weight:900;text-align:right}
.monthly-record-title div:first-child span{text-align:left}
.monthly-record-title-right{display:grid;grid-template-columns:minmax(1.55in,1fr) minmax(1.35in,max-content);gap:10px;align-items:start;text-align:right}
.monthly-record-title-summary span{color:#111827!important;font-size:13px;font-weight:800;line-height:1.15}
.monthly-record-title-meta{min-width:1.35in;text-align:right}
.monthly-record-title .monthly-record-print-date{color:#111827;font-size:13px;font-weight:950;margin-bottom:2px}
.monthly-record-books{display:grid;grid-template-columns:1fr 1fr;gap:0}
.monthly-record-books.single-subject{grid-template-columns:1fr 1fr}
.monthly-record-book{border:1px solid #334155;border-radius:0;overflow:hidden;background:white;display:flex;flex-direction:column}
.monthly-record-book + .monthly-record-book,.monthly-record-memo{border-left:0}
.monthly-record-memo{border:1px solid #334155;border-radius:0;overflow:hidden;background:white}
.monthly-record-book.reading .record-book-head{background:#fff;color:#111827}
.monthly-record-book.math .record-book-head{background:#fff;color:#111827}
.monthly-record-book.not-enrolled{opacity:.42}
.record-book-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 8px;border-bottom:1px solid #334155}
.record-book-head b{font-size:15px;text-transform:uppercase;letter-spacing:.03em}
.record-book-head span{font-size:11px;font-weight:950;color:inherit}
.record-book-summary{display:grid;gap:0;text-align:right;font-size:8.5px;font-weight:900;line-height:1.02}
.record-book-summary span{font-size:9px!important;color:#111827!important}
.record-book-summary b{font-size:6.5px!important;margin-right:3px;text-transform:uppercase}
.record-book-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px;flex:1}
.record-book-table tr{height:20px}
.record-book-table th,.record-book-table td{border:.75px solid #475569;padding:2px 3px;height:20px;vertical-align:middle;overflow:hidden}
.record-book-table th{background:#fff;color:#111827;text-align:center;font-size:8px;text-transform:uppercase;letter-spacing:.02em}
.record-book-table th:nth-child(1),.record-book-table td:nth-child(1){width:4%;text-align:center}
.record-book-table th:nth-child(2),.record-book-table td:nth-child(2){width:7%;text-align:center}
.record-book-table th:nth-child(3),.record-book-table td:nth-child(3){width:6%;text-align:center;font-weight:500}
.record-book-table td:nth-child(3){font-size:9px}
.record-book-table th:nth-child(4),.record-book-table td:nth-child(4){width:8%;text-align:center;font-weight:500}
.record-book-table th:nth-child(5),.record-book-table td:nth-child(5){width:12%;text-align:center;font-weight:500}
.record-book-table th:nth-child(6),.record-book-table td:nth-child(6){width:8%;text-align:center;font-weight:500}
.record-book-table th:nth-child(7),.record-book-table td:nth-child(7){width:55%;text-align:center;font-weight:500}
.record-check-cell span{display:inline-grid!important;place-items:center!important;width:10px;height:10px;border:.75px solid #475569;background:#fff;vertical-align:middle;color:#111827;font-size:8px;line-height:1;font-weight:500}
.record-book-table td b{display:block;font-size:10px;line-height:1;font-weight:500}
.record-book-table td span{display:block;font-size:7px;color:#64748b;font-weight:500;line-height:1}
.record-book-table tr.has-plan{background:#fff}
.record-book-table tr.prep-past td,
.record-book-table tr.prep-past td b,
.record-book-table tr.prep-past td span,
.record-book-table tr.prep-past .record-score-text{color:#111827!important}
.monthly-record-book.reading .record-book-table tr.prep-future td,
.monthly-record-book.reading .record-book-table tr.prep-future td b,
.monthly-record-book.reading .record-book-table tr.prep-future td span,
.monthly-record-book.reading .record-book-table tr.prep-future .record-score-text{color:#c0392b!important}
.monthly-record-book.math .record-book-table tr.prep-future td,
.monthly-record-book.math .record-book-table tr.prep-future td b,
.monthly-record-book.math .record-book-table tr.prep-future td span,
.monthly-record-book.math .record-book-table tr.prep-future .record-score-text{color:#2563eb!important}
.monthly-record-book.math .record-book-table tr.prep-future td,
.monthly-record-book.math .record-book-table tr.prep-future td b,
.monthly-record-book.math .record-book-table tr.prep-future td span,
.monthly-record-book.math .record-book-table tr.prep-future .record-score-text{font-weight:800!important}
.record-book-table tr.outside-month{background:#f8fafc;color:#cbd5e1}
.record-score-boxes{display:grid;grid-template-columns:repeat(10,1fr);gap:1px;align-items:stretch;width:100%}
.record-score-boxes span{display:grid!important;place-items:center;min-height:17px;border:1px solid #111827;color:#111827!important;background:#fff;font-size:10px!important;font-weight:500!important;line-height:1!important}
.record-score-boxes .score-circle{display:grid!important;place-items:center!important;border:1px solid #64748b!important;border-radius:999px!important;width:16px!important;height:16px!important;font-style:normal!important;line-height:1!important;color:#111827!important;font-size:10px!important;font-weight:500!important}
.record-book-table tr.prep-past .record-score-boxes span{color:#111827!important;border-color:#111827!important}
.monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span{color:#c0392b!important;border-color:#c0392b!important}
.monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span{color:#2563eb!important;border-color:#2563eb!important}
.monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span{font-weight:800!important}
.record-score-text{font-size:11px;font-weight:500;text-align:center}
.record-new-concept-label{font-size:9px;font-weight:500;text-align:center;line-height:1.05;color:#111827;border:1px solid currentColor;padding:2px 3px;background:#fff;margin:1px auto;display:inline-block;text-transform:uppercase;letter-spacing:.02em}
.record-plan-note-label{font-size:8.5px;font-weight:500;text-align:center;line-height:1.05;color:#111827;background:#fff;margin:1px auto;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.worksheet-score-strip .ws-scores span.score-circle{border:1px solid #64748b!important;border-radius:999px!important;background:#fff!important;color:#111827!important;width:18px!important;height:18px!important;min-width:18px!important;padding:0!important;font-weight:1000!important}
.monthly-memo-lines{display:grid;grid-template-rows:repeat(18,1fr);height:calc(100% - 31px)}
.monthly-memo-lines div{border-bottom:1px solid #111827;min-height:28px}
.monthly-memo-lines div:last-child{border-bottom:0}
@media(max-width:980px){.monthly-record-books{grid-template-columns:1fr}.monthly-record-title{display:block}.monthly-record-title span{text-align:left}}
@media print{
  @page monthly-prep{size:letter landscape;margin:.22in}
  body:has(.monthly-prep-panel){display:block!important;background:white!important;margin:0!important}
  body:has(.monthly-prep-panel) header,
  body:has(.monthly-prep-panel) nav,
  body:has(.monthly-prep-panel) .logout,
  .monthly-prep-panel>.calendar-head,
  .monthly-prep-panel>.filters,
  .monthly-prep-tabs,
  .monthly-prep-count{display:none!important}
  body:has(.monthly-prep-panel) main{padding:0!important;margin:0 auto!important;width:100%!important;max-width:none!important}
  .monthly-prep-panel{border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
  .monthly-prep-sheets{display:block!important}
  .monthly-record-sheet{page:monthly-prep;width:10.46in;height:8.02in;margin-left:auto!important;margin-right:auto!important;break-after:page;page-break-after:always;border:0!important;border-radius:0!important;box-shadow:none!important;padding:.05in!important;overflow:hidden!important}
  .monthly-record-sheet:last-child{break-after:auto;page-break-after:auto}
  .monthly-record-title{height:.54in;margin:0 0 .04in;padding:0 0 .04in;border-bottom:.9pt solid #334155;grid-template-columns:1fr 3.25in!important;align-items:start!important}
  .monthly-record-title b{font-size:16pt;line-height:1}
  .monthly-record-title span{font-size:8pt}
  .monthly-record-title-right{grid-template-columns:1.65in 1.45in!important;gap:.08in!important}
  .monthly-record-title-summary span{font-size:7.7pt!important;font-weight:700!important;line-height:1.08!important;color:#111827!important}
  .monthly-record-title-meta{min-width:1.45in!important}
  .monthly-record-title .monthly-record-print-date{font-size:8.5pt!important;line-height:1.05!important;margin-bottom:.012in!important;color:#111827!important}
  .monthly-record-books{grid-template-columns:1fr 1fr!important;gap:0!important;height:7.35in;position:relative!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(.218in - .55pt),#475569 calc(.218in - .55pt),#475569 .218in)!important;background-position:0 .54in!important;background-size:100% .218in!important;background-repeat:repeat-y!important}
  .monthly-record-books.single-subject{grid-template-columns:1fr 1fr!important}
  .monthly-record-book{border:.9pt solid #334155!important;border-radius:0!important;opacity:1!important;background:transparent!important}
  .monthly-record-book + .monthly-record-book,.monthly-record-memo{border-left:0!important}
  .monthly-record-memo{border:.9pt solid #334155!important;border-radius:0!important}
  .record-book-head{height:.32in;padding:.03in .06in!important;border-bottom:.8pt solid #334155!important;justify-content:space-between!important}
  .record-book-head b{font-size:10.5pt}
  .record-book-head span{font-size:7.2pt}
  .record-book-summary{gap:0!important;font-size:5pt!important;line-height:.94!important}
  .record-book-summary span{font-size:5pt!important}
  .record-book-summary b{font-size:4.2pt!important}
  .record-book-table{height:auto!important;font-size:6.7pt!important;flex:1 1 auto!important}
  .record-book-table tr{height:.218in!important}
  .record-book-table th,.record-book-table td{border-left:.55pt solid #475569!important;border-right:.55pt solid #475569!important;border-top:0!important;border-bottom:0!important;padding:.012in .02in!important;height:.218in!important;max-height:.218in!important;line-height:1.05!important;overflow:hidden!important;background:transparent!important}
  .record-book-table th{font-size:5.6pt!important}
  .record-book-table thead th{border-top:.55pt solid #475569!important;border-bottom:.55pt solid #475569!important;background:#fff!important}
  .record-book-table td b{font-size:6.9pt!important;font-weight:500!important}
  .record-book-table td span{font-size:4.8pt!important;font-weight:500!important}
  .record-book-table td:nth-child(3){font-size:5.8pt!important}
  .record-check-cell span{width:.075in!important;height:.075in!important;border:.55pt solid #475569!important;font-size:5.2pt!important}
  .record-score-boxes{grid-template-columns:repeat(10,1fr)!important;gap:.006in!important}
  .record-score-boxes span{min-height:.16in!important;font-size:7.2pt!important;border:.7pt solid #111827!important;font-weight:500!important}
  .record-score-boxes .score-circle{border:.6pt solid #64748b!important;border-radius:999px!important;width:.145in!important;height:.145in!important;color:#111827!important;font-size:7pt!important;font-weight:500!important}
  .record-score-text{font-size:7.2pt!important;font-weight:500!important}
  .record-new-concept-label{font-size:5.8pt!important;padding:.008in .02in!important;border:.7pt solid currentColor!important;margin:.005in auto!important;font-weight:500!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important}
  .record-plan-note-label{font-size:5.6pt!important;margin:.005in auto!important;font-weight:500!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .monthly-memo-lines{height:calc(100% - .32in)!important;grid-template-rows:repeat(18,1fr)!important}
  .monthly-memo-lines div{border-bottom:1pt solid #111827!important;min-height:0!important}
  .record-book-table tr.has-plan{background:#fff!important}
  .monthly-record-book.reading .record-book-head,.monthly-record-book.math .record-book-head{background:#fff!important;color:#111827!important}
  .monthly-record-sheet,.monthly-record-sheet *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}
.schedule-exception-form{display:grid;grid-template-columns:1.3fr .85fr 1fr 1.15fr .9fr .9fr .95fr 1fr;gap:10px;align-items:end;margin:12px 0 18px}
.schedule-exception-form:not(.is-temporary){grid-template-columns:1.3fr .85fr 1fr 1.15fr .9fr .9fr}
.schedule-exception-form .wide{grid-column:1/-2}
.schedule-exception-form:not(.is-temporary) .wide{grid-column:1/-1}
.schedule-exception-form .temporary-exception-field{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:8px}
.schedule-exception-form:not(.is-temporary) .temporary-exception-field{display:none}

.schedule-exception-form.is-quit .exception-date-to{display:none}
.schedule-exception-form button{height:40px}
.schedule-exception-form .student-search-combobox{width:100%;height:40px;margin-top:6px}
.schedule-exception-form .student-search-select-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.schedule-exception-actions{display:flex;gap:8px;align-items:center}
.schedule-exception-actions .button{height:40px;padding:0 12px;border:0}
.schedule-exception-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.schedule-exception-row-actions .button{padding:6px 10px;font-size:12px;border-radius:8px;background:#eef2ff;color:#203864}
.schedule-exception-table button{padding:6px 10px;font-size:12px;background:#475569}
@media(max-width:1100px){.schedule-exception-form{grid-template-columns:1fr 1fr}.schedule-exception-form .wide{grid-column:1/-1}}
@media(max-width:700px){.schedule-exception-form{grid-template-columns:1fr}}
.set-calendar-day.start-date-picked{outline:3px solid #f59e0b;outline-offset:-3px;background:#fffbeb}

/* Planer SCT time badge: show actual/standard, e.g. 28/20, without clipping. */
.cn-left .cn-score-track{padding-left:70px!important}
.cn-left .cn-time-badge{min-width:54px!important;max-width:62px!important;text-align:center!important;overflow:visible!important}
.student-label-days{grid-column:1 / 3;display:flex;align-items:center;gap:5px;min-height:20px}.student-label-day{width:19px;height:19px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#111827;color:#fff;font-size:10px;font-weight:950;line-height:1}.student-label-card.tablet .student-label-day{background:#fff;color:#0f2744}.student-label-card.hybrid .student-label-day{background:#fff;color:#111827}.student-label-day.empty{opacity:.45}.student-label-card small{display:none!important}@media print{.student-label-days{gap:.035in;min-height:.19in}.student-label-day{width:.18in;height:.18in;font-size:6.8pt;background:#111827!important;color:#fff!important}.student-label-card.tablet .student-label-day{background:#fff!important;color:#0f2744!important}.student-label-card.hybrid .student-label-day{background:#fff!important;color:#111827!important}.student-label-card small{display:none!important}}
.student-label-card{aspect-ratio:2.32 / 1;min-height:0;height:auto;grid-template-columns:42% 30% 28%;grid-template-rows:34% 18% 42%;padding:10px 12px;border-radius:2px;background:#f6edcf;color:#211f23;box-shadow:none}.student-label-card.tablet{background:#263b68;color:#fff}.student-label-card.hybrid{background:#263b68;color:#fff}.student-label-name{grid-column:1 / 4;grid-row:1;margin:0;align-self:center;font-size:30px;line-height:.94;font-weight:950;text-transform:uppercase;letter-spacing:0}.student-label-name.label-name-long{font-size:26px}.student-label-name.label-name-very-long{font-size:22px}.student-label-times{grid-column:1 / 2;grid-row:2;display:flex;gap:26px;align-items:end;padding-left:5px;font-size:20px;line-height:1;font-weight:500}.student-label-days{grid-column:1 / 2;grid-row:3;display:flex;gap:18px;align-items:center;align-self:start;padding-left:0;margin-top:4px}.student-label-day{width:58px;height:58px;min-width:58px;min-height:58px;aspect-ratio:1 / 1;border-radius:999px;font-size:34px;background:#13aee4;color:#fff;flex:0 0 58px}.student-label-day.day-mon{background:#13aee4}.student-label-day.day-tue{background:#db5434}.student-label-day.day-wed{background:#13aee4}.student-label-day.day-thu{background:#db5434}.student-label-day.day-fri{background:#3dae49}.student-label-day.day-sat{background:#7654a8}.student-label-day.day-sun{background:#7654a8}.student-label-day.day-f{background:#3dae49}.student-label-day.day-s{background:#7654a8}.student-label-day.day-t{background:#db5434}.student-label-day.day-m{background:#13aee4}.student-label-day.day-w{background:#13aee4}.student-label-subject{grid-column:2 / 3;grid-row:3;align-self:start;justify-self:start;min-width:108px;height:56px;padding:0 18px;border-radius:0;display:flex;align-items:center;justify-content:center;background:#898b8d;color:#fff;font-size:34px;line-height:1;font-weight:950;letter-spacing:0;text-transform:uppercase}.student-label-brand{grid-column:3 / 4;grid-row:3;align-self:center;justify-self:end;text-align:left;font-weight:950;line-height:.9;color:#b9542a;font-size:21px;letter-spacing:.025em;min-width:96px}.student-label-card.tablet .student-label-brand,.student-label-card.hybrid .student-label-brand{color:#9be0ff;text-shadow:0 0 0 #9be0ff}.student-label-brand span,.student-label-brand b{display:block}.student-label-card .student-label-top,.student-label-card .student-label-meta{display:none!important}@media print{.label-print-grid{grid-template-columns:repeat(2,3.72in)!important;gap:.12in!important;padding:.03in!important}.student-label-card{width:3.72in!important;height:1.6in!important;grid-template-columns:42% 30% 28%!important;grid-template-rows:34% 18% 42%!important;padding:.09in .1in!important;border-radius:.02in!important;background:#f6edcf!important;color:#211f23!important}.student-label-card.tablet,.student-label-card.hybrid{background:#263b68!important;color:#fff!important}.student-label-name{font-size:26pt!important;line-height:.94!important}.student-label-name.label-name-long{font-size:22pt!important}.student-label-name.label-name-very-long{font-size:18.5pt!important}.student-label-times{font-size:17pt!important;gap:.21in!important;padding-left:.04in!important}.student-label-days{gap:.14in!important;margin-top:.03in!important}.student-label-day{width:.46in!important;height:.46in!important;min-width:.46in!important;min-height:.46in!important;aspect-ratio:1 / 1!important;border-radius:999px!important;font-size:27pt!important;background:#13aee4!important;color:#fff!important;flex:0 0 .46in!important}.student-label-day.day-mon{background:#13aee4!important}.student-label-day.day-tue{background:#db5434!important}.student-label-day.day-wed{background:#13aee4!important}.student-label-day.day-thu{background:#db5434!important}.student-label-day.day-fri{background:#3dae49!important}.student-label-day.day-sat{background:#7654a8!important}.student-label-day.day-sun{background:#7654a8!important}.student-label-day.day-f{background:#3dae49!important}.student-label-day.day-s{background:#7654a8!important}.student-label-subject{min-width:.86in!important;height:.45in!important;padding:0 .14in!important;font-size:27pt!important;background:#898b8d!important;color:#fff!important}.student-label-brand{font-size:15.5pt!important;color:#b9542a!important;min-width:.78in!important}.student-label-card.tablet .student-label-brand,.student-label-card.hybrid .student-label-brand{color:#9be0ff!important;text-shadow:0 0 0 #9be0ff!important}}
.student-label-card.tablet .student-label-day,.student-label-card.hybrid .student-label-day{background:#13aee4;color:#fff}.student-label-card.tablet .student-label-day.day-tue,.student-label-card.hybrid .student-label-day.day-tue,.student-label-card.tablet .student-label-day.day-thu,.student-label-card.hybrid .student-label-day.day-thu{background:#db5434}.student-label-card.tablet .student-label-day.day-fri,.student-label-card.hybrid .student-label-day.day-fri,.student-label-card.tablet .student-label-day.day-f,.student-label-card.hybrid .student-label-day.day-f{background:#3dae49}.student-label-card.tablet .student-label-day.day-sat,.student-label-card.hybrid .student-label-day.day-sat,.student-label-card.tablet .student-label-day.day-sun,.student-label-card.hybrid .student-label-day.day-sun,.student-label-card.tablet .student-label-day.day-s,.student-label-card.hybrid .student-label-day.day-s{background:#7654a8}@media print{.student-label-card.tablet .student-label-day,.student-label-card.hybrid .student-label-day{background:#13aee4!important;color:#fff!important}.student-label-card.tablet .student-label-day.day-tue,.student-label-card.hybrid .student-label-day.day-tue,.student-label-card.tablet .student-label-day.day-thu,.student-label-card.hybrid .student-label-day.day-thu{background:#db5434!important}.student-label-card.tablet .student-label-day.day-fri,.student-label-card.hybrid .student-label-day.day-fri,.student-label-card.tablet .student-label-day.day-f,.student-label-card.hybrid .student-label-day.day-f{background:#3dae49!important}.student-label-card.tablet .student-label-day.day-sat,.student-label-card.hybrid .student-label-day.day-sat,.student-label-card.tablet .student-label-day.day-sun,.student-label-card.hybrid .student-label-day.day-sun,.student-label-card.tablet .student-label-day.day-s,.student-label-card.hybrid .student-label-day.day-s{background:#7654a8!important}}
.student-label-card{display:block!important;aspect-ratio:1280 / 533!important;padding:0!important;border:1px solid #d6d6d6!important;border-radius:0!important;background:transparent!important;overflow:hidden!important}.student-label-svg{display:block;width:100%;height:100%;image-rendering:auto;shape-rendering:geometricPrecision;text-rendering:geometricPrecision}.student-label-card .qr-card-pick{z-index:2}@media print{.label-print-grid{grid-template-columns:repeat(2,3in)!important;gap:.08in!important;padding:0!important}.student-label-card{width:3in!important;height:1.25in!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}.student-label-svg{width:3in!important;height:1.25in!important}}
.set-shift-panel{max-width:1280px;margin:0 auto 12px;background:#fff;border:1px solid #d8e2f0;border-radius:10px;padding:8px 12px;box-shadow:0 6px 18px #1018280a}
.set-shift-panel summary{font-weight:900;cursor:pointer;color:#203864}
.set-shift-panel form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:10px}
.set-shift-panel label{min-width:150px}
.set-shift-panel small{color:#667085;font-weight:700}
.set-shift-open{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:1000;white-space:nowrap;cursor:pointer}
.set-calendar-actions{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}
.set-shift-modal[hidden]{display:none}
.set-shift-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}
.set-shift-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38)}
.set-shift-dialog{position:relative;width:min(560px,100%);background:#fff;border:1px solid #d8e2f0;border-radius:14px;box-shadow:0 24px 70px rgba(15,23,42,.25);padding:14px}
.set-shift-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#203864}
.set-shift-dialog-head button{border:0;background:#f1f5f9;color:#334155;border-radius:999px;width:26px;height:26px;font-size:18px;font-weight:900;cursor:pointer}
.set-shift-dialog form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.set-shift-dialog label{display:grid;gap:4px;font-size:11px;font-weight:900;color:#334155}
.set-shift-dialog label:nth-of-type(3){grid-column:1/-1}
.set-shift-dialog input,.set-shift-dialog select{width:100%}
.set-shift-dialog small{grid-column:1/-1;color:#667085;font-weight:700}
.set-shift-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.set-shift-actions button{border:0;border-radius:9px;padding:8px 12px;font-weight:1000;cursor:pointer}
.set-shift-actions button[type=submit]{background:#1d4ed8;color:#fff}
.set-shift-actions button[type=button]{background:#e2e8f0;color:#334155}
.set-shift-result{max-width:1280px;margin:0 auto 8px;width:max-content}
.set-pull-mode{border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:1000;cursor:pointer;white-space:nowrap}
.set-pull-mode:disabled{background:#e2e8f0!important;color:#94a3b8!important;border-color:#cbd5e1!important;cursor:not-allowed!important}
.set-pull-mode.active{background:#3730a3!important;color:#fff!important;border-color:#312e81!important}
.allow-same-date-toggle{border:1px solid #f59e0b;background:#fff7ed;color:#9a3412;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:1000;cursor:pointer;white-space:nowrap}
.allow-same-date-toggle.active{background:#f97316;color:#fff;border-color:#ea580c;box-shadow:0 0 0 2px #fed7aa}
.allow-same-date-active .set-calendar-day.drop-target,
.allow-same-date-active .month-day.drop-target{outline:3px solid #f97316!important;background:#fff7ed!important}
.set-calendar-day:not(:has(.set-calendar-plan[data-id])){cursor:pointer}
.set-calendar-day.set-pull-selected{background:#fef3c7!important;outline:3px solid #f59e0b!important;outline-offset:-3px!important}
.set-calendar-day.set-pull-saving{opacity:.65;filter:saturate(.8)}
.set-month-nav{max-width:1280px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;gap:12px}
.set-month-nav b{min-width:150px;text-align:center;color:#203864}
.set-month-nav .cn-delete-mode,.set-month-nav .cn-bulk-delete{padding:8px 10px;border-radius:10px;font-size:12px;font-weight:900}
.set-month-nav .cn-bulk-delete{background:#dc2626;color:#fff}
.set-month-nav .cn-bulk-delete:disabled{background:#cbd5e1;color:#64748b}
.recordbook-month-nav{max-width:1280px;margin:0 auto 10px;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.recordbook-month-nav b{margin-right:auto;color:#203864;font-weight:950}
.recordbook-month-nav .button{padding:8px 10px;font-size:12px}
.set-calendar-day.set-center-day{background:linear-gradient(180deg,#e0f2fe,#fff)!important;border-color:#38bdf8!important;box-shadow:inset 4px 0 0 #0ea5e9!important}
.set-calendar-day.set-center-day h4 small::after{content:" · Center";color:#0369a1;font-weight:1000}
.record-calendar-only .month-day.set-center-day{background:linear-gradient(180deg,#e0f2fe,#fff)!important;border-color:#38bdf8!important;box-shadow:inset 4px 0 0 #0ea5e9!important}
.record-calendar-only .month-day.set-center-day h3 small::after{content:" · Center";color:#0369a1;font-weight:1000}
.record-calendar-only .month-day.outside-month{
  opacity:.32!important;
  background:#f8fafc!important;
  border-color:#e5e7eb!important;
  color:#94a3b8!important;
  filter:grayscale(.65)!important;
}
.record-calendar-only .month-day.outside-month h3,
.record-calendar-only .month-day.outside-month h3 small{color:#94a3b8!important}
.record-calendar-only .month-day.outside-month .plan-card.mini{opacity:.45!important}
.record-calendar-only .month-day.outside-month.set-center-day{
  background:#f8fafc!important;
  border-color:#e5e7eb!important;
  box-shadow:none!important;
}
.record-calendar-only .month-day.outside-month.set-center-day h3 small::after{color:#94a3b8!important}
.record-calendar-only .plan-card.mini.rc-has-result,
.record-calendar-only .plan-card.mini.done.rc-has-result,
.record-calendar-only .plan-card.mini:has(.result){
  background:#bbf7d0!important;
  border-color:#22c55e!important;
  border-left-color:#15803d!important;
  color:#064e3b!important;
  box-shadow:inset 0 0 0 1px #4ade80!important;
}
.record-calendar-only .plan-card.mini.rc-has-result .pages,
.record-calendar-only .plan-card.mini.done.rc-has-result .pages,
.record-calendar-only .plan-card.mini:has(.result) .pages{color:#052e16!important}
.set-calendar-day.set-preview-day{outline:2px dashed #f59e0b!important;outline-offset:-3px!important}
.set-plan-preview{background:#fffbeb!important;border-left-color:#f59e0b!important;border-style:dashed!important;color:#7c2d12!important}
.set-plan-preview small{color:#92400e!important;font-weight:1000!important}
.rb-preview-session{display:inline-grid!important;place-items:center!important;min-width:18px!important;height:18px!important;margin-top:2px!important;border-radius:999px!important;background:#fef3c7!important;color:#92400e!important;font-size:9px!important;font-weight:1000!important}
.rb-preview-chip{display:inline-block!important;border:1px dashed #f59e0b!important;background:#fffbeb!important;color:#92400e!important;border-radius:4px!important;padding:1px 4px!important;font-size:8.5px!important;font-weight:1000!important;line-height:14px!important;white-space:nowrap!important}
.rb-preview-input{background:#fffbeb!important;border-color:#f59e0b!important;color:#92400e!important;font-weight:1000!important}

/* Keyboard delete selection without Delete Mode */
.keyboard-delete-selected{outline:2px solid #f59e0b!important;outline-offset:1px!important;box-shadow:0 0 0 2px #fef3c7!important}
.keyboard-deleted{opacity:.35!important;text-decoration:line-through!important;background:#fee2e2!important}

/* Tighten final + select input in Record Book page cell */
.rb-inline .rb-page-cell{
  justify-content:flex-start!important;
  gap:1px!important;
}
.rb-inline .rb-pages{
  flex:0 0 32px!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  padding:0 2px!important;
  font-size:8px!important;
}
.rb-inline .rb-pages::placeholder{font-size:8px!important;color:#64748b!important}
.rb-page-chip{max-width:48px!important;padding-left:3px!important;padding-right:3px!important}

/* Make Record Book shrink to content; no wasted blank space after select */
.cn-right{padding-right:205px!important}
.cn-right .set-recordbook.rb-inline{
  width:192px!important;
}
.rb-inline table{
  table-layout:auto!important;
  width:auto!important;
  min-width:100%!important;
}
.rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:22px!important;min-width:22px!important;max-width:22px!important}
.rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:24px!important;min-width:24px!important;max-width:24px!important}
.rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:30px!important;min-width:30px!important;max-width:30px!important}
.rb-inline th:nth-child(4),.rb-inline td:nth-child(4){width:auto!important;min-width:0!important;max-width:none!important}
.rb-inline .rb-page-cell{
  display:inline-flex!important;
  width:auto!important;
  max-width:112px!important;
  overflow:hidden!important;
  justify-content:flex-start!important;
  gap:1px!important;
}
.rb-inline .rb-pages{
  flex:0 1 auto!important;
  width:24px!important;
  min-width:24px!important;
  max-width:34px!important;
}
.rb-inline .rb-pages:focus{
  width:54px!important;
  max-width:54px!important;
}
.rb-page-chip{
  max-width:44px!important;
  flex:0 1 auto!important;
}

/* Record Book column order now C/H, Date, Level, Page */
.rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:28px!important;text-align:center!important}
.rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:24px!important;text-align:center!important;font-weight:900!important;color:#475569!important}
.rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:34px!important;text-align:center!important}
.rb-inline th:nth-child(4),.rb-inline td:nth-child(4){width:auto!important}

/* Record Book: already taken/scored work black; upcoming prep in subject color */
.rb-page-chip.rb-taken{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
  color:#111827!important;
}
.rb-page-chip.rb-prep{
  background:#eef6ff!important;
  border-color:#bfdbfe!important;
  color:#1e3a8a!important;
}
.rb-page-chip.rb-prep.reading{color:#7c2d12!important}
.rb-page-chip.rb-has-note{
  border-color:#f472b6!important;
  background:#fdf2f8!important;
  color:#9d174d!important;
}
.rb-page-chip.rb-has-cm{
  border-color:#a78bfa!important;
  background:#f5f3ff!important;
  color:#6d28d9!important;
}
.rb-page-chip.rb-has-nc{
  border-color:#22c55e!important;
  background:#f0fdf4!important;
  color:#166534!important;
}
.set-recordbook .rb-page-chip.rb-prep{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e3a8a!important}
.set-recordbook .rb-page-chip.rb-missed{background:#f1f5f9!important;background-image:repeating-linear-gradient(135deg,rgba(100,116,139,.28) 0 2px,transparent 2px 6px)!important;border-color:#cbd5e1!important;color:#475569!important}
.set-recordbook .rb-page-chip.rb-done{background:#dcfce7!important;border-color:#86efac!important;color:#14532d!important}
.set-recordbook .rb-page-chip[data-pages=""]{
  display:none!important;
}
.set-recordbook .rb-pages,
.set-recordbook .rb-page-chip{
  cursor:ns-resize!important;
}
.set-recordbook tr.rb-fill-preview td{
  background:#dbeafe!important;
  outline:1px dashed #2563eb!important;
  outline-offset:-1px!important;
}
.set-recordbook tr.rb-skip-preview td{
  background:#f1f5f9!important;
  color:#94a3b8!important;
  outline:1px dashed #cbd5e1!important;
  outline-offset:-1px!important;
}
.rb-note-mark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:18px!important;
  width:auto!important;
  height:12px!important;
  padding:0 3px!important;
  margin-left:3px!important;
  border-radius:999px!important;
  background:#db2777!important;
  color:#fff!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:12px!important;
  vertical-align:middle!important;
}
.rb-nc-mark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:12px!important;
  min-width:16px!important;
  padding:0 3px!important;
  margin-left:3px!important;
  border-radius:999px!important;
  background:#16a34a!important;
  color:#fff!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:12px!important;
  vertical-align:middle!important;
}
.rb-cm-mark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:12px!important;
  min-width:18px!important;
  padding:0 3px!important;
  margin-left:3px!important;
  border-radius:999px!important;
  background:#7c3aed!important;
  color:#fff!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:12px!important;
  vertical-align:middle!important;
}
.rb-note-btn{
  display:inline-grid!important;
  place-items:center!important;
  width:30px!important;
  height:16px!important;
  min-width:30px!important;
  padding:0!important;
  margin-left:2px!important;
  border:1px solid #f9a8d4!important;
  border-radius:5px!important;
  background:#fff7fb!important;
  color:#be185d!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:1!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
}
.rb-note-btn.has-note{
  background:#db2777!important;
  border-color:#be185d!important;
  color:#fff!important;
}
.rb-row-action-select{
  width:42px!important;
  height:16px!important;
  min-width:42px!important;
  padding:0 2px!important;
  margin-left:2px!important;
  border:1px solid #cbd5e1!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:1!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
}
.rb-row-action-select.has-note{
  border-color:#f9a8d4!important;
  background:#fff7fb!important;
  color:#be185d!important;
}
.rb-row-action-select.has-cm{
  border-color:#c4b5fd!important;
  background:#f5f3ff!important;
  color:#6d28d9!important;
}
.rb-row-action-select.has-nc{
  border-color:#86efac!important;
  background:#f0fdf4!important;
  color:#15803d!important;
}
.rb-row-action-select.has-note.has-nc,
.rb-row-action-select.has-cm.has-nc,
.rb-row-action-select.has-note.has-cm{
  border-color:#a78bfa!important;
  background:#f5f3ff!important;
  color:#6d28d9!important;
}
.rb-page-chip + .rb-note-btn:not(.rb-row-note-btn),
.rb-page-chip + .rb-note-btn + .rb-nc-btn:not(.rb-row-nc-btn){
  display:none!important;
}
.rb-nc-btn{
  display:inline-grid!important;
  place-items:center!important;
  width:22px!important;
  height:16px!important;
  min-width:22px!important;
  padding:0!important;
  margin-left:2px!important;
  border:1px solid #86efac!important;
  border-radius:5px!important;
  background:#f0fdf4!important;
  color:#15803d!important;
  font-size:7px!important;
  font-weight:1000!important;
  line-height:1!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
}
.rb-nc-btn.has-nc{
  background:#16a34a!important;
  border-color:#15803d!important;
  color:#fff!important;
}
.rb-note-preview{
  display:none!important;
}
.set-recordbook-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:4px!important;
}
.set-recordbook-title small{float:none!important}
.rb-level-nav{
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.rb-level-nav button{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  padding:0!important;
  border:1px solid #bfdbfe!important;
  border-radius:6px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:1000!important;
  line-height:1!important;
}
.rb-level-nav select{
  width:48px!important;
  height:18px!important;
  min-height:18px!important;
  padding:0 2px!important;
  border:1px solid #cbd5e1!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:9px!important;
  font-weight:1000!important;
}
.set-planner-rules-row{
  display:flex!important;
  align-items:stretch!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin:8px 14px!important;
}
.set-no-homework-form,
.set-planning-done-form{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:1px solid #dbe3ef!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:800!important;
}
.set-no-homework-form{
  flex:1 1 620px!important;
}
.set-planning-done-form{
  flex:0 1 460px!important;
  background:#fff!important;
}
.set-no-homework-form label,
.set-planning-done-form label{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  margin:0!important;
}
.set-planning-done-form input[type="date"]{
  width:130px!important;
  min-height:24px!important;
  padding:2px 6px!important;
  font-size:12px!important;
}
.set-no-homework-form button,
.set-planning-done-form button{
  min-height:24px!important;
  padding:2px 9px!important;
  border-radius:6px!important;
}
.set-no-homework-form small,
.set-planning-done-form small{
  color:#64748b!important;
  font-weight:700!important;
}

/* Scheduler */
.scheduler-page{padding:18px;max-width:1600px;margin:0 auto}
.scheduler-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.scheduler-head h2{margin:0;font-size:24px;color:#0f172a}
.scheduler-head p{margin:4px 0 0;color:#64748b;font-size:13px}
.scheduler-stats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.scheduler-stats span{background:#fff;border:1px solid #dbe6f3;border-radius:12px;padding:7px 10px;font-size:11px;color:#475569;box-shadow:0 6px 16px #1018280a}
.scheduler-stats b{display:block;font-size:18px;color:#0f172a;line-height:1}
.scheduler-tools{display:flex;gap:8px;align-items:center;margin:0 0 10px}
.calendar-sync-panel{margin:0 0 10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;padding:8px 10px}
.calendar-sync-panel summary{cursor:pointer;font-size:13px;font-weight:700;color:#1e3a8a}
.calendar-sync-form{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(220px,auto);gap:10px;align-items:end;margin-top:8px}
.calendar-sync-form label{font-size:12px;color:#334155}
.calendar-sync-form input{height:34px;margin-top:4px}
.calendar-sync-form button{height:34px;background:#2563eb;color:#fff;border-color:#2563eb;border-radius:8px;padding:0 12px}
.calendar-sync-form small{font-size:12px;color:#64748b}
.calendar-sync-result{margin-top:8px;font-size:12px;color:#166534;background:#dcfce7;border:1px solid #86efac;border-radius:8px;padding:7px 9px}
.scheduler-search{width:260px;max-width:40vw;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-size:13px;background:#fff}
.scheduler-mode{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;color:#334155;cursor:pointer}
.scheduler-mode.active{background:#0f172a;color:#fff;border-color:#0f172a}
.scheduler-day-summary{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-bottom:10px}
.scheduler-day-summary div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:6px 8px;min-width:0}
.scheduler-day-summary b{display:block;font-size:12px;color:#0f172a}.scheduler-day-summary span{font-size:10px;color:#64748b}
.scheduler-grid-wrap{overflow:auto;border:1px solid #dbe6f3;border-radius:14px;background:#fff;box-shadow:0 10px 24px #1018280a;max-height:calc(100vh - 210px)}
.scheduler-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:11px}
.scheduler-grid th{position:sticky;top:0;z-index:3;background:#f1f5f9;color:#334155;border-bottom:1px solid #dbe6f3;padding:7px 6px;text-align:left}
.scheduler-grid th:first-child{left:0;z-index:4;width:74px;text-align:center}
.scheduler-grid tbody th{position:sticky;left:0;z-index:2;background:#f8fafc;border-right:1px solid #dbe6f3;font-size:10px;color:#475569;text-align:center;vertical-align:top;top:auto}
.scheduler-grid td{border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7;vertical-align:top;min-height:52px;height:52px;padding:3px;position:relative;background:#fff}
.scheduler-grid td.busy{background:#fffbeb}.scheduler-grid td.very-busy{background:#fff1f2}
.sched-count{position:absolute;right:3px;top:2px;background:#e2e8f0;color:#334155;border-radius:999px;font-size:8px;font-weight:1000;padding:1px 4px;z-index:1}
.sched-chip-list{display:flex;flex-wrap:wrap;gap:2px;align-content:flex-start;max-height:48px;overflow:hidden;padding-right:14px}
.sched-chip{display:inline-flex;align-items:center;gap:3px;max-width:100%;text-decoration:none;border-radius:6px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:1px 4px;line-height:14px;min-width:0}
.sched-chip b{font-size:9px;max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sched-chip small{font-size:8px;font-weight:1000;color:#64748b;white-space:nowrap}
.sched-chip.math{border-color:#bfdbfe;background:#eff6ff}.sched-chip.math small{color:#1d4ed8}.sched-chip.reading{border-color:#fed7aa;background:#fff7ed}.sched-chip.reading small{color:#c2410c}
.scheduler-page.detail .scheduler-grid td{height:82px}.scheduler-page.detail .sched-chip-list{max-height:78px}.scheduler-page.detail .sched-chip{display:flex;width:100%;justify-content:space-between}.scheduler-page.detail .sched-chip b{font-size:10px;max-width:120px}
.scheduler-page.busy .scheduler-grid td:not(.busy):not(.very-busy) .sched-chip{display:none}.scheduler-page.busy .scheduler-grid td:not(.busy):not(.very-busy){background:#f8fafc;color:#cbd5e1}
.sched-chip.hidden-by-search{display:none!important}
@media(max-width:1100px){.scheduler-day-summary{grid-template-columns:repeat(4,1fr)}.scheduler-grid{min-width:980px}.scheduler-stats{justify-content:flex-start}.scheduler-head{display:block}.scheduler-search{max-width:none;width:100%}}

/* Scheduler capacity mode for 20 subjects per 30-min slot */
.scheduler-page.capacity .scheduler-grid td{height:44px!important;padding:3px!important}
.scheduler-page.capacity .sched-chip-list{display:none!important}
.sched-capacity{display:none}
.scheduler-page.capacity .sched-capacity{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;height:100%;min-height:34px}
.scheduler-page.capacity .sched-capacity b{font-size:20px;line-height:18px;color:#0f172a;font-weight:1000}
.scheduler-page.capacity .sched-capacity span{font-size:8px;color:#64748b;font-weight:900;white-space:nowrap}
.scheduler-page.capacity .sched-capacity i{display:block;width:100%;height:4px;border-radius:999px;background:linear-gradient(90deg,#3b82f6 0 var(--m),#fb923c var(--m) 100%);margin-top:1px}
.scheduler-grid td.over-capacity{background:#ffe4e6!important;box-shadow:inset 0 0 0 2px #fb7185!important}
.scheduler-page.capacity .scheduler-grid td.busy{background:#eff6ff!important}.scheduler-page.capacity .scheduler-grid td.very-busy{background:#fff7ed!important}
.scheduler-page.capacity .sched-count{display:none!important}
.scheduler-page.capacity .scheduler-grid td[data-count="0"] .sched-capacity{opacity:.25}
.scheduler-page.capacity .scheduler-grid td[data-count="0"] .sched-capacity b,.scheduler-page.capacity .scheduler-grid td[data-count="0"] .sched-capacity span,.scheduler-page.capacity .scheduler-grid td[data-count="0"] .sched-capacity i{display:none!important}

/* Second-line detail blocks under major concept strip */
.cn-subconcept-strip{
  display:grid!important;
  grid-template-columns:repeat(var(--cn-cols),minmax(0,1fr))!important;
  gap:1px!important;
  height:18px!important;
  margin:1px 0 4px!important;
}
.cn-subconcept-segment{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:center!important;
  font-size:7.5px!important;
  line-height:16px!important;
  padding:0 2px!important;
  border-radius:4px!important;
  background:#eef2ff!important;
  border:1px solid #c7d2fe!important;
  color:#3730a3!important;
  font-weight:900!important;
}

/* Alternating concept/sub-concept block colors for readability */
.cn-concept-strip .cn-concept-segment:nth-child(odd),
.cn-subconcept-strip .cn-subconcept-segment:nth-child(odd){
  background:#dbeafe!important;
  border-color:#93c5fd!important;
  color:#1e3a8a!important;
}
.cn-concept-strip .cn-concept-segment:nth-child(even),
.cn-subconcept-strip .cn-subconcept-segment:nth-child(even){
  background:#f1f5f9!important;
  border-color:#cbd5e1!important;
  color:#334155!important;
}

/* Manual mastered check row under page numbers */
.cn-mastery-row{
  display:grid!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(7px,1fr))!important;
  gap:0!important;
  height:22px!important;
  margin:0 0 2px!important;
}
.cn-mastery-check{
  height:20px!important;
  min-height:20px!important;
  padding:0!important;
  border:1px solid #cbd5e1!important;
  border-left-width:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1d4ed8!important;
  font-size:13px!important;
  line-height:18px!important;
  font-weight:1000!important;
  cursor:pointer!important;
}
.cn-mastery-check:first-child{border-left-width:1px!important;border-radius:5px 0 0 5px!important}
.cn-mastery-check:last-child{border-radius:0 5px 5px 0!important}
.cn-mastery-check:hover{background:#eff6ff!important;outline:1px solid #2563eb!important;z-index:2!important}
.cn-mastery-check.checked{background:#dbeafe!important;border-color:#60a5fa!important;color:#1d4ed8!important}
.cn-right .cn-grid-cell.checked-mastered,
.cn-right .cn-range-segment.checked-mastered,
.cn-assignment-block.checked-mastered{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
  box-shadow:inset 0 0 0 2px #fff8!important;
}

/* Tighter mastered-check row: align exactly with page-number boxes */
.cn-mastery-row{
  display:grid!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(7px,1fr))!important;
  gap:0!important;
  height:14px!important;
  margin:0 0 2px!important;
  align-items:stretch!important;
}
.cn-mastery-check{
  height:14px!important;
  min-height:14px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #64748b!important;
  border-left-width:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1d4ed8!important;
  font-size:10px!important;
  line-height:12px!important;
  font-weight:1000!important;
  box-sizing:border-box!important;
  cursor:pointer!important;
}
.cn-mastery-check:first-child{border-left-width:1px!important;border-radius:0!important}
.cn-mastery-check:last-child{border-radius:0!important}
.cn-mastery-check:hover{background:#eff6ff!important;outline:1px solid #2563eb!important;z-index:2!important}
.cn-mastery-check.checked{background:#dbeafe!important;border-color:#2563eb!important;color:#1d4ed8!important}

/* Final alignment: page-number row and mastery-check row use the same 40 half-page columns */
.cn-axis.cn-axis-boxes,
.cn-mastery-row{
  grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.cn-axis.cn-axis-boxes{height:20px!important;margin-bottom:0!important}
.cn-axis-box,
.cn-mastery-check{
  border:1px solid #64748b!important;
  border-left-width:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.cn-axis-box:first-child,
.cn-mastery-check:first-child{border-left-width:1px!important}
.cn-mastery-row{height:12px!important;margin:0 0 2px!important}
.cn-mastery-check{height:12px!important;min-height:12px!important;line-height:10px!important;font-size:9px!important;background:#fff!important}
.cn-mastery-check.checked{background:#dbeafe!important;color:#1d4ed8!important}

/* Record Book: align only the top with the graph; do not stretch down to calendar bottom */
.cn-right .set-recordbook.rb-inline,
.cn-right .set-recordbook{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:auto!important;
  height:auto!important;
  max-height:none!important;
  display:block!important;
  flex-direction:initial!important;
  margin:0!important;
}
.set-recordbook table,
.set-recordbook.rb-inline table{
  height:auto!important;
  flex:none!important;
  table-layout:fixed!important;
}
.set-recordbook tbody tr,
.set-recordbook.rb-inline tbody tr{
  height:16px!important;
  min-height:16px!important;
}
.set-recordbook-title{
  padding:3px 6px!important;
  font-size:10px!important;
  line-height:13px!important;
}
.set-recordbook-title small{font-size:7px!important;line-height:10px!important}
.set-recordbook th,
.set-recordbook td,
.set-recordbook.rb-inline th,
.set-recordbook.rb-inline td{
  height:16px!important;
  padding:0 2px!important;
  line-height:13px!important;
  font-size:8px!important;
}
.set-recordbook th{height:14px!important;line-height:12px!important}

/* Checked/mastered override should be a soft blue overlay, not hide original red/green evidence */
.cn-right .cn-grid-cell.checked-mastered,
.cn-right .cn-range-segment.checked-mastered,
.cn-assignment-block.checked-mastered{
  background:linear-gradient(rgba(191,219,254,.62),rgba(191,219,254,.62))!important;
  border-color:#60a5fa!important;
  box-shadow:inset 0 0 0 1px #2563eb66!important;
}
.cn-right .cn-grid-cell.weak.checked-mastered,
.cn-right .cn-range-segment.weak.checked-mastered,
.cn-assignment-block.weak.checked-mastered{
  background:linear-gradient(rgba(191,219,254,.55),rgba(191,219,254,.55)),#dc2626!important;
}
.cn-right .cn-grid-cell.mastered.checked-mastered,
.cn-right .cn-range-segment.mastered.checked-mastered,
.cn-assignment-block.mastered.checked-mastered{
  background:linear-gradient(rgba(191,219,254,.55),rgba(191,219,254,.55)),#22c55e!important;
}

/* Checked/mastered marker: preserve original red/gray/green; add only a light blue marker */
.cn-right .cn-grid-cell.checked-mastered,
.cn-right .cn-range-segment.checked-mastered,
.cn-assignment-block.checked-mastered,
.cn-right .cn-grid-cell.weak.checked-mastered,
.cn-right .cn-range-segment.weak.checked-mastered,
.cn-assignment-block.weak.checked-mastered,
.cn-right .cn-grid-cell.planned.checked-mastered,
.cn-right .cn-range-segment.planned.checked-mastered,
.cn-assignment-block.planned.checked-mastered,
.cn-right .cn-grid-cell.needs-prep.checked-mastered,
.cn-right .cn-range-segment.needs-prep.checked-mastered,
.cn-assignment-block.needs-prep.checked-mastered,
.cn-right .cn-grid-cell.mastered.checked-mastered,
.cn-right .cn-range-segment.mastered.checked-mastered,
.cn-assignment-block.mastered.checked-mastered{
  background-image:repeating-linear-gradient(135deg, rgba(147,197,253,.55) 0 3px, transparent 3px 8px)!important;
  background-blend-mode:normal!important;
  border-color:#3b82f6!important;
  box-shadow:inset 0 0 0 2px rgba(59,130,246,.72)!important;
}
.cn-assignment-block.checked-mastered::after{
  content:'✓';
  position:absolute;
  right:2px;
  top:0;
  font-size:9px;
  line-height:10px;
  color:#1d4ed8;
  font-weight:1000;
  text-shadow:0 1px 0 #fff;
}

/* Scheduler compact view should show student names, even when a slot has many subjects */
.scheduler-page.compact .scheduler-grid td{
  height:118px!important;
  min-height:118px!important;
  vertical-align:top!important;
  padding:3px!important;
}
.scheduler-page.compact .sched-chip-list{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  max-height:104px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:2px!important;
}
.scheduler-page.compact .sched-chip{
  width:100%!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
}
.scheduler-page.compact .sched-chip b{
  max-width:120px!important;
  font-size:9.5px!important;
}
.scheduler-page.compact .sched-capacity{display:none!important}
.scheduler-page.compact .sched-count{
  display:block!important;
  float:right!important;
  font-size:9px!important;
  font-weight:1000!important;
  color:#475569!important;
  margin-bottom:2px!important;
}

/* Scheduler compact: no per-cell scrolling; show many names at a glance in tiny multi-column chips */
.scheduler-page.compact .scheduler-grid td{
  height:132px!important;
  min-height:132px!important;
  vertical-align:top!important;
  padding:3px!important;
}
.scheduler-page.compact .sched-chip-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:2px!important;
  max-height:none!important;
  overflow:visible!important;
  padding-right:0!important;
  align-content:start!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="0"]{height:24px!important;min-height:24px!important}
.scheduler-page.compact .sched-chip{
  display:flex!important;
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  padding:0 3px!important;
  min-height:11px!important;
  line-height:10px!important;
  border-radius:4px!important;
  gap:2px!important;
}
.scheduler-page.compact .sched-chip b{
  font-size:7.5px!important;
  line-height:10px!important;
  max-width:54px!important;
}
.scheduler-page.compact .sched-chip small{
  font-size:6.5px!important;
  line-height:10px!important;
}
.scheduler-page.compact .sched-count{
  display:block!important;
  float:right!important;
  font-size:8px!important;
  font-weight:1000!important;
  color:#475569!important;
  margin:0 0 1px 2px!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="15"],
.scheduler-page.compact .scheduler-grid td[data-count="16"],
.scheduler-page.compact .scheduler-grid td[data-count="17"],
.scheduler-page.compact .scheduler-grid td[data-count="18"],
.scheduler-page.compact .scheduler-grid td[data-count="19"],
.scheduler-page.compact .scheduler-grid td[data-count="20"]{
  height:150px!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="15"] .sched-chip-list,
.scheduler-page.compact .scheduler-grid td[data-count="16"] .sched-chip-list,
.scheduler-page.compact .scheduler-grid td[data-count="17"] .sched-chip-list,
.scheduler-page.compact .scheduler-grid td[data-count="18"] .sched-chip-list,
.scheduler-page.compact .scheduler-grid td[data-count="19"] .sched-chip-list,
.scheduler-page.compact .scheduler-grid td[data-count="20"] .sched-chip-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* Scheduler compact readability pass: larger names while keeping 20 visible */
.scheduler-page.compact .scheduler-grid td{
  height:160px!important;
  min-height:160px!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="0"]{height:24px!important;min-height:24px!important}
.scheduler-page.compact .sched-chip{
  min-height:14px!important;
  line-height:13px!important;
  padding:1px 4px!important;
  border-radius:5px!important;
}
.scheduler-page.compact .sched-chip b{
  font-size:9px!important;
  line-height:12px!important;
  max-width:70px!important;
}
.scheduler-page.compact .sched-chip small{
  font-size:7.5px!important;
  line-height:12px!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="15"],
.scheduler-page.compact .scheduler-grid td[data-count="16"],
.scheduler-page.compact .scheduler-grid td[data-count="17"],
.scheduler-page.compact .scheduler-grid td[data-count="18"],
.scheduler-page.compact .scheduler-grid td[data-count="19"],
.scheduler-page.compact .scheduler-grid td[data-count="20"]{
  height:178px!important;
}

/* Scheduler chips: show names only; no subject/level suffix */
.scheduler-page .sched-chip small{display:none!important}
.scheduler-page .sched-chip{cursor:default!important}
.scheduler-page.compact .sched-chip b{max-width:100%!important}

/* Add Student: Early Learner and 1:1 checks beside the Birthday label */
.birthday-er-label{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
.birthday-er-head{
  display:flex!important;
  align-items:flex-end!important;
  gap:10px!important;
  min-height:20px!important;
  line-height:1.1!important;
}
.birthday-er-checks{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
  transform:translateY(2px)!important;
}
.er-inline{display:inline-flex!important;align-items:center!important;gap:3px!important;font-size:11px!important;font-weight:1000!important;color:#334155!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}
.er-inline input{width:auto!important;margin:0!important}
.one-to-one-inline{
  color:#b91c1c!important;
}

/* Scheduler Early Learner badge for assistant staffing */
.sched-chip.early-learner{border-color:#f97316!important;background:#fff7ed!important}
.sched-chip em{display:inline-grid!important;place-items:center!important;margin-left:auto!important;background:#f97316!important;color:#fff!important;border-radius:4px!important;padding:0 3px!important;font-size:7px!important;line-height:11px!important;font-style:normal!important;font-weight:1000!important;flex:0 0 auto!important}
.scheduler-page.compact .sched-chip.early-learner b{max-width:52px!important}

/* Scheduler week navigation + day dates */
.scheduler-week-nav{display:flex;align-items:center;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.scheduler-week-nav a,.scheduler-week-nav b{border:1px solid #dbe6f3;background:#fff;border-radius:10px;padding:7px 10px;font-size:12px;text-decoration:none;color:#0f172a;font-weight:900;box-shadow:0 4px 12px #1018280a}
.scheduler-week-nav a:hover{background:#eff6ff;border-color:#93c5fd}
.scheduler-week-nav a.today{background:#0f172a;color:#fff;border-color:#0f172a}
.scheduler-day-summary em{display:block;font-style:normal;font-size:10px;color:#2563eb;font-weight:1000;line-height:1.1}
.scheduler-grid thead th b{display:block;font-size:11px;line-height:1.1}
.scheduler-grid thead th small{display:block;font-size:9px;color:#2563eb;font-weight:900;line-height:1.1;margin-top:1px}

/* Scheduler header: date is primary, weekday is secondary */
.scheduler-grid thead th b{
  display:block!important;
  font-size:15px!important;
  line-height:1.05!important;
  color:#0f172a!important;
  font-weight:1000!important;
}
.scheduler-grid thead th small{
  display:block!important;
  font-size:8.5px!important;
  color:#64748b!important;
  font-weight:900!important;
  line-height:1.1!important;
  margin-top:2px!important;
}
.scheduler-grid th:first-child{font-size:11px!important;color:#334155!important}

/* Scheduler weekday line slightly larger + drag target feedback */
.scheduler-grid thead th small{font-size:10px!important;color:#475569!important}
.scheduler-grid td.sched-drop-target{outline:3px solid #2563eb!important;outline-offset:-3px!important;background:#dbeafe!important}
.scheduler-grid td[data-date][data-time]:not([data-time="Unscheduled"]){cursor:pointer}
.sched-chip[draggable="true"]{cursor:grab!important}
.sched-chip[draggable="true"]:active{cursor:grabbing!important}

/* Temporary scheduler moves: separate from Student List fixed weekly schedule */
.sched-chip.temporary-move{outline:2px dashed #0ea5e9!important;outline-offset:-2px!important;background:#ecfeff!important}
.sched-chip.temporary-move::before{content:'temp';font-size:6.5px;font-weight:1000;color:#0369a1;background:#bae6fd;border-radius:3px;padding:0 2px;margin-right:2px;line-height:10px}

/* Scheduler search: show only matching student chips/rows */
.scheduler-grid td.search-empty{background:#f8fafc!important;color:#cbd5e1!important}
.scheduler-grid td.search-empty .sched-count,.scheduler-grid td.search-empty .sched-capacity{display:none!important}
.scheduler-grid tr.hidden-by-search-row{display:none!important}
.scheduler-grid td.search-hit{outline:2px solid #2563eb33!important;outline-offset:-2px!important;background:#eff6ff!important}
.scheduler-unscheduled{margin-top:10px;background:#fff;border:1px solid #dbe6f3;border-radius:12px;padding:10px;box-shadow:0 6px 18px #1018280a}
.scheduler-unscheduled h3{margin:0 0 2px;font-size:14px;color:#0f172a}.scheduler-unscheduled p{margin:0 0 8px;color:#64748b;font-size:11px}
.scheduler-unscheduled .sched-chip-list{display:flex!important;flex-wrap:wrap!important;gap:4px!important;max-height:none!important;overflow:visible!important}

/* Searching Scheduler keeps all time slots visible as drag targets */
.scheduler-grid tr.hidden-by-search-row{display:table-row!important}
.scheduler-grid td.search-empty{background:#f8fafc!important}
.scheduler-grid td.search-empty .sched-count{opacity:.35!important}

/* Student List schedule day badges */
.day-dots{display:inline-flex!important;gap:3px!important;margin:0 4px!important;vertical-align:middle!important}
.day-dot{display:inline-grid!important;place-items:center!important;width:17px!important;height:17px!important;border-radius:50%!important;background:#f97316!important;color:#fff!important;font-size:10px!important;font-weight:1000!important;line-height:1!important}
.enroll-level{font-weight:1000!important;color:#0f172a!important;margin-right:3px!important}
.enroll-time{color:#64748b!important;font-size:10px!important}

/* Student List weekday colors */
.day-dot.day-w{background:#38bdf8!important;color:#fff!important}
.day-dot.day-f{background:#22c55e!important;color:#fff!important}
.day-dot.day-s{background:#8b5cf6!important;color:#fff!important}

/* Student List enrollment compressed into one line */
.subject-status.enrolled{display:flex!important;align-items:center!important;gap:5px!important;min-height:24px!important;line-height:1!important;flex-wrap:wrap!important}
.subject-status.enrolled b{display:inline!important;margin:0!important;font-size:11px!important;line-height:17px!important}
.enroll-inline{display:inline-flex!important;align-items:center!important;gap:4px!important;min-width:0!important;flex-wrap:wrap!important}
.enroll-pair{display:inline-flex!important;align-items:center!important;gap:2px!important;white-space:nowrap!important}
.enroll-inline .day-dot{width:15px!important;height:15px!important;font-size:9px!important;margin:0!important}
.enroll-inline .enroll-time{font-size:10px!important;color:#334155!important;font-weight:900!important;line-height:15px!important}
.enroll-level{display:none!important}

/* Student List enrollment: Enrolled on top, schedule below, Set pinned right */
.subject-status.enrolled{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:13px 17px!important;
  align-items:center!important;
  column-gap:6px!important;
  row-gap:0!important;
  min-height:30px!important;
  padding-right:2px!important;
  line-height:1!important;
}
.subject-status.enrolled b{
  grid-column:1!important;
  grid-row:1!important;
  font-size:10px!important;
  line-height:12px!important;
  margin:0!important;
}
.subject-status.enrolled .enroll-inline{
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
  overflow:hidden!important;
  min-width:0!important;
}
.subject-status.enrolled > a{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
  padding:3px 6px!important;
  font-size:10px!important;
  line-height:12px!important;
}
.enroll-pair{flex:0 0 auto!important}
.enroll-inline .day-dot{width:14px!important;height:14px!important;font-size:8.5px!important}
.enroll-inline .enroll-time{font-size:9.5px!important;line-height:14px!important}
.classnavi-row:not(.head){min-height:36px!important;padding-top:3px!important;padding-bottom:3px!important}
.classnavi-row:not(.head)>div{padding-top:3px!important;padding-bottom:3px!important}

/* Student List status tabs + simpler actions */
.student-list-tabs{display:flex;gap:6px;margin:10px 0 8px;align-items:center;flex-wrap:wrap}
.student-list-tabs a{padding:7px 12px;border:1px solid #dbe6f3;background:#fff;border-radius:999px;text-decoration:none;color:#334155;font-size:12px;font-weight:1000;box-shadow:0 4px 12px #10182808}
.student-list-tabs a.active{background:#0f172a;color:#fff;border-color:#0f172a}
.student-actions{display:flex!important;gap:5px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
.inline-status-form{display:inline!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.inline-status-form button{padding:4px 7px!important;font-size:10px!important;line-height:12px!important;border-radius:7px!important;background:#fff7ed!important;border:1px solid #fdba74!important;color:#9a3412!important;font-weight:1000!important;cursor:pointer!important}
.student-actions a{padding:4px 7px!important;font-size:10px!important;line-height:12px!important;border-radius:7px!important}

/* Student List: editable status dropdown in Status column */
.student-status-form{margin:0!important;padding:0!important;background:transparent!important;border:0!important;display:inline-block!important}
.student-status-select{appearance:none!important;border:1px solid #cbd5e1!important;border-radius:999px!important;padding:4px 18px 4px 8px!important;font-size:10px!important;font-weight:1000!important;line-height:12px!important;cursor:pointer!important;background:#f8fafc!important;color:#334155!important;max-width:86px!important}
.student-status-select.active{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}
.student-status-select.hold,.student-status-select.paused{background:#fef3c7!important;border-color:#facc15!important;color:#854d0e!important}
.student-status-select.inactive{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important}
.student-actions{justify-content:center!important}

/* Center and tighten Status dropdown in Student List */
.classnavi-row > div:nth-child(4){display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.student-status-form{display:flex!important;justify-content:center!important;width:100%!important}
.student-status-select{
  width:72px!important;
  max-width:72px!important;
  text-align:center!important;
  text-align-last:center!important;
  padding:4px 6px!important;
  background-image:none!important;
}

/* Student List top summary cards */
.classnavi-list-top{align-items:center!important;gap:10px!important}
.student-list-summary{display:flex!important;gap:8px!important;align-items:center!important;flex:1!important;justify-content:flex-start!important}
.student-list-summary span{display:flex!important;align-items:baseline!important;gap:4px!important;background:#fff!important;border:1px solid #dbe6f3!important;border-radius:10px!important;padding:5px 8px!important;box-shadow:0 4px 12px #10182808!important;min-width:76px!important;justify-content:center!important}
.student-list-summary b{font-size:18px!important;color:#0f172a!important;line-height:1!important}
.student-list-summary small{font-size:10px!important;color:#64748b!important;font-weight:900!important;white-space:nowrap!important}
.classnavi-filters .student-list-search{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  min-width:180px!important;
  max-width:240px!important;
  font-size:11px!important;
  font-weight:900!important;
  color:#475569!important;
}
.classnavi-filters .student-list-search input{
  height:38px!important;
  padding:8px 10px!important;
}

/* Set page: compact Paper/KC markers under the student selector */
.cn-student-select{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  align-items:flex-start!important;
}
.cn-student-select .set-student-type-badges{
  display:flex!important;
  gap:5px!important;
  align-items:center!important;
  min-height:20px!important;
}
.set-student-summary{
  flex:1 1 260px!important;
  min-width:220px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  align-self:stretch!important;
}
.set-student-summary span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border:1px solid #bae6fd!important;
  border-radius:8px!important;
  background:#f8fdff!important;
  color:#0f3b57!important;
  font-size:13px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
.set-student-summary small{
  display:block!important;
  max-width:420px!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
  white-space:normal!important;
}
.set-student-type-badges span{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  color:#475569!important;
  font-size:9px!important;
  font-weight:1000!important;
  line-height:1!important;
}
.set-student-type-badges .student-type-pill{
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  font-size:9px!important;
  border-radius:999px!important;
}

/* Edit Student bottom action bar: Delete on left, save/cancel on right */
.student-form-actions{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-end!important}
.student-form-actions .spacer{flex:1!important}
.student-delete-button{margin-right:auto!important;background:#fee2e2!important;border:1px solid #fca5a5!important;color:#991b1b!important;border-radius:9px!important;padding:8px 12px!important;font-weight:1000!important;cursor:pointer!important}
.student-delete-button:hover{background:#fecaca!important}
.hidden-form{display:none!important}

.fixed-schedule-split{
  grid-template-columns:430px minmax(0,1fr)!important;
}
.fixed-schedule-form{
  grid-template-columns:1fr 1fr!important;
}
.fixed-schedule-form .wide{
  grid-column:1 / -1;
}
.fixed-entry-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.fixed-entry-modal.open{
  display:flex;
}
.fixed-entry-modal-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(15,23,42,.38);
  cursor:pointer;
}
.fixed-entry-modal-card{
  position:relative;
  z-index:1;
  width:min(720px, calc(100vw - 28px));
  max-height:calc(100vh - 36px);
  overflow:auto;
  box-shadow:0 24px 70px rgba(15,23,42,.28)!important;
}
.fixed-entry-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.fixed-entry-modal-head h2{
  margin:0;
}
.fixed-entry-modal-x{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#334155;
  font-size:20px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
}
.fixed-entry-modal-x:hover{
  background:#fee2e2;
  border-color:#fca5a5;
  color:#991b1b;
}
.fixed-schedule-table-wrap{
  overflow:auto;
}
.fixed-schedule-table-wrap td small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:11px;
}
.fixed-schedule-table-wrap .student-actions{
  display:flex;
  gap:6px;
  align-items:center;
}
.fixed-schedule-table-wrap .student-actions form{
  margin:0;
}
.fixed-schedule-panel{
  overflow:visible!important;
}
.fixed-board-tools{
  display:flex;
  gap:10px;
  align-items:end;
  justify-content:space-between;
  margin:0 0 10px;
}
.fixed-search-label{
  display:grid;
  gap:4px;
  max-width:360px;
  width:100%;
  font-size:12px;
  color:#475569;
}
.fixed-search-label input{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:6px;
  padding:8px 10px;
  font-size:14px;
}
.fixed-add-button{
  white-space:nowrap;
}
.fixed-excel-wrap{
  overflow-x:scroll;
  overflow-y:visible;
  overscroll-behavior-x:contain;
  border:2px solid #111827;
  border-radius:2px;
  background:#fff;
  margin-bottom:14px;
  max-height:none;
  scrollbar-width:auto;
  scrollbar-color:#9ca3af #e5e7eb;
  scrollbar-gutter:stable;
}
.weekly-fixed-schedule-panel .fixed-scroll-controls{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:6px;
  margin:0 0 6px;
}
.weekly-fixed-schedule-panel .fixed-scroll-controls-bottom{
  margin:6px 0 14px;
}
.weekly-fixed-schedule-panel .fixed-scroll-button{
  height:28px;
  min-width:34px;
  border-radius:8px;
  padding:0;
  display:grid;
  place-items:center;
  font-size:22px;
  line-height:1;
  background:#0f172a;
  color:#fff;
}
.weekly-fixed-schedule-panel .fixed-table-scroll{
  overflow-x:scroll;
  overflow-y:hidden;
  height:18px;
  margin:0;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#e5e7eb;
  scrollbar-width:auto;
  scrollbar-color:#6b7280 #e5e7eb;
}
.weekly-fixed-schedule-panel .fixed-table-scroll div{
  height:1px;
}
.weekly-fixed-schedule-panel .fixed-table-scroll::-webkit-scrollbar{
  height:16px;
}
.weekly-fixed-schedule-panel .fixed-table-scroll::-webkit-scrollbar-track{
  background:#e5e7eb;
  border-radius:999px;
}
.weekly-fixed-schedule-panel .fixed-table-scroll::-webkit-scrollbar-thumb{
  background:#6b7280;
  border:3px solid #e5e7eb;
  border-radius:999px;
}
.fixed-excel-wrap::-webkit-scrollbar{
  height:16px;
}
.fixed-excel-wrap::-webkit-scrollbar-track{
  background:#e5e7eb;
}
.fixed-excel-wrap::-webkit-scrollbar-thumb{
  background:#9ca3af;
  border:3px solid #e5e7eb;
  border-radius:999px;
}
.fixed-excel-table{
  min-width:1500px;
  border-collapse:separate;
  border-spacing:0;
  font-size:11px;
  color:#111;
}
.fixed-day-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  align-items:start;
  gap:8px;
  width:100%;
  min-width:0;
}
.fixed-day-table-scroll{
  min-width:0;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:auto;
  scrollbar-color:#9ca3af #e5e7eb;
}
.fixed-day-table-scroll::-webkit-scrollbar{height:16px}
.fixed-day-table-scroll::-webkit-scrollbar-track{background:#e5e7eb}
.fixed-day-table-scroll::-webkit-scrollbar-thumb{
  background:#9ca3af;
  border:3px solid #e5e7eb;
  border-radius:999px;
}
.fixed-day-table-scroll > .fixed-excel-table{
  margin:0;
}
.fixed-waiting-note{
  flex:none;
  width:260px;
  max-width:100%;
  margin:0;
  padding:10px;
  border:2px solid #64748b;
  border-left:8px solid #f59e0b;
  background:#fffbea;
  color:#1f2937;
}
@media(max-width:900px){
  .fixed-day-layout{grid-template-columns:minmax(0,1fr) 220px}
  .fixed-waiting-note{width:220px}
}
.fixed-waiting-note h3{
  margin:0 0 4px;
  font-size:11px;
}
.fixed-waiting-note p{
  margin:0 0 10px;
  font-size:10px;
  color:#64748b;
}
.fixed-waiting-shared-list{
  display:grid;
  gap:5px;
  max-height:150px;
  overflow:auto;
  margin:0 0 8px;
}
.fixed-waiting-shared-entry{
  position:relative;
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 16px;
  gap:7px;
  padding:6px 7px;
  border:1px solid #fde68a;
  border-radius:5px;
  background:#fff;
  font-size:11px;
}
.fixed-waiting-shared-entry b{color:#92400e;overflow-wrap:anywhere}
.fixed-waiting-shared-entry span{white-space:pre-wrap;overflow-wrap:anywhere}
.fixed-waiting-delete-form{margin:0}
.fixed-waiting-note .fixed-waiting-delete{
  width:16px;
  min-width:16px;
  height:16px;
  min-height:16px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#b91c1c;
  font-size:13px;
  line-height:14px;
  cursor:pointer;
}
.fixed-waiting-empty{display:block;padding:6px;color:#64748b;font-size:10px}
.fixed-waiting-note textarea{
  display:block;
  width:100%;
  min-height:62px;
  resize:vertical;
  padding:10px;
  border:1px solid #cbd5e1;
  border-radius:6px;
  background:#fff;
  font:12px/1.5 inherit;
}
.fixed-waiting-note button{
  width:100%;
  margin-top:8px;
}
.fixed-waiting-save-status{
  display:block;
  min-height:16px;
  margin-top:4px;
  text-align:right;
  color:#166534;
  font-size:10px;
  font-weight:700;
}
.weekly-fixed-schedule-panel .fixed-excel-table{
  min-width:max-content;
}
.fixed-schedule-panel:not(.weekly-fixed-schedule-panel) .fixed-excel-table{
  min-width:1250px;
}
.fixed-schedule-panel:not(.weekly-fixed-schedule-panel) .fixed-excel-table th,
.fixed-schedule-panel:not(.weekly-fixed-schedule-panel) .fixed-excel-table td{
  min-width:54px;
}
.weekly-fixed-schedule-panel .weekly-compact-day-table{
  min-width:max-content;
}
.fixed-excel-table + .fixed-day-spacer,
.fixed-day-layout + .fixed-day-spacer{
  height:10px;
  background:#000;
}
.weekly-fixed-schedule-panel .fixed-excel-table + .fixed-day-spacer{
  width:100%;
  min-width:100%;
  max-width:none;
}
.fixed-excel-table th,
.fixed-excel-table td{
  border-right:1px solid #111827;
  border-bottom:1px solid #111827;
  padding:2px 4px;
  vertical-align:middle;
  min-width:70px;
  height:22px;
  background:#fff;
  text-align:center;
}
.fixed-excel-table thead th:not(.fixed-x-col):not(.fixed-assist-col),
.fixed-excel-table .fixed-assist-time-cell,
.fixed-excel-table .fixed-drop-cell:nth-child(odd){
  border-right-width:2px;
}
.fixed-excel-table .fixed-seat-pair-divider{
  border-right-width:2px;
}
.fixed-schedule-panel .fixed-excel-table .fixed-reservable-slot{
  cursor:pointer;
}
.fixed-schedule-panel .fixed-excel-table .fixed-reservable-slot.fixed-slot-reserved:not(:has(.fixed-entry-chip)){
  background:#9ca3af !important;
  border-right-color:#111827;
  border-bottom-color:#111827;
  box-shadow:none;
  cursor:pointer;
}
.fixed-schedule-panel .fixed-excel-table .fixed-reservable-slot.fixed-slot-reserved:not(:has(.fixed-entry-chip))::after{
  content:"";
}
.fixed-schedule-panel .fixed-excel-table .fixed-reservable-slot.fixed-slot-reserved:has(.fixed-entry-chip){
  background:#fff !important;
  box-shadow:inset 0 0 0 1px #d1d5db;
}
.weekly-fixed-schedule-panel .fixed-excel-table thead th:not(.fixed-x-col):not(.fixed-assist-col),
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-assist-time-cell,
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-drop-cell:nth-child(odd),
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-seat-pair-divider{
  border-right-width:1px;
}
.weekly-fixed-schedule-panel .fixed-excel-table .weekly-one-to-one-open-seat,
.fixed-master-schedule-panel .fixed-excel-table .weekly-one-to-one-open-seat{
  background:#9ca3af !important;
  box-shadow:none;
  cursor:move;
}
.weekly-fixed-schedule-panel .fixed-excel-table .weekly-manual-grey-seat,
.fixed-master-schedule-panel .fixed-excel-table .weekly-manual-grey-seat{
  background:#9ca3af !important;
  box-shadow:none;
}
.weekly-grey-mode-button{background:#64748b;padding:8px 13px}
.weekly-grey-mode-button.active{background:#111827;box-shadow:0 0 0 3px #cbd5e1}
.weekly-grey-mode-active [data-day][data-start-time][data-table-label][data-seat-label]{cursor:crosshair!important}
.weekly-grey-modal{display:none;position:fixed;inset:0;z-index:1200;align-items:center;justify-content:center;padding:20px}
.weekly-grey-modal.open{display:flex}
.weekly-grey-backdrop{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:#0f172a99;padding:0}
.weekly-grey-card{position:relative;z-index:1;width:min(420px,94vw);display:grid;gap:13px;background:#fff;border:1px solid #cbd5e1;border-radius:16px;padding:18px;box-shadow:0 24px 70px #0f172a55}
.weekly-grey-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.weekly-grey-head h3{margin:0}
.weekly-grey-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:50%;background:#e2e8f0;color:#111827;font-size:20px}
.weekly-grey-slot-summary{margin:0;padding:9px 10px;border-radius:9px;background:#f1f5f9;font-weight:800;color:#334155}
.weekly-grey-time-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.weekly-grey-card fieldset{margin:0;border:1px solid #cbd5e1;border-radius:10px;padding:10px}
.weekly-grey-card legend{padding:0 5px;font-size:12px;font-weight:800;color:#475569}
.weekly-grey-days,.weekly-grey-tables{display:flex;flex-wrap:wrap;gap:8px 12px}
.weekly-grey-days label,.weekly-grey-tables label{display:flex;flex-direction:row;align-items:center;gap:4px}
.weekly-grey-actions{display:flex;flex-wrap:wrap;gap:8px}
.weekly-grey-actions button{padding:9px 12px}
.weekly-grey-remove{background:#b91c1c}
.weekly-grey-cancel{background:#e2e8f0!important;color:#334155!important}
.weekly-grey-card>small{color:#64748b}
.fixed-schedule-panel .fixed-excel-table .fixed-hour-start{
  border-left:1px solid #111827;
  position:relative;
}
.fixed-schedule-panel .fixed-excel-table .fixed-half-hour{
  border-left:1px solid #111827;
  position:relative;
}
.fixed-schedule-panel .fixed-excel-table .fixed-hour-start::before,
.fixed-schedule-panel .fixed-excel-table .fixed-half-hour::before{
  content:"";
  position:absolute;
  left:-1px;
  top:-1px;
  bottom:-1px;
  width:2px;
  background:#111827;
  pointer-events:none;
  z-index:2;
}
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-quiet-time{
  min-width:84px;
  width:84px;
  max-width:84px;
  padding-left:1px;
  padding-right:1px;
  font-size:9px;
}
.weekly-fixed-schedule-panel .fixed-excel-table thead .fixed-quiet-time{
  min-width:84px;
  width:84px;
  max-width:84px;
  white-space:normal;
  line-height:1.05;
}
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-quiet-time .fixed-entry-chip{
  min-width:0;
  max-width:80px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.weekly-fixed-schedule-panel .weekly-compact-day-table th,
.weekly-fixed-schedule-panel .weekly-compact-day-table td{
  height:22px;
}
.weekly-fixed-schedule-panel .weekly-compact-day-table .fixed-compact-parent-cell{
  min-width:84px;
  width:84px;
  max-width:84px;
}
.weekly-fixed-schedule-panel .weekly-compact-day-table thead th:not(.fixed-x-col):not(.fixed-assist-col){
  min-width:84px;
  width:84px;
  max-width:84px;
}
.weekly-fixed-schedule-panel .fixed-calendar-entry{
  background:#e0f2fe;
  border-color:#0284c7;
  color:#075985;
  cursor:pointer;
}
.weekly-fixed-schedule-panel .fixed-calendar-entry em{
  background:#0284c7;
  color:#fff;
}
.weekly-fixed-schedule-panel .fixed-calendar-entry:hover{
  outline:2px solid #0284c7;
  outline-offset:1px;
}
.fixed-excel-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#cfeef6;
  color:#0f172a;
  text-align:center;
  font-size:12px;
  font-weight:1000;
  height:24px;
}
.fixed-excel-table .fixed-x-col{
  position:sticky;
  left:0;
  z-index:3;
  min-width:54px;
  background:#fff;
  color:#111;
  text-align:center;
  font-weight:1000;
}
.fixed-excel-table .fixed-assist-col,
.fixed-excel-table .fixed-assist-name,
.fixed-excel-table .fixed-seat-label{
  position:sticky;
  left:55px;
  z-index:2;
  min-width:132px;
  background:#fff;
  font-weight:1000;
}
.fixed-excel-table .fixed-day-col{
  position:sticky;
  left:0;
  z-index:2;
  min-width:54px;
  color:#111;
  font-size:17px;
  font-weight:1000;
}
.fixed-excel-table .day-mon{background:#f97316}
.fixed-excel-table .day-tue{background:#fb9800}
.fixed-excel-table .day-wed{background:#43c7d6}
.fixed-excel-table .day-thu{background:#38e23e}
.fixed-excel-table .day-fri{background:#facc15}
.fixed-excel-table .day-sat{background:#a78bfa}
.fixed-excel-table .fixed-seat-label{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:0;
}
.fixed-excel-table .fixed-seat-label.one-seat{
  grid-template-columns:1fr;
}
.fixed-excel-table .fixed-seat-label span{
  display:block;
  padding:3px 4px;
  color:#111827;
  font-weight:1000;
}
.fixed-excel-table .fixed-label-8,
.fixed-excel-table .fixed-label-7,
.fixed-excel-table .fixed-label-1,
.fixed-excel-table .fixed-label-2,
.fixed-excel-table .fixed-label-h,
.fixed-excel-table .fixed-label-8 span,
.fixed-excel-table .fixed-label-7 span,
.fixed-excel-table .fixed-label-1 span,
.fixed-excel-table .fixed-label-2 span,
.fixed-excel-table .fixed-label-h span{
  color:#d100d1;
}
.weekly-fixed-schedule-panel .fixed-label-p,
.weekly-fixed-schedule-panel .fixed-label-p span{
  color:#075985;
  background:#e0f2fe;
}
.weekly-fixed-schedule-panel .fixed-parent-slot-cell{
  background:#f0f9ff;
}
.fixed-excel-table .fixed-label-3,
.fixed-excel-table .fixed-label-b,
.fixed-excel-table .fixed-label-e,
.fixed-excel-table .fixed-label-f,
.fixed-excel-table .fixed-label-3 span,
.fixed-excel-table .fixed-label-b span,
.fixed-excel-table .fixed-label-e span,
.fixed-excel-table .fixed-label-f span{
  color:#005a9c;
}
.fixed-excel-table .fixed-seat-label span:first-child{
  border-right:1px solid #111827;
}
.fixed-excel-table .fixed-assistance-row td{
  background:#fff;
}
.fixed-excel-table .fixed-assistance-row .fixed-special-cell,
.fixed-excel-table .fixed-assistance-row .fixed-assist-time-cell{
  background:#fff;
}
.fixed-excel-table .fixed-assist-name{
  text-align:center;
  vertical-align:middle;
}
.fixed-excel-table .fixed-assist-merged{
  height:42px;
  cursor:copy;
  outline-offset:-3px;
}
.fixed-excel-table .fixed-assist-divider{
  box-shadow:inset 0 -2px 0 #111827;
}
.fixed-excel-table .fixed-assist-divider-row{
  border-bottom-width:2px;
}
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-assist-divider-row{
  border-bottom-width:2px;
}
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-assist-final-divider,
.weekly-fixed-schedule-panel .fixed-excel-table .fixed-label-1{
  border-bottom-width:2px;
}
.fixed-excel-table .fixed-assist-merged .fixed-entry-chip + .fixed-entry-chip{
  margin-top:5px;
}
.fixed-excel-table .fixed-assist-label{
  display:block;
  font-size:13px;
  font-weight:1000;
}
.fixed-excel-table .fixed-assist-employee{
  display:block;
  color:#d100d1;
  font-size:10px;
  font-weight:400;
  margin-top:3px;
  line-height:1.12;
}
.fixed-excel-table .fixed-assist-student{
  display:block;
  background:#f3c4ef!important;
  border:0!important;
  margin:0;
  padding:2px 4px;
}
.fixed-excel-table .fixed-assist-student.fixed-assist-muted{
  background:#cf8fbd!important;
  opacity:1;
}
.fixed-excel-table .fixed-assist-student b{
  color:#111827!important;
}
.fixed-excel-table .fixed-assist-name .fixed-entry-chip b{
  color:#d100d1;
  font-size:11px;
}
.fixed-assist-drop-cell.fixed-drop-hover,
.fixed-assist-time-cell.fixed-drop-hover{
  background:#f0a8df!important;
  box-shadow:inset 0 0 0 2px #2563eb;
}
.fixed-selected{
  outline:2px solid #2563eb;
  outline-offset:1px;
}
.fixed-excel-table .fixed-assistance-row td{
  height:21px;
}
.fixed-excel-table .fixed-seat-row td{
  height:21px;
  min-width:78px;
  padding:1px 3px;
}
.fixed-excel-table .fixed-day-divider td{
  height:10px;
  min-height:10px;
  padding:0;
  background:#000;
  border-color:#000;
}
.fixed-excel-table .fixed-section-divider td{
  height:6px;
  min-height:6px;
  padding:0;
  background:#111827;
  border-color:#111827;
}
.fixed-excel-table .fixed-section-divider .fixed-capacity-label{
  width:44px;
  color:#f9fafb;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-align:center;
}
.fixed-excel-table .fixed-section-divider .fixed-capacity-cell{
  height:10px;
  min-height:10px;
  padding:0;
  background:#111827;
}
.fixed-excel-table .fixed-section-divider .fixed-capacity-cell.blocked{
  background:#dc2626;
  border-color:#991b1b;
}
.fixed-capacity-form,
.fixed-capacity-form button{
  display:block;
  width:100%;
  height:100%;
  margin:0;
}
.fixed-capacity-form button{
  min-height:10px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  cursor:pointer;
}
.fixed-entry-chip{
  display:block;
  position:relative;
  color:#0f172a;
  text-decoration:none;
  background:transparent;
  border:0;
  border-radius:0;
  padding:0 15px 0 0;
  margin:0;
  line-height:1.1;
}
.fixed-entry-chip.fixed-new-entry{
  background:#fef08a!important;
  padding:2px 17px 2px 4px;
}
.fixed-entry-chip.fixed-temp-entry{
  background:#bbf7d0!important;
  box-shadow:inset 0 0 0 1px #16a34a;
  padding:2px 41px 2px 4px;
}
.fixed-entry-chip.fixed-temp-entry::after{
  content:"TEMP";
  position:absolute;
  top:1px;
  right:3px;
  font-size:7px;
  line-height:1;
  font-weight:700;
  color:#166534;
  letter-spacing:0;
}
.fixed-chip-delete-form{
  position:absolute;
  top:-4px;
  right:-3px;
  margin:0!important;
  z-index:6;
}
.fixed-chip-edit{
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:-4px;
  right:13px;
  width:14px;
  height:14px;
  border:1px solid #86efac;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:9px;
  font-weight:900;
  text-decoration:none;
  z-index:3;
}
.fixed-chip-edit:hover{
  background:#16a34a;
  border-color:#15803d;
  color:#fff;
}
.fixed-chip-delete{
  display:flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  padding:0;
  border:1px solid #fca5a5;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  cursor:pointer;
  pointer-events:auto;
}
.fixed-chip-delete:hover{
  background:#ef4444;
  border-color:#dc2626;
  color:#fff;
}
.weekly-chip-delete-form{
  position:absolute;
  top:50%;
  right:2px;
  transform:translateY(-50%);
  margin:0!important;
  z-index:20;
  opacity:1;
  pointer-events:auto;
  transition:opacity .12s ease;
}
.weekly-fixed-schedule-panel .fixed-entry-chip:hover .weekly-chip-delete-form{
  opacity:1;
  pointer-events:auto;
}
.weekly-chip-delete{
  display:flex;
  align-items:center;
  justify-content:center;
  width:7px!important;
  min-width:7px!important;
  max-width:7px!important;
  height:7px!important;
  min-height:7px!important;
  max-height:7px!important;
  padding:0;
  border:1px solid #fecaca;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-size:5px!important;
  line-height:1;
  font-weight:1000;
  cursor:pointer;
  pointer-events:auto;
}
.weekly-chip-delete:hover{
  background:#ef4444;
  border-color:#dc2626;
  color:#fff;
}
.weekly-delete-confirm{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.32);
}
.weekly-delete-confirm[hidden]{
  display:none!important;
}
.weekly-delete-confirm-card{
  width:min(320px, calc(100vw - 32px));
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.22);
  padding:14px;
}
.weekly-delete-confirm-card b{
  display:block;
  color:#991b1b;
  font-size:15px;
  margin-bottom:6px;
}
.weekly-delete-confirm-card p{
  margin:0 0 12px;
  color:#475569;
  font-size:13px;
  line-height:1.35;
}
.weekly-delete-confirm-card div{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.weekly-delete-confirm-card button{
  border:1px solid #cbd5e1;
  border-radius:6px;
  background:#fff;
  color:#334155;
  padding:7px 10px;
  font-weight:800;
  cursor:pointer;
}
.weekly-delete-confirm-card .weekly-delete-submit{
  border-color:#dc2626;
  background:#dc2626;
  color:#fff;
}
.weekly-day-col b,
.weekly-day-col small{
  display:block;
  line-height:1.05;
}
.weekly-day-col small{
  margin-top:3px;
  font-size:11px;
  color:#0f172a;
  font-weight:900;
}
.weekly-fixed-schedule-panel .fixed-drop-cell,
.weekly-fixed-schedule-panel .fixed-assist-time-cell{
  cursor:copy;
}
.weekly-fixed-schedule-panel{
  overscroll-behavior-x:contain;
}
body.tab-weekly_fixed_schedule{
  overflow-x:hidden;
}
body.tab-weekly_fixed_schedule main{
  width:100%;
  max-width:none;
  margin:0;
  padding:16px 18px 24px;
  overflow-x:hidden;
}
body.tab-weekly_fixed_schedule .weekly-fixed-schedule-panel{
  width:100%;
  max-width:none;
  overflow:hidden;
}
body.tab-weekly_fixed_schedule .weekly-fixed-schedule-panel .fixed-scroll-controls,
body.tab-weekly_fixed_schedule .weekly-fixed-schedule-panel .fixed-table-scroll,
body.tab-weekly_fixed_schedule .weekly-fixed-schedule-panel .fixed-excel-wrap{
  width:100%;
  max-width:100%;
}
.weekly-fixed-schedule-panel .fixed-excel-wrap{
  overscroll-behavior-x:contain;
}
.fixed-entry-chip.fixed-search-hidden{
  display:none!important;
}
.fixed-entry-chip.fixed-search-hit{
  box-shadow:inset 0 0 0 2px #2563eb;
}
.fixed-draggable{
  cursor:grab;
  user-select:none;
  -webkit-user-drag:element;
}
.fixed-draggable:active{
  cursor:grabbing;
}
.fixed-drop-cell{
  transition:background .12s ease, box-shadow .12s ease;
}
.fixed-drop-cell.fixed-drop-hover{
  background:#fff86a!important;
  box-shadow:inset 0 0 0 2px #2563eb;
}
.fixed-drop-cell.fixed-saving{
  background:#dbeafe!important;
}
.fixed-dragging{
  opacity:.45;
}
.fixed-excel-table .fixed-entry-chip.early{
  background:#f3c4ef!important;
  border:0!important;
  padding:2px 4px;
}
.fixed-excel-table .fixed-entry-chip.early.fixed-assist-muted{
  background:#cf8fbd!important;
  opacity:1;
}
.fixed-entry-chip.consulting{
  background:transparent;
}
.fixed-entry-chip b{
  display:block;
  font-size:10px;
  font-weight:400;
}
.fixed-entry-chip b em{
  display:inline-block;
  margin-left:2px;
  border-radius:3px;
  padding:1px 3px;
  font-style:normal;
  font-size:8px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}
.fixed-start-badge{
  background:#dbeafe;
  color:#1e40af;
}
.fixed-until-badge{
  background:#fee2e2;
  color:#991b1b;
}
.fixed-one-to-one-badge{
  background:transparent;
  color:#dc2626;
  padding:0 0 0 2px;
  font-size:9px;
  font-weight:1000;
}
.fixed-entry-chip small{
  display:block;
  font-size:8px;
  color:#334155;
  margin-top:1px;
}
@media(max-width:1000px){
  .fixed-schedule-split,
  .fixed-schedule-form{
    grid-template-columns:1fr!important;
  }
}

/* Sidebar sections */
body:not(.login) nav .nav-section{
  display:flex!important;
  align-items:center!important;
  margin:12px 0 4px!important;
  padding:8px 10px!important;
  color:#075985!important;
  background:#e0f2fe!important;
  border:1px solid #7dd3fc!important;
  border-radius:10px!important;
  font-size:14px!important;
  line-height:1.05!important;
  font-weight:1000!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}
body:not(.login) nav .nav-section:first-child{margin-top:0!important}
body:not(.login) nav .nav-section + a{margin-top:0!important}
body:not(.login) nav a{min-height:36px!important;padding-top:8px!important;padding-bottom:8px!important}
@media(max-width:900px){body:not(.login) nav .nav-section{display:flex!important;grid-column:1/-1!important}}

/* Student Records with right-side calendar */
.student-records-workspace{display:grid!important;grid-template-columns:minmax(720px,1fr) 360px!important;gap:14px!important;align-items:start!important;margin-top:10px!important}
.student-records-workspace .asm-record-list{margin-top:0!important;min-width:0!important}
.records-side-calendar{position:sticky!important;top:18px!important;background:#fff!important;border:1px solid #dbe6f3!important;border-radius:14px!important;padding:10px!important;box-shadow:0 8px 22px #1018280a!important;max-height:calc(100vh - 36px)!important;overflow:auto!important}
.records-side-calendar .set-month-head{margin-bottom:8px!important;padding:0!important;border:0!important}
.records-side-calendar .set-weekdays{font-size:9px!important;gap:3px!important;margin-bottom:3px!important}
.records-side-calendar .set-calendar-grid{gap:3px!important}
.records-side-calendar .set-calendar-day{min-height:64px!important;padding:4px!important;border-radius:8px!important}
.records-side-calendar .set-calendar-day h4{font-size:11px!important;margin:0 0 3px!important;line-height:1!important}
.records-side-calendar .set-calendar-day h4 small{font-size:8px!important;margin-left:3px!important;color:#94a3b8!important}
.records-side-calendar .set-calendar-plan{padding:2px 3px!important;border-radius:5px!important;margin-bottom:2px!important;font-size:8px!important;line-height:1.05!important}
.records-side-calendar .set-calendar-plan span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.records-side-calendar .set-calendar-plan small{font-size:7px!important;color:#64748b!important}
.records-side-calendar .has-records{background:#f8fbff!important;border-color:#bfdbfe!important}
.record-more{display:block!important;font-size:8px!important;color:#64748b!important;font-style:normal!important;font-weight:900!important;margin-top:1px!important}
.student-records-workspace .asm-record-card{grid-template-columns:112px 280px 58px 64px!important}
.student-records-workspace .asm-record-note{max-width:64px!important;width:64px!important;font-size:9px!important;padding:3px 4px!important}
@media(max-width:1200px){.student-records-workspace{grid-template-columns:1fr!important}.records-side-calendar{position:static!important;max-height:none!important}.student-records-workspace .asm-record-card{grid-template-columns:1fr!important}.student-records-workspace .asm-record-note{max-width:none!important;width:100%!important}}

/* Student Records calendar larger + arrows */
.student-records-workspace{grid-template-columns:minmax(660px,1fr) 470px!important;gap:12px!important}
.records-side-calendar{padding:12px!important}
.records-cal-head{display:grid!important;grid-template-columns:28px 1fr 28px!important;align-items:center!important;gap:8px!important;text-align:center!important}
.records-side-calendar .records-cal-head{grid-template-columns:24px minmax(0,1fr) 24px!important;align-items:start!important;gap:4px!important;text-align:left!important}
.records-side-calendar .records-cal-head > a.records-cal-arrow:first-child{grid-column:1!important;grid-row:1!important}
.records-side-calendar .records-cal-head > div:not(.record-calendar-actions){grid-column:2!important;grid-row:1!important;justify-self:start!important;text-align:left!important;min-width:0!important}
.records-side-calendar .records-cal-head > a.records-cal-arrow:last-child{grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:start!important}
.records-side-calendar .record-calendar-actions{grid-column:1 / -1!important;grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:4px!important;overflow:visible!important}
.records-side-calendar .record-calendar-actions button{white-space:nowrap!important;padding:5px 6px!important;border-radius:7px!important;font-size:9px!important;line-height:1!important}
.cn-right .set-month-calendar > .set-month-head{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto 36px!important;align-items:center!important;gap:8px!important;text-align:center!important}
.cn-right .set-month-calendar > .set-month-head > div{justify-self:center!important;text-align:center!important;min-width:0!important}
.cn-right .cn-grid-wrap{max-height:min(48vh,390px)!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important;scrollbar-color:#94a3b8 #e5e7eb!important;scrollbar-width:thin!important}
.cn-right .cn-grid-wrap::-webkit-scrollbar{width:12px!important}
.cn-right .cn-grid-wrap::-webkit-scrollbar-track{background:#e5e7eb!important;border-radius:999px!important}
.cn-right .cn-grid-wrap::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:999px!important;border:2px solid #e5e7eb!important}
.cn-right .cn-grid-wrap .cn-concept-strip{position:sticky!important;top:0!important;z-index:38!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-subconcept-strip{position:sticky!important;top:20px!important;z-index:37!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes{position:sticky!important;top:38px!important;z-index:36!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-mastery-row{position:sticky!important;top:58px!important;z-index:35!important;background:#fff!important;box-shadow:0 2px 4px #10182812!important}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-axis.cn-axis-boxes{top:20px!important}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-mastery-row{top:40px!important}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-axis.cn-axis-boxes{top:0!important}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-mastery-row{top:20px!important}
.cn-right .cn-grid-wrap .cn-axis,
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-range-strip,
.cn-right .cn-grid-wrap .cn-grid{min-width:max-content!important}
.records-cal-arrow{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:999px!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;color:#1d4ed8!important;text-decoration:none!important;font-size:20px!important;font-weight:1000!important;line-height:1!important}
.records-cal-arrow:hover{background:#dbeafe!important}
.records-side-calendar .set-weekdays{font-size:10px!important;gap:4px!important}
.records-side-calendar .set-calendar-grid{gap:4px!important}
.records-side-calendar .set-calendar-day{min-height:82px!important;padding:5px!important}
.records-side-calendar .set-calendar-day h4{font-size:12px!important;margin-bottom:4px!important}
.records-side-calendar .set-calendar-plan{padding:3px 4px!important;font-size:9.5px!important;margin-bottom:3px!important;line-height:1.12!important}
.records-side-calendar .set-calendar-plan span{font-size:10px!important;font-weight:1000!important;color:#0f172a!important}
.records-side-calendar .set-calendar-plan small{font-size:8px!important;display:block!important;margin-top:1px!important}
.student-records-workspace .asm-record-card{grid-template-columns:110px 280px 56px 42px!important}
.student-records-workspace .asm-record-note{max-width:42px!important;width:42px!important;font-size:8px!important;padding:2px 3px!important}
@media(max-width:1250px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-card{grid-template-columns:1fr!important}.student-records-workspace .asm-record-note{max-width:none!important;width:100%!important}}

/* Student Records: give calendar more horizontal room and prevent page text clipping */
.student-records-workspace{grid-template-columns:minmax(520px,1fr) 560px!important;gap:10px!important}
.records-side-calendar .set-calendar-day{min-height:90px!important;padding:5px 4px!important}
.records-side-calendar .set-calendar-plan{padding:3px 3px!important;font-size:9px!important;line-height:1.08!important;overflow:visible!important}
.records-side-calendar .set-calendar-plan span{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  line-height:1.05!important;
}
.records-side-calendar .set-calendar-plan small{font-size:7.5px!important;line-height:1.05!important}
.student-records-workspace .asm-record-card{grid-template-columns:104px 280px 54px 28px!important;gap:2px!important}
.student-records-workspace .asm-record-note{max-width:28px!important;width:28px!important;min-width:28px!important;font-size:7px!important;padding:2px!important}
.student-records-workspace .asm-record-main{max-width:104px!important;overflow:hidden!important}
@media(max-width:1300px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-card{grid-template-columns:1fr!important}.student-records-workspace .asm-record-note{max-width:none!important;width:100%!important}}

/* Click calendar date → jump/highlight matching Student Records date */
.records-side-calendar .set-calendar-day.has-records{cursor:pointer!important}
.records-side-calendar .set-calendar-day.has-records:hover{outline:2px solid #60a5fa!important;outline-offset:-2px!important;background:#eff6ff!important}
.asm-record-day.record-jump-highlight{animation:recordJumpGlow 1.7s ease-out 1!important}
.asm-record-day.record-jump-highlight .asm-record-date{background:#2563eb!important;box-shadow:0 0 0 4px #bfdbfe!important}
@keyframes recordJumpGlow{0%{background:#dbeafe;box-shadow:0 0 0 0 #60a5fa66}100%{background:transparent;box-shadow:none}}

/* Keep Student Records calendar visible while scrolling records */
.student-records-panel{overflow:visible!important}
.records-side-calendar{
  position:sticky!important;
  top:16px!important;
  align-self:start!important;
  z-index:3!important;
}
.student-records-workspace{align-items:start!important}

/* Student Records: quick fill perfect scores */
.record-score-track{position:relative!important}
.record-autofill-perfect{
  position:absolute!important;
  right:3px!important;
  bottom:3px!important;
  padding:2px 5px!important;
  border-radius:6px!important;
  background:#0f172a!important;
  color:#fff!important;
  font-size:8px!important;
  line-height:10px!important;
  font-weight:1000!important;
  z-index:2!important;
  opacity:.86!important;
}
.record-autofill-perfect:hover{opacity:1!important;filter:none!important;background:#2563eb!important}
.asm-record-card.record-autofilled{outline:2px solid #60a5fa!important;outline-offset:1px!important}

/* Move All - button to the left edge of the score box, not over score inputs */
.record-autofill-perfect{
  left:-42px!important;
  right:auto!important;
  bottom:4px!important;
  min-width:34px!important;
  text-align:center!important;
  padding:3px 5px!important;
}
.student-records-workspace .record-score-track{margin-left:42px!important}
.student-records-workspace .asm-record-card{grid-template-columns:104px 322px 54px 28px!important}
.student-records-workspace .record-score-track{width:280px!important;max-width:280px!important}

/* Softer compact AT autofill button */
.record-autofill-perfect{
  left:-30px!important;
  min-width:23px!important;
  padding:2px 3px!important;
  border-radius:5px!important;
  background:#e5e7eb!important;
  border:1px solid #cbd5e1!important;
  color:#111827!important;
  font-size:7.5px!important;
  line-height:9px!important;
  opacity:1!important;
  box-shadow:none!important;
}
.record-autofill-perfect:hover{background:#d1d5db!important;color:#111827!important;filter:none!important}
.student-records-workspace .record-score-track{margin-left:30px!important}
.student-records-workspace .asm-record-card{grid-template-columns:104px 310px 54px 28px!important}

/* Tighten AT button next to page score boxes */
.record-autofill-perfect{left:-24px!important}
.student-records-workspace .record-score-track{margin-left:24px!important}
.student-records-workspace .asm-record-card{grid-template-columns:104px 304px 54px 28px!important}

/* Pull AT closer to the level/page text in Student Records */
.student-records-workspace .asm-record-card{grid-template-columns:78px 304px 54px 28px!important;column-gap:2px!important}
.student-records-workspace .asm-record-main{max-width:78px!important}
.student-records-workspace .asm-record-main b{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.record-autofill-perfect{left:-22px!important}
.student-records-workspace .record-score-track{margin-left:22px!important}

/* Student Records: place Note under the score boxes instead of a narrow right column */
.student-records-workspace .asm-record-card{
  grid-template-columns:78px 304px 54px!important;
  grid-template-rows:auto 22px!important;
  align-items:center!important;
}
.student-records-workspace .asm-record-main{grid-column:1!important;grid-row:1 / span 2!important}
.student-records-workspace .record-score-track{grid-column:2!important;grid-row:1!important}
.student-records-workspace .asm-record-score.compact-time{grid-column:3!important;grid-row:1 / span 2!important}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  max-width:none!important;
  width:100%!important;
  min-width:0!important;
  height:18px!important;
  font-size:9px!important;
  padding:2px 5px!important;
  border-radius:5px!important;
}

/* Student Records: note box to the right of Time, expandable */
.student-records-workspace .asm-record-card{
  grid-template-columns:78px 304px 54px minmax(92px,1fr)!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
}
.student-records-workspace .asm-record-main{grid-column:1!important;grid-row:1!important;align-self:center!important}
.student-records-workspace .record-score-track{grid-column:2!important;grid-row:1!important;align-self:center!important}
.student-records-workspace .asm-record-score.compact-time{grid-column:3!important;grid-row:1!important;align-self:center!important}
.student-records-workspace .asm-record-note{
  grid-column:4!important;
  grid-row:1!important;
  align-self:stretch!important;
  max-width:none!important;
  width:100%!important;
  min-width:92px!important;
  min-height:34px!important;
  height:auto!important;
  resize:vertical!important;
  overflow:auto!important;
  font-size:9px!important;
  line-height:12px!important;
  padding:4px 5px!important;
  border-radius:6px!important;
  background:#fff!important;
}
@media(max-width:1300px){.student-records-workspace .asm-record-note{grid-column:1!important;grid-row:auto!important;min-width:0!important}}

/* Student Records: larger note text, shorter note box, calendar pulled left */
.student-records-workspace{grid-template-columns:minmax(500px,1fr) 590px!important;gap:6px!important}
.student-records-workspace .asm-record-card{
  grid-template-columns:76px 304px 54px 74px!important;
  gap:2px!important;
}
.student-records-workspace .asm-record-note{
  min-width:74px!important;
  width:74px!important;
  font-size:11px!important;
  line-height:13px!important;
  padding:4px 5px!important;
}
.records-side-calendar{margin-left:0!important}
@media(max-width:1320px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-card{grid-template-columns:1fr!important}.student-records-workspace .asm-record-note{width:100%!important;min-width:0!important}}

/* Student Records: note box medium width (about 2/3 of previous long size) */
.student-records-workspace .asm-record-card{grid-template-columns:76px 304px 54px 110px!important}
.student-records-workspace .asm-record-note{min-width:110px!important;width:110px!important;font-size:11px!important;line-height:13px!important}

/* Student Records: widen note box about 2.5x from current */
.student-records-workspace .asm-record-card{grid-template-columns:76px 304px 54px 275px!important}
.student-records-workspace .asm-record-note{min-width:275px!important;width:275px!important}
.student-records-workspace{grid-template-columns:minmax(720px,1fr) 560px!important;gap:8px!important}
@media(max-width:1500px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-card{grid-template-columns:1fr!important}.student-records-workspace .asm-record-note{width:100%!important;min-width:0!important}}

/* Student Records: remove extra empty space after note before calendar */
.student-records-workspace{grid-template-columns:710px 560px!important;justify-content:start!important;gap:6px!important}
.student-records-workspace .asm-record-list{width:710px!important;max-width:710px!important}
.student-records-workspace .asm-record-card{width:100%!important;box-sizing:border-box!important}
@media(max-width:1500px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-list{width:100%!important;max-width:none!important}}

/* Student Records: fix overlap between notes and calendar */
.student-records-workspace{grid-template-columns:760px 540px!important;gap:14px!important;align-items:start!important}
.student-records-workspace .asm-record-list{width:760px!important;max-width:760px!important}
.records-side-calendar{width:540px!important;max-width:540px!important;box-sizing:border-box!important}
@media(max-width:1500px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}}

/* Student Records: separate Achievement Test entry fields */
.student-records-workspace{grid-template-columns:900px 540px!important;gap:22px!important}
.student-records-workspace .asm-record-list{width:900px!important;max-width:900px!important}
.records-side-calendar{width:540px!important;max-width:540px!important}
.asm-test-entry{grid-column:2 / span 2!important;display:flex!important;align-items:center!important;gap:6px!important;background:#f8fafc!important;border:1px solid #dbe6f3!important;border-radius:8px!important;padding:5px 6px!important;align-self:center!important}
.asm-test-entry label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:1000!important;color:#334155!important;white-space:nowrap!important}
.asm-test-entry span{display:inline-flex!important;align-items:center!important;gap:2px!important}
.asm-test-entry input{width:34px!important;height:22px!important;padding:2px 3px!important;border-radius:5px!important;text-align:center!important;font-size:11px!important;font-weight:900!important}
.asm-test-entry label:last-child input{width:42px!important}
.asm-test-entry em{font-style:normal!important;color:#64748b!important;font-weight:900!important}
@media(max-width:1550px){.student-records-workspace{grid-template-columns:1fr!important}.student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}.asm-test-entry{grid-column:1!important;flex-wrap:wrap!important}}

/* Planer: tests live beside 191-200, not as one-page graph blocks */
.cn-test-action-row{display:grid!important;grid-template-columns:repeat(var(--cn-cols,40),minmax(9px,1fr)) minmax(54px,70px)!important;gap:4px!important;align-items:center!important;margin:5px 0 2px!important}
.cn-test-anchor{font-size:8px!important;font-weight:1000!important;color:#64748b!important;text-align:right!important;align-self:center!important}
.cn-test-box{height:22px!important;border:1px solid #f59e0b!important;border-radius:4px!important;background:#fff7ed!important;color:#9a3412!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;font-size:9px!important;font-weight:1000!important;text-decoration:none!important;padding:0 5px!important;cursor:pointer!important}
.cn-test-box b{width:11px!important;height:11px!important;border:1px solid #f59e0b!important;border-radius:2px!important;background:white!important;display:grid!important;place-items:center!important;font-size:9px!important;line-height:1!important}
.cn-test-box.checked{background:#fed7aa!important;color:#7c2d12!important}
.cn-test-box.checked b{background:#f97316!important;border-color:#ea580c!important;color:white!important}
.cn-test-result-form{min-height:72px!important;display:grid!important;grid-template-columns:56px 1fr auto!important;gap:5px!important;align-items:center!important;background:#fff7ed!important;border:1px solid #fed7aa!important;border-left:4px solid #f97316!important;border-radius:8px!important;padding:6px!important}
.cn-test-result-form .cn-test-label{font-size:10px!important;font-weight:1000!important;color:#9a3412!important;white-space:nowrap!important}
.cn-test-result-form .asm-test-entry{grid-column:auto!important;display:flex!important;flex-wrap:wrap!important;background:#fff!important;padding:4px!important}
.cn-test-result-form .cn-test-note{grid-column:1 / span 2!important;height:24px!important;border-radius:6px!important;font-size:10px!important;font-weight:800!important}
.cn-test-result-form .cn-test-done{font-size:10px!important;font-weight:1000!important;white-space:nowrap!important}
.cn-test-result-form button{padding:5px 8px!important;border-radius:6px!important;font-size:10px!important}
.cn-left .cn-score-group.cn-test-row{height:auto!important;min-height:78px!important;margin-bottom:6px!important;align-items:start!important}

/* Planner graph: hide old orange test helper row under the graph */
.cn-test-action-row{
  display:none!important;
}

/* Student Records: move C/H/T session marker to date box */
.record-day-sessions{display:flex!important;justify-content:center!important;gap:3px!important;margin-top:4px!important;flex-wrap:wrap!important}
.record-day-sessions i{display:grid!important;place-items:center!important;min-width:17px!important;height:17px!important;border-radius:999px!important;background:#e5e7eb!important;color:#111827!important;font-style:normal!important;font-size:9px!important;font-weight:1000!important;line-height:1!important}
.record-day-sessions i.c{background:#dbeafe!important;color:#1e40af!important}
.record-day-sessions i.h{background:#f1f5f9!important;color:#334155!important}
.record-day-sessions i.t{background:#fef3c7!important;color:#92400e!important}
.student-records-workspace .asm-record-main .session-badge{display:none!important}
.student-records-workspace .asm-record-date{padding-bottom:6px!important}

/* Student Records: emphasize level/page, slightly reduce score number size */
.student-records-workspace .asm-record-main b{font-size:13px!important;line-height:15px!important;font-weight:1000!important;letter-spacing:-.01em!important}
.student-records-workspace .record-page-grid input{font-size:11px!important;font-weight:900!important}
.student-records-workspace .record-page-grid span{font-size:7.5px!important}

/* Planer left score panel: simplify header and show only date + score/time */
.cn-left-head small,
.cn-left-head .bulk-delete-tools{display:none!important}
.cn-main{--set-top-offset:38px!important}
.cn-left-head{height:auto!important;min-height:28px!important;margin-bottom:6px!important;display:block!important;overflow:visible!important}
.cn-left-head span{font-size:12px!important;line-height:16px!important;font-weight:1000!important}
.cn-left .cn-score-cell span{display:none!important}
.cn-left .cn-score-track .cn-score-cell{grid-template-rows:1fr!important;height:22px!important;min-height:22px!important}
.cn-left .cn-score-track .cn-score-cell b{font-size:10px!important;line-height:20px!important;display:grid!important;place-items:center!important}
.cn-left .cn-score-track{align-items:center!important}
.cn-left .cn-time-badge{font-size:9px!important;line-height:14px!important;padding:1px 3px!important;align-self:center!important}

/* Planer left score panel: keep page numbers visible */
.cn-left .cn-score-cell span{display:block!important;font-size:7px!important;line-height:8px!important;color:#475569!important}
.cn-left .cn-score-track .cn-score-cell{grid-template-rows:8px 16px!important;height:24px!important;min-height:24px!important}
.cn-left .cn-score-track .cn-score-cell b{font-size:9.5px!important;line-height:15px!important}

/* Restore Planer left score cells to previous visual style */
.cn-left .cn-score-cell span{display:block!important;font-size:8px!important;line-height:9px!important;color:inherit!important}
.cn-left .cn-score-track .cn-score-cell{grid-template-rows:9px 18px!important;height:auto!important;min-height:28px!important}
.cn-left .cn-score-track .cn-score-cell b{font-size:11px!important;line-height:18px!important;display:block!important}
.cn-left .cn-score-track{align-items:stretch!important}
.cn-left .cn-time-badge{font-size:9px!important;line-height:16px!important;padding:2px 4px!important;align-self:start!important;white-space:nowrap!important}

/* Fix Planer left score cell text visibility */
.cn-left .cn-score-cell span{color:#334155!important;opacity:1!important;font-weight:800!important;text-shadow:none!important}
.cn-left .cn-score-cell b{color:#0f172a!important;opacity:1!important;text-shadow:none!important;font-weight:1000!important}
.cn-left .cn-score-cell.good b,.cn-left .cn-score-cell.ok b{color:#14532d!important}
.cn-left .cn-score-cell.weak b,.cn-left .cn-score-cell.low b{color:#991b1b!important}
.cn-left .cn-score-cell.blank b{color:#94a3b8!important}

/* Planer left score page numbers like Student Records: small gray above score */
.cn-left .cn-score-cell{
  display:grid!important;
  grid-template-rows:9px 18px!important;
  align-items:center!important;
  justify-items:center!important;
  padding:1px 0!important;
}
.cn-left .cn-score-cell span{
  display:block!important;
  color:#64748b!important;
  font-size:7.5px!important;
  line-height:9px!important;
  font-weight:800!important;
}
.cn-left .cn-score-cell b{
  display:block!important;
  color:#111827!important;
  font-size:11px!important;
  line-height:17px!important;
  font-weight:1000!important;
}
.cn-left .cn-score-pages.good .cn-score-cell b,.cn-left .cn-score-cell.good b,.cn-left .cn-score-cell.ok b{color:#166534!important}
.cn-left .cn-score-pages.weak .cn-score-cell b,.cn-left .cn-score-cell.weak b,.cn-left .cn-score-cell.low b{color:#991b1b!important}
.cn-left .cn-score-cell.blank b{color:#94a3b8!important}

/* Planer left score cells: Student Records-like page label + colored score box only */
.cn-left .cn-score-cell{
  display:grid!important;
  grid-template-rows:9px 19px!important;
  gap:1px!important;
  align-items:center!important;
  justify-items:center!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.cn-left .cn-score-cell span{
  background:transparent!important;
  color:#64748b!important;
  font-size:7.5px!important;
  line-height:9px!important;
  font-weight:800!important;
}
.cn-left .cn-score-cell b{
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:18px!important;
  border-radius:4px!important;
  border:1px solid #cbd5e1!important;
  background:#fff!important;
  color:#111827!important;
  font-size:11px!important;
  line-height:18px!important;
  font-weight:1000!important;
}
.cn-left .cn-score-cell.good b,.cn-left .cn-score-cell.ok b{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}
.cn-left .cn-score-cell.weak b,.cn-left .cn-score-cell.low b{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important}
.cn-left .cn-score-cell.blank b{background:#f8fafc!important;border-color:#e2e8f0!important;color:#94a3b8!important}
.cn-left .cn-score-pages{background:transparent!important;border:0!important;box-shadow:none!important}

/* Center Planer left score numbers precisely */
.cn-left .cn-score-cell b{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:0!important;
  box-sizing:border-box!important;
  vertical-align:middle!important;
}

/* Planer left score: good scores (8, 9, -) use deep green text */
.cn-left .cn-score-cell.good b,
.cn-left .cn-score-cell.ok b,
.cn-left .cn-score-pages.good .cn-score-cell b{
  color:#14532d!important;
}

/* Planer left score: mastered class means 8/9/- and should be deep green */
.cn-left .cn-score-cell.mastered b,
.cn-left .cn-score-pages.mastered .cn-score-cell b{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}
.cn-left .cn-score-cell.weak b,
.cn-left .cn-score-pages.weak .cn-score-cell b{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#991b1b!important;
}
.cn-left .cn-score-cell.empty b{
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
  color:#94a3b8!important;
}

/* Hard override: Planer left 8/9/- are good green regardless of row status */
.cn-left .cn-score-cell.score-good-value b{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}

/* Strongest override: individual good score beats weak/red parent row in Planer */
.cn-left .cn-score-pages.weak .cn-score-cell.score-good-value b,
.cn-left .cn-score-pages.mastered .cn-score-cell.score-good-value b,
.cn-left .cn-score-pages.good .cn-score-cell.score-good-value b,
.cn-left .cn-score-track .cn-score-pages .cn-score-cell.score-good-value b,
.cn-left a.cn-score-cell.score-good-value b{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}

/* Scheduler: slightly larger student names */
.scheduler-page .sched-chip b{font-size:11px!important;line-height:13px!important;font-weight:1000!important}
.scheduler-page.detail .sched-chip b{font-size:12px!important;line-height:14px!important}

/* Scheduler: larger but not overly bold student names */
.scheduler-page .sched-chip b{font-size:11.5px!important;line-height:13.5px!important;font-weight:700!important}
.scheduler-page.detail .sched-chip b{font-size:12.5px!important;line-height:14.5px!important;font-weight:700!important}

/* Student List: fit Pre-K and longer grade labels */
.asm-student-directory .grade-cell{
  font-size:10px!important;
  line-height:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  letter-spacing:-.02em!important;
  text-align:center!important;
  padding-left:2px!important;
  padding-right:2px!important;
}
.asm-student-directory .grade-cell b{font-size:12px!important;line-height:13px!important}
.asm-student-directory .grade-cell small{font-size:8px!important;line-height:10px!important;color:#64748b!important;margin-top:2px!important}
.student-current-grade{background:#f1f5f9!important;color:#0f172a!important;font-weight:900!important}
.set-student-summary .set-original-grade{font-size:9px!important;color:#64748b!important;font-weight:800!important;white-space:nowrap!important}

/* Scheduler temporary move selection + delete */
.scheduler-delete-move{background:#f1f5f9!important;color:#0f172a!important;border:1px solid #cbd5e1!important;padding:7px 10px!important;font-size:12px!important;border-radius:10px!important;font-weight:900!important}
.scheduler-delete-move:not(:disabled){background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important}
.scheduler-delete-move:disabled{opacity:.45!important;cursor:not-allowed!important}
.sched-chip.temporary-move{cursor:pointer!important}
.sched-chip.temporary-move.selected-move,
.sched-chip.manual-session.selected-move{outline:3px solid #f97316!important;outline-offset:2px!important;box-shadow:0 0 0 4px #fed7aa!important}

/* Scheduler: Early Learners stay at the bottom and are green like ASMKUMON */
.scheduler-page .sched-chip-list{align-content:flex-start!important}
.sched-chip.early-learner{
  order:99!important;
  border-color:#16a34a!important;
  background:#dcfce7!important;
  color:#14532d!important;
}
.sched-chip.early-learner em{
  background:#16a34a!important;
  color:#fff!important;
  border-radius:999px!important;
  min-width:16px!important;
  height:13px!important;
  padding:0 4px!important;
}
.scheduler-page.compact .sched-chip.early-learner b{max-width:54px!important}

/* Scheduler: dock ER chips to the bottom edge of each time box */
.scheduler-grid td.has-er-dock{padding-bottom:19px!important}
.scheduler-grid td.has-er-dock > .sched-chip-list{max-height:29px!important;padding-bottom:0!important}
.sched-er-dock{
  position:absolute!important;
  left:3px!important;
  right:3px!important;
  bottom:2px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:2px!important;
  align-content:flex-end!important;
  justify-content:flex-start!important;
  max-height:30px!important;
  overflow:hidden!important;
  padding-right:14px!important;
  z-index:2!important;
}
.scheduler-page.capacity .sched-er-dock{display:none!important}
.scheduler-page.detail .scheduler-grid td.has-er-dock{padding-bottom:24px!important}
.scheduler-page.detail .scheduler-grid td.has-er-dock > .sched-chip-list{max-height:50px!important}

/* Scheduler readability: more room in busy time boxes + clearer 30-min grid lines */
.scheduler-page.compact .scheduler-grid td{
  height:66px!important;
  min-height:66px!important;
  border-bottom:1.5px solid #cbd5e1!important;
  border-right:1.5px solid #d7dee8!important;
}
.scheduler-page.compact .scheduler-grid tbody th{
  border-bottom:1.5px solid #cbd5e1!important;
  border-right:2px solid #cbd5e1!important;
  background:#eef2f7!important;
  color:#334155!important;
  font-weight:1000!important;
}
.scheduler-page.compact .scheduler-grid tr:nth-child(even) td{
  background-image:linear-gradient(0deg, rgba(15,23,42,.025), rgba(15,23,42,.025))!important;
}
.scheduler-page.compact .scheduler-grid tr:nth-child(even) td.busy,
.scheduler-page.compact .scheduler-grid tr:nth-child(even) td.very-busy{
  background-image:none!important;
}
.scheduler-page.compact .sched-chip-list{
  max-height:45px!important;
  overflow:hidden!important;
}
.scheduler-page.compact .scheduler-grid td.has-er-dock{
  padding-bottom:22px!important;
}
.scheduler-page.compact .scheduler-grid td.has-er-dock > .sched-chip-list{
  max-height:39px!important;
}
.scheduler-page.compact .sched-er-dock{
  max-height:34px!important;
  bottom:3px!important;
}
.scheduler-page.compact .sched-chip b{
  font-size:11px!important;
  line-height:13px!important;
}

/* Scheduler: show all names by restoring tall time slots */
.scheduler-page.compact .scheduler-grid td{
  height:118px!important;
  min-height:118px!important;
  vertical-align:top!important;
}
.scheduler-page.compact .sched-chip-list{
  max-height:none!important;
  overflow:visible!important;
  padding-right:18px!important;
}
.scheduler-page.compact .scheduler-grid td.has-er-dock{
  padding-bottom:34px!important;
}
.scheduler-page.compact .scheduler-grid td.has-er-dock > .sched-chip-list{
  max-height:none!important;
  overflow:visible!important;
}
.scheduler-page.compact .sched-er-dock{
  max-height:none!important;
  overflow:visible!important;
  bottom:4px!important;
}

/* Scheduler responsive names: wrap instead of cutting names when the window is narrow */
.scheduler-page .scheduler-grid td,
.scheduler-page.compact .scheduler-grid td,
.scheduler-page.detail .scheduler-grid td{
  height:auto!important;
  min-height:72px!important;
}
.scheduler-page.compact .scheduler-grid td[data-count="0"]{
  height:auto!important;
  min-height:24px!important;
}
.scheduler-page .sched-chip-list,
.scheduler-page.compact .sched-chip-list,
.scheduler-page.detail .sched-chip-list{
  max-height:none!important;
  overflow:visible!important;
}
.scheduler-page .scheduler-grid td.has-er-dock,
.scheduler-page.compact .scheduler-grid td.has-er-dock,
.scheduler-page.detail .scheduler-grid td.has-er-dock{
  padding-bottom:6px!important;
}
.scheduler-page .scheduler-grid td.has-er-dock > .sched-chip-list,
.scheduler-page.compact .scheduler-grid td.has-er-dock > .sched-chip-list,
.scheduler-page.detail .scheduler-grid td.has-er-dock > .sched-chip-list{
  max-height:none!important;
  overflow:visible!important;
}
.scheduler-page .sched-er-dock,
.scheduler-page.compact .sched-er-dock,
.scheduler-page.detail .sched-er-dock{
  position:static!important;
  max-height:none!important;
  overflow:visible!important;
  margin-top:2px!important;
  padding-right:0!important;
}
.scheduler-page .sched-chip,
.scheduler-page.compact .sched-chip,
.scheduler-page.detail .sched-chip{
  align-items:flex-start!important;
  white-space:normal!important;
  min-height:auto!important;
}
.scheduler-page .sched-chip b,
.scheduler-page.compact .sched-chip b,
.scheduler-page.detail .sched-chip b,
.scheduler-page.compact .sched-chip.early-learner b{
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:1100px){
  .scheduler-grid{min-width:0!important}
}

/* Scheduler manual session quick-add */
.scheduler-session-modal[hidden]{display:none!important}
.scheduler-session-modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:22px}
.scheduler-session-backdrop{position:absolute;inset:0;background:#0f172a66}
.scheduler-session-form{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  width:min(880px,96vw);
  max-height:90vh;
  overflow:auto;
  margin:0;
  padding:22px;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:white;
  box-shadow:0 24px 80px #0f172a55;
}
.scheduler-add-session{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
.scheduler-session-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;color:#1e3a8a}
.scheduler-session-modal-head b{display:block;color:#0f172a;font-size:17px}
.scheduler-header-session{margin-left:auto;min-width:180px;display:grid!important;gap:5px!important}
.scheduler-header-session select{height:32px!important}
.scheduler-session-fields{
  display:grid;
  grid-template-columns:130px 130px minmax(210px,1.4fr) 1fr;
  gap:14px;
  align-items:end;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.scheduler-session-fields .wide{grid-column:1/-1}
.scheduler-session-form.is-note-session .scheduler-student-field,
.scheduler-session-form.is-note-session .scheduler-subject-field{display:none!important}
.scheduler-session-form.is-note-session .scheduler-session-fields{grid-template-columns:130px 130px}
.scheduler-session-form label{display:grid;gap:6px;font-size:11px;font-weight:500;color:#475569}
.scheduler-session-form select,.scheduler-session-form input{height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;background:#fff;font-size:13px}
.scheduler-session-form button{height:34px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-weight:900;padding:0 12px}

/* Fixed student seating schedule: separate from weekly Scheduler */
.fixed-schedule-page{max-width:1600px;margin:0 auto}
.fixed-schedule-head{align-items:flex-start}
.fixed-summary-cards{grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin:8px 0 14px}
.fixed-summary-cards .card{padding:12px 14px;border-radius:12px;box-shadow:none}
.fixed-summary-cards .card b{font-size:22px}
.fixed-summary-cards .card span{font-size:11px}
.fixed-schedule-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px;align-items:start}
.fixed-editor{background:#f8fbff;border:1px solid #dbe6f3;border-radius:14px;padding:14px}
.fixed-editor h3{margin:0 0 10px;color:#0f172a}
.fixed-entry-form{display:grid;gap:9px}
.fixed-entry-form label{font-weight:650;color:#475569}
.fixed-entry-form input,.fixed-entry-form select{height:38px;border-radius:8px}
.fixed-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fixed-entry-actions{display:flex;gap:8px;align-items:center;margin-top:2px}
.fixed-entry-actions .button{display:inline-flex;align-items:center;text-decoration:none;background:#eef2ff;color:#0f172a;border-radius:10px;padding:10px 14px;font-weight:900}
.fixed-delete-form{margin-top:8px}
.fixed-board-wrap{min-width:0}
.fixed-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 8px;color:#475569;font-size:12px;font-weight:900}
.fixed-legend span{display:inline-flex;align-items:center;gap:5px}
.fixed-legend i{width:16px;height:12px;border-radius:4px;border:1px solid #cbd5e1}
.fixed-legend i.fixed{background:#e7f0ff;border-color:#8ab4f8}
.fixed-legend i.early{background:#ffe1ef;border-color:#f08ab8}
.fixed-legend i.consult{background:#f0e8ff;border-color:#9a78da}
.fixed-board{display:grid;grid-template-columns:74px repeat(var(--fixed-cols), minmax(126px,1fr));border:1px solid #dbe6f3;background:#dbe6f3;gap:1px;overflow:auto;border-radius:14px;box-shadow:0 10px 24px #1018280a}
.fixed-board-head,.fixed-time{background:#f1f5f9;color:#334155;font-weight:950;text-align:center;padding:9px 6px;min-height:38px;display:grid;place-items:center;position:sticky;top:0;z-index:2}
.fixed-board-head.corner{left:0;z-index:3}
.fixed-time{position:sticky;left:0;top:auto;z-index:1;font-size:12px}
.fixed-seat-cell{background:#fff;min-height:94px;padding:6px;display:grid;gap:6px}
.fixed-seat-line{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px;align-items:start}
.fixed-seat-line small{color:#64748b;font-size:10px;font-weight:950;padding-top:5px}
.fixed-student-chip{display:grid;gap:2px;text-decoration:none;border:1px solid #8ab4f8;background:#e7f0ff;color:#0f172a;border-radius:7px;padding:6px 7px;min-height:38px}
.fixed-student-chip.early{background:#ffe1ef;border-color:#f08ab8}
.fixed-student-chip.consult{background:#f0e8ff;border-color:#9a78da}
.fixed-student-chip b{font-size:12px;line-height:1.1;white-space:normal;word-break:break-word}
.fixed-student-chip em,.fixed-student-chip span{font-style:normal;font-size:10px;color:#475569;font-weight:800;line-height:1.15}
.fixed-open-seat{display:block;border:1px dashed #cbd5e1;background:#f8fafc;color:#94a3b8;border-radius:7px;padding:6px 7px;font-size:11px;font-weight:800}
.fixed-weekly-preview{margin-top:16px;background:#fff;border:1px solid #dbe6f3;border-radius:14px;padding:14px}
.fixed-weekly-preview h3{margin:0 0 10px}
.fixed-week-grid{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:10px}
.fixed-week-grid article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;min-width:0}
.fixed-week-grid h4{margin:0 0 8px;display:flex;justify-content:space-between;gap:8px;color:#0f172a}
.fixed-week-grid h4 small{color:#64748b;font-weight:800}
.fixed-week-item{display:block;text-decoration:none;border-left:4px solid #8ab4f8;background:#e7f0ff;color:#0f172a;border-radius:7px;padding:7px 8px;margin-bottom:6px}
.fixed-week-item.early{border-left-color:#f08ab8;background:#ffe1ef}
.fixed-week-item.consult{border-left-color:#9a78da;background:#f0e8ff}
.fixed-week-item b,.fixed-week-item span{display:block;font-size:12px;line-height:1.25}
.fixed-week-item span{color:#475569;font-size:11px;margin-top:2px}
@media(max-width:1000px){.fixed-schedule-layout{grid-template-columns:1fr}.fixed-summary-cards,.fixed-week-grid{grid-template-columns:1fr 1fr}.fixed-board{min-width:1050px}}
@media(max-width:640px){.fixed-summary-cards,.fixed-week-grid,.fixed-form-row{grid-template-columns:1fr}}

/* Live seating board */
.live-seat-page{max-width:1680px;margin:0 auto;padding:0;overflow:hidden}
.live-seat-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:calc(100vh - 92px);background:#f6f8fb}
.seat-time-rail{background:#fff;border-right:1px solid #dbe6f3;padding:12px;overflow:auto}
.seat-time-rail h2{margin:0 0 4px;font-size:20px;color:#0f172a}
.seat-time-rail p{margin:0 0 14px;color:#64748b;font-size:12px;line-height:1.35}
.seat-walkin-form{display:grid;gap:6px;margin-bottom:10px;padding:8px;border:1px solid #dbe6f3;border-radius:9px;background:#f8fafc}
.seat-walkin-form label{font-size:10px;font-weight:950;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.seat-walkin-form div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.seat-walkin-form select{min-width:0;height:31px;border:1px solid #dbe6f3;border-radius:8px;padding:0 7px;font-size:12px;font-weight:850;background:#fff}
.seat-walkin-form button{height:31px;border-radius:8px;padding:0 10px;font-size:11px;font-weight:950}
.seat-filter-form{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:7px;margin-bottom:10px;align-items:end}
.seat-filter-form label{font-size:11px;font-weight:950;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.seat-filter-form input,.seat-filter-form select{height:32px;border:1px solid #dbe6f3;border-radius:8px;padding:0 8px;font-size:12px;font-weight:850;background:#fff}
.seat-filter-form label:nth-of-type(1){grid-column:1}.seat-filter-form input{grid-column:1}.seat-filter-form label:nth-of-type(2){grid-column:2;grid-row:1}.seat-filter-form select{grid-column:2;grid-row:2}
.seat-time-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.seat-time-list a{display:grid;place-items:center;min-height:32px;border:1px solid #dbe6f3;border-radius:8px;background:#f8fafc;color:#334155;text-decoration:none;font-weight:950;font-size:12px}
.seat-time-list a.active{background:#0f172a;color:#fff;border-color:#0f172a}
.seat-live-list{display:grid;gap:7px}
.seat-live-list h3{margin:0 0 2px;font-size:13px;color:#0f172a;text-transform:uppercase;letter-spacing:.04em}
.seat-live-student{border:1px solid #dbe6f3;border-left:5px solid #f59e0b;background:#fff7ed;border-radius:10px;padding:8px;display:grid;gap:2px}
.seat-live-student.seat-draggable{cursor:grab}
.seat-live-student.seat-dragging{opacity:.45;cursor:grabbing}
.seat-live-student.seated{border-left-color:#22c55e;background:#f0fdf4}
.seat-live-student.all{border-left-color:#94a3b8;background:#fff}
.seat-live-student b{font-size:12px;line-height:1.15;color:#0f172a}
.seat-live-student span,.seat-live-student small{font-size:11px;color:#64748b;font-weight:800}
.seat-live-student em{justify-self:start;font-style:normal;background:#fce7f3;color:#9d174d;border-radius:999px;padding:1px 6px;font-size:9px;font-weight:950}
.seat-student-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.seat-attendance-checks{display:flex;align-items:center;gap:5px;flex-shrink:0}
.seat-attendance-checks form{margin:0}
.seat-attendance-checks label{display:flex;align-items:center;gap:2px;font-size:9px;font-weight:900;color:#475569;line-height:1}
.seat-attendance-checks input{width:12px;height:12px;margin:0;accent-color:#2563eb}
.seat-remove-walkin{margin:2px 0 0;justify-self:end}
.seat-remove-walkin button{height:22px;border-radius:6px;padding:0 7px;font-size:9px;font-weight:900;background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important;box-shadow:none!important}
.seat-floor-area{padding:10px;min-width:0;overflow:auto}
.seat-floor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.seat-floor-head h2{margin:0;font-size:18px;color:#0f172a}
.seat-floor-head p{margin:2px 0 0;color:#64748b;font-size:12px}
.seat-floor-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.seat-floor-actions .button.active{background:#4f46e5!important;border-color:#4f46e5!important;color:#fff!important}
.seat-floor{display:grid;grid-template-columns:minmax(300px,1fr) 36px minmax(300px,1fr);gap:8px;align-items:stretch}
.seat-side{display:grid;grid-template-columns:1fr;gap:6px;align-content:start}
.seat-center-aisle{display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;color:#94a3b8;text-transform:uppercase;font-size:10px;font-weight:950;letter-spacing:.08em;min-height:620px}
.seat-center-aisle span{writing-mode:vertical-rl;transform:rotate(180deg)}
.seat-table-card{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#fff;border:1px solid #dbe6f3;border-radius:8px;padding:6px;box-shadow:0 3px 10px #1018280a;min-height:0}
.seat-table-card.alpha{border-color:#c7d2fe}
.seat-table-card h3{grid-column:1/-1;margin:0;display:flex;align-items:center;justify-content:center;gap:5px;text-align:center;font-size:12px;color:#0f172a;line-height:1}
.seat-table-card h3 em{font-style:normal;color:#475569;border:1px solid #cbd5e1;border-radius:999px;padding:1px 5px;font-size:9px;font-weight:950;line-height:1.2}
.seat-table-card.low h3 span,
.seat-table-card.low .seat-slot>span{color:#db2777}
.seat-table-card.high h3 span,
.seat-table-card.high .seat-slot>span{color:#2563eb}
.seat-slot{display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px;align-items:start;border:1px solid #e2e8f0;border-radius:8px;padding:5px;min-height:52px}
.seat-slot>span{display:grid;place-items:center;background:#f1f5f9;color:#334155;border-radius:6px;font-size:11px;font-weight:950;min-height:32px}
.seat-slot.open{background:#fbfdff}
.seat-slot.open::after{content:"Drop here";align-self:center;color:#94a3b8;font-size:11px;font-weight:850}
.seat-slot.open.has-reference::after{content:""}
.seat-fixed-reference{align-self:center;display:grid;gap:2px;color:#94a3b8;font-size:10px;font-weight:900;line-height:1.15;min-width:0}
.seat-fixed-reference span{text-transform:uppercase;letter-spacing:.05em;color:#cbd5e1;font-size:8px}
.seat-fixed-reference b{color:#94a3b8;font-size:11px;word-break:break-word}
.seat-fixed-reference.checked-in{
  border:1px solid #bbf7d0;
  border-radius:7px;
  background:#f0fdf4;
  padding:4px 5px;
}
.seat-fixed-reference.checked-in span{
  color:#86efac;
}
.seat-fixed-reference.checked-in b{
  color:#15803d;
}
.seat-fixed-reference.next-slot{
  align-self:center;
  display:grid;
  grid-template-columns:auto minmax(70px,1fr);
  align-items:center;
  gap:5px;
  max-width:100%;
  border:1px dashed #c7d2fe;
  border-radius:999px;
  background:#f8fafc;
  padding:3px 6px;
  overflow:hidden;
}
.seat-fixed-reference.next-slot span{
  color:#818cf8;
  font-size:8px;
  white-space:nowrap;
}
.seat-fixed-reference.next-slot b{
  min-width:0;
  display:block;
  color:#64748b;
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  word-break:normal;
}
.seat-new-dot{
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:5px;
  border:1px solid #eab308;
  border-radius:999px;
  background:#facc15;
  vertical-align:middle;
  box-shadow:0 0 0 2px rgba(250,204,21,.18);
}
.seat-fixed-reference .seat-new-dot{
  width:6px;
  height:6px;
  margin-left:4px;
}
.seat-slot.occupied{background:#ecfdf5;border-color:#86efac}
.seat-slot.seat-drop-target{outline:2px dashed #60a5fa;outline-offset:2px;background:#eff6ff}
.seat-slot.seat-saving{opacity:.65}
.seat-occupant{display:grid;gap:4px;min-width:0}
.seat-occupant b{font-size:12px;color:#0f172a;line-height:1.1;word-break:break-word}
.seat-occupant small{font-size:11px;color:#166534;font-weight:850}
.seat-assign-form{display:none}
.seat-assign-form select{width:100%;height:27px;border-radius:6px;font-size:11px;font-weight:850;color:#0f172a;padding:0 5px;background:#fff}
.seat-assign-form button,.seat-release{height:27px;border-radius:6px;padding:0 7px;font-size:10px;font-weight:850}
.seat-assign-form button{background:#eef2ff!important;color:#475569!important;border:1px solid #c7d2fe!important;box-shadow:none!important}
.seat-release{background:#dcfce7!important;color:#166534!important;border:1px solid #86efac!important}
@media(max-width:1100px){.live-seat-shell{grid-template-columns:1fr}.seat-time-rail{border-right:0;border-bottom:1px solid #dbe6f3}.seat-time-list{grid-template-columns:repeat(6,1fr)}.seat-floor{grid-template-columns:1fr}.seat-center-aisle{min-height:44px}.seat-center-aisle span{writing-mode:horizontal-tb;transform:none}.seat-side{grid-template-columns:1fr}}
@media(max-width:720px){.seat-time-list,.seat-side{grid-template-columns:1fr}.seat-floor-head{display:block}.live-seat-page{border-radius:0}}
.scheduler-session-form .scheduler-session-close{width:24px;height:24px;padding:0;margin-left:6px;background:#dbeafe;color:#1e3a8a}
.scheduler-session-target{font-size:10px;color:#1d4ed8;font-weight:900}
.scheduler-consulting-box{border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;padding:16px}
.scheduler-consulting-box[hidden]{display:none!important}
.scheduler-consulting-box b{display:block;color:#0f172a}
.scheduler-consulting-box span{display:block;color:#64748b;font-size:12px;font-weight:800;margin:3px 0 14px}
.consulting-section{padding:14px;border:1px solid #dbeafe;border-radius:12px;background:#fff;margin-top:12px}
.consulting-section.parent-section,.consulting-section.child-section{border-color:#bfdbfe;background:#eff6ff}
.consulting-section h4{margin:0 0 12px;color:#1e3a8a;font-size:12px;text-transform:uppercase;letter-spacing:.02em}
.consulting-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.consulting-section-head h4{margin:0}
.consulting-section-head .add-consult-child{height:30px;background:#1d4ed8;color:#fff;border-radius:8px;padding:0 10px;font-size:12px}
.consult-status-label{display:flex!important;grid-template-columns:none!important;flex-direction:row!important;align-items:center;gap:8px!important;margin-left:auto;font-size:11px!important;color:#475569!important}
.consult-status-label select{width:190px;height:32px!important}
.scheduler-consulting-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.scheduler-consulting-fields .wide{grid-column:1/-1}
.consult-subject-checks{display:flex;align-items:center;gap:12px;background:white;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;min-height:38px}
.consult-subject-checks span{margin:0;color:#475569;font-size:10px;text-transform:uppercase;font-weight:500}
.consult-subject-checks label{display:flex;flex-direction:row;align-items:center;gap:4px}
.consult-subject-checks input{width:14px;height:14px}
.additional-children-list{display:grid;gap:12px}
.additional-child-card{padding:12px;border:1px solid #bfdbfe;border-radius:10px;background:#fff}
.additional-child-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#1e3a8a}
.additional-child-head .remove-consult-child{height:28px;background:#e2e8f0;color:#334155;border-radius:8px;padding:0 9px;font-size:11px}
.scheduler-session-note{display:grid;padding:0 2px}
.scheduler-session-actions{display:flex;justify-content:flex-end;gap:8px}
.scheduler-session-actions .secondary{width:auto!important;margin:0!important;background:#f1f5f9!important;color:#334155!important}
.sched-chip.manual-session{border-style:dashed!important;background:#f0f9ff!important;border-color:#38bdf8!important}
.sched-chip.manual-session{cursor:default}
.sched-chip.manual-session em{background:#0284c7!important}
.sched-chip.manual-session:has(em){cursor:pointer}
.sched-chip.manual-session:has(em) {background:#f5f3ff!important;border-color:#8b5cf6!important;color:#312e81!important}
.sched-chip.manual-session:has(em) em{background:#7c3aed!important;color:#fff!important}
.manual-session-detail-modal{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:22px}
.manual-session-detail-backdrop{position:absolute;inset:0;background:#0f172a66}
.manual-session-detail-card{position:relative;z-index:1;width:min(680px,95vw);max-height:88vh;overflow:auto;background:white;border:1px solid #bfdbfe;border-radius:14px;padding:18px;box-shadow:0 24px 80px #0f172a55}
.manual-session-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.manual-session-detail-head b{display:block;color:#0f172a;font-size:18px}
.manual-session-detail-head small{display:block;color:#64748b;font-size:12px;margin-top:3px}
.manual-session-detail-actions{display:flex;align-items:center;gap:8px}
.manual-session-detail-edit{height:28px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:12px;font-weight:700;padding:0 12px}
.manual-session-detail-close{width:26px;height:26px;border:0;border-radius:8px;background:#dbeafe;color:#1e3a8a;font-weight:900}
.manual-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.manual-detail-grid div{display:grid;gap:4px}
.manual-detail-grid span{font-size:11px;color:#64748b}
.manual-detail-grid b{font-size:13px;color:#0f172a;font-weight:500}
.manual-session-detail-card p{margin:0;font-size:13px;color:#334155;line-height:1.45}
@media(max-width:1100px){
  .scheduler-session-fields{grid-template-columns:1fr 1fr}
  .scheduler-consulting-fields{grid-template-columns:1fr 1fr}
}

/* Payroll */
.payroll-filters{align-items:end}
.payroll-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0 14px}
.payroll-cards .card{padding:10px 12px;min-height:auto}
.payroll-cards .card b{font-size:20px}
.payroll-cards .card.warning{border-color:#fca5a5;background:#fff1f2}
.payroll-status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.payroll-status-tabs a{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe3ef;background:#f8fafc;color:#475569;border-radius:8px;padding:7px 11px;text-decoration:none;font-size:12px;font-weight:900}
.payroll-status-tabs a.active{background:#203864;color:#fff;border-color:#203864}
.payroll-status-tabs a b{font-size:11px;background:#ffffff33;border-radius:999px;padding:1px 6px}
.payroll-status-tabs a:not(.active) b{background:#e2e8f0;color:#334155}
.payroll-table td,.payroll-table th{text-align:right}
.payroll-table td:first-child,.payroll-table th:first-child{text-align:left}
.time-tracking-table th,.time-tracking-table td{padding:7px 8px}
.time-tracking-table input[type="time"]{width:86px}
.time-tracking-table th:nth-child(3),.time-tracking-table th:nth-child(4),.time-tracking-table td:nth-child(3),.time-tracking-table td:nth-child(4){width:94px}
.time-tracking-table th:nth-child(5),.time-tracking-table th:nth-child(6),.time-tracking-table td:nth-child(5),.time-tracking-table td:nth-child(6){width:104px;white-space:nowrap}
.period-nav{display:flex;align-items:center;gap:8px}
.period-nav .period-step{height:38px;padding:0 12px;font-size:12px}
.period-current{min-width:150px;height:48px;display:grid;place-items:center;text-align:center;text-decoration:none;color:#203864;background:#eef2ff;border:1px solid #dbe4ff;border-radius:12px;padding:6px 14px}
.period-current strong{font-size:13px;line-height:1}
.period-current span{font-size:11px;color:#667085;font-weight:900;line-height:1}
.payroll-actual-form{margin:0}
.payroll-actual-input{width:96px;text-align:right}
.payroll-paid-control{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px}
.payroll-paid-control input[type="checkbox"]{width:16px;height:16px}
.payroll-paid-control input[type="date"]{width:132px;height:34px;padding:0 8px;font-size:12px}
.payroll-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid #e5e7eb;background:#f8fafc}
.payroll-save-row button{height:34px;padding:0 12px;font-size:12px}
.payroll-detail{margin-top:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:10px}
.payroll-detail summary{cursor:pointer;font-weight:900;color:#334155}
.payroll-employee-detail summary{cursor:pointer;font-weight:900;color:#0f172a}
.payroll-employee-detail[open] summary{margin-bottom:8px;color:#203864}
.payroll-employee-detail.payroll-review-name summary{color:#b45309}
.payroll-employee-detail.payroll-review-name summary span{display:inline-flex;margin-left:7px;border-radius:999px;background:#fffbeb;color:#92400e;border:1px solid #fcd34d;padding:1px 6px;font-size:10px;font-weight:900;vertical-align:middle}
.payroll-employee-session-table{margin:6px 0 4px;width:min(680px,100%);font-size:12px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.payroll-employee-session-table th,.payroll-employee-session-table td{padding:6px 7px;text-align:left;border-bottom:1px solid #edf2f7}
.payroll-employee-session-table th{font-size:10px;background:#f8fafc;color:#64748b;text-transform:uppercase}
.payroll-employee-session-table tr:last-child td{border-bottom:0}
.payroll-employee-session-table tr.payroll-over-schedule td{background:#fffbeb}
.payroll-paid-edit{display:flex;align-items:center;gap:5px}
.payroll-session-paid-input{width:64px;border:1px solid #cbd5e1;border-radius:7px;padding:4px 6px;font-size:12px;font-weight:900;text-align:right;background:#fff}
.payroll-apply-actual{border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:7px;padding:4px 7px;font-size:10px;font-weight:900;cursor:pointer}
.payroll-apply-actual:hover{background:#fef3c7}
.payroll-excluded{display:block;margin-top:2px;color:#92400e;font-size:10px;font-weight:900}
.payroll-session-save-status{display:block;margin-top:2px;color:#475569;font-size:10px;font-weight:800}
.payroll-session-save-status.error{color:#b91c1c}
.payroll-actual-cell{display:grid;gap:5px;justify-items:end}
.payroll-actual-cell textarea{width:150px;min-height:34px;resize:vertical;border:1px solid #cbd5e1;border-radius:7px;padding:5px 7px;font-size:12px;line-height:1.2}
.payroll-memo-status{min-height:12px;font-size:10px;font-weight:800;color:#16a34a}
.payroll-memo-status.error{color:#dc2626}
.payroll-subtabs{display:flex;gap:8px;margin:0 0 14px;border-bottom:1px solid #e2e8f0}
.payroll-subtabs a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;text-decoration:none;color:#475569;font-weight:900;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:#f8fafc}
.payroll-subtabs a.active{background:#fff;color:#203864;border-color:#e2e8f0;box-shadow:0 -2px 8px #10182808}
.payroll-history-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.payroll-history-filters{align-items:end;margin:0 0 12px}
.payroll-history-filters input[type="number"]{width:92px}
.payroll-history-summary{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:10px;margin:0 0 12px}
.payroll-history-person-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin:0 0 14px}
.payroll-history-person-summary a{display:grid;gap:2px;text-decoration:none;color:#0f172a;background:#f8fafc;border:1px solid #dbe6f3;border-radius:10px;padding:10px}
.payroll-history-person-summary a:hover{border-color:#93c5fd;background:#eff6ff}
.payroll-history-person-summary b{font-size:13px}
.payroll-history-person-summary span{font-size:18px;font-weight:1000;color:#203864}
.payroll-history-person-summary small{color:#64748b;font-weight:800}
.payroll-history-tools label{font-size:12px;font-weight:900;color:#475569}
.payroll-history-table th a{color:inherit;text-decoration:none}
.payroll-history-table input{width:96px;border:1px solid #cbd5e1;border-radius:7px;padding:5px 7px;font-size:12px}
.payroll-history-table input[name="amount"]{width:82px;text-align:right}
.payroll-history-table input[name="paid_hours"]{width:62px;text-align:right}
.payroll-history-actions{display:flex;gap:5px;align-items:center}
.payroll-history-actions button{padding:5px 8px;font-size:11px}
.payroll-history-save-status{min-width:54px;color:#16a34a;font-size:10px;font-weight:900}
.payroll-history-save-status.error{color:#b91c1c}
.payroll-check-tools{margin-bottom:16px}
.payroll-check-form{align-items:end;flex-wrap:wrap}
.payroll-check-form label{min-width:150px}
.payroll-check-form select,.payroll-check-form input{height:38px}
.payroll-check-sheet-wrap{display:grid;place-items:start;overflow:auto;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;padding:18px}
.payroll-check-sheet{position:relative;width:8.5in;height:11in;background:white;color:#000;font-family:"Acumin Pro",Arial,Helvetica,sans-serif;font-size:12pt;font-weight:500;box-shadow:0 10px 28px #10182818;overflow:hidden}
.payroll-check-date{position:absolute;top:.63in;right:.74in;font-size:12pt;font-weight:500}
.payroll-check-payee{position:absolute;top:1.14in;left:.92in;font-size:12pt;font-weight:500}
.payroll-check-amount-top{position:absolute;top:1.14in;right:1.02in;font-size:12pt;font-weight:500}
.payroll-check-words{position:absolute;top:1.47in;left:.26in;font-size:12pt;font-weight:500}
.payroll-check-mini{position:absolute;top:1.93in;left:.67in;font-size:12pt;font-weight:500}
.payroll-check-mini .mini-row{display:grid;grid-template-columns:.56in repeat(4,.91in);height:.22in;align-items:center}
.payroll-check-mini .mini-row span{white-space:nowrap}
.payroll-stub{position:absolute;left:.63in;right:.22in;font-size:9pt;font-weight:500}
.payroll-stub.stub-1{top:3.73in}
.payroll-stub.stub-2{top:7.36in}
.payroll-stub h3{margin:0 0 .2in;font-size:9pt;font-weight:500}
.payroll-stub .stub-line{display:grid;grid-template-columns:1.28in minmax(0,1fr);align-items:baseline;min-height:.39in;font-weight:500}
.payroll-stub .stub-line b{font-weight:500}
.payroll-stub .stub-line span{font-weight:500}
.payroll-stub .stub-line b{white-space:nowrap}
.payroll-stub .stub-line.dates{grid-template-columns:1.28in minmax(0,1fr)}
.payroll-stub .stub-line.dates span{display:grid;grid-template-columns:repeat(var(--stub-cols,4),.74in);align-items:baseline;column-gap:.1in;width:max-content;max-width:100%;white-space:nowrap;font-size:9pt}
.payroll-stub .stub-line.dates span em{font-style:normal;font-weight:500;letter-spacing:0;text-align:left}
.payroll-stub .stub-date{grid-template-columns:1.28in 1.48in .62in minmax(0,1fr)}
.payroll-stub .stub-date em,.payroll-stub .stub-date i{font-style:normal;font-weight:500}
.payroll-stub .stub-date i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){
  .payroll-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .payroll-check-sheet{transform:scale(.62);transform-origin:top left}
  .payroll-check-sheet-wrap{height:7.1in}
}
@media print{
  body.payroll-check-mode{background:#fff}
  body.payroll-check-mode header,
  body.payroll-check-mode nav,
  body.payroll-check-mode .logout,
  body.payroll-check-mode .calendar-head,
  body.payroll-check-mode .payroll-subtabs,
  body.payroll-check-mode .payroll-check-tools{display:none!important}
  body.payroll-check-mode main{max-width:none!important;padding:0!important;margin:0!important}
  body.payroll-check-mode .payroll-panel{border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
  body.payroll-check-mode .payroll-check-sheet-wrap{display:block;border:0!important;border-radius:0!important;background:#fff!important;padding:0!important;overflow:visible!important}
  body.payroll-check-mode .payroll-check-sheet{width:8.5in;height:11in;box-shadow:none!important;transform:none!important}
  @page{size:letter;margin:0}
}
.scheduler-page.compact .sched-count{
  right:4px!important;
  top:3px!important;
}

.cn-special-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.cn-toolbar{
  position:relative;
  z-index:200;
}
.cn-special-actions details{
  position:relative;
  z-index:210;
}
.cn-special-actions details[open]{
  z-index:1000;
}
.cn-special-actions summary{
  list-style:none;
  cursor:pointer;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  padding:9px 14px;
}
.cn-special-actions summary::-webkit-details-marker{
  display:none;
}
.cn-special-actions details[open] summary{
  border-color:#2563eb;
  box-shadow:0 0 0 3px #2563eb18;
}
.cn-special-actions form{
  position:absolute;
  right:0;
  top:44px;
  z-index:1001;
  min-width:250px;
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 40px #0f172a24;
}
.cn-special-actions label{
  margin:0;
  font-size:12px;
  font-weight:800;
  color:#334155;
}
.cn-special-actions input,
.cn-special-actions select{
  width:100%;
  margin-top:4px;
}
.cn-special-actions button{
  background:#2563eb;
  color:#fff;
}

.record-missing-plan{
  margin:10px 0 12px;
}
.record-missing-plan summary{
  display:inline-flex;
  cursor:pointer;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  padding:9px 14px;
}
.record-missing-plan form{
  display:flex;
  align-items:end;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  padding:12px;
  border:1px solid #dbe4ef;
  border-radius:10px;
  background:#f8fafc;
}
.record-missing-plan label{
  margin:0;
  min-width:150px;
}
.record-missing-plan input,
.record-missing-plan select{
  width:100%;
}
.record-missing-plan button{
  background:#2563eb;
  color:#fff;
}

.employee-cards{
  margin:4px 0 18px;
}
.employee-layout{
  display:block;
  margin:18px 0;
}
.employee-head-actions{
  display:flex;
  align-items:end;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.employee-resume-upload-form{
  display:grid;
  grid-template-columns:minmax(190px,260px) auto;
  gap:8px;
  align-items:end;
  padding:8px;
  border:1px solid #dbe6f3;
  border-radius:12px;
  background:#f8fbff;
}
.employee-resume-upload-form input,
.employee-resume-upload-form button{
  height:36px;
  font-size:12px;
}
.employee-resume-upload-form input{
  padding:6px 8px;
}
.employee-resume-link{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  min-height:42px;
  border:1px solid #dbe6f3;
  border-radius:10px;
  background:#f8fbff;
  padding:10px;
}
.employee-resume-link a{
  color:#203864;
  font-weight:950;
}
.employee-message-panel{
  max-width:980px;
}
.employee-message-picker{
  min-width:280px;
}
.employee-message-picker > label{
  display:block;
  margin-bottom:4px;
  color:#1f2937;
  font-size:12px;
  font-weight:1000;
}
.employee-message-menu{
  position:relative;
  z-index:8;
}
.employee-message-menu summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  border:2px solid #2563eb;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
  color:#111827;
  font-weight:950;
  list-style:none;
  cursor:pointer;
}
.employee-message-menu summary::-webkit-details-marker{
  display:none;
}
.employee-message-menu summary::after{
  content:"v";
  color:#334155;
  font-size:15px;
  font-weight:1000;
  margin-left:auto;
}
.employee-message-menu[open] summary{
  border-bottom-left-radius:8px;
  border-bottom-right-radius:8px;
}
.employee-message-menu-list{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:320px;
  overflow:auto;
  border:1px solid #dbe6f3;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  padding:6px;
}
.employee-message-menu-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:9px;
  padding:10px 11px;
  color:#0f172a;
  font-weight:900;
  text-decoration:none;
}
.employee-message-menu-list a:hover,
.employee-message-menu-list a.active{
  background:#eff6ff;
  color:#1d4ed8;
}
.employee-message-window{
  border:1px solid #dbe6f3;
  border-radius:14px;
  background:#f8fbff;
  padding:14px;
}
.employee-message-window legend{
  padding:0 8px;
  color:#0f172a;
  font-weight:1000;
}
.employee-message-thread{
  display:grid;
  gap:9px;
  max-height:480px;
  overflow:auto;
  padding:10px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.employee-message-thread.compact{
  max-height:260px;
}
.employee-message-bubble{
  width:min(82%,620px);
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
}
.employee-message-bubble.mine{
  justify-self:end;
  background:#eff6ff;
  border-color:#bfdbfe;
}
.employee-message-bubble.theirs{
  justify-self:start;
}
.employee-message-bubble div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:5px;
}
.employee-message-bubble b{
  color:#0f172a;
  font-size:12px;
}
.employee-message-bubble small{
  color:#64748b;
  font-size:10px;
  font-weight:800;
}
.employee-message-bubble p{
  margin:0;
  white-space:normal;
  line-height:1.35;
}
.employee-message-read-status{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:10px;
  font-weight:900;
}
.message-badge{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  border-radius:999px;
  background:#dc2626;
  color:white;
  font-size:11px;
  font-weight:1000;
  padding:0 6px;
  margin-left:5px;
}
nav a .message-badge{
  min-width:18px;
  height:18px;
  font-size:10px;
  margin-left:4px;
  vertical-align:middle;
  background:#ef4444;
  color:#fff;
  box-shadow:0 0 0 2px rgba(255,255,255,.22);
}
.employee-message-tools{
  margin-top:8px;
}
.employee-message-tools summary{
  cursor:pointer;
  color:#203864;
  font-weight:950;
}
.employee-message-tools form{
  display:grid;
  gap:6px;
  margin-top:7px;
}
.employee-message-tools textarea{
  min-height:68px;
  font-size:12px;
}
.employee-message-tools button{
  justify-self:start;
  padding:7px 10px;
  font-size:12px;
}
.employee-message-compose{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:end;
  margin-top:10px;
}
.employee-message-compose textarea{
  min-height:82px;
}
.employee-panel h3{
  margin:18px 0 10px;
}
.employee-form,
.employee-work-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.employee-form .wide,
.employee-work-form .wide{
  grid-column:1/-1;
}
.employee-form button,
.employee-work-form button{
  justify-self:start;
}
.employee-form-actions{
  grid-column:1/-1;
  display:flex;
  gap:8px;
  align-items:center;
}
.employee-form-actions .spacer{
  flex:1;
}
.employee-login-settings{
  border:1px solid #dbe6f3;
  border-radius:14px;
  background:#f8fbff;
  padding:14px;
}
.employee-login-settings legend{
  padding:0 8px;
  color:#0f172a;
  font-weight:1000;
}
.employee-login-settings label.check{
  display:inline-flex!important;
  width:auto!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin:0 0 10px!important;
}
.employee-login-settings input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.employee-password-status{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
}
.employee-permission-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
  margin-top:10px;
}
.employee-permission-grid label{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  position:relative;
  min-height:34px;
  margin:0!important;
  padding:8px 28px 8px 10px!important;
  border:1px solid #d7e3f0;
  border-radius:10px;
  background:#fff;
  color:#24364b;
  font-size:13px;
  font-weight:900;
  line-height:1.15;
}
.employee-permission-grid label:has(input:checked){
  border-color:#d7e3f0;
  background:#fff;
  color:#24364b;
  box-shadow:none;
}
.employee-permission-grid span{
  display:inline-block;
  min-width:0;
}
.employee-editor-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:1000;
  padding:32px;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  box-shadow:none;
}
.employee-editor-modal.open{
  display:flex;
}
.employee-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(2px);
}
.employee-modal-card{
  position:relative;
  z-index:1;
  width:min(860px,calc(100vw - 56px));
  max-height:calc(100vh - 64px);
  overflow:auto;
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:22px;
  box-shadow:0 24px 80px rgba(15,23,42,.35);
  padding:22px;
}
.employee-modal-head{
  position:sticky;
  top:-22px;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:-22px -22px 18px;
  padding:18px 22px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}
.employee-modal-head h3{
  margin:0;
}
.employee-modal-close{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:999px;
  background:#f1f5f9;
  color:#0f172a;
  text-decoration:none;
  font-size:24px;
  font-weight:900;
}
.employee-work-form{
  margin-top:10px;
}
.employee-list-first{
  margin-bottom:8px;
}
.employee-directory .classnavi-table{
  min-width:1280px;
}
.employee-directory .classnavi-row{
  grid-template-columns:minmax(160px,1fr) 108px minmax(210px,1.1fr) 88px minmax(190px,1fr) minmax(130px,.7fr) 82px minmax(160px,.85fr) 112px!important;
}
.employee-directory .classnavi-row>div:nth-child(2){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.employee-directory .classnavi-row>div:nth-child(4){
  display:block!important;
  text-align:left!important;
}
.employee-directory .classnavi-row>div:nth-child(5){
  display:block!important;
  text-align:left!important;
}
.employee-directory .classnavi-row>div:nth-child(7){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.employee-directory .classnavi-row>div:nth-child(8){
  display:block!important;
  text-align:left!important;
}
.employee-directory .classnavi-row>div:nth-child(9){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.employee-tax-form{
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  display:flex!important;
  justify-content:center!important;
  width:100%!important;
}
.employee-tax-form input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  cursor:pointer!important;
  accent-color:#203864;
}
.employee-directory .student-actions{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
.employee-directory .student-actions a{
  margin:0!important;
  white-space:nowrap!important;
}
.employee-directory .employee-not-selected-button{
  min-height:0!important;
  padding:4px 6px!important;
  border-radius:7px!important;
  font-size:9px!important;
  line-height:11px!important;
  white-space:nowrap!important;
}
.student-status-select.prospective{
  background:#f3e8ff!important;
  border-color:#d8b4fe!important;
  color:#6b21a8!important;
}
.employee-schedule-display{
  display:inline-flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:4px 6px!important;
}
.employee-availability-display{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
}
.employee-schedule-display .enroll-pair{
  margin-right:0!important;
}
.employee-availability-checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.employee-availability-checks label{
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
  padding:7px 10px;
  border:1px solid #dbe6f3;
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  font-weight:1000;
}
.employee-availability-checks input{
  margin:0!important;
}
.employee-schedule-slots{
  display:grid;
  gap:8px;
  margin-top:6px;
}
.employee-schedule-slot{
  display:grid;
  grid-template-columns:76px 128px minmax(112px,.9fr) minmax(98px,1fr) 24px minmax(98px,1fr) 32px;
  gap:8px;
  align-items:center;
}
.employee-schedule-slot select,
.employee-schedule-slot input{
  margin-top:0!important;
  min-width:0;
}
.employee-schedule-slot span{
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-align:center;
}
.employee-schedule-remove{
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border-radius:999px!important;
  background:#fee2e2!important;
  color:#991b1b!important;
}
.employee-schedule-add{
  margin-top:8px!important;
  padding:8px 12px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  border-radius:9px!important;
}
.employee-schedule-display .enroll-time em{
  font-style:normal;
  color:#1d4ed8;
  margin-left:3px;
}
.employee-scheduler-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.weekly-assist-board{
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:8px;
  padding:10px;
  margin:10px 0 14px;
}
.weekly-assist-head{
  display:flex;
  justify-content:center;
  margin-bottom:7px;
}
.weekly-assist-title-row{
  display:grid;
  grid-template-columns:38px minmax(120px,auto) 38px;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.weekly-assist-title{
  text-align:center;
  min-width:0;
}
.weekly-assist-title h3{margin:0;font-size:13px;color:#0f172a}
.weekly-assist-title p{margin:1px 0 0;color:#64748b;font-size:10px;font-weight:800}
.weekly-assist-mini-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  border:1px solid #dbe6f3;
  background:#fff;
  color:#0f172a;
  padding:3px 4px;
  font-size:9px;
  font-weight:800;
  line-height:1;
  box-shadow:none;
  text-decoration:none;
  white-space:nowrap;
}
.weekly-assist-mini-nav:hover{
  background:#eff6ff;
  border-color:#93c5fd;
}
.weekly-assist-display-form{
  margin:0;
  min-width:0;
}
.weekly-assist-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  gap:8px;
  align-items:start;
}
.weekly-assist-day-tables{
  display:grid;
  gap:6px;
}
.weekly-assist-day-table{
  border:1px solid #e2e8f0;
  border-radius:7px;
  padding:6px;
  background:#f8fafc;
}
.weekly-assist-day-table h4{
  margin:0 0 5px;
  font-size:12px;
  color:#0f172a;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px;
}
.weekly-assist-day-table h4 span{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
}
.weekly-assist-day-table h4 small{color:#64748b;font-weight:700;font-size:10px}
.weekly-assist-day-table h4 em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#e0f2fe;
  color:#075985;
  font-style:normal;
  font-size:10px;
  font-weight:900;
}
.weekly-assist-day-table h4 em.short{
  background:#fee2e2;
  color:#991b1b;
}
.weekly-assist-day-table h4 em.over{
  background:#dcfce7;
  color:#166534;
}
.weekly-assist-table-wrap{
  overflow:auto;
}
.weekly-assist-day-table table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
}
.weekly-assist-day-table th,
.weekly-assist-day-table td{
  border:1px solid #dbe6f3;
  text-align:center;
  vertical-align:middle;
  padding:4px;
  font-size:10px;
}
.weekly-assist-day-table th{
  position:relative;
  color:#0f172a;
  background:#fff;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.weekly-assist-day-table th small{
  display:block;
  color:#64748b;
  font-size:8.5px;
  font-weight:500;
  margin-top:1px;
}
.weekly-assist-delete{
  position:absolute;
  top:2px;
  right:2px;
  width:16px;
  height:16px;
  border:1px solid #fecaca;
  border-radius:50%;
  background:#fff;
  color:#991b1b;
  font-size:11px;
  line-height:1;
  padding:0;
  opacity:.55;
  cursor:pointer;
}
.weekly-assist-day-table th:hover .weekly-assist-delete,
.weekly-assist-delete:focus{
  opacity:1;
  background:#fee2e2;
}
.weekly-assist-day-table td{
  height:25px;
}
.weekly-assist-name-select,
.weekly-assist-role-select{
  width:100%;
  min-width:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#0f172a;
  text-align:center;
  text-align-last:center;
  font-size:10px;
  line-height:1.1;
}
.weekly-assist-name-select{
  font-weight:500;
  padding:2px 4px;
}
.weekly-assist-role-select{
  margin:-4px;
  padding:6px 3px;
  font-weight:500;
  appearance:auto;
}
.weekly-assist-alerts{
  border:1px solid #fde68a;
  border-radius:7px;
  background:#fffbeb;
  padding:7px;
  color:#0f172a;
}
.weekly-assist-alerts h4{
  margin:0 0 6px;
  font-size:11px;
  color:#92400e;
}
.weekly-assist-alerts p{
  margin:0;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}
.weekly-assist-missing-item{
  border:1px solid #fed7aa;
  border-radius:6px;
  background:#fff7ed;
  padding:6px;
  margin-top:5px;
  font-size:10px;
}
.weekly-assist-missing-item b,
.weekly-assist-missing-item span,
.weekly-assist-missing-item small{
  display:block;
}
.weekly-assist-missing-item b{
  font-size:10.5px;
  color:#7c2d12;
}
.weekly-assist-missing-item span{
  margin-top:2px;
  color:#0f172a;
  font-weight:800;
}
.weekly-assist-missing-item small{
  margin-top:2px;
  color:#64748b;
  font-weight:700;
}
.weekly-assist-note-heading{
  margin-top:10px!important;
}
.weekly-assist-note-alert{
  border:1px solid #bfdbfe;
  border-radius:6px;
  background:#eff6ff;
  padding:6px;
  margin-top:5px;
  font-size:10px;
}
.weekly-assist-note-alert b,
.weekly-assist-note-alert span,
.weekly-assist-note-alert small{
  display:block;
}
.weekly-assist-note-alert-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:6px;
}
.weekly-assist-note-alert-top form{
  margin:0;
}
.weekly-assist-note-alert-top .danger-mini{
  height:22px;
  padding:0 7px;
  border:1px solid #fecaca;
  border-radius:5px;
  background:#fee2e2;
  color:#991b1b;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.weekly-assist-note-alert-top .danger-mini:hover{
  background:#dc2626;
  color:#fff;
}
.weekly-assist-note-alert b{
  font-size:10.5px;
  color:#1e3a8a;
}
.weekly-assist-note-alert span{
  margin-top:2px;
  color:#0f172a;
  font-weight:800;
}
.weekly-assist-note-alert small{
  margin-top:2px;
  color:#475569;
  font-weight:700;
}
.weekly-assist-name-select:focus,
.weekly-assist-role-select:focus{
  outline:1px solid #2563eb;
  background:#fff;
}
.weekly-assist-role-code{
  display:block;
  margin:-5px;
  padding:7px 4px;
  color:#0f172a;
  font-size:10px;
  font-weight:600;
  line-height:1;
}
.weekly-assist-chip{
  display:block;
  border:1px solid #cbd5e1;
  border-radius:5px;
  padding:5px;
  margin-top:4px;
  color:#0f172a;
  font-size:10px;
  line-height:1.2;
}
.weekly-assist-chip b{display:block;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.weekly-assist-chip span{display:block;font-weight:600}
.weekly-assist-chip em{display:block;font-style:normal;color:#475569;margin-top:2px}
.weekly-assist-editor{
  margin-top:8px;
}
.weekly-assist-editor summary{
  cursor:pointer;
  color:#0f172a;
  font-size:12px;
  font-weight:800;
}
.weekly-assist-rows{
  display:grid;
  gap:6px;
  margin-top:8px;
}
.weekly-assist-row{
  display:grid;
  grid-template-columns:70px 1.3fr 1.1fr 96px 22px 96px 1fr 28px;
  gap:5px;
  align-items:center;
}
.weekly-assist-row select,
.weekly-assist-row input{
  border:1px solid #cbd5e1;
  border-radius:7px;
  padding:6px 7px;
  font-size:11px;
  min-width:0;
}
.weekly-assist-row span{
  text-align:center;
  color:#64748b;
  font-size:10px;
  font-weight:800;
}
.weekly-assist-remove{
  height:28px;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#991b1b;
  border-radius:7px;
  padding:0;
}
.weekly-assist-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px;
}
.weekly-assist-actions button{
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:8px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
}
.weekly-assist-actions button:last-child{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.weekly-assist-display-actions{
  margin-top:6px;
  justify-content:flex-start;
}
.weekly-assist-autosave-status{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 7px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f8fafc;
  color:#64748b;
  font-size:10px;
  font-weight:800;
}
.weekly-assist-autosave-status.saving{
  color:#92400e;
  background:#fffbeb;
  border-color:#fde68a;
}
.weekly-assist-autosave-status.saved{
  color:#166534;
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.weekly-assist-autosave-status.error{
  color:#991b1b;
  background:#fef2f2;
  border-color:#fecaca;
}
.employee-weekday-schedules{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.employee-day-board{
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:8px;
  padding:8px;
  min-width:0;
}
.employee-day-board-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.employee-day-board-head h3{
  margin:0;
  font-size:15px;
}
.employee-day-board-head span{
  color:#64748b;
  font-size:10px;
  font-weight:900;
}
.employee-day-table-wrap{
  overflow:visible;
}
.employee-day-table{
  min-width:0;
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
  border:1px solid #111827;
}
.employee-day-table th,
.employee-day-table td{
  border:1px solid #111827;
  height:20px;
  padding:1px 3px;
  text-align:center;
  vertical-align:middle;
  font-size:10px;
  line-height:1.1;
}
.employee-day-table th{
  background:#fff;
  color:#0f172a;
  font-weight:700;
}
.employee-day-table thead th{
  height:24px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10.5px;
}
.employee-day-table thead th:first-child,
.employee-day-table tbody th{
  width:48px;
}
.employee-day-table th a{
  color:#0f172a;
  text-decoration:none;
}
.employee-day-table thead th.employee-open-head{
  background:#fef3c7;
  color:#92400e;
}
.employee-day-table td{
  background:#fff;
}
.employee-day-table td.employee-open-cell{
  background:#fffbeb;
}
.employee-day-table th,
.employee-day-table td{
  overflow:hidden;
  text-overflow:ellipsis;
}
.employee-day-table .employee-role-cell{
  overflow:hidden;
  text-overflow:ellipsis;
}
.employee-role-cell{
  display:block;
  margin:-1px -3px;
  padding:3px 3px;
  min-height:20px;
  color:#0f172a;
  text-decoration:none;
  font-weight:600;
  font-size:9px;
  line-height:14px;
}
.employee-role-cell + .employee-role-cell{
  border-top:1px solid rgba(15,23,42,.35);
}
.employee-role-cell.role-grader,
.employee-role-cell.role-grader-system,
.weekly-assist-chip.role-grader,
.weekly-assist-chip.role-grader-system,
.weekly-assist-role-code.role-grader,
.weekly-assist-role-code.role-grader-system,
.weekly-assist-role-select.role-grader,
.weekly-assist-role-select.role-grader-system{
  background:#f6ddcf;
}
.employee-role-cell.role-early-leaner,
.weekly-assist-chip.role-early-leaner,
.weekly-assist-role-code.role-early-leaner,
.weekly-assist-role-select.role-early-leaner{
  background:#bfefc9;
}
.employee-role-cell.role-check-in,
.weekly-assist-chip.role-check-in,
.weekly-assist-role-code.role-check-in,
.weekly-assist-role-select.role-check-in{
  background:#f3c7ee;
}
.employee-role-cell.role-final-check,
.weekly-assist-chip.role-final-check,
.weekly-assist-role-code.role-final-check,
.weekly-assist-role-select.role-final-check{
  background:#d9d6ff;
}
.employee-role-cell.role-check-in-final-check,
.weekly-assist-chip.role-check-in-final-check,
.weekly-assist-role-code.role-check-in-final-check,
.weekly-assist-role-select.role-check-in-final-check{
  background:#ead5ff;
}
.employee-role-cell.role-plan,
.weekly-assist-chip.role-plan,
.weekly-assist-role-code.role-plan,
.weekly-assist-role-select.role-plan{
  background:#dbeafe;
}
.employee-role-cell.role-prep,
.weekly-assist-chip.role-prep,
.weekly-assist-role-code.role-prep,
.weekly-assist-role-select.role-prep{
  background:#bfe7f4;
}
.employee-role-cell.role-class-monitor,
.weekly-assist-chip.role-class-monitor,
.weekly-assist-role-code.role-class-monitor,
.weekly-assist-role-select.role-class-monitor{
  background:#f8e8a6;
}
.employee-open-role{
  background:#fef08a!important;
  color:#713f12;
  border:1px dashed #ca8a04;
}
.employee-staffing-requirements{
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:8px;
  padding:10px;
  margin:10px 0;
}
.employee-staffing-requirements summary{
  cursor:pointer;
  font-weight:950;
  color:#0f172a;
}
.employee-requirement-rows{
  display:grid;
  gap:6px;
  margin-top:10px;
}
.employee-requirement-row{
  display:grid;
  grid-template-columns:76px 140px 92px 22px 92px 58px minmax(130px,1fr) 132px 132px;
  gap:6px;
  align-items:center;
}
.employee-requirement-row select,
.employee-requirement-row input{
  min-width:0;
  height:38px;
  border-radius:8px;
  padding:0 10px;
  font-size:12px;
  line-height:1.2;
}
.employee-schedule-notes{
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:8px;
  padding:10px;
  margin:12px 0 0;
}
.employee-schedule-notes-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.employee-schedule-notes-head h3{
  margin:0;
  font-size:15px;
  color:#0f172a;
}
.employee-schedule-notes-head p{
  margin:2px 0 0;
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.employee-schedule-note-form{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
  align-items:end;
  margin:0 0 10px;
}
.schedule-note-editing{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:28px;
  margin:0 0 8px;
  padding:5px 10px;
  border:1px solid #b8c8e6;
  background:#eef4ff;
  color:#1f3f75;
  border-radius:6px;
  font-size:12px;
  font-weight:700;
}
.employee-schedule-note-form label{
  display:grid;
  gap:3px;
  color:#475569;
  font-size:10px;
  font-weight:900;
}
.employee-schedule-note-form:not(.quit-mode) .schedule-note-quit-only{
  display:none;
}
.employee-schedule-note-form:not(.extra-mode) .schedule-note-extra-only,
.employee-schedule-note-form.extra-mode .schedule-note-replacement-field,
.employee-schedule-note-form.extra-mode .schedule-note-quit-only{
  display:none;
}
.employee-schedule-note-form input,
.employee-schedule-note-form select{
  width:100%;
  height:31px;
  min-width:0;
  border:1px solid #cbd5e1;
  border-radius:7px;
  padding:6px 7px;
  font-size:11px;
  color:#0f172a;
  box-sizing:border-box;
}
.employee-schedule-note-form button{
  width:100%;
  height:31px;
  border:1px solid #0f172a;
  background:#0f172a;
  color:#fff;
  border-radius:8px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}
.schedule-note-cancel,
.schedule-note-row-actions .edit-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:7px;
  padding:5px 8px;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
}
.schedule-note-cancel{
  width:100%;
  height:31px;
  box-sizing:border-box;
}
.employee-schedule-note-tabs{
  margin-top:10px;
}
.employee-schedule-note-tabs>input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.employee-schedule-note-tab-buttons{
  display:flex;
  gap:6px;
  margin-bottom:8px;
}
.employee-schedule-note-tab-buttons label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:8px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.employee-schedule-note-tab-buttons b{
  display:inline-flex;
  min-width:18px;
  justify-content:center;
  border-radius:999px;
  background:#e2e8f0;
  color:#0f172a;
  padding:1px 5px;
  font-size:10px;
}
#schedule-note-tab-current:checked ~ .employee-schedule-note-tab-buttons label[for="schedule-note-tab-current"],
#schedule-note-tab-past:checked ~ .employee-schedule-note-tab-buttons label[for="schedule-note-tab-past"]{
  border-color:#0f172a;
  background:#0f172a;
  color:#fff;
}
#schedule-note-tab-current:checked ~ .employee-schedule-note-tab-buttons label[for="schedule-note-tab-current"] b,
#schedule-note-tab-past:checked ~ .employee-schedule-note-tab-buttons label[for="schedule-note-tab-past"] b{
  background:#fff;
  color:#0f172a;
}
.employee-schedule-note-tab-panel{
  display:none;
}
#schedule-note-tab-current:checked ~ .note-panel-current,
#schedule-note-tab-past:checked ~ .note-panel-past{
  display:block;
}
.employee-schedule-note-table-wrap{
  overflow:auto;
  border:1px solid #dbe6f3;
  border-radius:8px;
}
.employee-schedule-note-table{
  width:100%;
  min-width:1080px;
  border-collapse:collapse;
  background:#fff;
}
.employee-schedule-note-table th,
.employee-schedule-note-table td{
  border-bottom:1px solid #e5e7eb;
  border-right:1px solid #eef2f7;
  padding:7px 8px;
  text-align:left;
  vertical-align:top;
  font-size:11px;
  color:#0f172a;
}
.employee-schedule-note-table th{
  background:#dff3fb;
  font-size:10px;
  text-transform:uppercase;
  color:#0f172a;
  font-weight:900;
}
.employee-schedule-note-table th[data-note-sort]{
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.employee-schedule-note-table th[data-note-sort]::after{
  content:" ↕";
  color:#64748b;
  font-size:9px;
}
.employee-schedule-note-table th.sort-asc::after{
  content:" ↑";
  color:#0f172a;
}
.employee-schedule-note-table th.sort-desc::after{
  content:" ↓";
  color:#0f172a;
}
.employee-schedule-note-table td small{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:800;
  margin-top:2px;
}
.employee-schedule-note-table form{margin:0}
.schedule-note-row-actions{
  display:flex;
  align-items:center;
  gap:5px;
}
.employee-schedule-note-table .danger-mini{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fca5a5;
  border-radius:7px;
  padding:5px 8px;
  font-size:10px;
  font-weight:900;
}
.schedule-note-type{
  display:inline-flex;
  border-radius:999px;
  padding:3px 7px;
  background:#e0f2fe;
  color:#075985;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.schedule-note-type.quit-leaving{
  background:#fee2e2;
  color:#991b1b;
}
.schedule-note-type.schedule-change{
  background:#dcfce7;
  color:#166534;
}
@media(max-width:900px){
  .employee-directory .classnavi-table{
    min-width:1050px;
  }
  .employee-schedule-slot{
    grid-template-columns:1fr;
  }
  .employee-day-summary{
    grid-template-columns:1fr;
  }
  .employee-weekday-schedules{
    grid-template-columns:1fr;
  }
  .employee-day-board{
    padding:6px;
  }
  .employee-day-table th,
  .employee-day-table td{
    padding:1px 2px;
    font-size:9px;
  }
  .employee-day-table thead th{
    font-size:9px;
  }
  .employee-day-table thead th:first-child,
  .employee-day-table tbody th{
    width:40px;
  }
  .weekly-assist-head{
    justify-content:center;
  }
  .weekly-assist-title-row{
    grid-template-columns:34px minmax(110px,auto) 34px;
    gap:4px;
  }
  .weekly-assist-main{
    grid-template-columns:1fr;
  }
  .weekly-assist-row{
    grid-template-columns:1fr;
  }
  .employee-schedule-note-form{
    grid-template-columns:1fr 1fr;
  }
  .employee-schedule-note-form label.wide{
    grid-column:1 / -1;
  }
}
@media(max-width:560px){
  .employee-day-board{
    padding:5px;
  }
  .employee-day-table th,
  .employee-day-table td{
    padding:1px;
    font-size:8px;
  }
  .employee-day-table thead th{
    font-size:8px;
  }
  .employee-day-table thead th:first-child,
  .employee-day-table tbody th{
    width:34px;
  }
}
.employee-table-wrap{
  overflow:auto;
  border:1px solid #dbe6f3;
  border-radius:14px;
  background:#fff;
}
.employee-table{
  min-width:980px;
}
.employee-table td small{
  display:block;
  color:#64748b;
  font-size:11px;
  margin-top:3px;
}
.employee-table form{
  margin:0;
}
.employee-table .danger-mini{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fca5a5;
  padding:7px 10px;
}
@media(max-width:900px){
  .employee-layout,
  .employee-form,
  .employee-work-form{
    grid-template-columns:1fr;
  }
}

.assistant-picker{
  margin:0;
  font-size:11px;
  font-weight:900;
  color:#475467;
}
.asm-record-card.record-autosaving{box-shadow:0 0 0 3px rgba(59,130,246,.22)!important}
.asm-record-card.record-autosaved{box-shadow:0 0 0 3px rgba(34,197,94,.32)!important}
.asm-record-card.record-autosave-error{box-shadow:0 0 0 3px rgba(220,38,38,.35)!important}
.assistant-picker select{
  width:100%;
  margin-top:4px;
}
.student-records-workspace .asm-record-card{
  grid-template-columns:76px 304px 54px 275px 145px!important;
}
.student-records-workspace .asm-record-note{
  min-width:275px!important;
  width:275px!important;
}
.student-records-workspace .assistant-picker{
  min-width:135px!important;
  width:135px!important;
  align-self:center!important;
}
.record-delete-btn,
.record-delete-submit{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fecaca!important;
  border-radius:8px!important;
  padding:5px 8px!important;
  font-size:10px!important;
  font-weight:900!important;
  width:auto!important;
  min-width:54px!important;
  cursor:pointer!important;
}
.asm-record-main .record-delete-inline{
  margin-top:5px!important;
  padding:4px 7px!important;
  font-size:9px!important;
  line-height:1!important;
}
.asm-record-main .record-switch-subject{
  margin-top:5px!important;
  margin-right:4px!important;
  padding:4px 7px!important;
  font-size:9px!important;
  line-height:1!important;
  border-radius:999px!important;
  background:#eef6ff!important;
  color:#1e40af!important;
  border:1px solid #bfdbfe!important;
}
.account-panel{
  max-width:720px;
}
.account-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}
.account-form label{
  font-weight:850;
  color:#334155;
}
.account-form input{
  margin-top:6px;
}
.account-form button{
  grid-column:1 / -1;
  justify-self:start;
}
@media(max-width:1500px){
  .student-records-workspace .assistant-picker{
    min-width:0!important;
    width:100%!important;
  }
}
@media(max-width:700px){
  .account-form{
    grid-template-columns:1fr;
  }
}
.program-schedule-panel{
  overflow:visible;
}
.program-schedule-controls{
  margin-top:10px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.program-schedule-head{
  align-items:flex-start;
}
.program-side-tabs{
  display:flex;
  gap:6px;
  margin:0 0 12px;
  border-bottom:1px solid #dbe6f3;
}
.program-side-tabs a{
  text-decoration:none;
  color:#334155;
  font-weight:900;
  padding:9px 14px;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:10px 10px 0 0;
}
.program-side-tabs a.active{
  background:#fff;
  border-color:#dbe6f3;
  color:#203864;
}
.program-concept-filter{
  justify-content:flex-start;
  margin-bottom:12px;
}
.program-concept-editor{
  display:grid;
  gap:12px;
}
.program-concept-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  border-radius:14px;
  padding:14px;
}
.program-concept-head h3{
  margin:0 0 4px;
  color:#203864;
}
.program-concept-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.program-add-concept{
  background:#eef2ff!important;
  color:#203864!important;
  border:1px solid #c7d2fe!important;
}
.program-remove-concept{
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fecaca!important;
  padding:7px 9px!important;
  font-size:11px!important;
}
.program-delete-concept{
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fecaca!important;
  padding:7px 9px!important;
  font-size:11px!important;
  width:100%;
}
.program-row-actions{
  display:flex;
  gap:6px;
}
.program-row-actions button{
  flex:1;
}
.program-save-concept{
  background:#203864!important;
  color:#fff!important;
  border:1px solid #203864!important;
  padding:7px 9px!important;
  font-size:11px!important;
}
.program-concept-table{
  min-width:920px;
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:14px;
  overflow:hidden;
  display:table;
}
.program-concept-table th,
.program-concept-table td{
  padding:7px;
}
.program-concept-table input,
.program-concept-table select{
  width:100%;
  padding:7px;
  border-radius:8px;
  font-size:12px;
}
.program-concept-table td:nth-child(3),
.program-concept-table td:nth-child(4),
.program-concept-table td:nth-child(6){
  width:74px;
}
.program-concept-table td:nth-child(5) input + input{
  margin-top:5px;
}
.program-concept-new{
  background:#f8fafc;
}
.program-sheet-page{
  background:#fff;
  border:1px solid #d7dde8;
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 24px #1018280a;
}
.program-sheet-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  border-bottom:2px solid #172033;
  padding-bottom:10px;
  margin-bottom:12px;
}
.program-sheet-title b{
  display:block;
  font-size:20px;
}
.program-sheet-title span{
  color:#667085;
  font-weight:800;
}
.program-sheet-title h1{
  margin:0;
  font-size:30px;
  color:#203864;
}
.program-summary{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-bottom:12px;
}
.program-summary div{
  border:1px solid #dbe4ff;
  background:#f8fbff;
  border-radius:10px;
  padding:10px;
}
.program-summary b{
  display:block;
  font-size:24px;
  color:#203864;
}
.program-summary span{
  color:#475467;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.program-sheet-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.program-sheet-section{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px;
  break-inside:avoid;
}
.program-students{
  grid-row:auto;
}
.program-sheet-section h3{
  margin:0 0 8px;
  font-size:15px;
  color:#172033;
}
.program-sheet-section table{
  font-size:12px;
}
.program-sheet-section th,
.program-sheet-section td{
  padding:6px;
}
.program-sheet-section td small{
  display:inline-block;
  margin-left:5px;
  color:#667085;
  font-size:10px;
  font-weight:800;
}
.program-students tr.program-time-end td{
  border-bottom:3px solid #172033;
}
.program-students td:nth-child(5),
.program-students td:nth-child(5) div{
  white-space:nowrap;
}
.program-type-cell{
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}
.program-kc-pay{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:22px;
  border-radius:999px;
  background:#dcfce7;
  border:1px solid #22c55e;
  color:#166534;
  font-size:11px;
  font-weight:950;
  line-height:1;
}
.program-early-name{
  color:#db2777;
}
.program-appointment-row td,
.program-parent-subject{
  color:#7c3aed!important;
  font-weight:900;
}
.program-parent-subject{
  display:inline-block;
  font-size:12px;
}
.program-note-purple{
  color:#7c3aed;
  font-weight:900;
}
.program-flag{
  display:inline-block;
  margin-left:4px;
  color:#166534;
  background:#dcfce7;
  border-radius:999px;
  padding:1px 5px;
  font-size:10px;
}
.program-list-item{
  border-top:1px solid #eef2f7;
  padding:6px 0;
  display:grid;
  gap:2px;
  font-size:12px;
}
.program-list-item:first-of-type{
  border-top:0;
}
.program-list-item span,
.program-list-item small{
  color:#667085;
}
.program-list-item small{
  line-height:1.25;
}
.memo-print-box{
  min-height:96px;
  border:1px dashed #cbd5e1;
  border-radius:8px;
  padding:8px;
  font-size:12px;
  line-height:1.35;
  white-space:normal;
}
.memo-print-box.compact{
  min-height:70px;
}
.program-notes-editor{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.program-student-note-row{
  display:grid;
  grid-template-columns:minmax(180px,1.2fr) 130px minmax(240px,2fr) auto;
  gap:10px;
  align-items:end;
}
.program-student-note-row input,
.program-student-note-row select{
  width:100%;
}
.program-note-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
@media(max-width:900px){
  .program-sheet-grid,
  .program-summary,
  .program-student-note-row,
  .program-note-grid{
    grid-template-columns:1fr;
  }
  .program-students{
    grid-row:auto;
  }
}
@media print{
  @page{
    size:letter;
    margin:.14in;
  }
  .program-schedule-panel{
    box-shadow:none!important;
    border:0!important;
    padding:0!important;
  }
  .program-schedule-head,
  .program-side-tabs,
  .program-concept-editor,
  .program-concept-filter,
  .program-notes-editor,
  .program-note-history,
  header,
  nav,
  .logout{
    display:none!important;
  }
  body{
    background:#fff!important;
  }
  main{
    max-width:none!important;
    padding:0!important;
  }
  .program-sheet-page{
    width:100%;
    min-height:auto!important;
    border:0;
    border-radius:0;
    box-shadow:none;
    padding:0;
    break-before:auto!important;
    break-after:avoid!important;
    page-break-before:auto!important;
    page-break-after:avoid!important;
  }
  .program-sheet-title{
    align-items:center;
    margin-bottom:.025in;
    padding-bottom:.022in;
    border-bottom-width:1pt;
  }
  .program-sheet-title b{font-size:9pt}
  .program-sheet-title span{font-size:6pt}
  .program-sheet-title h1{
    font-size:11.5pt;
  }
  .program-summary{
    grid-template-columns:repeat(5,1fr);
    gap:.022in;
    margin-bottom:.028in;
  }
  .program-summary div{
    padding:.018in .032in;
    border-radius:.025in;
  }
  .program-summary b{
    font-size:8pt;
  }
  .program-summary span{
    font-size:4.8pt;
  }
  .program-sheet-grid{
    grid-template-columns:1fr;
    gap:.035in;
  }
  .program-sheet-section{
    border-radius:.025in;
    padding:.024in;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  .program-sheet-section h3{
    font-size:6.8pt;
    margin-bottom:.012in;
  }
  .program-sheet-section table{
    font-size:5.7pt;
    line-height:1.02;
    table-layout:fixed;
  }
  .program-sheet-section th,
  .program-sheet-section td{
    padding:.01in .014in;
  }
  .program-students th:nth-child(1),.program-students td:nth-child(1){width:.42in}
  .program-students th:nth-child(2),.program-students td:nth-child(2){width:.46in}
  .program-students th:nth-child(3),.program-students td:nth-child(3){width:.34in}
  .program-students th:nth-child(4),.program-students td:nth-child(4){width:.9in}
  .program-students th:nth-child(5),.program-students td:nth-child(5){width:.62in}
  .program-students th:nth-child(6),.program-students td:nth-child(6){width:.62in}
  .program-students th:nth-child(7),.program-students td:nth-child(7){width:auto}
  .program-students tr.program-time-end td{border-bottom:1pt solid #172033}
  .program-students td div{line-height:1.02}
  .student-type-pill{
    width:.115in!important;
    height:.115in!important;
    min-width:.115in!important;
    padding:0!important;
    font-size:3.5pt!important;
    border-width:.45pt!important;
  }
  .program-type-cell{gap:.006in}
  .program-kc-pay{
    min-width:.12in;
    height:.105in;
    font-size:3.8pt;
    border-width:.45pt;
  }
  .pill{font-size:4.9pt!important;padding:.008in .02in!important}
  .program-sheet-section td small{font-size:4.8pt!important;margin-left:.015in}
  .program-list-item,
  .memo-print-box{
    font-size:6.8pt;
  }
  .memo-print-box{
    min-height:.82in;
  }
  .memo-print-box.compact{
    min-height:.55in;
  }
}

/* Final Planner responsive override: later than all Set List tuning so small windows scale instead of overlapping. */
@media screen and (max-width:1380px){
  body:has(.cn-shell) main{max-width:none!important;padding:12px!important}
  .cn-shell{zoom:.94}
  .cn-main{grid-template-columns:var(--set-left,260px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-right{padding-right:190px!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{width:180px!important}
  .cn-grid-wrap{min-width:0!important;width:100%!important;max-width:100%!important}
  .cn-grid-stack,.cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks,.cn-assignment-overlay{max-width:100%!important}
  .cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks{grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important}
  .cn-assignment-overlay{grid-template-columns:repeat(200,minmax(0,1fr))!important}
  .cn-axis-box b{font-size:9px!important}
  .cn-concept-segment,.cn-subconcept-segment{font-size:7px!important;padding-left:1px!important;padding-right:1px!important}
}
@media screen and (max-width:1240px){
  .cn-shell{zoom:.88}
  .cn-main{grid-template-columns:var(--set-left,220px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-right{padding-right:178px!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{width:168px!important}
  .set-recordbook-title{font-size:9px!important}
  .set-recordbook th,.set-recordbook td,
  .set-recordbook.rb-inline th,.set-recordbook.rb-inline td{font-size:7.5px!important}
  .cn-grid-wrap{padding-left:8px!important;padding-right:8px!important}
  .cn-grid.cn-grid-blocks{grid-template-rows:repeat(var(--cn-rows,6),18px)!important}
  .cn-grid.cn-grid-blocks .cn-grid-cell{min-height:18px!important}
  .cn-assignment-overlay{grid-template-rows:repeat(var(--cn-rows,6),18px)!important}
  .cn-axis.cn-axis-boxes{height:18px!important}
  .cn-mastery-row{height:10px!important}
  .cn-mastery-check{height:10px!important;min-height:10px!important;font-size:8px!important;line-height:8px!important}
}
@media screen and (max-width:1120px){
  .cn-shell{zoom:.82}
  .cn-main{grid-template-columns:var(--set-left,190px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-toolbar{gap:8px!important}
  .cn-toolbar select{padding:7px 8px!important;font-size:12px!important}
  .cn-concept-strip,.cn-subconcept-strip{height:14px!important}
  .cn-concept-segment,.cn-subconcept-segment{line-height:12px!important;font-size:6.5px!important}
}
@media screen and (max-width:980px){
  .cn-shell{zoom:1}
  .cn-main{grid-template-columns:1fr!important}
  .set-resize-handle{display:none!important}
  .cn-left{min-width:0!important;max-height:none!important;border-right:0!important;border-bottom:1px solid #e5e7eb!important}
  .cn-right{padding-right:0!important}
  .cn-right .set-recordbook.rb-inline,
  .cn-right .set-recordbook{position:static!important;width:100%!important;margin-top:8px!important}
}

/* Planner full-width default: leave more room for the graph at normal browser zoom. */
@media screen and (min-width:1381px){
  body:has(.cn-shell) main{max-width:none!important;padding-left:12px!important;padding-right:12px!important}
  .cn-main{grid-template-columns:var(--set-left,280px) 6px minmax(0,1fr)!important}
  .cn-left{min-width:0!important}
  .cn-grid-wrap{min-width:0!important;width:100%!important;max-width:100%!important}
  .cn-grid-stack,.cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks,.cn-assignment-overlay{max-width:100%!important}
  .cn-concept-strip,.cn-subconcept-strip,.cn-axis.cn-axis-boxes,.cn-mastery-row,.cn-grid.cn-grid-blocks{grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important}
  .cn-assignment-overlay{grid-template-columns:repeat(200,minmax(0,1fr))!important}
}

/* Final Record Book page label visibility override. */
.cn-right{padding-right:250px!important}
.cn-right .set-recordbook.rb-inline{width:238px!important}
.rb-inline th:nth-child(1),.rb-inline td:nth-child(1){width:28px!important;min-width:28px!important}
.rb-inline th:nth-child(2),.rb-inline td:nth-child(2){width:24px!important;min-width:24px!important}
.rb-inline th:nth-child(3),.rb-inline td:nth-child(3){width:34px!important;min-width:34px!important}
.rb-inline th:nth-child(4),.rb-inline td:nth-child(4){width:auto!important}
.rb-inline .rb-page-cell{display:flex!important;width:100%!important;max-width:none!important;overflow:visible!important;gap:2px!important}
.rb-page-chip{max-width:none!important;min-width:max-content!important;overflow:visible!important;text-overflow:clip!important;padding-left:4px!important;padding-right:4px!important}
.rb-inline .rb-pages{flex:1 1 46px!important;width:auto!important;min-width:42px!important;max-width:none!important}
@media(max-width:1100px){.cn-right{padding-right:0!important}.cn-right .set-recordbook.rb-inline{width:100%!important}}

/* Monthly Prep final override: centered student name, larger month, aligned two-column tables. */
.monthly-record-title{grid-template-columns:2.05in 1fr minmax(3.25in,max-content)!important}
.monthly-record-month span{font-size:22px!important;font-weight:1000!important;color:#203864!important;text-align:left!important;line-height:1!important}
.monthly-record-student{text-align:center!important;align-self:center!important;min-width:0!important}
.monthly-record-student b{display:inline-block!important;color:#15803d!important;font-size:22px!important;line-height:1.05!important;text-transform:uppercase!important}
.monthly-record-title-right{grid-column:3!important;grid-template-columns:minmax(1.8in,1fr) minmax(1.25in,max-content)!important}
.monthly-record-title-summary span{text-align:left!important;font-size:14px!important;font-weight:950!important}
.monthly-record-title-meta span{text-align:right!important}
.record-book-table td:nth-child(4),
.record-book-table td:nth-child(5),
.record-book-table td:nth-child(6){white-space:nowrap!important;text-overflow:ellipsis!important}
@media print{
  @page monthly-prep{size:letter landscape;margin:.16in}
  body:has(.monthly-prep-panel) main{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
  .monthly-record-sheet{width:10.68in!important;height:8.18in!important;padding:.04in!important;margin:0 auto!important}
  .monthly-record-title{height:.62in!important;margin:0 0 .035in!important;padding:0 0 .035in!important;grid-template-columns:2.1in 1fr 3.55in!important;gap:.06in!important;align-items:start!important}
  .monthly-record-month span{font-size:17pt!important;font-weight:1000!important;color:#203864!important;text-align:left!important;line-height:1!important}
  .monthly-record-student{align-self:start!important;text-align:center!important;min-width:0!important}
  .monthly-record-student b{font-size:17pt!important;line-height:1!important;color:#15803d!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:clip!important}
  .monthly-record-title-right{grid-column:auto!important;grid-template-columns:2.05in 1.38in!important;gap:.06in!important;text-align:right!important;min-width:0!important}
  .monthly-record-title-summary span{font-size:8.8pt!important;font-weight:950!important;line-height:1.08!important;text-align:left!important;color:#111827!important}
  .monthly-record-title-meta{min-width:1.38in!important;text-align:right!important}
  .monthly-record-title-meta span{font-size:7.8pt!important;line-height:1.08!important;text-align:right!important}
  .monthly-record-title .monthly-record-print-date{font-size:8pt!important;font-weight:950!important;margin:0 0 .015in!important;white-space:nowrap!important}
  .monthly-record-books{height:7.46in!important;display:grid!important;grid-template-columns:1fr 1fr!important;align-items:stretch!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(.223in - .55pt),#475569 calc(.223in - .55pt),#475569 .223in)!important;background-position:0 .55in!important;background-size:100% .223in!important}
  .monthly-record-book{min-width:0!important;height:7.46in!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
  .record-book-head{height:.31in!important;min-height:.31in!important;max-height:.31in!important}
  .record-book-table{height:7.15in!important;table-layout:fixed!important;border-collapse:collapse!important}
  .record-book-table thead{height:.237in!important}
  .record-book-table tbody tr{height:.223in!important;max-height:.223in!important}
  .record-book-table th,.record-book-table td{height:.223in!important;max-height:.223in!important;line-height:1!important;white-space:nowrap!important;text-overflow:clip!important;overflow:hidden!important}
  .record-book-table thead th{height:.237in!important;max-height:.237in!important}
  .record-book-table th:nth-child(1),.record-book-table td:nth-child(1){width:4.3%!important}
  .record-book-table th:nth-child(2),.record-book-table td:nth-child(2){width:7.2%!important}
  .record-book-table th:nth-child(3),.record-book-table td:nth-child(3){width:5.2%!important}
  .record-book-table th:nth-child(4),.record-book-table td:nth-child(4){width:7.7%!important}
  .record-book-table th:nth-child(5),.record-book-table td:nth-child(5){width:13.5%!important}
  .record-book-table th:nth-child(6),.record-book-table td:nth-child(6){width:7.1%!important}
  .record-book-table th:nth-child(7),.record-book-table td:nth-child(7){width:55%!important}
  .record-check-cell span{width:.065in!important;height:.065in!important;font-size:4.8pt!important;border-width:.5pt!important}
  .record-score-boxes{height:.17in!important;overflow:hidden!important}
  .record-score-boxes span{min-height:.148in!important;height:.148in!important;font-size:6.8pt!important}
  .record-score-boxes .score-circle{width:.13in!important;height:.13in!important;font-size:6.4pt!important;border-width:.55pt!important}
  .record-new-concept-label,.record-plan-note-label{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
  .monthly-record-sheet.duplex-month{break-after:page!important;page-break-after:always!important}
}

/* Prep rows now use green because blue was too light in print. */
.monthly-record-book .record-book-table tr.prep-future td,
.monthly-record-book .record-book-table tr.prep-future td b,
.monthly-record-book .record-book-table tr.prep-future td span,
.monthly-record-book .record-book-table tr.prep-future .record-score-text{color:#15803d!important;font-weight:900!important}
.monthly-record-book .record-book-table tr.prep-future .record-score-boxes span{color:#15803d!important;border-color:#15803d!important;font-weight:900!important}

/* Monthly Prep refinement: move progress notes to bottom-left and lift the table. */
.monthly-record-title{position:relative!important}
.monthly-record-student{position:absolute!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;width:3.5in!important}
.monthly-record-title-right{margin-left:auto!important;width:1.35in!important}
.monthly-record-title-summary{display:none!important}
.monthly-record-footer{display:flex!important;gap:12px!important;align-items:center!important;justify-content:flex-start!important;font-size:10px!important;font-weight:950!important;color:#111827!important;padding-top:3px!important}
.monthly-record-footer span{display:inline-block!important;white-space:nowrap!important}
@media print{
  .monthly-record-sheet{position:relative!important}
  .monthly-record-title{display:block!important;height:.53in!important;margin-bottom:.02in!important;padding-bottom:.025in!important}
  .monthly-record-month{position:absolute!important;left:0!important;top:0!important;width:2.15in!important}
  .monthly-record-student{position:absolute!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;width:3.7in!important;text-align:center!important}
  .monthly-record-student b{font-size:18pt!important}
  .monthly-record-title-right{position:absolute!important;right:0!important;top:0!important;width:1.25in!important;display:block!important}
  .monthly-record-title .monthly-record-print-date{font-size:9.6pt!important}
  .monthly-record-books{height:7.35in!important;background-position:0 .5in!important;background-size:100% .221in!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(.221in - .55pt),#475569 calc(.221in - .55pt),#475569 .221in)!important}
  .monthly-record-book{height:7.35in!important}
  .record-book-head{height:.3in!important;min-height:.3in!important;max-height:.3in!important}
  .record-book-table{height:7.05in!important}
  .record-book-table tbody tr{height:.221in!important;max-height:.221in!important}
  .record-book-table th,.record-book-table td{height:.221in!important;max-height:.221in!important}
  .record-score-boxes span{min-height:.15in!important;height:.15in!important}
  .monthly-record-footer{position:absolute!important;left:.04in!important;bottom:.035in!important;height:.2in!important;display:flex!important;gap:.18in!important;font-size:8.5pt!important;line-height:1!important;padding:0!important;max-width:6.4in!important;overflow:hidden!important}
  .monthly-record-books{border-left:1.2pt solid #334155!important}
  .monthly-record-book:first-child{border-left:1.2pt solid #334155!important}
  .record-book-table th:first-child,
  .record-book-table td:first-child{border-left:1.1pt solid #334155!important}
  .record-book-table th,
  .record-book-table td{border-top:.45pt solid #94a3b8!important;border-bottom:.45pt solid #94a3b8!important}
  .record-book-table tbody tr:first-child td{border-top:.65pt solid #64748b!important}
  .record-book-table tbody tr:last-child td{border-bottom:.8pt solid #64748b!important}
  .record-book-table td:nth-child(7){box-shadow:inset 0 .45pt 0 #94a3b8,inset 0 -.45pt 0 #94a3b8!important}
  .record-score-boxes{border-top:.45pt solid #94a3b8!important;border-bottom:.45pt solid #94a3b8!important}
  .record-score-boxes span{border:.35pt solid #94a3b8!important}
  .record-score-boxes .score-circle{border:.45pt solid #94a3b8!important}
  .monthly-record-book,
  .monthly-record-books{border-color:#64748b!important}
  .record-check-cell span{width:.095in!important;height:.095in!important;font-size:7.2pt!important;font-weight:900!important;line-height:1!important}
  }

/* Program Schedule print lock: keep the daily sheet from inheriting later print tuning. */
@media print{
  @page program-schedule-print{size:letter portrait;margin:.1in}
  body:has(.program-schedule-panel) main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body:has(.program-schedule-panel) .program-schedule-panel{
    box-shadow:none!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  body:has(.program-schedule-panel) .program-note-history{
    display:none!important;
  }
  body:has(.program-schedule-panel) .program-sheet-page{
    page:program-schedule-print;
    width:var(--program-print-width,7.85in)!important;
    max-width:var(--program-print-width,7.85in)!important;
    margin:0 auto!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body:has(.program-schedule-panel) .program-sheet-title{
    margin:0 0 .03in!important;
    padding:0 0 .025in!important;
    border-bottom:1pt solid #172033!important;
  }
  body:has(.program-schedule-panel) .program-sheet-title b{font-size:9pt!important}
  body:has(.program-schedule-panel) .program-sheet-title span{font-size:6pt!important}
  body:has(.program-schedule-panel) .program-sheet-title h1{font-size:11.5pt!important}
  body:has(.program-schedule-panel) .program-summary{
    grid-template-columns:repeat(5,1fr)!important;
    gap:.025in!important;
    margin:0 0 .035in!important;
  }
  body:has(.program-schedule-panel) .program-summary div{
    padding:.018in .03in!important;
    border-radius:.025in!important;
  }
  body:has(.program-schedule-panel) .program-summary b{font-size:8pt!important}
  body:has(.program-schedule-panel) .program-summary span{font-size:4.8pt!important}
  body:has(.program-schedule-panel) .program-sheet-grid{
    display:block!important;
    width:100%!important;
  }
  body:has(.program-schedule-panel) .program-sheet-section{
    width:100%!important;
    padding:.025in!important;
    border-radius:.025in!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  body:has(.program-schedule-panel) .program-sheet-section h3{
    font-size:7pt!important;
    margin:0 0 .015in!important;
  }
  body:has(.program-schedule-panel) .program-students table{
    width:100%!important;
    max-width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    font-size:5.9pt!important;
    line-height:1.08!important;
  }
  body:has(.program-schedule-panel) .program-students th,
  body:has(.program-schedule-panel) .program-students td{
    padding:.012in .016in!important;
    vertical-align:top!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body:has(.program-schedule-panel) .program-students th:nth-child(1),
  body:has(.program-schedule-panel) .program-students td:nth-child(1){width:.5in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(2),
  body:has(.program-schedule-panel) .program-students td:nth-child(2){width:.66in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(3),
  body:has(.program-schedule-panel) .program-students td:nth-child(3){width:.48in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(4),
  body:has(.program-schedule-panel) .program-students td:nth-child(4){width:1.45in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(5),
  body:has(.program-schedule-panel) .program-students td:nth-child(5){width:1.35in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(6),
  body:has(.program-schedule-panel) .program-students td:nth-child(6){width:1in!important}
  body:has(.program-schedule-panel) .program-students th:nth-child(7),
  body:has(.program-schedule-panel) .program-students td:nth-child(7){width:auto!important}
  body:has(.program-schedule-panel) .program-students td:nth-child(4) b,
  body:has(.program-schedule-panel) .program-students td:nth-child(5) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(6) div,
  body:has(.program-schedule-panel) .program-students td:nth-child(7) div{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body:has(.program-schedule-panel) .program-students tr.program-time-end td{
    border-bottom:1pt solid #172033!important;
  }
  body:has(.program-schedule-panel) .student-type-pill{
    width:.14in!important;
    height:.14in!important;
    min-width:.14in!important;
    font-size:4pt!important;
  }
  body:has(.program-schedule-panel) .program-kc-pay{
    min-width:.16in!important;
    height:.12in!important;
    font-size:4pt!important;
  }
  body:has(.program-schedule-panel) .program-type-cell{gap:.01in!important}
  body:has(.program-schedule-panel) .pill{font-size:5pt!important;padding:.01in .02in!important}
  body:has(.program-schedule-panel) .program-sheet-section td small{
    display:block!important;
    margin:.006in 0 0!important;
    font-size:4.8pt!important;
  }
}

/* Prep print lock: use one real table grid only, so browser print scaling cannot double the row lines. */
@media print{
  @page monthly-prep{size:letter landscape;margin:.18in}
  body:has(.monthly-prep-panel) main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body:has(.monthly-prep-panel) .monthly-prep-panel{
    box-shadow:none!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-sheet{
    page:monthly-prep;
    width:10.54in!important;
    height:8.10in!important;
    margin:0 auto!important;
    padding:.075in .035in .02in!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-books{
    height:7.25in!important;
    background-image:none!important;
    background:none!important;
    border:.9pt solid #64748b!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-book{
    height:7.25in!important;
    border:0!important;
    border-right:.9pt solid #64748b!important;
    background:#fff!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-book:last-child{
    border-right:0!important;
  }
  body:has(.monthly-prep-panel) .record-book-head{
    height:.29in!important;
    min-height:.29in!important;
    max-height:.29in!important;
    border-bottom:.9pt solid #64748b!important;
  }
  body:has(.monthly-prep-panel) .record-book-table{
    height:6.96in!important;
    border-collapse:collapse!important;
    table-layout:fixed!important;
    border:0!important;
  }
  body:has(.monthly-prep-panel) .record-book-table thead th{
    height:.205in!important;
    max-height:.205in!important;
    border:.45pt solid #64748b!important;
    background:#fff!important;
  }
  body:has(.monthly-prep-panel) .record-book-table tbody tr{
    height:.211in!important;
    max-height:.211in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table th,
  body:has(.monthly-prep-panel) .record-book-table td{
    border:.45pt solid #94a3b8!important;
    box-shadow:none!important;
    height:.211in!important;
    max-height:.211in!important;
    line-height:1!important;
    padding:.01in .02in!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body:has(.monthly-prep-panel) .record-book-table tbody tr:first-child td,
  body:has(.monthly-prep-panel) .record-book-table tbody tr:last-child td{
    border-top:.45pt solid #94a3b8!important;
    border-bottom:.45pt solid #94a3b8!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes{
    border:0!important;
    box-shadow:none!important;
    gap:.003in!important;
    background:transparent!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes span{
    border:.22pt solid #cbd5e1!important;
    box-shadow:none!important;
    outline:0!important;
    min-height:.138in!important;
    height:.138in!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes .score-circle{
    border:.3pt solid #94a3b8!important;
    box-shadow:none!important;
    width:.12in!important;
    height:.12in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-footer{
    position:static!important;
    height:.16in!important;
    margin:.015in 0 0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    gap:.16in!important;
    font-size:7.5pt!important;
    line-height:1!important;
    overflow:hidden!important;
  }
}

/* Final Prep score-box lock: keep score outlines quiet, light gray, and below score text emphasis. */
body:has(.monthly-prep-panel) .record-score-boxes{
  border:0!important;
  box-shadow:none!important;
  gap:.003in!important;
  background:transparent!important;
}
body:has(.monthly-prep-panel) .record-score-boxes span{
  border:.5px solid #cbd5e1!important;
  box-shadow:none!important;
  outline:0!important;
  font-weight:600!important;
}
body:has(.monthly-prep-panel) .record-score-boxes .score-circle{
  border:.5px solid #94a3b8!important;
  box-shadow:none!important;
}
@media print{
  body:has(.monthly-prep-panel) .record-score-boxes span{
    border:.22pt solid #cbd5e1!important;
    font-weight:600!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes .score-circle{
    border:.3pt solid #94a3b8!important;
  }
}

/* Student Records: test filter and all-student test rows need readable names. */
.student-records-workspace .record-student-name{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-top:4px!important;
  padding:4px 6px!important;
  border:1px solid #dbe6f3!important;
  border-radius:6px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:1000!important;
  white-space:normal!important;
  overflow:visible!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .record-student-name{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
  color:#1e3a8a!important;
  font-size:13px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:145px 430px 160px 135px!important;
  align-items:center!important;
  min-height:42px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-main{
  grid-column:1!important;
  max-width:145px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2!important;
  width:430px!important;
  min-width:430px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:3px 7px!important;
  min-height:28px!important;
  height:28px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry label{
  flex:1 1 0!important;
  justify-content:center!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry input{
  width:42px!important;
  height:20px!important;
  padding:2px 3px!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry label:last-child input{
  width:54px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:3!important;
  width:160px!important;
  min-width:160px!important;
  max-width:160px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .assistant-picker{
  grid-column:4!important;
  width:135px!important;
  min-width:135px!important;
  max-width:135px!important;
  align-self:center!important;
}

/* Student Records: editable record type (Regular/Test/Correction Day). */
.student-records-workspace .record-type-picker{
  display:block!important;
  margin-top:4px!important;
  font-size:8px!important;
  font-weight:1000!important;
  color:#64748b!important;
}
.student-records-workspace .record-level-picker{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:2px!important;
  align-items:center!important;
  margin-top:3px!important;
  font-size:8px!important;
  font-weight:1000!important;
  color:#64748b!important;
}
.student-records-workspace .record-level-picker select{
  grid-column:1/-1!important;
  width:100%!important;
  height:22px!important;
  padding:2px 4px!important;
  font-size:10px!important;
  border-radius:5px!important;
}
.student-records-workspace .record-level-picker span{
  grid-column:1/-1!important;
  color:#0f172a!important;
  font-size:11px!important;
  line-height:12px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.student-records-workspace .record-type-picker select{
  width:100%!important;
  margin-top:2px!important;
  height:22px!important;
  padding:2px 4px!important;
  font-size:9px!important;
  border-radius:5px!important;
}

/* Student Records: compact rows, growing notes, and quieter row actions. */
.student-records-workspace{
  grid-template-columns:780px 500px!important;
  gap:14px!important;
}
.student-records-workspace .asm-record-list{
  width:780px!important;
  max-width:780px!important;
}
.student-records-workspace .asm-record-card{
  grid-template-columns:96px 304px 54px minmax(92px,118px) 104px!important;
  gap:4px!important;
  align-items:start!important;
  min-height:42px!important;
  padding:5px 6px!important;
}
.student-records-workspace .asm-record-main{
  max-width:96px!important;
  align-self:start!important;
}
.student-records-workspace .asm-record-main b{
  white-space:normal!important;
  line-height:1.08!important;
  max-height:25px!important;
}
.student-records-workspace .record-type-picker{
  margin-top:2px!important;
}
.student-records-workspace .record-type-picker select{
  height:18px!important;
  padding:1px 3px!important;
  font-size:8px!important;
}
.student-records-workspace .record-switch-subject,
.student-records-workspace .record-delete-inline{
  display:inline-flex!important;
  width:44px!important;
  height:17px!important;
  min-height:17px!important;
  margin-top:2px!important;
  margin-right:2px!important;
  padding:0 3px!important;
  border-radius:5px!important;
  font-size:7.5px!important;
  line-height:1!important;
  vertical-align:top!important;
}
.student-records-workspace .record-switch-subject{
  background:#e0f2fe!important;
  color:#075985!important;
  border:1px solid #bae6fd!important;
}
.student-records-workspace .record-page-grid label.record-score-pending input{
  box-shadow:0 0 0 2px rgba(34,197,94,.18)!important;
}
.student-records-workspace .record-page-grid label.record-score-saved input{
  background:#dcfce7!important;
  border-color:#4ade80!important;
  color:#14532d!important;
  box-shadow:0 0 0 2px rgba(34,197,94,.28)!important;
}
.student-records-workspace .record-delete-inline{
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fecaca!important;
}
.student-records-workspace .record-score-track,
.student-records-workspace .asm-record-score.compact-time{
  align-self:center!important;
}
.student-records-workspace .asm-record-note{
  grid-column:4!important;
  width:100%!important;
  min-width:92px!important;
  max-width:118px!important;
  min-height:26px!important;
  height:auto!important;
  field-sizing:content!important;
  resize:vertical!important;
  overflow:hidden!important;
  font-size:9px!important;
  line-height:11px!important;
  padding:3px 5px!important;
}
.student-records-workspace .assistant-picker{
  grid-column:5!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  align-self:start!important;
  font-size:9px!important;
}
.student-records-workspace .assistant-picker select{
  height:24px!important;
  padding:2px 5px!important;
  font-size:10px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:118px 360px 92px 104px!important;
  min-height:42px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-main{
  max-width:118px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  width:360px!important;
  min-width:360px!important;
  height:28px!important;
  gap:5px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:3!important;
  width:92px!important;
  min-width:92px!important;
  max-width:92px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .assistant-picker{
  grid-column:4!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
}
.records-side-calendar{
  width:500px!important;
  max-width:500px!important;
}
@media(max-width:1350px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
  .student-records-workspace .asm-record-card,.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-note,.student-records-workspace .assistant-picker{grid-column:auto!important;width:100%!important;max-width:none!important}
}

/* Planer linked selection + center marker refinements */
.cn-left .cn-score-track:has(.cn-session-badge){
  padding-left:64px!important;
}
.cn-left .cn-session-badge{
  position:absolute!important;
  left:7px!important;
  top:5px!important;
  display:grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  border-radius:999px!important;
  background:#dbeafe!important;
  border:1px solid #93c5fd!important;
  color:#1e40af!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:1000!important;
}
.cn-left .cn-session-badge + .cn-time-badge{
  left:29px!important;
  min-width:22px!important;
  max-width:40px!important;
}
.set-calendar-day.linked-plan-highlight,
.set-recordbook tr.linked-plan-highlight td{
  background:#eff6ff!important;
  outline:2px solid #2563eb!important;
  outline-offset:-2px!important;
}

/* Final Student Records layout override: keep calendar visible on the right. */
.student-records-workspace{
  grid-template-columns:700px 420px!important;
  gap:12px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{
  width:700px!important;
  max-width:700px!important;
}
.records-side-calendar{
  width:420px!important;
  max-width:420px!important;
}
.records-side-calendar .set-calendar-day{
  min-height:76px!important;
}
.records-side-calendar .set-calendar-plan{
  padding:2px 3px!important;
  font-size:8px!important;
  line-height:1.05!important;
}
.records-side-calendar .set-calendar-plan span{
  font-size:8.5px!important;
  line-height:1.05!important;
}
@media(max-width:1150px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
  .student-records-workspace .asm-record-card,.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-note,.student-records-workspace .assistant-picker{grid-column:auto!important;width:100%!important;max-width:none!important}
}
/* Student Records: final score-entry card layout based on the wide ASMKUMON entry mockup. */
.student-records-workspace{
  grid-template-columns:minmax(760px,860px) 420px!important;
  gap:14px!important;
  justify-content:start!important;
}
.student-records-workspace .asm-record-list{width:100%!important;max-width:860px!important}
.student-records-workspace .asm-record-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:150px minmax(300px,1fr) 74px 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
  gap:7px 10px!important;
  align-items:start!important;
  min-height:112px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid #dbe6f3!important;
  background:#fbfdff!important;
  box-sizing:border-box!important;
}
.student-records-workspace .asm-record-main{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  max-width:none!important;
  align-self:stretch!important;
  display:block!important;
  padding-right:4px!important;
}
.student-records-workspace .asm-record-main .pill{
  font-size:17px!important;
  line-height:22px!important;
  padding:3px 12px!important;
  border-radius:999px!important;
}
.student-records-workspace .record-switch-subject{
  width:auto!important;
  height:22px!important;
  min-height:22px!important;
  margin:0 0 0 6px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:10px!important;
  vertical-align:middle!important;
}
.student-records-workspace .record-level-picker{
  display:block!important;
  margin-top:8px!important;
  font-size:13px!important;
  line-height:16px!important;
  color:#64748b!important;
}
.student-records-workspace .record-level-picker select{
  display:block!important;
  width:72px!important;
  height:42px!important;
  margin-top:4px!important;
  padding:4px 8px!important;
  border-radius:8px!important;
  font-size:22px!important;
  font-weight:1000!important;
  text-align:center!important;
}
.student-records-workspace .record-level-picker span{
  display:block!important;
  margin-top:6px!important;
  font-size:22px!important;
  line-height:24px!important;
  font-weight:1000!important;
  color:#0f172a!important;
  white-space:nowrap!important;
}
.student-records-workspace .record-type-picker{margin-top:6px!important;max-width:118px!important;font-size:8px!important}
.student-records-workspace .record-type-picker select{height:20px!important;font-size:8px!important;padding:1px 4px!important}
.student-records-workspace .record-student-name{
  display:inline-flex!important;
  margin-top:7px!important;
  max-width:138px!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border:1px solid #dbe6f3!important;
  border-radius:8px!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-height:48px!important;
  height:48px!important;
  margin-left:0!important;
  padding:5px 7px 5px 42px!important;
  border-radius:10px!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  align-self:start!important;
  box-sizing:border-box!important;
}
.student-records-workspace .record-score-track.wide-pages{grid-template-columns:1fr!important}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  width:auto!important;
  max-width:none!important;
  grid-template-columns:repeat(var(--record-score-count,10),minmax(27px,34px))!important;
  justify-content:start!important;
  gap:3px!important;
}
.student-records-workspace .record-page-grid.pages-5{--record-score-count:5}
.student-records-workspace .record-page-grid.pages-6{--record-score-count:6}
.student-records-workspace .record-page-grid.pages-7{--record-score-count:7}
.student-records-workspace .record-page-grid.pages-8{--record-score-count:8}
.student-records-workspace .record-page-grid.pages-9{--record-score-count:9}
.student-records-workspace .record-page-grid.pages-10{--record-score-count:10}
.student-records-workspace .record-page-grid label{width:auto!important;height:37px!important;grid-template-rows:12px 25px!important}
.student-records-workspace .record-page-grid span{
  display:block!important;
  height:12px!important;
  font-size:10px!important;
  line-height:12px!important;
  color:#94a3b8!important;
}
.student-records-workspace .record-page-grid input{
  width:100%!important;
  height:25px!important;
  border-radius:5px!important;
  font-size:14px!important;
  line-height:23px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:7px!important;
  top:21px!important;
  bottom:auto!important;
  width:28px!important;
  min-width:28px!important;
  height:23px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:22px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  display:block!important;
  width:74px!important;
  align-self:start!important;
}
.student-records-workspace .asm-record-score.compact-time label{
  display:block!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  display:block!important;
  width:74px!important;
  height:36px!important;
  margin-top:4px!important;
  padding:4px 6px!important;
  border-radius:14px!important;
  font-size:14px!important;
  text-align:center!important;
}
.student-records-workspace .assistant-picker{
  grid-column:4!important;
  grid-row:1!important;
  width:128px!important;
  min-width:128px!important;
  max-width:128px!important;
  align-self:start!important;
  font-size:13px!important;
  line-height:16px!important;
  font-weight:1000!important;
  color:#334155!important;
}
.student-records-workspace .assistant-picker select{
  height:36px!important;
  margin-top:4px!important;
  padding:4px 10px!important;
  border-radius:14px!important;
  font-size:13px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:46px!important;
  height:auto!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:16px!important;
  resize:vertical!important;
  overflow:auto!important;
  background:#fff!important;
}
.student-records-workspace .record-delete-inline{
  position:absolute!important;
  right:12px!important;
  bottom:12px!important;
  width:auto!important;
  min-width:70px!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:150px minmax(300px,1fr) 128px!important;
  grid-template-rows:auto minmax(46px,auto) 26px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  padding:5px 7px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .assistant-picker{grid-column:3!important;grid-row:1!important}
@media(max-width:1320px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,.records-side-calendar{width:100%!important;max-width:none!important}
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card,
  .student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:1fr!important;grid-template-rows:auto!important}
  .student-records-workspace .asm-record-main,
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note,
  .student-records-workspace .assistant-picker,
  .student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  .student-records-workspace .record-delete-inline{position:static!important;margin-top:4px!important}
}

/* Final compact Student Records override. */
.student-records-workspace .record-type-picker,
.student-records-workspace .done-check,
.student-records-workspace .assistant-picker{display:none!important}
.student-records-workspace .asm-record-card{grid-template-columns:138px minmax(250px,1fr) 56px!important;grid-template-rows:40px minmax(34px,auto)!important;gap:5px 8px!important;min-height:86px!important;padding:7px 9px!important}
.student-records-workspace .record-level-picker{margin-top:5px!important;font-size:11px!important;line-height:13px!important}
.student-records-workspace .record-level-picker select{width:58px!important;height:32px!important;margin-top:2px!important;font-size:18px!important}
.student-records-workspace .record-level-picker span{margin-top:3px!important;font-size:18px!important;line-height:20px!important}
.student-records-workspace .record-score-track{height:40px!important;min-height:40px!important;padding:4px 6px 4px 34px!important}
.student-records-workspace .record-page-grid label{height:31px!important;grid-template-rows:9px 22px!important}
.student-records-workspace .record-page-grid span{height:9px!important;font-size:8px!important;line-height:9px!important}
.student-records-workspace .record-page-grid input{height:22px!important;font-size:13px!important;line-height:20px!important}
.student-records-workspace .record-autofill-perfect{top:15px!important;width:23px!important;min-width:23px!important;height:21px!important;font-size:9px!important}
.student-records-workspace .asm-record-score.compact-time{grid-column:3!important;grid-row:1!important;width:56px!important}
.student-records-workspace .asm-record-score.compact-time label{font-size:10px!important;line-height:12px!important}
.student-records-workspace .asm-record-score.compact-time label input{width:56px!important;height:28px!important;margin-top:1px!important;padding:2px 4px!important;border-radius:8px!important;font-size:12px!important}
.student-records-workspace .asm-record-note{grid-column:2 / span 2!important;min-height:34px!important;padding:5px 7px!important;font-size:12px!important;line-height:14px!important}
.student-records-workspace .record-delete-inline{right:9px!important;bottom:7px!important;min-width:58px!important;height:24px!important;font-size:10px!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:138px minmax(250px,1fr)!important;grid-template-rows:40px minmax(34px,auto)!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{grid-column:2!important}
.record-missing-plan form{grid-template-columns:1.2fr .8fr .8fr .55fr .7fr auto!important}

/* Student Records live final cleanup: subject dropdown, tighter score/note fields, page beside level. */
.student-records-workspace{grid-template-columns:minmax(680px,760px) 420px!important}
.student-records-workspace .asm-record-list{max-width:760px!important}
.student-records-workspace .asm-record-card{grid-template-columns:128px 260px 52px!important;column-gap:7px!important}
.student-records-workspace .record-subject-picker{display:block!important;margin:0 0 5px!important;font-size:10px!important;line-height:12px!important;font-weight:1000!important;color:#475569!important}
.student-records-workspace .record-subject-picker select{display:block!important;width:108px!important;height:28px!important;margin-top:2px!important;padding:2px 8px!important;border-radius:999px!important;font-size:13px!important;font-weight:1000!important}
.student-records-workspace .record-switch-subject{display:none!important}
.student-records-workspace .record-level-picker{display:grid!important;grid-template-columns:58px auto!important;column-gap:7px!important;align-items:end!important;margin-top:3px!important}
.student-records-workspace .record-level-picker select{grid-column:1!important;grid-row:2!important;margin-top:1px!important}
.student-records-workspace .record-level-picker span{grid-column:2!important;grid-row:2!important;margin-top:0!important;align-self:end!important}
.student-records-workspace .record-score-track{width:260px!important;max-width:260px!important;padding-left:28px!important}
.student-records-workspace .record-page-grid,.student-records-workspace .record-page-grid.pages-5,.student-records-workspace .record-page-grid.pages-6,.student-records-workspace .record-page-grid.pages-7,.student-records-workspace .record-page-grid.pages-8,.student-records-workspace .record-page-grid.pages-9,.student-records-workspace .record-page-grid.pages-10{grid-template-columns:repeat(var(--record-score-count,10),minmax(20px,22px))!important;gap:2px!important}
.student-records-workspace .record-autofill-perfect{left:4px!important}
.student-records-workspace .asm-record-score.compact-time{width:52px!important}
.student-records-workspace .asm-record-score.compact-time .time-ratio{display:none!important}
.student-records-workspace .asm-record-score.compact-time label input{width:52px!important}
.student-records-workspace .asm-record-note{grid-column:2 / span 2!important;max-width:319px!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry){grid-template-columns:128px 260px!important}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{max-width:260px!important}

/* Student Records vertical tightening requested after final layout. */
.student-records-workspace .asm-record-card{
  grid-template-rows:32px minmax(26px,auto)!important;
  gap:3px 7px!important;
  min-height:70px!important;
  padding:5px 8px!important;
}
.student-records-workspace .record-subject-picker{
  margin-bottom:3px!important;
}
.student-records-workspace .record-subject-picker select{
  height:24px!important;
  margin-top:1px!important;
  font-size:12px!important;
}
.student-records-workspace .record-level-picker{
  margin-top:1px!important;
  font-size:10px!important;
  line-height:11px!important;
}
.student-records-workspace .record-level-picker select{
  height:26px!important;
  font-size:15px!important;
}
.student-records-workspace .record-level-picker span{
  font-size:15px!important;
  line-height:17px!important;
}
.student-records-workspace .record-score-track{
  height:32px!important;
  min-height:32px!important;
  padding-top:2px!important;
  padding-bottom:2px!important;
}
.student-records-workspace .record-page-grid label{
  height:27px!important;
  grid-template-rows:8px 19px!important;
}
.student-records-workspace .record-page-grid span{
  height:8px!important;
  font-size:7px!important;
  line-height:8px!important;
}
.student-records-workspace .record-page-grid input{
  height:19px!important;
  font-size:12px!important;
  line-height:17px!important;
}
.student-records-workspace .record-autofill-perfect{
  top:10px!important;
  height:18px!important;
  min-width:21px!important;
  width:21px!important;
  font-size:8px!important;
}
.student-records-workspace .asm-record-score.compact-time label{
  font-size:9px!important;
  line-height:10px!important;
}
.student-records-workspace .asm-record-score.compact-time label input{
  height:23px!important;
  margin-top:0!important;
  font-size:11px!important;
}
.student-records-workspace .asm-record-note{
  min-height:26px!important;
  padding:3px 6px!important;
  font-size:11px!important;
  line-height:13px!important;
}
.student-records-workspace .record-delete-inline{
  bottom:5px!important;
  height:21px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-rows:32px minmax(26px,auto)!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  height:32px!important;
  padding:2px 5px!important;
}

/* Student Records: give page scores more right-side room so the last pages stay visible. */
.student-records-workspace .asm-record-card{
  grid-template-columns:118px 310px 52px!important;
}
.student-records-workspace .record-score-track{
  width:310px!important;
  max-width:310px!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  grid-template-columns:repeat(var(--record-score-count,10),minmax(23px,26px))!important;
}
.student-records-workspace .asm-record-note{
  max-width:369px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:118px 310px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  max-width:310px!important;
}

/* Student Records: final page input width override. */
.student-records-workspace .record-level-picker{grid-template-columns:58px 82px!important}
.student-records-workspace .record-level-picker .record-pages-input{width:82px!important;text-align:left!important}

/* Student Records: final Done checkbox removal behind time/note. */
.student-records-workspace .asm-record-score.compact-time .done-check,
.student-records-workspace .asm-record-score.compact-time .done-check *,
.student-records-workspace .done-check,
.student-records-workspace .done-check *{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Record Calendar: Planer-style controls. */
.records-side-calendar .record-calendar-actions{
  display:flex!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
}
.records-side-calendar .record-calendar-actions button{
  min-height:24px!important;
}
.records-side-calendar .set-calendar-day:not(.has-records){
  cursor:pointer!important;
}
.records-side-calendar .set-calendar-day.set-pull-selected{
  background:#fef3c7!important;
  outline:3px solid #f59e0b!important;
  outline-offset:-3px!important;
}

/* Student Records: remove the hidden Done checkbox box behind time/note. */
.student-records-workspace .asm-record-score.compact-time .done-check,
.student-records-workspace .asm-record-score.compact-time .done-check *,
.student-records-workspace .done-check,
.student-records-workspace .done-check *{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Student Records: widen only the editable page number box so ranges like 191-200 fit. */
.student-records-workspace .record-level-picker{
  grid-template-columns:58px 82px!important;
}
.student-records-workspace .record-level-picker .record-pages-input{
  width:82px!important;
  text-align:left!important;
}

/* Student Records: editable page number beside level. */
.student-records-workspace .record-level-picker .record-pages-input{
  grid-column:2!important;
  grid-row:2!important;
  width:62px!important;
  height:26px!important;
  margin:0!important;
  padding:2px 6px!important;
  border-radius:8px!important;
  font-size:15px!important;
  line-height:17px!important;
  font-weight:1000!important;
  text-align:center!important;
}

/* Student Records: stretch score/time/note toward the delete button. */
.student-records-workspace .asm-record-card{
  grid-template-columns:118px minmax(360px,1fr) 52px!important;
}
.student-records-workspace .record-score-track{
  width:100%!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-note{
  max-width:none!important;
  width:100%!important;
}
.student-records-workspace .asm-record-score.compact-time{
  justify-self:end!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:118px minmax(360px,1fr)!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  max-width:none!important;
}

/* Student Records: keep the previous compact size, but shift the entry group right. */
.student-records-workspace .asm-record-card{
  grid-template-columns:150px 310px 52px!important;
}
.student-records-workspace .record-score-track{
  width:310px!important;
  max-width:310px!important;
}
.student-records-workspace .asm-record-note{
  max-width:369px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:150px 310px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  max-width:310px!important;
}

/* Student Records: page input final visible range width. */
.student-records-workspace .record-level-picker{grid-template-columns:58px 82px!important}
.student-records-workspace .record-level-picker .record-pages-input{width:82px!important;text-align:left!important}

/* Student Records: EOF Done checkbox removal behind time/note. */
.student-records-workspace .asm-record-score.compact-time .done-check,
.student-records-workspace .asm-record-score.compact-time .done-check *,
.student-records-workspace .done-check,
.student-records-workspace .done-check *{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Record Calendar: EOF Planer-style controls. */
.records-side-calendar .record-calendar-actions{display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important}
.records-side-calendar .record-calendar-actions button{min-height:24px!important}
.records-side-calendar .set-calendar-day:not(.has-records){cursor:pointer!important}
.records-side-calendar .set-calendar-day.set-pull-selected{background:#fef3c7!important;outline:3px solid #f59e0b!important;outline-offset:-3px!important}

/* Standalone Record Calendar controls. */
.record-calendar-panel .rc-delete-mode,
.record-calendar-panel .rc-delete-selected,
.record-calendar-panel .rc-pull-selected,
.record-calendar-panel .rc-add-selected{
  padding:7px 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
  font-weight:900!important;
}
.record-calendar-panel .rc-delete-mode.active{background:#dc2626!important;color:#fff!important}
.record-calendar-panel .rc-delete-selected{background:#dc2626!important;color:#fff!important}
.record-calendar-panel .rc-delete-selected:disabled,
.record-calendar-panel .rc-pull-selected:disabled,
.record-calendar-panel .rc-add-selected:disabled{background:#cbd5e1!important;color:#64748b!important}
.record-calendar-only.rc-delete-active .progress-record[data-id]{cursor:crosshair!important}
.record-calendar-only.rc-delete-active .progress-record[data-id]:hover{outline:2px dashed #dc2626!important;outline-offset:2px!important}
.record-calendar-only .month-day:not(.has-records){cursor:pointer!important}
.record-calendar-only .month-day.rc-empty-selected{background:#fef3c7!important;outline:3px solid #f59e0b!important;outline-offset:-3px!important}
.rc-shift-line{position:fixed;z-index:10040;width:4px;background:#2563eb;border-radius:999px;box-shadow:0 0 0 4px rgba(37,99,235,.16);pointer-events:none;display:none}
.rc-shift-line.active{display:block}
.rc-shift-line.dragging{background:#16a34a;box-shadow:0 0 0 5px rgba(22,163,74,.18)}
.rc-shift-label{position:fixed;z-index:10041;display:none;pointer-events:none;background:#111827;color:#fff;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:1000;box-shadow:0 10px 28px rgba(15,23,42,.22);white-space:nowrap}
.rc-shift-label.active{display:block}
.record-calendar-only.rc-shift-dragging .month-day.rc-shift-range{background:#eff6ff!important;outline:2px dashed #2563eb!important;outline-offset:-3px!important}
.record-calendar-only .month-day.rc-shift-hover{outline:3px solid #2563eb!important;outline-offset:-3px!important}
.set-month-calendar.set-shift-dragging .set-calendar-day.rc-shift-range,
.records-side-calendar.set-shift-dragging .set-calendar-day.rc-shift-range{background:#eff6ff!important;outline:2px dashed #2563eb!important;outline-offset:-3px!important}
.set-month-calendar .set-calendar-day.rc-shift-hover,
.records-side-calendar .set-calendar-day.rc-shift-hover{outline:3px solid #2563eb!important;outline-offset:-3px!important}

/* Student Records: widen the side calendar for easier scanning. */
.student-records-workspace{
  grid-template-columns:minmax(680px,760px) 500px!important;
  gap:16px!important;
}
.records-side-calendar{
  width:500px!important;
  max-width:500px!important;
}
.records-side-calendar .set-calendar-day{
  min-height:84px!important;
}
@media(max-width:1260px){
  .student-records-workspace{grid-template-columns:1fr!important}
  .student-records-workspace .asm-record-list,
  .records-side-calendar{width:100%!important;max-width:none!important}
}

/* Record Calendar All Students: show every daily record instead of clipping into +more. */
.record-calendar-only{
  align-items:start!important;
}
.record-calendar-only .month-day{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
.record-calendar-only .plan-list.compact{
  max-height:none!important;
  overflow:visible!important;
}
.records-side-calendar .set-calendar-grid.record-mini-calendar{
  align-items:start!important;
}
.records-side-calendar .record-mini-calendar .set-calendar-day{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Phone layout: keep menus and wide work tables usable without covering content. */
@media screen and (max-width:760px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
  }
  body:not(.login) header{
    position:static!important;
    max-height:none!important;
    overflow:visible!important;
    display:block!important;
    padding:10px!important;
  }
  body:not(.login) header>div:first-child{
    padding:0 0 8px!important;
  }
  body:not(.login) header strong{
    font-size:16px!important;
  }
  body:not(.login) nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
  }
  body:not(.login) nav .nav-section{
    grid-column:1 / -1!important;
  }
  body:not(.login) nav a,
  body:not(.login) .logout{
    min-width:0!important;
    width:100%!important;
    min-height:38px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 6px!important;
    border-radius:9px!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  body:not(.login) main{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:10px!important;
    overflow-x:visible!important;
  }
  .panel{
    width:100%!important;
    max-width:100%!important;
    padding:12px!important;
    border-radius:12px!important;
    overflow:visible!important;
  }
  .calendar-head{
    display:block!important;
    margin-bottom:10px!important;
  }
  .calendar-head h2{
    font-size:20px!important;
  }
  .filters,
  .report-b-month-filter,
  .attendance-tools-row,
  .cn-toolbar,
  .cn-topbar{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  .filters label,
  .report-b-month-filter label{
    flex:1 1 150px!important;
    min-width:0!important;
  }
  .filters input,
  .filters select,
  .filters button,
  .filters .button,
  .report-b-month-filter input,
  .report-b-month-filter select,
  .report-b-month-filter button,
  .report-b-month-filter .button{
    width:100%!important;
    min-width:0!important;
  }
  .report-b-tabs{
    display:flex!important;
    overflow-x:auto!important;
    gap:6px!important;
    padding-bottom:8px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .report-b-tabs a{
    flex:0 0 auto!important;
    padding:9px 12px!important;
    white-space:nowrap!important;
  }
  .report-b-table-wrap,
  .fixed-excel-wrap,
  .schedule-exception-panel,
  .schedule-exception-table,
  .attendance-table-wrap,
  .board-wrap,
  .inventory-scroll,
  .classnavi-list-shell{
    width:100%!important;
    max-width:100%!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .schedule-exception-table{
    display:block!important;
    white-space:nowrap!important;
  }
  .report-b-table-wrap{
    max-height:none!important;
  }
  .report-b-table{
    min-width:860px!important;
    font-size:12px!important;
  }
  .report-b-table th{
    top:0!important;
    padding:6px 5px!important;
  }
  .month-grid,
  .month-weekdays,
  .record-calendar-only,
  .set-calendar-grid,
  .set-weekdays{
    min-width:760px!important;
  }
  .cards,
  .dashboard-counts,
  .student-columns,
  .attendance-grid,
  .split,
  .grid{
    grid-template-columns:1fr!important;
  }
  .cn-shell{
    border-radius:12px!important;
    overflow:hidden!important;
  }
  .cn-main{
    grid-template-columns:1fr!important;
  }
  .cn-left,
  .cn-right{
    width:100%!important;
    max-width:100%!important;
    overflow:auto!important;
  }
  .cn-grid-wrap{
    min-width:720px!important;
  }
  .student-records-workspace{
    grid-template-columns:1fr!important;
  }
  .student-records-workspace .asm-record-list,
  .records-side-calendar{
    width:100%!important;
    max-width:100%!important;
    overflow:auto!important;
  }
}

@media screen and (max-width:420px){
  body:not(.login) nav{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.login) nav a,
  body:not(.login) .logout{
    font-size:11px!important;
    padding:7px 5px!important;
  }
}

/* Student Records: keep the row type editable beside level/pages. */
.student-records-workspace .record-type-picker{
  display:block!important;
  margin-top:5px!important;
  max-width:126px!important;
  font-size:9px!important;
  line-height:11px!important;
  color:#64748b!important;
  font-weight:900!important;
}
.student-records-workspace .record-type-picker select{
  display:block!important;
  width:126px!important;
  height:24px!important;
  margin-top:2px!important;
  padding:2px 5px!important;
  border-radius:7px!important;
  font-size:10px!important;
  font-weight:900!important;
  background:#fff!important;
}
.student-records-workspace .asm-record-main > small{
  display:block!important;
  margin-top:3px!important;
  font-size:9px!important;
  line-height:11px!important;
}

/* Student Records: place Type above Delete so long labels do not get clipped. */
.student-records-workspace .asm-record-card{
  position:relative!important;
  grid-template-columns:138px minmax(250px,1fr) 130px!important;
  min-height:102px!important;
}
.student-records-workspace .record-type-picker{
  position:absolute!important;
  right:9px!important;
  bottom:35px!important;
  width:118px!important;
  max-width:118px!important;
  margin:0!important;
  z-index:3!important;
}
.student-records-workspace .record-type-picker select{
  width:118px!important;
  max-width:118px!important;
  height:24px!important;
  font-size:10px!important;
  padding:2px 5px!important;
}
.student-records-workspace .record-delete-inline{
  right:9px!important;
  bottom:7px!important;
  min-width:118px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  justify-self:start!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:138px minmax(300px,1fr) 130px!important;
  min-height:102px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry,
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
}

@media(max-width:900px){
  .student-records-workspace .record-type-picker,
  .student-records-workspace .record-delete-inline{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-top:4px!important;
  }
}

/* QR Check-In: make the result message unmistakable. */
.checkin-result .checkin-big-message{
  grid-column:2!important;
  font-size:38px!important;
  line-height:1.02!important;
  font-weight:1000!important;
  letter-spacing:0!important;
}
.checkin-result.checked_out .checkin-big-message{
  color:#1d4ed8!important;
}
.checkin-result.ok:not(.checked_out) .checkin-big-message{
  color:#15803d!important;
}
@media(max-width:720px){
  .checkin-result .checkin-big-message{
    grid-column:1!important;
    font-size:28px!important;
  }
}

/* QR Check-In: keep the kiosk header focused on scanning. */
.checkin-hero{
  align-items:center!important;
}
.checkin-hero .checkin-hero-note{
  display:grid!important;
  gap:2px!important;
  margin:0!important;
  color:#dbeafe!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:700!important;
}
.checkin-hero .checkin-hero-note span{
  display:block!important;
}

/* QR Check-In: keep instruction chips secondary below the scanner. */
.checkin-instructions{
  gap:8px!important;
  margin-bottom:14px!important;
}
.checkin-instructions div{
  grid-template-columns:30px 1fr!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  min-height:48px!important;
}
.checkin-instructions b{
  width:30px!important;
  height:30px!important;
  font-size:14px!important;
}
.checkin-instructions span{
  font-size:10px!important;
}
.checkin-instructions strong{
  font-size:13px!important;
}

/* Inventory compact table: keep 1-191 visible while preserving button spacing. */
.inventory-panel .inventory-scroll{
  margin:10px 0 14px!important;
}
.inventory-panel .inventory-photo-table{
  min-width:900px!important;
  font-size:10.5px!important;
}
.inventory-panel .inventory-photo-table th{
  font-size:10.5px!important;
  padding:3px 1px!important;
}
.inventory-panel .inventory-photo-table th small{
  font-size:7.5px!important;
}
.inventory-panel .inventory-photo-table .sticky-col{
  min-width:40px!important;
  width:40px!important;
}
.inventory-panel .inventory-photo-table td,
.inventory-panel .inventory-photo-table td.inventory-missing,
.inventory-panel .inventory-photo-table td.inventory-order-needed{
  min-width:37px!important;
  padding:1px!important;
}
.inventory-panel .inventory-photo-table td>input[type=number]{
  min-width:29px!important;
  font-size:11.5px!important;
  padding:2px 0!important;
}
.inventory-panel .inventory-tabs{
  gap:12px!important;
  flex-wrap:wrap!important;
}
.inventory-panel .inventory-tabs a,
.inventory-panel .incoming-actions button,
.inventory-panel form>button{
  margin:0 6px 6px 0!important;
}
.inventory-panel .incoming-actions{
  gap:14px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
.inventory-panel .incoming-upload-form{
  gap:12px!important;
}
.incoming-ocr-status{
  grid-column:1/-1;
  min-height:18px;
  color:#0d64a7;
  font-size:12px;
  font-weight:900;
}

/* Inventory photo-sheet design: flat blue tabs and paper-grid table. */
.inventory-panel{
  background:#fff!important;
}
.inventory-panel .calendar-head{
  margin-bottom:8px!important;
}
.inventory-panel .inventory-tabs{
  display:flex!important;
  align-items:flex-end!important;
  gap:0!important;
  border-bottom:3px solid #1f65a7!important;
  padding:0!important;
  margin:0 0 8px!important;
}
.inventory-panel .inventory-tabs a{
  min-width:132px!important;
  justify-content:center!important;
  margin:0 3px 0 0!important;
  padding:10px 18px 9px!important;
  border:1px solid #b8c5d6!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#f5f7fb!important;
  color:#203864!important;
  box-shadow:none!important;
  font-size:14px!important;
  letter-spacing:.02em!important;
}
.inventory-panel .inventory-tabs a.active{
  background:#0d64a7!important;
  color:#fff!important;
  border-color:#0d64a7!important;
}
.inventory-panel .inventory-scroll{
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  margin-top:0!important;
}
.inventory-panel .inventory-photo-table{
  border-collapse:collapse!important;
  border:1px solid #9fb7cc!important;
  background:#f7faf9!important;
}
.inventory-panel .inventory-photo-table th{
  background:#e8f0f8!important;
  color:#24324c!important;
  border:1px solid #b7c8d8!important;
  font-weight:1000!important;
}
.inventory-panel .inventory-photo-table .sticky-col{
  background:#b8d5ee!important;
  color:#0c3d70!important;
  border-color:#9fb7cc!important;
}
.inventory-panel .inventory-photo-table td,
.inventory-panel .inventory-photo-table td.inventory-missing,
.inventory-panel .inventory-photo-table td.inventory-order-needed,
.inventory-panel .inventory-photo-table td.empty{
  height:28px!important;
  background:#f8fbf9!important;
  border:1px solid #d8e1df!important;
  color:#111827!important;
  vertical-align:middle!important;
}
.inventory-panel .inventory-photo-table tr:nth-child(5n) td,
.inventory-panel .inventory-photo-table tr:nth-child(5n) th{
  border-bottom:2px solid #b98d62!important;
}
.inventory-panel .inventory-photo-table th:nth-child(7),
.inventory-panel .inventory-photo-table td:nth-child(7),
.inventory-panel .inventory-photo-table th:nth-child(12),
.inventory-panel .inventory-photo-table td:nth-child(12),
.inventory-panel .inventory-photo-table th:nth-child(17),
.inventory-panel .inventory-photo-table td:nth-child(17){
  border-left:2px solid #b98d62!important;
}
.inventory-panel .inventory-photo-table td.inventory-unavailable{
  background:#d1d5db!important;
}
.inventory-panel .inventory-photo-table td.inventory-missing,
.inventory-panel .inventory-photo-table td.inventory-order-needed{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
}
.inventory-panel .inventory-photo-table td.inventory-missing>input[type=number],
.inventory-panel .inventory-photo-table td.inventory-order-needed>input[type=number]{
  color:#991b1b!important;
}
.inventory-panel .inventory-photo-table td>input[type=number]{
  color:#111827!important;
  font-family:"Comic Sans MS","Marker Felt",Inter,system-ui,sans-serif!important;
  font-weight:800!important;
}
.inventory-panel .inventory-photo-table .z-packet-label{
  display:grid!important;
  grid-template-rows:auto 13px!important;
  gap:1px!important;
  min-height:30px!important;
  margin:0 0 2px!important;
  color:#1f2937!important;
  font-family:Inter,system-ui,sans-serif!important;
  font-weight:900!important;
  line-height:1!important;
  text-align:center!important;
}
.inventory-panel .inventory-photo-table .z-packet-label span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:16px!important;
  padding:1px 2px!important;
  border:1px solid #a8b4c2!important;
  background:#eef2f7!important;
  font-size:7.4px!important;
  line-height:1.05!important;
  white-space:normal!important;
}
.inventory-panel .inventory-photo-table .z-packet-label b{
  display:block!important;
  font-size:9px!important;
  line-height:13px!important;
  border:1px solid #c7d0dc!important;
  border-top:0!important;
  background:#fff!important;
}
.inventory-panel .incoming-actions button,
.inventory-panel form>button{
  border-radius:4px!important;
  padding:10px 16px!important;
}
.inventory-panel .projected-matrix td.projected-cell{
  min-width:42px!important;
  padding:2px 1px!important;
  line-height:1.05!important;
  font-family:Inter,system-ui,sans-serif!important;
}
.inventory-panel .projected-matrix .student-count-col{
  left:40px!important;
  min-width:42px!important;
  width:42px!important;
  text-align:center!important;
  font-weight:1000!important;
  background:#dbeafe!important;
  color:#0c3d70!important;
}
.inventory-panel .projected-matrix td.projected-student-count{
  font-size:13px!important;
  border-color:#9fb7cc!important;
}
.inventory-panel .current-inventory-table .student-count-col{
  left:40px!important;
  min-width:42px!important;
  width:42px!important;
  text-align:center!important;
  font-weight:1000!important;
  background:#dbeafe!important;
  color:#0c3d70!important;
}
.inventory-panel .current-inventory-table td.current-student-count{
  font-size:13px!important;
  border-color:#9fb7cc!important;
}
.inventory-panel .reading-table.current-inventory-table .student-count-col{
  background:#ffe4ef!important;
  color:#8f2448!important;
  border-color:#f3b4cc!important;
}
.inventory-panel .z-table.current-inventory-table .student-count-col{
  background:#f5d37a!important;
  color:#4b3100!important;
  border-color:#d6b45b!important;
}
.inventory-panel .projected-z-matrix td.projected-student-count{
  background:#fff8df!important;
  color:#4b3100!important;
  border-color:#d6b45b!important;
}
.inventory-panel .projected-reading-matrix th,
.inventory-panel .projected-reading-matrix .sticky-col{
  background:#ffe4ef!important;
  color:#8f2448!important;
  border-color:#f3b4cc!important;
}
.inventory-panel .projected-reading-matrix td.projected-student-count{
  background:#fff0f6!important;
  color:#8f2448!important;
  border-color:#f3b4cc!important;
}
.inventory-panel .projected-matrix td.projected-cell b{
  display:block!important;
  font-size:12px!important;
  font-weight:1000!important;
}
.inventory-panel .projected-matrix td.after-order-cell{
  min-width:54px!important;
  padding:2px!important;
}
.inventory-panel .projected-matrix td.after-order-cell input.after-order-qty{
  width:36px!important;
  min-width:36px!important;
  height:20px!important;
  margin:1px auto!important;
  padding:1px 2px!important;
  border:1px solid #94a3b8!important;
  border-radius:3px!important;
  background:#fff!important;
  color:#db2777!important;
  font-size:11px!important;
  font-weight:900!important;
  text-align:center!important;
  font-family:Inter,system-ui,sans-serif!important;
}
.inventory-panel .projected-matrix td.after-order-cell input.after-order-qty::placeholder{
  color:#94a3b8!important;
}
.inventory-panel .projected-matrix td.after-order-cell input.after-order-qty:focus{
  border-color:#db2777!important;
  box-shadow:0 0 0 2px rgba(219,39,119,.18)!important;
  outline:0!important;
}
.inventory-panel .projected-matrix td.after-order-cell.after-order-active{
  background:#dcfce7!important;
  color:#14532d!important;
}
.inventory-panel .projected-matrix td.after-order-cell .after-order-after{
  color:#0f172a!important;
}
.inventory-panel .projected-matrix .after-order-target-head,
.inventory-panel .projected-matrix .after-order-target-cell{
  min-width:58px!important;
  width:58px!important;
  text-align:center!important;
  background:#eef2ff!important;
  border-left:2px solid #94a3b8!important;
}
.inventory-panel .projected-matrix .after-order-row-target{
  width:46px!important;
  min-width:46px!important;
  height:24px!important;
  padding:2px 3px!important;
  border:1px solid #64748b!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:12px!important;
  font-weight:1000!important;
  text-align:center!important;
  font-family:Inter,system-ui,sans-serif!important;
}
.inventory-panel .projected-matrix .after-order-row-target:focus{
  border-color:#4f46e5!important;
  box-shadow:0 0 0 2px rgba(79,70,229,.18)!important;
  outline:0!important;
}
.inventory-panel .projected-matrix td.projected-cell small{
  display:block!important;
  font-size:7px!important;
  font-weight:900!important;
  color:#475569!important;
  white-space:nowrap!important;
}
.inventory-panel .projected-matrix td.projected-ok{
  background:#f8fbf9!important;
}
.inventory-panel .projected-matrix td.projected-low{
  background:#fef3c7!important;
  color:#854d0e!important;
}
.inventory-panel .projected-matrix td.projected-short{
  background:#fee2e2!important;
  color:#991b1b!important;
}
.projected-achievement-inventory{
  margin-top:18px!important;
  padding-top:10px!important;
  border-top:1px solid #cbd5e1!important;
}
.projected-achievement-table .projected-achievement-cell{
  min-width:54px!important;
  text-align:center!important;
  padding:3px 2px!important;
}
.projected-achievement-table .projected-achievement-cell b{
  display:block!important;
  font-size:13px!important;
  font-weight:1000!important;
  color:#111827!important;
}
.projected-achievement-table .projected-achievement-cell small{
  display:block!important;
  font-size:8px!important;
  font-weight:900!important;
  color:#64748b!important;
  white-space:nowrap!important;
}
.projected-achievement-table .projected-ok{
  background:#f8fbf9!important;
}
.projected-achievement-table .projected-low{
  background:#fef3c7!important;
}
.projected-achievement-table .projected-short{
  background:#fee2e2!important;
}
.after-order-section-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:12px!important;
}
.after-order-section-head .inventory-subject-title{
  margin:0!important;
}
.after-order-section-total{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  border:1px solid #bae6fd!important;
  border-radius:8px!important;
  background:#eff6ff!important;
  color:#0f172a!important;
  padding:6px 10px!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.after-order-section-total.reading{
  border-color:#fecdd3!important;
  background:#fff1f2!important;
}
.after-order-section-total strong{
  color:#db2777!important;
  font-size:15px!important;
}
.inventory-summary .after-order-limit-summary{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
}
.inventory-summary .after-order-limit-summary em{
  color:#64748b!important;
  font-style:normal!important;
  font-weight:900!important;
}
.inventory-summary .after-order-max-input{
  width:66px!important;
  min-width:66px!important;
  height:24px!important;
  padding:2px 6px!important;
  border:1px solid #94a3b8!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:12px!important;
  font-weight:900!important;
  text-align:center!important;
}
.inventory-summary .after-order-max-input:focus{
  border-color:#db2777!important;
  box-shadow:0 0 0 2px rgba(219,39,119,.16)!important;
  outline:0!important;
}
.inventory-panel .projected-matrix th:nth-child(7),
.inventory-panel .projected-matrix td:nth-child(7),
.inventory-panel .projected-matrix th:nth-child(12),
.inventory-panel .projected-matrix td:nth-child(12),
.inventory-panel .projected-matrix th:nth-child(17),
.inventory-panel .projected-matrix td:nth-child(17){
  border-left:1px solid #d8e1df!important;
}
.inventory-panel .projected-matrix th:nth-child(8),
.inventory-panel .projected-matrix td:nth-child(8),
.inventory-panel .projected-matrix th:nth-child(13),
.inventory-panel .projected-matrix td:nth-child(13),
.inventory-panel .projected-matrix th:nth-child(18),
.inventory-panel .projected-matrix td:nth-child(18){
  border-left:2px solid #b98d62!important;
}
.projected-shortage-table .projected-short-row{
  background:#fee2e2;
}
.projected-shortage-table .projected-low-row{
  background:#fffbeb;
}
.after-order-copy-panel{
  margin-top:16px!important;
  padding-top:12px!important;
  border-top:2px solid #dbeafe!important;
}
.after-order-copy-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:8px!important;
}
.after-order-copy-head > div:last-child{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.after-order-copy-head h3{
  margin:0 0 3px!important;
}
.after-order-copy-table th,
.after-order-copy-table td{
  white-space:nowrap!important;
}
.after-order-copy-table td:nth-child(4){
  color:#db2777!important;
  font-weight:900!important;
}

/* Keep later functional additions while preserving the restored record/prep/report formats. */
.rc-hover-score{display:none!important}

.sched-chip[data-search^="noa levine"],
.sched-chip[data-search^="lana lee"],
.fixed-entry-chip[data-search^="noa levine"],
.fixed-entry-chip[data-search^="lana lee"]{
  background:#fef3c7!important;
  border-color:#facc15!important;
  color:#854d0e!important;
  box-shadow:0 0 0 2px rgba(250,204,21,.35)!important;
}

.student-records-workspace .record-no-time-button{
  display:block!important;
  width:54px!important;
  min-width:54px!important;
  height:17px!important;
  min-height:17px!important;
  margin:2px 0 0!important;
  padding:0 3px!important;
  border-radius:6px!important;
  background:#e5e7eb!important;
  color:#111827!important;
  font-size:8px!important;
  line-height:15px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
.student-records-workspace .record-no-time-button:hover{
  background:#d1d5db!important;
}
.student-records-workspace .record-no-time-check{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  width:54px!important;
  min-width:54px!important;
  height:17px!important;
  margin:2px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#334155!important;
  font-size:8px!important;
  line-height:15px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
.student-records-workspace .record-no-time-check input{
  display:block!important;
  width:10px!important;
  height:10px!important;
  min-width:10px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#203864!important;
}

.schedule-exception-form{display:grid;grid-template-columns:1.3fr .85fr 1fr 1.15fr .9fr .9fr .95fr 1fr;gap:10px;align-items:end;margin:12px 0 18px}
.schedule-exception-form:not(.is-temporary){grid-template-columns:1.3fr .85fr 1fr 1.15fr .9fr .9fr}
.schedule-exception-form .wide{grid-column:1/-2}
.schedule-exception-form:not(.is-temporary) .wide{grid-column:1/-1}
.schedule-exception-form .temporary-exception-field{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:8px}
.schedule-exception-form:not(.is-temporary) .temporary-exception-field{display:none}
.schedule-exception-form.is-quit .exception-date-to{display:none}
.schedule-exception-form button{height:40px}
.schedule-exception-actions{display:flex;gap:8px;align-items:center}
.schedule-exception-actions .button{height:40px;padding:0 12px;border:0}
.schedule-exception-tabs{width:100%;margin:0 0 2px}
.schedule-exception-author{display:block;margin-top:3px;font-size:11px;line-height:1.1;color:#667085;font-weight:700}
.schedule-exception-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.schedule-exception-row-actions .button{padding:6px 10px;font-size:12px;border-radius:8px;background:#eef2ff;color:#203864}
.schedule-exception-table button{padding:6px 10px;font-size:12px;background:#475569}
.schedule-exception-table .schedule-exception-memo-head{width:18%}
.schedule-exception-table .schedule-exception-memo{max-width:220px;font-size:12px;line-height:1.3;color:#475467}
.schedule-exception-table .schedule-exception-memo>span:not(.muted){
  display:inline-flex;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f8fafc;
  color:#475467;
  padding:2px 8px;
  font-size:11px;
  font-weight:900;
}
.schedule-exception-note-row td{
  padding:0 10px 10px!important;
  background:#fff;
  border-top:0!important;
}
.schedule-exception-note-row div{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:8px;
  border:1px solid #dbe6f3;
  border-radius:8px;
  background:#f8fafc;
  padding:8px 10px;
  color:#334155;
  font-size:13px;
  line-height:1.45;
}
.schedule-exception-note-row b{
  color:#0f172a;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0;
}
.schedule-exception-note-row span{
  white-space:normal;
  overflow-wrap:anywhere;
}
.pause-resume-table .pause-resume-memo{
  min-width:180px!important;
  max-width:280px!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.35!important;
  white-space:normal!important;
}
.pause-resume-table .pause-resume-effect{
  display:block!important;
  max-width:170px!important;
  color:#64748b!important;
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
.pause-resume-form .payment-resume-check{
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
}
.pause-resume-form .payment-resume-check input{
  width:18px!important;
  height:18px!important;
  margin:0!important;
}
.schedule-exception-check-form{margin:0}
.schedule-exception-check-form label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:normal;text-align:center;font-size:11px;line-height:1.05;color:#334155}
.schedule-exception-check-form input{width:15px;height:15px}
.schedule-exception-check-form.saving{opacity:.55}
.schedule-exception-check-form.saved label{color:#166534}
@media(max-width:1100px){.schedule-exception-form{grid-template-columns:1fr 1fr}.schedule-exception-form .wide{grid-column:1/-1}}
@media(max-width:700px){.schedule-exception-form{grid-template-columns:1fr}}

.student-status-form{margin:0!important;padding:0!important;background:transparent!important;border:0!important;display:inline-block!important}
.student-status-select{appearance:none!important;border:1px solid #cbd5e1!important;border-radius:999px!important;padding:4px 18px 4px 8px!important;font-size:10px!important;font-weight:1000!important;line-height:12px!important;cursor:pointer!important;background:#f8fafc!important;color:#334155!important;max-width:86px!important}
.student-status-select.active{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}
.student-status-select.hold,.student-status-select.paused{background:#fef3c7!important;border-color:#facc15!important;color:#854d0e!important}
.student-status-select.inactive{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important}

.weekly-missing-originals{margin:8px 0 10px}
.weekly-missing-originals[open]{border:1px solid #fed7aa;background:#fff7ed;border-radius:12px;padding:9px 10px}
.weekly-missing-originals summary{cursor:pointer;font-size:12px;font-weight:900;color:#9a3412;display:inline-flex;align-items:center;gap:8px;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:7px 11px;list-style:none}
.weekly-missing-originals summary::-webkit-details-marker{display:none}
.weekly-missing-originals[open] summary{margin-bottom:8px}
.weekly-missing-originals summary b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#fb923c;color:#fff;font-size:11px}
.weekly-missing-originals form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:8px}
.weekly-missing-list{display:flex;gap:8px;flex-wrap:wrap;flex:1}
.weekly-missing-list label{display:flex;gap:7px;align-items:center;background:#fff;border:1px solid #fed7aa;border-radius:10px;padding:7px 9px;min-width:210px}
.weekly-missing-list input{width:15px;height:15px}
.weekly-missing-list b{display:block;color:#111827;font-size:12px}
.weekly-missing-list small{display:block;color:#64748b;font-size:11px;font-weight:800}
.weekly-missing-originals button{height:36px;padding:0 12px;font-size:12px;background:#9a3412}
.weekly-missing-originals-nav{flex-basis:100%;margin:0;text-align:right}
.weekly-missing-originals-nav[open]{text-align:left}
.weekly-missing-originals-nav form{justify-content:flex-end}

.inventory-panel .inventory-subject-title { margin:18px 0 8px!important; font-size:16px!important; line-height:1.2!important; color:#0c3d70!important; }
.inventory-panel .inventory-subject-title.reading-title { margin-top:42px!important; color:#8f2448!important; }
.inventory-panel .inventory-subject-title.z-title { margin-top:42px!important; color:#5f3b00!important; }
.inventory-panel .math-table td { height:24px!important; }
.inventory-panel .math-table td>input[type=number] { min-width:28px!important; font-size:11px!important; padding:1px 0!important; }
.inventory-panel .z-table,
.inventory-panel .projected-z-matrix { border-collapse:collapse!important; border:1px solid #d6b45b!important; background:#fffaf0!important; margin-top:20px!important; }
.inventory-panel .z-table th,
.inventory-panel .projected-z-matrix th { background:#fff1c7!important; color:#4b3100!important; border:1px solid #d6b45b!important; padding:2px 1px!important; font-size:9px!important; font-weight:1000!important; }
.inventory-panel .z-table .sticky-col,
.inventory-panel .projected-z-matrix .sticky-col { background:#f5d37a!important; color:#4b3100!important; border-color:#d6b45b!important; }
.inventory-panel .z-table td,
.inventory-panel .projected-z-matrix td { height:24px!important; background:#fffaf0!important; border:1px solid #e5d4a4!important; padding:1px!important; }
.inventory-panel .z-table td>input[type=number] { min-width:28px!important; font-size:11px!important; padding:1px 0!important; color:#2f2100!important; }
.inventory-panel .reading-table { border-collapse:collapse!important; border:1px solid #d59aab!important; background:#fdf9fa!important; margin-top:20px!important; }
.inventory-panel .reading-table th { background:#fce8ef!important; color:#4c2432!important; border:1px solid #d8b7c0!important; padding:2px 1px!important; font-size:9px!important; font-weight:1000!important; }
.inventory-panel .reading-table .sticky-col { background:#eeb8c5!important; color:#700c3d!important; border-color:#d59aab!important; }
.inventory-panel .reading-table td { height:24px!important; background:#fbf8f9!important; border:1px solid #e1d8da!important; padding:1px!important; }
.inventory-panel .reading-table td>input[type=number] { min-width:28px!important; font-size:11px!important; padding:1px 0!important; color:#2c1118!important; }
.achievement-test-inventory{
  margin-top:22px!important;
  padding-top:14px!important;
  border-top:3px solid #dbeafe!important;
}
.study-material-inventory{
  margin-top:24px!important;
  padding-top:14px!important;
  border-top:3px solid #e9d5ff!important;
}
.achievement-test-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:10px!important;
}
.achievement-test-head h3{
  margin:0 0 4px!important;
  color:#203864!important;
  font-size:18px!important;
}
.achievement-test-head p{
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
}
.achievement-test-scroll{
  overflow:auto!important;
  padding-bottom:4px!important;
}
.study-material-scroll{
  overflow:auto!important;
  padding-bottom:4px!important;
}
.achievement-test-section{
  margin:14px 0 20px!important;
  min-width:760px!important;
  max-width:940px!important;
}
.achievement-test-section h4{
  margin:0 0 6px!important;
  color:#3d3d3d!important;
  font-size:15px!important;
  font-weight:1000!important;
  letter-spacing:0!important;
}
.study-material-section h4{
  color:#4c1d95!important;
}
.study-material-small{
  display:inline-block!important;
  width:240px!important;
  min-width:240px!important;
  max-width:240px!important;
  margin-right:12px!important;
  vertical-align:top!important;
}
.study-material-small .achievement-test-table th:first-child{
  width:54px!important;
}
.study-material-small .achievement-test-table .achievement-fill{
  display:none!important;
}
.study-material-small .achievement-test-table th,
.study-material-small .achievement-test-table td{
  width:90px!important;
}
.worksheet-days-panel .calendar-head{
  align-items:flex-start!important;
}
.worksheet-days-filters{
  gap:10px!important;
  align-items:end!important;
  flex-wrap:wrap!important;
}
.worksheet-days-filters .button{
  text-decoration:none!important;
}
.worksheet-days-tabs{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:4px!important;
  margin:12px 0 4px!important;
  background:#e2e8f0!important;
  border-radius:999px!important;
}
.worksheet-days-tabs a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:7px 14px!important;
  border-radius:999px!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:1000!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.worksheet-days-tabs a.active{
  background:#ffffff!important;
  color:#0f172a!important;
  box-shadow:0 2px 8px rgba(15,23,42,.12)!important;
}
.worksheet-days-tabs a[href*="source=kc"].active{
  color:#075985!important;
}
.worksheet-days-cards{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;
  gap:10px!important;
  margin:14px 0 18px!important;
}
.worksheet-days-cards .card{
  min-height:78px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper,
.worksheet-days-subject-grid.worksheet-days-source-kc{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-subject,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-subject{
  min-width:0!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-cards,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-cards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:10px 0 14px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-cards .card,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-cards .card{
  min-height:58px!important;
  padding:10px 8px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-cards .card b,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-cards .card b{
  font-size:20px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-cards .card span,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-cards .card span{
  font-size:10px!important;
  line-height:1.15!important;
}
.worksheet-days-subject{
  margin:22px 0 34px!important;
  padding-top:10px!important;
  border-top:2px solid #dbeafe!important;
}
.worksheet-days-subject>h3{
  margin:0 0 10px!important;
  color:#172554!important;
  font-size:18px!important;
  font-weight:1000!important;
}
.worksheet-days-subject-reading>h3,
.worksheet-days-subject-reading .worksheet-days-table td:first-child a{
  color:#be185d!important;
}
.worksheet-days-subject-reading{
  border-top-color:#fbcfe8!important;
}
.worksheet-days-subject-reading .worksheet-days-heading-source{
  background:#fdf2f8!important;
  color:#be185d!important;
}
.worksheet-days-heading-source{
  display:inline-flex!important;
  margin-left:8px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:1000!important;
  vertical-align:2px!important;
}
.worksheet-days-bucket{
  margin:20px 0 28px!important;
}
.worksheet-days-bucket h3{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 8px!important;
  color:#203864!important;
}
.worksheet-days-bucket h3 span{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.worksheet-days-table td:nth-child(3),
.worksheet-days-table th:nth-child(3){
  text-align:center!important;
  width:120px!important;
}
.worksheet-days-table td:nth-child(4),
.worksheet-days-table th:nth-child(4),
.worksheet-days-table td:nth-child(5),
.worksheet-days-table th:nth-child(5){
  text-align:center!important;
  width:120px!important;
}
.worksheet-days-table td:nth-child(2),
.worksheet-days-table th:nth-child(2){
  text-align:center!important;
  width:150px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table{
  table-layout:fixed!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table th,
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td{
  padding:7px 6px!important;
  font-size:12px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table th:first-child,
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td:first-child,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:first-child,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:first-child{
  width:auto!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td:first-child a,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:first-child a{
  display:inline-block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  vertical-align:middle!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td:nth-child(2),
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table th:nth-child(2){
  width:58px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td:nth-child(3),
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table th:nth-child(3){
  width:82px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table td:nth-child(4),
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table th:nth-child(4){
  width:78px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-source{
  padding:3px 6px!important;
  font-size:10px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:nth-child(2),
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:nth-child(2){
  width:50px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:nth-child(3),
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:nth-child(3){
  width:74px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:nth-child(4),
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:nth-child(4){
  width:56px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:nth-child(5),
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:nth-child(5){
  width:92px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table td:nth-child(6),
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table th:nth-child(6){
  width:68px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-source{
  padding:3px 5px!important;
  font-size:9px!important;
  line-height:1.1!important;
  white-space:normal!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form{
  gap:3px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form input{
  width:40px!important;
  min-height:26px!important;
  padding:2px 4px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form span{
  display:none!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form button{
  min-height:26px!important;
  padding:3px 6px!important;
  font-size:10px!important;
}
.worksheet-days-pin-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  margin:0!important;
}
.worksheet-days-pin-check{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  background:#fff!important;
  cursor:pointer!important;
}
.worksheet-days-pin-check input{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  accent-color:#0f172a!important;
}
.worksheet-days-pin-check.saving{
  opacity:.55!important;
}
.worksheet-days-pin-check.saved{
  border-color:#86efac!important;
  background:#f0fdf4!important;
}
.worksheet-days-pin-check:has(input:checked){
  border-color:#0f172a!important;
  background:#f8fafc!important;
}
.worksheet-days-pin-check.error{
  border-color:#fecaca!important;
  background:#fef2f2!important;
}
.worksheet-days-pin-date{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  margin-left:6px!important;
  color:#475569!important;
  font-size:10px!important;
  font-weight:900!important;
  vertical-align:middle!important;
}
.worksheet-days-table .worksheet-days-kc-row td{
  color:#075985!important;
}
.worksheet-days-table .worksheet-days-kc-row a{
  color:#0369a1!important;
}
.worksheet-days-source{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:3px 8px!important;
  font-size:10px!important;
  font-weight:1000!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
.worksheet-days-source.kc{
  background:#e0f2fe!important;
  color:#075985!important;
  border:1px solid #7dd3fc!important;
}
.worksheet-days-source.paper{
  background:#f8fafc!important;
  color:#475569!important;
  border:1px solid #cbd5e1!important;
}
.worksheet-days-kc-count{
  color:#0284c7!important;
}
.worksheet-days-kc-label{
  display:inline-flex!important;
  margin-left:6px!important;
  color:#0284c7!important;
  font-size:10px!important;
  font-weight:1000!important;
  vertical-align:middle!important;
}
.worksheet-days-divide-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  margin:0!important;
  white-space:nowrap!important;
}
.worksheet-days-divide-form input{
  width:52px!important;
  min-height:28px!important;
  padding:3px 5px!important;
  text-align:center!important;
  border:1px solid #7dd3fc!important;
  border-radius:6px!important;
  color:#075985!important;
  font-weight:1000!important;
}
.worksheet-days-divide-form span{
  color:#075985!important;
  font-size:11px!important;
  font-weight:900!important;
}
.worksheet-days-divide-form button{
  min-height:28px!important;
  padding:4px 8px!important;
  border-radius:6px!important;
  background:#0284c7!important;
  color:white!important;
  font-size:11px!important;
  font-weight:1000!important;
}
.worksheet-days-divide-form.saving input{
  box-shadow:0 0 0 2px rgba(14,165,233,.22)!important;
}
.worksheet-days-divide-form.saved input{
  border-color:#22c55e!important;
  box-shadow:0 0 0 2px rgba(34,197,94,.24)!important;
}
.worksheet-days-divide-form.error input{
  border-color:#dc2626!important;
  box-shadow:0 0 0 2px rgba(220,38,38,.22)!important;
}
.worksheet-days-divide-form button:disabled{
  opacity:.62!important;
  cursor:wait!important;
}
@media (max-width:1100px){
  .worksheet-days-subject-grid.worksheet-days-source-paper,
  .worksheet-days-subject-grid.worksheet-days-source-kc{
    grid-template-columns:1fr!important;
  }
}

.record-calendar-type-options{
  border:0;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.record-calendar-type-options legend{
  width:100%;
  font-size:12px;
  font-weight:800;
  color:#475467;
  margin-bottom:2px;
}
.record-calendar-type-options label{
  margin:0;
}
.record-calendar-type-options input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.record-calendar-type-options span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#334155;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.record-calendar-type-options input:checked + span{
  border-color:#2563eb;
  background:#dbeafe;
  color:#1d4ed8;
}

/* Kumon Money History reset/start controls */
.tab-kumon_money_history .kumon-money-panel{max-width:1280px}
.tab-kumon_money_history .calendar-head{align-items:flex-start}
.tab-kumon_money_history .inventory-summary{margin-left:auto}
.money-history-controls{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(220px,280px) minmax(300px,1fr);
  gap:12px;
  align-items:stretch;
  margin-bottom:14px;
}
.money-history-controls .money-month-form,
.money-history-controls .money-post-form{margin:0}
.money-start-form button{align-self:end}
.tab-kumon_money_history .money-layout{
  grid-template-columns:1fr;
}
.tab-kumon_money_history .money-students{min-width:0;overflow:auto}
.tab-kumon_money_history .money-table{min-width:1240px}
.tab-kumon_money_history .money-table th,
.tab-kumon_money_history .money-table td{
  vertical-align:middle;
}
.money-start-date-form input[type="date"]{
  width:128px;
  min-width:128px;
  padding:6px 8px;
  font-size:12px;
}
.money-student-name{
  color:#0f3f86;
  font-weight:1000;
}
.money-student-cell{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:160px;
}
.money-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  min-height:24px;
  padding:4px 7px;
  border-radius:999px;
  border:1px solid #decaa8;
  background:#efe4cf;
  color:#111827;
  font-size:10px;
  font-weight:1000;
  line-height:1;
  white-space:nowrap;
}
.money-type-badge.kc{
  border-color:#173f8a;
  background:#173f8a;
  color:#fff;
}
.money-type-badge.mixed{
  border-color:#7c3aed;
  background:#ede9fe;
  color:#4c1d95;
}
.money-paper-check{margin:0}
.money-paper-check label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  color:#334155;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
}
.money-paper-check input{
  width:18px;
  height:18px;
  accent-color:#16a34a;
}
.money-inline-input{
  width:100%;
  min-height:34px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:7px 9px;
  font-weight:900;
  background:#fff;
}
.money-inline-amount{
  min-width:78px;
}
.money-inline-memo{
  min-width:150px;
}
.money-inline-form{margin:0}
.money-inline-form button{
  min-height:34px;
  padding:7px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
}
.money-student-search{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:8px;
  align-items:end;
  margin:0 0 12px;
  padding:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
}
.money-student-search label{margin:0}
.money-student-search input{
  width:100%;
  min-height:38px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  padding:8px 10px;
  font-weight:900;
}
.money-student-search .button.secondary{
  min-height:38px;
  padding:9px 12px;
  background:#e2e8f0;
  color:#334155;
  text-decoration:none;
}
.money-history-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding:6px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:12px;
  width:max-content;
  max-width:100%;
}
.money-history-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 14px;
  border-radius:9px;
  color:#475569;
  font-weight:1000;
  text-decoration:none;
}
.money-history-tabs a.active{
  background:#203864;
  color:#fff;
  box-shadow:0 8px 18px rgba(32,56,100,.18);
}
.money-history-full{
  max-width:100%;
  overflow:auto;
}
.money-activity-table input{
  width:100%;
  min-width:82px;
  min-height:32px;
  padding:6px 8px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  font-weight:900;
}
.money-activity-table input[type="checkbox"]{
  width:14px;
  min-width:14px;
  height:14px;
  min-height:14px;
  padding:0;
  margin:0 7px 0 0;
  vertical-align:-2px;
}
.money-activity-edit,
.money-activity-delete{
  display:inline-flex;
  margin:2px 3px 2px 0;
}
.money-activity-edit button,
.money-activity-delete button{
  min-height:32px;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:1000;
}
.money-activity-delete button{
  background:#fee2e2;
  color:#991b1b;
}
@media(max-width:980px){
  .money-history-controls,
  .tab-kumon_money_history .money-layout{grid-template-columns:1fr}
  .money-student-search{grid-template-columns:1fr}
}
  }
}
.achievement-test-grid-wrap{
  display:block!important;
}
.achievement-test-table{
  border-collapse:collapse!important;
  width:100%!important;
  table-layout:fixed!important;
  height:100%!important;
}
.achievement-test-table th,
.achievement-test-table td{
  border:1px solid #a8b7c1!important;
  height:26px!important;
  padding:1px!important;
  text-align:center!important;
}
.achievement-test-table th{
  background:#add6ef!important;
  color:#3b3b3b!important;
  font-size:12px!important;
  font-weight:1000!important;
}
.achievement-test-table th:first-child{
  width:44px!important;
  text-align:left!important;
  padding-left:5px!important;
}
.achievement-test-table td{
  background:#f8f8f8!important;
}
.achievement-test-table td:first-child{
  background:#ececec!important;
}
.achievement-test-table .achievement-fill{
  background:#c7d5dd!important;
}
.achievement-test-table input{
  width:100%!important;
  min-width:0!important;
  height:21px!important;
  padding:1px 3px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:inset 0 0 4px rgba(15,23,42,.12)!important;
  color:#111827!important;
  font-size:11px!important;
  font-weight:900!important;
  text-align:center!important;
}
.achievement-saved{
  display:inline-block!important;
  margin:0 0 6px!important;
  padding:7px 10px!important;
  border:1px solid #bbf7d0!important;
  border-radius:8px!important;
  background:#f0fdf4!important;
  color:#166534!important;
  font-size:12px!important;
  font-weight:900!important;
}
@media(max-width:900px){
  .achievement-test-head{display:block!important}
  .achievement-test-head button{margin-top:10px!important}
  .achievement-test-section{min-width:720px!important}
}

body.login {
  min-height:100vh;
  width:100%;
  overflow-x:hidden;
  padding:16px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.login main.login-card {
  width:calc(100vw - 32px)!important;
  max-width:420px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:0 auto!important;
  overflow:hidden;
}
body.login .login-card input,
body.login .login-card button {
  width:100%;
  max-width:100%;
}
body.login .login-card h1,
body.login .login-card p {
  overflow-wrap:anywhere;
  max-width:100%;
}
@media (max-width:520px) {
  body.login { padding:12px; }
  body.login main.login-card {
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    padding:24px 20px;
    border-radius:18px;
  }
  body.login .login-card h1 {
    font-size:26px;
    line-height:1.12;
  }
}

/* Student Records: final override - keep No Time directly right of Time. */
.student-records-workspace .asm-record-score.compact-time{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check){
  display:block!important;
  width:54px!important;
  min-width:54px!important;
  margin:0!important;
  font-size:0!important;
  line-height:0!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check) input{
  display:block!important;
  width:54px!important;
  height:28px!important;
  margin:0!important;
  padding:2px 4px!important;
  border-radius:8px!important;
  font-size:12px!important;
  line-height:22px!important;
  text-align:center!important;
}
.student-records-workspace .record-no-time-check{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:53px!important;
  min-width:53px!important;
  height:28px!important;
  margin:0!important;
  padding:0 0 3px!important;
  font-size:8px!important;
  line-height:10px!important;
  white-space:normal!important;
  color:#334155!important;
}
.student-records-workspace .record-no-time-check input{
  display:block!important;
  flex:0 0 10px!important;
  width:10px!important;
  min-width:10px!important;
  height:10px!important;
  margin:0!important;
  padding:0!important;
}
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:none!important;
}

/* Final Planer graph override: upcoming prep uses the same blue as Record Book prep chips. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-prep-upcoming,
.cn-right .cn-grid-cell.cn-existing.set-prep-upcoming,
.cn-right .cn-range-segment.set-prep-upcoming,
.cn-assignment-overlay .cn-assignment-block.set-prep-upcoming,
.cn-assignment-block.set-prep-upcoming{
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1e3a8a!important;
}

/* Student Records EOF override: score, time, and No Time stay on one row. */
.student-records-workspace .asm-record-card{
  grid-template-columns:128px minmax(260px,1fr) 112px!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card{
    grid-template-columns:1fr!important;
  }
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note{
    grid-column:1!important;
    grid-row:auto!important;
  }
}

/* Student Records EOF override: show Time label under the time input. */
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check){
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  height:38px!important;
  font-size:0!important;
  line-height:0!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check)::after{
  content:"Time";
  display:block!important;
  margin-top:2px!important;
  font-size:8px!important;
  line-height:8px!important;
  font-weight:900!important;
  color:#64748b!important;
  text-align:center!important;
}
.student-records-workspace .asm-record-score.compact-time{
  align-items:flex-start!important;
}

/* Student Records EOF override: Type label sits left of the Record box. */
.student-records-workspace .record-type-picker{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  position:absolute!important;
  right:9px!important;
  bottom:35px!important;
  width:150px!important;
  max-width:150px!important;
  margin:0!important;
  padding:0!important;
  font-size:9px!important;
  line-height:11px!important;
  font-weight:900!important;
  color:#64748b!important;
  z-index:3!important;
}
.student-records-workspace .record-type-picker select{
  display:block!important;
  width:102px!important;
  max-width:102px!important;
  height:24px!important;
  margin:0!important;
  padding:2px 5px!important;
  border-radius:7px!important;
  font-size:10px!important;
  font-weight:900!important;
  background:#fff!important;
}
.student-records-workspace .record-delete-inline{
  min-width:102px!important;
}
@media(max-width:900px){
  .student-records-workspace .record-type-picker{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    margin-top:4px!important;
  }
}

/* Planner top concept/paragraph strips must share the exact page-grid columns. */
.cn-grid-wrap .cn-concept-strip{
  display:grid!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(12px,1fr))!important;
  column-gap:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.cn-grid-wrap .cn-subconcept-strip,
.cn-grid-wrap .cn-axis.cn-axis-boxes,
.cn-grid-wrap .cn-mastery-row,
.cn-grid-wrap .cn-grid.cn-grid-blocks{
  display:grid!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(12px,1fr))!important;
  column-gap:1px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.cn-grid-wrap .cn-concept-segment,
.cn-grid-wrap .cn-subconcept-segment,
.cn-grid-wrap .cn-axis-box,
.cn-grid-wrap .cn-mastery-check,
.cn-grid-wrap .cn-grid-cell{
  box-sizing:border-box!important;
  min-width:0!important;
}
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-subconcept-strip,
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes,
.cn-right .cn-grid-wrap .cn-mastery-row,
.cn-right .cn-grid-wrap .cn-grid-stack,
.cn-right .cn-grid-wrap .cn-grid.cn-grid-blocks{
  min-width:520px!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(12px,1fr))!important;
}
.cn-right .cn-grid-wrap .cn-grid-stack{
  display:block!important;
}
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  min-width:520px!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(12px,1fr))!important;
}

/* Final planner graph fit: saved assignment bars sit inside the same 5-page block columns as the grid. */
.cn-right .cn-grid-wrap{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
.cn-right .cn-grid-wrap .cn-axis,
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-subconcept-strip,
.cn-right .cn-grid-wrap .cn-mastery-row,
.cn-right .cn-grid-wrap .cn-grid,
.cn-right .cn-grid-wrap .cn-grid-stack{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-subconcept-strip,
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes,
.cn-right .cn-grid-wrap .cn-mastery-row,
.cn-right .cn-grid-wrap .cn-grid.cn-grid-blocks{
  grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important;
}
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important;
  column-gap:1px!important;
  row-gap:1px!important;
}
.cn-right .cn-grid-wrap .cn-concept-segment,
.cn-right .cn-grid-wrap .cn-subconcept-segment,
.cn-right .cn-grid-wrap .cn-axis-box,
.cn-right .cn-grid-wrap .cn-mastery-check,
.cn-right .cn-grid-wrap .cn-grid-cell,
.cn-right .cn-grid-wrap .cn-assignment-block{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.cn-right .cn-grid-wrap .cn-assignment-block{
  justify-self:start!important;
  width:var(--bar-width,100%)!important;
  margin-left:var(--bar-left,0)!important;
}

/* Keep saved assignment overlay on the exact same 40-cell grid as the visible page grid. */
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  column-gap:1px!important;
  overflow:hidden!important;
}
.cn-right .cn-grid-wrap .cn-assignment-block{
  max-width:100%!important;
  overflow:hidden!important;
}

/* Student Records final layout: keep score, time, note, type, and delete controls separated. */
.student-records-workspace .asm-record-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:138px minmax(310px,1fr) 96px!important;
  grid-template-rows:auto minmax(40px,auto) auto!important;
  gap:7px 10px!important;
  align-items:start!important;
  min-height:112px!important;
  overflow:visible!important;
  padding:8px 10px!important;
}
.student-records-workspace .asm-record-main{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  min-width:0!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:40px!important;
  box-sizing:border-box!important;
  align-self:start!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check){
  flex:0 0 54px!important;
  width:54px!important;
  height:auto!important;
}
.student-records-workspace .asm-record-score.compact-time > label:not(.record-no-time-check) input{
  width:54px!important;
  height:28px!important;
}
.student-records-workspace .asm-record-score.compact-time .record-no-time-check{
  flex:0 0 34px!important;
  width:34px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
}
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:none!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2 / span 2!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:38px!important;
  height:auto!important;
  box-sizing:border-box!important;
  resize:vertical!important;
}
.student-records-workspace .record-type-picker{
  grid-column:2!important;
  grid-row:3!important;
  position:static!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:max-content!important;
  max-width:180px!important;
  margin:0!important;
  padding:0!important;
  z-index:auto!important;
}
.student-records-workspace .record-type-picker select{
  width:108px!important;
  max-width:108px!important;
}
.student-records-workspace .record-delete-inline{
  grid-column:3!important;
  grid-row:3!important;
  position:static!important;
  justify-self:end!important;
  align-self:center!important;
  min-width:74px!important;
  height:26px!important;
  margin:0!important;
}
.student-records-workspace .assistant-picker{
  display:none!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry){
  grid-template-columns:138px minmax(310px,1fr) 96px!important;
  grid-template-rows:auto minmax(40px,auto) auto!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2 / span 2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2 / span 2!important;
  grid-row:2!important;
}

/* Student Records final row repair: Type lives on the right, Note matches score width. */
.student-records-workspace .asm-record-card{
  grid-template-columns:138px 310px 96px!important;
  grid-template-rows:auto auto auto!important;
  gap:6px 10px!important;
  min-height:96px!important;
}
.student-records-workspace .record-score-track{
  grid-column:2!important;
  grid-row:1!important;
  width:310px!important;
  max-width:310px!important;
}
.student-records-workspace .asm-record-score.compact-time{
  grid-column:3!important;
  grid-row:1!important;
}
.student-records-workspace .record-time-entry{
  display:inline-flex!important;
  align-items:center!important;
  width:72px!important;
  height:28px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.student-records-workspace .record-time-entry input{
  width:42px!important;
  height:26px!important;
  border:0!important;
  border-radius:0!important;
  padding:2px 3px!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:900!important;
  background:#fff!important;
}
.student-records-workspace .record-time-entry em{
  flex:1!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-left:1px solid #e2e8f0!important;
  background:#f1f5f9!important;
  color:#64748b!important;
  font-style:normal!important;
  font-size:11px!important;
  font-weight:900!important;
  pointer-events:none!important;
  user-select:none!important;
}
.student-records-workspace .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:310px!important;
  max-width:310px!important;
  min-height:34px!important;
  max-height:56px!important;
  font-size:10px!important;
  line-height:13px!important;
  padding:4px 6px!important;
  resize:vertical!important;
}
.student-records-workspace .record-type-picker{
  grid-column:3!important;
  grid-row:2!important;
  align-self:start!important;
  width:96px!important;
  max-width:96px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:2px!important;
  font-size:8px!important;
}
.student-records-workspace .record-type-picker select{
  width:96px!important;
  max-width:96px!important;
  height:24px!important;
  font-size:10px!important;
  padding:2px 5px!important;
}
.student-records-workspace .record-delete-inline{
  grid-column:1!important;
  grid-row:auto!important;
  justify-self:start!important;
  margin-top:5px!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
  grid-column:2 / span 2!important;
  grid-row:1!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .record-type-picker{
  grid-column:3!important;
  grid-row:2!important;
}
.student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-record-note{
  grid-column:2!important;
  grid-row:2!important;
  width:310px!important;
  max-width:310px!important;
}
@media(max-width:900px){
  .student-records-workspace .asm-record-card,
  .student-records-workspace .asm-record-card:has(.asm-test-entry){
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
  }
  .student-records-workspace .asm-record-main,
  .student-records-workspace .record-score-track,
  .student-records-workspace .asm-record-score.compact-time,
  .student-records-workspace .asm-record-note,
  .student-records-workspace .record-type-picker,
  .student-records-workspace .record-delete-inline,
  .student-records-workspace .asm-record-card:has(.asm-test-entry) .asm-test-entry{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
}

/* Planer score list: make actual/SCT time badges fit their digits exactly. */
.cn-left .cn-score-track{
  padding-left:42px!important;
}
.cn-left .cn-time-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:22px!important;
  max-width:40px!important;
  inline-size:auto!important;
  height:15px!important;
  min-height:15px!important;
  max-height:15px!important;
  padding:0 3px!important;
  overflow:hidden!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  font-variant-numeric:tabular-nums!important;
  font-feature-settings:"tnum" 1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
  font-size:8.5px!important;
  line-height:15px!important;
}
.cn-left .cn-time-badge:empty{display:none!important}
.cn-left .cn-session-badge + .cn-time-badge{
  min-width:22px!important;
  max-width:40px!important;
  inline-size:auto!important;
}
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  inline-size:max-content!important;
  padding-left:4px!important;
  padding-right:4px!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  font-variant-numeric:tabular-nums!important;
  font-feature-settings:"tnum" 1!important;
  white-space:nowrap!important;
}

/* Keep the planner "No Prep Print This Week" control as one contained box. */
.cn-toolbar .prep-skip-toggle{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  min-width:max-content!important;
}
.cn-toolbar .prep-skip-toggle label{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:max-content!important;
  height:38px!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid #f59e0b!important;
  border-radius:10px!important;
  background:#fffbeb!important;
  color:#92400e!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.cn-toolbar .prep-skip-toggle input[type="checkbox"]{
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  margin:0!important;
  padding:0!important;
  border-radius:3px!important;
}

/* Final override: saved assignment overlay must share the visible page-grid gap. */
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  column-gap:1px!important;
  overflow:hidden!important;
}
.cn-right .cn-grid-wrap .cn-assignment-block{
  max-width:100%!important;
  overflow:hidden!important;
}

/* Planner graph alignment: headers, visible grid cells, and saved overlay use one box model. */
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-subconcept-strip,
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes,
.cn-right .cn-grid-wrap .cn-mastery-row,
.cn-right .cn-grid-wrap .cn-grid-stack,
.cn-right .cn-grid-wrap .cn-grid.cn-grid-blocks{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.cn-right .cn-grid-wrap .cn-concept-strip,
.cn-right .cn-grid-wrap .cn-subconcept-strip,
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes,
.cn-right .cn-grid-wrap .cn-mastery-row,
.cn-right .cn-grid-wrap .cn-grid.cn-grid-blocks,
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  grid-template-columns:repeat(var(--cn-cols,40),minmax(0,1fr))!important;
  column-gap:1px!important;
}
.cn-right .cn-grid-wrap .cn-grid.cn-grid-blocks{
  padding:0!important;
  border:0!important;
}
.cn-right .cn-grid-wrap .cn-assignment-overlay{
  inset:0!important;
  padding:0!important;
  row-gap:1px!important;
}

/* Record Book chips now include level labels when mixed levels are visible. */
.set-recordbook .rb-page-chip{
  max-width:74px!important;
}

/* Student Records: hide duplicate time ratio and reclaim score-grid space. */
.student-records-workspace .asm-record-score.compact-time .time-ratio{
  display:none!important;
}
.student-records-workspace .record-score-track{
  padding-left:22px!important;
  padding-right:6px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:3px!important;
  width:16px!important;
  min-width:16px!important;
  height:20px!important;
  font-size:8px!important;
  border-radius:5px!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  grid-template-columns:repeat(var(--record-score-count,10),minmax(24px,26px))!important;
  gap:2px!important;
}
.student-records-workspace .record-page-grid span{
  overflow:visible!important;
  white-space:nowrap!important;
}

/* Student Records: widen page-score headers so three-digit page numbers are fully visible. */
.student-records-workspace .asm-record-card{
  grid-template-columns:138px 350px 96px!important;
}
.student-records-workspace .record-score-track{
  width:350px!important;
  max-width:350px!important;
  padding-left:25px!important;
  padding-right:5px!important;
}
.student-records-workspace .record-page-grid,
.student-records-workspace .record-page-grid.pages-5,
.student-records-workspace .record-page-grid.pages-6,
.student-records-workspace .record-page-grid.pages-7,
.student-records-workspace .record-page-grid.pages-8,
.student-records-workspace .record-page-grid.pages-9,
.student-records-workspace .record-page-grid.pages-10{
  grid-template-columns:repeat(var(--record-score-count,10),29px)!important;
  gap:2px!important;
}
.student-records-workspace .record-page-grid label{
  width:29px!important;
}
.student-records-workspace .record-page-grid span{
  width:29px!important;
  min-width:29px!important;
  max-width:29px!important;
  text-align:center!important;
  font-size:7.5px!important;
}
.student-records-workspace .record-page-grid input{
  width:29px!important;
}
.student-records-workspace .record-autofill-perfect{
  left:2px!important;
  width:14px!important;
  min-width:14px!important;
  padding:0!important;
}
.student-records-workspace .record-time-entry{
  width:54px!important;
}
.student-records-workspace .record-time-entry input{
  width:54px!important;
  padding-left:2px!important;
  padding-right:2px!important;
}
.student-records-workspace .record-time-entry em{
  display:none!important;
}
.student-records-workspace .asm-record-note{
  width:350px!important;
  max-width:350px!important;
}
.student-records-workspace .record-time-entry.record-time-missing,
.student-records-workspace .asm-record-score.compact-time.record-time-missing .record-time-entry{
  border-color:#dc2626!important;
  background:#fff1f2!important;
  box-shadow:0 0 0 2px rgba(220,38,38,.18)!important;
}
.student-records-workspace .record-time-entry.record-time-missing input,
.student-records-workspace .asm-record-score.compact-time.record-time-missing .record-time-entry input{
  background:#fff1f2!important;
  color:#991b1b!important;
}
.student-records-workspace .asm-record-score.compact-time.record-time-missing .record-no-time-check{
  color:#991b1b!important;
  font-weight:1000!important;
}

/* Record Book: keep memo/CM/NC controls and memo marks to the right of page labels. */
.set-recordbook.rb-inline .rb-page-cell{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  overflow:visible!important;
}
.set-recordbook.rb-inline .rb-page-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  max-width:none!important;
  min-width:max-content!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  line-height:14px!important;
}
.set-recordbook.rb-inline .rb-note-mark,
.set-recordbook.rb-inline .rb-cm-mark,
.set-recordbook.rb-inline .rb-nc-mark{
  flex:0 0 auto!important;
  margin-left:2px!important;
}
.set-recordbook.rb-inline .rb-row-action-select{
  position:static!important;
  right:auto!important;
  top:auto!important;
  transform:none!important;
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:4!important;
  order:99!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  margin-left:2px!important;
  align-self:center!important;
}
.set-recordbook.rb-inline .rb-page-cell{
  position:relative!important;
  padding-right:0!important;
  min-height:18px!important;
}
.set-recordbook.rb-inline .rb-pages{
  order:98!important;
  flex:0 0 32px!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
}
.set-recordbook.rb-inline .rb-page-chip{
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:calc(100% - 82px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Student Records final override: align No Time with the Time label line. */
.student-records-workspace .asm-record-score.compact-time{
  align-items:flex-start!important;
}
.student-records-workspace .asm-record-score.compact-time .record-no-time-check,
.student-records-workspace .record-no-time-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:56px!important;
  min-width:56px!important;
  height:28px!important;
  margin:0!important;
  padding:15px 0 0!important;
  box-sizing:border-box!important;
  font-size:8px!important;
  line-height:10px!important;
  color:#334155!important;
}
.student-records-workspace .record-no-time-check input{
  flex:0 0 11px!important;
  width:11px!important;
  min-width:11px!important;
  height:11px!important;
  margin:0!important;
}

/* Student Records final override: keep Delete on the far right edge of each card. */
.student-records-workspace .asm-record-card{
  position:relative!important;
  padding-right:86px!important;
}
.student-records-workspace .record-delete-inline{
  position:absolute!important;
  right:10px!important;
  top:50%!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  z-index:8!important;
  min-width:64px!important;
  height:28px!important;
  margin:0!important;
}

/* Prep restore from 2026-06-02 10:30/11:45 backup: scoped to Prep only. */
/* Prep record-book: restore the current format with a visible Memo column. */
body:has(.monthly-prep-panel) .record-book-table th:nth-child(1),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(1),
.monthly-prep-panel .record-book-table th:nth-child(1),
.monthly-prep-panel .record-book-table td:nth-child(1){width:4.1%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(2),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(2),
.monthly-prep-panel .record-book-table th:nth-child(2),
.monthly-prep-panel .record-book-table td:nth-child(2){width:7%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(3),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(3),
.monthly-prep-panel .record-book-table th:nth-child(3),
.monthly-prep-panel .record-book-table td:nth-child(3){width:5.2%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(4),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(4),
.monthly-prep-panel .record-book-table th:nth-child(4),
.monthly-prep-panel .record-book-table td:nth-child(4){width:7.4%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(5),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(5),
.monthly-prep-panel .record-book-table th:nth-child(5),
.monthly-prep-panel .record-book-table td:nth-child(5){width:13.5%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(6),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(6),
.monthly-prep-panel .record-book-table th:nth-child(6),
.monthly-prep-panel .record-book-table td:nth-child(6){width:6.6%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(7),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(7),
.monthly-prep-panel .record-book-table th:nth-child(7),
.monthly-prep-panel .record-book-table td:nth-child(7){width:43.2%!important}
body:has(.monthly-prep-panel) .record-book-table th:nth-child(8),
body:has(.monthly-prep-panel) .record-book-table td:nth-child(8),
.monthly-prep-panel .record-book-table th:nth-child(8),
.monthly-prep-panel .record-book-table td:nth-child(8){width:13%!important}
body:has(.monthly-prep-panel) .record-book-memo-cell,
.monthly-prep-panel .record-book-memo-cell{
  font-size:8px!important;
  line-height:1.05!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  color:#111827!important;
  font-weight:700!important;
  text-align:left!important;
}
@media print{
  body:has(.monthly-prep-panel) .record-book-memo-cell,
  .monthly-prep-panel .record-book-memo-cell{
    font-size:5.4pt!important;
    line-height:1.03!important;
  }
}

/* Prep score boxes: last lock so no subject/past rule can darken the outline. */
body:has(.monthly-prep-panel) .monthly-record-book .record-score-boxes,
.monthly-prep-panel .monthly-record-book .record-score-boxes{
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  background:transparent!important;
}
body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr .record-score-boxes span,
body:has(.monthly-prep-panel) .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span,
body:has(.monthly-prep-panel) .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span,
body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span,
.monthly-prep-panel .monthly-record-book .record-book-table tr .record-score-boxes span,
.monthly-prep-panel .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span,
.monthly-prep-panel .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span,
.monthly-prep-panel .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span{
  border-color:#e5e7eb!important;
  border-width:.35px!important;
  box-shadow:none!important;
  outline:0!important;
}
body:has(.monthly-prep-panel) .monthly-record-book .record-score-boxes .score-circle,
.monthly-prep-panel .monthly-record-book .record-score-boxes .score-circle{
  border-color:#94a3b8!important;
  border-width:.45px!important;
  box-shadow:none!important;
  outline:0!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr .record-score-boxes span,
  body:has(.monthly-prep-panel) .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span,
  body:has(.monthly-prep-panel) .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span,
  body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span,
  .monthly-prep-panel .monthly-record-book .record-book-table tr .record-score-boxes span,
  .monthly-prep-panel .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span,
  .monthly-prep-panel .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span,
  .monthly-prep-panel .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span{
    border-color:#e5e7eb!important;
    border-width:.16pt!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-book .record-score-boxes .score-circle,
  .monthly-prep-panel .monthly-record-book .record-score-boxes .score-circle{
    border-color:#94a3b8!important;
    border-width:.22pt!important;
  }
}

/* Prep whole sheet outlines: final lock for lighter, thinner table grid. */
body:has(.monthly-prep-panel) .monthly-record-books,
body:has(.monthly-prep-panel) .monthly-record-book,
.monthly-prep-panel .monthly-record-books,
.monthly-prep-panel .monthly-record-book{
  border-color:#94a3b8!important;
  border-width:.5px!important;
}
body:has(.monthly-prep-panel) .record-book-head,
.monthly-prep-panel .record-book-head{
  border-bottom-color:#94a3b8!important;
  border-bottom-width:.5px!important;
}
body:has(.monthly-prep-panel) .record-book-table th,
body:has(.monthly-prep-panel) .record-book-table td,
.monthly-prep-panel .record-book-table th,
.monthly-prep-panel .record-book-table td{
  border-color:#cbd5e1!important;
  border-width:.45px!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-books,
  body:has(.monthly-prep-panel) .monthly-record-book,
  .monthly-prep-panel .monthly-record-books,
  .monthly-prep-panel .monthly-record-book{
    border-color:#94a3b8!important;
    border-width:.35pt!important;
  }
  body:has(.monthly-prep-panel) .record-book-head,
  .monthly-prep-panel .record-book-head{
    border-bottom-color:#94a3b8!important;
    border-bottom-width:.35pt!important;
  }
  body:has(.monthly-prep-panel) .record-book-table th,
  body:has(.monthly-prep-panel) .record-book-table td,
  .monthly-prep-panel .record-book-table th,
  .monthly-prep-panel .record-book-table td{
    border-color:#cbd5e1!important;
    border-width:.25pt!important;
  }
}

/* Prep memo/grid final tuning: keep this at file end. */
body:has(.monthly-prep-panel) .record-plan-note-label,
body:has(.monthly-prep-panel) .record-plan-note-label.record-plan-note-large,
body:has(.monthly-prep-panel) .record-new-concept-label,
.monthly-prep-panel .record-plan-note-label,
.monthly-prep-panel .record-plan-note-label.record-plan-note-large,
.monthly-prep-panel .record-new-concept-label{
  font-weight:500!important;
}
body:has(.monthly-prep-panel) .monthly-record-books,
body:has(.monthly-prep-panel) .monthly-record-book,
.monthly-prep-panel .monthly-record-books,
.monthly-prep-panel .monthly-record-book{
  border-color:#64748b!important;
  border-width:.55px!important;
}
body:has(.monthly-prep-panel) .record-book-head,
.monthly-prep-panel .record-book-head{
  border-bottom-color:#64748b!important;
  border-bottom-width:.55px!important;
}
body:has(.monthly-prep-panel) .record-book-table th,
body:has(.monthly-prep-panel) .record-book-table td,
.monthly-prep-panel .record-book-table th,
.monthly-prep-panel .record-book-table td{
  border-color:#94a3b8!important;
  border-width:.5px!important;
}
@media print{
  body:has(.monthly-prep-panel) .record-plan-note-label,
  body:has(.monthly-prep-panel) .record-plan-note-label.record-plan-note-large,
  body:has(.monthly-prep-panel) .record-new-concept-label,
  .monthly-prep-panel .record-plan-note-label,
  .monthly-prep-panel .record-plan-note-label.record-plan-note-large,
  .monthly-prep-panel .record-new-concept-label{
    font-weight:500!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-books,
  body:has(.monthly-prep-panel) .monthly-record-book,
  .monthly-prep-panel .monthly-record-books,
  .monthly-prep-panel .monthly-record-book{
    border-color:#64748b!important;
    border-width:.4pt!important;
  }
  body:has(.monthly-prep-panel) .record-book-head,
  .monthly-prep-panel .record-book-head{
    border-bottom-color:#64748b!important;
    border-bottom-width:.4pt!important;
  }
  body:has(.monthly-prep-panel) .record-book-table th,
  body:has(.monthly-prep-panel) .record-book-table td,
  .monthly-prep-panel .record-book-table th,
  .monthly-prep-panel .record-book-table td{
    border-color:#94a3b8!important;
    border-width:.3pt!important;
  }
}

/* Prep print fit/blank-page guard: keep this last for Prep printing only. */
@media print{
  @page monthly-prep{size:letter landscape;margin:.25in}
  body:has(.monthly-prep-panel) header,
  body:has(.monthly-prep-panel) nav,
  body:has(.monthly-prep-panel) .logout,
  body:has(.monthly-prep-panel) .monthly-prep-head,
  body:has(.monthly-prep-panel) .monthly-prep-filters,
  body:has(.monthly-prep-panel) .monthly-prep-tabs,
  body:has(.monthly-prep-panel) .monthly-prep-count{
    display:none!important;
  }
  body:has(.monthly-prep-panel){
    background:#fff!important;
    margin:0!important;
  }
  body:has(.monthly-prep-panel) main,
  body:has(.monthly-prep-panel) .monthly-prep-panel,
  body:has(.monthly-prep-panel) .monthly-prep-sheets{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body:has(.monthly-prep-panel) .monthly-prep-sheets{
    display:block!important;
  }
  body:has(.monthly-prep-panel) .monthly-prep-sheets .monthly-record-sheet:first-child{
    break-before:auto!important;
    page-break-before:auto!important;
    margin-top:0!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-sheet{
    page:monthly-prep;
    width:9.85in!important;
    max-width:9.85in!important;
    height:7.55in!important;
    margin:0 auto!important;
    padding:.08in .04in .28in!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-before:auto!important;
    break-after:auto!important;
    page-break-before:auto!important;
    page-break-after:auto!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-sheet.duplex-month,
  body:has(.monthly-prep-panel) .monthly-record-sheet:not(:last-child),
  body:has(.monthly-prep-panel) .monthly-record-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title{
    height:.61in!important;
    margin:0 0 .01in!important;
    padding-bottom:.025in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title-right{
    top:.025in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title .monthly-record-print-date{
    margin-top:.015in!important;
    line-height:1.08!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-books{
    height:6.72in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-book{
    height:6.72in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table{
    height:6.42in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table tbody tr,
  body:has(.monthly-prep-panel) .record-book-table th,
  body:has(.monthly-prep-panel) .record-book-table td{
    height:.2in!important;
    max-height:.2in!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes span{
    min-height:.132in!important;
    height:.132in!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes .score-dash{
    font-style:normal!important;
    font-weight:950!important;
  color:#111827!important;
}

/* Prep print: keep worksheet ranges fully visible; New Concept is shown in the score column label. */
body:has(.monthly-prep-panel) .record-book-table td:nth-child(5),
.monthly-prep-panel .record-book-table td:nth-child(5){
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:7pt!important;
  letter-spacing:0!important;
}
  body:has(.monthly-prep-panel) .monthly-record-footer{
    position:absolute!important;
    top:.47in!important;
    left:.04in!important;
    bottom:auto!important;
    height:.12in!important;
    max-width:6.4in!important;
    display:flex!important;
    gap:.12in!important;
    padding:0!important;
    overflow:hidden!important;
    font-size:6.8pt!important;
    line-height:.9!important;
    background:#fff!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes .score-circle{
    border-color:#94a3b8!important;
    border-width:.24pt!important;
  }
}

/* Prep subject header colors: Math blue, Reading red. */
body:has(.monthly-prep-panel) .monthly-record-book.math .record-book-head b,
.monthly-prep-panel .monthly-record-book.math .record-book-head b{
  color:#1d4ed8!important;
}
body:has(.monthly-prep-panel) .monthly-record-book.reading .record-book-head b,
.monthly-prep-panel .monthly-record-book.reading .record-book-head b{
  color:#dc2626!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-book.math .record-book-head b,
  .monthly-prep-panel .monthly-record-book.math .record-book-head b{
    color:#1d4ed8!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-book.reading .record-book-head b,
  .monthly-prep-panel .monthly-record-book.reading .record-book-head b{
    color:#dc2626!important;
  }
}

/* Prep linked-row highlight: visible sky blue for screen and print previews. */
body:has(.monthly-prep-panel) .linked-plan-highlight,
.monthly-prep-panel .linked-plan-highlight{
  outline-color:#0284c7!important;
  box-shadow:0 0 0 3px rgba(2,132,199,.32)!important;
}
body:has(.monthly-prep-panel) tr.linked-plan-highlight td,
body:has(.monthly-prep-panel) td.linked-plan-highlight,
body:has(.monthly-prep-panel) .set-calendar-day.linked-plan-highlight,
.monthly-prep-panel tr.linked-plan-highlight td,
.monthly-prep-panel td.linked-plan-highlight,
.monthly-prep-panel .set-calendar-day.linked-plan-highlight{
  background:#7dd3fc!important;
  outline-color:#0284c7!important;
}
@media print{
  body:has(.monthly-prep-panel) tr.linked-plan-highlight td,
  body:has(.monthly-prep-panel) td.linked-plan-highlight,
  .monthly-prep-panel tr.linked-plan-highlight td,
  .monthly-prep-panel td.linked-plan-highlight{
    background:#7dd3fc!important;
    outline-color:#0284c7!important;
  }
}

body:has(.monthly-prep-panel) .record-book-table tr.prep-future .record-plan-note-label,
body:has(.monthly-prep-panel) .record-book-table tr.prep-future .record-plan-note-label.record-plan-note-large,
.monthly-prep-panel .record-book-table tr.prep-future .record-plan-note-label,
.monthly-prep-panel .record-book-table tr.prep-future .record-plan-note-label.record-plan-note-large{
  color:inherit!important;
}


/* Today Board: make students with notes/New Concept visibly blink. */
.today-board .today-student.arrived.today-has-note{
  position:relative!important;
  border-color:#38bdf8!important;
  background:#fff!important;
  overflow:visible!important;
}
.today-board .today-student.arrived.today-has-note b,
.today-board .today-student.arrived.today-has-note .today-student-note{
  color:#0369a1!important;
}
.today-board .today-student.arrived.today-has-note b{
  font-weight:1000!important;
}
.today-board .today-student.arrived.today-has-note .today-student-note{
  display:inline-block!important;
  margin-top:4px!important;
  padding:3px 6px!important;
  border-radius:7px!important;
  background:#fef3c7!important;
  border:1px solid #f59e0b!important;
  font-weight:1000!important;
}
.today-board .today-student.arrived.today-has-note{
  animation:todayNoteBlink 1.8s ease-in-out infinite!important;
}
@keyframes todayNoteBlink{
  0%,100%{border-color:#38bdf8!important;box-shadow:0 0 0 1px rgba(14,165,233,.35), 0 0 7px rgba(14,165,233,.32), inset 0 0 0 1px rgba(14,165,233,.2);transform:scale(1)}
  50%{border-color:#f59e0b!important;box-shadow:0 0 0 3px rgba(250,204,21,.45), 0 0 14px rgba(245,158,11,.45), 0 0 20px rgba(14,165,233,.25), inset 0 0 0 1px rgba(245,158,11,.35);transform:scale(1.006)}
}
@media (prefers-reduced-motion: reduce){
  .today-board .today-student.arrived.today-has-note{
    animation:none!important;
    box-shadow:0 0 0 4px rgba(245,158,11,.45), 0 0 18px rgba(14,165,233,.35)!important;
  }
}
.today-board .today-student.today-early-learner{
  border-color:#e5e7eb!important;
  background:white!important;
}
.today-board .today-student.today-early-learner b{
  color:#db2777!important;
}
.today-board .today-absent-student{
  align-items:flex-start!important;
  gap:8px;
  padding:9px 10px!important;
  flex-wrap:wrap;
}
.today-board .today-absent-student .absent-student-info{
  min-width:0;
  flex:1;
}
.today-board .today-absent-student .absent-student-info b{
  font-size:13px;
  line-height:1.15;
}
.today-board .today-absent-student .absent-student-info small{
  font-size:10px;
  line-height:1.2;
}
.absent-card-right{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  flex:1 0 100%;
  max-width:none;
}
.absent-card-right > span{
  flex:0 0 auto;
  font-size:10px!important;
  padding:4px 7px!important;
}
.absent-type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:auto;
  margin-right:5px;
  padding:0;
  border-radius:0;
  font-style:normal;
  font-size:10px;
  font-weight:1000;
  border:0;
  background:transparent;
  color:#92400e;
}
.absent-type.kc{
  border-color:transparent;
  background:transparent;
  color:#1d4ed8;
}
.absent-action-checks{
  display:flex;
  flex-wrap:nowrap;
  gap:4px;
  justify-content:flex-end;
  margin-top:0;
  max-width:100%;
  overflow-x:auto;
  padding-bottom:2px;
}
.absent-action-checks form{
  margin:0;
}
.absent-action-checks label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:22px;
  padding:0 2px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#334155;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.today-absent-change-form .absent-change-date{
  width:96px;
  height:22px;
  min-width:96px;
  padding:0 3px;
  border:1px solid #cbd5e1;
  border-radius:6px;
  font-size:10px;
}
.today-absent-change-form:not(:has(input[type="checkbox"]:checked)) .absent-change-date{
  display:none;
}
.absent-action-checks input{
  width:14px;
  height:14px;
  min-width:14px;
  accent-color:#16a34a;
  margin:0 1px 0 0;
}
.absent-action-checks label:has(input:checked){
  background:transparent;
  color:#166534;
}
@media(max-width:720px){
  .absent-card-right{
    align-items:flex-start;
    max-width:none;
    width:100%;
  }
  .absent-action-checks{
    justify-content:flex-start;
  }
}

/* Student Attendance: keep PM visible in time fields and tighten notes. */
.attendance-manual-form{
  grid-template-columns:minmax(220px,1fr) 120px 230px minmax(120px,.65fr) 74px!important;
}
.attendance-manual-form input[name="occurred_at"]{
  min-width:220px;
}
.attendance-manual-form input[name="notes"]{
  max-width:150px;
}
.attendance-log-table input[type="time"]{
  width:132px!important;
  min-width:132px;
}
.attendance-log-table input[name="notes"]{
  width:130px;
  max-width:130px;
}

/* Prep print final fit: keep 31-day months from clipping on Letter landscape. */
@media print{
  body:has(.monthly-prep-panel) .monthly-record-sheet{
    height:7.08in!important;
    padding:.035in .03in .08in!important;
    overflow:visible!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title{
    height:.48in!important;
    margin-bottom:.005in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-books,
  body:has(.monthly-prep-panel) .monthly-record-book{
    height:6.3in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table{
    height:6.02in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table tbody tr,
  body:has(.monthly-prep-panel) .record-book-table th,
  body:has(.monthly-prep-panel) .record-book-table td{
    height:.184in!important;
    max-height:.184in!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes span{
    min-height:.112in!important;
    height:.112in!important;
  }
}

/* Prep print final fit: keep the header in place and extend the table area downward. */
@media print{
  @page monthly-prep{size:letter landscape;margin:.08in}
  body:has(.monthly-prep-panel) .monthly-record-sheet{
    width:10.58in!important;
    max-width:10.58in!important;
    height:8.20in!important;
    margin:0 auto!important;
    padding:.12in .04in .02in!important;
    overflow:hidden!important;
    break-after:auto!important;
    page-break-after:auto!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title{
    height:.52in!important;
    margin:0 0 .035in!important;
    padding-bottom:.025in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-books,
  body:has(.monthly-prep-panel) .monthly-record-book{
    height:7.22in!important;
  }
  body:has(.monthly-prep-panel) .record-book-head{
    height:.28in!important;
    min-height:.28in!important;
    max-height:.28in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table{
    height:6.94in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table thead th{
    height:.19in!important;
    max-height:.19in!important;
  }
  body:has(.monthly-prep-panel) .record-book-table tbody tr,
  body:has(.monthly-prep-panel) .record-book-table td{
    height:.204in!important;
    max-height:.204in!important;
    min-height:.204in!important;
  }
  body:has(.monthly-prep-panel) .record-score-boxes span{
    min-height:.108in!important;
    height:.108in!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-title .monthly-record-print-date{
    font-size:7pt!important;
    line-height:1!important;
    margin:.018in .03in 0 0!important;
    white-space:nowrap!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
}

/* Final Prep print header inset override. */
body:has(.monthly-prep-panel) .monthly-record-title-right,
.monthly-prep-panel .monthly-record-title-right{
  right:.18in!important;
}
body:has(.monthly-prep-panel) .monthly-record-title .monthly-record-print-date,
.monthly-prep-panel .monthly-record-title .monthly-record-print-date{
  margin-right:.03in!important;
}

.recordbook-memo-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:24px;
}
.recordbook-memo-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
}
.recordbook-memo-card{
  position:relative;
  z-index:1;
  width:min(460px, calc(100vw - 32px));
  display:grid;
  gap:12px;
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:8px;
  box-shadow:0 20px 50px rgba(15,23,42,.24);
  padding:14px;
}
.recordbook-memo-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.recordbook-memo-head b{
  font-size:15px;
}
.recordbook-memo-close{
  width:30px;
  height:30px;
  border-radius:6px;
  padding:0;
}
.recordbook-memo-card textarea{
  width:100%;
  min-height:120px;
  resize:vertical;
}
.recordbook-memo-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.student-records-workspace .record-page-grid label.record-score-pending input{
  border-color:#f59e0b!important;
  box-shadow:0 0 0 2px rgba(245,158,11,.26)!important;
}
.student-records-workspace .record-page-grid label.record-score-saved input{
  background:#dcfce7!important;
  border-color:#22c55e!important;
  color:#14532d!important;
  box-shadow:0 0 0 2px rgba(34,197,94,.36)!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-title-right,
  .monthly-prep-panel .monthly-record-title-right{
    right:.20in!important;
  }
}

/* Prep header: keep the student name left-aligned beside the month. */
body:has(.monthly-prep-panel) .monthly-record-student,
.monthly-prep-panel .monthly-record-student{
  left:2.25in!important;
  transform:none!important;
  width:4.6in!important;
  text-align:left!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-student,
  .monthly-prep-panel .monthly-record-student{
    left:2.20in!important;
    transform:none!important;
    width:4.8in!important;
    text-align:left!important;
  }
}

.schedule-exception-panel .schedule-exception-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  width:100%;
  overflow-x:auto;
  white-space:nowrap;
  margin:4px 0 10px;
}
.schedule-exception-panel .schedule-exception-tabs a{
  flex:0 0 auto;
}
.schedule-exception-panel .schedule-exception-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:8px;
}
.schedule-exception-panel .schedule-exception-filters .schedule-exception-tabs{
  flex:0 0 100%;
}
.schedule-exception-panel .schedule-exception-filters label,
.schedule-exception-panel .schedule-exception-filters button,
.schedule-exception-panel .schedule-exception-filters>.button{
  flex:0 0 auto;
}
.schedule-exception-panel .schedule-exception-filters label{
  min-width:135px;
}
.schedule-exception-panel .schedule-exception-filters label:first-of-type{
  min-width:210px;
}

.asm-student-directory.not-started-students{
  min-width:1500px!important;
}
.asm-student-directory.not-started-students .classnavi-row{
  grid-template-columns:56px minmax(210px,1.25fr) minmax(125px,1fr) 48px 92px minmax(140px,1fr) minmax(140px,1fr) minmax(170px,1fr) 72px!important;
}
.student-onboarding-checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 8px;
  align-items:start;
}
.student-onboarding-checklist label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:5px;
  font-size:10px;
  line-height:1.15;
  font-weight:900;
  color:#334155;
}
.student-onboarding-checklist input{
  width:14px;
  height:14px;
  padding:0;
  flex:0 0 auto;
}
.student-onboarding-checklist .student-onboarding-save{
  grid-column:1/-1;
  min-height:12px;
  color:#64748b;
}
.student-onboarding-checklist.saving .student-onboarding-save{color:#b45309}
.student-onboarding-checklist.saved .student-onboarding-save{color:#15803d}
.student-onboarding-checklist.error .student-onboarding-save{color:#b91c1c}
.student-registration-date{
  display:block!important;
  margin-top:4px!important;
  color:#475569!important;
  font-weight:900!important;
}
@media(max-width:900px){
  .asm-student-directory.not-started-students{min-width:1320px!important}
  .asm-student-directory.not-started-students .classnavi-row{
    grid-template-columns:52px 190px 140px 46px 88px 145px 145px 170px 70px!important;
  }
}

.bulk-email-layout{
  display:grid;
  grid-template-columns:minmax(300px,380px) 1fr;
  gap:14px;
  align-items:start;
}
.bulk-email-recipients,.bulk-email-compose{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:14px;
}
.bulk-email-recipient-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.bulk-email-recipient-head button{
  padding:7px 10px;
  font-size:12px;
  border-radius:8px;
}
.bulk-email-recipient-list{
  display:grid;
  gap:7px;
  max-height:520px;
  overflow:auto;
}
.bulk-email-recipient-list label{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:8px;
  cursor:pointer;
}
.bulk-email-recipient-list input{
  width:16px;
  height:16px;
  padding:0;
  margin-top:2px;
}
.bulk-email-recipient-list b{font-size:13px}
.bulk-email-recipient-list small{
  display:block;
  color:#64748b;
  font-weight:800;
  margin-top:2px;
  word-break:break-word;
}
.bulk-email-recipient-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:8px 0 2px;
  padding:7px 9px;
  border-radius:8px;
  background:#e2e8f0;
  color:#334155;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.bulk-email-recipient-section small{
  margin:0;
  color:#64748b;
  font-size:10px;
  text-transform:none;
  letter-spacing:0;
}
.bulk-email-recipient-section.upcoming{
  margin-top:14px;
  background:#fff7ed;
  color:#9a3412;
}
.bulk-email-recipient-list label.upcoming-student{
  border-color:#fed7aa;
  background:#fffbeb;
}
.bulk-email-recipient-list label.upcoming-student small{
  color:#9a3412;
}
.bulk-email-recipient-section.paused{
  margin-top:14px;
  background:#f1f5f9;
  color:#475569;
}
.bulk-email-recipient-list label.paused-student{
  border-color:#cbd5e1;
  background:#f8fafc;
}
.bulk-email-recipient-list label.paused-student b em{
  color:#64748b;
  font-size:11px;
  font-style:normal;
  font-weight:1000;
}
.bulk-email-recipient-list label.paused-student small{
  color:#64748b;
}
.bulk-email-compose{
  display:grid;
  gap:12px;
}
.bulk-email-compose textarea:not([hidden]){
  min-height:260px;
}
.bulk-email-compose small{
  color:#64748b;
  font-weight:800;
}
.bulk-goal-progress-box{
  display:grid;
  gap:9px;
  background:#fff;
  border:1px solid #bfdbfe;
  border-radius:10px;
  padding:10px;
}
.bulk-goal-progress-toggle,
.bulk-goal-progress-check{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  margin:0;
}
.bulk-goal-progress-toggle{
  color:#1e3a8a;
  font-weight:950;
}
.bulk-goal-progress-toggle input,
.bulk-goal-progress-check input{
  width:16px;
  height:16px;
  margin:0;
}
.bulk-goal-progress-fields{
  display:grid;
  grid-template-columns:160px 190px minmax(220px,1fr);
  gap:10px;
  align-items:end;
}
.bulk-goal-progress-fields label{
  min-width:0;
}
.bulk-email-message-label{
  gap:8px;
}
.bulk-email-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:10px;
  padding:8px;
}
.bulk-email-toolbar button{
  width:34px;
  height:34px;
  padding:0;
  border-radius:8px;
}
.bulk-email-toolbar button.active{
  background:#172033;
  color:#fff;
}
.bulk-email-toolbar .bulk-email-link-button{
  width:auto;
  min-width:46px;
  padding:0 9px;
  font-size:12px;
  font-weight:900;
}
.bulk-email-toolbar select{
  width:auto;
  min-width:92px;
  height:34px;
  padding:6px 8px;
  border-radius:8px;
}
.bulk-email-color-control{
  flex-direction:row;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#475467;
}
.bulk-email-color-control input{
  width:34px;
  height:34px;
  padding:3px;
  border-radius:8px;
}
.bulk-email-editor{
  min-height:260px;
  background:#fff;
  border:1px solid #d0d5dd;
  border-radius:10px;
  padding:12px;
  font-size:16px;
  line-height:1.45;
  font-weight:400;
  color:#172033;
  outline:none;
  overflow:auto;
}
.bulk-email-editor p,
.bulk-email-editor div{
  margin:0;
  line-height:1.45;
}
.bulk-email-editor p:empty,
.bulk-email-editor div:empty{
  margin:0;
  min-height:1.45em;
  line-height:1.45;
}
.bulk-email-editor:focus{
  border-color:#2f80ed;
  box-shadow:0 0 0 3px #2f80ed22;
}
.bulk-email-editor:empty:before{
  content:attr(data-placeholder);
  color:#98a2b3;
}
.bulk-email-attachment-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  word-break:break-word;
}
.bulk-email-recipient-search{
  width:100%;
  margin:8px 0;
  border:1px solid #cbd5e1;
  border-radius:6px;
  padding:8px 10px;
  font-size:13px;
  font-weight:800;
  color:#172033;
  background:#fff;
}
.bulk-email-recipient-search:focus{
  outline:none;
  border-color:#2f80ed;
  box-shadow:0 0 0 3px #2f80ed22;
}
.bulk-email-recipient-head b small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:11px;
  font-weight:900;
}
.bulk-email-attachment-summary{
  flex-basis:100%;
  color:#64748b;
  font-weight:800;
}
.bulk-email-attachment-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#172033;
  border-radius:6px;
  padding:4px 6px;
  font-weight:800;
}
.bulk-email-attachment-chip span{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bulk-email-attachment-chip button{
  width:18px;
  height:18px;
  border:0;
  border-radius:50%;
  background:#e2e8f0;
  color:#0f172a;
  font-size:14px;
  line-height:18px;
  padding:0;
  cursor:pointer;
}
.bulk-email-attachment-chip button:hover{
  background:#fecaca;
  color:#991b1b;
}
.bulk-email-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.report-tracker-panel{margin-top:22px;border-top:1px solid #e2e8f0;padding-top:20px}
.report-tracker-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.report-tracker-filters label{font-size:12px;font-weight:900;color:#475569}
.report-tracker-filters input,.report-tracker-filters select{min-width:130px}
.report-tracker-cards{grid-template-columns:repeat(4,minmax(140px,1fr));margin:14px 0}
.report-tracker-legend{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.report-tracker-legend span{border-radius:999px;padding:5px 9px;font-size:11px;font-weight:1000}
.report-tracker-legend .sent{background:#dcfce7;color:#166534}
.report-tracker-legend .need{background:#fee2e2;color:#991b1b}
.report-tracker-legend .meeting{background:#ede9fe;color:#5b21b6}
.report-tracker-legend .leave{background:#e5e7eb;color:#374151}
.report-tracker-legend .enrolled{background:#dbeafe;color:#1e40af}
.report-tracker-legend .future{background:#fef3c7;color:#854d0e}
.report-tracker-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:white;max-height:68vh}
.report-tracker-table{min-width:1280px;border-collapse:separate;border-spacing:0}
.report-tracker-table th,.report-tracker-table td{white-space:nowrap;font-size:12px;padding:8px 9px;border-bottom:1px solid #e5e7eb;border-right:1px solid #f1f5f9;text-align:center}
.report-tracker-table th{position:sticky;top:0;background:#f8fafc;z-index:4;font-size:11px;color:#475569;text-transform:uppercase}
.report-tracker-table .sticky-col{position:sticky;background:white;z-index:3}
.report-tracker-table th.sticky-col{background:#f8fafc;z-index:5}
.report-tracker-table .student-col{left:0;text-align:left;min-width:190px;max-width:220px}
.report-tracker-table .reg-col{left:190px;min-width:86px}
.report-tracker-table td.student-col b{display:block;font-size:13px;color:#0f172a}
.report-tracker-table td.student-col small{display:block;color:#64748b;font-size:10px;margin-top:2px}
.report-tracker-table tr.due-now td.student-col{box-shadow:inset 4px 0 0 #ef4444}
.report-month-cell{min-width:82px;font-weight:1000}
.report-month-cell.sent{background:#ecfdf5;color:#166534}
.report-month-cell.need{background:#fff1f2;color:#991b1b}
.report-month-cell.meeting{background:#f5f3ff;color:#5b21b6}
.report-month-cell.leave{background:#f3f4f6;color:#374151}
.report-month-cell.enrolled{background:#eff6ff;color:#1e40af}
.report-month-cell.future{background:#fffbeb;color:#854d0e}
.report-month-cell.before{background:#f8fafc}
.report-cell-form{margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.report-cell-form button{border:0;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:1000;background:rgba(255,255,255,.72);color:inherit;cursor:pointer}
.report-cell-form button:hover{background:#0f172a;color:white}
.report-cell-form select{width:100%;min-width:74px;border:0;border-radius:999px;padding:5px 20px 5px 8px;font-size:10px;font-weight:1000;background:rgba(255,255,255,.72);color:inherit;cursor:pointer;text-align:center}
.report-cell-form select:hover,.report-cell-form select:focus{background:#0f172a;color:white;outline:0}
.report-due-text{color:#991b1b}
.report-tracker-note{margin-top:10px}
.student-status.not-started{background:#dbeafe;color:#1e40af}
@media(max-width:900px){
  .bulk-email-layout{grid-template-columns:1fr}
  .bulk-email-recipient-list{max-height:340px}
  .report-tracker-cards{grid-template-columns:1fr 1fr}
  .report-tracker-table .reg-col{left:170px}
  .report-tracker-table .student-col{min-width:170px}
}
body:has(.monthly-prep-panel) .record-plan-note-label.record-plan-note-large,
.monthly-prep-panel .record-plan-note-label.record-plan-note-large{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  line-height:1.05!important;
  font-size:7px!important;
}
@media print{
  body:has(.monthly-prep-panel) .record-plan-note-label.record-plan-note-large,
  .monthly-prep-panel .record-plan-note-label.record-plan-note-large{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    line-height:.95!important;
    font-size:4.7pt!important;
  }
}
.set-calendar-plan.has-planner-memo{
  padding-right:18px!important;
  border-left-color:#7c3aed!important;
  overflow:visible!important;
}
.planner-memo-mark,
.rb-memo-mark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:13px!important;
  min-width:13px!important;
  height:13px!important;
  border-radius:999px!important;
  background:#7c3aed!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:1000!important;
  line-height:1!important;
}
.planner-memo-mark{
  position:absolute!important;
  right:3px!important;
  top:16px!important;
  cursor:pointer!important;
}
.set-month-calendar,
.set-month-calendar .set-calendar-grid,
.set-month-calendar .set-calendar-day{
  overflow:visible!important;
}
.planner-memo-popover{
  position:fixed;
  z-index:10000;
  max-width:min(320px, calc(100vw - 24px));
  border:1px solid #c4b5fd;
  border-radius:10px;
  background:#fff;
  color:#1f2937;
  box-shadow:0 16px 36px #10182830;
  padding:10px 11px;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.planner-memo-popover::before{
  content:"Memo";
  display:block;
  margin-bottom:5px;
  color:#6d28d9;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
}
.set-calendar-plan[data-memo-tooltip]:not([data-memo-tooltip=""])::after,
.rb-page-chip[data-memo-tooltip]:not([data-memo-tooltip=""])::after{
  content:attr(data-memo-tooltip);
  position:absolute;
  z-index:80;
  left:50%;
  bottom:calc(100% + 6px);
  transform:translateX(-50%);
  width:max-content;
  max-width:260px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  border:1px solid #c4b5fd;
  border-radius:8px;
  background:#fff;
  color:#1f2937;
  box-shadow:0 12px 28px #10182824;
  padding:8px 9px;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
}
.set-calendar-plan[data-memo-tooltip]:not([data-memo-tooltip=""]):hover::after,
.rb-page-chip[data-memo-tooltip]:not([data-memo-tooltip=""]):hover::after{
  opacity:1;
  visibility:visible;
}
.set-recordbook .rb-page-chip.rb-has-memo{
  position:relative!important;
  overflow:visible!important;
  border-color:#c4b5fd!important;
  background:#f5f3ff!important;
  color:#4c1d95!important;
}
.set-recordbook .rb-page-chip .rb-memo-mark{
  margin-left:3px!important;
  vertical-align:middle!important;
}
.early-dashboard .early-date-filter{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  margin:0!important;
  white-space:nowrap!important;
  overflow-x:auto;
}
.early-dashboard .early-date-filter label{
  display:inline-flex!important;
  flex:0 0 auto!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
}
.early-dashboard .early-date-filter input[type=date]{
  width:auto!important;
  height:40px!important;
  min-width:142px!important;
}
.early-dashboard .early-date-filter .button{
  width:auto!important;
  height:40px!important;
  flex:0 0 auto!important;
  padding:0 12px!important;
}
.planning-check-type-tabs,
.planning-check-sub-tabs{
  margin-top:12px;
}
.planning-check-type-tabs>input,
.planning-check-sub-tabs>input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.planning-check-type-buttons,
.planning-check-sub-buttons{
  display:flex;
  gap:8px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.planning-check-type-buttons label,
.planning-check-sub-buttons label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  padding:8px 13px;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}
#planning-check-type-paper:checked ~ .planning-check-type-buttons label[for="planning-check-type-paper"],
#planning-check-type-kc:checked ~ .planning-check-type-buttons label[for="planning-check-type-kc"],
#planning-check-kc-all:checked ~ .planning-check-sub-buttons label[for="planning-check-kc-all"],
#planning-check-kc-z:checked ~ .planning-check-sub-buttons label[for="planning-check-kc-z"]{
  border-color:#0f172a;
  background:#0f172a;
  color:#fff;
}
.planning-check-type-panel,
.planning-check-sub-panel{
  display:none;
}
#planning-check-type-paper:checked ~ .planning-type-paper,
#planning-check-type-kc:checked ~ .planning-type-kc,
#planning-check-kc-all:checked ~ .planning-kc-all,
#planning-check-kc-z:checked ~ .planning-kc-z{
  display:block;
}
.planning-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.planning-check-column{
  border:1px solid #dbe6f3;
  border-radius:10px;
  background:#f8fafc;
  padding:10px;
  min-width:0;
}
.planning-check-column.full-width{
  margin-bottom:12px;
}
.planning-check-column.changed{
  border-color:#bfdbfe;
  background:#eff6ff;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.08);
}
.planning-check-column.changed h3{
  color:#1d4ed8;
}
.planning-check-column h3{
  margin:0 0 8px;
  color:#0f172a;
  font-size:13px;
}
.planning-check-column.changed h3{
  color:#1d4ed8;
}
.planning-check-row{
  display:grid;
  grid-template-columns:minmax(170px,1.15fr) minmax(130px,.75fr) minmax(180px,1fr) auto;
  gap:8px;
  align-items:center;
  border:1px solid #e2e8f0;
  border-left:5px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  padding:8px;
  margin-top:7px;
}
.planning-check-row.needs-plan{
  border-left-color:#dc2626;
}
.planning-check-row.needs-review{
  border-left-color:#f59e0b;
}
.planning-check-row.on-track,
.planning-check-row.ok{
  border-left-color:#16a34a;
}
.planning-check-row.changed{
  border-left-color:#2563eb;
  border-color:#bfdbfe;
  background:#f8fbff;
}
.planning-check-main{
  min-width:0;
  color:#0f172a;
  text-decoration:none;
}
.planning-check-main b{
  font-size:13px;
}
.planning-check-main small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:10px;
  font-weight:800;
}
.planning-check-dates{
  display:grid;
  gap:4px;
}
.planning-check-dates span{
  display:flex;
  justify-content:space-between;
  gap:7px;
  border:1px solid #e2e8f0;
  border-radius:7px;
  background:#f8fafc;
  padding:5px 7px;
  color:#0f172a;
  font-size:10px;
  font-weight:900;
}
.planning-check-dates b{
  color:#64748b;
  font-size:9px;
  text-transform:uppercase;
}
.planning-check-reasons{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  min-width:0;
}
.planning-check-reasons span,
.planning-check-review-lines i{
  display:inline-flex;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  color:#1e3a8a;
  padding:4px 7px;
  font-size:10px;
  font-style:normal;
  font-weight:900;
  line-height:1.2;
}
.planning-check-review-lines{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
}
.planning-check-row .button.small{
  white-space:nowrap;
}
@media(max-width:980px){
  .planning-check-grid{
    grid-template-columns:1fr;
  }
  .planning-check-row{
    grid-template-columns:1fr;
    align-items:start;
  }
}
.early-note-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.early-time-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:4px;
  color:#0f172a;
  font-size:12px;
  font-weight:1000;
}
.early-time-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#dbe6f3;
}
.early-time-divider span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#1e3a8a;
  padding:5px 9px;
}
.early-note-card{
  display:grid;
  grid-template-columns:minmax(170px,.7fr) minmax(180px,.75fr) minmax(280px,1.45fr) minmax(110px,.38fr);
  gap:10px;
  align-items:stretch;
  border:1px solid #dbe6f3;
  border-radius:10px;
  background:#fff;
  padding:10px;
}
.early-note-student{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.early-note-student b{
  color:#0f172a;
  font-size:14px;
}
.early-note-student small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
}
.early-assistant-line{
  color:#0f766e!important;
}
.early-planner-cm-notes{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  min-width:0;
}
.early-planner-cm-note{
  border:1px solid #dbeafe;
  border-left:4px solid #2563eb;
  border-radius:8px;
  background:#eff6ff;
  padding:7px 8px;
  min-width:0;
}
.early-planner-cm-note.reading{
  border-color:#fecaca;
  border-left-color:#dc2626;
  background:#fff1f2;
}
.early-planner-cm-note span,
.early-planner-cm-empty{
  display:block;
  color:#475569;
  font-size:10px;
  font-weight:1000;
}
.early-planner-cm-note p{
  margin:3px 0 0;
  color:#0f172a;
  font-size:11px;
  font-weight:800;
  line-height:1.3;
  max-height:58px;
  overflow:auto;
  overflow-wrap:anywhere;
}
.early-planner-cm-empty{
  color:#94a3b8;
}
.early-subject-notes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
  min-width:0;
}
.early-subject-note{
  display:grid;
  gap:5px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
  padding:8px;
  min-width:0;
}
.early-subject-note.math{
  border-left:4px solid #2563eb;
}
.early-subject-note.reading{
  border-left:4px solid #dc2626;
}
.early-subject-note.cm-test-note{
  border-left-style:dashed;
  background:#fff;
}
.early-subject-note.cm-test-note span{
  color:#7c3aed;
}
.early-subject-note span{
  color:#0f172a;
  font-size:11px;
  font-weight:1000;
}
.early-subject-note textarea{
  width:100%;
  min-height:62px;
  resize:vertical;
  border:1px solid #cbd5e1;
  border-radius:7px;
  padding:7px 8px;
  font-size:12px;
  line-height:1.35;
  box-sizing:border-box;
}
.early-subject-note small{
  color:#64748b;
  font-size:10px;
  font-weight:800;
}
.early-kc-message{
  display:flex;
  align-items:center;
  min-height:62px;
  border:1px dashed #cbd5e1;
  border-radius:7px;
  background:#fff;
  color:#475569;
  padding:8px;
  font-size:12px;
  font-weight:900;
}
.early-note-meta{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:6px;
}
.early-note-meta button,
.early-save-bar button{
  border:1px solid #0f172a;
  border-radius:8px;
  background:#0f172a;
  color:#fff;
  padding:8px 10px;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}
.early-note-meta small{
  color:#64748b;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
}
.early-save-bar{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
@media(max-width:900px){
  .early-note-card{
    grid-template-columns:1fr;
  }
  .early-note-meta{
    align-items:flex-start;
  }
}
.monthly-prep-actions{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:5px!important;
}
.monthly-prep-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
.monthly-prep-actions .button,
.monthly-prep-actions button{
  min-height:25px!important;
  height:25px!important;
  padding:0 7px!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.monthly-prep-actions button:disabled{
  opacity:.65!important;
  cursor:wait!important;
}
body:has(.monthly-prep-panel) .monthly-record-footer,
.monthly-prep-panel .monthly-record-footer{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0!important;
  width:100%!important;
  max-width:none!important;
}
body:has(.monthly-prep-panel) .monthly-record-footer span,
.monthly-prep-panel .monthly-record-footer span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body:has(.monthly-prep-panel) .monthly-record-footer span:nth-child(2),
.monthly-prep-panel .monthly-record-footer span:nth-child(2){
  padding-left:8px!important;
}
.schedule-exception-form:not(.is-permanent) .permanent-exception-field{
  display:none!important;
}
.record-filters select[name="student_id"],
.record-calendar-filters select[name="student_id"]{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  line-height:40px!important;
  overflow:hidden!important;
}
@media print{
  body:has(.monthly-prep-panel) .monthly-record-footer,
  .monthly-prep-panel .monthly-record-footer{
    left:.04in!important;
    width:calc(100% - .08in)!important;
    max-width:none!important;
  }
  body:has(.monthly-prep-panel) .monthly-record-footer span:nth-child(2),
  .monthly-prep-panel .monthly-record-footer span:nth-child(2){
    padding-left:.05in!important;
  }
}
/* EOF Planer Set graph override: taken-home unfinished work before next center date is gray hatched. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.set-taken-unfinished,
.cn-right .cn-grid-cell.cn-existing.set-taken-unfinished,
.cn-right .cn-range-segment.set-taken-unfinished,
.cn-assignment-overlay .cn-assignment-block.set-taken-unfinished,
.cn-assignment-block.set-taken-unfinished{
  background-color:#cbd5e1!important;
  background-image:repeating-linear-gradient(135deg,rgba(71,85,105,.34) 0 4px,rgba(255,255,255,.28) 4px 8px)!important;
  border-color:#64748b!important;
  color:#334155!important;
}
/* EOF Planer Set graph override: good score with No Time stays yellow. */
.cn-right .cn-grid.cn-grid-blocks .cn-grid-cell.missing-time,
.cn-right .cn-grid-cell.cn-existing.missing-time,
.cn-right .cn-range-segment.missing-time,
.cn-assignment-overlay .cn-assignment-block.missing-time,
.cn-assignment-block.missing-time{
  background:#facc15!important;
  background-image:none!important;
  border-color:#eab308!important;
  color:#422006!important;
}

/* EOF Record Book: dates not yet taken home stay neutral, not grey hatched. */
.set-recordbook .rb-page-chip.rb-not-taken{
  background:#fff!important;
  background-image:none!important;
  border-color:#cbd5e1!important;
  color:#475569!important;
}

/* EOF Record Book/Prep: show full page ranges and flags instead of ellipsizing. */
.set-recordbook.rb-inline .rb-page-cell,
.set-recordbook .rb-page-cell{
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  overflow:visible!important;
}
.set-recordbook.rb-inline .rb-page-chip,
.set-recordbook .rb-page-chip{
  max-width:none!important;
  min-width:max-content!important;
  width:auto!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
body:has(.monthly-prep-panel) .record-new-concept-label,
body:has(.monthly-prep-panel) .record-plan-note-label,
.monthly-prep-panel .record-new-concept-label,
.monthly-prep-panel .record-plan-note-label{
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
}
body:has(.monthly-prep-panel) .monthly-record-footer span,
.monthly-prep-panel .monthly-record-footer span{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
}

/* EOF Prep score blanks: page slots that do not exist stay completely white. */
body:has(.monthly-prep-panel) .record-score-boxes span.score-empty,
body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr .record-score-boxes span.score-empty,
body:has(.monthly-prep-panel) .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span.score-empty,
body:has(.monthly-prep-panel) .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span.score-empty,
body:has(.monthly-prep-panel) .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span.score-empty,
.monthly-prep-panel .record-score-boxes span.score-empty,
.monthly-prep-panel .monthly-record-book .record-book-table tr .record-score-boxes span.score-empty,
.monthly-prep-panel .monthly-record-book.reading .record-book-table tr.prep-future .record-score-boxes span.score-empty,
.monthly-prep-panel .monthly-record-book.math .record-book-table tr.prep-future .record-score-boxes span.score-empty,
.monthly-prep-panel .monthly-record-book .record-book-table tr.prep-past .record-score-boxes span.score-empty{
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  background:#fff!important;
  color:transparent!important;
  visibility:hidden!important;
}

/* Inventory: student names grouped by current worksheet level. */
.inventory-students-panel .level-student-sections{display:grid;gap:18px}
.inventory-students-panel .level-student-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.inventory-students-panel .level-student-card{border:1px solid #e5e7eb;border-radius:8px;background:#fff;overflow:hidden}
.inventory-students-panel .level-student-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid #e5e7eb;background:#f8fafc}
.inventory-students-panel .level-student-card-head b{font-size:18px;color:#172033}
.inventory-students-panel .level-student-card-head span{font-size:12px;font-weight:900;color:#475467}
.inventory-students-panel .level-student-card ul{list-style:none;margin:0;padding:6px 10px 10px;display:grid;gap:5px}
.inventory-students-panel .level-student-card li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid #f1f5f9;padding:4px 0}
.inventory-students-panel .level-student-card li:last-child{border-bottom:0}
.inventory-students-panel .level-student-card a{color:#1f65d6;font-weight:900;text-decoration:none}
.inventory-students-panel .level-student-card a:hover{text-decoration:underline}
.inventory-students-panel .level-student-card small{color:#64748b;font-weight:800;white-space:nowrap}
.inventory-students-panel .reading-level-student-section .inventory-subject-title{color:#be185d}
.inventory-students-panel .reading-level-student-section .level-student-card{border-color:#fbcfe8;background:#fff7fb}
.inventory-students-panel .reading-level-student-section .level-student-card-head{background:#fce7f3;border-bottom-color:#fbcfe8}
.inventory-students-panel .reading-level-student-section .level-student-card-head b{color:#9d174d}
.inventory-students-panel .reading-level-student-section .level-student-card-head span{color:#be185d}
.inventory-students-panel .reading-level-student-section .level-student-card li{border-bottom-color:#fce7f3}

.kumon-money-panel{overflow:visible}.money-layout{display:grid;grid-template-columns:260px minmax(360px,1fr) 380px;gap:14px;align-items:start}.money-tools,.money-students,.money-detail{display:grid;gap:12px}.money-scan-form,.money-month-form,.money-post-form,.money-action-form,.money-empty-detail,.money-history,.money-students{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px;box-shadow:0 6px 18px #1018280a}.money-scan-form{display:grid;gap:10px;background:#f8fbff;border-color:#bfdbfe}.money-scan-input{font-size:22px;font-weight:900;border:2px solid #203864;border-radius:12px;padding:14px}.money-month-form{display:grid;gap:10px}.money-post-form{display:grid;gap:10px;background:#fff7ed;border-color:#fed7aa}.money-post-form button:disabled{background:#cbd5e1;color:#64748b;cursor:not-allowed}.money-post-summary{display:grid;gap:2px}.money-post-summary b{font-size:28px;color:#9a3412}.money-post-summary span{font-weight:900;color:#7c2d12}.money-post-summary small{color:#64748b;font-weight:800}.money-table-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.money-table-head h3,.money-action-form h3,.money-history h3,.money-empty-detail h3{margin:0}.money-table td small{display:block;color:#64748b;font-size:11px;font-weight:800;margin-top:2px}.money-table tr.selected{background:#eff6ff}.money-table tr.selected td:first-child{border-left:4px solid #2563eb}.money-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:1000;white-space:nowrap}.money-status.posted{background:#dcfce7;color:#166534}.money-status.pending{background:#fef3c7;color:#92400e}.money-status.none{background:#f1f5f9;color:#64748b}.money-balance-card{display:grid;gap:4px;border:1px solid #bbf7d0;background:linear-gradient(180deg,#f0fdf4,#fff);border-radius:16px;padding:18px;text-align:center}.money-balance-card span{font-weight:1000;color:#14532d}.money-balance-card b{font-size:46px;line-height:1;color:#166534}.money-balance-card small{color:#64748b;font-weight:800}.money-action-form{display:grid;gap:10px}.money-action-form.redeem{background:#fff1f2;border-color:#fecdd3}.money-action-form.redeem button{background:#be123c}.money-empty-detail{background:#f8fafc;color:#475467}.money-empty-detail p{margin:6px 0 0;font-weight:700}.money-history{overflow:auto}.money-positive{color:#166534;font-weight:1000}.money-negative{color:#be123c;font-weight:1000}.public-money-screen{max-width:720px;margin:0 auto}.money-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#14532d,#16a34a);color:#fff}.money-hero h2{font-size:38px;margin:0 0 6px}.money-hero p{margin:0;color:#dcfce7;font-weight:900;font-size:18px}@media(max-width:1180px){.money-layout{grid-template-columns:1fr 1fr}.money-detail{grid-column:1/-1}}@media(max-width:760px){.money-layout{grid-template-columns:1fr}.money-balance-card b{font-size:38px}.money-scan-input{font-size:18px}.money-table{font-size:12px}}
.money-scan-top{margin:0 0 14px;grid-template-columns:minmax(260px,1fr) auto;align-items:end}
.money-scan-top label{margin:0}
.money-scan-top button{height:52px}
.money-scan-result{display:grid;grid-template-columns:minmax(260px,420px) minmax(280px,420px);gap:14px;align-items:start}
.money-scan-result .money-empty-detail{grid-column:1/-1}
.tab-kumon_money main{min-height:100vh;background:linear-gradient(180deg,rgba(2,8,23,.18),rgba(2,8,23,.42)),url("assets/kumon-money-night-gift.webp") center center/cover no-repeat}
.tab-kumon_money .kumon-money-panel{max-width:900px;min-height:calc(100vh - 36px);margin-left:auto;margin-right:auto;background:transparent;border:0;box-shadow:none;color:#fff}
.tab-kumon_money .calendar-head h2,.tab-kumon_money .calendar-head p{color:#fff;text-shadow:0 2px 14px #020617cc}
.tab-kumon_money .calendar-head .button{background:rgba(255,255,255,.9);color:#0f172a;box-shadow:0 10px 28px #02061733}
.tab-kumon_money .money-scan-top{position:relative;overflow:hidden;background:radial-gradient(circle at 16% 0,#fef08a 0,#facc15 14%,#38bdf8 15%,#2563eb 58%,#0f172a 100%);border-color:#7dd3fc;color:#fff;box-shadow:0 18px 42px #02061766, inset 0 0 0 1px rgba(255,255,255,.24);backdrop-filter:blur(8px)}
.tab-kumon_money .money-scan-top:before{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.24);border-radius:10px;pointer-events:none}
.tab-kumon_money .money-scan-top label,.tab-kumon_money .money-scan-top button{position:relative}
.tab-kumon_money .money-scan-top label{color:#fff;text-shadow:0 1px 10px #02061799}
.tab-kumon_money .money-scan-top button{background:linear-gradient(145deg,#fef3c7,#f59e0b);color:#7c2d12;box-shadow:0 10px 24px #02061733}
.tab-kumon_money .money-scan-top .money-scan-input{background:rgba(255,255,255,.94);border-color:#fde68a;color:#0f172a;box-shadow:0 8px 22px #02061722}
.tab-kumon_money .money-scan-result{grid-template-columns:minmax(280px,1fr) minmax(280px,390px)}
.tab-kumon_money .money-balance-card{position:relative;overflow:hidden;min-height:230px;align-content:center;border-color:#7dd3fc;background:radial-gradient(circle at 50% 18%,#fef08a 0,#fde68a 11%,#60a5fa 12%,#2563eb 44%,#0f766e 100%);box-shadow:0 18px 48px #0f766e33;color:#fff}
.tab-kumon_money .money-scan-result .money-balance-card{animation:moneyRewardReveal .55s cubic-bezier(.2,.8,.2,1) both}
.tab-kumon_money .money-balance-card:before{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.35);border-radius:12px;pointer-events:none}
.tab-kumon_money .money-balance-card span,.tab-kumon_money .money-balance-card small{position:relative;color:#ecfeff;text-shadow:0 1px 8px #0f172a66}
.tab-kumon_money .money-scan-result .money-balance-card > span{color:#fef3c7;font-size:28px;line-height:1.05;text-shadow:0 2px 10px #0f172acc,0 0 14px rgba(250,204,21,.45)}
.tab-kumon_money .money-balance-card b{position:relative;color:#fff;font-size:58px;text-shadow:0 3px 18px #0f172aaa}
.money-reward-icon{position:relative;width:82px;height:82px;margin:0 auto 8px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#fef3c7,#f59e0b);box-shadow:0 14px 28px #92400e33, inset 0 0 0 2px #fffbeb}
.tab-kumon_money .money-scan-result .money-reward-icon{animation:moneyRewardPop .7s cubic-bezier(.18,.9,.18,1.2) both}
.money-reward-icon span{font-size:46px!important;line-height:1;color:#7c2d12!important;font-weight:1000;text-shadow:none!important}
.money-reward-icon.gift{width:96px;height:96px;border-radius:50%;background:url("assets/kumon-money-k-coin.png") center/contain no-repeat;box-shadow:0 18px 36px #92400e4d;filter:drop-shadow(0 5px 10px rgba(15,23,42,.22))}
.tab-kumon_money .money-scan-result .money-reward-icon.gift{animation:moneyRewardPop .7s cubic-bezier(.18,.9,.18,1.2) both,moneyCoinBounce 1.6s ease-in-out .72s infinite}
.money-reward-icon.gift span{display:none}
.money-reward-icon.pending{background:radial-gradient(circle at 32% 24%,#fef3c7 0,#facc15 18%,#38bdf8 19%,#2563eb 58%,#7c3aed 100%);box-shadow:0 18px 38px #1d4ed84d, inset 0 0 0 2px #eff6ff}
.money-reward-icon.pending span{color:#fff!important;text-shadow:0 3px 12px #0f172aaa!important}
.tab-kumon_money .money-empty-detail{background:rgba(255,255,255,.92);box-shadow:0 18px 42px #02061744;backdrop-filter:blur(8px)}
.tab-kumon_money .money-action-form.redeem{position:relative;overflow:hidden;background:radial-gradient(circle at 50% 0,#fef08a 0,#facc15 16%,#38bdf8 17%,#2563eb 55%,#0f766e 100%);border-color:#7dd3fc;color:#fff;box-shadow:0 18px 48px #0f766e44, inset 0 0 0 1px rgba(255,255,255,.25);backdrop-filter:blur(8px)}
.tab-kumon_money .money-action-form.redeem:before{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.3);border-radius:10px;pointer-events:none}
.tab-kumon_money .money-action-form.redeem h3,.tab-kumon_money .money-action-form.redeem label,.tab-kumon_money .money-action-form.redeem legend{position:relative;color:#fff;text-shadow:0 1px 10px #02061799}
.tab-kumon_money .money-action-form.redeem input{position:relative;background:rgba(255,255,255,.92);border-color:#bae6fd;color:#0f172a}
.tab-kumon_money .money-action-form.redeem button{position:relative;margin-top:18px;background:linear-gradient(145deg,#fef3c7,#f59e0b);color:#7c2d12;box-shadow:0 10px 24px #92400e33}
.money-prize-options{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0;border:0}
.money-prize-options legend{grid-column:1/-1;margin:0 0 2px;font-weight:1000}
.money-prize-options label{display:block;margin:0!important}
.money-prize-options input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.money-prize-options span{display:grid;place-items:center;min-height:48px;border-radius:14px;border:2px solid rgba(255,255,255,.34);background:rgba(255,255,255,.2);color:#fff;font-size:19px;font-weight:1000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 8px 18px #02061722;cursor:pointer;transition:transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease}
.money-prize-options span:hover{transform:translateY(-1px);background:rgba(255,255,255,.3);border-color:#fde68a}
.money-prize-options input:checked+span{background:linear-gradient(145deg,#fff7ed,#facc15 52%,#f59e0b);border-color:#fffbeb;color:#7c2d12;box-shadow:0 10px 24px #92400e44,inset 0 0 0 1px rgba(255,255,255,.55);text-shadow:none}
.money-prize-options input:focus-visible+span{outline:3px solid #fef08a;outline-offset:2px}
.tab-kumon_money .money-reset-note{margin-top:8px;color:#dbeafe!important;font-size:12px}
.money-scan-ready{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:22px;align-items:center;text-align:left;min-height:220px;padding:28px 34px;border-color:rgba(125,211,252,.62)!important;background:linear-gradient(135deg,rgba(7,89,133,.92),rgba(37,99,235,.9) 48%,rgba(124,58,237,.88))!important;color:#fff!important;box-shadow:0 22px 58px #02061766, inset 0 0 0 1px rgba(255,255,255,.2)!important}
.money-scan-ready:before{content:"";position:absolute;inset:12px;border:1px solid rgba(255,255,255,.24);border-radius:12px;pointer-events:none}
.money-scan-ready:after{content:"";position:absolute;inset:-30% auto -30% -20%;width:42%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);transform:skewX(-18deg);animation:moneyReadySweep 3.2s ease-in-out infinite;pointer-events:none}
.money-ready-orbit{position:relative;width:150px;height:150px;display:grid;place-items:center}
.money-ready-orbit:before{content:"";position:absolute;inset:10px;border-radius:999px;background:radial-gradient(circle,#fef08a 0,#facc15 24%,rgba(56,189,248,.34) 25%,rgba(56,189,248,0) 64%);filter:blur(1px);opacity:.86}
.money-ready-orbit i{position:absolute;width:16px;height:16px;border-radius:5px;background:#facc15;box-shadow:0 0 18px #fde68a}
.money-ready-orbit i:nth-child(1){left:16px;top:32px;transform:rotate(18deg)}
.money-ready-orbit i:nth-child(2){right:18px;top:54px;width:11px;height:11px;background:#38bdf8}
.money-ready-orbit i:nth-child(3){left:68px;bottom:13px;width:13px;height:13px;background:#f472b6;transform:rotate(28deg)}
.money-ready-orbit .money-reward-icon{margin:0;z-index:1;animation:moneyReadyFloat 2.4s ease-in-out infinite}
.money-ready-copy{position:relative;z-index:1;display:grid;gap:5px}
.money-ready-kicker{width:max-content;border:1px solid rgba(255,255,255,.36);background:rgba(15,23,42,.28);border-radius:999px;padding:5px 10px;color:#fef3c7;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em}
.money-scan-ready h3{margin:0;color:#fff!important;font-size:38px;line-height:1;text-shadow:0 3px 18px #020617aa}
.money-scan-ready p{max-width:430px;margin:0;color:#dbeafe!important;font-size:16px;font-weight:900;line-height:1.35}
.money-ready-scanline{position:relative;z-index:1;width:88px;height:124px;border-radius:18px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);overflow:hidden}
.money-ready-scanline:before,.money-ready-scanline:after{content:"";position:absolute;left:16px;right:16px;height:8px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 18px 0 rgba(255,255,255,.74),0 36px 0 rgba(255,255,255,.86),0 54px 0 rgba(255,255,255,.62),0 72px 0 rgba(255,255,255,.8)}
.money-ready-scanline:before{top:18px}
.money-ready-scanline:after{left:28px;right:28px;top:28px;background:#facc15;box-shadow:0 34px 0 #38bdf8,0 68px 0 #facc15}
.money-ready-scanline span{position:absolute;left:8px;right:8px;height:4px;border-radius:999px;background:#fef08a;box-shadow:0 0 18px #fef08a;animation:moneyScanLine 1.6s ease-in-out infinite}
@keyframes moneyRewardReveal{0%{opacity:0;transform:translateY(12px) scale(.96);filter:saturate(.75)}100%{opacity:1;transform:translateY(0) scale(1);filter:saturate(1.05)}}
@keyframes moneyRewardPop{0%{opacity:0;transform:translateY(10px) scale(.65) rotate(-8deg)}62%{opacity:1;transform:translateY(0) scale(1.08) rotate(2deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes moneyCoinBounce{0%,100%{transform:translateY(0) scale(1) rotate(0)}42%{transform:translateY(-9px) scale(1.03) rotate(-2deg)}58%{transform:translateY(-7px) scale(1.02) rotate(2deg)}}
@keyframes moneyReadySweep{0%,38%{left:-38%;opacity:0}48%{opacity:1}78%,100%{left:110%;opacity:0}}
@keyframes moneyReadyFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(2deg)}}
@keyframes moneyScanLine{0%,100%{top:10px}50%{top:108px}}
@media (prefers-reduced-motion: reduce){.tab-kumon_money .money-scan-result .money-balance-card,.tab-kumon_money .money-scan-result .money-reward-icon,.money-scan-ready:after,.money-ready-orbit .money-reward-icon,.money-ready-scanline span{animation:none}}
@media(max-width:760px){.money-scan-top{grid-template-columns:1fr}.money-scan-top button{height:auto}.money-scan-result{grid-template-columns:1fr}.money-scan-ready{grid-template-columns:1fr;text-align:center;justify-items:center;padding:24px 18px}.money-ready-kicker{margin:0 auto}.money-scan-ready h3{font-size:32px}.money-ready-scanline{display:none}}

/* Planer: keep page headers and the mastered-check row visible while scrolling the graph. */
.cn-right .cn-grid-wrap{
  max-height:min(48vh,390px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-gutter:stable!important;
  scrollbar-color:#94a3b8 #e5e7eb!important;
  scrollbar-width:thin!important;
}
.cn-right .cn-grid-wrap .cn-concept-strip{position:sticky!important;top:0!important;z-index:42!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-subconcept-strip{position:sticky!important;top:20px!important;z-index:41!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes{position:sticky!important;top:38px!important;z-index:40!important;background:#fff!important}
.cn-right .cn-grid-wrap .cn-mastery-row{position:sticky!important;top:58px!important;z-index:43!important;background:#fff!important;box-shadow:0 3px 8px #10182818!important}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-axis.cn-axis-boxes{top:20px!important}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-mastery-row{top:40px!important}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-axis.cn-axis-boxes{top:0!important}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-mastery-row{top:20px!important}

/* Planner sticky header final fix: keep the level title, page numbers, and mastery row locked together while scrolling. */
.cn-right .cn-grid-wrap{
  --planner-caption-h:26px;
  --planner-concept-h:20px;
  --planner-subconcept-h:23px;
  --planner-axis-h:20px;
}
.cn-right .cn-grid-wrap .cn-level-caption{
  height:22px!important;
  margin:0 0 4px!important;
  position:sticky!important;
  top:0!important;
  z-index:66!important;
  background:#fff!important;
  box-shadow:0 1px 0 #e5e7eb!important;
}
.cn-right .cn-grid-wrap .cn-concept-strip{
  height:var(--planner-concept-h)!important;
  margin:0!important;
  position:sticky!important;
  top:var(--planner-caption-h)!important;
  z-index:64!important;
  background:#fff!important;
}
.cn-right .cn-grid-wrap .cn-subconcept-strip{
  height:18px!important;
  margin:1px 0 4px!important;
  position:sticky!important;
  top:calc(var(--planner-caption-h) + var(--planner-concept-h))!important;
  z-index:63!important;
  background:#fff!important;
}
.cn-right .cn-grid-wrap .cn-axis.cn-axis-boxes{
  height:var(--planner-axis-h)!important;
  margin:0!important;
  position:sticky!important;
  top:calc(var(--planner-caption-h) + var(--planner-concept-h) + var(--planner-subconcept-h))!important;
  z-index:62!important;
  background:#fff!important;
}
.cn-right .cn-grid-wrap .cn-mastery-row{
  height:12px!important;
  margin:0 0 2px!important;
  position:sticky!important;
  top:calc(var(--planner-caption-h) + var(--planner-concept-h) + var(--planner-subconcept-h) + var(--planner-axis-h))!important;
  z-index:65!important;
  background:#fff!important;
  box-shadow:0 3px 8px #10182818!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-axis.cn-axis-boxes{
  top:calc(var(--planner-caption-h) + var(--planner-concept-h))!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-subconcept-strip)) .cn-mastery-row{
  top:calc(var(--planner-caption-h) + var(--planner-concept-h) + var(--planner-axis-h))!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-subconcept-strip{
  top:var(--planner-caption-h)!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-axis.cn-axis-boxes{
  top:calc(var(--planner-caption-h) + var(--planner-subconcept-h))!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)) .cn-mastery-row{
  top:calc(var(--planner-caption-h) + var(--planner-subconcept-h) + var(--planner-axis-h))!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)):not(:has(.cn-subconcept-strip)) .cn-axis.cn-axis-boxes{
  top:var(--planner-caption-h)!important;
}
.cn-right .cn-grid-wrap:not(:has(.cn-concept-strip)):not(:has(.cn-subconcept-strip)) .cn-mastery-row{
  top:calc(var(--planner-caption-h) + var(--planner-axis-h))!important;
}
.cn-right .cn-grid-wrap .cn-mastery-check{
  height:12px!important;
  min-height:12px!important;
  line-height:10px!important;
}
@media screen and (max-width:1240px){
  .cn-right .cn-grid-wrap{
    --planner-caption-h:24px;
    --planner-concept-h:18px;
    --planner-subconcept-h:23px;
    --planner-axis-h:18px;
  }
  .cn-right .cn-grid-wrap .cn-level-caption{
    height:20px!important;
    margin-bottom:4px!important;
  }
  .cn-right .cn-grid-wrap .cn-mastery-row,
  .cn-right .cn-grid-wrap .cn-mastery-check{
    height:10px!important;
    min-height:10px!important;
    line-height:8px!important;
  }
}
@media screen and (max-width:1120px){
  .cn-right .cn-grid-wrap{
    --planner-caption-h:22px;
    --planner-concept-h:14px;
    --planner-subconcept-h:19px;
    --planner-axis-h:18px;
  }
  .cn-right .cn-grid-wrap .cn-level-caption{
    height:18px!important;
    margin-bottom:4px!important;
  }
  .cn-right .cn-grid-wrap .cn-subconcept-strip{
    height:14px!important;
  }
}

/* Payroll check alignment: final offset is about 0.5cm below the original print position. */
.payroll-check-date{top:.83in}
.payroll-check-payee{top:1.34in;left:1.04in}
.payroll-check-amount-top{top:1.34in}
.payroll-check-words{top:1.67in}
.payroll-check-mini{top:2.13in}
.payroll-stub.stub-1{top:3.93in}
.payroll-stub.stub-2{top:7.56in}

/* Planer score list: allow vertical drag/scroll to reach lower page ranges on tablets and phones. */
.cn-main{
  align-items:start!important;
}
.cn-left{
  align-self:start!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  padding-bottom:110px!important;
}
.cn-left .cn-score-group,
.cn-left .cn-score-track,
.cn-left .cn-inline-score{
  touch-action:pan-y!important;
}
@media screen and (max-width:900px){
  .cn-shell{
    overflow:visible!important;
  }
  .cn-main{
    display:block!important;
    min-height:0!important;
    height:auto!important;
  }
  .cn-left{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    padding-bottom:150px!important;
  }
  .cn-right{
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
  }
}

/* Worksheet Days manual adjustments */
.worksheet-days-table{
  table-layout:fixed!important;
}
.worksheet-days-table th,
.worksheet-days-table td{
  box-sizing:border-box!important;
}
.worksheet-days-table .worksheet-days-pin-cell{
  width:50px!important;
  min-width:50px!important;
  text-align:center!important;
}
.worksheet-days-table .worksheet-days-source-cell{
  width:70px!important;
  min-width:70px!important;
  text-align:center!important;
}
.worksheet-days-table .worksheet-days-pages-cell{
  width:62px!important;
  min-width:62px!important;
  text-align:center!important;
}
.worksheet-days-table .worksheet-days-divide-cell{
  width:118px!important;
  min-width:118px!important;
  text-align:center!important;
}
.worksheet-days-table .worksheet-days-adjust-cell{
  width:122px!important;
  min-width:122px!important;
  text-align:center!important;
}
.worksheet-days-table .worksheet-days-count-cell{
  width:76px!important;
  min-width:76px!important;
  text-align:center!important;
}
.worksheet-days-table-no-pin .worksheet-days-source-cell{
  width:74px!important;
  min-width:74px!important;
}
.worksheet-days-table-no-pin .worksheet-days-pages-cell{
  width:64px!important;
  min-width:64px!important;
}
.worksheet-days-table-no-pin .worksheet-days-divide-cell{
  width:120px!important;
  min-width:120px!important;
}
.worksheet-days-table-no-pin .worksheet-days-adjust-cell{
  width:126px!important;
  min-width:126px!important;
}
.worksheet-days-table-no-pin .worksheet-days-count-cell{
  width:78px!important;
  min-width:78px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table-no-pin .worksheet-days-adjust-cell{
  width:126px!important;
  min-width:126px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-paper .worksheet-days-table-no-pin .worksheet-days-count-cell{
  width:78px!important;
  min-width:78px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table-no-pin .worksheet-days-divide-cell{
  width:120px!important;
  min-width:120px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table-no-pin .worksheet-days-adjust-cell{
  width:126px!important;
  min-width:126px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-table-no-pin .worksheet-days-count-cell{
  width:78px!important;
  min-width:78px!important;
}
.worksheet-days-source{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:3px 6px!important;
  font-size:9px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  white-space:normal!important;
}
.worksheet-days-source.kc{
  background:#e0f2fe!important;
  color:#075985!important;
  border:1px solid #7dd3fc!important;
}
.worksheet-days-source.paper{
  background:#f8fafc!important;
  color:#475569!important;
  border:1px solid #cbd5e1!important;
}
.worksheet-days-divide-form,
.worksheet-days-adjust-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  margin:0!important;
  white-space:nowrap!important;
}
.worksheet-days-divide-form input{
  width:42px!important;
  min-height:28px!important;
  padding:3px 4px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  border:1px solid #7dd3fc!important;
  border-radius:6px!important;
  color:#075985!important;
  font-size:12px!important;
  font-weight:1000!important;
  line-height:1!important;
  -moz-appearance:textfield!important;
}
.worksheet-days-adjust-form input{
  width:48px!important;
  min-height:28px!important;
  padding:3px 4px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  border:1px solid #cbd5e1!important;
  border-radius:6px!important;
  color:#0f172a!important;
  font-size:12px!important;
  font-weight:1000!important;
  line-height:1!important;
  -moz-appearance:textfield!important;
}
.worksheet-days-divide-form input::-webkit-outer-spin-button,
.worksheet-days-divide-form input::-webkit-inner-spin-button,
.worksheet-days-adjust-form input::-webkit-outer-spin-button,
.worksheet-days-adjust-form input::-webkit-inner-spin-button{
  margin:0!important;
  -webkit-appearance:none!important;
}
.worksheet-days-divide-form span{
  display:none!important;
}
.worksheet-days-divide-form button,
.worksheet-days-adjust-form button{
  min-height:28px!important;
  padding:4px 7px!important;
  border-radius:6px!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:1000!important;
}
.worksheet-days-divide-form button{
  background:#0284c7!important;
}
.worksheet-days-adjust-form button{
  background:#334155!important;
}
.worksheet-days-divide-form.saving input{
  box-shadow:0 0 0 2px rgba(14,165,233,.22)!important;
}
.worksheet-days-divide-form.saved input{
  border-color:#22c55e!important;
  box-shadow:0 0 0 2px rgba(34,197,94,.24)!important;
}
.worksheet-days-divide-form.error input{
  border-color:#dc2626!important;
  box-shadow:0 0 0 2px rgba(220,38,38,.22)!important;
}
.worksheet-days-divide-form button:disabled{
  opacity:.62!important;
  cursor:wait!important;
}
.worksheet-days-adjust-cell small{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1.1!important;
  white-space:normal!important;
}
.worksheet-days-kc-count{
  color:#0284c7!important;
}
.worksheet-days-kc-label{
  display:inline-flex!important;
  margin-left:6px!important;
  color:#0284c7!important;
  font-size:10px!important;
  font-weight:1000!important;
  vertical-align:middle!important;
}
.worksheet-days-table .worksheet-days-kc-row td{
  color:#075985!important;
}
.worksheet-days-table .worksheet-days-kc-row a{
  color:#0369a1!important;
}
.worksheet-days-pin-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  margin:0!important;
}
.worksheet-days-pin-check{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  background:#fff!important;
  cursor:pointer!important;
}
.worksheet-days-pin-check input{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  accent-color:#0f172a!important;
}
.worksheet-days-pin-check.saving{
  opacity:.55!important;
}
.worksheet-days-pin-check.saved{
  border-color:#86efac!important;
  background:#f0fdf4!important;
}
.worksheet-days-pin-check:has(input:checked){
  border-color:#0f172a!important;
  background:#f8fafc!important;
}
.worksheet-days-pin-check.error{
  border-color:#fecaca!important;
  background:#fef2f2!important;
}
.worksheet-days-pin-date{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  margin-left:6px!important;
  color:#475569!important;
  font-size:10px!important;
  font-weight:900!important;
  vertical-align:middle!important;
}
@media (max-width:1100px){
  .worksheet-days-subject-grid.worksheet-days-source-paper,
  .worksheet-days-subject-grid.worksheet-days-source-kc{
    grid-template-columns:1fr!important;
  }
}

/* Worksheet Days final column overrides: beat old nth-child rules. */
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table th.worksheet-days-count-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table td.worksheet-days-count-cell{
  width:104px!important;
  min-width:104px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th.worksheet-days-divide-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td.worksheet-days-divide-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th:nth-child(5),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td:nth-child(5){
  width:116px!important;
  min-width:116px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th.worksheet-days-adjust-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td.worksheet-days-adjust-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th:nth-child(6),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td:nth-child(6){
  width:124px!important;
  min-width:124px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th.worksheet-days-count-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td.worksheet-days-count-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin th:nth-child(7),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-with-pin td:nth-child(7){
  width:104px!important;
  min-width:104px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th.worksheet-days-source-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td.worksheet-days-source-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th:nth-child(2),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td:nth-child(2){
  width:82px!important;
  min-width:82px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th.worksheet-days-pages-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td.worksheet-days-pages-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th:nth-child(3),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td:nth-child(3){
  width:76px!important;
  min-width:76px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th.worksheet-days-divide-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td.worksheet-days-divide-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th:nth-child(4),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td:nth-child(4){
  width:120px!important;
  min-width:120px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th.worksheet-days-adjust-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td.worksheet-days-adjust-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th:nth-child(5),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td:nth-child(5){
  width:126px!important;
  min-width:126px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th.worksheet-days-count-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td.worksheet-days-count-cell,
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin th:nth-child(6),
.worksheet-days-subject-grid.worksheet-days-source-kc table.worksheet-days-table.worksheet-days-table-no-pin td:nth-child(6){
  width:104px!important;
  min-width:104px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-adjust-form{
  gap:4px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form input{
  width:42px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-adjust-form input{
  width:46px!important;
}
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-divide-form button,
.worksheet-days-subject-grid.worksheet-days-source-kc .worksheet-days-adjust-form button{
  padding-left:7px!important;
  padding-right:7px!important;
}
.enrollment-page{display:grid;gap:16px}
.enrollment-form{display:grid;gap:14px}
.enrollment-appointment-import{margin:0 0 14px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff}
.enrollment-appointment-import label{display:grid;gap:7px;font-weight:900;color:#1e3a8a}
.enrollment-appointment-import select{width:100%;margin:0;background:#fff;border:1px solid #93c5fd;border-radius:11px;padding:11px 12px;color:#0f172a}
.enrollment-appointment-import small{color:#64748b;font-weight:800}
.enrollment-fixed-schedule{display:grid;gap:8px}
.enrollment-fixed-schedule>b{color:#334155}
.enrollment-schedule-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.enrollment-schedule-row{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:8px;padding:9px;background:#f8fafc;border:1px solid #dbe6f3;border-radius:11px}
.enrollment-schedule-row>span{font-size:12px;color:#64748b;font-weight:900}
.enrollment-schedule-row select{margin:0!important;min-width:0}
.enrollment-fixed-schedule small{color:#64748b;font-weight:800}
@media(max-width:760px){.enrollment-schedule-rows{grid-template-columns:1fr}}
.enrollment-choice-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.enrollment-choice-row label,.enrollment-check{display:inline-flex!important;align-items:center;gap:8px;background:#fff;border:1px solid #dbe6f3;border-radius:10px;padding:10px 12px;font-weight:900;color:#334155}
.enrollment-choice-row input[type=checkbox],.enrollment-check input{width:16px;height:16px;margin:0}
.enrollment-choice-row select{margin-left:6px;min-width:120px}
.enrollment-money-box input[readonly],.enrollment-confirmation textarea{background:#f8fafc;color:#0f172a;font-weight:900}
.enrollment-actions{position:static;margin:0;padding:14px 0 0}
.enrollment-confirmation,.enrollment-list{border:1px solid #dbe6f3;border-radius:16px;background:#fff;padding:16px}
.enrollment-confirmation h3,.enrollment-list h3{margin:0 0 10px}
.enrollment-confirmation textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:12px;resize:vertical;line-height:1.5}
.enrollment-list small{display:block;color:#64748b;font-weight:800;margin-top:3px}
@media(max-width:760px){.enrollment-choice-row{display:grid;grid-template-columns:1fr}.enrollment-choice-row label{width:100%}}
.money-reward-calendar{margin-top:16px;border:1px solid rgba(191,219,254,.45);border-radius:18px;background:rgba(2,6,23,.62);box-shadow:0 18px 42px rgba(15,23,42,.22);padding:14px;color:#fff;backdrop-filter:blur(8px)}
.tab-kumon_money .money-scan-result .money-reward-calendar{grid-column:1/-1;margin-top:0}
.money-calendar-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.money-calendar-head h3{margin:0;font-size:22px;color:#fff}
.money-calendar-head div{display:flex;align-items:center;gap:7px;color:#dbeafe;font-weight:900}
.money-weekdays,.money-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.money-weekdays span{display:grid;place-items:center;height:28px;border-radius:8px;background:rgba(219,234,254,.16);color:#dbeafe;font-size:12px;font-weight:1000}
.money-calendar-day{min-height:62px;border:1px solid rgba(191,219,254,.24);border-radius:10px;background:rgba(255,255,255,.1);padding:7px;display:grid;grid-template-rows:auto 1fr;gap:4px}
.money-calendar-day.today{outline:2px solid #facc15;background:rgba(250,204,21,.12)}
.money-calendar-day.outside{opacity:.28}
.money-calendar-day b{font-size:15px;color:#f8fafc}
.money-day-stars{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.money-star{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;font-size:16px;line-height:1;text-shadow:0 1px 2px rgba(15,23,42,.34)}
.money-star.math{color:#bfdbfe;background:rgba(37,99,235,.35);border:1px solid rgba(147,197,253,.72)}
.money-star.reading{color:#fbcfe8;background:rgba(219,39,119,.32);border:1px solid rgba(244,114,182,.72)}
@media(max-width:760px){.money-calendar-head{align-items:flex-start;flex-direction:column}.money-calendar-day{min-height:48px;padding:5px}.money-star{width:18px;height:18px;font-size:13px}.money-weekdays,.money-calendar-grid{gap:4px}}
.weekly-day-with-staff{display:flex;align-items:stretch;width:max-content;min-width:100%}
.weekly-day-with-staff>.fixed-excel-table{flex:0 0 auto}
.weekly-day-staff-needed{position:sticky;right:0;z-index:8;flex:0 0 132px;width:132px;border:2px solid #243956;border-left:4px solid #243956;background:#f8fbff;padding:10px 9px;box-shadow:-5px 0 12px rgba(25,45,75,.12);display:flex;flex-direction:column;gap:8px}
.weekly-day-staff-needed h4{margin:0 0 4px;color:#243956;font-size:13px}
.weekly-day-staff-needed label{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:700}
.weekly-day-staff-needed input[type=number]{width:44px;padding:5px 3px;text-align:center}
.weekly-day-staff-needed>input{width:100%;padding:6px;font-size:11px}
.weekly-day-staff-needed button{margin-top:2px;padding:6px 8px;font-size:11px}
.fixed-excel-wrap>.weekly-day-with-staff+.fixed-day-spacer{width:100%}
/* Planner KIS / ASHR level badges. */
.set-planner-thresholds{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;margin-top:5px!important}
.set-planner-thresholds small{display:inline-flex!important;align-items:center!important;gap:3px!important;padding:3px 6px!important;border-radius:999px!important;background:#fff!important;border:1px solid currentColor!important;font-size:9px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
.set-planner-thresholds small b{font-size:8px!important;font-weight:1000!important}
.set-planner-thresholds .set-threshold-kis{color:#c66a00!important;background:#fff7ed!important}
.set-planner-thresholds .set-threshold-ashr1{color:#64748b!important;background:#f8fafc!important}
.set-planner-thresholds .set-threshold-ashr2{color:#9a6b00!important;background:#fffbea!important}
/* Keep separate Math/Reading start dates from overlapping Grade fields. */
.excel-student-form:has(.excel-math-date-field:not([hidden])){height:560px}
.excel-student-data-sheet:has(.excel-math-date-field:not([hidden])){min-height:555px}
.excel-student-form:has(.excel-math-date-field:not([hidden])) .excel-grade-field{top:425px}
.excel-student-form:has(.excel-math-date-field:not([hidden])) .excel-advance-field{top:485px}
