/* =====================================================================
   HASBI ERP + CRM — Design system
   Brand: ink black + coral→crimson gradient (from the Hasbi logo)
   Type:  DM Sans (UI) · DM Mono (numbers, codes)
   ===================================================================== */

:root {
  --brand-1: #F37F7B;
  --brand-2: #DD1E47;
  --brand: #DD1E47;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --brand-soft: #FDECEF;
  --brand-ink: #B0123A;

  --ink: #15151A;
  --ink-2: #3D3D47;
  --muted: #74747F;
  --faint: #A3A3AD;
  --line: #E8E8EE;
  --line-2: #F0F0F4;
  --bg: #F5F5F8;
  --panel: #FFFFFF;
  --panel-2: #FAFAFC;
  --hover: #F3F3F7;

  --side-bg: #111114;
  --side-ink: #C9C9D1;
  --side-dim: #6E6E7A;
  --side-hover: #1D1D22;
  --side-active: #26262D;

  --success: #12A150; --success-bg: #E7F7EE;
  --warn: #C27803;    --warn-bg: #FEF5E2;
  --danger: #DC2640;  --danger-bg: #FDE9EC;
  --info: #2563EB;    --info-bg: #E8F0FE;
  --violet: #7C3AED;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(20, 20, 30, .05), 0 1px 1px rgba(20, 20, 30, .03);
  --sh-2: 0 6px 18px -6px rgba(20, 20, 30, .12), 0 2px 6px rgba(20, 20, 30, .05);
  --sh-3: 0 24px 60px -12px rgba(20, 20, 30, .28), 0 8px 20px -8px rgba(20, 20, 30, .14);
  --ring: 0 0 0 3px rgba(221, 30, 71, .18);

  --ease: cubic-bezier(.22, .9, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --side-w: 256px;
  --top-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand-soft: #3A1520;
  --brand-ink: #FF8A9E;
  --ink: #F1F1F5;
  --ink-2: #C8C8D2;
  --muted: #9494A0;
  --faint: #66666F;
  --line: #2A2A31;
  --line-2: #222228;
  --bg: #0E0E11;
  --panel: #17171B;
  --panel-2: #1B1B20;
  --hover: #212127;
  --side-bg: #0A0A0C;
  --side-hover: #17171B;
  --side-active: #1F1F25;
  --success-bg: #0F2E1D; --warn-bg: #33270C; --danger-bg: #3A1219; --info-bg: #12213F;
  --success: #34D27B; --warn: #F2B53A; --danger: #FF5A70; --info: #6EA0FF;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 6px 18px -6px rgba(0, 0, 0, .6);
  --sh-3: 0 24px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.25; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
code, .mono, kbd { font-family: 'DM Mono', ui-monospace, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); font-weight: 600; }
.text-warn { color: var(--warn); font-weight: 600; }
.text-success { color: var(--success); }
.r { text-align: right; }
.ic { width: 18px; height: 18px; stroke-width: 1.9; flex-shrink: 0; }
.ic.xs { width: 13px; height: 13px; }
::selection { background: rgba(221, 30, 71, .18); }
[hidden] { display: none !important; }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* =====================================================================
   App shell
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  background: var(--side-bg); color: var(--side-ink);
  display: flex; flex-direction: column;
  transition: width .32s var(--ease), transform .32s var(--ease);
}
.sidebar::after { /* subtle brand glow */
  content: ""; position: absolute; inset: auto 0 0 0; height: 240px; pointer-events: none;
  background: radial-gradient(120% 80% at 0% 100%, rgba(221, 30, 71, .18), transparent 65%);
}
.brand { display: flex; align-items: center; height: 76px; padding: 0 22px; flex-shrink: 0; }
.brand-full { height: 40px; width: auto; transition: opacity .2s; }
.brand-mini { display: none; width: 34px; height: 34px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; position: relative; z-index: 1; }
.nav-group { margin-top: 14px; }
.nav-title { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-dim); padding: 0 12px 6px; white-space: nowrap; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px;
  border-radius: 10px; color: var(--side-ink); font-weight: 500; white-space: nowrap;
  transition: background .18s, color .18s, transform .18s var(--ease);
}
.nav-link .ic { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { background: var(--side-hover); color: #fff; }
.nav-link:active { transform: scale(.98); }
.nav-link.active { background: var(--side-active); color: #fff; }
.nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand-grad); animation: growY .35s var(--ease);
}
.nav-link.active .ic { color: var(--brand-1); opacity: 1; }
.nav-collapse {
  display: flex; align-items: center; gap: 12px; margin: 8px 12px 14px; height: 38px; padding: 0 12px;
  background: transparent; border: 1px solid #222228; border-radius: 10px; color: var(--side-dim); position: relative; z-index: 1; white-space: nowrap;
}
.nav-collapse:hover { color: #fff; border-color: #33333b; }

.main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; transition: margin .32s var(--ease); }

/* collapsed (mini) sidebar */
.nav-mini .sidebar { width: 76px; }
.nav-mini .main { margin-left: 76px; }
.nav-mini .brand { justify-content: center; padding: 0; }
.nav-mini .brand-full { display: none; }
.nav-mini .brand-mini { display: block; }
.nav-mini .nav-title { visibility: hidden; height: 6px; padding: 0; }
.nav-mini .nav-link span, .nav-mini .nav-collapse span { display: none; }
.nav-mini .nav-link, .nav-mini .nav-collapse { justify-content: center; padding: 0; }
.nav-mini .nav-collapse .ic { transform: rotate(180deg); }
.nav-mini .nav-link:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--panel); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: var(--sh-2);
  animation: pop .18s var(--ease); z-index: 60;
}
:root[data-theme="dark"] .nav-mini .nav-link:hover::after { background: #fff; color: #111; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.scrolled .topbar { border-bottom-color: var(--line); }
.cmdk-trigger {
  display: flex; align-items: center; gap: 10px; height: 40px; width: min(440px, 100%); padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--faint); text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.cmdk-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-trigger:hover { border-color: #d6d6de; box-shadow: var(--sh-1); }
kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--hover); border: 1px solid var(--line); color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 8px 4px 4px; border-radius: 12px; text-align: left; }
.user-chip:hover { background: var(--hover); }
.user-chip b { display: block; font-size: 13px; line-height: 1.2; }
.user-chip small { display: block; font-size: 11.5px; color: var(--muted); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand-grad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); animation: pulse 2.4s infinite; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }

