#mobile-bottom-nav,#mobile-header-menu,#mobile-bill-bar{display:none}#mobile-tools,#mobile-receipt-preview{border:1px solid #b7cbd0;border-radius:15px;padding:0;color:#20364b;background:#f3f7f5;width:min(500px,calc(100vw - 16px));max-height:calc(100dvh - 24px)}#mobile-tools::backdrop,#mobile-receipt-preview::backdrop{background:#112a3dbb}#mobile-tools header,#mobile-receipt-preview header{padding:15px;background:#19364b;color:white;display:flex;justify-content:space-between;align-items:center;gap:10px}#mobile-tools h2,#mobile-receipt-preview h2{font-size:21px;font-weight:800}#mobile-tools button,#mobile-receipt-preview button{padding:11px;border:1px solid #c4d8ce;background:white;color:#295940;border-radius:9px;font-size:13px;min-height:44px}#mobile-tools [data-links]{padding:15px}#mobile-tools h3{font-size:14px;font-weight:800;margin:14px 0 8px}.mobile-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mobile-tool-grid button{text-align:left}#mobile-receipt-preview[open]{display:flex;flex-direction:column;height:calc(100dvh - 24px)}#mobile-receipt-preview header{flex-shrink:0}#mobile-receipt-preview header small{font-size:11px}#mobile-receipt-preview .mobile-receipt-scroll{overflow:auto;min-height:0;padding:14px;flex:1}#mobile-receipt-preview [data-receipt]{background:white;padding:12px;border:1px solid #d1ddda;border-radius:8px;overflow-wrap:anywhere;font:12px/1.3 'Courier New',monospace;color:#172c3b}#mobile-receipt-preview [data-receipt] table{width:100%;border-collapse:collapse}#mobile-receipt-preview [data-receipt] th,#mobile-receipt-preview [data-receipt] td{padding:5px 2px;font-size:11px;vertical-align:middle}#mobile-receipt-preview [data-receipt] img{max-width:170px;max-height:65px;object-fit:contain;margin:auto}#mobile-receipt-preview [data-receipt] svg{max-width:100%;height:34px}#mobile-receipt-preview [data-receipt] h2{font-size:14px}#mobile-receipt-preview [data-receipt] .receipt-rule{border-top:1px dashed #687a82;margin:8px 0}#mobile-receipt-preview [data-message]{font:12px/1.5 Arial;margin-top:10px}#mobile-receipt-preview footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:white;flex-shrink:0}#mobile-receipt-preview [data-print]{background:#2c6347;color:white;grid-column:1/-1}#mobile-receipt-preview [hidden]{display:none!important}
@media screen and (max-width:700px){body{height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-bottom:calc(70px + env(safe-area-inset-bottom))!important;padding-top:env(safe-area-inset-top);display:flex!important;flex-direction:column!important}#app-header{flex-shrink:0;padding:0!important}#app-header-row{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;padding:10px 14px!important;min-height:60px;gap:10px!important}#header-brand{width:auto!important;min-width:0!important;flex:1!important;flex-basis:auto!important;gap:8px!important}#header-brand img{max-width:46px!important;height:34px!important}#header-brand h1{font-size:15px!important;line-height:1.2}#header-brand p{font-size:9px!important}#header-controls,#main-tabs,#legacy-workspace-tools,#workspace-footer{display:none!important}#mobile-header-menu{display:block;background:#ffffff15;color:white;border:1px solid #6e8794;border-radius:8px;min-width:42px;min-height:40px}#billing-workspace{padding:8px!important;gap:0!important;flex:1!important;min-height:0!important;overflow:hidden!important;display:flex;flex-direction:column!important}#billing-workspace[hidden]{display:none!important}#product-workspace,#bill-workspace{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;flex:1!important}body[data-mobile-view="products"] #bill-workspace,body[data-mobile-view="bill"] #product-workspace{display:none!important}body[data-mobile-view="products"] #product-workspace{display:flex!important;flex-direction:column;overflow:hidden!important}#product-workspace .product-heading{padding:11px!important;background:#f7faf8!important;box-shadow:none!important;border:0!important;border-radius:0!important;flex-shrink:0}#product-workspace .product-heading h2{font-size:20px!important;color:#20364b!important}#product-workspace #product-total{font-size:9px!important;padding:3px 6px!important}.product-heading-top{gap:8px!important;margin-bottom:8px!important}#pricing-control{margin-left:auto}#pricing-control button{padding:8px 9px!important;font-size:10px!important}#app-functions,#pos-add-product,#product-deals-btn,#product-compatible-btn{display:none!important}.product-heading-top>button{display:none!important}.product-filters{grid-template-columns:1fr!important;gap:7px!important}#barcode-search-input{height:42px!important;font-size:16px!important}#product-category-filter{height:36px!important;padding:6px!important;font-size:12px}#products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;max-height:none!important;overflow:auto!important;flex:1!important;min-height:0;padding:8px!important;gap:8px!important}#products-grid>div{height:auto!important;min-height:195px!important;padding:8px!important}#products-grid .product-category-image{height:85px!important;min-height:0!important}#products-grid h4{min-height:34px!important;font-size:12px!important}#products-grid .text-sm{font-size:15px!important}#products-grid button[title*="Custom"]{font-size:9px!important;padding:4px!important}body.mobile-has-cart #billing-workspace{padding-bottom:57px!important}#mobile-bill-bar{position:fixed;bottom:calc(75px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:35;background:#285f45;color:white;border:0;border-radius:11px;min-height:44px;padding:12px;font-size:13px;font-weight:800}#mobile-bill-bar:not([hidden]){display:block}body[data-mobile-view="bill"] #bill-workspace{display:flex!important;flex-direction:column;overflow:hidden!important}#bill-heading{padding:12px!important;flex-shrink:0}#bill-heading .uppercase{font-size:19px!important}#cart-items-container{flex:1;min-height:0;overflow:auto!important}#cart-empty-state{min-height:160px}#bill-workspace>div:last-child{flex-shrink:0;padding:10px!important}#bill-workspace>div:last-child>div:last-child{grid-template-columns:1fr 1fr!important}#bill-workspace button[onclick="openPaymentModal()"]{min-height:48px!important;font-size:13px!important}#workspace-landing{flex:1!important;min-height:0!important;height:auto!important;overflow:auto!important;display:block!important}#workspace-landing[hidden]{display:none!important}.workspace-sidebar{max-height:none!important;overflow:visible!important;padding:10px!important}.overview-content{overflow:visible!important;padding:12px!important}#mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:40;gap:4px;background:#fff;border-top:1px solid #c8dcd2;padding:6px 8px;padding-bottom:max(9px,env(safe-area-inset-bottom));height:calc(70px + env(safe-area-inset-bottom))}#mobile-bottom-nav button{display:grid;align-content:center;justify-items:center;gap:4px;border:0;border-radius:9px;background:white;color:#617d89;min-height:48px;padding:5px;font-size:12px}#mobile-bottom-nav span{font-size:20px;line-height:1}#mobile-bottom-nav small{font-size:11px}#mobile-bottom-nav button.active{background:#e1efe6;color:#245b3f;font-weight:800}#payment-modal{padding:8px!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}#payment-modal>div{width:100%!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important}#payment-modal input{font-size:18px!important}#payment-complete-actions{grid-template-columns:1fr!important}#confirm-pay-btn{min-height:48px;font-size:14px!important}#payment-share-actions{grid-template-columns:1fr 1fr!important}}
@media print{#mobile-bottom-nav,#mobile-bill-bar,#mobile-tools,#mobile-receipt-preview{display:none!important}}

#mobile-receipt-preview [data-receipt] .receipt-date-row,#mobile-receipt-preview [data-receipt] .receipt-invoice-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}#mobile-receipt-preview [data-receipt] .receipt-invoice-row svg{max-width:125px}#mobile-receipt-preview [data-receipt]{font-size:13px}#mobile-receipt-preview [data-receipt] td,#mobile-receipt-preview [data-receipt] th{font-size:12px}@media screen and (max-width:700px){#product-workspace .product-feature-buttons{display:none!important}#product-workspace .product-heading-top{flex-wrap:nowrap!important}#products-grid [aria-label="Product photo unavailable"]:before{display:none}#products-grid button{min-height:36px;min-width:34px}#mobile-receipt-preview .receipt-date-row{font-size:11px}}

@media screen and (max-width:700px){body{background:#19364b!important}#billing-workspace,#workspace-landing{background:#eef3f2!important}}

@media screen and (max-width:700px){#mobile-header-menu{display:none!important}#mobile-tools[open],#mobile-receipt-preview[open]{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);bottom:calc(env(safe-area-inset-bottom,0px) + 12px);margin:0 auto;height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow:hidden;display:flex;flex-direction:column}#mobile-tools>header,#mobile-receipt-preview>header{position:relative;flex:0 0 auto;z-index:2;min-height:66px;background:#19364b;padding:12px 14px}#mobile-tools>header button,#mobile-receipt-preview>header button{flex-shrink:0;min-width:64px;min-height:44px}#mobile-tools [data-links]{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:20px}}

/* Keep the iOS home-indicator / exposed viewport area white. */
@media screen and (max-width:700px){html{background:#fff!important}body{background:#fff!important;padding-top:0!important}#app-header{padding-top:env(safe-area-inset-top,0px)!important;background:#19364b!important}#mobile-bottom-nav{background:#fff!important;box-shadow:0 80px 0 0 #fff}}
