/* Design system. Brand tokens (--brand, --brand-strong, --brand-soft, --brand-softer,
   --on-brand) are injected per company by the server, so every tenant is themed. */
:root {
  --bg: #f4f5f7; --surface: #fff; --surface-2: #f8fafc; --line: #e4e7ec; --line-2: #d0d5dd;
  --text: #101828; --text-2: #475467; --text-3: #667085; --muted: #98a2b3;
  --ok: #067647; --ok-bg: #dcfae6; --bad: #b42318; --bad-bg: #fee4e2; --warn: #b54708; --warn-bg: #fef0c7;
  --info: #175cd3; --info-bg: #d1e9ff;
  --P: #15803d; --P-bg: #dcfce7; --A: #b91c1c; --A-bg: #fee2e2; --HD: #b45309; --HD-bg: #fef3c7;
  --PL: #6d28d9; --PL-bg: #ede9fe; --WO: #475569; --WO-bg: #e2e8f0; --HO: #0e7490; --HO-bg: #cffafe;
  --NM: #94a3b8; --NM-bg: #f1f5f9;
  --r: 14px; --r-sm: 10px; --r-xs: 7px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18), 0 4px 8px -4px rgba(16, 24, 40, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Telugu", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.num, .tbl td.num, .tbl th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pos { color: var(--ok); } .neg { color: var(--bad); } .warn-text { color: var(--warn); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- loading */
.splash, .loading { display: grid; place-items: center; min-height: 40vh; }
.splash { min-height: 100vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); padding: 4px 8px 18px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { max-height: 42px; max-width: 120px; object-fit: contain; flex: none; }
.sidebar .brand:has(.brand-logo) { flex-direction: column; align-items: flex-start; gap: 8px; }
.sidebar .brand .brand-logo { max-width: 190px; max-height: 52px; }
.brand-initials { width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center; font-weight: 750; font-size: 15px; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--text-3); font-size: 12.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2);
  font-weight: 550; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; position: relative; }
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.is-active { background: var(--brand-softer); color: var(--brand-strong); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item.is-active .i { color: var(--brand-strong); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--text); border: 1px solid var(--line); }
.user-chip:hover { text-decoration: none; background: var(--surface-2); }
.user-chip.is-active { border-color: var(--brand); }
.user-chip span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-chip b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { font-size: 12px; color: var(--text-3); }
.powered { font-size: 11.5px; color: var(--muted); text-align: center; padding-top: 4px; }
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.view { flex: 1; outline: none; }
.page { max-width: 1160px; margin: 0 auto; padding: 26px 28px 48px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 28px; font-size: 14px; border-bottom: 1px solid var(--line); }
.banner .btn { margin-left: auto; }
.banner-acting { background: #111827; color: #fff; border: 0; }
.banner-acting .btn { background: #fff; color: #111827; border-color: #fff; }
.banner-warn { background: var(--warn-bg); color: #7a2e0e; }
.banner-info { background: var(--brand-softer); color: var(--text-2); }
.bottomnav { display: none; }

@media (max-width: 899px) {
  body { font-size: 15px; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 15;
    height: 58px; padding: 0 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
  .brand-sm { padding: 0; gap: 10px; }
  .brand-sm b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
  .brand-sm .brand-logo { max-height: 34px; max-width: 96px; }
  .brand-sm .brand-initials { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .page { padding: 18px 16px 32px; }
  .banner { padding: 10px 16px; flex-wrap: wrap; }
  .bottomnav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
    color: var(--text-3); font-size: 11.5px; font-weight: 600; border-radius: 10px; cursor: pointer; }
  .tab:hover { text-decoration: none; }
  .tab .i { width: 23px; height: 23px; }
  .tab.is-active { color: var(--brand-strong); }
  .tab.is-active .i { background: var(--brand-soft); border-radius: 999px; padding: 2px 14px; box-sizing: content-box; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 900px) { .show-mobile { display: none !important; } }

/* ---------------------------------------------------------------- page structure */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--text-3); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-weight: 550; font-size: 14px; margin-bottom: 10px; }
.back-link .i { width: 18px; height: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head .sub { color: var(--text-3); font-size: 13.5px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .grid-main, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; margin: 4px 0 10px; }
.divider { height: 1px; background: var(--line); margin: 6px 0; border: 0; }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; font-weight: 550; }
.kpi-label .i { width: 18px; height: 18px; }
.kpi-value { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.kpi-foot { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.kpi-brand { background: linear-gradient(135deg, var(--brand-strong), color-mix(in srgb, var(--brand-strong) 70%, #000)); color: #fff; border-color: transparent; }
.kpi-brand .kpi-label, .kpi-brand .kpi-foot, .kpi-brand .kpi-value small { color: rgba(255, 255, 255, .82); }
@media (max-width: 680px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi-value { font-size: 21px; }
}
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--NM-bg); gap: 2px; }
.bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand-strong) 88%, #000); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #912018; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-softer); border-color: var(--brand-soft); color: var(--brand-strong); }
.btn-soft:hover { background: var(--brand-soft); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-actions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-actions::-webkit-scrollbar { display: none; }
.chip-actions .btn { flex: none; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child, .label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.pw { display: block; }
.field .help, .help { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, .search input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 78px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field input:disabled { background: var(--surface-2); color: var(--text-3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 14px; }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.affix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.affix input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.affix .pre, .affix .suf { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--text-3); font-weight: 600; font-size: 14px; white-space: nowrap; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 550; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--brand-strong); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.seg-block { display: flex; }
.seg-block label { flex: 1; text-align: center; }
.choice-cards { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 1px var(--brand); }
.choice input { margin-top: 3px; accent-color: var(--brand-strong); }
.choice b { display: block; font-size: 14.5px; }
.choice small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-strong); flex: none; }
.check small { display: block; color: var(--text-3); font-size: 13px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row b { display: block; font-size: 14.5px; font-weight: 600; }
.switch-row small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: var(--brand-strong); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.daypicks { display: flex; gap: 6px; flex-wrap: wrap; }
.daypicks label { position: relative; }
.daypicks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.daypicks span { display: grid; place-items: center; min-width: 46px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--text-2); }
.daypicks input:checked + span { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.daypicks input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.pw { position: relative; }
.pw input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 4px; top: 4px; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .i { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.search input { padding-left: 40px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------------------------------------------------------- tabs, badges, lists */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--text-3); font-weight: 600; font-size: 14.5px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
  background: var(--NM-bg); color: var(--text-2); }
.badge .i { width: 14px; height: 14px; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-warn { background: var(--warn-bg); color: var(--warn); } .b-info { background: var(--info-bg); color: var(--info); }
.b-brand { background: var(--brand-soft); color: var(--brand-strong); }
.st { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; font-weight: 700; font-size: 12.5px; }
.st-P { background: var(--P-bg); color: var(--P); } .st-A { background: var(--A-bg); color: var(--A); }
.st-HD { background: var(--HD-bg); color: var(--HD); } .st-PL { background: var(--PL-bg); color: var(--PL); }
.st-WO { background: var(--WO-bg); color: var(--WO); } .st-HO { background: var(--HO-bg); color: var(--HO); }
.st-NM { background: var(--NM-bg); color: var(--NM); }
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--text); min-width: 0; }
.item:last-child { border-bottom: 0; }
a.item:hover { background: var(--surface-2); text-decoration: none; }
.item-body { flex: 1; min-width: 0; }
.item-title { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-side { text-align: right; flex: none; }
.item-side .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.avatar { --h: 220; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; font-weight: 700; font-size: 14px;
  background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 30%); letter-spacing: .02em; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty h3 { margin: 10px 0 6px; font-size: 17px; }
.empty .btn { margin-top: 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-softer); color: var(--brand-strong); }
.empty-icon .i { width: 26px; height: 26px; }
.callout { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 12px; background: var(--brand-softer); border: 1px solid var(--brand-soft); margin-bottom: 14px; }
.callout .i { color: var(--brand-strong); }
.callout .btn { margin-left: auto; }
.callout-warn { background: var(--warn-bg); border-color: #fedf89; }
.callout-warn .i { color: var(--warn); }
@media (max-width: 560px) { .callout { flex-wrap: wrap; } .callout .btn { margin-left: 0; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--text-2); }
.kv b, .kv strong { font-variant-numeric: tabular-nums; }
.kv.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 4px; padding-top: 12px; font-size: 16px; }

/* ---------------------------------------------------------------- attendance marking */
.period-nav { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.period-nav .label { min-width: 150px; text-align: center; font-weight: 650; padding: 0 6px; position: relative; }
.period-nav input[type=date] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.summary-chips .sc { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.summary-chips .sc b { font-variant-numeric: tabular-nums; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.att-row:last-child { border-bottom: 0; }
.att-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.att-who .item-sub .badge { height: 20px; font-size: 11.5px; padding: 0 7px; margin-left: 4px; }
.att-btns { display: flex; gap: 6px; }
.att-btn { min-width: 44px; height: 38px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.att-btn:hover:not(:disabled) { border-color: var(--text-3); }
.att-btn.ghost { border-style: dashed; }
.att-btn.on { color: #fff; }
.att-btn[data-s=P].on { background: var(--P); border-color: var(--P); } .att-btn[data-s=A].on { background: var(--A); border-color: var(--A); }
.att-btn[data-s=HD].on { background: var(--HD); border-color: var(--HD); } .att-btn[data-s=PL].on { background: var(--PL); border-color: var(--PL); }
.att-btn[data-s=WO].on { background: var(--WO); border-color: var(--WO); } .att-btn[data-s=HO].on { background: var(--HO); border-color: var(--HO); }
.att-btn.auto { background: var(--WO-bg); border-color: var(--WO-bg); color: var(--WO); }
.att-btn:disabled { cursor: not-allowed; opacity: .55; }
.att-extra { display: flex; gap: 6px; align-items: center; }
.ot { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; height: 38px; overflow: hidden; }
.ot button { width: 32px; height: 100%; border: 0; background: var(--surface-2); cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
.ot button:hover:not(:disabled) { background: var(--line); }
.ot button .i { width: 16px; height: 16px; }
.ot output { min-width: 66px; text-align: center; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ot output small { color: var(--text-3); font-weight: 600; }
.ot.has output { color: var(--brand-strong); }
.saving { opacity: .6; pointer-events: none; }
@media (max-width: 760px) {
  .att-row { grid-template-columns: 1fr auto; grid-template-areas: "who more" "btns btns" "ot ot"; gap: 10px; padding: 13px 14px; }
  .att-who { grid-area: who; } .att-btns { grid-area: btns; } .att-extra { grid-area: more; }
  .att-btns .att-btn { flex: 1; min-width: 0; }
  .att-extra .ot-wrap { display: none; }
  .att-ot-mobile { grid-area: ot; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--text-2); }
}
@media (min-width: 761px) { .att-ot-mobile { display: none; } }

/* ---------------------------------------------------------------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 650; color: var(--text-3); padding-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.cal-day { position: relative; aspect-ratio: 1 / .92; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; cursor: pointer; padding: 2px; color: var(--text); min-height: 44px; }
.cal-day:hover { border-color: var(--text-3); }
.cal-day .d { font-size: 13px; font-weight: 650; line-height: 1; }
.cal-day .s { font-size: 11px; font-weight: 750; line-height: 1.1; }
.cal-day .ot-dot { position: absolute; top: 4px; right: 5px; font-size: 9.5px; font-weight: 750; color: var(--brand-strong); }
.cal-day.blank { visibility: hidden; }
.cal-day.inactive, .cal-day.future { background: var(--surface-2); color: var(--muted); cursor: default; border-style: dashed; }
.cal-day.today { box-shadow: 0 0 0 2px var(--brand); }
.cal-day.st-P { background: var(--P-bg); border-color: transparent; color: var(--P); }
.cal-day.st-A { background: var(--A-bg); border-color: transparent; color: var(--A); }
.cal-day.st-HD { background: var(--HD-bg); border-color: transparent; color: var(--HD); }
.cal-day.st-PL { background: var(--PL-bg); border-color: transparent; color: var(--PL); }
.cal-day.st-WO { background: var(--WO-bg); border-color: transparent; color: var(--WO); }
.cal-day.st-HO { background: var(--HO-bg); border-color: transparent; color: var(--HO); }
.cal-day.st-NM { background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); }
.cal-day.auto { opacity: .8; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 11px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .total td { font-weight: 750; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tbl th.sticky-col { background: var(--surface-2); }
.reg { font-size: 12.5px; }
.reg th, .reg td { padding: 6px 4px; text-align: center; }
.reg th.sticky-col, .reg td.sticky-col { text-align: left; padding-left: 14px; min-width: 170px; }
.reg .rc { display: inline-grid; place-items: center; width: 26px; height: 24px; border-radius: 6px; font-weight: 750; font-size: 11px; }
.reg td.wk { background: #fafbfc; }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-cell .avatar { width: 32px; height: 32px; font-size: 12px; }
.who-cell b { display: block; font-weight: 650; white-space: nowrap; }
.who-cell small { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.pay-cards { display: none; }
@media (max-width: 899px) {
  .pay-table { display: none; }
  .pay-cards { display: flex; flex-direction: column; }
}
.pay-card { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pay-card:last-child { border-bottom: 0; }
.pay-card .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pay-card .nums div { background: var(--surface-2); border-radius: 9px; padding: 8px 10px; }
.pay-card .nums small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.pay-card .nums b { font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---------------------------------------------------------------- staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.staff-card { display: flex; gap: 12px; padding: 15px 16px; color: var(--text); align-items: flex-start; }
.staff-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.staff-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile .who { flex: 1; min-width: 200px; }
.profile h1 { font-size: 21px; }
.profile .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mini-kpis div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; text-align: center; }
.mini-kpis small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 650; }
.mini-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .mini-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pb-group { border-bottom: 1px solid var(--line); }
.pb-group:last-child { border-bottom: 0; }
.pb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface-2); font-weight: 650; flex-wrap: wrap; }
.pb-head small { color: var(--text-3); font-weight: 550; }
.pb-line { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pb-line .what { flex: 1; min-width: 0; }
.pb-line .what small { display: block; color: var(--text-3); font-size: 12.5px; }
.pb-line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); flex: none; }
.pb-ico .i { width: 17px; height: 17px; }
.pb-ico.in { background: var(--ok-bg); color: var(--ok); }
.pb-ico.out { background: var(--warn-bg); color: var(--warn); }
.pb-ico.paid { background: var(--info-bg); color: var(--info); }

/* ---------------------------------------------------------------- dialogs & toasts */
dialog.modal { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
dialog.modal-wide { max-width: min(760px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); }
.modal-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px 20px; }
.modal-body { padding: 4px 20px 16px; overflow-y: auto; display: grid; gap: 14px; }
.modal-card > .form-error { margin: 0 20px 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.confirm-text { color: var(--text-2); }
@media (max-width: 560px) {
  dialog.modal { max-width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .modal-card { border-radius: 20px 20px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-foot .btn { flex: 1; }
}
.more-list { display: flex; flex-direction: column; margin: 0 -8px; }
.more-item { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 10px; color: var(--text); font-weight: 600; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; font-size: 15px; }
.more-item span { flex: 1; }
.more-item:hover { background: var(--surface-2); text-decoration: none; }
.more-item.danger { color: var(--bad); }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #101828; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; max-width: 90vw; }
.toast-bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); }
@media (max-width: 899px) { #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- login & setup */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 85%, #fff) 0%, var(--brand-strong) 45%, color-mix(in srgb, var(--brand-strong) 55%, #000) 100%); }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); }
.auth-art .brand-initials { background: #fff; color: var(--brand-strong); width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
.auth-art .brand-logo { background: #fff; padding: 8px 12px; border-radius: 12px; max-height: 64px; max-width: 220px; }
.auth-art h1 { font-size: 38px; line-height: 1.1; margin: 26px 0 12px; letter-spacing: -.03em; max-width: 14ch; }
.auth-art p { font-size: 17px; opacity: .9; max-width: 34ch; }
.auth-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.auth-points .i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.auth-powered { font-size: 13px; opacity: .8; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-card h2 { font-size: 26px; letter-spacing: -.02em; }
.auth-card-logo { display: none; }
.auth-alt { text-align: center; font-size: 14.5px; color: var(--text-2); }
.auth-support { text-align: center; font-size: 13px; color: var(--text-3); }
.choose-list { display: grid; gap: 8px; }
@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-main { align-items: start; padding-top: 10vh; }
  .auth-card-logo { display: flex; justify-content: center; margin-bottom: 4px; }
  .auth-card-logo .brand-initials { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; }
  .auth-card-logo .brand-logo { max-height: 64px; max-width: 220px; }
  .auth-card h2, .auth-card > p { text-align: center; }
}
.setup { min-height: 100vh; padding: 40px 20px 60px; background: radial-gradient(80% 60% at 50% 0%, var(--brand-softer), var(--bg)); }
.setup-inner { max-width: 680px; margin: 0 auto; }
.setup-top { text-align: center; margin-bottom: 26px; }
.setup-top .brand-initials { margin: 0 auto 14px; width: 54px; height: 54px; border-radius: 15px; font-size: 19px; }
.setup-top h1 { font-size: 28px; }
.setup-top p { color: var(--text-2); margin-top: 6px; }
.setup .card { margin-bottom: 14px; }
.step-title { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.step-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-strong); color: #fff; font-weight: 750; font-size: 14px; flex: none; }
.step-no .i { width: 15px; height: 15px; stroke-width: 2.2; }
.setup-code input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }

/* ---------------------------------------------------------------- branding */
.dropzone { display: flex; gap: 16px; align-items: center; padding: 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-softer); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > span:last-child { flex: 1; min-width: 0; }
.logo-box { width: 120px; height: 72px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-box img { max-width: 104px; max-height: 58px; object-fit: contain; }
.logo-box .brand-initials { width: 48px; height: 48px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.color-pick { display: flex; gap: 10px; align-items: center; }
.color-pick input[type=color] { width: 46px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.color-pick input[type=text] { max-width: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-bar b { font-size: 14px; }
.preview-body { padding: 14px; display: grid; gap: 10px; }
.preview-nav { display: flex; gap: 6px; }
.preview-nav span { padding: 7px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--text-3); background: #fff; border: 1px solid var(--line); }
.preview-nav span.on { color: var(--brand-strong); background: var(--brand-softer); border-color: var(--brand-soft); }
.preview-kpi { border-radius: 12px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--brand-strong), color-mix(in srgb, var(--brand-strong) 70%, #000)); }
.preview-kpi small { opacity: .85; font-size: 12px; } .preview-kpi b { display: block; font-size: 20px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; flex: none; }
.app-icon img { width: 100%; height: 100%; display: block; }
.home-preview { display: flex; gap: 14px; align-items: center; }
.home-preview p { font-size: 12.5px; color: var(--text-3); }
.link-box { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.link-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.settings-nav a:hover { background: var(--surface); text-decoration: none; }
.settings-nav a.is-active { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow); border: 1px solid var(--line); }
.settings-nav .i { width: 18px; height: 18px; }
@media (max-width: 899px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
}

/* ---------------------------------------------------------------- payslip */
.slip-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.slip-toolbar .grow { min-width: 10px; }
.slip { background: #fff; border: 1px solid var(--line); border-radius: 16px; max-width: 820px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow-lg); }
.slip-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 4px solid var(--brand); align-items: center; flex-wrap: wrap; }
.slip-co { display: flex; gap: 14px; align-items: center; min-width: 0; }
.slip-co .brand-logo { max-height: 56px; max-width: 150px; }
.slip-co h2 { font-size: 19px; }
.slip-co p { font-size: 12.5px; color: var(--text-3); }
.slip-title { text-align: right; }
.slip-title .t { font-size: 12px; font-weight: 750; letter-spacing: .14em; color: var(--brand-strong); }
.slip-title .m { font-size: 20px; font-weight: 750; }
.slip-sec { padding: 18px 28px; border-bottom: 1px solid var(--line); }
.slip-emp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.slip-emp small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.slip-emp b { font-size: 14.5px; }
.slip-att { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.slip-att div { text-align: center; border-radius: 10px; padding: 8px 4px; background: var(--surface-2); }
.slip-att small { display: block; font-size: 11px; color: var(--text-3); font-weight: 650; }
.slip-att b { font-size: 17px; font-variant-numeric: tabular-nums; }
.slip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.slip-cols h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 6px; }
.slip-net { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; background: var(--brand-softer); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.slip-net .label { font-weight: 650; color: var(--text-2); }
.slip-net .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.slip-foot { padding: 14px 28px 20px; font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.slip-sign { display: flex; justify-content: space-between; gap: 20px; padding: 34px 28px 10px; font-size: 12.5px; color: var(--text-3); }
.slip-sign div { border-top: 1px solid var(--line-2); padding-top: 6px; min-width: 160px; text-align: center; }
@media (max-width: 680px) {
  .slip-head, .slip-sec, .slip-net, .slip-foot { padding-left: 16px; padding-right: 16px; }
  .slip-emp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip-att { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slip-cols { grid-template-columns: 1fr; gap: 16px; }
  .slip-title { text-align: left; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .bottomnav, .banner, .slip-toolbar, .no-print, #toasts { display: none !important; }
  .main { margin: 0; padding: 0; }
  .page { padding: 0; max-width: none; }
  .slip { box-shadow: none; border: 1px solid #ccc; border-radius: 0; max-width: none; }
  .slip-net { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slip-head, .slip-att div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- staff app */
.punch-card { text-align: center; padding: 22px 18px; }
.punch-card .time { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.punch-card .date { color: var(--text-3); }
.punch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.punch-btns .btn { height: 56px; font-size: 16px; }
.punch-log { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.platform-co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.platform-co .brand-initials, .platform-co .brand-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
.platform-co .brand-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; max-width: 38px; }
.color-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .1); }
