.view-tables #main{overflow:hidden;display:flex;flex-direction:column}.tables-workspace{display:flex;flex-direction:column;min-height:0;height:100%;gap:14px}.tables-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;line-height:1.6;flex-shrink:0}.tables-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:14px;align-content:start;overflow:auto;min-height:0;flex:1;padding:2px 2px 16px;scrollbar-gutter:stable}.service-table{background:var(--color-surface-card);border:1px solid var(--line);border-radius:16px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.service-table header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:18px;background:var(--color-surface-page);min-width:0}.service-table.occupied header{background:var(--color-warning-subtle)}.service-table h2{font-size:21px;overflow-wrap:anywhere;line-height:1.4}.service-table header div{min-width:0}.service-table header span{font-size:11px;color:var(--muted);line-height:1.5}.service-table .table-state{border:1px solid var(--line);border-radius:6px;padding:5px 8px;color:var(--teal);max-width:110px;text-align:center;flex-shrink:0;background:var(--color-surface-card)}.table-bill{padding:18px;display:grid;gap:8px;min-width:0;flex:1}.table-bill strong{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.table-bill span,.table-bill small{font-size:12px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.table-actions{padding:0 18px 18px;display:flex;gap:8px}.table-actions button{flex:1;white-space:normal;min-height:46px;font-size:12px}.service-pending{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 20px;background:var(--color-warning-subtle);color:var(--color-warning-text);font-size:12px;line-height:1.5;flex-shrink:0}.service-pending span{min-width:0;overflow-wrap:anywhere}.service-pending button{font-size:12px;flex-shrink:0;white-space:normal;max-width:150px;min-height:44px}.shared-cart-context{padding:10px 14px;background:var(--color-surface-page);border-radius:10px;display:grid;gap:6px;font-size:11px;line-height:1.5;flex-shrink:0;min-width:0;margin-bottom:8px}.shared-cart-context.stale{background:var(--color-warning-subtle)}.shared-cart-context strong,.shared-cart-context span{overflow-wrap:anywhere}.shared-cart-context>div{display:flex;gap:8px}.shared-cart-context button{min-height:44px;font-size:11px;padding:8px 12px}.service-order-summary{display:grid;gap:12px;min-width:0;line-height:1.6;font-size:13px}.service-order-summary h3{font-size:22px;overflow-wrap:anywhere}.service-order-summary>div{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.service-order-summary small{display:block;color:var(--muted)}.service-order-summary details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.service-order-summary details p{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.service-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.service-action-grid button{white-space:normal;min-height:48px;font-size:12px}.service-transfer-lines{display:grid;gap:10px}.service-transfer-lines>label{display:grid;grid-template-columns:minmax(0,1fr)90px;gap:12px;align-items:center;font-size:13px}.service-transfer-lines>label span{overflow-wrap:anywhere;min-width:0}.service-transfer-lines small{display:block;color:var(--muted);font-size:11px;line-height:1.5}.service-transfer-lines input{min-width:0}
@media(max-width:599px){.tables-workspace .prep-heading h1{font-size:20px}.tables-workspace .prep-heading p,.tables-workspace .eyebrow{display:none}.tables-workspace .prep-heading-actions{max-width:160px}.tables-workspace .prep-heading-actions button{font-size:11px;padding:8px;min-height:44px}.tables-status{font-size:10px}.service-pending{padding:8px 12px;font-size:11px}.shared-cart-context{padding:8px 10px}}

.workspace:has(>.service-pending){grid-template-rows:var(--bar) auto minmax(0,1fr) 32px}.workspace.view-pos:has(>.service-pending){grid-template-rows:var(--bar) auto minmax(0,1fr)}
