:root{--primary:#0f766e;--primary-dark:#115e59;--accent:#f59e0b;--bg:#f4f7f6;--text:#18302d;--muted:#6b7f7b;--sidebar:#0b3d39}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,#0b3d39 0%,#082d2a 100%);color:white;display:flex;flex-direction:column;z-index:1030;box-shadow:8px 0 28px rgba(8,45,42,.13)}.brand{display:flex;gap:12px;align-items:center;padding:24px 20px 18px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#34d399,#fbbf24);display:grid;place-items:center;font-size:21px;color:#073b36}.brand strong,.brand small{display:block}.brand strong{font-size:15px}.brand small{font-size:11px;color:#b8d5d1;margin-top:3px;line-height:1.25}.sidebar nav{padding:14px 12px;overflow-y:auto}.sidebar .nav-link{color:#c8dedb;border-radius:11px;padding:10px 12px;margin:2px 0;display:flex;gap:12px;align-items:center;font-size:14px}.sidebar .nav-link i{width:20px;text-align:center;font-size:17px}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.12);color:#fff}.sidebar .nav-link.active{box-shadow:inset 3px 0 0 #fbbf24}.sidebar-footer{margin-top:auto;padding:12px;border-top:1px solid rgba(255,255,255,.09)}.main-content{margin-left:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:92px;padding:18px 28px;background:#fff;display:flex;align-items:center;gap:18px;justify-content:space-between;border-bottom:1px solid #e5ecea;position:sticky;top:0;z-index:1000}.topbar h1{font-size:22px;margin:0;font-weight:750}.topbar p{margin:3px 0 0;color:var(--muted);font-size:13px}.user-chip{display:flex;gap:10px;align-items:center;background:#f1f7f5;border:1px solid #dbe9e6;border-radius:14px;padding:8px 12px}.user-chip .avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);color:white;display:grid;place-items:center;font-weight:700}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:13px}.user-chip small{font-size:11px;color:var(--muted)}.content-wrap{padding:26px;flex:1}.app-footer{padding:16px 26px;color:#71817f;font-size:12px;border-top:1px solid #dfe8e6}.card{border:1px solid #e2ebe9;border-radius:16px;box-shadow:0 8px 24px rgba(15,118,110,.055)}.card-header{background:transparent;border-bottom:1px solid #e7efed;padding:16px 18px;font-weight:700}.stat-card{padding:18px;display:flex;align-items:center;gap:14px;height:100%}.stat-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:#e0f2f1;color:var(--primary);font-size:22px}.stat-card h3{font-size:24px;margin:0}.stat-card p{font-size:12px;color:var(--muted);margin:2px 0 0}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}.btn-outline-primary{border-color:var(--primary);color:var(--primary)}.btn-outline-primary:hover{background:var(--primary);border-color:var(--primary)}.table{vertical-align:middle}.table thead th{font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:#60716e;background:#f8fbfa;border-bottom-width:1px}.table td{font-size:13px}.form-label{font-size:13px;font-weight:650}.form-control,.form-select{border-radius:10px;border-color:#d6e2df;padding:.65rem .75rem}.modal-content{border:0;border-radius:18px}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.filter-bar{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.empty-state{text-align:center;padding:45px;color:var(--muted)}.empty-state i{font-size:42px;display:block;margin-bottom:10px}.login-page{min-height:100vh;background:radial-gradient(circle at top right,#35b7a8 0,#0f766e 26%,#073b36 62%,#052925 100%);display:grid;place-items:center;padding:24px}.login-wrap{width:min(980px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.28)}.login-hero{padding:54px;color:white;background:linear-gradient(145deg,#0b3d39,#0f766e);position:relative;overflow:hidden}.login-hero:before,.login-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}.login-hero:before{width:260px;height:260px;right:-100px;top:-100px}.login-hero:after{width:190px;height:190px;left:-75px;bottom:-90px}.login-hero .mark{width:66px;height:66px;border-radius:20px;background:linear-gradient(135deg,#6ee7b7,#fbbf24);color:#073b36;display:grid;place-items:center;font-size:30px;margin-bottom:28px}.login-hero h1{font-weight:800;font-size:34px}.login-hero p{color:#d2ece8;line-height:1.7}.login-features{margin-top:30px;display:grid;gap:13px}.login-features div{display:flex;gap:10px;align-items:center;font-size:14px}.login-form{padding:54px 44px;display:flex;flex-direction:column;justify-content:center}.login-form h2{font-weight:800}.login-form .subtitle{color:var(--muted);font-size:14px}.credentials{background:#f6faf9;border:1px dashed #b7d5d0;border-radius:12px;padding:12px;font-size:12px}.credentials code{color:#0f766e}.error-page{min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:20px}.error-card{background:white;padding:36px;border-radius:18px;max-width:520px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.1)}.mini-chart{height:9px;background:#e9f0ee;border-radius:999px;overflow:hidden}.mini-chart span{display:block;height:100%;background:linear-gradient(90deg,#0f766e,#34d399)}.timeline-item{border-left:3px solid #cce4df;padding:0 0 18px 16px;position:relative}.timeline-item:before{content:"";width:11px;height:11px;border-radius:50%;background:#0f766e;position:absolute;left:-7px;top:3px}.section-title{font-weight:800;font-size:16px}.text-muted-sm{color:var(--muted);font-size:12px}.print-only{display:none}@media(max-width:991.98px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.show{transform:translateX(0)}.main-content{margin-left:0}.content-wrap{padding:18px}.topbar{padding:14px 18px;height:82px}.user-chip div:last-child{display:none}.login-wrap{grid-template-columns:1fr}.login-hero{display:none}.login-form{padding:38px 28px}}@media print{.sidebar,.topbar,.app-footer,.no-print,.btn,.filter-bar{display:none!important}.main-content{margin:0}.content-wrap{padding:0}.card{box-shadow:none;border:0}.print-only{display:block}.table td,.table th{font-size:10px}}
.nav-section-label{padding:13px 12px 5px;color:#7fb1aa;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(3,24,22,.48);z-index:1025}.sidebar-backdrop.show{display:block}.eyebrow{font-size:11px!important;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:#9fe0d5!important}.login-logo-small{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#e1f4ef;color:var(--primary);font-size:24px}.add-card{border:2px dashed #bcd7d1;background:#f8fcfb;min-height:230px;border-radius:16px;color:var(--primary);display:grid;place-items:center;align-content:center;gap:10px}.add-card i{font-size:36px}.add-card span{font-weight:750}.org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.org-card{background:white;border:1px solid #dce9e6;border-radius:16px;padding:18px;position:relative}.org-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--primary);border-radius:16px 0 0 16px}.org-card strong{display:block;font-size:16px}.org-card small{color:var(--muted)}.org-division{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--primary);font-weight:800;margin-bottom:5px}.metric-box{height:100%;background:#f5faf8;border:1px solid #dfece8;border-radius:14px;padding:14px}.metric-box strong,.metric-box span{display:block}.metric-box strong{font-size:18px}.metric-box span{font-size:12px;color:var(--muted);margin-top:3px}.metric-inline{background:#e9f7f3;border-radius:14px;padding:10px 18px;display:flex;gap:9px;align-items:baseline}.metric-inline strong{font-size:22px;color:var(--primary)}.metric-inline span{font-size:12px;color:var(--muted)}.pre-line{white-space:pre-line}.score-pill{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;font-weight:800}.score-0{background:#eef2f1;color:#7c8e8a}.score-1{background:#fee2e2;color:#991b1b}.score-2{background:#fef3c7;color:#92400e}.score-3{background:#dbeafe;color:#1e40af}.score-4{background:#d1fae5;color:#065f46}.habit-table-wrap{max-height:62vh}.habit-table{min-width:900px}.habit-table th{writing-mode:vertical-rl;transform:rotate(180deg);height:130px;white-space:nowrap}.habit-table th.sticky-col{writing-mode:horizontal-tb;transform:none;height:auto}.habit-table .sticky-col{position:sticky;left:0;z-index:2;background:#fff;min-width:78px}.habit-table thead .sticky-col{z-index:3;background:#f8fbfa}.tiny{font-size:10px;color:var(--muted);margin-top:3px}.program-card{border-left:5px solid var(--primary)}.program-update{background:#f7faf9;border-radius:12px;padding:12px}.report-sheet .card-body{padding:24px}.print-report-heading{text-align:center;margin-bottom:22px}.print-report-heading h2{font-size:20px;font-weight:800}.print-report-heading p{font-size:12px}.report-table .report-section td{background:#fff7c2;font-weight:800}.report-table textarea{min-height:64px}.attendance-select{min-width:130px}.progress{background:#e2ece9}.list-group-item.active{background:var(--primary);border-color:var(--primary)}.table-responsive{border-radius:10px}.form-check-input:checked{background-color:var(--primary);border-color:var(--primary)}.alert{border-radius:12px}.modal-xl{--bs-modal-width:1120px}.badge{font-weight:700}.text-danger-subtle{color:#f5a9a9!important}
@media(max-width:991.98px){.sidebar-backdrop.show{display:block}.org-grid{grid-template-columns:1fr}.report-sheet .card-body{padding:14px}.topbar h1{font-size:18px}.topbar p{display:none}}
@media(max-width:575.98px){.filter-bar>div{width:100%}.filter-bar .form-control,.filter-bar .form-select{width:100%}.page-actions{width:100%}.page-actions .btn{flex:1}.content-wrap{padding:12px}.card{border-radius:13px}.login-form{padding:30px 22px}.stat-card h3{font-size:20px}}
@media print{body{background:#fff}.report-sheet .card-body{padding:0}.report-table{page-break-inside:auto}.report-table tr{page-break-inside:avoid}.report-table textarea,.report-table input,.report-table select{display:none!important}.print-report-heading{display:block}.content-wrap{padding:0!important}.table-responsive{overflow:visible}.pre-line{white-space:pre-line}.report-table .report-section td{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff7c2!important}}

/* v3.1 — tabel database per kelas */
.class-switcher{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 12px;margin-bottom:8px;scrollbar-width:thin}.class-switch-pill{min-width:150px;display:flex;flex-direction:column;text-decoration:none;background:#fff;border:1px solid #dce9e6;border-radius:14px;padding:11px 14px;color:var(--text);box-shadow:0 5px 16px rgba(15,118,110,.04)}.class-switch-pill span{font-size:10px;font-weight:800;color:var(--primary);text-transform:uppercase;letter-spacing:.08em}.class-switch-pill strong{font-size:13px;margin-top:2px;white-space:nowrap}.class-switch-pill:hover,.class-switch-pill.active{border-color:var(--primary);background:#eaf7f4}.class-switch-pill.active{box-shadow:inset 0 -3px 0 var(--primary)}
.class-data-table-wrap{max-height:68vh;border:1px solid #dfe9e7;border-radius:12px;overflow:auto}.class-data-table{min-width:3500px}.class-data-table thead th{position:sticky;top:0;z-index:5;background:#edf7f4!important;white-space:nowrap}.class-data-table td{padding:.35rem;vertical-align:top;background:#fff}.class-data-table .form-control-sm,.class-data-table .form-select-sm{font-size:12px;padding:.38rem .45rem;min-width:120px;border-radius:7px}.class-data-table textarea{resize:vertical;min-height:32px}.class-data-table .phone-cell{min-width:135px}.class-data-table .address-cell{min-width:220px}.class-data-table .notes-cell{min-width:220px}.class-data-table .class-cell{min-width:190px}.class-data-table .status-cell{min-width:110px}.class-data-table .sticky-number,.class-data-table .sticky-photo,.class-data-table .sticky-nis,.class-data-table .sticky-name{position:sticky;z-index:4;background:#fff!important}.class-data-table thead .sticky-number,.class-data-table thead .sticky-photo,.class-data-table thead .sticky-nis,.class-data-table thead .sticky-name{z-index:8;background:#dff1ed!important}.class-data-table .sticky-number{left:0;min-width:50px;width:50px}.class-data-table .sticky-photo{left:50px;min-width:92px;width:92px;text-align:center}.class-data-table .sticky-nis{left:142px;min-width:130px;width:130px}.class-data-table .sticky-name{left:272px;min-width:235px;width:235px;box-shadow:5px 0 8px rgba(14,65,59,.06)}.class-data-table tr.row-dirty td{background:#fffbed}.class-data-table tr.row-dirty .sticky-number,.class-data-table tr.row-dirty .sticky-photo,.class-data-table tr.row-dirty .sticky-nis,.class-data-table tr.row-dirty .sticky-name{background:#fff3bf!important}.bulk-save-bar{position:sticky;bottom:0;z-index:9;margin:14px -18px -16px;padding:13px 18px;background:rgba(255,255,255,.96);border-top:1px solid #dce8e5;display:flex;justify-content:space-between;align-items:center;gap:14px;box-shadow:0 -9px 24px rgba(15,63,58,.08);backdrop-filter:blur(7px)}.bulk-save-bar strong,.bulk-save-bar span{display:block}.bulk-save-bar span{font-size:11px;color:var(--muted);margin-top:2px}
@media(max-width:767.98px){.class-data-table-wrap{max-height:66vh}.class-switch-pill{min-width:128px}.bulk-save-bar{align-items:stretch;flex-direction:column}.bulk-save-bar .btn{width:100%}}


/* v3.2 — foto santri */
.student-photo{width:58px;height:58px;border-radius:14px;object-fit:cover;display:inline-grid;place-items:center;background:linear-gradient(145deg,#d9f2ec,#b9e5db);border:1px solid #b9dcd4;color:#0f766e;font-weight:800;letter-spacing:.02em;overflow:hidden;flex:0 0 auto}.student-photo-table{width:48px;height:48px;border-radius:12px}.student-photo-class{width:48px;height:48px;border-radius:11px}.student-photo-placeholder{font-size:16px}.student-photo-editor{display:flex;align-items:center;gap:18px;background:#f5faf8;border:1px solid #dceae6;border-radius:16px;padding:16px}.student-photo-preview{width:96px;height:96px;border-radius:20px;font-size:25px}.student-photo-preview img{width:100%;height:100%;object-fit:cover}.class-photo-editor{display:flex;align-items:center;justify-content:center;gap:4px;min-width:80px}.class-photo-editor .btn-xs{padding:.2rem .35rem;font-size:.72rem;line-height:1}.class-photo-remove{display:inline-flex;align-items:center;gap:2px;color:#b42318;cursor:pointer;font-size:11px}.class-photo-remove .form-check-input{margin:0}.class-data-table .sticky-photo{vertical-align:middle}.class-data-table tr.row-dirty .student-photo{border-color:#d9a600}.photo-help{font-size:11px;color:var(--muted)}
@media(max-width:575.98px){.student-photo-editor{align-items:flex-start}.student-photo-preview{width:78px;height:78px}}
@media print{.student-photo{width:36px;height:36px;border-radius:8px}}

/* v3.3 - pendaftaran publik dan NIS otomatis */
.login-registration-link{display:flex;justify-content:center;gap:.5rem;align-items:center;margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--border,#e5e7eb);font-size:.92rem}.login-registration-link a{font-weight:700;text-decoration:none}.public-registration-page{min-height:100vh;background:linear-gradient(135deg,#ecfdf5 0%,#f8fafc 45%,#ecfeff 100%);padding:2rem 1rem}.public-registration-shell{max-width:1050px;margin:0 auto}.public-registration-header{display:flex;gap:1.25rem;align-items:center;margin-bottom:1.5rem;padding:1.6rem;border-radius:1.35rem;background:linear-gradient(135deg,#0f766e,#0d9488);color:white;box-shadow:0 18px 45px rgba(15,118,110,.22)}.public-registration-header h1{font-size:clamp(1.55rem,3vw,2.35rem);margin:0 0 .35rem}.public-registration-mark{width:74px;height:74px;border-radius:22px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:2rem;flex:0 0 auto}.public-registration-form,.registration-success-card{border:0;border-radius:1.35rem;box-shadow:0 18px 55px rgba(15,23,42,.1);overflow:hidden}.registration-section-title{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem}.registration-section-title>span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#0f766e;color:#fff;font-weight:800}.registration-section-title strong,.registration-section-title small{display:block}.registration-section-title small{color:#64748b}.public-registration-footer{text-align:center;color:#64748b;font-size:.85rem;padding:1.2rem}.success-icon{font-size:4rem;color:#16a34a}.registration-number{display:inline-block;padding:.75rem 1.4rem;border:2px dashed #0f766e;border-radius:1rem;font-size:1.45rem;font-weight:800;letter-spacing:.05em;background:#f0fdfa;color:#115e59}.registration-stat-card{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;padding:1rem 1.15rem;color:#0f172a;box-shadow:0 5px 20px rgba(15,23,42,.05)}.registration-stat-card.active{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.registration-stat-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:1.25rem}.registration-stat-card strong,.registration-stat-card small{display:block}.registration-stat-card strong{font-size:1.45rem}.registration-stat-card small{color:#64748b}.nis-auto-field{background:#f8fafc!important;color:#334155;font-weight:700}.nis-auto-hint{font-size:.75rem;color:#64748b}.auto-nis-badge{display:inline-flex;gap:.3rem;align-items:center;padding:.25rem .55rem;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.75rem;font-weight:700}@media(max-width:700px){.public-registration-page{padding:0}.public-registration-shell{max-width:none}.public-registration-header{border-radius:0;margin-bottom:0}.public-registration-mark{width:56px;height:56px;border-radius:16px}.public-registration-form,.registration-success-card{border-radius:0}.public-registration-form .card-body{padding:1.25rem!important}}

/* v3.5 — penilaian per modul dan rapor semester */
.assessment-module-card{transition:transform .18s ease,box-shadow .18s ease;color:inherit}.assessment-module-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(15,118,110,.14)}.assessment-module-card h3{font-size:1.1rem;margin:14px 0 8px}.assessment-module-card p{color:#64756f;min-height:66px}.assessment-module-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#e8f7f1;color:#087f5b;font-size:1.35rem}.assessment-table-wrap{max-height:65vh}.assessment-table{min-width:1180px}.assessment-table thead th{position:sticky;top:0;z-index:3;background:#edf7f3;white-space:nowrap}.assessment-table .sticky-col{position:sticky;z-index:2;background:#fff}.assessment-table thead .sticky-col{z-index:5;background:#edf7f3}.assessment-table .sticky-col-1{left:0;min-width:55px}.assessment-table .sticky-col-2{left:55px;min-width:260px}.student-photo-xs{width:38px!important;height:38px!important;min-width:38px!important;font-size:.72rem!important}.report-sheet{background:#fff;border:1px solid #d8e2de;border-radius:12px;padding:28px;max-width:1050px;margin:auto}.report-header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px double #23463d;padding-bottom:16px;margin-bottom:18px}.report-header h2{font-family:Georgia,serif;letter-spacing:.04em;margin:0 0 8px}.report-header p{margin:0}.report-student-photo{width:86px!important;height:108px!important;border-radius:8px!important}.report-identity,.report-table{width:100%;border-collapse:collapse;margin-bottom:20px}.report-identity th,.report-identity td,.report-table th,.report-table td{border:1px solid #5d6f69;padding:8px 9px}.report-identity th{width:16%;background:#f1f6f4}.report-table thead th{background:#e7f0ed;text-align:center}.report-table td:nth-child(1),.report-table td:nth-child(3),.report-table td:nth-child(4),.report-table td:nth-child(5){text-align:center}.report-total{font-weight:700;background:#f4f8f6}.report-sheet h3{font-size:1rem;margin:18px 0 8px}.report-notes{min-height:70px;border:1px solid #5d6f69;padding:10px;line-height:1.7}.report-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;text-align:center;margin-top:34px}.sign-space{height:72px}.attendance-report td{text-align:center!important;font-weight:700}@media(max-width:767px){.report-sheet{padding:15px}.report-header{align-items:flex-start}.report-signatures{grid-template-columns:1fr}.sign-space{height:45px}.assessment-table-wrap{max-height:none}}@media print{.report-sheet{border:0;padding:0;max-width:none}.app-footer,.topbar,.sidebar{display:none!important}.main-content{margin:0!important}.content-wrap{padding:0!important}.report-signatures{break-inside:avoid}.report-table{font-size:11px}.report-sheet h2{font-size:18px}}

/* v3.6 - Absensi Google Form */
.stat-card{background:#fff;border:1px solid #e2ebe9;border-radius:16px;box-shadow:0 8px 24px rgba(15,118,110,.055)}
.stat-card>div:last-child span,.stat-card>div:last-child strong,.stat-card>div:last-child small{display:block}
.stat-card>div:last-child span{font-size:12px;color:var(--muted);font-weight:650}
.stat-card>div:last-child strong{font-size:24px;line-height:1.15;margin:.15rem 0}
.stat-card>div:last-child small{font-size:11px;color:var(--muted)}
.stat-icon.blue{background:#e8f1ff;color:#2563eb}.stat-icon.green{background:#eaf8ef;color:#15803d}.stat-icon.orange{background:#fff4e5;color:#c2410c}.stat-icon.gray{background:#eef2f4;color:#475569}.stat-icon.teal{background:#e0f2f1;color:#0f766e}
.card.border-warning{border-color:#f6c768!important}.pre-line{white-space:pre-line}
@media(max-width:575.98px){.stat-card>div:last-child strong{font-size:20px}}

/* v3.7 — Sidebar vertikal bergaya ChatGPT, tanpa geser horizontal */
:root{--sidebar-width:286px;--sidebar-collapsed-width:82px}
html,body{max-width:100%;overflow-x:hidden}.app-shell,.main-content,.content-wrap{min-width:0}.sidebar.sidebar-gpt{width:var(--sidebar-width);overflow:hidden;box-shadow:5px 0 22px rgba(8,45,42,.12);transition:width .2s ease,transform .24s ease}.sidebar-header{flex:0 0 auto;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-gpt .brand{min-width:0;padding:18px 16px;text-decoration:none;color:#fff}.sidebar-gpt .brand-mark{width:42px;height:42px;min-width:42px;border-radius:13px}.brand-copy{min-width:0}.brand-copy strong,.brand-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-search-wrap{position:relative;flex:0 0 auto;margin:12px 12px 7px;height:42px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.075);border-radius:12px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#a8cbc6}.sidebar-search-wrap:focus-within{border-color:rgba(110,231,183,.55);background:rgba(255,255,255,.11)}.sidebar-search-wrap input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:13px}.sidebar-search-wrap input::placeholder{color:#9fc1bc}.sidebar-search-wrap kbd{border:0;background:rgba(0,0,0,.2);color:#a8c5c1;font-size:9px;padding:3px 5px;border-radius:5px;white-space:nowrap}.sidebar-nav{flex:1;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:5px 10px 12px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}.sidebar-nav::-webkit-scrollbar{width:7px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:20px}.nav-group{margin:3px 0}.nav-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:9px 10px 7px;color:#83aea8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;border-radius:9px;user-select:none}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-group>summary i{font-size:11px;transition:transform .18s ease}.nav-group[open]>summary i{transform:rotate(180deg)}.nav-group>summary:hover{background:rgba(255,255,255,.06);color:#b7d8d3}.nav-group-items{display:grid;gap:2px}.sidebar-gpt .nav-link{width:100%;min-width:0;padding:9px 10px;margin:0;border-radius:10px;gap:11px;overflow:hidden}.sidebar-gpt .nav-link i{width:21px;min-width:21px;font-size:16px}.sidebar-gpt .nav-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-gpt .nav-link.active{box-shadow:none;background:rgba(255,255,255,.14);position:relative}.sidebar-gpt .nav-link.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:#fbbf24}.sidebar-footer{flex:0 0 auto;margin-top:0;padding:9px 10px 12px;background:linear-gradient(180deg,rgba(8,45,42,.2),#082d2a);box-shadow:0 -8px 20px rgba(8,45,42,.2)}.sidebar-footer .nav-link{padding:9px 10px}.sidebar-logout{color:#f4aaa6!important}.menu-empty{padding:28px 12px;text-align:center;color:#88aaa6;font-size:12px}.menu-empty i,.menu-empty span{display:block}.menu-empty i{font-size:22px;margin-bottom:7px}.main-content{margin-left:var(--sidebar-width);width:auto;transition:margin-left .2s ease}.topbar{padding:14px 24px;height:84px}.topbar-start{display:flex;align-items:center;gap:12px;min-width:0}.topbar-title{min-width:0}.topbar-title h1,.topbar-title p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-control{width:38px;height:38px;min-width:38px;border:1px solid #dce7e4;background:#fff;color:#315b55;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:18px}.sidebar-control:hover{background:#eef6f4;color:var(--primary)}
body.sidebar-collapsed .sidebar.sidebar-gpt{width:var(--sidebar-collapsed-width)}body.sidebar-collapsed .main-content{margin-left:var(--sidebar-collapsed-width)}body.sidebar-collapsed .sidebar-gpt .brand{justify-content:center;padding-inline:10px}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .sidebar-search-wrap input,body.sidebar-collapsed .sidebar-search-wrap kbd,body.sidebar-collapsed .nav-group>summary,body.sidebar-collapsed .sidebar-gpt .nav-link span{display:none!important}body.sidebar-collapsed .sidebar-search-wrap{width:44px;margin-inline:auto;justify-content:center;padding:0}body.sidebar-collapsed .nav-group:not([open])>.nav-group-items{display:grid!important}body.sidebar-collapsed .sidebar-nav{padding-inline:10px}body.sidebar-collapsed .sidebar-gpt .nav-link{width:48px;height:44px;margin-inline:auto;justify-content:center;padding:0}body.sidebar-collapsed .sidebar-gpt .nav-link i{width:auto;min-width:0;font-size:18px}body.sidebar-collapsed .sidebar-gpt .nav-link.active:before{top:8px;bottom:8px}body.sidebar-collapsed .sidebar-footer{padding-inline:10px}
@media(max-width:991.98px){body.sidebar-collapsed .sidebar.sidebar-gpt{width:min(88vw,310px)}body.sidebar-collapsed .main-content{margin-left:0}.sidebar.sidebar-gpt{width:min(88vw,310px);transform:translateX(-105%);transition:transform .24s ease}.sidebar.sidebar-gpt.show{transform:translateX(0)}.main-content{margin-left:0}.topbar{height:76px;padding:11px 14px}.topbar-title h1{font-size:18px}.topbar-title p{font-size:11px}.content-wrap{padding:15px}.sidebar-search-wrap kbd{display:none}.sidebar-backdrop.show{display:block}.user-chip{padding:6px}.user-chip .avatar{width:34px;height:34px}}
@media(max-width:575.98px){.topbar{gap:8px}.topbar-title p{max-width:190px}.user-chip{background:transparent;border:0}.content-wrap{padding:12px}.app-footer{padding:12px 15px}}
@media print{.sidebar-control{display:none!important}}


/* v3.7.1 — Logo resmi TPA Al-Manshurin */
.brand-mark,.login-hero .mark,.login-logo-small,.public-registration-mark{overflow:hidden;background:#fff!important;border:1px solid rgba(15,118,110,.16);box-shadow:0 3px 12px rgba(0,0,0,.08)}
.brand-mark img,.login-hero .mark img,.login-logo-small img,.public-registration-mark img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.sidebar-gpt .brand-mark{width:50px;height:50px;min-width:50px;border-radius:14px;padding:3px}
.login-hero .mark{width:96px;height:96px;border-radius:22px;padding:5px}
.login-logo-small{width:58px;height:58px;border-radius:16px;padding:3px}
.public-registration-mark{width:74px;height:74px;border-radius:18px;padding:4px;flex:0 0 auto}
body.sidebar-collapsed .sidebar-gpt .brand-mark{width:48px;height:48px;min-width:48px}
@media(max-width:700px){.public-registration-mark{width:62px;height:62px}}

/* v4.0 — Analitik, Grafik, Draft dan Arsip */
.stat-icon.red{background:#feecec;color:#dc2626}.stat-icon.purple{background:#f1eafe;color:#7c3aed}
.analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.analytics-filter{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}.analytics-filter-actions{display:flex;gap:8px;align-items:center}.analytics-stats .stat-card{min-height:104px}.analytics-stats .stat-card h3{font-size:22px}.analytics-stats .stat-card p{margin:2px 0}.chart-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.chart-card-header span,.chart-card-header small{display:block}.chart-card-header small{font-size:11px;color:var(--muted);font-weight:500;margin-top:3px}.chart-shell{position:relative;min-height:250px;width:100%;overflow:hidden}.sim-chart{display:block;width:100%;max-width:100%;touch-action:pan-y}.chart-empty{min-height:250px;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted);text-align:center}.chart-empty i{font-size:40px}.sim-chart-tooltip{position:fixed;z-index:2000;background:#0f172a;color:#fff;border-radius:8px;padding:7px 9px;font-size:12px;pointer-events:none;box-shadow:0 8px 24px rgba(15,23,42,.25);white-space:nowrap}.attendance-indicator{display:inline-flex;min-width:66px;justify-content:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.attendance-indicator.good{background:#dcfce7;color:#166534}.attendance-indicator.warn{background:#fef3c7;color:#92400e}.attendance-indicator.bad{background:#fee2e2;color:#991b1b}.report-chart-row{margin:12px 0 20px}.report-chart-card{border:1px solid #cfdad6;border-radius:10px;padding:10px;background:#fff}.report-chart-card h4{font-size:13px;text-align:center;margin:0 0 4px}.report-chart-card .chart-shell{min-height:220px}.report-chart-card .sim-chart{height:235px!important}.draft-status{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800}.draft-status.draft{background:#e2e8f0;color:#475569}.draft-status.published{background:#dcfce7;color:#166534}.draft-status.archived{background:#fef3c7;color:#92400e}
@media(max-width:1199.98px){.analytics-filter{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:767.98px){.analytics-filter{grid-template-columns:1fr 1fr}.analytics-filter-actions{grid-column:1/-1}.chart-shell{min-height:230px}.analytics-heading .page-actions{width:100%}.analytics-heading .page-actions .btn{flex:1}.report-chart-row{display:block}.report-chart-row>div{width:100%;margin-bottom:12px}}
@media(max-width:479.98px){.analytics-filter{grid-template-columns:1fr}.analytics-filter-actions{grid-column:auto}.analytics-filter-actions .btn{flex:1}.chart-shell{min-height:215px}}
@media print{.analytics-filter,.analytics-heading .page-actions,.chart-card-header .btn{display:none!important}.chart-shell{break-inside:avoid;min-height:230px}.sim-chart{width:100%!important}.report-chart-card{break-inside:avoid}.analytics-stats .stat-card{border:1px solid #bbb!important}.card{break-inside:avoid}.report-chart-row{display:flex!important}.report-chart-row .col-md-7{width:58.333%}.report-chart-row .col-md-5{width:41.667%}}


/* v4.4 — editor crop foto santri rasio 3 × 4 */
.photo-crop-overlay{position:fixed;inset:0;z-index:2000;background:rgba(7,24,19,.78);display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}
.photo-crop-overlay[hidden]{display:none!important}
.photo-crop-dialog{width:min(900px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.32)}
.photo-crop-header,.photo-crop-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px}
.photo-crop-header{border-bottom:1px solid #e1ebe7}.photo-crop-footer{border-top:1px solid #e1ebe7;justify-content:flex-end}
.photo-crop-header h5{margin:0 0 4px;font-weight:800;color:#123c32}.photo-crop-header p{margin:0;color:#63766f;font-size:.9rem}
.photo-crop-body{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:26px;padding:22px;align-items:center}
.photo-crop-stage{position:relative;width:min(360px,100%);aspect-ratio:3/4;margin:auto;background:#dce6e2;border-radius:16px;overflow:hidden;touch-action:none;cursor:grab;box-shadow:inset 0 0 0 1px rgba(18,60,50,.15)}
.photo-crop-stage:active{cursor:grabbing}.photo-crop-stage canvas{display:block;width:100%;height:100%;background:#edf2f0}
.photo-crop-guide{position:absolute;inset:0;pointer-events:none;border:3px solid rgba(255,255,255,.92);box-shadow:inset 0 0 0 999px rgba(0,0,0,.08)}
.photo-crop-guide:before,.photo-crop-guide:after,.photo-crop-guide span:before,.photo-crop-guide span:after{content:"";position:absolute;background:rgba(255,255,255,.74)}
.photo-crop-guide:before,.photo-crop-guide:after{top:0;bottom:0;width:1px}.photo-crop-guide:before{left:33.333%}.photo-crop-guide:after{left:66.666%}
.photo-crop-guide span:before,.photo-crop-guide span:after{left:0;right:0;height:1px}.photo-crop-guide span:before{top:33.333%}.photo-crop-guide span:after{top:66.666%}
.photo-crop-controls{min-width:0}.photo-crop-controls .form-range{accent-color:#0b8b67}.photo-crop-info{margin-top:20px;padding:14px 16px;border-radius:14px;background:#eef8f4;border:1px solid #d3ebe2;color:#315b50;line-height:1.65;font-size:.9rem}
.report-student-photo{width:84px!important;height:112px!important;aspect-ratio:3/4!important;object-fit:cover}
@media(max-width:767.98px){.photo-crop-overlay{padding:8px}.photo-crop-dialog{border-radius:16px;max-height:calc(100vh - 16px)}.photo-crop-body{grid-template-columns:1fr;padding:14px;gap:16px}.photo-crop-stage{width:min(300px,82vw)}.photo-crop-header,.photo-crop-footer{padding:14px 16px}.photo-crop-header p{font-size:.8rem}}

/* SIM-KBM-MODERN-UI-v11 */
@import url('./modern-ui-v11.css?v=11.0.0');

