.rjpos-wrap{max-width:none;width:100%;box-sizing:border-box}.rjpos-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0}.rjpos-title h1{font-size:30px;font-weight:700;margin:0}.rjpos-title p{margin:6px 0 0;color:#646970}.rjpos-badge{background:#1d2327;color:#fff;padding:8px 12px;border-radius:999px}.rjpos-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.rjpos-card{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.rjpos-card span{display:block;color:#646970;font-size:13px}.rjpos-card strong{display:block;font-size:26px;margin-top:8px}.rjpos-card.warning{border-left:5px solid #dba617}.rjpos-panel{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:20px;margin:0 0 18px;box-sizing:border-box}.rjpos-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.rjpos-register{display:grid;grid-template-columns:minmax(680px,2fr) minmax(420px,1fr);gap:18px;align-items:start}.rjpos-search{width:100%;font-size:20px!important;padding:12px!important}.rjpos-search-results{margin-top:10px}.rjpos-result{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #dcdcde;border-radius:9px;margin:8px 0;cursor:pointer;background:#fff}.rjpos-result:hover{background:#f0f6fc}.rjpos-result strong{display:block;font-size:16px}.rjpos-result small{color:#646970}.rjpos-totals{margin:18px 0 10px;border-top:2px solid #dcdcde;padding-top:10px}.rjpos-totals>div{display:flex;justify-content:space-between;font-size:16px;padding:6px}.rjpos-totals .grand{font-size:24px;font-weight:700}.rjpos-payment{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.rjpos-payment label{font-weight:600}.rjpos-payment select,.rjpos-payment input{width:100%;font-size:18px;padding:8px}.rjpos-change{font-size:18px;padding:10px;background:#f6f7f7;border-radius:8px}.rjpos-form{display:grid;gap:13px}.rjpos-form label{display:grid;gap:5px;font-weight:600}.rjpos-form input,.rjpos-form select{width:100%;max-width:none;padding:8px}.rjpos-narrow{max-width:650px}.rjpos-actions{display:flex;flex-wrap:wrap;gap:10px}.rjpos-table-scroll{overflow:auto}.rjpos-low td{background:#fff8e5}.rjpos-status{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:700;font-size:11px}.rjpos-status.expired,.rjpos-status.urgent{background:#d63638;color:#fff}.rjpos-status.soon{background:#dba617;color:#1d2327}.rjpos-status.ok{background:#d7f0df;color:#135e2f}.rjpos-filter{display:flex;gap:12px;align-items:end;margin:15px 0}.rjpos-filter label{display:grid;gap:4px}.rjpos-cart input.rjpos-qty{width:86px}.rjpos-front{padding:20px}.rjpos-front .rjpos-register{max-width:1450px;margin:auto}
@media(max-width:900px){.rjpos-grid2,.rjpos-register{grid-template-columns:1fr}.rjpos-payment{grid-template-columns:1fr}.rjpos-title{align-items:flex-start;gap:10px}.rjpos-badge{display:none}}
.rjpos-category-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}.rjpos-category-btn{min-height:72px;border:1px solid #c3c4c7;border-radius:12px;background:#f6f7f7;font-size:21px;font-weight:700;cursor:pointer}.rjpos-category-btn:hover,.rjpos-category-btn.active{background:#2271b1;color:#fff;border-color:#2271b1}.rjpos-category-btn:focus{outline:3px solid rgba(34,113,177,.22);outline-offset:2px}
@media(max-width:520px){.rjpos-category-buttons{grid-template-columns:1fr}.rjpos-category-btn{min-height:60px}}

/* v1.2 picture-based produce picker */
.rjpos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px;margin-top:14px;max-height:720px;overflow:auto;padding:3px}
.rjpos-product-grid .rjpos-product-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:205px;margin:0;padding:10px;text-align:center;background:#fff;border:2px solid #e2e4e7;border-radius:14px;cursor:pointer;color:#1d2327;font:inherit}
.rjpos-product-grid .rjpos-product-tile:hover,.rjpos-product-grid .rjpos-product-tile:focus{background:#f0f6fc;border-color:#2271b1;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.rjpos-product-tile img,.rjpos-product-placeholder{width:112px;height:112px;border-radius:12px;object-fit:cover;background:#f6f7f7;display:flex;align-items:center;justify-content:center;font-size:56px;margin-bottom:8px}
.rjpos-product-name{font-size:17px;font-weight:700;line-height:1.2;min-height:40px;display:flex;align-items:center;justify-content:center}
.rjpos-product-price{font-size:17px;font-weight:800;margin-top:4px}
.rjpos-product-tile small{color:#646970;margin-top:3px}
.rjpos-search-row{align-items:center}.rjpos-search-row img,.rjpos-search-row .rjpos-product-placeholder{width:58px;height:58px;min-width:58px;font-size:28px;margin:0}.rjpos-search-info{flex:1}
.rjpos-image-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1px solid #dcdcde;border-radius:8px;padding:10px;background:#f6f7f7}
.rjpos-image-preview{width:100%;min-height:110px;display:flex;align-items:center;justify-content:center;border:1px dashed #b8bcc2;border-radius:8px;background:#fff;color:#646970}
.rjpos-image-preview img{max-width:180px;max-height:140px;border-radius:8px;object-fit:contain}
.rjpos-table-thumb{width:50px;height:50px;object-fit:cover;border-radius:7px}.rjpos-table-placeholder{font-size:28px;display:inline-block;width:50px;text-align:center}.rjpos-empty-products{padding:14px;background:#f6f7f7;border-radius:8px}
@media(max-width:620px){.rjpos-product-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.rjpos-product-tile img,.rjpos-product-placeholder{width:92px;height:92px}}

/* v1.4 larger product picker for fast grocery checkout */
.rjpos-register>.rjpos-panel:first-child{min-width:0;padding:22px}
.rjpos-register>.rjpos-panel:first-child h2{font-size:24px;margin-top:12px}
.rjpos-register>.rjpos-panel:nth-child(2){min-width:0}
.rjpos-product-grid .rjpos-product-tile{min-height:225px}
.rjpos-product-tile img,.rjpos-product-placeholder{width:128px;height:128px}
@media(max-width:1180px){.rjpos-register{grid-template-columns:minmax(520px,1.45fr) minmax(380px,1fr)}.rjpos-product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
@media(max-width:900px){.rjpos-register{grid-template-columns:1fr}.rjpos-product-grid{max-height:none}}

/* v1.6 customer-facing second display */
.rjpos-sale-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.rjpos-sale-heading h2{margin:0 0 12px}
.rjpos-customer-screen{background:#f3f5f7;min-height:calc(100vh - 32px);margin:0!important;padding:28px!important;max-width:none!important;box-sizing:border-box}
.rjpos-customer-header{display:flex;justify-content:space-between;align-items:center;background:#135e2f;color:#fff;padding:24px 30px;border-radius:18px;margin-bottom:22px}.rjpos-customer-brand{font-size:42px;font-weight:900;letter-spacing:1px}.rjpos-customer-welcome{font-size:20px;margin-top:4px}.rjpos-customer-clock{font-size:24px;font-weight:700;text-align:right}
.rjpos-customer-layout{display:grid;grid-template-columns:1.7fr .8fr;gap:22px}.rjpos-customer-items,.rjpos-customer-summary{background:#fff;border-radius:18px;box-shadow:0 3px 16px rgba(0,0,0,.08);overflow:hidden}.rjpos-customer-items-head{display:grid;grid-template-columns:1fr auto;padding:18px 24px;background:#1d2327;color:#fff;font-size:21px;font-weight:800}.rjpos-customer-line{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:18px 24px;border-bottom:1px solid #e8eaed;font-size:22px}.rjpos-customer-line-name{font-weight:800}.rjpos-customer-line-detail{display:block;color:#646970;font-size:16px;margin-top:4px}.rjpos-customer-line-price{font-size:24px;font-weight:900}.rjpos-customer-empty{display:flex;min-height:430px;align-items:center;justify-content:center;color:#8c8f94;font-size:25px;text-align:center;padding:30px}
.rjpos-customer-summary{padding:28px;align-self:start}.rjpos-customer-thanks{text-align:center;font-size:36px;font-weight:900;color:#135e2f;margin:2px 0 26px}.rjpos-customer-summary-row{display:flex;justify-content:space-between;font-size:22px;padding:13px 0;border-bottom:1px solid #eee}.rjpos-customer-total{margin:24px -10px 14px;padding:22px 18px;border-radius:14px;background:#135e2f;color:#fff;display:flex;justify-content:space-between;align-items:center;font-size:28px;font-weight:900}.rjpos-customer-total strong{font-size:42px}.rjpos-customer-saving{text-align:center;color:#646970;font-size:16px;margin-top:18px}.rjpos-customer-footer{text-align:center;font-size:17px;color:#646970;margin-top:20px}
@media(max-width:900px){.rjpos-customer-layout{grid-template-columns:1fr}.rjpos-customer-brand{font-size:32px}.rjpos-customer-header{padding:18px}.rjpos-customer-total strong{font-size:34px}}

/* v1.7 front-end POS login, employee clock, and end-of-day */
.rjpos-pos-body{margin:0!important;background:#f2f5f3!important;color:#17211b!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}.rjpos-pos-body .rjpos-shell{min-height:100vh}.rjpos-pos-body #wpadminbar{display:none!important}.rjpos-pos-body.admin-bar{margin-top:0!important}.rjpos-pos-body .rjpos-front{padding:22px;min-height:100vh}.rjpos-pos-body a{text-decoration:none}
.rjpos-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#0d4827,#1d6b3b 58%,#f0b323)}.rjpos-login-card{width:min(430px,calc(100vw - 40px));box-sizing:border-box;background:#fff;border-radius:24px;padding:38px;box-shadow:0 24px 70px rgba(0,0,0,.24);text-align:center}.rjpos-login-logo{width:82px;height:82px;border-radius:22px;margin:0 auto 18px;display:grid;place-items:center;background:#135e2f;color:#fff;font-size:34px;font-weight:900;letter-spacing:-2px}.rjpos-login-card h1{margin:0;font-size:34px;line-height:1.1;color:#17211b}.rjpos-login-subtitle{margin:8px 0 26px;color:#69756d;font-size:17px}.rjpos-login-card form{text-align:left}.rjpos-login-card label{font-weight:750;color:#25342a}.rjpos-login-card input[type=text],.rjpos-login-card input[type=password]{width:100%;box-sizing:border-box;margin:7px 0 14px;border:1px solid #c8d1cb;border-radius:11px;padding:13px 14px;font-size:17px;background:#fff}.rjpos-login-card .login-remember{font-size:14px}.rjpos-login-card input[type=submit],.rjpos-login-button{display:block;width:100%;box-sizing:border-box;border:0;border-radius:11px;padding:14px 18px;background:#135e2f;color:#fff!important;font-size:17px;font-weight:800;text-align:center;cursor:pointer}.rjpos-login-card input[type=submit]:hover,.rjpos-login-button:hover{background:#0d4827}.rjpos-login-help{margin:20px 0 0;color:#8a948d;font-size:13px}.rjpos-login-required{max-width:520px;margin:80px auto;padding:35px;background:#fff;border-radius:18px;text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.08)}
.rjpos-staffbar{max-width:1450px;margin:0 auto 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#163f28;color:#fff;border-radius:14px;padding:13px 17px;box-sizing:border-box;box-shadow:0 2px 8px rgba(0,0,0,.12)}.rjpos-staffbar>div:first-child{display:flex;align-items:center;gap:13px}.rjpos-staffbar strong{font-size:17px}.rjpos-staffbar span{font-size:13px;opacity:.82}.rjpos-staff-actions{display:flex;align-items:center;gap:10px}.rjpos-staff-actions form{margin:0}.rjpos-staff-link{color:#fff!important;font-weight:700;padding:8px 10px;border-radius:8px}.rjpos-staff-link:hover{background:rgba(255,255,255,.12)}
.rjpos-eod-front{max-width:1500px;margin:auto}.rjpos-eod-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:18px 0}.rjpos-eod-heading h1{margin:0;font-size:30px}.rjpos-eod-heading p{margin:5px 0 0;color:#68746c}.rjpos-front-customer{padding:20px;min-height:100vh;box-sizing:border-box}
@media(max-width:700px){.rjpos-staffbar,.rjpos-eod-heading{align-items:flex-start;flex-direction:column}.rjpos-staff-actions{width:100%;flex-wrap:wrap}.rjpos-login-card{padding:28px 22px}.rjpos-front{padding:12px!important}}
@media print{.rjpos-no-print,.rjpos-staffbar,.rjpos-eod-heading button{display:none!important}.rjpos-pos-body,.rjpos-eod-front{background:#fff!important}.rjpos-panel,.rjpos-card{box-shadow:none!important;break-inside:avoid}.rjpos-eod-heading{margin-top:0}.rjpos-front{padding:0!important}}


/* v1.8 produce category popup */
.rjpos-modal-open{overflow:hidden!important}
.rjpos-category-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.rjpos-category-modal.open{display:flex}
.rjpos-category-backdrop{position:absolute;inset:0;background:rgba(15,26,19,.68);backdrop-filter:blur(2px)}
.rjpos-category-dialog{position:relative;width:min(1120px,96vw);max-height:90vh;background:#fff;border-radius:22px;box-shadow:0 28px 90px rgba(0,0,0,.34);overflow:hidden;display:flex;flex-direction:column}
.rjpos-category-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid #dde3df;background:#f8faf9}
.rjpos-category-header h2{margin:0!important;font-size:30px!important;color:#17211b}.rjpos-category-header p{margin:4px 0 0;color:#657168;font-size:15px}
.rjpos-category-close{width:52px;height:52px;border:0;border-radius:50%;background:#163f28;color:#fff;font-size:34px;line-height:1;cursor:pointer;display:grid;place-items:center}.rjpos-category-close:hover,.rjpos-category-close:focus{background:#0d4827;outline:3px solid rgba(19,94,47,.2)}
.rjpos-category-products{margin:0!important;padding:22px!important;max-height:none!important;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:16px!important}
.rjpos-category-products .rjpos-product-tile{min-height:220px!important}
.rjpos-category-loading{padding:40px;text-align:center;font-size:20px;color:#657168;grid-column:1/-1}
.rjpos-category-products .rjpos-empty-products{grid-column:1/-1;font-size:18px;padding:28px}
@media(max-width:700px){.rjpos-category-modal{padding:10px}.rjpos-category-dialog{width:100%;max-height:94vh;border-radius:16px}.rjpos-category-header{padding:15px 16px}.rjpos-category-header h2{font-size:24px!important}.rjpos-category-products{padding:14px!important;grid-template-columns:repeat(2,minmax(125px,1fr))!important;gap:10px!important}.rjpos-category-products .rjpos-product-tile{min-height:185px!important}.rjpos-category-close{width:46px;height:46px;font-size:30px}}

/* v1.9 expiration + smart reorder */
.rjpos-expiry-risk td{background:#fff4e5!important}.rjpos-low td{background:#fff9db!important}.rjpos-status.urgent{background:#b32d2e;color:#fff}.rjpos-status.soon{background:#dba617;color:#111}.rjpos-status.ok{background:#2e7d32;color:#fff}

/* v2.2 installable desktop app */
.rjpos-install-secondary{width:100%;margin-top:12px;border:2px solid #163f28;border-radius:11px;padding:12px 16px;background:#fff;color:#163f28;font-size:15px;font-weight:800;cursor:pointer}
.rjpos-install-secondary:hover{background:#eef6f1}
.rjpos-install-link{border:1px solid rgba(255,255,255,.38);background:transparent;cursor:pointer;font:inherit}
@media (display-mode:standalone){.rjpos-install-app{display:none!important}}

/* v2.3 register layout — desktop grocery POS */
.rjpos-front{padding:10px!important;background:#eef2f6;min-height:calc(100vh - 20px)}
.rjpos-front .rjpos-staffbar{max-width:none;margin:0 0 8px;border-radius:0;background:#12324a;box-shadow:none;padding:10px 16px;min-height:48px}
.rjpos-front .rjpos-staffbar strong{font-size:16px}.rjpos-front .rjpos-staffbar span{font-size:12px}
.rjpos-front .rjpos-register-modern{max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,61fr) minmax(420px,39fr);gap:8px;align-items:stretch;min-height:calc(100vh - 86px)}
.rjpos-catalog-pane,.rjpos-cart-pane{background:#fff;border:1px solid #cfd8e3;border-radius:6px;min-width:0;overflow:hidden}
.rjpos-catalog-pane{display:flex;flex-direction:column}
.rjpos-catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;padding:10px;background:#dfe7f0;border-bottom:1px solid #cbd5df}
.rjpos-search-wrap{position:relative}.rjpos-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:22px;color:#5c6875;z-index:1}.rjpos-register-modern .rjpos-search{height:44px!important;font-size:18px!important;padding:8px 12px 8px 42px!important;border:1px solid #c2ccd7!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important}
.rjpos-tool-btn{border:1px solid #c2ccd7;background:#fff;border-radius:5px;font-size:23px;cursor:pointer;color:#17324a}
.rjpos-filter-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;background:#dfe7f0;border-bottom:1px solid #cbd5df}
.rjpos-chip{border:0;background:#edf1f5;color:#44515e;border-radius:18px;padding:7px 13px;font-size:14px;line-height:1;cursor:pointer}.rjpos-chip.active{background:#0877c9;color:#fff}.rjpos-chip-static{cursor:default}
.rjpos-main-product-grid{flex:1;display:grid!important;grid-template-columns:repeat(4,minmax(145px,1fr))!important;grid-auto-rows:minmax(210px,1fr);gap:7px!important;margin:0!important;padding:7px!important;max-height:none!important;overflow:auto;background:#f7f9fb;align-content:start}
.rjpos-main-product-grid .rjpos-product-tile{min-height:210px!important;border:1px solid #ccd6e0!important;border-radius:6px!important;padding:8px!important;align-items:stretch!important;text-align:left!important;background:#fff!important;box-shadow:none!important;position:relative}
.rjpos-main-product-grid .rjpos-product-tile:hover,.rjpos-main-product-grid .rjpos-product-tile:focus{border-color:#1682cf!important;background:#f8fcff!important;box-shadow:0 0 0 2px rgba(22,130,207,.12)!important}
.rjpos-main-product-grid .rjpos-product-tile img,.rjpos-main-product-grid .rjpos-product-placeholder{width:100%!important;height:118px!important;object-fit:contain!important;margin:0 0 8px!important;border-radius:3px!important;background:#fff!important}
.rjpos-main-product-grid .rjpos-product-placeholder{display:flex;align-items:center;justify-content:center;font-size:42px;background:#f4f6f8!important}
.rjpos-main-product-grid .rjpos-product-name{font-weight:700;font-size:15px;line-height:1.22;min-height:36px;color:#172536}.rjpos-main-product-grid .rjpos-product-price{font-size:16px;font-weight:700;text-align:right;margin-top:auto;color:#172536}.rjpos-main-product-grid small{font-size:11px;color:#6a7784;margin-top:4px}
.rjpos-catalog-footer{display:flex;justify-content:space-between;gap:10px;padding:7px 10px;background:#e5ebf1;border-top:1px solid #cbd5df;color:#485665;font-size:12px}
.rjpos-products-loading{padding:25px;color:#687786}
.rjpos-cart-pane{display:flex;flex-direction:column;position:relative}
.rjpos-cart-pane form{display:flex;flex-direction:column;flex:1;min-height:0}
.rjpos-cart-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;background:#dfe7f0;border-bottom:1px solid #cbd5df;font-weight:700}.rjpos-cart-label{color:#25374a}.rjpos-customer-pill{display:inline-flex;align-items:center;background:#0877c9;color:#fff;border-radius:18px;padding:5px 10px;font-weight:600}.rjpos-display-link{font-size:13px;text-decoration:none;color:#164f7a}
.rjpos-cart-scroll{flex:1;min-height:270px;overflow:auto;background:#fff}
.rjpos-cart{width:100%;border-collapse:collapse;background:#fff}.rjpos-cart thead th{position:sticky;top:0;z-index:2;background:#eef3f7;color:#526170;font-size:12px;font-weight:700;padding:9px 6px;border-bottom:1px solid #d5dee7;text-align:left}.rjpos-cart tbody td{padding:10px 6px;border-bottom:1px solid #edf0f3;vertical-align:middle;color:#172536}.rjpos-cart tbody td:nth-child(1){width:70px}.rjpos-cart tbody td:nth-child(3),.rjpos-cart tbody td:nth-child(4){white-space:nowrap}.rjpos-cart tbody td:last-child{width:38px}.rjpos-cart input.rjpos-qty{width:58px!important;min-height:40px;padding:4px!important;border:1px solid #cbd5df!important;border-radius:5px!important;font-size:16px!important}.rjpos-cart .rjpos-remove{width:34px;height:34px;border-radius:50%!important;background:#e30b25!important;color:#fff!important;border:0!important;font-size:20px!important;line-height:1!important;padding:0!important}.rjpos-cart .empty td{text-align:center;color:#7b8793;padding:50px 10px}
.rjpos-checkout-dock{background:#f7f9fb;border-top:1px solid #cbd5df}.rjpos-checkout-dock .rjpos-totals{margin:0;padding:8px 10px;border-top:0;background:#f7f9fb}.rjpos-checkout-dock .rjpos-totals>div{padding:4px 0;font-size:15px}.rjpos-checkout-dock .rjpos-totals .grand{font-size:21px;border-top:1px solid #d9e0e7;margin-top:4px;padding-top:7px}
.rjpos-checkout-dock .rjpos-payment{display:block;padding:0 8px 8px}.rjpos-payment-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rjpos-payment-row label{font-size:12px;color:#536170}.rjpos-payment-row select,.rjpos-payment-row input{font-size:16px!important;min-height:40px!important;padding:5px 8px!important;background:#fff}.rjpos-checkout-dock .rjpos-change{display:flex;justify-content:space-between;align-items:center;margin:7px 0;padding:7px 9px;border-radius:4px;background:#edf2f6;font-size:14px}.rjpos-checkout-actions{display:grid;grid-template-columns:30% 70%;gap:2px}.rjpos-checkout-actions .button{height:48px!important;border-radius:3px!important;font-size:18px!important;font-weight:600!important;margin:0!important}.rjpos-void-button{background:#df0b24!important;border-color:#df0b24!important;color:#fff!important}.rjpos-checkout-button{background:#078c3d!important;border-color:#078c3d!important;color:#fff!important}.rjpos-checkout-button:hover{background:#067b36!important}
@media(max-width:1180px){.rjpos-front .rjpos-register-modern{grid-template-columns:minmax(0,57fr) minmax(390px,43fr)}.rjpos-main-product-grid{grid-template-columns:repeat(3,minmax(135px,1fr))!important}}
@media(max-width:900px){.rjpos-front .rjpos-register-modern{grid-template-columns:1fr;min-height:auto}.rjpos-main-product-grid{grid-template-columns:repeat(3,minmax(120px,1fr))!important;max-height:650px!important}.rjpos-cart-pane{min-height:620px}}
@media(max-width:600px){.rjpos-main-product-grid{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.rjpos-payment-row{grid-template-columns:1fr}.rjpos-checkout-actions{grid-template-columns:1fr}.rjpos-front{padding:4px!important}}


/* v2.4 screen-fit register + per-product sell type */
html:has(body.rjpos-pos-body),body.rjpos-pos-body{height:100%;margin:0!important;overflow:hidden!important}
body.rjpos-pos-body .rjpos-shell{height:100%;min-height:0;overflow:hidden}
body.rjpos-pos-body .rjpos-front{height:100%;box-sizing:border-box;min-height:0!important;overflow:hidden;padding:8px!important;display:flex;flex-direction:column}
.rjpos-front .rjpos-staffbar{flex:0 0 auto;margin-bottom:7px!important;min-height:44px!important;padding:7px 14px!important}
.rjpos-front .rjpos-register-modern{flex:1 1 auto;min-height:0!important;height:auto!important;overflow:hidden;grid-template-columns:minmax(0,61fr) minmax(390px,39fr)}
.rjpos-catalog-pane,.rjpos-cart-pane{min-height:0!important;height:100%;overflow:hidden}
.rjpos-catalog-toolbar{padding:7px 9px!important;grid-template-columns:minmax(0,1fr) 42px!important}
.rjpos-register-modern .rjpos-search{height:40px!important}
.rjpos-filter-chips{padding:6px 9px!important;min-height:42px;flex:0 0 auto}
.rjpos-main-product-grid{min-height:0!important;grid-auto-rows:175px!important;grid-template-columns:repeat(4,minmax(130px,1fr))!important;padding:6px!important;gap:6px!important}
.rjpos-main-product-grid .rjpos-product-tile{min-height:175px!important;padding:6px!important}
.rjpos-main-product-grid .rjpos-product-tile img,.rjpos-main-product-grid .rjpos-product-placeholder{height:82px!important;margin-bottom:5px!important}
.rjpos-main-product-grid .rjpos-product-name{font-size:14px!important;min-height:30px!important}
.rjpos-main-product-grid .rjpos-product-price{font-size:15px!important}
.rjpos-main-product-grid small{font-size:10px!important}
.rjpos-catalog-footer{padding:4px 9px!important;min-height:24px;box-sizing:border-box}
.rjpos-cart-top{padding:8px 10px!important;min-height:48px;box-sizing:border-box}
.rjpos-cart-scroll{min-height:0!important;overflow:auto!important}
.rjpos-cart thead th{padding:6px 5px!important}
.rjpos-cart tbody td{padding:6px 5px!important}
.rjpos-cart input.rjpos-qty{min-height:34px!important;height:34px!important}
.rjpos-checkout-dock{flex:0 0 auto}
.rjpos-checkout-dock .rjpos-totals{padding:5px 9px!important}
.rjpos-checkout-dock .rjpos-totals>div{padding:2px 0!important;font-size:14px!important}
.rjpos-checkout-dock .rjpos-totals .grand{font-size:19px!important;padding-top:4px!important}
.rjpos-checkout-dock .rjpos-payment{padding:0 7px 6px!important}
.rjpos-payment-row select,.rjpos-payment-row input{min-height:35px!important;height:35px!important}
.rjpos-checkout-dock .rjpos-change{margin:5px 0!important;padding:5px 8px!important}
.rjpos-checkout-actions .button{height:42px!important;font-size:17px!important}
#rjpos-sell-type{min-width:180px}
@media(max-height:760px) and (min-width:901px){
  .rjpos-front .rjpos-staffbar{min-height:40px!important;padding:5px 12px!important}
  .rjpos-main-product-grid{grid-auto-rows:150px!important}
  .rjpos-main-product-grid .rjpos-product-tile{min-height:150px!important}
  .rjpos-main-product-grid .rjpos-product-tile img,.rjpos-main-product-grid .rjpos-product-placeholder{height:62px!important}
  .rjpos-cart-top{min-height:42px!important;padding:6px 9px!important}
}
@media(max-width:1180px) and (min-width:901px){.rjpos-main-product-grid{grid-template-columns:repeat(3,minmax(125px,1fr))!important}}
@media(max-width:900px){html:has(body.rjpos-pos-body),body.rjpos-pos-body{height:auto;overflow:auto!important}body.rjpos-pos-body .rjpos-shell,body.rjpos-pos-body .rjpos-front{height:auto;overflow:visible}.rjpos-front .rjpos-register-modern{overflow:visible}.rjpos-catalog-pane,.rjpos-cart-pane{height:auto}}

/* v2.5 customer phone lookup + loyalty */
.rjpos-customer-area{display:flex;align-items:center;gap:7px;min-width:0}.rjpos-customer-area small{color:#536170;white-space:nowrap}.rjpos-customer-pill{border:0;cursor:pointer;font:inherit}.rjpos-customer-modal{display:none;position:fixed;inset:0;z-index:100000}.rjpos-customer-modal.open{display:block}.rjpos-customer-backdrop{position:absolute;inset:0;background:rgba(10,24,38,.55)}.rjpos-customer-dialog{position:relative;width:min(520px,calc(100% - 30px));margin:8vh auto;background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:18px}.rjpos-customer-dialog header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;border-bottom:1px solid #d9e1e8;padding-bottom:10px}.rjpos-customer-dialog header h2{margin:0 0 3px}.rjpos-customer-dialog header p{margin:0;color:#667482}.rjpos-customer-dialog header button{border:0;background:#eef2f5;border-radius:50%;width:38px;height:38px;font-size:25px;cursor:pointer}.rjpos-customer-search{display:grid;grid-template-columns:1fr 100px;gap:8px;margin:16px 0}.rjpos-customer-search input,.rjpos-customer-new input{min-height:46px;font-size:18px;padding:8px 10px;border:1px solid #bdc9d4;border-radius:6px}.rjpos-customer-search button,.rjpos-customer-found button,.rjpos-customer-new button{border:0;border-radius:6px;background:#0877c9;color:#fff;font-weight:700;cursor:pointer;min-height:46px;padding:8px 14px}.rjpos-customer-found{display:grid;gap:5px;padding:13px;background:#eef7ff;border:1px solid #b8d9ef;border-radius:8px}.rjpos-customer-found strong{font-size:19px}.rjpos-customer-new{display:grid;gap:8px;margin-top:12px}.rjpos-customer-new h3{margin:0}.rjpos-customer-guest{width:100%;margin-top:14px;min-height:42px;border:1px solid #c8d2dc;background:#fff;border-radius:6px;cursor:pointer}.rjpos-customer-error{color:#b42318}@media(max-width:600px){.rjpos-customer-search{grid-template-columns:1fr}.rjpos-customer-area small{display:none}}


/* v2.6 manager quick edit + shift closing */
.rjpos-product-card-wrap{position:relative;min-width:0;display:flex;flex-direction:column}.rjpos-product-card-wrap .rjpos-product-tile{flex:1;width:100%}.rjpos-product-edit{position:absolute;right:8px;top:8px;z-index:4;border:1px solid #b8c6d1;background:#fff;border-radius:7px;padding:5px 8px;font-weight:700;font-size:12px;cursor:pointer}.rjpos-product-edit:hover{background:#eef5fb}.rjpos-close-shift-btn{background:#f5b942!important;border-color:#c28b14!important;color:#18222a!important;font-weight:800!important}.rjpos-manager-modal{position:fixed;inset:0;z-index:100050;display:flex;align-items:center;justify-content:center;padding:20px}.rjpos-manager-backdrop{position:absolute;inset:0;background:rgba(8,22,34,.62)}.rjpos-manager-dialog{position:relative;z-index:2;width:min(620px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.3);padding:20px}.rjpos-manager-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #d8e0e7;padding-bottom:12px;margin-bottom:16px}.rjpos-manager-dialog h2{margin:0;font-size:26px}.rjpos-manager-dialog header p{margin:3px 0 0;color:#637383}.rjpos-manager-x{border:0;background:#eef2f5;border-radius:50%;font-size:25px;line-height:38px;width:40px;height:40px;cursor:pointer}.rjpos-shift-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.rjpos-shift-summary>div{border:1px solid #d7e0e8;background:#f7f9fb;padding:12px;border-radius:10px}.rjpos-shift-summary span{display:block;color:#647586;font-size:12px}.rjpos-shift-summary strong{display:block;font-size:18px;margin-top:3px}.rjpos-manager-dialog form>label{display:block;font-weight:700;margin:10px 0}.rjpos-manager-dialog input,.rjpos-manager-dialog select{width:100%;min-height:44px;margin-top:5px;font-size:16px}.rjpos-close-shift-confirm{width:100%;min-height:50px;font-size:17px!important;margin-top:10px!important}.rjpos-quick-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.rjpos-quick-edit-grid label{margin:0!important}.rjpos-quick-edit-grid .wide{grid-column:1/-1}.rjpos-quick-edit-grid .check{display:flex;align-items:center;gap:8px}.rjpos-quick-edit-grid .check input{width:auto;min-height:auto;margin:0}.rjpos-quick-edit-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.rjpos-quick-edit-actions button{min-width:160px;min-height:44px}@media(max-width:700px){.rjpos-shift-summary,.rjpos-quick-edit-grid{grid-template-columns:1fr}.rjpos-quick-edit-grid .wide{grid-column:auto}.rjpos-manager-modal{padding:8px}}

/* v2.7 new product and category manager */
.rjpos-new-product-btn{white-space:nowrap;padding:0 14px!important;font-weight:800!important;width:auto!important}
.rjpos-manage-categories{font-weight:800!important;border-style:dashed!important}
.rjpos-category-manager-dialog{max-width:620px!important}
.rjpos-category-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0 0 12px}
.rjpos-category-add-row input{min-height:44px;font-size:16px}
#rjpos-category-status{min-height:24px;font-weight:700;margin-bottom:6px}
.rjpos-category-list{display:grid;gap:8px;max-height:420px;overflow:auto}
.rjpos-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe5e1;border-radius:10px;padding:10px 12px;background:#fff}
.rjpos-category-row span{font-size:16px;font-weight:700}.rjpos-category-row span b{font-size:20px;margin-right:6px}.rjpos-category-row small{color:#65736a}
@media(max-width:760px){.rjpos-category-add-row{grid-template-columns:1fr}.rjpos-new-product-btn{font-size:0}.rjpos-new-product-btn:after{content:'＋';font-size:22px}}

/* v2.9 customer add/find improvements */
.rjpos-new-customer-btn{border:1px solid #0877c9;background:#fff;color:#0877c9;border-radius:7px;min-height:34px;padding:5px 10px;font-weight:700;cursor:pointer;white-space:nowrap}
.rjpos-new-customer-btn:hover{background:#eef7ff}
.rjpos-customer-secondary{width:100%;margin-top:10px;min-height:42px;border:1px solid #c8d2dc;background:#fff;border-radius:6px;cursor:pointer;font-weight:700;color:#33465a}
.rjpos-customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.rjpos-customer-form-grid label{display:grid;gap:5px;font-weight:700;color:#26384a}
.rjpos-customer-form-grid label span{color:#c62828}.rjpos-customer-form-grid label small{font-weight:500;color:#718096}
.rjpos-customer-form-grid input{min-height:46px;font-size:17px;padding:8px 10px;border:1px solid #bdc9d4;border-radius:6px;font-weight:400}
.rjpos-customer-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.rjpos-customer-form-actions #rjpos-customer-create{border:0;border-radius:6px;background:#0877c9;color:#fff;font-weight:800;cursor:pointer;min-height:46px;padding:8px 14px;margin-top:10px}
@media(max-width:760px){.rjpos-new-customer-btn{font-size:12px;padding:4px 7px}.rjpos-customer-form-grid,.rjpos-customer-form-actions{grid-template-columns:1fr}.rjpos-customer-area{flex-wrap:wrap}}
/* v3.1 customer header + loyalty programs */
.rjpos-cart-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px!important;min-width:0}
.rjpos-customer-main{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.rjpos-customer-main .rjpos-customer-pill{max-width:230px;min-width:0}
.rjpos-customer-main #rjpos-customer-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.rjpos-customer-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;white-space:nowrap}
.rjpos-customer-meta #rjpos-customer-points{font-size:12px;color:#536170;font-weight:700}
.rjpos-savings-row strong,.rjpos-customer-savings strong{color:#18864b}
.rjpos-loyalty-front{padding:18px;background:#f4f7fa;min-height:calc(100vh - 80px);box-sizing:border-box}
.rjpos-loyalty-front>h1{margin:0 0 4px}.rjpos-loyalty-front>p{margin:0 0 14px;color:#5e6c78}
.rjpos-loyalty-grid{align-items:start}.rjpos-loyalty-form .description{grid-column:1/-1;background:#f5f8fb;border:1px solid #dbe4ec;padding:10px;border-radius:7px}
.rjpos-promo-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rjpos-status-ok{display:inline-block;padding:3px 8px;border-radius:999px;background:#e8f7ed;color:#176d3b;font-weight:700}
@media(max-width:1050px){.rjpos-cart-top{grid-template-columns:1fr}.rjpos-customer-meta{justify-content:space-between}.rjpos-customer-main .rjpos-customer-pill{max-width:190px}}
@media(max-width:700px){.rjpos-promo-pair{grid-template-columns:1fr}.rjpos-customer-meta{flex-wrap:wrap}.rjpos-customer-main #rjpos-customer-name{max-width:120px}}
