/* Core Restaurant only. Preserve the shared transaction and payment engine. */
#cashierPage.restaurant-pos{--menu-bg:#101e33;--menu-card:#15273f;--menu-border:#2a405e;--menu-text:#eef5ff;--menu-muted:#9cb3d0}
#cashierPage.restaurant-pos .cashier-layout{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(420px,1fr)!important;align-items:start;gap:18px}
#cashierPage.restaurant-pos .restaurant-menu{position:sticky!important;top:12px;display:flex!important;flex-direction:column;gap:18px;min-width:0;width:auto!important;margin:0!important;padding:22px!important;background:var(--menu-bg)!important;border:1px solid var(--menu-border)!important;border-radius:20px!important;box-shadow:none!important;max-height:calc(100dvh - 135px);overflow:hidden}
#cashierPage.restaurant-pos #productSearch,#cashierPage.restaurant-pos #posProductShortcuts,#cashierPage.restaurant-pos #posLiveAnalytics,#cashierPage.restaurant-pos #posTouchModeButton,#cashierPage.restaurant-pos #posQuickQtyBar{display:none!important}
#cashierPage.restaurant-pos .restaurant-menu-header{display:flex;justify-content:space-between;align-items:start;gap:12px}
#cashierPage.restaurant-pos .restaurant-menu-eyebrow{color:#68c9ff;font-size:11px;letter-spacing:.06em}
#cashierPage.restaurant-pos .restaurant-menu-header h2{margin:5px 0 6px;color:var(--menu-text);font-size:26px}
#cashierPage.restaurant-pos .restaurant-menu-header p{margin:0;color:var(--menu-muted);font-size:13px}
#cashierPage.restaurant-pos .restaurant-menu-count{background:#1c3455;border:1px solid #315578;color:#cce7ff;padding:8px 12px;border-radius:12px;font-size:12px;white-space:nowrap}
#cashierPage.restaurant-pos .restaurant-categories{display:flex;gap:8px;overflow-x:auto;padding:0 0 9px;flex-shrink:0;scrollbar-width:thin}
#cashierPage.restaurant-pos .restaurant-categories button{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:48px;padding:10px 16px;border:1px solid var(--menu-border);border-radius:13px;background:#14263e;color:#b8cee7;box-shadow:none;font-size:14px;touch-action:manipulation}
#cashierPage.restaurant-pos .restaurant-categories button[aria-pressed=true]{background:#0066ff;color:#fff;border-color:#438fff}
#cashierPage.restaurant-pos .restaurant-categories small{font-size:11px;opacity:.75}
#cashierPage.restaurant-pos #productsGrid.restaurant-products{position:static!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));align-content:start;gap:12px;overflow-y:auto;max-height:none!important;min-height:220px;min-width:0;padding:2px 2px 12px!important;border:0!important;background:transparent!important;box-shadow:none!important;scrollbar-width:thin}
#cashierPage.restaurant-pos .restaurant-product{position:relative;min-width:0;border:1px solid var(--menu-border);border-radius:16px;background:var(--menu-card);overflow:hidden;transition:border-color .15s,background .15s}
#cashierPage.restaurant-pos .restaurant-product.is-selected{border-color:#4297ff;background:#18395d}
#cashierPage.restaurant-pos .restaurant-product-add{display:flex;flex-direction:column;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent!important;color:var(--menu-text)!important;box-shadow:none;text-align:start;touch-action:manipulation}
#cashierPage.restaurant-pos .restaurant-product-add:disabled{opacity:.48;cursor:not-allowed}
#cashierPage.restaurant-pos .restaurant-product-visual{position:relative;display:grid;place-items:center;width:100%;height:100px;background:linear-gradient(135deg,#1a3b63,#16304b);color:#82caff;font-size:42px;font-weight:700}
#cashierPage.restaurant-pos .restaurant-product-visual img{width:100%;height:100%;object-fit:cover}
#cashierPage.restaurant-pos .restaurant-product-visual{flex:0 0 100px!important;height:100px!important;min-height:0!important;overflow:hidden}
#cashierPage.restaurant-pos .restaurant-product-visual img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;object-fit:cover!important;position:static!important}
#cashierPage.restaurant-pos .restaurant-product-qty{position:absolute;inset-inline-end:10px;bottom:8px;min-width:27px;padding:3px 7px;border-radius:9px;background:#0066ff;color:#fff;font-size:13px;text-align:center;box-sizing:border-box}
#cashierPage.restaurant-pos .restaurant-product-info{display:flex;flex-direction:column;gap:6px;width:100%;flex:1;padding:13px;box-sizing:border-box}
#cashierPage.restaurant-pos .restaurant-product-info>strong{font-size:15px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
#cashierPage.restaurant-pos .restaurant-product-info>small{font-size:11px;color:var(--menu-muted)}
#cashierPage.restaurant-pos .restaurant-product-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto;padding-top:8px;color:#7bd5ff;font-size:16px}
#cashierPage.restaurant-pos .restaurant-product-bottom>span{font-size:11px;color:#bcd5ef}
#cashierPage.restaurant-pos .restaurant-favorite{position:absolute;inset-inline-start:5px;top:5px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:11px;background:#0a1b32dc!important;color:#d9edff!important;box-shadow:none;font-size:25px;touch-action:manipulation}
#cashierPage.restaurant-pos .restaurant-favorite[aria-pressed=true]{color:#8bddff!important}
#cashierPage.restaurant-pos .restaurant-menu button:focus-visible{outline:3px solid #91ddff;outline-offset:-3px}
#cashierPage.restaurant-pos .restaurant-menu-empty{grid-column:1/-1;align-self:center;text-align:center;padding:32px 12px;color:var(--menu-text)}
#cashierPage.restaurant-pos .restaurant-menu-empty p{font-size:13px;color:var(--menu-muted);line-height:1.8}
#cashierPage.restaurant-pos .cart-panel{min-width:0;width:auto!important;margin:0!important;padding:18px!important}
#cashierPage.restaurant-pos .cart-panel.sale-sheet-panel{display:flex!important;flex-direction:column!important;gap:14px!important;grid-area:auto!important;height:auto!important;overflow:visible!important}
#cashierPage.restaurant-pos .cart-panel.sale-sheet-panel>*{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;grid-area:auto!important}
#cashierPage.restaurant-pos .restaurant-menu{grid-area:auto!important}
#cashierPage.restaurant-pos .restaurant-menu:before,#cashierPage.restaurant-pos .restaurant-menu:after{display:none!important;content:none!important}
#cashierPage.restaurant-pos .cart-panel .section-title-row{display:flex!important;justify-content:space-between;align-items:center}
#cashierPage.restaurant-pos .cart-panel .cart-lines{flex:0 1 auto!important;min-height:170px!important;max-height:calc(100dvh - 430px)!important;overflow:auto!important}
#cashierPage.restaurant-pos .cart-panel .cart-total{display:flex!important;flex-wrap:wrap!important;gap:12px!important;justify-content:space-between!important}
#cashierPage.restaurant-pos .cart-panel .pos-tax-breakdown{flex:1 0 100%;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important}
#cashierPage.restaurant-pos .cart-panel .cart-total>span{white-space:nowrap}
#cashierPage.restaurant-pos #cartLines .sale-sheet{min-width:0!important}
#cashierPage.restaurant-pos #cartLines .sale-sheet{width:100%!important;max-width:none!important;display:flex!important;flex-direction:column!important}
#cashierPage.restaurant-pos #cartLines .sale-sheet-head{display:none!important}
#cashierPage.restaurant-pos #cartLines .sale-sheet-row:not(.sale-sheet-head){display:grid!important;grid-template-columns:32px minmax(0,1fr) auto!important;gap:10px!important;min-width:0!important;padding:14px 10px!important;align-items:center}
#cashierPage.restaurant-pos #cartLines .sale-sheet-row>.cart-line-number,#cashierPage.restaurant-pos #cartLines .sale-sheet-row>span:nth-child(4){display:none!important}
#cashierPage.restaurant-pos #cartLines .cart-product-cell{grid-column:2;grid-row:1;min-width:0}
#cashierPage.restaurant-pos #cartLines .cart-product-name{white-space:normal!important;font-size:14px!important;line-height:1.6!important}
#cashierPage.restaurant-pos #cartLines .cart-product-image,#cashierPage.restaurant-pos #cartLines .cart-product-image-placeholder{grid-column:1;grid-row:1}
#cashierPage.restaurant-pos #cartLines .cart-remove-button{grid-column:3;grid-row:1;min-width:44px;min-height:44px}
#cashierPage.restaurant-pos #cartLines .quantity-actions{grid-column:1/3;justify-content:start}
#cashierPage.restaurant-pos #cartLines .quantity-actions button{min-width:44px;min-height:44px}
#cashierPage.restaurant-pos #cartLines .cart-qty-input{min-height:44px;width:65px!important;font-size:16px}
#cashierPage.restaurant-pos #cartLines .cart-line-total{grid-column:3;font-size:17px}
#cashierPage.restaurant-pos #cartLines .cart-line-unit-price{display:none!important}
#cashierPage.restaurant-pos #cartLines .pos-item-discount-type{grid-column:1/3;min-height:40px}
#cashierPage.restaurant-pos #cartLines .pos-item-discount-value{grid-column:3;min-width:0;width:85px;min-height:40px}
#cashierPage.restaurant-pos .restaurant-empty-order{font-size:15px!important;line-height:1.8!important;min-height:170px;display:grid;place-items:center;padding:25px;text-align:center}
#cashierPage.restaurant-pos .restaurant-empty-order{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box}
#cashierPage.restaurant-pos .restaurant-empty-order:before,#cashierPage.restaurant-pos .restaurant-empty-order:after{display:none!important;content:none!important}
@media(min-width:1500px){#cashierPage.restaurant-pos .cashier-layout{grid-template-columns:minmax(0,1.5fr) minmax(450px,1fr)!important}#cashierPage.restaurant-pos #productsGrid.restaurant-products{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
@media(max-width:1000px){#cashierPage.restaurant-pos .cashier-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.95fr)!important;gap:12px}#cashierPage.restaurant-pos .restaurant-menu{padding:14px!important}#cashierPage.restaurant-pos #productsGrid.restaurant-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){#cashierPage.restaurant-pos .cashier-layout{grid-template-columns:minmax(0,1fr)!important}#cashierPage.restaurant-pos .restaurant-menu{position:static!important;max-height:none}#cashierPage.restaurant-pos #productsGrid.restaurant-products{max-height:430px!important;grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}#cashierPage.restaurant-pos .restaurant-menu-header h2{font-size:23px}#cashierPage.restaurant-pos .restaurant-product-visual{height:85px}}
@media(max-width:980px){#cashierPage.restaurant-pos .cashier-header{height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;gap:14px!important;padding:16px!important}#cashierPage.restaurant-pos .cashier-header-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;max-width:100%!important;overflow:visible!important}#cashierPage.restaurant-pos .cashier-header-actions>*,#cashierPage.restaurant-pos .cashier-return-clock{flex:0 0 auto!important;max-width:100%!important}#cashierPage.restaurant-pos .cashier-header-actions button{min-width:44px!important;min-height:44px!important;width:auto!important}#cashierPage.restaurant-pos .cart-panel .cart-lines{max-height:450px!important}}
@media(prefers-reduced-motion:reduce){#cashierPage.restaurant-pos .restaurant-product{transition:none}}

/* Keep order lines compact: name and total, then quantity and optional discount. */
#cashierPage.restaurant-pos #cartLines .sale-sheet-row:not(.sale-sheet-head){grid-template-columns:140px minmax(0,1fr) 64px 34px!important;gap:5px 7px!important;padding:8px!important;min-height:0!important}
#cashierPage.restaurant-pos #cartLines .cart-product-image,#cashierPage.restaurant-pos #cartLines .cart-product-image-placeholder{display:none!important}
#cashierPage.restaurant-pos #cartLines .cart-product-cell{grid-column:1/3!important;grid-row:1!important;gap:2px!important}
#cashierPage.restaurant-pos #cartLines .cart-product-name{font-size:13px!important;line-height:1.45!important}
#cashierPage.restaurant-pos #cartLines .cart-remove-button{grid-column:4!important;grid-row:1!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:7px!important}
#cashierPage.restaurant-pos #cartLines .cart-line-total{grid-column:3!important;grid-row:1!important;font-size:15px!important;text-align:center}
#cashierPage.restaurant-pos #cartLines .quantity-actions{grid-column:1!important;grid-row:2!important;gap:4px!important;flex-wrap:nowrap!important}
#cashierPage.restaurant-pos #cartLines .quantity-actions button{width:34px!important;height:36px!important;min-width:34px!important;min-height:36px!important;padding:0!important}
#cashierPage.restaurant-pos #cartLines .cart-qty-input{width:42px!important;height:36px!important;min-height:36px!important;padding:3px!important;font-size:14px!important}
#cashierPage.restaurant-pos #cartLines .quantity-actions small{display:none!important}
#cashierPage.restaurant-pos #cartLines .pos-item-discount-type{grid-column:2!important;grid-row:2!important;width:100%!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:4px!important;font-size:11px!important}
#cashierPage.restaurant-pos #cartLines .pos-item-discount-value{grid-column:3/5!important;grid-row:2!important;width:100%!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:4px!important;font-size:11px!important}
#cashierPage.restaurant-pos #cartLines .pos-batch-choice:has(select option:only-child){display:none!important}
@media(max-width:400px){#cashierPage.restaurant-pos #cartLines .sale-sheet-row:not(.sale-sheet-head){grid-template-columns:118px minmax(0,1fr) 48px 32px!important;gap:4px!important;padding:7px!important}}

/* Read each order line as product, quantity, then price. */
#cashierPage.restaurant-pos #cartLines .pos-item-discount-type,#cashierPage.restaurant-pos #cartLines .pos-item-discount-value{display:none!important}
#cashierPage.restaurant-pos #cartLines .sale-sheet-row:not(.sale-sheet-head){grid-template-columns:minmax(0,1fr) 118px 58px 34px!important}
#cashierPage.restaurant-pos #cartLines .cart-product-cell{grid-column:1!important;grid-row:1!important}
#cashierPage.restaurant-pos #cartLines .quantity-actions{grid-column:2!important;grid-row:1!important}
#cashierPage.restaurant-pos #cartLines .pos-item-discount-type{grid-column:1/3!important;grid-row:2!important}
@media(max-width:400px){#cashierPage.restaurant-pos #cartLines .sale-sheet-row:not(.sale-sheet-head){grid-template-columns:minmax(0,1fr) 102px 44px 30px!important}#cashierPage.restaurant-pos #cartLines .quantity-actions button{width:30px!important;min-width:30px!important}#cashierPage.restaurant-pos #cartLines .cart-qty-input{width:34px!important}#cashierPage.restaurant-pos #cartLines .cart-product-name{font-size:12px!important}}

/* Give the catalog space instead of squeezing its cards inside the viewport. */
.restaurant-negative-toggle{position:absolute!important;top:62px;inset-inline-start:7px;min-height:28px!important;padding:3px 7px!important;border:1px solid #617d98!important;border-radius:8px!important;background:#11243de8!important;color:#e1efff!important;font-size:10px!important;box-shadow:none!important}
.restaurant-negative-toggle[aria-pressed=true]{background:#095c46ed!important;border-color:#4bc6a0!important;color:#ddfff3!important}
#cashierPage .restaurant-negative-toggle{display:none!important}
.restaurant-negative-field{grid-column:1/-1;padding:12px;border:1px solid #406185;border-radius:10px}
#cashierPage.restaurant-pos .restaurant-menu{gap:10px!important;padding:16px!important;height:auto!important;min-height:0!important}
#cashierPage.restaurant-pos .restaurant-menu-header{align-items:center!important;flex-shrink:0}
#cashierPage.restaurant-pos .restaurant-menu-header h2{font-size:20px!important;margin:2px 0!important;line-height:1.35!important}
#cashierPage.restaurant-pos .restaurant-menu-header p{font-size:11px!important;line-height:1.4!important}
#cashierPage.restaurant-pos .restaurant-menu-eyebrow{font-size:10px!important}
#cashierPage.restaurant-pos .restaurant-categories{gap:7px!important;padding-bottom:5px!important}
#cashierPage.restaurant-pos .restaurant-categories button{min-height:38px!important;padding:7px 12px!important;font-size:12px!important}
#cashierPage.restaurant-pos #productsGrid.restaurant-products{flex:1 1 auto!important;min-height:0!important;grid-auto-rows:minmax(190px,auto)!important;overflow-y:auto!important;align-items:stretch!important;gap:10px!important}
#cashierPage.restaurant-pos .restaurant-product{height:auto!important;min-height:190px!important;overflow:hidden!important}
#cashierPage.restaurant-pos .restaurant-product-add{height:100%!important;min-height:190px!important;justify-content:flex-start!important;overflow:visible!important}
#cashierPage.restaurant-pos .restaurant-product-visual{height:95px!important;flex:0 0 95px!important;background:#f5f1e8!important}
#cashierPage.restaurant-pos .restaurant-product-visual img{object-fit:contain!important}
#cashierPage.restaurant-pos .restaurant-product-info{flex:1 0 auto!important;min-height:95px!important;gap:3px!important;padding:9px 11px!important}
#cashierPage.restaurant-pos .restaurant-product-info>strong{font-size:13px!important;line-height:1.5!important}
#cashierPage.restaurant-pos .restaurant-product-bottom{padding-top:4px!important;font-size:15px!important}
@media(min-width:741px){#cashierPage.restaurant-pos .restaurant-menu{max-height:calc(100dvh - 130px)!important}}
@media(max-width:740px){#cashierPage.restaurant-pos #productsGrid.restaurant-products{max-height:500px!important}}

/* Compact checkout and customer dialogs share the same centered overlay. */
html body #detailModal.restaurant-payment-modal:not(.is-hidden),html body #detailModal.restaurant-customer-modal:not(.is-hidden){position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:18px!important;background:#030b19bb!important;z-index:1000!important;box-sizing:border-box;overflow:auto!important;backdrop-filter:blur(5px)}
html body #detailModal.restaurant-payment-modal .detail-modal-card,html body #detailModal.restaurant-customer-modal .detail-modal-card{position:relative!important;inset:auto!important;transform:none!important;width:min(520px,100%)!important;max-width:520px!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 36px)!important;overflow:auto!important;margin:auto!important;padding:20px!important;border:1px solid #375473!important;border-radius:20px!important;background:#101d31!important;box-shadow:0 30px 90px #0008!important;box-sizing:border-box}
html body #detailModal.restaurant-customer-modal .detail-modal-card{width:min(460px,100%)!important}
html body #detailModal.restaurant-payment-modal #detailModalBody,html body #detailModal.restaurant-customer-modal #detailModalBody{display:block!important;max-height:none!important;min-height:0!important;height:auto!important;padding:0!important;overflow:visible!important}
html body #detailModal.restaurant-payment-modal .detail-modal-header,html body #detailModal.restaurant-customer-modal .detail-modal-header{margin:0 0 14px!important;padding:0 0 10px!important}
html body #detailModal.restaurant-payment-modal h2,html body #detailModal.restaurant-customer-modal h2{font-size:20px!important}
html body #detailModal.restaurant-payment-modal .payment-modal-summary{display:flex!important;justify-content:space-between;align-items:center;padding:13px 15px!important;margin:0 0 12px!important;border-radius:13px!important;background:#172d49!important}
html body #detailModal.restaurant-payment-modal .payment-modal-summary strong{font-size:26px!important;color:#79d1ff!important}
html body #detailModal.restaurant-payment-modal .quick-payment-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 0 5px!important}
html body #detailModal.restaurant-payment-modal .quick-payment-buttons button{min-height:44px!important;padding:8px!important;border-radius:12px!important}
html body #detailModal.restaurant-payment-modal [data-quick-payment="split"]{display:none!important}
html body #detailModal.restaurant-payment-modal #posPaymentSelection{font-size:11px!important;margin:4px 0 12px!important}
html body #detailModal.restaurant-payment-modal #posCheckoutGrid{display:flex!important;flex-direction:column!important;gap:12px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;width:100%!important;height:auto!important}
html body #detailModal.restaurant-payment-modal .pos-customer-strip{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:8px!important;padding:0!important;border:0!important;background:none!important}
html body #detailModal.restaurant-payment-modal .pos-customer-strip>label:nth-child(2){display:none!important}
html body #detailModal.restaurant-payment-modal label{display:grid!important;gap:5px!important;margin:0!important;font-size:12px!important;min-width:0!important}
html body #detailModal.restaurant-payment-modal input,html body #detailModal.restaurant-payment-modal select{min-height:38px!important;height:38px!important;width:100%!important;min-width:0!important;padding:6px 9px!important;font-size:13px!important;box-sizing:border-box}
html body #detailModal.restaurant-payment-modal #quickCustomerButton{min-height:38px!important;padding:7px 12px!important}
html body #detailModal.restaurant-payment-modal .pos-invoice-discount-panel{order:2!important;margin:0!important;padding:10px!important;border-radius:12px!important}
html body #detailModal.restaurant-payment-modal .pos-invoice-discount-fields{grid-template-columns:1fr 1fr!important;gap:10px!important}
html body #detailModal.restaurant-payment-modal .pos-invoice-discount-summary{font-size:10px!important;margin-top:7px!important}
html body #detailModal.restaurant-payment-modal .pos-payment-split{padding:10px!important;border-radius:12px!important}
html body #detailModal.restaurant-payment-modal .pos-payment-split-head,html body #detailModal.restaurant-payment-modal #posLoyaltyPanel{display:none!important}
html body #detailModal.restaurant-payment-modal .pos-payment-row{display:grid!important;grid-template-columns:minmax(0,1fr) 100px!important;gap:8px!important;padding:0!important}
html body #detailModal.restaurant-payment-modal .pos-payment-method-label,html body #detailModal.restaurant-payment-modal [data-pos-pay-remove]{display:none!important}
html body #detailModal.restaurant-payment-modal .pos-change-field{order:3!important;display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:10px 12px!important;border-radius:12px!important;gap:8px!important}
html body #detailModal.restaurant-payment-modal .pos-change-field strong{font-size:18px!important}
html body #detailModal.restaurant-payment-modal .pos-change-field small{flex-basis:100%;font-size:11px!important}
html body #detailModal.restaurant-payment-modal .payment-modal-actions{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;margin-top:15px!important;padding:0!important}
html body #detailModal.restaurant-payment-modal #confirmSaleButton{grid-column:1!important;grid-row:1!important;min-height:44px!important;font-size:13px!important}
html body #detailModal.restaurant-payment-modal #cancelPaymentButton{grid-column:2!important;grid-row:1!important;min-height:44px!important;font-size:12px!important}
html body #detailModal.restaurant-customer-modal .modal-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:14px 0!important}
html body #detailModal.restaurant-customer-modal .modal-form-grid label:first-child,html body #detailModal.restaurant-customer-modal .modal-form-grid label:last-child{grid-column:1/-1!important}
html body #detailModal.restaurant-customer-modal label{display:grid!important;gap:5px!important;font-size:12px!important}
html body #detailModal.restaurant-customer-modal input{min-height:38px!important;width:100%!important;min-width:0!important;box-sizing:border-box}
html body #detailModal.restaurant-customer-modal #saveQuickCustomerButton,html body #detailModal.restaurant-customer-modal #restaurantBackToPayment{min-height:42px!important;margin:4px!important;padding:8px 14px!important;font-size:13px!important}
@media(max-width:420px){html body #detailModal.restaurant-payment-modal .detail-modal-card,html body #detailModal.restaurant-customer-modal .detail-modal-card{padding:14px!important}html body #detailModal.restaurant-payment-modal .pos-payment-row{grid-template-columns:minmax(0,1fr) 85px!important}}
html body #detailModal.restaurant-payment-modal,html body #detailModal.restaurant-customer-modal{flex-direction:row!important}
html body #detailModal.restaurant-payment-modal .detail-modal-card,html body #detailModal.restaurant-customer-modal .detail-modal-card{flex:none!important;display:block!important;align-self:center!important;block-size:auto!important;min-block-size:0!important}
html body #detailModal.restaurant-payment-modal #posCheckoutGrid>*{width:100%!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important;box-sizing:border-box;grid-area:auto!important}
html body #detailModal.restaurant-payment-modal #posCheckoutGrid .pos-payment-row{width:100%!important;max-width:100%!important}
html body[data-active-page="cashierPage"] #detailModal.restaurant-payment-modal:not(.is-hidden) .detail-modal-card,html body[data-active-page="cashierPage"] #detailModal.restaurant-customer-modal:not(.is-hidden) .detail-modal-card{height:auto!important;min-height:0!important;margin:auto!important;max-height:calc(100dvh - 36px)!important}
html body #detailModal.restaurant-payment-modal .pos-change-field small{display:block!important}
html body #detailModal.restaurant-payment-modal #posCheckoutGrid .pos-change-field>small{display:block!important;font-size:11px!important;line-height:1.5!important}

/* Product caption: name, category and price on one row under the photo. */
#cashierPage.restaurant-pos .restaurant-product-info{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:6px!important;min-height:52px!important;flex:0 0 auto!important;padding:9px!important}
#cashierPage.restaurant-pos .restaurant-product-info>strong{font-size:12px!important;line-height:1.4!important;min-width:0;overflow:hidden;white-space:nowrap!important;text-overflow:ellipsis}
#cashierPage.restaurant-pos .restaurant-product-info>small{font-size:9px!important;max-width:65px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#cashierPage.restaurant-pos .restaurant-product-bottom{display:block!important;margin:0!important;padding:0!important;white-space:nowrap;font-size:13px!important}
#cashierPage.restaurant-pos .restaurant-product-bottom>span{display:none!important}
#cashierPage.restaurant-pos .restaurant-product,#cashierPage.restaurant-pos .restaurant-product-add{min-height:147px!important}
#cashierPage.restaurant-pos #productsGrid.restaurant-products{grid-auto-rows:minmax(147px,auto)!important}
