.ops-panel{--ops-line:#e1e5eb;--ops-ink:#182334;color:var(--ops-ink)}
/* Clear action hierarchy for tabs, without changing table/call status colors. */
:is(.ops-panel,.ops-dialog) .ops-tab{background:#fff;border:1px solid #cbd5e1;border-left:4px solid #3b82f6;border-radius:16px;padding:20px;box-shadow:0 4px 16px #14263b08}
.ops-tab>.ops-head{align-items:flex-start;gap:12px}.ops-tab>.ops-head h3{margin:0;font-size:1.12rem;line-height:1.4}.ops-tab>.ops-head>span{background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700}
.ops-tab>small{display:block;margin-top:12px;color:#647082;line-height:1.6}.ops-tab>p{padding:12px 14px;background:#f5f8fc;border-radius:10px;line-height:1.7}.ops-tab>p strong{color:#182334}.ops-tab>.ops-actions{border-top:1px solid #e8edf3;padding-top:14px;gap:10px}
:is(.ops-panel,.ops-dialog) .btn:is([data-ops="tab"],[data-ops="print"]){background:#1d4ed8;border-color:#1d4ed8;color:#fff}
:is(.ops-panel,.ops-dialog) .btn:is([data-ops="add-order"],[data-ops="table-order"],[data-ops="open-tab"]){background:#047857;border-color:#047857;color:#fff}
:is(.ops-panel,.ops-dialog) .btn:is([data-ops="transfer-tab"],[data-ops="transfer-table"]){background:#fff1cf;border-color:#e5bd63;color:#854d0e}
:is(.ops-panel,.ops-dialog) .btn[data-ops="edit-table"]{background:#eaf1ff;border-color:#b6ccf5;color:#1e40af}
:is(.ops-panel,.ops-dialog) .btn[data-view="canteen"]{background:#f0f4fa;border-color:#cbd5e1;color:#334155}
:is(.ops-panel,.ops-dialog) .btn[data-ops]:not(:disabled):hover{filter:brightness(.96)}
:is(.ops-panel,.ops-dialog) .btn:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:480px){:is(.ops-panel,.ops-dialog) .ops-tab{padding:16px}.ops-tab>.ops-actions .btn{flex:1 1 160px;white-space:normal}}
.ops-toolbar,.ops-actions,.ops-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ops-toolbar{justify-content:space-between;margin-bottom:20px}.ops-toolbar input{max-width:280px}.ops-panel button,.ops-dialog button,.ops-dialog select{min-height:44px}.ops-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.ops-summary article{padding:18px;background:#fff;border:1px solid var(--ops-line);border-radius:14px}.ops-summary strong{display:block;font-size:1.65rem}.ops-summary span{font-size:.8rem;color:#5b6574}.ops-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.ops-table{background:#fff;border:1px solid var(--ops-line);border-top:5px solid #268555;border-radius:14px;padding:18px;text-align:left;color:inherit;box-shadow:0 3px 12px #14263b06;cursor:pointer;min-width:0}.ops-table:hover{box-shadow:0 4px 18px #14263b18}.ops-table:focus-visible{outline:3px solid #316fde;outline-offset:3px}.ops-table.occupied{border-top-color:#d5ae13}.ops-table.reserved{border-top-color:#8856bb}.ops-table.unavailable{border-top-color:#87919c}.ops-table h3{font-size:1.2rem;margin:0}.ops-table p{margin:10px 0;font-size:.84rem;color:#5a6573}.ops-money{display:block;font-size:1.45rem;margin:14px 0 4px}.ops-head{justify-content:space-between}.ops-badges{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.ops-badge{display:inline-block;border-radius:6px;padding:5px 8px;font-size:.75rem;background:#e9f5ef;color:#17613b;font-weight:700}.ops-badge.occupied{background:#fff6c8;color:#785d00}.ops-badge.call{background:#ffe6e7;color:#9c2633}.ops-badge.preparing{background:#e5efff;color:#225eb4}.ops-badge.closing{background:#fff0de;color:#a15809}.ops-badge.reserved{background:#f0e6ff;color:#72419e}.ops-badge.unavailable{background:#eceef0;color:#5e6978}.ops-notice{padding:14px;border-radius:10px;background:#fff6e5;border:1px solid #eed3a1;margin:14px 0}.ops-dialog{display:grid;gap:14px}.ops-dialog label{display:grid;gap:6px;font-weight:600}.ops-dialog input,.ops-dialog select,.ops-dialog textarea{width:100%;padding:11px;border:1px solid #c9d1dc;border-radius:8px;font:inherit}.ops-dialog .ops-check{display:flex;align-items:center;gap:8px}.ops-check input{width:auto}.ops-tab,.ops-call,.ops-line,.ops-event{padding:14px;border:1px solid #e0e4ea;border-radius:10px;margin:10px 0;overflow-wrap:anywhere}.ops-tab h3{margin-top:0}.ops-line small{display:block;color:#647082;margin:6px 0}.ops-line input[type=number]{max-width:100px}.ops-tab .ops-actions{margin-top:12px}.ops-empty{padding:30px;background:#fff;border:1px dashed #c8d1de;border-radius:14px}.ops-status{font-size:.8rem;color:#647082}.ops-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ops-enabled .ops-menu-toggle{display:inline-flex}.ops-menu-toggle{display:none;position:fixed;bottom:20px;left:18px;z-index:45;min-height:44px;border:1px solid #647082;border-radius:12px;background:#182334;color:#fff;padding:10px 16px;box-shadow:0 3px 16px #0002}.ops-nav-collapsed .app-shell{grid-template-columns:0 minmax(0,1fr)}.ops-nav-collapsed .sidebar{display:none}.ops-receipt table{min-width:0;width:100%}.ops-receipt td,.ops-receipt th{padding:8px;text-align:left}.ops-receipt .ops-total{font-size:1.3rem;font-weight:800}.ops-time{white-space:nowrap}
@media(max-width:900px){.ops-nav-open .sidebar{display:flex;position:fixed;width:min(290px,85vw);top:0;bottom:0;left:0;height:100dvh;overflow-y:auto;box-shadow:10px 0 40px #0004;z-index:44}.ops-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.ops-toolbar input{max-width:none;flex:1}.ops-panel{padding-bottom:60px}}
@media(max-width:480px){.ops-grid{grid-template-columns:1fr}.ops-split{grid-template-columns:1fr}.ops-actions .btn{flex:1}.ops-summary article{padding:13px}.ops-dialog{font-size:.9rem}}
.ops-menu-toggle{bottom:80px}
/* A pending attendant call stays red until an operator assumes it. */
.ops-table.call-pending,.ops-call.call-pending{background:#fff0f1;border-color:#dc2626;box-shadow:0 0 0 2px #dc262633,0 5px 18px #991b1b16}.ops-table.call-pending{border-top-color:#b91c1c}.ops-table.call-pending h3,.ops-table.call-pending .ops-money{color:#991b1b}.ops-table.call-pending p,.ops-table.call-pending small{color:#7f1d1d}.ops-badge.call{background:#b91c1c;color:#fff}.ops-badge.attending{background:#e3f4fa;color:#075569}.ops-waiting{font-weight:700}
@media(min-width:901px){.ops-menu-toggle{bottom:150px}}
.ops-table.call-pending{animation:ops-call-pulse 1.8s ease-in-out infinite}@keyframes ops-call-pulse{0%,100%{box-shadow:0 0 0 2px #dc262633,0 5px 18px #991b1b16}50%{box-shadow:0 0 0 4px #dc262670,0 5px 22px #991b1b28}}@media(prefers-reduced-motion:reduce){.ops-table.call-pending{animation:none}}
@media print{body.ops-print .modal{display:block!important;position:static!important}body.ops-print .ops-receipt{display:block}.ops-menu-toggle,.ops-print .ops-actions{display:none!important}}
/* Phase 2 queue and kitchen, scoped to the operational panel. */
.flow-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.flow-card{border:1px solid #cbd5e1;border-top:5px solid #16a34a;border-radius:16px;padding:18px;background:var(--card,#fff);color:var(--text,#172033);min-width:0}
.flow-card.warning{border-top-color:#eab308}.flow-card.late{border-top-color:#dc2626}
.flow-items{padding:0;list-style:none}.flow-items li{padding:10px 0;border-bottom:1px solid #cbd5e1}.flow-items span,.flow-items small{display:block;margin-top:4px}.flow-note{background:#fff3cd;color:#513b00;padding:10px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.flow-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.flow-filters label{display:flex;flex-direction:column;gap:5px}.flow-filters input,.flow-filters select{min-height:44px;max-width:100%}
.flow-tv .flow-panel{position:fixed;inset:0;z-index:150;background:#f1f5f9;padding:14px;overflow:auto}.flow-tv .flow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.flow-tv .flow-filters{display:none}.flow-tv .ops-menu-toggle{display:none}.flow-tv .flow-card{font-size:clamp(14px,1.1vw,23px)}.flow-tv .flow-card h3{font-size:1.25em}
@media(max-width:900px){.flow-tv .flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-filters label{flex:1 1 130px}.flow-card .ops-actions button{min-height:44px}}
@media(max-width:560px){.flow-tv .flow-grid{grid-template-columns:1fr}.flow-card{padding:14px}.flow-card .ops-head{align-items:flex-start;flex-direction:column}.flow-card .ops-actions{flex-wrap:wrap}}

/* 2.3: compact table overview; call priority remains above order state. */
.ops-tables-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ops-tables-grid .ops-table{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:12px;border-radius:12px;overflow-wrap:anywhere}
.ops-tables-grid .ops-table h3{font-size:1.05rem}.ops-tables-grid .ops-table p{margin:7px 0;font-size:.78rem}
.ops-tables-grid .ops-money{font-size:1.2rem;margin:8px 0 3px}.ops-tables-grid .ops-badges{margin:8px 0;gap:4px}
.ops-tables-grid .ops-table small{display:block;font-size:.7rem;line-height:1.5}.ops-tables-grid .ops-table>span{font-size:.8rem}
.ops-table.order-new:not(.call-pending){background:#eaf2ff;border-color:#2563eb;border-top-color:#2563eb}
.ops-table.order-preparing:not(.call-pending){background:#eff6ff;border-top-color:#2563eb}
.ops-table.order-ready:not(.call-pending){background:#e8f8ee;border-color:#15803d;border-top-color:#15803d}
.ops-table.awaiting-close:not(.call-pending){background:#fff4e5;border-top-color:#d97706}
.ops-badge.order-new{background:#dbeafe;color:#1e40af}.ops-badge.order-ready{background:#dcfce7;color:#166534}
.ops-preview-status{padding:10px 12px;background:#edf4ff;color:#1e40af;border-radius:8px;font-size:.85rem}
.ops-preview{opacity:.7;pointer-events:none;user-select:none}
@media(max-width:1100px){.ops-tables-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.ops-tables-grid{gap:8px}.ops-tables-grid .ops-table{padding:9px}.ops-tables-grid .ops-head{gap:4px}.ops-tables-grid .ops-badge{font-size:.65rem}}
@media(max-width:320px){.ops-tables-grid{grid-template-columns:1fr}}
