:root{--bg:#f5f7fb;--surface:#fff;--surface2:#f9fafb;--text:#172033;--muted:#7b8498;--line:#e9edf4;--primary:#6c63ff;--primary2:#8b7fff;--dark:#171b2e;--success:#21a179;--warning:#e6a23c;--danger:#e65353;--info:#3b82f6;--shadow:0 16px 40px rgba(28,39,69,.08);--radius:20px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;padding:26px 18px;background:linear-gradient(180deg,#171b2e 0%,#20263d 100%);color:#fff;z-index:40;display:flex;flex-direction:column;box-shadow:18px 0 40px rgba(23,27,46,.06)}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 24px}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#7a70ff,#a49cff);display:grid;place-items:center;font-size:22px;box-shadow:0 10px 28px rgba(108,99,255,.35)}.brand strong{display:block;font-size:18px}.brand small{display:block;color:#9ea7c1;font-size:11px;margin-top:3px}.school-mini{display:flex;gap:10px;align-items:center;margin:0 4px 20px;padding:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:14px}.school-mini i{font-size:20px;color:#b9b4ff}.school-mini span{font-size:10px;color:#8f99b6;display:block}.school-mini b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.nav-menu{display:flex;flex-direction:column;gap:4px;overflow:auto;padding-bottom:15px}.nav-label{font-size:10px;letter-spacing:.12em;color:#7f8aa8;margin:15px 12px 6px;font-weight:800}.nav-menu a,.sidebar-bottom a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;color:#aeb7cd;font-size:13px;font-weight:600;transition:.2s}.nav-menu a i,.sidebar-bottom a i{font-size:19px}.nav-menu a:hover,.nav-menu a.active{color:#fff;background:linear-gradient(90deg,rgba(108,99,255,.28),rgba(108,99,255,.07))}.nav-menu a.active{box-shadow:inset 3px 0 0 #8d84ff}.sidebar-bottom{margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}.sidebar-bottom a:hover{background:rgba(230,83,83,.12);color:#ff9d9d}.app-main{margin-left:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:92px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:rgba(245,247,251,.9);backdrop-filter:blur(14px);position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(233,237,244,.8)}.topbar-title .eyebrow{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.06em;text-transform:uppercase}.topbar-title h1{font-size:22px;margin:4px 0 0;letter-spacing:-.03em}.user-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:7px 10px 7px 7px;border-radius:15px}.avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#edeaff,#d8d3ff);color:var(--primary);display:grid;place-items:center;font-weight:800}.user-chip b,.user-chip span{display:block}.user-chip b{font-size:12px}.user-chip span{font-size:10px;color:var(--muted);margin-top:2px}.content-wrap{padding:28px 32px 40px;flex:1}.footer{padding:18px 32px 28px;color:#9aa2b3;font-size:11px}.footer span{margin:0 6px}.mobile-menu{display:none}.hero{background:linear-gradient(135deg,#ffffff,#f4f2ff);border:1px solid #e7e3ff;padding:28px;border-radius:24px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow);margin-bottom:22px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:200px;height:200px;border-radius:50%;background:rgba(108,99,255,.09);right:-55px;top:-90px}.hero h2{font-size:25px;margin:0 0 8px;letter-spacing:-.04em}.hero p{margin:0;color:var(--muted);font-size:13px;max-width:650px;line-height:1.7}.hero-actions{z-index:2}.btn{border:0;border-radius:12px;padding:10px 15px;font-family:inherit;font-weight:700;font-size:12px;cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:.2s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 9px 20px rgba(108,99,255,.22)}.btn-light{background:#fff;border:1px solid var(--line);color:var(--text)}.btn-danger{background:#fff0f0;color:var(--danger);border:1px solid #ffdcdc}.btn-success{background:#eafaf5;color:var(--success);border:1px solid #cff1e5}.btn-sm{padding:7px 10px;border-radius:9px;font-size:11px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:11px;display:grid;place-items:center;cursor:pointer}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:19px;box-shadow:0 7px 25px rgba(25,35,60,.04);display:flex;align-items:center;gap:14px}.stat-icon{width:48px;height:48px;border-radius:15px;background:#f0efff;color:var(--primary);display:grid;place-items:center;font-size:22px}.stat-card:nth-child(2) .stat-icon{background:#ecf9f5;color:var(--success)}.stat-card:nth-child(3) .stat-icon{background:#fff7e8;color:var(--warning)}.stat-card:nth-child(4) .stat-icon{background:#eef6ff;color:var(--info)}.stat-card small{display:block;color:var(--muted);font-size:11px;font-weight:600}.stat-card strong{display:block;font-size:23px;margin-top:3px;letter-spacing:-.04em}.grid-2{display:grid;grid-template-columns:1.45fr .85fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 28px rgba(23,32,51,.04);overflow:hidden}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h3{margin:0;font-size:14px}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.panel-body{padding:20px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{text-align:left;padding:12px 13px;color:#7e8798;font-size:10px;text-transform:uppercase;letter-spacing:.045em;background:#fafbfc;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:13px;border-bottom:1px solid #f0f2f6;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fcfcff}.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;text-transform:capitalize}.badge-success{background:#eaf9f4;color:#198862}.badge-warning{background:#fff6e6;color:#b77618}.badge-danger{background:#ffeded;color:#c43f3f}.badge-info{background:#eaf3ff;color:#2f6fc4}.badge-neutral{background:#f1f3f6;color:#697386}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form-group{display:flex;flex-direction:column;gap:7px}.form-group.full{grid-column:1/-1}.form-label{font-size:11px;font-weight:700;color:#566076}.form-control,.form-select,.form-textarea{width:100%;border:1px solid #dde3ec;background:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:12px;color:var(--text);outline:none;transition:.2s}.form-control:focus,.form-select:focus,.form-textarea:focus{border-color:#a79fff;box-shadow:0 0 0 3px rgba(108,99,255,.10)}.form-textarea{min-height:95px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.filters .form-group{min-width:160px}.search-box{position:relative}.search-box i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca5b6}.search-box input{padding-left:35px}.actions{display:flex;gap:6px;flex-wrap:wrap}.empty{padding:42px 20px;text-align:center;color:var(--muted)}.empty i{font-size:38px;color:#c9ced8}.empty h4{color:#566076;margin:8px 0 5px}.empty p{margin:0;font-size:12px}.timeline{display:flex;flex-direction:column}.timeline-item{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.timeline-item:last-child{border-bottom:0}.timeline-dot{width:9px;height:9px;border-radius:50%;background:var(--primary);margin-top:5px;box-shadow:0 0 0 5px #f0efff}.timeline-item b{font-size:12px}.timeline-item p{font-size:11px;color:var(--muted);margin:4px 0 0;line-height:1.5}.progress{height:8px;background:#eef1f5;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#9c95ff);border-radius:999px}.login-page{min-height:100vh;background:radial-gradient(circle at 15% 15%,#e9e5ff 0,transparent 28%),radial-gradient(circle at 90% 80%,#e7f8f3 0,transparent 25%),#f7f8fc;display:grid;place-items:center;padding:24px}.login-card{width:min(980px,100%);min-height:560px;background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:0 30px 80px rgba(28,39,69,.14);display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}.login-visual{padding:48px;background:linear-gradient(145deg,#171b2e,#282f4b);color:#fff;position:relative;overflow:hidden}.login-visual:after{content:'';position:absolute;width:340px;height:340px;border-radius:50%;border:70px solid rgba(133,124,255,.10);right:-150px;bottom:-160px}.login-brand{display:flex;align-items:center;gap:11px;font-weight:800}.login-brand .brand-mark{width:42px;height:42px}.login-copy{margin-top:90px;position:relative;z-index:2}.login-copy .pill{display:inline-block;padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:10px;color:#cbd2e5;background:rgba(255,255,255,.05)}.login-copy h1{font-size:37px;line-height:1.08;letter-spacing:-.055em;margin:17px 0 13px}.login-copy p{font-size:13px;color:#aeb7cd;line-height:1.8;max-width:390px}.login-form{padding:55px 48px;display:flex;flex-direction:column;justify-content:center}.login-form h2{font-size:24px;margin:0 0 7px}.login-form>p{font-size:12px;color:var(--muted);margin:0 0 28px;line-height:1.6}.password-wrap{position:relative}.password-wrap .form-control{padding-right:44px}.password-wrap button{position:absolute;right:5px;top:5px;width:34px;height:34px;border:0;background:transparent;color:#8993a7;cursor:pointer}.login-help{margin-top:22px;padding:12px;border-radius:12px;background:#f8f9fc;color:#7b8498;font-size:10px;line-height:1.6}.login-help b{color:#4f586d}.attendance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.attendance-box{background:#fafbfc;border:1px solid var(--line);padding:12px;border-radius:13px}.attendance-box label{font-size:10px;color:var(--muted);font-weight:700}.attendance-box input{margin-top:6px}.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-link{padding:15px;border:1px solid var(--line);border-radius:14px;background:#fafbff;display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700}.quick-link i{font-size:20px;color:var(--primary)}.info-strip{display:flex;gap:10px;align-items:center;padding:11px 13px;border-radius:12px;background:#f3f2ff;color:#5b55aa;font-size:11px}.modal-note{font-size:10px;color:var(--muted);line-height:1.6}.print-only{display:none}.sidebar-overlay{display:none}.text-right{text-align:right}.w-100{width:100%}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.sidebar{width:245px}.app-main{margin-left:245px}}@media(max-width:780px){.sidebar{transform:translateX(-105%);transition:.25s;width:270px}.sidebar.open{transform:translateX(0)}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:rgba(16,20,34,.38);z-index:35}.app-main{margin-left:0}.mobile-menu{display:grid}.topbar{padding:0 16px;height:80px}.content-wrap{padding:18px 14px 30px}.user-chip div:not(.avatar){display:none}.hero{padding:22px;align-items:flex-start;gap:18px;flex-direction:column}.hero h2{font-size:22px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px}.stat-icon{width:42px;height:42px}.form-grid{grid-template-columns:1fr}.attendance-grid{grid-template-columns:repeat(2,1fr)}.login-card{grid-template-columns:1fr}.login-visual{display:none}.login-form{padding:38px 25px;min-height:520px}.footer{padding-left:16px}.filters .form-group{min-width:calc(50% - 6px);flex:1}.panel-head{align-items:flex-start;flex-direction:column}.quick-links{grid-template-columns:1fr}}@media(max-width:480px){.stats-grid{grid-template-columns:1fr}.attendance-grid{grid-template-columns:1fr 1fr}.topbar-title h1{font-size:18px}.filters .form-group{min-width:100%}.login-form{padding:30px 20px}}@media print{.sidebar,.topbar,.footer,.no-print{display:none!important}.app-main{margin:0}.content-wrap{padding:0}.panel{box-shadow:none;border:0}.print-only{display:block}body{background:#fff}}
/* v1.1 - Kurikulum Merdeka + KBC journal */
.curriculum-banner{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;margin-bottom:18px;padding:20px 22px;border:1px solid #e4e1ff;border-radius:20px;background:linear-gradient(135deg,#ffffff 0%,#f5f3ff 58%,#fff8fb 100%);box-shadow:0 12px 32px rgba(47,42,100,.07)}.curriculum-banner:after{content:'';position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(108,99,255,.07);right:-60px;top:-105px}.curriculum-badge{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#6c63ff,#9187ff);color:#fff;font-size:24px;box-shadow:0 10px 22px rgba(108,99,255,.25);flex:0 0 auto}.curriculum-copy{z-index:1;flex:1}.curriculum-copy>span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#796fff}.curriculum-copy h2{margin:3px 0 5px;font-size:18px;letter-spacing:-.035em}.curriculum-copy h2 b{color:#938cff;margin:0 4px}.curriculum-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.curriculum-tags{z-index:1;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.curriculum-tags span{white-space:nowrap;padding:6px 9px;border:1px solid #e6e3f7;background:rgba(255,255,255,.8);border-radius:999px;font-size:9px;font-weight:800;color:#655e8f}.curriculum-tags i{color:#756cff}.journal-form-panel>.panel-body{padding:22px}.journal-section{border:1px solid var(--line);border-radius:17px;padding:18px;margin-bottom:16px;background:#fff}.journal-section:last-of-type{margin-bottom:0}.journal-section-head{display:flex;gap:12px;align-items:center;margin-bottom:16px;padding-bottom:13px;border-bottom:1px dashed #e6e9f0}.journal-section-head .section-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eefaf6;color:#16936d;font-size:19px;flex:0 0 auto}.journal-section-head .section-icon.purple{background:#f1efff;color:#6c63ff}.journal-section-head .section-icon.blue{background:#eef6ff;color:#397bd3}.journal-section-head .section-icon.rose{background:#fff0f5;color:#d74e7c}.journal-section-head .section-icon.green{background:#ecfaf5;color:#1e9b73}.journal-section-head .section-icon.amber{background:#fff7e8;color:#c48118}.journal-section-head span{display:block;font-size:8px;font-weight:900;letter-spacing:.12em;color:#9ca5b6}.journal-section-head h4{font-size:13px;margin:1px 0 2px}.journal-section-head p{font-size:10px;color:var(--muted);margin:0;line-height:1.45}.identity-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:15px}.identity-summary>div{padding:11px 12px;background:#fafbfe;border:1px solid #edf0f5;border-radius:12px;min-width:0}.identity-summary small{display:block;color:#8b94a7;font-size:8.5px;font-weight:700;margin-bottom:4px}.identity-summary strong{display:block;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-fields{gap:13px}.form-label b{color:#e14d64}.field-help{font-size:9px;color:#8e97a8;line-height:1.45}.form-textarea.compact{min-height:72px}.kbc-section{background:linear-gradient(180deg,#fff 0%,#fffafd 100%);border-color:#f0e2e9}.kbc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:14px}.kbc-card{position:relative;border:1px solid #e9e7ef;border-radius:14px;padding:13px 10px;background:#fff;cursor:pointer;min-height:118px;display:flex;flex-direction:column;gap:8px;transition:.2s}.kbc-card:hover{transform:translateY(-2px);border-color:#d7d1fb;box-shadow:0 8px 22px rgba(50,45,85,.07)}.kbc-card input{position:absolute;opacity:0;pointer-events:none}.kbc-check{position:absolute;top:9px;right:9px;width:20px;height:20px;border-radius:7px;border:1px solid #dfe3eb;background:#fff;color:#fff;display:grid;place-items:center;font-size:12px}.kbc-icon{width:34px;height:34px;border-radius:11px;background:#fff0f5;color:#d64e79;display:grid;place-items:center;font-size:17px}.kbc-card b{display:block;font-size:9.5px;line-height:1.35;color:#4e5566;padding-right:8px}.kbc-card small{display:block;margin-top:3px;font-size:8px;line-height:1.35;color:#969eae}.kbc-card:has(input:checked){border-color:#b9b2ff;background:#f8f7ff;box-shadow:inset 0 0 0 1px #d9d5ff}.kbc-card:has(input:checked) .kbc-check{border-color:#7068f3;background:#7068f3}.kbc-card:has(input:checked) .kbc-icon{background:#ebe9ff;color:#635be8}.attendance-premium .attendance-box label{display:flex;align-items:center;gap:5px}.attendance-premium .attendance-box:nth-child(1){background:#f5fcf9}.attendance-premium .attendance-box:nth-child(2){background:#fffaf0}.attendance-premium .attendance-box:nth-child(3){background:#f5f9ff}.attendance-premium .attendance-box:nth-child(4){background:#fff7f7}.attendance-detail{margin-top:13px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.attendance-detail-head{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;background:#fafbfc;border-bottom:1px solid var(--line)}.attendance-detail-head b{font-size:10.5px;display:block}.attendance-detail-head span:not(.badge){font-size:8.5px;color:var(--muted);display:block;margin-top:2px}.compact-empty{padding:18px}.compact-empty i{font-size:26px}.attendance-loading{padding:24px;text-align:center;color:var(--muted);font-size:10px}.attendance-loading i{display:inline-block;font-size:16px;animation:spin 1s linear infinite;margin-right:4px}@keyframes spin{to{transform:rotate(360deg)}}.sticky-actions{position:sticky;bottom:10px;z-index:8;padding:11px;margin:18px -4px -4px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 28px rgba(28,39,69,.10)}.mini-kbc-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;margin:2px 2px 2px 0;border-radius:999px;background:#fff0f5;color:#b9426b;font-size:8px;font-weight:700;white-space:nowrap}.mini-kbc-badge i{font-size:8px}@media(max-width:1150px){.kbc-grid{grid-template-columns:repeat(3,1fr)}.identity-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:780px){.curriculum-banner{align-items:flex-start}.curriculum-tags{display:none}.kbc-grid{grid-template-columns:1fr 1fr}.journal-form-panel>.panel-body{padding:13px}.journal-section{padding:14px}.identity-summary{grid-template-columns:1fr 1fr}.sticky-actions{flex-wrap:wrap}.sticky-actions .btn{flex:1}}@media(max-width:480px){.curriculum-banner{padding:16px}.curriculum-badge{width:44px;height:44px}.curriculum-copy h2{font-size:15px}.kbc-grid{grid-template-columns:1fr}.identity-summary{grid-template-columns:1fr}.journal-section-head{align-items:flex-start}}
/* v1.2 - RPP / Modul Ajar */
.rpp-hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;padding:22px 24px;margin-bottom:18px;border:1px solid #e4e7f0;border-radius:22px;background:linear-gradient(135deg,#171b2e 0%,#242a45 58%,#37315f 100%);color:#fff;box-shadow:0 18px 42px rgba(23,27,46,.14)}
.rpp-hero:after{content:'';position:absolute;width:240px;height:240px;border-radius:50%;right:-95px;top:-125px;background:rgba(146,135,255,.17)}
.rpp-hero-icon{width:56px;height:56px;flex:0 0 auto;display:grid;place-items:center;border-radius:17px;background:linear-gradient(135deg,#766dff,#9b92ff);font-size:25px;box-shadow:0 12px 28px rgba(108,99,255,.32);z-index:1}
.rpp-hero>div:nth-child(2){flex:1;z-index:1}.rpp-hero>div:nth-child(2)>span{display:block;font-size:9px;letter-spacing:.14em;font-weight:900;color:#aaa5ff;margin-bottom:4px}.rpp-hero h2{margin:0 0 5px;font-size:20px;letter-spacing:-.04em}.rpp-hero h2 b{color:#bdb8ff}.rpp-hero p{margin:0;color:#b9c0d4;font-size:10.5px;line-height:1.55;max-width:720px}.rpp-hero>.btn{z-index:1;white-space:nowrap;background:#fff;color:#252946;border-color:#fff}.rpp-hero>.btn:hover{background:#f3f1ff}.compact-rpp-hero{padding:19px 22px}.rpp-form-panel>.panel-body{padding:22px}.rpp-large{min-height:150px}.rpp-search{display:flex;gap:8px}.rpp-search .form-control{min-width:230px}
@media(max-width:780px){.rpp-hero{align-items:flex-start;flex-wrap:wrap;padding:18px}.rpp-hero>.btn{width:100%;justify-content:center}.rpp-form-panel>.panel-body{padding:13px}.rpp-search{width:100%}.rpp-search .form-control{min-width:0;flex:1}}

/* v1.3 - Premium modal CRUD, SweetAlert & Excel import */
body.modal-open{overflow:hidden}.panel-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn-soft{background:#f2f0ff;color:#6259e8;border:1px solid #e3dfff}.btn-soft:hover{background:#ebe8ff}.btn-info-soft{background:#eef7ff;color:#3175c9;border:1px solid #d9ecff}.btn-icon-text{white-space:nowrap}.table td .actions .btn{min-width:34px}.modal-backdrop{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(18,23,38,.52);backdrop-filter:blur(6px)}.modal-backdrop.show{display:flex;animation:modalFade .16s ease-out}.modal-card{width:min(680px,100%);max-height:calc(100vh - 44px);display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:23px;box-shadow:0 34px 90px rgba(18,23,38,.25);overflow:hidden;animation:modalRise .18s ease-out}.modal-card.modal-lg{width:min(850px,100%)}.modal-card.modal-xl{width:min(1020px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfbfe)}.modal-head-copy{display:flex;gap:12px;align-items:center}.modal-head-icon{width:43px;height:43px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:#efedff;color:var(--primary);font-size:20px}.modal-head h3{margin:0;font-size:15px}.modal-head p{margin:4px 0 0;color:var(--muted);font-size:10.5px;line-height:1.45}.modal-close{width:36px;height:36px;flex:0 0 auto;border:1px solid var(--line);border-radius:11px;background:#fff;color:#6f788a;cursor:pointer;display:grid;place-items:center;font-size:19px;transition:.2s}.modal-close:hover{background:#f6f7fa;color:var(--text)}.modal-body{padding:22px;overflow:auto}.modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:15px 22px;border-top:1px solid var(--line);background:#fbfcfd}.modal-note{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;margin-bottom:15px;border:1px solid #e4e1ff;background:#f7f6ff;border-radius:12px;color:#5f5a80;font-size:10px;line-height:1.55}.modal-note i{font-size:16px;color:#756cff;margin-top:1px}.upload-drop{position:relative;padding:24px 18px;text-align:center;border:1.5px dashed #cbc7ed;border-radius:16px;background:linear-gradient(180deg,#fbfaff,#f7f6ff);transition:.2s}.upload-drop.dragover{border-color:#766dff;background:#f1efff}.upload-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-drop i{display:block;font-size:32px;color:#776eff;margin-bottom:7px}.upload-drop b{display:block;font-size:12px}.upload-drop span{display:block;margin-top:5px;color:var(--muted);font-size:9.5px}.import-file-name{margin-top:8px;font-weight:700;color:#5f58c7}.import-preview{display:none;margin-top:15px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.import-preview.show{display:block}.import-preview-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#fafbfc;border-bottom:1px solid var(--line);font-size:10px}.import-preview .table{font-size:10px}.import-preview .table th,.import-preview .table td{padding:8px 9px}.helper-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.field-inline-help{font-size:9px;color:var(--muted)}.form-control.is-invalid,.form-select.is-invalid{border-color:#eb7070;box-shadow:0 0 0 3px rgba(230,83,83,.08)}.swal2-popup{font-family:Inter,system-ui,-apple-system,sans-serif!important;border-radius:20px!important}.swal2-title{font-size:18px!important}.swal2-html-container{font-size:12px!important;line-height:1.65!important}.swal-import-errors{text-align:left;max-height:190px;overflow:auto;padding:8px 10px;border:1px solid #f0e3e3;border-radius:10px;background:#fffafa}.swal-import-errors div{padding:4px 0;border-bottom:1px dashed #f2dddd}.swal-import-errors div:last-child{border-bottom:0}@keyframes modalFade{from{opacity:0}to{opacity:1}}@keyframes modalRise{from{opacity:.5;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:780px){.panel-toolbar{width:100%}.panel-toolbar .btn{flex:1}.modal-backdrop{padding:10px}.modal-card{max-height:calc(100vh - 20px);border-radius:18px}.modal-head,.modal-body{padding:16px}.modal-foot{padding:12px 16px}.modal-body .form-grid{grid-template-columns:1fr}.modal-head-copy{align-items:flex-start}.upload-drop{padding:20px 14px}}

/* v1.4 - Profil Madrasah & Logo */
.brand-mark{overflow:hidden}.brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff;padding:4px}.login-brand .brand-mark img{padding:3px}.settings-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:24px 26px;margin-bottom:18px;border-radius:24px;background:linear-gradient(135deg,#171b2e 0%,#242a45 62%,#393265 100%);color:#fff;box-shadow:0 18px 46px rgba(23,27,46,.14)}.settings-hero:after{content:'';position:absolute;width:260px;height:260px;border-radius:50%;right:-90px;top:-145px;background:rgba(140,130,255,.16)}.settings-hero-logo{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:#fff;border:1px solid rgba(255,255,255,.55);box-shadow:0 12px 28px rgba(0,0,0,.13);overflow:hidden;z-index:1}.settings-hero-logo img{width:100%;height:100%;object-fit:contain;padding:7px}.settings-hero-logo i{font-size:31px;color:#6c63ff}.settings-hero-copy{z-index:1}.settings-hero-copy>span{display:block;font-size:9px;letter-spacing:.16em;font-weight:900;color:#aaa5ff;margin-bottom:5px}.settings-hero-copy h2{margin:0 0 6px;font-size:21px;letter-spacing:-.035em}.settings-hero-copy p{margin:0;max-width:680px;color:#b9c0d4;font-size:10.5px;line-height:1.6}.settings-hero-meta{display:flex;gap:8px;z-index:1}.settings-hero-meta>div{min-width:82px;padding:10px 11px;border:1px solid rgba(255,255,255,.10);border-radius:13px;background:rgba(255,255,255,.06);backdrop-filter:blur(8px)}.settings-hero-meta small,.settings-hero-meta b{display:block}.settings-hero-meta small{font-size:8px;color:#9da7c1;text-transform:uppercase;letter-spacing:.08em}.settings-hero-meta b{font-size:10px;margin-top:4px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.settings-main{display:flex;flex-direction:column;gap:18px}.settings-side{display:flex;flex-direction:column;gap:18px;position:sticky;top:112px}.settings-panel .panel-head h3{display:flex;align-items:center;gap:7px}.settings-panel .panel-head h3 i{color:var(--primary);font-size:17px}.settings-panel .form-label b{color:#e65353}.logo-preview{height:190px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#f7f8fb,#fff);display:grid;place-items:center;overflow:hidden;margin-bottom:12px}.logo-preview img{width:100%;height:100%;object-fit:contain;padding:20px}.logo-empty{text-align:center;color:#a2aabd}.logo-empty i{display:block;font-size:38px;margin-bottom:7px}.logo-empty span{font-size:10px}.logo-upload-box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:112px;padding:16px;border:1.5px dashed #c9c5ef;border-radius:16px;background:#faf9ff;cursor:pointer;transition:.2s}.logo-upload-box:hover{border-color:#7a72ff;background:#f5f3ff;transform:translateY(-1px)}.logo-upload-box input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.logo-upload-box i{font-size:26px;color:#746cf1;margin-bottom:5px}.logo-upload-box b{font-size:11px}.logo-upload-box span{font-size:8.5px;color:var(--muted);margin-top:4px}.logo-file-name{margin-top:8px;min-height:15px;text-align:center;font-size:9.5px;font-weight:700;color:#5e57ce;word-break:break-word}.profile-summary-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.profile-summary-row:first-child{padding-top:0}.profile-summary-row:last-child{border-bottom:0;padding-bottom:0}.profile-summary-row span{font-size:9.5px;color:var(--muted)}.profile-summary-row b{font-size:9.5px;text-align:right;max-width:180px}.danger-zone{border-color:#f4dede;background:linear-gradient(180deg,#fff,#fffafa)}.danger-zone h4{margin:0 0 5px;font-size:12px;color:#b74444}.danger-zone p{margin:0 0 12px;color:var(--muted);font-size:9.5px;line-height:1.5}.settings-savebar{position:sticky;bottom:10px;z-index:15;margin-top:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.93);backdrop-filter:blur(12px);box-shadow:0 14px 36px rgba(23,32,51,.12)}.settings-savebar>div{display:flex;align-items:center;gap:10px}.settings-savebar>div>i{width:34px;height:34px;border-radius:11px;background:#eefcf7;color:var(--success);display:grid;place-items:center;font-size:17px}.settings-savebar span b,.settings-savebar span small{display:block}.settings-savebar span b{font-size:10.5px}.settings-savebar span small{font-size:8.5px;color:var(--muted);margin-top:2px}
@media(max-width:1100px){.settings-layout{grid-template-columns:1fr}.settings-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-side .danger-zone{grid-column:1/-1}.settings-hero-meta{display:none}}
@media(max-width:780px){.settings-hero{grid-template-columns:auto 1fr;padding:18px}.settings-hero-logo{width:58px;height:58px;border-radius:16px}.settings-hero-copy h2{font-size:17px}.settings-side{display:flex}.settings-savebar{align-items:stretch;flex-direction:column}.settings-savebar .btn{width:100%}}
@media(max-width:480px){.settings-hero{grid-template-columns:1fr;text-align:center}.settings-hero-logo{margin:auto}.settings-hero-copy p{font-size:9.5px}.logo-preview{height:160px}}

/* ===== v1.5 Google Drive & async attachment upload ===== */
.google-drive-panel{margin-top:22px;scroll-margin-top:20px}
.google-drive-panel .panel-head>div h3{display:flex;align-items:center;gap:9px}
.google-drive-panel .panel-head>div h3 i{color:#1a73e8}
.drive-settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.7fr);gap:24px;align-items:start}
.drive-credential-form{min-width:0}
.drive-settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.copy-uri{display:flex;gap:8px;align-items:center;border:1px solid #e5e9f2;background:#f8fafc;border-radius:12px;padding:8px 9px 8px 12px}
.copy-uri code{min-width:0;flex:1;font-size:12px;word-break:break-all;color:#344054}
.drive-status-card{border:1px solid #e6eaf2;background:linear-gradient(145deg,#fbfcff,#f6f9ff);border-radius:18px;padding:22px;box-shadow:0 14px 35px rgba(40,55,90,.06)}
.drive-status-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff;box-shadow:0 8px 22px rgba(46,92,170,.12);margin-bottom:15px;font-size:27px;color:#1a73e8}
.drive-status-card h4{font-size:17px;margin:0 0 7px;color:#1f2937}.drive-status-card p{color:#667085;line-height:1.65;margin:0 0 16px;font-size:13px}
.drive-status-detail{display:flex;justify-content:space-between;gap:12px;border-top:1px dashed #dfe5ef;padding:11px 0;font-size:12px}.drive-status-detail span{color:#778094}.drive-status-detail code,.drive-status-detail b{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drive-scope-note{display:flex;gap:10px;align-items:flex-start;padding:12px;background:#eef7ff;border:1px solid #d9ebff;border-radius:12px;color:#35547a;font-size:12px;line-height:1.5}.drive-scope-note i{font-size:18px;color:#1a73e8;margin-top:1px}

.drive-uploader{margin-top:4px}
.drive-offline-note{display:flex;gap:14px;align-items:center;padding:18px;border:1px dashed #d9dee9;border-radius:15px;background:#fafbfc}.drive-offline-note>i{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#fff;color:#687387;font-size:23px;box-shadow:0 5px 15px rgba(28,39,60,.06)}.drive-offline-note div{display:flex;flex-direction:column;gap:4px}.drive-offline-note b{font-size:13px;color:#344054}.drive-offline-note span{font-size:12px;color:#778094}
.drive-dropzone{display:flex;align-items:center;gap:15px;padding:18px;border:1.5px dashed #cfd7e6;border-radius:16px;background:linear-gradient(180deg,#fbfcff,#f8faff);cursor:pointer;transition:.2s ease;outline:none}
.drive-dropzone:hover,.drive-dropzone.dragover,.drive-dropzone:focus{border-color:#7c73ff;background:#f7f6ff;box-shadow:0 0 0 4px rgba(108,99,255,.07)}
.drive-drop-icon{width:47px;height:47px;border-radius:14px;background:#fff;display:grid;place-items:center;font-size:23px;color:#6c63ff;box-shadow:0 7px 20px rgba(65,72,130,.1);flex:0 0 auto}
.drive-dropzone>div:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.drive-dropzone b{font-size:13px;color:#273246}.drive-dropzone span{font-size:12px;color:#7c8597;line-height:1.45}
.drive-upload-queue{display:grid;gap:9px;margin-top:11px}.drive-queue-item{border:1px solid #e6eaf2;border-radius:13px;padding:11px 13px;background:#fff}.drive-queue-item.success{border-color:#bfe6d2;background:#f8fffb}.drive-queue-item.error{border-color:#f1c5c5;background:#fffafa}
.drive-queue-top{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:12px;color:#657087}.drive-queue-name{min-width:0;display:flex;align-items:center;gap:7px}.drive-queue-name b{max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344054}.drive-queue-name i{color:#6c63ff;font-size:16px}
.drive-progress{height:6px;background:#edf0f5;border-radius:99px;overflow:hidden;margin:9px 0 7px}.drive-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#6c63ff,#8e86ff);border-radius:inherit;transition:width .15s linear}.drive-queue-item.success .drive-progress i{background:#29a36a}.drive-queue-item.error .drive-progress i{background:#e65353}.drive-queue-item small{font-size:11px;color:#81899a}
.drive-attachment-list{display:grid;gap:9px;margin-top:12px}.drive-attachment{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e6eaf2;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(28,39,60,.025)}.drive-file-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#f0efff;color:#6c63ff;font-size:18px;flex:0 0 auto}.drive-file-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.drive-file-copy b{font-size:12px;color:#344054;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drive-file-copy span{font-size:11px;color:#8a93a4}.drive-file-actions{display:flex;gap:5px}.drive-file-actions .icon-btn{width:34px;height:34px}.drive-file-actions .icon-btn.danger{color:#d64f4f;background:#fff5f5;border:1px solid #fde0e0}.drive-file-actions .icon-btn.danger:hover{background:#ffecec}

@media(max-width:900px){.drive-settings-grid{grid-template-columns:1fr}.drive-status-card{order:-1}}
@media(max-width:640px){.drive-dropzone{align-items:flex-start;flex-wrap:wrap}.drive-dropzone .btn{width:100%;justify-content:center}.copy-uri{align-items:stretch;flex-direction:column}.copy-uri .btn{width:100%;justify-content:center}.drive-settings-actions>*{width:100%;justify-content:center}.drive-attachment{align-items:flex-start}.drive-file-actions{margin-left:auto}.drive-file-copy b{white-space:normal;word-break:break-word}}

/* ===== v1.6 Absensi Siswa ===== */
.attendance-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:25px 27px;margin-bottom:18px;border-radius:24px;background:linear-gradient(135deg,#171b2e 0%,#242a45 60%,#35305c 100%);color:#fff;box-shadow:0 18px 46px rgba(23,27,46,.14)}.attendance-hero:after{content:'';position:absolute;width:270px;height:270px;border-radius:50%;right:-80px;top:-175px;background:rgba(124,115,255,.22)}.attendance-hero>div,.attendance-hero>.btn{position:relative;z-index:1}.attendance-hero span{display:block;font-size:9px;font-weight:900;letter-spacing:.17em;color:#aaa5ff;margin-bottom:6px}.attendance-hero h2{margin:0 0 7px;font-size:22px;letter-spacing:-.04em}.attendance-hero p{max-width:760px;margin:0;color:#bac1d6;font-size:10.5px;line-height:1.65}.admin-attendance-hero{background:linear-gradient(135deg,#162033 0%,#202e48 60%,#293e62 100%)}
.attendance-stats .stat-icon{background:linear-gradient(145deg,#f0efff,#e7e4ff)}.attendance-count{display:inline-grid;place-items:center;min-width:32px;height:30px;border-radius:10px;font-weight:800;font-size:11px}.attendance-count.success{background:#eaf8f2;color:#218660}.attendance-count.warning{background:#fff6e8;color:#b6791d}.attendance-count.info{background:#ebf4ff;color:#3474bb}.attendance-count.danger{background:#fff0f0;color:#c34949}.attendance-inline-counts{display:flex;gap:5px;flex-wrap:wrap}.attendance-inline-counts span{padding:4px 6px;border-radius:8px;font-size:9px;font-weight:800}.attendance-inline-counts .success{background:#eaf8f2;color:#218660}.attendance-inline-counts .warning{background:#fff6e8;color:#b6791d}.attendance-inline-counts .info{background:#ebf4ff;color:#3474bb}.attendance-inline-counts .danger{background:#fff0f0;color:#c34949}.icon-lock{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f4f5f8;color:#8b93a5;border:1px solid var(--line)}
.attendance-modal{width:min(1120px,100%)}.attendance-form-head{padding-bottom:18px;border-bottom:1px solid var(--line)}.attendance-roster-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0 10px}.attendance-roster-head>div:first-child b,.attendance-roster-head>div:first-child span{display:block}.attendance-roster-head b{font-size:12px}.attendance-roster-head span{font-size:9.5px;color:var(--muted);margin-top:3px}.attendance-roster-actions{display:flex;gap:8px;align-items:center}.attendance-live-summary{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.attendance-live-summary span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:9px;font-size:9px;font-weight:700}.attendance-live-summary b{font-size:10px}.sum-hadir{background:#eaf8f2;color:#218660}.sum-sakit{background:#fff6e8;color:#b6791d}.sum-izin{background:#ebf4ff;color:#3474bb}.sum-alpa{background:#fff0f0;color:#c34949}.attendance-roster{max-height:430px;border:1px solid var(--line);border-radius:14px}.attendance-roster .table{margin:0}.attendance-roster .table thead th{position:sticky;top:0;z-index:2;background:#f8f9fb}.attendance-roster .form-select{min-width:120px}.attendance-roster .form-control{min-width:160px}.attendance-lock-note{display:flex;gap:11px;align-items:flex-start;margin-bottom:10px;padding:11px 12px;border:1px solid #f1d7d7;border-radius:12px;background:#fff8f8;color:#8e4545}.attendance-lock-note i{font-size:18px}.attendance-lock-note b,.attendance-lock-note span{display:block}.attendance-lock-note b{font-size:10.5px}.attendance-lock-note span{font-size:9px;line-height:1.5;margin-top:2px}.attendance-loading{padding:24px;text-align:center;color:var(--muted);font-size:10px}.attendance-loading i{display:inline-block;margin-right:6px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:780px){.attendance-hero{align-items:stretch;flex-direction:column;padding:20px}.attendance-hero .btn{width:100%;justify-content:center}.attendance-roster-head{align-items:flex-start;flex-direction:column}.attendance-roster-actions{width:100%;justify-content:space-between}.attendance-live-summary{display:grid;grid-template-columns:1fr 1fr}.attendance-roster{max-height:55vh}.attendance-modal .modal-body{padding:15px}.attendance-inline-counts{min-width:120px}}

/* ===== v1.7 Siswa Diampu + Import User Guru ===== */
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:780px){.hero-actions{width:100%;justify-content:flex-start}.hero-actions .btn{flex:1 1 auto}}
