/* Daily POS workflow: compact sales grid, stable input and dedicated table view. */
.posNavigation{display:flex;align-items:center;gap:8px;height:44px;padding:4px 10px;background:#e1e5dc;border-bottom:1px solid #bdc5b8;position:sticky;top:var(--pos-top-height);z-index:4}
.posNavigation button{min-width:115px;min-height:36px;padding:6px 16px;font-size:16px;font-weight:800;border:1px solid #a7b4a1;border-radius:7px;background:#fffdf8;color:#20392d}
.posNavigation button[aria-selected=true]{background:#204c36;color:#fff;border-color:#204c36}
.wrap{height:calc(100dvh - var(--pos-top-height) - 44px)}
#quickbar{flex-wrap:nowrap;overflow-x:auto;padding:6px 8px!important;gap:6px}
#quickbar .quickBtn{min-height:40px!important;font-size:14px!important;padding:7px 12px!important;flex:none}
.panel h2{padding:8px 10px;font-size:17px}.toolbar{padding:7px!important}.toolbar #search{min-height:40px;font-size:16px;padding:8px}.posSearchScope{min-height:24px;font-size:12px}
#products{grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr))!important;grid-auto-rows:minmax(112px,auto)!important;padding:7px;gap:7px!important}
#products .product{min-height:112px!important;padding:8px!important;gap:3px;border-radius:8px}
#products .product strong{font-size:15px!important;line-height:1.15}
#products .product .posProductPrice{font-size:20px!important;padding-top:3px}
#products .product small,#products .wineYear,#products .wineVolume{font-size:11px;line-height:1.2}
#products .product.optionsOpen{height:auto;min-height:max-content!important}
#products .product button{min-height:44px!important;font-size:13px!important}
#categorybar .catBtn{min-height:44px;padding:7px 6px;font-size:13px}.catGroupItems{gap:5px}.catGroupTitle{padding:5px 2px}
.order{padding:9px}.order h2{font-size:17px;padding:5px 0 9px}.order input{min-height:42px;font-size:16px}.total{margin:8px 0;padding:10px;font-size:17px}.total #total{font-size:24px}.actions button{min-height:46px;font-size:14px}.qty button{min-width:40px;min-height:40px}
.posTablesView{height:calc(100dvh - var(--pos-top-height) - 44px);overflow:auto;padding:12px;background:var(--bg)}
#tableSummary{margin:0 0 10px;font-size:17px;font-weight:700;color:#20392d}
#tableOverviewPanel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,35%);gap:12px;padding:12px}
#tableOverviewPanel>h2{grid-column:1/-1;margin:0;padding:0 0 8px;border-bottom:1px solid var(--line)}
#tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:start;gap:10px;padding:0;max-height:none}
#tables .tableBtn{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;min-height:110px;border:2px solid #bac8b4;border-radius:12px;background:#fffdf8;font-size:18px;padding:14px;text-align:left}
#tables .tableBtn span{font-size:22px;font-weight:800}#tables .tableBtn.selected{border-color:#234e37;background:#dfecdc}
#tableOverviewPanel .open{padding:12px;border:1px solid var(--line);border-radius:10px;background:#f4f3e9;min-width:0}
#tableDetailTitle{margin:0 0 12px;font-size:19px}#tableContinue{width:100%;min-height:48px;margin-top:12px;background:#204c36;color:white;border:0;border-radius:8px;font-size:16px;font-weight:700}
.pos-input-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c1b698;border-radius:12px;padding:18px;background:#fffdf8;color:#18211f}
.pos-input-dialog::backdrop{background:#0007}.pos-input-dialog h2{margin:0 0 12px;font-size:20px}.pos-input-dialog label{display:block;white-space:pre-line;line-height:1.4;font-size:17px}
.pos-input-dialog input{display:block;width:100%;box-sizing:border-box;min-height:48px;margin-top:10px;padding:10px;font-size:22px;border:2px solid #8c9b84;border-radius:8px}
.pos-input-dialog .error{margin:8px 0;color:#a11}.pos-input-actions{display:flex;gap:8px;margin-top:12px}.pos-input-actions button{flex:1;min-height:46px;font-size:16px;border:1px solid #aab5a2;border-radius:8px}.pos-input-actions .primary{background:#204c36;color:#fff}
@media(max-width:700px){.wrap{height:auto}.posTablesView{height:auto;min-height:calc(100dvh - var(--pos-top-height) - 44px);padding:8px 8px 80px}#tableOverviewPanel{grid-template-columns:1fr;padding:8px}#tables{grid-template-columns:repeat(2,minmax(0,1fr))}#products{grid-template-columns:repeat(2,minmax(0,1fr))!important}#products .product{min-height:112px!important}#categorybar .catBtn{min-height:44px;min-width:82px}body.mobile-orders aside>section{display:none!important}body.mobile-orders aside>section:nth-child(3){display:block!important}}
@media print{.posNavigation,.posTablesView{display:none!important}}

/* Quick lookup leaves the active POS order in its original tab. */
.posViewTabs,.posLookupLinks{display:flex;align-items:center;gap:8px}.posLookupLinks{margin-left:auto}.posLookupLinks a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid #8f9e89;border-radius:7px;background:#fffdf8;color:#20392d;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;touch-action:manipulation}.posLookupLinks a:hover{background:#f3e5bd}.posLookupLinks a:focus-visible{outline:3px solid #b7801f;outline-offset:2px}@media(max-width:700px){.posNavigation{gap:5px;padding-left:6px;padding-right:6px}.posViewTabs,.posLookupLinks{gap:4px}.posNavigation button{min-width:0;padding:6px 9px;font-size:13px}.posLookupLinks a{font-size:12px;padding:6px 8px}}@media(max-width:360px){.posNavigation button{padding:6px;font-size:12px}.posLookupLinks a{padding:6px 5px;font-size:11px}}
@media(max-width:700px){.posViewTabs{flex:none}.posLookupLinks{min-width:0;overflow-x:auto;flex:1}.posLookupLinks a{flex:none}}
