@import url('data:text/css,');

:root {
  --green-950: #073f35;
  --green-900: #0a4b3f;
  --green-800: #0c5b4b;
  --green-700: #11705c;
  --green-100: #e4f3ee;
  --green-50: #f2f9f7;
  --gold: #d6a84b;
  --gold-soft: #fbf2df;
  --ink: #14231f;
  --muted: #6d7d78;
  --line: #e4ebe8;
  --canvas: #f5f7f6;
  --white: #fff;
  --danger: #d65b5b;
  --danger-soft: #fff0f0;
  --blue: #4079ba;
  --blue-soft: #eef5fd;
  --shadow: 0 12px 30px rgba(21, 58, 49, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Tahoma, "Segoe UI", Arial, sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 21px; height: 21px; display: block; }
.hidden { display: none !important; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(circle at 14% 16%, rgba(214,168,75,.23), transparent 25%),
  radial-gradient(circle at 88% 80%, rgba(17,112,92,.18), transparent 27%),
  linear-gradient(135deg, #f7faf8 0%, #edf5f1 100%); }
.login-card { width: min(455px, 100%); background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.8); border-radius: 25px; padding: 28px; box-shadow: 0 24px 80px rgba(7,63,53,.14); backdrop-filter: blur(14px); }
.login-brand { color: var(--ink); padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.login-brand .brand-mark { background: var(--green-100); color: var(--green-700); }
.login-brand span { color: var(--muted); }
.login-card h1 { margin: 22px 0 8px; font-size: 24px; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-form { display: flex; flex-direction: column; gap: 13px; }
.login-form label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 700; }
.login-form input { height: 45px; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; outline: 0; background: white; }
.login-form input:focus { border-color: #8ab9ac; box-shadow: 0 0 0 3px var(--green-100); }
.login-form .button { margin-top: 5px; width: 100%; height: 46px; }
.demo-users { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 18px 0 10px; }
.demo-users button { border: 1px solid var(--line); background: #fbfdfc; color: var(--green-800); border-radius: 10px; padding: 9px 5px; font-size: 10px; }
.demo-users button:hover { background: var(--green-50); border-color: #b8d5cd; }
.login-note { display: block; color: #899792; font-size: 10px; text-align: center; }
.error-note { color: var(--danger) !important; background: var(--danger-soft); border-radius: 10px; padding: 9px 10px; margin-top: 0 !important; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; height: 100vh; position: fixed; inset: 0 0 0 auto; z-index: 20; display: flex; flex-direction: column; background: linear-gradient(155deg, #0b5c4b 0%, #073d34 88%); color: white; padding: 24px 16px 12px; overflow-y: auto; box-shadow: -8px 0 30px rgba(4, 49, 39, .12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 14px; color: #f0cf83; background: rgba(255,255,255,.09); }
.brand-mark svg { width: 35px; height: 35px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.2px; }
.brand span { display: block; color: rgba(255,255,255,.6); font-size: 11px; margin-top: 4px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.nav-item { border: 0; width: 100%; background: transparent; color: rgba(255,255,255,.69); display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; text-align: right; transition: .2s ease; position: relative; }
.nav-item::before { content: ""; position: absolute; right: -16px; width: 3px; height: 0; border-radius: 8px 0 0 8px; background: #f1c66e; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.065); transform: translateX(-2px); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item.active::before { height: 24px; }
.nav-item b { font-weight: 500; flex: 1; }
.nav-item em { min-width: 22px; height: 20px; border-radius: 7px; padding: 0 6px; background: rgba(255,255,255,.13); display: grid; place-items: center; font-size: 10px; font-style: normal; }
.nav-item em.alert { color: #ffd98a; background: rgba(220,175,77,.16); }
.nav-label { color: rgba(255,255,255,.35); font-size: 10px; padding: 14px 12px 5px; }
.sidebar-help { margin-top: auto; display: flex; gap: 9px; align-items: center; background: rgba(255,255,255,.075); padding: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.sidebar-help > span { color: #f0c66d; }
.sidebar-help div { flex: 1; }
.sidebar-help strong, .sidebar-help small { display: block; }
.sidebar-help strong { font-size: 11px; }
.sidebar-help small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 9px; }
.sidebar-help button { background: transparent; border: 0; color: white; }
.sidebar-footer { padding-top: 10px; text-align: center; color: rgba(255,255,255,.28); font-size: 9px; }

.main-area { min-height: 100vh; width: calc(100% - 252px); margin-right: 252px; }
.topbar { height: 86px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-start, .topbar-actions { display: flex; align-items: center; }
.topbar-start { gap: 12px; }
.topbar-actions { gap: 11px; }
.page-heading h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.45px; }
.page-heading p { color: var(--muted); margin: 0; font-size: 11px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: #52645f; background: var(--white); border: 1px solid var(--line); }
.menu-button { display: none; }
.global-search { width: 245px; height: 42px; display: flex; align-items: center; gap: 9px; background: #f7f9f8; color: #8b9995; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; transition: .2s; }
.global-search:focus-within { background: white; border-color: #afd0c5; box-shadow: 0 0 0 3px var(--green-100); }
.global-search input { min-width: 0; flex: 1; outline: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search kbd { font-size: 9px; color: #87958f; border: 1px solid #dce3e1; border-radius: 5px; padding: 2px 5px; background: white; direction: ltr; }
.date-chip { height: 41px; display: flex; align-items: center; gap: 7px; color: #54645f; background: #f8faf9; border: 1px solid var(--line); padding: 0 11px; border-radius: 11px; font-size: 11px; white-space: nowrap; }
.date-chip svg { width: 17px; color: var(--green-700); }
.notification-button { position: relative; }
.notification-button i { width: 7px; height: 7px; border-radius: 50%; background: #e26a5a; border: 2px solid white; position: absolute; top: 8px; right: 8px; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; color: var(--ink); text-align: right; padding: 2px 7px; border-radius: 12px; }
.profile-button:hover { background: var(--green-50); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); font-weight: 700; }
.profile-button strong, .profile-button small { display: block; white-space: nowrap; }
.profile-button strong { font-size: 11px; }
.profile-button small { margin-top: 4px; font-size: 9px; color: var(--muted); }
.profile-button > svg { width: 14px; color: #99a39f; }
.content { padding: 26px 32px 42px; max-width: 1650px; margin: 0 auto; }

.welcome-strip { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; margin-bottom: 22px; color: white; border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(105deg, #0a5949, #0c6c56); box-shadow: 0 14px 32px rgba(7, 77, 62, .16); }
.welcome-strip::before, .welcome-strip::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.welcome-strip::before { width: 240px; height: 240px; left: 4%; top: -160px; }
.welcome-strip::after { width: 145px; height: 145px; left: 15%; bottom: -110px; }
.welcome-copy, .welcome-actions { position: relative; z-index: 1; }
.welcome-copy { display: flex; align-items: center; gap: 16px; }
.welcome-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.1); color: #f3d58f; }
.welcome-icon svg { width: 30px; height: 30px; }
.welcome-copy h2 { margin: 0 0 7px; font-size: 20px; }
.welcome-copy p { margin: 0; color: rgba(255,255,255,.68); font-size: 11px; }
.welcome-actions { display: flex; gap: 9px; }
.button { height: 41px; border-radius: 11px; padding: 0 15px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; font-size: 12px; font-weight: 600; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green-700); box-shadow: 0 7px 16px rgba(17,112,92,.18); }
.button.gold { color: #493713; background: #f1c86f; }
.button.light { color: white; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.button.danger { color: var(--danger); background: var(--danger-soft); }
.button svg { width: 16px; height: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 13px; align-items: flex-start; box-shadow: 0 3px 10px rgba(26,60,51,.025); }
.stat-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; }
.stat-icon.green { color: var(--green-700); background: var(--green-100); }
.stat-icon.gold { color: #9a6f20; background: var(--gold-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.purple { color: #795ab1; background: #f2edfb; }
.stat-card > div:last-child { flex: 1; min-width: 0; }
.stat-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.trend { color: var(--green-700); background: var(--green-50); padding: 3px 6px; border-radius: 6px; font-size: 9px; direction: ltr; }
.trend.down { color: var(--danger); background: var(--danger-soft); }
.stat-value { font-size: 25px; font-weight: 700; margin: 7px 0 5px; letter-spacing: -.6px; }
.stat-note { color: #9aa6a2; font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .72fr); gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(25, 62, 52, .025); overflow: hidden; }
.panel-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #edf1ef; }
.panel-title h3 { margin: 0 0 5px; font-size: 14px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 9px; }
.text-button { border: 0; background: transparent; color: var(--green-700); font-size: 10px; font-weight: 600; }
.panel-body { padding: 18px; }
.schedule-list { display: flex; flex-direction: column; }
.schedule-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 13px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #eff3f1; }
.schedule-item:last-child { border: 0; }
.schedule-time { color: var(--green-700); font-size: 10px; font-weight: 600; border-left: 1px solid var(--line); line-height: 28px; }
.schedule-main { min-width: 0; }
.schedule-main strong { display: block; font-size: 11px; margin-bottom: 5px; }
.schedule-meta { display: flex; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: 9px; }
.schedule-meta span { display: flex; gap: 4px; align-items: center; }
.schedule-meta svg { width: 12px; height: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 23px; padding: 4px 9px; border-radius: 8px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.badge.green { color: var(--green-700); background: var(--green-100); }
.badge.gold { color: #8b651d; background: var(--gold-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.red { color: var(--danger); background: var(--danger-soft); }
.badge.gray { color: #677670; background: #f0f3f2; }
.badge.purple { color: #7654a7; background: #f2edfb; }

.chart-wrap { height: 205px; display: flex; flex-direction: column; }
.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; margin-bottom: 12px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-left: 4px; }
.chart { flex: 1; position: relative; display: grid; grid-template-columns: 32px 1fr; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding-bottom: 23px; color: #9ba7a3; font-size: 8px; }
.plot { position: relative; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #eef2f0 25%); }
.plot svg { width: 100%; height: calc(100% - 22px); overflow: visible; }
.x-axis { position: absolute; inset: auto 0 -22px; display: flex; justify-content: space-between; color: #8b9995; font-size: 8px; }
.donut-layout { display: flex; align-items: center; gap: 20px; }
.donut { width: 126px; height: 126px; flex: 0 0 126px; position: relative; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green-700) 0 87%, var(--gold) 87% 94%, #e7ecea 94% 100%); }
.donut::after { content: ""; width: 88px; height: 88px; position: absolute; background: white; border-radius: 50%; }
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-center strong { display: block; font-size: 22px; }
.donut-center small { color: var(--muted); font-size: 9px; }
.donut-info { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.donut-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 10px; }
.donut-row i { width: 7px; height: 7px; border-radius: 50%; }
.donut-row span { color: var(--muted); }
.donut-row strong { font-size: 11px; }
.tasks { display: flex; flex-direction: column; gap: 11px; }
.task-row { display: flex; align-items: center; gap: 10px; }
.task-row input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; border: 1.5px solid #cad5d1; border-radius: 6px; position: relative; }
.task-row input:checked { background: var(--green-700); border-color: var(--green-700); }
.task-row input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 11px; }
.task-row label { flex: 1; font-size: 10px; }
.task-row small { color: #93a09c; font-size: 8px; }
.task-row:has(input:checked) label { color: #8d9b97; text-decoration: line-through; }

.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-toolbar .intro h2 { margin: 0 0 5px; font-size: 18px; }
.section-toolbar .intro p { margin: 0; color: var(--muted); font-size: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.circle-filter-wrap { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.circle-filter-wrap .filter-input { min-width: 170px; }
.filter-input { height: 40px; min-width: 210px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; outline: 0; color: var(--ink); }
.filter-input:focus { border-color: #9ac3b7; box-shadow: 0 0 0 3px var(--green-100); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mini-stat { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; }
.mini-stat span { color: var(--muted); font-size: 10px; }
.mini-stat strong { display: block; margin-top: 6px; font-size: 19px; }
.mini-stat svg { color: var(--green-700); background: var(--green-50); width: 38px; height: 38px; padding: 9px; border-radius: 11px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { color: #82908c; background: #fafcfb; font-size: 9px; font-weight: 500; text-align: right; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ef; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfc; }
.person { display: flex; align-items: center; gap: 9px; }
.person-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-size: 10px; font-weight: 700; }
.person strong, .person small { display: block; }
.person strong { font-size: 10px; }
.person small { color: #91a09b; font-size: 8px; margin-top: 4px; direction: ltr; text-align: right; }
.progress { width: 110px; height: 6px; background: #edf2f0; overflow: hidden; border-radius: 99px; }
.progress i { height: 100%; display: block; border-radius: inherit; background: var(--green-700); }
.progress-cell { display: flex; align-items: center; gap: 7px; }
.progress-cell small { color: var(--muted); font-size: 9px; }
.row-actions { display: flex; gap: 5px; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: #70807b; border-radius: 8px; }
.row-action:hover { color: var(--green-700); border-color: #b8d2ca; }
.row-action.delete { color: var(--danger); background: var(--danger-soft); border-color: #f4d5d5; font-size: 18px; }
.row-action.delete:hover { color: #a93636; border-color: #e9b5b5; }
.row-action svg { width: 14px; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; color: #aebbb7; }

.circle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.circle-card { background: white; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; transition: .2s; }
.circle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.circle-cover { height: 8px; background: var(--green-700); }
.circle-card:nth-child(2n) .circle-cover { background: var(--gold); }
.circle-card:nth-child(3n) .circle-cover { background: var(--blue); }
.circle-content { padding: 17px; }
.circle-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.circle-top h3 { margin: 0 0 6px; font-size: 14px; }
.circle-top p { margin: 0; color: var(--muted); font-size: 9px; }
.circle-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--green-700); background: var(--green-50); }
.circle-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 17px 0; }
.circle-detail { padding: 10px; background: #fafcfb; border-radius: 10px; }
.circle-detail small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.circle-detail strong { font-size: 10px; }
.circle-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; margin-left: -7px; background: var(--green-100); border: 2px solid white; color: var(--green-800); font-size: 8px; font-weight: 700; }

.attendance-board { display: grid; grid-template-columns: 250px 1fr; gap: 17px; }
.date-panel { padding: 18px; }
.date-number { width: 82px; height: 82px; margin: 5px auto 18px; border-radius: 23px; display: grid; place-items: center; color: white; background: var(--green-700); }
.date-number strong { font-size: 28px; line-height: 1; }
.date-number span { font-size: 10px; }
.attendance-summary { display: flex; flex-direction: column; gap: 9px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.summary-row:last-child { border: 0; }
.summary-row strong { color: var(--ink); }
.attendance-toggle { display: flex; width: fit-content; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.attendance-toggle button { border: 0; border-left: 1px solid var(--line); background: white; color: var(--muted); padding: 7px 9px; font-size: 8px; }
.attendance-toggle button:last-child { border-left: 0; }
.attendance-toggle button:disabled { cursor: default; opacity: .78; }
.attendance-toggle button.selected.present { color: white; background: var(--green-700); }
.attendance-toggle button.selected.late { color: #76530f; background: #f3c96f; }
.attendance-toggle button.selected.absent { color: white; background: var(--danger); }

.report-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.report-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 13px; align-items: flex-start; }
.report-card > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.report-card div { flex: 1; }
.report-card h3 { margin: 2px 0 6px; font-size: 12px; }
.report-card p { min-height: 33px; margin: 0 0 11px; color: var(--muted); font-size: 9px; line-height: 1.8; }

.settings-grid { display: grid; grid-template-columns: 230px 1fr; gap: 17px; }
.settings-nav { padding: 10px; }
.settings-nav button { width: 100%; text-align: right; display: flex; align-items: center; gap: 9px; padding: 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.settings-nav button.active { color: var(--green-700); background: var(--green-50); }
.settings-nav svg { width: 16px; }
.settings-form { padding: 22px; }
.settings-form h3 { margin: 0 0 5px; }
.settings-form > p { color: var(--muted); margin: 0 0 20px; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: 0; background: white; color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8ab9ac; box-shadow: 0 0 0 3px var(--green-100); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row strong { display: block; font-size: 10px; }
.switch-row small { display: block; color: var(--muted); margin-top: 4px; font-size: 8px; }
.switch { width: 38px; height: 22px; border: 0; border-radius: 99px; background: #ccd5d2; position: relative; transition: .2s; }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; position: absolute; top: 3px; right: 3px; background: white; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.switch.on { background: var(--green-700); }
.switch.on::after { right: 19px; }
.settings-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; }
.settings-checks label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.settings-checks input { width: 18px; height: 18px; accent-color: var(--green-700); }
.settings-checks strong, .settings-checks small { display: block; }
.settings-checks strong { font-size: 10px; }
.settings-checks small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.settings-save { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(6,35,29,.48); opacity: 0; visibility: hidden; transition: .2s; backdrop-filter: blur(2px); }
.backdrop.open { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.modal.open { opacity: 1; visibility: visible; transform: none; }
.modal-card { width: min(640px, 100%); max-height: 90vh; overflow-y: auto; background: white; border-radius: 19px; box-shadow: 0 30px 80px rgba(7,49,40,.24); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 4px 0 0; font-size: 17px; }
.eyebrow { color: var(--green-700); font-size: 9px; font-weight: 600; }
#recordForm { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 80; left: 25px; bottom: 25px; display: flex; align-items: center; gap: 9px; color: white; background: #163e34; padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { transform: none; opacity: 1; visibility: visible; }
.toast svg { width: 17px; color: #86d4bd; }
.skeleton-in { animation: enter .32s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .topbar { padding: 0 22px; }
  .content { padding: 24px 22px 40px; }
  .date-chip { display: none; }
  .circle-grid, .report-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 930px) {
  .sidebar { transform: translateX(105%); transition: .25s; }
  .sidebar.open { transform: none; }
  .main-area { width: 100%; margin-right: 0; }
  .menu-button { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .backdrop.sidebar-open { opacity: 1; visibility: visible; z-index: 18; }
  .attendance-board, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { height: 72px; padding: 0 14px; }
  .content { padding: 16px 14px 32px; }
  .page-heading p, .profile-button > span:not(.avatar), .global-search { display: none; }
  .page-heading h1 { font-size: 17px; }
  .welcome-strip { align-items: flex-start; flex-direction: column; padding: 19px; }
  .welcome-actions { width: 100%; }
  .welcome-actions .button { flex: 1; }
  .stats-grid, .mini-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .circle-grid, .report-grid { grid-template-columns: 1fr; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-wrap: wrap; }
  .toolbar-actions .filter-input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .schedule-item { grid-template-columns: 62px 1fr; }
  .schedule-item > .badge { grid-column: 2; justify-self: start; }
}
@media (max-width: 430px) {
  .stats-grid, .mini-stats { grid-template-columns: 1fr; }
  .welcome-copy { align-items: flex-start; }
  .welcome-icon { width: 43px; height: 43px; flex: 0 0 43px; }
  .welcome-copy h2 { font-size: 16px; }
  .donut-layout { flex-direction: column; }
}
