/* =================================================================
   Karunia Scrap — stylesheet utama
   Tema: "galvanis & tembaga" — dasar abu baja yang tenang,
   biru baja sebagai warna aksi, aksen tembaga hanya untuk penanda
   (menu aktif, logo). Nama class & variabel lama dipertahankan
   supaya semua halaman/JS tetap jalan tanpa diubah.
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Netral */
  --ink: #17212B;          /* teks utama */
  --ink-2: #3A4653;        /* teks sekunder kuat */
  --paper: #F2F4F7;        /* latar aplikasi */
  --surface: #FFFFFF;      /* kartu / panel */
  --surface-2: #F8FAFB;    /* header tabel, footer form */
  --stone: #67737F;        /* teks redup */
  --stone-dark: #4A5561;
  --stone-line: #E2E6EB;   /* garis */
  --stone-line-strong: #CDD3DA;

  /* Aksi utama (nama lama: copper) = biru baja */
  --copper: #1F5D8A;
  --copper-dark: #174A6E;
  --primary-soft: #E8F0F7;

  /* Aksen tembaga — hanya sebagai penanda */
  --accent: #C9803F;
  --accent-soft: #F7EADD;

  /* Status */
  --rust: #B25E12;         /* peringatan / angka piutang-hutang */
  --rust-soft: #FBEEDD;
  --success: #1E7A55;
  --success-soft: #E2F3EA;
  --danger: #B3393B;
  --danger-soft: #FBE7E7;
  --info-soft: #EEF1F5;

  /* Sidebar */
  --nav-bg: #15212E;
  --nav-bg-2: #1C2A39;
  --nav-text: #AEB9C5;
  --nav-text-strong: #F3F6F9;
  --nav-line: rgba(255,255,255,0.07);

  /* Bentuk */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(21,33,46,0.05);
  --shadow: 0 1px 2px rgba(21,33,46,0.04), 0 4px 12px rgba(21,33,46,0.05);
  --shadow-lg: 0 12px 40px rgba(21,33,46,0.18);
  --ring: 0 0 0 3px rgba(31,93,138,0.18);

  --font-ui: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

::selection { background: var(--primary-soft); }

/* ---------- App shell ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 252px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  color: var(--nav-text-strong);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--nav-line);
}

/* Monogram: satu-satunya elemen tembaga yang menonjol */
.sidebar__mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #D99257 0%, #B76B2C 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.25);
}
.sidebar__mark--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; margin-right: 9px; }

.sidebar__brand-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.sidebar__brand-sub {
  font-size: 11.5px;
  color: var(--nav-text);
  margin-top: 2px;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nav-text);
  transition: background 0.15s ease, color 0.15s ease;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--nav-text-strong);
}

.nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-item.active svg { color: var(--accent); opacity: 1; }

.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Grup dropdown di sidebar ---------- */
.nav-group__toggle .nav-group__chev {
  margin-left: auto;
  display: inline-flex;
  transition: transform 0.2s ease;
}
.nav-group__toggle .nav-group__chev svg { width: 15px; height: 15px; opacity: 0.6; }
.nav-group.open .nav-group__chev { transform: rotate(180deg); }
.nav-group.has-active > .nav-group__toggle { color: var(--nav-text-strong); }

.nav-group__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.nav-group.open .nav-group__panel { grid-template-rows: 1fr; }
.nav-group__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 20px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-group.open .nav-group__inner { padding-top: 2px; padding-bottom: 4px; }

.nav-item.nav-sub {
  padding: 7px 10px;
  font-size: 13px;
}
.nav-item.nav-sub svg { width: 16px; height: 16px; }
.nav-item.nav-sub.active::before { left: -11px; }

/* ---------- Tombol cari menu di sidebar ---------- */
.sidebar__search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 12px 0;
  padding: 8px 10px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--nav-text);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar__search:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); color: var(--nav-text-strong); }
.sidebar__search svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar__search span { flex: 1; }
.sidebar__search kbd, .cmdk kbd {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--nav-text);
  white-space: nowrap;
}

/* ---------- Tombol ciutkan sidebar ---------- */
.nav-item.sidebar__collapse {
  margin: 0 12px 8px;
  width: auto;
  font-size: 12.5px;
  color: #7F8C99;
}
.nav-item.sidebar__collapse svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

