/* Layar kasir & dapur — layout penuh layar, ramah sentuh (tablet landscape → HP). */
body.app-full { overflow: hidden; height: 100dvh; user-select: none; -webkit-user-select: none; }
body.app-full input, body.app-full textarea { user-select: text; -webkit-user-select: text; }
.kz { display: flex; flex-direction: column; height: 100dvh; }
.kz-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.kz-brand .logo { width: 34px; height: 34px; display: block; }
.kz-outlet { display: flex; flex-direction: column; line-height: 1.2; margin-left: 4px; min-width: 0; } .kz-outlet b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.kz-chip { font-size: 11.5px; font-weight: 700; color: var(--muted); } .kz-chip.on { color: var(--ok); } .kz-chip.off { color: var(--bad); cursor: pointer; }
.kz-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 14px inherit; cursor: pointer; text-decoration: none; }
.kz-btn:hover { background: var(--panel2); text-decoration: none; } .kz-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 11px/20px inherit; text-align: center; font-style: normal; }
.kz-badge.qr { background: var(--warn); } .kz-badge.pulse { animation: pulse 1s infinite; } @keyframes pulse { 50% { transform: scale(1.25); } }
.kz-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.kz-menu { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 12px; gap: 10px; }
.kz-search { position: relative; } .kz-search .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); } .kz-search input { padding-left: 38px; min-height: 44px; border-radius: 12px; }
.kz-kat { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; flex: none; scrollbar-width: none; } .kz-kat::-webkit-scrollbar { display: none; }
.kz-kat button { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 700 14px inherit; cursor: pointer; white-space: nowrap; } .kz-kat button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.kz-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; padding-bottom: 80px; -webkit-overflow-scrolling: touch; }
.kz-prod { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: var(--ink); transition: transform .06s; }
.kz-prod:active { transform: scale(.97); } .kz-prod:hover { border-color: var(--brand); }
.kz-prod .im { aspect-ratio: 16/10; background-color: var(--panel2); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; }
.kz-prod .tx { padding: 8px 10px 10px; } .kz-prod .nm { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; } .kz-prod .hg { color: var(--brand); font-weight: 800; margin-top: 3px; }
.kz-prod.habis { opacity: .5; } .kz-prod.habis::after { content: 'HABIS'; position: absolute; top: 8px; left: 8px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.kz-prod .jml { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font: 800 12px/24px inherit; text-align: center; padding: 0 6px; }
.kz-cart { display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); min-height: 0; }
.kz-ch { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; flex: none; }
.kz-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--panel2); padding: 4px; border-radius: 12px; } .kz-seg button { padding: 8px 4px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 12.5px inherit; cursor: pointer; } .kz-seg button.on { background: var(--panel); color: var(--brand); box-shadow: var(--shadow); }
.kz-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .kz-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 700 13px inherit; cursor: pointer; } .kz-pill.set { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.kz-nama { width: 120px; min-height: 32px !important; padding: 4px 10px !important; border-radius: 99px !important; font-size: 13px; }
.kz-items { flex: 1; overflow-y: auto; padding: 4px 12px; -webkit-overflow-scrolling: touch; }
.kz-empty { text-align: center; color: var(--muted); padding: 50px 10px; } .kz-empty .ic { width: 44px; height: 44px; opacity: .35; }
.kz-it { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .kz-it .n { font-weight: 700; } .kz-it .m { font-size: 12.5px; color: var(--muted); grid-column: 1; } .kz-it .p { text-align: right; font-weight: 700; }
.kz-it .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.kz-q { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .kz-q button { width: 34px; height: 34px; border: 0; background: var(--panel2); color: var(--ink); cursor: pointer; display: grid; place-items: center; } .kz-q button:active { background: var(--line); } .kz-q b { min-width: 30px; text-align: center; }
.kz-ib { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; } .kz-ib:hover { background: var(--panel2); color: var(--ink); }
.kz-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); } .kz-st.baru { background: var(--info-soft); color: var(--info); } .kz-st.diproses { background: var(--warn-soft); color: var(--warn); } .kz-st.siap { background: var(--ok-soft); color: var(--ok); } .kz-st.disajikan { background: var(--panel2); color: var(--muted); } .kz-st.menunggu { background: var(--brand-soft); color: var(--brand); }
.kz-it.kirim { opacity: .92; } .kz-it.batal { opacity: .4; text-decoration: line-through; }
.kz-ct { border-top: 1px solid var(--line); padding: 10px 12px 12px; flex: none; background: var(--panel); }
.kz-sum { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; } .kz-sum .t { color: var(--ink); font-size: 19px; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 3px; } .kz-sum > span:nth-child(even) { text-align: right; } .kz-sum .dsk { color: var(--ok); }
.kz-act { display: flex; gap: 6px; margin-bottom: 8px; } .kz-btn2 { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 13px inherit; cursor: pointer; } .kz-btn2:hover { background: var(--panel2); } .kz-btn2.bad { flex: none; color: var(--bad); }
.kz-go { display: flex; gap: 8px; } .kz-go1 { flex: 1; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: 800 14px inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .kz-go1:hover { background: var(--line); } .kz-go1.pay b { white-space: nowrap; font-size: 14px; }
.kz-go1.pay { flex: 1.6; flex-direction: column; gap: 0; line-height: 1.15; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-size: 15px; } .kz-go1.pay:hover { background: var(--brand-d); } .kz-go1[disabled] { opacity: .45; pointer-events: none; }
.kz-fab { display: none; }
.kz-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .kz-qty button { width: 44px; height: 44px; border: 0; background: var(--panel2); color: var(--ink); cursor: pointer; display: grid; place-items: center; } .kz-qty b { min-width: 44px; text-align: center; font-size: 18px; }
.kz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: 90vw; } .kz-toast.bad { background: var(--bad); }
.opsi-grup { margin-bottom: 16px; } .opsi-grup h3 { display: flex; justify-content: space-between; margin-bottom: 8px; } .opsi { display: flex; flex-wrap: wrap; gap: 8px; } .opsi label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; margin: 0; background: var(--panel); } .opsi label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); } .opsi input { display: none; } .opsi small { color: var(--muted); font-weight: 500; }
.mejagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; } .mj { padding: 14px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; color: var(--ink); text-align: center; } .mj b { display: block; font-size: 17px; } .mj small { color: var(--muted); } .mj.isi { border-color: var(--warn); background: var(--warn-soft); } .mj.pilih { border-color: var(--brand); background: var(--brand-soft); }
.lst { display: flex; flex-direction: column; gap: 8px; } .lst > button, .lst > a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; text-align: left; text-decoration: none; } .lst > button:hover { background: var(--panel2); }
.kz-bayar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; } .by-kiri { background: var(--panel2); border-radius: 14px; padding: 16px; } .by-kanan { min-width: 0; } .by-lbl { display: grid; grid-template-columns: 150px 1fr 36px; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; } .by-lbl span:last-child { grid-column: 2; } .bl input[data-f=jumlah] { font-size: 20px; font-weight: 800; text-align: right; } .by-qr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); line-height: 1.3; } .by-qrimg { display: block; width: 260px; max-width: 100%; margin: 10px auto; background: #fff; border-radius: 12px; padding: 8px; } .by-qrimg svg { display: block; width: 100%; height: auto; } .tb-tab { flex: 1; margin-right: 8px; grid-template-columns: 1fr 1fr; } .tb-lunas { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; line-height: 1.35; } .tb-lunas .btn { white-space: nowrap; } @media (max-width: 560px) { .tb-lunas { grid-template-columns: 1fr auto; } .tb-lunas .btn { grid-column: 1 / -1; justify-content: center; } } .by-split { margin-top: 10px; width: 100%; justify-content: center; } #d-bayar .mf .by-ok { flex: 1; max-width: 360px; } .kz-bayar .tot { font-size: 30px; font-weight: 800; color: var(--brand); } .bl { display: grid; grid-template-columns: 150px 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; } .bl select, .bl input { min-height: 44px; }
.cepat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; } .cepat button { min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 700 13px inherit; cursor: pointer; }
.kembali { font-size: 22px; font-weight: 800; padding: 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); text-align: center; margin-top: 10px; } .kurang { background: var(--bad-soft); color: var(--bad); }
.ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; } .ok-ic .ic { width: 38px; height: 38px; stroke-width: 3; }

