:root {
    color-scheme: light;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #182536;
    background: #f4f7fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #182536;
    --muted: #64748b;
    --line: #e3eaf2;
    --paper: #fff;
    --navy: #123b65;
    --navy-dark: #0c2b4c;
    --teal: #087e78;
    --teal-soft: #e7f5f3;
    --shadow: 0 12px 32px rgb(27 54 82 / 6%);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); }
a { color: #126c83; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
code { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 1px solid var(--navy);
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
button:hover, .button:hover { border-color: var(--navy-dark); background: var(--navy-dark); color: #fff; box-shadow: 0 5px 14px rgb(12 43 76 / 18%); }
button:active, .button:active { transform: translateY(1px); }
button.danger { border-color: #b42336; background: #b42336; }
button.danger:hover { border-color: #8f1c2b; background: #8f1c2b; }
button.secondary, .button.secondary { border-color: #d2dce7; background: #fff; color: var(--navy); }
button.secondary:hover, .button.secondary:hover { border-color: #9fb2c6; background: #f6f9fc; color: var(--navy-dark); }
:focus-visible { outline: 3px solid #41b8b1; outline-offset: 3px; }

header {
    color: #fff;
    background:
        radial-gradient(ellipse at 88% -30%, rgb(50 144 158 / 38%), transparent 44%),
        linear-gradient(116deg, #0c2b4c, #164b71 75%, #176778);
    padding: 1.15rem max(1.25rem, calc((100% - 1180px) / 2));
    box-shadow: 0 4px 18px rgb(11 39 67 / 14%);
}
header a { color: #effaff; text-decoration: none; }
header a:hover { color: #fff; text-decoration: underline; }
header strong { font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 1.08rem; letter-spacing: -.025em; }
header .row, nav, .row, .actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
header .row { justify-content: space-between; }
nav { margin-top: .85rem; gap: .4rem; }
header nav a {
    padding: .48rem .68rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #dcecf7;
    font-size: .9rem;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease;
}
header nav a:hover { background: rgb(255 255 255 / 12%); color: #fff; text-decoration: none; }
header .button, header button { border-color: rgb(255 255 255 / 35%); background: rgb(255 255 255 / 12%); color: #fff; }
header .button:hover, header button:hover { background: rgb(255 255 255 / 22%); }
header form { margin: 0; }

main { width: min(1180px, 100%); margin: 1.8rem auto 3rem; padding: 0 1.4rem; }
h1, h2, h3 { color: #142c44; font-family: 'Segoe UI', Tahoma, sans-serif; letter-spacing: -.035em; line-height: 1.25; }
h1 { margin: 0 0 .8rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
h2 { margin: 0 0 .85rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
h3 { font-size: 1.08rem; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.panel, .card {
    margin-bottom: 1rem;
    padding: clamp(1rem, 2.2vw, 1.4rem);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.35rem 0 1.6rem; }
.cards .card { margin: 0; }
.cards .number { margin: .35rem 0 0; color: var(--navy); font-family: 'Segoe UI', Tahoma, sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.05em; }
.cards .card:first-child { border-top: 3px solid #32899a; }
.cards .card:nth-child(2) { border-top: 3px solid #128578; }
.cards .card:nth-child(3) { border-top: 3px solid #d2943d; }
.cards .card:nth-child(4) { border-top: 3px solid #647d9c; }

label { display: block; margin-bottom: .4rem; color: #34465a; font-size: .9rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-height: 43px;
    padding: .62rem .75rem;
    border: 1px solid #ccd7e3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
input[type="file"] { padding: .45rem; }
input:focus, select:focus, textarea:focus { border-color: #208b99; outline: 0; box-shadow: 0 0 0 3px rgb(32 139 153 / 13%); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--teal); }
form { margin: 0 0 .7rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 1rem; align-items: end; }
.grid > div { min-width: 0; }
.inline { display: inline-flex; align-items: center; }
.inline button { min-height: 36px; padding: .4rem .7rem; }

.table-wrap { overflow-x: auto; border-radius: 11px; }
.panel > table { display: block; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; }
th, td { padding: .78rem .8rem; border-bottom: 1px solid #e9eef4; text-align: left; vertical-align: top; }
th { background: #f4f8fb; color: #40546a; font-size: .78rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
th:first-child { border-radius: 9px 0 0; }
th:last-child { border-radius: 0 9px 0 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfd; }
.success { padding: .85rem 1rem; border: 1px solid #b7e5d0; border-radius: 10px; background: #eaf8f1; color: #17633f; }
.error { color: #a52632; }
.panel.error { border-color: #f0c7ca; background: #fff7f7; }
.pagination { margin-top: 1rem; }
.pagination nav { justify-content: center; }
.pagination nav a, .pagination nav span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
pre { overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; line-height: 1.7; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top form { display: flex; align-items: end; gap: .6rem; flex-wrap: wrap; }
.top form label { margin: 0; }
.face-attendance-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); gap: 1.25rem; align-items: start; }
.face-attendance-camera, .face-attendance-details { min-width: 0; }
.face-attendance-preview { position: relative; margin: .8rem 0; }
.face-attendance-preview video { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; background: #0f172a; }
.face-attendance-preview video[hidden] { display: none; }
.face-camera-guide { position: absolute; top: 50%; left: 50%; width: 42%; height: 82%; transform: translate(-50%, -50%); border: 3px dashed #ef4444; border-radius: 50%; box-shadow: 0 0 0 999px rgb(15 23 42 / 24%); pointer-events: none; transition: border-color .2s ease, box-shadow .2s ease; }
.face-camera-guide[data-match-state="recognized"] { border-color: #22c55e; box-shadow: 0 0 0 999px rgb(15 23 42 / 24%), 0 0 18px rgb(34 197 94 / 70%); }
.face-camera-guide[data-match-state="confirmed"] { border-color: #3b82f6; box-shadow: 0 0 0 999px rgb(15 23 42 / 24%), 0 0 18px rgb(59 130 246 / 75%); }
.face-camera-guide[hidden] { display: none !important; }
.face-camera-hint, .face-attendance-privacy { display: block; color: var(--muted); line-height: 1.6; }
.face-attendance-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.face-attendance-controls button { margin: 0; }
.face-attendance-status { min-height: 1.5em; margin: .8rem 0 .4rem; color: #31556d; font-weight: 700; }
.face-attendance-notification { display: grid; gap: .35rem; margin: .8rem 0 1rem; padding: 1rem; border: 1px solid #a7e2c4; border-radius: 10px; background: #eaf8f0; color: #12613e; }
.face-attendance-notification[hidden] { display: none; }
.face-attendance-notification strong { font-size: 1rem; }
.face-attendance-notification span { color: #24583f; line-height: 1.6; }

@media (max-width: 700px) {
    header { padding: 1rem; }
    header .row { align-items: flex-start; }
    nav { gap: .25rem; }
    header nav a { padding: .44rem .55rem; font-size: .84rem; }
    main { margin-top: 1.2rem; padding: 0 .8rem; }
    .panel, .card { border-radius: 12px; }
    th, td { padding: .65rem; }
}
@media (max-width: 800px) {
    .face-attendance-layout { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.admin-body { min-height: 100vh; background: #f3f6fa; }
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 258px minmax(0, 1fr); }
.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    min-height: 540px;
    flex-direction: column;
    padding: 1.3rem .95rem 1rem;
    overflow-y: auto;
    background: #102b46;
    color: #d5e2ee;
}
.admin-brand { display: flex; align-items: center; gap: .8rem; padding: .2rem .55rem 1.35rem; color: #fff; text-decoration: none; }
.admin-brand:hover { color: #fff; text-decoration: none; }
.admin-brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 13px; background: linear-gradient(145deg, #218992, #24678c); color: #fff; font-size: 1.25rem; font-weight: 800; box-shadow: 0 5px 14px rgb(5 19 34 / 22%); }
.admin-brand-copy { display: grid; min-width: 0; gap: .18rem; }
.admin-brand-copy strong { overflow: hidden; color: #fff; font-size: .97rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand-copy small { color: #91a9bd; font-size: .64rem; font-weight: 800; letter-spacing: .13em; }
.admin-sidebar-label { padding: .7rem .65rem .55rem; border-top: 1px solid rgb(255 255 255 / 10%); color: #718ba2; font-size: .66rem; font-weight: 800; letter-spacing: .15em; }
.admin-nav { display: grid; gap: .16rem; margin: 0; }
.admin-nav-heading { margin: .8rem .65rem .3rem; color: #8299ad; font-size: .64rem; font-weight: 800; letter-spacing: .13em; }
.admin-nav-heading:first-child { margin-top: .25rem; }
.admin-nav a {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: .72rem;
    padding: .53rem .65rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #c5d4e1;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.admin-nav a:hover { border-color: rgb(255 255 255 / 8%); background: rgb(255 255 255 / 7%); color: #fff; text-decoration: none; }
.admin-nav a[aria-current="page"] { border-color: rgb(107 210 199 / 18%); background: linear-gradient(90deg, rgb(33 137 146 / 26%), rgb(33 137 146 / 9%)); color: #fff; }
.admin-nav a[aria-current="page"]::before { position: absolute; top: 8px; bottom: 8px; left: -1rem; width: 3px; border-radius: 0 4px 4px 0; background: #55c5b9; content: ""; }
.admin-nav-tree { display: grid; gap: .16rem; }
.admin-nav-tree summary { display: flex; min-height: 42px; align-items: center; gap: .72rem; padding: .53rem .65rem; border: 1px solid transparent; border-radius: 9px; color: #c5d4e1; font-size: .88rem; font-weight: 600; list-style: none; cursor: pointer; }
.admin-nav-tree summary::-webkit-details-marker { display: none; }
.admin-nav-tree summary:hover, .admin-nav-tree[open] summary { background: rgb(255 255 255 / 5%); color: #fff; }
.admin-nav-chevron { margin-left: auto; color: #91a9bd; transition: transform .15s ease; }
.admin-nav-tree[open] .admin-nav-chevron { transform: rotate(180deg); }
.admin-nav-children { display: grid; gap: .12rem; margin-left: 1.25rem; padding-left: .55rem; border-left: 1px solid rgb(255 255 255 / 14%); }
.admin-nav-children a { min-height: 36px; padding: .45rem .6rem; font-size: .81rem; }
.admin-nav-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: #91a9bd; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transition: stroke .15s ease; }
.admin-nav a:hover .admin-nav-icon { stroke: #e5f1f7; }
.admin-nav a[aria-current="page"] .admin-nav-icon { stroke: #82e0d5; }
.admin-sidebar-bottom { display: flex; align-items: center; gap: .55rem; margin-top: auto; padding: 1rem .65rem .2rem; border-top: 1px solid rgb(255 255 255 / 10%); color: #91a9bd; font-size: .75rem; }
.admin-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #46c5a0; box-shadow: 0 0 0 4px rgb(70 197 160 / 12%); }
.admin-workspace { min-width: 0; }
.admin-topbar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem clamp(1.2rem, 3vw, 2.35rem);
    border-bottom: 1px solid #e5ebf1;
    background: rgb(255 255 255 / 95%);
    box-shadow: 0 3px 12px rgb(26 49 70 / 3%);
    color: var(--ink);
    backdrop-filter: blur(10px);
}
.admin-topbar-left, .admin-topbar-actions { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.admin-page-context { display: grid; gap: .2rem; }
.admin-eyebrow { color: #8292a3; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.admin-page-context > strong { color: #1d3349; font-size: .93rem; }
.admin-home-link { display: inline-flex; align-items: center; gap: .42rem; color: #53677c; font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.admin-home-link:hover { color: var(--teal); text-decoration: none; }
.admin-account { display: flex; align-items: center; gap: .65rem; padding-left: 1rem; border-left: 1px solid #e5ebf1; }
.admin-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #d4e8e8; border-radius: 50%; background: #e8f4f3; color: #176c70; font-weight: 800; }
.admin-avatar-image { object-fit: cover; }
.admin-account-copy { display: grid; max-width: 180px; gap: .15rem; }
.admin-account-copy strong { overflow: hidden; color: #26394e; font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-account-copy small { overflow: hidden; color: #8190a0; font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-logout-form { margin: 0; }
.admin-logout { min-height: 37px; gap: .38rem; padding: .45rem .72rem; border-color: #e3e9ef; border-radius: 9px; background: #fff; color: #5e6d7c; font-size: .8rem; }
.admin-logout:hover { border-color: #efc6ca; background: #fff6f6; color: #a52632; box-shadow: none; }
.admin-content { width: min(1500px, 100%); margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.25rem); }
.admin-content > .row:first-child { margin-bottom: 1.15rem; }
.admin-content h1 { margin-bottom: .35rem; }
.admin-content h1 + p { margin-top: .3rem; }
.admin-content .panel { border-radius: 13px; }
.admin-content .panel > form.row { align-items: end; }
.admin-content .panel > form.row label { align-self: end; }
.admin-mobile-menu { display: none; }
.admin-content .success { margin: 0 0 1rem; }
.admin-content .panel.error { margin: 0 0 1rem; }
.admin-welcome { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.admin-welcome h1 { margin: .25rem 0 .35rem; }
.admin-welcome p { margin: 0; }
.admin-date-filter { display: flex; align-items: end; gap: .55rem; margin: 0; padding: .55rem; border: 1px solid #e1e8ef; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgb(27 54 82 / 4%); }
.admin-date-filter label { margin: 0 .25rem 0 .45rem; color: #708195; font-size: .75rem; white-space: nowrap; }
.admin-date-filter input { width: 150px; min-height: 38px; padding: .45rem .55rem; border-color: #e1e8ef; font-size: .82rem; }
.admin-date-filter button { min-height: 38px; padding: .45rem .7rem; font-size: .79rem; }
.admin-stat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.15rem; }
.admin-stat-cards .card { display: grid; min-height: 150px; align-content: start; gap: .42rem; padding: 1.1rem; border-top: 0; }
.admin-stat-label { display: flex; align-items: center; gap: .6rem; color: #53677c; font-size: .82rem; font-weight: 700; }
.admin-stat-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; font-size: .73rem; font-weight: 800; }
.admin-icon-blue { background: #e8f0fa; color: #316693; }
.admin-icon-green { background: #e6f5ef; color: #23815d; }
.admin-icon-amber { background: #fbf1df; color: #a56b18; }
.admin-icon-slate { background: #edf0f4; color: #5a6d82; }
.admin-stat-cards .number { margin: .25rem 0 0; font-size: 2rem; }
.admin-stat-foot { color: #8795a4; font-size: .72rem; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); gap: 1rem; align-items: start; }
.admin-dashboard-panel { min-width: 0; padding: 1.15rem; }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.admin-panel-heading h2 { margin-bottom: .28rem; font-size: 1rem; }
.admin-panel-heading p { margin: 0; font-size: .77rem; }
.admin-count-badge { display: inline-flex; min-height: 28px; align-items: center; padding: .3rem .55rem; border: 1px solid #d8ece4; border-radius: 999px; background: #eff8f4; color: #287451; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.admin-count-warning { border-color: #f0dfbd; background: #fff8e9; color: #946416; }
.admin-dashboard-panel .table-wrap { margin: 0 -.15rem; }
.admin-dashboard-panel table { font-size: .8rem; }
.admin-dashboard-panel th { font-size: .66rem; }
.admin-dashboard-panel th, .admin-dashboard-panel td { padding: .64rem .55rem; }
.admin-table-subtitle { display: block; margin-top: .12rem; color: #8b99a8; font-size: .68rem; }
.admin-panel-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; font-size: .78rem; font-weight: 800; text-decoration: none; }
.admin-absent-list { display: grid; gap: .1rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.admin-absent-list li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid #edf1f5; }
.admin-absent-list li:last-child { border-bottom: 0; }
.admin-absent-list li > span:last-child { display: grid; gap: .15rem; }
.admin-absent-list strong { color: #33495e; font-size: .79rem; }
.admin-absent-list small { color: #8b99a8; font-size: .69rem; }
.admin-absent-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; background: #eef2f7; color: #607488; font-size: .75rem; font-weight: 800; }
.admin-empty-note { color: #8190a0; font-size: .79rem; line-height: 1.6; }
.admin-list-foot { margin: .65rem 0 0; color: #7b8b9c; font-size: .73rem; }
.admin-holiday-banner { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid #f1ddb3; border-radius: 10px; background: #fff9eb; color: #805b1b; font-size: .83rem; }
.admin-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid #e1e8ef; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.admin-quick-actions h2 { margin: .25rem 0 0; font-size: 1rem; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.admin-quick-links a { display: inline-flex; min-height: 37px; align-items: center; gap: .45rem; padding: .42rem .65rem; border: 1px solid #e3eaf0; border-radius: 9px; color: #52677c; font-size: .75rem; font-weight: 700; text-decoration: none; }
.admin-quick-links a:hover { border-color: #bbd9d6; background: #f2faf8; color: #176c70; text-decoration: none; }
.admin-maintenance-warning { display: grid; gap: .25rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid #f0ddb8; border-radius: 10px; background: #fff8e9; color: #805b1b; font-size: .82rem; line-height: 1.55; }
.admin-maintenance-warning span { color: #8b734e; }
.admin-maintenance-panel { padding: clamp(.8rem, 1.8vw, 1.2rem); }
.admin-reset-form { display: grid; min-width: 230px; gap: .4rem; margin: 0; }
.admin-reset-form input { min-height: 36px; font-size: .76rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }

.account-dropdown { position: relative; }
.account-dropdown > summary { display: flex; min-height: 42px; align-items: center; gap: .55rem; padding: .2rem .45rem; border: 1px solid transparent; border-radius: 10px; color: inherit; list-style: none; cursor: pointer; }
.account-dropdown > summary::-webkit-details-marker { display: none; }
.account-dropdown > summary:hover, .account-dropdown[open] > summary { border-color: #e2e9ef; background: #f7f9fb; }
.account-dropdown-chevron { color: #8190a0; font-size: .9rem; transition: transform .15s ease; }
.account-dropdown[open] .account-dropdown-chevron { transform: rotate(180deg); }
.account-dropdown-menu { position: absolute; z-index: 20; top: calc(100% + .45rem); right: 0; display: grid; width: 200px; gap: .18rem; padding: .4rem; border: 1px solid #e1e8ef; border-radius: 11px; background: #fff; box-shadow: 0 14px 36px rgb(19 42 64 / 18%); }
.account-dropdown-menu a, .account-dropdown-menu button { display: flex; width: 100%; min-height: 40px; align-items: center; padding: .55rem .7rem; border: 0; border-radius: 7px; background: transparent; color: #2e4358; font: inherit; font-size: .85rem; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.account-dropdown-menu a:hover, .account-dropdown-menu button:hover { background: #f0f5f8; color: #126d72; text-decoration: none; }
.account-dropdown-menu form { margin: 0; border-top: 1px solid #edf1f4; padding-top: .18rem; }
.account-dropdown-menu button { color: #a8323e; }
.account-profile-page { width: min(1060px, 100%); margin: 0 auto; }
.account-profile-hero { position: relative; display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.15rem; padding: clamp(1.2rem, 3vw, 1.8rem); overflow: hidden; border: 1px solid #dce8ef; border-radius: 18px; background: radial-gradient(ellipse at 92% 0%, rgb(44 135 142 / 13%), transparent 38%), linear-gradient(115deg, #fff 12%, #f2f8fa); box-shadow: 0 10px 28px rgb(27 54 82 / 5%); }
.account-profile-avatar { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; border: 1px solid #cde5e2; border-radius: 20px; background: linear-gradient(145deg, #e6f4f2, #d9ebef); color: #176b70; font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.account-profile-avatar-image { object-fit: cover; }
.account-profile-intro { min-width: 0; }
.account-profile-eyebrow { display: block; margin-bottom: .28rem; color: #698295; font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.account-profile-intro h1 { margin: 0; color: #18344e; font-size: clamp(1.55rem, 3vw, 2rem); }
.account-profile-intro p { margin: .28rem 0 0; color: #6a7c8c; font-size: .9rem; }
.account-profile-role { margin-left: auto; padding: .46rem .78rem; border: 1px solid #d6e9e5; border-radius: 999px; background: #f2faf7; color: #24745d; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.account-profile-card { max-width: none; margin-bottom: 1.05rem; padding: clamp(1.1rem, 2.3vw, 1.55rem); border-color: #e2eaf0; border-radius: 15px; box-shadow: 0 7px 23px rgb(27 54 82 / 4%); }
.account-profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.account-profile-section-heading h2 { margin: 0; color: #1c354c; font-size: 1.15rem; }
.account-profile-section-heading p { margin: .3rem 0 0; color: #728294; font-size: .84rem; }
.account-profile-section-heading .account-profile-eyebrow { margin-bottom: .22rem; }
.account-profile-lock { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .62rem; border: 1px solid #e3ebf1; border-radius: 8px; background: #f8fafc; color: #61758a; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.account-profile-lock::before { width: 7px; height: 7px; border-radius: 50%; background: #56a68d; content: ""; }
.account-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.account-profile-details > div { display: grid; min-width: 0; gap: .28rem; padding: .75rem .85rem; border: 1px solid #edf1f5; border-radius: 10px; background: #fbfcfd; }
.account-profile-details dt { color: #78899a; font-size: .74rem; font-weight: 700; }
.account-profile-details dd { margin: 0; color: #263c51; font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
.account-profile-biodata .account-profile-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-profile-biodata .account-profile-details > div { padding: .65rem .75rem; background: #fff; }
.account-profile-guidance { display: flex; align-items: flex-start; gap: .65rem; margin: 0 0 1rem; padding: .78rem .9rem; border: 1px solid #e4edf4; border-radius: 10px; background: #f7fafc; }
.account-profile-guidance-icon { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; background: #e4eff5; color: #416b84; font-size: .72rem; font-weight: 800; }
.account-profile-guidance p { margin: 0; color: #65798a; font-size: .78rem; line-height: 1.5; }
.account-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; max-width: none; }
.account-profile-field { display: grid; min-width: 0; align-content: start; gap: .38rem; }
.account-profile-field label { margin: 0; color: #405468; font-size: .8rem; }
.account-profile-field input, .account-profile-field select, .account-profile-field textarea { min-height: 43px; border-color: #d6e0e8; border-radius: 9px; background: #fff; font-size: .87rem; }
.account-profile-field textarea { min-height: 92px; }
.account-profile-field input:disabled { background: #f4f6f8; color: #738294; }
.account-profile-photo-field { grid-column: 1 / -1; }
.account-profile-photo-field input[type="file"] { min-height: auto; padding: .5rem; background: #fbfcfd; }
.account-profile-photo-field small { color: #78899a; font-size: .74rem; line-height: 1.5; }
.account-profile-photo-preview { width: 84px; height: 84px; object-fit: cover; border: 1px solid #dce6eb; border-radius: 14px; background: #f5f8fa; }
.account-profile-form-heading { grid-column: 1 / -1; margin: .25rem 0 -.25rem; padding-top: .85rem; border-top: 1px solid #edf1f4; color: #29435a; font-size: .94rem; }
.account-profile-form .error { margin: 0; color: #b42336; font-size: .77rem; }
.account-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .35rem; padding-top: 1rem; border-top: 1px solid #edf1f4; }
.account-profile-actions button { gap: .4rem; box-shadow: 0 4px 10px rgb(18 59 101 / 13%); }
.account-profile-actions .secondary { min-height: 42px; }
.account-profile-notice, .account-profile-errors { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #cfe7dc; border-radius: 10px; background: #f0faf5; color: #286b4e; font-size: .84rem; font-weight: 650; }
.account-profile-errors { display: grid; gap: .2rem; border-color: #f0d5d5; background: #fff7f6; color: #9c3038; }
.account-profile-errors span { color: #86575a; font-size: .78rem; font-weight: 500; }
.account-profile-qr-figure { display: grid; justify-items: center; gap: .6rem; width: fit-content; margin: 0 auto; padding: 1rem 1.2rem; border: 1px solid #e8eef2; border-radius: 13px; background: #fbfcfd; }
.account-profile-qr-figure img { display: block; width: 200px; height: 200px; }
.account-profile-qr-figure figcaption { color: #506579; font-size: .78rem; font-weight: 700; text-align: center; }
.account-profile-qr-empty { margin: 0; padding: .85rem 1rem; border: 1px dashed #d5e0e8; border-radius: 10px; color: #718294; font-size: .82rem; text-align: center; }
.account-profile-actions-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid #e2eaf0; border-radius: 14px; background: #fff; box-shadow: 0 7px 23px rgb(27 54 82 / 4%); }
.account-profile-actions-panel > div:first-child { display: grid; gap: .18rem; }
.account-profile-actions-panel > div:first-child strong { color: #263d52; font-size: .9rem; }
.account-profile-actions-panel > div:first-child > span:last-child { color: #78899a; font-size: .76rem; }
.account-profile-quick-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.account-profile-quick-actions button { min-height: 39px; padding: .55rem .8rem; font-size: .8rem; }
.account-profile-dialog { width: min(760px, calc(100vw - 2rem)); max-width: none; max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 16px; background: transparent; color: var(--ink); box-shadow: 0 25px 80px rgb(7 28 47 / 35%); }
.account-profile-dialog::backdrop { background: rgb(13 31 49 / 58%); backdrop-filter: blur(3px); }
.account-profile-dialog > .account-profile-card { margin: 0; padding: clamp(1.15rem, 3vw, 1.7rem); border: 1px solid #dfe8ee; border-radius: 16px; box-shadow: none; }
.account-profile-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.account-profile-dialog-heading h2 { margin: 0; color: #1c354c; font-size: 1.2rem; }
.account-profile-dialog-heading p { margin: .3rem 0 0; color: #728294; font-size: .82rem; }
.account-profile-dialog-close { display: grid; width: 36px; min-width: 36px; min-height: 36px; place-items: center; padding: 0; border: 1px solid #e2e9ef; border-radius: 10px; background: #f8fafb; color: #61758a; font-size: 1.35rem; line-height: 1; }
.account-profile-dialog-close:hover { border-color: #d4e0e8; background: #edf3f6; color: #29445c; box-shadow: none; }
.account-password-dialog { width: min(500px, calc(100vw - 2rem)); }
.account-password-form { display: grid; gap: .85rem; }
.account-password-form .account-profile-actions { margin-top: .2rem; }
.account-password-card { max-width: 520px; }
.account-password-card form { display: grid; gap: .55rem; }
.account-password-card button { justify-self: start; margin-top: .5rem; }
.account-password-card .error { margin: 0 0 .35rem; }
body:not(.admin-body) .account-dropdown-menu { color: #2e4358; }
body:not(.admin-body) .account-dropdown > summary .admin-account-copy strong { color: inherit; }
.public-dashboard .account-dropdown-menu a { border: 0; background: transparent; color: #2e4358; }
.public-dashboard .account-dropdown-menu a:hover { background: #f0f5f8; color: #126d72; }
.public-dashboard .account-dropdown-menu button { border: 0; background: transparent; color: #a8323e; }
.public-dashboard .account-dropdown-menu button:hover { background: #f0f5f8; color: #a8323e; }

.attendance-report-heading { display: block; padding: 1.25rem 1.5rem .85rem; }
.gtk-attendance-screen-hidden { display: none; }
.attendance-report-brand { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 185px; }
.attendance-report-heading--without-logo .attendance-report-brand { grid-template-columns: minmax(0, 1fr); }
.attendance-report-logo { grid-column: 1; grid-row: 1; width: 168px; max-height: 175px; object-fit: contain; justify-self: center; }
.attendance-report-school { grid-column: 2; grid-row: 1; color: #202020; font-family: Georgia, 'Times New Roman', serif; text-align: center; }
.attendance-report-heading--without-logo .attendance-report-school { grid-column: 1; }
.attendance-report-foundation { margin: 0 0 .12rem; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: .08em; }
.attendance-report-school-name { margin: 0 0 .38rem; color: #202020; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 2.7vw, 2.1rem); letter-spacing: .015em; }
.attendance-report-expertise-label { display: inline; margin: 0 .4rem 0 0; font-size: .95rem; font-weight: 700; }
.attendance-report-expertise { display: inline-block; margin: 0; padding: 0; list-style: none; font-size: .95rem; font-weight: 700; line-height: 1.35; text-align: left; vertical-align: top; }
.attendance-report-expertise li::before { content: '* '; }
.attendance-report-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .5rem; margin-top: .65rem; padding-bottom: .35rem; border-bottom: 1px solid #5d6670; color: #323b45; font-size: .72rem; line-height: 1.3; text-align: center; }
.attendance-report-contact > span:not(:last-child)::after { margin-left: .5rem; color: #74808b; content: '|'; }
.attendance-report-contact a { color: inherit; }
.attendance-report-document-title { margin: .55rem 0 0; color: #263b4d; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: .95rem; letter-spacing: .04em; text-align: center; }
.gtk-summary-title { margin-bottom: .8rem; }
.gtk-summary-title h1 { margin-bottom: .25rem; font-size: 1.35rem; }
.gtk-summary-title p { margin: 0; }
.gtk-summary-print-details { display: none; }
.gtk-summary-controls { align-items: end; margin-bottom: .85rem; padding: .7rem .9rem; }
.gtk-summary-controls label { margin: 0; }
.gtk-summary-controls input { width: 155px; min-height: 38px; padding: .4rem .55rem; }
.gtk-summary-controls button, .gtk-summary-controls a { min-height: 38px; font-size: .8rem; }
.gtk-summary-controls a { margin-left: auto; }
.gtk-summary-daily { margin-bottom: .85rem; padding: 1rem 1.1rem; }
.gtk-summary-daily .admin-panel-heading { margin-bottom: .7rem; }
.gtk-summary-daily .admin-panel-heading h2 { margin: .18rem 0; font-size: 1rem; }
.gtk-summary-daily .admin-panel-heading p { margin: 0; font-size: .76rem; }
.gtk-summary-daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gtk-summary-daily-card { min-width: 0; padding: .8rem; border: 1px solid #e8edf2; border-radius: 10px; background: #fbfcfd; }
.gtk-summary-daily-card .admin-stat-label { font-size: .76rem; }
.gtk-summary-daily-card .admin-stat-icon { width: 29px; height: 29px; border-radius: 9px; font-size: .65rem; }
.gtk-summary-log-list { display: grid; gap: .35rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.gtk-summary-log-list li { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .42rem .55rem; border: 1px solid #edf1f4; border-radius: 8px; background: #fff; font-size: .78rem; }
.gtk-summary-log-list li strong { color: #29445c; font-variant-numeric: tabular-nums; }
.gtk-summary-log-list li span { color: #607589; }
.gtk-summary-daily-card > p { margin: .6rem 0 0; color: #607589; font-size: .8rem; }
.gtk-summary-leave-type { display: block; margin-top: .6rem; color: #344c60; font-size: .84rem; }
.gtk-summary-stats { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 0 0 .85rem; }
.gtk-summary-stats .card { display: flex; min-width: 0; min-height: 58px; align-items: center; justify-content: space-between; gap: .4rem; margin: 0; padding: .55rem .7rem; border: 1px solid #e3eaf0; border-radius: 10px; box-shadow: 0 4px 12px rgb(27 54 82 / 4%); }
.gtk-summary-stats .muted { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.gtk-summary-stats .number { flex: 0 0 auto; margin: 0; font-size: 1.18rem; }
.gtk-summary-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .75rem; margin-top: .85rem; }
.gtk-summary-footer .gtk-summary-stats { width: 100%; margin: 0; }
.gtk-summary-verification { display: flex; justify-content: center; }
.gtk-summary-verification .attendance-report-qr { margin: 0; text-align: center; }
.gtk-summary-verification .attendance-report-qr img { display: block; width: 88px; height: 88px; }
.gtk-summary-verification .attendance-report-qr figcaption { margin-top: .25rem; color: var(--muted); font-size: .72rem; }
.gtk-summary-signature { display: none; }
.gtk-summary-table { margin-bottom: .85rem; padding: 1rem; }
.gtk-summary-table .admin-panel-heading { margin-bottom: .65rem; }
.gtk-summary-table .admin-panel-heading h2 { margin: .18rem 0; font-size: 1rem; }
.gtk-summary-actions { margin-top: .2rem; }
.gtk-summary-page > .gtk-summary-export-header { display: none; }
.gtk-summary-export-button { min-height: 38px; padding: .5rem .8rem; font-size: .8rem; }

@media print {
    .admin-body:has(.gtk-summary-page) { min-width: 0; background: #fff; }
    .admin-body:has(.gtk-summary-page) .admin-content { display: flex; min-height: 320mm; flex-direction: column; }
    .gtk-summary-page { display: flex; width: 100%; min-height: 320mm; flex: 1 0 auto; flex-direction: column; }
    .gtk-summary-page .gtk-summary-export-header { display: block !important; }
    .gtk-summary-page .gtk-summary-export-header { order: 1; }
    .admin-body:has(.gtk-summary-page) .admin-sidebar,
    .admin-body:has(.gtk-summary-page) .admin-topbar,
    .gtk-summary-page .gtk-summary-controls,
    .gtk-summary-page .gtk-summary-actions,
    .gtk-summary-page .gtk-summary-export-button { display: none !important; }
    .admin-body:has(.gtk-summary-page) .admin-shell { display: block; min-height: 0; }
    .admin-body:has(.gtk-summary-page) .admin-workspace,
    .admin-body:has(.gtk-summary-page) .admin-content,
    .admin-body:has(.gtk-summary-page) main { width: 100%; max-width: none; margin: 0; padding: 0; }
    .gtk-summary-page .attendance-report-heading { margin-bottom: 2mm; padding: 2mm 3mm 1.5mm; border: 1px solid #cbd5e1; border-radius: 2mm; box-shadow: none; break-inside: avoid; }
    .gtk-summary-page .attendance-report-brand { grid-template-columns: 30mm minmax(0, 1fr); gap: 2mm; min-height: 30mm; }
    .gtk-summary-page .attendance-report-heading--without-logo .attendance-report-brand { grid-template-columns: minmax(0, 1fr); }
    .gtk-summary-page .attendance-report-logo { width: 27mm; max-height: 28mm; }
    .gtk-summary-page .attendance-report-school { text-align: center; }
    .gtk-summary-page .attendance-report-foundation { margin-bottom: .5mm; color: #334155; font-size: 9pt; letter-spacing: .04em; }
    .gtk-summary-page .attendance-report-school-name { margin-bottom: .8mm; color: #102b46; font-size: 13pt; font-weight: 800; }
    .gtk-summary-page .attendance-report-expertise-label,
    .gtk-summary-page .attendance-report-expertise { font-size: 7pt; }
    .gtk-summary-page .attendance-report-expertise { line-height: 1.15; }
    .gtk-summary-page .attendance-report-contact { gap: .5mm 1mm; margin-top: 1mm; padding-bottom: 1mm; font-size: 6pt; }
    .gtk-summary-page .attendance-report-contact > span:not(:last-child)::after { margin-left: 1mm; }
    .gtk-summary-page .attendance-report-document-title { margin-top: 1mm; font-size: 7pt; }
    .gtk-summary-page .gtk-summary-title { display: flex; align-items: flex-start; margin: 0 0 2mm; }
    .gtk-summary-page .gtk-summary-title { display: flex; order: 2; width: 100%; align-items: flex-start; margin: 0 0 2mm; }
    .gtk-summary-page .gtk-summary-title h1,
    .gtk-summary-page .gtk-summary-title > div > .muted { display: none; }
    .gtk-summary-page .gtk-summary-print-details { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 1.5mm 8mm; padding: 2mm 3mm; border: 1px solid #d7e0e9; border-radius: 2mm; background: #f8fafc; font-size: 7.5pt; }
    .gtk-summary-page .gtk-summary-daily { display: none; }
    .gtk-summary-page .gtk-summary-table { order: 3; flex: 1 0 auto; break-inside: auto; box-shadow: none; }
    .gtk-summary-page .gtk-summary-footer { display: grid; order: 4; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2mm 5mm; margin-top: auto; padding-top: 2mm; break-inside: avoid; }
    .gtk-summary-page .gtk-summary-stats { width: 78%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1mm; margin: 0; }
    .gtk-summary-page .gtk-summary-stats .card { min-height: 0; padding: 1mm 1.5mm; box-shadow: none; }
    .gtk-summary-page .gtk-summary-stats .card { border: 1px solid #d5dde6; border-radius: 1mm; break-inside: avoid; }
    .gtk-summary-page .gtk-summary-stats .muted { font-size: 5.5pt; }
    .gtk-summary-page .gtk-summary-stats .number { font-size: 8pt; }
    .gtk-summary-page .gtk-summary-table { padding: 1.5mm; overflow: visible; border: 1px solid #cbd5e1; border-radius: 2mm; }
    .gtk-summary-page .gtk-summary-table > table { display: table; width: 100%; max-width: none; overflow: visible; table-layout: fixed; font-size: 8pt; }
    .gtk-summary-page .gtk-summary-table th,
    .gtk-summary-page .gtk-summary-table td { padding: 1.25mm 1mm; border-color: #d9e0e8; overflow-wrap: anywhere; line-height: 1.2; }
    .gtk-summary-page .gtk-summary-table th { background: #edf2f7 !important; color: #24384d; font-size: 7pt; }
    .gtk-summary-page .gtk-summary-table th:nth-child(1),
    .gtk-summary-page .gtk-summary-table td:nth-child(1) { width: 23%; }
    .gtk-summary-page .gtk-summary-table th:nth-child(2),
    .gtk-summary-page .gtk-summary-table td:nth-child(2) { width: 15%; }
    .gtk-summary-page .gtk-summary-table th:nth-child(3),
    .gtk-summary-page .gtk-summary-table td:nth-child(3),
    .gtk-summary-page .gtk-summary-table th:nth-child(4),
    .gtk-summary-page .gtk-summary-table td:nth-child(4),
    .gtk-summary-page .gtk-summary-table th:nth-child(5),
    .gtk-summary-page .gtk-summary-table td:nth-child(5) { width: 12%; }
    .gtk-summary-page .gtk-summary-table th:nth-child(6),
    .gtk-summary-page .gtk-summary-table td:nth-child(6) { width: 26%; }
    .gtk-summary-page .gtk-summary-table thead { display: table-header-group; }
    .gtk-summary-page .gtk-summary-table tr { break-inside: avoid; }
    .gtk-summary-page .gtk-summary-table .admin-panel-heading { margin-bottom: 1mm; }
    .gtk-summary-page .gtk-summary-table .admin-panel-heading h2 { font-size: 9pt; }
    .gtk-summary-page .gtk-summary-verification { margin-left: auto; }
    .gtk-summary-page .gtk-summary-verification .attendance-report-qr img { width: 14mm; height: 14mm; margin: 0 auto; }
    .gtk-summary-page .gtk-summary-verification .attendance-report-qr figcaption { font-size: 6pt; }
    .gtk-summary-page .gtk-summary-signature { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm 8mm; padding-top: 2mm; border-top: 1px solid #d9e0e8; break-inside: avoid; }
    .gtk-summary-page .gtk-summary-signature > p { grid-column: 1 / -1; margin: 0; color: #334155; font-size: 7.5pt; font-weight: 600; }
    .gtk-summary-page .gtk-summary-signature-space { display: grid; width: 48mm; max-width: 100%; min-height: 22mm; grid-template-rows: auto 1fr auto; text-align: center; font-size: 7pt; }
    .gtk-summary-page .gtk-summary-signature-space--gtk { grid-column: 2; justify-self: end; }
    .gtk-summary-page .gtk-summary-signature-space--principal { grid-column: 1; grid-row: 2; justify-self: start; }
    .gtk-summary-page .gtk-summary-signature-space strong { color: #334155; }
    .gtk-summary-page .gtk-summary-signature-space span { align-self: end; margin: 0 2mm 1mm; border-bottom: 1px solid #64748b; }
    .gtk-summary-page .gtk-summary-signature-space div { color: #64748b; }
    .gtk-summary-page .gtk-summary-table thead { display: table-header-group; }
    .gtk-summary-page .gtk-summary-table tr { break-inside: avoid; }
    .gtk-summary-page .gtk-summary-table .admin-panel-heading { display: none; }
}

@media (max-width: 1050px) {
    .admin-shell { grid-template-columns: 232px minmax(0, 1fr); }
    .admin-sidebar { padding-right: .75rem; padding-left: .75rem; }
    .admin-topbar { padding-right: 1.2rem; padding-left: 1.2rem; }
    .admin-account-copy { max-width: 135px; }
}
@media (max-width: 760px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: relative; z-index: 6; display: block; width: 100%; height: auto; min-height: 0; padding: .8rem 1rem; overflow: visible; }
    .admin-brand { padding: 0; }
    .admin-brand-mark { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
    .admin-sidebar-label, .admin-sidebar > .admin-nav, .admin-sidebar-bottom { display: none; }
    .admin-topbar { position: relative; min-height: 68px; padding: .7rem 1rem; }
    .admin-mobile-menu { position: relative; display: block; }
    .admin-mobile-menu summary { display: inline-flex; min-height: 38px; align-items: center; gap: .4rem; padding: .45rem .65rem; border: 1px solid #e0e7ee; border-radius: 9px; color: #40566a; font-size: .8rem; font-weight: 700; list-style: none; cursor: pointer; }
    .admin-mobile-menu summary::-webkit-details-marker { display: none; }
    .admin-mobile-menu[open] summary { border-color: #b8d9d7; background: #eff9f7; color: #176c70; }
    .admin-mobile-panel { position: absolute; z-index: 8; top: calc(100% + .65rem); left: 0; width: min(310px, calc(100vw - 2rem)); max-height: min(72vh, 620px); padding: .7rem; overflow-y: auto; border: 1px solid #e2e8ee; border-radius: 13px; background: #102b46; box-shadow: 0 18px 45px rgb(9 29 48 / 28%); }
    .admin-mobile-panel .admin-nav { display: grid; }
    .admin-mobile-panel .admin-nav-heading { margin-top: .7rem; }
    .admin-mobile-panel .admin-nav a { color: #d3e0eb; }
    .admin-mobile-panel .admin-nav a[aria-current="page"] { color: #fff; }
    .admin-page-context { display: none; }
    .admin-topbar-left, .admin-topbar-actions { gap: .55rem; }
    .admin-home-link { min-height: 36px; padding: .4rem .55rem; border: 1px solid #e3e9ef; border-radius: 9px; font-size: .75rem; }
    .admin-home-link span[aria-hidden="true"] { display: none; }
    .admin-account { gap: 0; padding-left: .6rem; }
    .admin-avatar { width: 33px; height: 33px; flex-basis: 33px; }
    .admin-account-copy { display: none; }
    .account-dropdown > summary { min-width: 40px; justify-content: center; padding: .15rem; }
    .account-dropdown-chevron { display: none; }
    .admin-logout { width: 37px; min-height: 37px; padding: .4rem; }
    .admin-logout span:last-child { display: none; }
    .admin-content { padding: 1.15rem .85rem 2rem; }
    .admin-welcome { align-items: flex-start; flex-direction: column; }
    .admin-date-filter { width: 100%; }
    .admin-date-filter input { width: auto; flex: 1; }
    .admin-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-quick-actions { align-items: flex-start; flex-direction: column; }
    .account-profile-biodata .account-profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-profile-actions-panel { align-items: flex-start; flex-direction: column; }
    .attendance-report-heading { padding: 1rem; }
    .attendance-report-brand { grid-template-columns: 1fr; gap: .65rem; }
    .attendance-report-logo { grid-column: 1; grid-row: 1; width: 100px; max-height: 105px; }
    .attendance-report-school, .attendance-report-heading--without-logo .attendance-report-school { grid-column: 1; grid-row: 2; }
    .attendance-report-foundation { font-size: 1rem; }
    .attendance-report-school-name { font-size: 1.3rem; }
    .attendance-report-expertise-label, .attendance-report-expertise { font-size: .78rem; }
    .attendance-report-contact { font-size: .65rem; }
    .attendance-report-document-title { font-size: .8rem; }
    .gtk-summary-title { align-items: flex-start; }
    .gtk-summary-controls { align-items: stretch; }
    .gtk-summary-controls input { flex: 1; }
    .gtk-summary-controls a { margin-left: 0; }
    .gtk-summary-daily-grid { grid-template-columns: 1fr; }
    .gtk-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gtk-summary-table { padding: .8rem; }
}
@media (max-width: 420px) {
    .admin-topbar { gap: .4rem; }
    .admin-home-link { padding: .4rem; }
    .admin-account { padding-left: .45rem; }
    .admin-content > .row:first-child { align-items: flex-start; }
    .admin-content > .row:first-child > .button { min-height: 38px; padding: .5rem .7rem; font-size: .8rem; }
    .admin-stat-cards .card { min-height: 135px; padding: .9rem; }
    .admin-stat-foot { font-size: .66rem; }
    .admin-quick-links { width: 100%; }
    .account-profile-hero { align-items: flex-start; gap: .8rem; }
    .account-profile-avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; font-size: 1.4rem; }
    .account-profile-role { position: absolute; top: .9rem; right: .9rem; padding: .35rem .5rem; font-size: .66rem; }
    .account-profile-intro { padding-right: 4.2rem; }
    .account-profile-details, .account-profile-biodata .account-profile-details { grid-template-columns: 1fr; }
    .account-profile-section-heading { align-items: flex-start; flex-direction: column; }
    .account-profile-form { grid-template-columns: 1fr; gap: .75rem; }
    .account-profile-form-heading, .account-profile-actions { grid-column: 1; }
    .account-profile-actions > * { flex: 1; }
    .account-profile-quick-actions { width: 100%; }
    .account-profile-quick-actions button { flex: 1; }
    .account-profile-qr-figure img { width: 180px; height: 180px; }
    .attendance-report-heading { padding: .8rem; }
    .attendance-report-brand { gap: .5rem; }
    .attendance-report-expertise-label, .attendance-report-expertise { font-size: .72rem; }
    .attendance-report-contact { font-size: .6rem; }
    .gtk-summary-controls > * { width: 100%; }
    .gtk-summary-controls input { width: 100%; }
    .gtk-summary-stats .card { padding: .5rem; }
    .gtk-summary-stats .muted { font-size: .62rem; }
    .gtk-summary-stats .number { font-size: 1rem; }
}

@media print {
    .admin-body:has(.gtk-summary-page) .gtk-summary-page > .attendance-report-heading {
        display: block !important;
        width: 100% !important;
        padding: 2mm 3mm 1.5mm !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-brand {
        display: grid !important;
        width: 100% !important;
        min-height: 30mm !important;
        grid-template-columns: 30mm minmax(0, 1fr) !important;
        grid-template-rows: minmax(30mm, auto) !important;
        align-items: center !important;
        gap: 2mm !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 27mm !important;
        max-width: 27mm !important;
        max-height: 28mm !important;
        justify-self: center !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-school {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-heading--without-logo .attendance-report-brand {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-heading--without-logo .attendance-report-school {
        grid-column: 1 !important;
    }
    .admin-body:has(.gtk-summary-page) .gtk-summary-page .attendance-report-contact {
        width: 100% !important;
        justify-content: center !important;
    }
}
