/* Tampilan ala aplikasi Android. Hanya aktif di layar sempit, web desktop tidak berubah. */
@media (max-width: 760px) {
  :root {
    --radius: 18px;
  }

  body {
    background: #eef3f9;
    padding-bottom: 24px;
  }

  /* Bilah judul menempel di atas, ringkas, aman dari status bar HP */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    box-shadow: 0 2px 12px rgba(22, 50, 79, .18);
  }
  header h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main {
    margin: 14px auto;
    padding: 0 12px;
  }

  /* Kartu lebih membulat dan lega, khas aplikasi */
  .card {
    border: 0;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(22, 50, 79, .07);
  }

  h2 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  /* Baris identitas pengguna jadi rapi ke bawah */
  .card.toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .card.toolbar .actions {
    justify-content: stretch;
  }
  .card.toolbar .actions button {
    flex: 1;
  }

  /* Sentuhan jari: tombol dan isian lebih besar */
  button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  button.small {
    min-height: 38px;
    border-radius: 9px;
  }
  input, select {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }
  label {
    font-size: 14px;
  }

  /* Tombol utama di dalam form memenuhi lebar, seperti aplikasi */
  #deliveryForm > button,
  #openJourneyForm button[type="submit"],
  #closeJourneyForm button[type="submit"] {
    width: 100%;
  }

  /* Tabel: kolom pertama ikut tergeser tapi tetap terlihat */
  .table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 640px;
  }
  th {
    position: sticky;
    top: 0;
    font-size: 12px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  td {
    font-size: 13px;
    padding: 11px 10px;
  }
  tbody tr:nth-child(even) td {
    background: #f8fafd;
  }

  /* Kotak sunting kuning lebih lembut */
  .editing {
    border-radius: 14px;
    padding: 14px;
  }

  /* Pesan status lebih menonjol */
  .message {
    border-radius: 12px;
    font-size: 14px;
  }

  /* Ringkasan perjalanan jadi kartu kecil */
  .journey-summary {
    background: #eef6ff;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
  }

  /* Zona bahaya jelas terlihat merah */
  .danger-zone {
    border: 1px solid #f3c9c4;
  }
}
.bottom-nav{display:none}
@media (max-width: 760px) {
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:2px;background:#fff;border-top:1px solid #d9e2ec;box-shadow:0 -2px 12px rgba(22,50,79,.08);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .bottom-nav[hidden],.bottom-nav button[hidden]{display:none!important}
  .bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:58px;padding:4px 2px;background:none;color:#64748b;font-size:11px;font-weight:700;border-radius:14px}
  .bottom-nav .nav-icon{font-size:20px;line-height:28px;width:56px;border-radius:999px}
  .bottom-nav button[aria-current="page"]{color:#16324f}
  .bottom-nav button[aria-current="page"] .nav-icon{background:#dbe8ff}
  body.has-nav{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  body.has-nav[data-active="perjalanan"] [data-tab]:not([data-tab="perjalanan"]),
  body.has-nav[data-active="kirim"] [data-tab]:not([data-tab="kirim"]),
  body.has-nav[data-active="riwayat"] [data-tab]:not([data-tab="riwayat"]),
  body.has-nav[data-active="laporan"] [data-tab]:not([data-tab="laporan"]),
  body.has-nav[data-active="akun"] [data-tab]:not([data-tab="akun"]){display:none!important}
}