/* Taxblock HRMS web — theme ported from the previous HRMS client (Inter/Outfit, hsl tokens, sidebar shell). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --background: hsl(210 40% 98%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --primary: hsl(226 71% 40%);
  --primary-fg: hsl(210 40% 98%);
  --primary-10: hsl(226 71% 40% / 0.1);
  --primary-5: hsl(226 71% 40% / 0.05);
  --secondary: hsl(214 32% 91%);
  --muted: hsl(210 40% 96%);
  --muted-fg: hsl(215.4 16.3% 46.9%);
  --border: hsl(214.3 31.8% 91.4%);
  --ring: hsl(226 71% 40%);
  --destructive: hsl(0 84.2% 60.2%);
  --radius: 0.75rem;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--background); color: var(--foreground); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
a { color: inherit; }
button { font: inherit; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* ---------- auth screens ---------- */
.auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: linear-gradient(135deg, hsl(226 71% 40% / 0.06), hsl(210 40% 98%) 40%, hsl(243 75% 59% / 0.06)); }
.auth .card { width: 100%; max-width: 420px; }
.auth .logo { height: 72px; width: auto; display: block; margin: 0 auto 10px; }
.auth h2 { font-size: 24px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted-fg); margin: 4px 0 18px; }

/* ---------- cards / common ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-h { padding: 16px 20px 0; }
.card-h h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-b { padding: 16px 20px 20px; }
.card.pad { padding: 20px 24px; }
.muted { color: var(--muted-fg); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 24px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.right { margin-left: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: var(--muted-fg); padding: 40px 16px; }
.empty b { display: block; color: var(--foreground); font-size: 16px; margin-bottom: 4px; }

/* page header band (Employees-style) */
.band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-10), hsl(214 100% 97%), hsl(226 100% 97%));
  border: 1px solid var(--primary-10); border-radius: 16px; padding: 24px; }
