:root { --biru: #0284C7; --navy: #0F2A5C; --hijau: #16A34A; --merah: #DC2626; --bg: #F1F6FB; --line: #DCE6F0; --muted: #64748B; --r: 12px }
* { box-sizing: border-box }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; background: var(--bg); color: var(--navy); font-size: 15px }
header { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 5; font-size: 14px }
.brand { font-weight: 700; font-size: 17px }
.badge { background: #FACC15; color: var(--navy); font-size: 10px; padding: 2px 6px; border-radius: 4px; vertical-align: middle }
.link-w { background: none; border: 0; color: #BAE6FD; font: inherit; cursor: pointer; text-decoration: underline }
nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--line); z-index: 5 }
nav a { flex: 1; text-align: center; padding: 8px 2px; font-size: 11px; color: var(--muted); text-decoration: none }
nav a span { display: block; line-height: 1; margin-bottom: 2px }
nav a.on { color: var(--biru); font-weight: 600 }
main { padding: 16px; padding-bottom: 90px; max-width: 1200px; margin: auto }
@media (min-width: 900px) {
  nav { position: sticky; top: 50px; bottom: auto; justify-content: center; border: 0; border-bottom: 1px solid var(--line) }
  nav a { flex: 0 0 auto; padding: 12px 18px; font-size: 14px }
  nav a span { display: inline; margin-right: 6px }
  main { padding-bottom: 32px }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px }