.content { flex: 1; padding: 22px 28px 40px; width: 100%; max-width: 1640px; margin: 0 auto; animation: pageIn .45s var(--ease); }
.foot { padding: 16px 28px 22px; color: var(--faint); font-size: 12px; text-align: center; }
.foot span { margin: 0 4px; }
.mobile-only { display: none; }
.sidebar-scrim { display: none; }

/* =====================================================================
   Page header, tabs, toolbar
   ===================================================================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-head h1 .ic { width: 24px; height: 24px; color: var(--brand); }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a:hover { color: var(--brand); }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { position: relative; padding: 10px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; display: flex; gap: 8px; align-items: center; transition: color .2s; background: none; border: 0; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--brand-grad); animation: growX .3s var(--ease); }
.count { font-size: 11px; font-weight: 700; background: var(--hover); color: var(--muted); padding: 1px 7px; border-radius: 20px; }
.tab.on .count { background: var(--brand-soft); color: var(--brand-ink); }

.seg { display: inline-flex; background: var(--hover); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; border: 0; background: none; transition: all .2s var(--ease); }
.seg .on { background: var(--panel); color: var(--ink); box-shadow: var(--sh-1); }
.seg .ic { width: 15px; height: 15px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; margin-bottom: 14px; }
.search-box { position: relative; flex: 1 1 240px; max-width: 360px; }
.search-box .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; }
.search-box input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; font: inherit; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.search-box input:focus { border-color: var(--brand); box-shadow: var(--ring); background: var(--panel); }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* =====================================================================
   Cards, KPIs
   ===================================================================== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ic { color: var(--brand); width: 17px; }
.card-head .link { font-size: 12.5px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 4px; }
.card-body { padding: 18px 20px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mb { margin-bottom: 16px; }

.kpi { position: relative; overflow: hidden; padding: 18px 20px; transition: transform .25s var(--ease), box-shadow .25s; animation: riseIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi .kpi-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi .kpi-ic.success { background: var(--success-bg); color: var(--success); }
.kpi .kpi-ic.info { background: var(--info-bg); color: var(--info); }
.kpi .kpi-ic.warn { background: var(--warn-bg); color: var(--warn); }
.kpi .kpi-val { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .kpi-val small { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.kpi .kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.trend.up { color: var(--success); background: var(--success-bg); }
.trend.down { color: var(--danger); background: var(--danger-bg); }
.kpi.hero { background: var(--side-bg); color: #fff; border-color: transparent; }
.kpi.hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: var(--brand-grad); opacity: .55; filter: blur(40px); animation: float 9s ease-in-out infinite; }
.kpi.hero > * { position: relative; }
.kpi.hero .kpi-label, .kpi.hero .kpi-foot, .kpi.hero .kpi-val small { color: #b9b9c4; }
.kpi.hero .kpi-ic { background: rgba(255, 255, 255, .1); color: #fff; }

.welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.welcome h1 { font-size: 26px; font-weight: 700; }
.welcome p { margin: 2px 0 0; color: var(--muted); }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 230px; }

.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.list-rows li:last-child { border-bottom: 0; }
.list-rows li:hover { background: var(--panel-2); }
.list-rows .lr-main { flex: 1; min-width: 0; }
.list-rows .lr-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-rows .lr-main small { color: var(--muted); font-size: 12.5px; }
.lr-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); flex-shrink: 0; }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.bar-row .bar { grid-column: 1 / -1; height: 7px; background: var(--hover); border-radius: 6px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--brand-grad)); transform-origin: left; animation: barIn 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, filter .2s;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { border-color: #d3d3dc; box-shadow: var(--sh-1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(221, 30, 71, .55); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 10px 22px -8px rgba(221, 30, 71, .6); }
.btn.dark { background: var(--ink); color: var(--panel); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.success { background: var(--success); color: #fff; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .7; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); transition: background .15s, color .15s, transform .15s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 18px; height: 18px; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; pointer-events: none; animation: ripple .6s var(--ease); }

/* =====================================================================
   Forms
   ===================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.third { grid-column: span 1; }
.field.bool { justify-content: flex-end; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--brand); font-style: normal; }
.help { color: var(--faint); font-size: 11.5px; }
.input, textarea.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--ink); font: inherit; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:hover { border-color: #d6d6de; }
:root[data-theme="dark"] .input:hover { border-color: #3a3a43; }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input.readonly { display: flex; align-items: center; background: var(--panel-2); color: var(--muted); }
.input[readonly] { background: var(--panel-2); color: var(--muted); }
.input.num { font-variant-numeric: tabular-nums; }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .18s, box-shadow .18s; overflow: hidden; }
.input-affix span { display: grid; place-items: center; padding: 0 10px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 700; border-right: 1px solid var(--line); }
.input-affix .input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-affix:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 17px; }
.input-icon .input { padding-left: 38px; height: 46px; border-radius: 12px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--faint); padding: 6px; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--panel); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; height: 40px; }
.switch input { display: none; }
.switch .slider { width: 40px; height: 23px; border-radius: 20px; background: var(--line); position: relative; transition: background .25s var(--ease); flex-shrink: 0; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch input:checked + .slider { background: var(--brand-grad); }
.switch input:checked + .slider::after { transform: translateX(17px); }
.switch-label { font-weight: 600; font-size: 13px; color: var(--ink-2); }

.check { display: inline-grid; place-items: center; cursor: pointer; }
.check input { display: none; }
.check span { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c9c9d3; background: var(--panel); display: grid; place-items: center; transition: all .18s var(--ease); }
.check input:checked + span { background: var(--brand-grad); border-color: transparent; }
.check input:checked + span::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); animation: pop .2s var(--spring); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 14px; }
.alert.danger { background: var(--danger-bg); color: var(--danger); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.success { background: var(--success-bg); color: var(--success); }

/* =====================================================================
   Custom select (enhances <select data-select>)
   ===================================================================== */
