/* =========================================================
   Laporan Titip Toko — tema "playful"
   Warna utama diatur lewat variabel di :root supaya gampang diganti.
   ========================================================= */
:root {
  --krem: #FFF8EC;
  --latar: #F3ECDF;
  --navy: #1F2A5C;
  --teks: #3B4470;
  --teks-pudar: #7C84A8;
  --garis: #E6E0D2;

  --biru: #4C7BF0;
  --biru-tua: #3461D6;
  --biru-muda: #E8F0FF;
  --biru-garis: #C8DAFF;
  --biru-pudar: #A9C1F6;

  --ungu: #8B6CF0;
  --kuning: #FFC93C;
  --merah: #E5484D;
  --merah-tua: #C93338;
  --hijau: #2F9E5B;

  --font-judul: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-teks: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  font-family: var(--font-teks);
  background: var(--latar);
  color: var(--teks);
  margin: 0;
  padding: 28px 12px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--biru); text-decoration: none; }
a:hover { text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-judul); color: var(--navy); font-weight: 700; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }

.ikon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---------- Panel bergaya aplikasi (halaman alur input) ---------- */
.container { max-width: 1100px; margin: 0 auto; position: relative; }
.container.narrow {
  max-width: 420px;
  min-height: 680px;
  background: var(--krem);
  border-radius: 32px;
  padding: 30px 24px 150px;
  overflow: hidden;
  box-shadow: 0 1px 0 #fff inset, 0 14px 40px rgba(60, 50, 20, 0.10);
}
.container.narrow > *:not(.hiasan) { position: relative; z-index: 1; }

@media (max-width: 480px) {
  body { padding: 0; background: var(--krem); }
  .container.narrow {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: 26px 20px 150px;
  }
}

