/* style-bar.css - the DESIGN of: the bar: menu, ordering, tabs, check-in welcome. Part of the old single style.css (split 2026-11-03); loaded in the order listed in index.html. */
/* --- the bar: menu, ordering, tabs (2026-10-31) --- */
#app-screen > #bar-view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
#app-screen > #bar-view.hidden { display: none !important; }
#bar-view .topbar span#bar-title { font-weight: 600; }
#bar-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.bar-admin-nav { display: flex; gap: 4px; padding: 6px 8px; background: #1C1C1E; border-bottom: 1px solid #2C2C2E; overflow-x: auto; }
.bar-admin-nav button { flex: 1; padding: 7px 6px; font-size: 13px; background: #2C2C2E; color: #EDEDED; white-space: nowrap; }
.bar-admin-nav button.on { background: #06C755; color: #08170D; }
.bar-count { background: #FF6B60; color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 2px; }
.bar-note { color: #9A9A9A; font-size: 13px; }
.bar-note.error { color: #FF6B60; } .bar-note.ok { color: #2FDE76; }
.bar-pad { padding: 10px 14px 80px; display: flex; flex-direction: column; gap: 6px; }
.bar-pad > * { flex-shrink: 0; }
.bar-checkin { margin: 8px 10px 0; padding: 10px 12px; border-radius: 10px; background: #3A2A12; color: #FFD39A; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.bar-happy { margin: 8px 10px 0; padding: 8px 12px; border-radius: 10px; background: #1F3A26; color: #9CF2B8; font-weight: 600; text-align: center; }
.bar-menu { flex: 1; min-height: 0; display: flex; }
.bar-tabs { width: 96px; flex-shrink: 0; overflow-y: auto; background: #18181A; border-right: 1px solid #2C2C2E; display: flex; flex-direction: column; }
.bar-tabs button { background: transparent; color: #B8B8C0; text-align: left; padding: 12px 8px; font-size: 13px; font-weight: 600; border-radius: 0; border-left: 3px solid transparent; }
.bar-tabs button.on { color: #FFFFFF; background: #232325; border-left-color: #06C755; }
.bar-items { flex: 1; overflow-y: auto; padding: 4px 10px 90px; }
.bar-sec { margin: 14px 0 6px; font-size: 15px; color: #EDEDED; }
.bar-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #232325; }
.bar-item img, .bar-nophoto { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #2A2A2C; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bar-nophoto.big { width: 120px; height: 120px; font-size: 40px; }
.bar-item-text { flex: 1; min-width: 0; }
.bar-item-name { font-weight: 600; font-size: 14.5px; }
.bar-item-desc { font-size: 12px; color: #9A9A9A; margin-top: 2px; }
.bar-item-price { font-size: 14px; color: #2FDE76; font-weight: 600; margin-top: 3px; }
.bar-item-price s { color: #77777C; font-weight: 400; font-size: 12px; }
.bar-qty { display: flex; align-items: center; gap: 6px; }
.bar-qty button { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; }
.bar-qty span { min-width: 16px; text-align: center; font-weight: 700; }
.bar-cart { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #121212 30%); }
.bar-cart button { width: 100%; padding: 14px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.bar-lines { list-style: none; margin: 6px 0; padding: 0; }
.bar-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #232325; font-size: 14px; }
.bar-lines li.bar-total { font-weight: 700; font-size: 16px; border-bottom: none; }
.bar-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #2C2C2E; color: #EDEDED; margin-right: 4px; }
.bar-chip.st-pending { background: #3A2A12; color: #FFD39A; } .bar-chip.st-making { background: #1A2633; color: #8CC8FF; }
.bar-chip.st-ready { background: #1F3A26; color: #9CF2B8; } .bar-chip.st-cancelled { background: #3A1A1A; color: #FF9A92; }
.bar-board-head { display: flex; gap: 8px; padding: 8px 10px; }
.bar-board { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 40px; }
.bar-card { background: #1C1C1E; border: 1px solid #2C2C2E; border-left: 4px solid #FFB547; border-radius: 12px; padding: 10px 12px; }
.bar-card.st-making { border-left-color: #4FA8FF; } .bar-card.st-ready { border-left-color: #2FDE76; }
.bar-card.st-delivered, .bar-card.st-cancelled { opacity: .65; border-left-color: #555; }
.bar-card-head { display: flex; align-items: center; gap: 10px; }
.bar-card-head > div { flex: 1; }
.bar-card-head .avatar { cursor: pointer; }
.bar-wait { font-size: 12px; color: #9A9A9A; }
.bar-card-lines { list-style: none; margin: 8px 0 4px; padding: 0; font-size: 15px; }
.bar-card-note { font-size: 13px; color: #FFD39A; margin: 4px 0; }
.bar-card-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.bar-card-actions button { padding: 8px 12px; font-size: 14px; }
.bar-card-total { margin-left: auto; font-weight: 700; }
#bar-person { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.92); overflow-y: auto; }
#bar-person-inner { max-width: 520px; margin: 0 auto; padding: 50px 18px 30px; text-align: center; }
#bar-person-close { position: fixed; top: 10px; right: 14px; background: transparent; color: #EDEDED; font-size: 34px; }
.bar-person-photo { width: min(80vw, 360px); height: min(80vw, 360px); border-radius: 20px; object-fit: cover; margin: 0 auto; display: block; }
.bar-person-photo.none { background: #06C755; color: #08170D; font-size: 120px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bar-people { list-style: none; margin: 0; padding: 0; }
.bar-people li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #232325; }
.bar-person-row { flex: 1; min-width: 0; }
.bar-person-pay { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bar-find input { margin-bottom: 4px; }
.bar-edit-tabs, .bar-edit-items { list-style: none; margin: 0; padding: 0; }
.bar-edit-tabs li, .bar-edit-items li { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #232325; }
.bar-edit-tabs li.on { background: #1F3A26; border-radius: 8px; }
.bar-edit-name { flex: 1; font-weight: 600; cursor: pointer; }
.bar-edit-items li img, .bar-edit-items li .bar-nophoto { width: 48px; height: 48px; }
.bar-edit-items li.soldout { opacity: .55; }
.bar-soldout { flex-direction: row; align-items: center; gap: 4px; margin: 0; font-size: 12px; white-space: nowrap; }
.bar-photo-pick { display: flex; gap: 12px; align-items: center; }
.bar-photo-pick img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.bar-photo-pick > div { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bar-file-btn { display: block; text-align: center; padding: 10px; border-radius: 8px; background: #06C755; color: #08170D; font-weight: 600; font-size: 14px; margin: 0; cursor: pointer; }
.bar-file-btn.secondary { background: #2C2C2E; color: #EDEDED; }
.bar-qr { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 10px; align-self: center; }
.bar-settings h3 { margin: 14px 0 2px; }
.bar-happy-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.bar-order-line > div { flex: 1; }

/* the bar, part 2 (2026-10-31): reports, PayPay */
.bar-period{display:flex;gap:6px;margin-bottom:10px}
.bar-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:6px}
.bar-stats>div{background:#1C1C1E;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.bar-stats span{font-size:.8em;opacity:.7}
.bar-stats b{font-size:1.3em}
.bar-bars{display:flex;flex-direction:column;gap:4px}
.bar-bar{display:grid;grid-template-columns:3.2em 1fr auto;align-items:center;gap:8px;font-size:.85em}
.bar-bar i{display:block;height:12px;min-width:2px;border-radius:0 4px 4px 0;background:#06C755}
.bar-bar b{font-weight:600;white-space:nowrap}
.paypay-btn{background:#ff0033;color:#fff;border:none;width:100%;margin:8px 0}
.bar-paypay-amount{font-size:2em;font-weight:700;text-align:center;margin:6px 0}
.bar-steps{padding-left:1.2em;margin:8px 0}
.bar-link-btn{display:block;text-align:center;padding:12px;border-radius:12px;text-decoration:none;font-weight:700}
.bar-pay-big{width:100%;font-size:1.15em;padding:14px;margin:8px 0}
#btn-bar-cart.bar-pay-bar{background:#FF9F0A;color:#000}

/* check-in welcome + "how can we find you?" + friends on my tab (Kuma 2026-11-02) */
.welcome-head { text-align: center; margin-bottom: 6px; } .welcome-emoji { font-size: 56px; } .welcome-head h2 { margin: 4px 0; }
.findme-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.findme-chips .chip { width: auto; padding: 6px 10px; border-radius: 16px; font-size: 14px; background: #2C2C2E; color: #fff; }
.find-me { color: #FFD60A; font-weight: 600; }
.bar-findme-line { font-size: 14px; margin: 8px 0; } .bar-findme-line .link { background: none; border: 0; color: #8CC8FF; width: auto; padding: 0 4px; }
.bar-friend-head { font-weight: 700; color: #FFD60A; } .bar-order-line.friend { padding-left: 14px; opacity: .9; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
/* Orders board (Kuma 2026-11-04): the WHOLE card changes colour with the step so every admin sees at a glance; all step buttons stay, the current one is lit,
   the rest grey; the staff name sits under the step they pressed. A brand-new order pulses amber until someone presses Making. */
.bar-card.st-pending { background: #3A2A10; border-color: #FFB547; animation: barNew 1.6s ease-in-out infinite; }
.bar-card.st-making { background: #10283F; border-color: #4FA8FF; }
.bar-card.st-ready { background: #0F3320; border-color: #2FDE76; }
@keyframes barNew { 50% { box-shadow: 0 0 0 3px #FFB54766; } }
.bar-step { display: inline-flex; flex-direction: column; align-items: center; }
.bar-step button { background: #3A3A3C; color: #BBB; }
.bar-step button.on.step-making { background: #4FA8FF; color: #04223D; }
.bar-step button.on.step-ready { background: #2FDE76; color: #04230F; }
.bar-step button.on.step-delivered { background: #8E8E93; color: #111; }
.bar-step button:disabled { opacity: .35; }
.bar-by { font-size: 11px; color: #A8D8FF; min-height: 14px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-board.large .bar-card { padding: 14px 16px; font-size: 19px; }
.bar-board.large .bar-card-lines { font-size: 22px; }
.bar-board.large .bar-card-actions button { padding: 12px 16px; font-size: 18px; }
.bar-board.large .bar-by { font-size: 14px; max-width: 120px; }
select.bar-compact { width: auto; padding: 4px 8px; font-size: 13px; }
.bar-paid-done { background: #0F3320; border: 2px solid #2FDE76; border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 10px; }
.bar-paid-done h2 { color: #2FDE76; margin: 4px 0; } .bar-paid-check { font-size: 44px; }
button.bar-pay-big:disabled { background: #3A3A3C; color: #888; }

/* Bar hopping: every bar I'm checked in at has its own colour (1st gold, 2nd blue ...) */
.chat-place-row.here { border-left: 5px solid var(--barcol, #FFB547); }
#bar-view #bar-title { border-bottom: 4px solid var(--barcol, transparent); padding-bottom: 2px; }
.bar-where { border: 3px solid; border-radius: 14px; padding: 14px; text-align: center; margin: 6px 0 10px; }
.bar-where b { display: block; font-size: 28px; } .bar-where small { color: #B5B5BA; }

/* "Kappy · <Bar>" host chat card: the bar's colour on the left */
#chat-list li.host-chat { border-left: 5px solid var(--barcol, #FFB547); }

/* All orders (history) tab */
.hist-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hist-row { background: #1C1C1E; border-radius: 10px; border-left: 4px solid #555; } .hist-row.st-delivered { border-left-color: #2FDE76; } .hist-row.st-cancelled { border-left-color: #FF6B60; opacity: .7; }
.hist-row.st-pending { border-left-color: #FFB547; } .hist-row.st-making { border-left-color: #4FA8FF; } .hist-row.st-ready { border-left-color: #2FDE76; }
.hist-line { display: flex; align-items: center; gap: 8px; padding: 9px 10px; cursor: pointer; }
.hist-time { color: #9A9A9A; font-variant-numeric: tabular-nums; } .hist-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hist-price { font-weight: 700; }
.hist-more { padding: 2px 12px 10px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.hist-lines { list-style: none; padding: 0; margin: 4px 0; } .hist-lines li { display: flex; justify-content: space-between; }