select[data-select] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cs { position: relative; min-width: 0; }
.cs-trigger {
  width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.cs-trigger:hover { border-color: #d6d6de; }
:root[data-theme="dark"] .cs-trigger:hover { border-color: #3a3a43; }
.cs-trigger .cs-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-trigger .cs-val.ph { color: var(--faint); }
.cs-trigger .cs-caret { width: 16px; color: var(--faint); transition: transform .25s var(--ease); }
.cs-clear { display: none; border: 0; background: none; padding: 2px; color: var(--faint); border-radius: 6px; }
.cs-clear:hover { color: var(--ink); background: var(--hover); }
.cs.has-value .cs-clear { display: grid; }
.cs.open .cs-trigger { border-color: var(--brand); box-shadow: var(--ring); }
.cs.open .cs-caret { transform: rotate(180deg); color: var(--brand); }
.cs.compact .cs-trigger { height: 38px; background: var(--panel-2); min-width: 150px; font-size: 13px; font-weight: 500; }
.cs.compact.has-value .cs-trigger { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); font-weight: 600; }
.cs.compact.has-value .cs-caret, .cs.compact.has-value .cs-clear { color: var(--brand-ink); }

.cs-pop {
  position: fixed; z-index: 120; min-width: 220px; max-width: 420px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); overflow: hidden;
  transform-origin: top center; animation: dropIn .22s var(--ease);
}
.cs-pop.up { transform-origin: bottom center; animation-name: dropUp; }
.cs-pop.closing { animation: dropOut .14s ease-in forwards; }
.cs-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.cs-search .ic { width: 15px; color: var(--faint); }
.cs-search input { flex: 1; border: 0; outline: none; background: none; font: inherit; color: var(--ink); }
.cs-list { max-height: 280px; overflow-y: auto; padding: 6px; }
.cs-group { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.cs-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.cs-opt .cs-text { flex: 1; min-width: 0; }
.cs-opt .cs-text small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-opt .cs-tick { width: 15px; color: var(--brand); opacity: 0; transform: scale(.4); transition: all .2s var(--spring); }
.cs-opt.active { background: var(--hover); }
.cs-opt.selected { font-weight: 600; color: var(--brand-ink); }
.cs-opt.selected .cs-tick { opacity: 1; transform: scale(1); }
.cs-opt mark { background: none; color: var(--brand); font-weight: 700; }
.cs-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.cs-loading { padding: 16px; display: flex; justify-content: center; }
.cs-loading::after { content: ""; width: 18px; height: 18px; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* =====================================================================
   Date picker (enhances <input data-datepicker>)
   ===================================================================== */
.dp-wrap { position: relative; }
.dp-wrap .input { padding-right: 38px; cursor: pointer; }
.dp-wrap .dp-ic { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--faint); pointer-events: none; transition: color .2s; }
.dp-wrap:focus-within .dp-ic { color: var(--brand); }
.dp {
  position: fixed; z-index: 120; width: 304px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--sh-3); padding: 14px; user-select: none;
  transform-origin: top left; animation: dropIn .24s var(--ease);
}
.dp.up { transform-origin: bottom left; animation-name: dropUp; }
.dp.closing { animation: dropOut .14s ease-in forwards; }
.dp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.dp-title { flex: 1; display: flex; gap: 4px; }
.dp-title button { border: 0; background: none; font-weight: 700; font-size: 15px; padding: 4px 8px; border-radius: 8px; color: var(--ink); }
.dp-title button:hover { background: var(--hover); color: var(--brand); }
.dp-nav { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; display: grid; place-items: center; color: var(--ink-2); }
.dp-nav:hover { background: var(--hover); }
.dp-nav .ic { width: 17px; }
.dp-dow, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.dp-dow span.we { color: var(--brand-1); }
.dp-days { animation: fadeSlide .28s var(--ease); }
.dp-days.prev { animation-name: fadeSlideR; }
.dp-day { position: relative; aspect-ratio: 1; border: 0; background: none; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; transition: background .12s, color .12s, transform .15s var(--ease); }
.dp-day:hover { background: var(--hover); }
.dp-day:active { transform: scale(.9); }
.dp-day.out { color: var(--faint); }
.dp-day.today { color: var(--brand); font-weight: 700; }
.dp-day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); }
.dp-day.sel { background: var(--brand-grad); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(221, 30, 71, .7); animation: pop .25s var(--spring); }
.dp-day.sel::after { background: #fff; }
.dp-day.in-range { background: var(--brand-soft); border-radius: 0; color: var(--brand-ink); }
.dp-day.range-start, .dp-day.range-end { background: var(--brand-grad); color: #fff; }
.dp-day.range-start { border-radius: 10px 0 0 10px; }
.dp-day.range-end { border-radius: 0 10px 10px 0; }
.dp-day.range-start.range-end { border-radius: 10px; }
.dp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; animation: fadeSlide .25s var(--ease); }
.dp-grid3 button { border: 0; background: none; padding: 14px 0; border-radius: 10px; font-weight: 600; color: var(--ink); }
.dp-grid3 button:hover { background: var(--hover); }
.dp-grid3 button.sel { background: var(--brand-grad); color: #fff; }
.dp-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.dp-foot button { border: 0; background: none; font-weight: 600; font-size: 12.5px; color: var(--brand); padding: 6px 10px; border-radius: 8px; }
.dp-foot button:hover { background: var(--brand-soft); }
.dp-foot .dp-clear { color: var(--muted); }
.dp.range { width: auto; display: flex; gap: 0; padding: 0; }
.dp-presets { width: 150px; border-right: 1px solid var(--line-2); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.dp-presets button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dp-presets button:hover { background: var(--hover); }
.dp-presets button.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.dp-cal { padding: 14px; width: 304px; }
.dp-range-label { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

.daterange-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; transition: all .18s; }
.daterange-btn .ic { width: 16px; color: var(--faint); }
.daterange-btn.has-value { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); font-weight: 600; }
.daterange-btn.has-value .ic { color: var(--brand-ink); }
.daterange-btn:hover { border-color: #d3d3dc; }

/* =====================================================================
   Tables
   ===================================================================== */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--panel-2); text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th a { display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--ink); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .15s; animation: rowIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
.table tbody tr:hover { background: var(--panel-2); }
.table tbody tr.checked { background: var(--brand-soft); }
.table tfoot td { background: var(--panel-2); font-weight: 600; border-bottom: 0; border-top: 1px solid var(--line); }
.table .chk { width: 44px; padding-right: 0; }
.table .act { width: 90px; text-align: right; }
.table.compact td, .table.compact th { padding: 9px 14px; }
.cell-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
a.cell-link:hover span, a.cell-link:hover { color: var(--brand); }
.cell-link-plain:hover { color: var(--brand); }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: .55; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }
.row-actions .icon-btn { width: 30px; height: 30px; }
.row-actions .ic { width: 16px; }
.bulk-bar { display: none; align-items: center; gap: 12px; padding: 10px 16px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; animation: slideDown .25s var(--ease); }
.bulk-bar.show { display: flex; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-2); }
.pager div { display: flex; gap: 4px; }
.pager a, .pager span.cur, .pager span.dis, .pager .gap { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-weight: 600; }
.pager a:hover { background: var(--hover); color: var(--ink); }
.pager .cur { background: var(--ink); color: var(--panel); }
.pager .dis { opacity: .35; }
.pager .ic { width: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-muted { background: var(--hover); color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cat-chip .ic { width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }

.avatar { --h: 340; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; font-size: 13px; font-weight: 700; color: hsl(var(--h) 55% 34%); background: hsl(var(--h) 75% 92%); letter-spacing: .02em; }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 80% 80%); background: hsl(var(--h) 35% 22%); }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sq { border-radius: 9px; }

