/* ==========================================================================
   SIMRS BSH — Design System
   Flat, bukan soft. Tanpa bayangan. Hierarki dari skala, blok warna, Outfit.
   ========================================================================== */

:root {
  /* Kanvas & netral hangat */
  --white: #FFFFFF;
  --cream: #FBF8F3;
  --sand: #F3E9DA;
  --muted: #F3EFE7;
  --muted-hover: #E9E2D6;
  --border: #E8E0D3;
  --ink: #1F1B18;
  --ink-body: #58514A;
  --ink-muted: #948B80;
  --ink-faint: #A99E92;
  --canvas: #E7E2D9;

  /* Brand & aksi */
  --primary: #16B4B3;
  --primary-dark: #109A99;
  --primary-deep: #0B7E7D;
  --primary-soft: #EAF8F8;

  /* Aksen status */
  --sage: #4F8A5B;
  --amber: #E3A345;
  --terracotta: #C86B4A;
  --clay: #B4564A;
  --clay-dark: #9E4B41;
  --clay-deeper: #8A4139;

  /* Status E-Complaint (kosakata sistem lama) */
  --st-terima: #E3A345;
  --st-survey: #7D8A4F;
  --st-proses: #16B4B3;
  --st-balas: #2F7E96;
  --st-tunda: #8A8079;
  --st-selesai: #4F8A5B;
  --st-batal: #B4564A;
  --taupe: #8A8079;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --r: 6px;
  --r-lg: 8px;
  --sidebar-w: 260px;
  --topbar-h: 72px;
  --t-fast: 200ms;
  --t-slow: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary-deep); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
