/* Service-first refinements shared by the app and its sample-data preview. */
:root{--orange:#c94a23;--muted:#566977}
.badge{font-size:.875rem}
.table-number{color:#526c7e}
.occupied .table-number{color:#93613e}
.table-card{border-top:3px solid #78ad94}
.table-card.occupied{border-top-color:#d6944f}
.table-card.ready-table{border-top-color:#247b55;background:#f1faf5}
.table-status{font-size:.875rem;color:#496d59;font-weight:600}
.table-status.preparing{color:#895e26}
.table-status.new{color:#375f9b}
.ticket:has(.badge.new){border-top:4px solid #547ab4}
.ticket:has(.badge.preparing){border-top:4px solid #d3923f}
.ticket:has(.badge.ready){border-top:4px solid #348560}
.qty button{width:44px;height:44px;font-size:1.2rem}
.qty span{min-width:36px}
.dish{min-height:150px;transition:border-color .15s,background .15s}
.dish.in-cart{border-color:#cf6a43;background:#fff8f3}
.dish .add{min-width:36px;min-height:32px;display:grid;place-items:center;font-weight:700}
.dish.in-cart .add{background:var(--orange);color:white}
.preview-banner{padding:12px 24px;background:#fff0d7;color:#6a4619;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:.875rem;line-height:1.5}
.preview-banner a{font-weight:650;white-space:nowrap}
.preview-banner + .shell .sidebar{height:calc(100vh - 48px)}
.preview-banner + .shell{min-height:calc(100vh - 48px)}
.empty-filter{grid-column:1/-1}
.cart{border-top:4px solid var(--orange)}
.cart-head{padding-bottom:18px}
.table-footer{flex-wrap:wrap}
.nav button{min-height:46px}
@media(max-width:850px){
  .preview-banner + .shell .sidebar{height:auto}
  .sidebar{padding:18px 20px}
  .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
  .nav button{justify-content:center;white-space:normal;text-align:center;padding:10px 6px;font-size:.875rem}
  .nav button.active{box-shadow:inset 0 -3px #f5835b}
}
@media(max-width:620px){
  .heading{flex-wrap:wrap;gap:16px}
  .heading>div:first-child{flex:1 1 220px}
  .heading>.btn{max-width:none}
  .preview-banner{padding:12px 20px;flex-wrap:wrap}
  .topbar{flex-wrap:wrap;gap:12px}
  .topbar>.row{flex-wrap:wrap}
  .connection{font-size:.875rem}
  .table-top{align-items:flex-start}
  .table-card{min-height:190px}
  .table-footer{font-size:.875rem;line-height:1.5}
  .table-center{padding:22px 0;gap:6px;flex-wrap:wrap}
  .table-number{font-size:1.7rem}
  .order-row>.row{flex-wrap:wrap}
  .dish strong{overflow-wrap:anywhere}
  .mobile-cart-link{min-height:52px}
  #order-cart{scroll-margin-top:16px}
  .cart{padding-bottom:72px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.table-card:hover{transform:none}}
@media print{.preview-banner,.mobile-cart-link{display:none!important}}
dialog:has(#payment-form){width:min(680px,calc(100% - 32px))}
.bill-items{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.bill-items table{table-layout:fixed}
.bill-items th:first-child{width:43%}
.bill-items th:nth-child(2){width:12%}
.bill-items th:nth-child(3),.bill-items th:nth-child(4){width:22.5%}
.bill-items th,.bill-items td{padding:12px 10px;vertical-align:top;overflow-wrap:anywhere}
.bill-items th:not(:first-child),.bill-items td:not(:first-child){text-align:right}
.bill-items tbody tr:last-child td{border-bottom:0}
.bill-item-note{display:block;color:var(--muted);font-size:.875rem;margin-top:5px;line-height:1.4}
#payment-time-field[hidden]{display:none}
.bill-kitchen-ticket{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid #e7cfae}
.bill-kitchen-ticket>div{flex:1 1 180px}.bill-kitchen-ticket .btn{flex-shrink:0}
@media(max-width:620px){dialog:has(#payment-form){padding:20px 14px}.bill-items th,.bill-items td{padding:10px 5px}.bill-items th:first-child{width:38%}.bill-items th:nth-child(2){width:12%}.bill-items th:nth-child(3),.bill-items th:nth-child(4){width:25%}}