/* ---------- Mode sidebar ciut (ikon saja) ---------- */
@media (min-width: 861px) {
  .sidebar { transition: width 0.2s ease; }
  body.sidebar-ciut .sidebar { width: 72px; }
  body.sidebar-ciut .sidebar__brand { justify-content: center; padding: 20px 0 18px; }
  body.sidebar-ciut .sidebar__brand > div:last-child,
  body.sidebar-ciut .sidebar__search span,
  body.sidebar-ciut .sidebar__search kbd,
  body.sidebar-ciut .nav-item > span,
  body.sidebar-ciut .sidebar__user-text { display: none; }
  body.sidebar-ciut .sidebar__search { justify-content: center; padding: 9px 0; margin: 14px 14px 0; }
  body.sidebar-ciut .sidebar__nav { padding: 14px 14px; }
  body.sidebar-ciut .nav-item { justify-content: center; padding: 10px 0; }
  body.sidebar-ciut .nav-item.active::before { left: -14px; }
  body.sidebar-ciut .nav-group__panel { display: none; }
  body.sidebar-ciut .nav-group.has-active > .nav-group__toggle { background: rgba(255,255,255,0.08); color: #fff; }
  body.sidebar-ciut .nav-group.has-active > .nav-group__toggle svg { color: var(--accent); }
  body.sidebar-ciut .nav-group.has-active > .nav-group__toggle::before {
    content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
  }
  body.sidebar-ciut .nav-item.sidebar__collapse { margin: 0 14px 8px; }
  body.sidebar-ciut .sidebar__collapse svg { transform: rotate(180deg); }
  body.sidebar-ciut .sidebar__footer { padding: 12px 10px; }
  body.sidebar-ciut .sidebar__user { flex-direction: column; gap: 6px; padding: 8px 0; }
}

/* Panel melayang di samping ikon saat sidebar ciut */
.nav-flyout {
  display: none;
  position: fixed;
  z-index: 70;
  min-width: 190px;
  padding: 6px;
  background: var(--nav-bg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  color: var(--nav-text-strong);
}
.nav-flyout.open { display: block; }
.nav-flyout.is-tip { min-width: 0; padding: 6px 10px; pointer-events: none; }
.nav-flyout__tip { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nav-flyout__title { font-size: 12px; font-weight: 700; color: var(--nav-text); padding: 6px 10px 6px; }
.nav-flyout__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--nav-text);
}
.nav-flyout__item svg { width: 16px; height: 16px; }
.nav-flyout__item:hover, .nav-flyout__item:focus-visible { background: rgba(255,255,255,0.07); color: #fff; outline: none; }
.nav-flyout__item.active { color: #fff; font-weight: 600; }
.nav-flyout__item.active svg { color: var(--accent); }

/* ---------- Pencarian menu cepat (Ctrl+K) ---------- */
.cmdk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(21,33,46,0.45);
  backdrop-filter: blur(2px);
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.cmdk-overlay.open { display: flex; }
.cmdk {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 0.15s ease;
}
.cmdk__input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--stone-line);
}
.cmdk__input-wrap svg { width: 19px; height: 19px; color: var(--stone); flex-shrink: 0; }
.cmdk__input-wrap input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: transparent;
}
.cmdk__input-wrap input::placeholder { color: #9AA4AE; }
.cmdk kbd { border-color: var(--stone-line-strong); color: var(--stone); background: var(--surface-2); }
.cmdk__list { max-height: min(56vh, 380px); overflow-y: auto; padding: 6px; }
.cmdk__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
}
.cmdk__item svg { width: 18px; height: 18px; color: var(--stone); flex-shrink: 0; }
.cmdk__label { font-weight: 600; }
.cmdk__grup { font-size: 12px; color: var(--stone); }
.cmdk__enter { margin-left: auto; opacity: 0; display: inline-flex; }
.cmdk__enter svg { width: 15px; height: 15px; }
.cmdk__item.active { background: var(--primary-soft); color: var(--copper-dark); }
.cmdk__item.active svg { color: var(--copper); }
.cmdk__item.active .cmdk__enter { opacity: 1; }
.cmdk__item.is-danger.active { background: var(--danger-soft); color: var(--danger); }
.cmdk__item.is-danger.active svg { color: var(--danger); }
.cmdk__empty { padding: 26px 16px; text-align: center; color: var(--stone); font-size: 13.5px; }
.cmdk__foot {
  display: flex; gap: 16px;
  padding: 9px 16px;
  border-top: 1px solid var(--stone-line);
  background: var(--surface-2);
  font-size: 12px; color: var(--stone);
}
.cmdk__foot kbd { margin-right: 3px; }

.sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--nav-line);
  font-size: 13px;
  color: var(--nav-text);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--nav-bg-2);
}
.sidebar__user-text { flex: 1; min-width: 0; }
.sidebar__user-name {
  font-size: 13px;
  color: var(--nav-text-strong);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #2D4257;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
  flex-shrink: 0;
}

.sidebar__role {
  font-size: 11.5px;
  color: var(--nav-text);
}

.sidebar__logout {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--nav-text);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar__logout svg { width: 17px; height: 17px; }
.sidebar__logout:hover { background: rgba(179,57,59,0.18); color: #FFB4B4; }

/* ---------- Main content ---------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar { display: none; }

.content {
  padding: 26px 36px 90px;
  max-width: 1360px;
  width: 100%;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--stone);
  margin-bottom: 6px;
}
.crumbs__sep { color: var(--stone-line-strong); }
.crumbs__current { color: var(--ink-2); font-weight: 600; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-help-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--stone-line-strong);
  background: var(--surface);
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.page-help-icon:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.page-head__hint {
  font-size: 13.5px;
  color: var(--stone);
  margin-top: 4px;
  max-width: 68ch;
}

.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.55; }

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23,74,110,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover:not(:disabled) { background: var(--copper-dark); }
.btn-primary:focus-visible { box-shadow: var(--ring); outline: none; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--stone-line-strong);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--stone); color: var(--ink); background: var(--surface-2); }
.btn-ghost:focus-visible { box-shadow: var(--ring); outline: none; border-color: var(--copper); }

select.btn { padding-right: 30px; }

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }

.tab-filter { display: none; } /* digantikan .segmented di bawah */

.segmented {
  display: inline-flex;
  background: #E9EDF1;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.segmented button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.segmented button:hover:not(.active) { color: var(--ink); }

.segmented button.active {
  background: var(--surface);
  color: var(--copper-dark);
  box-shadow: 0 1px 2px rgba(21,33,46,0.10), 0 1px 1px rgba(21,33,46,0.04);
}

/* ---------- Cards / summary strip ---------- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 24px;
}

.summary-cell {
  position: relative;
  background: var(--surface);
  padding: 16px 18px 17px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.summary-cell__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 6px;
}

.summary-cell__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.summary-cell__value.accent { color: var(--copper); }
.summary-cell__delta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}
.summary-cell__delta span { font-size: 9.5px; }
.summary-cell__delta.berwarna.up { color: var(--success); }
.summary-cell__delta.berwarna.down { color: var(--danger); }
.summary-cell__delta:not(.berwarna).up, .summary-cell__delta:not(.berwarna).down { color: var(--stone-dark); }

.summary-cell__value.warn { color: var(--rust); }

/* ---------- Section ---------- */
.section {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--stone-line);
}

.section__head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.section__hint {
  font-size: 12.5px;
  color: var(--stone);
  margin-top: 1px;
}

/* input/select yang ditaruh langsung di header section (pencarian, filter) */
.section__head input[type="text"],
.section__head input[type="search"],
.section__head input[type="date"],
.section__head input[type="month"],
.section__head select:not(.btn) {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--stone-line-strong) !important;
  border-radius: 8px !important;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.section__head input:focus,
.section__head select:focus {
  outline: none;
  border-color: var(--copper) !important;
  box-shadow: var(--ring);
}

/* ---------- Pagination ---------- */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--stone-line);
}
.pagination-info {
  font-size: 12.5px;
  color: var(--stone);
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-page, .pagination-nav {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--stone-line);
  background: var(--surface);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-num);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pagination-page:hover, .pagination-nav:hover:not(:disabled) {
  border-color: var(--copper);
  color: var(--copper-dark);
}
.pagination-page.active {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  cursor: default;
}
.pagination-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination-ellipsis {
  color: var(--stone);
  padding: 0 4px;
  font-size: 12.5px;
}

@media (max-width: 860px) {
  .pagination-bar { flex-direction: column; align-items: flex-start; }
  .pagination-controls { flex-wrap: wrap; }
}

/* ---------- Ledger table ---------- */
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.ledger th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-dark);
  background: var(--surface-2);
  padding: 10px 16px;
  border-bottom: 1px solid var(--stone-line);
  white-space: nowrap;
}

table.ledger td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--stone-line);
  vertical-align: middle;
}

