/* Palet warna diambil langsung dari sampling piksel desain yang diunggah
   (lihat juga mobile_pegawai/lib/theme/app_colors.dart - sumber yang sama). */
:root {
  --primary: #005099;
  --accent-yellow: #ffcc00;
  --accent-blue: #0085ff;
  --danger: #f41f52;
  --danger-alt: #f04438;
  --success: #30cb9d;
  --field-bg: #f6f6f6;
  --heading-text: #344054;
  --name-text: #1d2939;
  --muted-text: #667085;
  --label-text: #98a2b3;
  --value-text: #48515f;
  --nav-bg: #1d2939;
  --nav-active: #93a6ff;
  --nav-inactive: #8a94a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--name-text);
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  /* height (bukan min-height): tanpa tinggi definit di sini, rantai
     flex:1 + overflow-y:auto di .tab-content tidak pernah benar-benar
     clip - kontennya cuma ikut tumbuh, jadi tabbar floating (position:
     absolute ke #app) ikut terdorong keluar layar saat konten panjang. */
  height: 100vh;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ---------- Splash ---------- */
#screen-splash {
  background: var(--primary);
  align-items: center;
  justify-content: center;
}

/* ---------- Tidak bisa terhubung ke server ---------- */
#screen-offline {
  background: var(--primary);
  padding: 60px 28px max(28px, env(safe-area-inset-bottom));
}

.offline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.offline-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.offline-icon svg {
  width: 44px;
  height: 44px;
}

.offline-content h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.offline-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.5;
  max-width: 300px;
}

.btn-accent {
  width: 100%;
  height: 52px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--name-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.splash-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.splash-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.splash-text .muted {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.splash-text .strong {
  display: block;
  font-weight: 700;
}

.splash-content img {
  height: 100px;
}

/* ---------- Login ---------- */
#screen-login {
  padding: 0 24px;
}

.login-back {
  height: 48px;
  display: flex;
  align-items: center;
}

.login-back button {
  background: none;
  border: none;
  font-size: 22px;
  padding: 8px;
  margin-left: -8px;
  cursor: pointer;
  color: var(--heading-text);
  visibility: hidden;
}

.login-back.visible button {
  visibility: visible;
}

#screen-login h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-text);
  margin: 8px 0 32px;
}

.field-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.field-wrap input {
  width: 100%;
  border: none;
  background: var(--field-bg);
  border-radius: 16px;
  padding: 16px;
  font-size: 15px;
  color: var(--name-text);
}

.field-wrap input:focus {
  outline: 2px solid var(--primary);
}

.field-wrap .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #98a2b3;
  font-size: 18px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.remember-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.btn-primary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.6;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 8px;
  min-height: 18px;
}

.login-terms {
  margin-top: 48px;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
  color: #98a2b3;
}

.login-terms strong {
  color: #333;
  font-weight: 600;
}

/* ---------- Shell: tab content + bottom nav ---------- */
#screen-home {
  padding: 0;
}

.tab-content {
  flex: 1;
  min-height: 0; /* tanpa ini, overflow-y:auto tidak efektif - flex item default
                    min-height:auto bikin kontainer ikut tumbuh sesuai konten,
                    bukan discroll di dalam, jadi tabbar floating ikut terdorong
                    keluar layar */
  overflow-y: auto;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

/* Floating, ala tabbar Instagram: lepas dari tepi layar, melayang di atas
   konten (position: absolute terhadap #app), warna tetap --nav-bg. */
.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--nav-bg);
  display: flex;
  padding: 12px 0;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--nav-inactive);
  cursor: pointer;
  padding: 4px 0;
}

.bottom-nav button svg {
  width: 24px;
  height: 24px;
  stroke: var(--nav-inactive);
  fill: none;
}

.bottom-nav button .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.bottom-nav button span.label {
  font-size: 12px;
}

.bottom-nav button.active {
  color: var(--nav-active);
}

.bottom-nav button.active svg {
  stroke: var(--nav-active);
}

.bottom-nav button.active .dot {
  background: var(--nav-active);
}

/* ---------- Beranda ---------- */
.beranda-header {
  background: var(--primary);
  padding: 20px 20px 72px;
  display: flex;
  align-items: flex-start;
  color: #fff;
}

