:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none;--primary:#2563eb;--primary-soft:#e8f0ff;--border:#e2e8f0;--muted:#64748b;--card:#fff;--danger:#dc2626;--shadow:0 8px 28px rgba(15,23,42,.06)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f7fb}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;outline:none;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #2563eb1a}input:disabled,textarea:disabled{background:#f1f5f9;color:#64748b}textarea{resize:vertical}.app-layout{min-height:100vh;display:grid;grid-template-columns:268px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:18px 14px}.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 18px}.brand-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff}.brand strong{display:block;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small,.sidebar-user small,.mobile-topbar small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.side-nav{display:flex;flex-direction:column;gap:3px;overflow:auto;padding-right:2px}.side-nav button{border:0;background:transparent;border-radius:10px;padding:10px 11px;display:flex;align-items:center;gap:10px;color:#475569;text-align:left;font-weight:600;font-size:13px}.side-nav button:hover{background:#f1f5f9}.side-nav button.active{background:var(--primary-soft);color:var(--primary)}.sidebar-user{margin-top:auto;border-top:1px solid var(--border);padding:14px 8px 2px;display:flex;align-items:center;justify-content:space-between;gap:10px}.sidebar-user strong{font-size:13px;display:block}.content{min-width:0}.content-inner{max-width:1500px;margin:0 auto;padding:28px}.mobile-topbar{display:none}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.page-header h1{margin:0;font-size:27px;line-height:1.2}.page-header p,.muted{margin:5px 0 0;color:var(--muted);font-size:14px}.page-actions,.button-row,.card-actions,.modal-actions,.import-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow);margin-bottom:16px}.card h2{font-size:17px;margin:0 0 14px}.btn{border:1px solid transparent;border-radius:10px;padding:9px 13px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn.primary{background:var(--primary);color:#fff}.btn.secondary{background:#fff;border-color:#cbd5e1;color:#334155}.btn.ghost{background:#f8fafc;color:#334155}.btn.danger-outline{background:#fff;border-color:#fecaca;color:var(--danger)}.btn.small{padding:6px 9px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{border:0;background:#f8fafc;color:#475569;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.icon-btn:hover{background:#eef2f7}.icon-btn.danger{color:var(--danger)}.form-grid,.filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-span{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:12px;font-weight:700;color:#475569}.field small{font-size:11px;color:var(--muted)}.input-icon{position:relative}.input-icon svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#94a3b8}.input-icon input{padding-left:34px}.data-list{display:flex;flex-direction:column;gap:8px}.data-row,.student-card,.history-card,.journal-card,.user-row{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:#fff}.grow{flex:1;min-width:0}.grow strong{display:block}.grow span,.grow small,.data-row small,.student-card span,.journal-card span,.journal-card small,.history-card span,.history-card small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.number-box,.student-avatar,.user-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:800;flex:0 0 auto}.student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.empty-state{padding:38px 12px;text-align:center;color:#94a3b8}.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:10px 12px;border-radius:10px;margin-bottom:14px;font-size:13px}.hint-box{background:#f8fafc;border:1px dashed #cbd5e1;padding:10px;border-radius:10px;color:#64748b;font-size:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a7a;display:grid;place-items:center;padding:18px;z-index:50}.modal{width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 70px #0f172a40}.modal-wide{width:min(820px,100%)}.modal-head{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border)}.modal-head h3{margin:0;font-size:17px}.modal-body{padding:18px}.modal-actions{justify-content:flex-end;margin-top:16px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat-card{display:flex;align-items:center;gap:12px;margin-bottom:0}.stat-icon{width:44px;height:44px;border-radius:13px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.stat-card strong{display:block;font-size:24px}.stat-card span{font-size:12px;color:var(--muted)}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.quick-grid button{border:1px solid var(--border);border-radius:12px;background:#fff;padding:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#334155;font-weight:700}.quick-grid button svg{color:var(--primary)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin-bottom:2px}.section-title p{margin:0;color:var(--muted);font-size:12px}.schedule-list,.schedule-groups{display:flex;flex-direction:column;gap:8px}.schedule-item{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid var(--border);border-radius:12px}.schedule-item strong,.schedule-item span{display:block}.schedule-item span{font-size:12px;color:var(--muted)}.time-pill{background:#eff6ff;color:#1d4ed8;border-radius:10px;padding:7px 9px;font-weight:800;font-size:12px;min-width:62px;text-align:center}.time-pill small{display:block;font-weight:600;color:#64748b}.group-title{font-size:13px;color:#475569;margin:12px 0 6px}.legend,.chip-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.badge{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.badge-neutral{background:#f1f5f9;color:#475569}.badge-good{background:#dcfce7;color:#166534}.badge-warn{background:#fef3c7;color:#92400e}.badge-bad{background:#fee2e2;color:#991b1b}.badge-info{background:#dbeafe;color:#1e40af}.attendance-list{display:flex;flex-direction:column;gap:8px}.attendance-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid #eef2f7;padding:9px 0}.student-mini{min-width:210px;display:flex;align-items:center;gap:9px}.student-mini b{width:30px;height:30px;border-radius:8px;background:#f1f5f9;display:grid;place-items:center}.status-buttons{display:flex;gap:6px;flex-wrap:wrap}.status-btn{border:1px solid var(--border);background:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:700;color:#64748b}.status-btn.selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.status-hadir.selected{background:#dcfce7;border-color:#86efac;color:#166534}.status-alfa.selected{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.status-terlambat.selected{background:#fef3c7;border-color:#fcd34d;color:#92400e}.sticky-actions{position:sticky;bottom:0;background:#fffffff0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--border);margin:16px -18px -18px;padding:12px 18px;display:flex;justify-content:flex-end;gap:8px}.score-table-wrap,.table-scroll{overflow:auto}.score-table-wrap table,.table-scroll table{width:100%;border-collapse:collapse;font-size:12px}.score-table-wrap th,.score-table-wrap td,.table-scroll th,.table-scroll td{border-bottom:1px solid var(--border);padding:9px;text-align:left;white-space:nowrap}.score-table-wrap th,.table-scroll th{background:#f8fafc;color:#475569;position:sticky;top:0}.score-input{max-width:110px;padding:7px 9px}.history-date{font-size:11px;font-weight:800;color:#1d4ed8;background:#eff6ff;padding:6px 8px;border-radius:8px}.note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.note-card{border:1px solid var(--border);border-radius:12px;padding:12px}.note-title{display:flex;gap:8px;align-items:center;margin-bottom:8px}.note-title b{width:28px;height:28px;display:grid;place-items:center;background:#f1f5f9;border-radius:8px}.chip-row button{border:0;background:#f1f5f9;color:#475569;border-radius:999px;padding:5px 8px;font-size:10px}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#f1f5f9;border-radius:10px;padding:3px;margin:16px 0}.segmented.small{margin:0}.segmented button{border:0;background:transparent;padding:8px;border-radius:8px;font-weight:700;color:#64748b}.segmented button.active{background:#fff;color:#1d4ed8;box-shadow:0 2px 6px #0f172a14}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#dbeafe,transparent 40%),#f8fafc}.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px;box-shadow:0 30px 80px #0f172a1f}.onboarding-card{width:min(720px,100%)}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand h1,.onboarding-card h1{margin:0;font-size:23px}.auth-brand p,.onboarding-card>p{margin:4px 0;color:var(--muted);font-size:13px}.brand-mark{width:46px;height:46px;border-radius:14px;background:#2563eb;color:#fff;display:grid;place-items:center;font-weight:900}.stack{display:flex;flex-direction:column;gap:12px}.auth-foot{text-align:center;color:#94a3b8;font-size:11px;margin:16px 0 0}.center-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#64748b}.spinner{width:30px;height:30px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.floating-error{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:10px 14px;border-radius:10px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;gap:10px;align-items:flex-start}.choice.active{border-color:#60a5fa;background:#eff6ff}.choice input{width:auto;margin-top:3px}.choice strong,.choice span{display:block}.choice span{font-size:12px;color:var(--muted);margin-top:4px}.logo-setting{display:flex;align-items:center;gap:12px;margin-top:14px}.logo-setting img,.logo-placeholder{width:70px;height:70px;object-fit:contain;border:1px solid var(--border);border-radius:12px;background:#fff}.logo-placeholder{display:grid;place-items:center;color:#94a3b8}.user-icon.admin{background:#ede9fe;color:#6d28d9}.user-row select{width:auto;min-width:100px}.report-letterhead{display:flex;align-items:center;justify-content:center;gap:14px;text-align:center;border-bottom:2px solid #0f172a;padding-bottom:12px;margin-bottom:14px}.report-letterhead img{width:58px;height:58px;object-fit:contain}.report-letterhead h2{margin:0;font-size:19px}.report-letterhead p{margin:3px 0;font-size:12px}.report-letterhead small{font-size:10px;color:#64748b}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;margin-top:28px;text-align:center;font-size:12px}.signature-space{height:56px}.print-heading{text-align:center;margin-bottom:14px}.print-heading h2{margin:0}.print-heading p{margin:4px 0;color:#64748b}.mobile-drawer-backdrop{display:none}.drawer-close{position:absolute;right:10px;top:10px}@media(max-width:1100px){.app-layout{grid-template-columns:228px minmax(0,1fr)}.content-inner{padding:22px}.student-grid,.note-list{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-row{flex-wrap:wrap}.student-mini{min-width:170px}}@media(max-width:820px){.app-layout{display:block}.sidebar{display:none}.mobile-topbar{height:58px;position:sticky;top:0;z-index:30;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 12px}.mobile-topbar>div:nth-child(2){text-align:center}.avatar{width:34px;height:34px;border-radius:50%;background:#e0e7ff;color:#3730a3;display:grid;place-items:center;font-weight:800}.mobile-drawer-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:60}.mobile-drawer{position:absolute;left:0;top:0;bottom:0;width:min(300px,88vw);background:#fff;padding:18px 14px;display:flex;flex-direction:column}.content-inner{padding:16px}.page-header{align-items:stretch}.page-header h1{font-size:22px}.page-actions{justify-content:flex-end}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-row{align-items:flex-start;flex-direction:column}.status-buttons{width:100%}.status-btn{flex:1 1 auto}.form-grid,.filter-grid,.choice-grid{grid-template-columns:1fr}.form-span{grid-column:auto}.sticky-actions{flex-wrap:wrap}.sticky-actions .btn{flex:1}.mobile-drawer .sidebar-user{margin-top:auto}}@media(max-width:560px){.content-inner{padding:12px}.card{padding:14px;border-radius:14px}.page-header{flex-direction:column;margin-bottom:12px}.page-actions{justify-content:flex-start}.page-actions .btn{flex:1}.stat-grid{grid-template-columns:1fr}.stat-card{padding:13px}.quick-grid{grid-template-columns:repeat(2,1fr)}.quick-grid button{padding:12px 8px;font-size:12px}.student-card,.history-card,.journal-card{align-items:flex-start;flex-wrap:wrap}.student-card .grow,.history-card .grow,.journal-card .grow{min-width:calc(100% - 55px)}.note-list{grid-template-columns:1fr}.modal-backdrop{padding:8px}.modal{max-height:96vh}.modal-body{padding:14px}.button-row .btn{width:100%}.logo-setting{align-items:flex-start;flex-direction:column}.user-row select,.user-row .btn{flex:1}.signature-grid{gap:18px}.attendance-row{padding:10px 0}.student-mini{min-width:0;width:100%}}@media print{body{background:#fff}.sidebar,.mobile-topbar,.no-print,.page-header,.notice{display:none!important}.app-layout{display:block}.content-inner{padding:0;max-width:none}.card{box-shadow:none;border:0;padding:0}.print-report{display:block}.table-scroll{overflow:visible}.table-scroll table{font-size:10px}.table-scroll th,.table-scroll td{white-space:normal;padding:5px;border:1px solid #cbd5e1}@page{size:A4 landscape;margin:10mm}}.form-section-title{margin:18px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--border);font-size:15px;color:var(--text)}.print-report{overflow:auto;background:#fff}.print-report .report-sheet{background:#fff;margin:0 auto;color:#111827}.print-report.report-landscape .report-sheet{min-width:1040px}.print-report.report-portrait .report-sheet{min-width:760px;max-width:900px}.report-letterhead{display:grid;grid-template-columns:74px minmax(0,1fr) 74px;align-items:center;gap:14px;text-align:center;border:0;padding:0 0 10px;margin:0}.report-logo-slot,.report-logo-spacer{width:74px;min-height:62px;display:flex;align-items:center;justify-content:flex-start}.report-logo-slot img{width:64px;height:64px;object-fit:contain}.report-school-heading h2{margin:0;color:#1a237e;font-size:22px;line-height:1.15;font-weight:800}.report-school-heading p{margin:7px 0 0;color:#111827;font-size:12px}.report-double-line{height:6px;border-top:3px solid #1A237E;border-bottom:1px solid #1A237E;margin:0 0 11px}.print-heading{text-align:center;margin:0 0 24px}.print-heading h2{margin:0;color:#1565c0;font-size:18px;line-height:1.15;font-weight:800}.print-heading p{margin:6px 0 0;color:#4b5563;font-size:12px}.report-table-wrap{width:100%;overflow:auto}.report-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:11px;color:#111827;background:#fff}.report-table th,.report-table td{border:1px solid #374151;padding:7px 8px;vertical-align:top;white-space:normal;line-height:1.25}.report-table thead th{position:static;background:#3f51b5;color:#fff;font-weight:800;text-align:center}.report-table tbody tr:nth-child(2n) td{background:#e8eaf6}.report-table tbody tr:nth-child(odd) td{background:#fff}.report-table tbody tr{break-inside:avoid;page-break-inside:avoid}.report-table .text-left{text-align:left}.cell-center{text-align:center!important;vertical-align:middle!important}.attendance-report-table{table-layout:fixed;min-width:900px}.attendance-report-table .col-no{width:40px}.attendance-report-table .col-name{width:190px}.attendance-report-table .col-attendance-date{width:44px}.attendance-report-table .col-attendance-total{width:34px}.attendance-report-table th,.attendance-report-table td{padding:6px 5px;vertical-align:middle}.attendance-date-head small{display:block;margin-top:2px;font-size:7px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-code{font-weight:700}.attendance-code.code-h{color:#2e7d32}.attendance-code.code-s{color:#1565c0}.attendance-code.code-i{color:#e65100}.attendance-code.code-a{color:#c62828}.attendance-code.code-t{color:#f57f17}.grade-report-pages{display:flex;flex-direction:column;gap:22px}.grade-report-table{table-layout:fixed;min-width:900px}.grade-report-table .grade-no-head{width:42px}.grade-report-table .grade-name-head{width:180px}.grade-report-table .grade-left-head{background:#3f51b5;color:#fff;vertical-align:middle}.grade-report-table .grade-slot-title{background:#3f51b5;color:#fff;padding:6px}.grade-report-table .grade-slot-detail{background:#fafafa;color:#111827;text-align:left;font-size:9px;font-weight:500;padding:6px;vertical-align:top}.grade-slot-detail span{display:block;margin:0 0 2px}.grade-slot-detail span:last-child{margin-bottom:0}.grade-score{font-weight:700}.grade-score.score-low{color:#c62828}.grade-average-row td{background:#e8eaf6!important;font-weight:800;text-align:center;vertical-align:middle}.journal-report-table{table-layout:fixed}.journal-report-table th:nth-child(1){width:13%}.journal-report-table th:nth-child(2){width:8%}.journal-report-table th:nth-child(3){width:9%}.journal-report-table th:nth-child(4){width:35%}.journal-report-table th:nth-child(5){width:35%}.journal-report-table td{overflow-wrap:anywhere}.note-report-table{table-layout:fixed}.note-report-table th:nth-child(1){width:5%}.note-report-table th:nth-child(2){width:13%}.note-report-table th:nth-child(3){width:28%}.note-report-table th:nth-child(4){width:54%}.note-report-table td{overflow-wrap:anywhere}.report-continuation-heading{display:flex;justify-content:space-between;border-bottom:1px solid #9ca3af;padding:0 0 8px;margin:0 0 12px;color:#111827}.report-continuation-heading strong,.report-continuation-heading span{display:block}.report-continuation-heading strong{font-size:11px}.report-continuation-heading span{font-size:9px;color:#4b5563;margin-top:3px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px;margin-top:30px;text-align:center;font-size:11px;break-inside:avoid;page-break-inside:avoid}.signature-grid span,.signature-grid strong,.signature-grid b,.signature-grid small{display:block}.signature-grid strong{font-weight:500}.signature-space{height:58px}.signature-grid b{font-weight:500}.signature-grid small{margin-top:3px}.report-empty{min-height:160px}.new-print-page{break-before:page;page-break-before:always}@media(max-width:820px){.print-report.report-landscape .report-sheet{min-width:980px}.print-report.report-portrait .report-sheet{min-width:720px}.report-school-heading h2{font-size:20px}.print-heading h2{font-size:16px}}@page report-landscape{size:A4 landscape;margin:10mm}@page report-portrait{size:A4 portrait;margin:12mm}@media print{html,body{background:#fff!important}body{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.sidebar,.mobile-topbar,.no-print,.page-header,.notice{display:none!important}.app-layout{display:block!important}.content-inner{padding:0!important;max-width:none!important;margin:0!important}.card{box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}.print-report{display:block!important;overflow:visible!important;background:#fff!important}.print-report.report-landscape{page:report-landscape}.print-report.report-portrait{page:report-portrait}.print-report .report-sheet,.print-report.report-landscape .report-sheet,.print-report.report-portrait .report-sheet{min-width:0!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}.report-letterhead{grid-template-columns:64px minmax(0,1fr) 64px;gap:10px;padding-bottom:8px}.report-logo-slot,.report-logo-spacer{width:64px;min-height:50px}.report-logo-slot img{width:50px;height:50px}.report-school-heading h2{font-size:15px}.report-school-heading p{font-size:9px;margin-top:5px}.report-double-line{height:5px;border-top-width:2px;margin-bottom:9px}.print-heading{margin-bottom:18px}.print-heading h2{font-size:12px}.print-heading p{font-size:9px;margin-top:5px}.report-table-wrap{overflow:visible!important}.report-table{font-size:8.5px!important}.report-table th,.report-table td{padding:4px 5px!important;border-color:#111827!important}.report-table thead{display:table-header-group}.report-table tfoot{display:table-footer-group}.report-table tr{break-inside:avoid!important;page-break-inside:avoid!important}.attendance-report-table{table-layout:fixed!important;min-width:0!important;width:100%!important}.attendance-report-table col.col-no{width:3%!important}.attendance-report-table col.col-name{width:17%!important}.attendance-report-table col.col-attendance-date{width:auto!important}.attendance-report-table col.col-attendance-total{width:2.7%!important}.attendance-report-table th,.attendance-report-table td{padding:4px 2px!important}.attendance-date-head small{font-size:5.5px!important}.grade-report-pages{display:block}.grade-report-chunk{break-inside:auto}.grade-report-table{min-width:0!important;width:100%!important;table-layout:fixed!important}.grade-report-table .grade-no-head{width:4%!important}.grade-report-table .grade-name-head{width:20%!important}.grade-report-table .grade-slot-detail{font-size:6.8px!important;line-height:1.15;padding:4px!important}.grade-report-table .grade-slot-title{font-size:7.5px!important}.grade-report-table td{font-size:8px!important}.report-continuation-heading{margin-bottom:10px}.report-continuation-heading strong{font-size:9px}.report-continuation-heading span{font-size:7px}.journal-report-table td,.note-report-table td{font-size:8.5px!important;line-height:1.25!important;padding:5px!important}.signature-grid{gap:80px;margin-top:24px;font-size:9px}.signature-space{height:52px}.signature-grid small{font-size:8px}}:root{--primary:#9B4F2E;--primary-strong:#7D3E25;--primary-soft:#F7E6DE;--support:#F2D8CF;--support-soft:#FBF1ED;--surface:#FBF8F5;--surface-2:#FFFDFC;--border:#E7DAD3;--border-strong:#C8ADA0;--muted:#786B66;--card:#FFFDFC;--danger:#C8443D;--shadow:0 8px 24px rgba(87,56,43,.07)}html{background:var(--surface)}body{color:#2f2825;background:radial-gradient(circle at 92% 2%,rgba(242,216,207,.55),transparent 23%),var(--surface)}input,select,textarea{border-color:#d6c2b8;background:#fffdfc;color:#332a26}input:focus,select:focus,textarea:focus{border-color:#b87557;box-shadow:0 0 0 3px #9b4f2e1a}input:disabled,textarea:disabled{background:#f5efeb;color:#8d817b}.sidebar{background:linear-gradient(180deg,#fffdfc,#fbf5f1);border-right-color:#eaddd7}.brand{margin:0 0 10px;padding:10px 10px 14px;border-radius:18px;background:linear-gradient(135deg,#fbf0ec,#f6ded5);border:1px solid #EEDBD3}.brand-icon{background:linear-gradient(135deg,#a85a38,#8b452a);box-shadow:0 8px 18px #9b4f2e2e}.brand strong{color:#302724}.brand small,.sidebar-user small,.mobile-topbar small{color:#8a7b74}.side-nav button{color:#5f514b;border:1px solid transparent;transition:.15s ease}.side-nav button:hover{background:#faefeb;border-color:#f0ded7;color:#6f3d2b}.side-nav button.active{background:#f3dcd3;color:#8a452a;border-color:#ebcfc4;box-shadow:0 5px 14px #7043300f}.sidebar-user{border-top-color:#eaddd7}.content-inner{background:transparent}.page-header h1{color:#2e2724;letter-spacing:-.02em}.page-header p,.muted{color:#81736c}.card{background:var(--card);border-color:var(--border);box-shadow:var(--shadow)}.card h2{color:#3a302c}.btn{border-radius:12px}.btn.primary{background:linear-gradient(135deg,#a35432,#914626);color:#fff;box-shadow:0 8px 18px #9b4f2e2b}.btn.primary:hover{background:linear-gradient(135deg,#984929,#843e23)}.btn.secondary{background:#fffdfc;border-color:#dcc8bf;color:#5a453c}.btn.ghost{background:#f8ece7;color:#77452f}.btn.danger-outline{background:#fffdfc;border-color:#e9b9b4;color:#bb3d37}.icon-btn{background:#f8efeb;color:#704b3c}.icon-btn:hover{background:#f2e1da}.field>span{color:#66534a}.field small{color:#8d817b}.input-icon svg{color:#a78f84}.data-row,.student-card,.history-card,.journal-card,.user-row,.note-card,.schedule-item{border-color:#e8dcd6;background:#fffdfc}.data-row:hover,.student-card:hover,.history-card:hover,.journal-card:hover,.user-row:hover,.note-card:hover{border-color:#ddc7bd}.number-box,.student-avatar,.user-icon{background:#f6e1d9;color:#8e472c}.notice{background:#fff1e8;border-color:#f0cdba;color:#7b452e}.hint-box{background:#fbf5f2;border-color:#dcc9c0;color:#7f7069}.modal-backdrop{background:#32241e73}.modal,.modal-head{background:#fffdfc}.modal-head{border-bottom-color:#e9ddd7}.stat-icon{background:#f4ded5;color:#91482d}.stat-card strong{color:#332a26}.quick-grid button{border-color:#e7d9d2;background:#fffdfc;color:#5c4940}.quick-grid button:hover{background:#fbeeea;border-color:#e0c8be}.quick-grid button svg{color:#9b4f2e}.section-title p{color:#8b7c75}.time-pill{background:#f5ded5;color:#85432a}.time-pill small{color:#846f65}.badge-neutral{background:#f2ece9;color:#63554f}.badge-good{background:#dff3e5;color:#247444}.badge-warn{background:#fff0c9;color:#8a6514}.badge-bad{background:#f9dedc;color:#a83c37}.badge-info{background:#e2eef8;color:#346984}.segmented{background:#f1e7e2}.segmented button{color:#796a63}.segmented button.active{background:#fffdfc;color:#8f472c;box-shadow:0 2px 8px #4f322614}.choice{border-color:#e5d7d0;background:#fffdfc}.choice.active{border-color:#c99278;background:#faeae3}.logo-setting img,.logo-placeholder{border-color:#e1d2cb;background:#fffdfc}.user-icon.admin{background:#f1e3ef;color:#814b78}.auth-page{background:radial-gradient(circle at 15% 12%,#F5DCD2,transparent 34%),radial-gradient(circle at 85% 0%,#FAE9DA,transparent 30%),#fbf7f4}.auth-card{background:#fffdfc;border-color:#e7d8d0;box-shadow:0 28px 70px #5230221f}.brand-mark{background:linear-gradient(135deg,#a55534,#8a4329)}.auth-foot{color:#9b8b84}.spinner{border-color:#eedbd3;border-top-color:#9b4f2e}.mobile-topbar{background:#f7ded5f5;border-bottom-color:#e8cfc5;box-shadow:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-topbar strong{color:#2e2724}.mobile-topbar .icon-btn{background:transparent;color:#49372f}.avatar{background:#efcfc3;color:#74402e;box-shadow:none}.mobile-drawer{background:linear-gradient(180deg,#fffdfc,#fbf5f1);box-shadow:18px 0 40px #442b2029}.mobile-drawer-backdrop{background:#3627216b}.score-table-wrap th,.table-scroll th{background:#f8eeea;color:#684f43}.history-date{background:#f5ded5;color:#87432a}.chip-row button{background:#f3e8e3;color:#6b554b}.attendance-desktop-heading{display:block}.attendance-filter-card{background:linear-gradient(145deg,#f4dcd3,#f7e6df);border-color:#edd6cd;box-shadow:none}.attendance-filter-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.attendance-filter-head h2{margin:0;font-size:20px;color:#493a34}.attendance-mode-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid #A98B7D;border-radius:12px;padding:9px 12px;color:#4c3830;background:#fffdfc2e;font-size:12px;font-weight:800;white-space:nowrap}.attendance-filter-card input,.attendance-filter-card select{background:#fffdfc3d;border:1.5px solid #A98B7D;min-height:48px;border-radius:13px;color:#372d29}.attendance-filter-card .field>span{font-size:13px;color:#6c554b}.attendance-filter-grid{align-items:end}.attendance-legend{display:flex;align-items:center;justify-content:center;gap:18px;padding:11px 16px;margin:0 0 14px;border-radius:15px;background:#f8efeb;border:1px solid #F0E2DC;overflow-x:auto;scrollbar-width:none}.attendance-legend::-webkit-scrollbar{display:none}.attendance-legend-item{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:12px;color:#4e403a}.attendance-legend-item b{min-width:18px;text-align:center;color:#76655e;font-size:11px}.attendance-legend-dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:11px}.legend-hadir .attendance-legend-dot{background:#22965d}.legend-sakit .attendance-legend-dot{background:#f2b61b;color:#3b3020}.legend-izin .attendance-legend-dot{background:#20aed1}.legend-alfa .attendance-legend-dot{background:#e24455}.legend-terlambat .attendance-legend-dot{background:#7a45b9}.attendance-students-card{padding:0;background:transparent;border:0;box-shadow:none;margin-bottom:0}.attendance-compact-list{display:flex;flex-direction:column;gap:10px;padding-bottom:8px}.attendance-compact-row{display:grid;grid-template-columns:38px minmax(120px,1fr) minmax(250px,1.35fr);gap:12px;align-items:center;min-height:76px;padding:13px 14px;border:1px solid #E7DDD8;border-radius:16px;background:#fffdfc;box-shadow:0 3px 9px #4a32270d}.attendance-compact-number{color:#66554d;font-weight:800;text-align:center}.attendance-compact-name{min-width:0;color:#302824;font-size:14px;font-weight:750;line-height:1.38;word-break:normal;overflow-wrap:anywhere;white-space:normal}.attendance-compact-statuses{display:grid;grid-template-columns:repeat(5,minmax(34px,1fr));gap:7px;min-width:0}.compact-status{width:100%;min-width:0;aspect-ratio:1/1;max-height:48px;border:1px solid transparent;border-radius:12px;display:grid;place-items:center;padding:0;background:#f4ddd4;color:#5d4d46;font-size:13px;font-weight:800;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.compact-status:active{transform:scale(.96)}.compact-status.selected{color:#fff;box-shadow:0 5px 11px #39271f1f}.compact-status.status-hadir.selected{background:#24965e;border-color:#208652}.compact-status.status-sakit.selected{background:#e5a812;border-color:#ce940c;color:#342b1b}.compact-status.status-izin.selected{background:#24a9cc;border-color:#1d98b9}.compact-status.status-alfa.selected{background:#dc4654;border-color:#c83b48}.compact-status.status-terlambat.selected{background:#7745b0;border-color:#67399d}.attendance-sticky-actions{margin:14px 0 0;padding:12px 0 4px;border-top:0;background:linear-gradient(180deg,#fbf8f500,#fbf8f5f5 22%,#fbf8f5fa);gap:10px}.attendance-save-button{min-height:50px;text-transform:uppercase;letter-spacing:.01em;font-size:13px}.attendance-delete-slot{min-height:50px}@media(max-width:820px){.mobile-topbar{height:66px;justify-content:flex-start;gap:12px;padding:0 16px}.mobile-topbar>div:nth-child(2){text-align:left;min-width:0}.mobile-topbar>div:nth-child(2) strong{display:block;font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-topbar>div:nth-child(2) small{display:none}.mobile-topbar .avatar{margin-left:auto}.attendance-desktop-heading{display:none}.attendance-filter-card{border-radius:18px;padding:18px}.attendance-filter-head h2{font-size:18px}.attendance-filter-grid{grid-template-columns:1fr 1fr}.attendance-filter-grid .field:last-child:nth-child(3){grid-column:1/-1}.attendance-legend{justify-content:flex-start;gap:13px}.attendance-compact-row{grid-template-columns:32px minmax(105px,.92fr) minmax(190px,1.28fr);gap:8px;padding:12px 10px}.attendance-compact-statuses{gap:5px}.compact-status{border-radius:10px;max-height:44px}.attendance-sticky-actions{position:sticky;bottom:0;z-index:20;padding:12px 0 10px}}@media(max-width:560px){body{background:#fbf8f5}.content-inner{padding:14px}.card{border-radius:17px}.attendance-filter-card{padding:16px 14px;margin-bottom:12px}.attendance-filter-head{margin-bottom:16px;gap:8px}.attendance-filter-head h2{font-size:17px;line-height:1.2}.attendance-mode-pill{padding:8px 10px;font-size:11px;border-radius:11px}.attendance-filter-card input,.attendance-filter-card select{min-height:50px}.attendance-legend{margin:0 0 12px;padding:10px 12px;border-radius:14px;gap:10px}.attendance-legend-item{gap:4px;font-size:10.5px}.attendance-legend-item b{display:none}.attendance-legend-dot{width:24px;height:24px;font-size:10px}.attendance-compact-list{gap:8px}.attendance-compact-row{grid-template-columns:28px minmax(88px,.9fr) minmax(170px,1.35fr);gap:7px;min-height:72px;padding:11px 8px;border-radius:15px}.attendance-compact-number{font-size:12px}.attendance-compact-name{font-size:12.5px;line-height:1.42}.attendance-compact-statuses{gap:4px}.compact-status{min-width:0;min-height:36px;max-height:40px;border-radius:9px;font-size:12px}.attendance-sticky-actions{margin-top:12px;display:grid;grid-template-columns:44px 1fr}.attendance-delete-slot{width:44px;min-width:44px;padding:0}.attendance-delete-slot span{display:none}.attendance-save-button{width:100%;font-size:12px}}@media(max-width:390px){.content-inner{padding:10px}.attendance-filter-card{padding:14px 12px}.attendance-filter-head{align-items:flex-start}.attendance-filter-head h2{font-size:16px}.attendance-mode-pill{font-size:10px;padding:7px 8px}.attendance-legend{gap:8px;padding-left:10px;padding-right:10px}.attendance-legend-item span:nth-child(2){display:none}.attendance-compact-row{grid-template-columns:25px minmax(82px,.85fr) minmax(165px,1.4fr);gap:5px;padding:10px 6px}.attendance-compact-statuses{gap:3px}.compact-status{font-size:11px;border-radius:8px}}@media print{body{background:#fff!important}}
