/* =========================================================
   IndoHRM Admin Support (Pusat Bantuan) — Mockup Redesign
   Basis: ../mockup-portal/assets/portal.css (satu keluarga dengan portal member)
   - Font   : Figtree — sama dengan website indohrm.com (--font-primary)
   - Merek  : Biru Logo #2c5aa0 + Amber #ffc53d (website/public/css/style.css)
   - Palet chrome bisa diganti lewat <html data-palette="segar|malam|klasik">
   - Komponen khusus support ada di bagian paling bawah file ini
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  color-scheme: light;
  /* Merek — dari aset yang sudah dipakai */
  --brand: #2c5aa0;          /* Biru Logo: logo.png, website, login portal */
  --brand-hover: #234a86;
  --brand-ink: #1f4580;
  --brand-soft: #e6eefa;
  --brand-tint: #f3f7fd;
  --brand-bright: #3f7fd6;   /* website --brand-light */
  --amber: #ffc53d;          /* website --brand-amber */
  --amber-soft: #fff4d1;
  --amber-ink: #6b4a00;
  --grad-brand: linear-gradient(135deg, #142d52 0%, #2c5aa0 55%, #3f7fd6 100%); /* website --brand-gradient */
  /* Permukaan & teks */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef1f6;
  --border: #e4e8ef;
  --border-strong: #cdd4df;
  --ink: #172133;
  --ink-2: #4a5568;
  --ink-3: #6b7689;
  /* Status */
  --ok: #13795b;     --ok-soft: #e3f4ec;           /* website --brand-green */
  --warn: #8a5a00;   --warn-soft: #fff4d6;  --warn-mark: #ffc53d;
  --bad: #c4280c;    --bad-soft: #fdeae6;
  --info: #2c5aa0;   --info-soft: #e6eefa;
  --violet: #6d4fd8; --violet-soft: #efeafd;
  /* Chrome (sidebar & header) — default palet "Segar" */
  --sb-bg: #ffffff;
  --sb-brand-bg: #ffffff;
  --sb-border: #e4e8ef;
  --sb-ink: #3b4659;
  --sb-mute: #8792a5;
  --sb-hover: #f2f5f9;
  --sb-active-bg: #e6eefa;
  --sb-active-ink: #1f4580;
  --sb-indicator: #2c5aa0;
  --sb-card: #f6f8fb;
  --sb-card-border: #e4e8ef;
  --sb-count-soft: #eef1f6;
  --sb-count-soft-ink: #4a5568;
  --logo-filter: none;
  --tb-bg: rgba(255,255,255,.92);
  --tb-ink: #172133;
  --tb-mute: #6b7689;
  --tb-border: #e4e8ef;
  --tb-hover: #f2f5f9;
  --table-accent: transparent;
  /* Bentuk */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;         /* --card-radius aplikasi HRM & --brand-radius website */
  --shadow: 0 1px 2px rgba(20,45,82,.05), 0 2px 8px rgba(20,45,82,.04);
  --shadow-lg: 0 10px 30px rgba(20,45,82,.14);
  --sidebar-w: 244px;
  --topbar-h: 60px;
  --font: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; /* = --font-primary website */
  --mono: Consolas, Monaco, ui-monospace, monospace;
}