/* HP & tablet kecil: keranjang jadi lembar geser dari bawah */
@media (max-width: 900px) {
  .kz-body { grid-template-columns: minmax(0, 1fr); } .kz-btn span { display: none; } .kz-btn { padding: 9px 10px; } .kz-top { gap: 6px; padding: 8px; } .kz-outlet b { max-width: 96px; font-size: 14px; } .kz-top .kz-btn[data-tema], .kz-top a[href="/shift"] { display: none; }
  .kz-cart { position: fixed; inset: 0; top: 56px; z-index: 30; transform: translateY(105%); transition: transform .22s; border-left: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3); } .kz-cart.buka { transform: none; }
  .kz-fab { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px; border: 0; background: var(--brand); color: var(--brand-ink); font: 800 16px inherit; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; } .kz-fab b { margin-left: auto; } .kz-fab #fab-n { background: var(--brand-ink); color: var(--brand); border-radius: 99px; min-width: 26px; height: 26px; text-align: center; line-height: 26px; padding: 0 6px; }
  .kz-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .kz-bayar { grid-template-columns: 1fr; } .kz-outlet span { display: none; }
}
@media (min-width: 901px) and (max-width: 1180px) { .kz-body { grid-template-columns: 1fr 340px; } }

/* ===== Dapur (KDS) ===== */
.kd { display: flex; flex-direction: column; height: 100dvh; background: #0F1114; color: #E9EBEE; }
.kd-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #181B20; border-bottom: 1px solid #2A2F37; flex-wrap: wrap; } .kd-top h1 { font-size: 18px; } .kd-top a, .kd-top button { color: #E9EBEE; }
.kd-chip { padding: 7px 14px; border-radius: 99px; border: 1px solid #343A44; background: none; color: #E9EBEE; font: 700 13px inherit; cursor: pointer; } .kd-chip.on { background: var(--brand); border-color: var(--brand); color: #1A0E05; }
.kd-grid { flex: 1; overflow: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-content: start; }
.kd-t { background: #1B1F25; border: 2px solid #2D333B; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; } .kd-t.lama { border-color: #E08700; } .kd-t.telat { border-color: #E03131; animation: kdblink 1.4s infinite; } @keyframes kdblink { 50% { box-shadow: 0 0 0 4px rgba(224,49,49,.35); } }
.kd-th { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #232830; } .kd-th b { font-size: 18px; } .kd-th .w { font-weight: 800; font-variant-numeric: tabular-nums; }
.kd-tm { padding: 0 12px 6px; background: #232830; font-size: 13px; color: #9AA3AF; display: flex; gap: 10px; flex-wrap: wrap; }
.kd-tm .kd-lunas { padding: 0 7px; border-radius: 999px; background: #17301F; color: #7DF29B; border: 1px solid #2B9348; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.kd-i { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid #2D333B; cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; } .kd-i:hover { background: #20252C; }
.kd-i .q { font-size: 20px; font-weight: 800; min-width: 34px; color: var(--brand); } .kd-i .n { font-weight: 700; font-size: 16px; } .kd-i .m { font-size: 13px; color: #9AA3AF; } .kd-i .c { font-size: 13px; color: #F5B041; font-style: italic; }
.kd-i .s { margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; } .kd-i .s.baru { background: #14283D; color: #5AA9F0; } .kd-i .s.diproses { background: #382B10; color: #F5B041; } .kd-i .s.siap { background: #17301F; color: #4CC36B; }
.kd-i.siap { opacity: .65; }
.kd-tf { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #2D333B; } .kd-tf button { flex: 1; padding: 11px 6px; border-radius: 10px; border: 0; font: 800 13px inherit; cursor: pointer; background: #343A44; color: #fff; } .kd-tf .go { background: var(--brand); color: #1A0E05; } .kd-tf .ok { background: #2B9348; }
.kd-kosong { grid-column: 1/-1; text-align: center; color: #6B7280; padding: 90px 10px; font-size: 18px; }
.kz-tutup { display: none; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; color: var(--brand); font: 800 14px inherit; cursor: pointer; align-self: flex-start; }
@media (max-width: 900px) { .kz-tutup { display: inline-flex; } }
.kz-qr svg { width: 100%; height: auto; display: block; }
.kz-st.ditahan { background: var(--warn-soft); color: var(--warn); }

/* menu akun (kasir, monitor): details tanpa JS */
.akun { position: relative; } .akun summary { list-style: none; cursor: pointer; } .akun summary::-webkit-details-marker { display: none; }
.akun .av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink, #fff); font-size: 11px; font-weight: 800; } .akun .an { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akun-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.28); padding: 6px; display: grid; gap: 2px; }
.akun-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; line-height: 1.35; } .akun-h span { color: var(--muted); font-size: 12px; }
.akun-pop a, .akun-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; } .akun-pop a:hover, .akun-pop button:hover { background: var(--panel2); }
.akun-pop button { color: var(--bad); }
.layar-dd .akun-pop { min-width: 190px; } .layar-dd .dd-ic { display: inline-flex; margin-left: -2px; opacity: .7; transition: transform .15s; } .layar-dd[open] .dd-ic { transform: rotate(90deg); } .layar-dd .akun-pop button { color: var(--ink); }
@media (max-width: 760px) { .akun .an { display: none !important; } .kz-btn .av { display: grid !important; } }

/* dapur: baris item + urungkan/tolak */
.kd-r { display: flex; align-items: stretch; border-top: 1px solid #2D333B; } .kd-r .kd-i { border-top: 0; flex: 1; min-width: 0; }
.kd-ac { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 8px 6px 0; } .kd-ac button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #3A4048; background: #20242A; color: #D1D5DB; font-size: 15px; font-weight: 800; cursor: pointer; line-height: 1; } .kd-ac button:hover { background: #2D333B; } .kd-ac .tl { color: #FF8A8A; border-color: #5A2B2B; }
.kd-alasan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .kd-alasan button { padding: 14px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; } .kd-alasan button:hover { border-color: var(--brand); }
.kz-it .tolak { color: var(--bad); font-size: 12.5px; font-weight: 700; margin-top: 3px; } .badge.tolak { background: var(--bad-soft); color: var(--bad); }
.kz-cs { display: flex; gap: 8px; align-items: center; padding: 6px 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); } .kz-cs[hidden] { display: none; }

.kz-top .jam-live, .kd-top #jam, .kd-top #kd-jam { color: var(--muted, #9AA3AF); } @media (max-width: 760px) { .kz-top .jam-live { display: none; } }

/* Android edge-to-edge (APK TWA di Android 15+, tablet dengan bilah gestur) & layar berponi: head.hbs memakai viewport-fit=cover,
   jadi halaman tergambar di bawah bilah sistem → sisakan ruangnya. Nilai env() = 0 di perangkat tanpa bilah/poni. */
.kz, .kd { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.kz-toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .kz-cart { top: calc(56px + env(safe-area-inset-top)); padding-bottom: env(safe-area-inset-bottom); }
  .kz-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
/* Tinggi layar penuh = area yang benar-benar terlihat (diukur app.js → --tinggi-layar). Di sebagian WebView Android (APK TWA)
   100dvh lebih besar dari area terlihat, sehingga baris Simpan / Ke dapur / Bayar terdorong ke balik bilah navigasi. */
body.app-full, .kz, .kd { height: var(--tinggi-layar, 100dvh); }

/* popup pesanan mandiri masuk */
.ms-kartu { border: 2px solid var(--brand); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: var(--panel); }
.ms-kartu:last-child { margin-bottom: 0; }
.ms-kepala { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ms-no { font-size: 26px; font-weight: 800; line-height: 1; } .ms-info { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ms-item { margin: 10px 0 0; padding: 8px 10px; background: var(--panel2); border-radius: 10px; font-size: 15px; }
.ms-item div + div { margin-top: 4px; } .ms-item b { display: inline-block; min-width: 30px; } .ms-item small { display: block; color: var(--muted); padding-left: 30px; }
.ms-aksi { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .ms-aksi .btn { flex: 1; min-width: 120px; }

.kz-badge.jalan { background: var(--brand); }
.ms-judul { margin: 18px 0 8px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ms-kartu.jalan { border-width: 1px; border-color: var(--line, #ddd); }
.ms-no.sm { font-size: 20px; } .ms-item.kecil { font-size: 14px; } .ms-item .kz-st { margin-left: 6px; font-size: 11px; }

.tb-jalan { margin-top: 8px; } .tb-lunas-jalan { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.tj-atas { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tj-item { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; } .tj-item .kz-st { margin-left: 4px; }
.tj-aksi { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .tj-aksi .btn { flex: 1; min-width: 110px; }

/* modal pelanggan: kolom cari tetap di atas, tinggi tetap supaya tidak melompat saat hasil berubah */
#d-pel[open] { height: min(600px, calc(100dvh - 24px)); }
#d-pel .pel-cari { flex-shrink: 0; display: flex; gap: 8px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
#d-pel .pel-cari input { flex: 1; min-width: 0; }
#d-pel .pel-cari .btn { flex-shrink: 0; white-space: nowrap; }
#d-pel-baru form { display: contents; }

/* Keterangan kartu menu: isi paket / deskripsi (maks 2 baris), harga rata bawah */
.kz-prod .im { position: relative; }
.kz-prod .tx { flex: 1; display: flex; flex-direction: column; }
.kz-prod .ket { font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kz-prod .tx .hg { margin-top: auto; padding-top: 4px; }
.kz-prod .pk { position: absolute; left: 8px; bottom: 8px; background: rgba(27,20,16,.72); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; }

/* Label status antrean offline */
.kz .badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.kz .badge.ok { background: #e3f3e8; color: #1c6b37; }
.kz .badge.warn { background: #fff1d6; color: #8a5300; }
.kz .badge.bad { background: var(--bad-soft); color: var(--bad); }

/* Catatan pesanan: selalu terlihat di keranjang kasir & layar dapur */
.kz-cat { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 8px 10px; border: 1px solid #f0c36d; border-left: 4px solid #e09b1a; border-radius: 8px; background: #fff6e0; color: #6b4300; font: inherit; font-size: 13px; line-height: 1.35; cursor: pointer; white-space: pre-wrap; word-break: break-word; }
.kz-cat b { color: #8a5300; }
#b-catatan.ada { background: #fff1d6; color: #8a5300; border-color: #e09b1a; font-weight: 700; }
.kd-cat { margin: 0 12px 8px; padding: 7px 10px; border-radius: 8px; background: #3D2E08; border: 1px solid #E0A526; color: #FFD166; font-size: 15px; font-weight: 800; line-height: 1.3; white-space: pre-wrap; word-break: break-word; }

/* pilihan saluran (GoFood/GrabFood) di keranjang */
.kz-sal { appearance: none; -webkit-appearance: none; padding-right: 11px; max-width: 150px; }
.kz-sal.set { background: #e8f6ec; color: #13843d; border-color: transparent; }
:root[data-theme="dark"] .kz-sal.set { background: #183a24; color: #7fdc9c; }

/* tombol tukar poin per menu di keranjang */
.kz-tukar { border: 1px solid var(--line); background: var(--panel); color: var(--brand); font: 800 12px inherit; border-radius: 99px; padding: 4px 10px; cursor: pointer; white-space: nowrap; margin-left: 4px; } .kz-tukar:hover { background: var(--brand-soft); border-color: transparent; }
.kz-prod .ss { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; } .kz-prod .ss.tipis { color: var(--bad); }

/* ===== Kasir HP gaya aplikasi Android (≤600px, ada navigasi bawah) ===== */
@media (max-width: 600px) {
  .kz.ada-nb .kz-top #dd-layar, .kz.ada-nb .kz-top a.kz-btn[href="/"], .kz.ada-nb .kz-top a[href="/shift"], .kz.ada-nb .kz-top [data-tema], .kz.ada-nb .kz-top .jam-live { display: none !important; }
  .kz.ada-nb .kz-top { min-height: 60px; padding: 8px 8px 8px 12px; }
  .kz.ada-nb .kz-outlet b { max-width: 150px; font-size: 16px; }
  .kz.ada-nb .kz-top .kz-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .kz.ada-nb .kz-menu { padding: 8px 12px 0; }
  .kz.ada-nb .kz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
  .kz.ada-nb .kz-fab { bottom: calc(86px + env(safe-area-inset-bottom)); left: 12px; right: 12px; min-height: 56px; border-radius: 16px; }
  .kz.ada-nb .kz-cart { z-index: 45; border-radius: 24px 24px 0 0; }
  .kz.ada-nb .botnav { z-index: 30; }
  .kz.ada-nb .kz-go1 { min-height: 52px; }
  .kz.ada-nb .kz-cart { top: calc(60px + env(safe-area-inset-top)); }
  .kz.ada-nb .kz-fab { font-family: inherit; font-size: 16px; font-weight: 700; padding: 0 16px; }
  .kz.ada-nb .kz-fab .fab-lbl { font-weight: 600; }
  .kz.ada-nb .kz-prod { border-radius: 16px; } .kz.ada-nb .kz-prod .im { width: 100%; aspect-ratio: auto; height: 76px; font-size: 26px; }
  .kz.ada-nb .kz-prod .jml { font-family: inherit; font-size: 13px; font-weight: 800; line-height: 26px; min-width: 26px; height: 26px; }
}
.fab-lbl { display: none; } @media (max-width: 600px) { .kz.ada-nb .fab-lbl { display: inline; } }

/* ===== Kasir tablet (601–1199px, ada rail): rail | produk | keranjang selalu terlihat ===== */
@media (min-width: 601px) and (max-width: 1199px) {
  .kz.ada-nb { padding-left: calc(88px + env(safe-area-inset-left)); }
  .kz.ada-nb .kz-top a.kz-btn[href="/"], .kz.ada-nb .kz-brand { display: none; }
  .kz.ada-nb .kz-prod { border-radius: 16px; } .kz.ada-nb .kz-prod .im { width: 100%; aspect-ratio: auto; height: 84px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .kz.ada-nb .kz-body { grid-template-columns: minmax(0, 1fr) clamp(330px, 45vw, 380px); }
  .kz.ada-nb .kz-cart { position: static; inset: auto; top: auto; transform: none; transition: none; z-index: auto; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .kz.ada-nb .kz-fab, .kz.ada-nb .kz-tutup { display: none !important; }
  .kz.ada-nb .kz-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding-bottom: 16px; }
  .kz.ada-nb .kz-go1 { min-height: 52px; }
  .kz.ada-nb .kz-cart { min-width: 0; } .kz.ada-nb .kz-act { flex-wrap: wrap; } .kz.ada-nb .kz-act .kz-btn2 { flex: 1 1 auto; min-width: 44px; min-height: 44px; white-space: nowrap; } .kz.ada-nb .kz-act #b-tagihan, .kz.ada-nb .kz-act #b-batal, .kz.ada-nb .kz-act #b-lain { flex: 0 0 44px; padding: 0; }
}
