/* =========================================================
   Management Hub — Visual Production
   Design system + semua halaman
   ========================================================= */

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Warna (monokrom) */
  --ink: #0A0A0A;
  --ink-2: #262626;
  --muted-dark: #737373;
  --muted: #6B6B6B;
  --text-2: #404040;
  --line: #E5E5E5;
  --line-2: #EEEEEE;
  --soft: #FAFAFA;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --bar: #8A8A8A;
  --dash: #D4D4D4;
  --placeholder: #A3A3A3;
  /* Satu-satunya warna aksen: penanda termin berjalan */
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --red-line: #FECACA;
  /* Biru: pemasukan di grafik Laporan Keuangan */
  --blue: #2563EB;

  /* Tipografi */
  --font-display: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Easing */
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-wave: cubic-bezier(.22, 1.35, .36, 1);

  /* Ukuran */
  --radius-card: 14px;
  --radius-input: 8px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-window: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 16px -4px rgba(0, 0, 0, .08), 0 28px 56px -12px rgba(0, 0, 0, .16);
  --ring: 0 0 0 3px rgba(10, 10, 10, .08);
  --bar-h: 44px;
  --dot: 12px;
  --sidebar-w: 248px;

  /* Permukaan kecil (kalender, kolom Leads) */
  --line-3: #F0F0F0;
  --out-bg: #FCFCFC;
  --out-num: #C7C7C7;
  --col-bg: #EDEDED;
  --col-over: #E4E4E4;
  --col-dash: #CFCFCF;

  color-scheme: light;
}

/* ---------------------------------------------------------
   Mode gelap: <html data-theme="dark"> (dipilih di sidebar, disimpan di localStorage).
   Monokrom dibalik: --ink jadi terang, --white jadi permukaan gelap.
   Hanya untuk layar — cetak invoice/SPK tetap putih.
   --------------------------------------------------------- */
@media screen {
  :root[data-theme="dark"] {
    --ink: #F2F2F2;
    --ink-2: #D4D4D4;
    --muted-dark: #8F8F8F;
    --muted: #A1A1A1;
    --text-2: #CFCFCF;
    --line: #2B2B2B;
    --line-2: #262626;
    --line-3: #232323;
    --soft: #1F1F1F;
    --bg: #121212;
    --white: #1A1A1A;
    --bar: #6B6B6B;
    --dash: #3D3D3D;
    --placeholder: #6E6E6E;
    --red: #F87171;
    --red-soft: rgba(248, 113, 113, .1);
    --red-line: rgba(248, 113, 113, .32);
    --blue: #60A5FA;
    --out-bg: #161616;
    --out-num: #4A4A4A;
    --col-bg: #171717;
    --col-over: #202020;
    --col-dash: #3A3A3A;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-window: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 16px -4px rgba(0, 0, 0, .45), 0 28px 56px -12px rgba(0, 0, 0, .6);
    --ring: 0 0 0 3px rgba(255, 255, 255, .14);
    color-scheme: dark;
  }

  /* Panel yang memang selalu hitam tetap hitam (palet terang di dalamnya) */
  :root[data-theme="dark"] :is(.sidebar, .drawer__head, .editbar, .mpick__card, .agenda__head,
      .totalbox, .fin__net, .invoice__due, .calc__net, .kpi--dark) {
    --ink: #0A0A0A;
    --ink-2: #262626;
    --muted-dark: #737373;
    --muted: #6B6B6B;
    --text-2: #404040;
    --line: #E5E5E5;
    --line-2: #EEEEEE;
    --soft: #FAFAFA;
    --white: #FFFFFF;
    --dash: #D4D4D4;
    --placeholder: #A3A3A3;
    --bar: #8A8A8A;
    color-scheme: dark;
  }
  :root[data-theme="dark"] :is(.totalbox, .fin__net, .invoice__due, .calc__net, .kpi--dark, .agenda__head, .mpick__card) {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  }
  :root[data-theme="dark"] .sidebar { border-right: 1px solid rgba(255, 255, 255, .06); }
  :root[data-theme="dark"] .editbar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 24px -8px rgba(0, 0, 0, .6); }
  :root[data-theme="dark"] img { opacity: .94; }
  :root[data-theme="dark"] .sidebar img { opacity: 1; }
}

/* Pergantian tema.
   Utama: View Transitions — snapshot lama & baru dianimasikan di GPU (lingkaran membesar
   dari tombol yang diklik, lihat MH.setTheme). Tanpa animasi bawaan crossfade. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* Cadangan untuk browser tanpa View Transitions: hanya warna yang memudar */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[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;
}

/* Fokus keyboard */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Ikon SVG stroke */
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.num { font-variant-numeric: tabular-nums; }

/* =========================================================
   KOMPONEN DASAR
   ========================================================= */

/* --- Input --- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.field__row { display: flex; align-items: center; justify-content: space-between; }

.field__label { font-size: 13px; font-weight: 600; color: var(--ink); }

.field__link {
  padding: 13px 0 13px 16px;      /* area sentuh 44px */
  margin: -13px 0;
  font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; border-radius: 4px;
}
.field__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.field__control { position: relative; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: 400 14px/1.2 var(--font-body);
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input--lg { height: 48px; padding: 0 14px; font-size: 15px; }
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--dash); }
.input:focus { border-color: var(--ink); background: var(--white); box-shadow: var(--ring); }
.input:focus-visible { outline: none; }
.input[readonly] { background: var(--white); color: var(--text-2); cursor: default; }
.input[readonly]:hover { border-color: var(--line); }
/* Kolom anti-autofill: readonly hanya trik, tampil seperti input biasa */
.input[data-noac][readonly] { color: var(--ink); background: var(--soft); cursor: text; }
.search .input[data-noac][readonly] { background: var(--white); }
.input[data-noac][readonly]:hover { border-color: var(--dash); }
/* Combobox type="search": tanpa tombol × bawaan */
.input[role="combobox"]::-webkit-search-cancel-button,
.input[role="combobox"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* Hilangkan gaya biru autofill di semua input */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 40px var(--soft) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s;
}

textarea.input { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }

select.input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.input--money { text-align: right; font-variant-numeric: tabular-nums; }

