/* =========================================================
   VELTRO · DASHBOARD v2 — Friendly / Fortnox-inspired
   Overrides on top of styles.css. Scoped via body on <body>.
   ========================================================= */

/* Global cursor rules — Quick Wins Q (May 18 2026).
   The codebase was missing a baseline `a { cursor: pointer }`, so some
   styled anchors (especially when nested inside cards or rows with their
   own styling) didn't show the pointer reliably. Same for <button>. */
a[href]                  { cursor: pointer; }
button:not([disabled])   { cursor: pointer; }
[role="button"]          { cursor: pointer; }
.tr a, a.tr              { cursor: pointer; }

/* Dashboard click-card hover (Session 3.1, May 18 2026).
   Subtle lift on whole-card click targets. Prefix is `dash-` to avoid
   collisions with the global stylesheet — lesson from the audit log session. */
a.dash-clickcard {
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
a.dash-clickcard:hover {
  border-color: var(--ink-4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
a.dash-pnlrow {
  transition: background 0.12s;
}
a.dash-pnlrow:hover {
  background: var(--surface-2);
}
.dash-leaverow-link:hover .r-name {
  color: var(--sage-700);
}

body {
  --surface:    #FFFFFF;
  --surface-2:  #FAF7F2;   /* warm off-white canvas */
  --surface-3:  #F2EEE5;   /* warm chip surface */
  --line:       #E8E2D6;   /* warm hairline */
  --line-soft:  #EFEBE0;

  --ink:        #1F2A24;
  --ink-2:      #3E4B45;
  --ink-3:      #6B7770;
  --ink-4:      #9AA49E;

  /* sage green primary (inherits --accent-* from parent for tweaks,
     but we add a soft-sage palette the v2 UI leans on) */
  --sage-700:   #2E5D4A;
  --sage-600:   #3B7A5E;
  --sage-500:   #5B9B7D;
  --sage-100:   #D8EADF;
  --sage-50:    #EDF5F0;

  /* colored to-do tints — each to-do card gets a gentle wash */
  --tint-amber-bg: #FDF3DC;  --tint-amber-fg: #9A6A1A;
  --tint-rose-bg:  #FADDD8;  --tint-rose-fg:  #B04434;
  --tint-sage-bg:  #DCEBDE;  --tint-sage-fg:  #2E5D4A;
  --tint-slate-bg: #DDE5EF;  --tint-slate-fg: #3D5880;
  --tint-violet-bg:#E5DBEF;  --tint-violet-fg:#6B4C96;
  --tint-peach-bg: #FCE3D1;  --tint-peach-fg: #9E5723;

  /* radii — softer + larger than v1 */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  --sh-card: 0 1px 2px rgba(45,60,50,0.04), 0 8px 24px -16px rgba(45,60,50,0.10);
  --sh-hero: 0 1px 2px rgba(45,60,50,0.04), 0 14px 40px -20px rgba(45,60,50,0.14);

  --nw: 256px;
  --th: 64px;
  background: var(--surface-2);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
}

/* ────────── App shell ────────── */
.app { display: flex; height: 100vh; }

/* Sidebar — LIGHT variant */
.sb {
  width: var(--nw);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: width .2s cubic-bezier(.2,.7,.3,1);
}
.sb.collapsed { width: 72px; }

.sb-brand {
  height: var(--th);
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
}
.sb-logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sb-logo svg { width: 22px; height: 22px; display: block; }
.sb-wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sb.collapsed .sb-wordmark { display: none; }

.sb-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-section-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  font-weight: 600;
  padding: 10px 12px 4px;
}
.sb-section-title:first-child { padding-top: 4px; }
.sb.collapsed .sb-section-title { display: none; }
.sb.collapsed .sb-section-title::after {
  content: ""; display: block;
  height: 1px; background: var(--line-soft);
  margin: 10px 8px;
}

.nv {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px;
  color: var(--ink-2);
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.nv:hover { background: var(--surface-2); color: var(--ink); }
.nv.active {
  background: var(--sage-50);
  color: var(--sage-700);
}
.nv.active::before {
  content: "";
  position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px;
  background: var(--sage-600);
  border-radius: 0 3px 3px 0;
}
.nv-icon { width: 20px; display: grid; place-items: center; flex-shrink: 0; }
.nv-label { flex: 1; }
.sb.collapsed .nv-label, .sb.collapsed .nv-badge { display: none; }
.sb.collapsed .nv { justify-content: center; padding: 11px 0; }
.nv-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.nv.active .nv-badge { background: var(--sage-100); color: var(--sage-700); }
.nv-badge.alert { background: #FADDD8; color: #B04434; }

/* Sidebar user footer */
.sb-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
}
.sb-foot .av { width: 34px; height: 34px; border-radius: 10px; }
.sb-foot .u-meta { flex: 1; min-width: 0; }
.sb-foot .u-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-foot .u-role {
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb.collapsed .sb-foot .u-meta { display: none; }

/* ────────── Main ────────── */
.main {
  flex: 1;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: var(--th);
  display: flex; align-items: center; gap: 16px;
  padding: 0 40px;
  background: var(--surface-2);
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}
.tb-collapse {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none; background: transparent;
  color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center;
}
.tb-collapse:hover { background: var(--surface-3); color: var(--ink); }

.tb-search {
  flex: 1; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 38px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.tb-search input {
  flex: 1; border: none; background: transparent;
  font: inherit; color: var(--ink); outline: none;
}
.tb-search kbd {
  font-family: var(--f-mono); font-size: 10.5px;
  background: var(--surface-3); color: var(--ink-3);
  padding: 2px 6px; border-radius: 4px;
}

.tb-spacer { flex: 1; }
.tb-btn {
  height: 36px; border-radius: 10px; border: none;
  background: transparent; color: var(--ink-2);
  padding: 0 12px; font: inherit; font-weight: 500; font-size: 13px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.tb-btn:hover { background: var(--surface-3); color: var(--ink); }
.tb-btn.primary {
  background: var(--ink); color: #fff;
  padding: 0 16px;
}
.tb-btn.primary:hover { background: #000; color: #fff; }
.tb-icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: none; background: transparent;
  color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; position: relative;
}
.tb-icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.tb-icon-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #D96B4C; border: 2px solid var(--surface-2);
}
.tb-lang {
  font-family: var(--f-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em;
}

.tb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
}
.tb-user:hover { border-color: var(--ink-4); }
.tb-user .av { width: 28px; height: 28px; border-radius: 999px; font-size: 11px; }
.tb-user .name { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ────────── Content ────────── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 40px 80px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 28px;
}

/* ────────── Hero / Welcome + checklist ────────── */
.hero {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  box-shadow: var(--sh-hero);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto -40px -80px auto;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-50) 0%, transparent 70%);
  pointer-events: none;
}
.hero-left { position: relative; z-index: 1; }
.hero-eye {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-600); font-weight: 600;
  margin-bottom: 12px;
}
.hero-hello {
  font-family: var(--f-display);
  font-size: 40px; line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: pretty;
}
.hero-sub {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-3);
  max-width: 460px;
  margin-bottom: 24px;
}
.hero-sub em {
  font-style: normal; font-weight: 600;
  color: var(--ink);
}
.hero-meta {
  display: flex; gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta .m { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .k {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600;
  white-space: nowrap;
}
.hero-meta .v {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Checklist */
.ck {
  background: var(--sage-50);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}
.ck-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.ck-title {
  font-size: 13.5px; font-weight: 600; color: var(--sage-700);
}
.ck-count {
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--sage-600); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ck-bar {
  height: 6px; background: #fff; border-radius: 999px;
  margin: 10px 0 14px;
  overflow: hidden;
  position: relative;
}
.ck-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--sage-500);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.ck-list { display: flex; flex-direction: column; gap: 2px; }
.ck-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.ck-item:hover { background: rgba(255,255,255,0.6); }
.ck-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--sage-500);
  background: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .15s;
}
.ck-item.done .ck-check {
  background: var(--sage-600);
  border-color: var(--sage-600);
  color: #fff;
}
.ck-label {
  flex: 1;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.ck-item.done .ck-label {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-4);
}
.ck-chev { color: var(--ink-4); }

/* ────────── Section header ────────── */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 4px 4px 0;
}
.sec-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-sub {
  font-size: 13.5px; color: var(--ink-3);
  margin-top: 2px;
}
.sec-link {
  font-size: 13px; color: var(--sage-600);
  font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.sec-link:hover { color: var(--sage-700); }

/* ────────── To-do cards (colored icon grid) ────────── */
.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.td {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--sh-card);
  display: flex; gap: 16px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  position: relative;
  border: 1px solid transparent;
}
.td:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(45,60,50,0.04), 0 14px 36px -18px rgba(45,60,50,0.16);
  border-color: var(--line);
}
.td-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.td-icon.amber  { background: var(--tint-amber-bg);  color: var(--tint-amber-fg); }
.td-icon.rose   { background: var(--tint-rose-bg);   color: var(--tint-rose-fg); }
.td-icon.sage   { background: var(--tint-sage-bg);   color: var(--tint-sage-fg); }
.td-icon.slate  { background: var(--tint-slate-bg);  color: var(--tint-slate-fg); }
.td-icon.violet { background: var(--tint-violet-bg); color: var(--tint-violet-fg); }
.td-icon.peach  { background: var(--tint-peach-bg);  color: var(--tint-peach-fg); }