table.ledger tbody tr { transition: background 0.12s ease; }
table.ledger tbody tr:hover { background: #F7F9FB; }
table.ledger tr:last-child td { border-bottom: none; }

table.ledger .num {
  font-family: var(--font-num);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.ledger th.num { text-align: right; }

/* Kolom kode (No. Invoice dsb) jangan terpotong ke 2 baris */
table.ledger td:first-child .row-name,
table.ledger td:first-child strong { white-space: nowrap; }

/* Kolom tanggal/waktu jangan terpotong 2 baris */
table.ledger td[data-label="Tanggal"],
table.ledger td[data-label="Waktu"],
table.ledger td[data-label="Tgl"],
table.ledger td[data-label^="Tanggal "] { white-space: nowrap; }

/* ---------- Aksi baris: tombol utama + menu "⋯" ---------- */
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.row-menu { position: relative; display: inline-flex; }
.row-menu__btn { padding: 6px 8px; color: var(--stone-dark); }
.row-menu.open .row-menu__btn { border-color: var(--copper); color: var(--copper-dark); background: var(--primary-soft); }
.row-menu__list {
  display: none;
  position: fixed;
  z-index: 60;
  min-width: 200px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(21,33,46,0.16), 0 2px 6px rgba(21,33,46,0.06);
  text-align: left;
}
.row-menu.open .row-menu__list { display: block; animation: menu-in 0.12s ease; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.row-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 11px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.row-menu__item:hover, .row-menu__item:focus-visible { background: var(--info-soft); color: var(--ink); outline: none; }
.row-menu__item.is-danger { color: var(--danger); }
.row-menu__item.is-danger:hover { background: var(--danger-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.tag-paid { background: var(--success-soft); color: var(--success); }
.tag-partial { background: var(--rust-soft); color: var(--rust); }
.tag-unpaid { background: var(--danger-soft); color: var(--danger); }
.tag-scheduled { background: var(--info-soft); color: var(--stone-dark); }
.tag-done { background: var(--success-soft); color: var(--success); }

.row-name { font-weight: 600; }
.row-sub { font-size: 12px; color: var(--stone); margin-top: 1px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 5px;
}

.help-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #E7EBEF;
  color: var(--stone-dark);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: help;
  position: relative;
}

.help-dot .tip {
  display: none;
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-bg);
  color: #EEF2F6;
  font-weight: 400;
  font-size: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  width: 230px;
  line-height: 1.45;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  text-transform: none;
  letter-spacing: 0;
}

.help-dot:hover .tip { display: block; }

.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--stone-line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 40px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 80px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: #9AA4AE; }

.field input:hover:not(:disabled):not(:focus),
.field select:hover:not(:disabled):not(:focus),
.field textarea:hover:not(:disabled):not(:focus) { border-color: #B7C0C9; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: var(--ring);
}

.field input:disabled, .field select:disabled, .field textarea:disabled,
.field input[readonly] {
  background: var(--surface-2);
  color: var(--stone);
}

.field.num input { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }

.field-note { font-size: 12px; color: var(--stone); }

.item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 10px 20px;
  align-items: start;
  border-bottom: 1px solid var(--stone-line);
  min-width: 0;
}

.item-row > div { min-width: 0; }

.item-row input,
.item-row select {
  width: 100%;
  min-width: 0;
}

/* Matikan spinner bawaan browser di angka supaya lebar kolom lebih terkontrol */
.item-row input[type="number"] { -moz-appearance: textfield; }
.item-row input[type="number"]::-webkit-outer-spin-button,
.item-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.item-row-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-dark);
  background: var(--surface-2);
  border-bottom: 1px solid var(--stone-line);
  min-width: 0;
}

.item-row-head > div { min-width: 0; }

/* Varian 6 kolom: dipakai di form Pembelian (ada berat lokasi + gudang + selisih) */
.item-row.cols-6,
.item-row-head.cols-6 {
  grid-template-columns: 1.7fr 0.9fr 0.9fr 0.8fr 0.9fr auto;
}

.item-row-head span.help-dot {
  vertical-align: middle;
  margin-left: 2px;
}

.field-mobile-label {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 3px;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--stone-line-strong);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--stone-line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.form-total {
  font-size: 13px;
  color: var(--stone);
}
.form-total strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 8px;
}

/* ---------- Empty state ---------- */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--stone);
}
.empty p { font-size: 13.5px; margin-top: 6px; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201,128,63,0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31,93,138,0.30), transparent 60%),
    var(--nav-bg);
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 38px 34px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.login-logo {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto 18px;
}