/* Hiasan: gumpalan warna & ilustrasi di pojok-pojok */
.hiasan { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 58% 42% 55% 45% / 50% 58% 42% 50%; }
.blob-biru   { background: #DCE8FF; }
.blob-kuning { background: #FFEDB8; }
.blob-hijau  { background: #D7F0DB; }
.blob-ungu   { background: #ECE5FF; }
.blob-pink   { background: #FFE1E8; }

.hiasan .ilustrasi { position: absolute; display: block; }
.kilau { width: 34px; }

/* ---------- Kepala halaman ---------- */
.kepala {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.kepala h1 { font-size: 2rem; }
.kepala-ilustrasi { width: 92px; flex: 0 0 auto; margin: -8px -6px 0 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-aksi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.subtitle { color: var(--teks); margin: 4px 0 6px; font-weight: 600; }
.subtitle-aksen { color: var(--biru); font-family: var(--font-judul); font-weight: 600; font-size: 1.05rem; margin: 2px 0 14px; }
.teks-kecil { color: var(--teks-pudar); font-size: 0.92rem; margin: 0 0 16px; }

/* Chip: tombol kecil bulat (Ganti nama, Ganti jenis, dll) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--biru-muda);
  color: var(--biru-tua);
  font-family: var(--font-judul);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, background .12s;
}
.chip:hover { background: #DCE8FF; }
.chip:active { transform: scale(0.96); }
.chip .ikon { width: 1em; height: 1em; }
.chip-atas { margin-bottom: 18px; }

/* Chip nilai: "Diisi oleh: [Olih]" */
.info-baris { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; color: var(--teks); font-weight: 600; font-size: 0.95rem; }
.chip-nilai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFEDB8;
  color: var(--navy);
  font-family: var(--font-judul);
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.chip-nilai.biru { background: var(--biru-muda); color: var(--biru-tua); }

/* ---------- Kartu pilihan (jenis transaksi & toko) ---------- */
.pilihan-jenis { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.kartu-pilihan {
  --t-bg: var(--biru-muda);
  --t-garis: var(--biru-garis);
  --t-aksen: var(--biru);
  --t-ikon-bg: #fff;
  display: grid;
  grid-template-columns: 66px 1fr 34px;
  align-items: center;
  gap: 14px;
  background: var(--t-bg);
  border: 2px solid var(--t-garis);
  border-radius: 24px;
  padding: 16px 16px 16px 14px;
  color: inherit;
  text-decoration: none;
  transition: transform .14s, box-shadow .14s;
  box-shadow: 0 4px 0 var(--t-garis);
}
.kartu-pilihan:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--t-garis); }
.kartu-pilihan:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--t-garis); }
.kartu-ikon {
  width: 66px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--t-ikon-bg);
  border-radius: 46% 54% 50% 50% / 55% 50% 50% 45%;
}
.kartu-ikon img { width: 50px; height: auto; }
.kartu-teks { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kartu-pilihan-judul { font-family: var(--font-judul); font-weight: 600; font-size: 1.08rem; line-height: 1.2; color: var(--navy); }
.kartu-pilihan-desc { font-size: 0.84rem; color: var(--teks-pudar); line-height: 1.3; }
.kartu-panah {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--t-aksen); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.kartu-panah .ikon { width: 18px; height: 18px; }

.tema-biru   { --t-bg: #E8F0FF; --t-garis: #C8DAFF; --t-aksen: #4C7BF0; }
.tema-ungu   { --t-bg: #F1ECFF; --t-garis: #DCD0FF; --t-aksen: #8B6CF0; }
.tema-kuning { --t-bg: #FFF4D4; --t-garis: #F8DF94; --t-aksen: #F5B82E; }
.tema-pink   { --t-bg: #FFE8EE; --t-garis: #FFC6D3; --t-aksen: #F2849E; }
.tema-hijau  { --t-bg: #E5F6E8; --t-garis: #BDE5C6; --t-aksen: #5BBE7A; }
.tema-abu    { --t-bg: #F1F2F6; --t-garis: #DADDE8; --t-aksen: #8A90AD; }

/* Link bawah dengan garis bergelombang kuning */
.link-bawah { margin-top: 26px; text-align: center; }
.link-bawah a {
  font-family: var(--font-judul);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--biru-tua);
  padding-bottom: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6 Q16 1 30 5 T60 5 T90 5 T118 4' fill='none' stroke='%23FFC93C' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 100% 9px no-repeat;
}

/* ---------- Form ---------- */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-judul);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
input, select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid #E3E2EE;
  border-radius: 16px;
  font-family: var(--font-teks);
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--navy);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #A9AEC6; font-weight: 500; }
input:focus, select:focus { outline: none; border-color: var(--biru); box-shadow: 0 0 0 4px rgba(76, 123, 240, 0.15); }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A5C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
input[type="date"] { padding-right: 10px; }

.input-ikon { position: relative; }
.input-ikon > .ikon-bulat {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--biru-muda); color: var(--biru);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.input-ikon > .ikon-bulat .ikon { width: 18px; height: 18px; }
.input-ikon > select, .input-ikon > input { padding-left: 54px; }

.grid-form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.full { grid-column: 1 / -1; }

/* Tombol utama */
button {
  font-family: var(--font-judul);
  font-weight: 600;
  font-size: 1rem;
  background: var(--biru);
  color: #fff;
  border: none;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 0 var(--biru-tua);
  transition: transform .1s, box-shadow .1s, background .12s;
}
button:hover { background: #5A86F3; }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--biru-tua); }
button:disabled, button:disabled:hover {
  background: var(--biru-pudar);
  box-shadow: 0 4px 0 #94AEEA;
  cursor: not-allowed;
  transform: none;
}
.tombol-besar { width: 100%; min-height: 56px; font-size: 1.08rem; border-radius: 18px; margin-top: 4px; }
.tombol-besar .ikon { width: 20px; height: 20px; }

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--biru-garis);
  background: #fff;
  border-radius: 16px;
  color: var(--biru-tua);
  font-family: var(--font-judul);
  font-weight: 600;
  align-self: end;
}
.button-link:hover { background: var(--biru-muda); }
a.button-link.full { display: flex; width: 100%; margin-bottom: 12px; }
a.button-link.utama {
  background: var(--biru); color: #fff; border-color: var(--biru);
  box-shadow: 0 4px 0 var(--biru-tua);
}
a.button-link.utama:hover { background: #5A86F3; }

.label-mandiri { display: block; font-family: var(--font-judul); font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.hint { font-size: 0.82rem; color: var(--teks-pudar); margin: 0; line-height: 1.45; }

.notice {
  background: #E2F6E7; color: #1F7A43; padding: 12px 16px; border-radius: 16px;
  font-weight: 700; border: 2px solid #BDE5C6;
}
.error, ul.error {
  background: #FFE8EA; color: #A3262B; padding: 14px 18px 14px 34px; border-radius: 16px;
  border: 2px solid #FFC9CE; margin: 14px 0; font-weight: 600; line-height: 1.5;
}
ul.error li { margin: 2px 0; }

/* ---------- Kotak foto di form input ---------- */
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.foto-slot { display: flex; flex-direction: column; gap: 6px; }
.foto-slot-label { font-size: 0.78rem; font-weight: 700; color: var(--teks-pudar); text-align: center; }
.foto-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 2.5px dashed var(--biru-garis);
  border-radius: 18px;
  background: #F6F9FF;
  color: var(--biru);
  font-family: var(--font-judul);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}
.foto-box:hover { background: var(--biru-muda); border-color: var(--biru); }
.foto-box:active { transform: scale(0.97); box-shadow: none; }
.foto-box-placeholder { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.foto-box-placeholder .ikon-bulat {
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 var(--biru-garis);
}
.foto-box-placeholder .ikon { width: 20px; height: 20px; }
.foto-box-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-box.terisi { border-style: solid; border-color: var(--hijau); }
.foto-box.terisi::after {
  content: "";
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--hijau) 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.4' 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: 2px solid #fff;
}

/* ---------- Kamera kustom full-screen ---------- */
.kamera-modal { position: fixed; inset: 0; background: #000; z-index: 200; display: flex; flex-direction: column; }
.kamera-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; padding: 14px; z-index: 2; }
.kamera-tutup {
  background: rgba(255, 255, 255, 0.18); color: #fff; width: 44px; height: 44px; min-height: 0;
  border-radius: 50%; font-size: 1.6rem; line-height: 1; padding: 0; box-shadow: none;
}
.kamera-tutup:hover { background: rgba(255, 255, 255, 0.3); }
#kamera-video { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.kamera-bawah {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.6);
}
.kamera-jepret {
  width: 74px; height: 74px; min-height: 0; border-radius: 50%; padding: 0;
  background: #fff; border: 5px solid var(--kuning);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); flex: 0 0 auto;
}
.kamera-jepret:hover { background: #fff; }
.kamera-jepret:active { transform: scale(0.92); background: #FFF4D4; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.kamera-galeri {
  width: 50px; height: 50px; min-height: 0; padding: 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff; box-shadow: none; flex: 0 0 auto;
}
.kamera-galeri:hover { background: rgba(255, 255, 255, 0.28); }
.kamera-galeri .ikon { width: 24px; height: 24px; }
.kamera-spacer { width: 50px; flex: 0 0 auto; }

/* ---------- Halaman berhasil ---------- */
.berhasil-ilustrasi { display: block; width: 170px; margin: 6px auto 4px; }
.berhasil-judul { text-align: center; font-size: 2rem; margin: 6px 0 12px; }
.berhasil .notice { text-align: center; margin-bottom: 22px; }

/* =========================================================
   Halaman laporan (lebar) — playful tapi tetap rapi
   ========================================================= */
body.halaman-laporan { background: var(--krem); padding: 26px 14px 40px; }
body.halaman-laporan .hiasan-laporan { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
body.halaman-laporan .container { z-index: 1; }

.judul-laporan { display: flex; align-items: center; gap: 12px; }
.judul-laporan img { width: 52px; flex: 0 0 auto; }
.judul-laporan h1 { margin: 0; }

.btn-hapus-laporan {
  background: #FFE8EA;
  color: var(--merah-tua);
  box-shadow: none;
  font-size: 0.88rem;
  min-height: 0;
  padding: 7px 14px;
  border-radius: 999px;
}
.btn-hapus-laporan:hover { background: #FFD6DA; }
.btn-hapus-laporan:active { transform: scale(0.96); box-shadow: none; }
.btn-hapus-laporan .ikon { width: 1em; height: 1em; }

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
  background: #fff;
  padding: 18px;
  border-radius: 24px;
  border: 2px solid var(--garis);
  box-shadow: 0 4px 0 var(--garis);
  margin-top: 18px;
}
.filter-form > * { min-width: 0; }
.filter-form label { font-size: 0.85rem; gap: 5px; min-width: 0; }
.filter-form input, .filter-form select {
  width: 100%; min-width: 0; max-width: 100%;
  min-height: 46px; height: 46px; border-radius: 14px; font-size: 0.95rem;
}
/* Input tanggal di Android/iOS punya lebar minimum bawaan yang bikin kolom meluber */
.filter-form input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; padding: 0 10px; line-height: 42px; text-align: left;
}
.filter-form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.filter-form button, .filter-form .button-link { min-height: 46px; }

.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.stat {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--garis); border-radius: 999px;
  padding: 6px 16px 6px 8px; font-weight: 700; color: var(--teks); font-size: 0.92rem;
}
.stat strong { font-family: var(--font-judul); color: var(--navy); font-size: 1.05rem; }
.stat-ikon {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.stat-ikon .ikon { width: 16px; height: 16px; }
.stat-ikon.biru { background: var(--biru-muda); color: var(--biru); }
.stat-ikon.kuning { background: #FFEDB8; color: #B8860B; }

.kartu-list { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.kartu {
  background: #fff;
  border-radius: 24px;
  border: 2px solid var(--garis);
  box-shadow: 0 4px 0 var(--garis);
  padding: 18px 22px 20px;
}
.kartu-atas {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.kartu-waktu { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--teks-pudar); }
.kartu-waktu .ikon { width: 15px; height: 15px; }
.badge-jenis {
  font-family: var(--font-judul);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-keluar { background: #E8F0FF; color: var(--biru-tua); }
.badge-masuk { background: #F1ECFF; color: #6A4BD6; }

.kartu-fields { display: flex; flex-wrap: wrap; gap: 16px 30px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.field-label { font-family: var(--font-judul); font-weight: 600; font-size: 0.86rem; color: var(--teks-pudar); }
.field-value { font-size: 0.98rem; font-weight: 700; color: var(--navy); word-break: break-word; }

.chip-toko {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--t-bg); border: 2px solid var(--t-garis);
  color: var(--navy); font-family: var(--font-judul); font-weight: 600; font-size: 0.88rem;
  padding: 2px 10px 2px 4px; border-radius: 999px; width: fit-content;
}
.chip-toko img { width: 24px; height: auto; }
.chip-toko.tanpa-ikon { padding-left: 10px; }

.kartu-galeri { margin-top: 16px; padding-top: 14px; border-top: 2px dashed #F0EADF; }
.kartu-media-label { display: block; font-family: var(--font-judul); font-weight: 600; font-size: 0.8rem; color: var(--teks-pudar); margin-bottom: 8px; }
.kartu-galeri-list { display: flex; flex-wrap: wrap; gap: 10px; }
.kartu-foto-tombol {
  flex: 0 0 auto; width: 110px; height: 110px; min-height: 0; padding: 0;
  border: none; border-radius: 18px; overflow: hidden; background: #EEE;
  cursor: zoom-in; line-height: 0; box-shadow: 0 3px 0 var(--garis);
}
.kartu-foto-tombol:hover { background: #EEE; }
.kartu-foto-tombol:active { transform: scale(0.97); box-shadow: none; }
.kartu-foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.kartu-foto-kosong {
  flex: 0 0 auto; width: 110px; height: 110px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teks-pudar); background: #F4F1EA; font-size: 0.78rem; font-weight: 700; text-align: center; padding: 8px;
}
.kosong { text-align: center; color: var(--teks-pudar); margin-top: 30px; font-weight: 700; }
.kosong img { display: block; width: 130px; margin: 0 auto 10px; }

@media (max-width: 640px) {
  body.halaman-laporan { padding: 18px 12px 32px; }
  .judul-laporan h1 { font-size: 1.4rem; }
  .judul-laporan img { width: 42px; }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 14px; }
  .filter-form input, .filter-form select { padding-left: 12px; font-size: 0.9rem; }
  .filter-form select { padding-right: 34px; background-position: right 10px center; }
  .kartu { padding: 16px; }
  .kartu-fields { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .field {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 12px; min-width: 0; padding: 8px 0; border-bottom: 2px dotted #F0EADF;
  }
  .field:last-child { border-bottom: none; }
  .field-label { flex: 0 0 auto; }
  .field-value { text-align: right; }
  .kartu-galeri-list { justify-content: center; }
  .kartu-foto-tombol, .kartu-foto-kosong { width: 96px; height: 96px; }
}

/* ---------- Modal lihat foto penuh ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(31, 42, 92, 0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 100;
}
.modal img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); background: #fff; }
.modal-tutup {
  position: fixed; top: 14px; right: 18px;
  background: rgba(255, 255, 255, 0.2); color: #fff;
  width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; box-shadow: none; z-index: 101;
}
.modal-tutup:hover { background: rgba(255, 255, 255, 0.35); }

/* ---------- Modal hapus laporan ---------- */
.modal-kotak {
  position: relative; background: var(--krem); border-radius: 28px;
  padding: 26px 22px 22px; max-width: 370px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}
.modal-ikon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #FFE8EA; color: var(--merah);
}
.modal-ikon .ikon { width: 28px; height: 28px; }
.modal-ikon.hijau { background: #E2F6E7; color: var(--hijau); }
.modal-kotak h2 { font-size: 1.3rem; margin: 0 0 6px; }
.modal-kotak .hint { margin: 0 0 14px; font-size: 0.86rem; }
.modal-kotak .tutup-kartu {
  position: absolute; top: 12px; right: 12px;
  background: #fff; color: var(--teks-pudar); border: 2px solid var(--garis);
  width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; box-shadow: none;
}
.modal-kotak .tutup-kartu:hover { color: var(--navy); background: #fff; }
.modal-kotak input, .modal-kotak select { margin-bottom: 10px; }
#hapus-pin, #hs-pin { text-align: center; letter-spacing: 0.4em; font-size: 1.3rem; font-family: var(--font-judul); }
.hapus-periode-row { display: flex; gap: 10px; }
.hapus-periode-row select { flex: 2; }
.hapus-periode-row input[type="number"] { flex: 1; padding: 0 10px; text-align: center; }
.button-full { width: 100%; margin-top: 6px; min-height: 50px; }
.button-full + .button-full { margin-top: 12px; }
.button-danger { background: var(--merah); box-shadow: 0 4px 0 var(--merah-tua); }
.button-danger:hover { background: #EE5A5F; }
.button-danger:active { box-shadow: 0 1px 0 var(--merah-tua); }
.error-kecil { color: var(--merah-tua); font-size: 0.85rem; font-weight: 700; margin: -2px 0 10px; }
#hapus-info-jumlah { background: #fff; border-radius: 14px; padding: 10px 12px; border: 2px solid var(--garis); color: var(--navy); font-weight: 700; }
#hapus-info-jumlah:empty { display: none; }

/* Hormati pengaturan "kurangi animasi" di HP */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Hapus satu laporan ---------- */
.kartu-atas-kanan { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-hapus-satu {
  width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%;
  background: #FFF0F1; color: var(--merah); border: 2px solid #FFD6DA;
  box-shadow: none; flex: 0 0 auto;
}
.btn-hapus-satu:hover { background: #FFE0E3; }
.btn-hapus-satu:active { transform: scale(0.92); box-shadow: none; }
.btn-hapus-satu .ikon { width: 17px; height: 17px; }

.ringkas-laporan {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  background: #fff; border: 2px solid var(--garis); border-radius: 16px;
  padding: 12px 14px; margin: 0 0 14px; font-size: 0.9rem;
}
.ringkas-laporan dt { font-family: var(--font-judul); font-weight: 600; color: var(--teks-pudar); }
.ringkas-laporan dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; word-break: break-word; }

.tombol-netral { background: #fff; color: var(--teks); border: 2px solid var(--garis); box-shadow: 0 4px 0 var(--garis); }
.tombol-netral:hover { background: #FBF8F2; }
.tombol-netral:active { box-shadow: 0 1px 0 var(--garis); }

/* =========================================================
   Barang Keluar Gudang & Crosscek Barang
   ========================================================= */
textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 16px;
  border: 2px solid #E3E2EE;
  border-radius: 16px;
  font-family: var(--font-teks);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  resize: vertical;
}
textarea::placeholder { color: #A9AEC6; font-weight: 500; }
textarea:focus { outline: none; border-color: var(--biru); box-shadow: 0 0 0 4px rgba(76, 123, 240, 0.15); }
.label-opsional { font-family: var(--font-teks); font-weight: 600; color: var(--teks-pudar); font-size: 0.85rem; }
.hint-tengah { text-align: center; margin-top: 10px; }
.tengah { text-align: center; margin: 4px 0 8px; }

.notice-aksi { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.notice-aksi .ikon { vertical-align: -3px; }
.notice-aksi .chip { align-self: flex-start; background: #fff; color: #1F7A43; }

.lencana {
  display: inline-block; background: #FFE8EA; color: var(--merah-tua);
  font-weight: 800; font-size: 0.78rem; padding: 2px 9px; border-radius: 999px;
}

/* Navigasi tanggal crosscek: [<] Sabtu, 17 Oktober 2026 [>] */
.navigasi-tanggal {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px;
  margin: 14px 0 8px;
}
.tombol-bulat {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--garis); color: var(--navy);
  box-shadow: 0 3px 0 var(--garis);
}
.tombol-bulat:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--garis); }
.tanggal-tengah {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 46px; background: #fff; border: 2px solid var(--garis); border-radius: 16px;
  padding: 0 10px; cursor: pointer; text-align: center;
}
.tanggal-teks { font-family: var(--font-judul); font-weight: 600; color: var(--navy); font-size: 0.98rem; }
/* input tanggal asli tak terlihat tapi menutupi kotak, jadi ketuk = buka kalender */
.tanggal-tengah input[type="date"] {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  opacity: 0; cursor: pointer; border: none; padding: 0;
}
.tanggal-tengah input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
}

.progres-cek {
  background: #fff; border: 2px solid var(--garis); border-radius: 18px;
  padding: 12px 14px; margin: 12px 0 6px;
}
.progres-teks { font-weight: 700; color: var(--teks); font-size: 0.92rem; margin-bottom: 8px; }
.progres-teks strong { font-family: var(--font-judul); color: var(--navy); }
.progres-bar { height: 10px; border-radius: 999px; background: #EEF0F5; overflow: hidden; }
.progres-bar span { display: block; height: 100%; background: #5BBE7A; border-radius: 999px; transition: width .25s; }

.grup-cek { margin-top: 18px; }
.grup-cek-kepala { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.grup-cek-hitung { font-family: var(--font-judul); font-weight: 600; color: var(--teks-pudar); font-size: 0.92rem; }
.daftar-cek { display: flex; flex-direction: column; gap: 10px; }

.cek-item {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%;
  min-height: 60px; padding: 10px 14px; text-align: left;
  background: #fff; color: var(--navy);
  border: 2px solid var(--garis); border-radius: 18px;
  box-shadow: 0 3px 0 var(--garis);
  -webkit-tap-highlight-color: transparent;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.cek-item:hover { background: #FFFDF8; }
.cek-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--garis); }
.cek-tanda {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  border: 2.5px solid #CDD2E1; background: #fff; color: transparent;
  display: flex; align-items: center; justify-content: center;
}
.cek-tanda .ikon { width: 18px; height: 18px; }
.cek-teks { display: flex; flex-direction: column; min-width: 0; }
.cek-nama { font-family: var(--font-judul); font-weight: 600; font-size: 1.05rem; line-height: 1.25; word-break: break-word; }
.cek-so { font-family: var(--font-teks); font-weight: 600; font-size: 0.78rem; color: var(--teks-pudar); }

.cek-item.dicek { background: #DDF4E3; border-color: #5BBE7A; box-shadow: 0 3px 0 #9ED8B0; color: #155E35; }
.cek-item.dicek:hover { background: #D3F0DB; }
.cek-item.dicek:active { box-shadow: 0 1px 0 #9ED8B0; }
.cek-item.dicek .cek-tanda { background: #2F9E5B; border-color: #2F9E5B; color: #fff; }
.cek-item.dicek .cek-so { color: #3C8A5A; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 300; max-width: calc(100% - 32px);
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 12px 18px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Pilih customer (titip ke toko lain) ---------- */
.cari-customer { margin: 4px 0 12px; }
.cari-customer input { min-height: 48px; }
.daftar-customer { display: flex; flex-direction: column; gap: 10px; }
.kartu-customer {
  display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 12px;
  background: #fff; color: var(--navy);
  border: 2px solid var(--garis); border-radius: 18px;
  box-shadow: 0 3px 0 var(--garis);
  padding: 12px 14px;
  transition: transform .1s, box-shadow .1s, border-color .12s;
}
.kartu-customer:hover { border-color: var(--biru-garis); }
.kartu-customer:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--garis); }
.kartu-customer .kartu-panah { --t-aksen: var(--biru); }
.kartu-customer-teks { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.kartu-asal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #FFF4D4; border: 2px solid #F8DF94; border-radius: 18px;
  padding: 10px 14px; margin: 10px 0 2px;
}
.kartu-asal > div { display: flex; flex-direction: column; min-width: 0; }
.kartu-asal-label { font-size: 0.75rem; font-weight: 800; color: #9A7414; text-transform: uppercase; letter-spacing: .03em; }
.kartu-asal .chip { background: #fff; }

/* ---------- Laporan gabungan: kartu perjalanan barang ---------- */
.perjalanan-judul { display: flex; flex-direction: column; min-width: 0; }
.perjalanan-judul .cek-nama { font-size: 1.15rem; color: var(--navy); }

.badge-status {
  font-family: var(--font-judul); font-weight: 600; font-size: 0.78rem;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.badge-status.status-belum-cek   { background: #FFE8EA; color: var(--merah-tua); }
.badge-status.status-dicek       { background: #FFF1C9; color: #8A6410; }
.badge-status.status-sudah-titip { background: #DDF4E3; color: #1F7A43; }
.titik-status { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.titik-status.status-belum-cek   { background: var(--merah); }
.titik-status.status-dicek       { background: var(--kuning); }
.titik-status.status-sudah-titip { background: #3DB46D; }
.stat-status { padding-left: 10px; }

.tahapan { list-style: none; margin: 4px 0 0; padding: 0; }
.tahap { position: relative; padding: 0 0 18px 30px; }
.tahap:last-child { padding-bottom: 0; }
.tahap::before {                       /* bulatan penanda tahap */
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  border: 3px solid #CDD2E1; background: #fff;
}
.tahap::after {                        /* garis penghubung antar tahap */
  content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px;
  width: 2px; background: #E6E0D2;
}
.tahap:last-child::after { display: none; }
.tahap.selesai::before { border-color: #3DB46D; background: #3DB46D; box-shadow: inset 0 0 0 3px #fff; }
.tahap.selesai::after { background: #BDE5C6; }
.tahap-kepala { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tahap-nama { font-family: var(--font-judul); font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.tahap.menunggu .tahap-nama { color: var(--teks-pudar); }
.tahap-waktu { font-size: 0.8rem; font-weight: 700; color: var(--teks-pudar); }
.tahap.menunggu .tahap-kepala { margin-bottom: 0; }
.tahap .kartu-fields { gap: 12px 28px; }
.tahap .kartu-galeri { margin-top: 12px; padding-top: 10px; }

.catatan {
  margin-top: 10px; background: #FFF8E1; border: 2px dashed #F3D98A; border-radius: 14px;
  padding: 8px 12px; color: var(--navy); font-weight: 600; font-size: 0.92rem; word-break: break-word;
}
.catatan-label { display: block; font-family: var(--font-judul); font-size: 0.78rem; color: #9A7414; margin-bottom: 2px; }

@media (max-width: 640px) {
  .tahap { padding-left: 26px; }
  .tahap .kartu-fields { gap: 0; }
}

/* Info tujuan pengiriman & catatan gudang di form input titip */
.asal-info { display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: #7A5C10; word-break: break-word; }
.asal-info strong { color: var(--navy); }
.chip-ekspedisi {
  display: inline-block; background: var(--biru); color: #fff;
  font-family: var(--font-judul); font-weight: 600; font-size: 0.85rem;
  padding: 1px 10px; border-radius: 999px; margin-left: 2px;
}

/* Tombol "Lewati" pilih customer (masa uji coba) */
.lewati-box { margin-top: 18px; text-align: center; }
.lewati-box .hint { margin-bottom: 8px; }
.lewati-box .button-link { border-style: dashed; }
.kartu-lewati { background: #F1F2F6; border-color: #DADDE8; }
.kartu-lewati .kartu-asal-label { color: var(--teks-pudar); }
.kartu-lewati .asal-info { color: var(--teks); }

/* ---------- PIN menu gudang ---------- */
.pin-kepala { text-align: center; margin: 6px 0 4px; }
.pin-gembok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: #FFF1C9; color: #B8860B; margin-bottom: 8px;
  box-shadow: 0 4px 0 #F8DF94;
}
.pin-gembok .ikon { width: 30px; height: 30px; }
.input-pin { text-align: center; letter-spacing: 0.45em; font-size: 1.4rem; font-family: var(--font-judul); }
.ikon-pin { display: inline-flex; vertical-align: -2px; color: var(--teks-pudar); margin-left: 2px; }
.ikon-pin .ikon { width: 15px; height: 15px; }
.chip-kunci { background: #FFF1C9; color: #8A6410; }
.chip-kunci:hover { background: #FFE8A8; }

/* Ekspedisi di form titip & laporan */
.hint-eksp { margin-top: -8px; }
.eksp-diubah {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: #FFF1C9; color: #8A6410; font-size: 0.75rem; font-weight: 700; vertical-align: 1px;
}

/* Ekspedisi "Tanpa ekspedisi (titip toko)" di laporan */
.badge-tanpa-eksp {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #DDF4E3; color: #1F7A43; border: 2px solid #BDE5C6;
  font-family: var(--font-judul); font-weight: 600; font-size: 0.85rem;
}

/* ---------- Edit laporan ---------- */
.btn-edit {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--biru-muda); color: var(--biru-tua); border: 2px solid var(--biru-garis);
  font-family: var(--font-judul); font-weight: 600; font-size: 0.78rem; vertical-align: middle;
}
.btn-edit:hover { background: #DCE8FF; }
.btn-edit .ikon { width: 16px; height: 16px; }
.btn-edit.btn-edit-teks { width: auto; height: auto; padding: 2px 10px 2px 7px; border-radius: 999px; margin-left: 4px; }
.btn-edit.btn-edit-teks .ikon { width: 13px; height: 13px; }
.tanda-diedit {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: #F1ECFF; color: #6A4BD6; font-size: 0.72rem; font-weight: 700;
}
.kartu.baru-diedit { border-color: var(--biru); box-shadow: 0 4px 0 var(--biru-garis); }
.notice-edit { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.kotak-pin-edit { background: #fff; border: 2px solid var(--garis); border-radius: 18px; padding: 12px 14px; }
.kotak-pin-edit .hint { margin-top: 6px; }
.centang-baris { flex-direction: row; align-items: center; gap: 10px; font-size: 0.9rem; margin-top: 8px; }
.centang-baris input { width: 22px; min-height: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- Qty beda dari gudang ---------- */
.qty-beda {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: #FFE8EA; color: var(--merah-tua); font-size: 0.75rem; font-weight: 700; vertical-align: 1px;
}
.badge-status.status-qty-beda { background: #FFE8EA; color: var(--merah-tua); border: 2px solid #FFC9CE; }
.titik-status.status-qty-beda { background: var(--merah); }
.hint-qty { color: var(--merah-tua); font-weight: 700; margin-top: -8px; }
a.stat { color: var(--teks); }
.stat-peringatan { border-color: #FFC9CE; background: #FFF6F7; }

/* ---------- No. SO dobel ---------- */
.tanda-so-dobel {
  display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px;
  background: #FFF1C9; color: #8A6410; font-size: 0.72rem; font-weight: 800;
}
.titik-status.status-so-dobel { background: var(--kuning); }
.peringatan-so {
  background: #FFF4D4; border: 2px solid #F8DF94; border-radius: 16px;
  padding: 10px 14px; color: #7A5C10; font-size: 0.88rem; font-weight: 600;
}
.peringatan-so ul { margin: 6px 0 0; padding-left: 18px; }
.peringatan-so li { margin: 2px 0; word-break: break-word; }

/* ---------- Kirim Langsung dari Gudang ---------- */
.chip-langsung {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  background: #E5F6E8; border: 2px solid #BDE5C6; color: #1F7A43;
  font-family: var(--font-judul); font-weight: 600; font-size: 0.88rem;
  padding: 2px 12px; border-radius: 999px;
}
.badge-status.status-sudah-kirim { background: #DDEBFF; color: var(--biru-tua); }
.titik-status.status-sudah-kirim { background: var(--biru); }
.kartu-customer-diam { grid-template-columns: 1fr; box-shadow: none; background: #FBF8F2; }
.kartu-customer-diam:active { transform: none; }
.teks-pudar { color: var(--teks-pudar); font-weight: 600; }
.grup-cek h2 { font-size: 1.05rem; }
.cek-item.terkunci { cursor: not-allowed; }
.cek-item.terkunci:active { transform: none; }

/* ---------- Baris No. SO yang bisa ditambah ---------- */
.baris-so { margin-bottom: 10px; }
.baris-so-isi { display: grid; grid-template-columns: 1fr 98px 38px; gap: 8px; align-items: end; }
.baris-so-isi label { font-size: 0.85rem; gap: 5px; min-width: 0; }
.baris-so-isi input { min-height: 48px; }
.hapus-baris-so {
  width: 38px; height: 48px; min-height: 0; padding: 0; border-radius: 14px;
  background: #FFF0F1; color: var(--merah); border: 2px solid #FFD6DA;
  box-shadow: none; font-size: 1.3rem; line-height: 1;
}
.hapus-baris-so:hover { background: #FFE0E3; }
.hapus-baris-so:active { transform: scale(0.94); box-shadow: none; }
.baris-so .kotak-so-dobel { margin-top: 8px; }
.tombol-tambah {
  width: 100%; background: var(--biru-muda); color: var(--biru-tua);
  border: 2px dashed var(--biru-garis); box-shadow: none; min-height: 48px;
}
.tombol-tambah:hover { background: #DCE8FF; }
.tombol-tambah:active { transform: scale(0.99); box-shadow: none; }
.tombol-tambah:disabled, .tombol-tambah:disabled:hover { background: #F1F2F6; color: var(--teks-pudar); box-shadow: none; }
.hint-total { margin-top: 8px; font-weight: 700; color: var(--navy); text-align: center; }
.hint-total:empty { display: none; }

/* ---------- Crosscek: SO milik satu customer dikelompokkan ---------- */
.cek-grup {
  border: 2px dashed var(--garis); border-radius: 20px;
  padding: 10px 10px 12px; background: #FFFCF5;
}
.cek-grup + .cek-grup { margin-top: 2px; }
.cek-grup-kepala {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding: 2px 4px 10px;
}
.cek-grup-nama { font-family: var(--font-judul); font-weight: 600; font-size: 1.05rem; color: var(--navy); word-break: break-word; }
.cek-grup-kanan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cek-grup-hitung { font-family: var(--font-judul); font-weight: 600; font-size: 0.82rem; color: var(--teks-pudar); }
.btn-centang-semua { font-size: 0.82rem; padding: 5px 12px; }
.cek-grup .cek-item + .cek-item { margin-top: 8px; }
.cek-item-anak .cek-nama { font-size: 0.98rem; }

/* ---------- Daftar pilih No. SO (serah ekspedisi / titip toko) ---------- */
.daftar-pilih-so { display: flex; flex-direction: column; gap: 8px; }
.pilih-so-baris {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  background: #fff; border: 2px solid var(--garis); border-radius: 16px;
  padding: 10px 14px; cursor: pointer; font-weight: 600;
}
.pilih-so-baris.dipilih { border-color: #5BBE7A; background: #F3FBF5; }
.pilih-so-baris input[type="checkbox"] {
  width: 24px; height: 24px; min-height: 24px; flex: 0 0 auto; accent-color: var(--hijau); margin: 0;
}
.pilih-so-teks { display: flex; flex-direction: column; min-width: 0; }
.lencana-so {
  display: inline-block; background: var(--biru-muda); color: var(--biru-tua);
  font-family: var(--font-judul); font-size: 0.72rem; font-weight: 700;
  padding: 1px 9px; border-radius: 999px; vertical-align: 2px;
}

/* ---------- Rincian beberapa No. SO di satu kartu laporan ---------- */
.rincian-so {
  margin-top: 12px; background: #FBFAF6; border: 2px solid var(--garis);
  border-radius: 16px; padding: 10px 12px;
}
.rincian-so-label {
  display: block; font-family: var(--font-judul); font-weight: 600;
  font-size: 0.78rem; color: var(--teks-pudar); margin-bottom: 6px;
}
.rincian-so-baris {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 6px 0; border-bottom: 2px dotted #EDE7DB; flex-wrap: wrap;
}
.rincian-so-baris:last-of-type { border-bottom: none; }
.rincian-so-nomor { font-family: var(--font-judul); font-weight: 600; color: var(--navy); word-break: break-word; }
.rincian-so-kanan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rincian-so-jumlah { font-weight: 700; color: var(--teks); font-size: 0.92rem; }
.rincian-so-belum {
  background: #FFF1C9; color: #8A6410; font-size: 0.72rem; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
}
.rincian-so-total {
  margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--garis);
  font-family: var(--font-judul); font-weight: 600; color: var(--navy); text-align: right;
}
.perjalanan-judul .lencana-so { vertical-align: 3px; }

/* ---------- Barang Keep ---------- */
.chip-keep {
  display: inline-flex; align-items: center; width: fit-content;
  background: #F1F2F6; border: 2px solid #DADDE8; color: var(--teks);
  font-family: var(--font-judul); font-weight: 600; font-size: 0.88rem;
  padding: 2px 12px; border-radius: 999px;
}
.badge-status.status-keep { background: #F1ECFF; color: #6A4BD6; }
.titik-status.status-keep { background: var(--ungu); }
.lencana-alasan {
  display: inline-block; background: #F1ECFF; color: #6A4BD6;
  font-size: 0.75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px;
}
.keep-umur { font-weight: 800; color: var(--teks); }
.keep-umur-lama { font-weight: 800; color: var(--merah-tua); }
.kartu-keep.keep-lama { border-color: #FFC9CE; }
.filter-keep { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kotak-keep-tambah { border: 2px dashed var(--garis); border-radius: 20px; padding: 12px; background: #FFFCF5; }
.kotak-keep-tambah .cari-customer { margin: 12px 0 10px; }
.tombol-tambah-aktif { background: #DDF4E3; color: #1F7A43; border-color: #9ED8B0; }
.tombol-tambah-aktif:hover { background: #D3F0DB; }
.aksi-kirim { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-judul); font-weight: 600; color: var(--biru-tua); font-size: 0.86rem; }
.aksi-kirim .ikon { width: 14px; height: 14px; }
#daftar-keep { max-height: 340px; overflow-y: auto; }

/* Pop up pilih barang keep */
.modal-kotak-lebar { max-width: 420px; }
.daftar-keep-modal { max-height: 46vh; overflow-y: auto; padding: 2px; margin-bottom: 10px; }
.modal-keep h2 { margin-bottom: 4px; }
.modal-keep .cari-customer { margin: 10px 0; }
.modal-keep .hint-total { text-align: center; margin: 4px 0 10px; }
.teks-merah { color: var(--merah-tua); }

/* Penanda kiriman yang berisi barang keep */
.lencana-keep {
  display: inline-block; background: #F1ECFF; color: #6A4BD6;
  font-family: var(--font-judul); font-size: 0.72rem; font-weight: 700;
  padding: 1px 9px; border-radius: 999px; vertical-align: 3px;
}
.rincian-jumlah {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: #F1ECFF; color: #6A4BD6; font-size: 0.75rem; font-weight: 700; vertical-align: 1px;
}
@media (min-width: 641px) { .full-field { flex-basis: 100%; } }