/* Palet "Biru Malam": sidebar biru tua sewarna logo, aksen amber */
:root[data-palette="malam"] {
  --sb-bg: linear-gradient(180deg, #12305c 0%, #0d2244 100%);
  --sb-brand-bg: transparent;
  --sb-border: rgba(255,255,255,.08);
  --sb-ink: #cbd8ee;
  --sb-mute: #7f95ba;
  --sb-hover: rgba(255,255,255,.07);
  --sb-active-bg: rgba(255,255,255,.12);
  --sb-active-ink: #ffffff;
  --sb-indicator: #ffc53d;
  --sb-card: rgba(255,255,255,.06);
  --sb-card-border: rgba(255,255,255,.1);
  --sb-count-soft: rgba(255,255,255,.14);
  --sb-count-soft-ink: #e6edf8;
  --logo-filter: brightness(0) invert(1);
}
/* Palet "Klasik": siluet aplikasi HRM sekarang (header biru, sidebar navy, penanda cyan) */
:root[data-palette="klasik"] {
  --bg: #f1f3f7;
  --sb-bg: #242939;
  --sb-brand-bg: #1f2231;
  --sb-border: rgba(255,255,255,.08);
  --sb-ink: #c3c9d7;
  --sb-mute: #7d869c;
  --sb-hover: rgba(255,255,255,.06);
  --sb-active-bg: rgba(255,255,255,.09);
  --sb-active-ink: #ffffff;
  --sb-indicator: #31c6f9;
  --sb-card: rgba(255,255,255,.05);
  --sb-card-border: rgba(255,255,255,.08);
  --sb-count-soft: rgba(255,255,255,.14);
  --sb-count-soft-ink: #e6eaf2;
  --logo-filter: brightness(0) invert(1);
  --tb-bg: #2c5aa0;
  --tb-ink: #ffffff;
  --tb-mute: rgba(255,255,255,.75);
  --tb-border: transparent;
  --tb-hover: rgba(255,255,255,.14);
  --table-accent: #31c6f9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11151e; --surface: #181d29; --surface-2: #1d2331; --surface-3: #252c3d;
    --border: #2a3245; --border-strong: #3a4560;
    --ink: #e8ecf4; --ink-2: #b4bdd0; --ink-3: #8590a8;
    --brand: #5b8fdc; --brand-hover: #79a5e6; --brand-ink: #a9c6f2; --brand-soft: #1d2b47; --brand-tint: #18223a;
    --amber-soft: #3a2f12; --amber-ink: #ffc53d;
    --ok: #3fbf8f; --ok-soft: #123227; --warn: #ffc53d; --warn-soft: #3a2f12;
    --bad: #ff7a5c; --bad-soft: #3d1d16; --info: #79a5e6; --info-soft: #1d2b47;
    --violet: #a895f5; --violet-soft: #2a2347;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  }
  :root:not([data-theme="light"]):not([data-palette="malam"]):not([data-palette="klasik"]) {
    --sb-bg: #151a25; --sb-brand-bg: #151a25; --sb-border: #2a3245; --sb-ink: #c3cbdb; --sb-mute: #7f8aa1;
    --sb-hover: rgba(255,255,255,.05); --sb-active-bg: #1d2b47; --sb-active-ink: #a9c6f2; --sb-indicator: #5b8fdc;
    --sb-card: #1b2130; --sb-card-border: #2a3245; --sb-count-soft: #252c3d; --sb-count-soft-ink: #b4bdd0;
    --logo-filter: brightness(0) invert(1);
    --tb-bg: rgba(24,29,41,.92); --tb-ink: #e8ecf4; --tb-mute: #8590a8; --tb-border: #2a3245; --tb-hover: #252c3d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151e; --surface: #181d29; --surface-2: #1d2331; --surface-3: #252c3d;
  --border: #2a3245; --border-strong: #3a4560;
  --ink: #e8ecf4; --ink-2: #b4bdd0; --ink-3: #8590a8;
  --brand: #5b8fdc; --brand-hover: #79a5e6; --brand-ink: #a9c6f2; --brand-soft: #1d2b47; --brand-tint: #18223a;
  --amber-soft: #3a2f12; --amber-ink: #ffc53d;
  --ok: #3fbf8f; --ok-soft: #123227; --warn: #ffc53d; --warn-soft: #3a2f12;
  --bad: #ff7a5c; --bad-soft: #3d1d16; --info: #79a5e6; --info-soft: #1d2b47;
  --violet: #a895f5; --violet-soft: #2a2347;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
}
:root[data-theme="dark"]:not([data-palette="malam"]):not([data-palette="klasik"]) {
  --sb-bg: #151a25; --sb-brand-bg: #151a25; --sb-border: #2a3245; --sb-ink: #c3cbdb; --sb-mute: #7f8aa1;
  --sb-hover: rgba(255,255,255,.05); --sb-active-bg: #1d2b47; --sb-active-ink: #a9c6f2; --sb-indicator: #5b8fdc;
  --sb-card: #1b2130; --sb-card-border: #2a3245; --sb-count-soft: #252c3d; --sb-count-soft-ink: #b4bdd0;
  --logo-filter: brightness(0) invert(1);
  --tb-bg: rgba(24,29,41,.92); --tb-ink: #e8ecf4; --tb-mute: #8590a8; --tb-border: #2a3245; --tb-hover: #252c3d;
}
:root[data-theme="dark"][data-palette="klasik"] { --tb-bg: #1d3460; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: 24px; letter-spacing: -.015em; } h2 { font-size: 16.5px; letter-spacing: -.005em; } h3 { font-size: 15px; } h4 { font-size: 14px; }
p { margin: 0; }
b, strong { font-weight: 700; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
kbd { font: 11.5px var(--mono); padding: 1px 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* Ikon: SVG garis 1.8 (satu set, lihat aturan-ui.html#ikon) */
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; }
.ico.sm { width: 15px; height: 15px; vertical-align: -3px; }
.ico.lg { width: 22px; height: 22px; }
.ico.xl { width: 30px; height: 30px; }

/* ---------- Utilities ---------- */
.flex { display: flex; gap: 8px; align-items: center; }
.flex.col { flex-direction: column; align-items: stretch; }
.flex.top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ml-auto { margin-left: auto; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; }
.strong { font-weight: 650; }
.upper { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 650; color: var(--ink-3); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); } .brand-t { color: var(--brand); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.side { grid-template-columns: minmax(0,1fr) 340px; align-items: start; }
.grid.side-l { grid-template-columns: 240px minmax(0,1fr); align-items: start; }
.span-2 { grid-column: span 2; }
.grid > * { min-width: 0; }
@media (max-width: 1080px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.side { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } .grid.side-l { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- App shell (warna dari variabel palet --sb-* / --tb-*) ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sb-bg); color: var(--sb-ink);
  border-right: 1px solid var(--sb-border); display: flex; flex-direction: column; z-index: 30;
}
.sb-brand { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--sb-brand-bg); border-bottom: 1px solid var(--sb-border); }
.sb-brand:hover { text-decoration: none; }
.sb-brand .logo-img { height: 26px; filter: var(--logo-filter); }
.sb-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3d2a00; background: var(--amber); padding: 2px 6px; border-radius: 4px; line-height: 1.3; }
.sb-account { margin: 14px 12px 6px; padding: 10px 12px; border-radius: var(--radius); background: var(--sb-card); border: 1px solid var(--sb-card-border); display: flex; gap: 10px; align-items: center; color: inherit; }
.sb-account:hover { filter: brightness(.98); text-decoration: none; }
.sb-account .who { min-width: 0; }
.sb-account .who b { display: block; font-size: 14px; color: var(--sb-active-ink); }
:root:not([data-palette="malam"]):not([data-palette="klasik"]) .sb-account .who b { color: var(--ink); }
.sidebar .faint, .sidebar .xs { color: var(--sb-mute); }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-group { margin: 16px 10px 6px; }
.sidebar .upper { color: var(--sb-mute); }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--sb-ink); font-size: 14px; font-weight: 500; position: relative; }
.sb-link .ico { color: var(--sb-mute); }
.sb-link:hover { background: var(--sb-hover); color: var(--sb-active-ink); text-decoration: none; }
.sb-link:hover .ico { color: inherit; }
.sb-link.active { background: var(--sb-active-bg); color: var(--sb-active-ink); font-weight: 600; }
.sb-link.active .ico { color: var(--sb-indicator); }
.sb-link.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sb-indicator); }
.sb-link .count { margin-left: auto; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--bad); color: #fff; }
.sb-link .count.soft { background: var(--sb-count-soft); color: var(--sb-count-soft-ink); }
.sb-foot { border-top: 1px solid var(--sb-border); padding: 10px 12px; display: flex; gap: 6px; align-items: center; }
.sidebar .icon-btn, .sidebar .btn.ghost { color: var(--sb-ink); }
.sidebar .icon-btn:hover, .sidebar .btn.ghost:hover { background: var(--sb-hover); color: var(--sb-active-ink); }