.band h1, .page h1 { font-size: 30px; font-weight: 700; }
.band h1.grad { background: linear-gradient(90deg, var(--primary), hsl(243 75% 50%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band p, .page .lead { color: var(--muted-fg); margin: 4px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid transparent; background: var(--primary); color: var(--primary-fg); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: filter .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.shadow { box-shadow: 0 10px 15px -3px hsl(226 71% 40% / 0.2); }
.btn.outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn.outline:hover { background: var(--muted); filter: none; }
.btn.ghost { background: transparent; color: var(--muted-fg); }
.btn.ghost:hover { background: var(--muted); color: var(--foreground); filter: none; }
.btn.danger { background: var(--destructive); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .hint { font-size: 11px; color: var(--muted-fg); }
.input, select.input, textarea.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--foreground); }
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: transparent; }
.input[readonly] { background: var(--muted); color: var(--muted-fg); }
.form { display: grid; gap: 14px; }
.form .g2, .form .g3 { gap: 14px; }
.suffix { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.suffix .input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.suffix span { display: flex; align-items: center; padding: 0 12px; background: var(--muted); color: var(--muted-fg); font-weight: 500; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-fg); }
.search .input { padding-left: 34px; width: 256px; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; text-align: center; }
.alert.error { background: hsl(0 86% 97%); color: hsl(0 72% 42%); }
.alert.ok { background: hsl(152 76% 95%); color: hsl(161 94% 24%); }
.fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; }
.fieldset legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- badges / avatar ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; max-width: 100%; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active { background: hsl(152 81% 96%); color: hsl(161 94% 24%); border-color: hsl(152 76% 80%); }
.badge.inactive { background: hsl(0 86% 97%); color: hsl(0 72% 42%); border-color: hsl(0 93% 87%); }
.badge.dept { background: hsl(251 91% 97%); color: hsl(263 70% 45%); border-color: hsl(252 95% 90%); }
.badge.role { background: var(--primary-10); color: var(--primary); }
.badge.soft { background: var(--muted); color: var(--muted-fg); }
.badge.pin { background: hsl(43 96% 93%); color: hsl(32 81% 29%); }
.chip { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: hsl(226 71% 40% / 0.85); background: var(--primary-5); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px;
  background: linear-gradient(135deg, #3b82f6, #4f46e5); border: 2px solid var(--primary-10); box-shadow: 0 0 0 2px var(--primary-5); flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.avatar.intern { background: linear-gradient(135deg, #fbbf24, #f97316); }
.avatar.contract, .avatar.consultant { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.avatar.inactive { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.avatar.me { background: linear-gradient(135deg, #8b5cf6, #9333ea); border-color: #ddd6fe; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; white-space: nowrap; background: var(--primary-5); }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: hsl(226 71% 40% / 0.02); }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .name { font-weight: 600; }
.pager { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ---------- filter tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; border: 2px solid var(--border); background: var(--card); cursor: pointer; text-align: left; transition: box-shadow .15s ease, transform .1s ease; }
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.tile.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), 0 10px 15px -3px hsl(226 71% 40% / 0.2); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.tile .ico svg { width: 22px; height: 22px; }
.tile .n { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.tile .l { font-size: 12px; color: var(--muted-fg); margin-top: 4px; }
.tile.all { background: linear-gradient(135deg, hsl(214 100% 97%), hsl(226 100% 97%), hsl(270 100% 98%)); border-color: hsl(213 97% 87%); }
.tile.all .ico { background: linear-gradient(135deg, #3b82f6, #4f46e5); box-shadow: 0 10px 15px -3px rgba(59,130,246,.3); }
.tile.active-t { background: linear-gradient(135deg, hsl(152 81% 96%), hsl(166 76% 97%)); border-color: hsl(152 76% 80%); }
.tile.active-t .ico { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 15px -3px rgba(16,185,129,.3); }
.tile.inactive-t { background: linear-gradient(135deg, hsl(0 86% 97%), hsl(24 100% 97%)); border-color: hsl(0 93% 87%); }
.tile.inactive-t .ico { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 10px 15px -3px rgba(239,68,68,.3); }
/* compact single-row variant (Tasks: Total + 5 statuses) */
.tiles.row6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tiles.row6 .tile { gap: 10px; padding: 12px 14px; border-radius: 14px; }
.tiles.row6 .tile .ico { width: 34px; height: 34px; border-radius: 10px; }
.tiles.row6 .tile .ico svg { width: 18px; height: 18px; }
.tiles.row6 .tile .n { font-size: clamp(15px, 1.5vw, 19px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiles.row6 .tile .l { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1279px) { .tiles.row6 .tile .ico { display: none; } }
.tile.st-todo .ico { background: linear-gradient(135deg, #94a3b8, #64748b); }
.tile.st-in_progress .ico { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tile.st-pending .ico { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tile.st-completed .ico { background: linear-gradient(135deg, #34d399, #059669); }
.tile.st-cancelled .ico { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ---------- rainbow cards (departments / teams) ---------- */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rcard { border-radius: var(--radius); border: 1px solid; padding: 12px; cursor: pointer; display: flex; flex-direction: column; height: 96px; justify-content: space-between; transition: transform .1s ease, box-shadow .15s ease; }
.rcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.rcard.on { box-shadow: 0 0 0 2px var(--primary); }
.rcard .t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.rcard .t .ico { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.rcard .t .ico svg { width: 14px; height: 14px; }
.rcard .c { display: flex; align-items: baseline; gap: 4px; border-top: 1px solid hsl(0 0% 0% / 0.06); padding-top: 6px; }
.rcard .c b { font-size: 18px; }
.rcard .c span { font-size: 10px; color: var(--muted-fg); }
.rc0 { background: hsl(214 100% 97%); border-color: hsl(213 97% 87%); } .rc0 .ico { background: hsl(213 94% 68% / .25); color: #1d4ed8; } .rc0 b { color: #1d4ed8; }
.rc1 { background: hsl(152 81% 96%); border-color: hsl(152 76% 80%); } .rc1 .ico { background: hsl(160 84% 39% / .2); color: #047857; } .rc1 b { color: #047857; }
.rc2 { background: hsl(270 100% 98%); border-color: hsl(269 100% 92%); } .rc2 .ico { background: hsl(271 91% 65% / .2); color: #6d28d9; } .rc2 b { color: #6d28d9; }
.rc3 { background: hsl(33 100% 96%); border-color: hsl(32 98% 83%); } .rc3 .ico { background: hsl(25 95% 53% / .2); color: #c2410c; } .rc3 b { color: #c2410c; }
.rc4 { background: hsl(327 73% 97%); border-color: hsl(326 85% 90%); } .rc4 .ico { background: hsl(330 81% 60% / .2); color: #be185d; } .rc4 b { color: #be185d; }
.rc5 { background: hsl(183 100% 96%); border-color: hsl(185 96% 80%); } .rc5 .ico { background: hsl(189 94% 43% / .2); color: #0e7490; } .rc5 b { color: #0e7490; }
.rc6 { background: hsl(48 100% 96%); border-color: hsl(48 96% 77%); } .rc6 .ico { background: hsl(45 93% 47% / .25); color: #a16207; } .rc6 b { color: #a16207; }
.rc7 { background: hsl(226 100% 97%); border-color: hsl(228 96% 89%); } .rc7 .ico { background: hsl(239 84% 67% / .2); color: #4338ca; } .rc7 b { color: #4338ca; }

/* ---------- pill tabs (Settings) ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 500; cursor: pointer; background: var(--card); display: inline-flex; align-items: center; gap: 6px; }
.pill svg { width: 14px; height: 14px; }
.pill.p0 { border-color: hsl(32 98% 83%); background: hsl(48 100% 96%); color: #b45309; } .pill.p0.on { background: #d97706; color: #fff; border-color: #d97706; }
.pill.p1 { border-color: hsl(152 76% 80%); background: hsl(152 81% 96%); color: #047857; } .pill.p1.on { background: #059669; color: #fff; border-color: #059669; }
.pill.p2 { border-color: hsl(291 93% 90%); background: hsl(289 100% 98%); color: #a21caf; } .pill.p2.on { background: #c026d3; color: #fff; border-color: #c026d3; }
.pill.p3 { border-color: hsl(269 100% 92%); background: hsl(270 100% 98%); color: #6d28d9; } .pill.p3.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.pill.p4 { border-color: hsl(213 97% 87%); background: hsl(214 100% 97%); color: #1d4ed8; } .pill.p4.on { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ---------- field rows (Profile) ---------- */
.frow { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.frow:last-child { border-bottom: 0; }
.frow .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--muted); display: inline-flex; align-items: center; justify-content: center; color: var(--muted-fg); flex-shrink: 0; }
.frow .ico svg { width: 15px; height: 15px; }
.frow .k { font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .04em; }
.frow .v { font-weight: 500; word-break: break-word; }

/* ---------- lists ---------- */
.list { display: grid; gap: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.li:last-child { border-bottom: 0; }
.li .who b { display: block; font-size: 13px; }
.li .who span { font-size: 12px; color: var(--muted-fg); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; backdrop-filter: blur(2px); }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 640px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.modal.wide { max-width: 900px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 20px; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--foreground); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); animation: toast-in .2s ease; }
.toast.error { background: var(--destructive); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- app shell ---------- */
.shell { min-height: 100dvh; display: flex; }
.sidebar { display: none; width: 224px; flex-shrink: 0; border-right: 1px solid var(--border); background: hsl(0 0% 100% / .5); backdrop-filter: blur(4px); height: 100dvh; position: sticky; top: 0; flex-direction: column; }
.sidebar .logo-box { padding: 20px 16px; border-bottom: 1px solid hsl(214 32% 91% / .5); }
.sidebar .logo-box img { height: 56px; width: auto; max-width: 190px; object-fit: contain; object-position: left; display: block; }
.sidebar nav { flex: 1; padding: 12px 8px; display: grid; gap: 2px; align-content: start; overflow: auto; }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; font-weight: 500; border-radius: 8px; color: var(--muted-fg); text-decoration: none; border-left: 3px solid transparent; transition: background .15s ease; }
.nav-a svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-a:hover { background: hsl(210 40% 96% / .6); }
.nav-a.on { font-weight: 600; }
.nav-a.on.c-violet  { background: linear-gradient(90deg, #ede9fe, #faf5ff); color: #6d28d9; border-left-color: #8b5cf6; box-shadow: 0 2px 8px -2px rgba(139,92,246,.3); }
.nav-a.on.c-emerald { background: linear-gradient(90deg, #d1fae5, #f0fdf4); color: #047857; border-left-color: #10b981; box-shadow: 0 2px 8px -2px rgba(16,185,129,.3); }
.nav-a.on.c-cyan    { background: linear-gradient(90deg, #cffafe, #f0fdfa); color: #0e7490; border-left-color: #06b6d4; box-shadow: 0 2px 8px -2px rgba(6,182,212,.3); }
.nav-a.on.c-indigo  { background: linear-gradient(90deg, #e0e7ff, #eff6ff); color: #4338ca; border-left-color: #6366f1; box-shadow: 0 2px 8px -2px rgba(99,102,241,.3); }
.nav-a.on.c-slate   { background: linear-gradient(90deg, #f1f5f9, #f9fafb); color: #334155; border-left-color: #64748b; box-shadow: 0 2px 8px -2px rgba(100,116,139,.3); }
.nav-a.on.c-blue    { background: linear-gradient(90deg, #dbeafe, #f0f9ff); color: #1d4ed8; border-left-color: #3b82f6; box-shadow: 0 2px 8px -2px rgba(59,130,246,.3); }
.nav-a.on.c-pink    { background: linear-gradient(90deg, #fce7f3, #fff1f2); color: #be185d; border-left-color: #ec4899; }
.nav-a.on.c-green   { background: linear-gradient(90deg, #dcfce7, #f7fee7); color: #15803d; border-left-color: #22c55e; }
.nav-a.on.c-amber   { background: linear-gradient(90deg, #fef3c7, #fefce8); color: #b45309; border-left-color: #f59e0b; }
.nav-a .soon { margin-left: auto; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); background: var(--muted); padding: 2px 6px; border-radius: 999px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; position: sticky; top: 0; z-index: 30; height: 56px; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); background: hsl(210 40% 98% / .9); backdrop-filter: blur(6px); }
.topbar .who { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 999px; text-decoration: none; }
.topbar .who:hover { background: hsl(210 40% 96% / .6); }
.topbar .who span { font-size: 13px; font-weight: 500; max-width: 160px; }
.mobilebar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 50; }
.mobilebar img { height: 40px; width: auto; max-width: min(180px, calc(100vw - 8rem)); object-fit: contain; }
.mobilenav { position: sticky; top: 61px; z-index: 40; border-bottom: 1px solid var(--border); background: hsl(210 40% 98% / .95); backdrop-filter: blur(6px); overflow-x: auto; scrollbar-width: none; }
.mobilenav::-webkit-scrollbar { display: none; }
.mobilenav nav { display: flex; gap: 8px; padding: 8px 12px; min-width: max-content; }
.mnav { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-fg); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mnav svg { width: 14px; height: 14px; }
.mnav.on { border-color: transparent; color: var(--primary); background: var(--primary-10); }
main.page { flex: 1; padding: 12px; width: 100%; max-width: 1280px; margin: 0 auto; display: grid; gap: 28px; align-content: start; }
.footer { color: var(--muted-fg); font-size: 11px; text-align: center; padding: 16px; }

@media (min-width: 1024px) {
  .sidebar { display: flex; }
  .topbar { display: flex; }
  .mobilebar, .mobilenav { display: none; }
  main.page { padding: 40px 48px 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) { main.page { padding: 24px 32px; } }
@media (max-width: 767px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:first-child { grid-column: span 2; }
  .tiles.row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles.row6 .tile:first-child { grid-column: auto; }
  .tiles.row6 .tile { padding: 10px 12px; }
  .search .input { width: 100%; }
  .band { padding: 18px; }
  .band h1, .page h1 { font-size: 24px; }
  .card.pad { padding: 16px; }
  .tbl .hide-m { display: none; }
}

/* ---------- impersonation ---------- */
.impbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #f59e0b; color: #451a03; font-size: 13px; font-weight: 500; border-bottom: 1px solid #b45309; }
.impbar span { display: inline-flex; align-items: center; gap: 8px; }
.impbar svg { width: 16px; height: 16px; }
.impbar .btn { background: #fef3c7; color: #78350f; height: 28px; }
.access-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.access-row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.access-row:last-child { border-bottom: 0; }
@media (max-width: 767px) { .access-row { grid-template-columns: 1fr; } }

/* ---------- platform operator console (taxblock.co/operator) ---------- */
.opshell { min-height: 100vh; background: var(--background); }
.opbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--border); }
.opbar img { height: 30px; }
.opbar b { font-family: var(--font-display); font-size: 15px; }
.oppage { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; }
.tiles.op-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.op-h { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.op-h svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .opbar { padding: 10px 16px; }
  .oppage { padding: 20px 16px 40px; }
  .tiles.op-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opbar .hide-m { display: none; }
  .oppage .between > .row { width: 100%; }
  .oppage .between .search { flex: 1; min-width: 0; }
  .oppage .between .search .input { width: 100%; }
  .oppage .tbl td.actions .op-open-l { display: none; }
}
.oppage .tbl td.actions { white-space: nowrap; }

/* logo picker (signup, operator console, Settings → Company) */
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-pick img { width: 120px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 6px; flex-shrink: 0; }
.logo-pick label.btn { cursor: pointer; }
.logo-pick .hint { margin-top: 6px; }
.op-logo { width: 44px; height: 32px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 3px; flex-shrink: 0; }

/* public DIN verify page */
.auth .card.verify-card { max-width: 860px; }
.verify-form { max-width: 420px; margin: 0 auto; }
.alert.warn { background: hsl(48 96% 94%); color: hsl(26 83% 34%); }
.chip.ok { background: hsl(152 76% 92%); color: hsl(161 94% 24%); }
.chip.warn { background: hsl(48 96% 90%); color: hsl(26 83% 34%); }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 14px; border-top: 1px solid var(--border); }
.vgrid .vrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.vgrid .k { color: var(--muted-fg); font-size: 13px; }
.vgrid .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.verify-doc { width: 100%; min-height: 420px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: block; }
@media (max-width: 640px) { .vgrid { grid-template-columns: 1fr; } }
/* logged-out landing (every host): sign in, verify a document by DIN, what's included */
.landing { min-height: 100dvh; background: linear-gradient(180deg, #eef2ff 0%, var(--background) 420px); }
.land-top { max-width: 1160px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.land-top img { height: 44px; width: auto; display: block; }
.land-top nav { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.land-hero { max-width: 1160px; margin: 0 auto; padding: 28px 16px 36px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 40px; align-items: center; }
.land-copy h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.land-copy h1 span { color: var(--primary); }
.land-copy p { font-size: 18px; color: var(--muted-fg); max-width: 560px; margin: 0 0 18px; }
.land-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 500; }
.land-points span { display: inline-flex; align-items: center; gap: 6px; }
.land-points svg { width: 16px; height: 16px; color: #16a34a; }
.land-signin { max-width: 440px; width: 100%; justify-self: end; box-shadow: 0 12px 32px -12px rgba(30, 58, 138, .25); }
.land-signin h2 { font-size: 22px; text-align: center; margin: 0; }
.land-signin .sub { text-align: center; color: var(--muted-fg); margin: 4px 0 16px; }
.land-verify { max-width: 1128px; margin: 0 auto 36px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 2px solid var(--primary);
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; align-items: center; scroll-margin-top: 16px; }
@media (min-width: 1161px) { .land-verify { margin-left: auto; margin-right: auto; } }
.land-verify h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 6px; color: var(--primary); }
.land-verify h2 svg { width: 22px; height: 22px; }
.land-verify p { margin: 0; color: var(--muted-fg); }
.land-verify-form { display: flex; gap: 8px; }
.land-verify-form .input { flex: 1; min-width: 0; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.land-services { max-width: 1160px; margin: 0 auto; padding: 8px 16px 32px; }
.land-services h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 4px; }
.land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.land-svc h3 { font-size: 16px; margin: 12px 0 6px; }
.land-svc p { margin: 0; font-size: 14px; color: var(--muted-fg); line-height: 1.5; }
.land-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.land-ic svg { width: 22px; height: 22px; }
.land-ic.c-blue { background: #dbeafe; color: #1d4ed8; } .land-ic.c-amber { background: #fef3c7; color: #b45309; }
.land-ic.c-green { background: #dcfce7; color: #15803d; } .land-ic.c-indigo { background: #e0e7ff; color: #4338ca; }
.land-ic.c-rose { background: #ffe4e6; color: #be123c; } .land-ic.c-violet { background: #ede9fe; color: #6d28d9; }
.land-ic.c-teal { background: #ccfbf1; color: #0f766e; } .land-ic.c-orange { background: #ffedd5; color: #c2410c; }
.land-ic.c-slate { background: #e2e8f0; color: #334155; }
.land-foot { text-align: center; padding: 20px 16px 32px; font-size: 13px; color: var(--muted-fg); }
@media (max-width: 900px) {
  .land-hero, .land-verify { grid-template-columns: minmax(0,1fr); }
  .land-signin { justify-self: stretch; max-width: none; }
  .land-verify { margin: 0 16px 28px; }
  .land-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .land-grid { grid-template-columns: 1fr; }
  .land-top nav .btn.ghost { display: none; }
  .land-copy p { font-size: 16px; }
}
.land-verify-form .input::placeholder { text-transform: none; letter-spacing: normal; }
/* field tracking */
.trk-map { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--muted); z-index: 0; }
.trk-map.lg { height: 560px; }
.trk-map.sm { height: 300px; }
.trk-live { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.trk-list { max-height: 500px; overflow: auto; }
.trk-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.trk-row:hover { background: var(--primary-5); }
.trk-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.trk-tiles > div { background: var(--primary-5); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.trk-tiles span { font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .04em; }
.trk-tiles b { font-size: 18px; }
.trk-pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 10px/1 var(--font-sans); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.trk-pick { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.trk-ind.pulse-dot { position: relative; }
.trk-ind.pulse-dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: trkpulse 2s infinite; }
@keyframes trkpulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@media (max-width: 900px) { .trk-live { grid-template-columns: minmax(0, 1fr); } .trk-map.lg { height: 380px; } }
.privacy { max-width: 820px; margin: 8px auto 0; line-height: 1.6; }
.privacy h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 4px; }
.privacy h2 { font-size: 18px; margin: 22px 0 6px; }
.privacy ul { padding-left: 20px; }
@media (max-width: 900px) { .privacy { margin: 8px 16px 0; } }
/* ---------- public website (pages/site.js) ---------- */
.site { min-height: 100dvh; display: flex; flex-direction: column; background: var(--background); }
.site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; width: 100%; }
.site-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-brand img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a { padding: 8px 12px; border-radius: 8px; color: var(--foreground); text-decoration: none; font-weight: 500; font-size: 14px; }
.site-nav > a:hover { background: var(--primary-5); }
.site-nav > a.on { color: var(--primary); background: var(--primary-10); }
.site-cta { display: flex; gap: 8px; margin-left: 10px; }
.site-burger { display: none; margin-left: auto; font-size: 22px; }
.site-burger svg { width: 22px; height: 22px; }
.site-main { flex: 1; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.site-kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-10); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.site-hero { background: linear-gradient(180deg, #eef2ff 0%, var(--background) 100%); padding: 48px 0 40px; }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.site-hero h1, .site-page-head h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
.site-hero h1 span { color: var(--primary); }
.site-lead { font-size: 18px; color: var(--muted-fg); max-width: 620px; margin: 0 0 20px; line-height: 1.55; }
.site-hero-card { border: 2px solid var(--primary); box-shadow: 0 16px 40px -18px rgba(30,58,138,.35); }
.site-hero-card h3, .site-signin-side h3 { display: flex; align-items: center; gap: 8px; color: var(--primary); margin: 0 0 6px; font-size: 20px; }
.site-verify-form { display: flex; gap: 8px; margin-top: 12px; }
.site-verify-form .input { flex: 1; min-width: 0; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.site-verify-form .input::placeholder { text-transform: none; letter-spacing: normal; }
.site-band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 16px; }
.site-stats div { display: flex; flex-direction: column; gap: 2px; }
.site-stats b { font-family: var(--font-display); font-size: 24px; color: var(--primary); }
.site-stats span { font-size: 13px; color: var(--muted-fg); }
.site-sec { padding: 48px 0; }
.site-sec.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-sec h2, .site-cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.site-sub { margin: 0 0 18px; }
.site-svc { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.site-svc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(30,58,138,.3); }
.site-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.site-steps > div { background: var(--background); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.site-steps span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.site-steps h3 { margin: 10px 0 4px; font-size: 17px; }
.site-steps p { margin: 0; color: var(--muted-fg); font-size: 14px; line-height: 1.5; }
.site-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.site-split p { line-height: 1.6; }
.site-mock-map { position: relative; height: 200px; border-radius: 12px; background: linear-gradient(135deg, #e0f2fe, #f0fdf4); overflow: hidden; border: 1px solid var(--border); }
.site-mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-mock-map .p { position: absolute; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 11px var(--font-sans); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.site-mock-map .a { left: 12%; top: 66%; background: #16a34a; } .site-mock-map .b { left: 48%; top: 28%; background: #d97706; } .site-mock-map .c { left: 86%; top: 8%; background: #dc2626; }
.site-cta-band { background: linear-gradient(90deg, #eef2ff, #f5f3ff); border-top: 1px solid var(--border); padding: 36px 0; }
.site-cta-band p { margin: 0; color: var(--muted-fg); }
.site-page-head { background: linear-gradient(180deg, #eef2ff 0%, var(--background) 100%); padding: 44px 0 20px; }
.site-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.site-chips .chip { text-decoration: none; cursor: pointer; }
.site-svc-list { display: flex; flex-direction: column; gap: 16px; }
.site-svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; scroll-margin-top: 84px; }
.site-svc-h { display: flex; gap: 14px; align-items: flex-start; }
.site-svc-h h2 { font-size: 22px; margin: 0 0 4px; }
.site-svc-h p { margin: 0; }
.site-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-ticks li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.site-ticks svg { color: #16a34a; margin-top: 3px; }
.site-values { display: flex; flex-direction: column; gap: 12px; }
.site-values h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; }
.site-values h3 svg { color: var(--primary); }
.site-values p { margin: 0; }
.site-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.site-facts > div { background: var(--background); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.site-facts span { font-size: 12px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .04em; }
.site-contact { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.site-contact h3 { margin: 0; font-size: 15px; } .site-contact p { margin: 2px 0 0; color: var(--muted-fg); }
.site-signin { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); gap: 32px; justify-content: center; align-items: start; }
.site-signin-card h1 { font-family: var(--font-display); font-size: 28px; text-align: center; margin: 0; }
.site-signin-card .sub { text-align: center; color: var(--muted-fg); margin: 4px 0 18px; }
.site-signin-side { padding: 18px; border: 1px dashed var(--border); border-radius: 14px; }
.site .verify-card { max-width: 860px; margin: 0 auto; }
.site .privacy { margin: 0 auto; }
.site-foot { background: #fff; border-top: 1px solid var(--border); padding: 32px 0 18px; margin-top: auto; }
.site-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; }
.site-foot-grid h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); }
.site-foot-grid a { display: block; color: var(--foreground); text-decoration: none; font-size: 14px; padding: 3px 0; }
.site-foot-grid a:hover { color: var(--primary); }
.site-foot-logo { height: 34px; width: auto; }
.site-copy { margin-top: 20px; }
@media (max-width: 900px) {
  .site-burger { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; gap: 2px; }
  .site-nav.open { display: flex; }
  .site-cta { margin: 8px 0 0; }
  .site-cta .btn { flex: 1; }
  .site-hero-grid, .site-split, .site-svc-row, .site-signin { grid-template-columns: minmax(0, 1fr); }
  .site-stats { grid-template-columns: 1fr 1fr; }
  .site-steps { grid-template-columns: minmax(0, 1fr); }
  .site-foot-grid { grid-template-columns: 1fr 1fr; }
  .site-hero { padding-top: 28px; }
}
@media (max-width: 560px) { .site-foot-grid { grid-template-columns: minmax(0, 1fr); } .site-verify-form { flex-direction: column; } }
.land-ic.c-cyan { background: #cffafe; color: #0e7490; }
.site-chips .chip { font-family: var(--font-sans); font-size: 13px; padding: 4px 10px; }
@media (max-width: 560px) { .site-verify-form .input { flex: none; height: 44px; } }
.site-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.site-social a { display: inline !important; font-size: 13px; color: var(--primary) !important; }
.site-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-mv p { margin: 6px 0 0; line-height: 1.6; }
.site-steps.four { grid-template-columns: repeat(4, 1fr); }
.site-steps.four h3 { margin-top: 0; }
.site-leader { display: flex; gap: 16px; align-items: center; max-width: 720px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; flex-shrink: 0; }
@media (max-width: 900px) { .site-mv, .site-steps.four { grid-template-columns: minmax(0, 1fr); } }
.site-foot-grid p a { display: inline; padding: 0; color: var(--primary); }
.site-signin { grid-template-columns: minmax(0, 440px); }
/* ---------- rich sign-in ---------- */
.si { padding: 40px 0 56px; background: radial-gradient(1200px 500px at 0% 0%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #ecfeff 0%, transparent 55%), var(--background); }
.si-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 460px); gap: 48px; align-items: center; }
.si-brand h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0 0 10px; }
.si-brand h2 span { color: var(--primary); display: block; }
.si-lead { color: var(--muted-fg); font-size: 16px; line-height: 1.55; margin: 0 0 18px; max-width: 520px; }
.si-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.si-feats li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.si-feats b { display: block; font-size: 14px; }
.si-feats span:not(.land-ic) { font-size: 12.5px; color: var(--muted-fg); line-height: 1.4; }
.si-feats .land-ic { width: 36px; height: 36px; flex-shrink: 0; }
.land-ic.sm { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.land-ic.sm svg { width: 18px; height: 18px; }
.si-preview { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 6px 14px; box-shadow: 0 18px 40px -24px rgba(30,58,138,.35); max-width: 520px; }
.si-pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.si-pv-row + .si-pv-row { border-top: 1px solid var(--border); }
.si-pv-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.si-pv-row b { font-size: 14px; } .si-pv-row div span { font-size: 12.5px; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 10px; flex-shrink: 0; }
.si-dot.ok { background: #10b981; box-shadow: 0 0 0 5px rgba(16,185,129,.18); }
.si-trust { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-fg); margin: 16px 0 0; }
.si-trust svg { color: #16a34a; }
.si-card { padding: 28px; border-radius: 18px; box-shadow: 0 24px 60px -28px rgba(30,58,138,.45); border-top: 4px solid var(--primary); }
.si-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.si-logo img { height: 44px; width: auto; }
.si-card h1 { font-family: var(--font-display); font-size: 24px; text-align: center; margin: 0; }
.si-card .sub { text-align: center; color: var(--muted-fg); margin: 4px 0 18px; }
.si-in { position: relative; display: flex; align-items: stretch; }
.si-in > .input { flex: 1; min-width: 0; padding-left: 38px; height: 44px; font-size: 15px; }
.si-in.suffix > .input { padding-left: 38px; }
.si-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-fg); display: flex; pointer-events: none; z-index: 1; }
.si-ic svg { width: 17px; height: 17px; }
.si-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted-fg); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.si-eye:hover, .si-eye.on { color: var(--primary); background: var(--primary-5); }
.si-eye svg { width: 18px; height: 18px; }
.si-in #password { padding-right: 44px; }
.si-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; color: var(--muted-fg); font-size: 12px; }
.si-sep::before, .si-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.si-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted-fg); margin: 16px 0 0; text-align: center; }
.si-secure svg { color: #16a34a; flex-shrink: 0; }
@media (max-width: 900px) {
  .si { padding: 20px 0 36px; }
  .si-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .si-card { order: -1; padding: 22px 18px; }
  .si-preview { display: none; }
}
@media (max-width: 560px) { .si-feats { grid-template-columns: minmax(0, 1fr); } .si-brand h2 { font-size: 26px; } }
/* never wider than the screen */
img { max-width: 100%; }
.auth .logo { max-width: 100%; height: auto; max-height: 72px; }
.site .auth { min-height: auto; padding: 32px 16px 48px; }
.si-in.suffix > .si-ic { position: absolute; padding: 0; background: none; left: 12px; }
.si-in.suffix { height: 44px; }
.si-in.suffix > .input { height: 42px; }
.si-pv-row .chip { font-family: var(--font-sans); }
/* phones: wide tables scroll inside their box instead of stretching the page */
.page, .page .card, .page .grid > *, .page [class*="grid"] > *, .page .band > * { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
/* phones: the top bar's logo gives way to the icons; nothing in a page forces it wider */
.mobilebar { gap: 8px; }
.mobilebar > a:first-child { flex: 0 1 auto; min-width: 0; }
.mobilebar img { max-width: 100%; }
.mobilebar > .row { flex-shrink: 0; gap: 2px; }
.mobilebar .btn.icon, .mobilebar .tb-btn { width: 34px; min-width: 34px; padding: 0; }
.page div { min-width: 0; }
@media (max-width: 380px) { .mobilebar img { height: 32px; } .band .btn { width: 100%; justify-content: center; } }
.si-choose { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--primary-5); }
.si-co { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.si-co:hover { border-color: var(--primary); }
.si-co > span:nth-child(2) { flex: 1; font-weight: 600; }
.si-co svg { width: 16px; height: 16px; color: var(--muted-fg); }

/* task table (old app's columns) */
.tk-tbl th, .tk-tbl td { font-size: 12px; white-space: nowrap; vertical-align: top; }
.tk-tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.tk-tbl .tk-name { min-width: 160px; max-width: 260px; white-space: normal; font-weight: 600; }
.tk-tbl .tk-reason { min-width: 140px; max-width: 220px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tk-tbl .mono { font-variant-numeric: tabular-nums; }
.tk-tbl td.pos { color: #059669; font-weight: 600; }
.tk-tbl td.neg { color: #e11d48; font-weight: 600; }
.tk-tbl.no-money .tk-money { display: none; }
.tk-tbl tr.st-done { background: linear-gradient(90deg, hsl(142 76% 95%), transparent); box-shadow: inset 3px 0 0 #4ade80; }
.tk-tbl tr.st-in_progress { background: linear-gradient(90deg, hsl(48 96% 93%), transparent); box-shadow: inset 3px 0 0 #facc15; }
.tk-pct { display: inline-block; width: 44px; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.tk-pct span { display: block; height: 100%; background: #f87171; }
.tk-pct.warn span { background: #eab308; } .tk-pct.info span { background: #3b82f6; } .tk-pct.ok span { background: #22c55e; }
.tk-pct-n.bad { color: #ef4444; } .tk-pct-n.warn { color: #ca8a04; } .tk-pct-n.info { color: #2563eb; } .tk-pct-n.ok { color: #16a34a; }
.dot.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: tkpulse 1.4s infinite; }
@keyframes tkpulse { 50% { opacity: .3; } }

/* icons from any module: a 24-unit icon without its own size is 1em (charts set width="100%") */
svg[viewBox="0 0 24 24"]:not([width]) { width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }

/* ---------- dashboard (old app layout) ---------- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.dash-head h1 { margin: 0; }
.dash-head .lead { margin: 4px 0 0; }
.dash-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-filter select.input { width: 180px; height: 36px; }
.dash-filter input[type=date] { width: 150px; height: 36px; }
.dash-grid { grid-auto-flow: row dense; align-items: start; }
.dash-grid > .span2 { grid-column: 1 / -1; }
.dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid > * { min-width: 0; max-width: 100%; }
.dcard { padding: 0; overflow: hidden; }
.dh { padding: 10px 16px 0; }
.dh-t { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dh-t b { font-weight: 600; min-width: 0; }
.dh-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; flex-shrink: 0; }
.dh-ic svg { width: 14px !important; height: 14px !important; }
.dh-d { margin: 2px 0 0 32px; font-size: 12px; color: var(--muted-fg); }
.ews-f { margin-left: auto; width: 180px; height: 32px; font-size: 13px; flex-shrink: 0; }
.dh-t b { flex: 1 1 auto; }
.dh-t select.ews-f { flex: 0 0 180px; width: 180px; }
a.li, a.li:hover { text-decoration: none; color: inherit; }
a.li:hover { background: var(--muted, #f8fafc); }
.dbody { padding: 12px 16px 16px; }
.dempty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 8px; color: var(--muted-fg); font-size: 13px; }
.dempty svg { width: 30px !important; height: 30px !important; opacity: .35; }
.dempty p { margin: 0; }
.dchart { overflow-x: auto; }
.dchart svg { display: block; min-width: 100%; }
.dhero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; padding: 12px 14px; color: #fff; }
.dhero > b { font-size: 24px; line-height: 1; }
.dhero > span { font-size: 12px; opacity: .9; }
.dhero-r { margin-left: auto; display: flex; gap: 12px; font-size: 12px; }
.dhero-r span { display: inline-flex; align-items: center; gap: 5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.dot.g { background: #4ade80; } .dot.r { background: #f87171; }
.dsub { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.dgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid; }
.dt > span { display: inline-flex; font-size: 18px; }
.dt b { display: block; font-size: 18px; line-height: 1.1; }
.dt small { font-size: 11px; color: var(--muted-fg); }
.dt.wide { margin-top: 8px; }
.dt-green { background: #f0fdf4; border-color: #dcfce7; color: #15803d; }
.dt-red { background: #fef2f2; border-color: #fee2e2; color: #b91c1c; }
.dt-emerald { background: #ecfdf5; border-color: #d1fae5; color: #047857; }
.dt-slate { background: #f8fafc; border-color: #f1f5f9; color: #334155; }
.dt-amber { background: #fffbeb; border-color: #fef3c7; color: #b45309; }
.dt-violet { background: #f5f3ff; border-color: #ede9fe; color: #6d28d9; }
/* notifications */
.nt-scroll { max-height: 300px; overflow: hidden; }
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.nt .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nt-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.nt-m { flex: 1; min-width: 0; }
.nt-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-s { font-size: 12px; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-cat { display: inline-block; font-size: 10px; padding: 0 6px; border: 1px solid var(--border); border-radius: 99px; margin-right: 4px; color: var(--foreground); }
.nt-today { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: #6366f1; color: #fff; vertical-align: 1px; }
.nt-r { text-align: right; font-size: 12px; flex-shrink: 0; }
/* my hours / my tasks */
.dstack { display: flex; flex-direction: column; gap: 16px; }
.dgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg { border-radius: 14px; padding: 18px 20px; color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); }
.dg.g-em { background: linear-gradient(135deg, #10b981, #0d9488); }
.dg.g-bl { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.dg.g-am { background: linear-gradient(135deg, #f59e0b, #f97316); }
.dg-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.dg-h i { display: inline-flex; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.2); font-size: 16px; }
.dg-v { font-size: 34px; font-weight: 700; margin-top: 8px; line-height: 1.1; }
.dg-v small { font-size: 14px; font-weight: 500; margin-left: 4px; opacity: .85; }
.dg-f { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; }
.dks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dk { background: var(--card); border: 1px solid var(--border); border-top: 4px solid; border-radius: 12px; padding: 14px 16px; }
.dk-l { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); }
.dk-v { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; margin-top: 6px; }
.dk-v i { display: inline-flex; font-size: 22px; }
/* task time analysis */
.tta { display: flex; flex-direction: column; gap: 10px; }
.tta-h { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.tta-h b { min-width: 0; font-weight: 600; flex: 0 1 auto; }
.tta-h .chip { flex-shrink: 0; }
.tta-h .mono { flex-shrink: 0; }
.tta-b { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 4px; }
.tta-b span { display: block; height: 100%; border-radius: 99px; }
/* manager accordion */
.acc { display: flex; flex-direction: column; gap: 8px; }
.acc-i { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.acc-i > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.acc-i > summary::-webkit-details-marker { display: none; }
.acc-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-n small, .acc-m small { font-size: 11px; color: var(--muted-fg); }
.acc-m { display: flex; flex-direction: column; align-items: center; min-width: 64px; font-size: 13px; }
.acc-c { display: inline-flex; transition: transform .15s; }
.acc-i[open] .acc-c { transform: rotate(180deg); }
.acc-i .table-wrap { background: var(--card); }
.pill.ok { background: #d1fae5; color: #047857; } .pill.warn { background: #fef3c7; color: #b45309; } .pill.bad { background: #fee2e2; color: #b91c1c; }
/* pending reasons */
.ptr { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; }
.ptr-i { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ptr-i ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.ptr-i li { margin: 2px 0; }
/* task distribution */
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted-fg); }
.hb-t { min-width: 0; height: 22px; border-radius: 0 6px 6px 0; background: var(--muted, #f1f5f9); overflow: hidden; }
.hb-t span { display: block; height: 100%; border-radius: 0 6px 6px 0; }
.hb-n { font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .dgs { grid-template-columns: 1fr; } .dks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dash-head-r, .dash-filter { width: 100%; }
  .dash-filter select.input { flex: 1; width: auto; }
  .dash-filter input[type=date] { flex: 1; width: auto; min-width: 0; }
  .dh-t { flex-wrap: wrap; }
  .ews-f { width: 100%; margin-left: 0; }
  .dg-v { font-size: 28px; }
  .dhero-r { margin-left: 0; width: 100%; }
  .acc-m { min-width: 48px; }
  .hb { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dh-t select.ews-f { flex: 1 1 100%; width: 100%; }
  .tta-h { flex-wrap: wrap; row-gap: 2px; }
  .tta-h b { flex: 1 1 100%; order: -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tta-h .chip { margin-left: auto; }
  .dt b { font-size: 15px; }
  .dt { padding: 8px; gap: 8px; }
  .dt > span { font-size: 16px; }
  .acc-i > summary { flex-wrap: wrap; gap: 8px 12px; }
  .acc-n { flex: 1 1 calc(100% - 80px); }
  .acc-m { min-width: 0; align-items: flex-start; }
  .ptr-i .between { flex-wrap: wrap; gap: 6px; }
  .dhero > b { font-size: 20px; }
}

/* leave balance numbers -> year ledger popup */
.lnum { all: unset; cursor: pointer; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; color: var(--primary); text-decoration: underline dotted; text-underline-offset: 3px; }
.lnum:hover, .lnum:focus-visible { background: var(--primary-5, #eef2ff); outline: none; }
.lsums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.lsum { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.lsum small { display: block; font-size: 11px; color: var(--muted-fg); }
.lsum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.lsum.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.ltbl td, .ltbl th { font-size: 13px; vertical-align: top; }
.ltbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltbl td.pos { color: #047857; } .ltbl td.neg { color: #b91c1c; }
.ltbl tr.hi td { background: #fefce8; }
.ltbl tr.dim td { opacity: .55; }
.ltbl tfoot td { border-top: 2px solid var(--border); }
.lk { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border: 1px solid; border-radius: 99px; white-space: nowrap; }

/* task table filter row */
.tk-tbl tr.tk-frow th { padding: 4px 6px; background: var(--card); text-transform: none; letter-spacing: 0; }
.tk-tbl .tk-f { height: 28px; font-size: 12px; padding: 2px 8px; min-width: 70px; width: 100%; }
.tk-tbl select.tk-f { padding-right: 22px; }

/* ---------- salary loans ---------- */
.ln-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border: 1px solid; border-radius: 99px; white-space: nowrap; }
.ln-salary { margin: 4px 0 12px; }
.ln-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ln-offer { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ln-offer.no { opacity: .85; }
.ln-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.ln-facts > div { background: var(--muted, #f8fafc); border-radius: 8px; padding: 6px 8px; }
.ln-facts small { display: block; font-size: 11px; color: var(--muted-fg); }
.ln-facts b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ln-why { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted-fg); }
.ln-h { font-size: 17px; margin: 24px 0 10px; }
.ln-steps { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.ln-steps li { margin: 2px 0; }
.ln-est { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 4px 0 10px; }
.ln-consent { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.ln-consent ul { margin: 6px 0 8px; padding-left: 18px; }
.ln-counts .ln-pill { margin: 0 2px 4px 0; }

/* where an attendance time came from (machine / app / admin / request) */
.src-tag { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1.4; padding: 0 6px; border: 1px solid; border-radius: 99px; vertical-align: 1px; margin-left: 2px; }

/* lead location (field sales) */
.lead-loc .row { gap: 8px; margin-bottom: 6px; }
.lead-loc-map { height: 200px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); margin-top: 8px; overflow: hidden; }
.lead-map-big { height: min(62vh, 560px); border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e5e7eb); }
.lead-pin { background: none; border: 0; }
.lead-pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.lead-pin-link { color: #dc2626; vertical-align: -2px; }
.lead-pin-link svg { width: 14px; height: 14px; }
.lead-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; white-space: nowrap; }
.lead-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.seg { display: inline-flex; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; overflow: hidden; }
.seg button { background: #fff; border: 0; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: inherit; }
.seg button.on { background: var(--brand-soft, #eef2ff); color: var(--brand, #4f46e5); font-weight: 600; }
.seg button svg { width: 14px; height: 14px; }

/* team attendance grid: attendance, leave by type, holiday, weekly off */
.gchip { display: inline-block; min-width: 22px; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.5; text-align: center; border: 1px solid transparent; white-space: nowrap; }
.gchip.big { font-size: 12px; padding: 2px 8px; }
.g-p { background: #dcfce7; color: #166534; }
.g-ci { background: #dbeafe; color: #1d4ed8; }
.g-h { background: #fef3c7; color: #92400e; }
.g-a { background: #fee2e2; color: #b91c1c; }
.g-wo { background: #f1f5f9; color: #64748b; }
.g-ho { background: #ffedd5; color: #c2410c; }
.g-rq, .gchip.g-rq { background: #fef3c7; color: #92400e; }
.g-pl { background: #e0e7ff; color: #4338ca; }
.g-cl { background: #ccfbf1; color: #0f766e; }
.g-sl { background: #fae8ff; color: #a21caf; }
.g-co { background: #e0f2fe; color: #0369a1; }
.g-ml { background: #fce7f3; color: #be185d; }
.g-lwp { background: #f5f5f4; color: #57534e; border-color: #a8a29e; }
.g-pend { background: #fff !important; border: 1px dashed currentColor; }
.gkey { font-size: 11px; color: #475569; padding: 10px 14px; line-height: 2.1; }
.gkey .gchip { margin: 0 2px 0 8px; }
.gsum { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.gsum button { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 12px; display: flex; flex-direction: column; align-items: flex-start; min-width: 104px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.gsum button:hover { border-color: #94a3b8; }
.gsum button.on { background: #eef2ff; border-color: #4f46e5; box-shadow: 0 0 0 2px #c7d2fe; }
.gsum b { font-size: 18px; }
.gsum span { font-size: 11px; color: #64748b; display: inline-flex; align-items: center; gap: 5px; }
.gsum i.gchip { min-width: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; }
.ta-filters { margin: 12px 0; gap: 8px; }
.ta-filters .search { flex: 1; min-width: 220px; max-width: 420px; }
.gtbl th, .gtbl td { padding: 6px 3px; text-align: center; }
.gtbl .gname { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; padding-left: 12px; }
.gtbl thead .gname { background: inherit; }
.gday { font-size: 11px; min-width: 32px; }
.gday small { display: block; font-size: 9px; color: #94a3b8; font-weight: 500; }
.gday.hol, .gcell.hol { background: #fff7ed; }
.gday.today { color: #2563eb; }
.ta-filters .search .input { width: 100%; }

/* dashboard task-timer clock */
.tclock .tc-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.tc-ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.tc-ring svg { display: block; width: 220px; height: 220px; }
.tc-track { fill: none; stroke: #e2e8f0; stroke-width: 14; }
.tc-arc { fill: none; stroke: #2563eb; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.tc-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tc-time { font: 700 32px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: #1d4ed8; }
.tc-sub { margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.tc-amber .tc-arc { stroke: #f59e0b; } .tc-amber .tc-time { color: #b45309; }
.tc-red .tc-arc { stroke: #ef4444; } .tc-red .tc-time { color: #dc2626; }
.tc-idle .tc-time { color: #94a3b8; } .tc-idle .tc-track { stroke: #fee2e2; }
.tc-side { min-width: 0; }
.tc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #16a34a; display: flex; align-items: center; gap: 6px; }
.tc-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: tcpulse 1.4s ease-in-out infinite; }
.tc-label.tc-paused { color: #dc2626; }
@keyframes tcpulse { 50% { opacity: .25; } }
.tc-task { font-size: 22px; font-weight: 700; line-height: 1.25; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc-client { font-size: 13px; color: #475569; margin-top: 2px; }
.tc-meta { font-size: 13px; color: #64748b; margin-top: 8px; }
.tc-over { font-size: 13px; font-weight: 600; color: #dc2626; margin-top: 4px; }
.tc-actions { margin-top: 14px; gap: 8px; }
.tc-sq { display: inline-block; width: 10px; height: 10px; background: currentColor; border-radius: 2px; margin-right: 6px; }
.tc-starts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tc-start { display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 13px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; border-radius: 10px; padding: 8px 12px; cursor: pointer; min-width: 0; }
.tc-start:hover { background: #dcfce7; }
.tc-tri { width: 0; height: 0; border-left: 10px solid #16a34a; border-top: 6px solid transparent; border-bottom: 6px solid transparent; flex: none; }
.tc-day { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid #e2e8f0; padding-top: 14px; }
.tc-day div { display: flex; flex-direction: column; gap: 2px; }
.tc-day span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.tc-day b { font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .tclock .tc-wrap { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .tc-label, .tc-actions { justify-content: center; }
  .tc-day { grid-template-columns: repeat(2, 1fr); text-align: left; }
}
.tb-timer { gap: 6px; padding: 0 8px; }
.tb-timer.on { color: #059669; background: #ecfdf5; border-radius: 99px; }
.tb-timer-t { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }

/* tasks page: status cards split by creator, money card, tabs bar, summary (old app layout) */
.tkc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tkc-grid.no-money { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tkc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.tkc-h { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #fff; font-weight: 600; font-size: 13px; }
.tkc-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.22); font-size: 12px; }
.tkc-ico svg { width: 13px; height: 13px; }
.tkc-cells { display: grid; grid-template-columns: 1fr 1fr; }
.tkc-cell { background: #fff; border: 0; border-top: 1px solid #e2e8f0; padding: 8px 6px; text-align: center; font: inherit; display: flex; flex-direction: column; gap: 2px; align-items: center; min-width: 0; }
button.tkc-cell { cursor: pointer; }
.tkc-cell:nth-child(1), .tkc-cell:nth-child(2) { border-top: 0; }
.tkc-cell:nth-child(2) { border-left: 1px solid #e2e8f0; }
.tkc-cell:nth-child(3) { grid-column: 1 / -1; }
.tkc-cell span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; opacity: .75; }
.tkc-cell b { font-size: 18px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tkc-blue .tkc-h { background: linear-gradient(90deg, #3b82f6, #2563eb); } .tkc-blue .tkc-cell { color: #1d4ed8; } .tkc-blue button.tkc-cell:hover { background: #eff6ff; } .tkc-blue .tkc-cell.on { background: #dbeafe; box-shadow: inset 0 0 0 2px #60a5fa; }
.tkc-red .tkc-h { background: linear-gradient(90deg, #ef4444, #e11d48); } .tkc-red .tkc-cell { color: #b91c1c; } .tkc-red button.tkc-cell:hover { background: #fef2f2; } .tkc-red .tkc-cell.on { background: #fee2e2; box-shadow: inset 0 0 0 2px #f87171; }
.tkc-amber .tkc-h { background: linear-gradient(90deg, #fbbf24, #eab308); } .tkc-amber .tkc-cell { color: #b45309; } .tkc-amber button.tkc-cell:hover { background: #fffbeb; } .tkc-amber .tkc-cell.on { background: #fef3c7; box-shadow: inset 0 0 0 2px #fbbf24; }
.tkc-green .tkc-h { background: linear-gradient(90deg, #10b981, #16a34a); } .tkc-green .tkc-cell { color: #047857; } .tkc-green button.tkc-cell:hover { background: #ecfdf5; } .tkc-green .tkc-cell.on { background: #d1fae5; box-shadow: inset 0 0 0 2px #34d399; }
.tkc-violet .tkc-h { background: linear-gradient(90deg, #8b5cf6, #7c3aed); } .tkc-violet .tkc-cell { color: #6d28d9; }
.tkc-cell b.neg { color: #dc2626; }
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tk-ctl { gap: 8px; justify-content: flex-end; }
.tk-ctl .search { width: 200px; }
.tk-fd { min-width: 118px; padding-left: 6px; padding-right: 4px; }
.tks-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tks-m { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: #f8fafc; }
.tks-m span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.tks-m b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tks-m.indigo b { color: #4338ca; } .tks-m.green b { color: #047857; } .tks-m.amber b { color: #b45309; } .tks-m.red b { color: #b91c1c; }
#tk-summary .pos { color: #047857; } #tk-summary .neg { color: #dc2626; }
@media (max-width: 1100px) { .tkc-grid, .tkc-grid.no-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tk-ctl { justify-content: flex-start; } .tk-ctl .search { width: 100%; } }
.tk-ctl .search { flex: 0 0 200px; position: relative; }
.tk-ctl .search .input { width: 100%; }

/* quotation popup: sectioned form, card line items, live summary; detail view */
.modal.qmodal { max-width: 1120px; }
.modal.qmodal .modal-b { padding: 0; background: hsl(210 40% 97%); }
.qf { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px 20px 20px; align-items: start; }
.qf-main { display: grid; gap: 14px; min-width: 0; }
.qs { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; }
.qs h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; font-family: var(--font-display); }
.qn { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.qs-count { font-size: 12px; font-weight: 500; }
.qs .field { margin-bottom: 10px; }
.qs .field:last-child { margin-bottom: 0; }
.qg { display: grid; gap: 10px 12px; margin-bottom: 10px; align-items: start; }
.qg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qg .field { margin-bottom: 0; }
.field.err .input { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.qerr { color: #b91c1c; font-size: 12px; margin-top: 4px; }
.qi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 12px; background: hsl(210 40% 99%); margin-bottom: 10px; }
.qi:last-child { margin-bottom: 0; }
.qi-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.qi-n { font-size: 12px; color: var(--muted-fg); }
.qi-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 10px; }
.qi-grid .field { margin: 0; }
.qi-grid .c3 { grid-column: span 3; } .qi-grid .c4 { grid-column: span 4; } .qi-grid .c8 { grid-column: span 8; } .qi-grid .c12 { grid-column: span 12; }
.qi-amt { height: 38px; display: flex; align-items: center; justify-content: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 4px; }
.qi-more { margin-top: 8px; }
.qi-more summary { cursor: pointer; font-size: 12px; color: var(--primary); }
.qf-side { position: sticky; top: 0; }
.qsum { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.qsum-h { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.qsum-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.qsum-r .input { width: 110px; text-align: right; }
.qsum-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--primary-10); color: var(--primary); font-weight: 600; }
.qsum-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.qsum-words { margin-top: 8px; font-size: 12px; color: var(--muted-fg); line-height: 1.4; }
.qfoot-total { margin-right: auto; font-size: 13px; color: var(--muted-fg); }
.qfoot-total b { font-size: 17px; color: var(--foreground); margin-left: 4px; font-variant-numeric: tabular-nums; }
.qd { padding: 16px 20px 20px; display: grid; gap: 14px; }
.qd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.qd-client { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 6px; }
.qd-subject { color: var(--muted-fg); margin-top: 2px; }
.qd-total { text-align: right; }
.qd-total span { display: block; font-size: 12px; color: var(--muted-fg); }
.qd-total b { display: block; font-size: 30px; font-family: var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; }
.qd-total small { color: var(--muted-fg); }
.qd-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qd-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.qd-parties.one { grid-template-columns: minmax(0, 1fr); }
.qd-card.flush { padding: 0; overflow: hidden; }
.qd-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 4px; }
.qd-tbl th.r, .qd-tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.qd-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.qd-notes { min-width: 0; }
.qd-sum { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
@media (max-width: 860px) {
  .qf, .qd-bottom { grid-template-columns: minmax(0, 1fr); }
  .qf-side { position: static; }
  .qg2, .qg3, .qd-parties { grid-template-columns: minmax(0, 1fr); }
  .qi-grid .c3 { grid-column: span 6; } .qi-grid .c4 { grid-column: span 12; } .qi-grid .c8 { grid-column: span 12; }
  .qd-total { text-align: left; }
  .qd-tbl th, .qd-tbl td { padding: 8px 6px; font-size: 12px; }
  .qd-tbl td b { font-size: 13px; }
  .modal.qmodal .modal-f { flex-wrap: wrap; justify-content: stretch; }
  .modal.qmodal .modal-f .btn, .modal.qmodal .modal-f select { flex: 1 1 auto; }
  .modal.qmodal .modal-f .qfoot-total { flex: 1 0 100%; }
}

/* quotation popup colours: one accent per section, green for money, red for discount, amber for GST */
.badge.st-blue { background: hsl(214 95% 95%); color: hsl(221 83% 40%); border-color: hsl(214 90% 82%); }
.badge.st-violet { background: hsl(270 90% 96%); color: hsl(268 70% 42%); border-color: hsl(268 80% 86%); }
.badge.st-amber { background: hsl(45 100% 94%); color: hsl(32 90% 33%); border-color: hsl(43 90% 78%); }
.qs { --ac: hsl(226 71% 40%); --ac-bg: hsl(226 100% 97%); border-top: 3px solid var(--ac); }
.qs.qs-client { --ac: hsl(226 71% 45%); --ac-bg: hsl(226 100% 97%); }
.qs.qs-details { --ac: hsl(173 80% 32%); --ac-bg: hsl(173 70% 95%); }
.qs.qs-items { --ac: hsl(28 92% 48%); --ac-bg: hsl(32 100% 95%); }
.qs.qs-terms { --ac: hsl(268 65% 52%); --ac-bg: hsl(268 90% 97%); }
.qs h4 { margin: -14px -16px 14px; padding: 10px 16px; background: var(--ac-bg); color: var(--ac); border-radius: 9px 9px 0 0; }
.qs .qn { background: var(--ac); }
.qs .qs-count { color: var(--ac); opacity: .8; }
.qs .qi { border-left: 4px solid var(--ac); background: #fff; }
.qs .qi-n b { color: var(--ac); }
.qi-amt { color: hsl(152 70% 28%); }
.qi-more summary { color: var(--ac); }
.field.err label { color: #b91c1c; }
.qsum { border-top: 3px solid hsl(226 71% 45%); }
.qsum-h { margin: -14px -16px 8px; padding: 10px 16px; background: hsl(226 100% 97%); color: hsl(226 71% 40%); border-radius: 9px 9px 0 0; }
.qsum-r.neg, .qsum-r.neg span:last-child { color: hsl(0 72% 42%); }
.qsum-r.tax span:last-child, .qsum-r.tax span:first-child { color: hsl(32 90% 33%); }
.qsum-r.tax .input { color: var(--foreground); }
.qsum-total { background: hsl(152 70% 94%); color: hsl(161 80% 22%); border: 1px solid hsl(152 60% 80%); }
.qfoot-total b { color: hsl(161 80% 26%); }
.qd-total b { color: hsl(161 80% 26%); }
.qd-card.from { border-top: 3px solid hsl(226 71% 45%); }
.qd-card.from .qd-h { color: hsl(226 71% 45%); }
.qd-card.to { border-top: 3px solid hsl(173 80% 32%); }
.qd-card.to .qd-h { color: hsl(173 80% 30%); }
.qd-tbl thead th { background: hsl(28 100% 95%); color: hsl(28 80% 36%); }
.qd-tbl td.r b { color: hsl(161 80% 24%); }
.qd-sum { border-top: 3px solid hsl(152 60% 45%); }
.qd-client { color: hsl(222 47% 18%); }
.qd-h { color: hsl(268 55% 45%); }
.qd-card .qd-h { color: inherit; }

/* quotation share dialog */
.modal.qshare { max-width: 680px; }
.modal.qshare .modal-b { padding: 16px 20px 18px; background: #fff; }
.qsh-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: hsl(226 100% 97%); border: 1px solid hsl(226 80% 90%); margin-bottom: 14px; }
.qsh-tot { text-align: right; font-size: 22px; font-weight: 700; color: hsl(161 80% 26%); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.qsh-tot small { display: block; font-size: 11px; font-weight: 500; color: var(--muted-fg); font-family: var(--font-sans); }
.qsh-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.qsh-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px; border: 2px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted-fg); }
.qsh-tab small { font-weight: 400; font-size: 11px; opacity: .85; }
.qsh-tab.em.on { border-color: hsl(226 71% 45%); background: hsl(226 100% 97%); color: hsl(226 71% 38%); }
.qsh-tab.wa.on { border-color: hsl(142 70% 38%); background: hsl(142 70% 95%); color: hsl(142 75% 26%); }
.qsh-pane .field { margin-bottom: 12px; }
.qsh-att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: hsl(32 100% 95%); border: 1px solid hsl(32 90% 82%); color: hsl(28 80% 30%); font-size: 13px; margin-bottom: 12px; }
.qsh-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.qsh-phone { display: flex; align-items: center; gap: 8px; }
.qsh-phone span { padding: 0 10px; height: 38px; display: inline-flex; align-items: center; border-radius: 8px; background: hsl(142 70% 95%); color: hsl(142 75% 26%); font-weight: 600; border: 1px solid hsl(142 55% 80%); }
.qsh-link { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: hsl(142 70% 96%); border: 1px solid hsl(142 55% 85%); margin-bottom: 12px; font-size: 12px; }
.qsh-link svg { flex: none; color: hsl(142 75% 28%); }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa:hover { background: #178a45; }
@media (max-width: 560px) { .qsh-tabs { grid-template-columns: 1fr; } .qsh-tab small { display: none; } }
.qsh-wabtns { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .qsh-wabtns { flex: 1 1 100%; } .qsh-wabtns .btn { flex: 1 1 auto; } .modal.qshare .modal-f #sh-back { margin-right: 0; flex: 0 0 auto; } }

/* attendance page: status cards, filters, coloured request tables */
.rq .card-h { padding: 16px 18px 4px; }
.rq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 18px 12px; }
.rq-tools .search { flex: 1; min-width: 260px; max-width: 520px; }
.rq-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-fg); white-space: nowrap; }
.rq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 18px 14px; }
.rq-card { --c: #2563eb; --bg: #eff6ff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font: inherit; color: inherit; text-align: left; cursor: default; }
button.rq-card { cursor: pointer; }
button.rq-card:hover { border-color: var(--c); }
.rq-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--c); }
.rq-card .ic svg { width: 18px; height: 18px; }
.rq-card small { display: block; font-size: 12px; color: var(--muted-fg); }
.rq-card b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rq-card.on { border-color: var(--c); background: var(--bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.rq-card.pen { --c: #d97706; --bg: #fffbeb; } .rq-card.apr { --c: #16a34a; --bg: #f0fdf4; } .rq-card.rej { --c: #dc2626; --bg: #fef2f2; } .rq-card.hold { --c: #ea580c; --bg: #fff7ed; } .rq-card.tot { --c: #2563eb; --bg: #eff6ff; }
.rq-tbl { table-layout: fixed; width: 100%; }
.rq-tbl th { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; padding: 10px 10px; }
.rq-tbl th.h0 { background: #ede9fe; color: #5b21b6; } .rq-tbl th.h1 { background: #dbeafe; color: #1e40af; } .rq-tbl th.h2 { background: #e0e7ff; color: #3730a3; } .rq-tbl th.h3 { background: #e0f2fe; color: #075985; }
.rq-tbl td { padding: 10px; vertical-align: top; }
.rq-row.pending td { background: #fffbeb; } .rq-row.approved td { background: #f0fdf4; } .rq-row.rejected td { background: #fef2f2; } .rq-row.on_hold td { background: #fff7ed; }
.rq-type { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0; font-size: 12px; font-weight: 600; }
.rq-reason { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rq-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.rq-map-btn { background: none; border: 0; padding: 0; color: #2563eb; font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.rq-map-btn svg { width: 13px; height: 13px; }
.rq-map-btn:hover { text-decoration: underline; }
.rq-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.rq-st.pending { background: #fef3c7; color: #92400e; border-color: #fcd34d; } .rq-st.approved { background: #dcfce7; color: #166534; border-color: #86efac; } .rq-st.rejected { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; } .rq-st.on_hold { background: #ffedd5; color: #c2410c; border-color: #fdba74; } .rq-st.cancelled { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.rq-esc { font-size: 11px; color: #7c3aed; font-weight: 600; }
.rq-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn.rq-ok { background: #16a34a; border-color: #16a34a; color: #fff; } .btn.rq-ok:hover { background: #15803d; }
.btn.rq-no { background: #fff; border-color: #fca5a5; color: #b91c1c; } .btn.rq-no:hover { background: #fef2f2; }
.rq-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-fg); }
.rq-pager div { display: flex; align-items: center; gap: 10px; }
.rq-brief { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 2px; }
.rq-brief span { font-size: 12px; color: var(--muted-fg); } .rq-brief p { margin: 6px 0 0; }
.rq-map { height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
/* popups: stay open until closed on purpose */
.modal { position: relative; }
.modal.nudge { animation: modal-nudge .28s ease; }
@keyframes modal-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.modal-discard { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(255, 255, 255, .92); border-radius: 14px; }
.modal-discard b { font-size: 17px; font-family: var(--font-display); }
.modal-discard p { margin: 6px 0 16px; color: var(--muted-fg); }
.modal-bg[hidden] { display: none; }

/* budget page: planned and actual income / expenses */
.bp-fy { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bp .card-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; } .bp-dot.inc { background: #16a34a; } .bp-dot.exp { background: #dc2626; }
.bp-tbl { min-width: 1360px; }
.bp-tbl th, .bp-tbl td { padding: 6px 8px; font-size: 13px; }
.bp-tbl thead th { background: #f1f5f9; }
.bp-head { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 230px; max-width: 280px; font-weight: 600; }
.bp-tbl thead .bp-head { background: #f1f5f9; }
.bp-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.bp-cell { width: 82px; text-align: right; padding: 4px 6px; }
.bp-cell.saved { border-color: #16a34a; box-shadow: 0 0 0 2px #bbf7d0; }
.bp-grp th { background: #fef3c7; color: #92400e; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: left; position: static; }
.bp-auto td, .bp-auto th { background: #f5f3ff; } .bp-auto .bp-head { background: #f5f3ff; }
.bp-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #ede9fe; color: #6d28d9; margin-left: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.bp-total td, .bp-total th { background: #f0fdf4; font-weight: 700; border-top: 2px solid #bbf7d0; } .bp-total .bp-head { background: #f0fdf4; }
.bp-net td, .bp-net th { background: #eff6ff; font-weight: 700; border-top: 2px solid #bfdbfe; } .bp-net .bp-head { background: #eff6ff; }
.bp-net td.neg, .bp-net .neg { color: #b91c1c; }
.bp-memo td, .bp-memo th { background: #fafaf9; color: #57534e; font-style: italic; }
.bp-rt { background: #f8fafc; }
td.pos { color: #15803d; font-weight: 600; } td.neg { color: #b91c1c; font-weight: 600; }
td.prov { background: #fffbeb !important; font-style: italic; }
.bp-sub { display: block; font-style: normal; font-size: 11px; color: var(--muted-fg); }
.bp-mode { margin-bottom: 12px; }

.bp-tbl tbody th, .bp-tbl tfoot th { text-transform: none; letter-spacing: 0; color: var(--foreground); font-size: 13px; font-weight: 600; white-space: normal; }
.bp-tbl thead th { white-space: nowrap; }
.bp-head { width: 270px; min-width: 270px; left: 0; }
.bp-tbl td { white-space: nowrap; }
.bp-cell.input { height: 30px; min-height: 0; padding: 2px 8px; font-size: 13px; }
.bp-tbl tbody tr:not(.bp-grp) td { padding-top: 4px; padding-bottom: 4px; }
.bp-grp th { color: #92400e !important; font-weight: 700; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .05em !important; }
.bp-auto .bp-head .xs { font-weight: 400; color: var(--muted-fg); }
.bp-total.exp td, .bp-total.exp th { background: #fef2f2; border-top-color: #fecaca; } .bp-total.exp .bp-head { background: #fef2f2; }

/* earning page: CTC card, payslip, salary sheet */
.ec-bar { align-items: flex-end; gap: 14px; } .ec-bar-r { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ec-pick { min-width: 260px; } .ec-pick .input + .input { margin-top: 6px; }
.ec-doc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; max-width: 980px; }
.ec-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #1e3a8a; padding-bottom: 10px; margin-bottom: 12px; }
.ec-logo { height: 46px; } .ec-co { font-size: 20px; font-weight: 700; font-family: var(--font-display); color: #1e3a8a; } .ec-addr { font-size: 12px; color: #475569; white-space: pre-line; }
.ec-info { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #e2e8f0; }
.ec-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.ec-tbl th { background: #1e3a8a; color: #fff; padding: 7px 10px; text-align: left; font-size: 12px; text-transform: none; letter-spacing: 0; }
.ec-tbl td { padding: 6px 10px; border-bottom: 1px solid #e5e7eb; } .ec-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.ec-sec td { background: #e2e8f0; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ec-tot td { background: #f1f5f9; font-weight: 700; } .ec-grand td { background: #dbeafe; font-weight: 700; color: #1e3a8a; } .ec-net td { background: #dcfce7; font-weight: 700; color: #166534; }
.ec-foot { margin-top: 12px; font-size: 11px; color: #64748b; text-align: center; }
.ec-title { text-align: center; font-weight: 700; font-size: 16px; margin: 8px 0 2px; } .ec-sub { text-align: center; font-size: 12px; color: #475569; margin-bottom: 8px; }
.ec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .ec-kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted #e2e8f0; font-size: 13px; } .ec-kv span { color: #475569; }
.ec-net-tbl { max-width: 420px; margin-left: auto; } .ec-words { margin-top: 12px; font-size: 13px; }
.ec-prev { margin-top: 16px; max-width: 980px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px; padding: 14px 18px; } .ec-prev-h { display: flex; gap: 10px; align-items: center; }
.ec-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 600; } .ec-pill.warn { background: #fef3c7; color: #92400e; }
.ec-empty { text-align: center; padding: 40px 20px; } .ec-preview { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #eef2ff; font-size: 13px; }
.ec-embed .band { background: none; border: 0; box-shadow: none; padding: 0 0 8px; justify-content: flex-end; } .ec-embed .band > div:first-child { display: none; }
.ec-sheet { max-height: 70vh; } .ec-stbl th, .ec-stbl td { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
.ec-stbl thead th { background: #1e3a8a; color: #fff; text-transform: none; letter-spacing: 0; text-align: center; vertical-align: middle; position: sticky; top: 0; z-index: 2; }
.ec-stbl thead th.ec-g-e { background: #15803d; } .ec-stbl thead th.ec-g-d { background: #b91c1c; } .ec-stbl thead th.ec-g-n { background: #1e3a8a; }
.ec-stbl .sticky0 { position: sticky; left: 0; background: #fff; z-index: 1; width: 44px; min-width: 44px; max-width: 44px; text-align: center; } .ec-stbl .sticky1 { position: sticky; left: 44px; background: #fff; z-index: 1; min-width: 190px; text-align: left; box-shadow: 1px 0 0 #e2e8f0; }
.ec-stbl thead th.sticky1 { text-align: left; }
.ec-stbl tbody tr:hover td { background: #f5f7fd; } .ec-stbl tbody tr:hover td.ec-t { background: #e9eef6; } .ec-stbl tbody tr:hover td.ec-nt { background: #d1fae0; }
.ec-stbl tbody tr { cursor: default; }
.ec-stbl thead .sticky0, .ec-stbl thead .sticky1 { background: #1e3a8a; z-index: 3; }
.ec-stbl .ec-t { background: #f1f5f9; font-weight: 700; } .ec-stbl .ec-nt { background: #dcfce7; } .ec-stbl .ec-tf { background: #e2e8f0; font-weight: 700; }
.ec-off td { color: #94a3b8; background: #f8fafc; } .ec-off .sticky0, .ec-off .sticky1 { background: #f8fafc; }
@media (max-width: 720px) { .ec-cols { grid-template-columns: 1fr; } .ec-pick { min-width: 100%; } }
@media print { .ec-doc { border: 0; max-width: none; padding: 0; } .ec-stbl thead th { position: static; } }
.ec-pick { min-width: 0; } .ec-pick-in { display: flex; gap: 8px; } .ec-pick-in input { width: 150px; } .ec-pick-in select { min-width: 250px; }
@media (max-width: 720px) { .ec-pick-in { flex-direction: column; } .ec-pick-in input, .ec-pick-in select { width: 100%; } }

/* document generator */
.ec-gen { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 14px; align-items: start; }
.ec-form .field { margin-bottom: 10px; } .ec-gen-acts { gap: 8px; margin-top: 6px; }
.ec-letter { background: #fff; padding: 28px 34px; border: 1px solid var(--border); border-radius: 10px; min-height: 360px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.6; color: #111; }
.ec-letter.muted { font-family: inherit; display: grid; place-content: center; text-align: center; color: var(--muted-fg); }
@media (max-width: 1000px) { .ec-gen { grid-template-columns: minmax(0, 1fr); } }
.ec-form .ec-pick-in { flex-direction: column; } .ec-form .ec-pick-in input, .ec-form .ec-pick-in select { width: 100%; min-width: 0; }
.ec-form .grid.g2 .field { min-width: 0; }

/* asset management */
.as-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.as-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.as-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 16px; min-width: 130px; display: flex; flex-direction: column; }
.as-card b { font-size: 20px; } .as-card span { font-size: 12px; color: #64748b; }
.as-filters { margin: 12px 0; gap: 8px; }
.as-filters .search { flex: 1; min-width: 220px; max-width: 380px; }
.as-act { text-align: right; white-space: nowrap; } .as-act .btn { margin-left: 4px; }
.as-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.as-kv { display: flex; flex-direction: column; font-size: 13px; } .as-kv span { font-size: 11px; color: #64748b; } .as-kv b { font-weight: 600; }
.as-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ec-stbl tfoot td { background: #e2e8f0; font-weight: 700; }

/* ---------- Organisation hierarchy (/org) ---------- */
.og-filters { margin: 0 0 12px; gap: 10px; align-items: center; }
.og-filters .search { flex: 1; min-width: 220px; max-width: 420px; }
.og-card { padding: 10px 14px 14px; overflow-x: auto; }
.og-ul { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid #e2e8f0; }
.og-ul.root { padding-left: 0; border-left: 0; }
.og-li { position: relative; padding-top: 6px; }
.og-ul:not(.root) > .og-li::before { content: ""; position: absolute; left: -26px; top: 30px; width: 22px; border-top: 2px solid #e2e8f0; }
.og-node { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 7px 10px; min-width: 300px; max-width: 720px; }
.og-node:hover { border-color: #a5b4fc; }
.og-node.me { border-color: #4f46e5; background: #eef2ff; }
.og-node.hit { background: #fffbeb; border-color: #f59e0b; }
.og-node.focus { box-shadow: 0 0 0 3px #c7d2fe; }
.og-tog { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 1px solid #cbd5e1; background: #f8fafc; font-weight: 700; line-height: 1; cursor: pointer; color: #334155; }
.og-tog.none { border: 0; background: none; cursor: default; }
.og-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-weight: 700; font-size: 12px; display: grid; place-items: center; overflow: hidden; }
.og-av img { width: 100%; height: 100%; object-fit: cover; }
.og-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.og-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-who small { font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-tag { font-size: 10px; font-weight: 700; color: #4f46e5; background: #e0e7ff; border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.og-count { font-size: 11px; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.og-edit { white-space: nowrap; }
@media (max-width: 640px) { .og-node { min-width: 240px; } .og-count { display: none; } .og-ul { padding-left: 16px; } .og-ul:not(.root) > .og-li::before { left: -16px; width: 12px; } }
