/* Service Kendaraan — gaya C "Ringan & cepat" (putih, oranye, Plus Jakarta Sans). Mobile dulu. */
:root {
  --latar: #ffffff;
  --teks: #17181c;
  --redup: #5d6170;
  --garis: #e6e7eb;
  --isian: #f6f7f9;
  --aksen: #ea580c;
  --aksen-tua: #c2410c;
  --aksen-muda: #fff4ec;
  --aksen-garis: #fed7aa;
  --bahaya: #b91c1c;
  --radius: 18px;
  --radius-kecil: 12px;
  --huruf: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f2f3f5; color: var(--teks); font-family: var(--huruf); font-size: 16px; line-height: 1.45; }
a { color: var(--aksen-tua); }
a:hover { color: #9a3412; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Satu kolom selebar HP; di layar lebar tetap di tengah seperti aplikasi. */
.aplikasi { max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--latar); display: flex; flex-direction: column; }
@media (min-width: 520px) { .aplikasi { box-shadow: 0 0 0 1px var(--garis); } }
.isi { flex: 1; padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Kepala */
.kepala { padding: 28px 20px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kepala p { margin: 0; font-size: 14px; color: var(--redup); }
.kepala h1 { margin: 2px 0 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.kepala-balik { padding: 20px 12px 8px; display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 5; background: var(--latar); }
.kepala-balik h1 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tombol-ikon { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--teks); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.tombol-ikon:hover { background: var(--isian); color: var(--teks); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f2f3f5; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-akun { position: relative; }
.menu-akun[open] .menu-akun-isi { display: flex; }
.menu-akun summary { list-style: none; }
.menu-akun summary::-webkit-details-marker { display: none; }
.menu-akun-isi { display: none; position: absolute; right: 0; top: 52px; z-index: 20; min-width: 220px; flex-direction: column; background: #fff; border: 1px solid var(--garis); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; }
.menu-akun-isi p { margin: 4px 10px 8px; font-size: 13px; color: var(--redup); overflow-wrap: anywhere; }
.menu-akun-isi button { min-height: 44px; border: 0; background: transparent; border-radius: 10px; text-align: left; padding: 0 10px; font-weight: 600; cursor: pointer; }
.menu-akun-isi button:hover { background: var(--isian); }

/* Tombol */
.tombol { min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--aksen); color: #fff; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.tombol:hover { background: var(--aksen-tua); color: #fff; }
.tombol-gelap { background: var(--teks); }
.tombol-gelap:hover { background: #33353d; }
.tombol-garis { background: #fff; color: var(--teks); border: 1px solid var(--garis); font-weight: 700; }
.tombol-garis:hover { background: var(--isian); color: var(--teks); }
.tombol-bahaya { background: #fff; color: var(--bahaya); border: 1px solid #fecaca; font-weight: 700; }
.tombol-bahaya:hover { background: #fef2f2; color: var(--bahaya); }
.tombol-lebar { width: 100%; }
.tombol-kecil { min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
.tombol-putus { min-height: 48px; border: 1px dashed #c9cbd2; border-radius: var(--radius); background: transparent; color: var(--redup); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tombol-putus:hover { border-color: var(--aksen); color: var(--aksen-tua); }

/* Kaki menempel dengan tombol utama */
.kaki { position: sticky; bottom: 0; z-index: 5; background: var(--latar); padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid #eef0f3; }
.kaki-satu { grid-template-columns: minmax(0, 1fr); }
.kaki-total { display: flex; align-items: center; gap: 12px; }
.kaki-total > div { flex: 1; min-width: 0; }
.kaki-total p { margin: 0; }
.kaki-total .label { font-size: 12px; color: var(--redup); }
.kaki-total .angka { font-size: 20px; font-weight: 800; }

/* Pesan */
.pesan { margin: 8px 20px 0; padding: 12px 14px; border-radius: 14px; background: #ecfdf3; color: #14532d; font-size: 14px; font-weight: 600; }
.galat { padding: 12px 14px; border-radius: 14px; background: #fef2f2; color: #7f1d1d; font-size: 14px; }
.galat ul { margin: 0; padding-left: 18px; }
.kosong { text-align: center; color: var(--redup); padding: 24px 12px; border: 1px dashed var(--garis); border-radius: var(--radius); }
.kosong p { margin: 0 0 12px; }

/* Kartu kendaraan */
.daftar { display: flex; flex-direction: column; gap: 10px; }
.kartu { text-decoration: none; color: inherit; border: 1px solid var(--garis); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; background: #fff; }
.kartu:hover { border-color: #c9cbd2; color: inherit; }
.inisial { width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.kartu-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kartu-teks strong { font-size: 16px; }
.kartu-teks span { font-size: 13px; color: var(--redup); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kartu-angka { font-weight: 700; font-size: 14px; white-space: nowrap; }
.ringkas { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 2px 0; }
.ringkas p { margin: 0; }
.ringkas .label { font-size: 14px; color: var(--redup); }
.ringkas .angka { font-size: 22px; font-weight: 800; }
.info { background: var(--aksen-muda); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.info p { margin: 0; }

/* Halaman kendaraan */
.angka-tiga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.angka-tiga div { background: var(--isian); border-radius: 14px; padding: 10px 12px; }
.angka-tiga p { margin: 0; }
.angka-tiga .label { font-size: 12px; color: var(--redup); }
.angka-tiga .angka { font-size: 15px; font-weight: 800; margin-top: 2px; }
.bulan { margin: 6px 0 -4px; font-size: 13px; color: var(--redup); font-weight: 700; letter-spacing: .02em; }
.baris-servis { text-decoration: none; color: inherit; border: 1px solid var(--garis); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.baris-servis:hover { border-color: #c9cbd2; color: inherit; }
.baris-servis span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.baris-servis strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baris-servis small { font-size: 13px; color: var(--redup); }
.baris-servis b { white-space: nowrap; }
.lencana { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--redup); }

/* Formulir */
.form { display: flex; flex-direction: column; gap: 14px; }
.dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.isian { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--redup); font-weight: 600; }
.isian input, .isian select, .isian textarea { min-height: 48px; border: 1px solid var(--garis); border-radius: var(--radius-kecil); padding: 0 12px; font-size: 16px; color: var(--teks); background: #fff; font-weight: 400; width: 100%; }
.isian textarea { padding: 10px 12px; min-height: 72px; resize: vertical; }
.isian input:focus, .isian select:focus, .isian textarea:focus, .baris-item input:focus { outline: 2px solid var(--aksen); outline-offset: -1px; border-color: var(--aksen); }
.isian small { font-weight: 400; color: var(--redup); }
.cek { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.cek input { width: 20px; height: 20px; accent-color: var(--aksen); }
.pil { display: flex; gap: 8px; flex-wrap: wrap; }
.pil label { position: relative; }
.pil input { position: absolute; opacity: 0; inset: 0; }
.pil span { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--garis); display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.pil input:checked + span { background: var(--teks); color: #fff; border-color: var(--teks); }
.pil input:focus-visible + span { outline: 2px solid var(--aksen); outline-offset: 2px; }
.pilih-kendaraan { min-height: 40px; border: 1px solid var(--garis); border-radius: 20px; padding: 0 30px 0 14px; font-weight: 700; font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; max-width: 170px; }

/* Barang & jasa */
.item-judul { margin: 0; font-size: 13px; color: var(--redup); font-weight: 600; }
.baris-item { display: flex; gap: 8px; align-items: center; }
.baris-item input { min-height: 46px; border: 1px solid var(--garis); border-radius: var(--radius-kecil); padding: 0 12px; font-size: 16px; background: #fff; min-width: 0; }
.baris-item .nama { flex: 1; }
.baris-item .harga { width: 112px; flex: none; text-align: right; font-weight: 700; }
.baris-item .hapus-item { width: 40px; height: 40px; flex: none; border: 0; background: transparent; color: var(--redup); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.baris-item .hapus-item:hover { background: var(--isian); color: var(--bahaya); }
.saran { display: flex; gap: 8px; flex-wrap: wrap; }
.saran:empty { display: none; }
.saran button { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--aksen-garis); background: var(--aksen-muda); color: #9a3412; font-size: 13px; font-weight: 600; cursor: pointer; }
.saran button:hover { border-color: var(--aksen); }
.tambah-item { align-self: flex-start; min-height: 40px; border: 0; background: transparent; color: var(--aksen-tua); font-weight: 700; padding: 0 4px; cursor: pointer; }

/* Nota: tempat foto di atas form, bisa dicubit untuk zoom, digeser, ditarik tingginya */
.nota-wadah { margin: 0 12px; position: sticky; top: 72px; z-index: 4; }
.nota { position: relative; height: var(--tinggi-nota, 34vh); min-height: 120px; border-radius: var(--radius); background: #2b2d33; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.nota img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; will-change: transform; pointer-events: none; }
.nota-pdf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 16px; touch-action: auto; }
.nota-pdf a { color: #fed7aa; font-weight: 700; }
.nota-petunjuk { position: absolute; top: 10px; left: 10px; margin: 0; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; transition: opacity .3s; }
.nota-aksi { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.nota-aksi button, .nota-aksi a { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pegangan { display: flex; justify-content: center; padding: 8px 0 2px; touch-action: none; cursor: ns-resize; background: var(--latar); }
.pegangan span { width: 44px; height: 5px; border-radius: 3px; background: #c9cbd2; }
.nota-wadah.ciut .nota { height: 72px; min-height: 72px; }
.nota-wadah.ciut .nota-petunjuk, .nota-wadah.ciut .pegangan { display: none; }
.ambil-nota { margin: 0 12px; border: 1px dashed #c9cbd2; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ambil-nota p { margin: 0; font-size: 14px; color: var(--redup); }
.ambil-nota .dua label { cursor: pointer; }
.ambil-nota input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ganti-nota { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }

/* Detail servis */
.rincian { border: 1px solid var(--garis); border-radius: var(--radius); overflow: hidden; }
.rincian div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #eef0f3; }
.rincian div:first-child { border-top: 0; }
.rincian .jumlah { background: var(--isian); font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--redup); font-size: 14px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.aksi-baris { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aksi-baris form { display: contents; }

/* Masuk / daftar */
.sambut { padding: 48px 24px 8px; }
.logo { width: 56px; height: 56px; border-radius: 16px; background: var(--aksen); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sambut h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; }
.sambut p { margin: 8px 0 0; color: var(--redup); }
.ganti-halaman { text-align: center; font-size: 15px; color: var(--redup); }