.login-brand {
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card p { font-size: 13.5px; color: var(--stone); margin-bottom: 24px; text-align: center; }

.login-card .field { margin-bottom: 14px; }
.login-card .field input { min-height: 44px; }
.login-card .btn-primary { width: 100%; justify-content: center; margin-top: 8px; padding: 12px; font-size: 14px; }

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

/* Panel "Lainnya" - default tersembunyi total di desktop;
   perilaku buka/tutup dan tata letaknya diatur khusus di
   media query mobile (max-width: 860px) di bawah. */
.more-sheet-overlay { display: none; }

/* ---------- Calendar mini (visit page) ---------- */
.visit-list { display: flex; flex-direction: column; }
.visit-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--stone-line);
  align-items: center;
}
.visit-item:last-child { border-bottom: none; }
.visit-date {
  width: 52px;
  padding: 6px 0 5px;
  text-align: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--copper-dark);
}
.visit-date .d { font-family: var(--font-num); font-size: 19px; font-weight: 700; line-height: 1.1; }
.visit-date .m { font-size: 11px; font-weight: 600; opacity: 0.8; }
.visit-info { flex: 1; min-width: 0; }
.visit-info .t { font-weight: 600; font-size: 13.5px; }
.visit-info .s { font-size: 12.5px; color: var(--stone); margin-top: 2px; }
.visit-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Loading overlay (proses krusial) ---------- */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21,33,46,0.5);
  backdrop-filter: blur(2px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.loading-overlay.open { display: flex; }

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loading-spin 0.7s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
.loading-message {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Konten Panduan (User Guide dalam modal) ---------- */
.guide-content { padding: 6px 22px 14px; }

.guide-section {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stone-line);
}
.guide-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.guide-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-section h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.guide-section p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 8px;
}
.guide-section p:last-child { margin-bottom: 0; }

.guide-section code {
  background: var(--info-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
}
.guide-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--stone-line);
  vertical-align: top;
  line-height: 1.55;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td:first-child { width: 38%; color: var(--stone-dark); }
.guide-table .num { font-family: var(--font-num); text-align: right; }

.guide-table--example {
  background: var(--surface-2);
  border: 1px solid var(--stone-line);
  border-radius: 8px;
  overflow: hidden;
}
.guide-table--example td { padding: 10px 14px; }

.guide-formula {
  background: var(--nav-bg);
  color: #E8EDF2;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  margin: 10px 0;
  overflow-x: auto;
}

.guide-formula-line {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--copper-dark);
  text-align: center !important;
  line-height: 1.8;
  padding: 10px !important;
}

.guide-note {
  font-size: 12.5px;
  color: var(--stone-dark);
  background: var(--primary-soft);
  border-left: 3px solid var(--copper);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}

.guide-list {
  font-size: 13.5px;
  line-height: 1.7;
  padding-left: 18px;
  color: var(--ink-2);
}
.guide-list li { margin-bottom: 6px; }
.guide-list li:last-child { margin-bottom: 0; }

/* ---------- Modal / Pop-up ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21,33,46,0.55);
  backdrop-filter: blur(2px);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.18s ease;
}

.modal.modal-lg { max-width: 780px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--stone-line);
}

.modal__head h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.1px; }
.modal__head p { font-size: 13px; color: var(--stone); margin-top: 3px; max-width: 52ch; }

.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--stone);
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal__close:hover { background: var(--info-soft); color: var(--ink); }

.modal__body { padding: 4px 0; overflow-y: auto; }

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--stone-line);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- Mini chart (SVG line) ---------- */
.chart-wrap { padding: 18px 20px; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--stone); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--copper); display: inline-block; }