svg.lucide { stroke-width: 2; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes pulseblk { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes toast-in { from { transform: translateX(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Fokus keyboard — ring ink 3px, offset 3px */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Tipografi
   -------------------------------------------------------------------------- */
.t-display { font-size: 60px; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.t-h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.t-h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.t-h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.t-h4 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.t-body { font-size: 16px; color: var(--ink-body); line-height: 1.55; }
.t-small { font-size: 14px; color: var(--ink-body); }
.t-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-body); }
.t-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.t-overline { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.t-mono { font-family: var(--mono); font-weight: 500; }
.t-num { font-variant-numeric: tabular-nums; }
.t-muted { color: var(--ink-muted); }
.t-body-color { color: var(--ink-body); }
.t-ink { color: var(--ink); }
.t-white { color: #fff; }
.t-primary { color: var(--primary-deep); }
.t-sage { color: var(--sage); }
.t-clay { color: var(--clay); }
.t-center { text-align: center; }
.t-right { text-align: right; }
.fw5 { font-weight: 500 } .fw6 { font-weight: 600 } .fw7 { font-weight: 700 } .fw8 { font-weight: 800 }

/* --------------------------------------------------------------------------
   Layout util
   -------------------------------------------------------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; min-width: 0; }
.flex-none { flex: none; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px } .gap-2 { gap: 8px } .gap-3 { gap: 12px } .gap-4 { gap: 16px } .gap-5 { gap: 20px } .gap-6 { gap: 24px } .gap-8 { gap: 32px }
.mt-1 { margin-top: 4px } .mt-2 { margin-top: 8px } .mt-3 { margin-top: 12px } .mt-4 { margin-top: 16px } .mt-5 { margin-top: 20px } .mt-6 { margin-top: 24px } .mt-7 { margin-top: 28px } .mt-8 { margin-top: 32px } .mt-9 { margin-top: 36px }
.mb-2 { margin-bottom: 8px } .mb-3 { margin-bottom: 12px } .mb-4 { margin-bottom: 16px } .mb-5 { margin-bottom: 20px }
.grid { display: grid; }
.grid > * { min-width: 0; } /* cegah konten panjang (tabel, tree) melebarkan kolom */
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.hide-mobile { }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
.hide-laptop { }
@media (max-width: 1279px) { .hide-laptop { display: none !important; } }
.show-mobile { display: none !important; }
@media (max-width: 767px) { .show-mobile { display: flex !important; } }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo { flex: none; }
.logo g { fill: var(--primary); }

/* --------------------------------------------------------------------------
   Tombol
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r);
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.btn .lucide { width: 18px; height: 18px; flex: none; }
.btn-lg { height: 56px; font-size: 17px; padding: 0 24px; }
.btn-lg .lucide { width: 20px; height: 20px; }
.btn-md { height: 52px; font-size: 15px; }
.btn-md .lucide { width: 20px; height: 20px; }
.btn-sm { height: 44px; font-size: 14px; padding: 0 16px; }
.btn-xs { height: 38px; font-size: 13px; padding: 0 14px; }
.btn-xs .lucide { width: 16px; height: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.04); }
.btn-primary:active { background: var(--primary-deep); transform: scale(.98); }

.btn-secondary { background: var(--muted); color: var(--ink); }
.btn-secondary:hover { background: var(--muted-hover); transform: scale(1.04); }
.btn-secondary:active { background: var(--border); transform: scale(.98); }

.btn-outline { background: transparent; color: var(--primary-deep); border: 4px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline:active { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }

.btn-outline-ink { background: transparent; color: var(--ink); border: 4px solid var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-outline-border { background: transparent; color: var(--ink); border: 4px solid var(--border); }
.btn-outline-border:hover { border-color: var(--ink); }

.btn-danger { background: var(--clay); color: #fff; }
.btn-danger:hover { background: var(--clay-dark); transform: scale(1.04); }
.btn-danger:active { background: var(--clay-deeper); transform: scale(.98); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3A332E; transform: scale(1.04); }

.btn-white { background: #fff; color: var(--primary-deep); font-weight: 700; }
.btn-white:hover { background: var(--muted); transform: scale(1.03); }
.btn-ghost-white { background: transparent; color: #fff; border: 4px solid rgba(255,255,255,.5); }
.btn-ghost-white:hover { border-color: #fff; }

.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  background: var(--border); color: var(--ink-faint); border-color: var(--border);
  cursor: not-allowed; transform: none !important;
}
.btn-secondary:disabled { background: var(--sand); }
.btn-outline:disabled { background: transparent; border-color: var(--border); }

.btn.is-loading { background: var(--primary-deep); color: #fff; pointer-events: none; }
.spinner {
  width: 18px; height: 18px; flex: none;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite; display: block;
}
.btn-lg .spinner { width: 20px; height: 20px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--muted); color: var(--ink); border: 0; border-radius: var(--r);
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--muted-hover); }
.icon-btn .lucide { width: 20px; height: 20px; }
.icon-btn-sm { width: 32px; height: 32px; }
.icon-btn-sm .lucide { width: 16px; height: 16px; }
.icon-btn-ink { background: var(--ink); color: #fff; }
.icon-btn-ink:hover { background: #3A332E; }
.icon-btn-primary { background: var(--primary); color: #fff; }
.icon-btn-primary:hover { background: var(--primary-dark); }
.icon-btn-white { background: #fff; }

/* --------------------------------------------------------------------------
   Formulir
   -------------------------------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: 20px; }
.grid > .field, .flex > .field { margin-top: 0; } /* field berdampingan: label harus sejajar */
.label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-body); margin-bottom: 8px;
}
.label-sm { font-size: 11px; margin-bottom: 6px; }
.field:focus-within > .label { color: var(--primary-deep); }
.field.is-error > .label { color: var(--clay); }
.field.is-disabled > .label { color: var(--ink-muted); }

.input {
  display: flex; align-items: center; gap: 10px;
  height: 52px; width: 100%; padding: 0 16px;
  background: var(--muted); border: 2px solid transparent; border-radius: var(--r);
  font-size: 15px; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.input > .lucide { width: 20px; height: 20px; color: var(--ink-muted); flex: none; }
.input > input, .input > select, .input > textarea {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; padding: 0;
  font-size: 15px; color: var(--ink);
}
.input > input::placeholder, .input > textarea::placeholder { color: var(--ink-muted); }
.input:focus-within { background: #fff; border-color: var(--primary); padding: 0 14px; }
.input:focus-within > .lucide { color: var(--primary-deep); }
.input.is-error { background: #fff; border-color: var(--clay); padding: 0 14px; }
.input.is-error > .lucide { color: var(--clay); }
.input.is-disabled, .input[aria-disabled="true"] { background: var(--sand); color: var(--ink-faint); }
.input.is-disabled > .lucide, .input.is-disabled > input { color: var(--ink-faint); }
.input-sm { height: 44px; font-size: 14px; padding: 0 12px; }
.input-sm > .lucide { width: 16px; height: 16px; }
.input-sm:focus-within { padding: 0 10px; }
.input-password > input { letter-spacing: .18em; font-size: 16px; }
.input-password > input::placeholder { letter-spacing: 0; font-size: 15px; }
.input .eye-toggle {
  width: 36px; height: 36px; flex: none; margin-right: -4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r); background: var(--muted); color: var(--ink-body);
}
.input .eye-toggle .lucide { width: 18px; height: 18px; color: inherit; }
.input select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.input.has-select { position: relative; }
.input.has-select > select { padding-right: 26px; text-overflow: ellipsis; } /* ruang untuk chevron */
.input.has-select > .chev { position: absolute; right: 14px; pointer-events: none; color: var(--ink-body); width: 18px; height: 18px; }

.textarea {
  display: block; width: 100%; min-height: 128px; padding: 14px 16px; resize: vertical;
  background: var(--muted); border: 2px solid transparent; border-radius: var(--r);
  font-size: 15px; line-height: 1.55; color: var(--ink); outline: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.textarea::placeholder { color: var(--ink-muted); }
.textarea:focus { background: #fff; border-color: var(--primary); }
.help { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.error-msg { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--clay); }
.error-msg .lucide { width: 16px; height: 16px; }

/* Checkbox / radio / toggle */
.check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--ink-body); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 22px; height: 22px; flex: none; border: 2px solid var(--border); border-radius: 6px; background: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check .box .lucide { width: 15px; height: 15px; opacity: 0; }
.check input:checked ~ .box { background: var(--primary); border-color: var(--primary); }
.check input:checked ~ .box .lucide { opacity: 1; }
.check input:checked ~ .txt { color: var(--ink); font-weight: 500; }
.check input:focus-visible ~ .box { outline: 3px solid var(--ink); outline-offset: 3px; }
.check.radio .box { border-radius: 50%; background: #fff; }
.check.radio input:checked ~ .box { background: #fff; border: 6px solid var(--primary); }
.check.radio .box .lucide { display: none; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-body); }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track { width: 52px; height: 28px; flex: none; border-radius: 999px; background: var(--border); padding: 3px; display: flex; align-items: center; transition: background var(--t-fast); }
.toggle .knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--t-fast); }
.toggle input:checked ~ .track { background: var(--primary); }
.toggle input:checked ~ .track .knob { transform: translateX(24px); }
.toggle input:checked ~ .txt { color: var(--ink); font-weight: 600; }
.toggle input:focus-visible ~ .track { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Chip filter */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 2px solid var(--border); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-body); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip .lucide { width: 15px; height: 15px; display: none; }
.chip:hover { border-color: var(--ink-muted); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-active .lucide, .chip[aria-pressed="true"] .lucide { display: block; }
.chip-sm { height: 36px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.chip-sm .lucide { width: 14px; height: 14px; }
/* Chip berwarna status (Semua Tiket) */
.chip[data-color="terima"].is-active { background: var(--st-terima); border-color: var(--st-terima); color: var(--ink); }
.chip[data-color="survey"].is-active { background: var(--st-survey); border-color: var(--st-survey); }
.chip[data-color="proses"].is-active { background: var(--st-proses); border-color: var(--st-proses); }
.chip[data-color="balas"].is-active { background: var(--st-balas); border-color: var(--st-balas); }
.chip[data-color="tunda"].is-active { background: var(--st-tunda); border-color: var(--st-tunda); }
.chip[data-color="selesai"].is-active { background: var(--st-selesai); border-color: var(--st-selesai); }
.chip[data-color="batal"].is-active { background: var(--st-batal); border-color: var(--st-batal); }

/* Area unggah */
.dropzone {
  border: 4px dashed var(--border); border-radius: var(--r-lg); background: #fff;
  padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.dropzone .dz-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--ink-body); }
.dropzone .dz-icon .lucide { width: 26px; height: 26px; }
.dropzone .dz-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.dropzone .dz-sub { font-size: 13px; color: var(--ink-muted); }
.dropzone.is-over, .dropzone:hover { border: 4px solid var(--primary); background: var(--primary-soft); }
.dropzone.is-over .dz-icon { background: var(--primary); color: #fff; }
.dropzone.is-over .dz-title, .dropzone.is-over .dz-sub { color: var(--primary-deep); }
.dropzone-row { flex-direction: row; text-align: left; padding: 22px; gap: 16px; }

/* --------------------------------------------------------------------------
   Badge, chip status, avatar
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; white-space: nowrap;
  background: var(--sand); color: var(--ink);
}
.badge .lucide { width: 14px; height: 14px; }
.badge-sm { padding: 4px 10px; font-size: 10px; letter-spacing: .08em; }
.badge-xs { padding: 2px 8px; font-size: 9px; letter-spacing: .08em; }
.badge-sm .lucide { width: 12px; height: 12px; }
/* prioritas */
.badge-cito { background: var(--terracotta); color: #fff; }
.badge-tinggi { background: var(--amber); color: var(--ink); }
.badge-normal { background: var(--primary); color: #fff; }
.badge-rendah { background: var(--ink-muted); color: #fff; }
.badge-biasa { background: transparent; border: 2px solid var(--border); color: var(--ink-body); padding-top: 3px; padding-bottom: 3px; }
/* status sistem lama */
.badge-terima { background: var(--st-terima); color: var(--ink); }
.badge-survey { background: var(--st-survey); color: #fff; }
.badge-proses { background: var(--st-proses); color: #fff; }
.badge-balas { background: var(--st-balas); color: #fff; }
.badge-tunda { background: var(--st-tunda); color: #fff; }
.badge-selesai { background: var(--st-selesai); color: #fff; }
.badge-batal { background: var(--st-batal); color: #fff; }
/* generik */
.badge-baru { background: var(--sand); color: var(--ink); }
.badge-dikerjakan { background: var(--amber); color: var(--ink); }
.badge-part { background: var(--primary); color: #fff; }
.badge-ink { background: var(--ink); color: #fff; }
.badge-white { background: #fff; color: var(--primary-deep); }
.badge-muted { background: var(--muted); color: var(--ink-body); }
.badge-info { background: var(--st-balas); color: #fff; }
.badge-sage { background: var(--sage); color: #fff; }
.badge-clay { background: var(--clay); color: #fff; }
.badge-amber { background: var(--amber); color: var(--ink); }

.count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; }
.count-amber { background: var(--amber); color: var(--ink); }
.count-terracotta { background: var(--terracotta); color: #fff; }
.count-ink { background: var(--ink); color: #fff; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r); background: var(--primary-deep); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-ink { background: var(--ink); }
.avatar-terracotta { background: var(--terracotta); }
.avatar-sand { background: var(--sand); color: var(--ink-body); }

.icon-circle { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; }
.icon-circle .lucide { width: 50%; height: 50%; }

/* --------------------------------------------------------------------------
   Kartu KPI
   -------------------------------------------------------------------------- */
.kpi { padding: 28px 26px 26px; display: block; color: inherit; transition: transform var(--t-fast); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; }
.kpi-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kpi-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--t-fast); }
.kpi-icon .lucide { width: 22px; height: 22px; }
.kpi-value { font-size: 60px; font-weight: 800; line-height: 1; margin-top: 16px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 24px; font-weight: 700; }
.kpi-sub { font-size: 13px; margin-top: 8px; }
a.kpi:hover { transform: scale(1.02); }
a.kpi:hover .kpi-icon { transform: scale(1.1); }
.kpi-primary { background: var(--primary); color: #fff; }
.kpi-primary .kpi-icon { background: rgba(255,255,255,.18); }
a.kpi-primary:hover { background: var(--primary-dark); }
.kpi-terracotta { background: var(--terracotta); color: #fff; }
.kpi-terracotta .kpi-icon { background: rgba(255,255,255,.2); }
.kpi-cream { background: var(--cream); color: var(--ink); }
.kpi-cream .kpi-title, .kpi-cream .kpi-sub { color: var(--ink-body); }
.kpi-white { background: #fff; color: var(--ink); }
.kpi-white .kpi-title, .kpi-white .kpi-sub { color: var(--ink-body); }
.kpi-ink { background: var(--ink); color: #fff; }
.kpi-ink .kpi-title { color: var(--ink-muted); }
.kpi-ink .kpi-sub { color: var(--muted); }
.kpi-sage { background: var(--sage); color: #fff; }
.kpi-sand { background: var(--sand); color: var(--ink); }
.kpi-sand .kpi-title, .kpi-sand .kpi-sub { color: var(--ink-body); }
.kpi-compact { padding: 24px 22px; }
.kpi-compact .kpi-title { font-size: 11px; }
.kpi-compact .kpi-value { margin-top: 12px; }
.kpi-compact .kpi-sub { font-size: 12px; }

/* --------------------------------------------------------------------------
   Tab, breadcrumb, tooltip, pagination
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--border); }
.tab {
  padding: 12px 2px; margin-bottom: -2px; border: 0; border-bottom: 4px solid transparent; background: none;
  font-size: 15px; font-weight: 500; color: var(--ink-muted); cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tab:hover { color: var(--ink); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--primary); }
.tab-lg { font-size: 16px; }
.tab-panel[hidden] { display: none; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.breadcrumb .lucide { width: 14px; height: 14px; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.tooltip-bubble { background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 11px; border-radius: var(--r); white-space: nowrap; }
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 11px; border-radius: var(--r);
  white-space: nowrap; display: none; pointer-events: none; z-index: 20; animation: fade-in var(--t-fast);
}
/* display:none (bukan opacity) agar tooltip tidak ikut memperlebar halaman */
[data-tip]:hover::after, [data-tip]:focus-visible::after { display: block; }

.pagination { display: flex; gap: 4px; }
.page-btn {
  width: 38px; height: 38px; border: 0; border-radius: var(--r); background: #fff; color: var(--ink-body);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.page-btn .lucide { width: 16px; height: 16px; }
.page-btn:hover { background: var(--muted); }
.page-btn.is-active { background: var(--ink); color: #fff; }
.page-btn:disabled { color: var(--ink-muted); cursor: default; background: #fff; }

/* --------------------------------------------------------------------------
   Tabel (grid-based, mengikuti mockup)
   -------------------------------------------------------------------------- */
.table-wrap { border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.table-wrap.bordered { border: 2px solid var(--border); }
.table-scroll { overflow-x: auto; }
.tbl { display: grid; min-width: 100%; }
.tbl-head, .tbl-row { display: grid; align-items: center; gap: 0; padding: 14px 16px; }
.tbl-head {
  background: var(--sand); padding: 13px 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-body);
}
.tbl-row { font-size: 13px; color: var(--ink); border-left: 4px solid transparent; padding-left: 12px; transition: background var(--t-fast); }
.tbl-row:nth-child(even) { background: var(--cream); }
.tbl-row:hover { background: var(--muted); }
.tbl-row.is-selected { background: var(--primary-soft); border-left-color: var(--primary); }
.tbl-row.is-cito { border-left-color: var(--terracotta); }
.tbl-head > div, .tbl-row > div { min-width: 0; padding-right: 10px; }
.tbl-head > div:last-child, .tbl-row > div:last-child { padding-right: 0; }
.tbl-row .cell-mono { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--primary-deep); }
.tbl-row .cell-title { font-weight: 600; color: var(--ink); }
.tbl-row .cell-sub { font-size: 12px; color: var(--ink-body); }
.tbl-row .cell-muted { color: var(--ink-muted); font-size: 12px; }
.tbl-row .cell-actions { display: flex; justify-content: flex-end; gap: 6px; padding-right: 0; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--sand); font-size: 13px; color: var(--ink-body); gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Daftar tiket (baris dengan border-left prioritas)
   -------------------------------------------------------------------------- */
.ticket-list { display: flex; flex-direction: column; gap: 2px; }
.ticket-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: inherit;
  background: #fff; border-left: 4px solid transparent; transition: background var(--t-fast);
}
.ticket-row:nth-child(odd) { background: var(--cream); }
.ticket-row:hover { background: var(--muted); }
.ticket-row.p-cito { border-left-color: var(--terracotta); }
.ticket-row.p-tinggi { border-left-color: var(--amber); }
.ticket-row.p-normal { border-left-color: var(--primary); }
.ticket-row.p-rendah { border-left-color: var(--ink-muted); }
.ticket-row .tr-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.ticket-row .tr-meta { font-size: 13px; color: var(--ink-body); margin-top: 3px; }
.ticket-row .tr-meta-sm { font-size: 12px; margin-top: 3px; }
.ticket-row .tr-code { font-size: 12px; font-weight: 600; color: var(--ink-muted); width: 76px; text-align: right; flex: none; }
.ticket-row .chev { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; }
.tl-item + .tl-item { margin-top: 0; }
.tl-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.tl-icon .lucide { width: 20px; height: 20px; }
.tl-body { padding-bottom: 18px; }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl-sub { font-size: 13px; color: var(--ink-body); margin-top: 2px; }
.tl-item.is-pending .tl-icon { background: var(--sand); color: var(--ink-faint); }
.tl-item.is-pending .tl-title, .tl-item.is-pending .tl-sub { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Skeleton, empty state
   -------------------------------------------------------------------------- */
.skel { background: var(--sand); border-radius: 4px; animation: pulseblk 1.4s ease-in-out infinite; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px; }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--ink-body); }
.empty .empty-icon .lucide { width: 30px; height: 30px; }
.empty .empty-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.empty .empty-sub { font-size: 13px; color: var(--ink-body); }

/* --------------------------------------------------------------------------
   Alert / banner / callout
   -------------------------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); font-size: 14px; font-weight: 500; line-height: 1.45; }
.alert .lucide { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-danger { background: var(--clay); color: #fff; }
.alert-warn { background: var(--amber); color: var(--ink); font-weight: 600; }
.alert-info { background: var(--cream); color: var(--ink-body); font-weight: 400; }
.alert-sand { background: var(--sand); color: var(--ink); }
.alert-cito { background: var(--terracotta); color: #fff; font-weight: 600; line-height: 1.5; }
.alert-cito .lucide { width: 22px; height: 22px; }

.banner { display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: var(--amber); color: var(--ink); }
.banner > .lucide { width: 26px; height: 26px; flex: none; }
.banner-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.banner-sub { font-size: 13px; opacity: .8; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); animation: toast-in var(--t-slow) ease-out; }
.toast > .lucide { width: 20px; height: 20px; flex: none; }
.toast-title { font-size: 14px; font-weight: 600; }
.toast-sub { font-size: 12px; opacity: .85; }
.toast .toast-close { background: none; border: 0; padding: 0; color: inherit; display: flex; }
.toast .toast-close .lucide { width: 18px; height: 18px; }
.toast-success { background: var(--sage); color: #fff; }
.toast-warn { background: var(--amber); color: var(--ink); }
.toast-danger { background: var(--clay); color: #fff; }
.toast-info { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Modal & drawer
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 900; background: rgba(31,27,24,.88);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade-in var(--t-fast);
}
.overlay[hidden] { display: none; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.modal-body { overflow: auto; flex: 1; min-height: 0; }
.modal-actions { flex: none; }
.modal-body { padding: 24px 24px 20px; }
.modal-actions { display: flex; gap: 2px; }
.modal-actions .btn { flex: 1; height: 52px; border-radius: 0; }
.modal-actions .btn:hover { transform: none; }
.modal-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.modal-text { font-size: 14px; color: var(--ink-body); margin-top: 6px; line-height: 1.5; }

.overlay-drawer { justify-content: flex-end; padding: 0; }
.drawer { width: min(480px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; }
.drawer-head { background: var(--sand); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }

/* Item notifikasi */
.notif-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; border-radius: 6px;
  background: var(--primary-soft); border-left: 4px solid var(--primary); transition: background var(--t-fast), opacity var(--t-fast);
}
.notif-item.is-cito { background: #FBEDE7; border-left-color: var(--terracotta); }
.notif-item:hover { background: var(--muted); }
.notif-item .tr-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.notif-item .tr-meta { font-size: 12px; color: var(--ink-body); margin-top: 3px; }
.notif-item .notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); flex: none; }
.notif-item.is-read { background: #fff; border-left-color: var(--border); opacity: .72; }
.notif-item.is-read .tr-title { font-weight: 500; }
.notif-item.is-read .notif-dot { display: none; }
.notif-item.is-read:hover { opacity: 1; background: var(--cream); }

/* --------------------------------------------------------------------------
   App shell — sidebar, topbar, konten
   -------------------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; background: #fff; }

.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden;
  z-index: 50;
}
.sidebar-brand { padding: 22px 20px 20px; display: flex; align-items: center; gap: 12px; color: inherit; }
.sidebar-brand .brand-name { font-size: 15px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; }
.sidebar-brand .brand-sub { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--ink-muted); margin-top: 3px; }
.sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A332E transparent; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--ink-muted); padding: 0 14px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--r);
  color: var(--muted); font-size: 14px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast);
}
.nav-item .lucide { width: 20px; height: 20px; color: var(--ink-muted); flex: none; transition: color var(--t-fast); }
.nav-item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover .lucide { color: var(--muted); }
.nav-item.is-active { background: var(--primary); color: #fff; font-weight: 600; }
.nav-item.is-active .lucide { color: #fff; }
.nav-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sidebar-nav-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-foot { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.duty-card { background: rgba(255,255,255,.06); border-radius: var(--r); padding: 14px; }
.duty-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--ink-muted); margin-bottom: 8px; }
.duty-name { font-size: 14px; font-weight: 600; color: #fff; }
.duty-unit { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.duty-shift { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--primary); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; color: #fff; }
.duty-shift .lucide { width: 13px; height: 13px; }
.sidebar-addr { font-size: 11px; color: var(--ink-body); line-height: 1.5; padding: 0 4px 4px; }
.sidebar-close { display: none; }
.sidebar-toggle {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r);
  background: rgba(255,255,255,.06); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-toggle .lucide { width: 18px; height: 18px; flex: none; }
.sidebar-toggle .ic-open { display: none; }

/* Sidebar diciutkan (hanya ikon) — desktop saja */
@media (min-width: 1024px) {
  .sidebar { transition: width var(--t-slow); }
  :root.sidebar-collapsed { --sidebar-w: 72px; }
  .sidebar-collapsed .sidebar-brand { padding: 22px 0 20px; justify-content: center; }
  .sidebar-collapsed .sidebar-brand > div,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-item > span,
  .sidebar-collapsed .sidebar-nav-foot,
  .sidebar-collapsed .sidebar-toggle > span,
  .sidebar-collapsed .sidebar-toggle .ic-close { display: none; }
  .sidebar-collapsed .sidebar-toggle .ic-open { display: block; }
  .sidebar-collapsed .sidebar-nav { padding: 8px 10px; gap: 10px; }
  .sidebar-collapsed .nav-group + .nav-group { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
  .sidebar-collapsed .nav-item, .sidebar-collapsed .sidebar-toggle { justify-content: center; padding: 0; position: relative; }
  .sidebar-collapsed .nav-item .count { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
}
@media (max-width: 1023px) { .sidebar-toggle { display: none; } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.topbar {
  height: var(--topbar-h); flex: none; background: #fff; display: flex; align-items: center; gap: 24px;
  padding: 0 28px; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; margin: 0; order: -2; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-menu-btn { order: -3; }
/* Elemen tambahan dengan order:-1 tampil tepat setelah judul */
.topbar-search { flex: 1 1 140px; min-width: 0; max-width: 360px; }
.topbar-search .input { height: 44px; font-size: 14px; padding: 0 14px; }
.topbar > .input, .topbar > .btn, .topbar > .badge { flex: none; } /* elemen tambahan (topbar_extra) tidak menyusut */
.topbar-search .input > .lucide { width: 18px; height: 18px; }
.topbar-spacer { flex: 1; }
.topbar-bell { position: relative; }
.topbar-bell .count { position: absolute; top: 6px; right: 6px; }
.topbar-user { display: flex; flex: none; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 0; background: none; border: 0; border-radius: var(--r); color: inherit; text-align: left; }
.topbar-bell { flex: none; }
.topbar-user:hover { background: var(--muted); padding-left: 0; }
.topbar-user .u-text { display: block; }
.topbar-user .u-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.topbar-user .u-unit { display: block; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.topbar-user > .lucide { width: 18px; height: 18px; color: var(--ink-body); }
.topbar-menu-btn { display: none; }
.seg { display: flex; flex: none; background: var(--muted); border-radius: var(--r); padding: 4px; gap: 2px; }
.seg-btn { height: 36px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-body); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.seg-btn .lucide { width: 16px; height: 16px; flex: none; }
@media (max-width: 767px) { .seg-btn { padding: 0 12px; gap: 0; } }
.seg-btn.is-active { background: var(--ink); color: #fff; }

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.section { padding: 28px 32px; }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }

/* Hero gelap dengan bentuk geometris */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero > * { position: relative; }
.shape { position: absolute; background: var(--primary); pointer-events: none; }
.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 24px; }
.shape-ring { background: transparent; border: 6px solid var(--primary); border-radius: 16px; }

/* Bottom nav mobile */
.bottom-nav { display: none; }

/* Sidebar backdrop mobile */
.sidebar-backdrop { display: none; }

/* --------------------------------------------------------------------------
   Kanban
   -------------------------------------------------------------------------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.kanban-col { border-radius: var(--r); transition: background var(--t-fast); }
.kanban-head { padding: 14px 16px; border-radius: var(--r) var(--r) 0 0; display: flex; align-items: center; justify-content: space-between; }
.kanban-head .kh-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.kanban-head .kh-count { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kanban-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; min-height: 80px; border: 4px solid transparent; border-top: 0; border-radius: 0 0 var(--r) var(--r); transition: border-color var(--t-fast), background var(--t-fast); }
.kanban-col.is-over { background: var(--primary-soft); }
.kanban-col.is-over .kanban-body { border-color: var(--primary); padding: 8px; }
.kanban-col[data-status="terima"] .kanban-head { background: var(--st-terima); color: var(--ink); }
.kanban-col[data-status="survey"] .kanban-head { background: var(--st-survey); color: #fff; }
.kanban-col[data-status="proses"] .kanban-head { background: var(--st-proses); color: #fff; }
.kanban-col[data-status="balas"] .kanban-head { background: var(--st-balas); color: #fff; }
.kanban-col[data-status="tunda"] .kanban-head { background: var(--st-tunda); color: #fff; }
.kanban-col[data-status="selesai"] .kanban-head { background: var(--st-selesai); color: #fff; }
.kcard {
  background: #fff; border-left: 4px solid var(--ink-muted); border-radius: 0 var(--r) var(--r) 0; padding: 14px;
  cursor: grab; transition: transform var(--t-fast); color: inherit; display: block;
}
.kcard:hover { transform: scale(1.02); }
.kcard.is-dragging { transform: rotate(-2deg); opacity: .9; cursor: grabbing; }
.kcard.p-cito { border-left-color: var(--terracotta); }
.kcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcard-code { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--primary-deep); }
.kcard-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.4; }
.kcard-loc { font-size: 11px; color: var(--ink-body); margin-top: 6px; }
.kcard-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; font-weight: 600; }
.kcard-note .lucide { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Grafik sederhana (bar berlabel, bertumpuk, kolom)
   -------------------------------------------------------------------------- */
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: flex; align-items: center; gap: 12px; }
.hbar-label { width: 170px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink-body); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; display: flex; align-items: center; gap: 8px; }
.hbar-fill { height: 26px; background: var(--primary); border-radius: 0 3px 3px 0; }
.hbar-val { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stacked { display: flex; height: 56px; border-radius: var(--r); overflow: hidden; }
.stacked > div { display: flex; align-items: center; padding: 0 18px; gap: 10px; min-width: 0; }
.stacked .sv { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stacked .sl { font-size: 13px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; align-items: center; }
.col .cv { font-size: 11px; font-weight: 700; color: var(--ink); }
.col .cb { width: 100%; background: var(--sand); transition: background var(--t-fast); }
.col .cb.is-hi { background: var(--primary); }
.col .cb.is-peak { background: var(--terracotta); }
.col:hover .cb { background: var(--primary-dark); }
.cols-axis { display: flex; gap: 6px; margin-top: 8px; }
.cols-axis span { flex: 1; font-size: 11px; color: var(--ink-muted); text-align: center; }
.progress { height: 14px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); }
.progress-white { background: rgba(255,255,255,.22); }
.progress-white > div { background: #fff; }

/* --------------------------------------------------------------------------
   Halaman auth (login / ganti sandi)
   -------------------------------------------------------------------------- */
.auth { min-height: 100vh; display: flex; background: #fff; }
.auth-side { width: 55%; padding: 72px 72px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side.has-photo { background-size: cover; background-position: center; }
.auth-side.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.55) 45%, rgba(20,20,20,.88) 100%); }
.auth-side.has-photo .logo { background: #fff; border-radius: 14px; padding: 8px; }
.auth-form { width: 45%; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-mobile-hero { flex-direction: column; margin: -56px -64px 28px; padding: 40px 28px 32px; }
.auth-footnote { font-size: 12px; color: var(--ink-muted); letter-spacing: .04em; margin-top: 28px; }
.strength { display: flex; gap: 6px; margin-top: 12px; }
.strength > div { height: 10px; flex: 1; background: var(--sand); border-radius: 3px; transition: background var(--t-fast); }
.req { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.req .req-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-faint); }
.req .req-icon .lucide { width: 14px; height: 14px; }
.req.is-ok { color: var(--ink); }
.req.is-ok .req-icon { background: var(--sage); color: #fff; }

/* --------------------------------------------------------------------------
   Kartu pilihan (kategori, prioritas, skor)
   -------------------------------------------------------------------------- */
.choice-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px; display: flex; align-items: center; gap: 20px;
  background: var(--muted); color: var(--ink-muted); cursor: pointer; border: 0; text-align: left; width: 100%;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); min-height: 160px;
}
.choice-card:hover { transform: scale(1.01); }
.choice-card .cc-icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-muted); }
.choice-card .cc-icon .lucide { width: 34px; height: 34px; }
.choice-card > span:not(.cc-icon):not(.cc-check):not(.cc-shape) { min-width: 0; flex: 1; }
.choice-card .cc-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.choice-card .cc-sub { font-size: 13px; margin-top: 4px; line-height: 1.45; }
.choice-card .cc-check { position: absolute; right: 20px; bottom: 20px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: none; align-items: center; justify-content: center; color: var(--primary-deep); }
.choice-card .cc-check .lucide { width: 18px; height: 18px; }
.choice-card .cc-shape { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: #fff; opacity: 0; right: -50px; top: -60px; }
.choice-card.is-selected { background: var(--primary); color: #fff; }
.choice-card.is-selected .cc-icon { color: var(--primary-deep); }
.choice-card.is-selected .cc-sub { opacity: .92; }
.choice-card.is-selected .cc-check { display: flex; }
.choice-card.is-selected .cc-shape { opacity: .08; }

.prio-card {
  border: 2px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; align-items: center; gap: 16px;
  background: transparent; cursor: pointer; text-align: left; width: 100%; transition: background var(--t-fast), border-color var(--t-fast);
}
.prio-card .pc-radio { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; background: #fff; flex: none; }
.prio-card .pc-title { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--ink-body); }
.prio-card .pc-sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.prio-card:hover { border-color: var(--ink-muted); }
.prio-card.is-selected { background: var(--terracotta); border-color: var(--terracotta); }
.prio-card.is-selected .pc-radio { border: 6px solid #fff; background: transparent; }
.prio-card.is-selected .pc-title { color: #fff; font-weight: 800; letter-spacing: .06em; }
.prio-card.is-selected .pc-sub { color: #fff; opacity: .92; }
.prio-card.prio-biasa.is-selected { background: var(--primary); border-color: var(--primary); }

.score-opt { border: 2px solid var(--border); border-radius: var(--r-lg); padding: 14px; display: flex; align-items: center; gap: 12px; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.score-opt .so-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-body); }
.score-opt .so-icon .lucide { width: 18px; height: 18px; }
.score-opt .so-title { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--ink-body); }
.score-opt .so-sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.score-opt .so-check { display: none; margin-left: auto; width: 20px; height: 20px; }
.score-opt.is-selected { border-color: transparent; background: var(--amber); }
.score-opt.is-selected .so-icon { background: rgba(255,255,255,.25); color: var(--ink); }
.score-opt.is-selected .so-title, .score-opt.is-selected .so-sub { color: var(--ink); }
.score-opt.is-selected .so-sub { opacity: .85; }
.score-opt.is-selected .so-check { display: block; color: var(--ink); }

/* Status pick (detail tiket) */
.status-pick { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--r); border: 2px solid var(--border); background: transparent; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-body); cursor: pointer; transition: all var(--t-fast); }
.status-pick:hover { border-color: var(--ink-muted); }
.status-pick.is-active[data-status="balas"] { background: var(--st-balas); border-color: var(--st-balas); color: #fff; }
.status-pick.is-active[data-status="tunda"] { background: var(--st-tunda); border-color: var(--st-tunda); color: #fff; }
.status-pick.is-active[data-status="selesai"] { background: var(--st-selesai); border-color: var(--st-selesai); color: #fff; }
.status-pick.is-active[data-status="batal"] { background: var(--st-batal); border-color: var(--st-batal); color: #fff; }
.status-pick.is-active[data-status="proses"] { background: var(--st-proses); border-color: var(--st-proses); color: #fff; }
.status-pick.is-active[data-status="survey"] { background: var(--st-survey); border-color: var(--st-survey); color: #fff; }

/* Star rating */
.stars { display: flex; gap: 10px; align-items: center; }
.star { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink-faint); display: flex; align-items: center; justify-content: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.star .lucide { width: 30px; height: 30px; }
.star.is-on { background: var(--amber); color: var(--ink); }
.star:hover { transform: scale(1.06); }

/* Foto thumbnail */
.thumb { width: 104px; height: 104px; background: var(--sand); border-radius: var(--r); position: relative; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); flex: none; }
.thumb .lucide { width: 26px; height: 26px; }
.thumb .thumb-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: var(--r); background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; }
.thumb .thumb-x .lucide { width: 14px; height: 14px; }
.thumb-add { background: transparent; border: 2px solid var(--border); flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-muted); cursor: pointer; }
.thumb-add .lucide { width: 22px; height: 22px; }
.thumb-wide { width: 132px; height: 100px; cursor: pointer; overflow: hidden; }
.thumb-wide .thumb-hover { position: absolute; inset: 0; background: rgba(31,27,24,.55); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; opacity: 0; transition: opacity var(--t-fast); }
.thumb-wide:hover .thumb-hover { opacity: 1; }

/* Definition grid */
.def-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--cream); border-radius: var(--r); overflow: hidden; }
.def-grid > div { padding: 16px 18px; }
.def-grid > div:nth-child(4n+2), .def-grid > div:nth-child(4n+3) { background: #fff; }
.def-k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.def-v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }

/* Summary rows (ringkasan tiket) */
.sum-list { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: var(--r); overflow: hidden; }
.sum-row { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sum-row:nth-child(even) { background: var(--cream); }
.sum-k { font-size: 13px; color: var(--ink-muted); }
.sum-v { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }

/* Panel putih */
.panel { background: #fff; border-radius: var(--r); padding: 18px; }
.panel + .panel { margin-top: 10px; }
.panel-lg { padding: 22px; border-radius: var(--r-lg); }

/* Tree */
.tree { display: flex; flex-direction: column; gap: 2px; }
.tree-node { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--r); background: transparent; border: 0; width: 100%; text-align: left; color: var(--ink); font-size: 14px; cursor: pointer; transition: background var(--t-fast); }
.tree-node:hover { background: var(--muted); }
.tree-node .lucide { width: 16px; height: 16px; color: var(--ink-body); flex: none; }
.tree-node .tn-icon { width: 18px; height: 18px; color: var(--ink); }
.tree-node .tn-label { flex: 1; font-weight: 700; }
.tree-node .tn-count { font-size: 11px; color: var(--ink-muted); }
.tree-node.lvl-1 { background: #fff; }
.tree-node.lvl-2 { height: 38px; padding-left: 26px; font-size: 13px; }
.tree-node.lvl-2 .tn-label { font-weight: 600; color: var(--ink-body); }
.tree-node.lvl-3 { height: 34px; padding-left: 50px; font-size: 13px; }
.tree-node.lvl-3 .tn-label { font-weight: 400; }
.tree-node.is-selected { background: var(--primary-soft); border-left: 4px solid var(--primary); padding-left: 22px; }
.tree-node.is-selected .tn-label, .tree-node.is-selected .lucide { color: var(--primary-deep); }
.tree-node.is-selected.lvl-3 { padding-left: 46px; }
.tree-node[aria-expanded="false"] .tn-chev { transform: rotate(-90deg); }
.tree-node .tn-chev { transition: transform var(--t-fast); }
.tree-children[hidden] { display: none; }

/* Error page */
.errpage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.errpage-inner { display: flex; align-items: center; gap: 36px; max-width: 760px; width: 100%; }
.errpage .err-code { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--ink-body); }
.errpage .err-title { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.errpage .err-text { font-size: 15px; color: var(--ink-body); margin-top: 12px; line-height: 1.55; max-width: 380px; }
.errpage .err-art { width: 140px; height: 140px; flex: none; position: relative; }

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */
/* Padding blok konten yang mengikuti .section (hero sapaan, panel samping, dsb.) */
.pad-section { padding: 28px 40px; }
.tabs-bar { padding: 0 32px; }
.tabs-bar .tab { flex: none; }

/* 5 kolom × 220px + sidebar baru muat di ≥1440 — di bawah itu kanban jadi deretan scroll */
@media (max-width: 1439px) {
  .kanban { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .kanban-col { flex: 0 0 260px; scroll-snap-align: start; }
}
@media (max-width: 1279px) {
  .choice-card .cc-title { font-size: 20px; }
  .choice-card .cc-icon { width: 60px; height: 60px; }
  .choice-card .cc-icon .lucide { width: 28px; height: 28px; }
  /* Topbar lebih rapat saat sidebar masih tampil tapi layar sempit */
  .topbar { gap: 16px; padding: 0 20px; }
  .topbar-title { font-size: 26px; }
  .topbar-user .u-text, .topbar-user > .lucide { display: none; }
  .topbar-user { padding: 0; }
}

@media (max-width: 1023px) {
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100vh; transform: translateX(-100%);
    transition: transform var(--t-slow); z-index: 100;
  }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(31,27,24,.6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar-close { display: inline-flex; position: absolute; right: 12px; top: 20px; background: rgba(255,255,255,.08); color: #fff; }
  .sidebar-close:hover { background: rgba(255,255,255,.14); }
  .topbar-menu-btn { display: inline-flex; }
  .topbar { gap: 12px; padding: 0 16px; }
  .topbar-title { font-size: 24px; }
  .topbar-user .u-text, .topbar-user > .lucide { display: none; }
  .topbar-user { padding: 0; }
  .auth-side { display: none; }
  .auth-form { width: 100%; align-items: flex-start; padding: 56px 28px 28px; }
  .auth-form-inner { max-width: 480px; margin: 0 auto; }
  .auth-mobile-hero { margin: -56px -28px 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 24px 20px; }
  .pad-section { padding: 24px 20px; }
  .tabs-bar { padding: 0 20px; }
  .def-grid { grid-template-columns: 1fr; }
  .def-grid > div:nth-child(even) { background: #fff; }
  .def-grid > div:nth-child(odd) { background: var(--cream); }
}

@media (max-width: 767px) {
  .topbar { height: 64px; gap: 10px; padding: 0 12px; }
  .topbar-title { font-size: 20px; flex: 1; }
  .topbar-search { display: none; }
  .topbar-spacer { display: none; }
  .bottom-nav { display: flex; position: sticky; bottom: 0; height: 68px; flex: none; background: var(--ink); align-items: center; padding: 0 8px; z-index: 60; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-muted); font-size: 10px; font-weight: 500; }
  .bottom-nav a .lucide { width: 22px; height: 22px; }
  .bottom-nav a.is-active { color: var(--primary); font-weight: 600; }
  .fab { position: fixed; right: 20px; bottom: 88px; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; z-index: 70; }
  .fab .lucide { width: 28px; height: 28px; }
  .fab:hover { background: var(--primary-dark); }
  .kpi { padding: 18px; }
  .kpi-value { font-size: 48px; margin-top: 8px; }
  .kpi-value small { font-size: 18px; }
  .kpi-icon { display: none; }
  .kpi-sub { display: none; }
  .t-display { font-size: 30px; letter-spacing: -.02em; }
  .t-h1 { font-size: 30px; }
  .t-h2 { font-size: 24px; }
  .section { padding: 20px 16px; }
  .pad-section { padding: 20px 16px; }
  .tabs-bar { padding: 0 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hbar-label { width: 110px; font-size: 12px; }
  .stacked .sl { display: none; }
  .errpage-inner { flex-direction: column; align-items: flex-start; }
  .tabs { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; font-size: 14px; }
  .modal-actions { flex-direction: column; }
  /* di kolom, flex:1 membuat tinggi tombol runtuh — kembalikan tinggi tetapnya */
  .modal-actions .btn { flex: none; height: 52px; }
  .modal .grid { grid-template-columns: 1fr !important; } /* form modal: kolom bertumpuk di HP */
  .modal-body { padding: 20px 18px 16px; }
  .drawer-body { padding: 16px; }
  .ticket-row { gap: 12px; padding: 14px; }
  .banner { padding: 16px; gap: 12px; }
  .banner-title { font-size: 17px; }
  .empty { padding: 24px 16px; }
  .stars { gap: 6px; }
  .star { width: 48px; height: 48px; }
  .star .lucide { width: 26px; height: 26px; }
  .thumb { width: 88px; height: 88px; }
  .thumb-wide { width: 112px; height: 86px; }
  .dropzone { padding: 20px 16px; }
  .dropzone-row { padding: 16px; gap: 12px; }
  .dropzone .dz-icon { width: 44px; height: 44px; }
  .dropzone .dz-icon .lucide { width: 20px; height: 20px; }
  .tbl-foot { padding: 12px 14px; }
  .tbl-foot .pagination { width: 100%; justify-content: center; }
}
@media (min-width: 768px) { .fab { display: none; } }

/* --------------------------------------------------------------------------
   Cetak / simpan PDF
   -------------------------------------------------------------------------- */
.print-header, .print-only { display: none; }
@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #fff !important; font-size: 12px; }
  body { color: var(--ink); }
  .app { display: block; min-height: 0; }
  .main { display: block; }
  .content { display: block; }

  /* Sembunyikan kerangka aplikasi & elemen interaktif */
  .sidebar, .sidebar-backdrop, .topbar, .bottom-nav, .fab, .overlay, .toast, [data-tip]::after,
  .btn, .icon-btn, .tabs, .pagination, .textarea, .input, form, .status-pick, .show-mobile,
  .thumb-hover, .shape { display: none !important; }
  .dropzone { display: none !important; }
  .print-only { display: block !important; }

  /* Kop dokumen */
  .print-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 0 0 12px; margin-bottom: 18px; border-bottom: 3px double var(--ink); }
  .print-header .ph-brand { display: flex; align-items: center; gap: 14px; }
  .print-header .logo { width: 52px; height: 52px; }
  .print-header .ph-name { font-size: 18px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; }
  .print-header .ph-tagline { font-size: 11px; font-weight: 600; color: var(--primary-dark); margin-top: 2px; }
  .print-header .ph-addr { font-size: 10px; color: var(--ink-body); margin-top: 4px; }
  .print-header .ph-doc { text-align: right; }
  .print-header .ph-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
  .print-header .ph-sub { font-size: 12px; font-weight: 600; color: var(--ink-body); margin-top: 2px; }
  .print-header .ph-meta { font-size: 10px; color: var(--ink-muted); margin-top: 6px; }

  /* Tata letak umum */
  .section, .pad-section { padding: 14px 0 !important; }
  .grid { gap: 12px !important; }
  .kpi { padding: 14px 16px !important; border-radius: 6px; break-inside: avoid; }
  .kpi-value { font-size: 28px !important; }
  .kpi-title { font-size: 10px !important; }
  .kpi-sub { font-size: 10px !important; }
  .t-h1 { font-size: 24px !important; }
  .t-h2 { font-size: 20px !important; }
  .t-h4 { font-size: 14px !important; }
  a { color: inherit !important; text-decoration: none !important; }

  /* Tabel: tanpa scroll, tidak terpotong di tengah baris */
  .table-scroll { overflow: visible !important; }
  .table-scroll > div { min-width: 0 !important; }
  .table-wrap { border-radius: 4px; }
  .tbl-head { background: var(--ink) !important; color: #fff !important; font-size: 10px; padding: 8px 10px !important; }
  .tbl-row { padding: 8px 10px !important; break-inside: avoid; border-bottom: 1px solid var(--border); font-size: 11px; }
  .tbl-row:hover { background: none; }
  .tbl-row > div, .tbl-head > div { white-space: normal; }
  .panel, .alert, .def-grid, .kpi, .table-wrap .tbl-row { break-inside: avoid; }
  .def-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .def-grid > div { padding: 8px 12px !important; }
  .stars { gap: 6px !important; }
  .star { width: 28px !important; height: 28px !important; }
  .star .lucide { width: 16px !important; height: 16px !important; }
  h2, h3, .t-h4 { break-after: avoid; }
}

/* --------------------------------------------------------------------------
   Tabel → kartu di layar sempit (opt-in: .table-wrap.tbl-cards)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tbl-cards .table-scroll { overflow: visible; }
  .tbl-cards .table-scroll > div { min-width: 0 !important; }
  .tbl-cards .tbl-head { display: none; }
  .tbl-cards .tbl-row {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 14px 14px 14px 12px; border-bottom: 1px solid var(--border);
  }
  .tbl-cards .tbl-row:last-child { border-bottom: 0; }
  .tbl-cards .tbl-row > div { padding-right: 0; }
  .tbl-cards .tbl-row::after { content: ""; flex-basis: 100%; height: 0; order: 1; }
  .tbl-cards .tbl-row .cell-title { order: -2; flex: 1 1 100%; font-size: 15px; line-height: 1.35; }
  .tbl-cards .tbl-row > div:has(> .cell-title) { order: -2; flex: 1 1 100%; }
  .tbl-cards .tbl-row > div:has(> .t-mono) { order: -1; }
  .tbl-cards .tbl-row .cell-title .cell-muted { display: block; font-weight: 500; margin-top: 2px; }
  .tbl-cards .tbl-row .cell-mono { order: -1; font-size: 12px; }
  .tbl-cards .tbl-row .cell-actions { order: 0; margin-left: auto; }
  .tbl-cards .tbl-row .cell-sub { order: 2; flex: 0 1 auto; font-size: 12px; }
  .tbl-cards .tbl-row .cell-sub:has(+ .cell-sub)::after { content: " ·"; color: var(--ink-faint); }
  .tbl-cards .tbl-row .cell-sub .cell-muted, .tbl-cards .tbl-row .cell-sub > .fw6 { display: inline; margin-left: 4px; }
  .tbl-cards .tbl-row .cell-sub .cell-muted::before { content: "· "; }
  .tbl-cards .tbl-row .empty { flex-basis: 100%; }
  .nd-banner-ok{flex-direction: column;}
}

/* ================================================================ NOTA DINAS */
.badge-sand { background: var(--sand); color: var(--ink-body); }
.count-primary { background: var(--primary); color: #fff; }
.count-info { background: var(--st-balas); color: #fff; }
/* chip penerima: outline = hasil pencarian, soft = terpilih */
.nd-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; background: #fff; border: 2px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink); max-width: 100%; }
.nd-chip .lucide { width: 15px; height: 15px; color: var(--ink-muted); flex: none; }
.nd-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-chip.is-solid { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.nd-chip.is-solid .lucide { color: var(--primary-deep); }
.nd-chip .nd-chip-x { width: 22px; height: 22px; margin-left: 2px; margin-right: -4px; border: 0; background: transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-muted); padding: 0; }
.nd-chip .nd-chip-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.nd-chip-sm { height: 28px; padding: 0 8px; font-size: 12px; }
/* stepper jalur persetujuan */
.nd-stepper { display: flex; align-items: flex-start; }
.nd-step { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.nd-step-head { display: flex; align-items: center; gap: 10px; }
.nd-step-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--muted); color: var(--ink-muted); border: 2px solid var(--border); }
.nd-step-dot .lucide { width: 19px; height: 19px; }
.nd-step-line { flex: 1; height: 2px; background: var(--border); }
.nd-step.is-done .nd-step-dot { background: var(--sage); color: #fff; border-color: var(--sage); }
.nd-step.is-done .nd-step-line { background: var(--sage); }
.nd-step.is-now .nd-step-dot { background: var(--primary); color: #fff; border-color: var(--primary); }
.nd-step.is-back .nd-step-dot { background: var(--st-balas); color: #fff; border-color: var(--st-balas); }
.nd-step.is-reject .nd-step-dot { background: var(--clay); color: #fff; border-color: var(--clay); }
.nd-step-body { padding-right: 16px; }
.nd-step-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ink-muted); }
.nd-step-role { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 3px; line-height: 1.3; }
.nd-step-name { font-size: 12px; color: var(--ink-body); margin-top: 2px; }
.nd-step-meta { font-size: 11px; color: var(--ink-muted); margin-top: 5px; }
.nd-plh { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--primary-soft); font-size: 10px; font-weight: 700; color: var(--primary-deep); letter-spacing: .04em; }
.nd-plh .lucide { width: 12px; height: 12px; }
/* mini-stepper posisi dokumen */
.nd-mini { display: inline-flex; align-items: center; gap: 4px; }
.nd-mini i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--border); display: block; }
.nd-mini i.on { background: var(--primary); border-color: var(--primary); }
.nd-mini i.done { background: var(--sage); border-color: var(--sage); }
/* kartu berkas */
.nd-file { background: #fff; border: 2px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.nd-file-icon { width: 44px; height: 52px; border-radius: 6px; background: var(--sand); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-faint); }
.nd-file-icon .lucide { width: 22px; height: 22px; }
.nd-file-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-file-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; flex: none; }
.nd-file-state .lucide { width: 14px; height: 14px; }
/* pratinjau dokumen (bingkai gelap) */
.nd-preview { background: var(--ink); border-radius: 8px; padding: 16px; }
.nd-preview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #F3EFE7; font: 500 12px var(--mono); }
.nd-preview-head .fname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-preview-body { background: #fff; border-radius: 4px; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.nd-preview-body iframe, .nd-preview-body img { width: 100%; border: 0; flex: 1; min-height: 520px; background: #fff; object-fit: contain; }
.nd-preview-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--ink-body); text-align: center; min-height: 420px; }
.nd-preview-empty .lucide { width: 40px; height: 40px; color: var(--ink-faint); }
/* banner dikembalikan / selesai */
.nd-banner { border-radius: 8px; padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; color: #fff; }
.nd-banner > .lucide { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.nd-banner-title { font-size: 16px; font-weight: 700; }
.nd-banner-sub { font-size: 13px; margin-top: 4px; opacity: .95; line-height: 1.5; }
.nd-banner-info { background: var(--st-balas); }
.nd-banner-ok { background: var(--sage); }
.nd-banner-dark { background: var(--ink); }
/* segmented keputusan / pilihan */
.nd-seg { display: flex; gap: 2px; background: var(--muted); border-radius: 6px; padding: 4px; position: relative; }
.nd-seg label { flex: 1; min-width: 0; }
.nd-seg input { position: absolute; opacity: 0; pointer-events: none; }
.nd-seg span { height: 44px; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-body); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); padding: 0 8px; white-space: nowrap; }
.nd-seg span .lucide { width: 16px; height: 16px; }
.nd-seg-sm span { height: 38px; font-size: 13px; }
.nd-seg input:checked + span { color: #fff; font-weight: 700; background: var(--ink); }
.nd-seg input[value="setuju"]:checked + span { background: var(--sage); }
.nd-seg input[value="kembalikan"]:checked + span { background: var(--st-balas); }
.nd-seg input[value="tolak"]:checked + span { background: var(--clay); }
.nd-seg input[value="penting"]:checked + span { background: var(--terracotta); }
.nd-seg input[value="sedang"]:checked + span { background: var(--amber); color: var(--ink); }
.nd-seg input[value="selesai"]:checked + span { background: var(--sage); }
.nd-seg input:focus-visible + span { outline: 3px solid var(--primary-soft); }
/* daftar pilih penerima */
.nd-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; text-align: left; width: 100%; font-family: inherit; }
.nd-pick:hover { border-color: var(--ink-muted); }
.nd-pick.is-on { background: var(--primary-soft); border-color: var(--primary); }
.nd-pick .nd-pick-ic { width: 32px; height: 32px; border-radius: 6px; background: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-body); }
.nd-pick.is-on .nd-pick-ic { background: #fff; color: var(--primary-deep); }
.nd-pick .nd-pick-ic .lucide { width: 16px; height: 16px; }
.nd-pick-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.nd-pick-s { font-size: 12px; color: var(--ink-muted); margin-top: 1px; }
.nd-pick-tag { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; background: var(--sand); color: var(--ink-body); flex: none; }
/* langkah editor (pengaturan) */
.nd-step-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; background: #fff; }
.nd-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
/* lembar A4 */
.nd-a4 { width: 794px; max-width: 100%; min-height: 1123px; background: #fff; border: 2px solid var(--border); border-radius: 4px; padding: 56px 60px; display: flex; flex-direction: column; margin: 0 auto; color: var(--ink); }
.nd-a4 table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nd-a4 th { background: var(--ink); color: #fff; text-align: left; padding: 8px 10px; font-size: 10px; letter-spacing: .08em; }
.nd-a4 td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.nd-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.nd-kv dt { color: var(--ink-muted); font-weight: 600; }
.nd-kv dd { margin: 0; color: var(--ink); }
@media print { .nd-a4 { border: 0; padding: 0; min-height: 0; width: 100%; } }
@media (max-width: 1023px) { .nd-stepper { flex-direction: column; gap: 14px; } .nd-step-line { display: none; } .nd-preview-body iframe { min-height: 380px; } }

/* ==========================================================================
   PENDATAAN ASET — komponen khas modul (Design System seksi 11)
   Isi QR selalu JetBrains Mono. Border 2px, radius 6/8px, tanpa bayangan.
   ========================================================================== */
@keyframes as-scan { from { top: 8% } to { top: 92% } }

/* 01 · badge tambahan */
.as-pill-dash { background: #fff; border: 2px dashed var(--border); color: var(--ink-body); padding-top: 2px; padding-bottom: 2px; }
.as-pill-ol { background: #fff; border: 2px solid var(--border); color: var(--ink); padding-top: 2px; padding-bottom: 2px; }
.as-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--muted); font-size: 11px; font-weight: 600; color: var(--ink-body); white-space: nowrap; }
.as-tag .lucide { width: 13px; height: 13px; }
.as-tag.is-sand { background: var(--sand); color: var(--ink); }

/* 02 · viewfinder pemindai */
.as-vf { position: relative; width: 100%; background: #2A2521; overflow: hidden; }
.as-vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-vf-mask { position: absolute; inset: 0; background: rgba(20, 17, 15, .45); }
.as-vf-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 250px; height: 250px; max-width: 64vw; max-height: 64vw; }
.as-vf-frame i { position: absolute; width: 40px; height: 40px; }
.as-vf-frame i.c1 { left: 0; top: 0; border-top: 5px solid var(--primary); border-left: 5px solid var(--primary); border-top-left-radius: 8px; }
.as-vf-frame i.c2 { right: 0; top: 0; border-top: 5px solid var(--primary); border-right: 5px solid var(--primary); border-top-right-radius: 8px; }
.as-vf-frame i.c3 { left: 0; bottom: 0; border-bottom: 5px solid var(--primary); border-left: 5px solid var(--primary); border-bottom-left-radius: 8px; }
.as-vf-frame i.c4 { right: 0; bottom: 0; border-bottom: 5px solid var(--primary); border-right: 5px solid var(--primary); border-bottom-right-radius: 8px; }
.as-vf-line { position: absolute; left: 8px; right: 8px; height: 3px; background: var(--primary); border-radius: 2px; animation: as-scan 2.2s ease-in-out infinite alternate; }
.as-vf.is-hit .as-vf-frame { background: rgba(22, 180, 179, .12); border: 3px solid var(--primary); border-radius: 8px; }
.as-vf.is-hit .as-vf-line { display: none; }
.as-vf-top, .as-vf-bot { position: absolute; left: 0; right: 0; z-index: 2; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.as-vf-top { top: 0; }
.as-vf-bot { bottom: 0; }
.as-vf-hint { text-align: center; color: #fff; font-size: 14px; font-weight: 600; }
.as-vf-hint span { display: block; font-size: 12px; font-weight: 500; color: #E9E2D6; margin-top: 3px; }
.as-vf-btn { width: 44px; height: 44px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.as-vf-btn.is-on { background: var(--primary); border-color: var(--primary); }

/* 03 · kartu hasil pindai (3 keadaan) */
.as-card { background: #fff; border: 2px solid var(--sand); border-radius: 8px; overflow: hidden; }
.as-card-head { padding: 12px 16px; display: flex; align-items: center; gap: 10px; background: var(--sand); color: var(--ink); }
.as-card-head .lucide { width: 20px; height: 20px; flex: none; }
.as-card-title { font-size: 15px; font-weight: 700; }
.as-card-sub { font-size: 12px; opacity: .85; }
.as-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.as-card.is-taut { border-color: var(--primary); }
.as-card.is-taut .as-card-head { background: var(--primary); color: #fff; }
.as-card.is-bentrok { border-color: var(--clay); }
.as-card.is-bentrok .as-card-head { background: var(--clay); color: #fff; }

/* 04 · bilah sesi pendataan */
.as-sbar { background: var(--ink); border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 18px; color: #fff; flex-wrap: wrap; }
.as-sbar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; animation: pulseblk 1.6s infinite; }
.as-sbar-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--primary); }
.as-sbar-room { font-size: 16px; font-weight: 700; }
.as-sbar-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.as-sbar-num { font-family: var(--mono); font-size: 22px; line-height: 1; }
.as-sbar-lab { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.as-sbar-sep { width: 2px; height: 36px; background: rgba(255, 255, 255, .12); }
.as-sbar.is-mobile { padding: 12px 14px; gap: 12px; flex-wrap: nowrap; }
.as-sbar.is-mobile .as-sbar-room { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 05 · chip lokasi terkunci */
.as-lock { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 12px; border-radius: 6px; background: var(--primary-soft); border: 2px solid var(--primary); font-size: 13px; font-weight: 600; color: var(--primary-deep); }
.as-lock.is-full { width: 100%; }
.as-lock .lucide { width: 14px; height: 14px; flex: none; }
.as-lock-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; padding: 0 0 0 10px; border-left: 2px solid var(--primary); white-space: nowrap; cursor: pointer; }
.as-unlock { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 12px; border-radius: 6px; background: #fff; border: 2px dashed var(--amber); font-size: 13px; font-weight: 600; color: var(--ink); }

/* 06 · kartu perbandingan penautan (label ke aset) */
.as-cmp { display: flex; align-items: stretch; gap: 0; }
.as-cmp-side { flex: 1; min-width: 0; border: 2px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.as-cmp-side.is-aset { background: #fff; border-color: var(--primary); }
.as-cmp-arrow { flex: none; width: 56px; display: flex; align-items: center; justify-content: center; }
.as-cmp-arrow span { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* 07 · baris saran pencocokan */
.as-sug { display: grid; align-items: center; gap: 14px; padding: 14px 18px; grid-template-columns: 36px minmax(0, 1.6fr) 150px 150px 180px 118px 118px; }
.as-sug.is-top { background: var(--primary-soft); }
.as-sug:nth-child(even):not(.is-top) { background: var(--cream); }
.as-sug > div { min-width: 0; }
.as-sug-n { width: 28px; height: 28px; border-radius: 50%; background: var(--muted); color: var(--ink-body); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.as-sug.is-top .as-sug-n { background: var(--primary); color: #fff; }
.as-sug-why { font-size: 11px; font-weight: 600; color: var(--primary-deep); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.as-sug-why .lucide { width: 12px; height: 12px; }
.as-sug-card { background: #fff; border: 2px solid var(--border); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.as-sug-card.is-top { border-color: var(--primary); }

/* 08 · penampil isi QR mentah */
.as-raw { background: var(--cream); border: 2px solid var(--border); border-radius: 6px; padding: 14px 16px; min-width: 0; }
.as-raw.is-sm { padding: 10px 12px; }
.as-raw-cap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.as-raw-cap > span { flex: 1; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.as-raw-val { font-family: var(--mono); font-size: 18px; color: var(--ink); line-height: 1.4; word-break: break-all; }
.as-raw.is-sm .as-raw-val { font-size: 14px; }
.as-raw-val.is-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.as-raw-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.as-raw-more { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary-dark); margin-top: 4px; }
.as-copy { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.as-raw.is-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.as-raw.is-dark .as-raw-val { color: #fff; }
.as-raw.is-dark .as-raw-cap > span { color: #E9E2D6; }

/* sel kode label pada tabel & kartu */
.as-qr-cell { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.as-qr-cell .t-mono { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.as-qr-ic { flex: none; display: flex; color: var(--primary-deep); }
.as-qr-ic .lucide { width: 14px; height: 14px; }
.as-qr-ic.is-unknown { width: 18px; height: 18px; border-radius: 4px; background: var(--sand); color: var(--ink); align-items: center; justify-content: center; }
.as-qr-ic.is-unknown .lucide { width: 12px; height: 12px; }

/* 09 · dua jalur keputusan (tautkan / catat baru) */
.as-pilih { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 2px solid var(--border); border-radius: 8px; background: #fff; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.as-pilih:hover { border-color: var(--primary); background: var(--primary-soft); }
.as-pilih-ic { width: 46px; height: 46px; border-radius: 8px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.as-pilih-ic .lucide { width: 22px; height: 22px; }
.as-pilih.is-alt .as-pilih-ic { background: var(--ink); }
.as-pilih-t { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.as-pilih-s { font-size: 13px; color: var(--ink-body); margin-top: 4px; line-height: 1.45; }

/* 10 · lain-lain */
.as-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: 13px; }
.as-kv > div { padding: 11px 0; min-width: 0; }
.as-kv > div:nth-child(odd) { color: var(--ink-muted); }
.as-kv > div:nth-child(n+3) { border-top: 2px solid var(--border); }
.as-foto { border-radius: 6px; background: var(--muted); border: 2px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-muted); overflow: hidden; }
.as-foto.is-empty { border-style: dashed; }
.as-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-qr-img { background: #fff; padding: 6px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex: none; }
.as-qr-img img, .as-qr-img canvas, .as-qr-img table { display: block; }
.as-scanin { display: flex; align-items: center; gap: 12px; height: 56px; border: 2px solid var(--primary); border-radius: 6px; background: var(--primary-soft); padding: 0 14px; }
.as-scanin input { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--mono); font-size: 16px; color: var(--ink); outline: none; }

@media (max-width: 1279px) { .as-sug { grid-template-columns: 32px minmax(0, 1.4fr) 130px 130px 150px 110px; } .as-sug .as-sug-hide { display: none; } }
@media (max-width: 1023px) { .as-cmp { flex-direction: column; } .as-cmp-arrow { width: 100%; margin: -6px 0; } .as-cmp-arrow span { width: 40px; height: 40px; border: 4px solid #fff; } .as-kv { grid-template-columns: 120px minmax(0, 1fr); } }
@media (max-width: 767px) { .as-sbar { padding: 12px 14px; gap: 12px; } .as-raw-val { font-size: 16px; } .as-pilih { padding: 14px; } .as-pilih-t { font-size: 16px; } }

/* 11 · pilihan kategori & kondisi berbentuk chip */
.as-opt { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 2px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-body); cursor: pointer; }
.as-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.as-opt:hover { border-color: var(--ink-muted); }
.as-opt:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.as-opt:has(input:focus-visible) { outline: 3px solid var(--primary-soft); }
.as-opt .lucide { width: 15px; height: 15px; display: none; }
.as-opt:has(input:checked) .lucide { display: block; }
.as-opt[data-warna="sage"]:has(input:checked) { background: var(--sage); border-color: var(--sage); }
.as-opt[data-warna="amber"]:has(input:checked) { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.as-opt[data-warna="clay"]:has(input:checked) { background: var(--clay); border-color: var(--clay); }
/* 12 · penanda field yang diubah (layar 10) */
.as-fld.is-ubah .input, .as-fld.is-ubah select.input, .as-fld.is-ubah textarea { border-color: var(--amber); }
.as-fld .as-fld-ubah { display: none; }
.as-fld.is-ubah .as-fld-ubah { display: inline-flex; }
.as-fld .as-fld-lama { display: none; font-size: 12px; color: var(--ink-body); margin-top: 6px; }
.as-fld.is-ubah .as-fld-lama { display: block; }
.as-fld .as-fld-lama b { text-decoration: line-through; font-weight: 500; }

/* filter Daftar Aset: di ponsel disembunyikan di balik tombol Filter */
.as-filter-adv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 767px) { .as-filter-adv { display: none; } .as-filter-adv.is-open { display: flex; } }

/* bilah tab modul aset: menggulir mendatar di ponsel, tidak membungkus */
.as-tabs { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
@media (max-width: 767px) { .as-tabs { overflow-x: auto; scrollbar-width: none; } .as-tabs::-webkit-scrollbar { display: none; } .as-tabs .tab { flex: none; } }