.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); margin-left: var(--sidebar-w);
  background: var(--tb-bg); color: var(--tb-ink); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tb-border); display: flex; align-items: center; gap: 8px; padding: 0 24px;
}
.topbar .icon-btn { color: var(--tb-mute); }
.topbar .icon-btn:hover { background: var(--tb-hover); color: var(--tb-ink); }
.topbar .icon-btn .pip { background: var(--amber); color: #3d2a00; border-color: var(--surface); }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--tb-mute); font-size: 14px; min-width: 0; }
.crumbs a { color: var(--tb-mute); }
.crumbs b { color: var(--tb-ink); font-weight: 600; }
/* Klasik: header biru → tombol utama di header jadi putih */
:root[data-palette="klasik"] .topbar { backdrop-filter: none; }
:root[data-palette="klasik"] .topbar .btn.primary { background: #fff; border-color: #fff; color: #1f4580; }
:root[data-palette="klasik"] .topbar .icon-btn .pip { border-color: #2c5aa0; }
:root[data-palette="klasik"] .topbar .avatar { background: rgba(255,255,255,.2); color: #fff; }
.main { margin-left: var(--sidebar-w); }
.page { max-width: 1200px; margin: 0 auto; padding: 24px 24px 64px; }
.page.narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > .grow { flex: 1 1 280px; }
.page-head .grow p { color: var(--ink-2); margin-top: 4px; }
/* .burger tampil di semua ukuran: desktop = ringkas sidebar, ponsel = buka laci (portal.js toggleNav) */

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .topbar, .main { margin-left: 0; }
  .topbar { padding: 0 12px; }

  .page { padding: 16px 16px 96px; }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) { .hide-sm { display: none !important; } h1 { font-size: 19px; } }
.scrim { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 25; }

/* Bottom tab bar (mobile) */
.tabbar { display: none; }
@media (max-width: 960px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); padding: 4px 0; position: relative; }
  .tabbar a.active { color: var(--brand); font-weight: 600; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .dot { position: absolute; top: 2px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.ghost.danger { color: var(--bad); }
.btn.ghost.danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn.link { background: none; border: 0; padding: 0; height: auto; color: var(--brand); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .pip { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; }
.card-head .hint { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.card-body { padding: 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.card.pad { padding: 16px; }
.card.flat { box-shadow: none; }
.card.accent { border-left: 4px solid var(--brand); }
.card.hover:hover { border-color: var(--brand); }

/* KPI */
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--brand); text-decoration: none; }
.kpi .label { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; color: var(--ink-3); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--info-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.callout > .ico { color: var(--info); margin-top: 1px; }
.callout.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); } .callout.ok > .ico { color: var(--ok); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .callout.warn > .ico { color: var(--warn); }
.callout.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .callout.bad > .ico { color: var(--bad); }
.callout .grow > b { display: block; }
.callout > .grow { flex: 1 1 260px; }
.callout .actions { display: flex; gap: 8px; margin-left: auto; align-self: center; flex-wrap: wrap; }
@media (max-width: 640px) { .callout { flex-wrap: wrap; } .callout .actions { flex-basis: 100%; margin-left: 30px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.clickable { cursor: pointer; }
.table .sub { display: block; font-size: 12px; color: var(--ink-3); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Tabel jadi kartu di layar kecil */
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.stack td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; text-align: left; }
  .table.stack td.lead { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; }
  .table.stack td.lead::before { display: none; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--bad); }
.field .opt { color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 14px var(--font);
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.input.is-invalid { border-color: var(--bad); }
.input.is-valid { border-color: var(--ok); }
.hint { font-size: 12px; color: var(--ink-3); }
.err { font-size: 12px; color: var(--bad); display: flex; gap: 4px; align-items: center; }
.okmsg { font-size: 12px; color: var(--ok); display: flex; gap: 4px; align-items: center; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; color: var(--ink-3); background: var(--surface-2); font-size: 13px; }
.input-group .icon-btn { height: auto; border-radius: 0; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.form-grid .c-2 { grid-column: span 2; } .form-grid .c-3 { grid-column: span 3; } .form-grid .c-4 { grid-column: span 4; } .form-grid .c-6 { grid-column: span 6; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid > * { grid-column: auto !important; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: var(--border-strong); cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }

/* Radio cards (pilih metode / paket) */
.choice { display: grid; gap: 10px; }
.choice.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.choice.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 640px) { .choice.cols-3, .choice.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .choice.cols-2 { grid-template-columns: 1fr; } }
.choice label { position: relative; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choice label:hover { border-color: var(--brand); }
.choice input { position: absolute; opacity: 0; }
.choice input:checked + .opt-body, .choice label:has(input:checked) { }
.choice label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; background: var(--brand-soft); }
.choice input:focus-visible + * { outline: 2px solid var(--brand); outline-offset: 4px; }
.logo-chip { width: 44px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; letter-spacing: .02em; }

/* Upload */
.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-2); background: var(--surface-2); cursor: pointer; }
.drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop .ico { color: var(--brand); }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { appearance: none; background: none; border: 0; padding: 10px 14px; font: 600 13.5px var(--font); color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover, .tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs [aria-selected="true"], .tabs .active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .count { font-size: 11px; background: var(--surface-3); color: var(--ink-2); padding: 0 6px; border-radius: 9px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 9px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
[data-panel][hidden] { display: none; }

/* Vertical nav (settings) */
.vnav { display: flex; flex-direction: column; gap: 2px; }
.vnav a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.vnav a:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.vnav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
@media (max-width: 860px) { .vnav { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--border); padding-bottom: 6px; } .vnav a { white-space: nowrap; } }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 0; counter-reset: step; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; padding-right: 12px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.stepper .st:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.stepper .st .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 12.5px; flex: none; background: var(--surface); }
.stepper .st.done { color: var(--ink-2); }
.stepper .st.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper .st.done:not(:last-child)::after { background: var(--ok); }
.stepper .st.now { color: var(--ink); }
.stepper .st.now .n { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 640px) { .stepper .st .lbl { display: none; } .stepper .st.now .lbl { display: inline; } }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.progress.ok > i { background: var(--ok); } .progress.warn > i { background: var(--warn-mark); } .progress.bad > i { background: var(--bad); }
.progress.thin { height: 5px; }
.ring { --p: 60; --c: var(--brand); width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-label); width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }

/* ---------- Lists / key-values / timeline ---------- */
.list { display: flex; flex-direction: column; }
.list .row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.list .row:last-child { border-bottom: 0; }
a.row:hover { background: var(--surface-2); text-decoration: none; }
.list .row .meta { font-size: 12px; color: var(--ink-3); }
.tile { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.tile.ok { background: var(--ok-soft); color: var(--ok); } .tile.warn { background: var(--warn-soft); color: var(--warn); } .tile.bad { background: var(--bad-soft); color: var(--bad); } .tile.violet { background: var(--violet-soft); color: var(--violet); } .tile.gray { background: var(--surface-3); color: var(--ink-2); }
.tile.lg { width: 52px; height: 52px; border-radius: 14px; }
.kv { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li .dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li .t { font-weight: 600; } .timeline li .meta { font-size: 12px; color: var(--ink-3); }

/* Avatar */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; } .avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.brand { background: var(--brand); color: #fff; }

/* Empty state */
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty .tile { margin: 0 auto 12px; }
.empty h3 { margin-bottom: 4px; color: var(--ink); }
.empty .btn { margin-top: 14px; }

/* Copy field */
.copy { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .03em; }
.copy .grow { overflow-wrap: anywhere; }

/* Price */
.price { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.strike { text-decoration: line-through; color: var(--ink-3); font-size: 13px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.sum-row .num { font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 17px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 6px; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }

/* Plan cards */
.plan { display: flex; flex-direction: column; gap: 12px; padding: 20px; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .ribbon { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ico { color: var(--ok); margin-top: 1px; }
.plan .btn { margin-top: auto; }

/* ---------- Dropdown / panel ---------- */
.pop { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; display: none; }
.pop.open > .menu { display: block; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: 500 13.5px var(--font); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); text-decoration: none; }
.menu .sep { height: 1px; background: var(--border); margin: 6px 0; }
.menu .head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu.wide { width: 360px; padding: 0; }
@media (max-width: 480px) { .menu.wide { position: fixed; left: 8px; right: 8px; top: calc(var(--topbar-h) + 4px); width: auto; } }
.notif { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: inherit; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.notif .meta { font-size: 11.5px; color: var(--ink-3); }

/* ---------- Drawer / modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50; display: none; }
.overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); z-index: 51; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(480px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 51; display: none; opacity: 0; transition: opacity .15s, transform .15s; }
.modal.open { display: block; opacity: 1; transform: translate(-50%, -50%); }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
@media (max-width: 960px) { .toasts { bottom: 84px; } }
.toast { background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 8px; align-items: center; animation: tin .2s ease; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Skeleton */
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Spinner */
.spin { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Mock controls (bukan bagian desain) ---------- */
.mockbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 18px; border: 1.5px dashed var(--violet); border-radius: var(--radius); background: var(--violet-soft); font-size: 12.5px; color: var(--ink-2); }
.mockbar b { color: var(--violet); }
.mockbar .seg { background: var(--surface); }
/* [data-when] ditampilkan/disembunyikan oleh portal.js sesuai skenario */

/* ---------- Auth layout ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: linear-gradient(160deg, #173f7d 0%, #1f5fbf 55%, #3b82f6 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-side h2 { font-size: 28px; line-height: 1.2; font-weight: 700; max-width: 440px; }
.auth-side .feat { display: flex; gap: 12px; align-items: flex-start; max-width: 440px; }
.auth-side .feat .tile { background: rgba(255,255,255,.14); color: #fff; }
.auth-side .feat p { color: rgba(255,255,255,.8); font-size: 13.5px; }
.auth-main { display: flex; flex-direction: column; padding: 32px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; gap: 16px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.auth-foot a { color: var(--ink-3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--surface-3); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn-mark); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--ok); }
.pw-meter[data-score="4"] i { background: var(--ok); }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 48px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 20px 16px; } }

/* ---------- Doc page (index) ---------- */
.doc { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.doc h2.sec { font-size: 19px; margin: 40px 0 6px; scroll-margin-top: 60px; }
.doc .lead { font-size: 15px; color: var(--ink-2); max-width: 800px; }
.finding { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.finding:last-child { border-bottom: 0; }
.finding .n { width: 26px; height: 26px; border-radius: 50%; background: var(--bad-soft); color: var(--bad); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.finding .ev { font-size: 12px; color: var(--ink-3); font-family: var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.finding .fix { font-size: 13px; color: var(--ok); margin-top: 4px; }
.screen { display: flex; flex-direction: column; color: inherit; overflow: hidden; }
.screen:hover { border-color: var(--brand); text-decoration: none; }
.screen .thumb { height: 84px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: grid; place-items: center; color: var(--brand); position: relative; }
.screen .thumb .badge { position: absolute; top: 8px; left: 8px; }
.screen .s-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.screen .s-title { font-weight: 650; }
.screen .s-old { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); margin-top: auto; padding-top: 6px; }
.doc-bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.doc-bar .in { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc-bar a { font-size: 13px; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; }
.doc-bar a:hover { background: var(--surface-3); text-decoration: none; }
.ia { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 0; align-items: start; }
.ia .col { display: flex; flex-direction: column; gap: 6px; }
.ia .it { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.ia .it.gone { color: var(--ink-3); text-decoration: line-through; background: var(--surface-2); }
.ia .arrow { display: grid; place-items: center; color: var(--ink-3); padding-top: 40px; }
@media (max-width: 760px) { .ia { grid-template-columns: 1fr; } .ia .arrow { transform: rotate(90deg); padding: 8px 0; } .doc { padding: 24px 16px 60px; } .doc-bar .in { padding: 8px 16px; } }

@media print { .sidebar, .topbar, .tabbar, .mockbar, .no-print { display: none !important; } .main { margin: 0; } body { background: #fff; } }

/* =========================================================
   Komponen khas IndoHRM (lihat aturan-ui.html §6)
   ========================================================= */

/* Logo asli — berwarna di latar terang, putih di latar gelap/gradien */
.logo-img { height: 28px; width: auto; display: block; }
.logo-img.white { filter: brightness(0) invert(1); }
.figure-m { width: 28px; height: 28px; object-fit: contain; display: block; }

/* Kartu: radius 16 (--card-radius aplikasi HRM & website) */
.card { border-radius: var(--radius-lg); }
.card-head { padding: 14px 18px; }
.card-head h2 { font-size: 16px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; }

/* KPI: tile ikon lembut, urutan biru → amber → ungu → hijau */
.kpi { padding: 16px 18px; gap: 4px; }
.kpi .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); gap: 10px; }
.kpi .label > .ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); vertical-align: middle; }
.grid > .kpi:nth-child(4n+2) .label > .ico { color: #a86b00; background: var(--amber-soft); }
.grid > .kpi:nth-child(4n+3) .label > .ico { color: var(--violet); background: var(--violet-soft); }
.grid > .kpi:nth-child(4n+4) .label > .ico { color: var(--ok); background: var(--ok-soft); }
:root[data-theme="dark"] .grid > .kpi:nth-child(4n+2) .label > .ico { color: var(--amber); }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.kpi .delta { font-size: 13px; }
/* Klasik: tile gradien seperti dashboard_modern.css */
:root[data-palette="klasik"] .kpi .label > .ico { color: #fff; background: linear-gradient(135deg, #3b82f6, #60a5fa); }
:root[data-palette="klasik"] .grid > .kpi:nth-child(4n+2) .label > .ico { color: #fff; background: linear-gradient(135deg, #f59e0b, #fbbf24); }
:root[data-palette="klasik"] .grid > .kpi:nth-child(4n+3) .label > .ico { color: #fff; background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
:root[data-palette="klasik"] .grid > .kpi:nth-child(4n+4) .label > .ico { color: #fff; background: linear-gradient(135deg, #10b981, #34d399); }

/* Tabel: header kapital kecil; garis aksen hanya di palet Klasik */
.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); box-shadow: inset 0 3px 0 var(--table-accent); }
.table td { font-size: 14px; }

/* Badge status: pill, 600 */
.badge { font-size: 12.5px; font-weight: 600; height: 23px; padding: 0 9px; }
.badge.amber { background: var(--amber-soft); color: var(--amber-ink); }
.badge.amber::before { background: #f5a300; }

/* Tombol: Figtree 600, radius 8 */
.btn { font: 600 14px var(--font); border-radius: var(--radius-sm); }
.btn.sm { font-size: 13px; }
.btn.lg { font-size: 15.5px; }
.btn.primary { box-shadow: 0 1px 2px rgba(20,45,82,.18); }

/* Skala huruf Figtree (sama dengan website) */
.upper { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; }
.small { font-size: 13px; } .xs { font-size: 12px; }
.hint, .err, .okmsg { font-size: 12.5px; }
.field > label, .label { font-size: 13.5px; }
.input, .select, .textarea { font-size: 14.5px; border-radius: var(--radius-sm); }
.tabs button, .tabs a { font-size: 14px; }
.seg button { font-size: 13px; }

/* Panel merek: gradien website + watermark figur "M berdasi" dari logo */
.auth-side { background: var(--grad-brand); }
.auth-side h1, .auth-side h2, .auth-side h3 { color: #fff; }
.auth-side::after { width: 420px; height: 420px; right: -90px; bottom: -110px; border-radius: 0; background: url('favicon.png') no-repeat center / contain; filter: brightness(0) invert(1); opacity: .07; }
.brand-panel { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.brand-panel::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px; background: url('favicon.png') no-repeat center / contain; filter: brightness(0) invert(1); opacity: .08; pointer-events: none; }
.brand-panel .muted, .brand-panel p { color: rgba(255,255,255,.85); }
.brand-panel h2, .brand-panel h3 { color: #fff; }

/* Pemilih palet (mockup) */
.pal-dots { display: inline-flex; flex: none; }
.pal-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -4px; box-shadow: 0 0 0 1px var(--border-strong); }
.pal-dots i:first-child { margin-left: 0; }
.menu [aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* Tab bar ponsel: aktif ditandai garis biru di atas */
@media (max-width: 960px) {
  .tabbar a.active::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .tabbar a { font-size: 12px; }
}

/* ---------- Sidebar mini (desktop) — mirip sidebar-mini aplikasi HRM ---------- */
.sb-mark { display: none; width: 26px; height: 26px; object-fit: contain; filter: var(--logo-filter); }
.sidebar, .topbar, .main { transition: width .18s ease, margin-left .18s ease; }
@media (min-width: 961px) {
  body.nav-mini { --sidebar-w: 72px; }
  body.nav-mini .sb-brand { justify-content: center; padding: 0; }
  body.nav-mini .sb-brand .logo-img, body.nav-mini .sb-tag { display: none; }
  body.nav-mini .sb-mark { display: block; }
  body.nav-mini .sb-account { justify-content: center; padding: 8px; margin: 12px 10px 6px; }
  body.nav-mini .sb-account .who { display: none; }
  body.nav-mini .sb-group { font-size: 0; height: 1px; margin: 12px 14px; background: var(--sb-border); }
  body.nav-mini .sb-nav { padding: 4px 10px 12px; }
  body.nav-mini .sb-link { justify-content: center; padding: 10px 0; }
  body.nav-mini .sb-link > span:not(.count) { display: none; }
  body.nav-mini .sb-link .count { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
  body.nav-mini .sb-link.active::before { left: -10px; }
  body.nav-mini .sb-foot { flex-direction: column; padding: 10px 0; }
  body.nav-mini .sb-foot .ml-auto { margin-left: 0; }
  body.nav-mini .sb-foot .btn.ghost { font-size: 0; gap: 0; width: 36px; height: 36px; padding: 0; }
  body.nav-mini .sb-foot .menu { left: calc(100% + 8px) !important; bottom: 0 !important; }
}

/* =========================================================
   Komponen khusus Admin Support (Pusat Bantuan)
   ========================================================= */

/* Pemilih edisi (pengganti dropdown "app" di topbar lama, top_menu.php) */
.ed-switch { margin: 14px 12px 6px; position: relative; }
.ed-switch > button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--sb-card); border: 1px solid var(--sb-card-border); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ed-switch > button:hover { filter: brightness(.98); }
.ed-switch .who { min-width: 0; flex: 1; }
.ed-switch .who b { display: block; font-size: 14px; color: var(--ink); }
:root[data-palette="malam"] .ed-switch .who b, :root[data-palette="klasik"] .ed-switch .who b { color: var(--sb-active-ink); }
.ed-switch .menu { left: 0; right: 0; top: calc(100% + 6px); }
.ed-chip { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; letter-spacing: .02em; }
.ed-chip.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 9.5px; }
.ed-chip.corp { background: #2c5aa0; } .ed-chip.ent { background: #13795b; } .ed-chip.out { background: #a86b00; } .ed-chip.off { background: #8792a5; }
body.nav-mini .ed-switch > button { justify-content: center; padding: 8px; }
body.nav-mini .ed-switch .who, body.nav-mini .ed-switch .chev { display: none; }

/* Toolbar daftar */
.toolbar-t { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar-t .input-group { max-width: 340px; flex: 1; min-width: 200px; }
.toolbar-t .select { width: auto; height: 36px; font-size: 13.5px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px; display: grid; place-items: center; border-radius: 50%; }
.chip button:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.bulkbar { display: none; align-items: center; gap: 8px; padding: 8px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.bulkbar.on { display: flex; }

/* Label atribut (kotak abu) — beda dari badge status (kapsul) */
.lbl { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lbl.mono { font-family: var(--mono); font-weight: 500; }
.lock-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--warn); font-weight: 600; }
.table td .title-cell { display: flex; flex-direction: column; gap: 4px; }
.table td .title-cell > a { color: var(--ink); font-weight: 600; }
.table td .title-cell > a:hover { color: var(--brand); }
.table .row-act { display: flex; gap: 2px; justify-content: flex-end; opacity: .55; }
.table tr:hover .row-act, .table .row-act:focus-within { opacity: 1; }
.table td.chk, .table th.chk { width: 36px; padding-right: 0; }
.table td.chk input, .table th.chk input { width: 16px; height: 16px; accent-color: var(--brand); }
.crumb-mini { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.crumb-mini .ico { width: 12px; height: 12px; }

/* Jalur menu aplikasi: [Attendance] › [Activities] › [Overtime Workorders] */
.mpath { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; vertical-align: middle; }
.mpath span { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); font-size: 12.5px; font-weight: 650; color: var(--ink); line-height: 1; }
.mpath .ico { width: 14px; height: 14px; color: var(--ink-3); }

/* ---------- Pohon katalog (Edisi > Modul > Fitur > Topik) ---------- */
.tree { list-style: none; margin: 0; padding: 4px 0; }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 18px; }
.tree li { position: relative; }
.tree .node { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.tree .node:hover { background: var(--surface-3); }
.tree .node.sel { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.tree .tw { width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink-3); flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.tree .tw .ico { width: 14px; height: 14px; transition: transform .15s; }
.tree .tw.none { visibility: hidden; }
.tree li.closed > .node .tw .ico { transform: rotate(-90deg); }
.tree li.closed > ul { display: none; }
.tree .node .k { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 800; }
.tree .k.m { background: var(--brand-soft); color: var(--brand); }
.tree .k.f { background: var(--violet-soft); color: var(--violet); }
.tree .k.t { background: var(--amber-soft); color: var(--amber-ink); }
.tree .node .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .node .ct { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.on { background: var(--ok); } .dot.off { background: var(--border-strong); } .dot.warn { background: var(--warn-mark); }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }

/* Cakupan (progress terbit) */
.cov { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.cov .progress { flex: 1; }
.cov b { font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* ---------- Editor blok ---------- */
.editor-wrap { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .editor-wrap { grid-template-columns: 1fr; } }
.ed-title { width: 100%; border: 0; background: transparent; font: 700 26px/1.25 var(--font); color: var(--ink); padding: 4px 0; letter-spacing: -.015em; }
.ed-title:focus { outline: none; }
.ed-title::placeholder { color: var(--ink-3); }
.ed-toolbar { position: sticky; top: var(--topbar-h); z-index: 6; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ed-toolbar .icon-btn { width: 32px; height: 32px; }
.ed-toolbar .icon-btn b, .ed-toolbar .icon-btn em { font-size: 14px; }
.ed-toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.ed-toolbar .btn { height: 32px; }
.blocks { padding: 12px 12px 16px 0; counter-reset: step; }
.blk { position: relative; display: grid; grid-template-columns: 34px 36px minmax(0,1fr); align-items: start; padding: 2px 0; border-radius: 8px; }
.blk:hover { background: var(--surface-2); }
.blk.focus { background: var(--brand-tint); box-shadow: inset 2px 0 0 var(--brand); }
.blk .handle { display: flex; flex-direction: column; align-items: center; padding-top: 5px; opacity: 0; color: var(--ink-3); }
.blk:hover .handle, .blk.focus .handle { opacity: 1; }
.blk .handle .icon-btn { width: 26px; height: 26px; cursor: grab; }
.blk .gut { padding-top: 7px; text-align: center; font-weight: 700; color: var(--brand); }
.blk.step { counter-increment: step; }
.blk.step .gut::before { content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); font-size: 12.5px; }
.blk.sub { grid-template-columns: 34px 36px 24px minmax(0,1fr); }
.blk.sub .gut2 { padding-top: 5px; color: var(--ink-3); text-align: center; font-size: 18px; line-height: 1.3; }
.blk .body { padding: 6px 10px 6px 4px; line-height: 1.65; font-size: 14.5px; min-height: 34px; outline: none; }
.blk .body:empty::before { content: attr(data-ph); color: var(--ink-3); }
.blk figure { margin: 6px 0 2px; }
.blk figure .shot { max-width: 520px; }
.blk figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blk .note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); }
.blk .note .ico { color: #a86b00; margin-top: 2px; }
.blk-add { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 70px; color: var(--ink-3); font-size: 13px; flex-wrap: wrap; position: relative; }
.blk-add .btn { height: 30px; font-size: 13px; }
.slash { position: absolute; left: 0; top: calc(100% + 4px); width: 300px; z-index: 8; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.slash.open { display: block; }
.slash .opt { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--ink); border: 0; background: none; width: 100%; text-align: left; font-family: var(--font); }
.slash .opt:hover, .slash .opt.on { background: var(--brand-soft); }
.slash .opt .tile { width: 30px; height: 30px; border-radius: 8px; }
.slash .opt small { display: block; color: var(--ink-3); font-size: 12px; }
.save-state { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.save-state .dot { width: 7px; height: 7px; background: var(--ok); }

/* Tangkapan layar palsu (pengganti gambar asli di mockup) */
.shot { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background-color: #f6f8fb;
  background-image:
    linear-gradient(#2c5aa0, #2c5aa0), linear-gradient(#242939, #242939),
    linear-gradient(#dfe6f1, #dfe6f1), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#13795b, #13795b);
  background-size: 100% 9%, 17% 100%, 76% 7%, 76% 5%, 76% 5%, 76% 5%, 50% 5%, 11% 7%;
  background-position: 0 0, 0 0, 96% 24%, 96% 38%, 96% 49%, 96% 60%, 70% 71%, 96% 14%;
  background-repeat: no-repeat; }
.shot.alt { background-image:
    linear-gradient(#2c5aa0, #2c5aa0), linear-gradient(#242939, #242939),
    linear-gradient(#ffffff, #ffffff), linear-gradient(#dfe6f1, #dfe6f1), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#ffc53d, #ffc53d);
  background-size: 100% 9%, 17% 100%, 36% 58%, 36% 7%, 36% 45%, 36% 8%, 9% 6%;
  background-position: 0 0, 0 0, 31% 78%, 31% 22%, 94% 66%, 94% 22%, 88% 93%; }
.shot.form { background-image:
    linear-gradient(#2c5aa0, #2c5aa0), linear-gradient(#242939, #242939),
    linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#e9eef5, #e9eef5), linear-gradient(#13795b, #13795b), linear-gradient(#cdd4df, #cdd4df);
  background-size: 100% 9%, 17% 100%, 34% 8%, 34% 8%, 34% 8%, 34% 8%, 12% 8%, 12% 8%;
  background-position: 0 0, 0 0, 30% 27%, 86% 27%, 30% 47%, 86% 47%, 25% 77%, 42% 77%; }
.shot.rep { background-image:
    linear-gradient(#2c5aa0, #2c5aa0), linear-gradient(#242939, #242939),
    repeating-linear-gradient(180deg, #e9eef5 0 7%, #ffffff 7% 12%), linear-gradient(#dfe6f1, #dfe6f1);
  background-size: 100% 9%, 17% 100%, 76% 62%, 76% 8%;
  background-position: 0 0, 0 0, 96% 85%, 96% 16%; }
:root[data-theme="dark"] .shot { filter: brightness(.85); }
.shot .hl { position: absolute; border: 2.5px solid #e5484d; border-radius: 6px; }
.shot .num-mark { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Pratinjau artikel (tampilan pembaca situs bantuan) ---------- */
.reader-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .reader-wrap { grid-template-columns: 1fr; } .reader-wrap .toc { display: none; } }
.toc { position: sticky; top: calc(var(--topbar-h) + 16px); font-size: 13.5px; }
.toc .upper { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--border-strong); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
.toc a.sub { padding-left: 22px; font-size: 13px; }
.reader { max-width: 720px; font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.reader h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 8px; }
.reader h2 { font-size: 19px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.reader p { margin: 0 0 14px; }
.reader ol.steps { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; }
.reader ol.steps > li { counter-increment: s; position: relative; padding: 0 0 20px 44px; }
.reader ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.reader ol.steps > li::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; background: var(--border); }
.reader ol.steps > li:last-child::after { display: none; }
.reader ul { margin: 8px 0 12px; padding-left: 20px; }
.reader ul li { margin-bottom: 10px; }
.reader figure { margin: 12px 0 6px; }
.reader figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.reader .meta-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.reader .tip { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); margin: 4px 0 16px; font-size: 14.5px; }
.reader .tip .ico { color: #a86b00; margin-top: 3px; }
.reader .feedback { margin-top: 28px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }

/* ---------- Grafik batang (satu seri, satu hue merek) ---------- */
.chart { position: relative; }
.chart .plot { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 2px; margin-left: 44px; border-bottom: 1px solid var(--border-strong); }
.chart .grid-y { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); font-size: 11px; color: var(--ink-3); pointer-events: none; }
.chart .grid-y span { position: absolute; left: -44px; top: -8px; width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.chart .bar { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; outline: none; }
.chart .bar i { display: block; width: 100%; max-width: 30px; margin: 0 auto; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.dim i { background: color-mix(in srgb, var(--brand) 30%, var(--surface)); }
.chart .bar:hover i, .chart .bar:focus i { background: var(--brand-hover); }
.chart .bar .tt { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 3; pointer-events: none; }
.chart .bar:hover .tt, .chart .bar:focus .tt { display: block; }
.chart .bar .lab { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.chart .bar:hover .lab { display: none; }
.chart .xl { display: flex; gap: 2px; margin-left: 44px; margin-top: 6px; }
.chart .xl span { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: 130px minmax(0,1fr) 56px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 10px; background: var(--surface-3); border-radius: 0 4px 4px 0; }
.hbar .track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbar:hover .track i { background: var(--brand-hover); }

/* ---------- Galeri ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 16px; }
.gimg { display: flex; flex-direction: column; overflow: hidden; color: inherit; cursor: pointer; position: relative; }
.gimg:hover { border-color: var(--brand); text-decoration: none; }
.gimg .shot { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.gimg .gi { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gimg .gi b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gimg .pick { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--brand); }
.gimg .use { position: absolute; top: 8px; right: 8px; }
.gimg:has(.pick:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* ---------- Matriks hak akses ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.matrix thead th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); text-align: center; }
.matrix thead th:first-child { text-align: left; }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; }
.matrix tr.grp td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); text-align: left; }
.matrix input { width: 17px; height: 17px; accent-color: var(--brand); }
.matrix .sub-k { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.matrix .na { color: var(--ink-3); }

/* ---------- Halaman analisa (index) ---------- */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.doc-nav { position: sticky; top: 24px; align-self: start; font-size: 13.5px; display: flex; flex-direction: column; }
.doc-nav a { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-left: 2px solid var(--border); color: var(--ink-2); }
.doc-nav a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--border-strong); }
.doc-nav a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
.doc-nav .n { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 16px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; padding: 0 16px 60px; gap: 16px; }
  .doc-nav { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .doc-nav a { border-left: 0; white-space: nowrap; border-radius: 6px; }
  .doc-nav a.active { background: var(--brand-soft); }
  .doc-nav .hide-doc-sm { display: none; }
}
.doc-main section { scroll-margin-top: 20px; margin-bottom: 48px; }
.doc-main h2.sec { font-size: 21px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.doc-main h2.sec .n { font-size: 13px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; }
.doc-main .lead { font-size: 15.5px; color: var(--ink-2); max-width: 780px; line-height: 1.65; }
.tagnew, .tagkeep, .tagfix { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; vertical-align: 2px; white-space: nowrap; }
.tagnew { background: var(--violet-soft); color: var(--violet); }
.tagkeep { background: var(--ok-soft); color: var(--ok); }
.tagfix { background: var(--brand-soft); color: var(--brand-ink); }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: 1fr 1fr; } }
.stat-strip .s { padding: 14px 16px; }
.stat-strip .s b { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-strip .s span { font-size: 13px; color: var(--ink-2); }
.finding { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.finding p { color: var(--ink-2); margin-top: 2px; }
.screen .thumb { height: 92px; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow .st { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.flow .ar { color: var(--ink-3); }

/* Catatan kaki kartu berisi teks campur tautan: tetap satu paragraf */
.card-foot.small, .card-foot.muted { display: block; line-height: 1.6; }
.card-foot.small > .ico, .card-foot.muted > .ico { margin-right: 4px; }
@media (max-width: 720px) { .table.stack td::before { margin-right: auto; } .table.stack td > .sub { margin-left: 8px; } }
.gimg .pick, .gimg .use { z-index: 2; }
.gimg .use { box-shadow: 0 0 0 2px var(--surface); }

/* =========================================================
   Tampilan situs bantuan: PUBLIK (support.indohrm.com) & CLIENT (masuk via member)
   Header atas, tanpa sidebar admin. Halaman memakai <body data-no-shell>.
   ========================================================= */
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.site-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-top .in { max-width: 1160px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.site-brand:hover { text-decoration: none; }
.site-brand .logo-img { height: 26px; }
.site-brand .tag { font-size: 13px; font-weight: 700; color: var(--brand-ink); padding-left: 10px; border-left: 1px solid var(--border-strong); }
:root[data-theme="dark"] .site-brand .logo-img { filter: brightness(0) invert(1); }
.site-nav { display: flex; gap: 2px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }
.site-nav .count { font-size: 11px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 9px; padding: 0 6px; }
@media (max-width: 760px) {
  .site-top .in { padding: 8px 16px 0; gap: 8px; }
  .site-nav { order: 9; width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .site-brand .tag { display: none; }
}
.site-hero { background: var(--grad-brand); color: #fff; padding: 52px 24px 72px; position: relative; overflow: hidden; }
.site-hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 300px; height: 300px; background: url('favicon.png') no-repeat center / contain; filter: brightness(0) invert(1); opacity: .07; pointer-events: none; }
.site-hero .in { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.site-hero h1 { color: #fff; font-size: 34px; letter-spacing: -.02em; }
.site-hero p { color: rgba(255,255,255,.85); font-size: 16px; margin-top: 8px; }
.hero-search { margin: 24px auto 0; max-width: 640px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 12px 34px rgba(10,25,50,.28); }
.hero-search .ico { color: var(--ink-3); }
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font: 16px var(--font); color: var(--ink); height: 44px; min-width: 0; }
.hero-hints { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.8); }
.hero-hints a { color: #fff; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 12px; }
.hero-hints a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.suggest { max-width: 640px; margin: 6px auto 0; text-align: left; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
.suggest a { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: inherit; align-items: center; }
.suggest a:hover { background: var(--surface-2); text-decoration: none; }
.site-main { max-width: 1160px; width: 100%; margin: 0 auto; padding: 32px 24px 64px; flex: 1; }
.site-main.lift { margin-top: -40px; position: relative; z-index: 2; }
.site-sec { margin-top: 36px; }
.site-sec > h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px) { .mod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; color: inherit; }
.mod-card:hover { border-color: var(--brand); text-decoration: none; }
.mod-card h3 { font-size: 16px; }
.mod-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.mod-card li a { color: var(--ink-2); }
.mod-card li a:hover { color: var(--brand); }
.site-foot { border-top: 1px solid var(--border); background: var(--surface); }
.site-foot .in { max-width: 1160px; margin: 0 auto; padding: 22px 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); }
.site-foot a { color: var(--ink-2); }
.ed-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 600; }
.ed-pill .ed-chip { width: 22px; height: 22px; border-radius: 11px; font-size: 9px; }
.face-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.face-tag.admin { background: var(--brand-soft); color: var(--brand-ink); }
.face-tag.client { background: var(--ok-soft); color: var(--ok); }
.face-tag.publik { background: var(--amber-soft); color: var(--amber-ink); }

/* Percakapan tiket */
.convo { display: flex; flex-direction: column; gap: 14px; }
.msg { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; }
.msg .bub { border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 12px 14px; background: var(--surface); }
.msg .bub .who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.msg .bub .who b { font-size: 13.5px; }
.msg .bub p { font-size: 14.5px; line-height: 1.65; }
.msg.staff .bub { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 22%, var(--border)); }
.msg.internal .bub { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 50%, var(--border)); border-style: dashed; }
.msg.sys { grid-template-columns: 36px minmax(0,1fr); align-items: center; }
.msg.sys .line { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg .art-link { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: inherit; }
.msg .art-link:hover { border-color: var(--brand); text-decoration: none; }
.composer { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.composer .tabs { padding: 0 8px; }
.composer textarea { border: 0; width: 100%; min-height: 100px; padding: 12px 14px; font: 14.5px/1.6 var(--font); background: none; color: var(--ink); resize: vertical; outline: none; }
.composer .bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.sla { display: flex; flex-direction: column; gap: 10px; }
.sla .r { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.sla .r .grow b { display: block; }

/* =========================================================
   Lapisan ".web" — situs bantuan (publik & client) SATU NADA dengan indohrm.com
   Disalin dari website_indohrm/public/css/style.css + Layout.astro:
   navbar putih ber-bayangan · logo 50px · tombol gelap di kanan · hero terang
   (tint + radial) · judul section navy · kartu fitur tanpa garis, radius 16,
   ikon ubin bergradasi · section CTA bergradasi · footer navy #0f2240.
   ========================================================= */
.web { --navy: #142d52; --muted: #5b6b82; --tint: #f2f6fc; --tint-strong: #e3ecf9; --web-shadow: 0 10px 30px rgba(20,45,82,.08); background: #fff; color: #212529; line-height: 1.6; }
.web .site-top { background: #fff; backdrop-filter: none; border-bottom: 0; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.web .site-top .in { max-width: 1140px; min-height: 74px; padding: 0 16px; }
.web .site-brand .logo-img { height: 50px; width: auto; }
.web .site-brand .tag { font-size: 13px; color: var(--navy); border-left-color: #dee2e6; }
.web .site-nav { margin-left: auto; }
.web .site-nav a { background: none !important; color: rgba(33,37,41,.75); font-weight: 500; font-size: 15px; padding: 8px 10px; }
.web .site-nav a:hover { color: #212529; }
.web .site-nav a.active { color: var(--brand); }
.web .site-nav .ico { display: none; }
.web .site-top .ml-auto { margin-left: 0 !important; }
.btn.dark { background: #212529; border-color: #212529; color: #fff; }
.btn.dark:hover { background: #000; }
.web .btn { border-radius: 8px; font-weight: 600; }
.web .btn.primary { box-shadow: 0 6px 16px rgba(44,90,160,.25); }
.web .btn.lgw { height: auto; padding: 10px 20px; font-size: 16px; }
.web .btn.outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.web .btn.outline:hover { background: var(--brand); color: #fff; }
.web .btn.light { background: #fff; border-color: #fff; color: #212529; }
.web .btn.outline-light { background: transparent; border-color: #fff; color: #fff; }
.web .btn.outline-light:hover { background: #fff; color: #212529; }

/* Hero terang seperti .hero-section website */
.web .site-hero { color: #212529; padding: 64px 16px 72px;
  background: radial-gradient(900px 480px at 85% 10%, rgba(63,127,214,.22), transparent 70%),
              radial-gradient(700px 420px at 0% 100%, rgba(31,163,122,.12), transparent 70%),
              linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.web .site-hero::after { display: none; }
.web .site-hero h1 { color: var(--navy); font-size: 44px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.web .site-hero p { color: var(--muted); font-size: 19px; }
.web .hero-search { box-shadow: var(--web-shadow); border: 1px solid #dee2e6; border-radius: 12px; }
.web .hero-hints { color: var(--muted); }
.web .hero-hints a { background: var(--tint-strong); color: var(--brand); }
.web .hero-hints a:hover { background: var(--brand); color: #fff; }
.web .ed-pill { background: #fff; color: #212529; border: 1px solid #dee2e6 !important; padding: 4px 12px 4px 4px; cursor: pointer; }
.web .ed-pill[aria-pressed="true"] { border-color: var(--brand) !important; box-shadow: 0 0 0 2px var(--brand); color: var(--brand); }
@media (max-width: 768px) { .web .site-hero h1 { font-size: 32px; } .web .site-hero p { font-size: 16px; } .web .site-brand .logo-img { height: 40px; } }

/* Section seperti website: padding 80px, judul navy terpusat, latar tint */
.web .wsec { padding: 72px 16px; }
.web .wsec.alt { background: var(--tint); }
.web .wsec .in { max-width: 1140px; margin: 0 auto; }
.web .wsec .head { text-align: center; margin-bottom: 40px; }
.web .wsec .head h2 { color: var(--navy); font-size: 32px; font-weight: 700; }
.web .wsec .head p { color: var(--muted); font-size: 17px; margin-top: 8px; }
@media (max-width: 768px) { .web .wsec { padding: 52px 16px; } .web .wsec .head h2 { font-size: 26px; } }

/* Kartu fitur website: tanpa garis, radius 16, bayangan biru, naik saat hover */
.web .card { border: 0; border-radius: 16px; box-shadow: var(--web-shadow); }
.web .fcard { padding: 28px 24px; text-align: center; color: inherit; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; gap: 6px; }
.web .fcard:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(20,45,82,.14); text-decoration: none; }
.web .fcard h3 { font-size: 19px; color: #212529; margin-top: 10px; }
.web .fcard p { color: var(--muted); font-size: 15px; }
.web .fcard .more { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: 14px; }
.ficon { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #142d52 0%, #2c5aa0 55%, #3f7fd6 100%); color: #fff; box-shadow: 0 8px 18px rgba(44,90,160,.3); }
.ficon .ico { width: 28px; height: 28px; }
.ficon.green { background: linear-gradient(120deg, #13795b 0%, #1fa37a 100%); box-shadow: 0 8px 18px rgba(19,121,91,.3); }
.ficon.sm { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.ficon.sm .ico { width: 20px; height: 20px; }

/* Section CTA bergradasi (section.bg-primary website) */
.web .wcta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #142d52 0%, #2c5aa0 55%, #3f7fd6 100%); color: #fff; padding: 72px 16px; }
.web .wcta::before, .web .wcta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 70%); }
.web .wcta::before { width: 520px; height: 520px; top: -240px; right: -120px; }
.web .wcta::after { width: 420px; height: 420px; bottom: -260px; left: -120px; }
.web .wcta h2 { color: #fff; font-size: 32px; }
.web .wcta .lead { color: rgba(255,255,255,.85); font-size: 18px; }
.web .wcta .card { color: #212529; }

/* Footer navy website */
.wfoot { background: #0f2240; color: #fff; padding: 48px 16px 24px; }
.wfoot .in { max-width: 1140px; margin: 0 auto; }
.wfoot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .wfoot .cols { grid-template-columns: 1fr 1fr; } }
.wfoot h5 { font-size: 17px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.wfoot p { font-size: 14.5px; color: rgba(255,255,255,.85); }
.wfoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wfoot a { color: #fff; font-size: 14.5px; }
.wfoot a:hover { color: #7fb0f0; text-decoration: none; }
.wfoot .soc { display: flex; gap: 10px; margin-top: 18px; }
.wfoot .soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.wfoot .soc a:hover { background: var(--brand); color: #fff; }
.wfoot hr { border-top-color: rgba(255,255,255,.18); margin: 28px 0 18px; }
.wfoot .bottom { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.7); }

/* Situs .web tidak punya mode gelap (website juga tidak) */
:root[data-theme="dark"] .web, .web { color-scheme: light; }
.ed-pill .ed-chip { font-size: 11px; }
.stepper .lbl { background: none; height: auto; padding: 0; font-size: 13px; color: inherit; border-radius: 0; }
@media (max-width: 760px) { .web .site-top .btn.dark, .web .site-top .in > .flex:last-child { margin-left: auto; } }
