:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #162033;
  --muted: #718096;
  --line: #e6eaf0;
  --primary: #2457e6;
  --primary-dark: #1741b8;
  --danger-bg: #fff0f0;
  --danger: #b42318;
  --success: #16825d;
  --shadow: 0 18px 50px rgba(31, 45, 74, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input, select, textarea { font: inherit; }

.login-body {
  background:
    radial-gradient(circle at 12% 16%, rgba(36, 87, 230, .17), transparent 32%),
    radial-gradient(circle at 88% 84%, rgba(60, 191, 150, .15), transparent 28%),
    #f7f9fd;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  padding: 42px;
  border: 1px solid rgba(230, 234, 240, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: linear-gradient(145deg, #2f67ff, #173eb0);
  box-shadow: 0 10px 24px rgba(36, 87, 230, .24);
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 13px;
}

.eyebrow {
  margin: 24px 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.04em; }
h2 { margin-bottom: 6px; font-size: 20px; }
.muted { color: var(--muted); line-height: 1.7; }

.alert {
  margin: 22px 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 14px;
}

.form-stack { display: grid; gap: 18px; margin-top: 28px; }
.form-stack label { display: grid; gap: 8px; color: #344054; font-size: 14px; font-weight: 650; }
.form-stack input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-stack input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 87, 230, .10); }
.form-grid textarea { min-height: 110px; padding: 13px 14px; border: 1px solid #d9dee8; border-radius: 12px; resize: vertical; }
.record-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(17,25,43,.58); overflow-y: auto; }
.record-prompt { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(17,25,43,.62); }
.record-prompt-card { width: min(420px,100%); padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(17,25,43,.28); }
.record-prompt-card h3 { margin: 0 0 18px; font-size: 20px; }
.record-prompt-message { margin: 0; color: #667085; line-height: 1.7; }
.record-prompt-card label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 650; }
.record-prompt-card input { width: 100%; padding: 12px 13px; border: 1px solid #d9dee8; border-radius: 11px; outline: 0; }
.record-dialog-card { width: min(760px,100%); max-height: calc(100vh - 56px); overflow-y: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(17,25,43,.28); }
.record-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.record-dialog-head small { color: var(--primary); font-weight: 750; letter-spacing: .12em; }
.record-dialog-head h2 { margin: 6px 0 0; font-size: 25px; }
.record-dialog-head > button { border: 0; color: #718096; background: #eef1f6; width: 38px; height: 38px; border-radius: 12px; font-size: 24px; cursor: pointer; }
.record-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.record-form-grid label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 650; }
.record-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-inline-add { border: 0; padding: 0; color: var(--primary); background: transparent; font: inherit; cursor: pointer; }
.record-inline-add:disabled { opacity: .45; cursor: not-allowed; }
.record-form-grid input,.record-form-grid select,.record-form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid #d9dee8; border-radius: 11px; outline: 0; background: #fff; }
.record-form-grid textarea { min-height: 92px; resize: vertical; }
.record-check { display: flex !important; align-items: center; align-self: end; grid-template-columns: auto 1fr; min-height: 44px; }
.record-check input { width: 18px; height: 18px; }
.record-dialog-error { min-height: 20px; margin-top: 16px; color: var(--danger); font-size: 13px; }
@media (max-width: 680px) { .record-form-grid { grid-template-columns: 1fr; } .record-dialog { padding: 12px; } .record-dialog-card { max-height: calc(100vh - 24px); padding: 20px; } }

.primary-button, .ghost-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
.primary-button { padding: 13px 18px; color: white; background: var(--primary); }
.primary-button.danger-button { background: var(--danger); }
.primary-button:hover { background: var(--primary-dark); }
.primary-button.compact { padding: 11px 16px; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.ghost-button { padding: 9px 13px; color: #344054; background: #eef1f6; }
.link-button { text-decoration: none; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #d7def2;
  background: #11192b;
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; color: white; text-decoration: none; }
.sidebar-brand > span:last-child, .sidebar-footer > span:last-child { display: grid; gap: 3px; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand small, .sidebar-footer small { color: #8290ad; font-size: 11px; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-label { margin: 8px 12px 5px; color: #66738f; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: #aeb9d1; text-decoration: none; font-size: 14px; font-weight: 650; transition: .18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: #2457e6; box-shadow: 0 8px 20px rgba(36,87,230,.28); }
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.09); font-size: 12px; }
.nav-item.active .nav-icon { background: rgba(255,255,255,.17); }
.sidebar-footer { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer strong { color: #eef2ff; font-size: 13px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #34415c; font-size: 12px; font-weight: 800; }
.admin-main { min-width: 0; padding: 42px clamp(22px, 4vw, 58px) 70px; }
.admin-topbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-topbar h1 { margin-bottom: 0; }
.breadcrumb { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.employee-stats .stat-card { display: grid; gap: 3px; }
.stat-card small { color: #98a2b3; font-size: 11px; }
.employee-name { display: flex; align-items: center; gap: 10px; }
.employee-name > span:last-child { display: grid; gap: 3px; }
.employee-name small, .cell-subtitle { display: block; margin-top: 4px; color: #98a2b3; font-size: 11px; font-weight: 500; }
.employee-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: #edf2ff; font-size: 11px; font-weight: 800; }
.salary { color: #192b51; }
.soft-badge { display: inline-block; padding: 5px 9px; border-radius: 8px; color: #475467; background: #f2f4f7; font-size: 12px; font-weight: 650; }
.soft-badge.accent { color: #175cd3; background: #eff4ff; }
.soft-badge.warning-badge { color: #b54708; background: #fff4e8; }
.empty-card { min-height: 360px; display: grid; place-items: center; align-content: center; margin-top: 30px; padding: 48px; border: 1px solid var(--line); border-radius: 20px; background: white; text-align: center; }
.empty-card h2 { margin: 18px 0 8px; }
.empty-card p { max-width: 520px; margin-bottom: 0; color: var(--muted); line-height: 1.8; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--primary); background: #edf2ff; font-weight: 800; }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 760; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-heading .eyebrow { margin-top: 0; }
.page-heading .muted { margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 22px; }
.stat-grid.four-cols { grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stat-card span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.stat-card strong { font-size: 24px; letter-spacing: -.03em; }
.stat-card .online { color: var(--success); }
.warning-card strong { color: #b54708; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgba(31, 45, 74, .05); }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-header p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.count-badge { padding: 6px 10px; border-radius: 999px; color: var(--primary); background: #edf2ff; font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.table-toolbar { display: flex; align-items: center; gap: 11px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fbfcfe,#f8fafd); }
.table-toolbar select, .table-toolbar > input, .section-title select {
  appearance: none; height: 42px; padding: 0 38px 0 14px; border: 1px solid #e2e7ef; border-radius: 12px; outline: 0; color: #344054; background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; box-shadow: 0 1px 2px rgba(16,24,40,.03); transition: border-color .18s,box-shadow .18s,background-color .18s;
}
.table-toolbar > input[type="date"], .table-toolbar > input[type="month"] { appearance: auto; min-width: 150px; padding-right: 12px; background-image: none; }
.table-toolbar select:hover, .table-toolbar > input:hover, .section-title select:hover, .search-box:hover { border-color: #cbd4e1; background-color: #fff; }
.table-toolbar select:focus, .table-toolbar > input:focus, .section-title select:focus { border-color: #7da0ff; box-shadow: 0 0 0 4px rgba(36,87,230,.09); }
.search-box { min-width: 230px; height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #e2e7ef; border-radius: 12px; color: #8490a4; background: white; box-shadow: 0 1px 2px rgba(16,24,40,.03); transition: border-color .18s,box-shadow .18s; }
.search-box:focus-within { border-color: #7da0ff; box-shadow: 0 0 0 4px rgba(36,87,230,.09); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: #344054; background: transparent; }
.search-box input::placeholder { color: #98a2b3; }
.table-toolbar .search-box:first-child { margin-right: auto; }
.table-toolbar .search-box:not(:first-child) { flex: 1; }
.table-toolbar .ghost-button { height: 42px; padding: 0 16px; border: 1px solid #dfe5ed; background: white; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.table-toolbar .ghost-button:hover { color: var(--primary); border-color: #afc1f8; background: #f7f9ff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 24px; text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #fafbfc; font-size: 12px; letter-spacing: .03em; }
td { border-top: 1px solid #f0f2f5; font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #475467; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.active { color: #087a55; background: #e9f8f2; }
.status.inactive { color: #667085; background: #f1f3f5; }
.status.pending, .status.warning { color: #b54708; background: #fff4e8; }
.status.info { color: #175cd3; background: #eff4ff; }
.empty-state { padding: 46px; color: var(--muted); text-align: center; }

.row-actions { display: flex; align-items: center; gap: 11px; }
.row-actions a, .row-actions button { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--primary); background: #f2f5ff; text-decoration: none; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .16s; }
.row-actions a:hover, .row-actions button:hover { background: #e7edff; }
.row-actions .danger-link { color: var(--danger); }
.positive { color: #087a55; }
.negative { color: #b42318; }

.narrow-main { max-width: 1220px; width: 100%; }
.detail-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgba(31,45,74,.05); }
.profile-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; margin-top: 30px; }
.profile-summary { text-align: center; }
.profile-avatar { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 24px; color: var(--primary); background: #edf2ff; font-size: 22px; font-weight: 800; }
.profile-summary h2 { margin-bottom: 5px; }.profile-summary > p { color: var(--muted); }
.profile-summary dl { margin: 24px 0 0; border-top: 1px solid var(--line); }
.profile-summary dl div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f0f2f5; text-align: left; }
dt { color: var(--muted); font-size: 13px; } dd { margin: 0; font-weight: 650; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title h2 { margin-bottom: 4px; }.section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; }
.detail-list div { padding: 16px 0; border-bottom: 1px solid #f0f2f5; }.detail-list dt { margin-bottom: 7px; }
.timeline-card { margin-top: 18px; }.timeline { display: grid; gap: 0; padding-left: 8px; }
.timeline > div { position: relative; padding: 1px 0 24px 28px; border-left: 1px solid #dfe3ea; }.timeline > div:last-child { padding-bottom: 0; border-color: transparent; }
.timeline p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }.timeline-dot { position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 1px #cbd1dc; }.timeline-dot.blue { background: var(--primary); }.timeline-dot.green { background: var(--success); }
.demo-form { margin-top: 30px; padding: 0; overflow: hidden; }.form-section { padding: 26px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }.form-grid label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 650; }.form-grid .span-2 { grid-column: span 2; }
.form-grid input, .form-grid select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #dce2eb; border-radius: 12px; outline: 0; color: #344054; background: #fbfcfe; box-shadow: 0 1px 2px rgba(16,24,40,.03); transition: border-color .18s,box-shadow .18s,background .18s; }.form-grid input:hover, .form-grid select:hover { border-color: #c7d0dd; background: white; }.form-grid input:focus, .form-grid select:focus { border-color: #7da0ff; background: white; box-shadow: 0 0 0 4px rgba(36,87,230,.09); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 26px; background: #fafbfc; }
.notice-card { display: flex; align-items: center; gap: 14px; margin: 30px 0 18px; padding: 18px 20px; border: 1px solid #c7d7fe; border-radius: 16px; background: #f4f7ff; }.notice-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--primary); font-weight: 800; }.notice-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.attendance-insights { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(31,45,74,.05); }
.insight-heading { margin-bottom: 16px; }
.pending-pill { padding: 7px 11px; border-radius: 999px; color: #b54708; background: #fff4e8; font-size: 12px; font-weight: 700; }
.period-tabs { width: fit-content; display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid #e4e8ef; border-radius: 12px; background: #f3f5f8; }.period-tabs a { min-width: 64px; padding: 8px 14px; border-radius: 9px; color: #667085; text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; transition: .18s ease; }.period-tabs a:hover { color: var(--primary); }.period-tabs a.active { color: white; background: var(--primary); box-shadow: 0 4px 10px rgba(36,87,230,.2); }
.employee-chart-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.employee-chart-card { padding: 20px; border: 1px solid #e8ecf2; border-radius: 16px; background: #fbfcfe; }
.chart-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }.chart-card-heading > div { display: flex; align-items: center; gap: 11px; }.chart-card-heading h3 { margin: 0 0 4px; font-size: 15px; }.chart-card-heading p { margin: 0; color: var(--muted); font-size: 11px; }.chart-card-heading > strong { align-self: start; padding: 5px 9px; border-radius: 999px; font-size: 11px; }
.chart-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 12px; font-weight: 800; }
.leave-chart .chart-card-icon,.leave-chart .chart-card-heading > strong { color: #5145cd; background: #eeecff; }.late-chart .chart-card-icon,.late-chart .chart-card-heading > strong { color: #b54708; background: #fff1df; }.early-chart .chart-card-icon,.early-chart .chart-card-heading > strong { color: #b42318; background: #ffebeb; }
.metric-list { display: grid; gap: 18px; }.metric-item { display: grid; gap: 8px; }.metric-label { display: flex; align-items: end; justify-content: space-between; gap: 12px; }.metric-label > span { display: grid; gap: 3px; }.metric-label b { font-size: 13px; }.metric-label small { color: #98a2b3; font-size: 10px; }.metric-label > strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.metric-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0f5; }.metric-fill { display: block; height: 100%; border-radius: inherit; }.leave-chart .metric-fill { background: linear-gradient(90deg,#7567e8,#9a8ff3); }.late-chart .metric-fill { background: linear-gradient(90deg,#e5943d,#f2b566); }.early-chart .metric-fill { background: linear-gradient(90deg,#dd5d55,#ef817a); }
.metric-fill.bar-100 { width: 100%; }.metric-fill.bar-75 { width: 75%; }.metric-fill.bar-70 { width: 70%; }.metric-fill.bar-67 { width: 67%; }.metric-fill.bar-62 { width: 62%; }.metric-fill.bar-58 { width: 58%; }.metric-fill.bar-54 { width: 54%; }.metric-fill.bar-50 { width: 50%; }.metric-fill.bar-43 { width: 43%; }.metric-fill.bar-40 { width: 40%; }.metric-fill.bar-38 { width: 38%; }.metric-fill.bar-35 { width: 35%; }.metric-fill.bar-30 { width: 30%; }.metric-fill.bar-25 { width: 25%; }.metric-fill.bar-20 { width: 20%; }.metric-fill.bar-15 { width: 15%; }.metric-fill.bar-10 { width: 10%; }
.empty-cell { padding: 44px 20px !important; text-align: center; color: var(--muted); }.empty-hint { margin: 28px 0; text-align:center; color:var(--muted); }.organization-grid { display:grid; gap:22px; }.three-cols { grid-template-columns:repeat(3,minmax(0,1fr)); }
.payroll-edit-table { min-width: 1280px; }.money-input { width:104px; min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:#f8faff; font:inherit; color:var(--text); }.money-input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(47,96,229,.12); }.money-input:disabled { opacity:.7; cursor:not-allowed; }.positive-input { color:#14835f; }.negative-input { color:#c14b43; }
.health-reminder-card { margin-bottom:22px; padding:22px 24px; border:1px solid #f2c5a6; border-radius:20px; background:linear-gradient(135deg,#fff9f2,#fff); box-shadow:var(--shadow); }.health-reminder-heading { display:flex; align-items:center; gap:14px; }.health-reminder-heading>span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#f47b3e; color:#fff; font-weight:800; }.health-reminder-heading h2 { margin:0 0 4px; font-size:18px; }.health-reminder-heading p { margin:0; color:var(--muted); }.health-reminder-heading>strong { margin-left:auto; color:#c65b28; }.health-reminder-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:18px; }.health-reminder-list a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; border:1px solid #f5dfce; border-radius:13px; background:#fff; color:inherit; text-decoration:none; }.health-reminder-list b,.health-reminder-list small { display:block; }.health-reminder-list small { margin-top:4px; color:var(--muted); }
.health-reminder-empty { margin:18px 0 0; padding:13px 14px; border:1px dashed #ead8c9; border-radius:13px; color:var(--muted); background:rgba(255,255,255,.72); }
.health-certificate-card { margin-top:22px; }.health-certificate-layout { display:grid; grid-template-columns:minmax(280px,420px) 1fr; gap:28px; }.certificate-preview { min-height:250px; overflow:hidden; border:1px dashed var(--line); border-radius:16px; background:#f7f9fc; }.certificate-preview img { display:block; width:100%; height:300px; object-fit:contain; background:#eef2f7; }.certificate-empty { display:grid; place-items:center; align-content:center; min-height:250px; color:var(--muted); }.certificate-empty span { display:grid; place-items:center; width:58px; height:58px; border-radius:18px; background:#e9eef8; color:var(--primary); font-size:24px; font-weight:800; }.health-upload-form { display:grid; gap:14px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }.health-upload-form>label,.health-upload-form .form-grid label { display:grid; gap:8px; font-weight:650; }.health-upload-form input { width:100%; box-sizing:border-box; }.health-upload-form small { color:var(--muted); }
@media (max-width: 900px) { .health-reminder-list { grid-template-columns:1fr; }.health-certificate-layout { grid-template-columns:1fr; } }
.stable-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid #edf0f4; }.stable-heading h3 { margin: 0 0 5px; font-size: 16px; }.stable-heading p { margin: 0; color: var(--muted); font-size: 12px; }.stable-heading > span { color: #98a2b3; font-size: 11px; }
.best-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.best-card { padding: 17px; border: 1px solid #dfeee8; border-radius: 15px; background: linear-gradient(145deg,#fbfffd,#f3fbf7); }.best-card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }.best-card-title h4 { margin: 0 0 3px; color: #344054; font-size: 13px; }.best-card-title p { margin: 0; color: #98a2b3; font-size: 10px; }.best-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #087a55; background: #ddf5eb; font-size: 12px; font-weight: 800; }.best-people { display: grid; gap: 6px; }.best-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #e1eee8; border-radius: 9px; background: rgba(255,255,255,.78); }.best-person > span { display: flex; align-items: center; gap: 8px; }.best-person i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: #087a55; background: #e7f7f0; font-size: 9px; font-style: normal; font-weight: 800; }.best-person b { color: #344054; font-size: 11px; }.best-person strong { color: #087a55; font-size: 11px; font-variant-numeric: tabular-nums; }

.ledger-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 30px 0 18px; }
.money-card { position: relative; min-height: 142px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(31,45,74,.05); }
.money-card > div { display: grid; gap: 6px; }.money-card span { color: #475467; font-size: 14px; font-weight: 700; }.money-card small { color: #98a2b3; font-size: 11px; }.money-card strong { display: block; margin-top: 24px; font-size: clamp(20px,2vw,27px); letter-spacing: -.03em; }.money-card > i { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-style: normal; font-weight: 800; }
.income-card > i { color: #087a55; background: #e9f8f2; }.expense-card > i { color: #b42318; background: #fff0f0; }.balance-card > i { color: #175cd3; background: #eff4ff; }.current-card { color: white; border-color: #183c70; background: linear-gradient(135deg,#183b6b,#245b91); }.current-card span,.current-card small { color: #dceaff; }.current-card > i { color: white; background: rgba(255,255,255,.14); }
.ledger-overview { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.7fr); gap: 18px; margin-bottom: 18px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 12px; }.chart-legend span { display: flex; align-items: center; gap: 6px; }.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }.legend-income { background: #2f67e8; }.legend-expense { background: #e79a6b; }
.bar-chart { height: 220px; display: grid; grid-template-columns: repeat(9,1fr); align-items: end; gap: 10px; margin-top: 14px; padding: 18px 8px 0; border-bottom: 1px solid #dfe3ea; background: repeating-linear-gradient(to bottom,#fff 0,#fff 54px,#f0f2f5 55px); }
.bar-group { height: 100%; display: grid; grid-template-rows: 1fr 25px; gap: 8px; }.bar-group > div { display: flex; align-items: end; justify-content: center; gap: 3px; }.bar-group span { color: #98a2b3; text-align: center; font-size: 10px; }.bar { width: min(15px,42%); min-height: 4px; border-radius: 5px 5px 1px 1px; }.bar.income { background: #5a7fe7; }.bar.expense { background: #e9a077; }.bar-group.current .bar.income { background: #2457e6; }.bar-group.current span { color: var(--primary); font-weight: 800; }
.annual-summary dl { margin: 0; }.annual-summary dl div { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f2f5; }.annual-summary dl div:last-child { border: 0; }.annual-summary dd { font-size: 14px; }
.amount-col { text-align: right; font-variant-numeric: tabular-nums; }.balance-cell { background: #f1f6fc; color: #15395f; }.ledger-table tfoot td { border-top: 2px solid #d4dce8; background: #fafbfc; font-weight: 800; }.ledger-table tbody tr:hover td:not(.balance-cell) { background: #fbfcff; }
.demo-toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 360px; padding: 13px 17px; border-radius: 12px; color: white; background: #172033; box-shadow: 0 14px 34px rgba(0,0,0,.2); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }.demo-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .login-card { padding: 30px 24px; }
  .page-shell { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .page-heading { align-items: start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid.four-cols, .ledger-stat-grid { grid-template-columns: 1fr; }
  .ledger-overview, .profile-grid { grid-template-columns: 1fr; }
  .employee-chart-grid, .best-grid { grid-template-columns: 1fr; }.attendance-insights { padding: 18px; }.insight-heading,.stable-heading { align-items: start; flex-direction: column; }.period-tabs { width: 100%; }.period-tabs a { flex: 1; min-width: 0; padding-inline: 7px; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }
  .table-toolbar { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }
  .header-actions { width: 100%; flex-wrap: wrap; }
  .topbar { padding: 0 16px; }
  th, td { padding: 14px 18px; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px; }
  .sidebar-brand { padding: 0 4px 12px; }
  .sidebar-nav { grid-template-columns: 1fr 1fr; }
  .nav-label, .sidebar-footer { display: none; }
  .admin-main { padding: 28px 14px 48px; }
  .admin-topbar { align-items: start; flex-direction: column; }
}
