/* ===== Dharma Solutions Work Portal ===== */
/* Palette mapped from dharmasolutions.com (navy / sky / gold / brand red) */
:root {
  --navy: #0D2B4E;
  --navy-2: #1A4A72;
  --teal: #2E8FD8;          /* brand sky (kept under the old var name on purpose) */
  --teal-2: #5BB0EE;
  --teal-soft: #E8F4FD;
  --brand-red: #D42B2B;
  --brand-red-soft: #FDECEC;
  --gold: #E8A020;
  --gold-light: #F5C355;
  --gold-soft: #FDF4E3;
  --ice: #D6ECFA;
  --steel: #5A7A94;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f1f5f9;
  --card: #ffffff;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --shadow: 0 1px 3px rgba(15, 43, 70, .08), 0 1px 2px rgba(15, 43, 70, .04);
  --shadow-lg: 0 10px 30px -8px rgba(15, 43, 70, .18);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.view { display: none; }
.view.active { display: block; }

.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; }

/* ===== Login ===== */
#login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 143, 216, .13), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, .10), transparent 55%),
    linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 13px;
  background: #fff;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 16px -4px rgba(13, 43, 78, .30);
  border: 1px solid rgba(212, 43, 43, .16);
}
.brand-mark .wheel { width: 33px; height: 33px; display: block; }
.brand-mark.sm { width: 38px; height: 38px; border-radius: 10px; }
.brand-mark.sm .wheel { width: 25px; height: 25px; }
.brand h1 { font-size: 20px; letter-spacing: -.01em; }
.brand p { font-size: 12px; color: var(--muted); margin: 1px 0 0; }
.login-tag { color: var(--slate); margin: 0 0 22px; font-size: 13px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 12px; margin-bottom: 6px; color: var(--slate); }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 143, 216, .15);
}
.hint { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.hint code { background: var(--teal-soft); color: var(--teal); padding: 1px 6px; border-radius: 5px; font-weight: 700; }

.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--slate); border-color: var(--line-2);
}
.btn:hover { background: #f8fafc; }
.btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.primary:hover { background: #0a7f76; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--slate); }
.btn.ghost:hover { background: #fff; border-color: var(--slate); }
.btn.block { width: 100%; justify-content: center; padding: 12px; margin-top: 6px; font-size: 14px; }
.error-text { color: var(--red); font-size: 12px; min-height: 16px; margin: 8px 0 0; text-align: center; }

/* ===== Topbar ===== */
.topbar {
  height: 62px; color: #fff;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--brand-red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 12px rgba(15, 43, 70, .25);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left strong { display: block; font-size: 14px; }
.topbar-left .muted { font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.who { text-align: right; margin-right: 4px; }
.who #who-name { font-weight: 600; font-size: 13px; }
.who .badge { font-size: 11px; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-weight: 600; font-size: 11px; letter-spacing: .01em;
}
.badge.teal { background: var(--teal-soft); color: #0a7f76; }
.badge.navy { background: rgba(255,255,255,.15); color: #cbe3f3; }
.badge.amber { background: var(--amber-soft); color: #92400e; }
.badge.red { background: var(--red-soft); color: #b91c1c; }
.badge.green { background: var(--green-soft); color: #15803d; }
.badge.blue { background: var(--blue-soft); color: #1d4ed8; }
.badge.violet { background: var(--violet-soft); color: #6d28d9; }
.badge.slate { background: #e2e8f0; color: var(--slate); }

#dept-switcher, .filter, .search input {
  height: 36px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-size: 13px; padding: 0 10px; font-family: inherit;
}
#dept-switcher option, .filter option { color: var(--ink); background: #fff; }
.topbar .btn.ghost { color: #cbe3f3; border-color: rgba(255,255,255,.2); }
.topbar .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Layout ===== */
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.sidebar {
  background: #fff; border-right: 1px solid var(--line); padding: 18px 12px;
  display: flex; flex-direction: column;
}
.sidebar-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 8px 10px; }
.dept-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dept-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px;
  cursor: pointer; font-weight: 500; color: var(--slate); font-size: 13px; border: 1px solid transparent;
  transition: all .15s;
}
.dept-item:hover { background: #f1f5f9; }
.dept-item.active { background: var(--teal-soft); color: #0a7f76; border-color: #5BB0EE; font-weight: 600; }
.dept-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.dept-count { margin-left: auto; font-size: 11px; color: var(--muted); background: #f1f5f9; padding: 1px 7px; border-radius: 999px; }
.dept-item.active .dept-count { background: #fff; color: #0a7f76; }
.sidebar-foot { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.stat-mini { text-align: center; }
.stat-mini span { display: block; font-weight: 700; font-size: 14px; color: var(--navy); }
.stat-mini small { font-size: 10px; color: var(--muted); }

/* ===== Workspace ===== */
.workspace { padding: 22px 26px; overflow: hidden; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ws-head h1 { font-size: 22px; letter-spacing: -.01em; }
.ws-head .muted { font-size: 12px; }
.ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search input {
  width: 230px; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  padding-left: 32px; position: relative;
}
.search { position: relative; }
.search::before {
  content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; pointer-events: none; opacity: .6; z-index: 2;
}
.filter { background: #fff; border: 1px solid var(--line-2); color: var(--ink); height: 36px; padding: 0 10px; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-card .val { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.stat-card .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-card .accent { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.sc-teal .val { color: var(--teal); } .sc-teal .accent { background: var(--teal-soft); }
.sc-amber .val { color: var(--amber); } .sc-amber .accent { background: var(--amber-soft); }
.sc-green .val { color: var(--green); } .sc-green .accent { background: var(--green-soft); }
.sc-blue .val { color: var(--blue); } .sc-blue .accent { background: var(--blue-soft); }
.sc-navy .val { color: var(--navy-2); } .sc-navy .accent { background: #dbe7f3; }

/* ===== Sheet ===== */
.sheet-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.sheet-scroll { overflow: auto; max-height: calc(100vh - 330px); }
.sheet { border-collapse: collapse; width: 100%; min-width: 900px; table-layout: fixed; }
.sheet th, .sheet td {
  border: 1px solid var(--line); padding: 0; text-align: left; vertical-align: middle;
}
.sheet thead th {
  background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--slate); font-weight: 700; padding: 9px 12px; position: sticky; top: 0; z-index: 5;
  white-space: nowrap; border-bottom: 2px solid var(--line-2);
}
.sheet thead th.row-col { width: 42px; text-align: center; }
.sheet tbody tr:nth-child(even) td { background: #fafcfe; }
.sheet tbody tr:hover td { background: #f0fdfa; }
.sheet td .cell {
  min-height: 38px; padding: 8px 11px; font-size: 13px; outline: none; width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text;
}
.sheet td .cell[contenteditable="true"]:focus {
  background: #fff; box-shadow: inset 0 0 0 2px var(--teal); overflow: visible; white-space: normal;
}
.sheet td.num .cell, .sheet td.currency .cell { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.center { text-align: center; }
.sheet td .cell-select {
  width: 100%; border: none; background: transparent; padding: 8px 10px; font-size: 13px;
  font-family: inherit; height: 38px; cursor: pointer; appearance: none;
  border-radius: 0; outline: none;
}
.sheet td .cell-select:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.sheet td .cell-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--teal); }
.sheet td.status-cell .cell-select { font-weight: 600; }
.sheet .row-del {
  width: 42px; text-align: center; background: #fff; position: sticky; right: 0; z-index: 4;
  border-left: 2px solid var(--line-2);
}
.sheet thead th.row-del { background: #f1f5f9; }
.sheet .row-del button {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px;
  border-radius: 6px; padding: 4px 7px; line-height: 1;
}
.sheet .row-del button:hover { background: var(--red-soft); color: var(--red); }
.sheet tbody tr { transition: opacity .15s; }
.sheet tbody tr.deleting { opacity: .4; }

.sheet-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line);
  background: #f8fafc; font-size: 12px;
}

/* toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transition: all .25s; z-index: 80; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .ws-actions { width: 100%; }
  .search input { width: 100%; }
}

/* ============================================================
   v2 — shell, nav, panels, charts, reports, dark, print
   ============================================================ */
#shell-view, #login-view { height: 100vh; }
.layout { min-height: calc(100vh - 60px); }

/* nav groups */
.nav-group { margin-bottom: 14px; }
.nav-group-title { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 8px 6px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--slate); font-size: 13px; border: 1px solid transparent; transition: all .15s; }
.nav-item:hover { background: #f1f5f9; }
.nav-item.active { background: var(--teal-soft); color: #0a7f76; border-color: #5BB0EE; font-weight: 600; }
.nav-dot { font-size: 14px; width: 18px; text-align: center; }

/* content area */
.content { padding: 22px 26px; overflow: auto; }
.dept-ico { font-size: 18px; }
.dept-ico.lg { font-size: 30px; }

/* period bar + chips */
.period-bar { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
.period-bar .chip, .chip {
  border: none; background: transparent; color: var(--slate); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all .15s;
}
.period-bar .chip.active, .chip.active { background: var(--teal); color: #fff; }
.chip { background: #f1f5f9; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; }
.demo-accounts { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-accounts .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.demo-accounts .chip { font-size: 11px; }
.demo-accounts .chip:hover { background: var(--teal-soft); border-color: var(--teal); color: #0a7f76; }

/* layout grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h3 { font-size: 15px; margin-bottom: 12px; }
.panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 6px; }
.panel.danger { border-color: #fecaca; }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger:hover { background: #b91c1c; }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.link { background: none; border: none; color: var(--teal); cursor: pointer; font-weight: 600; font-size: 12px; font-family: inherit; }
.link.del { color: var(--red); }

/* data tables */
.data-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-tbl th, .data-tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.data-tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: #f8fafc; }
.data-tbl tbody tr:hover { background: #f0fdfa; }
.data-tbl.compact th, .data-tbl.compact td { padding: 6px 8px; font-size: 12px; }
.data-tbl .mono { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }
.data-tbl .score { color: var(--teal); font-size: 15px; }
.emp-row { cursor: pointer; }
.empty-row { text-align: center; padding: 20px; color: var(--muted); }
.filters-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters-row .filter { flex: 1; min-width: 120px; }

/* dept cards */
.dept-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.dept-card .dept-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.dept-card .dept-head h3 { margin: 0; font-size: 15px; }
.dept-card .dept-head .btn { margin-left: auto; }
.dept-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; min-width: 84px; }
.kpi-v { font-weight: 800; font-size: 18px; color: var(--navy-2); }
.kpi-l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dept-chart { display: flex; justify-content: center; margin: 8px 0; }
.dept-trend h4 { margin-top: 8px; }

/* charts */
.chart { width: 100%; height: auto; max-width: 100%; }
.donut-wrap { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.donut-legend span { display: flex; align-items: center; gap: 6px; }
.donut-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* report */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.report-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; }
.report-head h2 { font-size: 18px; }
.report-foot { font-size: 11px; color: var(--muted); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.small { font-size: 11px; }

/* announcements */
.ann-list { display: flex; flex-direction: column; gap: 10px; }
.ann-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 9px; padding: 12px 14px; box-shadow: var(--shadow); }
.ann-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ann-card p { margin: 6px 0; color: var(--slate); }
.form-row { display: flex; gap: 8px; margin-bottom: 8px; }

/* settings */
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.setting-row:last-of-type { border-bottom: none; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin-right: 12px; }
.chk input { accent-color: var(--teal); }

/* lock overlay */
.lock-overlay {
  position: fixed; inset: 0; background: rgba(15, 43, 70, .55); backdrop-filter: blur(6px);
  display: grid; place-items: center; z-index: 100;
}
.lock-card { background: #fff; border-radius: 18px; padding: 28px 30px; width: min(360px, 92vw); text-align: center; box-shadow: var(--shadow-lg); }
.lock-card h2 { margin: 12px 0 4px; }
.lock-card input { width: 100%; padding: 11px; border: 1px solid var(--line-2); border-radius: 9px; text-align: center; font-size: 16px; letter-spacing: .3em; margin: 10px 0; }
.lock-card .btn { margin-top: 6px; }
.lock-card .btn.ghost { background: #f1f5f9; }

/* dark mode */
body.dark { --bg: #0b1220; --ink: #e2e8f0; --slate: #cbd5e1; --muted: #94a3b8; --line: #1e293b; --line-2: #334155; --card: #0f172a; }
body.dark .topbar { background: #060d1a; }
body.dark .stat-card, body.dark .panel, body.dark .sheet-wrap, body.dark .ann-card, body.dark .login-card, body.dark .lock-card { background: #0f172a; }
body.dark .sheet thead th, body.dark .data-tbl th { background: #111c30; color: #94a3b8; }
body.dark .sheet tbody tr:nth-child(even) td { background: #0c1424; }
body.dark .sheet tbody tr:hover td { background: #0e2f52; }
body.dark .nav-item:hover { background: #162132; }
body.dark .nav-item.active { background: #0a3b35; color: #7FC4F5; border-color: #123C68; }
body.dark .badge.slate { background: #1e293b; color: #cbd5e1; }
body.dark .badge.teal { background: #123C68; color: #7FC4F5; }
body.dark .kpi, body.dark .period-bar, body.dark .chip { background: #162132; }
body.dark input, body.dark select, body.dark textarea { background: #0b1220; color: #e2e8f0; border-color: #334155; }
body.dark .sheet td .cell-select { background: transparent; }

/* masked PII */
.cell.masked { color: var(--muted); letter-spacing: .1em; }

/* print */
@media print {
  .topbar, .sidebar, .ws-head, .ws-actions, .sheet-foot, .period-bar { display: none !important; }
  .content { padding: 0; }
  .report { box-shadow: none; border: none; }
  body { background: #fff; }
}


/* ===== Brand: trust badges on the login card ===== */
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.trust-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--navy); background: var(--ice);
  border: 1px solid var(--teal-2); border-radius: 20px; padding: 4px 11px;
  display: inline-flex; align-items: center; gap: 5px;
}
.trust-badge::before { content: "\2713"; color: var(--brand-red); font-weight: 700; }
body.dark .trust-badge { background: #10243d; color: #cfe4f7; border-color: #2E8FD8; }

/* ===== Brand: login card accent ===== */
.login-card { border-top: 4px solid var(--brand-red); }

/* ===== Attendance: sidebar punch card ===== */
.punch-card {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 11px;
  background: #fff; margin-bottom: 12px; text-align: left;
}
.punch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.punch-title { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.punch-line { font-size: 12px; color: var(--ink); line-height: 1.45; }
.punch-line b { color: var(--navy); }
.punch-sub { color: var(--muted); font-size: 11px; min-height: 14px; }
.punch-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.punch-btn { flex: 1 1 auto; justify-content: center; font-size: 12px; padding: 7px 9px; }
.punch-card .btn[disabled] { opacity: .55; cursor: default; }
body.dark .punch-card { background: #10243d; border-color: #24405f; }
body.dark .punch-line b { color: #cfe4f7; }

/* ===== Attendance report ===== */
.att-hero { border-left: 4px solid var(--teal); }
.att-hero h3 { display: flex; align-items: center; gap: 8px; }
.att-print-head { display: none; }
.data-tbl td.num, .data-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-tbl .small { font-size: 11px; }
.tbl-wrap { overflow-x: auto; }

/* print: attendance page only */
@media print {
  .no-print { display: none !important; }
  .only-print { display: block !important; }
  .att-print-head { margin-bottom: 14px; }
  .att-print-head h2 { font-size: 18px; }
  .att-print-head p { font-size: 11px; color: #555; }
  .punch-card { display: none !important; }
  .panel { break-inside: avoid; box-shadow: none; }
}
