[hidden]{display:none!important}a.button,a.text-btn{cursor:pointer}details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}.chart svg{width:100%;height:100%}.native-chart-text{font-family:Inter,sans-serif;fill:#8790a1;font-size:11px}.native-offline{padding:24px;max-width:650px;margin:70px auto}.import-progress{margin:16px 0}.field input[type=file]{background:#fff}.form-message{margin:12px 0;grid-column:1/-1}.offline-placeholder{min-height:100vh;display:flex;align-items:center;justify-content:center}.page-heading a{display:inline-flex;align-items:center;gap:8px}.verify-summary summary{margin-left:auto}.native-empty{grid-column:1/-1}.chart{position:relative}.chart .empty{height:100%}.status-toggle button{min-width:30px}.table-pagination-empty{margin-top:16px}.busy{opacity:.6;pointer-events:none}
.tabs a{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 16px;color:#818b9e}.tabs a.active{color:#2563eb;border-bottom-color:#2563eb}.pending-foot a{color:inherit;text-decoration:underline;margin-left:auto}.welcome .live-pill [data-online-label]{color:inherit;font-size:inherit}.verify-card>.table-wrap{margin-top:18px}
@media(max-width:768px){.tabs a{font-size:10px;padding:11px 10px;white-space:nowrap}}

.attendance-table .status-toggle button{width:auto;min-width:48px;padding:6px 8px}.attendance-table .status-toggle{flex-wrap:wrap}

.badge.draft{background:#edf0f5;color:#475569}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:20px 18px;text-decoration:none;color:#10213a;border-bottom:1px solid #e7eafa;flex-shrink:0}.sidebar-brand img{width:44px;height:44px;object-fit:contain}.sidebar-brand span{font-size:14px;font-weight:700}.sidebar-brand small,.sidebar-profile small{display:block;font-size:11px;font-weight:400;color:#78869d;margin-top:4px}.sidebar-profile{display:flex;align-items:center;gap:10px;text-decoration:none;color:#10213a;font-size:12px}.sidebar-bottom{display:flex;flex-direction:column;gap:12px}.sidebar-bottom button{display:flex;align-items:center;gap:8px}.profile-details{display:grid;grid-template-columns:160px 1fr;gap:14px;margin:24px 0}.profile-details dt{color:#78869d}.profile-details dd{margin:0;overflow-wrap:anywhere}.login-brand .brand-logo{width:50px;height:50px;object-fit:contain}[data-schedule-teacher]{min-width:180px;max-width:260px}[data-schedule-teacher].schedule-changed{border-color:#2563eb;background:#eff6ff}@media(max-width:600px){.profile-details{grid-template-columns:1fr;gap:8px}.sidebar-brand{padding:14px}.table-toolbar{flex-wrap:wrap;gap:12px}}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;white-space:nowrap}.theme-toggle [data-theme-icon]{font-size:20px;line-height:1}
html[data-theme=dark] body{background:#0b1220;color:#e2e8f0}
html[data-theme=dark] :is(.topbar,.sidebar,.panel,.modal,.notification-pop,.summary-strip,.filter-bar,.save-bar,.verify-card,.pending-card,.grade-card,.table-toolbar,.login-form-side,.welcome){background:#111c2e;color:#e2e8f0;border-color:#334155}
html[data-theme=dark] :is(.sidebar-brand,.sidebar-profile,.profile-details dd,.page-heading h1,.panel h2,.panel h3,.brand b,.sidebar-brand span,.pending-row b,td b,.welcome h1,.welcome h2,.login-form h2){color:#f1f5f9}
html[data-theme=dark] :is(button,.button,input,select,textarea,.search,.global-search){background:#1e293b;color:#e2e8f0;border-color:#475569}
html[data-theme=dark] :is(button.primary,.button.primary){background:#2563eb;color:#fff;border-color:#3b82f6}
html[data-theme=dark] :is(th,thead,.attendance-summary,.verify-summary,.queue,.info-banner,.grade-card){background:#1e293b;color:#cbd5e1}
html[data-theme=dark] :is(td,th,.sidebar-bottom,.sidebar-brand,.table-toolbar,.panel-heading,.modal-head,.modal-actions){border-color:#334155}
html[data-theme=dark] :is(.muted,small,.nav-label,.profile-details dt,.page-heading p,.panel p,.brand small,.sidebar-profile small,.login-form>p){color:#aebdd1}
html[data-theme=dark] :is(.sidebar nav a,.text-btn,.tabs a){color:#b9c9df}
html[data-theme=dark] :is(.sidebar nav a.active,.sidebar nav a:hover,.tabs a.active){background:#1e3a5f;color:#93c5fd}
html[data-theme=dark] :is(tbody tr:hover,.table-wrap tbody tr:hover){background:#182740}
html[data-theme=dark] :is(.avatar,.icon-tile,.year-pill){background:#203655;color:#bfdbfe}
html[data-theme=dark] .native-chart-text{fill:#b9c9df}
html[data-theme=dark] [data-schedule-teacher].schedule-changed{background:#1e3a5f;border-color:#60a5fa}
html[data-theme=dark] input::placeholder{color:#94a3b8}
@media(max-width:600px){.theme-toggle{padding:7px 9px;font-size:11px}}
@media print{html[data-theme=dark] body,html[data-theme=dark] :is(.panel,td,th){background:#fff!important;color:#000!important}.theme-toggle{display:none!important}}

.admin-navigation{margin-bottom:24px}.admin-navigation h2{font-size:18px;font-weight:700;margin:0 0 12px}.admin-tabs{display:flex;overflow-x:auto;gap:4px}.admin-tabs a{white-space:nowrap}
html[data-theme=dark] .sidebar nav a:not(.active):hover{background:#182740;color:#e2e8f0}
html[data-theme=dark] .sidebar nav a.active{background:#2563eb;color:#fff;box-shadow:inset 3px 0 0 #93c5fd}

.workspace,.page-content,.users-panel{min-width:0}.users-panel{max-width:100%;overflow:hidden}.users-panel .table-wrap{width:100%;overflow:visible}.users-table{width:100%;table-layout:fixed;min-width:0!important}.users-table :is(th,td){white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top}.users-table td:last-child button{display:inline-flex;margin:3px 3px 3px 0;max-width:100%;white-space:normal;justify-content:center}.verification-code{font-size:40px;font-weight:800;letter-spacing:8px;font-family:monospace}.token-controls{display:grid;gap:12px;margin:20px 0}.token-controls label{display:flex;gap:10px;align-items:center}
@media(max-width:600px){.users-table :is(th,td){padding:8px 4px;font-size:10px}.users-table td:last-child button{padding:5px 3px;font-size:9px}}

.admin-tabs{flex-wrap:wrap;overflow:visible}.admin-tabs a{padding:10px 12px}

.pagination{gap:16px;flex-wrap:wrap}.pagination-controls,.pagination-pages{display:flex;align-items:center;gap:6px}.pagination-controls button{min-width:36px;min-height:36px;padding:7px 11px;white-space:nowrap}.pagination-pages button{border-color:transparent;background:transparent;color:#334155}.pagination-pages button.active{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:700}.pagination-ellipsis{padding:0 7px;color:#94a3b8}.pagination-controls button:disabled{opacity:.5;cursor:default}.pagination-controls button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}html[data-theme=dark] .pagination-pages button{color:#cbd5e1}html[data-theme=dark] .pagination-pages button.active{background:#2563eb;color:#fff}.pagination [data-page-summary]{overflow-wrap:anywhere}
@media(max-width:600px){.pagination{flex-direction:column;align-items:flex-start}.pagination-controls{max-width:100%;flex-wrap:wrap}.pagination-controls button{min-width:30px;min-height:32px;padding:6px 8px;font-size:11px}.pagination-pages{gap:2px}}

/* Shared shell: desktop can collapse; tablets and phones use a drawer. */
:root{--sidebar-width:252px;--topbar-height:96px}
.mobile-menu{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;margin:0;border:0;background:transparent;color:inherit}
.mobile-menu:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.topbar{height:var(--topbar-height);left:var(--sidebar-width);transition:left .2s ease}
.brand{width:auto;min-width:0;flex:0 1 auto}.brand>div{min-width:0}.brand b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-logo{flex-shrink:0}
.topbar-right{flex-shrink:0}.global-search input{min-width:0}
.sidebar{top:0;padding-top:0;width:var(--sidebar-width);z-index:40;transform:translateX(0);visibility:visible;transition:transform .2s ease}
.sidebar-heading{position:relative;display:flex;align-items:center;height:var(--topbar-height);min-height:var(--topbar-height);margin:0 -16px 20px;padding:0 16px;border-bottom:1px solid #e1e5f1;flex-shrink:0}.sidebar-close{display:none}
.sidebar-nav{min-height:0}.sidebar-profile span{min-width:0;overflow-wrap:anywhere}
.workspace{margin-left:var(--sidebar-width);padding-top:var(--topbar-height);max-width:100%}
html.sidebar-collapsed .sidebar{transform:translateX(-100%);visibility:hidden}
html.sidebar-collapsed .workspace{margin-left:0}
html.sidebar-collapsed .topbar{left:0}
.workspace main,.panel,.filter-bar .field,.form-grid>*,.settings-grid>*,.analytics-grid>*,.guide-grid>*{min-width:0}
.page-content{width:100%;max-width:100%;overflow-wrap:anywhere}
.actions,.settings-actions,.save-bar,.panel-heading,.workspace footer,.logo-upload{flex-wrap:wrap}
.search{min-width:0;max-width:100%}.search input{min-width:0}
.field :is(input,select,textarea){min-width:0;max-width:100%}
.filter-bar{flex-wrap:wrap}.filter-bar .field{flex:1 1 160px}
.notification-pop{max-width:calc(100vw - 24px)}
.tabs{max-width:100%}.admin-tabs a{white-space:normal}
.modal{overflow-wrap:anywhere}.modal-actions{flex-wrap:wrap}.modal-head h2{min-width:0;overflow-wrap:anywhere}
.sidebar-scrim{position:fixed;inset:0;background:#101a3e60;z-index:35}
@media(min-width:1550px){:root{--sidebar-width:260px}}
@media(min-width:1025px) and (max-width:1250px){:root{--sidebar-width:228px}.global-search{display:none}.year-pill{display:none}.brand small{font-size:8px}}
@media(max-width:1024px){
    :root{--sidebar-width:272px;--topbar-height:96px}
    .topbar{left:0;padding:0 16px;gap:12px}.brand{gap:8px}.brand b{font-size:16px}.brand small{font-size:8px}.year-pill,.global-search{display:none}.topbar-right{gap:8px}
    .sidebar-close{display:inline-flex;position:absolute;right:14px;top:calc(50% - 16px);width:32px;height:32px;padding:5px;background:transparent;border:0;color:inherit}.sidebar .sidebar-heading .sidebar-brand{padding-right:38px}
    .sidebar{width:min(var(--sidebar-width),calc(100vw - 48px));padding:0 16px 16px;transform:translateX(-100%);visibility:hidden}
    html.sidebar-open .sidebar{transform:translateX(0);visibility:visible}
    html.sidebar-open,html.sidebar-open body{overflow:hidden}
    .sidebar .nav-label,.sidebar .nav-group a>span{display:block}.sidebar .sidebar-bottom{display:flex}.sidebar .nav-group a{justify-content:flex-start;padding:12px}
    .workspace,html.sidebar-collapsed .workspace{margin-left:0;padding-top:var(--topbar-height)}
    .workspace main{padding:22px}.analytics-grid,.settings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
    .topbar{padding:0 10px;gap:6px}.brand{gap:6px;flex:1}.brand-logo{width:30px;height:30px}.brand b{font-size:14px}.brand small{display:none}.topbar-right{gap:4px}.theme-toggle{width:40px;height:44px;padding:7px}.theme-toggle [data-theme-label]{display:none}.notification-btn{width:40px;height:44px;padding:7px}
    .workspace main{padding:18px 12px 24px}.workspace footer{padding:12px;gap:8px}.footer-version{margin-left:0;width:100%}
    .panel{padding:16px}.form-grid,.guide-grid{grid-template-columns:minmax(0,1fr)}.form-grid>*{grid-column:1/-1}
    .page-heading .actions{flex-wrap:wrap;gap:8px}.page-heading h1{font-size:22px}
    .filter-bar .field,.report-filters .field{min-width:0;flex-basis:100%}.table-toolbar>*{max-width:100%}
    .table-toolbar .search{flex-basis:100%}.save-bar{flex-direction:column;align-items:stretch}.save-bar button{justify-content:center}
    .notification-pop{position:fixed;top:calc(var(--topbar-height) + 4px);right:12px;width:290px}.admin-tabs a{font-size:12px;padding:10px 8px}
    .users-table,.users-table tbody,.users-table tr,.users-table td{display:block;width:100%}
    .users-table colgroup,.users-table thead{display:none}.users-table tr{border:1px solid #e1e5f1;border-radius:10px;margin-bottom:14px;padding:8px 0}
    .users-table td{padding:8px 12px;font-size:12px;border:0}.users-table td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:#78869d;margin-bottom:4px}
    .users-table td small{font-size:11px}.users-table td:last-child button{padding:8px;font-size:11px;min-height:36px}
    .modal{padding:16px;max-height:calc(100dvh - 28px)}.verification-code{font-size:32px;letter-spacing:5px}
    html[data-theme=dark] .users-table tr{border-color:#334155}html[data-theme=dark] .users-table td::before{color:#aebdd1}
}
@media print{.workspace,html.sidebar-collapsed .workspace{margin:0;padding:0}.sidebar-scrim{display:none!important}}

/* School identity belongs above the navigation; the header carries the NPSN. */
.topbar>.brand{flex:0 0 auto}
.school-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0;color:#10213a;font-size:15px;line-height:1.4}
.school-identity b{font-weight:700}.school-identity>span{font-size:13px;color:#64748b;white-space:nowrap}
.sidebar .sidebar-brand{gap:10px;align-items:center;margin:0;padding:0;flex:1;min-width:0;border:0}
.sidebar .sidebar-brand img{width:40px;height:40px;flex-shrink:0}
.sidebar .sidebar-brand>span{min-width:0;flex:1}.sidebar-brand b{display:block;font-size:14px;line-height:1.35;font-weight:700}
.sidebar .sidebar-brand small{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.15px;margin-top:4px;color:#52627b}
html[data-theme=dark] .school-identity{color:#f1f5f9}html[data-theme=dark] .school-identity>span{color:#aebdd1}html[data-theme=dark] .sidebar-brand b{color:#f1f5f9}
@media(max-width:600px){.school-identity{display:block;flex:1;font-size:12px;line-height:1.4}.school-identity>span{display:block;font-size:12px;margin-top:2px}.topbar>.brand{gap:0}}

/* Metallic buttons for the admin subpages. */
.tabs.admin-tabs{gap:10px;border-bottom:0;margin-bottom:0;padding:2px 0 4px;overflow:visible}
.tabs.admin-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:11px 16px;border:1px solid #c4ccd5;border-radius:12px;background:linear-gradient(145deg,#fafbfc 0%,#e3e7ec 52%,#cfd6de 100%);color:#344256;font-size:13px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;box-shadow:inset 0 1px 0 #fff,0 2px 4px #17203312;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.tabs.admin-tabs a:hover{background:linear-gradient(145deg,#fff,#d5dce4);border-color:#94a3b8;box-shadow:inset 0 1px 0 #fff,0 3px 7px #1720331c}
.tabs.admin-tabs a.active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:inset 0 1px 0 #ffffff40,0 3px 7px #17203326}
.tabs.admin-tabs a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
html[data-theme=dark] .tabs.admin-tabs a{background:linear-gradient(145deg,#465366,#293444);border-color:#64748b;color:#e2e8f0;box-shadow:inset 0 1px 0 #ffffff1f,0 2px 5px #0003}
html[data-theme=dark] .tabs.admin-tabs a:hover{background:linear-gradient(145deg,#59697f,#374558);border-color:#94a3b8;color:#fff}
html[data-theme=dark] .tabs.admin-tabs a.active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:inset 0 1px 0 #ffffff40,0 3px 7px #0003}
@media(max-width:600px){.tabs.admin-tabs{gap:8px}.tabs.admin-tabs a{flex:1 1 135px;padding:10px 12px;font-size:12px}}

.classes-table{width:100%}.classes-table th,.classes-table td{vertical-align:top}.classes-table td:first-child{min-width:120px;overflow-wrap:anywhere}.classes-table select{width:100%;min-width:120px;max-width:240px;font-size:12px}.classes-table [data-class-field=wali_guru_id]{min-width:180px}.classes-table [data-class-field=semester]{min-width:120px}.classes-table .class-changed td{background:#eff6ff}.secretary-dropdown{min-width:190px;max-width:250px}.secretary-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #d7dcf2;border-radius:8px;background:#fff;color:#253551;font-size:12px;min-height:39px}.secretary-dropdown summary span:first-child{overflow-wrap:anywhere}.secretary-dropdown summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.secretary-options{border:1px solid #d7dcf2;border-radius:8px;padding:12px;margin-top:6px;max-height:230px;overflow:auto;background:#fff}.secretary-options p{font-size:11px;margin:0 0 10px}.secretary-options .checkbox{align-items:flex-start;margin:10px 0;font-size:12px}.secretary-options input{flex-shrink:0}.secretary-options small{display:block;font-size:10px;color:#78869d;line-height:1.5}.summary-strip [data-class-change-summary]{margin-left:auto;font-size:12px}html[data-theme=dark] .classes-table .class-changed td{background:#1e3a5f}html[data-theme=dark] .secretary-dropdown summary,html[data-theme=dark] .secretary-options{background:#1e293b;border-color:#475569;color:#e2e8f0}
@media(min-width:1025px){.classes-table{table-layout:fixed}.classes-table th,.classes-table td{padding:14px 10px;overflow-wrap:anywhere}.classes-table th:nth-child(1){width:13%}.classes-table th:nth-child(2){width:19%}.classes-table th:nth-child(3){width:21%}.classes-table th:nth-child(4){width:13%}.classes-table th:nth-child(5){width:12%}.classes-table th:nth-child(6){width:10%}.classes-table th:nth-child(7){width:7%}.classes-table th:nth-child(8){width:5%}.classes-table td:first-child,.classes-table select,.classes-table [data-class-field=wali_guru_id],.classes-table [data-class-field=semester],.classes-table .secretary-dropdown{min-width:0;max-width:100%}.classes-table .row-actions{gap:0}.classes-table .row-actions button{padding:4px}}

.report-document-summary{margin-top:22px}.report-document-summary h2{margin-bottom:12px}.report-document-summary p{margin-top:6px}.report-document-summary [data-report-document-classes]{margin:10px 0;padding:10px 14px;border-left:3px solid #2563eb;background:#eff6ff;border-radius:6px}html[data-theme=dark] .report-document-summary [data-report-document-classes]{background:#1e293b}html[data-theme=dark] .sidebar-heading{border-color:#334155}.year-pill{font-size:12px}.pdf-toolbar>div:first-child{min-width:0;flex:1}.pdf-toolbar p{margin-top:5px;font-size:12px}.pdf-toolbar{align-items:flex-start;gap:16px}.pdf-preview{height:55vh}
