:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203345;background:#f5f7f9;font-synthesis:none;--green:#087f68;--ink:#193547;--muted:#687987;--border:#e7edef}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:active{transform:scale(.98)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #59bbaa;outline-offset:3px}button{min-height:44px}a{color:inherit;text-decoration:none}small{font-size:12px;color:var(--muted);display:block}h1,h2,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin-bottom:10px}h2{font-size:18px;letter-spacing:-.3px}p{color:var(--muted);line-height:1.6}strong{font-weight:650}.sidebar{width:252px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--border);padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-weight:800;font-size:25px;letter-spacing:-1px}.brand img{width:44px}.brand-pos{font-weight:400;color:var(--green)}.brand small{font-size:9px;letter-spacing:0;margin-top:3px}.shop-card{margin:36px 0 24px;padding:14px 10px;background:#f5f8f7;border-radius:12px;display:flex;align-items:center;gap:12px}.shop-card strong{font-size:12px}.shop-card small{margin-top:5px}.shop-icon{display:inline-grid;place-items:center;background:#e2f4ed;color:var(--green);width:38px;height:38px;border-radius:10px;font-size:22px}.nav-item{border:0;background:none;width:100%;text-align:left;display:flex;align-items:center;gap:14px;padding:12px 15px;color:var(--muted);border-radius:10px;font-weight:550;margin-bottom:6px}.nav-item span{font-size:24px;width:25px;text-align:center;line-height:1}.nav-item.active{background:#e9f6f0;color:var(--green)}.nav-item:hover{background:#f1f6f4}.sidebar-bottom{margin-top:auto}.sidebar-bottom small{padding:16px;font-size:10px}.workspace{margin-left:252px}header{height:80px;border-bottom:1px solid var(--border);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumbs{font-size:13px;color:var(--muted)}.breadcrumbs span{margin:0 12px;color:#c5cdd3}.header-actions{display:flex;gap:18px;align-items:center}.connection{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--green)}.connection i{width:6px;height:6px;border-radius:50%;background:var(--green)}.connection.off{color:#ad6b13}.connection.off i{background:#ad6b13}.language{border:1px solid var(--border);background:white;border-radius:8px;font-size:11px;padding:0 10px;min-height:36px}.avatar{width:36px;height:36px;border-radius:50%;background:#dfeeea;color:var(--green);display:inline-grid;place-items:center;font-weight:700}.mobile-brand,.mobile-nav{display:none}main{max-width:1360px;padding:22px 38px 32px;margin:auto}.demo-banner{font-size:10px;color:#70828d;display:flex;justify-content:space-between;gap:10px;margin-bottom:26px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.page-heading p{font-size:13px;margin-bottom:0}.page-heading .eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:var(--green);margin-bottom:10px}.primary,.secondary,.light{border:0;border-radius:10px;padding:12px 18px;font-size:13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--green);color:white}.primary:hover{background:#066c59}.secondary{background:#eef5f2;color:var(--green)}.light{background:#fff;color:var(--green);gap:35px}.full{width:100%;margin-top:12px}.hero{background:linear-gradient(110deg,#123b3c,#087f68);border-radius:18px;padding:34px 38px;color:white;display:flex;justify-content:space-between;align-items:center;min-height:255px;overflow:hidden;position:relative}.hero h2{font-size:35px;line-height:1.15;letter-spacing:-1px;margin:16px 0 12px}.hero p{color:#bedbd3;font-size:13px}.pill{font-size:9px;letter-spacing:1.5px;border:1px solid #639d8e;border-radius:30px;padding:6px 10px}.hero-art{padding-right:70px;position:relative}.mini-phone{width:153px;background:#f9fcfa;border:6px solid #153e3b;border-radius:22px;padding:16px 12px;color:var(--ink);transform:rotate(10deg);box-shadow:15px 20px 0 #ffffff0c}.mini-phone>div:first-child{font-weight:800;margin-bottom:25px;font-size:12px}.mini-phone span{color:var(--green);float:right}.mini-phone strong{font-size:18px;display:block;margin-top:7px}.mini-phone small{font-size:8px}.mini-phone p{font-size:7px;color:var(--green);margin:16px 0 0}.fake-bars{height:55px;display:flex;align-items:end;gap:6px;margin-top:15px}.fake-bars i{width:18px;background:#6ab69c;border-radius:3px;height:35%}.fake-bars i:nth-child(2){height:55%}.fake-bars i:nth-child(3){height:45%}.fake-bars i:nth-child(4){height:75%}.fake-bars i:nth-child(5){height:100%;background:#087f68}.float-badge{position:absolute;right:40px;top:20px;font-size:38px;background:#d5f9aa;color:#1c583f;padding:10px 20px;border-radius:14px;transform:rotate(-10deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stat{background:white;border:1px solid var(--border);border-radius:13px;padding:20px}.stat-icon{background:#eef7f4;color:var(--green);display:grid;place-items:center;width:32px;height:32px;border-radius:9px;float:right}.stat small{margin-bottom:12px}.stat strong{font-size:23px;letter-spacing:-.6px}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.panel{background:white;border:1px solid var(--border);border-radius:14px;padding:24px}.panel-title{display:flex;justify-content:space-between;align-items:center}.text-button{border:0;background:none;color:var(--green);font-size:12px}.list-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid #eef2f4;padding:16px 0;min-width:0}.list-row:last-child{border-bottom:0}.list-row strong{font-size:13px}.list-row small{margin-top:5px;font-size:10px}.product-emoji{font-size:25px;background:#f3f6f5;padding:12px;border-radius:10px}.warning{margin-left:auto;border-radius:5px;background:#fff4dc;color:#a16e10;padding:4px 8px;font-size:11px}.empty{padding:35px 10px;text-align:center;color:var(--muted);font-size:13px}.sale-row{width:100%;background:none;text-align:left;border-top:0;border-left:0;border-right:0;color:inherit}.receipt-icon{background:#edf7f2;color:var(--green);padding:10px 13px;border-radius:10px}.grow{flex:1;min-width:0}.right{text-align:right}.search-box{background:white;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;padding:0 15px;gap:10px}.search-box span{font-size:27px;color:var(--muted)}input,select{background:white;border:1px solid #dae3e7;border-radius:9px;padding:12px;width:100%;min-height:45px;color:var(--ink)}input:focus,select:focus{outline:2px solid #8dc9b8;border-color:var(--green)}.search-box input{border:0;background:none}.chips{display:flex;gap:8px;margin:16px 0;overflow:auto;padding-bottom:4px}.chip{flex-shrink:0;border:1px solid var(--border);border-radius:30px;background:white;padding:8px 14px;font-size:11px;min-height:36px}.chip.selected{background:var(--green);color:white;border-color:var(--green)}.sale-layout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:24px;align-items:start}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-card{border:1px solid var(--border);background:white;border-radius:12px;text-align:left;padding:12px;min-width:0;color:var(--ink)}.product-picture{height:85px;background:#f3f7f5;border-radius:8px;display:grid;place-items:center;position:relative;margin-bottom:13px}.product-picture>span:first-child{font-size:43px}.add-circle{position:absolute;bottom:6px;right:6px;background:white;border-radius:50%;width:25px;height:25px;color:var(--green);display:grid;place-items:center;font-size:18px}.product-card>small{font-size:9px}.product-card>strong{display:block;font-size:13px;margin:5px 0 10px}.product-card b{font-size:12px}.product-card div>small{display:inline;font-size:10px}.stock-count{font-size:10px;color:var(--muted);white-space:nowrap}.product-card>.stock-count{margin-top:10px;display:block}.low-stock{color:#b0750e}.cart{position:sticky;top:15px;padding:22px}.count{float:right;background:#eef7f4;color:var(--green);font-size:12px;padding:4px 8px;border-radius:6px}.empty-cart{text-align:center;padding:30px 10px 40px}.empty-cart span{font-size:50px;color:#bbcfc7}.empty-cart p{font-size:12px;margin-top:12px}.cart-row{padding:14px 0;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--border)}.cart-row>div:first-child{flex:1}.cart-row strong{font-size:12px}.cart-row small{font-size:10px;margin-top:5px}.quantity{display:flex;align-items:center}.quantity button{background:#f2f6f4;border:0;width:28px;color:var(--green);border-radius:6px}.quantity input{width:54px;padding:4px;min-height:35px;text-align:center;font-size:12px}.remove{background:none;border:0;font-size:20px;color:#99a7ad;padding:0 2px}.total{display:flex;justify-content:space-between;align-items:center;margin:20px 0;font-size:15px}.total strong{font-size:24px;letter-spacing:-.5px}.checkout{border-top:1px solid var(--border)}label{font-size:12px;font-weight:550;display:block;margin:16px 0}label input,label select{display:block;margin-top:8px}.change{display:flex;justify-content:space-between;font-size:12px;background:#edf7f2;border-radius:8px;padding:12px;color:var(--green)}.local-note{font-size:10px;text-align:center;margin:13px 0 0}.info-note{background:#eef5f4;border-radius:10px;padding:14px;font-size:12px;line-height:1.6}.settings-panel{max-width:550px}.business-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.business-grid h2{margin-top:20px}.business-grid p{font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}dialog{border:0;border-radius:18px;max-width:460px;width:calc(100% - 32px);padding:28px;color:var(--ink);box-shadow:0 20px 100px #123b3c44;max-height:90dvh;overflow:auto}dialog::backdrop{background:#132f3a77;backdrop-filter:blur(3px)}dialog h2{padding-right:30px}.modal-close{position:absolute;right:15px;top:10px;background:none;border:0;font-size:28px;color:var(--muted)}dialog video{width:100%;border-radius:12px;background:#172e36;min-height:140px;max-height:250px}.receipt img{width:42px}.receipt{text-align:center}.receipt .list-row{text-align:left;justify-content:space-between}.receipt p{font-size:12px}.receipt small{font-size:10px}#notice{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--ink);color:white;padding:14px 20px;border-radius:12px;max-width:90%;font-size:13px;opacity:0;pointer-events:none;z-index:10;transition:.2s}#notice.show{opacity:1;transform:translateX(-50%)}footer{text-align:center;color:#97a6b0;font-size:10px;padding:15px 20px 25px}.error-screen{max-width:550px;margin:80px auto;padding:30px}
@media(min-width:1440px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:220px;padding:25px 15px}.workspace{margin-left:220px}main{padding:20px 24px}.sale-layout{grid-template-columns:minmax(0,1fr) 300px;gap:15px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{padding-right:20px}.stat{padding:15px}.stat strong{font-size:19px}.stat-icon{display:none}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}header{height:64px;padding:0 18px}.mobile-brand{display:flex;gap:8px;align-items:center;font-size:18px;font-weight:800}.mobile-brand img{width:31px}.breadcrumbs{display:none}.header-actions{gap:10px}.header-actions .avatar{display:none}.connection{font-size:9px}.language{min-height:34px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:white;border-top:1px solid var(--border);z-index:3;padding:5px 4px max(7px,env(safe-area-inset-bottom));overflow-x:auto}.mobile-nav .nav-item{flex:1;min-width:56px;width:auto;flex-direction:column;gap:4px;padding:7px 4px;font-size:9px;border-radius:8px;margin:0;min-height:52px}.mobile-nav .nav-item span{font-size:22px}main{padding:18px 16px 24px}.demo-banner{font-size:9px;margin-bottom:22px}.page-heading{align-items:center;margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.page-heading .primary{padding:11px 13px;font-size:11px;flex-shrink:0;max-width:150px}.hero{padding:25px 22px;min-height:240px}.hero h2{font-size:29px}.hero-art{padding-right:0;margin-right:-28px;opacity:.8}.mini-phone{width:105px;padding:12px 7px;border-width:4px;border-radius:17px}.mini-phone strong{font-size:13px}.float-badge{font-size:20px;right:0;top:5px;padding:8px 13px}.mini-phone>div:first-child{margin-bottom:20px}.pill{font-size:7px}.hero p{font-size:11px}.hero .light{font-size:11px;padding:10px 14px;gap:15px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.stat{padding:17px}.stat small{font-size:10px;margin-bottom:8px}.stat strong{font-size:22px}.dashboard-grid{grid-template-columns:1fr;gap:15px}.panel{padding:20px}.panel h2{font-size:16px}.sale-layout{display:flex;flex-direction:column;gap:20px}.sale-layout>section{width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-picture{height:75px}.cart{position:static;padding:20px}.checkout{position:sticky;bottom:75px;background:white;padding-bottom:5px}.product-card b{font-size:13px}.business-grid{grid-template-columns:1fr}.list-row{gap:10px}.list-row .secondary{padding:8px 12px}.list-row .secondary span{display:none}footer{padding-bottom:90px;font-size:9px}#notice{bottom:90px}.settings-panel{max-width:none}.search-box{min-height:48px}.quantity button{width:35px}.quantity input{width:58px}dialog{padding:24px}.brand-pos{color:var(--green)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media print{body{background:white}.sidebar,.workspace,.mobile-nav,#notice,.modal-close,.receipt button{display:none!important}dialog{position:static;display:block!important;width:100%;max-width:100%;max-height:none;box-shadow:none;padding:0}dialog::backdrop{background:none}.receipt{max-width:320px;margin:auto}}
.login-shell{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 18px;background:radial-gradient(ellipse at top,#dcefe7,transparent 70%)}.login-brand{text-align:center;margin-bottom:24px}.login-brand img{width:58px}.login-brand h1{margin:12px 0 8px}.login-brand p{font-size:13px}.login-panel{width:100%;max-width:430px;padding:30px}.login-panel p{font-size:13px}.demo-link{font-size:12px;display:block;text-align:center;color:var(--green);margin-top:24px}#login-error,#password-error{color:#b64432}.login-shell footer{padding-bottom:20px}
.skip-link{position:fixed;top:10px;left:10px;background:var(--green);color:white;padding:12px 18px;transform:translateY(-160%);z-index:20;border-radius:9px}.skip-link:focus{transform:none}.profile-button{border:0;min-height:36px;cursor:pointer}.nav-item svg{display:block}.admin-heading{margin-bottom:28px}.admin-heading h1{max-width:600px}.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 28px}.admin-summary article{padding:23px;border:1px solid var(--border);background:white;border-radius:14px;position:relative;overflow:hidden}.admin-summary article:before{content:'';position:absolute;left:0;top:22px;height:35px;width:3px;background:var(--green);border-radius:4px}.admin-summary small{margin-bottom:10px}.admin-summary strong{font-size:30px;letter-spacing:-1px}.admin-summary .small-value{font-size:19px;letter-spacing:0}.business-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;margin-bottom:20px}.business-toolbar select{margin:0;height:49px;border-color:var(--border)}.results-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:16px;gap:12px}.data-origin{font-size:10px;padding:5px 9px;background:#e8f3ee;color:var(--green);border-radius:20px}.business-card{padding:22px;display:flex;flex-direction:column;min-width:0}.business-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.business-tag{font-size:10px;background:#f3f6f7;color:var(--muted);border-radius:7px;padding:5px 8px;overflow-wrap:anywhere}.business-card h2{font-size:18px;margin:22px 0 18px;overflow-wrap:anywhere}.business-card .owner-label{font-size:10px;margin:0 0 5px}.business-card>strong{font-size:13px;overflow-wrap:anywhere}.business-status{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--green);margin-top:18px}.business-status i{width:6px;height:6px;border-radius:50%;background:var(--green)}.business-status.paused{color:#9c6912}.business-status.paused i{background:#9c6912}.business-actions{display:flex;flex-direction:column;gap:7px;margin-top:auto;padding-top:24px}.business-actions .text-button{font-size:12px}.empty-state{text-align:center;padding:45px 24px}.empty-state>span{font-size:45px;color:#a6bcb3}.empty-state h2{margin:15px 0 8px}.empty-state p{font-size:13px}.detail-head{text-align:center;padding:8px 0 15px}.detail-head .shop-icon{height:54px;width:54px;font-size:30px;margin-bottom:18px}.detail-head .eyebrow{text-transform:uppercase;font-size:9px;letter-spacing:1px;color:var(--green)}.detail-head h2{padding:0;font-size:25px;overflow-wrap:anywhere}.detail-head p{font-size:12px}.detail-list{margin:0 0 22px}.detail-list>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border);padding:15px 0;font-size:12px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%}.info-note p{font-size:12px;margin:8px 0 0}.more-menu{margin:12px 0 0}.more-menu .nav-item{min-height:50px;margin:5px 0}.more-menu .nav-item span{font-size:18px}#loading-indicator{position:fixed;top:0;left:252px;right:0;height:3px;z-index:20;background:#b8e6d6;overflow:hidden}#loading-indicator:after{content:'';display:block;width:35%;height:100%;background:var(--green);animation:loading-slide 1s ease-in-out infinite}@keyframes loading-slide{from{transform:translateX(-100%)}to{transform:translateX(400%)}}h1:focus{outline:none}.nav-item[aria-current=page]{font-weight:700}
@media(max-width:1100px){.business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#loading-indicator{left:220px}}
@media(max-width:760px){.admin-heading{display:block}.admin-heading .primary{max-width:none;margin-top:18px;width:100%;font-size:13px}.admin-summary{gap:9px;margin:18px 0 22px}.admin-summary article{padding:16px 12px}.admin-summary small{font-size:9px;line-height:1.4;min-height:26px;margin-bottom:7px}.admin-summary strong{font-size:25px}.admin-summary .small-value{font-size:12px;letter-spacing:0}.business-toolbar{grid-template-columns:1fr;gap:10px}.business-toolbar input{font-size:13px}.business-grid{grid-template-columns:1fr}.business-card{padding:22px}.business-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.results-heading{font-size:10px}.detail-head h2{font-size:22px}.header-actions .profile-button{display:inline-grid;width:30px;height:30px;min-height:30px;font-size:12px}.mobile-nav .nav-item span{width:22px;display:grid;place-items:center}#loading-indicator{left:0}.more-menu .nav-item{font-size:14px}.data-origin{font-size:9px}}
.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}.quick-actions button{display:flex;align-items:center;gap:12px;text-align:left;background:white;border:1px solid var(--border);border-radius:12px;padding:17px;color:var(--ink);min-width:0}.quick-actions button:hover{border-color:#a0cbbb;background:#fafdfb}.quick-icon{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border-radius:10px;background:#e7f4ed;color:var(--green)}.quick-actions strong{font-size:12px;display:block}.quick-actions small{font-size:10px;line-height:1.5;margin-top:5px}.quick-arrow{margin-left:auto;color:var(--green)}.cash-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 15px}.cash-shortcuts button{border:1px solid #dbe9e2;border-radius:7px;padding:8px;background:#f7fbf8;font-size:10px;color:var(--green);min-height:36px}.payment-help{font-size:11px;color:var(--muted);line-height:1.5;min-height:17px;margin:14px 0 4px}.cart h2 .text-button{float:right;padding:0 8px;min-height:25px}.cart h2 .count{margin-right:8px}.mobile-sale-bar{display:none}.button-spinner{width:15px;height:15px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:button-spin .7s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.quick-actions{grid-template-columns:1fr}.quick-actions button{padding:13px 17px}.quick-actions small{margin-top:2px}}
@media(max-width:760px){.quick-actions{gap:8px;margin-bottom:18px}.quick-actions button{min-height:70px}.mobile-sale-bar{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom));left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#fffffffa;border-top:1px solid var(--border);box-shadow:0 -7px 25px #16372c08;z-index:2;backdrop-filter:blur(8px)}.mobile-sale-bar small{font-size:9px}.mobile-sale-bar strong{display:block;font-size:20px;margin-top:3px}.mobile-sale-bar .primary{padding:12px 20px}.mobile-sale-bar button span{background:#ffffff25;padding:2px 7px;border-radius:5px}.sale-layout{padding-bottom:95px}.cart{scroll-margin-top:20px}.cart .checkout{position:static}.cash-shortcuts button{min-height:42px;padding:10px;font-size:11px}.product-card{min-height:195px}.quantity input{min-height:44px}.sale-layout+ .mobile-sale-bar~footer{padding-bottom:170px}}
.cash-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.cash-history{margin-top:20px}.cash-direction{height:35px;width:35px;border-radius:9px;display:grid;place-items:center;color:var(--green);background:#e9f5ef}.cash-direction.out{color:#a96616;background:#fff4df}.cash-reconciliation section{border:1px solid var(--border);border-radius:10px;padding:15px;margin:12px 0}.cash-reconciliation section>div small{margin-top:7px}.cash-reconciliation label{font-size:11px}.cash-reconciliation+label textarea{width:100%;border:1px solid var(--border);border-radius:9px;margin-top:9px;padding:12px;font:inherit}.cash-history .sale-row>span{font-size:11px;color:var(--green)}
@media(max-width:760px){.cash-stats{grid-template-columns:1fr}.cash-stats .stat{display:flex;align-items:center;justify-content:space-between}.cash-stats .stat small{margin:0}.cash-stats .stat strong{font-size:22px}.cash-actions{display:grid;grid-template-columns:1fr 1fr}.cash-actions .primary{grid-column:1/-1}}


/* Gestão do inventário e equipa — Fase 1 */
.management-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0 22px}
.management-stats article{background:#fff;border:1px solid var(--border);border-radius:12px;padding:17px}
.management-stats strong{display:block;margin-top:10px;font-size:24px}
.management-filters{display:grid;grid-template-columns:minmax(0,1fr) 205px 180px;gap:12px;margin-bottom:16px}
.catalog-list{border:1px solid var(--border);border-radius:13px;background:white;overflow:hidden}
.catalog-entry{border-bottom:1px solid var(--border);padding:17px}.catalog-entry:last-child{border-bottom:0}
.catalog-line{display:flex;align-items:center;gap:13px;min-width:0}
.catalog-line .grow strong{display:block;font-size:14px;overflow-wrap:anywhere}
.catalog-line .grow small{margin-top:6px;overflow-wrap:anywhere}
.catalog-line .right{flex-shrink:0}.catalog-line .right strong{font-size:13px}
.catalog-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.management-tag{display:inline-block;padding:4px 8px;background:#e7ecef;border-radius:14px;font-size:10px;color:#536975;white-space:nowrap}
.management-tag.caution{background:#fff2dc;color:#965b0d}
.catalog-buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0 0 65px}
.catalog-buttons button{min-height:36px;padding:8px 10px;font-size:12px}
.catalog-buttons .text-button{margin-left:auto}
.management-history{margin-top:20px}.management-team .catalog-buttons{padding:0;flex-shrink:0}
@media(max-width:760px){.management-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.management-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.management-filters input{grid-column:1/-1}
.catalog-entry{padding:14px}.catalog-line{align-items:flex-start;gap:9px}.catalog-buttons{padding-left:0;gap:5px}
.catalog-buttons .text-button{margin-left:0}.management-team .list-row{flex-wrap:wrap}.management-team .catalog-buttons{width:100%;padding-left:48px}}
@media(max-width:380px){.management-filters{grid-template-columns:1fr}.management-filters input{grid-column:auto}}

/* Phase 2: checkout and refund UX */
.cart-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cart-tools button{min-height:36px;font-size:11px;padding:7px}
.split-payments{margin:12px 0}.split-payments p{font-size:11px}.split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.split-grid label{margin:8px 0}.refund-history{margin-top:15px}
.confirm-refund{display:flex;align-items:start;gap:10px;line-height:1.5}.confirm-refund input{width:19px;height:19px;min-height:0;flex-shrink:0;margin:0}
.receipt-payments{border-top:1px solid var(--border);padding:10px 0;margin-top:14px}
.receipt-payments div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:12px}


/* Fase 3 — gestão comercial */
.sidebar nav{min-height:0;overflow-y:auto;padding-right:4px}
.commercial-filter{margin-bottom:14px;padding:15px}
.commercial-list{display:grid;gap:12px}.commercial-person{display:flex;align-items:center;gap:15px}
.commercial-person .grow strong{display:block;font-size:15px}
.commercial-person small{margin-top:6px;overflow-wrap:anywhere}
.commercial-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.commercial-records{margin-bottom:14px}.commercial-records .list-row strong{overflow-wrap:anywhere}
.report-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:17px}
.report-toolbar label{margin:0;flex:1;min-width:135px}.report-toolbar button{white-space:nowrap;min-height:44px}
.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-kpis strong{overflow-wrap:anywhere;font-size:20px}
.report-main-number{display:block;font-size:27px;margin:12px 0}
.report-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:16px 0}
.report-bar-row{display:grid;grid-template-columns:90px 1fr auto;gap:9px;align-items:center;margin:12px 0}
.report-bar-row strong{font-size:11px}.report-bar-track{height:10px;border-radius:6px;background:#e8eeec;overflow:hidden}
.report-bar-track i{display:block;height:100%;background:#087f68;border-radius:6px}
.report-print dl div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #ddd}
.report-print dt{font-weight:600}.report-print dd{margin:0}
@media(max-width:900px){.report-two-columns{grid-template-columns:1fr}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-toolbar{align-items:stretch}.report-toolbar label{flex:1 1 42%}.report-toolbar button{flex:1 1 42%}.commercial-person{flex-wrap:wrap}.commercial-person button{min-height:36px}}

/* CSP-safe report bars: native progress uses no inline style attributes. */
.report-progress{width:100%;height:12px;accent-color:#087f68;border:0;border-radius:6px;background:#e8eeec}
.report-progress::-webkit-progress-bar{background:#e8eeec;border-radius:6px}
.report-progress::-webkit-progress-value{background:#087f68;border-radius:6px}
.report-progress::-moz-progress-bar{background:#087f68;border-radius:6px}

/* Fase 4 — histórico, fluxo de caixa e acessibilidade */
.history-filters{display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(4,minmax(115px,1fr)) auto;align-items:end;gap:12px;margin-bottom:16px}
.history-filters label{margin:0}.history-filters button{min-height:45px}
.result-count{font-size:12px;color:var(--muted)}
.cart-validation{border:1px solid #efbd64;background:#fff6e5;border-radius:9px;padding:12px;font-size:12px;color:#754808;line-height:1.5;margin:12px 0}
.cart-row-invalid{background:#fff8ed;border-radius:9px;padding:8px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #59bbaa;outline-offset:2px}
dialog:focus-visible{outline:3px solid #59bbaa;outline-offset:2px}
.panel:focus-within{scroll-margin:30px}
@media(max-width:1250px){.history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.history-filters label:first-child{grid-column:1/-1}}
@media(max-width:760px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-filters label:first-child{grid-column:1/-1}.history-filters button{grid-column:1/-1}.sale-layout .checkout{max-width:100%}.cart-row{flex-wrap:wrap}.cart-row>div:first-child{min-width:100px}.cart-row .quantity{margin-left:auto}.cart-row .quantity button{min-width:36px;min-height:40px}}
@media(max-width:390px){.history-filters{grid-template-columns:1fr}.history-filters label:first-child{grid-column:auto}.panel{padding:16px}.cart{padding:16px}.cart-row .quantity{gap:3px}}
@media print{.report-print{max-width:190mm;margin:10mm auto;font-size:12pt;color:#111}.report-print h2{font-size:21pt}.report-print small{font-size:10pt}.report-print dt,.report-print dd{font-size:12pt}.report-print+button,#print-business-report{display:none!important}}

/* Leitor de códigos de barras: pré-visualização verdadeiramente horizontal (16:9) */
dialog.scanner-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;padding:22px;overflow-x:hidden}
.scanner-intro{font-size:12px;margin:4px 0 12px;padding-right:30px}
.scanner-viewfinder{width:100%;aspect-ratio:16 / 9;position:relative;overflow:hidden;border-radius:13px;background:#132f37;isolation:isolate}
dialog.scanner-dialog .scanner-viewfinder video{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:center;border-radius:0;background:#132f37}
.scanner-guide{position:absolute;inset:24% 12%;border:2px solid rgba(215,255,230,.86);border-radius:13px;pointer-events:none;box-shadow:0 0 0 100vmax #081d2455}
.scanner-guide span{position:absolute;top:50%;left:10%;right:10%;border-top:2px solid #72e0a9;box-shadow:0 0 10px #54ca98b0}
.scanner-fullscreen{position:absolute;right:12px;top:12px;z-index:2;background:#102f3bcb;border:1px solid #ffffff77;border-radius:8px;color:white;font-size:21px;padding:4px 12px;min-height:38px}
.scanner-status{border-radius:9px;background:#eef5f4;padding:10px 12px;margin:10px 0;color:#205060;font-size:12px;min-height:38px;line-height:1.55}
.scanner-status[data-state="error"]{background:#fff0ee;color:#9e3b22}
.scanner-status[data-state="success"]{background:#dff5e8;color:#086f53;font-weight:650}
.scanner-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.scanner-toolbar button{flex:1 1 auto;min-width:125px}
.scanner-viewfinder:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;border-radius:0;background:#000}
.scanner-viewfinder:fullscreen video{object-fit:cover}
@media(max-width:760px){dialog.scanner-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 28px);padding:17px}.scanner-guide{inset:27% 12%}.scanner-intro{font-size:11px}.scanner-toolbar button{font-size:11px;min-width:110px}}
@media(max-width:380px){dialog.scanner-dialog{padding:14px}.scanner-toolbar button{min-width:100px;padding:9px}}

/* Super Admin — Business status and audit (v0.8) */
.business-toolbar{grid-template-columns:minmax(0,1fr) minmax(150px,210px) minmax(150px,200px)}
.business-status{display:inline-flex;justify-content:flex-start}
.business-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.business-detail-actions button{min-width:0;overflow-wrap:anywhere}
.danger-outline{border:1px solid #b34038!important;color:#b34038!important}
.danger-outline:hover{background:#fff0ed}
.business-audit{padding:14px 0;border-top:1px solid var(--border);margin-top:12px}
.business-audit h3{font-size:14px;margin:0 0 12px}
.business-event{border-left:3px solid #a5cfc7;padding:4px 12px;margin:10px 0 16px}
.business-event strong{font-size:12px;display:block}
.business-event small{font-size:11px;display:block;margin:5px 0;overflow-wrap:anywhere}
.business-event p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1050px){.business-toolbar{grid-template-columns:minmax(0,1fr) minmax(130px,180px)}.business-toolbar #business-status-filter{grid-column:1/-1}}
@media(max-width:760px){.business-toolbar{grid-template-columns:1fr 1fr}.business-toolbar .search-box{grid-column:1/-1}.business-toolbar #business-status-filter{grid-column:auto}.business-detail-actions{grid-template-columns:1fr 1fr}}
@media(max-width:390px){.business-toolbar{grid-template-columns:1fr}.business-toolbar .search-box{grid-column:auto}.business-detail-actions{grid-template-columns:1fr}}

/* Pronto POS v0.9 — Planos, Subscrições e Licenciamento */
.licensing-panel{margin-top:26px;padding:22px}
.licensing-panel .panel-title{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.licensing-panel h2{font-size:21px;margin-bottom:6px}
.small-muted{color:var(--muted);font-size:12px;line-height:1.5}
.license-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.license-plan-card{border:1px solid var(--border);background:#fff;border-radius:14px;padding:17px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.license-plan-card strong,.license-plan-card small{display:block;overflow-wrap:anywhere}
.license-plan-card strong{font-size:15px;margin-bottom:6px}
.license-plan-card small{color:var(--muted);font-size:11px;margin-bottom:10px}
.license-pill{display:inline-flex;width:max-content;max-width:100%;font-size:10px;line-height:1.35;font-weight:700;align-items:center;border-radius:999px;padding:5px 10px;background:#e9eef2;color:#375766;overflow-wrap:anywhere}
.license-active{color:#096d54;background:#dff7eb}
.license-expired,.license-cancelled{color:#9e3b22;background:#fff0ed}
.license-legacy{color:#825b0d;background:#fff3d4}
.business-card>.license-pill{margin-top:10px}
.license-detail{border:1px solid var(--border);border-radius:13px;background:#f8fbfa;margin:18px 0;padding:18px}
.license-detail h3{font-size:16px;margin:0 0 12px}
.license-detail h4{font-size:13px;margin:22px 0 10px}
.license-detail>p{overflow-wrap:anywhere}
.license-detail .business-detail-actions{display:flex;flex-wrap:wrap;gap:9px}
.license-detail .business-detail-actions button{flex:1 1 120px}
.license-plan-card button{white-space:normal;min-width:0}
@media(max-width:760px){.licensing-panel{padding:17px}.license-plans{grid-template-columns:1fr}.license-plan-card{align-items:flex-start}.license-detail{padding:14px}.licensing-panel .panel-title>.primary{width:100%}}
@media(max-width:390px){.license-plan-card{flex-direction:column;align-items:stretch}.license-detail .business-detail-actions{flex-direction:column}}

/* Optional expiry date on product forms and inventory warnings. */
.form-hint{font-size:12px;line-height:1.5;color:var(--muted);margin:4px 0 12px}
.management-tag.expiry-expired,.management-tag.expiry-today{background:#ffebea;color:#922c27;border:1px solid #f5b0a8}
.management-tag.expiry-soon{background:#fff3d8;color:#79510b;border:1px solid #efd49a}
.management-tag.expiry-valid{background:#e7f6ee;color:#166246;border:1px solid #b5e5cc}

/* Product lots: keep expiry and stock status visible on all screens. */
.batch-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--muted);font-size:11px;line-height:1.45;margin-top:8px}
.batch-summary span{border:1px solid #d9e8e5;border-radius:7px;padding:4px 7px;background:#f6faf9}
.batch-summary .batch-expired{border-color:#f3bbb6;background:#fff0ed;color:#9a3126;font-weight:700}
.batch-list{display:grid;gap:9px;margin:14px 0;max-height:min(48dvh,430px);overflow-y:auto}
.batch-line{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e0eae7;background:white;padding:12px;border-radius:10px}
.batch-line strong,.batch-line small{display:block;overflow-wrap:anywhere}
.batch-line strong{font-size:13px}.batch-line small{font-size:11px;color:var(--muted);margin-top:6px}
.batch-line-expired{background:#fff7f5;border-color:#f2b7b1}
.batch-right{text-align:right;flex-shrink:0}
.batch-chip{display:inline-block;margin-top:6px;padding:4px 8px;border-radius:6px;background:#edf4f3;color:#276759;font-size:10px;font-weight:650}
.batch-expired{background:#ffebea;color:#94332a}
.batch-today,.batch-soon{background:#fff2d5;color:#79500b}
.batch-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
@media(max-width:600px){.batch-line{align-items:start}.batch-right{min-width:95px}.batch-actions{grid-template-columns:1fr}.catalog-entry .batch-summary{gap:5px}}

/* Pronto POS 0.11 — Gestão de Dívidas / accounts receivable */
.debt-stats{margin-bottom:20px}
.debt-policy-panel,.debt-ledger{margin:18px 0;padding:20px}
.debt-customers{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin-top:14px}
.debt-customer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--border);border-radius:12px;background:#fff}
.debt-customer strong,.debt-customer small{display:block;overflow-wrap:anywhere}
.debt-customer strong{font-size:14px;margin-bottom:5px}
.debt-customer small{font-size:11px;line-height:1.5;color:var(--muted)}
.debt-customer button{flex-shrink:0}
.debt-ledger .panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.debt-ledger #debt-status{min-width:165px;max-width:220px}
.debt-row{padding:18px;border:1px solid var(--border);background:#fff;border-radius:14px;margin:12px 0}
.debt-row-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.debt-row-head strong,.debt-row-head small{display:block;overflow-wrap:anywhere}
.debt-row-head strong{font-size:15px}
.debt-row-head small{font-size:11px;color:var(--muted);margin-top:5px}
.debt-badge{padding:5px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.debt-overdue{color:#a02527;background:#ffe6e6}
.debt-open{color:#855900;background:#fff2d3}
.debt-settled{color:#08704e;background:#dff8e9}
.debt-cancelled{color:#4c6270;background:#e7edf2}
.debt-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.debt-amounts>div{padding:11px;background:#f6faf9;border-radius:9px;min-width:0}
.debt-amounts small,.debt-amounts strong{display:block;overflow-wrap:anywhere}
.debt-amounts small{font-size:10px;color:var(--muted);margin-bottom:6px}
.debt-amounts strong{font-size:15px}
.debt-payment-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--border)}
.debt-payment-line small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.debt-row details{margin:8px 0}
.debt-row details>summary{cursor:pointer;font-size:12px;font-weight:700}
.debt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.debt-actions button,.debt-actions a{min-width:0;text-decoration:none;white-space:normal;justify-content:center}
.debt-whatsapp{display:inline-flex;align-items:center}
.debt-checkbox{display:flex;align-items:center;gap:10px;line-height:1.5}
.debt-checkbox input{width:auto!important;flex:0 0 18px;height:18px}
@media(max-width:760px){.debt-policy-panel,.debt-ledger{padding:14px}.debt-customers{grid-template-columns:1fr}.debt-row{padding:13px}.debt-amounts strong{font-size:13px}}
@media(max-width:420px){.debt-row-head{flex-wrap:wrap}.debt-amounts{grid-template-columns:1fr}.debt-actions{flex-direction:column;align-items:stretch}.debt-actions button,.debt-actions a{width:100%}.debt-customer{flex-wrap:wrap}.debt-customer button{width:100%}}

/* Pronto POS 0.12 — intelligent stock & expiry alerts. */
.alerts-home{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0;padding:22px 24px;border:1px solid #cee8d9;background:linear-gradient(120deg,#f1fcf7,#eff8ff);border-radius:16px}
.alerts-home h2{font-size:19px;line-height:1.3;margin:4px 0 8px}
.alerts-home p{color:var(--muted);font-size:13px;line-height:1.5}
.alerts-home-counts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.alerts-home-counts span{border-radius:20px;padding:6px 10px;background:#e5f0ee;font-size:11px;font-weight:750;color:#205f54}
.alerts-home-counts .alert-count-critical{background:#ffe9e6;color:#9b3226}
.alerts-home .primary{flex-shrink:0}
.alerts-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
.alerts-stats>article{border:1px solid #dfeae8;transition:transform .18s ease,border-color .18s ease}
.alerts-stats>article.alert-stat-critical{border-color:#f3c8c1;background:#fff8f5}
.alerts-stats>article.alert-stat-warning{border-color:#f7dda7;background:#fffcf4}
.alerts-stats>article.alert-stat-soon{background:#f6fafb}
.alerts-main,.alert-reorder{margin:18px 0;padding:24px}
.alerts-main .panel-title,.alert-reorder .panel-title{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.alerts-main .panel-title h2,.alert-reorder h2{font-size:19px;line-height:1.35;margin:0 0 7px}
.alerts-main .panel-title small{display:block;color:var(--muted);line-height:1.5;max-width:700px}
.alert-pill{display:inline-block;border-radius:30px;background:#e7f5f0;color:#236453;padding:2px 9px;font-size:12px}
.alerts-filters{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:12px;margin-bottom:18px}
.alerts-filters input,.alerts-filters select{min-width:0;width:100%}
.alert-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);background:#fff;border-radius:13px;padding:15px 16px;margin:9px 0;transition:box-shadow .18s ease,border-color .18s ease}
.alert-row:hover{box-shadow:0 4px 18px rgba(21,65,55,.07)}
.alert-row.alert-expired,.alert-row.alert-out,.alert-row.alert-today{border-left:4px solid #cc493f}
.alert-row.alert-urgent,.alert-row.alert-low{border-left:4px solid #da9e22}
.alert-row.alert-soon{border-left:4px solid #80b6bd}
.alert-row-main{display:flex;align-items:start;gap:13px;min-width:0;flex:1}
.alert-indicator{display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:18px;width:36px;height:36px;background:#f4f8f7;border-radius:10px}
.alert-row-main strong,.alert-row-main small{display:block;overflow-wrap:anywhere}
.alert-row-main strong{font-size:14px;line-height:1.35}
.alert-row-main small{color:var(--muted);font-size:11px;line-height:1.55;margin-top:5px}
.alert-type{display:inline-block;padding:4px 8px;border-radius:50px;font-size:10px;font-weight:750;margin:6px 0 2px}
.alert-type-expired,.alert-type-out,.alert-type-today{background:#ffebe9;color:#9e362c}
.alert-type-urgent,.alert-type-low{background:#fff1d3;color:#825406}
.alert-type-soon{background:#e9f6f5;color:#176e6b}
.alert-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:end}
.alert-row-actions button{font-size:11px;white-space:normal}
.alert-reorder-list{display:grid;gap:9px}
.alert-reorder-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border);border-radius:12px;padding:14px 15px;background:#fff}
.alert-reorder-item strong,.alert-reorder-item small{display:block;overflow-wrap:anywhere}
.alert-reorder-item strong{font-size:14px}
.alert-reorder-item small{color:var(--muted);font-size:11px;margin-top:4px;line-height:1.4}
.alert-suggest{text-align:right;flex-shrink:0}
.alert-suggest>strong{color:#17705b;font-size:17px}
.alert-suggest .text-button{display:block;margin-left:auto;margin-top:8px}
.alert-list-copy{width:100%;resize:vertical;line-height:1.6;min-height:180px;font-family:inherit;border-radius:10px}
.alert-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.alert-share-actions a{display:inline-flex;justify-content:center;align-items:center;text-align:center;text-decoration:none}
@media(max-width:920px){.alerts-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.alert-row{flex-wrap:wrap}.alert-row-actions{margin-left:48px;justify-content:start}}
@media(max-width:650px){.alerts-home{padding:16px;align-items:stretch;flex-direction:column}.alerts-home .primary{width:100%}.alerts-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.alerts-main,.alert-reorder{padding:14px}.alerts-filters{grid-template-columns:1fr}.alert-row{padding:13px}.alert-row-actions{margin-left:0;width:100%;justify-content:stretch}.alert-row-actions button{flex:1}.alert-reorder-item{flex-wrap:wrap}.alert-suggest{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%}.alert-suggest small{display:none}.alert-suggest .text-button{margin-top:0}.alert-share-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.alerts-stats>article,.alert-row{transition:none}}

/* Product catalogue shortcut to inventory alerts. */
.page-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.page-heading-actions button{white-space:normal;min-width:0}
@media(max-width:650px){.page-heading-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.page-heading-actions button{width:100%;font-size:12px}}
@media(max-width:390px){.page-heading-actions{grid-template-columns:1fr}}


/* Real product photographs and preview on catalogue and inventory forms. */
.product-picture{overflow:hidden}
.product-picture .product-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.product-picture .product-photo-fallback{font-size:43px;line-height:1}
.product-emoji{display:inline-grid;place-items:center;width:60px;height:60px;flex:0 0 60px;padding:3px;overflow:hidden}
.product-emoji .product-photo{width:100%;height:100%;object-fit:cover;border-radius:8px}
.product-photo-field{margin-top:14px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f9fbfa}
.product-photo-field label{margin:4px 0 9px}
.product-photo-field input[type=file]{display:block;width:100%;margin-top:8px;background:white;font-size:13px}
.product-photo-preview{display:flex;align-items:center;justify-content:center;min-height:105px;border-radius:10px;background:#edf4f2;border:1px dashed #b8d7cd;color:#657983;margin-top:10px}
.product-photo-preview img:not([hidden]){display:block;max-width:100%;width:130px;height:105px;object-fit:cover;border-radius:8px}
.product-photo-preview span{font-size:13px}
.photo-remove{display:flex;align-items:center;gap:8px;font-size:13px}
.photo-remove input{min-height:22px;width:22px;margin:0;flex-shrink:0}

/* One-tap cashier view; existing register, basket and payment logic is reused. */
.sale-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cashier-mobile-switch{display:none}
.cashier-mode{background:#f2f7f5}
.cashier-mode .sidebar,.cashier-mode .mobile-nav,.cashier-mode footer,.cashier-mode .demo-banner{display:none!important}
.cashier-mode .workspace{margin-left:0}
.cashier-mode main{max-width:1600px}
.cashier-mode header{height:64px}
.cashier-mode .sale-layout{grid-template-columns:minmax(0,1fr) minmax(340px,400px);gap:18px}
.cashier-mode .cart{max-height:calc(100dvh - 82px);overflow:auto;top:12px}
.cashier-mode .product-picture{height:116px}
.cashier-mode .product-card{border-radius:14px;min-height:210px}
.cashier-mode .product-card>strong{font-size:16px}
.cashier-mode .product-card b{font-size:17px}
.cashier-mode .sale-heading h1{font-size:30px}
.cashier-mode .primary,.cashier-mode .secondary{min-height:50px;font-size:15px}
.cashier-mode .cart .quantity button{min-height:46px;min-width:44px;font-size:23px}
.cashier-mode .cart .quantity input{min-height:46px;width:65px;font-size:17px}
.cashier-mode .checkout #finish{font-size:17px;min-height:56px}
.cashier-mode .search-box{min-height:55px}
.cashier-mode .search-box input{font-size:17px}
.cashier-mode .chip{font-size:14px;min-height:44px}
@media(max-width:1050px) and (min-width:761px){
 .cashier-mode .sale-layout{grid-template-columns:minmax(0,1fr) minmax(300px,350px)}
 .cashier-mode .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Larger text and touch targets on mobile, without changing desktop density. */
@media(max-width:760px){
 .mobile-brand{font-size:20px}
 .mobile-brand img{width:36px}
 .header-actions .connection{font-size:11px}
 .language{font-size:13px;min-height:44px;min-width:48px}
 main{padding:18px 16px 28px}
 .demo-banner{font-size:11px;line-height:1.5}
 .page-heading h1{font-size:27px}
 .page-heading p{font-size:13px}
 .page-heading .eyebrow{font-size:12px}
 .page-heading .primary,.page-heading .secondary{font-size:14px;min-height:48px;max-width:none}
 .sale-heading{flex-wrap:wrap;align-items:flex-start;gap:10px}
 .sale-heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:9px}
 .sale-heading-actions button{white-space:normal;padding:9px;min-width:0;line-height:1.3}
 .mobile-nav .nav-item{font-size:11px;min-height:62px;gap:5px}
 .mobile-nav .nav-item span{font-size:27px;line-height:1.15}
 .mobile-sale-bar{bottom:calc(78px + env(safe-area-inset-bottom))}
 .mobile-sale-bar small{font-size:11px}
 .mobile-sale-bar strong{font-size:23px}
 .mobile-sale-bar .primary{min-height:50px;font-size:14px;padding:11px 15px}
 .search-box{min-height:54px}
 .search-box input{font-size:16px}
 .chips{gap:9px}
 .chip{font-size:13px;min-height:44px;padding:9px 13px}
 .product-grid{gap:10px}
 .product-picture{height:98px;margin-bottom:11px}
 .product-card{padding:10px;min-height:220px}
 .product-card>small{font-size:11px}
 .product-card>strong{font-size:15px;line-height:1.35;margin:6px 0 8px}
 .product-card b{font-size:15px}
 .product-card div>small{font-size:12px}
 .product-card .stock-count{font-size:11px;white-space:normal;line-height:1.4}
 .product-card .add-circle{width:33px;height:33px;font-size:23px}
 .cart-row strong{font-size:14px}
 .cart-row small{font-size:12px}
 .quantity button{min-width:44px;min-height:44px;font-size:21px}
 .quantity input{font-size:16px;width:58px}
 .cart-tools button,.cash-shortcuts button{min-height:44px;font-size:13px}
 label{font-size:14px}
 input,select{min-height:48px;font-size:16px}
 .primary,.secondary{min-height:46px;font-size:14px}
 .info-note{font-size:13px}
 .product-photo-preview{min-height:110px}
 .cashier-mode header{height:60px}
 .cashier-mode main{padding:12px 12px 24px}
 .cashier-mode .page-heading{margin-bottom:12px}
 .cashier-mode .sale-heading h1{font-size:25px}
 .cashier-mode .sale-layout{display:flex;flex-direction:column;gap:12px;padding-bottom:95px}
 .cashier-mode .sale-layout>section{width:100%}
 .cashier-mode .sale-layout[data-cashier-view="products"] #sale-cart,
 .cashier-mode .sale-layout[data-cashier-view="cart"] #sale-products{display:none}
 .cashier-mode .cart{max-height:none;overflow:visible;position:static;padding:15px}
 .cashier-mode .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .cashier-mode .product-card{min-height:222px}
 .cashier-mode .product-picture{height:110px}
 .cashier-mode .sale-heading-actions button{min-height:48px;font-size:13px}
 .cashier-mode .mobile-sale-bar{bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom));z-index:3}
 .cashier-mobile-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
 .cashier-mobile-switch button{background:white;border:1px solid #d2e7de;border-radius:11px;min-height:49px;color:var(--green);font-size:15px;font-weight:650}
 .cashier-mobile-switch button[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green)}
 .cashier-mode #notice{bottom:92px}
 .cashier-mode .checkout #finish{min-height:58px}
}
@media(max-width:370px){
 .cashier-mode .product-card>strong{font-size:14px}
 .sale-heading-actions button{font-size:12px}
}


/* Distinct photo sources: gallery/file picker or native camera capture. */
.product-photo-label{font-size:14px;font-weight:700;margin:0 0 12px;color:var(--ink)}
.product-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-photo-action{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:90px;padding:12px 9px;margin:0!important;text-align:center;border:1px solid #b9d9ce;border-radius:12px;color:var(--green);background:#fff;font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;overflow:hidden}
.product-photo-action span:first-child{font-size:26px;line-height:1}
.product-photo-action.photo-camera{background:#e9f6f0;border-color:#a8d8c5}
.product-photo-action input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;margin:0;padding:0;cursor:pointer;z-index:1}
.product-photo-action:focus-within{outline:3px solid #59bbaa;outline-offset:3px}
.product-photo-action:active{transform:scale(.98)}
.product-photo-preview img[hidden],.product-photo-preview span[hidden]{display:none!important}
@media(max-width:760px){
 .product-photo-field{padding:14px}
 .product-photo-actions{gap:9px}
 .product-photo-action{min-height:100px;font-size:14px}
 .product-photo-action span:first-child{font-size:30px}
}
@media(max-width:355px){.product-photo-action{font-size:12px}}


/* Mobile bottom dock: elegant five-item navigation and primary sales action. */
@media(max-width:760px){
 .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:2px;overflow:visible;min-height:80px;padding:8px 6px max(10px,env(safe-area-inset-bottom));border-top:1px solid #dfebe6;background:linear-gradient(180deg,#fff 0%,#f9fcfa 100%);box-shadow:0 -8px 28px #073b3110}
 .mobile-nav .nav-item{flex:none;min-width:0;width:100%;min-height:59px;margin:0;padding:10px 2px 6px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#526777;font-size:11px;font-weight:650;line-height:1.2}
 .mobile-nav .nav-item>span{display:grid;place-items:center;font-size:27px;line-height:1;min-height:27px}
 .mobile-nav .nav-item>span svg{width:25px;height:25px;stroke-width:1.75}
 .mobile-nav .nav-item.active:not(.mobile-sell-action){background:#eaf6f1;color:#087f68}
 .mobile-nav .nav-item.mobile-sell-action{position:relative;isolation:isolate;align-self:center;transform:translateY(-14px);min-height:78px;margin-bottom:-13px;padding:8px 2px 9px;border:1px solid #0b876b;border-radius:20px;background:linear-gradient(145deg,#119c7b 0%,#087f68 52%,#08644f 100%);color:white;font-size:12px;font-weight:800;letter-spacing:.1px;box-shadow:0 9px 21px #076f5652,0 3px 5px #075b4633;transition:transform .16s ease,box-shadow .16s ease}
 .mobile-nav .nav-item.mobile-sell-action>span{width:41px;height:41px;border-radius:14px;background:#ffffff25}
 .mobile-nav .nav-item.mobile-sell-action>span svg{width:29px;height:29px;stroke-width:2.1}
 .mobile-nav .nav-item.mobile-sell-action.active{box-shadow:0 12px 27px #086c5960,0 0 0 3px #cdeee1}
 .mobile-nav .nav-item.mobile-sell-action:active{transform:translateY(-12px) scale(.97)}
 .mobile-nav .nav-item:focus-visible{outline:3px solid #e9b850;outline-offset:3px}
 .mobile-sale-bar{bottom:calc(89px + env(safe-area-inset-bottom))}
 footer{padding-bottom:116px}
 #notice{bottom:112px}
}
@media(max-width:370px){
 .mobile-nav{gap:0;padding-left:3px;padding-right:3px}
 .mobile-nav .nav-item{font-size:10px;gap:4px}
 .mobile-nav .nav-item.mobile-sell-action{font-size:11px;border-radius:17px}
}
@media(prefers-reduced-motion:reduce){
 .mobile-nav .nav-item.mobile-sell-action{transition:none}
}


/* Pronto POS visual system · phase 2: consistent premium brand identity.
   Cosmetic only: preserve permissions, navigation and transactional flows. */
:root{
 --green:#087f68;
 --green-bright:#10a37f;
 --green-dark:#08644f;
 --green-wash:#e8f7ef;
 --ink:#193547;
 --muted:#607483;
 --border:#e2eae9;
 --surface:#fff;
 --app-bg:#f5f7f9;
 --warning:#a86400;
 --danger:#c93737;
 --card-radius:16px;
 --control-radius:11px;
 --shadow-card:0 3px 16px rgba(16,57,63,.045);
 --shadow-hover:0 10px 25px rgba(16,57,63,.09);
}
html{background:var(--app-bg);color-scheme:light}
body{background:var(--app-bg);color:var(--ink);-webkit-font-smoothing:antialiased}
h1,h2{color:var(--ink);text-wrap:balance}
h1{letter-spacing:-.035em}
button,input,select,textarea{accent-color:var(--green)}
button{touch-action:manipulation}
.primary{background:var(--green);color:#fff;border-radius:var(--control-radius);box-shadow:0 3px 9px #087f681c;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.primary:hover:not(:disabled){background:var(--green-dark);box-shadow:0 7px 16px #087f6830}
.secondary{background:var(--green-wash);color:var(--green-dark);border-radius:var(--control-radius);transition:background .16s ease,transform .16s ease}
.secondary:hover:not(:disabled){background:#d5eee2}
.text-button{color:var(--green-dark);font-weight:650}
.panel,.stat,.catalog-entry,.product-card,.quick-actions button{border-color:var(--border);box-shadow:var(--shadow-card)}
.panel,.stat{border-radius:var(--card-radius)}
.product-card{border-radius:14px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.product-card:hover:not(:disabled){border-color:#b0d8ca;box-shadow:var(--shadow-hover)}
.product-card:disabled{box-shadow:none}
.product-picture{background:#eff5f2}
.product-card>strong,.catalog-entry strong{color:var(--ink)}
.stat strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.stat-icon,.quick-icon{background:var(--green-wash);color:var(--green-dark)}
.shop-card,.info-note{background:#edf6f2}
.nav-item.active{background:var(--green-wash);color:var(--green-dark)}
input,select,textarea{border-color:#d6e1e3;border-radius:var(--control-radius)}
input:focus,select:focus,textarea:focus{outline:2px solid #79c4a8;outline-offset:1px;border-color:var(--green)}
button:focus-visible,a:focus-visible,[role="button"]:focus-visible{outline:3px solid #d9a431;outline-offset:3px}
.chip{border-color:var(--border)}
.chip.selected{background:var(--green);border-color:var(--green);color:#fff;font-weight:650}
.search-box:focus-within{border-color:#8fcbb5;box-shadow:0 0 0 3px #087f6814}
dialog{border-radius:20px}
dialog::backdrop{background:#122c3c86}
.modal-close{border-radius:8px}
.warning,.management-tag.caution{color:var(--warning)}
.low-stock{color:var(--warning)}
.cashier-mode .primary{color:#fff}
.cashier-mode .mobile-nav .mobile-sell-action{color:#fff}
@media(max-width:760px){
 .panel,.stat{border-radius:14px}
 .product-card{border-radius:14px}
 .primary,.secondary{font-weight:700}
 .mobile-nav .nav-item.mobile-sell-action{background:linear-gradient(145deg,#10a37f,#087f68 54%,#08644f);color:white}
 .mobile-nav .nav-item.active:not(.mobile-sell-action){background:var(--green-wash);color:var(--green-dark)}
}
@media(prefers-reduced-motion:reduce){
 .primary,.secondary,.product-card{transition:none!important}
}


/* Phase 3 — mobile ergonomics and product-form hierarchy. */
.form-section{border:1px solid var(--border);padding:12px 16px 16px;margin:14px 0;border-radius:14px;min-width:0;background:#fff}
.form-section legend{padding:0 8px;font-size:14px;font-weight:750;color:var(--green-dark)}
.form-section>label:first-of-type{margin-top:8px}
.form-section .product-photo-field{margin-top:0}
.form-section .form-grid{margin-top:0}
@media(max-width:760px){
 body{overflow-x:hidden}
 .workspace,.workspace main,.panel,.sale-layout,.management-filters{min-width:0}
 .page-heading{gap:12px;flex-wrap:wrap}
 .page-heading>div{min-width:0;flex:1 1 190px}
 .page-heading h1{overflow-wrap:anywhere;line-height:1.2}
 .page-heading-actions{min-width:0}
 .page-heading-actions button{white-space:normal}
 .stat,.management-stats article{min-width:0}
 .stat strong,.management-stats strong{overflow-wrap:anywhere}
 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
 .form-grid label{min-width:0;overflow-wrap:anywhere}
 .form-section{padding:10px 12px 14px;margin:13px 0}
 .form-section legend{font-size:15px}
 dialog:not(.scanner-dialog){width:calc(100vw - 20px);max-width:540px;padding:22px 18px;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
 dialog .modal-close{position:sticky;float:right;top:0;right:0;z-index:2;width:44px;height:44px;margin:-12px -7px 0 2px;border-radius:12px;background:#fff;color:var(--ink)}
 dialog h2{clear:both;line-height:1.2;font-size:21px;margin:8px 0 12px;padding-right:0}
 dialog input,dialog select,dialog textarea{font-size:16px;max-width:100%}
 dialog button[type=submit],dialog form>.primary.full{min-height:54px;font-size:16px}
 .catalog-buttons,.cart-tools{gap:8px}
 .catalog-buttons button,.cart-tools button{min-height:44px;padding:9px 11px;font-size:13px}
 .quantity button{width:44px;min-height:44px}
 .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
 .mobile-nav .nav-item{min-width:0;overflow-wrap:anywhere;line-height:1.15}
 .mobile-nav .nav-item>span{flex-shrink:0}
 .mobile-nav .nav-item.mobile-sell-action{transform:translateY(-14px)}
 .more-menu .nav-item{min-height:48px;font-size:14px;gap:12px}
 .more-menu .nav-item>span svg{width:23px;height:23px}
}
@media(max-width:390px){
 .form-grid{grid-template-columns:1fr}
 .form-section{padding:10px}
 .mobile-nav{padding-inline:3px}
 .mobile-nav .nav-item{font-size:10px}
}
@media(prefers-reduced-motion:reduce){dialog,.mobile-nav .nav-item{scroll-behavior:auto}}


/* Phase 4: checkout-first cashier ergonomics. */
.cashier-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 15px;padding:12px 16px;background:#fff;border:1px solid #d9eae3;border-radius:13px;color:var(--ink);font-size:13px}
.cashier-status strong{font-weight:750}
.cashier-status>span:last-child{margin-left:auto;color:var(--muted)}
.cashier-status-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--green-bright);box-shadow:0 0 0 4px #def6e9}
.cashier-favorites{margin:16px 0 18px;padding:13px 14px;background:#fff;border:1px solid var(--border);border-radius:14px}
.cashier-favorites h2{font-size:15px;margin:0 0 12px;color:var(--ink)}
.cashier-favorite-list{display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.cashier-favorite{display:flex;flex:0 0 105px;flex-direction:column;align-items:center;gap:5px;justify-content:center;min-height:106px;border:1px solid #e2ece8;border-radius:11px;background:#f9fcfa;padding:9px 6px;color:var(--ink);font-weight:650;font-size:12px;line-height:1.25;text-align:center}
.cashier-favorite .product-photo{display:block;width:48px;height:48px;object-fit:cover;border-radius:9px}
.cashier-favorite .product-photo-fallback{font-size:32px}
.cashier-favorite span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cashier-favorite:hover:not(:disabled){border-color:#93cdb9;background:#eff8f3}
.cashier-payments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0 10px}
.cashier-payment{background:#fff;color:var(--green-dark);border:1px solid #cddfd8;border-radius:11px;font-size:14px;font-weight:700;min-height:50px;padding:10px 8px}
.cashier-payment.selected{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 4px 14px #087f682b}
.cashier-mode .checkout #finish{font-weight:800;letter-spacing:.01em}
.cashier-mode .cash-shortcuts button{min-height:46px}
@media(max-width:760px){
 .cashier-status{margin-bottom:12px;padding:12px;font-size:13px}
 .cashier-favorites{padding:12px;margin:12px 0}
 .cashier-favorite{flex-basis:100px;min-height:103px}
 .cashier-payment{font-size:14px;min-height:54px}
 .cashier-mode .cart{padding-bottom:34px}
}


/* Phase 5: presentation-only adaptations to merchant business type. */
.business-preset-note{display:flex;align-items:center;gap:13px;padding:13px 16px;margin:0 0 18px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-card)}
.business-preset-note .business-preset-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:var(--green-wash);font-size:25px}
.business-preset-note strong{display:block;color:var(--ink);font-size:14px;font-weight:750}
.business-preset-note small{font-size:12px;margin-top:3px;line-height:1.45}
.category-suggestions{margin:-5px 0 13px}
.category-suggestions>small{font-size:12px;margin-bottom:9px}
.category-suggestions>div{display:flex;flex-wrap:wrap;gap:8px}
.category-suggestion{min-height:39px;max-width:100%;font-size:12px;font-weight:650;border:1px solid #bfdbcf;border-radius:25px;background:#f4faf7;color:var(--green-dark);padding:7px 12px}
.category-suggestion:hover{background:var(--green-wash);border-color:#8ac6b0}
@media(max-width:760px){.business-preset-note{padding:12px;gap:10px}.category-suggestion{min-height:44px;font-size:13px}}


/* Phase 6 — merchant dashboard, readable KPIs and honest margin reporting. */
.merchant-insights{margin:20px 0}
.merchant-insights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:13px}
.merchant-insight{position:relative;min-width:0;min-height:125px;padding:19px 17px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow-card)}
.merchant-insight>small{display:block;margin:0 34px 12px 0;font-size:12px;line-height:1.4;color:var(--muted)}
.merchant-insight>strong{display:block;font-size:clamp(19px,2vw,25px);font-weight:790;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere;letter-spacing:-.03em}
.merchant-insight-symbol{position:absolute;right:15px;top:16px;display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:var(--green-wash);color:var(--green-dark);font-size:18px}
.merchant-margin-note{margin:10px 2px 18px;font-size:12px;color:var(--muted)}
.merchant-insights-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:15px;align-items:stretch;margin-top:15px}
.merchant-insights-bottom:has(> :only-child){grid-template-columns:1fr}
.merchant-insights-bottom .panel{min-width:0}
.merchant-chart h2,.merchant-top h2{font-size:17px;margin:0 0 18px}
.merchant-chart-bars{height:165px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;align-items:end}
.merchant-chart-day{height:100%;display:flex;align-items:center;flex-direction:column;justify-content:end;gap:8px;min-width:0}
.merchant-chart-track{height:125px;width:100%;display:flex;align-items:end;justify-content:center;border-radius:7px;background:#f4f8f6;overflow:hidden}
.merchant-chart-track i{display:block;width:100%;min-height:2px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#10a37f,#087f68)}
.merchant-chart-day small{font-size:11px;font-variant-numeric:tabular-nums}
.merchant-chart-caption{margin:10px 0 0;font-size:11px}
.merchant-top-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:10px 0;min-width:0}
.merchant-top-row:last-child{border-bottom:0}
.merchant-top-row>span{display:grid;place-items:center;flex:0 0 26px;height:26px;background:var(--green-wash);border-radius:8px;color:var(--green-dark);font-weight:750;font-size:12px}
.merchant-top-row>strong{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}
.merchant-top-row>small{font-weight:750;font-size:13px}
@media(max-width:920px){.merchant-insights-bottom{grid-template-columns:1fr}}
@media(max-width:760px){.merchant-insights-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.merchant-insight{min-height:114px;padding:16px 12px}.merchant-insight>small{font-size:12px;margin-right:23px}.merchant-insight>strong{font-size:19px}.merchant-insight-symbol{right:10px;top:12px;width:25px;height:25px;font-size:15px}.merchant-chart-bars{gap:7px}.merchant-insights-bottom .panel{padding:18px 14px}}
@media(max-width:360px){.merchant-insights-grid{grid-template-columns:1fr}.merchant-insight{min-height:94px}}


/* Point 7 — actionable inventory notifications, scoped to the current shop. */
.nav-item>span{position:relative}
.nav-alert-badge{position:absolute;top:-9px;right:-14px;display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border:2px solid white;border-radius:99px;background:#b56a12;color:white;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:10px;font-weight:850;line-height:1;letter-spacing:0;white-space:nowrap;box-shadow:0 2px 7px #0002}
.nav-alert-badge-critical{background:#c43d3d}
.mobile-nav .nav-alert-badge{top:-7px;right:-15px;z-index:1}
.sidebar .nav-alert-badge{top:-8px;right:-15px}
.alerts-priority-banner{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:13px 17px;border:1px solid #c9e6d7;border-left:4px solid #087f68;border-radius:13px;background:#eef8f2;color:#195a43;font-size:13px;line-height:1.5}
.alerts-priority-banner>span{font-size:19px;flex-shrink:0}
.alerts-priority-banner strong{font-weight:720}
.alerts-priority-banner.priority-warning{background:#fff8ea;border-color:#f4d3a1;border-left-color:#c37d13;color:#82500b}
.alerts-priority-banner.priority-critical{background:#fff1f0;border-color:#f2bdb7;border-left-color:#c43d3d;color:#a42c2c}
@media(max-width:760px){.alerts-priority-banner{padding:12px 13px;font-size:13px}.mobile-nav .nav-alert-badge{min-width:20px;height:20px;font-size:10px}}


/* Point 8 — fast onboarding for existing shops. */
.stock-import-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:12px 16px;background:#fff;border:1px solid var(--border);border-radius:13px}
.stock-import-bar p{font-size:13px;color:var(--muted);margin:0}
.stock-import-bar button{min-height:46px;flex-shrink:0}
#import-preview{font-size:13px;color:var(--green-dark);font-weight:650;margin:12px 0;line-height:1.5}
#product-form .form-hint{line-height:1.45}
@media(max-width:480px){.stock-import-bar{align-items:stretch;flex-direction:column}.stock-import-bar button{width:100%}}


/* Phase 9: consistent finishing details, accessible interaction feedback. */
#notice{display:flex;align-items:center;gap:10px;max-width:min(440px,calc(100vw - 26px));width:max-content;min-height:48px;padding:13px 19px;border-radius:13px;font-weight:650;line-height:1.45;box-shadow:0 14px 38px #102e3a33;border:1px solid #ffffff29}
#notice[data-kind="success"]{background:#086c55}
#notice[data-kind="error"]{background:#a92f36}
#notice[data-kind="info"]{background:var(--ink)}
#loading-indicator:not([hidden]){height:4px;background:linear-gradient(90deg,#b7efe0,#10a37f,#087f68,#b7efe0);background-size:250% 100%;animation:pronto-loading 1.3s ease-in-out infinite}
@keyframes pronto-loading{0%{background-position:100% 0}100%{background-position:-100% 0}}
.empty-state,.empty-cart{background:linear-gradient(160deg,#fff,#f8fcfa);border:1px dashed #d8e6e0;border-radius:15px}
.empty-state h2{font-size:17px;line-height:1.3;color:var(--ink)}
.empty-state p{line-height:1.55}
.sale-empty-results{grid-column:1/-1;padding:27px 17px}
.sale-empty-results>span{display:grid;place-items:center;margin:0 auto 9px;width:54px;height:54px;border-radius:16px;background:var(--green-wash);color:var(--green-dark);font-size:34px}
.sale-empty-results .secondary{margin-top:9px;min-height:44px}
button:disabled{cursor:not-allowed;filter:saturate(.75)}
button:not(:disabled){-webkit-tap-highlight-color:transparent}
.primary[aria-busy="true"],button[aria-busy="true"]{position:relative;cursor:progress}
.panel,.catalog-entry,.quick-actions button,.merchant-insight{transition:box-shadow .18s ease,border-color .18s ease}
@media(max-width:760px){#notice{bottom:calc(94px + env(safe-area-inset-bottom));font-size:13px;padding:12px 15px}.cashier-mode #notice{bottom:92px}.sale-empty-results{padding:25px 12px}.empty-state h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){#loading-indicator:not([hidden]){animation:none}.panel,.catalog-entry,.quick-actions button,.merchant-insight{transition:none}}


/* Mobile preview corrections: readable hero and unclipped red alert counter. */
.hero h2{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.16)}
.nav-item>span:has(.nav-alert-badge){position:relative;overflow:visible!important}
.nav-alert-badge,.nav-alert-badge-critical{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 position:absolute;top:-8px;right:-13px;z-index:5;
 width:max-content!important;min-width:23px!important;max-width:none!important;height:23px!important;
 padding:0 6px!important;margin:0!important;box-sizing:border-box;
 border:2px solid #fff;border-radius:999px;
 background:#d62828!important;color:#fff!important;
 font-size:11px!important;font-weight:800!important;line-height:1!important;
 letter-spacing:0!important;white-space:nowrap!important;
 box-shadow:0 3px 9px rgba(115,22,22,.24);
 transform:none!important;
}
@media(max-width:760px){
 .mobile-nav,.mobile-nav .nav-item,.mobile-nav .nav-item>span{overflow:visible!important}
 .mobile-nav .nav-item>span:has(.nav-alert-badge){position:relative;isolation:isolate}
 .mobile-nav .nav-alert-badge{top:-9px;right:-12px;min-width:24px!important;height:24px!important;padding:0 6px!important;font-size:11px!important}
 .hero h2{color:#fff!important}
}

/* Gestão: resumo financeiro por vendedor. */
.seller-finance{margin-top:28px;padding-top:22px;border-top:1px solid var(--border,#dce4df)}
.seller-finance .page-heading h2{font-size:clamp(20px,2vw,26px);margin:5px 0}
.seller-toolbar label{min-width:145px}
.seller-toolbar select,.seller-toolbar input{width:100%}
.seller-report-list{display:grid;gap:14px;margin:16px 0}
.seller-report-card{min-width:0}
.seller-report-card h4{font-size:14px;margin:20px 0 12px}
.seller-report-title{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.seller-report-title h3{font-size:19px;margin:0 0 5px;overflow-wrap:anywhere}
.seller-report-title small,.seller-additional small,.seller-shift small{display:block;font-size:12px;opacity:.8}
.seller-report-title>div:last-child{text-align:right}
.seller-report-title>div:last-child strong{display:block;font-size:22px;margin-top:4px}
.seller-total-grid{margin-bottom:16px}
.seller-additional{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px}
.seller-additional>div{min-width:0;padding:13px;border:1px solid #e4e9e7;border-radius:12px}
.seller-additional strong{display:block;margin-top:6px;font-size:16px;overflow-wrap:anywhere}
.seller-shift{display:grid;grid-template-columns:minmax(120px,1.5fr) repeat(3,minmax(110px,1fr));gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #e4e9e7}
.seller-shift>div{min-width:0}
.seller-shift strong{display:block;margin-top:4px;overflow-wrap:anywhere}
@media(max-width:850px){.seller-additional{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-shift{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.seller-toolbar label{flex:1 1 100%}.seller-toolbar button{flex:1}.seller-report-title>div:last-child{text-align:left}.seller-report-title>div:last-child strong{font-size:19px}.seller-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-shift{grid-template-columns:1fr 1fr}}

/* Checkout stability: show one clear search focus ring and toggle mixed-cash fields safely. */
.search-box input:focus,.search-box input:focus-visible{outline:none;outline-offset:0;box-shadow:none}
.search-box:focus-within{border-color:var(--green);outline:2px solid #79c4a8;outline-offset:2px;box-shadow:none}
.split-payments #mixed-cash-received[hidden],.split-payments #mixed-change[hidden]{display:none}
.cashier-payment:focus-visible{outline:3px solid #d9a431;outline-offset:3px}

/* Payment methods are always visible: no browser-native select popup to flicker. */
.checkout-payment-choice{border:0;padding:0;min-width:0;margin:16px 0 8px}
.checkout-payment-choice legend{font-size:12px;font-weight:650;padding:0;color:var(--ink)}
.checkout-payment-choice .cashier-payments{margin:8px 0 10px}
.checkout-payment-choice .cashier-payment{min-width:0;min-height:52px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.checkout-payment-choice .cashier-payment[aria-pressed="true"]{background:var(--green);color:#fff;border-color:var(--green)}
.checkout-payment-choice .cashier-payment:focus-visible{outline:3px solid #d9a431;outline-offset:2px}
@media(max-width:420px){.checkout-payment-choice .cashier-payment{font-size:12px;min-height:56px}}

/* Vendas em espera — modal acessível e adaptado ao caixa e telemóveis. */
dialog.held-sales-dialog{width:min(620px,calc(100vw - 26px));max-width:620px;max-height:90dvh;overflow-y:auto}
.held-sales-popup{min-width:0}
.held-sales-popup h2{display:flex;align-items:center;gap:10px;margin:6px 35px 14px 0;font-size:23px}
.held-sales-count{background:var(--green-wash);color:var(--green-dark);padding:4px 10px;border-radius:100px;font-size:14px}
.held-sales-list{display:grid;gap:12px;margin:15px 0;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.held-sale-item{padding:17px;border:1px solid var(--border);border-radius:14px;background:#fff;min-width:0}
.held-sale-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.held-sale-head>div{min-width:0}
.held-sale-head strong{font-size:15px;overflow-wrap:anywhere}
.held-sale-head>strong{font-size:18px;white-space:nowrap}
.held-sale-head small,.held-sale-details small{color:var(--muted);font-size:12px;line-height:1.45}
.held-sale-head small{margin-top:5px}
.held-sale-details{display:grid;gap:5px;margin:12px 0}
.held-sale-warning{background:#fff7e8;border:1px solid #ead4a5;color:#855510;padding:9px 10px;border-radius:8px;font-size:12px;line-height:1.5;margin:8px 0 12px}
.held-resume-button{width:100%;font-size:13px;font-weight:700;min-height:46px}
#resume-sale{white-space:normal;line-height:1.25}
@media(max-width:480px){
 dialog.held-sales-dialog{padding:16px 13px}
 .held-sales-list{max-height:59dvh}
 .held-sale-item{padding:13px}
 .held-sale-head>strong{font-size:16px}
 .held-sales-popup h2{font-size:20px}
}


/* Ubuntu administration — isolated from the merchant POS. */
.pronto-admin-shell{min-height:100dvh;display:grid;grid-template-columns:260px minmax(0,1fr);background:#f6f8fa;color:#173749}
.pronto-admin-sidebar{position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid #e0ebe8;display:flex;flex-direction:column;padding:24px 16px}
.pronto-admin-brand{display:flex;align-items:center;gap:10px;padding:6px 10px 25px}
.pronto-admin-brand img{width:43px;height:43px}
.pronto-admin-brand strong{font-size:19px;letter-spacing:-.6px;display:block;color:#087f68}
.pronto-admin-brand small{font-size:11px;line-height:1.4}
.pronto-admin-user{display:flex;gap:10px;align-items:center;padding:14px 10px;background:#eff7f3;border-radius:14px;min-width:0;margin-bottom:22px}
.pronto-admin-avatar{display:grid;place-items:center;border-radius:10px;background:#087f68;color:white;min-width:38px;height:38px;font-weight:800}
.pronto-admin-user div{min-width:0;flex:1}
.pronto-admin-user strong{display:block;font-size:12px}
.pronto-admin-user small{font-size:10px;overflow-wrap:anywhere}
.pronto-admin-nav{display:grid;gap:4px}
.pronto-admin-nav button{width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:13px 14px;color:#607888;font-size:13px;font-weight:650}
.pronto-admin-nav button:hover,.pronto-admin-nav button.active{background:#e6f5ef;color:#076b59}
.pronto-admin-nav button:focus-visible{outline:3px solid #66bfa6;outline-offset:1px}
.pronto-admin-sidebar-bottom{margin-top:auto;display:grid;gap:10px;padding:12px 7px}
.pronto-admin-sidebar-bottom button{width:100%}
.pronto-admin-secure{font-size:11px;color:#52796c;line-height:1.5}
.pronto-admin-workspace{min-width:0}
.pronto-admin-topbar{min-height:112px;background:#fff;border-bottom:1px solid #e0ebe8;padding:21px clamp(18px,3vw,42px);display:flex;gap:20px;align-items:center;justify-content:space-between}
.pronto-admin-topbar h1{font-size:23px;line-height:1.2;margin:3px 0 0}
.pronto-admin-topbar>div:first-child>span{font-size:10px;letter-spacing:2px;font-weight:750;color:#087f68}
.pronto-admin-top-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pronto-admin-live{font-size:11px;color:#087f68;font-weight:700;background:#e8f6f0;border-radius:30px;padding:10px 13px;white-space:nowrap}
.pronto-admin-top-actions button{min-height:40px}
.pronto-admin-search input{width:min(240px,65vw);border-radius:8px;border:1px solid #bdcec8;padding:11px 12px;font-size:12px;background:#fff}
#pronto-admin-search-wrap[hidden]{display:none}
.pronto-admin-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.pronto-admin-main{max-width:1400px;margin:auto;padding:28px clamp(18px,3vw,42px) 45px}
#pronto-admin-message:not(:empty){padding:12px 16px;margin-bottom:16px;background:#fff7e8;color:#855510;border:1px solid #f1dba5;border-radius:10px;font-size:13px}
.pronto-admin-page-title{margin-bottom:22px}
.pronto-admin-page-title h2{font-size:25px;margin-bottom:5px}
.pronto-admin-page-title p{font-size:13px;margin:0}
.pronto-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.pronto-admin-stat,.pronto-admin-panel{background:#fff;border:1px solid #e3ebe8;border-radius:16px;box-shadow:0 7px 18px #143a3207;padding:22px;min-width:0}
.pronto-admin-stat small{color:#708692;font-size:12px}
.pronto-admin-stat strong{font-size:30px;display:block;color:#087f68;margin:10px 0;font-variant-numeric:tabular-nums}
.pronto-admin-stat span{font-size:11px;color:#708692}
.pronto-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pronto-admin-panel h3{font-size:16px;margin:0 0 16px}
.pronto-admin-panel p{font-size:12px}
.pronto-admin-status-grid{display:grid;gap:10px}
.pronto-admin-status-grid p{margin:0;padding:12px;background:#f5f8f7;border-radius:9px;display:flex;justify-content:space-between}
.pronto-admin-status-grid strong{color:#1c4550}
.pronto-admin-table-wrap{max-width:100%;overflow-x:auto}
.pronto-admin-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
.pronto-admin-table th{font-weight:650;font-size:11px;color:#617787;background:#f5f8f7}
.pronto-admin-table th,.pronto-admin-table td{padding:14px 12px;border-bottom:1px solid #e8efec;vertical-align:middle}
.pronto-admin-table td strong{font-size:13px;display:block}
.pronto-admin-table td small{font-size:11px;margin-top:5px}
.pronto-admin-chip{font-size:11px;display:inline-flex;white-space:nowrap;padding:5px 9px;border-radius:20px;background:#f0f2f5;color:#617080;font-weight:700}
.pronto-admin-active{background:#e0f4eb;color:#077258}
.pronto-admin-suspended,.pronto-admin-expired,.pronto-admin-cancelled{background:#fff0e7;color:#a74720}
.pronto-admin-unassigned{background:#f3f1e7;color:#766528}
.pronto-admin-note{color:#667783;margin:20px 0 0!important;line-height:1.7}
.pronto-admin-count{background:#f0f5f3;padding:3px 9px;border-radius:40px;font-size:11px;margin-left:7px}
.pronto-admin-empty{text-align:center;padding:35px 12px;color:#647c8b}
.pronto-admin-empty strong{font-size:15px;display:block;color:#245065}
.pronto-admin-check{padding:12px 0;border-top:1px solid #e8efec;display:grid;gap:5px}
.pronto-admin-check strong{font-size:13px}
.pronto-admin-check span{font-size:12px;color:#627789}
@media(max-width:900px){.pronto-admin-shell{grid-template-columns:210px minmax(0,1fr)}.pronto-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pronto-admin-topbar{flex-wrap:wrap}}
@media(max-width:620px){.pronto-admin-shell{display:block}.pronto-admin-sidebar{position:static;height:auto;padding:12px;gap:8px}.pronto-admin-brand{padding:3px 8px}.pronto-admin-user{margin-bottom:0}.pronto-admin-nav{display:flex;overflow-x:auto;gap:5px;padding:0 2px}.pronto-admin-nav button{white-space:nowrap;width:auto;font-size:12px;padding:11px}.pronto-admin-sidebar-bottom{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.pronto-admin-sidebar-bottom button{width:auto}.pronto-admin-topbar{min-height:auto;padding:18px}.pronto-admin-topbar h1{font-size:20px}.pronto-admin-main{padding:18px}.pronto-admin-stats{gap:10px}.pronto-admin-stat{padding:16px}.pronto-admin-stat strong{font-size:24px}.pronto-admin-grid{grid-template-columns:1fr}.pronto-admin-panel{padding:16px}.pronto-admin-live{font-size:10px}}


/* Supabase Merchant PostgreSQL pilot: intentionally separate from legacy POS. */
.shop-shell{min-height:100dvh;background:#f5f9f7;color:#193947}
.shop-shell [hidden]{display:none!important}
.shop-header{display:flex;align-items:center;gap:20px;justify-content:space-between;background:#fff;border-bottom:1px solid #dceae5;padding:15px clamp(14px,3vw,38px)}
.shop-brand{display:flex;align-items:center;gap:10px;min-width:0}
.shop-brand img{width:42px;height:42px}
.shop-brand strong{display:block;font-size:21px;color:#087e68;letter-spacing:-.5px}
.shop-brand small,.shop-account small{display:block;font-size:11px;color:#69828c}
.shop-account{text-align:right;min-width:0}
.shop-account strong{display:block;font-size:13px}
.shop-account small{overflow-wrap:anywhere}
.shop-logout{border:1px solid #bfd4ca;border-radius:10px;background:#fff;padding:10px 16px;font-weight:700}
.shop-toolbar{padding:11px clamp(14px,3vw,38px);background:#fff;display:flex;gap:12px;align-items:end;flex-wrap:wrap;border-bottom:1px solid #dceae5}
.shop-toolbar label{font-size:11px;color:#657d82;display:grid;gap:4px;min-width:180px}
.shop-toolbar select{padding:10px;border-radius:10px;border:1px solid #d1e2dc;background:#fff;font-weight:650;font-size:13px}
.shop-toolbar>button{padding:11px 15px;background:#ecf5f1;border:1px solid #bdd9cf;border-radius:9px;font-weight:650}
.shop-cash-indicator{margin-left:auto;border-radius:25px;background:#e2f5ee;color:#087e68;padding:11px 12px;font-size:12px;font-weight:750}
.shop-nav{display:flex;gap:7px;padding:14px clamp(14px,3vw,38px);overflow-x:auto;background:#f4f8f6}
.shop-nav button{white-space:nowrap;border:1px solid #d6e6df;padding:12px 19px;border-radius:11px;background:#fff;font-size:13px;font-weight:700}
.shop-nav button[aria-current=page]{background:#087f69;color:white;border-color:#087f69}
.shop-main{padding:13px clamp(14px,3vw,38px) 55px;max-width:1550px;margin:auto}
.shop-main>h2{font-size:23px;margin-bottom:15px}
#shop-message:not(:empty){padding:12px 15px;border-radius:10px;background:#e9f4ef;color:#087f69;font-weight:650;font-size:13px;margin-bottom:13px}
#shop-message.shop-error{background:#fff0e8;color:#aa491d}
.shop-box{background:#fff;border:1px solid #dfebe6;border-radius:16px;padding:20px;min-width:0;box-shadow:0 5px 21px #16392d09}
.shop-box h3{margin:0 0 13px;font-size:17px}
.shop-box h4{font-size:13px;margin:18px 0 10px}
.shop-sales-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(310px,.9fr);gap:20px;align-items:start}
.shop-sales-grid>.shop-box:nth-child(2){position:sticky;top:12px}
.shop-help{font-size:12px;color:#71858a;line-height:1.5}
.shop-search{display:grid;gap:6px;font-size:12px;font-weight:650;margin:5px 0 19px}
.shop-search input{font-size:15px;border:1px solid #bcd7cd;border-radius:11px;padding:14px;background:#fff}
.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-product{background:#f9fcfa;border:1px solid #e0ebe6;padding:15px;border-radius:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.shop-product div{min-width:0;display:grid;gap:5px}
.shop-product strong{font-size:14px}
.shop-product small{font-size:11px;color:#6f8187;overflow-wrap:anywhere}
.shop-product span{font-size:13px;font-weight:700;color:#087f69}
.shop-product .shop-low{color:#b8610d}
.shop-product button{border:0;background:#087f69;color:white;width:40px;min-width:40px;height:40px;border-radius:12px;font-size:23px;font-weight:700}
.shop-product button:disabled{background:#b9c9c5}
.shop-cart-list{margin:16px 0}
.shop-cart-row{padding:12px 0;border-bottom:1px solid #e6eeea;display:flex;gap:10px;align-items:center;justify-content:space-between}
.shop-cart-row>div:first-child{display:grid;gap:3px;min-width:0}
.shop-cart-row strong{font-size:13px}
.shop-cart-row small{font-size:11px;color:#788992}
.shop-cart-qty{display:flex;gap:3px;align-items:center}
.shop-cart-qty button{width:29px;height:30px;padding:0;border:0;border-radius:7px;background:#eef6f1;color:#087f69;font-size:16px;font-weight:700}
.shop-cart-qty input{width:63px;max-width:80px;border:1px solid #cbded6;border-radius:6px;height:30px;text-align:center;font-size:12px;padding:2px}
.shop-cart-qty .shop-clear-row{background:#fff0eb;color:#b05128}
.shop-totals{display:flex;justify-content:space-between;gap:8px;margin:15px 0;font-size:13px}
.shop-totals strong{font-size:19px}
.shop-total{border-top:1px solid #e3eae6;padding-top:13px}
.shop-total strong{font-size:24px;color:#087f69}
.shop-box label:not(.shop-confirm){display:grid;gap:6px;font-size:12px;font-weight:650;margin:12px 0}
.shop-box input:not([type=checkbox]),.shop-box select{border:1px solid #cbded6;border-radius:9px;padding:11px 12px;background:#fff;font-size:13px;min-width:0;width:100%}
.shop-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shop-methods button{min-height:45px;border:1px solid #cde1d8;background:#fff;color:#087f69;border-radius:11px;font-size:13px;font-weight:750}
.shop-methods button[aria-pressed=true]{background:#087f69;color:#fff;border-color:#087f69}
.shop-confirm{display:flex;gap:9px;align-items:start;font-size:12px;color:#5e7780;margin:14px 0}
.shop-confirm input{width:auto!important;margin:2px 0 0}
.shop-submit{width:100%;background:#087f69;color:#fff;border:0;border-radius:10px;font-size:14px;min-height:47px;font-weight:750;margin-top:13px}
.shop-submit:disabled{background:#a4c4b8;cursor:not-allowed}
.shop-payment-grid,.shop-form,.shop-two{display:grid;gap:10px}
.shop-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;align-items:start}
.shop-form{gap:7px}
.shop-history{display:grid;gap:10px}
.shop-history>div{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #e8f0ec;padding:11px 0}
.shop-history strong{color:#087f69}
.shop-history small,.shop-history span{font-size:11px;color:#70818b}
.shop-pending{border:2px solid #d39148;background:#fffaf3;padding:17px;border-radius:12px;margin:15px 0}
.shop-pending p{font-size:12px}
.shop-pending button{padding:10px;background:#fff;border:1px solid #e1c49e;border-radius:8px;margin:5px 8px 0 0;font-weight:650}
.shop-error{color:#a94c23;font-size:12px}
.shop-footer{margin:22px 0;font-size:12px;color:#84918f}
.shop-loading{margin:15vh auto;max-width:510px;text-align:center;font-weight:650;color:#087f69}
@media(max-width:950px){.shop-sales-grid{grid-template-columns:1fr}.shop-sales-grid>.shop-box:nth-child(2){position:static}}
@media(max-width:660px){.shop-header{gap:8px;flex-wrap:wrap}.shop-account{order:3;text-align:left;width:100%}.shop-toolbar label{min-width:140px;flex:1}.shop-cash-indicator{margin-left:0}.shop-products{grid-template-columns:1fr}.shop-two{grid-template-columns:1fr}.shop-box{padding:15px}.shop-nav button{padding:10px 13px;font-size:12px}.shop-cart-row{flex-wrap:wrap}}

/* Fase 4: protected recovery forms with clear mobile affordances. */
.shop-draft-section{margin-top:20px;border-color:#d4e6dc;background:#fff}
.shop-draft-section .shop-form{max-width:550px;margin:13px 0 20px}
.shop-draft-section .shop-logout{margin-top:8px}
.shop-draft-section h3{color:#176a55}
.shop-draft-section .shop-help{line-height:1.6}
#recovery-message:not(:empty){padding:11px;border-radius:8px;color:#28594e;background:#ebf6f2;font-size:12px}
#recovery-request-form button:disabled,#recovery-confirm-form button:disabled{opacity:.6;cursor:wait}


/* PIN screen: fully obscures merchant/admin data when a session is locked. */
.pronto-pin-backdrop{
 position:fixed;inset:0;z-index:2147483000;background:linear-gradient(145deg,#055844,#0b836b 58%,#0b594f);
 color:#1b3742;display:grid;place-items:center;padding:20px;overflow-y:auto;
}
.pronto-pin-panel{width:min(100%,370px);background:white;border-radius:21px;
 box-shadow:0 28px 90px #002b2455;padding:26px;display:grid;gap:12px;text-align:center}
.pronto-pin-brand{display:flex;justify-content:center;align-items:center;gap:9px;color:#06775f}
.pronto-pin-brand img{width:32px;height:32px}
.pronto-pin-brand strong{font-size:20px;letter-spacing:-.5px}
.pronto-pin-lock-icon{display:grid;place-items:center;margin:7px auto 0;
 width:62px;height:62px;background:#e4f5ec;border-radius:50%;font-size:25px}
.pronto-pin-panel h2{margin:4px 0 0;font-size:23px;color:#183c45}
.pronto-pin-intro{font-size:13px;line-height:1.5;color:#617987;margin:0}
.pronto-pin-account{font-size:12px;font-weight:700;overflow-wrap:anywhere;margin:0}
#pronto-pin-form{display:grid;gap:11px}
#pronto-pin-form label{display:grid;gap:6px;text-align:left;font-size:12px;font-weight:700;color:#56717e}
#pronto-pin-form input{box-sizing:border-box;border:1px solid #bcdbce;border-radius:10px;
 background:#fff;font-size:19px;min-height:48px;letter-spacing:6px;text-align:center;width:100%}
#pronto-pin-form input:focus-visible{outline:3px solid #8bd4bd;outline-offset:2px}
.pronto-pin-dots{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px auto 0}
.pronto-pin-dots span{display:block;width:17px;height:17px;border:2px solid #afd7c8;border-radius:50%;background:transparent}
.pronto-pin-dots span.entered{background:#087f69;border-color:#087f69}
.pronto-pin-input-label{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.pronto-pin-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pronto-pin-keypad button{border:1px solid #d9e9e2;background:#f8fbfa;border-radius:10px;
 min-height:47px;font-size:19px;font-weight:700;color:#244b50}
.pronto-pin-keypad button:active{background:#d6f1e5}
.pronto-pin-primary{width:100%;background:#087f69;color:#fff;border:0;border-radius:10px;
 min-height:45px;font-size:14px;font-weight:750}
.pronto-pin-primary:disabled{opacity:.55}
.pronto-pin-message{min-height:17px;margin:0;color:#a04c27;font-size:12px;line-height:1.45}
.pronto-pin-message:empty{display:block}
.pronto-pin-exit{border:0;background:none;color:#087f69;text-decoration:underline;font-size:12px}
.pronto-pin-panel small{font-size:10px;color:#82939a;line-height:1.4}
.pronto-pin-controls{position:fixed;bottom:18px;right:16px;z-index:100;
 display:flex;gap:6px;background:#fff;border:1px solid #cadfd6;
 padding:5px;border-radius:12px;box-shadow:0 5px 20px #051c1b30}
.pronto-pin-controls button{font-size:11px;font-weight:750;color:#086b58;
 background:#e9f5ef;border:0;padding:10px 12px;border-radius:8px}
.pronto-pin-controls button:focus-visible{outline:2px solid #087f69}
@media(max-width:540px){.pronto-pin-panel{padding:20px}.pronto-pin-controls{bottom:10px;right:10px;left:auto}.pronto-pin-controls button{padding:9px}}
/* The PIN gate remains active; the floating desktop shortcuts must not cover mobile navigation. */
@media(max-width:830px){.pronto-pin-controls{display:none!important}}

/* Customers and debt ledger */
.credit-panel{min-width:0}.credit-list{max-height:420px;overflow-y:auto;display:grid;gap:7px;margin-top:10px}.credit-list-item{text-align:left;padding:12px;border:1px solid #dce9e2;background:#f7fbf9;border-radius:10px;display:grid;gap:4px}.credit-list-item strong{font-size:13px}.credit-list-item small{color:#66828b}.credit-debt-item{border-bottom:1px solid #e2ebe6;padding:12px 0}.credit-debt-item strong{display:inline-block}.credit-debt-item p{margin:8px 0;font-size:13px}.credit-debt-item small{font-size:11px;color:#6f8187}.credit-tag{font-size:11px;padding:4px 7px;margin-left:8px;background:#f0f6f2;border-radius:8px}.credit-debt-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.credit-debt-actions button,.credit-panel button[data-credit-statement]{border:1px solid #a7d2c2;border-radius:9px;padding:9px;background:#eff9f3;color:#08735e;font-weight:700}.credit-line{border-bottom:1px solid #e1ebe6;padding:9px 0;font-size:12px}.credit-warning{border-radius:8px;background:#fff1db;color:#8e5717;font-weight:700;padding:12px;font-size:13px}.shop-credit-toggle{width:100%;margin-top:10px;padding:11px;border:1px solid #087f69;background:#e8f7f0;color:#066b57;border-radius:10px;font-weight:800}.credit-panel label input[type=checkbox]{width:auto!important;min-height:0!important;margin-right:8px}.credit-panel .shop-form{min-width:0}

.finance-purchase-lines{display:grid;gap:10px}.finance-purchase-line{border:1px solid #e0ebe6;border-radius:12px;padding:13px;background:#f8fbf9;display:grid;gap:8px}.finance-purchase-line strong{color:#087e68;font-size:13px}.finance-purchase-line label{margin:0!important}.finance-purchase-lines+button[data-finance-add-line]{padding:11px 15px;border:1px solid #a8d3c2;background:#e9f8ef;border-radius:9px;font-weight:700;color:#086b57}.credit-list-item:focus-visible{outline:3px solid #2d9e7d}
.expense-daily-summary{display:grid;gap:3px;padding:16px;margin:10px 0 16px;border:1px solid #b8dfce;border-radius:13px;background:#edf9f3;color:#135d49}.expense-daily-summary small{font-size:12px}.expense-daily-summary strong{font-size:clamp(22px,3vw,30px);font-weight:800}.expense-daily-summary span{font-size:12px;color:#537468}.expense-history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e1eae5}.expense-history-row>div{display:grid;gap:3px;min-width:0}.expense-history-row>div strong{font-size:14px;overflow-wrap:anywhere}.expense-history-row small{color:#657a70;font-size:12px}.expense-history-row>strong{white-space:nowrap;font-size:14px;color:#16644e}

.shop-hold-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid #bedacf;border-radius:12px;background:#eff8f4;padding:12px;margin:12px 0}.shop-hold-actions button{background:#087f69;color:white;border:0;border-radius:9px;font-weight:750;padding:12px}.shop-hold-actions small{font-size:11px;color:#71858a}.finance-purchase-line label input[type=checkbox]{width:auto!important;min-height:auto!important}.shop-box select#shop-return-sale{width:100%;max-width:100%}

.shop-table{border-collapse:collapse;width:100%;font-size:12px}.shop-table th,.shop-table td{padding:9px;text-align:left;border-bottom:1px solid #dce8e2}.shop-table th{color:#315b54}.shop-box button[data-inventory-export]{padding:11px 14px;border-radius:9px;border:1px solid #087e69;color:#087e69;background:#e8f5ef;font-weight:700}.shop-box label input[type=checkbox]{width:auto;min-height:auto}

.shop-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:10px;margin:12px 0}.shop-metric{display:flex;flex-direction:column;gap:8px;border:1px solid #dce9e2;border-radius:12px;padding:14px;background:#f7fbf8}.shop-metric small{font-size:12px;color:#667e78}.shop-metric strong{font-size:19px;color:#0a614e;overflow-wrap:anywhere}

.shop-product-photo{display:block;width:62px;height:62px;object-fit:cover;flex-shrink:0;border:1px solid #d5e7dd;border-radius:12px;background:#f1f8f4}.shop-photo-preview{width:100%;max-width:240px;height:auto;aspect-ratio:4/3;margin:10px 0}.shop-product{gap:12px}.shop-box input[type=file]{max-width:100%;font-size:13px}

/* Filial-to-filial inventory transfer controls */
.transfer-form-lines{display:grid;gap:10px}.transfer-form-lines .finance-purchase-line{padding:12px;border:1px solid #d6e6dc;border-radius:10px}.shop-box [data-transfer-add]{padding:11px 14px;border:1px solid #8cc7b3;border-radius:9px;background:#ebf8f2;color:#086e59;font-weight:700}.credit-debt-actions [data-transfer-cancel]{background:#fff3ea;color:#944615;border-color:#e7c5ab}.shop-box .shop-pending{padding:12px;margin:12px 0}

/* Private owner operational audit history */
.audit-history{max-height:68vh;overflow:auto;display:grid;gap:8px;margin:14px 0}.audit-record{display:grid;gap:4px;border:1px solid #dfeae4;border-radius:10px;padding:12px;background:#fbfdfb}.audit-record strong{font-size:13px;color:#176750}.audit-record small{color:#627b83;font-size:11px}.audit-record span{font-size:11px;color:#536f77}.audit-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:12px}.audit-pagination button{border:1px solid #b5d4c9;color:#086952;background:#eaf7f0;border-radius:9px;padding:10px 13px;font-weight:650}.audit-pagination button:disabled{opacity:.45;cursor:not-allowed}.audit-pagination span{font-size:12px;font-weight:700;color:#426157}
.audit-record .audit-change-summary{font-size:12px;color:#195d47;background:#edf8f2;padding:9px;border:1px solid #d1e7dc;border-radius:7px;overflow-wrap:anywhere}

/* Suspended staff drawer reconciliation */
.shop-box [data-shop-form="suspended_cash_close"]{border:1px solid #e0b98d;border-radius:12px;padding:13px;margin-top:10px;background:#fffbf6}.shop-box [data-shop-form="suspended_cash_close"] label{display:block;margin-bottom:9px}.shop-box [data-shop-form="suspended_cash_close"] input[type="checkbox"]{width:auto;min-height:0;margin-right:8px}.shop-box [data-shop-form="suspended_cash_close"] button{max-width:100%;white-space:normal}


/* Contextual action colours · visual-only refinement, no layout or flow changes.
   Mobile wallets use recognisable M-Pesa/Vodacom red and e-Mola/Movitel orange.
   The same rules cover the existing POS and the Supabase merchant pilot. */
:root{
  --pronto-mpesa:#e60000;
  --pronto-mpesa-hover:#c80000;
  --pronto-emola:#f58220;
  --pronto-emola-ink:#202b35; /* dark text is necessary on bright orange */
  --pronto-action-blue:#185d8a;
  --pronto-action-purple:#61409b;
  --pronto-danger:#b52332;
  --pronto-danger-hover:#981b28;
  --pronto-danger-soft:#fff0f1;
}

/* Payment choices: recognisable even before selection. */
.checkout-payment-choice .cashier-payment[data-quick-payment="mpesa"],
.shop-methods button[data-shop-method="mpesa"]{
  color:#ae1625;background:#fff1f2;border-color:#eab0b5;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="emola"],
.shop-methods button[data-shop-method="emola"]{
  color:#91430c;background:#fff2e5;border-color:#efbd90;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="cash"],
.shop-methods button[data-shop-method="cash"]{
  color:#155776;background:#edf6fb;border-color:#aecfdf;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="transfer"],
.shop-methods button[data-shop-method="transfer"]{
  color:#354a96;background:#eef1fe;border-color:#bfc9e9;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="bank"],
.shop-methods button[data-shop-method="bank"]{
  color:#155a46;background:#e8f6ee;border-color:#a7d7bc;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="mixed"],
.shop-methods button[data-shop-method="mixed"]{
  color:#654391;background:#f5efff;border-color:#d5c2ee;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="credit"]{
  color:#83510e;background:#fff5e1;border-color:#e2c793;
}

/* Active payment choice: never revert to the generic green. */
.checkout-payment-choice .cashier-payment[data-quick-payment="mpesa"][aria-pressed="true"],
.shop-methods button[data-shop-method="mpesa"][aria-pressed="true"]{
  background:var(--pronto-mpesa);border-color:var(--pronto-mpesa);color:#fff;
  box-shadow:0 3px 10px #e6000026;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="emola"][aria-pressed="true"],
.shop-methods button[data-shop-method="emola"][aria-pressed="true"]{
  background:var(--pronto-emola);border-color:var(--pronto-emola);color:var(--pronto-emola-ink);
  box-shadow:0 3px 10px #ee7a232b;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="cash"][aria-pressed="true"],
.shop-methods button[data-shop-method="cash"][aria-pressed="true"]{
  background:var(--pronto-action-blue);border-color:var(--pronto-action-blue);color:#fff;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="transfer"][aria-pressed="true"],
.shop-methods button[data-shop-method="transfer"][aria-pressed="true"]{
  background:#354a96;border-color:#354a96;color:#fff;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="bank"][aria-pressed="true"],
.shop-methods button[data-shop-method="bank"][aria-pressed="true"]{
  background:#155a46;border-color:#155a46;color:#fff;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="mixed"][aria-pressed="true"],
.shop-methods button[data-shop-method="mixed"][aria-pressed="true"]{
  background:var(--pronto-action-purple);border-color:var(--pronto-action-purple);color:#fff;
}
.checkout-payment-choice .cashier-payment[data-quick-payment="credit"][aria-pressed="true"]{
  background:#905815;border-color:#905815;color:#fff;
}

/* High-risk buttons: stop, cancel, delete, discard, suspend. */
.shop-shell :is(
 button[data-shop-hold-delete],
 button[data-transfer-cancel],
 button[data-staff-suspend],
 button[data-staff-access-mode="block"],
 button[data-shop-discard],
 button[data-shop-draft-clear],
 button[data-finance-discard],
 button[data-transfer-clear],
 button[data-branch-toggle][data-branch-active="true"]
){
  background:var(--pronto-danger-soft);color:var(--pronto-danger);
  border:1px solid #e5a5ac;
}
.shop-shell :is(
 button[data-shop-hold-delete],
 button[data-transfer-cancel],
 button[data-staff-suspend],
 button[data-staff-access-mode="block"]
){
  background:var(--pronto-danger);color:#fff;border-color:var(--pronto-danger);
}
.shop-shell :is(button[data-shop-hold-delete],button[data-transfer-cancel],button[data-staff-suspend],button[data-staff-access-mode="block"]):hover:not(:disabled){
  background:var(--pronto-danger-hover);border-color:var(--pronto-danger-hover);color:#fff;
}
.shop-shell button[data-branch-toggle][data-branch-active="true"]:hover:not(:disabled),
.shop-shell :is(button[data-shop-draft-clear],button[data-finance-discard],button[data-transfer-clear],button[data-shop-discard]):hover:not(:disabled){
  background:#ffe1e5;color:var(--pronto-danger-hover);
}

/* Remove an item and clear a basket are reversible editing actions: outlined red. */
#clear-cart,.cart-row button.remove,.shop-cart-qty button.shop-clear-row{
  background:var(--pronto-danger-soft);color:var(--pronto-danger);
  border:1px solid #e9aeb6;border-radius:8px;
}
#clear-cart:hover:not(:disabled),.cart-row button.remove:hover:not(:disabled),
.shop-cart-qty button.shop-clear-row:hover:not(:disabled){
  background:#ffe0e4;color:var(--pronto-danger-hover);
}

/* Legacy catalogue/user deactivation: red only for deactivation, never reactivation. */
.catalog-buttons button[data-pronto-action="deactivate"]{
  background:var(--pronto-danger-soft);color:var(--pronto-danger);
  border:1px solid #e9aeb6;border-radius:9px;padding:8px 11px;
}
.catalog-buttons button[data-pronto-action="deactivate"]:hover:not(:disabled){
  background:#ffe0e4;color:var(--pronto-danger-hover);
}
dialog button#confirm-management[data-pronto-action="deactivate"]{
  background:var(--pronto-danger);color:#fff;border-color:var(--pronto-danger);
}

/* Neutral/informational actions and staff authorisation retain a distinct meaning. */
.shop-shell button[data-shop-refresh],
.shop-shell :is(button[data-shop-hold-resume],button[data-staff-access-mode="auto"]){
  background:#edf5fd;color:var(--pronto-action-blue);border:1px solid #b9d2e6;
}
.shop-shell :is(button[data-staff-reactivate],button[data-staff-access-mode="allow"]){
  background:#e9f7ee;color:#0b7650;border:1px solid #a9dcc6;
}

/* Merchant code reader: visible on mobile beside the product search. */
.shop-search-control{display:flex;align-items:stretch;gap:8px;min-width:0}
.shop-search-control #shop-search{flex:1;min-width:0;width:0;margin:0}
.shop-search .shop-scan-launch{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:49px;padding:0 15px;border-radius:11px;border:1px solid #07916e;background:#087f69;color:#fff;font-weight:750;font-size:13px;box-shadow:0 5px 13px #087f6924;cursor:pointer}
.shop-scan-launch svg{width:24px;height:24px;flex:none}
.shop-scan-launch:focus-visible{outline:3px solid #52d6ab;outline-offset:2px}
@media(max-width:460px){.shop-search .shop-scan-launch{padding:0 11px;min-width:54px;min-height:52px}.shop-scan-launch span{font-size:11px}.shop-search-control #shop-search{font-size:16px}}
.shop-scan-dialog{position:fixed;inset:0;box-sizing:border-box;max-width:min(480px,calc(100vw - 24px));width:100%;max-height:calc(100dvh - 32px);margin:auto;border:1px solid #b2dcca;border-radius:21px;background:#f9fffc;color:#20423a;padding:18px;box-shadow:0 18px 80px #012d2666;overflow:auto}
.shop-scan-dialog::backdrop{background:#011a18c9}
.shop-scan-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.shop-scan-heading h2{font-size:21px;margin:3px 0 0;color:#084c3b}
.shop-scan-heading small{font-weight:750;color:#087f69;letter-spacing:.06em;font-size:10px}
.shop-scan-heading [data-shop-scan-close]{flex:none;border:1px solid #bed9ce;border-radius:12px;background:#fff;width:44px;height:44px;font-size:20px;cursor:pointer}
.shop-scan-help{color:#566c64;font-size:13px;line-height:1.5}
.shop-scan-video-wrap{position:relative;background:#113b32;border-radius:13px;overflow:hidden;min-height:175px;display:grid;place-items:center}
.shop-scan-video-wrap video{display:block;width:100%;max-height:48dvh;aspect-ratio:4/3;object-fit:cover}
.shop-scan-video-wrap video[hidden]{display:none}
.shop-scan-target{position:absolute;inset:18% 12%;border:2px solid #7bffd2;border-radius:14px;box-shadow:0 0 0 999px #02120c21;pointer-events:none}
.shop-scan-status{font-size:12px;line-height:1.5;background:#e8f5ef;border-radius:10px;padding:11px;color:#1c6653;min-height:22px}
.shop-scan-status[data-state="error"]{color:#974114;background:#fff0e1}
.shop-scan-dialog form{display:grid;gap:9px;margin-top:15px}
.shop-scan-dialog form label{font-size:12px;font-weight:700}
.shop-scan-manual-row{display:flex;gap:8px;min-width:0}
.shop-scan-manual-row input{min-width:0;flex:1;width:0;padding:12px;border-radius:10px;border:1px solid #bdd9cf;font-size:16px}
.shop-scan-manual-row button{min-height:46px;background:#087f69;border:0;color:#fff;border-radius:10px;padding:0 13px;font-weight:750}
@media(max-width:420px){.shop-scan-dialog{padding:14px}.shop-scan-heading h2{font-size:18px}}

/* Sales by amount: keep the money field beside the existing quantity controls. */
.sale-value-toggle{display:block;margin-top:7px;border:1px solid #b7dfcc;border-radius:8px;background:#eef9f3;color:#116b4b;font-size:11px;font-weight:750;padding:6px 9px;text-align:left;cursor:pointer}
.sale-value-toggle[aria-pressed="true"]{background:#137d5d;color:#fff;border-color:#137d5d}
.sale-value-equivalent{display:block;margin-top:6px;font-size:11px;color:#116b4b;font-weight:700}
.sale-value-label{display:grid;gap:4px;margin:0;font-size:11px;font-weight:750;color:#116b4b;min-width:98px}
.sale-value-label input{margin:0;width:100px;max-width:125px;height:40px;min-height:40px;padding:6px;text-align:right;font-size:15px;border:2px solid #137d5d}
.shop-cart-row .sale-value-toggle{width:max-content;max-width:100%}
.shop-cart-row .sale-value-label input{width:100px;max-width:125px;height:37px}
.fractional-control{display:flex;align-items:center;gap:10px;background:#f1faf4;border:1px solid #cfebd6;padding:12px;border-radius:10px;font-size:13px;font-weight:650;line-height:1.4}
.fractional-control input[type="checkbox"]{width:20px;height:20px;min-height:20px;flex-shrink:0;margin:0;accent-color:#13845d}
@media(max-width:480px){.cart-row .sale-value-label{min-width:90px}.cart-row .sale-value-label input{width:92px}.shop-cart-row .sale-value-label input{width:105px}}
