/* ==========================================================================
   Kru Kita — design system (keluarga visual yang sama dengan Selia)
   Hijau hutan + emas lembut di atas putih gading. Satu aksen, ruang lega,
   tipografi tenang. Font self-hosted: Plus Jakarta Sans (SIL OFL).
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #17201b;
  --ink-2: #3d4842;
  --muted: #6b746e;
  --line: #e7e3da;
  --line-strong: #d8d3c7;

  --brand: #1e4d3b;
  --brand-hover: #173e2f;
  --brand-soft: #e9f0ec;
  --brand-ink: #ffffff;
  --gold: #b38b3f;
  --gold-bright: #e2c17f;
  --gold-soft: #f6eedd;

  --ok: #2c7048;      --ok-soft: #e5f2e9;
  --info: #2f5f8a;    --info-soft: #e7eff7;
  --warn: #92600a;    --warn-soft: #fbf0d9;
  --danger: #b0352a;  --danger-soft: #fbe8e5;

  --hero-bg: #1e4d3b;
  --hero-ink: #f3f1ea;
  --hero-muted: #b9cdc3;
  --hero-line: rgba(255, 255, 255, .16);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 27, .05);
  --shadow: 0 1px 2px rgba(23, 32, 27, .04), 0 8px 24px -12px rgba(23, 32, 27, .12);
  --ring: 0 0 0 4px var(--brand-soft);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1311; --surface: #151b18; --surface-2: #19201c;
    --ink: #eaede9; --ink-2: #c9d0cb; --muted: #96a29b;
    --line: #242d28; --line-strong: #313c36;
    --brand: #86c9a8; --brand-hover: #9bd5b8; --brand-soft: #1b2c24; --brand-ink: #0d1a14;
    --gold: #d6b26a; --gold-soft: #2c2618;
    --ok: #86cc9d;     --ok-soft: #1a2c20;
    --info: #8fb8de;   --info-soft: #1a2633;
    --warn: #e4b867;   --warn-soft: #2e2616;
    --danger: #f0928a; --danger-soft: #331d1a;
    --hero-bg: #17352a; --hero-ink: #eef2ee; --hero-muted: #a8c2b5;
    --shadow-sm: none; --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0; }
small, .text-sm { font-size: .85rem; }
.muted { color: var(--muted); }
.faint { color: var(--muted); opacity: .8; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; display: block; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Monogram ---------- */
.brand-mark {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: #1e4d3b; color: #d6b26a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-mark.lg { width: 60px; height: 60px; border-radius: 17px; }
.brand-mark.lg .icon { width: 30px; height: 30px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { background: #24503f; color: #e2c17f; } }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-text span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* ---------- Topbar (navigasi horizontal) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a, .nav .nav-disabled {
  display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px;
  color: var(--muted); font-weight: 550; font-size: .92rem; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--brand); background: var(--brand-soft); }
.nav .nav-disabled { opacity: .55; cursor: default; }
.nav .soon {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold);
}

/* Menu pengguna */
.user-menu { position: relative; margin-left: auto; }
.user-menu > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 5px 8px 5px 5px; border-radius: 999px; border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--surface-2); border-color: var(--line); }
.user-menu .who { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.user-menu .who .n { font-size: .86rem; font-weight: 650; }
.user-menu .who .r { font-size: .75rem; color: var(--muted); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu > summary > .icon { color: var(--muted); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 252px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: pop .14s ease-out;
}
.menu-panel .menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-panel .menu-head strong { display: block; font-size: .9rem; }
.menu-panel .menu-head span { font-size: .8rem; color: var(--muted); }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px;
  color: var(--ink-2); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--ink); }
.menu-panel a.active { color: var(--brand); background: var(--brand-soft); }
.menu-panel .menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-panel form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Tab bawah di HP */
.tabbar { display: none; }