/* ---------- Print sheet ---------- */
.print-sheet {
  max-width: 720px;
  margin: 30px auto;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--stone-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.print-actions {
  max-width: 720px;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
@media print {
  .print-actions { display: none; }
  body { background: #fff; }
  .print-sheet { border: none; margin: 0; max-width: 100%; box-shadow: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =================================================
   RESPONSIVE — tablet kecil & mobile
   ================================================= */
@media (max-width: 1100px) and (min-width: 861px) {
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 22px 24px 80px; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-footer .btn { width: 100%; justify-content: center; }
  .form-footer .form-total { text-align: center; margin-bottom: 4px; }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--nav-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .topbar__brand { display: flex; align-items: center; font-weight: 700; font-size: 15px; }
  .topbar__right { display: flex; align-items: center; gap: 6px; }
  .topbar__icon-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--nav-text); border-radius: 8px;
  }
  .topbar__icon-btn svg { width: 19px; height: 19px; }

  .content { padding: 16px 16px 92px; }

  .page-head h1 { font-size: 20px; }

  .summary-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 20px; }
  .summary-cell { padding: 13px 14px; }
  .summary-cell__value { font-size: 18px; }

  .form-grid { grid-template-columns: 1fr; padding: 16px; }

  .item-row, .item-row-head,
  .item-row.cols-6, .item-row-head.cols-6 {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }
  .item-row { padding: 12px 14px; border: 1px solid var(--stone-line); border-radius: var(--radius); margin: 12px 14px 0; }
  .item-row-head { display: none; }
  .field-mobile-label { display: block; }

  table.ledger thead { display: none; }
  table.ledger, table.ledger tbody, table.ledger tr, table.ledger td {
    display: block;
    width: 100%;
  }
  table.ledger tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--stone-line);
  }
  table.ledger tbody tr:hover { background: transparent; }
  table.ledger td {
    border: none;
    padding: 3px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  table.ledger td.num { justify-content: space-between; }
  table.ledger td::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--stone);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
  }
  table.ledger td[data-label=""]::before { display: none; }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 20;
    border-top: 1px solid var(--stone-line);
    box-shadow: 0 -4px 16px rgba(21,33,46,0.06);
  }

  .mobile-nav a, .mobile-nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--stone);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 10px;
    background: none;
    border: none;
    font-family: inherit;
    min-width: 60px;
  }
  .mobile-nav a svg, .mobile-nav button svg { width: 21px; height: 21px; }
  .mobile-nav a.active, .mobile-nav button.active { color: var(--copper); }
  .mobile-nav a.active::before, .mobile-nav button.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30%; right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
  }

  /* ---------- Panel "Lainnya" (bottom sheet) ---------- */
  .more-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21,33,46,0.5);
    z-index: 90;
    align-items: flex-end;
    justify-content: center;
  }
  .more-sheet-overlay.open { display: flex; }

  .more-sheet {
    background: var(--surface);
    color: var(--ink);
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
    animation: sheet-up 0.22s ease;
  }
  @keyframes sheet-up {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }

  .more-sheet__handle {
    width: 40px; height: 4px;
    background: var(--stone-line-strong);
    border-radius: 4px;
    margin: 4px auto 12px;
  }
  .more-sheet__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 14px;
    border-bottom: 1px solid var(--stone-line);
    margin-bottom: 4px;
  }
  .more-sheet__user .sidebar__avatar { background: var(--copper); }
  .more-sheet__user-name { font-weight: 700; font-size: 14px; }
  .more-sheet__user-role { font-size: 12px; color: var(--stone); }

  .more-sheet__scroll { overflow-y: auto; }

  .more-sheet__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--stone);
    margin: 12px 4px 6px;
  }
  .more-sheet__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .more-sheet__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--stone-line);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    min-width: 0;
  }
  .more-sheet__item span { min-width: 0; }
  .more-sheet__item svg { width: 19px; height: 19px; color: var(--copper); flex-shrink: 0; }
  .more-sheet__item.active { background: var(--primary-soft); border-color: #BCD2E4; color: var(--copper-dark); }
  .more-sheet__item:active { background: var(--info-soft); }

  .more-sheet__logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #F0CACA;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    flex-shrink: 0;
  }
  .more-sheet__logout svg { width: 17px; height: 17px; }

  .page-head__actions .btn span { display: none; }
  .page-head__actions .btn { padding: 9px; }

  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; }

  .section__head { padding: 14px 16px; flex-wrap: wrap; }
  .section__head input[type="text"] { width: 100% !important; }
  .section__head > div:not(:first-child) { width: 100%; }

  .visit-item { flex-wrap: wrap; padding: 14px 16px; }
  .visit-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 66px; /* sejajar dengan teks info, bukan ikut lebar kolom tanggal */
    margin-top: 4px;
  }

  .cmdk-overlay { padding-top: 64px; }
  .cmdk__foot { display: none; }

  #toast-box { left: 16px; right: 16px !important; bottom: 84px !important; }
}

@media (max-width: 480px) {
  /* Di HP sangat sempit, 2 kolom masih terlalu sempit untuk kartu
     berisi label+tooltip+angka+tombol (Ambang Transaksi Besar, dst) */
  .summary-strip { grid-template-columns: 1fr; }
}