h2 { font-size: 16px; margin: 0 0 12px }
.mt { margin-top: 16px }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex: 1; min-width: 0 }
input, select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; background: #fff }
input:focus, select:focus { outline: 2px solid var(--biru); border-color: transparent }
.upper { text-transform: uppercase }
label.check { display: flex; gap: 8px; align-items: center; color: var(--navy) }
label.check input { width: auto; margin: 0 }
.row { display: flex; gap: 10px }
.bar { display: flex; gap: 10px; margin-bottom: 16px }
.bar input { margin: 0 }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) } }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #E2ECF5; color: var(--navy); text-decoration: none; white-space: nowrap }
.btn.primary { background: var(--biru); color: #fff }
.btn.green { background: var(--hijau); color: #fff }
.btn.red { background: #FEE2E2; color: var(--merah) }
.block { display: block; width: 100%; white-space: normal; padding: 14px; margin-top: 12px; font-size: 16px }
.link { background: none; border: 0; color: var(--biru); text-decoration: underline; cursor: pointer; font: inherit }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px }
.paket { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px }
.pk { border: 1px solid var(--line); background: #F0F9FF; border-radius: 10px; padding: 10px; text-align: left; font: inherit; cursor: pointer; color: var(--navy) }
.pk span { display: block; font-size: 13px }
.pk b { color: var(--biru) }
.pk.tambahan { background: #fff; border-style: dashed }
.pk:active { transform: scale(.97) }
.hasil { display: block; width: 100%; text-align: left; padding: 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: #F8FBFE; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer }
.member-chip { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: 14px }
table { width: 100%; border-collapse: collapse }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px }
th { color: var(--muted); font-weight: 500; font-size: 12px }
.r { text-align: right }
.tbl-wrap { overflow-x: auto }
tr.click { cursor: pointer }
tr.click:hover { background: #F0F9FF }
tr.off { opacity: .5 }
.qty { white-space: nowrap }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; margin: 0 6px }
.sum div { display: flex; justify-content: space-between; padding: 4px 0 }
.sum .total { font-size: 20px; font-weight: 700; border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 8px }
.green { color: var(--hijau) }
.muted { color: var(--muted) }
.seg { display: flex; gap: 6px; margin: 12px 0 }
.seg button { flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; cursor: pointer; color: var(--navy) }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy) }
.chips { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px }
.st { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600 }
.st.Antri { background: #FEF3C7; color: #92400E }
.st.Dicuci { background: #E0F2FE; color: #075985 }
.st.Selesai { background: #DCFCE7; color: #166534 }
.st.Diambil { background: #E2E8F0; color: #334155 }
.st.Batal { background: #FEE2E2; color: #991B1B }
.jobh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px }
.plat { font-size: 18px; letter-spacing: .5px }
.stamps { display: flex; gap: 6px; flex-wrap: wrap }
.stamps i { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed #CBD5E1; display: grid; place-items: center; font-style: normal }
.stamps i.on { background: var(--hijau); border: 2px solid var(--hijau) }
.stamps i.free { border-color: var(--hijau) }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: 13px; color: var(--muted) }
.stat b { display: block; font-size: 22px; color: var(--navy) }
.stat.hi { background: var(--navy); color: #BAE6FD }
.stat.hi b { color: #fff }
.barcell { width: 35% }
.barh { height: 10px; background: var(--biru); border-radius: 5px; min-width: 2px }
table.set input, table.set select { margin: 0; padding: 6px 8px; min-width: 90px }
dialog { border: 0; border-radius: var(--r); padding: 20px; max-width: 480px; width: calc(100% - 32px); color: var(--navy) }
dialog::backdrop { background: rgba(15, 42, 92, .5) }
pre.struk { background: #F8FBFE; border: 1px dashed var(--line); padding: 12px; border-radius: 8px; white-space: pre-wrap; font-size: 13px; font-family: ui-monospace, Consolas, monospace }
#toast { inset: auto auto 90px 50%; transform: translateX(-50%); margin: 0; border: 0; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 99px; font: inherit; font-size: 14px }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--navy), var(--biru)) }
.login .card { width: 100%; max-width: 360px }
.logo { font-size: 24px; font-weight: 700 }
.note { background: #F0F9FF; border: 1px solid #BAE6FD; padding: 10px; border-radius: 8px; font-size: 13px; margin-top: 12px }
#print-area { display: none }
@media print {
  body { background: #fff }
  body > * { display: none !important }
  #print-area { display: block !important }
  #print-area pre { font: 12px monospace; width: 58mm; white-space: pre-wrap; margin: 0 }
  #print-area.k80 pre { font-size: 14px; width: 76mm }
  @page { margin: 2mm }
}
/* ikon garis monoton */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none }
.brand .ic, .logo .ic { color: #38BDF8 }
.logo .ic { color: var(--biru) }
nav a .ic { width: 22px; height: 22px; vertical-align: middle }
@media (min-width: 900px) { nav a .ic { width: 18px; height: 18px; vertical-align: -.25em } }
.btn .ic { margin-right: 2px }
.stamps i .ic { color: #fff; width: 16px; height: 16px; vertical-align: 0 }
.stamps i.free .ic { color: var(--hijau) }
.star .ic { color: #CA8A04 }
.lbl { font-size: 13px; color: var(--muted); margin-bottom: 6px }
.mt8 { margin-top: 8px }
.chip { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff }
.btn.wa { background: #DCFCE7; color: #166534 }
.hasil.on { border-color: var(--biru); background: #E0F2FE }
.flex { display: flex; justify-content: space-between; align-items: center; margin-top: 4px }
.st.Lunas { background: #DCFCE7; color: #166534 }
.st.Belum { background: #FFE4E6; color: #9F1239 }
details.lain { margin-top: 8px }
details.lain > summary { cursor: pointer; font-weight: 600; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; list-style-position: inside }
.unduhan { margin: 0 0 16px }
/* laporan PDF (A4 landscape, lewat cetak browser) */
@page lap { size: A4 landscape; margin: 10mm }
.report { page: lap; font: 9.5px/1.4 Poppins, system-ui, sans-serif; color: #0F2A5C; -webkit-print-color-adjust: exact; print-color-adjust: exact }
.report h1 { font-size: 20px; margin: 0 }
.report h2 { font-size: 12px; margin: 14px 0 6px }
.report .r { text-align: right }
.rsub { font-size: 12px; color: #0284C7; font-weight: 600 }
.rh { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0F2A5C; padding-bottom: 8px; margin-bottom: 10px }
.rs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px }
.rs div { border: 1px solid #DCE6F0; border-radius: 6px; padding: 6px 8px; color: #64748B; font-size: 8.5px }
.rs b { display: block; font-size: 12px; color: #0F2A5C }
.rt { width: 100%; border-collapse: collapse }
.rt.kecil { width: 55% }
.rt th { background: #0F2A5C; color: #fff; font-weight: 600; padding: 5px 6px; font-size: 9px; text-align: left }
.rt td { padding: 4px 6px; border-bottom: 1px solid #DCE6F0; font-size: 9px; vertical-align: top }
.rt tbody tr:nth-child(even) td { background: #F5F9FC }
.rt tr { break-inside: avoid }
.rt tfoot td { font-weight: 700; border-top: 2px solid #0F2A5C; border-bottom: 0; font-size: 10px }
.rt .batal td { color: #991B1B; text-decoration: line-through }
.rf { color: #64748B; font-size: 8.5px; margin-top: 10px }
textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; resize: vertical }
.seg button small { display: block; font-size: 11px; opacity: .75 }
.seg.kecil { margin: 8px 0 0 }
.seg.kecil button { padding: 6px }
.rcols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start }
details.ptg { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px }
details.ptg summary { cursor: pointer }
details.ptg .chips { margin: 8px 0 0 }
details.ptg p { margin: 6px 0 0; font-size: 12px }
/* papan antri: 1 pelanggan per baris, berjejer ke bawah */
.board { display: flex; flex-direction: column; gap: 10px }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 20px; align-items: center; margin: 0; border-left: 4px solid var(--line) }
.job.Antri { border-left-color: #F59E0B } .job.Dicuci { border-left-color: var(--biru) } .job.Selesai { border-left-color: var(--hijau) } .job.Batal { opacity: .6 }
.job .jobh { justify-content: flex-start; gap: 8px; flex-wrap: wrap }
.job .plat { white-space: nowrap; margin-right: 4px }
.job-info > div + div { margin-top: 2px }
.job-shift .seg { margin: 0 }
.job-acts { margin: 0; justify-content: flex-end }
@media (max-width: 899px) { .job { grid-template-columns: minmax(0, 1fr); gap: 10px } .job-acts { justify-content: flex-start } }
/* gudang, kas shift, pengingat */
.stat small { display: block; font-size: 12px; margin-top: 2px }
a.stat { text-decoration: none }
.stat.warn { background: #FEF3C7; border-color: #FCD34D }
.chip.warn { background: #FEF3C7; border-color: #F59E0B }
.chip[disabled] { opacity: .4; cursor: not-allowed }
.seg.wrap { flex-wrap: wrap }
.seg.wrap button { flex: 1 1 30% }
.btn.kecil { padding: 4px 10px; font-size: 12px; vertical-align: middle }
tr.sub td { font-size: 12px; color: var(--muted); padding-top: 2px; padding-bottom: 2px; padding-left: 18px }
tr.tot td { border-top: 2px solid var(--navy); font-size: 15px }
dialog.lebar { max-width: 820px }
/* kotak statistik: angka selalu sejajar di bawah walau label 2 baris */
.stat { display: flex; flex-direction: column }
.stat b { margin-top: auto; padding-top: 4px }
/* jadwal dari database pegawai */
.jadwal { border: 1px solid var(--line); border-radius: 10px; padding: 12px }
.jh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.jadwal .acts { margin: 8px 0 }
.sublbl { font-size: 12px; color: var(--muted); font-weight: 600; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .5px }
.chip:disabled { opacity: .35; cursor: not-allowed }
/* ---------- struk (gaya GoTaylor): label kiri, nilai kanan, lega — dipakai pratinjau & cetak termal ---------- */
#struk { position: absolute; left: -10000px; top: 0 }
#struk, .s-kertas { width: 48mm; padding: 3mm 0; background: #fff; color: #000; font-family: Poppins, system-ui, sans-serif; font-size: 9pt; line-height: 1.5 }
#struk[data-lebar="80"], .s-kertas[data-lebar="80"] { width: 72mm; font-size: 10pt }
.s-c { text-align: center }
.s-b { font-weight: 700 }
.s-big { font-size: 1.3em }
.s-kecil { font-size: .82em; color: #333 }
.s-jarak { margin-top: 1.5mm }
.s-masuk { padding-left: 3mm; color: #333 }
.s-row { display: flex; justify-content: space-between; gap: 3mm; padding: .3mm 0 }
.s-row span:last-child { text-align: right; white-space: nowrap }
.s-hr { border-top: 1px dashed #000; margin: 2.2mm 0 }
/* pratinjau di layar: kertas struk di atas meja abu-abu */
.s-meja { background: #EEF2F6; border-radius: 10px; padding: 16px; display: flex; justify-content: center; max-height: 60vh; overflow: auto }
.s-kertas { box-sizing: content-box; padding: 5mm 5mm; box-shadow: 0 2px 10px rgba(15, 42, 92, .15); border-radius: 2px; height: fit-content }
@media print {
  body.struk-mode #print-area { display: none !important }
  body.struk-mode #struk { display: block !important; position: static; margin: 0 auto }
}
.s-meja:focus { outline: none }
.pk small { display: block; font-size: 11px; color: var(--muted); margin: 1px 0 3px; line-height: 1.3 }
.chip .kali { font-size: 11px; font-weight: 600; color: var(--biru, #0284c7); margin-left: 2px }
.chip.on .kali { color: #cfe8ff }
@media (max-width: 640px) { .bar { flex-wrap: wrap } .bar input { flex: 1 0 100% } .bar .btn { flex: 1 1 auto } }
.shiftbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-left: 4px solid var(--biru) }
.shiftbar .acts { margin: 0 }
.peringatan { color: var(--merah); font-size: 13px; margin-top: 4px }
#dlg tr.off td { color: var(--muted) }
.hlm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 }
.hlm span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.hlm input { width: 64px !important; display: inline-block; margin: 0; padding: 4px 6px; text-align: center }
/* paket terpilih = biru; filter tanggal laporan & transaksi */
.pk.on { background: var(--biru); border-color: var(--biru); color: #fff }
.pk.on b, .pk.on small { color: #fff }
.bar { flex-wrap: wrap; align-items: end }
.bar label { margin: 0; font-size: 12px }
.bar label input, .bar label select { margin: 2px 0 0 }
