:root {
  --ink: #17323b;
  --muted: #6d8287;
  --line: #dce8e7;
  --paper: #f7fbfa;
  --white: #fff;
  --navy: #073b4c;
  --navy-2: #0c4a5c;
  --aqua: #2ca6a4;
  --aqua-pale: #e2f5f2;
  --sand: #f4f0e8;
  --coral: #ee7b65;
  --gold: #e1a94c;
  --green: #4b9b75;
  --shadow: 0 12px 35px rgba(25, 75, 83, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.svg-sprite { display: none; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; background: var(--navy); color: #c1dfe0; z-index: 10; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 5px 25px; color: white; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 17px/1 "Manrope", sans-serif; letter-spacing: -.5px; }
.brand small { margin-top: 5px; color: #b990bb; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.brand-logo { width: 56px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.18)); }
.sidebar-label { padding: 0 9px 9px; color: #7eafb4; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
nav { display: grid; gap: 3px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: #a6cacc; font-size: 13px; font-weight: 500; text-align: left; transition: .2s; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(82, 185, 180, .2); box-shadow: inset 3px 0 var(--aqua); }
.nav-item svg { width: 17px; height: 17px; }
.sidebar-bottom { margin-top: auto; }
.water-card { display: flex; gap: 9px; margin-bottom: 13px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.07); }
.water-card svg { color: #70c6af; }
.water-card strong, .water-card span { display: block; }
.water-card strong { color: #dcefee; font-size: 11px; }
.water-card span { margin-top: 3px; color: #8ab7b9; font-size: 10px; }
.profile { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 6px; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; color: white; text-align: left; }
.profile strong, .profile small { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: 12px; }.profile small { margin-top: 3px; color: #83adb1; font-size: 10px; }.profile svg { width: 14px; margin-left: auto; color: #79aaaf; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #dff5ef; color: var(--navy); font-size: 10px; font-weight: 700; }
.main { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.74); backdrop-filter: blur(14px); }
.global-search { display: flex; width: min(470px, 50vw); align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #95aaae; }
.global-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 13px; }.global-search svg { width: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-button { position: relative; display: grid; place-items: center; border: 0; background: transparent; color: var(--navy); }
.has-dot::after { position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--coral); content: ""; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: white; }.primary-button:hover { background: var(--navy-2); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--navy); }.secondary-button:hover { border-color: #aed0cf; }
.primary-button svg, .secondary-button svg { width: 15px; height: 15px; }
.content { max-width: 1540px; padding: 29px 30px 42px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { color: var(--aqua); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
h1, h2, h3, p { margin: 0; } h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { margin-top: 6px; font-size: 26px; letter-spacing: -.8px; } h2 { font-size: 21px; letter-spacing: -.55px; } h3 { font-size: 14px; letter-spacing: -.15px; }
.page-head p, .modal p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.head-actions, .filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.metric { position: relative; min-height: 138px; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.metric::after { position: absolute; right: -22px; bottom: -35px; width: 92px; height: 92px; border-radius: 50%; background: var(--aqua-pale); content: ""; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-top span:first-child { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: var(--aqua-pale); color: var(--aqua); }
.metric-top svg { width: 15px; }
.metric strong { display: block; margin-top: 13px; color: var(--navy); font: 800 26px/1 "Manrope", sans-serif; }
.metric small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }.positive { color: var(--green) !important; }.warning { color: var(--gold) !important; }.danger { color: var(--coral) !important; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 17px; }.stack { display: grid; gap: 17px; }
.card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }.card-head p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--aqua); font-size: 12px; font-weight: 700; }
.bars { display: flex; height: 192px; align-items: end; justify-content: space-between; gap: 9px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.bar-wrap { display: grid; width: 100%; height: 100%; grid-template-rows: 1fr auto; align-items: end; justify-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.bar { width: min(32px, 80%); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #49b8b4, #08728a); transition: .3s; }.bar:hover { filter: saturate(1.3); }
.legend { display: flex; gap: 14px; margin-top: 13px; color: var(--muted); font-size: 11px; }.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--aqua); }
.program-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid #edf3f2; }.program-row:first-of-type { border-top: 0; }
.program-row strong, .program-row span { display: block; }.program-row strong { font-size: 12px; }.program-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.program-row b { align-self: center; color: var(--navy); font-size: 12px; }.progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #edf3f2; }.progress span { height: 100%; margin: 0; border-radius: 5px; background: var(--aqua); }
.alert { display: flex; gap: 9px; padding: 11px 0; border-top: 1px solid #edf3f2; }.alert:first-of-type { border-top: 0; }.alert-mark { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--coral); }.alert div { flex: 1; }.alert strong, .alert span { display: block; font-size: 11px; }.alert span { margin-top: 3px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; }.status::before { width: 6px; height: 6px; border-radius: 50%; content: ""; }
.status.good { background: #e8f5ee; color: #368162; }.status.good::before { background: #52a87c; }.status.warn { background: #fff6df; color: #a27424; }.status.warn::before { background: var(--gold); }.status.bad { background: #fbe9e5; color: #b65b49; }.status.bad::before { background: var(--coral); }.status.info { background: #e5f4f5; color: #248084; }.status.info::before { background: var(--aqua); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.filter-row input, .filter-row select { height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: white; color: var(--ink); font-size: 12px; }
.filter-row input { width: 220px; }
.table-card { overflow: hidden; padding: 0; }.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; } th { padding: 12px 14px; background: #f1f7f6; color: #668186; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; } td { padding: 13px 14px; border-top: 1px solid #edf3f2; color: #516c71; font-size: 12px; } td strong { color: var(--ink); } tbody tr:hover { background: #fbfdfd; }
.person { display: flex; align-items: center; gap: 9px; }.person .avatar { background: #e3f5f2; color: #167875; }.person small { display: block; margin-top: 3px; color: #88a0a4; }
.table-footer { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.module-card { min-height: 160px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }.module-card .icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--aqua-pale); color: var(--aqua); }.module-card .icon svg { width: 16px; }.module-card h3 { margin-top: 14px; }.module-card p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }.module-card .card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--aqua); font-size: 11px; font-weight: 700; }
.attendance-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }.attendance-cell { padding: 11px 5px; border: 1px solid var(--line); border-radius: 8px; background: white; text-align: center; }.attendance-cell strong { display: block; color: var(--navy); font-size: 14px; }.attendance-cell span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.attendance-cell.active { border-color: #9dd6cd; background: var(--aqua-pale); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4, 39, 48, .48); z-index: 30; }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(620px, 100%); padding: 25px; border-radius: 13px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.22); }.modal h2 { margin-top: 7px; }.modal-close { position: absolute; top: 16px; right: 16px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }.form-grid span { display: block; margin-bottom: 6px; color: #5a7479; font-size: 11px; font-weight: 700; }.form-grid input, .form-grid select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: white; font-size: 12px; }.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; right: 22px; bottom: 20px; padding: 12px 16px; border-radius: 8px; background: var(--navy); color: white; font-size: 12px; opacity: 0; transform: translateY(8px); transition: .25s; pointer-events: none; z-index: 50; }.toast.show { opacity: 1; transform: translateY(0); }
.install-help { position: fixed; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 32px)); padding: 16px 40px 16px 16px; border: 1px solid #b8d8d5; border-radius: 10px; background: white; box-shadow: 0 18px 50px rgba(4,39,48,.18); z-index: 45; }.install-help[hidden] { display: none; }.install-help strong, .install-help span { display: block; }.install-help strong { color: var(--navy); font-size: 13px; }.install-help span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }.install-help .icon-button { position: absolute; top: 12px; right: 12px; }
.menu-button, .mobile-close { display: none; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .shell { display: block; }.sidebar { position: fixed; left: -260px; width: 248px; transition: .25s; }.sidebar.open { left: 0; box-shadow: 10px 0 35px rgba(0,0,0,.18); }.menu-button, .mobile-close { display: grid; }.mobile-close { position: absolute; top: 16px; right: 12px; color: white; }.topbar { height: 64px; padding: 0 15px; }.global-search { width: auto; flex: 1; }.topbar-actions .primary-button, .install-button { width: 38px; height: 38px; padding: 0; font-size: 0; }.content { padding: 22px 16px 34px; }.page-head { align-items: start; flex-direction: column; }.metrics { gap: 9px; }.metric { min-height: 124px; padding: 14px; }.metric strong { font-size: 22px; }.module-grid { grid-template-columns: 1fr; }.toolbar { align-items: start; flex-direction: column; }.filter-row input { width: 100%; }.form-grid { grid-template-columns: 1fr; }.attendance-grid { grid-template-columns: repeat(4, 1fr); } }
