.topbar-icon-button.pos-tables-button { display: inline-flex; align-items: center; width: auto; padding: 0 12px; gap: 8px; color: var(--brand-dark); }
#pos-tables-modal { padding: 12px; }
.hp-dialog { box-sizing: border-box; width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: none; overflow: hidden; padding: 12px; border-radius: 8px; background: var(--panel); color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.hp-dialog [hidden] { display: none !important; }
.hp-dialog > * { flex-shrink: 0; min-width: 0; }
.hp-visually-hidden, .hp-dialog [data-hp-retail] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp-heading, .hp-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-heading { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hp-heading > div { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; min-width: 0; }
.hp-heading h2 { margin: 0; font-size: 22px; }
.hp-heading p { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.hp-dialog button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 600; background: var(--panel); }
.hp-heading .icon-button { display: inline-flex; position: static; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hp-dialog :focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 2px; }
.hp-dialog [data-hp-retail] { color: var(--muted); font-size: 14px; }
.hp-dialog [data-hp-status] { padding: 16px; background: color-mix(in srgb, var(--brand) 8%, var(--panel)); border-left: 3px solid var(--brand); overflow-wrap: anywhere; }
.hp-dialog [data-hp-rooms] { list-style: none; padding: 0; margin: 20px 0; }
.hp-dialog li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.hp-dialog li span { color: var(--muted); }
.hp-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
#pos-tables-modal:is([data-hp-phase=error], [data-hp-phase=empty]) .hp-dialog { width: min(640px, calc(100vw - 24px)); height: auto; max-height: calc(100dvh - 24px); overflow: auto; }
#pos-tables-modal[data-hp-phase=error] [data-hp-status] { border-color: #b13d57; background: color-mix(in srgb, #b13d57 7%, var(--panel)); }
#pos-tables-modal[aria-busy=true] [data-hp-status]::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: hp-loading 1s linear infinite; }
@keyframes hp-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #pos-tables-modal[aria-busy=true] [data-hp-status]::before { animation: none; } }
.hp-actions button { color: var(--ink); }
.hp-actions .primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.hp-picker { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow: auto; }
.hp-picker:empty { display: none; }
.hp-picker > * { flex-shrink: 0; }
.hp-picker [data-hp-table-status] { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.hp-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-picker label { display: grid; gap: 4px; min-width: 0; font-size: 14px; font-weight: 600; }
.hp-picker input, .hp-picker select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; }
.hp-picker button { color: var(--ink); }
.hp-picker .primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.hp-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-map-heading h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.hp-zoom { display: flex; gap: 6px; flex-shrink: 0; }
.hp-zoom button { display: inline-flex; width: 44px; height: 44px; padding: 10px; }
.hp-zoom svg { width: 22px; height: 22px; }
.hp-zoom .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp-stage { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 auto; min-height: 240px; min-width: 0; }
.hp-picker [data-hp-map] { display: block; width: 100%; height: 100%; min-height: 240px; margin: 0; border: 1px solid var(--line); background: var(--surface-muted); touch-action: none; }
.hp-side { display: none; min-width: 0; min-height: 0; }
.hp-stage:is([data-selected=true], [data-list=true]) { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.hp-stage:is([data-selected=true], [data-list=true]) .hp-side { display: flex; flex-direction: column; overflow: auto; padding: 4px 12px; border-left: 1px solid var(--line); }
.hp-stage[data-selected=true] .hp-table-detail { order: -1; }
.hp-zoom [aria-pressed=true] { background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border-color: var(--brand); }
.hp-picker [data-hp-map] [role=button] { cursor: pointer; }
.hp-picker [data-hp-map] [role=button]:focus-visible > rect, .hp-picker [data-hp-map] [role=button]:focus-visible > ellipse { stroke: var(--brand-focus); stroke-width: 40; }
.hp-table-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.hp-table-list button { display: grid; gap: 4px; text-align: left; padding: 8px; border-left-width: 4px; overflow-wrap: anywhere; }
.hp-table-list button span { font-size: 14px; color: var(--muted); }
.hp-table-list [data-availability=Available] { border-left-color: #1b8c68; }
.hp-table-list [data-availability=Occupied] { border-left-color: #4175b5; }
.hp-table-list [data-availability=NeedsCleaning] { border-left-color: #b8860b; }
.hp-table-list [data-availability=Blocked] { border-left-color: #b13d57; }
.hp-table-list [aria-pressed=true] { outline: 2px solid var(--brand-focus); outline-offset: -2px; }
.hp-dialog .hp-table-detail { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
.hp-dialog .hp-table-detail > [data-hp-action=map] { align-self: flex-start; margin: 0; }
.hp-dialog .hp-detail-heading { display: grid; gap: 4px; }
.hp-dialog .hp-detail-heading h3 { font-size: 18px; line-height: 1.4; margin: 0; }
.hp-dialog .hp-detail-heading p { color: var(--muted); }
.hp-dialog .hp-detail-heading h3:focus { outline: none; }
.hp-dialog .hp-table-detail p { margin: 0; line-height: 1.5; }
.hp-dialog .hp-detail-body { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-dialog .hp-detail-status { font-weight: 600; }
.hp-dialog .hp-detail-actions { padding-top: 16px; border-top: 1px solid var(--line); }
.hp-dialog .hp-detail-actions button { width: 100%; }
.hp-dialog .hp-table-detail form { display: grid; gap: 12px; }
.hp-order { margin: 12px 0; }
.hp-order h4 { margin: 8px 0; font-size: 16px; }
.hp-order ul { list-style: none; margin: 0; padding: 0; }
.hp-pending { border-left: 3px solid #b8860b; padding: 12px; background: var(--surface-muted); }
.hospitality-ordering .pos-workspace > .cart-pane, .hospitality-ordering .product-pane > .pane-heading > button { display: none !important; }
.hospitality-ordering .pos-workspace { align-content: start; }
.ho-pane { min-width: 0; padding: 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; align-self: start; }
.ho-pane[hidden], .ho-context[hidden] { display: none !important; }
.ho-heading, .ho-actions, .ho-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ho-heading h2 { font-size: 20px; margin: 0; }
.ho-heading p { margin: 4px 0; color: var(--muted); }
.ho-pane h3 { font-size: 16px; margin: 12px 0; }
.ho-pane button, .ho-context button { min-height: 44px; color: var(--brand-dark); }
.ho-pane :focus-visible, .ho-context :focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 2px; }
.ho-pane [data-ho-status] { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ho-pane [data-ho-status]:empty { display: none; }
.ho-pane[aria-busy=true] .ho-orders { opacity: .7; }
.ho-warning { padding: 12px; background: var(--surface-muted); border-left: 3px solid #b8860b; }
.ho-order + .ho-order { border-top: 1px solid var(--line); }
.ho-preparation-status { color: var(--muted); font-size: 14px; margin: 4px 0 12px; overflow-wrap: anywhere; }
.ho-preparation-actions { display: flex; justify-content: flex-end; padding: 12px 0; }
.ho-preparation-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 44px; background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); border-radius: 6px; font: inherit; font-weight: 600; }
.ho-preparation-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.ho-preparation-actions button:disabled { opacity: .55; }
.ho-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ho-line > div:first-child { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.ho-line span { color: var(--muted); font-size: 14px; }
.ho-quantity { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.ho-quantity button { width: 44px; padding: 10px; flex: 0 0 44px; }
.ho-quantity svg { width: 20px; height: 20px; }
.ho-pane input { padding: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--panel); font: inherit; min-width: 0; }
.ho-quantity input { width: 80px; text-align: center; }
.ho-pane label { display: grid; gap: 6px; }
.ho-pane .ho-manage { margin: 12px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.ho-manage fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.ho-manage select { min-height: 44px; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; }
.ho-table-options { max-height: 220px; overflow: auto; }
.ho-pane .ho-table-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; overflow-wrap: anywhere; }
.ho-pane .ho-table-options input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; accent-color: var(--brand); }
.ho-pane [data-ho-action=manage] { display: inline-flex; align-items: center; gap: 8px; }
.ho-pane [data-ho-action=manage] svg { width: 20px; height: 20px; }
.ho-manage .primary { background: var(--brand); color: var(--on-brand); }
.ho-actions { justify-content: flex-end; margin-top: 16px; }
.ho-context { grid-column: 1 / -1; padding: 12px 16px; border-left: 4px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--panel)); color: var(--ink); }
.ho-context p { margin: 0; overflow-wrap: anywhere; }
.ho-context > div { display: flex; flex-wrap: wrap; gap: 8px; }
.hospitality-ordering .quick-products[inert] { opacity: .6; }
.ho-group { padding-block: 8px; }
.ho-group h3 { margin: 0 0 8px; font-size: 14px; }
.ho-group .ho-actions { justify-content: flex-start; }
.ho-pane .ho-settlement { margin: 0; }
.ho-settlement h2 { font-size: 18px; margin: 16px 0 8px; }
.ho-settlement .hs-order { margin-top: 8px; padding: 8px 0 12px; }
.ho-settlement .hs-checks li { flex-wrap: wrap; }
.ho-settlement .hs-actions { gap: 8px; }
.ho-settlement .hs-form { margin: 12px 0; gap: 12px; }
.ho-settlement .hs-lines li { align-items: flex-start; }
.ho-settlement .hs-lines span { flex: 1; }
.ho-pane [data-ho-action=checkout] { background: var(--brand); color: var(--on-brand); }
@media (max-width: 799px) {
  .hospitality-settling .pos-workspace > .product-pane { display: none; }
  .hp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hp-filters > label:last-child { grid-column: 1 / -1; }
  .hp-stage:is([data-selected=true], [data-list=true]) { grid-template-columns: minmax(0, 1fr); }
  .hp-stage:is([data-selected=true], [data-list=true]) > [data-hp-map], .hp-stage[data-selected=true] .hp-table-list { display: none; }
  .hp-stage:is([data-selected=true], [data-list=true]) .hp-side { overflow: visible; border-left: 0; padding: 4px; }
  .hp-stage:is([data-selected=true], [data-list=true]) { flex: 0 0 auto; }
  .hp-map-heading h3 { font-size: 16px; }
}
@media (max-width: 860px) {
  .topbar:has(.pos-tables-button:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .topbar:has(.pos-tables-button:not([hidden])) .brand-mark { grid-column: 1; grid-row: 1; }
  .topbar:has(.pos-tables-button:not([hidden])) .menu-toggle { position: static; grid-area: 1 / 1; align-self: center; justify-self: end; z-index: 1; }
  .topbar:has(.pos-tables-button:not([hidden])) .topbar-actions { position: static; grid-column: 1; grid-row: 2; width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .topbar:has(.pos-tables-button:not([hidden])) .topbar-icon-button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 600px) {
  #pos-tables-modal { padding: 0; }
  .hp-dialog { width: 100%; height: 100dvh; min-height: 0; border-radius: 0; padding: 8px; }
}
.ho-split h4 { margin: 0; font-size: 14px; }
.ho-split legend { margin-block-end: 8px; font-weight: 600; }
.hospitality-ordering .context-footer .sync-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.hospitality-ordering .context-footer .sync-pill { flex-wrap: wrap; }
.hospitality-ordering .context-footer .queue-button { display: grid; grid-template-columns: minmax(0, 1fr); text-align: left; }
