:root {
	--ink: #243447;
	--muted: #64748b;
	--navy: #183153;
	--navy-dark: #142746;
	--blue: #2875d7;
	--blue-dark: #1f64bd;
	--blue-light: #eaf2ff;
	--line: #dce5f0;
	--paper: #f3f6fb;
	--white: #fff;
	font-family: "Segoe UI", Arial, sans-serif;
	color: var(--ink);
	background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.admin-shell { min-height: 100vh; }
.admin-topbar { position: sticky; z-index: 3; top: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.admin-brand { display: flex; align-items: center; gap: 11px; color: #1c4c83; font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.admin-brand-mark { display: block; width: 35px; height: 35px; flex: 0 0 auto; object-fit: contain; border: 1px solid rgba(220,229,240,.75); border-radius: 8px; background: #fff; }
.admin-brand small { display: block; margin-top: 3px; color: #8292a7; font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.admin-user { display: flex; align-items: center; gap: 13px; color: #667892; font-size: 12px; }
.admin-user strong { color: var(--ink); }
.logout-form { margin: 0; }
.logout-button { padding: 9px 13px; color: #526984; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: #b03c3c; border-color: #ebcaca; }
.admin-body { display: grid; min-height: calc(100vh - 68px); grid-template-columns: 230px minmax(0, 1fr); }
.admin-sidebar { padding: 27px 15px; border-right: 1px solid var(--line); background: #fff; }
.sidebar-label { margin: 0 10px 12px; color: #98a5b4; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; color: #687b93; border-radius: 7px; font-size: 12px; }
.admin-nav a:hover { background: #f4f8fd; }
.admin-nav a.active { color: #246dc2; background: #edf5ff; font-weight: 650; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.admin-content { width: min(1200px, 100%); padding: 32px clamp(22px, 4vw, 54px) 55px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-heading .eyebrow, .setup-card .eyebrow { margin: 0 0 8px; color: #6182a8; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.page-heading h1, .setup-card h1 { margin: 0; color: #1d385b; font-size: clamp(24px, 3vw, 31px); letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 650; cursor: pointer; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: #466380; border-color: var(--line); background: #fff; }
.button-secondary:hover { border-color: #b8c9dd; }
.button-danger { color: #a53a3a; border-color: #f0d9d9; background: #fff; }
.button-danger:hover { background: #fff7f7; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card, .panel, .form-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(36,66,101,.025); }
.stat-card { padding: 18px 19px; }
.stat-card .stat-label { color: #75859a; font-size: 11px; }
.stat-card .stat-number { display: block; margin-top: 12px; color: #183a65; font-size: 31px; font-weight: 700; letter-spacing: -.04em; }
.stat-card .stat-note { display: block; margin-top: 4px; color: #8c9bad; font-size: 10px; }
.panel { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 14px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 15px; color: #183153; background: #eaf2ff; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 15px; color: #526881; border-top: 1px solid #dce5f0; font-size: 11px; }
tbody tr { background: #fff; }
tbody tr:hover { background: #eaf2ff; }
td strong { color: #2b4260; font-size: 12px; font-weight: 650; }
.table-actions { display: flex; align-items: center; gap: 7px; }
.table-actions .button { min-height: 31px; padding-inline: 10px; font-size: 10px; }
.teacher-actions { max-width: 470px; flex-wrap: wrap; }
.teacher-actions form { margin: 0; }
.teacher-actions svg { width: 14px; height: 14px; }
.teacher-delete-dialog { width: min(440px, calc(100% - 28px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 18px 60px rgba(20,39,70,.24); }
.teacher-delete-dialog::backdrop { background: rgba(15,29,49,.55); }
.teacher-delete-form { padding: 23px; }
.teacher-delete-form .eyebrow { margin: 0 0 7px; color: #8a6670; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.teacher-delete-form h2 { margin: 0 0 9px; color: #243b59; font-size: 18px; }
.teacher-delete-form > p:not(.eyebrow) { margin: 0 0 15px; color: #64748b; font-size: 12px; line-height: 1.5; }
.teacher-delete-details { display: grid; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.teacher-delete-details div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 11px; }
.teacher-delete-details dt { color: #718198; }
.teacher-delete-details dd { margin: 0; color: #2b4260; font-weight: 650; overflow-wrap: anywhere; }
.teacher-delete-form .teacher-delete-note { margin: 12px 0 0; font-size: 10px; }
.teacher-delete-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.teacher-delete-actions .button-danger { color: #fff; border-color: #b74343; background: #b74343; }
.teacher-delete-actions .button-danger:hover { background: #9e3434; }
.empty-state { padding: 30px 18px; color: #7f8ea1; text-align: center; font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #32714e; border-radius: 999px; background: #eaf7ef; font-size: 9px; font-weight: 650; white-space: nowrap; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.inactive { color: #8a7070; background: #f4eded; }
.flash, .alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #cce7d5; border-radius: 8px; color: #28623e; background: #f0faf3; font-size: 12px; line-height: 1.5; }
.flash.error { color: #8b3c3c; border-color: #f0d5d5; background: #fff6f6; }
.alert-error { color: #8b3c3c; border-color: #f0d5d5; background: #fff6f6; }
.alert-success { color: #28623e; }
.guru-grid { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.5fr); align-items: start; gap: 18px; }
.form-card { padding: 19px; }
.teacher-form-card { width: min(560px, 100%); padding: 22px; }
.form-card h2 { margin: 0 0 7px; font-size: 15px; }
.form-card > p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-stack { display: grid; gap: 13px; }
.teacher-form-card .form-stack { gap: 16px; }
.teacher-form-card .form-stack > .button { width: 100%; min-height: 44px; margin-top: 1px; }
.form-stack label { display: grid; gap: 6px; color: #4b617c; font-size: 11px; font-weight: 650; }
.form-stack input, .search-field { width: 100%; min-height: 40px; padding: 9px 11px; color: #263f5e; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; font-size: 12px; }
.form-stack input:focus, .search-field:focus { outline: 3px solid rgba(40,117,215,.14); border-color: #2875d7; }
.hint { color: #8998a9; font-size: 10px; font-weight: 400; }
.filter-form { display: flex; gap: 8px; }
.filter-form .search-field { width: 210px; min-height: 34px; padding: 7px 10px; }
.filter-form .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.qr-page { display: grid; min-height: 100vh; place-items: center; padding: 30px 15px; background: var(--paper); }
.qr-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgba(32,62,96,.08); text-align: center; }
.qr-school-logo { display: block; width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-card h1 { margin: 0 0 6px; font-size: 22px; }
.qr-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.qr-image { display: inline-grid; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-image svg { display: block; width: min(280px, 65vw); height: auto; }
.qr-meta { margin: 16px 0; padding: 11px; border-radius: 7px; background: #f5f8fc; color: #637992; font-size: 11px; }
.qr-actions { display: flex; justify-content: center; gap: 8px; }
.bulk-qr-page { min-height: 100vh; background: #edf2f8; font-family: "Segoe UI", Arial, sans-serif; }
.bulk-toolbar { position: sticky; z-index: 2; top: 0; display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.bulk-toolbar > div:first-child { display: grid; gap: 4px; color: #264564; font-size: 13px; }
.bulk-toolbar > div:first-child span { color: var(--muted); font-size: 10px; }
.bulk-qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); justify-items: center; align-items: start; gap: 20px; width: min(100%, 1120px); margin: 26px auto; padding: 0 20px; }
.teacher-id-card { position: relative; display: flex; width: min(100%, 430px); min-width: 0; aspect-ratio: 85.6 / 53.98; flex-direction: column; overflow: hidden; border: 1px solid #d7e0eb; border-radius: 11px; background: #fff; box-shadow: 0 10px 28px rgba(20,43,74,.13); break-inside: avoid; page-break-inside: avoid; }
.teacher-card-header { display: flex; height: 19%; min-height: 0; flex: 0 0 19%; align-items: center; gap: 10px; padding: 0 5%; color: #fff; background: #142b4a; }
.teacher-card-logo { display: block; width: 11%; height: auto; max-height: 72%; flex: 0 0 auto; aspect-ratio: 1; object-fit: contain; border-radius: 5px; background: #fff; }
.teacher-card-school { display: grid; min-width: 0; gap: 3px; }
.teacher-card-school strong { color: #fff; font-size: clamp(10px, 2.7vw, 14px); font-weight: 750; letter-spacing: .025em; line-height: 1.1; }
.teacher-card-school span { color: #c3d2e4; font-size: clamp(6px, 1.45vw, 8px); font-weight: 650; letter-spacing: .13em; line-height: 1.1; }
.teacher-card-content { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(0, 1fr) 31%; align-items: center; gap: 4%; padding: 4% 5%; }
.teacher-card-identity { min-width: 0; }
.teacher-card-eyebrow { margin: 0 0 6px; color: #2875d7; font-size: clamp(7px, 1.55vw, 9px); font-weight: 750; letter-spacing: .11em; }
.teacher-card-identity h1 { margin: 0 0 5px; color: #142b4a; font-size: clamp(13px, 3.2vw, 18px); font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.teacher-card-name.is-long { font-size: clamp(11px, 2.7vw, 15px); }
.teacher-card-role { margin: 0 0 7px; color: #58718f; font-size: clamp(8px, 1.7vw, 10px); font-weight: 700; letter-spacing: .1em; }
.teacher-card-nip { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; color: #354c69; font-size: clamp(8px, 1.8vw, 10px); line-height: 1.35; overflow-wrap: anywhere; }
.teacher-card-nip span { color: #7b8da4; font-weight: 700; letter-spacing: .06em; }
.teacher-card-qr-column { display: grid; min-width: 0; justify-items: center; gap: 5px; }
.teacher-card-qr { display: grid; width: 100%; max-width: 27mm; aspect-ratio: 1; place-items: center; padding: 1.2mm; border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; }
.teacher-card-qr svg { display: block; width: 100%; height: auto; }
.teacher-card-status { display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-size: clamp(6px, 1.4vw, 8px); font-weight: 750; letter-spacing: .06em; white-space: nowrap; }
.teacher-card-status > span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.teacher-card-status.is-active { color: #188451; }
.teacher-card-status.is-active > span { background: #21a366; }
.teacher-card-status.is-inactive { color: #a05d35; }
.bulk-qr-grid .empty-state { grid-column: 1 / -1; width: 100%; }
.single-id-layout { display: grid; justify-items: center; gap: 16px; width: min(520px, 100%); }
.single-id-layout > .back-navigation { justify-self: start; width: 100%; }
.single-id-card { width: 100%; }
.single-id-actions { display: grid; justify-items: center; gap: 5px; }
.single-id-actions .back-link { margin: 0; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px solid #dfe7f0; border-radius: 12px; background: #fff; color: #64748b; text-align: center; }
.setup-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 0%, #e3f0ff, transparent 45%), #f3f7fc; }
.setup-card { width: min(460px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 15px 45px rgba(39,70,106,.09); }
.brand-small { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; color: #245a94; font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.brand-small > span { display: grid; gap: 4px; }
.brand-small small { color: #8a9bae; font-size: 9px; letter-spacing: .16em; }
.brand-small-logo { display: block; width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.setup-card .muted { margin: 8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.setup-card .button { width: 100%; }
.scan-page { display: grid; min-height: 100vh; place-items: center; padding: 24px 15px; background: linear-gradient(135deg,#e8f2fd,#f6f8fb); }
.scan-card { width: min(520px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 12px 40px rgba(39,70,106,.09); }
.scan-card h1 { margin: 0; font-size: 23px; }
.scan-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.scan-controls { display: grid; gap: 13px; margin: 19px 0; }
.scan-controls label { display: grid; gap: 6px; color: #4b617c; font-size: 11px; font-weight: 650; }
.scan-controls select, .scan-controls input { min-height: 41px; padding: 8px 10px; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; }
.scan-controls select:focus, .scan-controls input:focus { outline: 3px solid rgba(40,117,215,.14); border-color: #2875d7; }
.video-frame { position: relative; overflow: hidden; min-height: 215px; display: grid; place-items: center; border-radius: 9px; background: #10243c; }
.video-frame .qr-reader { width: 100%; min-height: 215px; }
.video-frame .qr-reader video { display: block; width: 100% !important; min-height: 215px; max-height: 350px; object-fit: contain; background: #10243c; }
.video-frame .qr-reader video.camera-preview { transform: none; -webkit-transform: none; }
.video-frame .qr-reader video.camera-preview-corrected { transform: scaleX(-1); -webkit-transform: scaleX(-1); }
.video-frame #qr-reader__scan_region { min-height: 215px; }
.video-frame #qr-reader__scan_region img { display: none; }
.video-frame #qr-reader__dashboard { padding: 5px 10px 8px; color: #d7e4f3; font-size: 10px; }
.video-frame #qr-reader__dashboard_section_csr button { margin: 3px; padding: 5px 9px; color: #183a65; border: 0; border-radius: 5px; background: #fff; cursor: pointer; }
.video-frame #qr-reader__dashboard_section_csr select { max-width: 100%; padding: 5px; border-radius: 5px; }
.video-frame #qr-reader__header_message { color: #d7e4f3 !important; font-size: 10px; }
.video-placeholder { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 20px; color: #d7e4f3; background: rgba(16,36,60,.88); text-align: center; font-size: 12px; line-height: 1.6; }
.video-placeholder[hidden] { display: none; }
.scan-actions { display: flex; gap: 8px; margin-top: 12px; }
.scan-actions .button { flex: 1; }
.scan-message { min-height: 42px; margin: 14px 0 0; padding: 11px 12px; color: #526881; border-radius: 7px; background: #f3f6fa; font-size: 12px; line-height: 1.5; }
.scan-message.success { color: #27633e; background: #edf8f1; }
.scan-message.error { color: #8b3c3c; background: #fff2f2; }
.scan-message.warning { color: #805a1e; background: #fff8e9; }
.back-link { display: inline-block; margin-top: 14px; color: #4776ab; font-size: 11px; }
:focus-visible { outline: 3px solid rgba(40,117,215,.35); outline-offset: 2px; }
@media (max-width: 850px) {
	.admin-body { grid-template-columns: 185px minmax(0,1fr); }
	.admin-sidebar { padding-inline: 10px; }
	.admin-content { padding-inline: 20px; }
	.guru-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.admin-topbar { height: 58px; padding-inline: 14px; }
	.admin-user { gap: 8px; font-size: 10px; }
	.logout-button { padding: 7px 9px; font-size: 10px; }
	.admin-body { display: block; min-height: calc(100vh - 58px); }
	.admin-sidebar { position: sticky; z-index: 2; top: 58px; overflow-x: auto; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
	.sidebar-label { display: none; }
	.admin-nav { display: flex; width: max-content; gap: 3px; }
	.admin-nav a { min-height: 37px; padding: 0 10px; font-size: 10px; }
	.admin-content { padding: 23px 14px 40px; }
	.page-heading { align-items: start; flex-direction: column; gap: 13px; }
	.stats-grid { grid-template-columns: 1fr; gap: 9px; }
	.stat-card { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }
	.stat-card .stat-number { margin: 0; font-size: 24px; }
	.stat-card .stat-note { margin: 0; text-align: right; }
	.filter-form .search-field { width: min(180px, 45vw); }
	.panel-heading { align-items: start; flex-direction: column; }
	.heading-actions { width: 100%; }
	.heading-actions .button { flex: 1; }
	.qr-card { padding: 22px 16px; }
	.bulk-toolbar { align-items: stretch; flex-direction: column; padding: 12px 15px; }
	.bulk-toolbar .qr-actions { justify-content: flex-start; }
	.bulk-qr-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; padding: 0 12px; }
}
@media print {
	@page { size: A4 portrait; margin: 8mm; }
	.bulk-qr-page { min-height: 0; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.no-print, .bulk-toolbar { display: none !important; }
	.bulk-qr-grid { grid-template-columns: repeat(2, 85.6mm); grid-auto-rows: 53.98mm; justify-content: center; align-content: start; gap: 5mm; width: 100%; max-width: none; margin: 0; padding: 0; }
	.bulk-qr-card, .single-id-card { width: 85.6mm; height: 53.98mm; min-height: 0; aspect-ratio: auto; border: .25mm solid #d5dfeb; border-radius: 2.5mm; box-shadow: none; }
	.teacher-card-header { height: 11mm; flex-basis: 11mm; gap: 2mm; padding-inline: 4mm; }
	.teacher-card-logo { width: 7mm; max-height: 7mm; border-radius: 1mm; }
	.teacher-card-school { gap: .7mm; }
	.teacher-card-school strong { font-size: 8.5pt; letter-spacing: .015em; }
	.teacher-card-school span { font-size: 5pt; letter-spacing: .1em; }
	.teacher-card-content { grid-template-columns: minmax(0, 1fr) 30mm; gap: 2mm; padding: 3mm 4mm; }
	.teacher-card-eyebrow { margin-bottom: 1.5mm; font-size: 5pt; letter-spacing: .1em; }
	.teacher-card-identity h1 { margin-bottom: 1mm; font-size: 10.5pt; }
	.teacher-card-name.is-long { font-size: 8pt; }
	.teacher-card-role { margin-bottom: 1.5mm; font-size: 6.5pt; }
	.teacher-card-nip { gap: 1mm; font-size: 7pt; }
	.teacher-card-qr-column { gap: 1mm; }
	.teacher-card-qr { width: 27mm; max-width: 27mm; padding: 1mm; border-radius: 1mm; }
	.teacher-card-status { gap: 1mm; font-size: 5.5pt; }
	.teacher-card-status > span { width: 1.5mm; height: 1.5mm; }
	.bulk-qr-grid .empty-state { border: 0; }
	.qr-page { display: grid; min-height: 0; padding: 0; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.single-id-layout { display: block; width: auto; }
	.single-id-card { margin: 0 auto; }
}

/* Admin dashboard shell */
.admin-page { color: #243447; background: #f5f7fa; }
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 62px minmax(calc(100vh - 62px), 1fr); }
.admin-sidebar { position: sticky; z-index: 5; top: 0; display: flex; height: 100vh; grid-column: 1; grid-row: 1 / span 2; flex-direction: column; padding: 0 12px 14px; color: #e7effb; border: 0; background: #142b49; }
.admin-brand { min-height: 62px; gap: 12px; padding: 0 8px; color: #fff; font-size: 14px; letter-spacing: 0; }
.admin-brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.admin-brand small { margin-top: 3px; color: #b7c8e0; font-size: 10px; letter-spacing: 0; }
.admin-nav { display: grid; gap: 4px; margin-top: 18px; }
.admin-nav a, .sidebar-scan-link, .sidebar-bottom .logout-button { display: flex; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; color: #cbd7e7; border: 0; border-radius: 7px; background: transparent; font-size: 12px; }
.admin-nav a:hover, .sidebar-scan-link:hover, .sidebar-bottom .logout-button:hover { color: #fff; background: #203d60; }
.admin-nav a.active { color: #fff; background: #2875d7; font-weight: 650; }
.admin-nav .nav-icon, .sidebar-bottom .nav-icon { width: 20px; color: #c2d0e2; font-size: 16px; }
.sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(224,237,255,.12); }
.sidebar-bottom .logout-form { margin: 0; }
.sidebar-bottom .logout-button { width: 100%; justify-content: flex-start; cursor: pointer; font-size: 12px; }
.admin-topbar { position: sticky; z-index: 4; top: 0; display: flex; height: 62px; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-start; gap: 18px; padding: 0 25px; border: 0; border-bottom: 1px solid #e7ebf1; background: #fff; }
.sidebar-toggle { display: grid; width: 28px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0; color: #263e5d; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.sidebar-toggle:hover { background: #f1f5fb; }
.sidebar-toggle svg { width: 19px; height: 19px; }
.global-search { display: flex; width: min(420px, 48vw); height: 36px; align-items: center; gap: 9px; padding: 0 11px; color: #8394aa; border: 1px solid #e8edf3; border-radius: 7px; background: #f7f9fc; }
.global-search:focus-within { border-color: #a8c9f4; background: #fff; box-shadow: 0 0 0 3px rgba(40,117,215,.08); }
.global-search > span { font-size: 19px; line-height: 1; }
.global-search input { width: 100%; min-width: 0; padding: 0; color: #344c6b; border: 0; outline: 0; background: transparent; font-size: 11px; }
.global-search input::placeholder { color: #91a1b6; }
.admin-user { margin-left: auto; gap: 10px; color: #243c5d; font-size: 12px; }
.admin-avatar { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border-radius: 50%; background: #2875d7; font-size: 14px; font-weight: 700; }
.admin-user-copy { display: grid; gap: 2px; }
.admin-user-copy strong { color: #263e5d; font-size: 11px; }
.admin-user-copy small { color: #8796aa; font-size: 9px; }
.admin-content { width: 100%; min-width: 0; grid-column: 2; grid-row: 2; padding: 25px clamp(20px, 2.2vw, 34px) 36px; }
.dashboard-welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; margin: 0 0 20px; }
.dashboard-welcome .eyebrow { margin: 0 0 6px; color: #6481a6; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.dashboard-welcome h1 { margin: 0; color: #1f3a60; font-size: clamp(23px, 2vw, 29px); letter-spacing: -.025em; }
.dashboard-welcome p:last-child { margin: 6px 0 0; color: #74859b; font-size: 13px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-date { display: flex; min-width: 185px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3e9f0; border-radius: 8px; background: #fff; }
.date-icon { color: #426a9f; font-size: 17px; }
.dashboard-date > span:last-child { display: grid; gap: 4px; }
.dashboard-date strong { color: #385478; font-size: 11px; }
.dashboard-date small { color: #8998aa; font-size: 10px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dashboard-stat { display: flex; min-width: 0; min-height: 96px; align-items: center; padding: 14px 15px; border: 1px solid #e1e7ef; border-left: 3px solid currentColor; border-radius: 8px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.dashboard-stat:hover { border-color: #cbd8e8; background: #fbfdff; }
.stat-copy { display: grid; min-width: 0; gap: 4px; }
.stat-copy > span { color: #536983; font-size: 12px; font-weight: 600; }
.stat-copy strong { color: #203958; font-size: 27px; line-height: 1.05; }
.stat-copy small { overflow: hidden; color: #778aa3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stat-blue { color: #2875d7; }
.stat-green { color: #269565; }
.stat-amber { color: #c38317; }
.stat-teal { color: #2875d7; }
.stat-red { color: #d65b60; }
.report-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.report-shortcuts a { padding: 8px 12px; color: #23486f; border: 1px solid #dce5f0; border-radius: 7px; background: #fff; font-size: 11px; text-decoration: none; }
.report-filters { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); align-items: end; gap: 12px; margin: 0 0 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.report-filters label { display: grid; gap: 6px; color: #4b617c; font-size: 11px; font-weight: 650; }
.report-filters input, .report-filters select { width: 100%; min-height: 38px; padding: 8px 10px; color: #263f5e; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; font: inherit; }
.report-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.report-summary > div { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.report-summary span { color: var(--muted); font-size: 10px; }
.report-summary strong { color: #193b62; font-size: 20px; }
.report-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.report-status--hadir { color: #187348; background: #e8f7ef; }
.report-status--terlambat { color: #94610d; background: #fff4dc; }
.report-status--izin { color: #285eaa; background: #eaf2ff; }
.report-status--sakit { color: #6943a2; background: #f2ebfb; }
.report-status--alpha { color: #a3343a; background: #ffebeb; }
.report-table-panel { overflow: hidden; }
.teacher-details { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 13px 20px; margin: 0; padding: 20px; }
.teacher-details dt { color: var(--muted); }
.teacher-details dd { margin: 0; color: #243f61; font-weight: 650; }
.status-panel { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.status-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); align-items: end; gap: 12px; }
.status-form strong { color: #27496e; font-size: 12px; }
.status-form label { display: grid; gap: 6px; color: #536985; font-size: 11px; font-weight: 650; }
.status-form select, .status-form input { width: 100%; min-height: 38px; padding: 8px 10px; color: #243447; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; }
.status-form button { min-height: 38px; padding: 8px 12px; color: #fff; border: 1px solid #2875d7; border-radius: 8px; background: #2875d7; cursor: pointer; }
.dashboard-middle { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 16px; margin-bottom: 16px; }
.dashboard-panel { min-width: 0; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; }
.dashboard-panel-heading { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 17px; border-bottom: 1px solid #edf0f4; }
.dashboard-panel-heading > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.dashboard-panel-heading h2 { overflow: hidden; margin: 0; color: #26456d; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-panel-heading > a:not(.button) { flex: 0 0 auto; color: #2875d7; font-size: 11px; }
.dashboard-panel-heading > a:not(.button):hover { text-decoration: underline; }
.panel-icon { color: #315e98; font-size: 17px; line-height: 1; }
.range-label { padding: 6px 9px; color: #607795; border-radius: 5px; background: #f5f7fa; font-size: 10px; white-space: nowrap; }
.chart-area { display: grid; height: 190px; grid-template-columns: 28px minmax(0,1fr); gap: 8px; padding: 12px 16px 0; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0 23px; color: #8292a8; font-size: 10px; text-align: right; }
.chart-plot { display: grid; min-width: 0; grid-template-columns: repeat(7, minmax(0,1fr)); align-items: end; gap: 9px; padding: 5px 1px 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(33.333% - 1px), #edf1f7 calc(33.333% - 1px), #edf1f7 33.333%); }
.chart-column { display: flex; height: 100%; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.chart-bar { display: flex; width: min(32px, 72%); height: calc(100% - 24px); min-height: 2px; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 3px 3px 0 0; }
.chart-bar span { display: block; width: 100%; flex: 0 0 auto; }
.chart-absent { background: #e7edf5; }
.chart-present { background: #4389f5; }
.chart-day { color: #687c95; font-size: 10px; white-space: nowrap; }
.chart-legend { display: flex; justify-content: center; gap: 22px; padding: 8px 0 14px; color: #72849b; font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend-present { background: #4389f5; }
.legend-absent { background: #ff8791; }
.activity-list { margin: 0; padding: 0 17px 4px; list-style: none; }
.activity-item { display: flex; min-height: 55px; align-items: center; gap: 12px; border-top: 1px solid #edf0f4; }
.activity-item:first-child { border-top: 0; }
.activity-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.activity-copy strong { overflow: hidden; color: #334e6c; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small { color: #8393a8; font-size: 11px; }
.activity-item time { flex: 0 0 auto; color: #71839a; font-size: 11px; }
.activity-empty { display: grid; min-height: 160px; place-items: center; padding: 16px; color: #78899e; font-size: 12px; text-align: center; }
.teachers-panel { margin-bottom: 14px; }
.teachers-panel .dashboard-panel-heading { min-height: 56px; }
.teachers-panel .dashboard-panel-heading .button { min-height: 34px; padding: 0 13px; font-size: 11px; }
.dashboard-teacher-table { min-width: 620px; }
.dashboard-teacher-table th { padding: 11px 14px; color: #536983; background: #f6f8fb; font-size: 11px; letter-spacing: 0; text-transform: none; }
.dashboard-teacher-table td { padding: 10px 14px; color: #617792; border-top-color: #edf0f4; font-size: 11px; }
.dashboard-teacher-table td strong { color: #385577; font-size: 12px; }
.teacher-status { display: inline-flex; padding: 4px 8px; color: #8b6f70; border-radius: 999px; background: #f6eded; font-size: 10px; font-weight: 650; }
.teacher-status.active { color: #2e9e6e; background: #e7f8ef; }
.teacher-qr-link { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 9px; color: #2875d7; border: 1px solid #e1eaf6; border-radius: 5px; background: #f7faff; font-size: 12px; }
.teacher-qr-link span { font-size: 10px; }
.teacher-qr-link:hover { background: #e1efff; }
.dashboard-panel .empty-state { padding: 20px 12px; font-size: 10px; }
body.sidebar-collapsed .admin-shell { grid-template-columns: 72px minmax(0, 1fr); }
body.sidebar-collapsed .admin-brand { justify-content: center; padding-inline: 0; }
body.sidebar-collapsed .admin-brand > span:last-child, body.sidebar-collapsed .nav-label { display: none; }
body.sidebar-collapsed .admin-nav a, body.sidebar-collapsed .sidebar-scan-link, body.sidebar-collapsed .sidebar-bottom .logout-button { justify-content: center; padding-inline: 0; }
.attendance-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.attendance-page-heading .eyebrow { margin: 0 0 5px; color: #6481a6; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.attendance-page-heading h1 { margin: 0; color: #1f3a60; font-size: clamp(24px, 2vw, 29px); letter-spacing: -.025em; }
.attendance-page-heading > div:first-child > p:last-child { margin: 6px 0 0; color: #74859b; font-size: 13px; }
.attendance-page-date { display: grid; min-width: 175px; gap: 4px; padding: 10px 12px; border: 1px solid #e3e9f0; border-radius: 8px; background: #fff; }
.attendance-page-date strong { color: #385478; font-size: 11px; }
.attendance-page-date span { color: #8998aa; font-size: 10px; }
.attendance-filters { margin: 0 0 16px; padding: 15px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; }
.attendance-filter-grid { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(115px, 1fr)) auto auto; align-items: end; gap: 11px; }
.attendance-filter-grid label, .attendance-form-card label { display: grid; min-width: 0; gap: 6px; color: #536983; font-size: 11px; font-weight: 600; }
.attendance-filter-grid input, .attendance-filter-grid select, .attendance-form-card input, .attendance-form-card select { width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; color: #344c6b; border: 1px solid #dce5f0; border-radius: 6px; background: #fff; font: inherit; }
.attendance-filter-grid input:focus, .attendance-filter-grid select:focus, .attendance-form-card input:focus, .attendance-form-card select:focus { outline: 3px solid rgba(40,117,215,.12); border-color: #2875d7; }
.attendance-filter-actions { display: flex; align-items: center; gap: 7px; }
.attendance-filter-actions .button { min-height: 39px; padding: 0 12px; white-space: nowrap; }
.attendance-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.attendance-summary-card { display: grid; min-width: 0; min-height: 78px; align-content: center; gap: 5px; padding: 11px 13px; border: 1px solid #e1e7ef; border-radius: 8px; border-left: 3px solid #8a9bb0; background: #fff; }
.attendance-summary-card span { overflow: hidden; color: #61758e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attendance-summary-card strong { color: #243f61; font-size: 23px; line-height: 1; }
.attendance-summary-card.summary-present { border-left-color: #269565; }
.attendance-summary-card.summary-late { border-left-color: #c38317; }
.attendance-summary-card.summary-leave { border-left-color: #7b61ae; }
.attendance-summary-card.summary-sick { border-left-color: #d65b60; }
.attendance-summary-card.summary-alpha { border-left-color: #8d5265; }
.attendance-management { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px; margin-bottom: 16px; }
.attendance-form-card { display: grid; min-width: 0; align-content: start; gap: 13px; padding: 16px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; }
.attendance-form-heading h2 { margin: 0; color: #26456d; font-size: 14px; font-weight: 650; }
.attendance-form-heading p { margin: 5px 0 0; color: #74859b; font-size: 11px; line-height: 1.5; }
.attendance-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.attendance-form-hint { margin: 0; color: #71839a; font-size: 10px; line-height: 1.5; }
.attendance-form-card > .button { width: 100%; min-height: 39px; }
.alpha-eligibility { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #dce8f6; border-radius: 6px; background: #f5f9fe; }
.alpha-eligibility strong { color: #2e5e92; font-size: 11px; }
.alpha-eligibility span { color: #71839a; font-size: 10px; line-height: 1.5; }
.notice { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #eddda7; border-radius: 7px; color: #76520b; background: #fff9e8; font-size: 12px; line-height: 1.5; }
.notice.error { color: #7c2922; border-color: #e9c5c1; background: #fff4f2; }
.flash.warning { color: #76520b; border-color: #eddda7; background: #fff9e8; }
.attendance-records { margin-bottom: 14px; }
.attendance-records .dashboard-panel-heading { align-items: center; }
.attendance-records .dashboard-panel-heading > div { display: grid; gap: 4px; }
.attendance-records .dashboard-panel-heading p { margin: 0; color: #78899e; font-size: 10px; }
.attendance-table { min-width: 850px; }
.attendance-table th { padding: 11px 13px; color: #536983; background: #f6f8fb; font-size: 10px; text-transform: none; }
.attendance-table td { padding: 11px 13px; color: #617792; border-top-color: #edf0f4; font-size: 11px; vertical-align: middle; }
.attendance-table td strong { color: #385577; font-size: 11px; }
.attendance-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.attendance-status-present { color: #187348; background: #e8f7ef; }
.attendance-status-late { color: #94610d; background: #fff4dc; }
.attendance-status-leave { color: #285eaa; background: #eaf2ff; }
.attendance-status-sick { color: #a3343a; background: #ffebeb; }
.attendance-status-alpha { color: #6943a2; background: #f2ebfb; }
.attendance-table .empty-state { padding: 32px 16px; text-align: center; }
.attendance-table .empty-state strong { display: block; margin-bottom: 5px; color: #344c6b; }
.attendance-table .empty-state p { margin: 0; color: #78899e; font-size: 11px; }
.attendance-table .action-link { color: #2875d7; font-weight: 600; }
.attendance-pagination { padding: 12px 15px; color: #71839a; font-size: 11px; }
.attendance-pagination-controls { display: inline-flex; align-items: center; gap: 10px; }
.attendance-pagination .button { min-height: 32px; padding: 0 10px; font-size: 10px; }
.settings-page-heading { margin: 0 0 22px; }
.settings-page-heading .eyebrow { margin: 0 0 7px; color: #6481a6; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.settings-page-heading h1 { margin: 0; color: #1d385b; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.settings-page-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-card { margin-bottom: 18px; }
.settings-card > .panel-heading { padding: 18px 22px; }
.settings-card > .panel-heading h2 { color: #1d385b; font-size: 16px; }
.settings-card > .panel-heading p { font-size: 12px; line-height: 1.5; }
.settings-schedule-form { display: grid; gap: 20px; padding: 22px; }
.settings-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-section h3 { margin: 0 0 13px; color: #304967; font-size: 13px; }
.settings-time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.settings-time-grid label, .settings-holiday-form label { display: grid; min-width: 0; gap: 7px; color: #4b617c; font-size: 12px; font-weight: 650; }
.settings-time-grid input, .settings-holiday-form input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; color: #263f5e; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; font-size: 13px; }
.settings-time-grid input:focus, .settings-holiday-form input:focus { outline: 3px solid rgba(40,117,215,.14); border-color: #2875d7; }
.settings-time-grid small { min-height: 30px; color: #7a8a9e; font-size: 11px; font-weight: 400; line-height: 1.5; }
.settings-note { margin: 12px 0 0; padding: 10px 12px; color: #60738b; border-radius: 7px; background: #f5f8fc; font-size: 11px; line-height: 1.55; }
.day-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.day-picker legend { grid-column: 1 / -1; margin-bottom: 2px; color: #304967; font-size: 13px; font-weight: 700; }
.day-option { position: relative; display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 9px 11px; color: #536983; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; }
.day-option:has(input:checked) { color: #205da5; border-color: #a9c9f0; background: #f0f6ff; }
.day-option input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.settings-submit-row { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid #e8edf4; }
.settings-submit-row .button { min-width: 145px; }
.settings-holiday-form { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(220px, 1.4fr) auto; align-items: end; gap: 13px; padding: 20px 22px; }
.settings-holiday-form .button { min-height: 42px; white-space: nowrap; }
.settings-holiday-table-wrap { max-width: 100%; margin: 0 22px 22px; border: 1px solid #e6ebf2; border-radius: 8px; }
.settings-holiday-table { min-width: 520px; }
.settings-holiday-table th { padding: 12px 15px; color: #536983; background: #f5f8fc; font-size: 10px; letter-spacing: .04em; text-transform: none; }
.settings-holiday-table td { padding: 12px 15px; font-size: 12px; }
.settings-holiday-table td:last-child { width: 1%; white-space: nowrap; }
.settings-holiday-table td form { margin: 0; }
.settings-holiday-table .button-danger { min-height: 32px; padding-inline: 11px; font-size: 11px; }
@media (max-width: 1150px) {
	.admin-shell { grid-template-columns: 190px minmax(0,1fr); }
	body.sidebar-collapsed .admin-shell { grid-template-columns: 72px minmax(0,1fr); }
	.dashboard-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.dashboard-middle { grid-template-columns: 1fr; }
	.dashboard-welcome { grid-template-columns: minmax(0, 1fr) auto; }
	.dashboard-date { grid-column: 2; grid-row: 1 / span 2; }
	.dashboard-actions { grid-column: 1; }
	.attendance-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.attendance-filter-grid label:first-child { grid-column: span 2; }
	.attendance-filter-actions { grid-column: span 2; }
	.attendance-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.day-picker { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
	.admin-shell, body.sidebar-collapsed .admin-shell { display: block; min-height: 100vh; }
	.admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 255px; height: 100dvh; visibility: hidden; transform: translateX(-105%); transition: transform .2s ease, visibility 0s linear .2s; box-shadow: 10px 0 28px rgba(13,31,56,.18); }
	body.sidebar-open .admin-sidebar { visibility: visible; transform: translateX(0); transition: transform .2s ease; }
	.admin-topbar { height: 58px; gap: 12px; padding-inline: 12px; }
	.global-search { width: min(450px, 52vw); }
	.admin-user { gap: 7px; }
	.admin-avatar { width: 31px; height: 31px; }
	.admin-content { padding: 20px 14px 30px; }
	.dashboard-welcome { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
	.dashboard-date { width: 100%; min-width: 0; }
	.dashboard-actions { width: 100%; }
	.dashboard-actions .button { flex: 1; }
	.dashboard-middle { grid-template-columns: minmax(0,1fr); }
	.dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.attendance-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
	.attendance-page-date { width: 100%; }
	.attendance-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.attendance-filter-grid label:first-child { grid-column: span 2; }
	.attendance-filter-actions { grid-column: span 2; }
	.attendance-filter-actions .button { flex: 1; }
	.attendance-management { grid-template-columns: 1fr; }
	.attendance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.attendance-pagination { align-items: flex-start; flex-direction: column; }
	.report-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.report-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.status-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.day-picker { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
	.settings-holiday-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.settings-holiday-form .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
	.global-search { width: auto; flex: 1; }
	.global-search input { font-size: 11px; }
	.admin-topbar { gap: 8px; }
	.admin-content { padding-inline: 12px; }
	.admin-user-copy { display: none; }
	.dashboard-stats { gap: 8px; }
	.dashboard-stat { min-height: 88px; padding: 10px; }
	.stat-copy > span { font-size: 11px; }
	.stat-copy strong { font-size: 23px; }
	.stat-copy small { font-size: 9px; }
	.dashboard-panel-heading { padding-inline: 12px; }
	.dashboard-panel-heading h2 { font-size: 13px; }
	.attendance-summary { gap: 8px; }
	.attendance-summary-card { min-height: 72px; padding: 9px; }
	.attendance-summary-card span { font-size: 10px; }
	.attendance-summary-card strong { font-size: 21px; }
	.attendance-form-card { padding: 13px; }
	.attendance-form-fields { grid-template-columns: 1fr; }
	.chart-area { padding-inline: 8px; }
	.chart-plot { gap: 3px; }
	.chart-day { font-size: 9px; }
	.report-filters, .report-summary { grid-template-columns: 1fr; }
	.teacher-details { grid-template-columns: 1fr; gap: 5px; }
	.teacher-details dd { margin-bottom: 10px; }
	.teacher-form-card { padding: 17px; }
	.status-form { grid-template-columns: 1fr; }
	.settings-page-heading { margin-bottom: 17px; }
	.settings-card > .panel-heading, .settings-schedule-form { padding: 16px; }
	.settings-time-grid { grid-template-columns: 1fr; gap: 13px; }
	.settings-time-grid small { min-height: 0; }
	.day-picker { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
	.settings-submit-row .button { width: 100%; }
	.settings-holiday-form { grid-template-columns: 1fr; padding: 16px; }
	.settings-holiday-form .button { grid-column: auto; justify-self: stretch; }
	.settings-holiday-table-wrap { margin: 0 16px 16px; }
}
@media (max-width: 360px) {
	.dashboard-stats { grid-template-columns: 1fr; }
	.dashboard-actions { flex-direction: column; }
	.attendance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.attendance-filter-grid { grid-template-columns: 1fr; }
	.attendance-filter-grid label:first-child, .attendance-filter-actions { grid-column: auto; }
	.settings-card > .panel-heading, .settings-schedule-form, .settings-holiday-form { padding-inline: 13px; }
	.settings-holiday-table-wrap { margin-inline: 13px; }
}

.attendance-notification { position: fixed; width: min(430px, calc(100% - 30px)); max-width: none; max-height: min(90vh, 720px); margin: auto; padding: 31px 30px 25px; overflow: auto; color: #263c58; border: 1px solid #e4ebf3; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(12,31,57,.28); text-align: center; }
.attendance-notification[open] { animation: notification-enter .24s ease-out both; }
.attendance-notification.is-closing { animation: notification-exit .18s ease-in both; }
.attendance-notification::backdrop { background: rgba(14,31,54,.54); backdrop-filter: blur(3px); animation: notification-backdrop .24s ease-out both; }
.notification-close { position: absolute; top: 12px; right: 14px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: #7d8da2; border: 0; border-radius: 50%; background: #f3f6fa; font-size: 23px; line-height: 1; cursor: pointer; }
.notification-close:hover { color: #334b68; background: #e8eef5; }
.notification-icon { display: grid; width: 68px; height: 68px; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #e8f8ef; }
.notification-icon svg { display: none; width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.notification-success .notification-icon { color: #249b61; background: #e6f8ed; }
.notification-success .icon-success { display: block; }
.notification-warning .notification-icon { color: #bd7e13; background: #fff4d9; }
.notification-warning .icon-warning { display: block; }
.notification-error .notification-icon { color: #d6424a; background: #ffebeb; }
.notification-error .icon-error { display: block; }
.notification-invalid .notification-icon { color: #d6424a; background: #ffebeb; }
.notification-invalid .icon-warning { display: block; }
.notification-eyebrow { margin: 0 0 8px; color: #8191a5; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.notification-title { margin: 0; color: #263d5b; font-size: 21px; line-height: 1.3; }
.notification-success .notification-title { color: #217c4e; }
.notification-warning .notification-title { color: #96610e; }
.notification-error .notification-title { color: #b9323a; }
.notification-invalid .notification-title { color: #b9323a; }
.notification-description { margin: 9px 0 0; color: #677a92; font-size: 12px; line-height: 1.65; }
.notification-details { display: grid; gap: 0; margin-top: 20px; padding: 0 14px; border: 1px solid #e8edf4; border-radius: 10px; background: #f8fafd; text-align: left; }
.notification-details[hidden], .notification-teacher[hidden], .notification-resume[hidden], .notification-progress[hidden] { display: none; }
.notification-teacher, .notification-detail-row { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e9eef5; font-size: 11px; }
.notification-detail-row:last-child { border-bottom: 0; }
.notification-teacher span, .notification-detail-row span { color: #78899e; }
.notification-teacher strong, .notification-detail-row strong { color: #304967; font-size: 11px; font-weight: 650; text-align: right; }
.notification-resume { margin: 15px 0 0; color: #8291a5; font-size: 10px; }
.notification-progress { height: 3px; margin: 13px 0 0; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.notification-progress span { display: block; width: 100%; height: 100%; transform-origin: left; background: #8aa5c8; animation: notification-countdown var(--notification-duration, 8s) linear forwards; }
.notification-success .notification-progress span { background: #37ad72; }
.notification-warning .notification-progress span { background: #e3ae48; }
.notification-error .notification-progress span { background: #e2060d; }
.notification-invalid .notification-progress span { background: #e2060d; }
.notification-dismiss { width: 100%; min-height: 42px; margin-top: 19px; }
@keyframes notification-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes notification-exit { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(7px) scale(.98); } }
@keyframes notification-backdrop { from { background: rgba(14,31,54,0); } to { background: rgba(14,31,54,.54); } }
@keyframes notification-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 480px) {
	.attendance-notification { padding: 27px 20px 21px; border-radius: 15px; }
	.notification-title { font-size: 19px; }
	.notification-description { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.attendance-notification[open], .attendance-notification.is-closing, .attendance-notification::backdrop, .notification-progress span { animation-duration: .01ms; }
}
