:root {
  --ink: #10263e;
  --muted: #6b7c91;
  --paper: #ffffff;
  --canvas: #f3f7fb;
  --line: #dbe5ef;
  --blue: #0a62b7;
  --blue-dark: #083c76;
  --cyan: #17b6cf;
  --green: #128a62;
  --orange: #ec8d22;
  --red: #d84857;
  --shadow: 0 18px 45px rgba(20, 55, 91, .12);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) 1.05fr; background: #fff; }
.login-panel { width: min(440px, calc(100% - 48px)); margin: auto; padding: 48px 0; }
.login-art { position: relative; overflow: hidden; min-height: 100vh; background: radial-gradient(circle at 20% 18%, #35d5e1 0 4%, transparent 23%), radial-gradient(circle at 83% 72%, #1471cc 0 8%, transparent 35%), linear-gradient(130deg, #06346a 0%, #075da7 55%, #0a8bbd 100%); }
.login-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(90deg, transparent 96%, #fff 96%), linear-gradient(0deg, transparent 96%, #fff 96%); background-size: 44px 44px; transform: perspective(500px) rotateX(35deg) scale(1.35); transform-origin: bottom; }
.login-orb { position: absolute; border: 1px solid rgba(255,255,255,.33); border-radius: 50%; }
.orb-one { width: 360px; height: 360px; top: 15%; left: -110px; }
.orb-two { width: 510px; height: 510px; right: -180px; bottom: -120px; }
.login-stat { position: absolute; left: 15%; bottom: 23%; display: grid; gap: 3px; color: white; padding: 18px 24px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; background: rgba(5, 35, 70, .2); backdrop-filter: blur(10px); }
.login-stat.second { left: auto; right: 15%; bottom: 12%; }
.login-stat strong { font-size: 38px; line-height: 1; }.login-stat span { font-size: 13px; opacity: .9; }
.brand-lockup { display: flex; align-items: center; direction: ltr; }.brand-logo { display: block; height: auto; max-width: 100%; }.login-brand { width: min(278px, 100%); margin-bottom: 28px; }.brand-logo-login { width: 278px; }.side-brand { width: 100%; padding: 0 4px 17px; }.brand-logo-sidebar { width: 208px; }
.login-intro { position: relative; }.eyebrow { color: var(--blue); letter-spacing: .7px; font-size: 12px; margin: 0 0 9px; font-weight: 700; }.login-intro h1 { margin: 0; font-size: 32px; letter-spacing: -.6px; }.login-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; margin: 12px 0 28px; font-size: 14px; }.language-picker { position: absolute; left: 0; top: -7px; display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }.language-picker select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; background: #fff; color: var(--ink); }
.form-stack { display: grid; gap: 17px; }.form-stack label, .form-grid label, .modal-form label { display: grid; gap: 7px; color: #43576d; font-weight: 700; font-size: 13px; }.form-stack input, .form-stack select, .form-grid input, .form-grid select, .form-grid textarea, .modal-form input, .modal-form select, .modal-form textarea { border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; color: var(--ink); background: #fff; width: 100%; transition: border .15s, box-shadow .15s; }.form-stack input:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,98,183,.12); }
.button { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s; }.button:hover:not(:disabled) { transform: translateY(-1px); }.button.primary { color: #fff; background: linear-gradient(135deg, var(--blue), #168cc5); box-shadow: 0 8px 17px rgba(10, 98, 183, .24); }.button.secondary { background: #e9f3fb; color: var(--blue-dark); }.button.danger { color: #fff; background: var(--red); }.button.wide { width: 100%; padding: 14px; margin-top: 4px; }
.login-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 20px 0 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }.sidebar { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 25px 15px 17px; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 20; }.side-brand { padding: 0 10px 25px; }.navigation { display: grid; gap: 3px; overflow: auto; }.navigation p { margin: 19px 10px 6px; color: #91a0b0; font-size: 10px; font-weight: 800; letter-spacing: .75px; }.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; padding: 11px 12px; border-radius: 10px; color: #52657b; background: transparent; text-align: right; font-weight: 700; font-size: 13px; }.nav-link span { display: grid; place-items: center; width: 18px; font-size: 17px; color: #8494a7; }.nav-link:hover { background: #f4f8fb; }.nav-link.active { background: linear-gradient(90deg, #e7f7fc, #edf5fd); color: var(--blue-dark); }.nav-link.active span { color: var(--blue); }.sidebar-user { margin-top: auto; border-top: 1px solid var(--line); padding: 17px 7px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }.sidebar-user strong { font-size: 12px; display: block; }.sidebar-user small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8ed1e7, #2a83c1); color: white; font-weight: 900; }.icon-text, .round-button, .menu-button { border: 0; background: transparent; color: var(--blue-dark); }.icon-text { font-size: 18px; padding: 5px; }.workspace { min-width: 0; }.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 3vw, 43px); background: rgba(255,255,255,.83); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }.topbar h1 { margin: 0; font-size: 23px; letter-spacing: -.4px; }.topbar .eyebrow { margin-bottom: 3px; }.top-actions { display: flex; align-items: center; gap: 14px; }.connection { color: var(--green); font-size: 12px; font-weight: 700; }.connection i { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-left: 4px; box-shadow: 0 0 0 4px rgba(18,138,98,.12); }.today { color: var(--muted); font-size: 12px; }.round-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edf4fa; font-weight: 900; font-size: 18px; }.menu-button { display: none; font-size: 23px; }.view-root { padding: 30px clamp(18px, 3vw, 43px) 92px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 22px; }.page-head h2 { font-size: 24px; margin: 0; letter-spacing: -.5px; }.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 680px; }.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }.filter-row label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }.filter-row input, .filter-row select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(22px, 4vw, 38px); background: linear-gradient(125deg, #083c76, #0968ae 61%, #0aa5c0); color: #fff; box-shadow: var(--shadow); }.hero::after { content: ""; position: absolute; width: 370px; height: 370px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; left: -130px; top: -195px; }.hero > * { position: relative; }.hero h2 { margin: 0; font-size: clamp(23px, 3vw, 33px); }.hero p { color: rgba(255,255,255,.84); max-width: 620px; font-size: 14px; line-height: 1.75; }.hero-layout { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }.hero-badges span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.11); border-radius: 50px; font-size: 12px; }.hero-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }.hero .button.primary { background: #fff; color: var(--blue-dark); box-shadow: none; }.hero .button.secondary { background: rgba(255,255,255,.15); color: #fff; }.meter { text-align: center; min-width: 118px; }.ring { --value: 0; width: 101px; height: 101px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#73e7ec calc(var(--value) * 1%), rgba(255,255,255,.18) 0); margin: 0 auto 8px; }.ring > div { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #0b62a5; }.ring strong { font-size: 20px; }.ring small, .meter > span { font-size: 11px; color: rgba(255,255,255,.8); }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 13px; margin: 19px 0; }.stat-card { background: var(--paper); border: 1px solid #e6edf4; box-shadow: 0 7px 19px rgba(39,75,110,.06); border-radius: 16px; padding: 17px; }.stat-card span { display: block; color: var(--muted); font-size: 11px; }.stat-card strong { display: block; font-size: 27px; margin-top: 7px; letter-spacing: -.6px; }.stat-card.green strong { color: var(--green); }.stat-card.orange strong { color: var(--orange); }.stat-card.red strong { color: var(--red); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 18px; }.panel { background: var(--paper); border: 1px solid #e4ecf3; border-radius: 17px; padding: 18px; box-shadow: 0 7px 20px rgba(39,75,110,.05); }.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }.panel-title h3 { margin: 0; font-size: 15px; }.panel-title > span { color: var(--muted); font-size: 11px; }.stack { display: grid; gap: 18px; }.alert { padding: 11px 12px; border-radius: 9px; margin-top: 8px; font-size: 12px; line-height: 1.5; }.alert.warning { color: #805105; background: #fff6dc; }.alert.danger { color: #8e2733; background: #ffe9ec; }.alert.info { color: #164d7d; background: #eaf5ff; }.coverage-row { display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; margin-top: 11px; }.coverage-row b { color: var(--ink); text-align: left; }.bar { height: 7px; border-radius: 8px; background: #edf2f7; overflow: hidden; }.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }.data-table th { color: #8a9aad; font-weight: 800; font-size: 10px; letter-spacing: .2px; padding: 0 10px 10px; text-align: right; white-space: nowrap; }.data-table td { border-top: 1px solid #edf1f5; padding: 12px 10px; vertical-align: middle; color: #46596d; font-size: 12px; }.data-table .name { color: var(--ink); font-weight: 800; }.subtext { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }.badge.blue { color: #14548a; background: #e6f3fc; }.badge.green { color: #116347; background: #e0f5ed; }.badge.orange { color: #8b5410; background: #fff0d8; }.badge.red { color: #a52c39; background: #ffe5e8; }.badge.gray { color: #647386; background: #eef2f6; }.action-set { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }.action-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; background: #fff; color: var(--blue-dark); font-size: 10px; font-weight: 800; }.action-button.danger { color: var(--red); border-color: #f6cbd1; }.empty { color: var(--muted); text-align: center; padding: 28px !important; }.mobile-cards { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.form-grid .span-two { grid-column: span 2; }.form-grid textarea { min-height: 76px; resize: vertical; }.read-only-note { color: var(--muted); font-size: 12px; padding: 10px 0; }
.attendance-site-map { height: 330px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #eaf1f6; direction: ltr; }.attendance-site-map .leaflet-control-attribution { font-size: 10px; }.boundary-tools { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 9px; }.boundary-summary { color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(8, 29, 53, .53); backdrop-filter: blur(3px); }.modal { width: min(620px, 100%); max-height: min(740px, 92vh); overflow: auto; background: #fff; border-radius: 19px; box-shadow: 0 28px 75px rgba(0,0,0,.28); }.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px 13px; border-bottom: 1px solid var(--line); }.modal-header h3 { margin: 0; font-size: 17px; }.modal-close { border: 0; background: #eef3f7; color: var(--ink); border-radius: 50%; width: 28px; height: 28px; font-size: 18px; }.modal-form { display: grid; gap: 14px; padding: 19px 20px; }.modal-info { margin: 0; padding: 10px 11px; background: #edf7fd; color: #285878; font-size: 12px; line-height: 1.6; border-radius: 8px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }.checkbox-line { display: flex !important; align-items: center; gap: 8px; }.checkbox-line input { width: auto; }
.toast-region { position: fixed; z-index: 120; top: 17px; left: 17px; display: grid; gap: 7px; max-width: min(360px, calc(100vw - 34px)); }.toast { background: #153d66; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: 0 14px 35px rgba(0,0,0,.18); font-size: 12px; line-height: 1.5; }.toast.error { background: #a53443; }.toast.success { background: #137050; }
.bottom-nav { display: none; }.menu-backdrop { display: none; }

@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(3, 1fr); }.content-grid { grid-template-columns: 1fr; }.sidebar { width: 230px; }.app-shell { grid-template-columns: 230px minmax(0,1fr); } }
@media (max-width: 760px) { .login-screen { display: block; }.login-art { display: none; }.login-panel { width: min(440px, calc(100% - 36px)); padding: 40px 0; }.login-brand { width: min(258px, 100%); margin-bottom: 24px; }.brand-logo-login { width: 258px; }.app-shell { display: block; }.sidebar { position: fixed; width: min(280px, 82vw); right: 0; transform: translateX(105%); transition: transform .2s ease; box-shadow: -10px 0 28px rgba(5,42,76,.13); }.app-shell.menu-open .sidebar { transform: translateX(0); }.app-shell.menu-open .menu-backdrop { display: block; position: fixed; z-index: 15; inset: 0; border: 0; background: rgba(4,25,45,.45); }.topbar { min-height: 70px; padding: 12px 18px; }.menu-button { display: block; }.topbar h1 { font-size: 18px; }.today { display: none; }.view-root { padding: 19px 15px 88px; }.page-head { margin-bottom: 17px; }.page-head h2 { font-size: 20px; }.page-head p { font-size: 12px; }.hero { border-radius: 17px; }.hero-layout { grid-template-columns: 1fr; }.meter { display: none; }.stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.stat-card { padding: 13px; border-radius: 13px; }.stat-card strong { font-size: 22px; }.panel { border-radius: 13px; padding: 14px; }.table-wrap { display: none; }.mobile-cards { display: grid; gap: 9px; }.mobile-card { padding: 12px; border: 1px solid #e7eef4; border-radius: 11px; }.mobile-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }.mobile-card strong { font-size: 13px; }.mobile-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 11px 0; }.mobile-meta span { display: block; color: var(--muted); font-size: 10px; }.mobile-meta b { display: block; font-size: 11px; margin-top: 2px; color: #43576d; }.mobile-card .action-set { border-top: 1px solid #edf1f5; padding-top: 9px; }.bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 2px; height: 65px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); bottom: 0; inset-inline: 0; z-index: 30; padding: 4px 5px max(4px, env(safe-area-inset-bottom)); }.bottom-link { display: grid; place-items: center; gap: 1px; height: 54px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }.bottom-link span { font-size: 18px; }.bottom-link small { font-size: 9px; font-weight: 700; }.bottom-link.active { color: var(--blue); background: #edf7fc; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-two { grid-column: span 1; }.modal-backdrop { padding: 0; align-items: end; }.modal { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }.login-intro h1 { font-size: 28px; }.language-picker { position: static; width: max-content; margin-bottom: 20px; }.top-actions { gap: 8px; }.connection { font-size: 10px; } }

@media (max-width: 760px) { .attendance-site-map { height: 270px; } }