.td-body { flex: 1; min-width: 0; }
.td-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.td-title {
  font-size: 15.5px; font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.td-sub {
  font-size: 13px; color: var(--ink-3);
  line-height: 1.45;
}
.td-count {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.td-dismiss {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px;
  border-radius: 6px;
  border: none; background: transparent;
  color: var(--ink-4); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .12s, background .12s;
}
.td:hover .td-dismiss { opacity: 1; }
.td-dismiss:hover { background: var(--surface-3); color: var(--ink); }

/* ────────── Panels (rows below to-dos) ────────── */
.row-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.row-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--sh-card);
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title {
  font-family: var(--f-display);
  font-size: 16.5px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.panel-sub {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 2px;
}
.panel-tag {
  font-family: var(--f-mono); font-size: 10.5px;
  font-weight: 600; letter-spacing: 0.06em;
  color: var(--sage-700); background: var(--sage-50);
  padding: 4px 8px; border-radius: 6px;
}

/* Attendance small pulse */
.pulse-mini {
  display: flex; align-items: flex-end; gap: 3px;
  height: 64px;
  margin-top: 8px;
  padding: 8px 0;
}
.pulse-mini-bar {
  flex: 1;
  background: var(--sage-100);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height .3s;
}
.pulse-mini-bar.now { background: var(--sage-600); }
.pulse-mini-bar.future { background: var(--line); }

.pulse-stats {
  display: flex; gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}
.pulse-stat .k {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-4); font-weight: 600;
  margin-bottom: 4px;
}
.pulse-stat .v {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pulse-stat .v small {
  font-size: 13px; color: var(--ink-3);
  font-weight: 400; margin-left: 4px;
}

/* Revenue mini */
.rev-big {
  font-family: var(--f-display);
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.rev-big small {
  font-size: 15px; color: var(--ink-3);
  font-weight: 400; margin-left: 6px;
  font-family: var(--f-body);
}
.rev-delta {
  font-size: 13px; color: var(--sage-600);
  font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.rev-chart {
  height: 110px;
  margin-top: 18px;
  position: relative;
}

/* Panel rows (leaves / tasks) */
.pnl-list { display: flex; flex-direction: column; }
.pnl-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pnl-row:last-child { border-bottom: none; padding-bottom: 4px; }
.pnl-row:first-child { padding-top: 4px; }
.pnl-row .av { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.pnl-row .r-body { flex: 1; min-width: 0; }
.pnl-row .r-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.pnl-row .r-meta {
  font-size: 12px; color: var(--ink-3);
  margin-top: 1px;
}
.pnl-row .r-right {
  text-align: right;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
}
.pnl-row .r-days {
  font-family: var(--f-mono); font-size: 11.5px;
  font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pnl-row .r-type {
  font-size: 11px; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.pnl-row .r-actions { display: flex; gap: 6px; }
.pnl-btn {
  height: 30px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface);
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.pnl-btn:hover { border-color: var(--ink-4); color: var(--ink); }
.pnl-btn.approve {
  background: var(--sage-600); color: #fff; border-color: var(--sage-600);
}
.pnl-btn.approve:hover { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.pnl-btn.reject:hover { border-color: #B04434; color: #B04434; }

.chip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.chip-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
}
.chip-row .av { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.chip-row .cr-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.chip-row .cr-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.chip-row .cr-d {
  margin-left: auto; font-family: var(--f-mono);
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  background: var(--surface); padding: 3px 8px; border-radius: 6px;
}

/* Task row — uses inherited .pnl-row + days-late pill */
.days-late {
  font-family: var(--f-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.04em;
  color: #B04434; background: #FADDD8;
  padding: 3px 7px; border-radius: 5px;
  text-transform: uppercase;
}

/* Avatars (reuse v1 palette, round corners) */
.av {
  border-radius: 10px;
  display: grid; place-items: center;
  background: #B8C4D1; color: #fff;
  font-family: var(--f-body); font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.av.av-amber { background: #E8B46A; }
.av.av-violet { background: #9E89C4; }
.av.av-blue { background: #7BA3D4; }
.av.av-red { background: #D69090; }

/* Modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(31,42,36,0.45);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100;
  animation: v2fade .15s ease-out;
}
@keyframes v2fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 540px;
  max-width: 94vw;
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(31,42,36,0.3);
  animation: v2up .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes v2up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.modal-sub {
  font-size: 13px; color: var(--ink-3);
  margin-top: 4px;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 10px; border: none;
  background: transparent; color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-body {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.mb-row { display: flex; gap: 12px; }
.mb-row .k {
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-4); font-weight: 600;
  width: 100px; flex-shrink: 0;
  padding-top: 2px;
}
.mb-row .v {
  font-size: 14px; font-weight: 500; color: var(--ink); flex: 1;
}
.mb-row .v.reason {
  font-weight: 400; color: var(--ink-2); line-height: 1.5;
}
.modal-foot {
  display: flex; gap: 10px;
  justify-content: flex-end;
}
.mf-btn {
  height: 42px; padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface);
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.mf-btn.reject:hover { background: #FADDD8; color: #B04434; border-color: #F4B4A8; }
.mf-btn.approve {
  background: var(--sage-600); color: #fff; border-color: var(--sage-600);
}
.mf-btn.approve:hover { background: var(--sage-700); border-color: var(--sage-700); }

/* Toast */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 20px 50px -10px rgba(31,42,36,0.35);
  animation: v2toast .25s cubic-bezier(.2,.7,.3,1);
  pointer-events: auto;
}
@keyframes v2toast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast .t-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.toast.ok .t-icon { background: var(--sage-500); color: #fff; }
.toast.err .t-icon { background: #D96B4C; color: #fff; }

/* Tweaks panel */
.tw {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: 0 18px 50px -15px rgba(31,42,36,0.25), 0 0 0 1px var(--line);
  z-index: 60;
  width: 260px;
}
.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tw-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: 14px; letter-spacing: -0.005em;
}
.tw-close {
  width: 24px; height: 24px; border-radius: 6px;
  border: none; background: transparent; color: var(--ink-3);
  cursor: pointer; display: grid; place-items: center;
}
.tw-close:hover { background: var(--surface-3); }
.tw-grp { margin-bottom: 14px; }
.tw-lbl {
  font-size: 11px; font-weight: 600;
  color: var(--ink-4); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 8px;
}
.tw-swatches { display: flex; gap: 6px; }
.tw-sw {
  width: 26px; height: 26px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .1s;
}
.tw-sw:hover { transform: scale(1.08); }
.tw-sw.active { border-color: var(--ink); }
.tw-seg {
  display: flex; background: var(--surface-2);
  border-radius: 8px; padding: 3px; gap: 2px;
}
.tw-seg-btn {
  flex: 1; height: 28px; border: none; background: transparent;
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-3); cursor: pointer;
  border-radius: 6px;
}
.tw-seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* RTL */
body[dir="rtl"] .nv.active::before { left: auto; right: -12px; border-radius: 3px 0 0 3px; }
body[dir="rtl"] .sb { border-right: none; border-left: 1px solid var(--line); }
body[dir="rtl"] .td-dismiss { right: auto; left: 10px; }
body[dir="rtl"] .tw { right: auto; left: 20px; }


/* =========================================================
   v2 SCREENS — shared primitives for all routes
   ========================================================= */

/* Screen header */
.screen { display: flex; flex-direction: column; gap: 22px; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 4px 0 0; }
.sh-l { flex: 1; min-width: 0; }
.sh-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px;
}
.sh-title {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.1; margin: 0 0 6px;
}
.sh-sub { font-size: 14px; color: var(--ink-3); margin: 0; max-width: 720px; }
.sh-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-ghost, .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn-primary {
  background: var(--sage-700); color: #fff; border-color: var(--sage-700);
}
.btn-primary:hover { background: var(--sage-600); border-color: var(--sage-600); }
.pill {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3); margin-left: 4px;
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; align-self: flex-start;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: none; background: transparent;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-3); cursor: pointer; border-radius: 8px;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--sage-50); color: var(--sage-700); font-weight: 600; }
.tab-count {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.tab.active .tab-count { background: var(--sage-100); color: var(--sage-700); }

/* Filter row */
.filter-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 8px 8px 14px;
}
.filter-search { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--ink-3); }
.filter-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink);
}
.filter-chips { display: flex; gap: 6px; }
.chip {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--ink-4); }
.chip.active { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }

/* Table */
.table {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.thead {
  display: flex; gap: 12px; padding: 12px 18px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.th {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-4); flex: 1 1 0;
}
.col-name { flex: 2 1 0; }
.tr {
  display: flex; gap: 12px; padding: 14px 18px; align-items: center;
  border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.tr:last-child { border-bottom: none; }
.tr:hover { background: var(--surface-2); }
.td { flex: 1 1 0; color: var(--ink-2); display: flex; align-items: center; gap: 10px; min-width: 0; }
.td.col-name { flex: 2 1 0; }
.cell-name { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.table-foot {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-4); padding: 0 4px;
}

/* Status dots */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: var(--ink-4);
}
.status-dot.s-on-site  { background: #5B9B7D; }
.status-dot.s-on-leave { background: #D8A14A; }
.status-dot.s-remote   { background: #6B8FB8; }

/* Stage pills */
.stage-pill {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-3);
  color: var(--ink-3); display: inline-block;
}
.stage-pill.stage-active,
.stage-pill.stage-paid,
.stage-pill.stage-closed,
.stage-pill.stage-done    { background: var(--tint-sage-bg); color: var(--tint-sage-fg); }
.stage-pill.stage-pending,
.stage-pill.stage-scheduled,
.stage-pill.stage-screen,
.stage-pill.stage-interview { background: var(--tint-slate-bg); color: var(--tint-slate-fg); }
.stage-pill.stage-renewing { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.stage-pill.stage-overdue  { background: var(--tint-rose-bg); color: var(--tint-rose-fg); }
.stage-pill.stage-offer,
.stage-pill.stage-negotiation { background: var(--tint-violet-bg); color: var(--tint-violet-fg); }
.stage-pill.stage-open    { background: var(--tint-peach-bg); color: var(--tint-peach-fg); }

/* KPI row (used on multiple screens) */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
}
.kpi-k {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px;
}
.kpi-v {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.kpi-d { font-size: 12px; color: var(--ink-3); }

/* Client logo */
.client-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface-3); color: var(--ink-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}

/* ANNOUNCEMENTS */
.ann-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 18px;
}
.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px;
  position: relative;
}
.ann-card.pinned { border-color: var(--sage-500); background: var(--sage-50); }
.ann-pin {
  position: absolute; top: 14px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--sage-700);
}
.ann-head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
  font-size: 11.5px;
}
.ann-tag {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-3); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ann-tag.all-hands { background: var(--tint-violet-bg); color: var(--tint-violet-fg); }
.ann-tag.policy    { background: var(--tint-slate-bg); color: var(--tint-slate-fg); }
.ann-tag.ops       { background: var(--tint-peach-bg); color: var(--tint-peach-fg); }
.ann-tag.event     { background: var(--tint-sage-bg); color: var(--tint-sage-fg); }
.ann-ts { color: var(--ink-4); font-size: 12px; }
.ann-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em; }
.ann-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.ann-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.ann-author { font-size: 12px; color: var(--ink-3); }
.ann-reads { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.reads-bar { width: 80px; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.reads-fill { height: 100%; background: var(--sage-500); border-radius: 999px; }
.ann-count { color: var(--ink-4); font-size: 11px; font-variant-numeric: tabular-nums; }
.ann-side { display: flex; flex-direction: column; gap: 14px; }
.tip-list { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.tip-list li { margin-bottom: 4px; }
.rate-stat { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 8px; }
.rate-v { font-size: 32px; font-weight: 700; color: var(--ink); }
.rate-d { font-size: 13px; color: var(--sage-700); font-weight: 600; }
.rate-bars { display: flex; gap: 6px; align-items: flex-end; height: 60px; padding: 8px 0 6px; }
.rate-bar { flex: 1; background: var(--sage-500); border-radius: 3px; min-height: 3px; opacity: 0.85; }
.rate-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); }

/* ONBOARDING */
.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stage-num { font-size: 11px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.08em; }
.stage-name { font-size: 14px; font-weight: 600; color: var(--ink); margin: 4px 0 10px; }
.stage-count { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage-count small { font-size: 14px; color: var(--ink-4); margin-left: 4px; font-weight: 500; }
.stage-bar { height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.stage-fill { height: 100%; background: var(--sage-600); border-radius: 999px; }
.onb-list { display: flex; flex-direction: column; }
.onb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.onb-row:last-child { border-bottom: none; }
.onb-body { flex: 1; min-width: 0; }
.onb-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.onb-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* LEARNING */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.learn-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint-violet-bg); color: var(--tint-violet-fg); }
.learn-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 10px 0 4px; line-height: 1.3; }
.learn-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.learn-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.learn-fill { height: 100%; background: var(--sage-600); border-radius: 999px; }
.learn-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.learn-pct { font-weight: 700; color: var(--sage-700); }

/* KANBAN */
.kanban {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.k-col {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px; min-height: 400px;
}
.k-col-late { background: #FAEAE6; border-color: #ECC5BB; }
.k-col-done { opacity: 0.92; }
.k-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.k-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.k-count {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  background: var(--surface); border-radius: 999px; color: var(--ink-3);
}
.k-col-late .k-count { background: #fff; color: #B04434; }
.k-list { display: flex; flex-direction: column; gap: 8px; }
.k-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
}
.k-tag { font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.k-title { font-size: 13px; color: var(--ink); line-height: 1.4; margin-bottom: 10px; text-wrap: pretty; }
.k-foot { display: flex; align-items: center; justify-content: space-between; }
.av-sm { width: 22px; height: 22px; font-size: 9px; }
.k-due { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.k-due.late { color: #B04434; font-weight: 600; }
.k-add {
  margin-top: 4px; padding: 8px; border: 1px dashed var(--line);
  background: transparent; border-radius: 8px;
  color: var(--ink-4); font: inherit; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.k-add:hover { border-color: var(--ink-3); color: var(--ink-3); }

/* LEAVES — calendar density + gantt */
.cal-grid {
  display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px;
  padding-top: 6px;
}
.cal-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal-day { font-size: 10px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cal-bar { width: 100%; border-radius: 3px; min-height: 2px; transition: background .15s; }
.gantt {
  background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
}
.gantt-axis {
  display: grid; grid-template-columns: 160px 1fr;
  font-size: 10px; color: var(--ink-4);
}
.gantt-axis::before { content: ""; }
.gantt-axis {
  display: flex;
  padding-left: 160px;
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.gantt-tick { flex: 1; text-align: center; font-variant-numeric: tabular-nums; }
.gantt-row {
  display: grid; grid-template-columns: 160px 1fr;
  align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.gantt-row:last-child { border-bottom: none; }
.gantt-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--ink); padding-right: 12px;
}
.gantt-name .av { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.gantt-track { position: relative; height: 26px; }
.gantt-bar {
  position: absolute; top: 4px; height: 18px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; color: #fff;
  display: flex; align-items: center; padding: 0 8px;
  white-space: nowrap; overflow: hidden;
}
.gantt-bar.type-annual    { background: #5B9B7D; }
.gantt-bar.type-sick      { background: #D8A14A; }
.gantt-bar.type-emergency { background: #B04434; }

/* ATTENDANCE */
.pulse-big {
  display: flex; align-items: flex-end; gap: 4px; height: 200px;
  padding: 14px 4px 0;
}
.pulse-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pulse-col .pulse-mini-bar {
  flex: 1; min-height: 2px; background: var(--sage-600); border-radius: 3px 3px 0 0;
}
.pulse-col .pulse-mini-bar.future { background: var(--surface-3); }
.pulse-col .pulse-mini-bar.now { background: #D8A14A; }
.pulse-h { text-align: center; font-size: 10px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.site-card {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px 16px; position: relative;
}
.site-mark {
  position: absolute; top: 14px; right: 16px;
  font-size: 10.5px; font-weight: 700; padding: 3px 7px;
  background: var(--surface); border-radius: 6px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.site-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-right: 56px; line-height: 1.3; }
.site-rate { font-size: 26px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.site-bar { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.site-fill { height: 100%; background: var(--sage-600); border-radius: 999px; }
.site-stats { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.site-late.has { color: #B04434; font-weight: 600; }

/* CONTRACTS */
.days-pill {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-2); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.days-pill.urgent { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.late-tag {
  display: inline-block; margin-left: 6px;
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--tint-rose-bg); color: var(--tint-rose-fg);
  font-weight: 700; font-variant-numeric: tabular-nums;
}

/* FINANCE */
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.bar-list { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 0; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 110px; align-items: center; gap: 12px; font-size: 13px; }
.bar-name { color: var(--ink); font-weight: 500; }
.bar-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #3B7A5E, #5B9B7D); border-radius: 999px; }
.bar-val { text-align: right; color: var(--ink-2); font-weight: 600; }
.cost-list { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 0; }
.cost-row { display: grid; grid-template-columns: 14px 1fr 120px 50px; align-items: center; gap: 10px; font-size: 13px; }
.cost-dot { width: 12px; height: 12px; border-radius: 4px; }
.cost-k { color: var(--ink); }
.cost-v { text-align: right; color: var(--ink-2); font-weight: 600; }
.cost-p { text-align: right; color: var(--ink-4); font-size: 12px; font-variant-numeric: tabular-nums; }

/* AGING */
.aging-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 6px; }
.aging-card { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.aging-card.warn { background: var(--tint-amber-bg); border-color: #E6CB8E; }
.aging-name { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.aging-amt { font-size: 18px; font-weight: 700; color: var(--ink); }
.aging-bar { height: 4px; background: var(--surface-3); border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.aging-fill { height: 100%; background: var(--sage-600); border-radius: 999px; }
.aging-card.warn .aging-fill { background: #C68A2E; }
.aging-meta { font-size: 11.5px; color: var(--ink-3); }

/* PAYROLL */
.pay-next {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px;
  background: linear-gradient(120deg, var(--sage-50), var(--surface) 70%);
  border-color: var(--sage-100);
}
.pn-l { min-width: 180px; }
.pn-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-700); }
.pn-date { font-size: 38px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin: 4px 0; }
.pn-cycle { font-size: 12.5px; color: var(--ink-3); }
.pn-mid { display: flex; gap: 32px; flex: 1; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.pn-stat .k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.pn-stat .v { font-size: 17px; font-weight: 700; color: var(--ink); }
.pn-r { flex-shrink: 0; }

/* ANALYTICS */
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.report-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
  transition: transform .12s, box-shadow .12s; cursor: pointer;
}
.report-card:hover { transform: translateY(-1px); box-shadow: var(--sh-card); }
.rc-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.rc-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 6px 0 2px; }
.rc-sub { font-size: 11.5px; color: var(--ink-3); }
.rc-spark { height: 36px; margin: 12px 0 8px; }
.rc-foot { display: flex; align-items: baseline; justify-content: space-between; }
.rc-stat { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-dir { font-size: 13px; font-weight: 700; }
.rc-dir.up { color: #2E7D32; }
.rc-dir.down { color: #B04434; }
.rc-dir.flat { color: var(--ink-4); }

/* FEEDBACK */
.rev-list { display: flex; flex-direction: column; }
.rev-item { display: flex; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.rev-item:last-child { border-bottom: none; }
.rev-body { flex: 1; min-width: 0; }
.rev-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rev-client { font-weight: 700; color: var(--ink); font-size: 14px; }
.rev-stars { color: #D8A14A; font-size: 14px; letter-spacing: 0.05em; }
.rev-ts { font-size: 11.5px; color: var(--ink-4); margin-left: auto; }
.rev-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.rev-author { font-size: 12px; color: var(--ink-4); margin-top: 6px; }

/* SETTINGS */
.set-section {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 32px; padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.set-section:last-child { border-bottom: none; }
.set-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.set-sub { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.set-r { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px; }
.set-row label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.set-row input {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 13px;
  color: var(--ink); background: var(--surface);
}
.set-row input:focus { outline: none; border-color: var(--sage-500); }
.set-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.set-toggle:last-child { border-bottom: none; }
.tg-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tg-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tg-state {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--surface-3); color: var(--ink-3);
}
.tg-state.on { background: var(--sage-100); color: var(--sage-700); }
.audit-list { display: flex; flex-direction: column; }
.audit-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 16px; padding: 10px 0; font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.audit-row:last-child { border-bottom: none; }
.audit-ts { color: var(--ink-4); font-size: 12px; }
.audit-meta { color: var(--ink-4); font-size: 11.5px; }

/* INTEGRATIONS */
.integ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.integ-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px;
}
.integ-mark {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
  margin-bottom: 12px;
}
.integ-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.integ-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.integ-status {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px;
}
.integ-status.on  { background: var(--sage-100); color: var(--sage-700); }
.integ-status.off { background: var(--surface-3); color: var(--ink-4); }

/* HELP */
.help-search {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  color: var(--ink-3);
}
.help-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 14px;
}
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.help-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.help-list { display: flex; flex-direction: column; }
.help-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.help-item:first-child { border-top: none; padding-top: 4px; }
.help-item span:first-of-type { flex: 1; }
.help-item:hover { color: var(--sage-700); }

/* mini buttons used in panels */
.mini-btn {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-3);
}
.mini-btn.approve:hover { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.mini-btn.reject:hover  { background: #B04434; color: #fff; border-color: #B04434; }

/* Make sure the dashboard wrap allows screens to fill */
.wrap { max-width: 1280px; }

/* =========================================================
   VELTRO — GLOBAL TOKENS + COMPATIBILITY
   ========================================================= */

:root {
  --f-display: 'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App shell ── */
.app { display: flex; height: 100vh; overflow: hidden; }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.content { flex: 1; overflow-y: auto; padding: 28px 40px 80px; }
.wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* ── Sidebar links ── */
.sb a { text-decoration: none; color: inherit; }
.sb a.nv { position: relative; }
.sb a.nv.active, .sb .nv.active {
  background: var(--sage-50) !important;
  color: var(--sage-700) !important;
}
.sb a.nv.active::before, .sb .nv.active::before {
  content: "";
  position: absolute; left: -12px; top: 7px; bottom: 7px;
  width: 3px; background: var(--sage-600);
  border-radius: 0 3px 3px 0;
}

/* ── Hero ── */
.hero {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  box-shadow: var(--sh-hero);
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto -40px -80px auto;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-50) 0%, transparent 70%);
  pointer-events: none;
}
.hero-left { position: relative; z-index: 1; }
.hero-eye {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-hello {
  font-family: var(--f-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
  white-space: nowrap;
}
.hero-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 460px;
  margin-bottom: 26px;
}
.hero-sub em { font-style: normal; font-weight: 600; color: var(--ink); }
.hero-meta { display: flex; gap: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.hero-meta .m { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; }
.hero-meta .v { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

/* ── Checklist ── */
.ck { background: var(--sage-50); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.ck-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ck-title { font-size: 13.5px; font-weight: 600; color: var(--sage-700); }
.ck-count { font-family: var(--f-mono); font-size: 11.5px; color: var(--sage-600); }
.ck-bar { height: 6px; background: rgba(255,255,255,0.7); border-radius: 999px; margin: 10px 0 14px; overflow: hidden; }
.ck-bar-fill { height: 100%; background: var(--sage-500); border-radius: 999px; transition: width .4s cubic-bezier(.2,.7,.3,1); }
.ck-list { display: flex; flex-direction: column; gap: 2px; }
.ck-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.ck-item:hover { background: rgba(255,255,255,0.6); }
.ck-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--sage-500); background: #fff; display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .15s; }
.ck-item.done .ck-check { background: var(--sage-600); border-color: var(--sage-600); color: #fff; }
.ck-label { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ck-item.done .ck-label { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); }

/* ── Section header ── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; }
.sec-title { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.sec-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.sec-link { font-size: 13px; color: var(--sage-600); font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.sec-link:hover { color: var(--sage-700); }

/* ── To-do cards ── */
.todo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.td {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--sh-card);
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  position: relative;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.td:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(45,60,50,0.04), 0 16px 40px -18px rgba(45,60,50,0.18); border-color: var(--line); }
.td-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.td-icon.amber  { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.td-icon.rose   { background: var(--tint-rose-bg);  color: var(--tint-rose-fg); }
.td-icon.sage   { background: var(--tint-sage-bg);  color: var(--tint-sage-fg); }
.td-icon.slate  { background: var(--tint-slate-bg); color: var(--tint-slate-fg); }
.td-icon.violet { background: var(--tint-violet-bg);color: var(--tint-violet-fg); }
.td-icon.peach  { background: var(--tint-peach-bg); color: var(--tint-peach-fg); }
.td-body { flex: 1; min-width: 0; }
.td-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.td-count { font-family: var(--f-display); font-size: 48px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.td-title { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.td-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

/* ── Panels ── */
.row-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: var(--sh-card); border: 1px solid var(--line-soft); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title { font-family: var(--f-display); font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.panel-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.pnl-list { display: flex; flex-direction: column; }
.pnl-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.pnl-row:last-child { border-bottom: none; padding-bottom: 0; }
.pnl-row:first-child { padding-top: 0; }
.pnl-row .av { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.r-body { flex: 1; min-width: 0; }
.r-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.r-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.r-right { text-align: right; }
.r-days { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.r-actions { display: flex; gap: 6px; }
.pnl-btn { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pnl-btn.approve { background: var(--sage-600); color: #fff; border-color: var(--sage-600); }
.pnl-btn.approve:hover { background: var(--sage-700); }
.pnl-btn.reject:hover { border-color: #B04434; color: #B04434; }
.days-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.days-pill.urgent { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.days-late { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; color: #B04434; background: #FADDD8; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.cr-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.cr-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ── Avatars ── */
.av { border-radius: 10px; display: grid; place-items: center; background: #B8C4D1; color: #fff; font-family: var(--f-body); font-weight: 600; font-size: 12px; flex-shrink: 0; width: 36px; height: 36px; }
.av.av-amber  { background: #E8B46A; }
.av.av-violet { background: #9E89C4; }
.av.av-blue   { background: #7BA3D4; }
.av.av-red    { background: #D69090; }

/* ── KPI row ── */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-card); }
.kpi-k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-4); margin-bottom: 10px; }
.kpi-v { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.kpi-d { font-size: 12px; color: var(--ink-3); }

/* ── Page header ── */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.page-header h1 { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 4px; }
.page-header .page-sub { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.page-actions { display: flex; gap: 10px; align-items: center; }

/* ── Forms ── */
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(91,155,125,0.12);
}
label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 6px;
}

/* ── Buttons ── */
.btn-secondary {
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 18px; font-family: var(--f-body); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--ink-4); color: var(--ink); }

/* ── Tables ── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-card); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); padding: 11px 20px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--line); }
tbody td { padding: 13px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.badge-success, .badge-active, .badge-approved, .badge-green { background: var(--tint-sage-bg); color: var(--tint-sage-fg); }
.badge-warning, .badge-pending, .badge-amber { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.badge-red, .badge-danger, .badge-rejected { background: var(--tint-rose-bg); color: var(--tint-rose-fg); }
.badge-info, .badge-blue { background: var(--tint-slate-bg); color: var(--tint-slate-fg); }
.badge-violet { background: var(--tint-violet-bg); color: var(--tint-violet-fg); }
.badge-gray, .badge-inactive { background: var(--surface-3); color: var(--ink-3); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.section { margin-bottom: 24px; }
.section-title { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; }

/* ── Legacy card ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--sh-card); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: none; }
.list-info { flex: 1; min-width: 0; }
.list-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.list-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pay-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--sage-100); color: var(--sage-700); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-card); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-4); margin-bottom: 8px; }
.stat-value { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat-sub { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.stat-card.teal .stat-value { color: var(--sage-700); }
.stat-card.amber .stat-value, .stat-card.red .stat-value { color: var(--tint-amber-fg); }
.stat-card.blue .stat-value { color: var(--tint-slate-fg); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 16px; }
.alert-warning { background: var(--tint-amber-bg); color: var(--tint-amber-fg); border: 1px solid #E6CB8E; }
.alert-success { background: var(--tint-sage-bg); color: var(--tint-sage-fg); border: 1px solid #B0D4C0; }
.alert-error { background: var(--tint-rose-bg); color: var(--tint-rose-fg); border: 1px solid #F4B4A8; }
.client-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* ── Topbar ── */
.topbar { background: var(--surface-2) !important; border-bottom: 1px solid var(--line-soft) !important; }
.tb-search input { font-family: var(--f-body); }
.tb-btn { font-family: var(--f-body); }
.tb-user .name { font-family: var(--f-body); }



/* =========================================================
   EXACT MATCH — Claude Design
   ========================================================= */

/* Hero grid — matches Claude design proportions exactly */
.hero {
  display: grid !important;
  grid-template-columns: 1.05fr 1fr !important;
  gap: 40px !important;
  padding: 36px 40px !important;
  background: var(--surface) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-hero) !important;
  border: 1px solid var(--line-soft) !important;
  position: relative !important;
  overflow: hidden !important;
}
.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: auto -40px -80px auto !important;
  width: 300px !important; height: 300px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, var(--sage-50) 0%, transparent 70%) !important;
  pointer-events: none !important;
}
.hero-left { position: relative; z-index: 1; }

/* Greeting — matches Claude design: medium weight, elegant */
.hero-hello {
  font-family: 'Syne', sans-serif !important;
  font-size: 46px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.06 !important;
  color: var(--ink) !important;
  margin-bottom: 14px !important;
  white-space: nowrap !important;
}

/* Date line */
.hero-eye {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--sage-600) !important;
  font-weight: 500 !important;
  margin-bottom: 16px !important;
}

/* Subtext */
.hero-sub {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-3) !important;
  max-width: 460px !important;
  margin-bottom: 26px !important;
}
.hero-sub em { font-style: normal !important; font-weight: 600 !important; color: var(--ink) !important; }

/* Meta stats */
.hero-meta { display: flex !important; gap: 32px !important; padding-top: 22px !important; border-top: 1px solid var(--line-soft) !important; }
.hero-meta .m { display: flex !important; flex-direction: column !important; gap: 4px !important; }
.hero-meta .k { font-size: 10.5px !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; color: var(--ink-4) !important; font-weight: 600 !important; }
.hero-meta .v { font-family: 'Syne', sans-serif !important; font-size: 22px !important; font-weight: 700 !important; color: var(--ink) !important; letter-spacing: -0.01em !important; }

/* Checklist — sage green box right side */
.ck {
  background: var(--sage-50) !important;
  border-radius: var(--r-lg) !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 1 !important;
}
.ck-head { display: flex !important; align-items: baseline !important; justify-content: space-between !important; margin-bottom: 4px !important; }
.ck-title { font-size: 13.5px !important; font-weight: 600 !important; color: var(--sage-700) !important; }
.ck-count { font-family: 'JetBrains Mono', monospace !important; font-size: 11.5px !important; color: var(--sage-600) !important; }
.ck-bar { height: 5px !important; background: rgba(255,255,255,0.8) !important; border-radius: 999px !important; margin: 10px 0 14px !important; overflow: hidden !important; position: relative !important; }
.ck-bar-fill { position: absolute !important; left: 0 !important; top: 0 !important; height: 100% !important; background: var(--sage-500) !important; border-radius: 999px !important; transition: width .4s ease !important; }
.ck-list { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.ck-item { display: flex !important; align-items: center !important; gap: 12px !important; padding: 9px 8px !important; border-radius: 8px !important; cursor: pointer !important; }
.ck-item:hover { background: rgba(255,255,255,0.6) !important; }
.ck-check { width: 22px !important; height: 22px !important; border-radius: 50% !important; border: 1.5px solid var(--sage-500) !important; background: #fff !important; display: grid !important; place-items: center !important; flex-shrink: 0 !important; color: transparent !important; transition: all .15s !important; }
.ck-item.done .ck-check { background: var(--sage-600) !important; border-color: var(--sage-600) !important; color: #fff !important; }
.ck-label { flex: 1 !important; font-size: 13px !important; font-weight: 500 !important; color: var(--ink) !important; line-height: 1.3 !important; }
.ck-item.done .ck-label { color: var(--ink-4) !important; text-decoration: line-through !important; }

/* To-do cards — number matches Claude design ~36-40px */
.td-count {
  font-family: 'Syne', sans-serif !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
  display: block !important;
}
.td-kicker { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; color: var(--ink-4) !important; margin-bottom: 4px !important; }
.td-title { font-size: 14.5px !important; font-weight: 600 !important; color: var(--ink) !important; line-height: 1.3 !important; margin-bottom: 4px !important; }
.td-sub { font-size: 12.5px !important; color: var(--ink-3) !important; }
.td { display: flex !important; gap: 16px !important; align-items: flex-start !important; padding: 20px 22px !important; }
.td-icon { flex-shrink: 0 !important; margin-top: 2px !important; }
.td-body { flex: 1 !important; min-width: 0 !important; }

/* Sidebar — badges for counts */
.nv-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: var(--surface-3) !important;
  color: var(--ink-3) !important;
}
.nv.active .nv-badge { background: var(--sage-100) !important; color: var(--sage-700) !important; }

/* Section + panel titles — Syne */
.sec-title { font-family: 'Syne', sans-serif !important; font-weight: 700 !important; font-size: 22px !important; letter-spacing: -0.02em !important; }
.panel-title { font-family: 'Syne', sans-serif !important; font-weight: 700 !important; }
.kpi-v { font-family: 'Syne', sans-serif !important; font-weight: 700 !important; }
.card-title { font-family: 'Syne', sans-serif !important; font-weight: 700 !important; }

/* Font smoothing */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Fix kpi-v zero display */
.kpi-v {
  font-family: 'Syne', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
  font-variant-numeric: normal !important;
  margin-bottom: 4px !important;
  line-height: 1.1 !important;
}

/* =========================================================
   SESSION 3A — EMPLOYEES (list, profile, edit, new)
   New v2 primitives added for employee pages.
   Reusable: info-card, form-grid, form-savebar, profile-hero,
             cat-toggle, assess-row.
   ========================================================= */

/* ─── Table row as a link (full-row click) ─── */
.tr.tr-link { cursor: pointer; transition: background 0.12s; }
.tr.tr-link:hover { background: var(--surface-2); }

/* ─── Filter row — accommodate native selects alongside chips ─── */
.filter-row .filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font: inherit; font-size: 12.5px; font-weight: 500;
  padding: 7px 28px 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%236B7770' stroke-width='1.6' stroke-linecap='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.filter-row .filter-select:hover { border-color: var(--ink-4); }

/* ─── Status dot fallback (suspend/other) ─── */
.status-dot.s-suspended { background: #B04434; }
.status-dot.s-inactive { background: #B0B0B0; }

/* ─── Avatar size for hero/profile (large) ─── */
.av-lg {
  width: 64px; height: 64px;
  border-radius: 14px;
  font-size: 22px;
  font-family: var(--f-display);
}

/* ─── Profile hero card ─── */
.profile-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 22px 26px;
  display: flex; align-items: center;
  gap: 20px;
}
.ph-left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.ph-meta { min-width: 0; flex: 1; }
.ph-subline {
  font-size: 14px; color: var(--ink-3);
  margin-bottom: 10px;
}
.ph-badges {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.ph-actions { flex-shrink: 0; display: flex; gap: 8px; }

/* ─── Profile tab panes ─── */
.profile-tabpane { display: none; flex-direction: column; gap: 14px; margin-top: 2px; }
.profile-tabpane.active { display: flex; }

/* ─── Info cards (read-only sections on profile) ─── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  padding: 20px 22px;
}
.info-card-title {
  font-family: var(--f-display);
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex; align-items: center;
}
.info-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.info-card-head .info-card-title { margin-bottom: 0; }
.info-card-hint {
  font-size: 11px; color: var(--ink-4);
  font-weight: 400; margin-left: 6px;
  text-transform: none; letter-spacing: 0;
}

/* Two-column info grid (auto-wraps on narrow) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}
.info-cell { min-width: 0; }
.info-label {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.info-value {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}

.info-empty {
  font-size: 13px;
  color: var(--ink-4);
  padding: 10px 0 2px;
  font-style: italic;
}

.info-notice {
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--sage-700);
  margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.45;
}

/* ─── Assignment card (used on profile Assignment tab) ─── */
.assign-card .assign-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.assign-head-meta { flex: 1; min-width: 0; }
.assign-client {
  font-family: var(--f-display);
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.assign-loc {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 2px;
}

/* ─── Assessments list ─── */
.assess-list { display: flex; flex-direction: column; gap: 12px; }
.assess-row {
  display: flex; gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--surface-2);
}
.assess-score {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.assess-score small { font-size: 11px; opacity: 0.7; font-weight: 500; }
.assess-score.sage  { background: var(--tint-sage-bg);  color: var(--tint-sage-fg); }
.assess-score.amber { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.assess-score.rose  { background: var(--tint-rose-bg);  color: var(--tint-rose-fg); }
.assess-body { flex: 1; min-width: 0; }
.assess-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.assess-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.assess-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.assess-scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 10px;
}
.assess-sc {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.assess-sc .sc-v {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.assess-sc .sc-k {
  font-size: 9.5px; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}
.assess-note {
  font-size: 12.5px; color: var(--ink-2);
  margin-top: 4px; line-height: 1.5;
}
.assess-note strong { color: var(--ink); font-weight: 600; }

/* ─── Edit form: shared form primitives ─── */
.form-v2 { display: flex; flex-direction: column; gap: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}
.form-field { min-width: 0; display: flex; flex-direction: column; }
.form-field-wide { grid-column: span 2; }

.form-label {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-4);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-input:hover { border-color: var(--ink-4); }
.form-input:focus {
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(91, 155, 125, 0.15);
}
.form-input::placeholder { color: var(--ink-4); }

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%236B7770' stroke-width='1.6' stroke-linecap='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

textarea.form-input { resize: vertical; min-height: 64px; line-height: 1.5; }

/* ─── Category toggle (Field / Office staff) ─── */
.cat-toggle { display: flex; gap: 12px; }
.cat-opt {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.cat-opt:hover { border-color: var(--ink-4); }
.cat-opt input[type="radio"] { accent-color: var(--sage-600); width: 16px; height: 16px; }
.cat-opt.active,
.cat-opt input[type="radio"]:checked ~ .cat-opt-body {
  /* visual highlight handled by adjacent rule below */
}
.cat-opt:has(input:checked) {
  border-color: var(--sage-500);
  background: var(--sage-50);
}
.cat-opt-name {
  font-size: 13.5px; font-weight: 600;
  color: var(--ink);
}
.cat-opt-sub {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 2px;
}

/* ─── Sticky save bar at bottom of forms ─── */
.form-savebar {
  position: sticky; bottom: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 -2px 12px rgba(45,60,50,0.06);
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  z-index: 5;
}
.form-savebar-hint {
  font-size: 12.5px; color: var(--ink-3);
}
.form-savebar-hint strong { color: var(--ink); font-weight: 600; }
.form-savebar-actions {
  display: flex; gap: 10px; flex-shrink: 0;
}

/* ─── Back link (uppercase, mono-ish) ─── */
.sh-back:hover { color: var(--ink-2); }

/* =========================================================
   SESSION 3B — LEAVES + ATTENDANCE + EXPENSES
   New v2 primitives: gantt timeline, calendar density,
   large pulse chart, attendance site grid.
   ========================================================= */

/* ─── Calendar density (used on Leaves) ─── */
.cal-half {
  margin-bottom: 14px;
}
.cal-half:last-of-type { margin-bottom: 0; }
.cal-bars {
  display: flex; gap: 3px;
  align-items: flex-end;
  height: 52px;
  margin-bottom: 4px;
  padding: 0 1px;
}
.cal-bar-wrap {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.cal-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.2s, background 0.15s;
}
.cal-labels {
  display: flex; gap: 3px;
  padding: 0 1px;
}
.cal-day {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.cal-day.cal-day-today {
  color: var(--sage-700);
  font-weight: 700;
}

.cal-out-today {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.cal-out-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.cal-out-row {
  display: flex; align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.cal-out-meta { flex: 1; min-width: 0; }
.cal-out-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-out-sub {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 1px;
}
.cal-out-more {
  font-size: 11.5px; color: var(--ink-4);
  padding: 6px 0 2px;
  font-style: italic;
}

/* ─── Gantt timeline (used on Leaves) ─── */
.gantt {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.gantt-legend {
  display: flex; gap: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.gantt-legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.gantt-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
}
.gantt-axis {
  position: relative;
  height: 16px;
  margin-left: 160px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.gantt-tick {
  position: absolute;
  top: 0;
  font-size: 10px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.gantt-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.gantt-row:last-child { border-bottom: none; }
.gantt-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  padding-right: 12px;
  min-width: 0;
}
.gantt-name span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gantt-name .av {
  width: 24px; height: 24px; font-size: 10px; border-radius: 7px;
  flex-shrink: 0;
}
.gantt-track {
  position: relative;
  height: 26px;
}
.gantt-bar {
  position: absolute;
  top: 4px;
  height: 18px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  display: flex; align-items: center;
  padding: 0 8px;
  white-space: nowrap; overflow: hidden;
  min-width: 24px;
  box-shadow: 0 1px 2px rgba(45,60,50,0.10);
}
.gantt-bar.type-annual    { background: #5B9B7D; }
.gantt-bar.type-sick      { background: #D8A14A; }
.gantt-bar.type-emergency { background: #B04434; }

/* ─── Big attendance pulse (used on Attendance) ─── */
.pulse-big {
  display: flex; align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding: 14px 4px 0;
}
.pulse-col {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.pulse-big .pulse-mini-bar {
  width: 100%;
  background: var(--sage-600);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height 0.25s, background 0.15s;
}
.pulse-big .pulse-mini-bar.now    { background: #D8A14A; }
.pulse-big .pulse-mini-bar.future { background: var(--surface-3); }

.pulse-axis {
  display: flex;
  margin-top: 6px;
  padding: 0 4px;
}
.pulse-h {
  flex: 1;
  text-align: left;
  font-size: 10px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.pulse-h-now {
  color: #D8A14A;
  font-weight: 700;
}

/* ─── Site grid (used on Attendance) ─── */
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.site-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}
.site-mark {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.site-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-right: 50px;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-rate {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.site-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.site-fill {
  height: 100%;
  background: var(--sage-600);
  border-radius: 999px;
  transition: width 0.3s;
}
.site-stats {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.site-late.has {
  color: #B04434;
  font-weight: 600;
}

/* =========================================================
   SESSION 3C — CLIENTS + CONTRACTS + INVOICING
   ========================================================= */

/* Expired contracts get a rose tint on the days-pill */
.days-pill.expired {
  background: var(--tint-rose-bg);
  color: var(--tint-rose-fg);
}

/* Inline small client-logo (used inside contracts table to show the client column) */
.td .client-logo {
  border: 1px solid var(--line-soft);
}

/* =============================================================
   DASHBOARD V2 — Roadmap #3.2 (Session 3.2 · May 19 2026)
   Prefix: dashv2-*  (avoid global collisions — audit-log lesson)
   ============================================================= */

/* The .wrap container already provides gap stacking; we just add
   visual rhythm between dashboard sections. */
.dashv2-greet,
.dashv2-approval,
.dashv2-kpi-row,
.dashv2-pulse,
.dashv2-grid-2,
.dashv2-quick-row,
.dashv2-empty,
.dashv2-card {
  margin-bottom: 18px;
}

/* ── 1 · Greeting ──────────────────────────────────────────── */
.dashv2-greet {
  padding: 6px 0 0;
}
.dashv2-greet-date {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 8px;
}
.dashv2-greet-hello {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.1; margin: 0 0 8px;
}
.dashv2-greet-sub {
  font-size: 14px; color: var(--ink-3); margin: 0;
}
.dashv2-greet-link {
  color: var(--tint-amber-fg);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--tint-amber-fg);
}
.dashv2-greet-link:hover { color: var(--sage-700); border-color: var(--sage-700); }

/* ── 2 · Pending your approval ─────────────────────────────── */
.dashv2-approval {
  background: linear-gradient(180deg, var(--sage-50) 0%, var(--surface) 60%);
  border: 1px solid var(--sage-100);
  border-radius: 12px;
  padding: 14px 16px;
}
.dashv2-approval-head { margin-bottom: 10px; }
.dashv2-approval-title {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.dashv2-approval-sub {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}
.dashv2-approval-list {
  display: flex; flex-direction: column;
}
.dashv2-approval-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sage-100);
}
.dashv2-approval-row:first-child { border-top: none; }
.dashv2-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint-violet-bg);
  color: var(--tint-violet-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.dashv2-approval-body { flex: 1; min-width: 0; }
.dashv2-approval-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.dashv2-approval-meta {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}
.dashv2-tag {
  display: inline-block;
  padding: 1px 7px; border-radius: 9px;
  background: var(--surface-2); color: var(--ink-3);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-right: 6px;
}
.dashv2-approval-amt {
  font-family: var(--f-mono);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.dashv2-approval-actions { display: flex; gap: 4px; }
.dashv2-btn-ok, .dashv2-btn-no {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dashv2-btn-ok {
  background: var(--tint-sage-bg); color: var(--tint-sage-fg);
}
.dashv2-btn-ok:hover { background: var(--sage-100); }
.dashv2-btn-no {
  background: var(--tint-rose-bg); color: var(--tint-rose-fg);
}
.dashv2-btn-no:hover { background: #F5C9C2; }

/* ── 3 · KPI strip ────────────────────────────────────────── */
.dashv2-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dashv2-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.12s, transform 0.12s;
}
.dashv2-kpi:hover {
  border-color: var(--sage-500);
  transform: translateY(-1px);
}
.dashv2-kpi-k {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 8px;
}
.dashv2-kpi-v {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.1;
  margin-bottom: 4px;
}
.dashv2-kpi-d {
  font-size: 11.5px; color: var(--sage-700); font-weight: 600;
}
/* Supervisor sees only 2 KPIs — let them breathe instead of stretching */
@media (min-width: 900px) {
  .dashv2-kpi-row:has(.dashv2-kpi:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(220px, 320px));
  }
  .dashv2-kpi-row:has(.dashv2-kpi:nth-child(1):last-child) {
    grid-template-columns: minmax(220px, 320px);
  }
}

/* ── 4 · Attendance pulse ─────────────────────────────────── */
.dashv2-pulse {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s;
}
.dashv2-pulse:hover { border-color: var(--sage-500); }
.dashv2-pulse-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dashv2-pulse-title {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.dashv2-pulse-meta {
  font-size: 11.5px; color: var(--ink-3);
}
.dashv2-pulse-link { color: var(--sage-700); font-weight: 600; }
.dashv2-pulse-bar {
  display: flex; height: 10px; border-radius: 5px;
  overflow: hidden; margin-bottom: 10px;
  background: var(--surface-3);
}
.dashv2-pulse-seg { display: block; height: 100%; }
.dashv2-seg-present { background: var(--sage-600); }
.dashv2-seg-leave   { background: var(--tint-amber-fg); }
.dashv2-seg-absent  { background: var(--tint-rose-fg); }
.dashv2-seg-late    { background: var(--tint-peach-fg); }
.dashv2-pulse-empty {
  font-size: 12.5px; color: var(--ink-4);
  padding: 8px 0; font-style: italic;
}
.dashv2-pulse-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--ink-2);
}
.dashv2-pulse-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dashv2-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
}

/* ── 5/6 + 7 · Two-column rows ────────────────────────────── */
.dashv2-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .dashv2-grid-2 { grid-template-columns: 1fr; }
  .dashv2-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* Generic dashboard card */
.dashv2-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.dashv2-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dashv2-card-title {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.dashv2-card-sub {
  font-size: 11.5px; color: var(--ink-4);
}
.dashv2-card-link {
  font-size: 11.5px; color: var(--sage-700); font-weight: 600;
  text-decoration: none;
}
.dashv2-card-link:hover { color: var(--sage-600); }
.dashv2-card-empty {
  font-size: 12.5px; color: var(--ink-4);
  padding: 14px 0; text-align: center; font-style: italic;
}

/* Wrap revenue card click as a link */
a.dashv2-card {
  text-decoration: none; color: inherit; display: block;
  transition: border-color 0.12s;
}
a.dashv2-card:hover { border-color: var(--sage-500); }

/* ── 5 · Needs your attention rows ────────────────────────── */
.dashv2-att-list { display: flex; flex-direction: column; }
.dashv2-att-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  font-size: 13px;
}
.dashv2-att-row:first-child { border-top: none; }
.dashv2-att-row:hover { background: var(--surface-2); }
.dashv2-att-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dashv2-dot-amber { background: var(--tint-amber-fg); }
.dashv2-dot-rose  { background: var(--tint-rose-fg); }
.dashv2-dot-sage  { background: var(--sage-600); }
.dashv2-att-label { flex: 1; color: var(--ink); font-weight: 500; }
.dashv2-att-arr { color: var(--ink-4); font-size: 14px; }

/* ── 6 · Revenue trend card ───────────────────────────────── */
.dashv2-revenue {}
.dashv2-rev-delta {
  font-size: 11px; font-weight: 600;
}
.dashv2-rev-delta.dashv2-up   { color: var(--sage-700); }
.dashv2-rev-delta.dashv2-down { color: var(--tint-rose-fg); }
.dashv2-rev-big {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 4px 0 12px;
}
.dashv2-rev-big small {
  display: inline-block; margin-left: 8px;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  color: var(--ink-4); letter-spacing: 0;
}
.dashv2-rev-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 56px;
}
.dashv2-rev-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; }
.dashv2-rev-col-bar { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.dashv2-rev-bar {
  width: 100%; background: var(--sage-100);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
}
.dashv2-rev-bar.is-current { background: var(--sage-600); }
.dashv2-rev-col-lbl {
  font-size: 10px; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 500;
}
.dashv2-rev-col-lbl.is-current { color: var(--sage-700); font-weight: 600; }

/* ── 7 · This week + Recent activity ──────────────────────── */
.dashv2-week-list { display: flex; flex-direction: column; }
.dashv2-week-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  font-size: 12.5px;
}
.dashv2-week-row:first-child { border-top: none; }
.dashv2-week-row:hover { background: var(--surface-2); }
.dashv2-week-date {
  font-family: var(--f-mono);
  font-size: 11px; color: var(--ink-4); font-weight: 500;
  min-width: 96px; flex-shrink: 0;
}
.dashv2-week-label { flex: 1; color: var(--ink); }
.dashv2-week-arr { color: var(--ink-4); }

.dashv2-act-list { display: flex; flex-direction: column; }
.dashv2-act-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.dashv2-act-row:first-child { border-top: none; }
.dashv2-act-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-500);
  margin-top: 7px; flex-shrink: 0;
}
.dashv2-act-body { flex: 1; min-width: 0; }
.dashv2-act-summary {
  font-size: 12.5px; color: var(--ink); line-height: 1.4;
}
.dashv2-act-time {
  font-size: 11px; color: var(--ink-4); margin-top: 2px;
  font-family: var(--f-mono);
}

/* ── Announcements widget ─────────────────────────────────── */
.dashv2-ann-list { display: flex; flex-direction: column; }
.dashv2-ann-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none; color: inherit;
}
.dashv2-ann-row:hover { background: var(--surface-2); }
.dashv2-ann-row.is-pinned {
  border-left: 3px solid var(--sage-600);
  background: var(--sage-50);
  border-radius: 0 8px 8px 0;
  padding-left: 12px;
}
.dashv2-ann-row.is-pinned:hover { background: #E5EEE8; }
.dashv2-ann-pin {
  color: var(--sage-700);
  font-size: 13px;
  flex-shrink: 0;
}
.dashv2-ann-body { flex: 1; min-width: 0; }
.dashv2-ann-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.dashv2-ann-meta {
  font-size: 11px; color: var(--ink-4); margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────
   Dashboard announcements widget v2 (Roadmap #3.2 Phase 3 polish)
   ─────────────────────────────────────────────────────────────
   Promoted to mid-page position. Mirrors /announcements design:
   pinned section with sage left-border and pin icon, category
   pill + message preview on each row. CSS prefix dashv2-ann2-*
   to avoid clobbering legacy .dashv2-ann-* rules above (kept for
   any cached client renders).
*/
.dashv2-ann2-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 2px 0 8px 2px;
}
.dashv2-ann2-section-label svg { color: var(--sage-700); }
.dashv2-ann2-latest-label {
  color: var(--ink-4);
  margin-top: 14px;
}

.dashv2-ann2-pinned-list,
.dashv2-ann2-flat-list {
  display: flex; flex-direction: column; gap: 8px;
}

.dashv2-ann2-card {
  position: relative;
  display: block;
  padding: 12px 14px 12px 16px;
  border-radius: 0 10px 10px 0;
  text-decoration: none; color: inherit;
  background: linear-gradient(to right, rgba(96, 117, 96, 0.05), var(--surface) 65%);
  border-left: 3px solid var(--sage-700);
  transition: background-color 120ms ease;
}
.dashv2-ann2-card:hover {
  background: linear-gradient(to right, rgba(96, 117, 96, 0.10), var(--surface-2) 65%);
}

.dashv2-ann2-pin-icon {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(96, 117, 96, 0.12);
  color: var(--sage-700);
  display: flex; align-items: center; justify-content: center;
}

.dashv2-ann2-row {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--line-soft);
  transition: background-color 120ms ease;
}
.dashv2-ann2-flat-list .dashv2-ann2-row:first-child { border-top: none; }
.dashv2-ann2-row:hover { background: var(--surface-2); }

.dashv2-ann2-meta-top {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
/* Pinned cards need right-padding so the pin-icon doesn't overlap the pill */
.dashv2-ann2-card .dashv2-ann2-meta-top { padding-right: 30px; }

.dashv2-ann2-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}
.dashv2-ann2-card .dashv2-ann2-title { padding-right: 30px; }

.dashv2-ann2-preview {
  font-size: 12px; color: var(--ink-3);
  line-height: 1.45;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.dashv2-ann2-meta-bot {
  font-size: 11px; color: var(--ink-4);
}

/* ── 8 · Quick actions ────────────────────────────────────── */
.dashv2-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .dashv2-quick-row { grid-template-columns: repeat(2, 1fr); }
}
.dashv2-quick {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.dashv2-quick:hover {
  background: var(--sage-50);
  border-color: var(--sage-500);
  color: var(--sage-700);
}

/* ── Employee placeholder ─────────────────────────────────── */
.dashv2-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  margin: 32px auto;
}
.dashv2-empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage-50);
  color: var(--sage-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dashv2-empty-title {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin: 0 0 8px;
}
.dashv2-empty-sub {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
  margin: 0 0 12px;
}
.dashv2-empty-sub-2 {
  font-size: 12.5px; color: var(--ink-4); line-height: 1.5;
  margin: 0;
}

/* END DASHBOARD V2 */

/* =============================================================
   FINANCE HUB — Roadmap #3.2 Phase 2 (Session 3.2 · May 19 2026)
   Prefix: finance-*
   ============================================================= */

/* ── Tab strip ────────────────────────────────────────────── */
.finance-hub-head {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.finance-hub-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 12px;
}
.finance-hub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: -1px; /* overlap parent border */
}
.finance-tab {
  display: inline-block;
  padding: 9px 16px 11px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-4);
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  cursor: pointer;
}
.finance-tab:hover { color: var(--ink); }
.finance-tab.is-active {
  color: var(--sage-700);
  border-bottom-color: var(--sage-600);
}

/* Stack vertical rhythm between sections */
.finance-kpi-row, .finance-card, .finance-grid-2 { margin-bottom: 18px; }

/* ── 1 · KPI strip ────────────────────────────────────────── */
.finance-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .finance-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.finance-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.12s, transform 0.12s;
}
.finance-kpi:hover {
  border-color: var(--sage-500);
  transform: translateY(-1px);
}
.finance-kpi-k {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 8px;
}
.finance-kpi-v {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.1;
  margin-bottom: 4px;
}
.finance-kpi-d {
  font-size: 11.5px; color: var(--ink-3);
}

/* ── Generic card ─────────────────────────────────────────── */
.finance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.finance-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.finance-card-title {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.finance-card-sub {
  font-size: 11.5px; color: var(--ink-4);
  margin-top: 2px;
}
.finance-card-link {
  font-size: 11.5px; color: var(--sage-700); font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.finance-card-link:hover { color: var(--sage-600); }
.finance-card-empty {
  font-size: 12.5px; color: var(--ink-4);
  padding: 24px 0; text-align: center; font-style: italic;
}

/* ── 2 · Cash flow chart ──────────────────────────────────── */
.finance-cashflow-legend {
  display: flex; gap: 14px;
  font-size: 11px; color: var(--ink-3);
}
.finance-cashflow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.finance-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 2px;
}
.finance-dot-sage  { background: var(--sage-600); }
.finance-dot-amber { background: var(--tint-amber-fg); }

.finance-cashflow-chart {
  display: flex; align-items: flex-end; gap: 16px;
  height: 90px;
  padding: 0 4px;
}
.finance-cashflow-col {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  height: 100%;
}
.finance-cashflow-bars {
  flex: 1;
  display: flex; align-items: flex-end;
  gap: 3px;
  width: 100%;
}
.finance-cashflow-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity 0.12s;
}
.finance-cashflow-bar:hover { opacity: 0.85; }
.finance-cashflow-rev { background: var(--sage-500); }
.finance-cashflow-rev:has(+ *), .finance-cashflow-col:hover .finance-cashflow-rev { /* hover state friend */ }
.finance-cashflow-exp { background: var(--tint-amber-fg); }
.finance-cashflow-lbl {
  font-size: 10px; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 500;
}
.finance-cashflow-lbl.is-current { color: var(--sage-700); font-weight: 600; }

/* ── 3 · Receivables aging ────────────────────────────────── */
.finance-aging-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .finance-aging-row { grid-template-columns: repeat(2, 1fr); }
}
.finance-aging-bucket {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.finance-aging-sage  { background: var(--tint-sage-bg);  border-color: var(--sage-100); }
.finance-aging-amber { background: var(--tint-amber-bg); border-color: #EBE0BD; }
.finance-aging-rose  { background: var(--tint-rose-bg);  border-color: #F0D6D0; }
.finance-aging-lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 6px;
}
.finance-aging-amt {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.finance-aging-rose .finance-aging-amt { color: var(--tint-rose-fg); }
.finance-aging-cnt {
  font-size: 11px; color: var(--ink-4); margin-top: 4px;
}

/* ── 4 + 5 · Two-column row ───────────────────────────────── */
.finance-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .finance-grid-2 { grid-template-columns: 1fr; }
}

/* Compact list-table used by Recent invoices + Top clients */
.finance-table { display: flex; flex-direction: column; }
.finance-table-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
}
.finance-table-row:first-child { border-top: none; }
a.finance-table-row:hover { background: var(--surface-2); }
.finance-table-main { flex: 1; min-width: 0; }
.finance-table-pri {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.finance-table-sec {
  font-size: 11.5px; color: var(--ink-4); margin-top: 2px;
}
.finance-table-amt {
  font-family: var(--f-mono);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.finance-topclient-rank {
  width: 24px;
  font-family: var(--f-display);
  font-size: 13px; font-weight: 700;
  color: var(--sage-700);
}

/* Status pill (light variant) */
.finance-pill {
  display: inline-block;
  padding: 2px 9px; border-radius: 9px;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.finance-pill-sage  { background: var(--tint-sage-bg);  color: var(--tint-sage-fg); }
.finance-pill-amber { background: var(--tint-amber-bg); color: var(--tint-amber-fg); }
.finance-pill-rose  { background: var(--tint-rose-bg);  color: var(--tint-rose-fg); }

/* ── 6 · Payroll snapshot ─────────────────────────────────── */
.finance-payroll-snapshot {}
.finance-payroll-snap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 4px;
}
.finance-payroll-snap-stat {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px 14px;
}
.finance-payroll-snap-k {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 6px;
}
.finance-payroll-snap-v {
  font-family: var(--f-display);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Reports placeholder ──────────────────────────────────── */
.finance-reports-empty { padding: 0; }

/* END FINANCE HUB */

/* ── Mobile sidebar ──────────────────────────────────────── */
@media (max-width: 768px) {
  .sb {
    position: fixed;
    z-index: 200;
    height: 100%;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .sb.mobile-open {
    transform: translateX(0);
  }
  .shell-main {
    margin-left: 0 !important;
  }
}
