/* Saved display preferences must win over all older responsive skins. */
html:root body.reference-counter :is(.cart-footer,.cart-area,.cart-panel) .cashier-section-hidden,html:root body.reference-counter .sale-order-customer.cashier-section-hidden,html:root body.reference-counter [data-cart-option].cashier-section-hidden{display:none!important}
html:root body #customSale0824{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;align-self:center!important;border-radius:10px!important;font-size:24px!important;flex:0 0 36px!important;margin:0!important}
html:root body .cart-search-row{flex-wrap:nowrap!important;gap:5px!important;min-width:0!important}
html:root body .cart-search-row>input,html:root body .cart-search-row .search-input-wrap{min-width:0!important;flex:1 1 auto!important}
html:root body #computerShell #computerSidebar .computer-brand img{width:48px!important;height:54px!important;max-height:54px!important}
/* Inset stretching remains correct at 70–140% device zoom; vw sizing did not. */
html:root body :is(.mahalli-modal-backdrop,.m-modal,.modal-overlay):popover-open{inset:0!important;margin:0!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;padding:16px!important;box-sizing:border-box!important;overflow:hidden!important;display:grid!important;place-items:center!important}
html:root body :is(.mahalli-modal-shell,.m-modal-box,.modal-overlay>.modal-card){width:min(760px,100%)!important;max-width:100%!important;min-width:0!important;max-height:calc(100dvh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:18px!important;box-sizing:border-box!important}
html:root body :is(.mahalli-modal-body,.m-modal-body,.modal-card>.modal-body){min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;padding:18px!important}
html:root body :is(.mahalli-modal-head,.mahalli-modal-foot,.m-modal-head,.m-modal-foot,.modal-card>.modal-head,.modal-card>.modal-actions){flex:0 0 auto!important;padding:12px 16px!important}
html:root body .custom-sale-form-0824{display:grid!important;grid-template-columns:minmax(0,1fr) 110px!important;gap:14px!important}
html:root body .custom-sale-form-0824>label:first-child{grid-column:1/-1}
html:root body .custom-sale-form-0824 input{width:100%!important;box-sizing:border-box!important;min-width:0!important;height:44px!important}
html:root body dialog.receipt-wizard-0824{width:min(820px,calc(100% - 24px))!important;max-height:calc(100dvh - 24px)!important;border-radius:18px!important;box-sizing:border-box!important}
html:root body dialog.receipt-wizard-0824 .receipt-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:root body dialog.receipt-wizard-0824 input,html:root body dialog.receipt-wizard-0824 select{min-width:0!important;width:100%!important;box-sizing:border-box!important;font:inherit!important;min-height:44px!important}
.receipt-filters-0826{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}.receipt-filters-0826 label{display:grid;gap:5px;flex:1 1 150px}.receipt-filters-0826 input,.receipt-filters-0826 select{padding:9px;border:1px solid var(--border,#c9d9e8);border-radius:10px;background:var(--surface,#fff);color:var(--text,#244466);font:inherit}.receipt-total-0826{padding:12px;background:var(--accent-soft,#e5eff8);border-radius:12px;line-height:1.9}.receipt-paid-0826{display:grid;grid-template-columns:1fr 1fr;gap:12px}.media-status-0826{display:block;font-size:12px;line-height:1.7;margin-top:6px}
html:root body #permissionsEditor0825 .permission-tools{position:sticky;top:0;z-index:2;padding:12px!important;border-radius:12px;background:var(--surface,#fff)}
html:root body #permissionsEditor0825 .permission-row{padding:10px 12px!important;transition:background .16s,border-color .16s}
html:root body #permissionsEditor0825 .permission-row input{appearance:none!important;border:1px solid #9eb3c7!important;border-radius:999px!important;width:38px!important;height:22px!important;flex:0 0 38px!important;background:#cbd6e1!important;position:relative!important;cursor:pointer}
html:root body #permissionsEditor0825 .permission-row input:before{content:'';position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .17s}
html:root body #permissionsEditor0825 .permission-row input:checked{background:#365f84!important;border-color:#365f84!important}html:root body #permissionsEditor0825 .permission-row input:checked:before{transform:translateX(-16px)}
@media(max-width:600px){html:root body :is(.mahalli-modal-backdrop,.m-modal,.modal-overlay):popover-open{padding:8px!important}html:root body :is(.mahalli-modal-shell,.m-modal-box,.modal-overlay>.modal-card){max-height:calc(100dvh - 16px)!important;border-radius:14px!important}html:root body :is(.mahalli-modal-body,.m-modal-body){padding:12px!important}html:root body dialog.receipt-wizard-0824 .receipt-fields{grid-template-columns:1fr!important}html:root body dialog.receipt-wizard-0824>header h2{font-size:16px!important}.receipt-paid-0826{grid-template-columns:1fr}html:root body :is(.m-modal,.mahalli-modal-backdrop) input{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){html:root body #permissionsEditor0825 .permission-row input:before{transition:none}}

html:root body.reference-counter .cart-footer .discount-box.cashier-section-hidden,html:root body.reference-counter .cart-footer .customer-select-box.cashier-section-hidden{display:none!important}
html:root body #permissionStaffSearch0826{box-sizing:border-box;width:100%;padding:10px;border-radius:10px;border:1px solid #c9d9e8;font:inherit;margin-bottom:10px}
.permission-presets-0826{display:flex;flex-wrap:wrap;gap:8px}.permission-presets-0826 button{background:var(--accent-soft,#e5eff8);border:1px solid #9eb6cd;border-radius:10px;color:var(--text,#244466);font:inherit;padding:8px 12px;cursor:pointer}

html:root body.reference-counter #cartPanel .cashier-section-hidden{display:none!important}
html:root body.reference-counter #cartPanel .product-search-bar{min-width:0!important;gap:5px!important}html:root body.reference-counter #cartPanel .product-search-bar .search-input{min-width:0!important;flex:1 1 auto!important}

html:root body .mahalli-modal-shell:has(.custom-sale-form-0824){width:min(560px,100%)!important}

html:root body #permissionsEmployeesGrid .permission-employee-card[hidden]{display:none!important}

.receipt-filters-0826 [hidden]{display:none!important}

.receipt-filters-0826>button{height:44px;padding:0 16px;border:1px solid #365f84;border-radius:10px;background:#365f84;color:white;font:inherit;font-weight:700;cursor:pointer}.receipt-filters-0826>button:disabled{opacity:.45;cursor:default}.receipt-history-0826 details{margin:10px 0;padding:0 14px;background:var(--surface,#fff);border:1px solid var(--border,#c9d9e8);border-radius:12px}.receipt-history-0826 summary{padding:14px 0;font-weight:700;cursor:pointer;line-height:1.8}.receipt-history-0826 details>div{padding:0 6px 12px;line-height:1.8}.receipt-history-0826 .receipt-count-sheet-0825{margin-top:0}.receipt-history-0826 h2{font-size:21px}
@media(prefers-reduced-motion:no-preference){.receipt-history-0826 details[open]>div{animation:receipt-0826-enter .18s ease-out}@keyframes receipt-0826-enter{from{opacity:0}to{opacity:1}}}

.desktop-payment-methods-0829{display:flex!important;flex-wrap:wrap;gap:5px;padding:6px 4px;flex-shrink:0}.desktop-payment-methods-0829 .payment-button{flex:1 1 75px;min-width:0;padding:7px;font-size:12px}.price-tier-buttons-0829{display:flex;gap:4px}.price-tier-buttons-0829 button{font:inherit;font-size:12px;border:1px solid var(--border,#ccdaeb);border-radius:7px;background:var(--surface,#fff);color:var(--text,#24374e);padding:5px 7px}.price-tier-buttons-0829 button[aria-pressed=true]{background:var(--primary,#365d7f);color:#fff}
.m-product-form .m-field[hidden],.receipt-fields>label[hidden]{display:none!important}