/* =====================================================================
   Menus (dropdown actions)
   ===================================================================== */
.menu-wrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; min-width: 210px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .18s var(--ease), transform .22s var(--ease), visibility .18s;
}
.menu.left { right: auto; left: 0; transform-origin: top left; }
.menu.drop-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom right; }
.menu-wrap.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: left; transition: background .12s, color .12s, padding .15s var(--ease); }
.menu a:hover, .menu button:hover { background: var(--hover); color: var(--ink); padding-left: 13px; }
.menu .ic { width: 16px; color: var(--muted); }
.menu .danger, .menu .danger .ic { color: var(--danger); }
.menu-head { padding: 8px 10px; font-weight: 700; font-size: 13px; }
.menu-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; color: var(--muted); font-size: 13px; }
.notif { width: 320px; }
.notif-item { gap: 12px !important; }
.ni { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ni.warn { background: var(--warn-bg); } .ni.warn .ic { color: var(--warn); }
.ni.danger { background: var(--danger-bg); } .ni.danger .ic { color: var(--danger); }
.ni.info { background: var(--info-bg); } .ni.info .ic { color: var(--info); }
.quick-create { min-width: 230px; }

/* =====================================================================
   Drawer, modal, toasts, command palette
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer-scrim, .modal-scrim, .cmdk-scrim { position: absolute; inset: 0; background: rgba(10, 10, 14, .42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease); }
.drawer-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(640px, calc(100% - 20px)); background: var(--panel); border-radius: 20px; box-shadow: var(--sh-3); transform: translateX(calc(100% + 30px)); transition: transform .42s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel.wide { width: min(980px, calc(100% - 20px)); }
.drawer-form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--line-2); }
.drawer-head small { color: var(--brand); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.drawer-head h2 { font-size: 19px; margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-body .field { animation: riseIn .4s var(--ease) both; }
.drawer-body .field:nth-child(1) { animation-delay: .04s } .drawer-body .field:nth-child(2) { animation-delay: .07s } .drawer-body .field:nth-child(3) { animation-delay: .1s }
.drawer-body .field:nth-child(4) { animation-delay: .13s } .drawer-body .field:nth-child(5) { animation-delay: .16s } .drawer-body .field:nth-child(6) { animation-delay: .19s }
.drawer-body .field:nth-child(n+7) { animation-delay: .22s }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line-2); background: var(--panel-2); }
.drawer-loading { display: grid; place-items: center; height: 100%; }
.drawer-loading::after { content: ""; width: 28px; height: 28px; border: 3px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; pointer-events: none; }
.modal.open { pointer-events: auto; }
.modal.open .modal-scrim { opacity: 1; }
.modal-box { position: relative; width: min(420px, calc(100% - 32px)); background: var(--panel); border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--sh-3); opacity: 0; transform: scale(.92) translateY(10px); transition: all .3s var(--spring); }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.modal-icon .ic { width: 26px; height: 26px; }
.modal-box h3 { font-size: 18px; }
.modal-box p { color: var(--muted); margin: 6px 0 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: center; }
.modal-actions .btn { flex: 1; }

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 420px; padding: 12px 14px; background: var(--ink); color: var(--panel); border-radius: 14px; box-shadow: var(--sh-3); font-weight: 500; animation: toastIn .45s var(--spring); position: relative; overflow: hidden; }
:root[data-theme="dark"] .toast { background: #26262d; color: #f1f1f5; }
.toast .t-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--success); color: #fff; }
.toast.error .t-ic { background: var(--danger); }
.toast.info .t-ic { background: var(--info); }
.toast .t-ic .ic { width: 16px; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand-grad); animation: toastBar 4s linear forwards; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }

.cmdk { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.cmdk.open { pointer-events: auto; }
.cmdk.open .cmdk-scrim { opacity: 1; }
.cmdk-box { position: absolute; top: 12vh; left: 50%; width: min(640px, calc(100% - 24px)); transform: translate(-50%, -14px) scale(.97); opacity: 0; background: var(--panel); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; transition: all .28s var(--ease); }
.cmdk.open .cmdk-box { transform: translate(-50%, 0); opacity: 1; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--line-2); }
.cmdk-input .ic { color: var(--brand); width: 20px; height: 20px; }
.cmdk-input input { flex: 1; border: 0; outline: none; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.cmdk-results { max-height: 420px; overflow-y: auto; padding: 8px; }
.cmdk-sec { font-size: 10.5px; font-weight: 700; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; cursor: pointer; }
.cmdk-item .ci { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); flex-shrink: 0; }
.cmdk-item .ci .ic { width: 16px; }
.cmdk-item b { font-weight: 600; display: block; }
.cmdk-item small { color: var(--muted); font-size: 12px; }
.cmdk-item.active { background: var(--brand-soft); }
.cmdk-item.active .ci { background: var(--brand-grad); color: #fff; }

/* =====================================================================
   Kanban
   ===================================================================== */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; min-height: 60vh; }