/* ---------- Halaman ---------- */
.content { padding-top: 36px; padding-bottom: 72px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .86rem; min-width: 0; }
.crumbs:empty { display: none; }
.crumbs a { color: var(--muted); font-weight: 550; }
.crumbs a:hover { color: var(--brand); }
.crumbs .current { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .sub { margin-top: 6px; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.center { justify-content: center; }

/* ---------- Avatar ---------- */
.avatar {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
.avatar-lg { width: 60px; height: 60px; font-size: 1.15rem; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .92rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); box-shadow: 0 6px 16px -8px rgba(30, 77, 59, .6); }
.btn-secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1c2a22; }
.btn-gold:hover { background: #c39a4c; color: #1c2a22; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: .84rem; border-radius: 9px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { padding: 13px 22px; font-size: .96rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.htmx-request { opacity: .65; pointer-events: none; }
.icon-btn { padding: 8px; }

/* ---------- Kartu ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.card-head .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.card-head .link {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  font-size: .82rem; font-weight: 600; transition: border-color .15s, color .15s, background .15s;
}
.card-head .link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.card-head .link .icon { width: 16px; height: 16px; transition: transform .15s; }
.card-head .link:hover .icon { transform: translateX(2px); }
.card-body { padding: 22px; }
.card-foot {
  display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px;
  border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Hero (kartu hijau) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px 26px;
  background: var(--hero-bg); color: var(--hero-ink); margin-bottom: 20px;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid var(--hero-line); box-shadow: 0 0 0 48px rgba(255, 255, 255, .025), 0 0 0 96px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--hero-muted); }
.hero h1, .hero h2 { color: var(--hero-ink); font-size: 1.6rem; font-weight: 700; margin-top: 6px; letter-spacing: -.025em; }
.hero .lead { color: var(--hero-muted); margin-top: 6px; max-width: 540px; }
.hero .page-actions .btn-secondary { background: rgba(255, 255, 255, .08); color: var(--hero-ink); border-color: var(--hero-line); }
.hero .page-actions .btn-secondary:hover { background: rgba(255, 255, 255, .14); }

.hero-steps { position: relative; z-index: 1; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero-steps li::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px;
  background: var(--hero-line); border-radius: 2px;
}
.hero-steps li:first-child::before { display: none; }
.hero-steps li.done::before, .hero-steps li.current::before { background: var(--gold); }
.hero-steps .dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--hero-line); color: var(--hero-muted); font-size: .8rem; font-weight: 650; background: var(--hero-bg);
}
.hero-steps .dot .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.hero-steps li.done .dot { background: var(--gold); border-color: var(--gold); color: #1c2a22; }
.hero-steps li.current .dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(214, 178, 106, .16); }
.hero-steps .label { font-size: .8rem; color: var(--hero-muted); line-height: 1.3; }
.hero-steps .label a { color: var(--gold-bright); font-weight: 650; }
.hero-steps li.current .label { color: var(--hero-ink); font-weight: 650; }
/* Di HP label stepper disembunyikan; langkah berikutnya ditulis di bawahnya */
.hero-next { display: none; position: relative; z-index: 1; margin-top: 16px; font-size: .88rem; color: var(--hero-muted); }
.hero-next a, .hero-next strong { color: var(--gold-bright); font-weight: 650; }

/* ---------- Kartu angka ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.stat:hover { color: inherit; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chip-icon, .stat-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.chip-icon.gold { background: var(--gold-soft); color: var(--gold); }
.chip-icon .icon, .stat-icon .icon { width: 20px; height: 20px; }
.stat .go { color: var(--line-strong); transition: color .15s, transform .15s; }
a.stat:hover .go { color: var(--brand); transform: translateX(2px); }
.stat .stat-label { color: var(--muted); font-size: .86rem; font-weight: 550; }
.stat .stat-value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .stat-note { font-size: .82rem; color: var(--muted); }
.stat-muted .stat-value { color: var(--muted); }
.stat-muted .chip-icon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: .76rem; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain { padding-left: 10px; }
.badge.plain::before { display: none; }
.badge-success { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-warning { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.badge-neutral { background: var(--surface-2); color: var(--muted); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.table .person .n { font-weight: 600; font-size: .93rem; color: var(--ink); }
.table .person .s { font-size: .82rem; color: var(--muted); margin-top: 1px; }
.table a.rowlink { color: inherit; }
.table a.rowlink:hover .n { color: var(--brand); }
.htmx-request .table-wrap, .htmx-swapping { opacity: .55; transition: opacity .15s; }

.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 400px; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.search .input { padding-left: 40px; }
.toolbar .select { padding-top: 9px; padding-bottom: 9px; font-size: .88rem; border-radius: 10px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.pagination .pages { display: flex; gap: 8px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.field .req, .req-inline { color: var(--danger); margin-left: 2px; }
.help { font-size: .8rem; color: var(--muted); }
p.help, .help.flex { display: flex; gap: 6px; align-items: center; }
.field .error, .error-text { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: .84rem; }
.error-text + .error-text { margin-top: 2px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .94rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--muted); opacity: .75; }
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.has-error .input, .has-error .select { border-color: var(--danger); }
.has-error .input:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b746e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.w-auto { width: auto; min-width: 170px; }
.input-group { display: flex; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); }
.form-section { padding: 24px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.form-section:last-of-type { border-bottom: 0; }
.form-section .desc h2 { font-size: 1rem; }
.form-section .desc p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ---------- Pesan ---------- */
.alert {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 12px;
  font-weight: 550; font-size: .92rem; color: var(--ink); background: var(--brand-soft);
}
.alert-success { background: var(--ok-soft); }
.alert-success > .icon { color: var(--ok); }
.alert-danger { background: var(--danger-soft); }
.alert-danger > .icon { color: var(--danger); }
.alert-info { background: var(--brand-soft); }
.alert-info > .icon { color: var(--brand); }
.alert-warning { background: var(--warn-soft); }
.alert-warning > .icon { color: var(--warn); }
.flash { margin-bottom: 24px; animation: pop .2s ease-out; }

/* ---------- Kosong ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 22px; text-align: center; color: var(--muted); }
.empty .empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.empty h3 { color: var(--ink); font-size: 1rem; }
.empty p { max-width: 400px; margin-bottom: 8px; }

/* ---------- Daftar definisi (detail) ---------- */
.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; }
.dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { color: var(--ink); font-weight: 550; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
.card-body > .dl > :nth-child(-n+2), .card-body > div > .dl > :nth-child(-n+2) { padding-top: 0; }

.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; }
.profile-head h1 { font-size: 1.35rem; }
.profile-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .86rem; margin-top: 6px; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Progress / bar ---------- */
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.bar-row .bar-label span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Upload ---------- */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 20px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
  cursor: pointer; transition: border-color .15s, background .15s; font-weight: 500; color: var(--ink-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .strong { color: var(--brand); }
.steps-inline { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-inline li { counter-increment: s; display: flex; gap: 12px; }
.steps-inline li::before {
  content: counter(s); width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; background: var(--gold-soft); color: var(--gold);
}

/* ---------- Halaman masuk ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 56px; background: var(--hero-bg); color: var(--hero-ink);
}
.auth-aside::after {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--hero-line); box-shadow: 0 0 0 64px rgba(255, 255, 255, .025), 0 0 0 128px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand, .auth-aside .brand:hover { color: var(--hero-ink); }
.auth-aside .brand-text span { color: var(--hero-muted); }
.auth-aside .brand-mark { background: rgba(255, 255, 255, .08); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.auth .brand { gap: 16px; }
.auth .brand-text strong { font-size: 1.45rem; letter-spacing: -.02em; }
.auth .brand-text span { font-size: .9rem; margin-top: 2px; }
.auth-copy { max-width: 440px; }
.auth-copy h2 { color: var(--hero-ink); font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.auth-copy h2 em { font-style: normal; color: var(--gold-bright); }
.auth-copy .lead { color: var(--hero-muted); margin-top: 14px; font-size: 1.02rem; }
.auth-features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--hero-muted); }
.auth-features li .icon { color: var(--gold-bright); margin-top: 3px; }
.auth-features b { color: var(--hero-ink); font-weight: 600; display: block; }
.auth-aside .foot { font-size: .8rem; color: var(--hero-muted); }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-card form { display: grid; gap: 18px; }
.auth-card .alt { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--muted); }
.auth-card .alt a { font-weight: 600; }
.auth-mobile-brand { display: none; }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 26px; }

/* ---------- Onboarding ---------- */
.onb { min-height: 100vh; }
.onb-top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.onb-wrap { max-width: 820px; margin: 0 auto; padding: 8px 20px 72px; }
.onb-wrap .hero { text-align: left; }
.stepper-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.stepper-pills span {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--hero-muted); border: 1px solid var(--hero-line);
}
.stepper-pills b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; border: 1.5px solid var(--hero-line); }
.stepper-pills .done b { background: var(--gold); border-color: var(--gold); color: #1c2a22; }
.stepper-pills .done b .icon { width: 13px; height: 13px; stroke-width: 3; }
.stepper-pills .on { color: var(--hero-ink); border-color: var(--gold); }
.stepper-pills .on b { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Halaman error ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-page .brand { justify-content: center; margin-bottom: 28px; }
.error-page .code { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; color: var(--line-strong); line-height: 1; }
.error-page h1 { margin-top: 12px; font-size: 1.5rem; }
.error-page p { color: var(--muted); margin: 8px 0 24px; }

/* ---------- Utilitas ---------- */
.strong { font-weight: 650; }
.mb { margin-bottom: 18px; }
.mt { margin-top: 20px; }
.mt-sm { margin-top: 8px; }
.flex-1 { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.row.wrap { flex-wrap: wrap; }
.row.wrap .help { flex: 1; min-width: 220px; }
.show-sm { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .user-menu .who { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .form-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { place-items: start center; padding-top: 56px; }
  .auth-mobile-brand { display: flex; margin-bottom: 36px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .topbar-inner { height: 60px; gap: 12px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar .nav-disabled {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
    font-size: .7rem; font-weight: 600; color: var(--muted); border-radius: 10px;
  }
  .tabbar .nav-disabled { opacity: .45; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .icon { width: 40px; height: 26px; padding: 3px 10px; border-radius: 999px; }
  .tabbar a.active .icon { background: var(--brand-soft); }
  .content { padding-bottom: 104px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { padding-bottom: 0; border-bottom: 0; }
  .dl > :nth-child(-n+2) { padding-top: 12px; }
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .table .person { min-width: 0; }
  .toolbar .search { flex-basis: 100%; max-width: none; }
  .toolbar .select { flex: 1; min-width: 0; width: auto; }
  .toolbar > .row { flex-basis: 100%; }
  .toolbar > .row .date-input { flex: 1; }
  .profile-head { flex-wrap: wrap; }
  .hero-steps .label { display: none; }
  .hero-next { display: block; }
}
@media (max-width: 640px) {
  .grid-4 { gap: 12px; }
  .stat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 0; padding: 16px 18px; align-items: center; }
  .stat-top { grid-row: 1 / span 3; margin: 0; }
  .stat-top .go { display: none; }
  .stat .stat-value { font-size: 1.3rem; }
  .hero { padding: 22px 20px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 1.45rem; }
  .content { padding-top: 24px; }
  /* Kartu angka ringkas 2x2 di HP */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-4 .stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
  .grid-4 .stat-top { display: none; }
  .grid-4 .stat .stat-label { font-size: .8rem; }
  .grid-4 .stat .stat-note { font-size: .74rem; }
  .card-head, .card-body, .toolbar, .pagination, .card-foot { padding-left: 18px; padding-right: 18px; }
  .table th, .table td { padding-left: 18px; padding-right: 18px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
}

/* ---------- Area admin platform ---------- */
.topbar.platform { background: var(--hero-bg); border-bottom-color: transparent; }
.topbar.platform .brand, .topbar.platform .brand:hover { color: var(--hero-ink); }
.topbar.platform .brand-text span { color: var(--gold-bright); font-weight: 600; }
.topbar.platform .brand-mark { background: rgba(255, 255, 255, .08); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.topbar.platform .nav a { color: var(--hero-muted); }
.topbar.platform .nav a:hover { color: var(--hero-ink); background: rgba(255, 255, 255, .06); }
.topbar.platform .nav a.active { color: var(--hero-ink); background: rgba(255, 255, 255, .12); }
.topbar.platform .user-menu > summary:hover, .topbar.platform .user-menu[open] > summary { background: rgba(255, 255, 255, .08); border-color: var(--hero-line); }
.topbar.platform .user-menu .who .n { color: var(--hero-ink); }
.topbar.platform .user-menu .who .r, .topbar.platform .user-menu > summary > .icon { color: var(--hero-muted); }
.platform-auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.platform-auth .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); max-width: 420px; }
.platform-auth .brand { margin-bottom: 28px; }
.platform-auth .brand-text span { color: var(--gold); font-weight: 600; }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.qr-box img { border-radius: 10px; background: #fff; }
.qr-box .secret { padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); letter-spacing: .06em; word-break: break-all; }
.input.otp { font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.alt-form { margin-top: 14px; text-align: center; }
.chip-icon.lg { width: 60px; height: 60px; border-radius: 17px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.suspended-note { padding-top: 0; }

/* ---------- Kelola tim ---------- */
.stack-sm { display: grid; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { margin-top: 4px; accent-color: var(--brand); }
.choice > span { display: grid; gap: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.warn-text { color: var(--warn); }
.narrow { max-width: 520px; margin: 0 auto; }
.credentials { max-width: 560px; margin: 0 auto; }
.center-text { text-align: center; }
.empty-icon.ok { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); }
.dl.creds { text-align: left; margin-top: 20px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.dl.creds dd.strong { font-size: 1.05rem; letter-spacing: .02em; }
[hidden] { display: none !important; }

/* ---------- Pilih hari kerja ---------- */
.day-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.day-picker .day { position: relative; cursor: pointer; }
.day-picker .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-picker .day span {
  display: inline-grid; place-items: center; min-width: 52px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); font-weight: 600; font-size: .88rem; color: var(--muted); background: var(--surface);
  transition: all .15s;
}
.day-picker .day input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.day-picker .day input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Absensi ---------- */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.seg-tabs a:hover { color: var(--ink); }
.seg-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-tabs .soon { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.date-input { width: auto; padding-top: 7px; padding-bottom: 7px; }
.toolbar.between { justify-content: space-between; }
.table tr.row-warn td { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.stat-alert { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.stat-alert .chip-icon { background: var(--danger-soft); color: var(--danger); }
.stat-value small { font-size: .9rem; font-weight: 600; }
.danger-text { color: var(--danger); }
.rate { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.rate .progress { flex: 1; }
.progress > span.warn { background: var(--gold); }
.table tfoot td { border-top: 1px solid var(--line-strong); background: var(--surface-2); }

/* ---------- Simulator WhatsApp ---------- */
.phone { display: flex; flex-direction: column; height: 640px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #efeae2; }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--hero-bg); color: var(--hero-ink); }
.phone-head strong { display: block; font-size: .95rem; }
.phone-head span { font-size: .75rem; color: var(--hero-muted); }
.phone-head .brand-mark { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: var(--gold-bright); }
.chat { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: normal; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble.sys { align-self: center; background: #fff7d6; font-size: .8rem; color: #54656f; }
.composer { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.composer .input { border-radius: 999px; }
.composer .btn { border-radius: 999px; padding: 10px 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 12px; background: #f0f2f5; }
.quick form { margin: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone { background: #0b141a; }
  :root:not([data-theme="light"]) .bubble { color: #e9edef; }
  :root:not([data-theme="light"]) .bubble.me { background: #005c4b; }
  :root:not([data-theme="light"]) .bubble.bot { background: #202c33; }
  :root:not([data-theme="light"]) .bubble.sys { background: #182229; color: #8696a0; }
  :root:not([data-theme="light"]) .composer, :root:not([data-theme="light"]) .quick { background: #111b21; }
}

.table th.text-right, .table td.text-right { text-align: right; }

/* ---------- Cuti ---------- */
.nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1c2a22; font-size: .72rem; font-weight: 700; }
.leave-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.leave-actions form { margin: 0; display: flex; gap: 6px; }
.leave-actions .input { padding: 6px 10px; font-size: .84rem; width: 160px; }
.leave-reason { color: var(--ink-2); font-size: .88rem; max-width: 320px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 820px) { .type-grid { grid-template-columns: minmax(0, 1fr); } .leave-actions .input { width: 100%; } }

.table tr.row-muted td { opacity: .55; }

/* ---------- Payroll ---------- */
.stat .stat-value.sm { font-size: 1.25rem; }
.ok-text { color: var(--ok); }
.payroll-table td, .payroll-table th { padding-left: 14px; padding-right: 14px; }
.slip { overflow: hidden; }
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.slip-head h2 { font-size: 1.2rem; margin-top: 4px; }
.slip-body { padding: 8px 22px 22px; }
.slip-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.slip-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.slip-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slip-table tr.sec td { padding-top: 18px; border-bottom: 1px solid var(--line-strong); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.slip-table tr.total td { padding-top: 14px; border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.05rem; }
.slip-foot { margin-top: 16px; line-height: 1.5; }
.print-only { display: none; }
@media print {
  .topbar, .tabbar, .noprint, .crumbs, .flash { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  .print-only { display: block; margin-bottom: 14px; }
}

.payroll-table { font-size: .9rem; }
.payroll-table .n { white-space: nowrap; }
.payroll-table td.num, .payroll-table th { white-space: nowrap; }
@media (max-width: 1240px) { .hide-md { display: none; } }
.wrap.wide { max-width: 1400px; }

/* THR di halaman payroll */
.thr-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.thr-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .thr-form { grid-template-columns: 1fr; } }

/* ---------- Panduan ---------- */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-toc { position: sticky; top: 84px; padding: 18px 20px; }
.guide-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.guide-toc a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; }
.guide-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.guide-body { display: grid; gap: 20px; min-width: 0; }
.guide-sec { scroll-margin-top: 84px; }
.guide-sec .card-head { gap: 12px; flex-wrap: wrap; }
.guide-roles { display: flex; gap: 6px; flex-wrap: wrap; }
.guide-sec p, .guide-sec ul { line-height: 1.65; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; margin: 22px 0 6px; color: var(--ink); }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 4px 0; }
.prose .alert, .prose .steps-inline, .prose .dl, .prose table { margin: 14px 0; }
.guide-sec .steps-inline { margin-top: 12px; }
.guide-cmds td { vertical-align: top; }
.guide-cmds td:first-child { white-space: nowrap; width: 1%; }
.kbd {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line); font-family: inherit;
}
.kbd.lg { font-size: .95rem; padding: 6px 12px; min-width: 96px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 14px 0 14px 26px; position: relative; font-weight: 650; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 7px; height: 7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .15s;
}
.faq details[open] summary::before { transform: rotate(45deg); top: 19px; }
.faq details p { padding-left: 26px; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.6; }
.guide-help .row { align-items: flex-start; gap: 14px; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc ol { grid-template-columns: 1fr 1fr; }
  .guide-cmds td:first-child { white-space: normal; }
}

/* Kartu panduan karyawan (siap cetak) */
.emp-card { overflow: hidden; }
.emp-card-head { background: var(--brand); color: #fff; padding: 28px 28px 24px; }
.emp-card-head .eyebrow { color: var(--gold-bright, #d6b26a); }
.emp-card-head h1 { margin: 6px 0 8px; font-size: 1.5rem; color: #fff; }
.emp-card-head p { margin: 0; opacity: .85; line-height: 1.5; }
.emp-card-number { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.emp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.emp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.emp-steps li div { display: grid; gap: 2px; padding-top: 4px; }
.emp-steps li span:not(.kbd) { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.emp-notes { margin: 20px 0 0; padding: 14px 14px 14px 32px; border-radius: 10px; background: var(--surface-2); line-height: 1.6; }
.emp-card-foot { padding: 12px 28px; border-top: 1px solid var(--line); }
@media print {
  .emp-card-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-toc { display: none; }
  .guide { grid-template-columns: 1fr; }
}
.prose code { font-size: .85em; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.code-block { margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; line-height: 1.7; overflow-x: auto; white-space: pre; }

/* ---------- Langganan & tagihan ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan-card:hover { border-color: var(--brand); }
.plan-card.featured { border-color: var(--gold); }
.plan-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-card input { position: absolute; top: 18px; right: 18px; accent-color: var(--brand); width: 18px; height: 18px; }
.plan-name { font-weight: 700; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-right: 26px; }
.plan-tag { color: var(--muted); font-size: .88rem; }
.plan-price { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.plan-price small { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan-min { font-size: .8rem; color: var(--muted); }
.plan-quote { font-size: .85rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); margin-top: 4px; }
.plan-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.plan-card li { display: flex; gap: 6px; align-items: flex-start; }
.plan-card li .icon { color: var(--brand); flex: none; margin-top: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; background: var(--surface); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.invoice-head h2 { font-size: 1.35rem; margin: 4px 0 2px; }
.invoice-total { font-size: 1.25rem; font-weight: 700; }
.pay-box { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--brand-soft); display: grid; gap: 12px; }
.pay-account { display: grid; gap: 2px; }
.pay-account strong { font-size: 1.4rem; letter-spacing: .04em; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.inline-confirm { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.input-sm { padding: 7px 10px; font-size: .85rem; width: 190px; }
@media (max-width: 640px) { .inline-confirm { flex-direction: column; align-items: stretch; } .input-sm { width: 100%; } }
