/* Menu QR meja KasirTA (halaman pelanggan, mobile-first) */
:root { --brand: #F26A1B; --brand-d: #D4560D; --ink: #14181F; --text: #3A4250; --muted: #6B7280; --line: #ECE7E2; --bg: #FAF7F4; --card: #fff; --ok: #16A34A; --warn: #D97706; --bad: #DC2626; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
.m-wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 110px; }
.m-head { background: var(--ink); color: #fff; padding: 18px 16px 16px; }
.m-head small { display: block; color: #FDBA8C; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.m-head h1 { margin: 4px 0 6px; font-size: 22px; line-height: 1.2; }
.m-table { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; }
.m-note { font-size: 13px; color: #C9CED6; margin: 8px 0 0; }
.m-cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a { flex: none; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.m-cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-search { margin: 12px 16px 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.m-search input { flex: 1; border: 0; outline: 0; padding: 11px 0; background: none; }
.m-sec { padding: 6px 16px 0; scroll-margin-top: 60px; }
.m-sec h2 { font-size: 16px; color: var(--ink); margin: 18px 0 10px; }
.m-item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 12px 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.m-item .t { flex: 1; min-width: 0; }
.m-item b { display: block; color: var(--ink); font-size: 15px; }
.m-item p { margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }
.m-item .pr { font-weight: 800; color: var(--brand-d); font-size: 14px; }
.m-item .q { font-size: 12px; font-weight: 800; color: #fff; background: var(--ok); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.m-item.out { opacity: .5; }
.m-add { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
.m-add:disabled { background: #C9CED6; }
.m-empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.m-bar button { width: 100%; max-width: 528px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; background: var(--ink); color: #fff; padding: 14px 18px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px rgba(20,24,31,.25); }
.m-bar button span:first-child { display: flex; align-items: center; gap: 10px; }
.m-bar .n { background: var(--brand); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.m-sheet { position: fixed; inset: 0; z-index: 30; display: none; background: rgba(20,24,31,.5); align-items: flex-end; justify-content: center; }
.m-sheet.on { display: flex; }
.m-sheet .box { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.m-sheet h3 { margin: 0 0 4px; color: var(--ink); font-size: 18px; }
.m-sheet .x { float: right; border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.m-grp { margin: 14px 0 4px; font-weight: 800; color: var(--ink); font-size: 14px; }
.m-grp em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 4px; }
.m-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 6px; cursor: pointer; }
.m-opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.m-opt span { flex: 1; }
.m-opt small { color: var(--muted); font-weight: 700; }
.m-opt:has(input:checked) { border-color: var(--brand); background: #FFF6F0; }
.m-sheet textarea, .m-sheet input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; outline-color: var(--brand); }
.m-qty { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.m-qty button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; font-weight: 800; cursor: pointer; }
.m-qty b { min-width: 28px; text-align: center; font-size: 18px; color: var(--ink); }
.m-btn { width: 100%; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; padding: 14px; font-size: 15px; cursor: pointer; }
.m-btn:disabled { opacity: .6; }
.m-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-line .t { flex: 1; min-width: 0; }
.m-line b { color: var(--ink); font-size: 14px; }
.m-line small { display: block; color: var(--muted); font-size: 12px; }
.m-line .act { display: flex; align-items: center; gap: 6px; }
.m-line .act button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.m-total { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); font-size: 17px; margin: 14px 0 6px; }
.m-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.m-err { color: var(--bad); font-weight: 700; font-size: 13px; margin: 8px 0; white-space: pre-line; }
.m-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px 16px; }
.m-foot a { color: var(--brand-d); font-weight: 700; text-decoration: none; }
/* status */
.s-card { background: #fff; margin: 16px; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.s-big { text-align: center; padding: 6px 0 14px; }
.s-big i { font-size: 46px; }
.s-big h2 { margin: 6px 0 2px; color: var(--ink); font-size: 20px; }
.s-big p { margin: 0; color: var(--muted); font-size: 13px; }
.s-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 0 16px; }
.s-steps div { text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.s-steps div::before { content: ''; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.s-steps div.on { color: var(--ink); }
.s-steps div.on::before { background: var(--ok); }