.beranda-header .title {
  flex: 1;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.beranda-header .title .muted {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.beranda-header .subtitle {
  margin-top: 8px;
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 14px;
}

.beranda-header .bus-icon {
  font-size: 48px;
  line-height: 1;
}

.beranda-body {
  padding: 0 20px 24px;
  margin-top: -56px;
}

.kartu-jadwal {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kartu-jadwal h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.info-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  flex-shrink: 0;
}

.divider {
  height: 1px;
  background: var(--field-bg);
  margin: 20px 0;
}

.btn-pesan {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-pesan:disabled {
  opacity: 0.5;
}

.seksi-informasi {
  margin-top: 28px;
}

.seksi-informasi h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.info-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.info-placeholder {
  width: 96px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--field-bg);
  border: 1px solid rgba(0, 80, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
  font-size: 28px;
}

/* ---------- Generic page header (Riwayat / Jadwal) ---------- */
.page-header {
  padding: 20px 20px 8px;
  font-size: 22px;
  font-weight: 700;
}

.list-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--field-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-item .title {
  font-weight: 600;
  font-size: 15px;
}

.list-item .subtitle {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.blue {
  background: #e3edf8;
  color: var(--primary);
}

.badge.green {
  background: #e3f9f1;
  color: var(--success);
}

.badge.red {
  background: #fde8ec;
  color: var(--danger);
}

.badge.gray {
  background: var(--field-bg);
  color: var(--muted-text);
}

.empty-state {
  padding: 80px 24px 24px;
  text-align: center;
  color: var(--muted-text);
}

.card-jadwal {
  margin: 0 20px 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--field-bg);
}

.card-jadwal .tanggal {
  font-weight: 700;
  margin-bottom: 12px;
}

.card-jadwal .trip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.card-jadwal .trip-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--name-text);
  fill: none;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-outline-primary {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-outline-primary:disabled {
  opacity: 0.5;
  border-color: #ccc;
  color: #999;
}

/* ---------- Profil ---------- */
.profil-wrap {
  padding: 24px 20px;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar {
  position: relative;
  width: 108px;
  height: 108px;
}

.avatar .circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--field-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.avatar .edit-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.profil-nama {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.profil-nip {
  text-align: center;
  color: var(--muted-text);
  margin: 0 0 20px;
}

.banner {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.banner.success {
  background: var(--success);
}

.banner.danger {
  background: var(--danger);
}

.banner svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  flex-shrink: 0;
}

.info-card {
  margin-top: 24px;
  background: #fff;
  border-radius: 20px;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.info-card .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--field-bg);
}

.info-card .row:last-child {
  border-bottom: none;
}

.info-card .row .label {
  color: var(--label-text);
  width: 90px;
  flex-shrink: 0;
}

.info-card .row .value {
  color: var(--value-text);
  font-weight: 500;
  text-align: right;
}

.btn-ganti-password {
  margin-top: 24px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #d0d5dd;
  background: var(--field-bg);
  color: var(--name-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-ganti-password svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-blue);
  fill: none;
}

.btn-keluar {
  margin-top: 12px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-keluar svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

/* ---------- Toast / snackbar ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: var(--name-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 85%;
  text-align: center;
  z-index: 50;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--field-bg);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Konfirmasi logout ---------- */
#modalKonfirmasiKeluar {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalKonfirmasiKeluar.show {
  display: flex;
}

.confirm-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--danger);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.confirm-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--name-text);
}

.confirm-card p {
  margin: 0 0 24px;
  color: var(--muted-text);
  font-size: 14px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.confirm-buttons button {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn-confirm-outline {
  background: #fff;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.btn-confirm-filled {
  background: var(--primary);
  border: none;
  color: #fff;
}

/* ---------- Hasil check-in sukses (scan QR) ---------- */
#modalCheckinSukses {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalCheckinSukses.show {
  display: flex;
}

.sukses-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.sukses-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.sukses-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--name-text);
}

.sukses-nama {
  font-size: 17px;
  font-weight: 700;
  color: var(--name-text);
}

.sukses-nip {
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 20px;
}

.sukses-info {
  background: var(--field-bg);
  border-radius: 16px;
  padding: 4px 16px;
  margin-bottom: 24px;
  text-align: left;
}

.sukses-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.sukses-info-row + .sukses-info-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sukses-info-row .label {
  font-size: 13px;
  color: var(--muted-text);
}

