.bar-workspace-nav { display:flex; gap:.35rem; flex-wrap:wrap; margin-block:0 1rem; padding:.4rem;
  border:1px solid var(--line,#dedfe8); border-radius:14px; background:var(--surface,#fff); }
.bar-workspace-nav button { border:0; border-radius:9px; min-height:46px; padding:.45rem .85rem; background:transparent;
  color:inherit; font:inherit; font-weight:650; touch-action:manipulation; }
.bar-workspace-nav button[aria-current=page] { color:#332507; background:#f1d79f; }
.bar-workspace-nav button:focus-visible { outline:2px solid #a86d14; outline-offset:2px; }
.bar-section, .bar-home, .bar-history { padding:clamp(1rem,2vw,1.5rem); margin-block-end:1rem; }
.bar-workspace-body { animation:bar-view-in 190ms ease-out; }
.bar-workspace-body .btn { min-height:44px; touch-action:manipulation; }
.bar-heading, .bar-section-head { display:flex; align-items:center; gap:1rem; }
.bar-section-head { justify-content:space-between; flex-wrap:wrap; margin-bottom:1rem; }
.bar-heading h2, .bar-heading p, .bar-section-head h2, .bar-section-head p { margin:0; }
.bar-heading img { border-radius:.8rem; }
.bar-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:.7rem; margin-block:1rem; }
.bar-metrics section, .bar-admin-card { padding:.85rem 1rem; border:1px solid var(--line,#dedfe8); border-radius:12px; }
.bar-metrics h3, .bar-metrics p, .bar-admin-card h3, .bar-admin-card p { margin:0; }
.bar-admin-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr)); gap:.85rem; }
.bar-admin-card { display:grid; grid-template-columns:3rem minmax(0,1fr); align-content:start; gap:.7rem; }
.bar-admin-card > :is(ul,.toolbar-actions) { grid-column:1/-1; margin:0; }
.bar-admin-card .bar-placeholder { color:#755315; background:#f9edd5; height:3rem; border-radius:.6rem; display:grid; place-items:center; }
.bar-admin-card img { width:3rem; height:3rem; object-fit:cover; border-radius:.6rem; }
.bar-admin-card .toolbar-actions { gap:.35rem; flex-wrap:wrap; }
.bar-input-lines { display:grid; gap:.55rem; margin-block:.6rem; }
.bar-input-line { display:grid; grid-template-columns:minmax(10rem,2fr) repeat(2,minmax(6rem,1fr)) auto; gap:.55rem;
  align-items:end; padding:.65rem; border:1px solid var(--line,#dedfe8); border-radius:10px; }
.bar-input-line > small { grid-column:1/-1; }
.bar-check-admin { display:flex; align-items:center; gap:.5rem; }
.bar-recipe-instructions { display:grid; gap:.35rem; }
.bar-staff { padding-inline-start:1rem; }
.bar-denoms { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:1rem; }
.bar-denoms fieldset { display:grid; grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr)); gap:.65rem; min-width:0;
  border:1px solid var(--line,#dedfe8); border-radius:12px; padding:.75rem; }
.bar-denoms input { min-width:0; width:100%; }
.bar-denom-step div:last-child { display:flex; }
.bar-denom-step button { min-width:44px; min-height:44px; flex:1; }
.bar-sale {
  --bar-bg:#111114; --bar-surface:#1b1b20; --bar-border:#393540; --bar-text:#f6f0e6; --bar-muted:#c9beae; --bar-gold:#edc774;
  box-sizing:border-box; width:100%; max-width:none; height:100vh; height:100dvh; max-height:none;
  padding:0; margin:0; border:0; background:var(--bar-bg); color:var(--bar-text); color-scheme:dark;
  overflow:hidden; overscroll-behavior:contain; font-variant-numeric:tabular-nums;
}
.bar-sale[open] { display:block; }
.bar-pos { height:100%; display:flex; flex-direction:column; }
.bar-pos-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.45rem 1rem;
  padding:calc(.58rem + env(safe-area-inset-top)) max(.85rem,env(safe-area-inset-right)) .58rem max(.85rem,env(safe-area-inset-left));
  border-bottom:1px solid var(--bar-border); }
.bar-pos-header h2, .bar-sale h3 { margin:0; }
.bar-pos-header h2 { font-size:clamp(1.2rem,2.4vw,1.7rem); }
.bar-pos-header > div:first-child span { color:var(--bar-gold); font-size:.72rem; font-weight:750; letter-spacing:.13em; }
.bar-pos-meta { display:flex; gap:.35rem .8rem; flex-wrap:wrap; color:var(--bar-muted); font-size:.86rem; }
.bar-network::before { content:""; display:inline-block; width:.42rem; height:.42rem; border-radius:50%; margin-inline-end:.38rem; background:#61c79b; }
.bar-network[data-online=false]::before { background:#f4a390; }
.bar-quick-actions { display:flex; flex-wrap:wrap; gap:.4rem; }
.bar-sale-status { margin:.38rem 1rem; color:var(--bar-gold); }
.bar-sale-body { display:grid; grid-template-columns:minmax(0,1.38fr) minmax(18rem,1fr); flex:1; min-height:0; overflow:hidden; }
.bar-catalog, .bar-order { min-width:0; min-height:0; padding:clamp(.8rem,2vw,1.3rem); overflow:auto; scrollbar-width:thin; }
.bar-catalog-head { display:flex; justify-content:space-between; align-items:center; gap:.7rem; }
.bar-catalog-head label { display:block; width:min(56%,20rem); }
.bar-catalog-head input { width:100%; }
.bar-order { display:flex; flex-direction:column; background:var(--bar-surface); border-inline-start:1px solid var(--bar-border); }
.bar-sale input, .bar-sale select { min-width:0; min-height:44px; background:#23232a; color:var(--bar-text);
  border:1px solid var(--bar-border); border-radius:9px; padding:.5rem .65rem; font:inherit; font-size:1rem; }
.bar-sale input::placeholder { color:var(--bar-muted); }
.bar-sale input[type=checkbox] { appearance:auto; inline-size:1.2rem; block-size:1.2rem; min-height:0; padding:0; accent-color:var(--bar-gold); }
.bar-jump { display:none; }
.bar-filters { display:flex; gap:.4rem; overflow-x:auto; scrollbar-width:thin; margin:.65rem 0 .8rem; padding-bottom:3px; }
.bar-filters button, .bar-pay-method button { flex:0 0 auto; border:1px solid var(--bar-border); background:#222128; color:var(--bar-text);
  min-height:44px; border-radius:99px; padding:.35rem .72rem; font:inherit; font-weight:650; touch-action:manipulation; }
.bar-filters button[aria-pressed=true], .bar-pay-method button[aria-pressed=true] { color:#241907; background:var(--bar-gold); border-color:var(--bar-gold); }
.bar-products { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr)); align-content:start; gap:.6rem; }
.bar-card-wrap { min-width:0; display:flex; flex-direction:column; gap:.25rem; }
.bar-product { display:grid; min-width:0; width:100%; min-height:120px; flex:1; gap:.3rem; text-align:start; overflow-wrap:anywhere;
  padding:.37rem; background:var(--bar-surface); border:1px solid var(--bar-border); color:var(--bar-text);
  border-radius:13px; font:inherit; touch-action:manipulation; transition:transform 150ms ease,border-color 160ms ease; }
.bar-product-body { display:grid; gap:.2rem; padding:.2rem .35rem .36rem; }
.bar-product .bar-placeholder, .bar-product img { height:clamp(2.8rem,8vw,4.1rem); width:100%; border-radius:9px; }
.bar-product img { object-fit:cover; }
.bar-sale .bar-placeholder { display:grid; place-items:center; color:#ecc879; font-size:1.3rem;
  background:linear-gradient(145deg,#322921,#24242c); }
.bar-sale .bar-placeholder.is-drink { background:linear-gradient(145deg,#3a2a36,#24242c); }
.bar-product-price, .bar-total strong { color:var(--bar-gold); font-weight:750; }
.bar-product small, .bar-order-lines small { color:var(--bar-muted); }
.bar-product .sold-out { color:#ffac9f; }
.bar-sale .btn { min-height:44px; background:#222128; color:var(--bar-text); border-color:var(--bar-border);
  box-shadow:none; touch-action:manipulation; }
.bar-sale .btn-primary { background:var(--sx-gradient-button,var(--bar-gold)); border-color:var(--bar-gold); color:var(--sx-button-ink,#19140a); min-height:52px; }
.bar-sale .btn-primary:not(:disabled):hover { background:var(--sx-gradient-button,#f4d99c); color:var(--sx-button-ink,#19140a); }
.bar-sale button:disabled { opacity:.57; }
.bar-sale :is(button,input,select):focus-visible { outline:2px solid var(--bar-gold); outline-offset:2px; }
.bar-sale :is(.btn,.bar-product):not(:disabled):hover { border-color:var(--bar-gold); }
.bar-sale .bar-product:not(:disabled):active { transform:scale(.97); }
.bar-order-head,.bar-total { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.65rem; }
.bar-order-lines { flex:1; min-height:3rem; overflow:auto; list-style:none; padding:0; margin:.55rem 0; scrollbar-width:thin; }
.bar-order-lines li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.35rem .5rem;
  padding:.6rem 0; border-bottom:1px solid var(--bar-border); overflow-wrap:anywhere; }
.bar-line-name { display:grid; gap:.15rem; }
.bar-stepper { display:flex; align-items:center; gap:.4rem; grid-column:1/-1; }
.bar-stepper .btn { width:44px; padding:0; font-size:1.12rem; }
.bar-stepper output { min-width:1.2rem; text-align:center; }
.bar-order-payment { display:grid; gap:.55rem; }
.bar-total { font-size:1.23rem; padding-block:.45rem; border-top:1px solid var(--bar-border); }
.bar-order-payment > .btn { width:100%; }
.bar-empty { color:var(--bar-muted); }
.bar-sheet-host { position:absolute; inset:0; z-index:2; isolation:isolate; }
.bar-sheet-host[hidden] { display:none; }
body:has(> .bar-sale[open][data-pos-scene=checkout]) { overflow:hidden; }
.bar-sale[data-pos-scene=checkout] .bar-sheet {
  inset-block:var(--bar-checkout-top,0px) auto;
  height:min(100%,var(--bar-checkout-height,100%));
}
.bar-sale[data-pos-scene=checkout] .bar-sheet-body {
  overscroll-behavior:contain;
  scroll-padding-block:1rem;
}
.bar-sheet-content > footer.bar-pay-footer {
  position:static; flex:none; margin:0;
  padding:.55rem clamp(.7rem,2vw,1.2rem);
  border-top:1px solid var(--bar-border);
}
.bar-sheet { position:absolute; inset:0; display:grid; place-items:center; overflow:hidden; background:#08080bc7;
  padding:max(.55rem,env(safe-area-inset-top)) max(.65rem,env(safe-area-inset-right)) max(.55rem,env(safe-area-inset-bottom))
  max(.65rem,env(safe-area-inset-left)); }
.bar-sheet-content { width:min(100%,46rem); max-height:100%; min-height:0; background:var(--bar-surface); border:1px solid var(--bar-border);
  border-radius:17px; display:flex; flex-direction:column; overflow:hidden; animation:bar-view-in 180ms ease-out; }
.bar-sheet-content > header { display:flex; align-items:center; justify-content:space-between; gap:.55rem;
  padding:.65rem 1rem; border-bottom:1px solid var(--bar-border); }
.bar-sheet-body { display:flex;flex-direction:column; gap:.65rem; padding:clamp(.7rem,2vw,1.2rem); min-height:0; overflow:auto; scrollbar-width:thin; }
.bar-sheet-body>*{flex-shrink:0}.bar-sheet-body>[hidden]{display:none}.bar-adjustment-presets .btn{white-space:nowrap}
.bar-sheet-body p { margin:0; }
.bar-checkout-total { display:grid; gap:.2rem; border-radius:12px; padding:.7rem .85rem; background:#222128; }
.bar-checkout-total span { color:var(--bar-muted); }
.bar-checkout-total strong { font-size:clamp(1.5rem,4vw,2.25rem); color:var(--bar-gold); }
.bar-pay-summary { margin:0; padding:0; list-style:none; max-height:8rem; overflow:auto; scrollbar-width:thin; }
.bar-pay-summary li { display:flex; justify-content:space-between; gap:.7rem; padding:.35rem .1rem; border-bottom:1px solid var(--bar-border); }
.bar-pay-method, .bar-pay-currency, .bar-pay-footer { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; }
.bar-pay-method button { min-height:48px; flex:1; border-radius:9px; }
.bar-pay-currency label, .bar-received { display:flex; align-items:center; gap:.6rem; color:var(--bar-muted); }
.bar-received input { width:min(100%,14rem); font-size:1.2rem; }
.bar-change { font-weight:760; color:var(--bar-gold); font-size:1.08rem; }
.bar-pay-alert { color:#ffac9f; }
.bar-pay-note { color:var(--bar-muted); }
.bar-pay-footer { margin-top:.35rem; justify-content:flex-end; }
.bar-pay-footer .btn-primary { flex:1; }
.bar-quick-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.55rem; }
.bar-quick-totals p { padding:.55rem; border:1px solid var(--bar-border); border-radius:10px; }
.bar-quick-totals strong { display:block; }
.bar-drink-hero { display:flex; align-items:center; gap:.85rem; flex-wrap:wrap; }
.bar-drink-hero .bar-placeholder,.bar-drink-hero img { width:4.5rem; height:4.5rem; border-radius:10px; object-fit:cover; }
.bar-preparation { white-space:pre-line; }
@keyframes bar-view-in { from { opacity:.5; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (max-width:760px) {
  .bar-sale-body { display:block; overflow:auto; }
  .bar-catalog,.bar-order,.bar-order-lines { overflow:visible; }
  .bar-order { border-inline-start:0; border-top:1px solid var(--bar-border); padding-bottom:calc(.85rem + env(safe-area-inset-bottom)); }
  .bar-pos-header { padding-block-start:calc(.5rem + env(safe-area-inset-top)); }
  .bar-pos-meta { order:3; flex-basis:100%; }
  .bar-jump { display:inline; }
  .bar-products { grid-template-columns:repeat(auto-fill,minmax(min(100%,8rem),1fr)); }
  .bar-input-line { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bar-sheet { align-items:end; }
}
@media (max-width:380px) {
  .bar-quick-actions .btn { padding-inline:.5rem; }
  .bar-sheet-content > header { padding-inline:.65rem; }
}
@media (prefers-reduced-motion:reduce) {
  .bar-workspace-body,.bar-sheet-content { animation:none; }
  .bar-sale .bar-product { transition:none; }
  .bar-sale .bar-product:not(:disabled):active { transform:none; }
}

.bar-terminal{min-height:100dvh;background:#14120e;color:#f5e4bd;display:grid;place-items:center;padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box}.bar-terminal .panel{background:#242019;color:inherit;border:1px solid #7a673b;max-width:620px;width:100%;box-sizing:border-box}.bar-terminal :is(label,form){display:grid;gap:14px}.bar-terminal :is(input,select,button){min-height:56px;font-size:20px;padding:12px;border-radius:12px;max-width:100%;box-sizing:border-box}.bar-terminal button{background:#e5bf67;color:#17130b;cursor:pointer}.bar-terminal a{color:#f0d697}.attendance-buttons{display:flex;gap:12px;flex-wrap:wrap}.attendance-buttons button{flex:1}#attendance-code{display:block;overflow-wrap:anywhere;font:700 24px monospace;letter-spacing:2px;margin:24px 0}

.bar-terminal{font-family:system-ui,sans-serif}.bar-terminal #attendance-terminal{padding:26px;display:grid;gap:16px;border-radius:20px;box-shadow:0 20px 70px #0005}.bar-terminal h1{font-size:28px;line-height:1.15}.bar-terminal p{line-height:1.5}.bar-terminal :is(input,select){background:#171510;color:#fff0cb;border:1px solid #9c8146;outline-offset:4px}.bar-terminal select option{background:#171510;color:#fff0cb}.bar-terminal [name=pin]{letter-spacing:5px;font-size:26px}.bar-terminal label{color:#ffebba}.bar-terminal button{border:1px solid #f4d68d;font-weight:650}.bar-terminal button:disabled{opacity:.55;cursor:wait}.bar-terminal a{padding:8px 0}

.bar-terminal select{appearance:none;-webkit-appearance:none;background-color:#171510!important;color:#fff0cb;color-scheme:dark;padding-right:44px;background-image:linear-gradient(45deg,transparent 50%,#e5bf67 50%),linear-gradient(135deg,#e5bf67 50%,transparent 50%);background-position:calc(100% - 23px) center,calc(100% - 17px) center;background-size:6px 6px;background-repeat:no-repeat}
.bar-adjustment-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.bar-adjustment-tabs button[aria-pressed=true]{background:#ecd18c;color:#241c0d;border-color:#ecd18c}.bar-adjustment-presets{display:flex;flex-wrap:wrap;gap:6px}.bar-adjustment-presets .btn{min-height:44px;flex:1 0 52px;padding:8px}.bar-adjustment-presets button[aria-pressed=true]{border-color:#ecd18c;box-shadow:inset 0 0 0 1px #ecd18c}.bar-tip-options :is(input,select){box-sizing:border-box;min-height:44px;width:100%;background:#172238;color:#f7f0dc;border:1px solid #8b96af;border-radius:8px;padding:10px;font:inherit}.bar-tip-options{min-width:0}.bar-tip-options p:empty{display:none}.bar-tip-options label{display:grid;gap:6px;margin-top:8px}.bar-sale .bar-pay-progress{gap:10px}.bar-recent-dialog [data-void-form]{display:grid;gap:12px}.bar-recent-dialog [data-void-form] label{display:grid;gap:8px}.bar-recent-dialog [data-void-form] input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:44px}.bar-recent-dialog .bar-receipt-grid>section{min-width:0}.bar-recent-dialog [data-recent=void]{margin-top:8px;min-height:44px}
@media(max-height:850px) and (min-width:701px){.bar-sale .bar-sheet-content{max-height:calc(100dvh - 24px)}.bar-sale .bar-sheet-body{padding:16px}.bar-sale .bar-checkout-total{padding:14px}.bar-sale .bar-checkout-total strong{font-size:38px}.bar-sale .bar-pay-method .btn{min-height:74px}.bar-sale .bar-tip-options{padding:10px}.bar-sale .bar-tip-options legend{font-size:13px}}
.bar-close-disclosure > summary{font-weight:750;cursor:pointer}
.bar-close-when{display:block;font-weight:450;overflow-wrap:anywhere;margin-top:4px}
.bar-close-ledger{display:grid;gap:12px;margin-top:12px;min-width:0}
.bar-close-currencies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bar-close-currencies section{min-width:0;padding:10px;border:1px solid var(--ui-border,#54452f);border-radius:10px}
.bar-close-currencies h4{margin:0 0 6px}
.bar-close-ledger details > summary{margin-block:8px;cursor:pointer}
.bar-close-values{margin:0;display:grid;gap:4px}
.bar-close-values div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px}
.bar-close-values :is(dt,dd){margin:0;min-width:0;overflow-wrap:anywhere}
.bar-close-values dd{max-width:min(48vw,260px);text-align:end;font-weight:650;font-variant-numeric:tabular-nums}
@media(max-width:640px){.bar-close-currencies{grid-template-columns:minmax(0,1fr)}}