.kcol { flex: 0 0 290px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); transition: background .2s, border-color .2s; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.kcol header b { font-size: 13.5px; }
.ksum { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.kdot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.kdot[data-status="Won"], .kdot[data-status="Completed"], .kdot[data-status="Delivered"], .kdot[data-status="Approved"], .kdot[data-status="Done"] { background: var(--success); }
.kdot[data-status="Lost"], .kdot[data-status="Rejected"], .kdot[data-status="Cancelled"] { background: var(--danger); }
.kdot[data-status="Negotiation"], .kdot[data-status="Documents Pending"], .kdot[data-status="Received"] { background: var(--warn); }
.kdot[data-status="Contacted"], .kdot[data-status="Qualified"], .kdot[data-status="Proposal Sent"], .kdot[data-status="Submitted"], .kdot[data-status="In Process"], .kdot[data-status="In Progress"] { background: var(--info); }
.kitems { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 80px; flex: 1; }
.kcol.drag-over { background: var(--brand-soft); border-color: var(--brand-1); }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; animation: riseIn .35s var(--ease) both; }
.kcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kcard.dragging { opacity: .45; transform: rotate(2deg) scale(1.02); }
.kcard .kt { font-weight: 600; font-size: 13.5px; }
.kcard .ks { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kcard .kf { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.kmeta { display: flex; align-items: center; gap: 6px; }
.kdate { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.kdate.late { color: var(--danger); }

/* =====================================================================
   Detail pages
   ===================================================================== */
.profile-head { display: flex; align-items: center; gap: 18px; padding: 22px; }
.profile-head h1 { font-size: 22px; }
.profile-head .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-top: 4px; font-size: 13px; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile-head .meta .ic { width: 14px; }
.profile-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stat-strip div { padding: 14px 22px; border-right: 1px solid var(--line-2); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.stat-strip b { font-size: 18px; font-variant-numeric: tabular-nums; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.dl-grid > div { padding: 11px 20px; border-bottom: 1px solid var(--line-2); }
.dl-grid dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.dl-grid dd { margin: 2px 0 0; font-weight: 500; word-break: break-word; }
.tab-panels > .tab-panel { display: none; animation: fadeUp .35s var(--ease); }
.tab-panels > .tab-panel.on { display: block; }

.timeline { list-style: none; margin: 0; padding: 18px 20px; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.timeline b { font-weight: 600; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 0; padding: 18px 20px; overflow-x: auto; }
.step { flex: 1; min-width: 92px; text-align: center; position: relative; font-size: 12px; font-weight: 600; color: var(--faint); }
.step::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); font-style: normal; }
.step.done { color: var(--ink-2); }
.step.done::before { background: var(--brand-grad); }
.step.done i { background: var(--brand-grad); border-color: transparent; color: #fff; }
.step.cur i { box-shadow: 0 0 0 5px var(--brand-soft); animation: pulse 2.4s infinite; }
.step i .ic { width: 14px; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 54px 20px; color: var(--muted); }
.empty-state > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.empty-state h3, .empty-state h2 { color: var(--ink); }
.empty-state p { margin: 0 0 8px; }
.empty-state.sm { padding: 26px; }
.empty-state.sm > .ic { width: 34px; height: 34px; padding: 8px; }
.empty-state.big { padding: 100px 20px; }

/* =====================================================================
   Work register (spreadsheet-style)
   ===================================================================== */
.reg-entry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 8px; padding: 14px; align-items: end; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, var(--brand-soft), transparent 140%); }
.reg-entry .field label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reg-entry .input, .reg-entry .cs-trigger { height: 38px; }
.reg-entry .btn { height: 38px; padding: 0 10px; width: 100%; }
.reg-entry .s1 { grid-column: span 1; } .reg-entry .s2 { grid-column: span 2; } .reg-entry .s3 { grid-column: span 3; } .reg-entry .s4 { grid-column: span 4; }
.reg-entry .input.num { padding: 0 8px; }
.reg-table td, .reg-table th { padding: 8px 12px; }
.reg-table td.num, .reg-table th.num { text-align: right; }
.reg-table .profit-pos { color: var(--success); font-weight: 700; }
.reg-table .profit-zero { color: var(--muted); }
.reg-table .bal-due { color: var(--danger); font-weight: 700; }
.reg-table tbody tr.flash { animation: flashRow 1.6s var(--ease); }
.wt { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 700; font-size: 11.5px; }
.wt-T { background: var(--info-bg); color: var(--info); }
.wt-O { background: var(--warn-bg); color: var(--warn); }
.reg-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.reg-summary .card { padding: 14px 16px; }
.reg-summary small { color: var(--muted); font-weight: 600; font-size: 12px; }
.reg-summary b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.reg-summary .card.accent { background: var(--side-bg); color: #fff; border-color: transparent; }
.reg-summary .card.accent small { color: #b9b9c4; }
.reg-summary .card.accent b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =====================================================================
   Invoice editor & document preview
   ===================================================================== */
.doc-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.items-table td { padding: 8px 8px; vertical-align: top; }
.items-table th { padding: 10px 8px; }
.items-table .input, .items-table .cs-trigger { height: 38px; }
.items-table .c-qty { width: 76px; }
.items-table .c-money { width: 120px; }
.items-table .c-vat { width: 84px; }
.items-table .c-total { width: 120px; text-align: right; font-weight: 700; padding-top: 18px; }
.items-table .c-del { width: 40px; }
.items-table tbody tr { animation: rowIn .3s var(--ease) both; }
.add-line { display: flex; gap: 8px; padding: 12px; border-top: 1px dashed var(--line); }
.totals { padding: 18px 20px; }
.totals .tr { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.totals .tr.grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 700; color: var(--ink); }
.totals .tr.grand span:last-child { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sticky-side { position: sticky; top: calc(var(--top-h) + 14px); display: flex; flex-direction: column; gap: 16px; }

.paper { background: #fff; color: #15151a; max-width: 860px; margin: 0 auto; border-radius: 16px; box-shadow: var(--sh-2); padding: 46px 50px; position: relative; overflow: hidden; }
.paper::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--brand-grad); }
.paper-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.paper-head img { height: 74px; }
.paper-co { text-align: right; font-size: 12.5px; color: #55555f; line-height: 1.6; }
.paper-co b { color: #15151a; font-size: 14px; }
.paper-title { display: flex; justify-content: space-between; align-items: flex-end; margin: 30px 0 22px; padding-bottom: 16px; border-bottom: 1px solid #ececf1; }
.paper-title h2 { font-size: 26px; letter-spacing: .02em; }
.paper-title h2 span { display: block; font-size: 15px; color: #DD1E47; font-weight: 600; }
.paper-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 18px; font-size: 13px; text-align: right; }
.paper-meta dt { color: #74747f; } .paper-meta dd { margin: 0; font-weight: 600; }
.paper-bill { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; font-size: 13px; }
.paper-bill h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #DD1E47; margin-bottom: 6px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 13px; }
.paper table th { background: #15151a; color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px; }
.paper table th:first-child { border-radius: 8px 0 0 8px; } .paper table th:last-child { border-radius: 0 8px 8px 0; }
.paper table td { padding: 10px 12px; border-bottom: 1px solid #ececf1; }
.paper .r { text-align: right; }
.paper-sum { display: flex; justify-content: space-between; gap: 30px; margin-top: 18px; }
.paper-sum .words { flex: 1; font-size: 12.5px; color: #55555f; }
.paper-sum .sum { width: 320px; font-size: 13px; }
.paper-sum .sum div { display: flex; justify-content: space-between; padding: 6px 0; }
.paper-sum .sum .grand { border-top: 2px solid #15151a; margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.paper-foot { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 12px; color: #55555f; white-space: pre-line; }
.paper-foot h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #15151a; margin-bottom: 6px; }
.paper-sign { display: flex; justify-content: space-between; margin-top: 46px; font-size: 12px; color: #74747f; }
.paper-sign div { border-top: 1px solid #c9c9d1; padding-top: 6px; width: 200px; text-align: center; }
.stamp { position: absolute; right: 60px; top: 210px; transform: rotate(-14deg); border: 3px solid; padding: 6px 16px; border-radius: 10px; font-weight: 800; font-size: 22px; letter-spacing: .12em; opacity: .7; }
.stamp.paid { color: #12A150; } .stamp.void { color: #DC2640; } .stamp.overdue { color: #DC2640; }

/* =====================================================================
   Calendar
   ===================================================================== */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 118px; padding: 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .15s; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--panel-2); }
.cal-cell.out { background: var(--panel-2); }
.cal-cell.out .cal-d { color: var(--faint); }
.cal-d { font-weight: 700; font-size: 13px; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.cal-cell.today .cal-d { background: var(--brand-grad); color: #fff; }
.cal-ev { display: block; margin-top: 4px; padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; transition: transform .15s; }
.cal-ev:hover { transform: translateX(2px); }
.cal-ev.task { background: var(--info-bg); color: var(--info); }
.cal-ev.doc { background: var(--warn-bg); color: var(--warn); }
.cal-ev.job { background: var(--brand-soft); color: var(--brand-ink); }
.cal-ev.lead { background: var(--success-bg); color: var(--success); }
.cal-ev.inv { background: var(--danger-bg); color: var(--danger); }
.cal-more { font-size: 11px; color: var(--muted); margin-top: 3px; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* =====================================================================
   Settings, services grid, reports
   ===================================================================== */
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); transition: background .15s; }
.settings-nav a:hover { background: var(--hover); }
.settings-nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.svc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.svc-cat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; animation: riseIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.svc-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.svc-cat.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.svc-cat .sc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex-shrink: 0; }
.svc-cat b { display: block; font-size: 13.5px; }
.svc-cat small { color: var(--muted); font-size: 12px; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.report-card { padding: 18px; display: flex; gap: 14px; transition: transform .25s var(--ease), box-shadow .25s; animation: riseIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.report-card .rc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.report-card b { display: block; font-size: 14.5px; }
.report-card small { color: var(--muted); }
.pl-table td { padding: 10px 20px; }
.pl-table .sec td { font-weight: 700; background: var(--panel-2); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.pl-table .tot td { font-weight: 700; border-top: 1px solid var(--line); }
.pl-table .net td { font-size: 17px; font-weight: 800; background: var(--brand-soft); color: var(--brand-ink); }

/* =====================================================================
   Auth
   ===================================================================== */
.auth { background: var(--panel); }
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: #0e0e11; color: #fff; display: flex; align-items: center; padding: 60px; }
.auth-art-inner { position: relative; z-index: 2; max-width: 460px; }
.auth-logo { width: 220px; margin-bottom: 46px; animation: fadeUp .7s var(--ease) both; }
.auth-art h2 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; animation: fadeUp .7s .1s var(--ease) both; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 14px; color: #c9c9d1; }
.auth-points li { display: flex; gap: 12px; align-items: center; animation: fadeUp .6s var(--ease) both; }
.auth-points li:nth-child(1) { animation-delay: .2s } .auth-points li:nth-child(2) { animation-delay: .28s } .auth-points li:nth-child(3) { animation-delay: .36s } .auth-points li:nth-child(4) { animation-delay: .44s }
.auth-points .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--brand-1); }
.auth-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; }
.auth-orbs span:nth-child(1) { width: 420px; height: 420px; right: -140px; top: -120px; background: #DD1E47; opacity: .45; animation: float 12s ease-in-out infinite; }
.auth-orbs span:nth-child(2) { width: 320px; height: 320px; left: -100px; bottom: -120px; background: #F37F7B; opacity: .3; animation: float 15s ease-in-out infinite reverse; }
.auth-orbs span:nth-child(3) { width: 200px; height: 200px; right: 20%; bottom: 18%; background: #7C3AED; opacity: .18; animation: float 10s ease-in-out infinite; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; animation: fadeUp .6s var(--ease) both; }
.auth-card h1 { font-size: 28px; }
.auth-card .sub { margin: -10px 0 6px; color: var(--muted); }
.auth-logo-sm { display: none; height: 54px; align-self: flex-start; }
.auth-foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 10px; }
[data-theme="dark"] .auth-logo-sm { content: url(../img/logo-light.svg); }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dropUp { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dropOut { to { opacity: 0; transform: translateY(-4px) scale(.97); } }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeSlideR { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(221, 30, 71, .35); } 50% { box-shadow: 0 0 0 6px rgba(221, 30, 71, 0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 18px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }
@keyframes flashRow { 0% { background: var(--success-bg); } 100% { background: transparent; } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.shake { animation: shake .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .reg-entry { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .reg-entry .s1, .reg-entry .s2 { grid-column: span 2; } .reg-entry .s3, .reg-entry .s4 { grid-column: span 3; }
  .doc-editor { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
}
@media (max-width: 1024px) {
  .g-main, .g-3 { grid-template-columns: 1fr; }
  .reg-summary { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --side-w: 270px; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-3); }
  .nav-open .sidebar { transform: none; }
  .nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; animation: fadeUp .2s; }
  .main, .nav-mini .main { margin-left: 0; }
  .nav-mini .sidebar { width: var(--side-w); }
  .mobile-only { display: inline-grid; }
  .nav-collapse { display: none; }
  .topbar { padding: 0 14px; }
  .content { padding: 16px 14px 30px; }
  .cmdk-trigger kbd, .hide-sm { display: none; }
  .form-grid, .dl-grid, .g-2 { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-logo-sm { display: block; }
  .reg-entry { grid-template-columns: 1fr 1fr; }
  .reg-entry .s1, .reg-entry .s2 { grid-column: span 1; } .reg-entry .s3, .reg-entry .s4 { grid-column: 1 / -1; }
  .reg-summary { grid-template-columns: 1fr 1fr; }
  .paper { padding: 26px 20px; }
  .paper-bill, .paper-foot { grid-template-columns: 1fr; }
  .paper-sum { flex-direction: column; }
  .paper-sum .sum { width: 100%; }
  .profile-head { flex-wrap: wrap; }
  .profile-head .actions { margin-left: 0; }
  .cal-cell { min-height: 80px; padding: 4px; }
  .cal-ev { font-size: 10px; padding: 2px 4px; }
  .dp.range { flex-direction: column; }
  .dp-presets { width: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .toolbar-count { width: 100%; margin: 0; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 20px; }
  .kpi .kpi-val { font-size: 23px; }
}

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .sidebar, .topbar, .foot, .no-print, .toasts, .page-head .head-actions { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; animation: none; }
  .paper { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .paper::before { display: none; }
  .card { box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* number inputs without spinners in dense grids */
.items-table input[type=number], .reg-entry input[type=number], .totals input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.items-table input[type=number]::-webkit-inner-spin-button, .reg-entry input[type=number]::-webkit-inner-spin-button, .totals input[type=number]::-webkit-inner-spin-button,
.items-table input[type=number]::-webkit-outer-spin-button, .reg-entry input[type=number]::-webkit-outer-spin-button, .totals input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cs-trigger:focus-visible, .daterange-btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.btn:focus-visible, .icon-btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