.sukses-info-row .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--name-text);
}

/* ---------- Topbar (app petugas tidak punya header biru besar seperti
   Beranda pegawai - dipakai bar judul + tombol keluar di tiap tab) ---------- */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar h1 {
  font-size: 18px;
  margin: 0;
}

.topbar button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Scan QR (kamera) ---------- */
.scan-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.scan-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 15%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  pointer-events: none;
}

.scan-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
}

.manual-scan-wrap {
  padding: 16px 20px;
}

/* Field terisi tanpa border, radius 16px - samakan dengan .field-wrap input
   di pwa_pegawai (lihat Login), bukan gaya border abu-abu terpisah. */
.manual-scan-wrap textarea {
  width: 100%;
  border: none;
  background: var(--field-bg);
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 44px;
}

/* ---------- Form field umum (Check-in Manual) ---------- */
.field-block {
  padding: 0 20px;
  margin-bottom: 16px;
}

.field-block label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.field-block input,
.field-block select,
.field-block textarea {
  width: 100%;
  border: none;
  background: var(--field-bg);
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
}

.hint-text {
  padding: 0 20px;
  color: var(--muted-text);
  font-size: 13px;
  margin-bottom: 16px;
}

.result-banner {
  margin: 0 20px 16px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
}

/* Warna sama dengan .badge.green/.badge.red di pwa_pegawai (riwayat booking). */
.result-banner.ok {
  background: #e3f9f1;
  color: var(--success);
}

.result-banner.err {
  background: #fde8ec;
  color: var(--danger);
}

/* ---------- Manifest ---------- */
.manifest-picker {
  margin: 16px 16px 20px;
  padding: 18px 20px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.18);
}

.manifest-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manifest-picker-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.btn-hari-ini {
  border: none;
  background: #3dd598;
  color: #fff;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.manifest-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--field-bg);
}

.manifest-tanggal {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  padding: 4px 0;
  font-size: 16px;
  color: var(--heading-text);
  cursor: pointer;
}

.manifest-tanggal .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--heading-text);
  fill: none;
  display: block;
}

.badge-hari-ini {
  background: #3dd598;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 10px;
}

[hidden] {
  display: none !important;
}

.manifest-bus {
  padding: 0 16px 8px;
}

.manifest-bus h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--name-text);
}

.manifest-bus-tanggal {
  font-size: 14px;
  color: var(--heading-text);
  margin: 2px 0 16px;
}

.manifest-penumpang {
  background: #f7f7fa;
  border-radius: 10px;
  padding: 12px 12px 10px;
  margin-bottom: 8px;
}

.manifest-penumpang-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.manifest-penumpang-head .nama {
  font-size: 16px;
  color: var(--name-text);
}

.manifest-penumpang-head .nomor {
  background: var(--accent-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.manifest-penumpang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  color: var(--name-text);
  padding: 3px 0;
}

/* ---------- Bottom sheet pilih tanggal ---------- */
#sheetTanggal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 30, 45, 0.35);
}

#sheetTanggal.show {
  display: flex;
}

.sheet-card {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-handle {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #e4e7ec;
  margin: 8px auto 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--name-text);
}

.sheet-close {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #d0d5dd;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px;
}

.bulan {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--field-bg);
}

.bulan:last-child {
  border-bottom: none;
}

.bulan-judul {
  font-size: 15px;
  font-weight: 500;
  color: var(--name-text);
  margin-bottom: 16px;
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
  text-align: center;
}

.kalender-grid .nama-hari {
  font-size: 10px;
  color: var(--muted-text);
  margin-bottom: 8px;
}

.kalender-grid .hari {
  justify-self: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: none;
  font-size: 15px;
  color: var(--name-text);
  cursor: pointer;
}

.kalender-grid .hari.nonaktif {
  color: #c4c8cf;
  cursor: default;
}

.kalender-grid .hari.terpilih {
  background: var(--accent-blue);
  color: #fff;
}

.sheet-foot {
  padding: 12px 20px 20px;
}

.btn-lihat-manifest {
  width: 100%;
  border: none;
  background: var(--accent-blue);
  color: #fff;
  font-size: 16px;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-lihat-manifest:disabled {
  opacity: 0.4;
  cursor: default;
}

.manifest-bus .empty-state {
  padding: 48px 8px 24px;
}