/* Error monokrom: border 1.5px hitam + ikon + teks */
.input.is-invalid { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.input.is-invalid:focus { box-shadow: inset 0 0 0 .5px var(--ink), var(--ring); }

.field__error {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  animation: error-in .25s var(--ease-out) both;
}
.field__error svg {
  flex: none; width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}

/* Checkbox */
.check {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; font-size: 14px; color: var(--text-2);
  cursor: pointer; user-select: none; align-self: flex-start;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* --- Tombol --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  font: 600 14px/1 var(--font-body);
  white-space: nowrap; text-decoration: none;
  border-radius: 10px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn .icon { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn--lg { height: 48px; font-size: 15px; border-radius: var(--radius-input); }

.btn--primary {
  color: var(--white); background: var(--ink); border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--primary:hover:not(:disabled) { background: var(--ink-2); }

.btn--secondary {
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.btn--secondary:hover:not(:disabled) { background: var(--soft); border-color: var(--dash); }

.btn--dashed {
  color: var(--text-2); background: transparent; border: 1px dashed var(--dash);
}
.btn--dashed:hover { color: var(--ink); border-color: var(--muted-dark); background: var(--white); }

.btn--light { color: var(--ink); background: var(--white); border: 0; }
.btn--light:hover:not(:disabled) { background: var(--line-2); }

.btn-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.btn-icon:hover { color: var(--ink); background: var(--line-2); }

.spinner {
  display: inline-block; flex: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--dark { border-color: rgba(10, 10, 10, .15); border-top-color: var(--ink); }

.btn__spinner { display: none; }
.btn.is-loading .btn__spinner { display: inline-block; }

/* --- Kartu --- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  min-width: 0;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.card__title { font-size: 16px; letter-spacing: -0.02em; }
.card__sub { font-size: 13px; color: var(--muted); }

/* Kartu jendela macOS */
.window {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-window);
}
.window--flat { box-shadow: var(--shadow-card); }

.window__bar {
  position: relative;
  display: flex; align-items: center;
  height: var(--bar-h); padding: 0 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line-2);
}
.window__dots { display: flex; gap: 8px; }
.window__dots i { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--ink); }
.window__dots i:nth-child(2) { background: var(--bar); }
.window__dots i:nth-child(3) { background: var(--dash); }
.window__name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.window__body { padding: 20px; }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--text-2); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
}
.badge--solid { color: var(--white); background: var(--ink); border-color: var(--ink); }
.badge--muted { color: var(--muted); border-style: dashed; border-color: var(--dash); }
.badge--danger { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.badge--danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Select Status Termin = "Termin Berjalan" */
select.input.is-termin { color: var(--red); border-color: var(--red); background-color: var(--red-soft); }
select.input.is-termin:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }

/* --- Tabel --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  height: 40px; padding: 0 12px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-align: left; white-space: nowrap;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.table td {
  height: 52px; padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .c { text-align: center; }
.table .nw { white-space: nowrap; }
.table .muted { color: var(--muted); }
.table tr.is-link { cursor: pointer; }
.table tr.is-link:hover td { background: var(--soft); }
.table tfoot td { font-weight: 700; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 0; }
.table .chev { width: 44px; color: var(--dash); text-align: right; }
.table tr.is-link:hover .chev { color: var(--ink); }

/* Pesan kosong */
.empty {
  padding: 32px 16px; text-align: center;
  font-size: 14px; color: var(--muted);
}

/* =========================================================
   ANIMASI
   ========================================================= */

.fbu { animation: fade-blur-up .8s var(--ease-out) var(--d, 0ms) both; }

@keyframes fade-blur-up {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fade-blur {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: none; }
}
@keyframes curtain-x {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes curtain-y {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes wave {
  0%   { opacity: 0; transform: translateY(.6em) rotate(8deg); filter: blur(14px); }
  55%  { opacity: 1; filter: blur(2px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-10px); }
  30% { transform: translateX(9px); }
  45% { transform: translateX(-7px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(1px); }
}
@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   LOGIN
   ========================================================= */

.login {
  position: relative;
  display: flex; flex-wrap: wrap;
  min-height: 100vh; min-height: 100dvh;
}

.login__brand,
.login__auth {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  isolation: isolate;
}

.matrix {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
/* Warna huruf = `color` canvas: putih di panel hitam, hitam di area putih */
.matrix--brand { color: #FFFFFF; animation: fade-blur 1.2s var(--ease-out) 700ms both; }
.matrix--auth  { color: #0A0A0A; animation: fade-blur 1.2s var(--ease-out) 900ms both; }

.login__brand {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 40px 56px 48px;
  background: var(--ink); color: var(--white);
  animation: curtain-x 1.1s var(--ease-curtain) both;
}
.login__brand > :not(canvas) { position: relative; z-index: 1; }

.login__logo { display: block; width: min(100%, 300px); height: auto; }
.login__wordmark {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; line-height: 52px;
}

.login__title { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.login__line { display: block; }
.login__line--muted { color: var(--muted-dark); }

.login__foot { font-size: 12px; color: var(--muted-dark); }

.login__auth {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}

.login__wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.login__window.is-shaking { animation: shake .5s cubic-bezier(.36, .07, .19, .97) both; }
.login__window .window__body { padding: 36px; }

.login__heading { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }

.login__form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.login__form .check { margin: -12px 0 -8px; }

/* Masuk dengan Google (satu-satunya cara masuk) */
.login__hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.btn--google {
  gap: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.btn--google:hover { background: var(--bg); border-color: var(--muted); }
.btn--google__logo { flex: none; width: 20px; height: 20px; }
.btn--google.is-loading { pointer-events: none; opacity: .7; }
.btn--google.is-loading .btn--google__logo { display: none; }
.login__dev { align-self: center; font-size: 13px; color: var(--muted); }
.login__dev:hover { color: var(--ink); }

/* Login sosial (Google / Apple) di bawah tombol Masuk */
.social { margin-top: 22px; }
.social__or { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.social__or::before, .social__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.social__logo { flex: none; width: 18px; height: 18px; }
.social__logo--apple { width: 19px; height: 19px; color: var(--ink); margin-top: -2px; }
.social__note { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--muted); }

/* Panel lupa kata sandi (menggantikan isi jendela login) */
.forgot[hidden] { display: none; }
.forgot { animation: forgot-in .35s var(--ease-out) both; }
@keyframes forgot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.forgot__back {
  display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 18px -4px; padding: 4px;
  font: 600 13px/1 var(--font-body); color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.forgot__back:hover { color: var(--ink); }
.forgot__back .icon { width: 16px; height: 16px; }
.forgot__title:focus { outline: none; }
.forgot__lead { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.forgot__form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.forgot__wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.forgot__wa .icon { width: 20px; height: 20px; }
.forgot__hint { margin: -6px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.forgot__hint--box { margin: 0; padding: 14px 16px; font-size: 13px; line-height: 1.55; text-align: left; color: var(--text-2); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }

.input--icon { padding-right: 50px; }
.pw-toggle {
  position: absolute; top: 2px; right: 2px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye-off { display: block; }

/* Teks per huruf (diisi oleh JS) */
.js [data-split]:not(.is-split) { visibility: hidden; }
.split__word { display: inline-block; white-space: nowrap; }
.split__char {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: wave 1s var(--ease-wave) var(--d, 0ms) both;
}

@media (max-width: 900px) {
  .login__brand, .login__auth { flex-basis: 100%; }
  .login__brand {
    justify-content: flex-start; gap: 40px;
    padding: 24px 20px 36px;
    animation-name: curtain-y;
  }
  .login__logo { width: min(100%, 220px); }
  .login__wordmark { line-height: 40px; font-size: 17px; }
  .login__title { font-size: 34px; }
  .login__foot { display: none; }
  .login__auth { flex: 1 0 auto; align-items: flex-start; padding: 24px 16px; }
  .login__window { --bar-h: 40px; --dot: 11px; }
  .login__window .window__body { padding: 28px 24px 32px; }
}

/* =========================================================
   APLIKASI (sidebar + konten) — lihat bagian di bawah
   ========================================================= */

.app-body { background: var(--bg); }

.app { display: flex; min-height: 100vh; min-height: 100dvh; }

/* --- Sidebar --- */
.sidebar {
  position: sticky; top: 0;
  display: flex; flex-direction: column; gap: 28px;
  width: var(--sidebar-w); height: 100vh; height: 100dvh; flex: none;
  padding: 24px 16px 16px;
  background: var(--ink); color: var(--white);
  overflow-y: auto;
}
.sidebar__logo { display: inline-flex; align-self: flex-start; padding: 4px 8px; border-radius: 8px; }
.sidebar__logo img { display: block; width: 196px; max-width: 100%; height: auto; }
.sidebar__logo--duo > img { width: auto; height: 34px; }
/* Intern: logo VP | logo sekolah (dari guru pendamping) dalam lingkaran putih */
.sidebar__logo--duo { align-items: center; gap: 12px; }
.sidebar__sep { flex: none; width: 1px; height: 30px; background: rgba(255, 255, 255, .22); }
.sidebar__school { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: #FFFFFF; border-radius: 50%; overflow: hidden; }
.sidebar__logo .sidebar__school img { width: 36px; height: 36px; object-fit: contain; }

.sidebar__nav { flex: 1; }
.sidebar__label {
  padding: 0 12px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted-dark);
}
.sidebar__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sidebar__link {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 500; color: #A3A3A3;
  text-decoration: none; border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar__link:hover { color: #E5E5E5; background: rgba(255, 255, 255, .05); }
.sidebar__link.is-active { color: var(--white); font-weight: 600; background: rgba(255, 255, 255, .1); }
.sidebar__link.is-disabled { color: var(--muted-dark); cursor: default; }
.sidebar__link.is-disabled:hover { background: none; color: var(--muted-dark); }
.sidebar :focus-visible { outline-color: var(--white); }

/* Hover sidebar: menu yang ditunjuk sedikit membesar + latar abu gelap, menu lain hanya diredupkan (TANPA blur).
   :has() pada nav → tidak berkedip saat kursor di celah antar menu.
   Hanya untuk perangkat dengan hover (mouse) — di HP menu sidebar jadi baris geser. */
@media (hover: hover) and (pointer: fine) {
  .sidebar__link {
    border-radius: 12px;
    transition:
      transform .22s var(--ease-out),
      background-color .22s var(--ease-out),
      color .22s var(--ease-out),
      opacity .22s var(--ease-out);
  }
  .sidebar__link:not(.is-disabled):hover {
    transform: scale(1.03);
    color: #FFFFFF;
    background: #2a2a2a;
  }
  /* Menu aktif tetap memakai latar aktifnya sendiri, hanya ikut membesar */
  .sidebar__link.is-active:hover { background: rgba(255, 255, 255, .1); }
  .sidebar__link:not(.is-disabled):hover .icon { color: #FFFFFF; }
  .sidebar__link:not(.is-disabled):active { transform: scale(.98); transition-duration: .12s; }
  .sidebar__nav:has(.sidebar__link:not(.is-disabled):hover) .sidebar__link:not(:hover) { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar__link { transition: none; }
}

.sidebar__user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px 10px 10px;
  border: 1px solid var(--ink-2); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.avatar {
  display: flex; align-items: center; justify-content: center; flex: none;
  line-height: 1; text-align: center; letter-spacing: 0;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white);
}
.sidebar__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.sidebar__who strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__who small { font-size: 12px; color: var(--muted-dark); }
.sidebar__user form { margin: 0; }
.sidebar__logout {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  color: #A3A3A3; background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.sidebar__logout:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

/* Baris alat di atas kartu akun: saklar tema + tombol gerigi Pengaturan (admin) */
.sidebar__tools { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.sidebar__tools .tema-row { margin-bottom: 0; }
.sidebar__gear {
  display: grid; place-items: center; flex: none; width: 40px;
  color: #A3A3A3; border: 1px solid var(--ink-2); border-radius: 10px; background: rgba(255, 255, 255, .03);
  transition: color .2s ease, background .2s ease;
}
.sidebar__gear .icon { width: 17px; height: 17px; transition: transform .5s var(--ease-wave); }
.sidebar__gear:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.sidebar__gear:hover .icon { transform: rotate(60deg); }
.sidebar__gear:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.sidebar__gear.is-active { color: var(--white); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
@media (prefers-reduced-motion: reduce) { .sidebar__gear .icon { transition: none; } }

/* Saklar geser tema (Model B) — kiri = terang, kanan (biru) = gelap */
.tema-row {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 3px 3px 3px 12px;
  font-size: 13px; font-weight: 500; color: #A3A3A3;
  border: 1px solid var(--ink-2); border-radius: 10px; background: rgba(255, 255, 255, .03);
  cursor: pointer; user-select: none;
}
.tema-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-sw {
  position: relative; flex: none;
  width: 64px; height: 34px; padding: 0;
  border: 0; border-radius: 99px; background: #cbd5e1;
  cursor: pointer; transition: background .3s;
}
.tema-sw span {
  position: absolute; top: 3px; left: 3px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .3s;
}
.tema-sw[aria-checked="true"] { background: #0a5cff; }
.tema-sw[aria-checked="true"] span { transform: translateX(30px); }
.tema-sw:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tema-sw, .tema-sw span { transition: none; }
}

/* --- Konten --- */
.main { flex: 1; min-width: 0; padding: 28px 32px 48px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.page-head__title { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.page-head__sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.page-head__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.notice {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding: 12px 16px;
  font-size: 13px; font-weight: 500;
  background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 10px;
}

/* Kolom cari dengan ikon */
.search { position: relative; min-width: 240px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 38px; background: var(--white); }

/* Filter kategori/status (segmented control, assets/css/segmented.css) */
.seg-filter { margin-bottom: 16px; }

.footnote { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* --- Modal --- */
.modal {
  width: min(440px, calc(100vw - 32px));
  padding: 0; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-window);
}
.modal::backdrop { background: rgba(10, 10, 10, .45); }
.modal[open] { animation: fade-blur-up .35s var(--ease-out) both; }
.modal .window__body { display: flex; flex-direction: column; gap: 16px; }
.modal__title { font-size: 20px; letter-spacing: -0.02em; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal__close { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px;
    padding: 12px 16px;
  }
  .sidebar__logo img { width: 150px; }
  .sidebar__logo--duo > img { width: auto; height: 28px; }
  .sidebar__logo--duo { gap: 10px; flex: none; }
  .sidebar__sep { height: 26px; }
  .sidebar__school { width: 36px; height: 36px; }
  .sidebar__logo .sidebar__school img { width: 32px; height: 32px; }
  .sidebar__nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 16px; overflow-x: auto; }
  .sidebar__label { display: none; }
  .sidebar__list { flex-direction: row; }
  .sidebar__link { white-space: nowrap; }
  .sidebar__user { margin-left: 0; padding: 4px 4px 4px 8px; border: 0; background: none; }
  .sidebar__who small { display: none; }
  .sidebar__account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .tema-row { flex: none; padding: 0; border: 0; background: none; }
  .tema-row__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sidebar__tools { margin: 0; gap: 6px; }
  .sidebar__gear { width: 40px; height: 40px; }
  .main { padding: 20px 16px 40px; }
  .page-head__title { font-size: 26px; }
  .page-head__actions, .search { width: 100%; }
  .search { min-width: 0; flex: 1; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}

.card--flush { padding: 0; overflow: hidden; }
.strong { font-weight: 600; }

/* =========================================================
   CUSTOMER — drawer, riwayat, tab, invoice, perhitungan
   ========================================================= */
.no-scroll { overflow: hidden; }
.empty__action { margin-top: 12px; }

.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .45);
  opacity: 0; transition: opacity .28s var(--ease-out);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: min(720px, 100%);
  background: var(--bg);
  box-shadow: -24px 0 48px -12px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  transition: transform .32s var(--ease-out);
  outline: none;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  position: relative;
  padding: 24px 28px 24px;
  background: var(--ink); color: var(--white);
}
.drawer__close { position: absolute; top: 12px; right: 12px; color: #A3A3A3; }
.drawer__close:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.drawer__head :focus-visible { outline-color: var(--white); }
.drawer__meta { font-size: 12px; font-weight: 500; color: #A3A3A3; padding-right: 48px; }
.drawer__name { margin-top: 6px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; padding-right: 48px; }
.drawer__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.drawer__stat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 12px; border: 1px solid var(--ink-2); border-radius: 10px;
}
.drawer__stat span { font-size: 11px; color: #A3A3A3; }
.drawer__stat strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.drawer__body { flex: 1; overflow-y: auto; padding: 24px 28px 40px; }
.drawer__section { font-size: 16px; margin-bottom: 12px; }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.history { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.history__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 14px 16px; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: border-color .15s ease;
}
.history__item:hover { border-color: var(--dash); }
.history__main, .history__side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.history__side { align-items: flex-end; flex: none; }
.history__inv { font-size: 12px; font-weight: 600; color: var(--muted); }
.history__event { font-size: 15px; font-weight: 600; }
.history__date { font-size: 12px; color: var(--muted); }
.history__rev { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.history__badges { display: flex; gap: 4px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 4px;
  height: 44px; margin: -8px 0 8px -8px; padding: 0 10px 0 4px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.btn-back:hover { color: var(--ink); }

.dr-tabs { margin-bottom: 16px; }

/* Invoice */
.invoice {
  padding: 28px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.invoice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.invoice__brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.invoice__no { text-align: right; }
.invoice__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.invoice__num { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin-top: 2px; }
.invoice__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; }
.invoice__strong { margin-top: 6px; font-weight: 600; }
.invoice__muted { font-size: 13px; color: var(--muted); }
.invoice__table { width: 100%; border-collapse: collapse; }
.invoice__table th { padding: 10px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.invoice__table td { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.invoice__table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice__sum { margin: 16px 0 0 auto; max-width: 320px; }
.invoice__sum div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.invoice__sum dt { color: var(--muted); }
.invoice__sum dd { margin: 0; font-weight: 600; }
.invoice__due { margin-top: 8px; padding: 14px 16px !important; color: var(--white); background: var(--ink); border-radius: 10px; }
.invoice__due dt { color: #A3A3A3; }
.invoice__due dd { font-family: var(--font-display); font-size: 18px; }

/* Perhitungan awal */
.calc { display: flex; flex-direction: column; gap: 12px; }
.calc__sec { padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.calc__title { font-size: 14px; margin-bottom: 8px; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.calc__row small { color: var(--muted); font-size: 12px; }
.calc__row .num { white-space: nowrap; }
.calc__row--total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); font-weight: 700; }
.calc__row--muted { color: var(--muted); font-size: 12px; }
.calc__empty { font-size: 13px; color: var(--muted); }
.calc__net {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 8px 0; padding: 14px 16px; color: var(--white); background: var(--ink); border-radius: 10px;
}
.calc__net span { color: #A3A3A3; font-size: 13px; }
.calc__net strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .drawer__head { padding: 20px 16px; }
  .drawer__body { padding: 20px 16px 32px; }
  .drawer__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer__name { font-size: 24px; }
  .invoice { padding: 20px; }
  .invoice__parties { grid-template-columns: 1fr; }
}

/* Cetak: hanya invoice */
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 18mm; }
  body.is-printing > *:not(#print-area) { display: none !important; }
  body.is-printing .app { display: none !important; }
  body.is-printing #print-area { display: block !important; }
  body.is-printing { background: #fff; }
  #print-area .invoice { border: 0; box-shadow: none; padding: 0; }
  #print-area .invoice__due { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   TRANSAKSI
   ========================================================= */
.tx-finder { margin-bottom: 20px; }
.tx-finder__bar { display: flex; align-items: center; gap: 16px; }
.tx-finder__search { flex: 1; max-width: 560px; }
.tx-finder__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tx-finder__hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
#tx-results { margin: 16px -20px -20px; border-top: 1px solid var(--line); }
#tx-load-error { margin-bottom: 20px; }

/* Bar sedang diedit */
/* z-index 30: di atas konten (kartu, kolom sticky), di bawah dropdown combobox (1000) & modal */
.editbar {
  position: sticky; top: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  margin-bottom: 20px; padding: 12px 12px 12px 20px;
  color: var(--white); background: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
}
.editbar :focus-visible { outline-color: var(--white); }
.editbar__info { display: flex; flex-direction: column; min-width: 0; }
.editbar__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.editbar__title { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editbar__title span { color: #A3A3A3; }
.editbar__actions { display: flex; align-items: center; gap: 12px; }
.editbar__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #D4D4D4; white-space: nowrap; }
.editbar__status .icon { width: 16px; height: 16px; }
.editbar__status[data-kind="error"] { color: var(--white); font-weight: 600; }
.editbar__err { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.editbar__retry.btn { height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; color: var(--ink); background: var(--white); border-color: var(--white); }
.editbar__retry.btn:hover { background: #E5E5E5; }

/* Transaksi: efek masuk zoom (tanpa blur) — editor diputar ulang tiap invoice dibuka (transaksi.js) */
.tx-editor { animation: tx-zoom .45s var(--ease-out) both; transform-origin: 50% 0; }
.main:has(#tx-editor) .fbu { animation-name: tx-zoom; animation-duration: .5s; }
@keyframes tx-zoom {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tx-editor, .main:has(#tx-editor) .fbu { animation: none; } }

/* Transaksi: zoom halus saat scroll (tanpa blur). Mengikuti posisi scroll (scroll-driven animation):
   kartu membesar 94% → 100% (tanpa memudar) selama ~260px pertama ia masuk layar. Kolom kanan (sticky) tidak ikut.
   Browser tanpa dukungan animation-timeline: tampil biasa tanpa efek. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tx-editor .card:not(.tx-col--side *) {
      animation: tx-scroll-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 260px;
      transform-origin: 50% 100%;
    }
  }
}
@keyframes tx-scroll-zoom {
  from { transform: scale(.94); }
  to   { transform: none; }
}

/* Form: [.tx-layout 2 kolom] lalu [section 6 full width] */
.tx-form { display: flex; flex-direction: column; gap: 20px; }
.tx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.tx-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Kolom kanan: selalu tampil penuh (tanpa max-height/overflow).
   Sticky HANYA bila muat di layar — class .is-sticky dipasang transaksi.js.
   Hanya di dalam .tx-layout, jadi berhenti sebelum section 6. */
.tx-col--side { position: static; }
.tx-col--side.is-sticky { position: sticky; top: 96px; }   /* di bawah bar "Sedang diedit" */
.tx-col--side > * { flex: none; }                           /* kartu tidak menyusut/menumpuk */
.tx-col--side .window { overflow: visible; }
.tx-col--side .window__bar { border-radius: var(--radius-card) var(--radius-card) 0 0; }

/* =========================================================
   Stepper "Transaksi Baru" — .tx-editor.is-stepper (transaksi.js).
   Satu langkah tampil per layar; section ditandai data-step="1..6".
   ========================================================= */
.wiz { margin-bottom: 20px; padding: 20px 24px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.wiz__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wiz__eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wiz__title { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.wiz__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.wiz__item { position: relative; min-width: 0; }
/* Animasi stepper:
   - garis penghubung "mengalir" kiri → kanan, berurutan per langkah (--d = jeda dari transaksi.js)
   - titik: membesar + cincin berdenyut saat aktif; centang tergambar (stroke-dashoffset) saat selesai
   - konten masuk dari kanan (Lanjut) / kiri (Kembali), judul berganti dengan fade
   - progress bar persentase di bawah judul */
.wiz__progress { position: relative; height: 4px; margin: -6px 0 20px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.wiz__progress i {
  position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--ink);
  transition: width .6s cubic-bezier(.65, 0, .35, 1);
}
.wiz__progress i::after {   /* kilau berjalan di ujung progress */
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .45) 50%, transparent 100%);
  transform: translateX(-100%); animation: wiz-shine 2.4s ease-in-out infinite;
}
/* garis penghubung antar langkah: jalur abu + isian hitam (background-size) */
.wiz__item:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; border-radius: 2px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0% 100%, var(--line);
  transition: background-size .38s cubic-bezier(.65, 0, .35, 1) var(--d, 0s);
}
.wiz__item.is-done:not(:last-child)::after { background-size: 100% 100%, auto; }
.wiz__btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 4px;
  font: inherit; color: inherit; text-align: center; background: none; border: 0; cursor: pointer;
}
.wiz__dot {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--muted); background: var(--white);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: background .3s ease var(--d, 0s), box-shadow .3s ease var(--d, 0s), color .3s ease var(--d, 0s),
              transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.wiz__no, .wiz__check { grid-area: 1 / 1; transition: opacity .2s ease var(--d, 0s), transform .3s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s); }
.wiz__check { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.wiz__check path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .4s cubic-bezier(.65, 0, .35, 1) calc(var(--d, 0s) + .15s); }
/* cincin berdenyut di titik aktif */
.wiz__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 var(--ink); opacity: 0;
}
.wiz__txt { display: flex; flex-direction: column; min-width: 0; transition: transform .3s ease; }
.wiz__txt b { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease var(--d, 0s); }
.wiz__txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz__btn:hover .wiz__dot { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); transform: translateY(-2px); }
.wiz__btn:hover .wiz__txt { transform: translateY(-1px); }
.wiz__btn:active .wiz__dot { transform: scale(.92); transition-duration: .1s; }
.wiz__btn:focus-visible { outline: none; }
.wiz__btn:focus-visible .wiz__dot { outline: 2px solid var(--ink); outline-offset: 3px; }
.wiz__item.is-done .wiz__dot { color: var(--white); background: var(--ink); box-shadow: none; }
.wiz__item.is-done .wiz__no { opacity: 0; transform: scale(.4); }
.wiz__item.is-done .wiz__check { opacity: 1; }
.wiz__item.is-done .wiz__check path { stroke-dashoffset: 0; }
.wiz__item.is-done .wiz__txt b { color: var(--ink); }
.wiz__item.is-active .wiz__dot { color: var(--white); background: var(--ink); box-shadow: 0 0 0 5px var(--line-2); transform: scale(1.12); }
.wiz__item.is-active .wiz__dot::after { animation: wiz-ping 1.8s cubic-bezier(0, 0, .2, 1) .35s infinite; }
.wiz__item.is-active .wiz__btn:hover .wiz__dot { transform: scale(1.12) translateY(-2px); }
.wiz__item.is-active .wiz__txt b { color: var(--ink); font-weight: 700; }
/* judul langkah berganti */
.wiz__title.is-swap, .wiz__eyebrow.is-swap { animation: wiz-title .4s cubic-bezier(.22, 1, .36, 1) both; }
/* tombol Lanjut: panah bergerak saat hover */
#st-next .icon, #st-prev .icon { transition: transform .2s ease; }
#st-next:hover .icon { transform: translateX(3px); }
#st-prev:hover .icon { transform: translateX(-3px); }
.wiz-foot .btn:active { transform: scale(.97); }
@keyframes wiz-ping {
  0%   { opacity: .35; box-shadow: 0 0 0 0 var(--ink); }
  80%, 100% { opacity: 0; box-shadow: 0 0 0 12px var(--ink); }
}
@keyframes wiz-shine { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes wiz-title { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wiz-in-fwd  { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes wiz-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.wiz-foot {
  position: sticky; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .25);
}
.wiz-foot__info { font-size: 13px; color: var(--muted); text-align: center; }
#st-prev[disabled] { visibility: hidden; }

/* Mode stepper: hanya langkah aktif yang tampil, satu kolom */
.tx-editor.is-stepper .tx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tx-editor.is-stepper .tx-col--side { order: -1; }   /* langkah Finance: ringkasan dulu, akumulasi sesudahnya */
.tx-editor.is-stepper .tx-col { gap: 20px; }
.tx-editor.is-stepper [data-step]:not(.is-step-on) { display: none; }
.tx-editor.is-stepper .tx-col:not(:has(.is-step-on)) { display: none; }
.tx-editor.is-stepper .tx-col--side, .tx-editor.is-stepper .tx-col--side.is-sticky { position: static; }
.tx-editor.is-stepper .sec-num { display: none; }
.tx-editor.is-stepper .spk-card { display: none; }
.tx-editor.is-stepper .tx-form { animation: st-in .3s var(--ease-out) both; }
.tx-editor.is-stepper .tx-form[data-dir="fwd"]  { animation: wiz-in-fwd .42s cubic-bezier(.22, 1, .36, 1) both; }
.tx-editor.is-stepper .tx-form[data-dir="back"] { animation: wiz-in-back .42s cubic-bezier(.22, 1, .36, 1) both; }
/* kartu di dalam langkah muncul bergiliran */
.tx-editor.is-stepper .is-step-on { animation: st-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.tx-editor.is-stepper .is-step-on ~ .is-step-on { animation-delay: .08s; }
@media (min-width: 900px) {
  /* Langkah Finance: ringkasan (kolom kanan asli) & akumulasi (kolom kiri) berdampingan */
  .tx-editor.is-stepper .tx-layout:has(.tx-col--side .is-step-on) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tx-editor.is-stepper .tx-form, .tx-editor.is-stepper .is-step-on, .wiz__title.is-swap, .wiz__eyebrow.is-swap,
  .wiz__dot::after, .wiz__progress i::after { animation: none !important; }
  .wiz *, .wiz *::after, .wiz__item::after, .wiz__progress i { transition: none !important; }
}
@media (max-width: 760px) {
  .wiz { padding: 16px; }
  .wiz__head { align-items: flex-start; flex-direction: column; }
  .wiz__txt { display: none; }
  .wiz__item:not(:last-child)::after { left: calc(50% + 20px); right: calc(-50% + 20px); }
  .wiz-foot__info { display: none; }
}

/* =========================================================
   Editor transaksi bertab — .tx-editor.is-tabs (transaksi.js → tabGo).
   Kiri: satu bagian per tab (data-step 1–5, 7). Kanan: Finance selalu tampil di ≥1200px;
   di layar sempit Finance jadi tab sendiri (6).
   ========================================================= */
/* Tab editor — gaya kontrol segmen iOS (Liquid Glass yang bersih): kapsul abu muda + lensa putih
   yang meluncur ke tab aktif / mengikuti kursor (transaksi.js → moveGlass). Lensa selalu di dalam kapsul. */
.eb-tabs { flex-basis: 100%; display: flex; min-width: 0; margin: 4px 0 0 -8px; }
.eb-tabs__track {
  position: relative; display: flex; gap: 2px; max-width: 100%; padding: 3px;
  isolation: isolate; color: #1a1a1a;
  background: linear-gradient(180deg, rgba(236, 236, 240, .96), rgba(226, 226, 231, .96));
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (max-width: 900px) {   /* layar sempit: tab bisa digeser */
  .eb-tabs__track { overflow-x: auto; scrollbar-width: none; }
  .eb-tabs__track::-webkit-scrollbar { display: none; }
}
.eb-tabs__glass {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, #fff 0%, #f7f7f9 100%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12), 0 3px 10px -2px rgba(0, 0, 0, .14), inset 0 1px 0 #fff;
  transition: transform .45s cubic-bezier(.34, 1.25, .64, 1), width .45s cubic-bezier(.34, 1.25, .64, 1), opacity .2s ease, background .2s ease;
}
.eb-tabs__glass.is-on { opacity: 1; }
.eb-tabs__glass.is-peek { background: rgba(255, 255, 255, .7); }   /* mengikuti kursor ke tab lain: pratinjau lebih tipis */
.eb-tabs__glass.is-moving { animation: eb-liquid .45s cubic-bezier(.3, .7, .4, 1); }
@keyframes eb-liquid { 0%, 100% { scale: 1 1; } 40% { scale: 1.04 .94; } }
.eb-tab {
  position: relative; z-index: 1;
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px;
  font: 600 13px var(--font-body); color: #1a1a1a; opacity: .6; background: transparent;
  border: 0; border-radius: 999px; cursor: pointer; transition: opacity .2s ease;
}
.eb-tab:hover, .eb-tab.is-lens { opacity: 1; }
.eb-tab[aria-selected="true"] { opacity: 1; }
.eb-tab:has(.eb-tab__badge:not([hidden]):not(.is-warn)) { padding-right: 8px; }
.eb-tab:focus-visible { outline: 2px solid #1a1a1a; outline-offset: -2px; }
.eb-tab__badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px;
  font-size: 11px; font-weight: 700; line-height: 1; color: #fff; background: #1a1a1a; border-radius: 999px;
}
.eb-tab__badge.is-warn { min-width: 6px; width: 6px; height: 6px; padding: 0; margin-right: -4px; font-size: 0; background: var(--red); }
.tx-editor.is-stepper .eb-tabs { display: none; }
@media (prefers-reduced-motion: reduce) { .eb-tabs__glass { transition: opacity .2s ease; } .eb-tabs__glass.is-moving { animation: none; } }

/* Daftar invoice dilipat saat transaksi dibuka */
.tx-finder__toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  font: 600 13px var(--font-body); color: var(--ink); background: var(--soft);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tx-finder__toggle:hover { border-color: var(--ink); }
.tx-finder__toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.tx-finder__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tx-finder.is-compact #tx-results { display: none; }

/* Mode tab */
.tx-editor.is-tabs .sec-num { display: none; }
.tx-editor.is-tabs .tx-col:not(.tx-col--side) > [data-step]:not(.is-tab-on) { display: none; }
.tx-editor.is-tabs .tx-col:not(.tx-col--side) > .is-tab-on { animation: st-in .3s var(--ease-out) both; }
.tx-col .spk-card { margin-top: 0; }
@media (min-width: 1200px) {
  .eb-tab--fin { display: none; }
  /* Tanpa celah: kolom kiri setinggi kolom kanan, Akumulasi Operasional selalu tampil
     di bawah tab aktif dan memanjang mengisi sisa ruang (tata letak mendatar) */
  .tx-editor.is-tabs .tx-layout { align-items: stretch; }
  .tx-editor.is-tabs .tx-col--side { align-self: start; }
  .tx-editor.is-tabs .tx-col:not(.tx-col--side) > .tx-acc[data-step].tx-acc { display: flex; flex-direction: column; flex: 1 0 auto; }
  .tx-editor.is-tabs .tx-acc .spot__body { flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; }
}

/* =========================================================
   Spotlight — Akumulasi Operasional + Pusat Pengingat (#acc-card)
   Kartu gelap yang menonjol; berdenyut merah bila ada pengingat penting.
   Warna mengikuti token tema (--ink / --white terbalik di mode gelap).
   ========================================================= */
.spot {
  position: relative; overflow: hidden;
  color: var(--white); background: var(--ink); border-color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.spot::before {   /* sorotan cahaya di pojok kanan atas */
  content: ""; position: absolute; top: -55%; right: -12%; width: 62%; height: 150%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .11), transparent 72%); pointer-events: none;
}
.spot > * { position: relative; }
.spot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.spot__eyebrow { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.spot__title { margin: 0; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; }
.spot__state {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  font-size: 12px; font-weight: 700; white-space: nowrap; border-radius: 999px; background: rgba(127, 127, 127, .28);
}
.spot__state.is-danger { color: #fff; background: var(--red); }
.spot__state.is-ok { color: var(--ink); background: var(--white); }
.spot__body { display: grid; gap: 22px; }
.spot .acc { margin-top: 0; gap: 14px; }
.spot__big span, .spot__pct span, .spot__label { font-size: 12px; font-weight: 500; opacity: .65; }
.spot__big strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.spot__pct { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Persentase = poin utama: besar & tebal */
.spot__pct strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.spot__pct strong.is-high { padding: 4px 14px; color: #fff; background: var(--red); border-radius: 999px; font-size: 28px; }
.spot .compbar { height: 12px; background: rgba(127, 127, 127, .3); }
.spot .compbar__seg--1, .spot .legend__dot--1 { background: var(--white); }
.spot .compbar__seg--2, .spot .legend__dot--2 { background: #A3A3A3; }
.spot .compbar__seg--3, .spot .legend__dot--3 { background: #5C5C5C; }
.spot .legend { color: inherit; }
.spot .legend li { opacity: .9; }
.spot .legend strong { margin-left: auto; color: inherit; }
.spot__label { margin: 0 0 8px; }

/* Daftar pengingat */
.rm-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rm-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 12px;
  font: 500 13px/1.4 var(--font-body); text-align: left; color: inherit;
  background: rgba(127, 127, 127, .16); border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rm-item:hover { background: rgba(127, 127, 127, .27); transform: translateX(3px); }
.rm-item:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.rm-item__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.rm-item__txt { flex: 1; min-width: 0; }
.rm-item__txt b { font-weight: 700; }
.rm-item__txt small { display: block; margin-top: 1px; font-size: 11.5px; opacity: .65; }
.rm-item__go { flex: none; margin-top: 1px; font-size: 12px; font-weight: 600; opacity: .55; white-space: nowrap; }
.rm-item:hover .rm-item__go { opacity: 1; }
.rm-item--danger { background: rgba(220, 38, 38, .18); border-color: var(--red); }
.rm-item--danger .rm-item__dot { opacity: 1; background: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .28); animation: rm-blink 1.4s ease-in-out infinite; }
.rm-ok { display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 13px; border: 1px dashed rgba(127, 127, 127, .45); border-radius: 10px; }
.rm-ok .icon { width: 18px; height: 18px; flex: none; }
.spot.has-danger { animation: spot-pulse 2.6s ease-in-out infinite; }
.spot.is-flash { animation: spot-flash .5s ease 3; }
@keyframes spot-pulse {
  0%, 100% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), 0 0 0 0 rgba(220, 38, 38, 0); }
  50%      { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), 0 0 0 5px rgba(220, 38, 38, .45); }
}
@keyframes spot-flash { 50% { transform: scale(1.012); box-shadow: 0 0 0 6px rgba(220, 38, 38, .5); } }
@keyframes rm-blink { 50% { opacity: .35; } }

/* Tombol pengingat di bar "Sedang diedit" */
.eb-remind {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font: 700 12px var(--font-body); color: #fff; background: var(--red); border: 0; border-radius: 999px; cursor: pointer;
}
.eb-remind .icon { width: 15px; height: 15px; }
.eb-remind.is-warn { color: var(--ink); background: var(--white); }
.eb-remind:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .eb-remind__txt { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .spot.has-danger, .spot.is-flash, .rm-item--danger .rm-item__dot { animation: none; }
}
@media (max-width: 1199px) {
  .tx-editor.is-tabs .tx-col--side:not(:has(.is-tab-on)) { display: none; }
  .tx-editor.is-tabs .tx-col--side { order: -1; }   /* tab Finance: ringkasan dulu, lalu akumulasi */
}
@media (prefers-reduced-motion: reduce) { .tx-editor.is-tabs .tx-col > .is-tab-on { animation: none; } }

/* Select dengan placeholder kosong → teks abu-abu */
select.input:has(option[data-placeholder]:checked) { color: var(--placeholder); }
select.input option { color: var(--ink); }

/* Section 6: tabel bisa digeser horizontal, kolom selalu utuh */
.tx-equip { min-width: 0; }
.tx-equip__scroll { overflow-x: auto; }
.table--equip { min-width: 1110px; table-layout: fixed; }

.sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 16px; }
.sec-num {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: var(--white); background: var(--ink);
}

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: 1 / -1; }

/* Daftar biaya transport */
.costlist { display: flex; flex-direction: column; }
.costlist__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--line-2);
}
.costlist__row label { font-size: 14px; color: var(--text-2); }
.costlist__row .input { height: 40px; }
.costlist__total, .rowfoot__total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; font-weight: 600;
}
.costlist__total strong, .rowfoot__total strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }

/* Tabel isian */
.table--form th { padding: 0 6px; background: none; }
.table--form td { height: auto; padding: 6px; }
.table--form .input { height: 40px; }
.table--form td:first-child, .table--form th:first-child { padding-left: 0; }
.table--form td:last-child, .table--form th:last-child { padding-right: 0; }
.table--form tbody tr:last-child td { border-bottom: 1px solid var(--line-2); }
.table--form .btn-icon { width: 40px; height: 40px; color: var(--placeholder); }
.table--form .btn-icon:hover { color: var(--ink); }

.rowfoot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.rowfoot__total { padding-top: 0; }

/* Ringkasan mini akumulasi operasional — hanya di stepper Transaksi Baru (langkah 3–5) */
.opsmini { display: none; }
.tx-editor.is-stepper .opsmini {
  display: flex; align-items: center; gap: 18px; margin-left: auto; margin-right: 8px;
  padding: 6px 14px; border: 1px dashed var(--line); border-radius: 10px;
}
.opsmini__item { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.opsmini__item + .opsmini__item { padding-left: 18px; border-left: 1px solid var(--line-2); }
.opsmini small { font-size: 11px; font-weight: 500; color: var(--muted); }
.opsmini strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.opsmini strong.is-empty { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--placeholder); }
/* Over: operasional > 40% revenue → kotak merah berdenyut + label peringatan */
.opsmini__warn { display: none; }
.tx-editor.is-stepper .opsmini.is-over {
  border: 1.5px solid #DC2626; background: #FEF2F2;
  animation: ops-over 1.4s ease-in-out infinite;
}
.opsmini.is-over strong { color: #DC2626; }
.opsmini.is-over .opsmini__warn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: #DC2626; white-space: nowrap;
}
.opsmini.is-over .opsmini__warn::before {
  content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px;
  border-radius: 50%; font-size: 10px; color: #DC2626; background: #fff;
}
:root[data-theme="dark"] .tx-editor.is-stepper .opsmini.is-over { background: rgba(220, 38, 38, .15); }
@keyframes ops-over { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
@media (prefers-reduced-motion: reduce) { .tx-editor.is-stepper .opsmini.is-over { animation: none; } }
.costlist__total:has(.opsmini) { justify-content: flex-end; }
.costlist__total .opsmini { margin-right: auto; }
@media (max-width: 760px) {
  .tx-editor.is-stepper .opsmini { order: 3; width: 100%; margin: 0; }
  .costlist__total:has(.opsmini) { flex-wrap: wrap; }
}
.totalbox {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  min-width: 240px; padding: 14px 18px;
  color: var(--white); background: var(--ink); border-radius: 12px;
}
/* Cetak dokumen (SPK crew) */
.spk-card { margin-top: 20px; }
.spk-card .card__head { flex-wrap: wrap; align-items: flex-start; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.spk-card .muted { color: var(--muted); }
.spk-list { list-style: none; margin: 0 0 6px; padding: 0; border-top: 1px solid var(--line-2); }
.spk-list__row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2);
}
.spk-list__no { font-size: 13px; color: var(--muted); text-align: center; }
.spk-list__who { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.spk-list__who strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-list__row .btn { height: 40px; padding: 0 14px; font-size: 13px; }
.spk-list__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.spk-list__empty { padding: 14px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.spk-card .check small { font-size: 12px; }
.totalbox span { font-size: 12px; color: #A3A3A3; }
.totalbox strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }

/* Summary finance */
.fin { display: flex; flex-direction: column; gap: 14px; }
.input--big { height: 52px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.fin__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.fin__row strong { font-size: 15px; color: var(--ink); white-space: nowrap; }
.fin__net {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 18px; color: var(--white); background: var(--ink); border-radius: 12px;
}
.fin__net span { font-size: 12px; color: #A3A3A3; }
.fin__net strong { grid-column: 1 / -1; font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.fin__net small { grid-row: 1; grid-column: 2; font-size: 12px; color: #D4D4D4; }

/* Akumulasi operasional */
.acc { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.compbar { display: flex; height: 10px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.compbar__seg { flex: 0 1 0; min-width: 0; transition: flex-grow .4s var(--ease-out); }
.compbar__seg--1, .legend__dot--1 { background: var(--ink); }
.compbar__seg--2, .legend__dot--2 { background: var(--bar); }
.compbar__seg--3, .legend__dot--3 { background: var(--dash); }
.legend { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { margin-left: auto; color: var(--ink); font-weight: 600; }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Combobox */
.combo { position: relative; }
.combo__list {
  position: fixed; z-index: 1000;
  margin: 0; padding: 4px; list-style: none;
  overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .2);
}
.combo__opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 10px;
  font-size: 14px; border-radius: 6px; cursor: pointer;
}
.combo__opt:hover, .combo__opt.is-active { background: var(--line-2); }
.combo__code { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.combo__name { flex: 1; min-width: 0; font-weight: 500; }
.combo__meta { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.combo__price { flex: none; font-size: 13px; color: var(--text-2); }
.combo__empty { padding: 12px 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 1199px) {
  .tx-layout { grid-template-columns: 1fr; }
  .tx-col--side, .tx-col--side.is-sticky { position: static; }
}
@media (max-width: 900px) {
  .editbar { top: 8px; padding: 12px; }
  .editbar__actions { width: 100%; justify-content: space-between; }
  .grid2 { grid-template-columns: 1fr; }
  .costlist__row { grid-template-columns: minmax(0, 1fr) 140px; }
  .tx-finder__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .totalbox { width: 100%; }
}

/* =========================================================
   RINGKASAN
   ========================================================= */
#dash-error { margin-bottom: 20px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.kpi__sub { font-size: 12px; color: var(--muted); }
.kpi--dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.kpi--dark .kpi__label, .kpi--dark .kpi__sub { color: #A3A3A3; }

.monthly { margin-bottom: 20px; }
.year-select .input { height: 40px; width: 110px; background-color: var(--white); }

.mstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.mstat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 12px 14px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px;
}
.mstat span { font-size: 12px; color: var(--muted); }
.mstat strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.chart { position: relative; }
.legend--row { flex-direction: row; gap: 16px; margin-bottom: 8px; }
.chart__plot { width: 100%; overflow: hidden; }
.chart__plot svg { display: block; }
.chart__grid { stroke: var(--line-2); stroke-width: 1; }
.chart__grid--base { stroke: var(--line); }
.chart__ytick, .chart__xtick { font: 500 11px var(--font-body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart__month { cursor: pointer; outline: none; }
.chart__band { fill: transparent; transition: fill .15s ease; }
.chart__month:hover .chart__band { fill: var(--soft); }
.chart__month.is-selected .chart__band { fill: var(--line-2); }
.chart__month:focus-visible .chart__band { stroke: var(--ink); stroke-width: 1.5; }
.chart__month.is-selected .chart__xtick { fill: var(--ink); font-weight: 700; }
.chart__bar--rev { fill: var(--ink); }
.chart__bar--profit { fill: var(--bar); }

.chart__tip {
  position: absolute; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 190px; padding: 10px 12px;
  font-size: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .2);
}
.chart__tip strong { font-size: 13px; margin-bottom: 2px; }
.chart__tip span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chart__tip b { margin-left: auto; color: var(--ink); font-weight: 600; }
.chart__tip-muted { font-size: 11px; }

.monthly__table { margin: 20px -20px -20px; border-top: 1px solid var(--line); }

.dash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }

.pay { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pay__pct { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.progress { height: 12px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .8s var(--ease-out); }
.legend__dot--track { background: var(--line-2); box-shadow: inset 0 0 0 1px var(--dash); }

.comp__title { margin-top: 24px; }
.comp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.comp__box {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 14px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px;
}
.comp__box span { font-size: 12px; color: var(--muted); }
.comp__box strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.dbl { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dbl__item {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 12px 0 16px;
  text-decoration: none; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, background-color .15s ease;
}
.dbl__item:hover { border-color: var(--dash); background: var(--soft); }
.dbl__item span { flex: 1; font-weight: 500; color: var(--text-2); }
.dbl__item strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.dbl__item .icon { color: var(--placeholder); }

.card__head--pad { margin: 0; padding: 20px; }
.badge-row { display: inline-flex; gap: 4px; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mpick { grid-column: 1 / -1; }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .mstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp { grid-template-columns: minmax(0, 1fr); }
}

/* Daftar semua transaksi: isi sisa tinggi layar (tidak terpotong di tengah),
   header menempel. Saat editor terbuka di bawahnya, daftar diringkas. */
#tx-results {
  max-height: calc(100vh - 252px); max-height: calc(100dvh - 252px);
  overflow: auto;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.main:has(#tx-editor:not([hidden])) #tx-results { max-height: 420px; }
#tx-results thead th { position: sticky; top: 0; z-index: 1; }
#tx-results tr.is-current td { background: var(--line-2); }
#tx-results tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--ink); }

/* Daftar invoice: focus/spotlight hover — baris yang ditunjuk diberi latar; baris lain TIDAK diredupkan (tanpa efek kabut).
   Tanpa blur, tanpa scale, tanpa filter (teks tetap tajam). tbody:has(tr:hover), bukan tbody:hover → tidak berkedip di garis antar baris. */
@media (hover: hover) and (pointer: fine) {
  #tx-results-body { --spot-bg: var(--bg); }
  :root[data-theme="dark"] #tx-results-body { --spot-bg: #242424; }
  #tx-results-body tr[data-inv] > td { transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out); }
  #tx-results-body tr[data-inv]:hover > td { background: var(--spot-bg); border-bottom-color: transparent; }
  #tx-results-body tr[data-inv]:hover > td:first-child { border-radius: 12px 0 0 12px; }
  #tx-results-body tr[data-inv]:hover > td:last-child { border-radius: 0 12px 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #tx-results-body tr[data-inv] > td { transition: none; }
}

/* Tombol hapus */
.editbar__del { color: #A3A3A3; }
.editbar__del:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
#tx-results .btn-icon { width: 40px; height: 40px; color: var(--placeholder); }
#tx-results .btn-icon:hover { color: var(--ink); background: var(--line); }

/* Customer: aksi baris, WA & tombol di drawer */
.table .cu-actions { width: 1%; padding-right: 8px; text-align: right; white-space: nowrap; }
.cu-actions__wrap { display: inline-flex; align-items: center; }
.cu-actions .btn-icon { width: 40px; height: 40px; color: var(--placeholder); }
.cu-actions .btn-icon:hover { color: var(--ink); background: var(--line); }
.chev-icon { display: inline-grid; place-items: center; width: 24px; color: var(--dash); }
.table tr.is-link:hover .chev-icon { color: var(--ink); }

.drawer__wa { margin-top: 6px; font-size: 13px; color: #D4D4D4; }
.drawer__wa.is-empty { color: var(--muted-dark); }
.drawer__tools { display: flex; gap: 8px; margin-top: 16px; }
.drawer__tools .btn { height: 40px; }
.btn--ghost-dark { color: #E5E5E5; background: transparent; border: 1px solid var(--ink-2); }
.btn--ghost-dark:hover { color: var(--white); background: rgba(255, 255, 255, .08); border-color: var(--muted-dark); }


/* =========================================================
   Pemilih bulan (Ringkasan)
   ========================================================= */
.mstats__vals { display: contents; }

.mpick { position: relative; min-width: 0; }
.mpick__card {
  display: flex; align-items: stretch; height: 100%;
  color: var(--white); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 10px;
}
.mpick__card :focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }

.mpick__nav {
  display: grid; place-items: center; flex: none;
  width: 32px; min-height: 44px; padding: 0;
  color: #A3A3A3; background: none; border: 0; cursor: pointer;
}
.mpick__nav:first-child { border-radius: 9px 0 0 9px; }
.mpick__nav:last-child { border-radius: 0 9px 9px 0; }
.mpick__nav:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.mpick__nav .icon { width: 16px; height: 16px; }

.mpick__btn {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  flex: 1; min-width: 0; padding: 10px 26px 10px 4px;
  text-align: left; color: var(--white); background: none; border: 0; cursor: pointer;
}
.mpick__btn:hover .mpick__chev, .mpick.is-open .mpick__chev { color: var(--white); }
.mpick__label { font-size: 12px; color: #A3A3A3; }
.mpick__value {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mpick__chev {
  position: absolute; right: 4px; top: 50%; width: 16px; height: 16px;
  color: #A3A3A3; transform: translateY(-50%); transition: transform .2s var(--ease-out), color .15s ease;
}
.mpick.is-open .mpick__chev { transform: translateY(-50%) rotate(180deg); }

/* Popover */
.mpop {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  width: 320px; max-width: calc(100vw - 32px); padding: 12px;
  font-family: var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .18);
  animation: mpop-in .18s var(--ease-out) both;
}
@keyframes mpop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.mpop__year { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mpop__year strong { font-size: 15px; font-weight: 700; }
.mpop__ynav {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.mpop__ynav:hover:not(:disabled) { color: var(--ink); background: var(--line-2); }
.mpop__ynav:disabled { opacity: .35; cursor: default; }

.mpop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mpop__m {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 52px; padding: 8px 10px;
  text-align: left; background: var(--soft); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.mpop__m:hover { border-color: var(--dash); background: var(--white); }
.mpop__m:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mpop__name { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.mpop__rev { font-size: 11px; color: var(--muted); }
.mpop__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.mpop__m.is-selected { color: var(--white); background: var(--ink); border-color: var(--ink); }
.mpop__m.is-selected .mpop__rev { color: inherit; opacity: .72; }
.mpop__m.is-selected .mpop__dot { background: var(--white); }

.mpop__all {
  width: 100%; min-height: 44px; margin-top: 8px; padding: 0 12px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: none; border: 1px dashed var(--dash); border-radius: 8px; cursor: pointer;
}
.mpop__all:hover { color: var(--ink); border-color: var(--muted-dark); }
.mpop__all.is-selected { color: var(--white); background: var(--ink); border: 1px solid var(--ink); }

/* =========================================================
   JADWAL — toolbar, kalender, daftar, agenda
   ========================================================= */
.sc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.sc-nav { display: flex; align-items: center; gap: 2px; }
.sc-nav__btn { width: 40px; height: 40px; color: var(--ink); }
.sc-nav__title { min-width: 170px; text-align: center; font-size: 20px; letter-spacing: -0.02em; }
.sc-today { height: 40px; margin-left: 8px; padding: 0 14px; font-size: 13px; }

.sc-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.sc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend__box { width: 14px; height: 14px; border-radius: 4px; }
.sc-legend__box--solid { background: var(--ink); }
.sc-legend__box--dash { background: var(--white); border: 1.5px dashed var(--muted-dark); }
.sc-warn { width: 16px; height: 16px; color: var(--ink); flex: none; }

.sc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.sc-main { transition: opacity .2s ease; }
.sc-main.is-loading { opacity: .55; pointer-events: none; }

/* Kalender */
.cal__head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line-3); background: var(--soft); }
.cal__head span { padding: 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal__head .is-weekend { color: var(--placeholder); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__grid > .empty { grid-column: 1 / -1; }

.cal__cell {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 0; min-height: 116px; padding: 8px;
  font: inherit; color: var(--ink); text-align: left;
  background: var(--white); border: 0;
  border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3);
  cursor: pointer;
  transition: background-color .15s ease;
}
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell:nth-last-child(-n + 7) { border-bottom: 0; }
.cal__cell:hover { background: var(--soft); }
.cal__cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.cal__cell.is-selected { box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }

.cal__num {
  display: inline-grid; place-items: center; flex: none;
  min-width: 26px; height: 26px; padding: 0 4px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.cal__cell.is-weekend .cal__num { color: var(--muted); }
.cal__cell.is-out { background: var(--out-bg); }
.cal__cell.is-out .cal__num { color: var(--out-num); }
.cal__cell.is-out .cal__chips { opacity: .5; }
.cal__cell.is-today .cal__num { color: var(--white); background: var(--ink); }

.cal__warn { position: absolute; top: 9px; right: 8px; width: 16px; height: 16px; color: var(--ink); }

.cal__chips { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; }
.cal__chip {
  display: block; min-width: 0; padding: 3px 6px;
  font-size: 11.5px; font-weight: 500; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 5px;
}
.cal__chip b { font-weight: 700; }
.cal__chip.is-solid { color: var(--white); background: var(--ink); border: 1px solid var(--ink); }
.cal__chip.is-draft { color: var(--ink); background: var(--white); border: 1px dashed var(--placeholder); }
.cal__more { padding: 0 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* Mode daftar */
.sc-list { padding: 4px 20px; }
.sl-group { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-3); }
.sl-group:last-child { border-bottom: 0; }
.sl-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  width: 58px; height: 64px; border: 1px solid var(--line); border-radius: 10px;
}
.sl-date span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sl-date strong { font-family: var(--font-display); font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.sl-date.is-today { color: var(--white); background: var(--ink); border-color: var(--ink); }
.sl-date.is-today span { color: #A3A3A3; }
.sl-events { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.sl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 14px;
  font: inherit; color: inherit; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.sl-card:hover { border-color: var(--dash); background: var(--soft); }
.sl-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sl-group.is-selected .sl-card { border-color: var(--ink); }
.sl-card__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-card__title { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.sl-card__meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-card__side { display: flex; align-items: center; gap: 10px; flex: none; }
.sl-card__time { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* Panel agenda */
.agenda { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.agenda__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; color: var(--white); background: var(--ink);
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}
.agenda__day { font-size: 12px; font-weight: 600; color: #A3A3A3; text-transform: uppercase; letter-spacing: .05em; }
.agenda__date { margin-top: 2px; font-size: 20px; letter-spacing: -0.02em; }
.agenda__count { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, .3); }
.agenda__body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }

.ag-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.ag-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-card__inv { font-size: 12px; font-weight: 600; color: var(--muted); }
.ag-card__title { margin-top: 10px; font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ag-card__who { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.ag-card__loc { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.ag-card__loc .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; }

.ag-warn { margin-top: 12px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 10px; }
.ag-warn__title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ag-warn__title .icon { width: 16px; height: 16px; }
.ag-warn ul { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.ag-warn li + li { margin-top: 2px; }

/* Timeline 5 langkah */
.tl { position: relative; margin: 14px 0 0; padding: 0; list-style: none; }
.tl::before { content: ''; position: absolute; left: 6px; top: 15px; bottom: 15px; width: 1.5px; background: var(--dash); }
.tl__step { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; }
.tl__dot { justify-self: center; width: 10px; height: 10px; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; }
.tl__label { font-size: 13px; color: var(--text-2); }
.tl__time { font-size: 13px; font-weight: 600; }
.tl__step.is-key .tl__dot { width: 12px; height: 12px; background: var(--ink); }
.tl__step.is-key .tl__label, .tl__step.is-key .tl__time { font-weight: 700; color: var(--ink); }
.tl__step.is-empty .tl__dot { border-color: var(--dash); }
.tl__step.is-empty.is-key .tl__dot { background: var(--dash); }
.tl__step.is-empty .tl__time { color: var(--placeholder); font-weight: 500; }

.ag-card__sub { margin: 16px 0 8px; font: 600 12px/1.2 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ag-card__none { font-size: 13px; color: var(--muted); }
.crew { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crew__item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 12px 4px 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.crew__av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; font-size: 11px; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 50%; }
.crew__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.crew__txt strong { font-size: 12.5px; font-weight: 600; }
.crew__txt small { font-size: 11.5px; color: var(--muted); }

.ag-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ag-card__actions .btn--primary { grid-column: 1 / -1; }
.ag-card__actions .btn { height: 38px; padding: 0 12px; font-size: 13px; }
.ag-card__actions .btn .icon { width: 15px; height: 15px; }

.sc-empty { padding: 28px 16px; text-align: center; border: 1.5px dashed var(--dash); border-radius: 12px; }
.sc-list .sc-empty { margin: 16px 0; }
.sc-empty p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.sc-empty__link { font-size: 13px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.sc-empty__link:hover { text-decoration-thickness: 2px; }

@media (max-width: 1099px) {
  .sc-layout { grid-template-columns: minmax(0, 1fr); }
  .sc-legend { margin-left: 0; }
}
@media (max-width: 640px) {
  .sc-nav { width: 100%; }
  .sc-nav__title { flex: 1; min-width: 0; font-size: 18px; }
  .cal__head span { padding: 8px 4px; text-align: center; font-size: 11px; }
  .cal__cell { min-height: 68px; padding: 5px 4px; align-items: center; }
  .cal__num { min-width: 24px; height: 24px; font-size: 12px; }
  .cal__warn { top: 4px; right: 3px; width: 12px; height: 12px; }
  .cal__chip { height: 5px; padding: 0; font-size: 0; border-radius: 3px; }   /* jadi garis penanda */
  .cal__more { padding: 0; font-size: 10px; text-align: center; }
  .sc-list { padding: 4px 14px; }
  .sl-group { gap: 10px; }
  .sl-card { flex-direction: column; align-items: flex-start; }
}

/* Ringkasan: kartu "Jadwal Minggu Ini" */
.dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.upc { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.upc__item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px 8px 8px;
  text-decoration: none; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, background-color .15s ease;
}
.upc__item:hover { border-color: var(--dash); background: var(--soft); }
.upc__date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--soft); border: 1px dashed var(--placeholder); }
.upc__date span { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.upc__date strong { font-family: var(--font-display); font-size: 17px; line-height: 1; }
.upc__item.is-solid .upc__date { color: var(--white); background: var(--ink); border: 1px solid var(--ink); }
.upc__item.is-solid .upc__date span { color: #A3A3A3; }
.upc__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.upc__txt strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upc__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upc__empty { margin-top: 14px; padding: 18px 12px; font-size: 13px; color: var(--muted); text-align: center; border: 1.5px dashed var(--dash); border-radius: 10px; }
.card__link { font-size: 13px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

/* Transaksi: peringatan bentrok di bawah baris crew / alat */
.table--form tr.row-note td { padding: 0 0 8px; }
.conflict-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; font-size: 12.5px; line-height: 1.45;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 8px;
}
.conflict-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.conflict-note ul { margin: 0; padding: 0; list-style: none; }

.field__hint { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* =========================================================
   INVENTARIS — kartu filter, tabel, stepper, panel detail
   ========================================================= */
.inv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.inv-kpi {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0;
  padding: 18px 20px; text-align: left; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.inv-kpi:hover { border-color: var(--dash); }
.inv-kpi:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.inv-kpi__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.inv-kpi__value { font-family: var(--font-display); font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.inv-kpi__sub { font-size: 12px; color: var(--muted); }
.inv-kpi__bar { position: relative; width: 100%; height: 4px; margin-top: 10px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.inv-kpi__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 999px; transition: width .6s var(--ease-out); }
.inv-kpi__bar--dash i { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
.inv-kpi.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.inv-kpi.is-active .inv-kpi__label, .inv-kpi.is-active .inv-kpi__sub { color: #A3A3A3; }
.inv-kpi.is-active .inv-kpi__bar { background: rgba(255, 255, 255, .16); }
.inv-kpi.is-active .inv-kpi__bar i { background: var(--white); }
.inv-kpi.is-active .inv-kpi__bar--dash i { background: repeating-linear-gradient(90deg, var(--white) 0 4px, transparent 4px 7px); }

.inv-tools { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.inv-tools .search { flex: 0 1 300px; }
.inv-tools .seg { margin: 0; }
.inv-tools[hidden] { display: none; }

.inv-table td { vertical-align: middle; }
.inv-name {
  display: flex; flex-direction: column; gap: 1px; padding: 4px 0;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer;
}
.inv-name strong { font-weight: 600; }
.inv-name small { font-size: 12px; color: var(--muted); }
.inv-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.inv-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.inv-qty { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.inv-pos { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.inv-pos__inv { font-size: 12px; font-weight: 600; }
.inv-pos__ev { font-size: 13px; color: var(--text-2); }
.inv-pos__home { font-size: 12px; color: var(--muted); }
.inv-pos.is-home { display: inline-flex; font-size: 13px; color: var(--muted); }
.inv-actions { text-align: right; }
.inv-actions__row { display: inline-flex; gap: 2px; }
.inv-actions .btn-icon { width: 40px; height: 40px; color: var(--placeholder); }
.inv-actions .btn-icon:hover { color: var(--ink); background: var(--line); }

.inv-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; text-align: center; }
.inv-empty[hidden] { display: none; }
.inv-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border: 1.5px dashed var(--dash); border-radius: 14px; }
.inv-empty__icon .icon { width: 26px; height: 26px; }
.inv-empty__title { font-size: 20px; letter-spacing: -0.02em; }
.inv-empty__text { max-width: 340px; font-size: 14px; color: var(--muted); }
.inv-empty .btn { margin-top: 10px; }

.field__msg:empty { display: none; }

/* Stepper − / + */
.stepper { display: inline-flex; align-items: stretch; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--soft); overflow: hidden; }
.stepper:focus-within { border-color: var(--ink); box-shadow: var(--ring); background: var(--white); }
.stepper__btn { display: grid; place-items: center; width: 42px; padding: 0; color: var(--ink); background: none; border: 0; cursor: pointer; }
.stepper__btn:hover:not(:disabled) { background: var(--line-2); }
.stepper__btn:disabled { color: var(--dash); cursor: not-allowed; }
.stepper__btn .icon { width: 16px; height: 16px; }
.stepper__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.stepper__input.input {
  width: 64px; height: 100%; padding: 0 4px; text-align: center; font-weight: 600;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none;
  -moz-appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--lg { height: 52px; }
.stepper--lg .stepper__btn { width: 52px; }
.stepper--lg .stepper__input.input { width: 84px; font-family: var(--font-display); font-size: 22px; }

/* Panel detail */
.inv-drawer { width: min(560px, 100%); }
.inv-drawer .drawer__body { display: flex; flex-direction: column; gap: 14px; }

/* Edit nama & kategori di header panel (header selalu hitam di mode Terang & Gelap) */
.drawer__edit {
  position: absolute; top: 16px; right: 60px;
  width: 36px; height: 36px; color: #A3A3A3;
}
.drawer__edit:hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.drawer__edit .icon { width: 18px; height: 18px; }
.inv-drawer .drawer__edit ~ .drawer__meta,
.inv-drawer .drawer__edit ~ .drawer__name { padding-right: 88px; }
.drawer__meta[hidden], .drawer__name[hidden], .drawer__edit[hidden] { display: none; }

.dd-edit { display: flex; flex-direction: column; gap: 12px; color-scheme: dark; }
.dd-edit[hidden], .dd-edit [hidden] { display: none; }
.dd-edit__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px;
  padding-right: 48px;   /* ruang tombol X */
}
.dd-edit__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dd-edit__label { font-size: 12px; font-weight: 600; color: #D4D4D4; }
.dd-edit .input {
  height: 44px; color: #FFFFFF; background: #171717; border-color: #404040;
  text-transform: none;
}
.dd-edit .input:hover { border-color: #525252; }
.dd-edit .input:focus { border-color: #FFFFFF; background: #171717; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.dd-edit .input::placeholder { color: #737373; }
.dd-edit .input.is-invalid { border-color: #F87171; }
.dd-edit select.input option { color: #FFFFFF; background: #171717; }
.dd-edit .field__error { font-size: 12px; color: #FCA5A5; }
.dd-edit__actions { display: flex; justify-content: flex-end; gap: 8px; }
.dd-edit__actions .btn { height: 40px; }
.dd-edit__cancel { color: #FFFFFF; background: transparent; border: 1px solid #404040; }
.dd-edit__cancel:hover:not(:disabled) { background: rgba(255, 255, 255, .08); border-color: #737373; }
.dd-edit__save { color: #0A0A0A; background: #FFFFFF; border: 0; }
.dd-edit__save:hover:not(:disabled) { background: #E5E5E5; }
@media (max-width: 640px) {
  .dd-edit__grid { grid-template-columns: 1fr; }
}

/* Toast */
.inv-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  padding: 10px 16px; border-radius: 10px;
  font: 600 13px/1.3 var(--font-body); color: #FFFFFF;
  background: #0A0A0A; border: 1px solid #404040; box-shadow: var(--shadow-window);
  opacity: 0; transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .25s var(--ease-out);
  pointer-events: none;
}
.inv-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.dd-sec { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.dd-sec__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 15px; letter-spacing: -0.01em; }
.dd-sec__count { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); }
.dd-note { font-size: 13px; color: var(--muted); }
.dd-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.dd-qty { display: flex; align-items: center; gap: 12px; }
.dd-save { font-size: 12px; color: var(--muted); }
.dd-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.dd-row .field { flex: none; }
.dd-row__btn { margin-top: 25px; }
.dd-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dd-co { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.dd-co__main { display: flex; flex-direction: column; gap: 2px; }
.dd-co__main strong { font-size: 14px; font-weight: 600; }
.dd-co__main span { font-size: 12px; color: var(--muted); }
.dd-co__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-co__acts .btn, .dd-svc .btn, .dd-check, .dd-inline .btn, .dd-foot .btn { height: 38px; padding: 0 12px; font-size: 13px; }
.dd-svc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px dashed var(--dash); border-radius: 10px; }
.dd-svc__head { font-size: 14px; color: var(--text-2); }
.dd-svc__head strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.dd-svc__list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.dd-sec:has(.dd-svc) { padding: 0; border: 0; background: none; }
.dd-dl { display: grid; gap: 10px; margin: 0 0 14px; }
.dd-dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; }
.dd-dl dt { font-size: 13px; color: var(--muted); }
.dd-dl dd { margin: 0; font-size: 14px; font-weight: 500; min-width: 0; }
.dd-inline { display: flex; gap: 8px; }
.dd-inline .input { height: 38px; flex: 1; min-width: 0; }
.dd-report { margin-bottom: 8px; }
.dd-log { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dd-log::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.dd-log__item { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; }
.dd-log__dot { width: 9px; height: 9px; margin-top: 5px; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; }
.dd-log__item:first-child .dd-log__dot { background: var(--ink); }
.dd-log__text { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.dd-log__text strong { color: var(--ink); font-weight: 600; }
.dd-log__meta { font-size: 12px; color: var(--muted); }
.dd-foot { display: flex; justify-content: flex-start; padding-top: 4px; }
.btn--danger-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn--danger-ghost:hover { background: var(--white); border-color: var(--ink); }

/* Ringkasan: kartu inventaris */
.inv-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.inv-mini__item {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  text-decoration: none; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, background-color .15s ease;
}
.inv-mini__item:hover { border-color: var(--dash); background: var(--soft); }
.inv-mini__item span { font-size: 12px; color: var(--muted); }
.inv-mini__item strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.inv-mini__item--dash { border-style: dashed; border-color: var(--dash); }

@media (max-width: 1100px) {
  .inv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .inv-kpis { gap: 10px; }
  .inv-kpi { padding: 14px; }
  .inv-kpi__value { font-size: 24px; }
  .inv-tools .search { flex-basis: 100%; }
  .dd-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dd-row__btn { margin-top: 0; width: 100%; }
}

.muted { color: var(--muted); }

/* =========================================================
   LEADS — ringkasan, sumber, filter, pipeline, tabel, detail
   ========================================================= */
.ld-kpis { margin-bottom: 20px; }

.ld-sources { margin-bottom: 20px; }
.ld-sources .card__head { margin-bottom: 12px; }
.ld-legend { display: flex; flex-direction: row; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.ld-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ld-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.ld-src__row { display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; align-items: center; }
.ld-src__name { font-size: 13px; font-weight: 600; }
.ld-src__bar { display: block; height: 10px; background: transparent; }
.ld-src__fill { position: relative; display: block; height: 100%; min-width: 2px; overflow: hidden; background: var(--line); border-radius: 999px; transition: width .6s var(--ease-out); }
.ld-src__fill i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; }
.ld-src__txt { grid-column: 2; font-size: 12px; color: var(--muted); }

.ld-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.ld-tools .search { flex: 0 1 280px; }
.ld-chips { margin: 0; }
.ld-pic .input { height: 40px; min-width: 150px; background-color: var(--white); }
.ld-view { margin-left: auto; }

/* Pipeline */
.ld-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ld-board[hidden] { display: none; }
.ld-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; background: var(--col-bg); border: 2px solid transparent; border-radius: var(--radius-card); transition: border-color .15s ease, background-color .15s ease; }
.ld-col.is-over { border-color: var(--ink); border-style: dashed; background: var(--col-over); }
.ld-col__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; }
.ld-col__name { font-size: 15px; letter-spacing: -0.01em; }
.ld-col__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; font-weight: 700; background: var(--white); border-radius: 999px; }
.ld-col__sum { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ld-col__list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.ld-col__empty { padding: 20px 12px; font-size: 13px; text-align: center; color: var(--muted); border: 1.5px dashed var(--col-dash); border-radius: 10px; }
.ld-more { width: 100%; height: 38px; font-size: 13px; background: transparent; }

.ld-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ld-dot--hold { background: var(--white); border: 2px solid var(--ink); }
.ld-dot--deal { background: var(--ink); }
.ld-dot--refusing { background: var(--placeholder); }

.ld-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: grab; transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease; }
.ld-card:hover { box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .14); }
.ld-card.is-dragging { opacity: .4; }
.ld-card:active { cursor: grabbing; }
.ld-card__open {
  display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 14px;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 10px; cursor: inherit;
}
.ld-card__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ld-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ld-card__name { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ld-card__co { font-size: 13px; color: var(--text-2); }
.ld-card__svc { font-size: 12px; color: var(--muted); }
.ld-card__val { margin-top: 4px; font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; }
.ld-card__val small { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ld-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--muted); }
.ld-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ld-card__meta .icon { width: 13px; height: 13px; }
.ld-card__meta i { font-style: normal; color: var(--dash); }
.ld-card__inv { align-self: flex-start; margin-top: 2px; padding: 2px 6px; font-size: 11px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }

/* Badge kategori: HOT hitam · WARM abu · COLD putih bergaris */
.ld-cat { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; border-radius: 5px; }
.ld-cat--hot { color: var(--white); background: var(--ink); }
.ld-cat--warm { color: var(--ink); background: var(--dash); }
.ld-cat--cold { color: var(--ink); background: var(--white); border: 1px dashed var(--muted-dark); }
.ld-stage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }

/* Tabel */
.ld-table th { white-space: nowrap; }
.th-sort {
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer;
}
.th-sort::after { content: '↕'; font-size: 11px; color: var(--dash); }
.th-sort.is-sorted { color: var(--ink); }
.th-sort[data-dir="asc"]::after { content: '↑'; color: var(--ink); }
.th-sort[data-dir="desc"]::after { content: '↓'; color: var(--ink); }
.th-sort:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.r .th-sort { flex-direction: row-reverse; }

/* Modal lebar (tambah lead, import) */
.ld-modal { width: min(640px, calc(100% - 32px)); }
.ld-fieldset { margin: 0; padding: 0; border: 0; }

.ld-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 16px;
  font-size: 14px; color: var(--text-2); text-align: center;
  border: 1.5px dashed var(--dash); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.ld-drop:hover, .ld-drop.is-over { border-color: var(--ink); background: var(--soft); }
.ld-drop:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.ld-drop .icon { width: 20px; height: 20px; }
.imp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.imp-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.imp-stats strong { font-family: var(--font-display); font-size: 22px; }
.imp-stats span { font-size: 12px; color: var(--muted); }
.imp-stats .is-main { color: var(--white); background: var(--ink); border-color: var(--ink); }
.imp-stats .is-main span { color: #A3A3A3; }
.imp-issues { margin-top: 10px; padding: 10px 12px; font-size: 13px; border: 1.5px solid var(--ink); border-radius: 10px; }
.imp-issues + .imp-issues { border-style: dashed; border-color: var(--dash); }
.imp-issues summary { font-weight: 700; cursor: pointer; }
.imp-issues ul { max-height: 160px; overflow: auto; margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }
.imp-issues li + li { margin-top: 6px; }
.imp-issues em { color: var(--muted); font-style: normal; }
.imp-sample { margin-top: 12px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.imp-sample .table { font-size: 13px; }

/* Panel detail */
.ld-drawer { width: min(560px, 100%); }
.ld-drawer .drawer__body { display: flex; flex-direction: column; gap: 14px; }
.dl-sub { margin: 16px 0 8px; font-size: 13px; }
.ld-pills { align-self: flex-start; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-actions .btn { flex: 1; min-width: 180px; }
.dl-form { display: flex; flex-direction: column; gap: 12px; }
.dl-form .input { height: 40px; }
.dl-form textarea.input { height: auto; min-height: 64px; }
.dl-form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.dl-form__foot .btn { height: 40px; }

/* Ringkasan: kartu leads */
.ld-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ld-mini__hot { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ld-mini__hot a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; }
.ld-mini__hot a:hover { border-color: var(--dash); background: var(--soft); }
.ld-mini__hot span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ld-mini__hot strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-mini__hot small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .ld-board { grid-template-columns: minmax(0, 1fr); }
  .ld-view { margin-left: 0; }
}
@media (max-width: 640px) {
  .imp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-tools .search { flex-basis: 100%; }
}

/* =========================================================
   ROLE KARYAWAN (Beranda, Jadwal Saya, Slip Gaji) + halaman admin karyawan
   ========================================================= */

/* Sidebar: label seksi kedua + kotak info akses */
.sidebar__list + .sidebar__label { margin-top: 22px; }
.sidebar__info {
  display: flex; gap: 10px; margin-bottom: 10px; padding: 12px;
  font-size: 12px; line-height: 1.45; color: #A3A3A3;
  border: 1px dashed var(--ink-2); border-radius: 12px; background: rgba(255, 255, 255, .03);
}
.sidebar__info .icon { width: 16px; height: 16px; margin-top: 1px; color: #E5E5E5; }
.sidebar__info strong { color: #E5E5E5; font-weight: 600; }

/* Panel yang selalu hitam juga di mode gelap */
@media screen {
  :root[data-theme="dark"] :is(.kb-next, .ks-sum__grand) {
    --ink: #0A0A0A; --ink-2: #262626; --muted-dark: #737373; --muted: #6B6B6B; --text-2: #404040;
    --line: #E5E5E5; --line-2: #EEEEEE; --soft: #FAFAFA; --white: #FFFFFF; --dash: #D4D4D4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  }
}

/* ---------- Beranda ---------- */
.kb-hello { margin-bottom: 24px; }
.kb-hello__date { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kb-hello__quote { margin-top: 8px; max-width: 640px; font-size: 13.5px; color: var(--muted); }

.kb-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.kb-next {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px;
  color: var(--white); background: var(--ink); border-radius: var(--radius-card);
}
.kb-next__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kb-next__label { font-size: 12px; font-weight: 600; color: #A3A3A3; text-transform: uppercase; letter-spacing: .06em; }
.kb-next__badge { color: var(--ink); background: var(--white); border-color: var(--white); }
.kb-next__event { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.kb-next__empty { font-size: 13px; color: #A3A3A3; }
.kb-next__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.kb-next__facts div { min-width: 0; }
.kb-next__facts dt { font-size: 11.5px; color: #A3A3A3; }
.kb-next__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.kb-next__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.kb-next__actions .btn { height: 40px; font-size: 13px; }

.kb-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kb-kpis .kpi__value { font-size: 22px; }
.kb-kpi-link { text-decoration: none; transition: border-color .15s ease; }
.kb-kpi-link:hover { border-color: var(--dash); }

.kb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kb-row .upc__item .badge { flex: none; }

.kb-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 190px; }
.kb-chart__col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.kb-chart__val { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.kb-chart__track { position: relative; flex: 1; width: 100%; max-width: 44px; }
.kb-chart__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink); border-radius: 6px 6px 2px 2px;
  transform-origin: bottom; animation: kb-grow .8s var(--ease-out) both;
}
.kb-chart__col.is-est .kb-chart__bar { background: var(--soft); border: 1.5px dashed var(--ink); }
.kb-chart__col.is-est .kb-chart__val, .kb-chart__col.is-est .kb-chart__mon { color: var(--ink); }
.kb-chart__mon { font-size: 12px; font-weight: 600; color: var(--muted); }
.kb-chart__legend { margin-top: 14px; }
.kb-legend-est { background: var(--soft); border: 1.5px dashed var(--ink); }
@keyframes kb-grow { from { transform: scaleY(0); } to { transform: none; } }

.kb-info .card__head .icon { color: var(--muted); }
.kb-info__text { font-size: 14px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .kb-top { grid-template-columns: minmax(0, 1fr); }
  .kb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-info { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .kb-next__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-next__event { font-size: 22px; }
  .kb-kpis, .kb-row { grid-template-columns: minmax(0, 1fr); }
  .kb-chart { gap: 6px; }
}

/* ---------- Jadwal Saya ---------- */
.kj-tabs, .seg--count { margin-bottom: 16px; }

.kj-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px; list-style: none; }
.kj-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px;
  font: inherit; color: inherit; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.kj-item:hover { border-color: var(--dash); background: var(--soft); }
.kj-item.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.kj-item .sl-date { height: 68px; }
.sl-date.is-past { color: var(--muted); background: var(--soft); border-style: dashed; }
.kj-item__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kj-item__main strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.kj-item__main small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kj-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.kj-empty { list-style: none; }

.kj-detail { position: sticky; top: 20px; }
.kj-detail .agenda__body { gap: 4px; }
.kj-facts { display: flex; flex-direction: column; margin-top: 4px; }
.kj-kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.kj-kv:last-child { border-bottom: 0; }
.kj-kv span { color: var(--muted); flex: none; }
.kj-kv strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kj-kv em { font-style: normal; color: var(--placeholder); font-weight: 500; }
.kj-eq { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.kj-eq li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; background: var(--soft); border-radius: 8px; }
.kj-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.kj-actions .btn { height: 40px; font-size: 13px; }

@media (max-width: 1099px) { .kj-detail { position: static; } }
@media (max-width: 640px) {
  .kj-item { flex-wrap: wrap; }
  .kj-item__side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ---------- Slip Gaji (karyawan) ---------- */
#sl-error, #sl-notice:not(:empty) { margin-bottom: 16px; }
.ks-notice { align-items: flex-start; margin-bottom: 0; }
.ks-notice .icon { margin-top: 1px; }
.ks-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ks-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ks-quick { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.ks-quick__label { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.ks-quick__label span { font-weight: 400; color: var(--muted); }
.ks-quick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px;
  font: inherit; font-size: 13px; color: var(--ink); text-align: left;
  background: var(--white); border: 1px dashed var(--dash); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ks-chip:hover { border-color: var(--ink); background: var(--soft); }
.ks-chip.is-active { border-style: solid; border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.ks-chip__date { padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 999px; }
.ks-chip__name { font-weight: 600; }
.ks-chip small { font-size: 12px; color: var(--muted); }

.ks-form { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.1fr) 88px; gap: 12px; align-items: end; }
.ks-form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ks-form #sl-form-error { grid-column: 1 / -1; }
.ks-preview { font-size: 13px; color: var(--muted); }
.ks-preview strong { margin: 0 4px; font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }

.ks-table td.strong { font-weight: 600; }
.ks-table tr.is-hl td { background: var(--soft); box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink); }

.ks-sum { position: sticky; top: 20px; display: flex; flex-direction: column; }
.ks-sum__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ks-sum__logo { height: 16px; width: auto; filter: invert(1); }
:root[data-theme="dark"] .ks-sum__logo { filter: none; }
.ks-sum__label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ks-sum__name { margin-top: 2px; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ks-sum__period { margin-top: 2px; font-size: 13px; color: var(--muted); }

.ks-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; padding: 0; list-style: none; }
.ks-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--placeholder); text-align: center; }
.ks-steps li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.ks-steps li:first-child::before { display: none; }
.ks-steps i { position: relative; z-index: 1; width: 14px; height: 14px; background: var(--white); border: 2px solid var(--dash); border-radius: 50%; }
.ks-steps li.is-done, .ks-steps li.is-current { color: var(--ink); }
.ks-steps li.is-done i { background: var(--ink); border-color: var(--ink); }
.ks-steps li.is-done::before, .ks-steps li.is-current::before { background: var(--ink); }
.ks-steps li.is-current i { border-color: var(--ink); box-shadow: 0 0 0 4px var(--line-2); }

.ks-sum__rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ks-sum__rows li, .ks-sum__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.ks-sum__rows li span { color: var(--text-2); }
.ks-sum__rows strong { font-weight: 600; }
.ks-sum__rows--total > div { font-size: 14px; }
.ks-sum__rows--total > div span { font-weight: 600; }
.ks-sum__empty { color: var(--muted); }
.ks-sum__grand {
  display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 16px;
  color: var(--white); background: var(--ink); border-radius: 12px;
}
.ks-sum__grand span { font-size: 12px; font-weight: 600; color: #A3A3A3; text-transform: uppercase; letter-spacing: .06em; }
.ks-sum__grand strong { font-family: var(--font-display); font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.ks-sum__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ks-sum__actions:empty { display: none; }
.ks-sum__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1199px) {
  .ks-layout { grid-template-columns: minmax(0, 1fr); }
  .ks-sum { position: static; order: -1; }
}
@media (max-width: 760px) {
  .ks-form { grid-template-columns: minmax(0, 1fr) 96px; }
  .ks-form__event { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 900px) {
  .sidebar__info { display: none; }
}

/* ---------- Admin: akun karyawan, slip, pengaturan ---------- */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-grid > * { min-width: 0; }
.adm-actions { display: flex; justify-content: flex-end; gap: 6px; }
.adm-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.adm-who { display: flex; align-items: center; gap: 10px; }
.adm-who .avatar { color: var(--white); background: var(--ink); }
.adm-who__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.adm-who small { font-size: 12px; color: var(--muted); }
.adm-form { display: flex; flex-direction: column; gap: 14px; }
.adm-saved { font-size: 13px; color: var(--muted); }
.adm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.slip-detail__items { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.slip-detail__items .table td { height: 40px; font-size: 13px; }
.slip-detail__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.slip-detail__sum div { padding: 10px 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.slip-detail__sum span { display: block; font-size: 12px; color: var(--muted); }
.slip-detail__sum strong { font-size: 15px; }
.slip-detail__sum div:last-child { color: var(--white); background: var(--ink); border-color: var(--ink); }
.slip-detail__sum div:last-child span { color: #A3A3A3; }
.slip-detail__acts { display: flex; flex-direction: column; gap: 12px; }
.slip-detail__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.slip-detail__row .field { flex: 1; min-width: 180px; }
.modal--wide { width: min(780px, calc(100vw - 32px)); }
@media (max-width: 1100px) { .adm-grid { grid-template-columns: minmax(0, 1fr); } }

.year-select input[type="month"] { width: 170px; }

/* Pilihan tipe karyawan (kartu radio) */
.tipe-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tipe-pick legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; }
.tipe-pick__opt { position: relative; display: flex; cursor: pointer; }
.tipe-pick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.tipe-pick__card {
  display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 14px 12px 40px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.tipe-pick__card::before {
  content: ''; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px;
  border: 1.5px solid var(--dash); border-radius: 50%; background: var(--white);
}
.tipe-pick__card strong { font-size: 14px; font-weight: 700; }
.tipe-pick__card small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tipe-pick__opt:hover .tipe-pick__card { border-color: var(--dash); }
.tipe-pick__opt input:checked + .tipe-pick__card { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); background: var(--soft); }
.tipe-pick__opt input:checked + .tipe-pick__card::before { border: 5px solid var(--ink); }
.tipe-pick__opt input:focus-visible + .tipe-pick__card { box-shadow: var(--ring); border-color: var(--ink); }
@media (max-width: 480px) { .tipe-pick { grid-template-columns: minmax(0, 1fr); } }

/* Pengaturan: tab tarif in-house / freelance */
.tf-tabs { padding: 0 20px 12px; }
.tf-tabs .seg--count { margin-bottom: 0; }

/* Akun Karyawan: tarif khusus freelancer */
.tk__list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.tk__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.tk__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tk__name strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.tk__name small { font-size: 12px; color: var(--muted); }
.tk__row .input { height: 38px; background: var(--white); }

/* Pengaturan: baris tarif freelance yang diedit langsung */
.tf-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tf-note { display: block; margin-top: 2px; font-size: 12px; color: var(--red); }
.tf-in { height: 38px; min-width: 120px; }
td .tf-in.input--money { width: 140px; margin-left: auto; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 36px; height: 20px; flex: none; background: var(--dash); border-radius: 999px; transition: background-color .15s ease; }
.switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--white); border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }

/* Akun Karyawan: tarif orang ini (harga khusus + tampilkan) */
.tk__row { grid-template-columns: minmax(0, 1fr) 140px auto; }
.tk__show { min-height: 0; font-size: 12.5px; gap: 6px; }
.ks-empty-tarif { color: var(--red); font-weight: 500; }
@media (max-width: 480px) { .tk__row { grid-template-columns: minmax(0, 1fr) 120px; } .tk__show { grid-column: 1 / -1; } }

/* Slip Gaji: beberapa slip per bulan (chip riwayat) */
.ks-slips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.ks-slip-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  font: inherit; font-size: 13px; color: var(--text-2); text-align: left;
  background: var(--white); border: 1px dashed var(--dash); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ks-slip-chip strong { color: var(--ink); font-weight: 700; }
.ks-slip-chip span + span::before { content: '·'; margin-right: 8px; color: var(--placeholder); }
.ks-slip-chip.is-paid { border-style: solid; border-color: var(--line); }
.ks-slip-chip:hover { border-color: var(--ink); }
.ks-slip-chip.is-active { color: var(--white); background: var(--ink); border: 1px solid var(--ink); }
.ks-slip-chip.is-active strong { color: var(--white); }
.ks-slip-chip.is-active span + span::before { color: #737373; }
.ks-slips__total { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.ks-notice--paid { align-items: center; flex-wrap: wrap; }
.ks-notice__txt { flex: 1; min-width: 200px; }
.ks-notice--paid .btn { height: 40px; font-size: 13px; }
.ks-sum__muted { font-weight: 500 !important; color: var(--muted); font-size: 12.5px; }
.slip-detail__others { margin: 0 0 12px; }
.rk-slips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rk-slip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; font: 500 12px/1.2 var(--font-body);
  color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.rk-slip:hover { border-color: var(--dash); background: var(--line-2); }
.rk-slip:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rk-slip .icon { width: 14px; height: 14px; color: var(--muted); }
.slip-detail__h { margin: 18px 0 2px; font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.slip-detail__items .badge { white-space: nowrap; }
.pr-report { margin-top: 20px; }
@media (max-width: 640px) { .ks-slips__total { margin-left: 0; width: 100%; } }

/* Slip Gaji admin: kolom aksi (hapus + chevron) */
.adm-actions .chev-icon { display: inline-grid; place-items: center; width: 24px; color: var(--dash); }
.table tr.is-link:hover .chev-icon { color: var(--ink); }

/* =========================================================
   ANAK MAGANG (Beranda & Absen, Jurnal & Tugas) + admin Absensi / Jurnal Magang
   ========================================================= */
.icon--sm { width: 14px; height: 14px; vertical-align: -2px; }
.badge--outline { color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); }
.adm-intern { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); min-width: 0; }
.adm-intern legend { padding: 0 4px; }
.adm-intern .input { background: var(--white); }
.ab-select { height: 40px; min-width: 190px; background-color: var(--white); }
.ab-rekap-head { flex-wrap: wrap; }
.adm-filter .year-select input[type="date"] { width: 160px; }

@media screen {
  :root[data-theme="dark"] .jr-form-head {
    --ink: #0A0A0A; --ink-2: #262626; --white: #FFFFFF; --muted: #6B6B6B;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  }
}

/* ---------- Beranda & Absen ---------- */
.mg-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.mg-absen { gap: 12px; }
.mg-badge { border-color: rgba(255, 255, 255, .3); }
.badge--light { color: var(--ink); background: var(--white); border-color: var(--white); }
.badge--ghost { color: #E5E5E5; background: transparent; border: 1px dashed rgba(255, 255, 255, .4); }
.mg-badge.is-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: mg-pulse 1.6s ease-in-out infinite; }
@keyframes mg-pulse { 50% { opacity: .25; } }
.mg-clock { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.mg-hours { font-size: 13px; color: #A3A3A3; }
.mg-blocked { padding: 10px 12px; font-size: 13px; color: #E5E5E5; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 10px; }
.mg-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mg-box {
  display: flex; flex-direction: column; gap: 8px; min-height: 112px; padding: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
}
.mg-box.is-locked { background: rgba(255, 255, 255, .1); }
.mg-box__label { font-size: 12px; font-weight: 600; color: #A3A3A3; text-transform: uppercase; letter-spacing: .06em; }
.mg-box__time { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.mg-box__meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: #A3A3A3; }
.mg-box__meta b { color: var(--white); font-weight: 600; }
.mg-btn { margin-top: auto; height: 42px; font-size: 13px; }
.mg-btn:disabled { opacity: .4; cursor: not-allowed; }
.mg-note { font-size: 12px; color: #A3A3A3; }
#mg-absen-error .field__error { color: #FCA5A5; }

.mg-trip { display: flex; flex-direction: column; gap: 16px; }
.mg-ring { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 18px; position: relative; }
.mg-ring__svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.mg-ring__track { fill: none; stroke: var(--line-2); stroke-width: 10; }
.mg-ring__bar { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease-out); }
.mg-ring__txt { position: absolute; left: 0; top: 0; width: 120px; height: 120px; display: grid; place-items: center; }
.mg-ring__txt strong { font-family: var(--font-display); font-size: 24px; }
.mg-ring__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-ring__big { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.mg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.mg-stats strong { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.mg-stats span { font-size: 12px; color: var(--muted); }

.mg-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mg-todo { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; padding: 0; list-style: none; }
.mg-todo li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; }
.mg-todo i { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--dash); border-radius: 6px; }
.mg-todo li.is-done { color: var(--muted); }
.mg-todo li.is-done span, .mg-todo li.is-done { text-decoration: line-through; text-decoration-color: var(--dash); }
.mg-todo li.is-done i { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }

@media (max-width: 1100px) { .mg-top, .mg-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .mg-boxes, .mg-stats { grid-template-columns: minmax(0, 1fr); }
  .mg-clock { font-size: 36px; }
  .mg-ring { grid-template-columns: 96px minmax(0, 1fr); }
  .mg-ring__svg, .mg-ring__txt { width: 96px; height: 96px; }
}

/* ---------- Jurnal & Tugas ---------- */
.jr-week { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jr-day { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 44px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.jr-day i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.jr-day.is-today, .jr-day.is-today-done { color: var(--white); background: var(--ink); border-color: var(--ink); }
.jr-day.is-today-done i { background: var(--white); }
.jr-day.is-done i { background: var(--ink); }
.jr-day.is-missed { border-style: dashed; border-color: var(--dash); }
.jr-day.is-future, .jr-day.is-off { color: var(--placeholder); background: var(--soft); border-color: var(--line-2); }

.jr-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.jr-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jr-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jr-done__check { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--white); background: var(--ink); border-radius: 50%; }
.jr-done__check .icon { width: 22px; height: 22px; stroke-width: 2.5; }
.jr-done__txt { flex: 1; min-width: 180px; }

.jr-form-head { padding: 16px 20px; color: var(--white); background: var(--ink); border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; }
.jr-form-head__date { margin-top: 2px; font-size: 20px; letter-spacing: -0.02em; }
.jr-form { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.jr-form .field__label .sec-num { margin-right: 8px; }
.jr-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: jr; }
.jr-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; font-size: 14px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; counter-increment: jr; }
.jr-list li::before { content: counter(jr) '.'; flex: none; min-width: 18px; font-weight: 700; color: var(--muted); }
.jr-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.jr-list .btn-icon { width: 36px; height: 36px; }
.jr-add { display: flex; gap: 8px; }
.jr-add .input { flex: 1; min-width: 0; }
.jr-ket { margin: 0; }
.jr-links { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
a.jr-chip:hover { border-color: var(--ink); }
.jr-chip .icon { width: 14px; height: 14px; }
.jr-chip--edit { padding-right: 4px; }
.jr-chip--edit button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.jr-chip--edit button:hover { color: var(--ink); background: var(--line-2); }
.jr-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line-2); }
.jr-form__btns { display: flex; gap: 8px; }

.jr-history { min-width: 0; }
.jr-hist { display: flex; flex-direction: column; gap: 12px; }
.jr-card { display: flex; flex-direction: column; gap: 12px; }
.jr-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jr-card__date { font-size: 16px; letter-spacing: -0.01em; }
.jr-card__list { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.55; }
.jr-card__list li + li { margin-top: 2px; }
.jr-card__story { padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); white-space: pre-line; background: var(--soft); border-radius: 10px; overflow-wrap: anywhere; }
.jr-card__links { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-card__foot { padding-top: 10px; border-top: 1px dashed var(--line); }
.jr-seen { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.jr-seen .icon { width: 14px; height: 14px; }
.jr-kom { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jr-kom li { padding: 10px 12px; font-size: 13px; border-left: 3px solid var(--ink); background: var(--soft); border-radius: 0 10px 10px 0; }
.jr-kom p { margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.jr-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

@media (max-width: 1100px) { .jr-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .jr-add { flex-direction: column; } .jr-day { width: 38px; } }

/* ---------- Admin: Jurnal Magang ---------- */
/* ===== Jurnal Magang admin — linimasa (timeline), monokrom ===== */
.tl-page { max-width: 880px; margin: 0 auto; }
.tl-head { margin: 4px 0 22px; padding-left: 96px; }
.tl-head__title { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: -0.035em; }
.tl-head__sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.tl-head__sub strong { color: var(--ink); font-weight: 600; }

.tl-bar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px 96px; padding: 10px 0; background: var(--bg);
}
.tl-tabs { margin: 0; }
.tl-bar__right { display: flex; align-items: center; gap: 8px; }
.tl-select { height: 38px; min-width: 200px; background-color: var(--white); }
.tl-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.tl-icon:hover, .tl-icon[aria-expanded="true"] { color: var(--ink); border-color: var(--dash); }
.tl-icon.is-on { color: var(--white); background: var(--ink); border-color: var(--ink); }
.tl-icon .icon { width: 17px; height: 17px; }
.tl-range { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--muted); }
.tl-range[hidden] { display: none; }
.tl-range .input { height: 36px; width: 160px; background-color: var(--white); }
.tl-link { padding: 0 4px; font: 600 13px/1 var(--font-body); color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Rel waktu */
.tl-feed { position: relative; }
.tl-feed::before { content: ""; position: absolute; top: 8px; bottom: 0; left: 39px; width: 1px; background: var(--line); }
.tl-empty { margin: 40px 0 0 96px; padding: 48px 24px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--dash); border-radius: 18px; }
.tl-day { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding-top: 22px; }
.tl-day__date {
  position: sticky; top: 64px; align-self: start; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 10px; background: var(--bg);
}
.tl-day__num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.tl-day__mon { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tl-day__dow { font-size: 11px; color: var(--muted); }
.tl-day__cards { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Kartu jurnal */
.tl-card {
  position: relative; padding: 24px 26px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px -14px rgba(0, 0, 0, .12);
}
.tl-card.is-new { border-color: var(--ink); }
.tl-card.is-new::before {
  content: "Baru"; position: absolute; top: -10px; left: 24px; padding: 3px 10px; border-radius: 999px;
  font: 700 10px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--ink);
}
.tl-card__head { display: flex; align-items: center; gap: 12px; }
.tl-card__who { flex: 1; min-width: 0; }
.tl-card__who h3 { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.tl-card__who p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.tl-card__who a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
.tl-ava {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  font: 700 13px/1 var(--font-body); color: var(--white); background: var(--ink);
}
.tl-ava--sm { width: 28px; height: 28px; font-size: 10px; color: var(--ink); background: var(--line-2); }
.tl-ket { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font: 600 12px/1 var(--font-body); color: var(--text-2); border: 1px solid var(--line); }
.tl-ket--selesai { color: var(--white); background: var(--ink); border-color: var(--ink); }
.tl-ket--kendala { color: var(--ink); border: 1.5px dashed var(--ink); }

.tl-list { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: tl; display: flex; flex-direction: column; gap: 10px; }
.tl-list li { counter-increment: tl; display: flex; gap: 12px; font-size: 15px; line-height: 1.55; }
.tl-list li::before { content: counter(tl, decimal-leading-zero); flex: none; padding-top: 2px; font: 600 12px/1.55 var(--font-display); color: var(--placeholder); }
.tl-story {
  position: relative; margin: 18px 0 0; padding: 16px 18px 16px 40px; font-size: 14px; line-height: 1.7; color: var(--text-2);
  background: var(--soft); border-radius: 14px; white-space: pre-line;
}
.tl-story::before { content: "\201C"; position: absolute; top: 6px; left: 14px; font: 700 30px/1 Georgia, serif; color: var(--dash); }
.tl-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-file {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 34px; padding: 0 12px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 10px;
}
.tl-file:hover { border-color: var(--ink); }
.tl-file .icon { flex: none; width: 14px; height: 14px; color: var(--muted); }
.tl-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tl-thread { margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.tl-msg { display: flex; gap: 10px; }
.tl-msg.is-guru .tl-ava { color: var(--white); background: var(--ink-2); }
.tl-msg__body { flex: 1; min-width: 0; }
.tl-msg__who { margin: 0; font-size: 12px; color: var(--muted); }
.tl-msg__who strong { color: var(--ink); font-weight: 600; }
.tl-msg__who span { margin-left: 8px; }
.tl-msg__text { display: inline-block; max-width: 100%; margin: 4px 0 0; padding: 9px 13px; font-size: 14px; line-height: 1.5; background: var(--soft); border-radius: 4px 14px 14px 14px; white-space: pre-line; overflow-wrap: anywhere; }

.tl-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tl-reply {
  flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px;
  background: var(--soft); border: 1px solid var(--line-2); border-radius: 20px; transition: background .15s, border-color .15s;
}
.tl-reply:focus-within { background: var(--white); border-color: var(--ink); }
.tl-reply textarea {
  flex: 1; min-width: 0; min-height: 32px; max-height: 200px; padding: 7px 0; resize: none;
  font: 400 14px/1.4 var(--font-body); color: var(--ink); background: transparent; border: 0; outline: none;
}
.tl-reply textarea::placeholder { color: var(--placeholder); }
.tl-send {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: background .15s, color .15s;
}
.tl-reply.has-text .tl-send { color: var(--white); background: var(--ink); }
.tl-send:disabled { opacity: .5; cursor: default; }
.tl-send .icon { width: 16px; height: 16px; }
.tl-send .btn__spinner { position: absolute; }
.tl-send.is-loading .icon { visibility: hidden; }
.tl-seen {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  font: 600 13px/1 var(--font-body); color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.tl-seen:hover:not(.is-done) { color: var(--white); background: var(--ink); }
.tl-seen:disabled { opacity: .5; cursor: default; }
.tl-seen .icon { width: 15px; height: 15px; }
.tl-seen.is-done { color: var(--muted); border-color: transparent; background: transparent; cursor: default; padding: 0 4px; }
.tl-card__err { margin-top: 10px; }
.tl-more { display: flex; justify-content: center; margin: 24px 0 8px 96px; }

@media (max-width: 720px) {
  .tl-head, .tl-bar { padding-left: 0; margin-left: 0; }
  .tl-head__title { font-size: 28px; }
  .tl-bar__right { flex: 1; }
  .tl-bar__right label { flex: 1; min-width: 0; }
  .tl-select { width: 100%; min-width: 0; }
  .tl-range { justify-content: flex-start; }
  .tl-range .input { flex: 1; width: auto; min-width: 0; }
  .tl-feed::before { display: none; }
  .tl-day { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 18px; }
  .tl-day__date { position: static; flex-direction: row; align-items: baseline; gap: 6px; padding: 0 4px; background: none; }
  .tl-day__num { font-size: 20px; }
  .tl-day__mon { font-size: 12px; }
  .tl-day__dow { display: inline; font-size: 12px; }
  .tl-card__who p { overflow-wrap: anywhere; }
  .tl-card { padding: 20px 16px 14px; border-radius: 16px; }
  .tl-card__head { flex-wrap: wrap; }
  .tl-card__foot { flex-wrap: wrap; }
  .tl-reply { flex-basis: 100%; }
  .tl-empty, .tl-more { margin-left: 0; }
}

/* =========================================================
   LOKASI ABSEN (Pengaturan, Absensi admin, kotak absen intern)
   ========================================================= */
.notice__link { margin-left: 6px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lk-section { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.lk-rule {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: end; gap: 12px;
  padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
}
.lk-rule__title { font-weight: 700; font-size: 14px; }
.lk-rule__field { display: flex; flex-direction: column; gap: 6px; }
.lk-rule__field .input { background: var(--white); }
.lk-rule__err { grid-column: 1 / -1; }
.lk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.lk-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.lk-card__head { display: flex; align-items: center; gap: 12px; }
.lk-name { flex: 1; min-width: 0; font-weight: 700; }
.lk-paste { display: flex; flex-direction: column; gap: 6px; }
.lk-paste__row { display: flex; gap: 8px; }
.lk-paste__row .input { flex: 1; min-width: 0; }
.lk-paste .field__hint { display: flex; align-items: center; gap: 6px; }
.lk-map {
  position: relative; isolation: isolate; height: 260px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
}
.lk-map--tall { height: min(440px, 60vh); }
.lk-coords { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.lk-coords .num { color: var(--ink); font-weight: 600; }
.lk-card__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-card__tools .btn, .lk-card__tools a.btn { gap: 6px; }
.lk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container a { color: var(--ink); }

/* Pin peta monokrom */
.mh-pin { background: none; border: 0; }
.mh-pin span {
  display: grid; place-items: center; width: 30px; height: 30px;
  font: 700 11px/1 var(--font-body); color: #FFFFFF;
  background: #0A0A0A; border: 2px solid #FFFFFF; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.mh-pin b { transform: rotate(45deg); font-weight: 700; }
.mh-pin--light span { color: #0A0A0A; background: #FFFFFF; border-color: #0A0A0A; }
.mh-pin--bad span { background: #DC2626; }

/* Absensi admin: legenda peta detail */
.ab-map-legend { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.ab-map-legend li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ab-map-legend a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 600; color: var(--ink); }
.ab-dot { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; font-size: 11px; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 50%; }
.ab-dot.is-bad { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }

/* ===== Absensi admin — tata letak tenang, monokrom ===== */
.ab-sec { margin-bottom: 28px; }
.ab-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ab-sec__title { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.ab-sec__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ab-sec__head .seg--count { margin-bottom: 0; }
.ab-select--sm { height: 36px; min-width: 170px; }

/* Rekap per anak magang: satu daftar, satu baris per orang */
.ab-people {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden;
}
.ab-people > .empty { padding: 28px; }
.ab-person {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); align-items: center; gap: 16px 28px;
  padding: 22px 26px;
}
.ab-person + .ab-person { border-top: 1px solid var(--line-2); }
.ab-person__id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ab-person__name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-person__name strong { font-family: var(--font-display); font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; }
.ab-person__name small { font-size: 12px; color: var(--muted); }
.ab-ava {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  font: 700 13px/1 var(--font-body); color: var(--white); background: var(--ink);
}
.ab-ava--sm { width: 30px; height: 30px; font-size: 11px; color: var(--ink); background: var(--line-2); }

/* Cincin persentase kehadiran */
.ab-ring {
  --p: 0; position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--p) * 1%), var(--line) 0);
}
.ab-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--white); }
.ab-ring span { position: relative; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.ab-ring small { font-size: 11px; font-weight: 600; margin-left: 1px; }

/* 6 angka sejajar, dipisah garis tipis */
.ab-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.ab-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 6px; min-width: 0; text-align: center; }
.ab-stat + .ab-stat { border-left: 1px solid var(--line-2); }
.ab-stat dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ab-stat dt { order: 2; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ab-stat.is-zero dd { color: var(--placeholder); font-weight: 500; }

@media (max-width: 900px) {
  .ab-person { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .ab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .ab-stat:nth-child(4) { border-left: 0; }
  .ab-stat dd { font-size: 26px; }
}

/* Toolbar filter di dalam bagian catatan harian */
.ab-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ab-toolbar .ab-select { height: 38px; min-width: 160px; }
.ab-toolbar .year-select input { height: 38px; }
.ab-toolbar .year-select input[type="date"] { width: 160px; }

/* Daftar per tanggal */
.ab-days { display: flex; flex-direction: column; gap: 16px; }
.ab-day { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.ab-day__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line);
}
.ab-day__head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.ab-day__head span { font-size: 12px; color: var(--muted); }
.ab-row {
  display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(170px, 1fr) minmax(140px, 1.1fr) minmax(130px, 1fr) auto;
  align-items: center; gap: 12px 16px; padding: 12px 16px; border-top: 1px solid var(--line-2);
}
.ab-day__head + .ab-row { border-top: 0; }
.ab-row.is-quiet { color: var(--muted); }
.ab-row__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ab-row__who > div { display: flex; flex-direction: column; min-width: 0; }
.ab-row__who strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row__who small { font-size: 12px; color: var(--muted); }
.ab-row__times { display: flex; gap: 22px; }
.ab-time { display: flex; flex-direction: column; min-width: 62px; }
.ab-time small { font-size: 11px; color: var(--muted); }
.ab-time strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; }
.ab-time strong.is-empty { color: var(--placeholder); font-weight: 500; }
.ab-row__loc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-row__loc small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row__st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.ab-row__act { display: flex; gap: 2px; justify-content: flex-end; }
.ab-note { flex-basis: 100%; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }

/* Status — hanya hitam, putih, abu */
.ab-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.ab-pill--hadir { color: var(--white); background: var(--ink); }
.ab-pill--job { color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); font-weight: 700; }
.ab-job { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ab-job .icon { flex: none; width: 13px; height: 13px; }
.ab-job span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-job a { color: var(--ink); font-weight: 600; }
.ab-pill--terlambat { color: var(--ink); background: var(--white); border-color: var(--ink); }
.ab-pill--izin, .ab-pill--sakit { color: var(--text-2); background: var(--line-2); }
.ab-pill--alpa { color: var(--ink); background: transparent; border: 1.5px dashed var(--ink); font-weight: 700; }
.ab-pill--belum { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--dash); }
.ab-flag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--white); background: var(--ink-2);
}
.ab-flag .icon { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .ab-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ab-row__times, .ab-row__loc, .ab-row__st { grid-column: 1 / -1; }
  .ab-row__act { grid-column: 2; grid-row: 1; }
  .ab-row__times { padding-left: 40px; }
  .ab-row__loc, .ab-row__st { padding-left: 40px; }
}
@media (max-width: 560px) {
  .ab-toolbar > * { flex: 1 1 140px; }
  .ab-toolbar .ab-select, .ab-toolbar .year-select input { width: 100%; min-width: 0; }
  .ab-sec__head { align-items: flex-start; }
}

/* Kotak absen intern (kartu hitam) */
.mg-loc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: #E5E5E5; }
.mg-loc__ok { font-size: 11px; padding: 2px 8px; }
.mg-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  font-size: 13px; line-height: 1.5; color: #E5E5E5;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .04);
}
.mg-alert > .icon { flex: none; margin-top: 2px; }
.mg-alert--strong { color: #FFFFFF; border: 2px solid #FFFFFF; background: rgba(255, 255, 255, .08); }
.mg-alert__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.mg-alert__body strong { color: #FFFFFF; }
.mg-alert__retry { height: 36px; gap: 6px; font-size: 13px; }
.mg-guide { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: #D4D4D4; font-size: 12.5px; }
@media (max-width: 640px) {
  .lk-rule { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .lk-map { height: 220px; }
  .ab-map-legend a { margin-left: 0; }
}

/* ---------- Transaksi bagian 5: Nama Crew = combobox akun ---------- */
.crew-hint { margin: 10px 0 0; font-size: 12px; }
.crew-who { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.crew-who .input { flex: 1; min-width: 0; }
.crew-who__av { width: 28px; height: 28px; }
.crew-tag {
  flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--text-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: default;
}
.crew-tag--inhouse { color: var(--white); background: var(--ink); border-color: var(--ink); }
.crew-tag--intern { border-style: dashed; border-color: var(--dash); }
.crew-tag--none { color: var(--muted); border-style: dashed; border-color: var(--dash); background: transparent; }
.combo__av { width: 28px; height: 28px; }
.combo__sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Transaksi bagian 2: koordinat lokasi event ---------- */
.evloc__row { display: flex; gap: 8px; }
.evloc__row .input { flex: 1; min-width: 0; }
.evloc__point { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.evloc__coord { font-weight: 600; }
.evloc__link { padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.evloc__map { height: 220px; margin-top: 10px; }
#evloc-msg { margin-top: 8px; }

/* ---------- Jadwal Saya (karyawan & magang) ---------- */
.badge--draft { color: var(--text-2); background: var(--white); border-style: dashed; border-color: var(--dash); }
.kj-undated { margin: 0; padding: 0 16px 16px; }
.kj-undated__title { margin: 4px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kj-undated .kj-item .sl-date { height: 56px; }
.kj-item__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.kj-honor { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.kj-honor span { font-size: 13px; color: var(--muted); }
.kj-honor strong { font-family: var(--font-display); font-size: 18px; }

/* Beranda intern: kartu job berikutnya */
.mg-job { display: flex; flex-direction: column; gap: 10px; }
.mg-job__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-job__event { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mg-job__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 0; }
.mg-job__facts dt { font-size: 12px; color: var(--muted); }
.mg-job__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Pengumuman (kartu "Info dari Admin" + halaman Admin) ---------- */
.pg-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg-item { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); }
.pg-item.is-penting { border: 2px solid var(--ink); }
.pg-item__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--dash); }
.pg-item.is-penting .pg-item__dot { background: var(--ink); }
.pg-item__body { min-width: 0; }
.pg-item__title { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pg-item__text { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.pg-item__time { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.pg-all { margin-top: 12px; }
.mg-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.modal--wide { width: min(860px, calc(100vw - 32px)); }
.modal .window__body.pg-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }
.pg-count { text-align: right; margin-top: 4px; }
.pg-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-preview__label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pg-preview .kb-info { margin: 0; }
.pg-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 420px; }
.pg-row-title small { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .modal .window__body.pg-editor { grid-template-columns: minmax(0, 1fr); }
  .pg-preview { position: static; }
}
/* Pengumuman sebagai bagian halaman Pengaturan */
#pengumuman { margin-top: 20px; }
.seg.pg-tabs { margin: 0 20px 12px; max-width: calc(100% - 40px); }
.pg-foot { margin: 0; padding: 12px 20px 16px; }

/* ---------- Guru pendamping ---------- */
.badge--guru { color: var(--ink); background: var(--white); border: 1.5px dashed var(--ink); }
.wa-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.wa-chip:hover { border-color: var(--ink); }
.jr-kom li.is-guru { border-left-style: dashed; }
.jr-kom__del { margin-left: 6px; padding: 0; font: 600 12px var(--font-body); color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.jr-kom__del:hover { color: var(--ink); }

.g-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.g-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.g-kpis .kpi__value small { font-size: .55em; color: inherit; opacity: .6; }
.g-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.g-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.g-card:hover { border-color: var(--dash); }
.g-card.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.g-card__head { display: flex; align-items: center; gap: 12px; }
.g-card__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-card__who strong { font-family: var(--font-display); font-size: 15px; overflow-wrap: anywhere; }
.g-card__who small { font-size: 13px; color: var(--muted); }
.g-card__boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-box { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--soft); border-radius: 8px; min-width: 0; }
.g-box small { font-size: 11px; color: var(--muted); }
.g-box strong { font-size: 13px; overflow-wrap: anywhere; }
.g-bar { display: flex; flex-direction: column; gap: 6px; }
.g-bar__label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.g-bar__label strong { color: var(--ink); }
.g-bar__track { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.g-bar__track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.g-bar__track i.is-low { background: var(--red); }
.g-detail { position: sticky; top: 20px; min-width: 0; }
.g-panel .agenda__body { display: flex; flex-direction: column; gap: 12px; }
.g-panel__day { margin: 4px 0 0; font-size: 13px; color: #A3A3A3; }
.g-tabs { align-self: flex-start; }
.g-readonly { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); }
.g-readonly .icon { width: 14px; height: 14px; flex: none; }
.g-table { font-size: 13px; }
.g-jurnal { display: flex; flex-direction: column; gap: 12px; }
.g-note { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.g-note .btn { align-self: flex-end; }
@media (max-width: 1099px) { .g-detail { position: static; } }
@media (max-width: 760px) { .g-kpis { grid-template-columns: minmax(0, 1fr); } }
.g-av { width: 38px; height: 38px; font-size: 13px; }
/* Rekap & Laporan guru: isi jurnal per siswa */
.g-rj { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.g-rj__title { margin: 0; font-family: var(--font-display); font-size: 17px; }
.g-rj__siswa { padding: 0; overflow: hidden; }
.g-rj__siswa > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.g-rj__siswa[open] > summary { border-bottom: 1px solid var(--line-2); }
.g-rj__siswa > .upc__empty { padding: 14px 16px; }
.g-rj__list { margin: 0; padding-left: 18px; }
.g-rj__story { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
/* Akun Karyawan → form guru: Siswa bimbingan */
.g-bimb { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.g-bimb__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-bimb__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.g-bimb__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--soft); border-radius: 8px; font-size: 14px; }
.g-bimb__pick { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.g-bimb__pick .btn { align-self: flex-end; }
/* Riwayat kehadiran (MH.absenHistory): daftar per hari, tanpa scroll horizontal */
.g-detail, .g-panel, .g-panel .agenda__body, #g-absen, .ah-wrap { min-width: 0; overflow-x: hidden; }
.ah-wrap { padding: 0 16px 16px; }
.ah-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ah-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; }
.ah-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; background: var(--soft); border-radius: 8px; line-height: 1.1; }
.ah-date small { font-size: 11px; color: var(--muted); }
.ah-date strong { font-family: var(--font-display); font-size: 17px; }
.ah-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.ah-jam { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ah-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ah-sub .icon { margin-right: 2px; }
.ah-badge { flex: none; margin-left: auto; }
.ah-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ah-pager .btn { height: 36px; padding: 0 14px; }
.ah-more { display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 16px; font: 600 14px/1.35 var(--font-body); color: var(--ink);
  text-align: center; white-space: normal; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ah-more:hover { background: var(--soft); border-color: var(--dash); }

/* ---------- Banner sekolah — halaman guru (guru/siswa.php) ---------- */
.card.sb-banner { padding: 0; margin-bottom: 24px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.sb-banner__top { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 26px 30px; }
.sb-banner__logo { flex: none; width: 88px; height: 88px; object-fit: contain; }
.sb-banner__logo--empty { display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--muted); }
.sb-banner__txt { flex: 1 1 240px; min-width: 0; }
.sb-banner__label, .sb-banner__kota { margin: 0; font-size: 13px; color: var(--muted); }
.sb-banner__title { margin: 4px 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sb-banner__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--soft); border-top: 1px solid var(--line-2); }
.sb-banner__stats > div { min-width: 0; padding: 14px 30px; }
.sb-banner__stats > div + div { border-left: 1px solid var(--line-2); }
.sb-banner__stats dt { font-size: 12px; color: var(--muted); }
.sb-banner__stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .sb-banner__top { gap: 16px; padding: 20px; }
  .sb-banner__title { font-size: 20px; }
  .sb-banner__stats { grid-template-columns: minmax(0, 1fr); }
  .sb-banner__stats > div { padding: 12px 20px; }
  .sb-banner__stats > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* Upload logo sekolah (form guru di Akun Karyawan) */
.logo-up { display: flex; align-items: center; gap: 14px; }
.logo-up__preview { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.logo-up__preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-up__preview.is-empty { background: var(--soft); font: 700 16px/1 var(--font-display); color: var(--muted); }
.logo-up__body { min-width: 0; }
.logo-up__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-up__actions label.btn { cursor: pointer; }
.field__hint.is-error { color: var(--red); }
.logo-up__actions:focus-within label.btn { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Harga Alat: daftar panjang → scroll di dalam kartu, header tabel menempel; HP bisa geser ke samping */
.eq-scroll { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); min-height: 320px; overflow: auto; }
.eq-table { min-width: 680px; }
.eq-table thead th { position: sticky; top: 0; z-index: 1; }
.eq-table .r { font-variant-numeric: tabular-nums; }
.eq-unit { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }

/* =========================================================
   Modal form (Akun Karyawan: Tambah / Ubah) — header tetap · body scroll · footer tetap
   ========================================================= */
.modal.mform {
  width: min(640px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .08);
}
.modal.mform[open] { display: flex; }
.modal.mform::backdrop { background: rgba(0, 0, 0, .45); }
html:has(.modal.mform[open]) { overflow: hidden; }   /* halaman belakang tidak ikut scroll */
.mform__form { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }

.mform__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: none;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
}
.mform__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.mform__sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mform__close {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin: -4px -8px 0 0; padding: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.mform__close:hover { color: var(--ink); background: var(--line-2); }
.mform__close:focus { outline: none; }
.mform__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mform__close .icon { width: 18px; height: 18px; }

.mform__body {
  display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0;
  padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain;
}
.mform__foot {
  display: flex; justify-content: flex-end; gap: 10px; flex: none;
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--white);
}
.mform__foot .btn { height: 44px; }
.mform__foot .st-del { margin-right: auto; }

/* Field */
.mform .field { gap: 6px; }
.mform .field__label { font-size: 13px; font-weight: 600; }
.mform .field__hint { margin-top: 0; }
.mform .input { height: 44px; border-radius: 10px; font-size: 14px; }
.mform .input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
:root[data-theme="dark"] .mform .input:focus { box-shadow: var(--ring); }
.mform .input.is-invalid { border-color: var(--red); box-shadow: none; }
.mform__err { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--red); }
.mform__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mform__grid2[hidden] { display: none; }
.mform__grid2.is-single { grid-template-columns: minmax(0, 1fr); }
.mform .adm-intern { gap: 16px; padding: 16px; }
.mform .check { min-height: 36px; }

/* Rp di dalam input · tombol mata di ujung input */
.mform__affix { position: relative; }
.mform__prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 600; color: var(--muted); pointer-events: none;
}
.mform__affix .mform__prefix + .input { padding-left: 40px; font-variant-numeric: tabular-nums; }
.mform__affix--end .input { padding-right: 48px; }
.mform__eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.mform__eye:hover { color: var(--ink); background: var(--line-2); }
.mform__eye:focus { outline: none; }
.mform__eye:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.mform__eye .icon { width: 18px; height: 18px; }
.mform__labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mform__link {
  height: 28px; padding: 0 10px; font: 600 12px/1 var(--font-body); color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.mform__link:hover { border-color: var(--dash); background: var(--line-2); }
.mform__link:disabled { opacity: .6; cursor: default; }

/* Kata sandi tersimpan (Akun Karyawan, admin) */
#st-sandi-box { display: grid; gap: 8px; margin-top: 4px; }
.sandi__item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.sandi__item--now { border-color: var(--ink); }
.sandi__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sandi__row .mform__link { margin-left: auto; }
.sandi__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sandi__pw { font: 600 15px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.sandi__pw.is-masked { letter-spacing: .12em; user-select: none; color: var(--text-2); }
.sandi__eye { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.sandi__eye:hover { color: var(--ink); background: var(--line-2); }
.sandi__eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sandi__eye .icon { width: 18px; height: 18px; }
.sandi__na { font-size: 13px; color: var(--muted); font-style: italic; }
.sandi__meta { font-size: 12px; color: var(--muted); }
.sandi__sub { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }

/* Pilihan tipe: 4 kartu, 2 kolom, seluruh kartu bisa diklik */
.mtipe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mtipe legend { grid-column: 1 / -1; margin-bottom: 6px; padding: 0; }
.mtipe__opt {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 2px; align-content: start; min-width: 0; height: 100%; padding: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.mtipe__opt:hover { border-color: var(--dash); }
.mtipe__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.mtipe__opt:has(input:checked) { padding: 13px; border: 2px solid var(--ink); background: var(--soft); }
.mtipe__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.mtipe__opt input:focus-visible { outline: none; }
.mtipe__txt { display: contents; }
.mtipe__txt strong { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mtipe__txt small { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* HP: bottom sheet, satu kolom */
@media (max-width: 639px) {
  .modal.mform {
    width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0;
    border-width: 1px 0 0; border-radius: 16px 16px 0 0;
  }
  .mform__head { padding: 16px 16px 14px; }
  .mform__body { padding: 16px; }
  .mform__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .mform__foot .btn { flex: 1; }
  .mform__foot:has(.st-del:not([hidden])) { flex-wrap: wrap; }
  .mform__foot .st-del { flex-basis: 100%; order: 3; margin-right: 0; }
  .mtipe, .mform__grid2 { grid-template-columns: minmax(0, 1fr); }
  .mtipe__txt small { white-space: normal; }
}

/* Pengaturan: tab Umum · Harga Alat · Log Login */
.ptabs { margin: 0 0 20px; }
.ptabs-panel[hidden] { display: none; }
/* Bar atas tab Harga Alat: info update kiri · cari + Tambah Alat kanan */
.eq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.eq-bar__meta { margin: 0; }
/* Pengaturan › Rekanan Rental */
#rr-tabs { margin: 0; }
#rr-tabs[hidden] { display: none; }
.rr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.rr-head .page-head__actions { flex-wrap: wrap; }
.rr-harga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rr-del { margin-right: auto; }
.rr-chips { margin: 0 20px 14px; }
@media (max-width: 560px) { .rr-harga { grid-template-columns: 1fr; } }

/* =========================================================
   LAPORAN KEUANGAN (laporan.php)
   Aksen oranye --lk-warn HANYA untuk "nota belum ada" dan tanda "diubah".
   ========================================================= */
:root { --lk-warn: #9A3412; --lk-warn-soft: #FFF7ED; --lk-warn-line: #FED7AA; }
@media screen {
  :root[data-theme="dark"] { --lk-warn: #FDBA74; --lk-warn-soft: rgba(253, 186, 116, .08); --lk-warn-line: rgba(253, 186, 116, .3); }
}

/* Form catat (di bawah header, bukan pop-up) */
.lk-form { margin-bottom: 20px; animation: lk-in .25s var(--ease-out) both; }
@keyframes lk-in { from { opacity: 0; transform: translateY(-6px); } }
.lk-form__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.lk-form__head .seg__btn { min-width: 84px; }
.lk-form__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lk-form__wide { grid-column: 1 / -1; }
.lk-opt { font-weight: 500; color: var(--muted); }
.lk-prefix { position: relative; }
.lk-prefix > span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 600; color: var(--muted); pointer-events: none;
}
.lk-prefix .input { padding-left: 40px; }
.lk-err:empty { display: none; }

.lk-nota {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; background: var(--soft); border: 1.5px dashed var(--dash); border-radius: 12px;
}
.lk-nota__row { display: flex; gap: 10px; }
.lk-nota__row .input { flex: 1; background: var(--white); }
.lk-nota__help { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

#lk-form-error:not(:empty) { margin-top: 16px; }
.lk-form__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.lk-form__by { font-size: 12px; color: var(--muted); }
.lk-form__actions { display: flex; gap: 10px; margin-left: auto; }

/* Filter periode */
.lk-period { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lk-period .input { width: auto; min-width: 150px; background-color: var(--white); }

/* Kartu angka */
.kpi__value small { font-size: .62em; color: var(--muted); }
.lk-progress { height: 8px; margin-top: 4px; }

/* Banner nota belum ada */
.lk-warn {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 10px 10px 10px 16px;
  font-size: 13.5px; color: var(--lk-warn);
  background: var(--lk-warn-soft); border: 1px solid var(--lk-warn-line); border-radius: 12px;
}
.lk-warn > .icon { flex: none; }
.lk-warn p { flex: 1; }
.lk-warn .btn { flex: none; }

/* Grafik + rincian */
.lk-chart { margin-bottom: 20px; }
.lk-chart .card__head .legend--row { margin: 0; }
/* Kurva arus kas (gaya sama dengan "Laba vs Target"): biru = masuk, merah = keluar */
.lk-chart .legend__dot--in  { background: var(--blue); }
.lk-chart .legend__dot--out { background: var(--red); }
.lk-area-in   { fill: url(#lk-fill-in); pointer-events: none; }
.lk-area-out  { fill: url(#lk-fill-out); pointer-events: none; }
.lk-stroke-in  { fill: none; stroke: var(--blue); stroke-width: 2; pointer-events: none; }
.lk-stroke-out { fill: none; stroke: var(--red); stroke-width: 2; pointer-events: none; }
.lk-dot { stroke: var(--white); stroke-width: 2; pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.lk-dot--in  { fill: var(--blue); }
.lk-dot--out { fill: var(--red); }
.lk-dots.is-on .lk-dot, .lk-dots.is-sel .lk-dot { opacity: 1; }
.lk-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.lk-hbars { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.lk-hbars li { display: flex; flex-direction: column; gap: 6px; }
.lk-hbar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.lk-hbar__top span:first-child { color: var(--text-2); font-weight: 500; }
.lk-hbar__top .num { font-weight: 600; white-space: nowrap; }
.lk-hbar__top small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.lk-hbar { height: 8px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.lk-hbar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .6s var(--ease-out); }
.lk-hbar i.is-out { background: var(--bar); }
.lk-hbars .lk-hbars__empty { padding: 12px 0; font-size: 13px; color: var(--muted); }

/* Tabel buku kas */
.lk-tbl-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px; }
.lk-tbl-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lk-tbl-tools .seg--count { margin: 0; }
.lk-tbl-tools .search { min-width: 280px; }
.lk-table { min-width: 960px; }
.lk-table td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.lk-ket { min-width: 280px; }
.lk-ket strong { display: block; font-weight: 600; }
.lk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.lk-meta { display: block; font-size: 12px; color: var(--muted); }
.lk-edited { color: var(--lk-warn); }
.lk-saldo { font-weight: 600; }
.lk-btn-s { height: 44px; padding: 0 12px; font-size: 13px; }
.lk-attach--warn { color: var(--lk-warn); border-color: var(--lk-warn-line); }
.lk-attach--warn:hover { color: var(--lk-warn); border-color: var(--lk-warn); background: var(--lk-warn-soft); }
.lk-nota-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.lk-nota-link .icon { width: 15px; height: 15px; }
.lk-nota-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lk-aksi { width: 1%; white-space: nowrap; text-align: right; }
.lk-acts { display: inline-flex; gap: 6px; }
.lk-table tr.is-flash td { animation: lk-flash 2.4s ease-out; }
@keyframes lk-flash { 0%, 40% { background: var(--line-2); } 100% { background: transparent; } }
.lk-table tfoot td { height: 52px; }

.lk-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.lk-empty .icon { width: 28px; height: 28px; margin-bottom: 6px; color: var(--placeholder); }
.lk-empty p { font-weight: 600; }
.lk-empty small { margin-bottom: 12px; font-size: 13px; color: var(--muted); }

/* Error + skeleton */
.lk-errcard { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.lk-errcard > .icon { width: 22px; height: 22px; }
.lk-errcard > div { flex: 1; }
.lk-errcard p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.lk-skel {
  display: block; max-width: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--line-2) 25%, var(--soft) 50%, var(--line-2) 75%);
  background-size: 200% 100%; animation: lk-shimmer 1.2s linear infinite;
}
.kpi--dark .lk-skel { background: linear-gradient(90deg, #262626 25%, #333 50%, #262626 75%); background-size: 200% 100%; }
.lk-skel--chart { width: 100%; height: 240px; border-radius: 10px; }
@keyframes lk-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lk-skel, .lk-form, .lk-table tr.is-flash td { animation: none; } }

/* Tabungan: sheet ala spreadsheet */
.lp-switch { margin-bottom: 20px; }
.lp-switch .seg { margin: 0; }
.tb-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line-2); }
.tb-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.tb-tab:hover { color: var(--ink); border-color: var(--muted-dark); }
.tb-tab.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.tb-tab--new { background: transparent; border-style: dashed; }
.tb-tab .icon { width: 14px; height: 14px; }
.tb-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 16px 20px 0; }
.tb-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.tb-kpi > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tb-kpi > strong { font-size: 20px; font-weight: 700; }
.tb-kpi > small { font-size: 12.5px; color: var(--muted); }
.tb-kpi.kpi--dark > span, .tb-kpi.kpi--dark > small { color: #A3A3A3; }
.tb-kpi--target { grid-column: span 2; }
.tb-kpi--target .lk-hbar { margin: 4px 0 2px; }
.tb-set { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 20px; }
.tb-set .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tb-set__del { height: 44px; }
.tb-table { min-width: 900px; }
.tb-table td { padding-top: 4px; padding-bottom: 4px; }
.tb-table td + td, .tb-table th + th { border-left: 1px solid var(--line-2); }
.tb-no { width: 1%; color: var(--muted); text-align: center; }
.tb-in {
  width: 100%; min-width: 90px; height: 36px; padding: 0 8px;
  font: inherit; font-size: 13.5px; color: var(--ink);
  background: transparent; border: 1px solid transparent; border-radius: 6px;
}
.tb-in:hover { border-color: var(--line); }
.tb-in:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: var(--ring); }
.tb-in[data-f="keterangan"] { min-width: 220px; }
.tb-money { text-align: right; min-width: 120px; }
.tb-table .tb-date, .tb-table .cdate { min-width: 150px; height: 36px; }
.tb-saldo { font-weight: 600; white-space: nowrap; }
.tb-saldo.is-neg { color: var(--red); }
.tb-table tr.is-saving .tb-no { color: var(--blue); }
.tb-table tr.is-error td { background: var(--red-soft); }
.tb-none { padding: 20px; color: var(--muted); text-align: center; font-weight: 500; }
.tb-add { padding: 12px 20px 20px; }
.tb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.tb-empty .icon { width: 28px; height: 28px; margin-bottom: 6px; color: var(--placeholder); }
.tb-empty p { font-weight: 600; }
.tb-empty small { max-width: 460px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.tb-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px 12px; }
.tb-sec__title { font-size: 14px; font-weight: 700; }

/* Tabel rincian ala spreadsheet: judul hitam, kebutuhan | Rp nominal, baris TOTAL */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 620px), 1fr)); gap: 20px; padding: 0 20px 24px; align-items: start; }
.rc-empty { grid-column: 1 / -1; padding: 16px; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.rc {
  --rc-line: #E2E2E2; --rc-cols: minmax(0, 1fr) 64px 160px 150px;
  overflow: hidden; font-size: 13.5px; color: #0A0A0A; background: #FFFFFF;
  border: 1px solid #0A0A0A; border-radius: 8px;
}
.rc input { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0; min-width: 0; }
.rc input:focus { outline: none; }
.rc input::placeholder { color: #B4B4B4; }

.rc__head { display: flex; align-items: center; gap: 4px; padding-right: 6px; background: #0A0A0A; }
.rc__judul {
  flex: 1; height: 40px; padding: 0 14px;
  font-weight: 700 !important; letter-spacing: .02em; text-transform: uppercase; color: #FFFFFF !important;
}
.rc__judul:focus { background: #1F1F1F !important; }
.rc__judul::placeholder { color: #737373; }
.rc__x, .rc__del {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0;
  color: #8A8A8A; background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.rc__x:hover { color: #FFFFFF; background: #262626; }
.rc__x .icon, .rc__del .icon, .rc__add .icon { width: 14px; height: 14px; }

.rc__row, .rc__total, .rc__cols { display: grid; grid-template-columns: var(--rc-cols); }
.rc__row { border-top: 1px solid var(--rc-line); }
.rc__cols { background: #F3F3F3; border-bottom: 1px solid #D4D4D4; }
.rc__cols span { padding: 7px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6B6B6B; }
.rc__cols span + span { border-left: 1px solid var(--rc-line); }
.rc__cols span:nth-child(2) { text-align: center; padding: 7px 4px; }
.rc__cols span:nth-child(n+3) { text-align: right; }
.rc__qty { height: 36px; padding: 0 6px; text-align: center; border-left: 1px solid var(--rc-line) !important; font-variant-numeric: tabular-nums; }
.rc__sub {
  display: flex; align-items: center; justify-content: flex-end; padding: 0 14px;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: #FAFAFA; border-left: 1px solid var(--rc-line);
}
.rc__sub.is-zero { font-weight: 400; color: #B4B4B4; }
.rc__total span { grid-column: 1 / 4; }
/* Daftar nama per baris ("untuk siapa saja") */
.rc__nama { padding-right: 96px; }
.rc__who {
  position: absolute; right: 34px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px;
  font: inherit; font-size: 11.5px; font-weight: 600; color: #A3A3A3; font-variant-numeric: tabular-nums;
  background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
}
.rc__who .icon { width: 13px; height: 13px; }
.rc__who:not(.has) { opacity: 0; }   /* belum ada nama → muncul saat baris disorot */
.rc__row:hover .rc__who, .rc__row:focus-within .rc__who, .rc__row.is-open .rc__who, .rc__who:focus-visible { opacity: 1; }
.rc__row:hover .rc__who { border-color: #E2E2E2; }
.rc__who:hover { color: #0A0A0A; }
.rc__who.has { color: #2563EB; background: #EFF4FF; }
.rc__row.is-open .rc__who { color: #FFFFFF; background: #0A0A0A; border-color: #0A0A0A; }
.rc__list { padding: 12px 14px 14px; background: #F7F7F7; border-top: 1px solid var(--rc-line); box-shadow: inset 0 6px 8px -8px rgba(0, 0, 0, .18); }
.rc__list-head { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 700; color: #0A0A0A; }
.rc__list-head .icon { width: 14px; height: 14px; }
.rc__list-head span { font-weight: 500; color: #8A8A8A; }
.rc__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rc__orang {
  position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 30px 0 6px;
  background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease;
}
.rc__orang:focus-within { border-color: #0A0A0A; box-shadow: 0 0 0 3px rgba(10, 10, 10, .06); }
.rc__orang span {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px;
  font-size: 11px; font-weight: 700; color: #6B6B6B; background: #F0F0F0; border-radius: 50%;
}
.rc__orang input { flex: 1; height: 100%; padding: 0; font-size: 13px; font-weight: 500; }
.rc__orang .rc__del { right: 3px; width: 24px; height: 24px; }
.rc__orang:hover .rc__del, .rc__orang .rc__del:focus-visible { opacity: 1; }
.rc__chip-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #8A8A8A;
  background: transparent; border: 1px dashed #C8C8C8; border-radius: 8px; cursor: pointer;
}
.rc__chip-add .icon { width: 14px; height: 14px; }
.rc__chip-add:hover { color: #0A0A0A; border-color: #0A0A0A; background: #FFFFFF; }
.rc__row:focus-within { background: #F7F9FF; }
.rc__cell { position: relative; display: flex; align-items: center; }
.rc__nama { flex: 1; height: 36px; padding: 0 36px 0 14px; }
.rc__del { position: absolute; right: 4px; opacity: 0; }
.rc__row:hover .rc__del, .rc__del:focus-visible { opacity: 1; }
.rc__del:hover { color: var(--red); background: #FEF2F2; }
.rc__money {
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-left: 1px solid var(--rc-line); cursor: text;
}
.rc__money span { font-size: 12.5px; color: #A3A3A3; }
.rc__nom { flex: 1; height: 36px; text-align: right; font-variant-numeric: tabular-nums; }
/* Link antar sheet: harga satuan diambil dari total sheet/tabel lain */
.rc__money { position: relative; }
.rc__lnk {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-left: -8px; padding: 0;
  color: #A3A3A3; background: none; border: 0; border-radius: 6px; cursor: pointer; opacity: 0;
}
.rc__lnk .icon { width: 13px; height: 13px; }
.rc__row:hover .rc__lnk, .rc__row:focus-within .rc__lnk, .rc__row.is-picking .rc__lnk, .rc__lnk:focus-visible { opacity: 1; }
.rc__lnk:hover, .rc__row.is-picking .rc__lnk { color: #2563EB; background: #EFF4FF; }
.rc__money.is-link {
  flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; min-width: 0; padding: 4px 14px;
  font: inherit; color: inherit; text-align: right; background: #F3F7FF; border: 0; border-left: 1px solid var(--rc-line); cursor: pointer;
}
.rc__money.is-link small {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  font-size: 10.5px; font-weight: 600; color: #2563EB;
}
.rc__money.is-link small .icon { flex: none; width: 11px; height: 11px; }
.rc__money.is-link small span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc__money.is-link b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc__money.is-link:hover, .rc__row.is-picking .rc__money.is-link { background: #E6EEFF; }
.rc__money.is-broken { background: #FEF2F2; }
.rc__money.is-broken small { color: var(--red); }
.rc__pick .rc__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rc__grp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rc__grp-name { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6B6B6B; }
.rc__grp-name em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: #A3A3A3; }
.rc__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px;
  font: inherit; font-size: 12.5px; color: #0A0A0A; text-align: left;
  background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 8px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rc__opt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc__opt b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: #525252; }
.rc__opt.is-main span { font-weight: 700; }
.rc__opt:hover:not([disabled]) { border-color: #0A0A0A; }
.rc__opt:focus-visible { outline: none; border-color: #0A0A0A; box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.rc__opt.is-on { color: #FFFFFF; background: #0A0A0A; border-color: #0A0A0A; }
.rc__opt.is-on b { color: #FFFFFF; }
.rc__opt[disabled] { cursor: not-allowed; opacity: .45; }
.rc__none { margin: 0; font-size: 12.5px; color: #8A8A8A; }
.rc__pick-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #D9D9D9; }
.rc__pbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #0A0A0A;
  background: #FFFFFF; border: 1px solid #D9D9D9; border-radius: 8px; cursor: pointer;
}
.rc__pbtn .icon { width: 13px; height: 13px; }
.rc__pbtn:hover { border-color: #0A0A0A; }

.rc__add {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; padding: 0 14px;
  font: inherit; font-size: 12.5px; color: #8A8A8A; background: #FAFAFA;
  border: 0; border-top: 1px dashed var(--rc-line); cursor: pointer;
}
.rc__add:hover { color: #0A0A0A; background: #F3F3F3; }

.rc__total { align-items: center; min-height: 42px; background: #F3F3F3; border-top: 2px solid #0A0A0A; font-weight: 800; }
.rc__total span { overflow: hidden; padding: 0 14px; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase; }
.rc__total strong {
  display: flex; align-items: center; justify-content: flex-end; height: 100%; padding: 0 14px;
  font-variant-numeric: tabular-nums; border-left: 1px solid #D4D4D4;
}
.rc-grand {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  font-weight: 700; color: var(--white); background: var(--ink); border-radius: 10px;
}
.rc-grand strong { font-size: 16px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .tb-set { grid-template-columns: minmax(0, 1fr); }
  .rc-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-kpi--target { grid-column: auto; }
}

@media (max-width: 1100px) {
  .lk-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lk-cats { grid-template-columns: minmax(0, 1fr); }
  .lk-tbl-tools, .lk-tbl-tools .search { width: 100%; min-width: 0; }
  .lk-warn { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .lk-form__grid { grid-template-columns: minmax(0, 1fr); }
  .lk-nota__row { flex-direction: column; }
  .lk-period label { flex: 1; }
  .lk-period .input { width: 100%; min-width: 0; }
  .page-head__actions .btn { flex: 1; }
}

/* Ringkasan: kartu Kas (data Laporan Keuangan) */
.kas-mini__saldo {
  display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 14px 16px;
  color: #FFFFFF; text-decoration: none; background: #0A0A0A; border-radius: 10px;
}
.kas-mini__saldo span { font-size: 12px; color: #A3A3A3; }
.kas-mini__saldo strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
:root[data-theme="dark"] .kas-mini__saldo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.kas-mini__saldo + .inv-mini { margin-top: 8px; }
.kas-mini__warn {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 8px 12px;
  font-size: 12.5px; color: var(--lk-warn); text-decoration: none;
  background: var(--lk-warn-soft); border: 1px solid var(--lk-warn-line); border-radius: 10px;
}
.kas-mini__warn:hover { border-color: var(--lk-warn); }
.kas-mini__warn .icon { width: 16px; height: 16px; flex: none; }
.lk-auto .lk-ket strong { font-weight: 500; }
.lk-lock { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--placeholder); }
.lk-lock .icon { width: 16px; height: 16px; }
.lk-hint { margin-top: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }

/* Laporan: Biaya Tetap Bulanan */
.lk-bt { margin-bottom: 20px; }
.lk-bt .card__head { flex-wrap: wrap; align-items: flex-start; }
.lk-bt .card__sub { margin-top: 4px; }
.lk-bt-form { margin-bottom: 16px; padding: 16px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; }
.lk-bt-form .input { background-color: var(--white); }
.lk-bt-form .input:disabled { color: var(--muted); background-color: var(--soft); cursor: not-allowed; }
.lk-bt-form__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 14px; }
#bt-error:not(:empty) { margin-top: 14px; }
.lk-bt-form .lk-form__foot { margin-top: 14px; }
.lk-bt-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lk-bt-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.lk-bt-item:first-child { border-top: 0; }
.lk-bt-item__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lk-bt-item__main strong { font-weight: 600; }
.lk-bt-item__main small { font-size: 12px; color: var(--muted); }
.lk-bt-item__amt { white-space: nowrap; font-weight: 600; }
.lk-bt-item__amt small { font-weight: 500; color: var(--muted); }
.lk-bt-empty { padding: 8px 0 4px; font-size: 13px; color: var(--muted); }
.lk-linkbtn { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
@media (max-width: 1100px) {
  .lk-bt-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-bt-form__name { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .lk-bt-form__grid { grid-template-columns: minmax(0, 1fr); }
  .lk-bt-item { flex-wrap: wrap; }
  .lk-bt-item__main { flex-basis: 100%; }
  .lk-bt-item__amt { flex: 1; }
}

/* Inventaris: Nilai aset & penyusutan */
.inv-aset { margin-top: 20px; }
.inv-aset__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inv-aset__stat, .dd-susut > div {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 12px 14px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px;
}
.inv-aset__stat span, .dd-susut span { font-size: 12px; color: var(--muted); }
.inv-aset__stat strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.inv-aset__stat.is-dark, .dd-susut > .is-dark { color: #FFFFFF; background: #0A0A0A; border-color: #0A0A0A; }
.inv-aset__stat.is-dark span, .dd-susut > .is-dark span { color: #A3A3A3; }
:root[data-theme="dark"] :is(.inv-aset__stat.is-dark, .dd-susut > .is-dark) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.inv-aset__note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.inv-aset__note .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.inv-aset__wrap { margin: 16px -20px -20px; border-top: 1px solid var(--line); }
.inv-aset__table { min-width: 860px; }
.inv-susut-bar { height: 6px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.inv-susut-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.inv-susut-txt { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.dd-susut { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.dd-susut strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dd-susut + .inv-susut-bar { margin-bottom: 2px; }
.dd-susut-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dd-susut-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; }
.dd-susut-form small { font-weight: 500; color: var(--muted); }
#dd-susut-err:not(:empty) { margin-top: 10px; }
@media (max-width: 900px) { .inv-aset__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dd-susut-form { grid-template-columns: minmax(0, 1fr); } }
/* Biaya tetap: baris total di bawah daftar */
.lk-bt-item.lk-bt-total { margin-top: 4px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.lk-bt-total .lk-bt-item__amt { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; }
.lk-bt-total__pad { width: 80px; flex: none; }
@media (max-width: 600px) { .lk-bt-total__pad { display: none; } }

/* =========================================================
   Dialog konfirmasi hapus + kode sandi (MH.confirmDelete, app.js) — semua halaman admin
   ========================================================= */
.cdlg {
  --cdlg-warn: #9A3412;
  width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--white); color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: var(--shadow-window);
}
:root[data-theme="dark"] .cdlg { --cdlg-warn: #FB923C; }
.cdlg::backdrop { background: rgba(0, 0, 0, .45); }
.cdlg[open] { animation: fade-blur-up .3s var(--ease-out) both; }
.cdlg__bar {
  position: relative; display: flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--soft); border-bottom: 1px solid var(--line-2);
}
.cdlg__dots { display: flex; gap: 7px; }
.cdlg__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.cdlg__dots i:nth-child(2) { background: var(--bar); }
.cdlg__dots i:nth-child(3) { background: var(--dash); }
.cdlg__window {
  position: absolute; left: 50%; transform: translateX(-50%); max-width: 60%;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cdlg__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.cdlg__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cdlg__meta, .cdlg__desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cdlg__meta { margin-top: -8px; }
.cdlg__meta[hidden], .cdlg__block[hidden], .cdlg__field[hidden] { display: none; }
.cdlg__block {
  padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5;
  color: var(--cdlg-warn); background: color-mix(in srgb, var(--cdlg-warn) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cdlg-warn) 30%, transparent);
}
.cdlg__field { display: flex; flex-direction: column; gap: 8px; }
.cdlg__label { font-size: 13px; font-weight: 700; }
.cdlg__pin {
  width: 100%; height: 52px; padding: 0 12px 0 calc(12px + .5em);
  border: 1px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 22px; letter-spacing: .5em; text-align: center;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.cdlg__pin::placeholder { color: var(--placeholder); letter-spacing: .5em; text-align: center; opacity: 1; }
.cdlg__pin:focus { box-shadow: var(--ring); }
.cdlg__pin.is-invalid { border-color: var(--cdlg-warn); }
.cdlg__pin.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cdlg-warn) 18%, transparent); }
.cdlg__err { margin: 0; min-height: 0; font-size: 12.5px; font-weight: 500; text-align: center; color: var(--cdlg-warn); }
.cdlg__err:empty { display: none; }
.cdlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.cdlg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-width: 104px; padding: 0 20px; border-radius: 12px;
  font: 600 14px/1 'Plus Jakarta Sans', sans-serif; cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease, transform .1s ease;
}
.cdlg__btn:active:not(:disabled) { transform: scale(.98); }
.cdlg__btn:focus-visible { outline: none; box-shadow: var(--ring); }
.cdlg__btn--ghost { background: var(--white); color: var(--ink); border: 1px solid #E5E5E5; }
:root[data-theme="dark"] .cdlg__btn--ghost { border-color: var(--line); }
.cdlg__btn--ghost:hover { background: var(--soft); }
.cdlg__btn--danger { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.cdlg__btn--danger:hover:not(:disabled) { background: var(--ink-2); }
.cdlg__btn:disabled { opacity: .45; cursor: not-allowed; }
.cdlg__btn.is-loading { opacity: 1; cursor: progress; }
.cdlg__btn .btn__spinner { display: none; }
.cdlg__btn.is-loading .btn__spinner { display: inline-block; }
.cdlg.is-busy [data-cdlg-cancel] { opacity: .45; pointer-events: none; }
@media (max-width: 480px) {
  .cdlg__body { padding: 20px; }
  .cdlg__actions .cdlg__btn { flex: 1; }
}

/* Notifikasi hitam di atas halaman (MH.toast) */
.mh-toast {
  position: fixed; left: 50%; top: 20px; z-index: 1100; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px;
  font: 600 13.5px/1.35 'Plus Jakarta Sans', sans-serif; color: #FFFFFF;
  background: #0A0A0A; border: 1px solid #262626; box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(-50%, -12px);
  transition: opacity .2s ease, transform .3s var(--ease-out);
  pointer-events: none;
}
.mh-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .cdlg[open] { animation: none; } .mh-toast { transition: opacity .2s ease; } }

/* Pengaturan — kartu WhatsApp (Fonnte) */
.wa-status { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--dash); border-radius: 999px; }
.wa-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.wa-status.is-on { color: var(--white); background: var(--ink); border: 1px solid var(--ink); }
.wa-status.is-on::before { opacity: 1; }
.wa-status.is-bad { color: var(--ink); border: 1.5px dashed var(--ink); }
.wa-steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.wa-steps a { color: var(--ink); font-weight: 600; }
.wa-steps code { padding: 1px 6px; font-size: 12px; background: var(--line-2); border-radius: 4px; }
.wa-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 4px 0 0; }
.wa-dl div { padding: 10px 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.wa-dl dt { font-size: 12px; color: var(--muted); }
.wa-dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.wa-note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.wa-test { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wa-to { display: flex; gap: 8px; }
.wa-to .input { flex: 1; min-width: 0; }
.wa-to .btn { flex: none; }

/* ===== Foto profil ===== */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--btn { padding: 0; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.avatar--btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.avatar__cam {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  color: #fff; background: rgba(0, 0, 0, .55); transition: opacity .2s ease;
}
.avatar__cam svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.avatar--btn:hover .avatar__cam, .avatar--btn:focus-visible .avatar__cam { opacity: 1; }

.pf-modal { width: min(360px, calc(100vw - 32px)); padding: 0; border-radius: 22px; }
.pf { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 28px 26px; text-align: center; }
.pf__close { position: absolute; top: 12px; right: 12px; }
.pf__ava {
  position: relative; display: grid; place-items: center; width: 132px; height: 132px; overflow: hidden; border-radius: 50%;
  font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); background: var(--ink); box-shadow: 0 0 0 6px var(--line-2);
}
.pf__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf__ava.has-foto span { visibility: hidden; }
.pf__name { margin: 18px 0 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.pf__role { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pf__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 22px; }
.pf__hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
#pf-error { width: 100%; margin-top: 10px; text-align: left; }

/* ===== Akun Karyawan — direktori kartu, monokrom ===== */
.ak-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ak-bar .seg--count { margin: 0; }
.ak-search { position: relative; display: block; width: min(320px, 100%); }
.ak-search .icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ak-search .input { width: 100%; height: 40px; padding-left: 38px; background-color: var(--white); border-radius: 999px; }
.ak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; margin-bottom: 18px; }
.ak-empty { grid-column: 1 / -1; margin: 0; padding: 56px 24px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--dash); border-radius: 18px; }
.ak-card {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 18px; text-align: center; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease;
}
.ak-card:hover { transform: translateY(-3px); border-color: var(--dash); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .28); }
.ak-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ak-card.is-off { background: var(--soft); }
.ak-card.is-off .ak-ava { filter: grayscale(1); opacity: .45; }
.ak-card.is-off .ak-name, .ak-card.is-off .ak-role { color: var(--muted); }
.ak-tipe {
  position: absolute; top: 14px; left: 14px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line);
}
.ak-tipe--inhouse { color: var(--white); background: var(--ink); border-color: var(--ink); }
.ak-tipe--intern { border-color: var(--ink); color: var(--ink); }
.ak-tipe--guru { border-style: dashed; border-color: var(--ink); color: var(--ink); }
.ak-off { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ak-ava {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin-top: 8px; overflow: hidden; border-radius: 50%;
  font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); background: var(--line-2); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line);
}
.ak-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-name { margin: 16px 0 0; font-family: var(--font-display); font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ak-role { margin: 3px 0 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ak-mail { max-width: 100%; margin: 2px 0 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-facts { display: flex; width: 100%; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ak-facts > div { flex: 1; min-width: 0; padding: 0 6px; }
.ak-facts > div + div { border-left: 1px solid var(--line-2); }
.ak-facts dt { font-size: 11px; color: var(--muted); }
.ak-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ak-warn { padding-bottom: 1px; border-bottom: 1.5px dashed var(--ink); }
.ak-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.ak-chip { padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; }
.ak-chip:hover { border-color: var(--ink); }
.ak-chip.is-solid { color: var(--white); background: var(--ink); border-color: var(--ink); }
.ak-edit {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--muted);
  opacity: 0; transform: translateY(2px); transition: opacity .2s ease, transform .2s ease;
}
.ak-edit .icon { width: 14px; height: 14px; }
.ak-card:hover .ak-edit, .ak-card:focus-visible .ak-edit { opacity: 1; transform: none; color: var(--ink); }
@media (hover: none) { .ak-edit { opacity: 1; transform: none; } }
@media (max-width: 560px) { .ak-search { width: 100%; } }
.ak-card.is-off .ak-ava { background: var(--line); }


/* Pengaturan → Log Login */
.seg.ll-tabs { margin: 0 20px 12px; max-width: calc(100% - 40px); }
.ll-table .ll-nowrap { white-space: nowrap; }
.ll-table td { vertical-align: top; }
.ll-foot { padding: 12px 20px; margin: 0; }

/* ===== Form pendaftaran karyawan (daftar.php, publik) ===== */
.dft-page { background: var(--bg); }
.dft { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 40px 16px 32px; }
.dft__head { margin-bottom: 24px; }
.dft__logo { display: block; width: 180px; height: auto; filter: invert(1); }
.dft__window { width: 100%; max-width: 560px; }
.dft__body { padding: 32px; }
.dft__title { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.dft__title:focus { outline: none; }
.dft__lead { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.dft__lead a { color: var(--ink); font-weight: 600; }
.dft__form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.dft__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dft__set { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.dft__set legend { padding: 0 6px; }
.dft__sublabel { font-weight: 500; color: var(--text-2); }
.dft__form .check { margin: -6px 0 0; }
.dft__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dft__foot { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .dft { padding-top: 24px; }
  .dft__body { padding: 22px 18px; }
  .dft__grid { grid-template-columns: 1fr; }
}

/* Akun Karyawan — pendaftar baru & panel link pendaftaran */
.ak-baru { position: absolute; top: 14px; right: 14px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 999px; }
.ak-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 12px 16px; font-size: 14px; background: var(--white); border: 1px solid var(--ink); border-radius: 12px; }
.dl-link { display: flex; gap: 8px; }
.dl-link .input { flex: 1; min-width: 0; font-size: 13px; }
.dl-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.dl-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dash); }
.dl-status.is-on::before { background: var(--ink); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pilihan bank berlogo (form pendaftaran) */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.bk-opt:hover { border-color: var(--dash); }
.bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt:has(input:checked) { border: 2px solid var(--ink); padding: 9px 5px 7px; background: var(--soft); }
.bk-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-logo { display: grid; place-items: center; width: 100%; height: 30px; }
.bk-logo img { max-width: 72px; max-height: 30px; object-fit: contain; }
.bk-logo--txt { width: 30px; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--line-2); border-radius: 50%; }
/* Kotak yang punya logo: logo saja (nama bank hanya untuk pembaca layar), logo lebih besar */
.bk-opt--logo { justify-content: center; min-height: 64px; }
.bk-opt--logo .bk-logo { height: 36px; }
.bk-opt--logo .bk-logo img { max-width: 84px; max-height: 36px; }
.bk-opt:not(.bk-opt--logo) { min-height: 64px; justify-content: center; }
.bk-name { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--text-2); }
/* Logo bank kecil di samping nama bank (Admin) */
.bk-mini { display: inline-block; height: 18px; width: auto; max-width: 64px; margin-right: 2px; vertical-align: -4px; object-fit: contain; }
.mform__affix .bk-prev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); height: 20px; max-width: 56px; object-fit: contain; pointer-events: none; }

/* Foto profil di form pendaftaran */
.dft-foto { display: flex; align-items: center; gap: 16px; }
.dft-foto__ava { flex: none; display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; color: var(--muted); background: var(--line-2); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.dft-foto__ava .icon { width: 34px; height: 34px; }
.dft-foto__ava img { width: 100%; height: 100%; object-fit: cover; }
.dft-foto__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dft-foto__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dft-opsional { font-weight: 500; color: var(--muted); }
.field__hint.is-error { color: var(--red); }

/* Form pendaftaran — HP */
.dft .input { font-size: 16px; }                     /* < 16px → iPhone zoom otomatis saat isian disentuh */
.dft .mtipe { grid-template-columns: 1fr 1fr; }      /* 2 pilihan pendek: tetap berdampingan di HP */
.dft .mtipe__txt small { white-space: normal; }
.dft .field__error { margin: 0; }
.dft .bk-logo img { max-width: 100%; }
.dft .btn--lg { min-height: 50px; }
@media (max-width: 520px) {
  .dft { padding: 16px 12px 24px; }
  .dft__head { margin-bottom: 14px; }
  .dft__logo { width: 150px; }
  .dft__window { border-radius: 12px; }
  .dft__window .window__bar { padding: 0 12px; }
  .dft__title { font-size: 22px; }
  .dft__form { gap: 16px; margin-top: 22px; }
  .dft__set { padding: 12px; }
  .bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bk-opt, .bk-opt:not(.bk-opt--logo), .bk-opt--logo { min-height: 56px; padding: 8px 4px 6px; }
  .bk-opt:has(input:checked) { padding: 7px 3px 5px; }
  .bk-opt--logo .bk-logo { height: 30px; }
  .bk-opt--logo .bk-logo img { max-height: 30px; }
  .dft-foto__ava { width: 64px; height: 64px; }
}
@media (max-width: 360px) {
  .dft__window .window__dots { display: none; }     /* judul jendela tidak menabrak titik */
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dft .mtipe__opt { padding: 12px; }
}

/* Form pendaftaran: 3 status kerja (In-house / Freelance / Intern) */
.dft .mtipe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dft .mtipe__opt { padding: 12px 10px; }
.dft .mtipe__opt:has(input:checked) { padding: 11px 9px; }
.dft .mtipe__txt strong { font-size: 14px; }
.dft .mtipe__txt small { font-size: 12px; }
.dft__set[hidden] { display: none; }
@media (max-width: 520px) { .dft__grid--2 { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 360px) {
  .dft .mtipe { grid-template-columns: 1fr; }
  .dft__grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dft .mtipe { grid-template-columns: 1fr; gap: 8px; }
  .dft .mtipe__opt { grid-template-columns: 16px auto minmax(0, 1fr); padding: 12px 14px; }
  .dft .mtipe__opt:has(input:checked) { padding: 11px 13px; }
  .dft .mtipe__txt small { grid-column: auto; text-align: right; }   /* satu baris: (•) Intern ······ Magang / PKL */
}
@media (max-width: 420px) { .dft__grid--2 { grid-template-columns: 1fr; } }

/* Slip Gaji — rekap tahunan */
.ry-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ry-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ry-tools .year-select .input { width: 100px; }
.ry-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ry-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; background: var(--white); }
.ry-sum span { font-size: 12px; color: var(--muted); }
.ry-sum strong { font-size: 16px; }
.ry-table th, .ry-table td { white-space: nowrap; }
.ry-table td.r, .ry-table th.r { padding-left: 10px; padding-right: 10px; font-size: 13px; }
.ry-name { position: sticky; left: 0; z-index: 1; min-width: 170px; text-align: left; background: var(--white); box-shadow: 1px 0 0 var(--line-2); }
.ry-name strong { display: block; font-size: 13px; }
.ry-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.ry-table tfoot th, .ry-table tfoot td { background: var(--soft); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ry-tools { width: 100%; } .ry-tools .btn { flex: 1 1 auto; } }

/* ===== Tugas & Deadline ===== */
.tg-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tg-sum__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.tg-sum__item span { font-size: 12px; color: var(--muted); }
.tg-sum__item strong { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.tg-sum__item:hover { border-color: var(--dash); }
.tg-sum__item.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tg-sum__item.is-danger strong { color: var(--red); }
.tg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.tg-select { width: auto; min-width: 170px; height: 40px; border-radius: 999px; background-color: var(--white); }
.tg-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.tg-group { display: flex; flex-direction: column; gap: 8px; }
.tg-group__title { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.tg-group__title small { margin-left: 4px; font-weight: 600; color: var(--muted); }
.tg-group--telat .tg-group__title { color: var(--red); }
.tg-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 180px) 130px auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.tg-row--telat { border-color: var(--red-line); box-shadow: inset 3px 0 0 var(--red); }
.tg-row--selesai { background: var(--soft); }
.tg-row--selesai .tg-title { color: var(--muted); text-decoration: line-through; }
.tg-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.tg-main { min-width: 0; }
.tg-title { display: block; padding: 0; font: 600 14px/1.35 var(--font-body); text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.tg-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.tg-meta { display: flex; flex-direction: column; margin-top: 2px; min-width: 0; }
.tg-ev { font-size: 13px; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tg-ev:hover { color: var(--ink); text-decoration: underline; }
.tg-meta small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.tg-pic { font-size: 13px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tg-nowa { margin-left: 4px; padding: 1px 6px; font-size: 10px; font-weight: 600; color: var(--muted); border: 1px dashed var(--dash); border-radius: 999px; white-space: nowrap; }
.tg-when { display: flex; flex-direction: column; gap: 2px; }
.tg-when small { font-size: 12px; color: var(--muted); }
.tg-due { font-size: 13px; font-weight: 700; }
.tg-due--telat { color: var(--red); }
.tg-due--hari_ini, .tg-due--besok { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tg-due--selesai { color: var(--muted); font-weight: 600; }
.tg-side { display: flex; align-items: center; gap: 6px; }
.tg-st { width: 130px; height: 34px; padding: 0 8px; font-size: 13px; }
.tg-sb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font: 600 13px/1 var(--font-body); color: var(--white); background: var(--ink); border: 1px solid var(--ink); border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tg-sb:hover { opacity: .88; }
.tg-sb .icon { width: 15px; height: 15px; }
.tg-sb--done { color: var(--ink); background: var(--white); border-color: var(--line); }
.tg-sb--done:hover { border-color: var(--ink); opacity: 1; }
.tg-tx { position: relative; }
.tg-tx__picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-input); }
.tg-tx__picked span { display: flex; flex-direction: column; min-width: 0; }
.tg-tx__picked small { font-size: 12px; color: var(--muted); }
.tg-tx__list { position: absolute; z-index: 5; left: 0; right: 0; top: 70px; max-height: 260px; margin: 0; padding: 4px; overflow: auto; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-window); }
.tg-tx__list li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.tg-tx__list li:hover { background: var(--soft); }
.tg-tx__list small { font-size: 12px; color: var(--muted); }
.tg-tx__list .tg-tx__none { color: var(--muted); cursor: default; }
.tg-tx__list .tg-tx__more { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); border-top: 1px dashed var(--line); border-radius: 0 0 8px 8px; }
.tg-tx__list .tg-tx__more:hover { color: var(--ink); }
.tg-tpl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px; background: var(--soft); border: 1px dashed var(--dash); border-radius: 10px; }
.tg-tpl .field__hint { flex: 1 1 220px; margin: 0; }
.tg-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tg-quick__btn { padding: 3px 8px; font: 600 12px/1.4 var(--font-body); color: var(--text-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.tg-quick__btn:hover { border-color: var(--ink); color: var(--ink); }
.tg-del { margin-right: auto; }
.tg-del.is-armed { color: var(--white); background: var(--red); border-color: var(--red); }
@media (max-width: 1100px) { .tg-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tg-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "c m w" "c p s"; row-gap: 8px; }
  .tg-check { grid-area: c; align-self: start; padding-top: 2px; }
  .tg-main { grid-area: m; } .tg-when { grid-area: w; text-align: right; align-items: flex-end; }
  .tg-pic { grid-area: p; } .tg-side { grid-area: s; justify-content: flex-end; }
  .tg-select { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 480px) { .tg-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tg-st { width: 118px; } }

/* Beranda karyawan / intern — Tugas saya */
.kt-card { margin-bottom: 20px; }
.kt-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kt-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.kt-item.is-late { border-color: var(--red-line); box-shadow: inset 3px 0 0 var(--red); }
.kt-item.is-done { background: var(--soft); }
.kt-item.is-done .kt-txt strong { color: var(--muted); text-decoration: line-through; }
.kt-top { display: flex; justify-content: space-between; gap: 12px; }
.kt-txt { display: flex; flex-direction: column; min-width: 0; }
.kt-txt strong { font-size: 14px; }
.kt-txt small, .kt-when small { font-size: 12px; color: var(--muted); }
.kt-when { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.kt-due { font-size: 13px; font-weight: 700; }
.kt-due.is-late { color: var(--red); }
.kt-due.is-soon { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kt-due.is-done { color: var(--muted); font-weight: 600; }
.kt-note { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }
.kt-act { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.kt-act .input { height: 38px; font-size: 14px; }
.kt-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.kt-hint.is-sent { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .kt-act { grid-template-columns: 1fr auto; }
  .kt-act .kt-st { grid-column: 1 / -1; }
  .kt-act .input { font-size: 16px; }
}
.tg-rm-msg { padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.tg-rm-msg strong { font-size: 13px; }
.tg-rm-msg pre { margin: 6px 0 0; font: 13px/1.5 var(--font-body); white-space: pre-wrap; color: var(--text-2); }
.tg-rm-warn { padding: 10px 12px; font-size: 13px; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-line); border-radius: 10px; }

/* ===== Timeline Crew ===== */
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ct-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-legend { margin: 0 0 12px; }
.ct-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.ct-key--job { background: var(--ink); }
.ct-key--draft { background: var(--white); border: 1.5px dashed var(--muted-dark); }
.ct-key--task { width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.ct-key--clash { background: var(--red-soft); border: 1.5px solid var(--red); }
.ct-card { overflow: hidden; }
.ct-scroll { overflow: auto; max-height: calc(100vh - 260px); min-height: 240px; }
.ct-grid { --ct-name: 190px; --ct-col: 92px; min-width: max-content; }
.ct-grid--7 { --ct-col: 140px; }
.ct-grid--31 { --ct-col: 76px; }
.ct-row { display: grid; border-bottom: 1px solid var(--line-2); }
.ct-row--head { position: sticky; top: 0; z-index: 3; background: var(--soft); border-bottom: 1px solid var(--line); }
.ct-name { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 12px; background: var(--white); box-shadow: 1px 0 0 var(--line); min-width: 0; }
.ct-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-name small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-name small b { color: var(--ink); }
.ct-corner { z-index: 4; background: var(--soft); font-size: 12px; font-weight: 700; flex-direction: row; justify-content: flex-start; align-items: center; gap: 6px; }
.ct-corner small { font-weight: 600; }
.ct-day { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; font-size: 11px; color: var(--muted); border-left: 1px solid var(--line-2); }
.ct-day strong { font-family: var(--font-display); font-size: 16px; line-height: 1.1; color: var(--ink); }
.ct-day small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ct-day.is-weekend, .ct-cell.is-weekend { background: var(--out-bg); }
.ct-day.is-today { color: var(--white); background: var(--ink); }
.ct-day.is-today strong { color: var(--white); }
.ct-cell { display: flex; flex-direction: column; gap: 4px; min-height: 52px; padding: 4px; border-left: 1px solid var(--line-2); min-width: 0; }
.ct-cell.is-today { box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); }
.ct-cell.is-clash { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px var(--red); }
.ct-job { display: flex; flex-direction: column; padding: 4px 6px; border-radius: 6px; color: var(--white); background: var(--ink); text-decoration: none; min-width: 0; }
.ct-job strong { font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-job small { font-size: 10px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-job.is-draft { color: var(--ink); background: var(--white); border: 1.5px dashed var(--muted-dark); }
.ct-job:hover { opacity: .88; }
.ct-task { display: flex; align-items: center; gap: 4px; padding: 2px 4px; font-size: 10.5px; font-weight: 600; color: var(--text-2); text-decoration: none; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ct-task i { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink); }
.ct-task:hover { background: var(--line-2); }
.ct-task--telat { color: var(--red); }
.ct-task--telat i { border-color: var(--red); background: var(--red); }
.ct-task--selesai { color: var(--muted); text-decoration: line-through; }
.ct-task--selesai i { border-color: var(--muted); background: var(--muted); }
@media (max-width: 640px) {
  .ct-grid { --ct-name: 120px; --ct-col: 84px; }
  .ct-scroll { max-height: none; }
}
@media (min-width: 761px) {
  .tg-row { grid-template-columns: 28px minmax(0, 1fr) 170px 130px 280px; }
  .tg-side { justify-content: flex-start; }
}

/* ===== Absensi — statistik kehadiran ===== */
.as-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.as-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; transition: opacity .15s ease; }
.as-kpis.is-loading { opacity: .5; }
.as-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.as-card .card__head { margin-bottom: 8px; }
.as-chart { min-height: 220px; }
.as-chart svg { display: block; }
.as-empty { margin: 0; padding: 60px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.as-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.as-dot { fill: var(--ink); }
.as-focus { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.as-cross { stroke: var(--dash); stroke-width: 1; }
.as-hit { fill: transparent; cursor: crosshair; }
.as-ref { stroke: var(--muted-dark); stroke-width: 1; stroke-dasharray: 4 4; }
.as-ref__label { font: 600 10.5px var(--font-body); fill: var(--muted); }
.as-bar__hit { fill: transparent; }
.as-bar:hover .as-bar__hit { fill: var(--soft); }
.as-bar__fill { fill: var(--bar); }
.as-bar.is-current .as-bar__fill, #as-jam .as-bar__fill { fill: var(--ink); }
.as-bar__val { font: 600 11px var(--font-body); fill: var(--text-2); font-variant-numeric: tabular-nums; }
.chart__xtick.is-current { fill: var(--ink); font-weight: 700; }
.as-people { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.as-person__top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.as-person__top span { font-weight: 700; }
.as-track { height: 8px; margin: 6px 0 4px; overflow: hidden; background: var(--line-2); border-radius: 999px; }
.as-track i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.as-person small { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.as-table { margin-top: 12px; }
.as-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.as-table .table-wrap { margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 1000px) { .as-grid { grid-template-columns: minmax(0, 1fr); } .as-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-kpi-card { margin-top: 14px; }
.as-kpi-card .card__head { flex-wrap: wrap; align-items: flex-start; }
.as-kpi-table td { vertical-align: middle; }
.as-kpi-table small { font-size: 11.5px; }
.as-kpi-low { color: var(--red); font-weight: 600; }
.as-spark { display: block; overflow: visible; }
.as-kpi-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.as-ref__label--halo { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }

/* Ringkasan — rasio operasional per transaksi (batas 30% & 40%) */
.op-head { margin: 24px 0 10px; }
.op-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.op-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.op-chip span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.op-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.op-chip strong { font-family: var(--font-display); font-size: 20px; }
.op-chip:hover { border-color: var(--dash); }
.op-chip.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.op-chip--o40 strong { color: var(--red); }
.op-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.op-row a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px;
  color: inherit; text-decoration: none; border: 1px solid var(--line-2); border-radius: 10px;
}
.op-row a:hover { border-color: var(--dash); background: var(--soft); }
.op-row--o40 a { border-color: var(--red-line); }
.op-row__txt { display: flex; flex-direction: column; min-width: 0; }
.op-row__txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-row__txt small, .op-row__rp { font-size: 11.5px; color: var(--muted); }
.op-row__val { display: flex; align-items: baseline; gap: 6px; justify-self: end; }
.op-row__val strong { font-size: 15px; }
.op-row__val em { padding: 1px 7px; font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 999px; }
.op-row--o40 .op-row__val strong { color: var(--red); }
.op-row--o40 .op-row__val em { background: var(--red); }
.op-row__val em.is-ok { color: var(--muted); background: var(--line-2); }
.op-bar { position: relative; grid-column: 1 / 2; height: 6px; background: var(--line-2); border-radius: 999px; }
.op-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 999px; }
.op-row--o40 .op-bar i { background: var(--red); }
.op-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px var(--muted-dark); }
.op-row__rp { justify-self: end; }
.op-empty { padding: 18px 12px; font-size: 13px; text-align: center; color: var(--muted); border: 1px dashed var(--dash); border-radius: 10px; }
.op-more { text-align: center; padding-top: 4px; }
.op-more button { background: none; border: 0; cursor: pointer; font: inherit; }
@media (max-width: 560px) { .op-sum { grid-template-columns: 1fr; } }
/* Batang selebar penuh → penanda 30% & 40% sejajar di semua baris */
.op-row__rp { grid-column: 1 / -1; justify-self: start; margin-top: -2px; }
.op-bar { grid-column: 1 / -1; margin-top: 4px; }

/* Ringkasan — kurva Revenue & Laba per bulan */
.chart__area { fill: url(#rev-fill); pointer-events: none; }
.chart__fill-top { stop-color: var(--ink); stop-opacity: .14; }
.chart__fill-bot { stop-color: var(--ink); stop-opacity: 0; }
.chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.chart__line--rev { stroke: var(--ink); stroke-width: 2.5; }
.chart__line--profit { stroke: var(--muted-dark); stroke-width: 2; stroke-dasharray: 6 5; }
.chart__end { font: 700 11px var(--font-body); fill: var(--ink); pointer-events: none; }
.chart__end--muted { fill: var(--muted); }
.chart__guide { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; opacity: .5; pointer-events: none; }
.chart__cross { stroke: var(--dash); stroke-width: 1; }
.chart__hover { pointer-events: none; }
.chart__pt { stroke: var(--white); stroke-width: 2; pointer-events: none; }
.chart__pt--rev { fill: var(--ink); }
.chart__pt--profit { fill: var(--muted-dark); }
.chart__month.is-future .chart__xtick { opacity: .45; }
.chart__month.is-future { cursor: default; }
.chart__none { position: absolute; inset: 40% 0 auto; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.chart__plot { position: relative; }
.legend__line { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--ink); border-radius: 2px; flex: none; }
.legend__line--dash { border-top: 2px dashed var(--muted-dark); }
.chart__month.is-empty .chart__xtick { opacity: .45; }
.chart__month.is-selected .chart__band { fill: var(--soft); stroke: var(--line); stroke-width: 1; }

/* Halaman Jadwal — tab Jadwal | Tugas & Deadline | Timeline Crew */
.jd-tabs { margin-bottom: 18px; }
.jd-pane[hidden], [data-tab-actions][hidden] { display: none !important; }

/* =========================================================
   Peek preview gaya iOS untuk kartu ringkasan (assets/js/peek.js)
   ========================================================= */
.peek-card {
  position: relative; cursor: default; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); will-change: transform;
}
/* Bayangan di pseudo-element → yang dianimasikan hanya opacity (60fps) */
.peek-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .32), 0 4px 12px -6px rgba(0, 0, 0, .14);
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) {
  .peek-card:hover, .peek-card.is-peeking { transform: translateY(-2px) scale(1.03); z-index: 2; }
  .peek-card:hover::after, .peek-card.is-peeking::after { opacity: 1; }
}
.peek-card:focus-visible { transform: translateY(-2px) scale(1.03); z-index: 2; outline: 2px solid var(--ink); outline-offset: 2px; }
.peek-card:focus-visible::after { opacity: 1; }

.peek-pop {
  position: fixed; z-index: 1002; top: 0; left: 0; width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
  padding: 16px 16px 12px; color: var(--ink); border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, .38), 0 0 0 .5px rgba(0, 0, 0, .08);
  opacity: 0; transform: scale(.92);
  transition: opacity .28s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.peek-pop.is-open { opacity: 1; transform: none; }
.peek-pop.is-closing { opacity: 0; transform: scale(.96); transition: opacity .18s ease-in, transform .18s ease-in; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .peek-pop { background: var(--white); } }
:root[data-theme="dark"] .peek-pop { background: rgba(28, 28, 28, .76); border-color: rgba(255, 255, 255, .08); box-shadow: 0 28px 64px -24px rgba(0, 0, 0, .8); }

/* HP: latar blur + gelap tipis, salinan kartu tetap tajam di depan */
.peek-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease;
}
.peek-backdrop.is-open { opacity: 1; }
.peek-backdrop.is-closing { opacity: 0; transition-duration: .18s; }
.peek-clone {
  z-index: 1001; pointer-events: none; box-sizing: border-box;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .18s ease;
}
.peek-clone.is-open { transform: scale(1.04); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); }
.peek-clone.is-closing { transform: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .peek-card, .peek-card::after, .peek-clone { transition: none; }
  .peek-card:hover, .peek-card.is-peeking, .peek-card:focus-visible, .peek-clone.is-open { transform: none; }
  .peek-pop, .peek-pop.is-open, .peek-pop.is-closing { transform: none; transition: opacity .18s ease; }
}

/* Isi pop-up */
.pk-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.pk-val { margin: 2px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.pk-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pk-delta.is-down { color: var(--red); }
.pk-sec { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pk-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; }
.pk-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-list li small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.pk-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; background: rgba(0, 0, 0, .07); border-radius: 999px; }
:root[data-theme="dark"] .pk-bar { background: rgba(255, 255, 255, .1); }
.pk-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.pk-spark { display: block; width: 100%; height: 64px; margin-top: 6px; overflow: visible; }
.pk-spark path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pk-spark circle { fill: var(--ink); }
.pk-spark text { font: 600 10px var(--font-body); fill: var(--muted); }
.pk-spark .pk-zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.pk-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pk-quick button {
  padding: 10px 6px; font: 600 13px/1.2 var(--font-body); color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: 12px;
}
:root[data-theme="dark"] .pk-quick button { background: rgba(255, 255, 255, .06); }
.pk-quick button:hover, .pk-quick button.is-active { border-color: var(--ink); }
.pk-quick button small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.pk-quick .pk-all { grid-column: 1 / -1; }
.pk-empty { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.pk-foot { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .pk-foot { border-top-color: rgba(255, 255, 255, .08); }
.pk-foot a { font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pk-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.peek-card { isolation: isolate; }
/* Kotak yang juga punya animasi masuk .fbu: fill "both" mengunci transform → zoom hover tidak jalan.
   "backwards" = tampilan awal sama, tapi setelah animasi selesai transform bebas dipakai efek peek. */
.peek-card.fbu { animation-fill-mode: backwards; }
/* Kotak lebar (baris sumber leads, status pembayaran, jadwal): zoom lebih halus supaya tidak melebar keluar kartu */
@media (hover: hover) {
  :is(.ld-src__row, .pay, .upc__item).peek-card:hover, :is(.ld-src__row, .pay, .upc__item).peek-card.is-peeking { transform: translateY(-1px) scale(1.015); }
}
:is(.ld-src__row, .pay, .upc__item).peek-card:focus-visible { transform: translateY(-1px) scale(1.015); }
.ld-src__row.peek-card, .pay.peek-card { border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  :is(.ld-src__row, .pay, .upc__item).peek-card:hover, :is(.ld-src__row, .pay, .upc__item).peek-card.is-peeking,
  :is(.ld-src__row, .pay, .upc__item).peek-card:focus-visible { transform: none; }
}

/* ---------- Ringkasan: Target laba bersih tahunan (kurva 24 bulan) ---------- */
.ot-goals { margin-bottom: 14px; }
.ot-goal { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.ot-goal__lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.ot-goal__lbl b { color: var(--ink); }
.ot-goal__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.ot-goal__k { color: var(--text-2); }
.ot-goal__row strong { font-family: var(--font-display); font-size: 18px; }
.ot-goal__in { position: relative; display: inline-flex; align-items: center; }
.ot-input { width: 150px; height: 32px; padding: 0 10px 0 30px; text-align: right; font-weight: 700; font-size: 14px; }
.ot-goal__in i { position: absolute; left: 10px; font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.ot-st { align-self: flex-start; padding: 1px 8px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; }
.ot-st.is-ok { color: var(--white); background: var(--ink); }
.ot-st.is-over { color: var(--white); background: var(--red); }
.ot-chart { margin-top: 4px; }
.ot-year { font: 700 11px var(--font-body); fill: var(--muted); }
.ot-sep { stroke: var(--dash); stroke-width: 1; stroke-dasharray: 3 3; }
.ot-target { stroke: var(--red); stroke-width: 1.75; stroke-dasharray: 7 4; pointer-events: none; }
.ot-target__lbl { font: 700 10.5px var(--font-body); fill: var(--red); pointer-events: none; }
.ot-line { stroke: var(--ink); stroke-width: 2.5; }
.ot-pt { fill: var(--ink); stroke: var(--white); stroke-width: 1.75; pointer-events: none; }
.ot-pt.is-over { fill: var(--red); }
.ot-leg-target { border-top: 2px dashed var(--red); }
@media (max-width: 560px) { .ot-goals { grid-template-columns: 1fr; } }
.ot-goalline { stroke: var(--red); stroke-width: 1; opacity: .45; pointer-events: none; }
.ot-target { fill: none; }
.ot-area { fill: var(--ink); opacity: .07; pointer-events: none; }
.ot-bar { fill: var(--ink); pointer-events: none; }
.ot-bar.is-neg { fill: var(--red-line); }
.ot-leg-bar { display: inline-block; width: 8px; height: 10px; background: var(--ink); border-radius: 2px; flex: none; }
/* Proyeksi = event terjadwal sesudah hari ini: transparan bergaris, bukan laba aktual */
.ot-bar.is-proj { fill: url(#ot-hatch); stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.ot-bar.is-proj.is-neg { stroke: var(--red); }
.ot-hatch { stroke: var(--muted); stroke-width: 1.5; opacity: .55; }
.ot-leg-bar.is-proj { background: repeating-linear-gradient(45deg, transparent 0 2px, var(--dash) 2px 4px); outline: 1px dashed var(--muted); outline-offset: -1px; }
.ot-goal__proj { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.ot-prog { height: 6px; }
/* Laba vs Target — ringkasan progres */
.ot-sum { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.ot-sum__top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.ot-sum__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ot-sum__big strong { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.ot-sum__big span { font-size: 13px; color: var(--muted); }
.ot-sum__big span b { color: var(--text-2); font-weight: 600; }
.ot-sum__in { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ot-pbar { position: relative; height: 12px; margin-top: 2px; background: var(--line-2); border-radius: 999px; }
.ot-pbar__act, .ot-pbar__proj { position: absolute; top: 0; bottom: 0; left: 0; }
.ot-pbar__act { background: var(--ink); border-radius: 999px 0 0 999px; }
.ot-pbar__proj { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--bar) 3px 5px); box-shadow: inset 0 0 0 1px var(--bar); }
.ot-pbar__act[style^="width:100"] { border-radius: 999px; }
.ot-pbar__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--red); border-radius: 1px; }
.ot-sum__leg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.ot-sum__leg span { display: inline-flex; align-items: center; gap: 6px; }
.ot-leg-mark { display: inline-block; width: 2px; height: 12px; background: var(--red); border-radius: 1px; }
.ot-sum__note { margin: 0; font-size: 13px; color: var(--text-2); }
.ot-sum__note b { color: var(--ink); }
.ot-sum__note.is-ok b:first-child { color: var(--ink); }
.ot-target__lbl { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
/* Laba vs Target — area chart interaktif (gaya shadcn) */
.ot-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-bottom: 8px; border-top: 1px solid var(--line-2); }
.ot-chart-head__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.ot-chart-head__sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ot-range { width: 180px; height: 36px; font-size: 13px; border-radius: 10px; }
.ot-area-mask { fill: var(--white); pointer-events: none; }
.ot-area-act { fill: url(#ot-fill-act); pointer-events: none; }
.ot-area-proj { fill: url(#ot-fill-proj); pointer-events: none; }
.ot-stroke-act { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.ot-stroke-proj { fill: none; stroke: var(--bar); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.ot-hit { fill: transparent; cursor: pointer; outline: none; }
.ot-dot { stroke: var(--white); stroke-width: 2; pointer-events: none; }
.ot-dot--act { fill: var(--ink); }
.ot-dot--proj { fill: var(--bar); }
.ot-tip { min-width: 200px; pointer-events: none; }
.ot-tipdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ot-tipdot.is-act { background: var(--ink); }
.ot-tipdot.is-proj { background: var(--bar); }
.ot-tipdot.is-cum { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.ot-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.ot-legend li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .ot-chart-head { flex-wrap: wrap; } .ot-range { width: 100%; } }

/* ---------- Jadwal › Tugas: tambah tugas satu alur di atas daftar ---------- */
/* position + z-index: kartu ini & kartu di bawahnya (.fbu) jadi stacking context selama animasi → tanpa ini dropdown event tertimpa ringkasan/daftar. 20 = di bawah topbar sticky (30) */
/* Semua bagian langsung terlihat; ketenangan visual dari label seragam, ukuran sama rata & jarak lega */
.tg-qa { position: relative; z-index: 20; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 16px; margin-bottom: 16px; }
.tg-qa__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tg-qa__h { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.tg-qa__kbd { font-size: 12px; color: var(--muted); }
.tg-qa__kbd kbd { padding: 1px 6px; font: 600 11px var(--font-body); color: var(--text-2); background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; }
.tg-qa .cdate.input { width: 100%; min-width: 0; }   /* tombol tanggal mengikuti lebar kolom */
.tg-qa .input { height: 44px; border-radius: 10px; font-size: 14px; }
.tg-qa__field { position: relative; display: block; }
.tg-qa__field[hidden] { display: none; }
.tg-qa__field .icon { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tg-qa__field .input { padding-left: 44px; }
.tg-qa #tg-qa-judul { height: 52px; font-size: 16px; font-weight: 600; background: var(--soft); border-color: transparent; }
.tg-qa #tg-qa-judul:focus { background: var(--white); border-color: var(--ink); }

.tg-qa__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tg-qa__cell { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tg-qa__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tg-qa__label .icon { width: 14px; height: 14px; color: var(--muted); }
.tg-qa__hint { font-weight: 500; color: var(--muted); }
.tg-qa__evbox { position: relative; }
.tg-qa__evbox #tg-qa-tx[hidden] { display: none; }
.tg-qa__txlist { top: 48px; }

/* Layanan: chip pilihan (boleh lebih dari satu) */
.tg-qa__lay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tg-lay { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-lay__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  font: 600 13px var(--font-body); color: var(--text-2); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tg-lay__btn:hover { color: var(--ink); border-color: var(--ink); }
.tg-lay__btn .icon { width: 14px; height: 14px; display: none; }
.tg-lay__btn[aria-pressed="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.tg-lay__btn[aria-pressed="true"] .icon { display: block; }
.tg-lay__n { font-size: 11px; font-weight: 700; opacity: .55; }
/* Judul kelompok di daftar saran nama tugas */
.tg-sug__group { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tg-sug__group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.tg-qa__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tg-qa__quickwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tg-qa__qlbl { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tg-qa .tg-quick { margin-top: 0; }
.tg-qa .tg-quick__btn { padding: 5px 12px; }
.tg-qa__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tg-qa__add { height: 44px; padding: 0 22px; gap: 8px; }
.tg-qa__add .icon { width: 16px; height: 16px; }
.tg-qa__tpl { height: 44px; }
.tg-qa__tpl[hidden] { display: none; }
.tg-qa__picked {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 6px 0 12px;
  background: var(--soft); border: 1px solid var(--ink); border-radius: 10px;
}
.tg-qa__picked[hidden] { display: none; }
.tg-qa__picked span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tg-qa__picked strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-qa__picked small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-qa__x { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.tg-qa__x:hover { color: var(--ink); background: var(--line-2); }
.tg-qa__x .icon { width: 16px; height: 16px; }
.tg-quick__btn.is-on { color: var(--white); background: var(--ink); border-color: var(--ink); }
@media (max-width: 1100px) { .tg-qa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tg-qa { padding: 14px; }
  .tg-qa__grid { grid-template-columns: minmax(0, 1fr); }
  .tg-qa__kbd { display: none; }
  .tg-qa__actions { width: 100%; }
  .tg-qa__add { flex: 1; justify-content: center; }
}

/* ---------- Dashboard: blok atas "Perlu perhatian" + "Anak magang hari ini" (dashboard.js renderFocus) ---------- */
.dash-focus { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.pf-date { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-list, .mh-list, .pf-sub { margin: 0; padding: 0; list-style: none; }
.pf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pf-item { border: 1px solid var(--line); border-left: 3px solid var(--dash); border-radius: 10px; overflow: hidden; }
.pf-item--danger { border-left-color: var(--red); }
.pf-item--warn { border-left-color: var(--ink); }
.pf-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 12px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.pf-row:hover { background: var(--soft); }
.pf-n { min-width: 24px; font-size: 16px; font-weight: 700; }
.pf-item--danger .pf-n { color: var(--red); }
.pf-row > span { flex: 1; min-width: 0; }
.pf-chev { flex: none; width: 16px; height: 16px; color: var(--muted); }
.pf-sub { padding: 0 10px 8px 46px; }
.pf-sub a { display: flex; flex-direction: column; padding: 5px 0; font-size: 12.5px; color: var(--text-2); text-decoration: none; border-top: 1px dashed var(--line-2); }
.pf-sub a:hover span { text-decoration: underline; }
.pf-sub small { font-size: 11.5px; color: var(--muted); }
/* Hover ala iOS pada kartu "Perlu perhatian": membesar (pegas) + terangkat, kartu lain redup & blur.
   Hanya perangkat dengan hover; garis aksen kiri (merah/hitam/abu) tidak diubah. */
@media (hover: hover) and (pointer: fine) {
  .pf-item {
    transform: scale(1);
    transform-origin: center;
    cursor: pointer;
    transition:
      transform .45s cubic-bezier(.34, 1.56, .64, 1),
      box-shadow .35s cubic-bezier(.32, .72, 0, 1),
      opacity .35s cubic-bezier(.32, .72, 0, 1),
      filter .35s cubic-bezier(.32, .72, 0, 1),
      border-color .35s cubic-bezier(.32, .72, 0, 1);
    will-change: transform;
  }
  .pf-item:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
    border-top-color: var(--dash); border-right-color: var(--dash); border-bottom-color: var(--dash);
  }
  .pf-item:active { transform: scale(.99); transition-duration: .15s; }
  .pf-list:has(.pf-item:hover) .pf-item:not(:hover) { opacity: .6; filter: blur(.6px); }

  .pf-chev { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .pf-item:hover .pf-chev { transform: translateX(3px); }

  /* Sub-item (mis. nama event): latar tipis + geser 2px; kartu induk tetap hover */
  .pf-sub a {
    margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-radius: 8px;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .35s cubic-bezier(.32, .72, 0, 1);
  }
  .pf-sub a:hover { background: rgba(0, 0, 0, .03); transform: translateX(2px); }
  :root[data-theme="dark"] .pf-sub a:hover { background: rgba(255, 255, 255, .05); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-item, .pf-chev, .pf-sub a { transition: none; }
}
.pf-ok { padding: 18px 12px; font-size: 13px; color: var(--muted); text-align: center; border: 1px dashed var(--dash); border-radius: 10px; }
.mh-list { display: flex; flex-direction: column; margin-top: 10px; }
.mh-off { padding: 6px 0 8px; font-size: 12.5px; color: var(--muted); }
.mh-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.mh-item:first-child { border-top: 0; }
.mh-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.mh-item__main small { font-size: 12px; color: var(--muted); }
.mh-st { font-weight: 600; color: var(--text-2); }
.mh-st.is-danger { color: var(--red); }
.mh-st.is-warn { color: var(--ink); text-decoration: underline dotted; }
.mh-st.is-muted { font-weight: 500; color: var(--muted); }
.mh-kpi { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 700; }
@media (max-width: 1000px) { .dash-focus { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dashboard: "Admin aktif hari ini" (dashboard.js aaRender) & Pengaturan → Log Aktif Admin ---------- */
.dash-focus__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.aa-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: 1px; background: var(--dash); border-radius: 50%; }
.aa-dur { flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.la-sum { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 14px; }
.la-sum__item { display: flex; flex-direction: column; gap: 2px; min-width: 180px; padding: 10px 12px; font-size: 12.5px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; }
.la-sum__item:hover { background: var(--soft); }
.la-sum__item.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.la-sum__item b { font-size: 13.5px; }

/* Timer waktu aktif Admin: titik merah bulat berkedip (seperti tanda rekam) saat sedang dihitung */
@keyframes aa-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.aa-dot.is-on { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); animation: aa-blink 1s ease-in-out infinite; }
.aa-dur.is-on { font-size: 14px; letter-spacing: .02em; color: var(--red); }
.aa-timer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.aa-timer[hidden] { display: none; }
.aa-timer__rec { flex: none; width: 12px; height: 12px; background: var(--dash); border-radius: 50%; }
.aa-timer.is-on { border-color: var(--red-line); background: var(--red-soft); }
.aa-timer.is-on .aa-timer__rec { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: aa-blink 1s ease-in-out infinite; }
.aa-timer__lbl { flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--muted); }
.aa-timer__val { flex: none; font-size: 22px; font-weight: 700; letter-spacing: .03em; }
.aa-timer.is-on .aa-timer__val { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .aa-dot.is-on, .aa-timer.is-on .aa-timer__rec { animation: none; } }

/* ===== Alur Kerja (alur.php) — flow chart SOP client → selesai ===== */
.af-map { margin-bottom: 14px; overflow-x: auto; }
.af-map ol { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; counter-reset: none; }
.af-map li { flex: 1 0 150px; position: relative; }
.af-map li + li::before { content: ""; position: absolute; top: 50%; left: -8px; width: 8px; height: 1px; background: var(--dash); }
.af-map a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.af-map a:hover { border-color: var(--ink); }
.af-map__no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; font: 700 12px/1 var(--font-display); color: var(--white); background: var(--ink); border-radius: 50%; }
.af-map strong { display: block; font-size: 13px; line-height: 1.2; }
.af-map small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.af-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.af-legend span { display: inline-flex; align-items: center; gap: 6px; }
.af-k { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.af-k--step { background: var(--white); border: 1.5px solid var(--ink); }
.af-k--cek { width: 11px; height: 11px; margin: 0 1px; background: var(--white); border: 1.5px solid var(--ink); transform: rotate(45deg); border-radius: 2px; }
.af-k--ok { background: var(--ink); }
.af-k--ulang { background: var(--white); border: 1.5px dashed var(--muted-dark); }
.af-k--stop { background: var(--red-soft); border: 1.5px solid var(--red); }

.af-flow { max-width: 860px; }
.af-fase { scroll-margin-top: 16px; }
.af-fase__title { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 22px 0 12px 58px; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.af-fase__title .num { font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.af-nodes { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
/* Garis alur: menyambung antar-fase (kecuali sesudah titik akhir) */
.af-nodes::before { content: ""; position: absolute; top: -48px; bottom: -14px; left: 20px; width: 2px; background: var(--ink); }
.af-fase:first-child .af-nodes::before { top: 18px; }
.af-fase:last-child .af-nodes::before { bottom: 24px; }
.af-node { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; }
.af-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; font: 700 15px/1 var(--font-display); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 50%; }
.af-box { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.af-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.af-box__head h3 { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.af-who { flex: none; padding: 4px 10px; font: 600 11px/1 var(--font-body); color: var(--white); background: var(--ink); border-radius: 999px; }
.af-where { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.af-where a, .af-where b { color: var(--ink); font-weight: 600; }
.af-where a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
.af-where a:hover { text-decoration-color: var(--ink); }
.af-do { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.af-do b { color: var(--ink); }
.af-next { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
.af-next .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }

.af-diamond { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; }
.af-diamond::before { content: ""; position: absolute; inset: 6px; background: var(--ink); border-radius: 4px; transform: rotate(45deg); }
.af-diamond i { position: relative; font: 700 15px/1 var(--font-display); font-style: normal; color: var(--white); }
.af-cek__body { padding: 14px 18px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius-card); background: var(--white); }
.af-cek__body h3 { margin: 0; font-family: var(--font-display); font-size: 16px; }
.af-branch { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.af-branch__item { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.af-branch__item b { color: var(--ink); }
.af-branch__lbl { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 24px; font: 700 12px/1 var(--font-body); border-radius: 6px; }
.af-branch__lbl::after { content: "→"; font-weight: 400; }
.is-ok .af-branch__lbl { color: var(--white); background: var(--ink); }
.is-ulang .af-branch__lbl { color: var(--ink); border: 1.5px dashed var(--muted-dark); }
.is-stop .af-branch__lbl { color: var(--red); background: var(--red-soft); border: 1.5px solid var(--red); }

.af-end { align-items: center; }
.af-end__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px var(--ink); }
.af-end__dot .icon { width: 20px; height: 20px; }
.af-end strong { font-family: var(--font-display); font-size: 18px; }

@media (max-width: 640px) {
  .af-fase__title { padding-left: 0; }
  .af-node { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .af-dot, .af-diamond, .af-end__dot { width: 32px; height: 32px; font-size: 13px; }
  .af-diamond::before { inset: 4px; }
  .af-nodes::before { left: 15px; }
  .af-box, .af-cek__body { padding: 14px; }
  .af-branch__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .af-branch__lbl { justify-self: start; padding: 0 8px; }
}
@media print {
  .sidebar, .page-head__actions, .af-map, .af-legend { display: none !important; }
  .af-fase { break-inside: avoid-page; }
  .af-node { break-inside: avoid; }
  .af-box, .af-cek__body { box-shadow: none; }
}

/* ===== Pengadaan barang (pengadaan.php · karyawan/pengadaan.php) ===== */
.pd-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pd-sum__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); cursor: pointer; transition: border-color .15s; }
.pd-sum__item:hover:not(.is-static) { border-color: var(--ink); }
.pd-sum__item.is-static { cursor: default; }
.pd-sum__item span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pd-sum__item strong { font-family: var(--font-display); font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; }
.pd-sum__item small { font-size: 12px; color: var(--muted); }
.pd-sum__item small.is-danger { color: var(--red); font-weight: 600; }
.pd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pd-bar .seg { margin: 0; }
.pd-list { display: flex; flex-direction: column; gap: 12px; }
.pd-card { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.pd-card.is-diajukan { border-color: var(--ink); }
.pd-card.is-ditolak, .pd-card.is-dibatalkan { background: var(--soft); }
.pd-card.is-ditolak .pd-card__title h3, .pd-card.is-dibatalkan .pd-card__title h3 { color: var(--muted); }
.pd-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.pd-card__title { flex: 1; min-width: 220px; }
.pd-card__title h3 { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.pd-qtytag { font: 600 13px/1 var(--font-body); color: var(--muted); }
.pd-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.pd-meta b { color: var(--ink); font-weight: 600; }
.pd-late { color: var(--red); font-weight: 600; }
.pd-badge--diajukan { color: var(--white); background: var(--ink); border-color: var(--ink); }
.pd-badge--disetujui { color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); }
.pd-badge--dibeli { color: var(--ink); background: var(--white); border: 1.5px dashed var(--ink); }
.pd-badge--diterima { color: var(--muted); }
.pd-badge--ditolak { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.pd-badge--dibatalkan { color: var(--muted); border-style: dashed; border-color: var(--dash); }
.pd-perlu { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.pd-money { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; }
.pd-money div { display: flex; flex-direction: column; gap: 1px; }
.pd-money small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pd-money strong { font-family: var(--font-display); font-size: 16px; }
.pd-money em { font-style: normal; font-size: 12px; color: var(--muted); }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pd-links a, .pd-links span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.pd-links a:hover { border-color: var(--ink); }
.pd-links .icon { width: 14px; height: 14px; }
.pd-note { margin: 12px 0 0; padding: 9px 12px; font-size: 13px; line-height: 1.5; background: var(--soft); border-left: 3px solid var(--ink); border-radius: 4px 10px 10px 4px; white-space: pre-line; }
.pd-card.is-ditolak .pd-note { border-left-color: var(--red); }
.pd-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pd-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pd-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--placeholder); }
.pd-step + .pd-step::before { content: ""; order: -2; width: 14px; height: 1px; margin-right: 2px; background: var(--dash); }
.pd-step::after { content: ""; order: -1; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--dash); }
.pd-step.is-done { color: var(--text-2); }
.pd-step.is-done::after { background: var(--ink); border-color: var(--ink); }
.pd-step.is-now { color: var(--ink); font-weight: 700; }
.pd-step.is-now::after { width: 10px; height: 10px; border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--line-2); }
.pd-step.is-stop { color: var(--red); font-weight: 700; }
.pd-step.is-stop::after { background: var(--red); border-color: var(--red); }
.pd-card__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-btn { height: 34px; padding: 0 14px; font-size: 13px; }
.pd-del { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.pd-del:hover { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.pd-del .icon { width: 16px; height: 16px; }
.pd-qty { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
#pd-act-ok.btn--danger { color: var(--white); background: var(--red); border-color: var(--red); }
@media (max-width: 900px) { .pd-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pd-bar { flex-direction: column; align-items: stretch; }
  .pd-bar .seg { overflow-x: auto; }
  .ak-search { width: 100%; }
  .pd-card { padding: 14px; }
  .pd-card__act { width: 100%; }
  .pd-btn { flex: 1; }
  .mform .pd-qty { grid-template-columns: minmax(0, 1fr) 96px; }
}
.pd-links a.pd-open { color: var(--white); background: var(--ink); border-color: var(--ink); }
.pd-links a.pd-open:hover { background: var(--ink-2); }
.pd-act-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.pd-act-link .pd-open { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--white); text-decoration: none; background: var(--ink); border-radius: 10px; }
.pd-act-link .pd-open .icon { width: 15px; height: 15px; }
.pd-act-link small { font-size: 12px; color: var(--muted); }
.pd-act-link[hidden] { display: none; }

/* ===== KPI crew freelance (Akun Karyawan · kpi-freelance.js) ===== */
button.ak-chip { font-family: var(--font-body); cursor: pointer; background: var(--white); }
button.ak-chip.is-solid { background: var(--ink); }
.ak-kpi .badge { padding: 1px 7px; font-size: 11px; }
.ak-kpi small { font-weight: 500; }
.kf-modal { width: min(720px, calc(100vw - 32px)); }
.kf-hari { flex: none; align-self: flex-start; margin: 0 0 16px; }
#kf-body { flex: none; }
.kf-score { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.kf-score__big { grid-row: span 2; display: flex; align-items: center; gap: 8px; }
.kf-score__big .num { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.kf-score p { margin: 0; font-size: 13px; color: var(--text-2); }
.kf-score small { font-size: 11px; color: var(--muted); }
.kf-komps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.kf-komp__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.kf-komp__top small { font-size: 11px; color: var(--muted); }
.kf-komp.is-empty .kf-komp__top { color: var(--muted); }
.kf-bar { height: 6px; margin-top: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.kf-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.kf-telat { display: flex; gap: 10px; margin-top: 14px; padding: 10px 12px; font-size: 13px; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-line); border-radius: 10px; }
.kf-telat .icon { flex: none; width: 18px; height: 18px; }
.kf-telat small { display: block; margin-top: 2px; color: var(--text-2); }
.kf-h { margin: 20px 0 10px; font-family: var(--font-display); font-size: 16px; }
.kf-jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kf-job { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.kf-job__head { display: flex; justify-content: space-between; gap: 10px; }
.kf-job__head strong { display: block; font-size: 14px; }
.kf-job__head small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.kf-job__st { flex: none; font-size: 12px; font-weight: 600; }
.kf-job__rates { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0; }
.kf-rate { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.kf-rate > span { min-width: 72px; }
.kf-stars { display: flex; }
.kf-star { width: 26px; height: 26px; padding: 0; font-size: 18px; line-height: 1; color: var(--dash); background: none; border: 0; cursor: pointer; transition: color .12s, transform .12s; }
.kf-star:hover { transform: scale(1.15); }
.kf-star.is-on { color: var(--ink); }
.kf-stars:hover .kf-star { color: var(--ink); }
.kf-stars .kf-star:hover ~ .kf-star { color: var(--dash); }
.mform .kf-cat { height: 38px; font-size: 13px; }
.kf-none { padding: 18px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--dash); border-radius: 12px; }
@media (max-width: 640px) {
  .kf-score { grid-template-columns: minmax(0, 1fr); }
  .kf-score__big { grid-row: auto; }
  .kf-rate > span { min-width: 64px; }
}
.ak-bar__right { display: flex; align-items: center; gap: 8px; }
.ak-kpi-btn { flex: none; height: 40px; border-radius: 999px; }
.kf-rank__todo { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; font-size: 13px; background: var(--soft); border: 1px dashed var(--dash); border-radius: 10px; }
.kf-rank__todo .icon { flex: none; width: 16px; height: 16px; }
.kf-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.kf-rank__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(60px, 140px) 92px 16px; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; font: inherit; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.kf-rank__row:hover { border-color: var(--ink); }
.kf-rank__row.is-off { opacity: .6; }
.kf-rank__row > .icon { width: 16px; height: 16px; color: var(--muted); }
.kf-rank__no { font: 700 15px/1 var(--font-display); text-align: center; color: var(--muted); }
.kf-rank li:nth-child(-n+3) .kf-rank__no { color: var(--ink); }
.kf-rank__who { min-width: 0; }
.kf-rank__who strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-rank__who strong small { font-size: 11px; font-weight: 600; color: var(--muted); }
.kf-rank__who > small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.kf-rank__bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.kf-rank__bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.kf-rank__skor { justify-self: end; font-size: 14px; font-weight: 700; white-space: nowrap; }
.kf-rank__skor .muted { font-size: 12px; font-weight: 500; }
@media (max-width: 640px) {
  .ak-bar__right { width: 100%; }
  .ak-bar__right .ak-search { flex: 1; }
  .kf-rank__row { grid-template-columns: 22px minmax(0, 1fr) auto 14px; }
  .kf-rank__bar { display: none; }
}
.tg-rev { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--ink); border: 1px dashed var(--ink); border-radius: 999px; }

/* ===== Check-in crew di lokasi event (beranda karyawan · k-checkin.js) ===== */
.kc { margin-bottom: 16px; padding: 18px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-card); }
.kc[hidden] { display: none; }
.kc__label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kc__sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.kc-job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.kc-job__main { flex: 1; min-width: 200px; }
.kc-job h3 { margin: 0; font-family: var(--font-display); font-size: 17px; }
.kc-job h3 small { font: 600 11px/1 var(--font-body); color: var(--muted); }
.kc-job p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.kc-btn { height: 46px; padding: 0 22px; font-size: 15px; }
.kc-done { display: flex; align-items: center; gap: 6px; color: var(--ink) !important; }
.kc-done .icon { width: 16px; height: 16px; }
.kc-late { color: var(--red); }
.kc-msg { display: flex; gap: 6px; color: var(--red) !important; }
.kc-msg .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.kc__note { margin: 14px 0 0; font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .kc-btn { width: 100%; } }
.kf-auto { display: inline-block; margin-left: 4px; padding: 1px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--white); background: var(--ink); border-radius: 4px; vertical-align: 1px; }
.kf-job__ci { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.kf-ci { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kf-ci .icon { width: 14px; height: 14px; }
.kf-ci.is-bad { color: var(--red); }
.kf-ci.is-muted { color: var(--muted); }
.kf-rate > span { min-width: 96px; }

/* ===== Panduan pengajuan pembayaran freelance (karyawan/slip.php · beranda) ===== */
.ks-guide { margin-bottom: 16px; padding: 0; overflow: hidden; scroll-margin-top: 16px; }
.ks-guide__sum { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ks-guide__sum::-webkit-details-marker { display: none; }
.ks-guide__sum > .icon:first-child { flex: none; width: 22px; height: 22px; }
.ks-guide__sum > span { flex: 1; min-width: 0; }
.ks-guide__sum strong { display: block; font-size: 15px; }
.ks-guide__sum small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ks-guide__chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.ks-guide[open] .ks-guide__chev { transform: rotate(180deg); }
.ks-guide__body { padding: 4px 18px 18px; border-top: 1px solid var(--line-2); }
.ks-guide__info { margin: 14px 0 0; padding: 10px 12px; font-size: 13px; background: var(--soft); border-left: 3px solid var(--ink); border-radius: 4px 10px 10px 4px; }
.ks-guide__info p { margin: 4px 0 0; line-height: 1.5; color: var(--text-2); }
.ks-guide__steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ks-guide__steps li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background-color .2s; }
.ks-guide__steps strong { display: block; font-size: 14px; }
.ks-guide__steps p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.ks-guide__steps a { color: var(--ink); font-weight: 600; }
.ks-guide__no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; font: 700 12px/1 var(--font-display); color: var(--muted); border: 1.5px solid var(--dash); border-radius: 50%; }
.ks-guide__steps li.is-done .ks-guide__no { color: var(--white); background: var(--ink); border-color: var(--ink); }
.ks-guide__steps li.is-now { border-color: var(--ink); border-width: 1.5px; background: var(--soft); }
.ks-guide__steps li.is-now .ks-guide__no { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px var(--line-2); }
.ks-guide__warn { color: var(--red); }
.ks-guide__rules { margin-top: 14px; padding: 12px 14px; font-size: 13px; border: 1px dashed var(--dash); border-radius: 12px; }
.ks-guide__rules ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); line-height: 1.5; }
.kb-guide { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); transition: border-color .15s; }
.kb-guide:hover { border-color: var(--ink); }
.kb-guide > .icon:first-child { flex: none; width: 22px; height: 22px; }
.kb-guide span { flex: 1; min-width: 0; }
.kb-guide strong { display: block; font-size: 14px; }
.kb-guide small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.kb-guide__chev { flex: none; width: 16px; height: 16px; color: var(--muted); }
.tk__row.is-role { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.st-role-tarif b { color: var(--ink); }
.st-role-tarif s { color: var(--muted); }

/* ===== Slip Gaji admin: rekening tujuan transfer (slip-gaji.js) ===== */
.sg-rek { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 12px; color: var(--ink); }
.sg-rek .bk-mini { height: 14px; }
.sg-rek.is-none { color: var(--red); font-weight: 600; }
.sg-rek .icon { width: 13px; height: 13px; }
.sg-copy { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; vertical-align: middle; }
.sg-copy:hover { color: var(--ink); border-color: var(--line); background: var(--white); }
.sg-copy .icon { width: 14px; height: 14px; }
.sg-transfer { margin-top: 14px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); }
.sg-transfer__label { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sg-transfer__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.sg-transfer__bank { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sg-transfer__bank .bk-mini { height: 22px; }
.sg-transfer__no { font-family: var(--font-display); font-size: 24px; letter-spacing: .02em; }
.sg-copy-btn { height: 34px; padding: 0 12px; font-size: 13px; }
.sg-transfer__meta { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.sg-transfer.is-none { display: flex; align-items: center; gap: 12px; border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
.sg-transfer.is-none > .icon { flex: none; width: 20px; height: 20px; }
.sg-transfer.is-none div { flex: 1; }
.sg-transfer.is-none small { display: block; margin-top: 2px; color: var(--text-2); }

/* ===== Bukti transfer slip gaji (Admin slip-gaji.js · karyawan k-slip.js) ===== */
.sg-bukti { margin-top: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.sg-bukti.has-file { background: var(--white); border-color: var(--ink); }
.sg-bukti__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sg-bukti > .btn { margin-top: 10px; }
.sg-bukti-pick .field { width: 100%; }
.sg-bukti-pick .check { margin-top: 6px; font-size: 13px; }
.sg-bukti__file { display: flex; gap: 14px; align-items: flex-start; }
.sg-bukti__file strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.sg-bukti__file small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.sg-bukti__thumb { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.sg-bukti__pdf { display: grid; place-items: center; flex: none; width: 72px; height: 88px; font: 700 13px/1 var(--font-display); color: var(--white); background: var(--red); border-radius: 8px; }
.sg-bukti__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sg-bukti__acts .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.sg-bukti__ganti { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--dash); }
.sg-bukti__ganti[hidden] { display: none; }
.sg-bukti__ganti > .btn { margin-top: 10px; }
.ks-bukti { display: block; position: relative; max-width: 360px; margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.ks-bukti img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--soft); }
.ks-bukti span { display: block; padding: 8px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); }
/* Area unggah bukti transfer (ganti tombol "Choose file" bawaan browser) */
.sg-drop {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; cursor: pointer;
  background: var(--white); border: 1.5px dashed var(--dash); border-radius: 12px;
  transition: border-color .15s, background-color .15s;
}
.sg-drop:hover, .sg-drop.is-over { border-color: var(--ink); background: var(--soft); }
.sg-drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.sg-drop.has-file { border-style: solid; border-color: var(--ink); }
.sg-drop__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--soft); border-radius: 10px; overflow: hidden; }
.sg-drop__icon .icon { width: 22px; height: 22px; }
.sg-drop__icon img { width: 100%; height: 100%; object-fit: cover; }
.sg-drop__pdf { display: grid; place-items: center; width: 100%; height: 100%; font: 700 12px/1 var(--font-display); color: var(--white); background: var(--red); }
.sg-drop__txt { flex: 1; min-width: 0; }
.sg-drop__txt strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-drop__txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.sg-drop__err { color: var(--red); }
.sg-drop__btn { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font: 600 13px/1 var(--font-body); color: var(--white); background: var(--ink); border-radius: 999px; }
@media (max-width: 640px) { .sg-drop { flex-wrap: wrap; } .sg-drop__btn { width: 100%; justify-content: center; } }

/* Halaman Intern (intern.php): tab Absensi ↔ Jurnal */
.in-tabs { margin: -8px 0 22px; }
.in-jurnal { max-width: 880px; }
.in-jurnal__sub { margin: 0 0 14px 96px; }
@media (max-width: 720px) { .in-jurnal__sub { margin-left: 0; } }

/* Inventaris — unit per fisik (kode QR + nomor seri) & scanner (assets/js/inv-scan.js) */
.dd-sec__link { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-body); color: var(--ink); text-decoration: none; }
.dd-sec__link .icon { width: 16px; height: 16px; }
.dd-sec__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dd-units { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.dd-unit { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 32px; align-items: center; gap: 8px; }
.dd-unit__code { height: 34px; padding: 0 8px; font: 600 13px/1 var(--font-body); color: var(--ink); background: var(--soft); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.dd-unit__code:hover { border-color: var(--ink); }
.dd-unit__sn.input { height: 34px; font-size: 13px; }
.dd-unit__st { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-unit .btn-icon { width: 32px; height: 32px; }
.scan-modal { width: min(480px, calc(100vw - 24px)); }
.scan-modal .window__body { gap: 12px; max-height: calc(100dvh - 90px); overflow-y: auto; }
.scan-mode { align-self: stretch; }
.scan-mode .seg__btn { flex: 1; }
.scan-hint { margin: 0; font-size: 13px; color: var(--muted); }
.scan-cam { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #0A0A0A; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-cam__frame { position: absolute; inset: 18% 24%; border: 2px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.scan-cam__off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #D4D4D4; background: #0A0A0A; }
.scan-cam__off[hidden] { display: none; }
.scan-cam__off small { max-width: 320px; font-size: 12px; }
.su-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.su-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.su-code { font: 700 13px/1 var(--font-body); letter-spacing: .03em; color: var(--muted); }
.su-name { margin: 4px 0 2px; font-size: 17px; letter-spacing: -0.01em; }
.su-cat { font-size: 12px; color: var(--muted); }
.su-where { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px; font-size: 14px; background: var(--soft); border-radius: 10px; }
.su-where small { font-size: 12px; color: var(--muted); }
.su-row { display: flex; gap: 8px; }
.su-row .input { flex: 1; min-width: 0; height: 40px; }
.su-row .btn { height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.su-row--2 .btn { flex: 1; }
.su-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
.su-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; font: 600 13px/1 var(--font-body); color: var(--ink); background: none; border: 0; text-decoration: none; cursor: pointer; }
.su-link .icon { width: 16px; height: 16px; }
.scan-log { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scan-log__item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 10px; }
.scan-log__ic .icon { width: 16px; height: 16px; }
.scan-log__item.is-warn, .scan-log__item.is-err { border-style: dashed; border-color: var(--dash); }
.scan-log__item.is-err { color: var(--red); }
.scan-log__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.scan-log__txt small { color: var(--muted); }
@media (max-width: 520px) {
  .su-row { flex-wrap: wrap; }
  .su-row .btn { flex: 1; }
  .dd-unit { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .dd-unit__sp { display: none; }
  .page-head__actions .btn { flex: 1; }
}

/* ---------- Akun Karyawan: kartu dirapikan (26/11/2026) ----------
   Kartu sebaris sama tinggi; nama/jabatan/email maks. 1–2 baris; angka, tombol & keterangan
   selalu menempel di bawah (.ak-bottom) sehingga sejajar antar kartu. */
.ak-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); align-items: stretch; }
.ak-card { padding: 44px 18px 16px; }
.ak-ava { width: 72px; height: 72px; margin-top: 0; font-size: 22px; }
.ak-name {
  width: 100%; margin-top: 14px; font-size: 16px; line-height: 1.3; overflow-wrap: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ak-role, .ak-mail { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-role { margin-top: 4px; }
.ak-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 14px; }
.ak-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 12px 0 0; }
.ak-facts > div { padding: 0 8px; }
.ak-facts dt { font-size: 11px; line-height: 1.2; white-space: nowrap; }
.ak-facts dd { margin-top: 4px; font-size: 14px; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-kpi { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.ak-kpi__main { display: inline-flex; align-items: center; gap: 5px; }
.ak-sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.ak-chips { margin: 0; gap: 6px; }
.ak-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 12px; line-height: 1; white-space: nowrap; background: var(--white); }
.ak-chip .icon { width: 15px; height: 15px; }
.ak-chip--ico { padding: 0 10px; }
.ak-chip--bank { min-width: 56px; padding: 0 10px; }
.ak-chip--bank .bk-mini { height: 14px; max-width: 52px; margin: 0; vertical-align: middle; }
.ak-meta { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.ak-meta .ak-warn { color: var(--ink); font-weight: 600; }
.ak-edit { position: absolute; top: 14px; right: 14px; margin: 0; }
:root[data-theme="dark"] .ak-chip:not(.is-solid) { background: transparent; }

/* ---------- Pengaturan → Keamanan (CCTV Hik-Connect, assets/js/keamanan.js) ---------- */
.sec-panel { display: flex; flex-direction: column; gap: 16px; }
.sec-panel[hidden] { display: none; }
.sec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sec-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.sec-stat span { font-size: 12px; color: var(--muted); }
.sec-stat strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sec-cfg { display: flex; flex-direction: column; gap: 14px; }
.sec-switch { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.sec-switch input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.sec-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sec-badge { flex: none; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--dash); border-radius: 999px; white-space: nowrap; }
.sec-badge.is-ready { color: var(--ink); border-style: solid; border-color: var(--ink); }
.sec-badge.is-on { color: var(--white); background: var(--ink); border-color: var(--ink); }
.sec-last { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.sec-last[hidden] { display: none; }
.sec-dot { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--dash); }
.sec-dot.is-on { background: var(--ink); }
.sec-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; }
.sec-ok .icon { width: 16px; height: 16px; }
.sec-head-pad { padding: 18px 20px 12px; }
.sec-head-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sec-head-acts .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.sec-events { display: flex; flex-direction: column; max-height: 420px; margin: 0; padding: 0 20px 16px; overflow-y: auto; list-style: none; }
.sec-ev { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sec-ev__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--line); }
.sec-ev.is-new .sec-ev__dot { background: var(--red); }
.sec-ev__t { margin: 0; font-size: 14px; }
.sec-ev__m { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sec-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 12px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--dash); border-radius: 12px; }
.sec-empty strong { color: var(--ink); font-size: 14px; }
.sec-table td { vertical-align: middle; }
.sec-table tr.is-off td { color: var(--muted); }
.sec-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.sec-table .icon { width: 15px; height: 15px; vertical-align: -2px; }
@media (max-width: 900px) {
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Saran nama tugas (tugas.js judulSuggest) — pengganti datalist bawaan browser */
.tg-sug-wrap { position: relative; }
.tg-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; margin: 0; padding: 6px; overflow-y: auto; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-window); animation: tg-sug-in .16s var(--ease-out) both; }
.tg-sug[hidden] { display: none; }
@keyframes tg-sug-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tg-sug__head { padding: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tg-sug li[data-i] { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--ink); border-radius: 8px; cursor: pointer; }
.tg-sug li[data-i] .icon { flex: none; width: 17px; height: 17px; color: var(--muted); }
.tg-sug li[data-i]:hover, .tg-sug li.is-active { background: var(--soft); }
.tg-sug li[data-i]:hover .icon, .tg-sug li.is-active .icon { color: var(--ink); }
.tg-sug__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-sug__h { flex: none; padding: 2px 8px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--line-2); border-radius: 999px; }
/* Ikon di baris saran jangan ikut aturan ikon kolom (.tg-qa__field .icon = absolut di kiri input) */
.tg-sug-wrap .tg-sug li[data-i] .icon { position: static; top: auto; left: auto; transform: none; width: 17px; height: 17px; pointer-events: none; }
.tg-sug-wrap .tg-sug .tg-sug__h { display: inline-block; }

/* Laporan → Buku Kas: tombol Uang Masuk / Uang Keluar di baris judul tabel */
.lk-catat { display: flex; gap: 8px; }
.lk-catat .btn { height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 720px) {
  .lk-tbl-tools, .lk-tbl-tools .search { width: 100%; min-width: 0; }
  .lk-catat { width: 100%; }
  .lk-catat .btn { flex: 1; justify-content: center; }
}

/* ---------- Header kanan atas (includes/layout.php .topbar): Alur Kerja · Mode gelap/terang · Keluar ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -12px 0 18px; }
.topbar__form { margin: 0; }
.topbar__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  font: 600 13px/1 var(--font-body); color: var(--text-2); text-decoration: none; white-space: nowrap;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.topbar__btn .icon { width: 16px; height: 16px; flex: none; }
.topbar__btn:hover { color: var(--ink); border-color: var(--dash); }
.topbar__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.topbar__btn.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.topbar__theme .topbar__sun { display: none; }
.topbar__theme[aria-checked="true"] .topbar__sun { display: inline; }
.topbar__theme[aria-checked="true"] svg.topbar__sun { display: block; }
.topbar__theme[aria-checked="true"] .topbar__moon { display: none; }
.topbar__logout:hover { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
@media (max-width: 640px) {
  .topbar { margin: -6px 0 14px; }
  .topbar__btn { width: 38px; padding: 0; justify-content: center; }
  .topbar__btn span { display: none !important; }
}
@media print { .topbar { display: none; } }

/* Gerigi Pengaturan pindah ke kartu akun sidebar (tempat tombol Keluar lama) */
.sidebar__user .sidebar__gear { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; }
.sidebar__user .sidebar__gear:hover, .sidebar__user .sidebar__gear.is-active { background: rgba(255, 255, 255, .08); }

/* Header jadi bilah putih memanjang selebar area konten (menempel di atas saat scroll) */
.topbar {
  position: sticky; top: 0; z-index: 40;
  margin: -28px -32px 24px; padding: 11px 32px;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.topbar .topbar__btn { background: var(--soft); border-color: transparent; }
.topbar .topbar__btn:hover { background: var(--white); border-color: var(--line); }
.topbar .topbar__btn.is-active { background: var(--ink); border-color: var(--ink); }
.topbar .topbar__logout:hover { background: var(--red-soft); border-color: var(--red-line); }
@media (max-width: 900px) { .topbar { margin: -20px -16px 18px; padding: 10px 16px; } }
/* Tombol header lebih tegas di atas bilah putih */
.topbar .topbar__btn { color: var(--ink); background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.topbar .topbar__btn .icon { color: var(--ink); }
.topbar .topbar__btn:hover { background: var(--bg); border-color: var(--dash); }
.topbar .topbar__btn.is-active, .topbar .topbar__btn.is-active .icon { color: var(--white); }
.topbar .topbar__btn.is-active { background: var(--ink); border-color: var(--ink); }
.topbar .topbar__logout:hover, .topbar .topbar__logout:hover .icon { color: var(--red); }
.topbar .topbar__logout:hover { background: var(--red-soft); border-color: var(--red-line); }
.topbar { border-bottom-color: var(--line); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .08); }
/* Header hitam (senada sidebar) — warna tetap, tidak ikut dibalik mode gelap */
.topbar { background: #0A0A0A; border-bottom: 1px solid #262626; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35); }
.topbar .topbar__btn, .topbar .topbar__btn .icon { color: #FFFFFF; }
.topbar .topbar__btn { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.topbar .topbar__btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.topbar .topbar__btn.is-active, .topbar .topbar__btn.is-active .icon { color: #0A0A0A; }
.topbar .topbar__btn.is-active { background: #FFFFFF; border-color: #FFFFFF; }
.topbar .topbar__logout:hover, .topbar .topbar__logout:hover .icon { color: #FCA5A5; }
.topbar .topbar__logout:hover { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .45); }
.topbar .topbar__btn:focus-visible { outline-color: #FFFFFF; }
/* Header kembali putih + efek huruf matrix (assets/js/matrix-trail.js) — huruf menyala mengikuti kursor */
.topbar { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .08); }
.topbar__matrix { color: var(--ink); opacity: .9; }
.topbar > :not(.topbar__matrix) { position: relative; z-index: 1; }
.topbar .topbar__btn, .topbar .topbar__btn .icon { color: var(--ink); }
.topbar .topbar__btn { background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.topbar .topbar__btn:hover { background: var(--bg); border-color: var(--dash); }
.topbar .topbar__btn.is-active, .topbar .topbar__btn.is-active .icon { color: var(--white); }
.topbar .topbar__btn.is-active { background: var(--ink); border-color: var(--ink); }
.topbar .topbar__logout:hover, .topbar .topbar__logout:hover .icon { color: var(--red); }
.topbar .topbar__logout:hover { background: var(--red-soft); border-color: var(--red-line); }
.topbar .topbar__btn:focus-visible { outline-color: var(--ink); }
/* Header putih polos (efek matrix dilepas) */
.topbar { box-shadow: none; }

/* ---------- Pengaturan › Layanan & Tugas Standar (pengaturan.js) ---------- */
.ly-card { margin-top: 20px; }
.ly-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 4px 0 16px; }
.ly-group { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 14px; }
.ly-group--umum { background: var(--white); border-color: var(--ink); }
.ly-group__head { display: flex; align-items: center; gap: 8px; }
.ly-group__name.input { height: 38px; font-weight: 700; font-size: 14px; background: var(--white); }
.ly-group__name[readonly] { border-color: transparent; padding-left: 4px; background: transparent; }
.ly-tag { flex: none; padding: 3px 10px; font-size: 11px; font-weight: 700; color: var(--white); background: var(--ink); border-radius: 999px; }
.ly-tasks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ly-task { display: grid; grid-template-columns: minmax(0, 1fr) 84px 36px; gap: 6px; align-items: center; }
.ly-task .input { height: 38px; font-size: 13px; background: var(--white); }
.ly-h { position: relative; display: block; }
.ly-h span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); pointer-events: none; }
.ly-h .input { padding-left: 32px; text-align: left; }
.ly-del.btn-icon { width: 36px; height: 36px; color: var(--muted); }
.ly-del.btn-icon:hover { color: var(--ink); background: var(--line-2); }
.ly-del.is-armed { color: var(--white); background: var(--red); }
.ly-addtask {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font: 600 12.5px var(--font-body); color: var(--text-2); background: none;
  border: 1px dashed var(--line); border-radius: 999px; cursor: pointer;
}
.ly-addtask:hover { color: var(--ink); border-color: var(--ink); border-style: solid; }
.ly-addtask .icon { width: 14px; height: 14px; }

/* Revenue di Finance saat stepper: baris ringkas + tautan kembali ke langkah 1 */
.linkbtn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--text-2); }

/* Stepper langkah 1: Nilai Deal / Revenue paling atas, kotak gelap menonjol (transaksi.js → revToStep1) */
.rev-slot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); align-items: center; gap: 20px;
  margin-bottom: 20px; padding: 18px 20px;
  color: var(--white); background: var(--ink); border-radius: 14px;
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, .55);
}
.rev-slot[hidden] { display: none; }
.rev-slot__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FCA5A5;
}
.rev-slot__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: rev-ping 1.6s ease-out infinite; }
.rev-slot.is-filled .rev-slot__eyebrow { color: #86EFAC; }
.rev-slot.is-filled .rev-slot__eyebrow::before { background: #22C55E; animation: none; }
.rev-slot__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.rev-slot__hint { margin: 2px 0 0; font-size: 12px; color: #A3A3A3; }
.rev-slot__field { margin: 0; }
.rev-slot__field .field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rev-slot__field .input {
  height: 58px; font-size: 24px; text-align: right;
  color: var(--ink); background: var(--white); border: 2px solid var(--white);
}
.rev-slot:not(.is-filled) .rev-slot__field .input { box-shadow: 0 0 0 4px rgba(239, 68, 68, .45); }
.rev-slot__field .input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
@keyframes rev-ping { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); } 100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
@media (max-width: 760px) { .rev-slot { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .rev-slot__eyebrow::before { animation: none; } }
/* Awalan "Rp" di dalam kolom Nilai Deal */
.rev-slot__field { position: relative; }
.rev-slot__field::before {
  content: "Rp"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 1;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--muted); pointer-events: none;
}
.rev-slot__field .input { padding-left: 52px; }

/* =========================================================
   Dress Code Crew — pilihan bergambar (assets/js/dresscode.js)
   ========================================================= */
.dc__desc { margin: -2px 0 10px; }
.dc { display: flex; flex-direction: column; gap: 14px; }
.dc button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dc button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.dc__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.dc .dc__chip {
  height: 40px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid #CFCFCB;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dc .dc__chip:hover:not(.is-on) { border-color: var(--ink); }
.dc .dc__chip.is-on { color: var(--white); background: var(--ink); border-color: var(--ink); }

.dc__body { display: flex; align-items: flex-start; gap: 24px; }
.dc__preview {
  flex: none; width: 220px; padding: 20px; border-radius: 16px; background: #F3F3F1;
}
.dc__photos { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .15s ease; }
.dc__photos.is-idle { opacity: .45; }
.dc__img {
  display: block; width: 180px; height: 180px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(0, 0, 0, .2);
  transition: opacity .15s ease;
}
.dc__img.is-fade { opacity: 0; }
.dc__free { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 40px 6px; text-align: center; color: #1B1B1B; }
.dc__free svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dc__free strong { font-size: 15px; }
.dc__free small { font-size: 12.5px; color: #6B6B6B; }
.dc.is-bebas .dc__photos, .dc.is-bebas .dc__picks { display: none; }
.dc.is-bebas .dc__free { display: flex; }

.dc__picks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.dc__gtitle { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.dc__gtitle strong { color: var(--ink); font-weight: 700; }
.dc__sw { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.dc .dc__swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; min-height: 44px; padding: 2px; border-radius: 10px; }
.dc__swatch i {
  display: block; width: 34px; height: 34px; margin: 5px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: box-shadow .15s ease;
}
.dc__swatch.is-light i { box-shadow: inset 0 0 0 1px #BDBDB9; }
/* terpilih: cincin hitam 2px di luar swatch (total 44px) */
.dc__swatch.is-on i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.dc__swatch.is-light.is-on i { box-shadow: inset 0 0 0 1px #BDBDB9, 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.dc__swatch span { font-size: 12px; color: var(--text-2); }
.dc__swatch.is-on span { font-weight: 700; color: var(--ink); }
.dc .dc__swatch:hover:not(.is-on) i { transform: scale(1.06); }

.dc__sum { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: 10px; }
.dc__sum strong { color: var(--ink); }

@media (max-width: 640px) {
  .dc__body { flex-direction: column; align-items: stretch; }
  .dc__preview { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .dc__img, .dc__photos { transition: none; } }

/* =========================================================
   Navigasi HP (≤ 900px): header berisi ☰ + logo + judul halaman; menu lengkap = drawer dari kiri.
   Desktop tidak berubah. Buka/tutup: assets/js/app.js (body.nav-open).
   ========================================================= */
.topbar__menu, .topbar__brand, .sidebar__close, .nav-scrim { display: none; }
.sidebar:focus { outline: none; }
@media (max-width: 900px) {
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 300;
    width: min(300px, 86vw); height: 100vh; height: 100dvh;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 22px;
    padding: 20px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); visibility: hidden;
    transition: transform .32s var(--ease-out), visibility 0s linear .32s;
  }
  body.nav-open .sidebar {
    transform: none; visibility: visible; box-shadow: 18px 0 48px rgba(0, 0, 0, .35);
    transition: transform .32s var(--ease-out), visibility 0s;
  }
  .sidebar__logo img { width: 150px; }
  .sidebar__nav { order: 0; flex: 1 0 auto; flex-basis: auto; margin: 0; padding: 0; overflow: visible; }
  .sidebar__label { display: block; }
  .sidebar__list { flex-direction: column; }
  .sidebar__link { height: 46px; font-size: 15px; white-space: normal; }
  .sidebar__account { display: block; margin-left: 0; }
  .sidebar__user { padding: 10px 6px 10px 10px; border: 1px solid var(--ink-2); background: rgba(255, 255, 255, .03); }
  .sidebar__who small { display: block; }
  .sidebar__info { display: flex; }
  .sidebar__close {
    position: absolute; top: 18px; right: 12px;
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    color: #A3A3A3; background: rgba(255, 255, 255, .06); border: 0; border-radius: 10px; cursor: pointer;
  }
  .sidebar__close:hover { color: #FFFFFF; background: rgba(255, 255, 255, .12); }
  .sidebar__close .icon { width: 18px; height: 18px; }

  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 290;
    background: rgba(10, 10, 10, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  .topbar__menu {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0;
    color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .topbar__menu .icon { width: 20px; height: 20px; }
  .topbar__brand {
    display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto;
    color: var(--ink); text-decoration: none;
  }
  .topbar__mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: #0A0A0A; border-radius: 9px; }
  :root[data-theme="dark"] .topbar__mark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .topbar__mark img { width: 20px; height: auto; }
  .topbar__title { overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .sidebar, .nav-scrim { transition: none; }
}
/* Rincian di HP (≤ 640px): tiap baris 2 tingkat — nama kebutuhan penuh, lalu Qty | Harga satuan | Total */
@media (max-width: 640px) {
  .rc-grid { padding: 0 12px 20px; }
  .tb-set { padding: 14px 12px; }
  .tb-sec { padding: 8px 12px 12px; }
  .tb-sec__title { white-space: nowrap; }
  .tb-sec .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .tb-tabs { padding: 14px 12px 12px; }
  .rc { --rc-cols: 52px minmax(0, 1fr) minmax(0, 1fr); }
  .rc__cols { grid-template-areas: "qty harga sub"; }
  .rc__cols span:first-child { display: none; }
  .rc__cols span { padding: 6px 10px; }
  .rc__cols span:nth-child(2) { grid-area: qty; border-left: 0; }
  .rc__cols span:nth-child(3) { grid-area: harga; }
  .rc__cols span:nth-child(4) { grid-area: sub; }
  .rc__row { grid-template-areas: "nama nama nama" "qty harga sub"; }
  .rc__row .rc__cell { grid-area: nama; border-bottom: 1px dashed var(--rc-line); }
  .rc__row .rc__nama { height: 40px; font-weight: 600; }
  .rc__row .rc__qty { grid-area: qty; border-left: 0 !important; }
  .rc__row .rc__money { grid-area: harga; padding: 0 10px; }
  .rc__row .rc__sub { grid-area: sub; padding: 0 10px; }
  .rc__row { border-top: 1px solid #D4D4D4; }
  .rc__del { opacity: 1; }
  .rc__who { opacity: 1; }
  .rc__total { grid-template-columns: minmax(0, 1fr) auto; }
  .rc__total span { grid-column: 1; padding: 0 12px; }
  .rc__total strong { padding: 0 12px; }
  .rc__judul { padding: 0 12px; font-size: 13px; }
  .rc__chips { grid-template-columns: minmax(0, 1fr); }
  .rc__list { padding: 10px 12px 12px; }
}
@media (max-width: 640px) {
  .rc__cols { display: none; }
  .rc__money::before { content: "×"; margin-right: 2px; font-size: 13px; color: #A3A3A3; }
  .rc__sub { justify-content: space-between; gap: 6px; }
  .rc__sub::before { content: "="; font-weight: 400; color: #A3A3A3; }
  .rc__qty::placeholder { color: #B4B4B4; }
  .rc__lnk { opacity: 1; margin-left: -4px; }
  .rc { --rc-cols: 44px minmax(0, 1.12fr) minmax(0, 1fr); }
  .rc__row .rc__money { gap: 4px; padding: 0 8px; }
  .rc__money > span { display: none; }   /* sempit: "× 🔗 1.000.000" — Rp sudah jelas dari kolom Total */
  .rc__money.is-link::before { content: none; }
  .rc__money.is-link { padding: 4px 10px; }
  .rc__pick .rc__opts { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Transaksi › Plotting Kamera Live Cam (assets/js/plot-kamera.js) ---------- */
.pk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.pk-head .sec-title { margin-bottom: 4px; }
.pk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pk-venue .input { min-width: 170px; }
.pk-count { font-size: 13px; color: var(--muted); }
.pk-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.pk-stagewrap { min-width: 0; }
.pk-canvas { border-radius: 16px; overflow: hidden; background: #eef0f4; border: 1px solid var(--line); }
#pk-svg { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pk-floor { stroke: #d3d7de; stroke-width: 1.5; }
.pk-aud { fill: #f4f5f8; stroke: #d6dae1; stroke-width: 1.2; }
.pk-zone { fill: none; stroke: #dde1e7; stroke-width: 1.2; stroke-dasharray: 5 6; }
.pk-pit { fill: #e3e6eb; }
/* Panggung rangka truss */
.pk-backdrop { stroke: #d5d9df; stroke-width: 1; }
.pk-truss { fill: none; stroke: #8f96a1; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.pk-roof { stroke: none; }
.pk-roof--l { fill: rgba(255,255,255,.78); }
.pk-roof--r { fill: rgba(236,239,243,.82); }
.pk-deck-top { fill: #c9ced6; stroke: #b4bac4; stroke-width: 1; }
.pk-deck-front { fill: rgba(203,208,216,.35); stroke: #9aa1ab; stroke-width: 1; }
.pk-deck-side { fill: #bfc5ce; }
.pk-scaf line { stroke: #9aa1ab; stroke-width: .9; }
.pk-scaf .pk-scaf__post { stroke: #7d848f; stroke-width: 1.4; }
.pk-wedge-top { fill: #3a3f48; } .pk-wedge-front { fill: #1f2329; } .pk-wedge-side { fill: #2b3037; }
.pk-light { fill: #2b3037; stroke: #fff; stroke-width: .8; }
.pk-la-top { fill: #3b4049; } .pk-la-front { fill: #1d2127; stroke: #2e333b; stroke-width: .6; } .pk-la-side { fill: #2a2e35; }
.pk-sub-top { fill: #3b4049; } .pk-sub-front { fill: #1d2127; stroke: #3a3f48; stroke-width: .8; } .pk-sub-side { fill: #2a2e35; }
.pk-fence { fill: rgba(148,156,168,.14); }
.pk-post { stroke: #a3aab4; stroke-width: 1.6; }
.pk-rail { stroke: #7d848f; stroke-width: 2.6; stroke-linecap: round; }
.pk-foh-top { fill: #dfe2e7; stroke: #c3c8d0; stroke-width: 1; } .pk-foh-front { fill: #cfd3da; } .pk-foh-side { fill: #d6dae0; }
.pk-desk-top { fill: #3a3f48; } .pk-desk-front { fill: #23272e; } .pk-desk-side { fill: #2c3138; }
.pk-txt { fill: #4b5260; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-anchor: middle; pointer-events: none; }
.pk-txt--stage { fill: #3d434e; font-size: 12px; letter-spacing: .4em; }
.pk-lab { fill: #8a919d; font-size: 11px; letter-spacing: .16em; }
.pk-lab--zone { fill: #a2a8b2; font-size: 13px; letter-spacing: .32em; }
.pk-txt--start { text-anchor: start; }
/* Kamera */
.pk-cam { cursor: grab; outline: none; touch-action: none; }
.pk-cam:active { cursor: grabbing; }
.pk-cone { pointer-events: none; }
.pk-shadow { fill: rgba(17,24,39,.28); }
.pk-pole { stroke: #4b5260; stroke-width: 2; stroke-linecap: round; }
.pk-ring { stroke-width: 2.5; opacity: .45; }
.pk-dot { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(17,24,39,.35)); }
.pk-num { fill: #fff; font-weight: 800; text-anchor: middle; pointer-events: none; }
.pk-tag__bg { fill: #fff; stroke: #d6dae1; stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(17,24,39,.12)); }
.pk-tag__t { fill: #1f2937; font-size: 11px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.pk-tag__t.is-sel { fill: #fff; }
.pk-cam:hover .pk-tag__bg, .pk-cam:focus-visible .pk-tag__bg { stroke: #9aa1ab; }
.pk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pk-legend[hidden] { display: none; }
.pk-leg { display: inline-flex; align-items: center; gap: 6px; }
.pk-leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pk-leg b { color: var(--ink); font-weight: 700; }
.pk-panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--white); }
.pk-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pk-hint strong { color: var(--ink); }
.pk-hint--sm { margin-top: 10px; font-size: 12px; }
.pk-form { display: grid; gap: 10px; }
.pk-form label { display: grid; gap: 4px; }
.pk-form label > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pk-form label > span b { color: var(--ink); }
.pk-rot input[type="range"] { width: 100%; accent-color: var(--ink); }
.pk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; user-select: none; }
.pk-check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.pk-form .pk-check > span { font-size: 13px; font-weight: 500; color: var(--ink); }
.pk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pk-acts .btn { flex: 1 1 auto; }
.pk-list { margin-top: 14px; }
.pk-empty { margin: 0; font-size: 13px; color: var(--muted); }
.pk-table td { vertical-align: middle; }
.pk-table tr.is-sel td { background: var(--bg); }
.pk-chip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
@media (max-width: 1100px) { .pk-body { grid-template-columns: 1fr; } }

/* Plotting Kamera — tampilan 3D (assets/js/plot-kamera-3d.js) */
.plot-kamera.is-3d #pk-svg { display: none; }
.pk3 { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.pk3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk3-labels { position: absolute; inset: 0; pointer-events: none; }
.pk3-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(17,24,39,.18), 0 0 0 1px rgba(17,24,39,.06); font-size: 11.5px; font-weight: 700; color: #111827;
  white-space: nowrap; pointer-events: auto; cursor: grab; will-change: transform; outline: none; }
.pk3-tag b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11px; }
.pk3-tag em { font-style: normal; font-weight: 600; color: #6b7280; }
.pk3-tag.is-sel { background: var(--c); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 4px 14px rgba(17,24,39,.3); }
.pk3-tag.is-sel b { background: #fff; color: var(--c); }
.pk3-tag.is-sel em { color: rgba(255,255,255,.85); }
.pk3-tag:focus-visible { box-shadow: 0 0 0 3px #2563eb; }
.pk3-zone { position: absolute; left: 0; top: 0; pointer-events: none; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; color: rgba(55,65,81,.75);
  text-shadow: 0 1px 0 rgba(255,255,255,.8); white-space: nowrap; }
.pk3-tools { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(17,24,39,.12); backdrop-filter: blur(6px); }
.pk3-tools button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 700; color: #4b5563; cursor: pointer; }
.pk3-tools button:hover { color: #111827; }
.pk3-tools button.is-on { background: #111827; color: #fff; }
.pk3-sep { width: 1px; height: 18px; background: #e5e7eb; margin: 0 4px; }

/* Pengaturan › Akses Admin (Super Admin): fitur per Admin (assets/js/akses-admin.js) */
.ax-list { display: grid; gap: 12px; margin-top: 12px; }
.ax-admin { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; }
.ax-admin__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.ax-admin__count { margin-left: auto; font-size: 13px; }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.ax-item { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.ax-item input { width: 16px; height: 16px; accent-color: var(--ink); }
.ax-admin__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ax-cred { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-input); background: var(--line-3); }
.ax-cred dt { font-size: 12px; color: var(--muted); }
.ax-cred dd { margin: 2px 0 0; }
.ax-cred code { font-size: 14px; user-select: all; word-break: break-all; }
.ax-cred__set { display: flex; gap: 8px; margin-left: auto; }
.ax-cred__set .input { width: 190px; }
@media (max-width: 560px) { .ax-cred__set { margin-left: 0; width: 100%; } .ax-cred__set .input { flex: 1; width: auto; } }

/* Laporan: 3 kartu ringkasan (Saldo Kas, Uang Masuk, Uang Keluar) — kartu "Nota Terlampir" dihapus */
.kpis.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.kpis--3 { grid-template-columns: minmax(0, 1fr); } }
/* Laporan › Runway Kas (assets/js/laporan.js → Runway): kartu putih sederhana — angka runway, kalimat habis,
   garis progres 12 bulan, saldo & pengeluaran. Hijau ≥ 6 bln · kuning 3–6 · merah < 3 (merah hanya untuk Kritis) */
.lk-rw { --rw: #16A34A; --rw-soft: #DCFCE7; --rw-ink: #166534;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.lk-rw.is-waspada { --rw: #EAB308; --rw-soft: #FEF9C3; --rw-ink: #854D0E; }
.lk-rw.is-kritis  { --rw: var(--red); --rw-soft: var(--red-soft); --rw-ink: var(--red); }
.lk-rw .card__title { font-weight: 500; }
.lk-rw__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lk-rw__badge { padding: 3px 10px; border-radius: 999px; background: var(--rw-soft); color: var(--rw-ink); font-size: 12px; font-weight: 500; }
.lk-rw__big { margin: 14px 0 0; font: 500 44px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.lk-rw__big small { margin-left: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.lk-rw__msg { margin: 8px 0 18px; font-size: 14px; font-weight: 400; color: var(--muted); }
.lk-rw__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lk-rw__bar i { display: block; height: 100%; border-radius: inherit; background: var(--rw); }
.lk-rw__ticks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 6px; }
.lk-rw__ticks span { text-align: right; font-size: 11px; font-weight: 400; color: var(--muted); }
.lk-rw__foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 400; color: var(--muted); }
.lk-rw__empty { margin: 14px 0 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.lk-rw__empty span { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
/* Runway kas ↔ Transaksi › Runway: judul kartu & catatan jadi tautan */
.lk-rw__link { color: inherit; text-decoration: none; }
.lk-rw__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lk-rw__empty a, .rw-now__note a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Jadwal Saya: kartu menuju Plotting Kamera (operator kamera) — assets/js/k-jadwal.js */
.kj-plot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--ink); color: var(--white); transition: transform .15s var(--ease-out); }
.kj-plot:hover { transform: translateY(-1px); }
.kj-plot__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .14); flex: none; }
.kj-plot__ic .icon { width: 20px; height: 20px; stroke: currentColor; }
.kj-plot__txt { display: grid; gap: 2px; min-width: 0; }
.kj-plot__txt small { font-size: 12px; opacity: .75; }
.kj-plot__go { margin-left: auto; font-size: 24px; line-height: 1; opacity: .7; }
/* Plotting Kamera lihat-saja (includes/plot-view.php) */
.pk-mine { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); }
.pk-mine .icon { width: 22px; height: 22px; flex: none; }
.pk-mine p { margin: 0; }
.pk-ro { display: grid; gap: 8px; }
.pk-ro__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.pk-ro__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.pk-ro__row span { color: var(--muted); }
.pk-ro__row strong { text-align: right; font-weight: 600; }
.pk-ro__me { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; vertical-align: middle; }
/* Plotting Kamera: layar loading sampai 3D & semua model siap (assets/js/plot-kamera.js → is-loading3d) */
.pk-canvas { position: relative; }
.plot-kamera.is-loading3d .pk-canvas > * { visibility: hidden; }
.plot-kamera.is-loading3d .pk-canvas::after { content: 'Memuat denah 3D…'; position: absolute; inset: 0; display: grid; place-items: center;
  padding-top: 56px; font-size: 13px; font-weight: 600; color: var(--muted); background: #eef0f4; }
.plot-kamera.is-loading3d .pk-canvas::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px;
  margin: -30px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .12); border-top-color: #0A0A0A; animation: pk-spin .8s linear infinite; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
/* Transaksi › tab Plotting Kamera: Summary Finance & Termin disembunyikan, denah selebar penuh */
.tx-editor.is-tabs:has(#plot-kamera.is-tab-on) .tx-col--side { display: none; }
.tx-editor.is-tabs:has(#plot-kamera.is-tab-on) .tx-layout { grid-template-columns: minmax(0, 1fr); }
.tx-editor.is-tabs:has(#plot-kamera.is-tab-on) .tx-acc { display: none !important; }   /* Akumulasi Operasional juga disembunyikan */
/* Plotting Kamera: kolom samping = panel kamera terpilih + daftar kamera */
.pk-body { grid-template-columns: minmax(0, 1fr) 300px; }
.pk-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pk-side .pk-list { margin-top: 0; }
.pk-list__title { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pk-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pk-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; }
.pk-item:hover { border-color: var(--dash); }
.pk-item.is-sel { border-color: var(--ink); background: var(--soft); }
.pk-item .pk-chip { margin: 5px 0 0; flex: none; }
.pk-item__txt { display: grid; gap: 2px; min-width: 0; }
.pk-item__txt strong { font-size: 14px; }
.pk-item__txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pk-item__txt em { font-style: normal; color: var(--placeholder); }
@media (max-width: 1100px) { .pk-body { grid-template-columns: 1fr; } }
/* Plotting Kamera: denah 3D setinggi layar (tanpa perlu scroll ke bawah) — tinggi dikurangi bar atas + tab + judul kartu */
@media (min-width: 1101px) {
  .pk3 { aspect-ratio: auto; height: clamp(380px, calc(100vh - 340px), 820px); }
  .pk-side { max-height: clamp(380px, calc(100vh - 340px), 820px); overflow-y: auto; }
}
.pk-list li.pk-item { display: flex; grid-template-columns: none; }   /* jangan ikut gaya .pk-list li lama (grid) */
/* Label kamera 3D: kartu 2 baris (CAM 2 / nama operator), garis kiri warna tipe, ekor kecil ke bawah */
.pk3-tag { display: grid; gap: 1px; padding: 5px 10px 5px 9px; border-radius: 8px; border-left: 3px solid var(--c);
  background: rgba(255,255,255,.96); box-shadow: 0 4px 12px rgba(17,24,39,.16), 0 0 0 1px rgba(17,24,39,.06); line-height: 1.2; margin-top: -7px; }
.pk3-tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4px;
  background: inherit; transform: rotate(45deg); box-shadow: 2px 2px 3px rgba(17,24,39,.08); }
.pk3-tag span { font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.pk3-tag em { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; font-weight: 600; color: #6b7280; }
.pk3-tag.is-sel { background: var(--c); color: #fff; border-left-color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(17,24,39,.3); }
.pk3-tag.is-sel em { color: rgba(255,255,255,.85); }
/* Label 3D lebih ringkas supaya venue tetap terlihat */
.pk3-tag b { display: none; }   /* sisa versi lama (bulatan angka) */
.pk3-tag { padding: 3px 7px 3px 6px; border-left-width: 2px; border-radius: 6px; gap: 0; margin-top: -5px;
  background: rgba(255,255,255,.88); box-shadow: 0 2px 6px rgba(17,24,39,.14); backdrop-filter: blur(2px); }
.pk3-tag::after { width: 6px; height: 6px; margin-left: -3px; bottom: -3px; }
.pk3-tag span { font-size: 10.5px; }
.pk3-tag em { max-width: 110px; font-size: 9.5px; }

/* ---------- Database Web (database-web.php) ---------- */
.dw-table td { vertical-align: middle; }
.dw-msg { min-width: 220px; max-width: 420px; white-space: pre-line; color: var(--muted-dark); }
.dw-status-sel { height: 34px; min-width: 128px; padding: 0 10px; font-size: 13px; }
.dw-btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* Laporan → buku kas (versi): arsip dibuka dari Pengaturan › Buku Kas (?buku=N) = hanya dilihat (tombol catat disembunyikan) */
.lk-buku-sub { margin-top: 2px; }
.lk-kpi-btn { display: inline-block; margin-top: 10px; padding: 5px 10px; border: 1px solid #404040; border-radius: 7px; background: transparent; color: #E5E5E5; font: 600 12px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.lk-kpi-btn:hover { background: #262626; border-color: #525252; }
.lk-kpi-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.lk-arsip .lk-catat, body.lk-arsip #lk-bt-add { display: none; }

/* Pengaturan › Buku Kas (Super Admin) */
.bk-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.bk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.bk-item.is-aktif { border-color: var(--ink); }
.bk-item strong { margin-right: 6px; }
.bk-item p { margin: 4px 0 0; font-size: 13px; }
@media (max-width: 600px) { .bk-item { flex-direction: column; align-items: stretch; } }

/* Transaksi: daftar invoice — event sudah lewat = stabilo merah */
.table tr.tx-lewat td { background: #FCA5A5; color: #450A0A; }
.table tr.tx-lewat td .muted { color: #7F1D1D; }
.table tr.tx-lewat td:first-child { box-shadow: inset 5px 0 0 #B91C1C; }
.table tr.tx-lewat:hover td { background: #F87171; }
[data-theme="dark"] .table tr.tx-lewat td { background: rgba(239, 68, 68, .45); color: #FFF; }
[data-theme="dark"] .table tr.tx-lewat td .muted { color: #FECACA; }
[data-theme="dark"] .table tr.tx-lewat:hover td { background: rgba(239, 68, 68, .6); }

/* Laporan → Arus Kas per Bulan: pilihan Kurva / Batang */
.lk-chart__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.lk-chart__mode .seg__btn { padding: 4px 12px; font-size: 13px; }
.lk-bar { pointer-events: none; transition: opacity .12s ease; }
.lk-bar--in  { fill: var(--blue); }
.lk-bar--out { fill: var(--red); }
.lk-bar.is-dim { opacity: .35; }

/* Laporan: Biaya Tetap Bulanan jadi pop-up — tombol di bar atas (sebelah Buku Kas | Tabungan) */
.lp-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lp-switch__bt small { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 11px; line-height: 18px; }
.lp-switch__bt small:empty { display: none; }
.lk-bt-dlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: auto; }
.lk-bt-dlg .lk-bt { margin: 0; }
.lk-bt-dlg .card__head { align-items: flex-start; }
.lk-bt__close { flex: none; margin-left: 4px; }

/* Laporan: Runway Kas di sebelah kartu Saldo / Masuk / Keluar */
.lk-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1.15fr); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.lk-top > .kpis { margin-bottom: 0; }
.lk-top > .lk-rw { margin: 0; }
.lk-top .lk-rw__big { margin-top: 8px; font-size: 36px; }
.lk-top .lk-rw__msg { margin-bottom: 12px; }
.lk-top .lk-rw__foot { margin-top: 12px; padding-top: 10px; }
.lk-cats.lk-cats--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1200px) { .lk-top { grid-template-columns: minmax(0, 1fr); } }

/* Laporan: tombol Buku Kas | Tabungan dihapus → tombol Biaya Tetap rata kanan */
.lp-switch { justify-content: flex-end; }

/* Laporan: Runway Kas paling kiri, lalu Saldo / Masuk / Keluar */
.lk-top { grid-template-columns: minmax(260px, 1.15fr) minmax(0, 3fr); }
.lk-top > .lk-rw { order: -1; }
@media (max-width: 1200px) { .lk-top { grid-template-columns: minmax(0, 1fr); } }

/* Laporan: judul halaman disembunyikan (hanya untuk pembaca layar) → tombol aksi rata kanan */
.page-head--bare { justify-content: flex-end; }
.page-head--bare .page-head__actions:empty { display: none; }

/* Laporan: 4 kartu atas sama lebar (Runway · Saldo · Masuk · Keluar) + persentase naik/turun vs bulan lalu */
.lk-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lk-top > #lk-kpis { display: contents; }
.lk-top > .lk-rw { order: -1; }
@media (max-width: 1200px) { .lk-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .lk-top { grid-template-columns: minmax(0, 1fr); } }
.kpi__delta { margin: 0; font-size: 13px; font-weight: 500; }
.kpi__delta span { font-weight: 400; color: var(--muted); }
.kpi__delta.is-good { color: #16A34A; }
.kpi__delta.is-bad  { color: var(--red); }
.kpi__delta.is-flat { color: var(--muted); }
.kpi--dark .kpi__delta.is-good { color: #4ADE80; }
.kpi--dark .kpi__delta.is-bad  { color: #F87171; }
.kpi--dark .kpi__delta span, .kpi--dark .kpi__delta.is-flat { color: #A3A3A3; }
.lk-rw__delta { margin-top: 6px; }

/* Laporan: filter Bulan/Tahun rata kanan + pembanding 7 hari / 1 bulan / 3 bulan / 1 tahun */
.lk-period { justify-content: flex-end; align-items: center; }
.lk-cmp { margin-right: auto; }
.lk-cmp .input { min-width: 140px; }

/* Laporan (sementara): hanya 4 kartu atas + filter periode yang tampil; bagian lain disembunyikan.
   Hapus blok ini untuk menampilkan lagi grafik, rincian, tabel catatan, tombol header & Biaya Tetap. */
#lk-content > :not(.lk-top):not(.lk-tx) { display: none !important; }
.page-head--bare, .topbar .lp-switch__bt, .lp-switch { display: none !important; }

.lk-rw__delta { margin-bottom: 12px; }

/* Runway: angka besar di kiri, perkiraan habis + garis 1–12 di kanannya */
.lk-rw__row { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.lk-rw__left { flex: none; }
.lk-rw__right { flex: 1; min-width: 0; }
.lk-rw__row .lk-rw__big { margin: 0; }
.lk-rw__row .lk-rw__delta { margin: 6px 0 0; }
.lk-top .lk-rw__row .lk-rw__msg { margin: 0 0 8px; font-size: 12px; line-height: 1.3; }

/* Runway: garis 1–12 kembali di bawah angka bulan */
.lk-rw__row { display: block; }
.lk-rw__row .lk-rw__right { margin-top: 14px; }

/* Laporan: persentase selisih menempel di dasar tiap kartu atas */
.lk-top > #lk-kpis > .kpi { display: flex; flex-direction: column; }
.lk-top .kpi__delta { margin-top: auto; padding-top: 12px; }

/* Laporan: ikon Remix naik/turun di sebelah persentase */
.kpi__delta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kpi__delta > i { font-size: 16px; line-height: 1; }
.kpi__delta > span { margin-left: 2px; }

/* Laporan (sementara): tanpa animasi sama sekali — muncul, ganti filter, garis runway, skeleton.
   Hapus blok ini untuk menyalakan animasi lagi. */
.main:has(#lk-content) *, .main:has(#lk-content) *::before, .main:has(#lk-content) *::after {
  animation: none !important; transition: none !important;
}

/* Laporan: grafik Transaksi (pemasukan vs pengeluaran) — batang berdampingan, tinggi cukup supaya tidak ceper */
.lk-tx { margin-top: 0; }
.lk-tx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lk-tx__sum { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.lk-tx__legend { margin: 0; }
.lk-tx__dot--in, .lk-tx__cols .is-in   { background: var(--blue); }
.lk-tx__dot--out, .lk-tx__cols .is-out { background: var(--red); }
.lk-tx__chart { position: relative; height: 340px; margin-top: 20px; padding: 0 0 26px 44px; }
.lk-tx__grid { position: absolute; inset: 0 0 26px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.lk-tx__grid span { position: relative; height: 0; border-top: 1px solid var(--line); }
.lk-tx__grid span:last-child { border-top-color: var(--dash, var(--line)); }
.lk-tx__grid small { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.lk-tx__cols { position: relative; display: flex; height: 100%; }
.lk-tx__col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; cursor: default; }
.lk-tx__col:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: 8px 8px 0 0; }
.lk-tx__bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 18%; }
.lk-tx__bars i { flex: 1; max-width: 28px; border-radius: 4px 4px 0 0; }
.lk-tx__lbl { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.lk-tx__col.is-kini .lk-tx__lbl { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .lk-tx__chart { height: 280px; } .lk-tx__bars { padding: 0 8%; } .lk-tx__lbl { font-size: 10px; } }

/* Transaksi (sementara): halaman awal hanya kotak Cari + tombol Transaksi Baru.
   Judul, jumlah, dan daftar invoice disembunyikan; daftar muncul lagi begitu ada kata yang dicari. */
.main:has(#tk-modal) .page-head { justify-content: space-between; align-items: center; }
.tx-head-search { flex: 1; max-width: 420px; }
.tx-head-search .input { background-color: var(--white); }

/* Transaksi: sudut melengkung halus ala iOS (continuous corner / squircle) untuk kotak Cari & tombol Transaksi Baru.
   corner-shape didukung Chrome/Edge terbaru; browser lain jatuh ke sudut bulat biasa. */
.tx-head-search .input, .main:has(#tk-modal) #tx-new { border-radius: 16px; }
@supports (corner-shape: squircle) {
  .tx-head-search .input, .main:has(#tk-modal) #tx-new { border-radius: 30px; corner-shape: squircle; }
}

/* Transaksi: tabel ringkas Nama · Total · Type di bawah kotak Cari (assets/js/transaksi-kas.js) */
.tx-kas { margin-bottom: 20px; }
.main:has(#tx-editor:not([hidden])) .tx-kas { display: none; }
.tx-kas .table th:nth-child(2), .tx-kas .table td:nth-child(2) { width: 200px; }
.tx-kas .table th:nth-child(3), .tx-kas .table td:nth-child(3) { width: 170px; }
.tx-kas__empty { padding: 28px 16px !important; text-align: center; color: var(--muted); }
.tx-kas__type { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tx-kas__type i { font-size: 14px; line-height: 1; }
.tx-kas__type.is-in  { color: #15803D; background: #DCFCE7; }
.tx-kas__type.is-out { color: #B91C1C; background: #FEE2E2; }
[data-theme="dark"] .tx-kas__type.is-in  { color: #4ADE80; background: rgba(74, 222, 128, .14); }
[data-theme="dark"] .tx-kas__type.is-out { color: #F87171; background: rgba(248, 113, 113, .14); }

/* Combobox: baris aksi "Daftarkan customer baru" saat tidak ada yang cocok */
.combo__add { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.combo__add i { font-size: 16px; line-height: 1; }
.combo__add b { font-weight: 600; }

/* Transaksi mode kas (Irfani): pop-up Transaksi Baru — pilihan Pemasukan / Pengeluaran */
.tk-jenis { display: flex; margin-bottom: 16px; }
.tk-jenis .seg__btn { flex: 1; }
.tk-modal .grid2 { gap: 12px; }
/* Pengeluaran dipilih: latar merah muda + tombol Pengeluaran merah, supaya tidak tertukar dengan Pemasukan */
.tk-modal .window__body { transition: background-color .2s ease; }
.tk-modal.is-keluar { border-color: var(--red-line); }
.tk-modal.is-keluar .window__body { background: #FEE2E2; }
[data-theme="dark"] .tk-modal.is-keluar .window__body { background: rgba(248, 113, 113, .14); }
.tk-modal.is-keluar .tk-jenis { --seg-glass: var(--red); --seg-text-on: #FFFFFF; }
.tk-modal.is-keluar .tk-jenis .seg__btn.is-active { color: #FFFFFF; }
.tk-modal.is-keluar .input { background-color: var(--white); border-color: var(--red-line); }

/* Transaksi mode kas: tombol Transaksi Baru senada dengan kotak Cari (putih, garis tipis, tinggi sama) */
.tk-new { height: 44px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.tk-new:hover { border-color: var(--dash, var(--ink)); background: var(--white); }

/* Transaksi mode kas: kotak Cari & tombol Transaksi Baru berujung bulat penuh (kapsul) */
.tx-head-search .input, .main:has(#tk-modal) #tx-new { border-radius: 999px !important; corner-shape: round; }
.main:has(#tk-modal) #tx-new { padding: 0 20px; }

/* Transaksi mode kas: kolom Tanggal */
.tx-kas .table th:first-child, .tx-kas__tgl { width: 140px; white-space: nowrap; color: var(--muted); }
.tx-kas .table th:nth-child(2), .tx-kas .table td:nth-child(2) { width: auto; }
.tx-kas .table th:nth-child(3), .tx-kas .table td:nth-child(3) { width: 200px; }
.tx-kas .table th:nth-child(4), .tx-kas .table td:nth-child(4) { width: 170px; }

/* Transaksi mode kas: kolom Customer & Vendor (Tanggal · Nama · Customer · Vendor · Total · Type) */
.tx-kas .table th:nth-child(3), .tx-kas .table td:nth-child(3),
.tx-kas .table th:nth-child(4), .tx-kas .table td:nth-child(4) { width: auto; }
.tx-kas .table th:nth-child(5), .tx-kas .table td:nth-child(5) { width: 170px; text-align: right; }
.tx-kas .table th:nth-child(6), .tx-kas .table td:nth-child(6) { width: 150px; }
.tx-kas .table td:nth-child(4) { color: var(--muted); }
.tx-kas .table th.tx-kas__aksi, .tx-kas .table td.tx-kas__aksi { width: 52px; padding-left: 0; padding-right: 8px; text-align: right; }
.tx-kas__dash { color: var(--muted); }
.tx-kas__sub { display: none; }

/* Transaksi mode kas (Irfani) di HP: header, tab & tabel jadi kartu per transaksi */
@media (max-width: 900px) {
  .main:has(#tk-modal) .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .tx-head-search { max-width: none; }
  .main:has(#tk-modal) #tx-new { width: 100%; justify-content: center; }
  .tx-tabs { display: flex; width: 100%; }
  .tx-tabs__btn { flex: 1; justify-content: center; padding: 0 10px; }
}
@media (max-width: 640px) {
  .tx-tabs__btn { font-size: 13px; gap: 4px; }
  .tx-kas .table-wrap { overflow: visible; }
  .tx-kas .table thead { display: none; }
  .tx-kas .table, .tx-kas .table tbody { display: block; }
  .tx-kas .table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; row-gap: 4px;
    padding: 12px 6px 12px 14px; border-bottom: 1px solid var(--line-2);
  }
  .tx-kas .table tbody tr:last-child { border-bottom: 0; }
  .tx-kas .table td { display: block; width: auto !important; height: auto; padding: 0; border: 0; }
  .tx-kas .table td:nth-child(1), .tx-kas .table td:nth-child(3), .tx-kas .table td:nth-child(4) { display: none; }
  .tx-kas .table td.tx-kas__nama { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
  .tx-kas .table td:nth-child(5) { grid-column: 2; grid-row: 1; font-weight: 600; }
  .tx-kas .table td:nth-child(6) { grid-column: 2; grid-row: 2; text-align: right; }
  .tx-kas .table td.tx-kas__aksi { grid-column: 3; grid-row: 1 / span 2; padding: 0; }
  .tx-kas .table td.tx-kas__empty { display: block; grid-column: 1 / -1; padding: 20px 8px !important; }
  .tx-kas__name { display: block; font-weight: 500; overflow-wrap: anywhere; }
  .tx-kas__sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
  .tx-kas__type { padding: 2px 8px 2px 6px; font-size: 11px; }
  .rw-now__big { font-size: 36px; }
  .rw-form__foot .btn { width: 100%; justify-content: center; }
}

/* Transaksi: tab dua fitur — Keluar Masuk · Input Transaksi Customer */
.tx-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.tx-tabs__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tx-tabs__btn i { font-size: 16px; line-height: 1; }
.tx-tabs__btn:hover { color: var(--ink); }
.tx-tabs__btn.is-active { background: var(--ink); color: var(--white); }
.main:has(#tx-editor:not([hidden])) .tx-tabs { display: none; }

/* Transaksi › Runway: ringkasan runway (kiri) + form saldo awal kas (kanan) */
.rw-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .rw-setup { grid-template-columns: minmax(0, 1fr); } }
.rw-now { margin: 0; }
.rw-now__head { display: flex; justify-content: space-between; align-items: center; }
.rw-now__big { margin: 12px 0 16px; font: 500 44px/1 var(--font-display); letter-spacing: -.02em; }
.rw-now__big small { margin-left: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.rw-now__list { margin: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.rw-now__list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rw-now__list dt { color: var(--muted); }
.rw-now__list dd { margin: 0; font-weight: 500; text-align: right; }
.rw-now__note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.rw-form__sub { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.rw-form .grid2 { gap: 12px; }
.rw-form__foot { display: flex; justify-content: flex-end; margin-top: 16px; }
