.iti{width:100%;--iti-border-color:#d7ded5;--iti-spacer-horizontal:10px}.iti input.iti__tel-input{margin-top:0!important;width:100%;height:50px}.iti__country-container button{min-height:0;margin:0;border:0;border-radius:0;background:transparent;width:auto;font-size:14px}.iti__dropdown-content{z-index:50;border-radius:12px;max-width:min(350px,calc(100vw - 64px));text-align:left;font-weight:400}.iti__country-list{max-height:220px}.iti__search-input{min-height:40px;font-size:16px}#phoneForm label .iti{margin-top:8px}#whatsappRecipient{margin:17px 0}#whatsappRecipient>label{margin:0 0 8px}#receiptDialog{overflow:visible}@media(max-width:800px){#receiptDialog{max-height:90dvh;overflow:auto}.iti__dropdown-content{position:relative}.iti__country-list{max-height:190px}}
.payment-options{border:0;padding:0;margin:20px 0;display:grid;gap:10px}.payment-choice{display:flex;align-items:center;gap:12px;padding:16px;margin:0;border:1px solid #d7ded5;border-radius:13px;cursor:pointer;font-size:16px}.payment-choice:has(input:checked){border-color:#174f46;background:#eff5ec;color:#174f46}.payment-choice input{margin:0;width:20px;height:20px;min-height:0;accent-color:#174f46}.payment-choice span{overflow-wrap:anywhere;min-width:0}
.bottom-nav,.mobile-checkout{display:none}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #99b89c;outline-offset:3px}.scanner-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.scanner-heading h2{margin:8px 0 20px}.scanner-heading button{align-self:flex-start;min-width:44px;min-height:44px}.camera-frame{position:relative;overflow:hidden;background:#102d28;border-radius:16px;aspect-ratio:3/4}.camera-frame video{width:100%;height:100%;object-fit:cover}.scan-guide{position:absolute;inset:32% 9%;border:3px solid #d9f4dc;border-radius:16px;box-shadow:0 0 0 100vmax #0004;pointer-events:none}#scanStatus{text-align:center}#scannerDialog{overflow:hidden}.dialog-notice{color:#9a4b2a;background:#fff4dd;padding:12px;border-radius:9px}
:root{font-family:'DM Sans',sans-serif;color:#213a35;background:#f4f5ef;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dfe5dc;padding:22px 4vw;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:inherit;font-size:23px}.brand>span{display:grid;place-items:center;background:#174f46;color:white;width:47px;height:47px;border-radius:14px;font-family:serif}.brand small{display:block;font-size:11px;color:#7c8981;margin-top:4px}nav{display:flex;flex-wrap:wrap;gap:5px}h1{font:500 39px/1.2 'Playfair Display',Georgia,serif;margin:12px 0 24px}h2{font-size:20px;margin-top:0}h3{font-size:18px}p{line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#7a8f74}.muted,small{color:#78847d;font-size:13px}main{max-width:1280px;margin:38px auto;padding:0 30px}.card{background:white;border:1px solid #dfe5dc;border-radius:18px;padding:28px;box-shadow:0 4px 20px #173b3010}.login{max-width:490px;margin:60px auto}.login h1{font-size:48px}.login small{display:block;margin-top:26px}label{display:block;font-size:13px;font-weight:600;margin:17px 0}input,select,textarea{display:block;font:inherit;width:100%;padding:14px;border:1px solid #d7ded5;border-radius:9px;margin-top:8px;background:#fafbf8;color:inherit}button{font:600 13px 'DM Sans',sans-serif;cursor:pointer;border:1px solid #d7ded5;background:#fff;color:#21463d;padding:12px 16px;border-radius:9px;margin:3px 0}button:hover{background:#eff3ec}button:disabled{opacity:.5;cursor:wait}.primary{background:#174f46;color:white;border-color:#174f46}.primary:hover{background:#23695c}.wide{width:100%}.page-heading,.row{display:flex;align-items:center;gap:12px}.page-heading,.between{justify-content:space-between}.pill{border:1px solid #d7ded5;padding:10px 18px;border-radius:30px;font-size:12px}.sale-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:25px}.empty-art{text-align:center;padding:65px 15px;color:#91a08f}.empty-art>span{font-size:55px}.total{border-top:1px dashed #ced8ca;margin-top:25px;padding-top:24px;display:flex;justify-content:space-between;align-items:center}.total strong{font-size:28px}.cart-item{padding:18px 0;border-bottom:1px solid #edf0e8;display:flex;justify-content:space-between;gap:12px}.qty{display:flex;align-items:center;gap:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}dialog{border:0;border-radius:18px;padding:30px;max-width:550px;width:calc(100% - 32px);color:inherit;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#102d2866}video{width:100%;border-radius:12px}#notice{max-width:1220px;margin:12px auto;padding:0 20px;color:#9a4b2a}#notice:not(:empty){padding:14px 20px;background:#fff4dd;border-radius:10px}.receipt-row{margin-bottom:14px}.receipt-row .row{flex-wrap:wrap}.badge{font-size:12px;padding:6px 10px;background:#edf3e8;border-radius:15px}footer{text-align:center;font-size:12px;color:#94a08f;padding:30px}[hidden]{display:none!important}@media(max-width:800px){header{align-items:flex-start;flex-direction:column}main{padding:0 15px;margin:25px auto}.sale-grid,.settings-grid{grid-template-columns:1fr}.empty-art{padding:20px}.card{padding:22px}h1{font-size:32px}.row{flex-wrap:wrap}nav button{padding:9px 11px}}@media print{body>*{display:none}#receiptDialog{display:block;position:static;width:100%;max-width:none;box-shadow:none}#receiptDialog button,#sendForm{display:none}}
@media screen and (max-width:800px){
 :root{font-size:15px}body{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));min-height:100dvh}body[data-view="sale"].authenticated{padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))}header{position:sticky;top:0;z-index:20;flex-direction:row;align-items:center;padding:12px 18px;padding-top:calc(12px + env(safe-area-inset-top,0px));background:#fdfefbf2;backdrop-filter:blur(15px)}.brand{font-size:21px;gap:10px}.brand>span{width:40px;height:40px;border-radius:12px}.brand small{font-size:10px}#nav{display:none}main{margin:22px auto;padding:0 14px;max-width:600px}.page-heading{gap:10px}.page-heading h1{font-size:30px;margin:7px 0 20px}.page-heading .eyebrow{font-size:10px}.pill{font-size:11px;padding:8px 12px}.sale-grid{display:flex;flex-direction:column;gap:14px}.card{border-radius:16px;padding:20px;box-shadow:0 3px 16px #173b3008}.sale-grid>.card{padding:18px 20px}.sale-grid>.card h2{font-size:17px;margin-bottom:7px}.sale-grid>.card>p{margin:0 0 12px}.empty-art{display:none}#skuForm label{margin:10px 0}input,select,textarea{font-size:16px;min-height:48px;border-radius:12px}button{min-height:44px;font-size:14px;border-radius:12px}.row{gap:8px}#skuForm .row{display:grid;grid-template-columns:1fr}#scan{display:none}.basket h2{font-size:19px;margin:0}.basket #clear{font-size:12px;padding:8px 12px}.cart-item{padding:17px 0;gap:8px}.cart-item>div{min-width:0;flex:1}.cart-item strong{overflow-wrap:anywhere}.cart-item>strong{white-space:nowrap;font-size:15px}.cart-item p{margin:6px 0 10px;font-size:12px}.qty{gap:7px;flex-wrap:wrap}.qty button{min-width:44px;padding:8px 11px}.qty button[data-remove]{font-size:12px}.qty span{min-width:20px;text-align:center}.total{margin-top:18px;padding-top:18px}.total strong{font-size:27px}#checkout{display:none}.basket>p.muted{font-size:12px;margin-bottom:0}.bottom-nav{display:flex;align-items:center;justify-content:space-around;position:fixed;z-index:30;left:0;right:0;bottom:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));height:calc(78px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dce4d7;box-shadow:0 -5px 24px #153c3110;gap:0;isolation:isolate}.bottom-nav button{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:10px;color:#859087;background:transparent;font-size:10px;padding:6px 2px;margin:0;min-height:60px}.bottom-nav button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button[aria-current="page"]{color:#174f46;background:#eff4ec}.bottom-nav .scan-tab{color:#174f46;font-weight:700;gap:3px;position:relative;overflow:visible}.scan-circle{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin-top:-26px;background:#174f46;color:#fff;border:5px solid #f4f5ef;border-radius:20px;box-shadow:0 5px 15px #174f4630}.bottom-nav .scan-circle svg{width:27px;height:27px}.mobile-checkout{position:fixed;z-index:25;bottom:calc(78px + env(safe-area-inset-bottom,0px));left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 20px 17px;background:#f4f5eff5;backdrop-filter:blur(12px);border-top:1px solid #dfe5dc}.mobile-checkout small{display:block;font-size:11px;margin-bottom:3px}.mobile-checkout strong{font-size:25px;letter-spacing:-.5px}.mobile-checkout button{min-width:145px;min-height:48px}.settings-grid{grid-template-columns:1fr;gap:14px}.settings-grid button{width:100%}.receipt-row{padding:17px;overflow-wrap:anywhere}.receipt-row .row{display:grid;grid-template-columns:1fr auto;align-items:start}.receipt-row .row>div{grid-column:1/-1}.receipt-row .row>button{grid-column:1/-1;width:100%}.receipt-row .badge{font-size:10px;text-align:right;max-width:200px}.login{margin:35px auto;padding:28px 24px}.login h1{font-size:42px}.login form button{width:100%}.login p{font-size:14px}.login input{font-size:17px}dialog{max-height:90dvh;overflow:auto;padding:24px 20px;border-radius:22px;width:calc(100% - 20px);margin:auto}dialog button{width:100%;margin:5px 0}dialog .scanner-heading button{width:44px}#scannerDialog{padding:20px 16px;max-width:480px}.camera-frame{aspect-ratio:4/5;max-height:58dvh}.scan-guide{inset:33% 8%}#notice{margin:10px 14px;font-size:13px;overflow-wrap:anywhere}#notice:empty{display:none}footer{padding:22px 14px 12px;font-size:11px}body:not(.authenticated){padding-bottom:20px}body.authenticated footer{display:none}
}
@media screen and (max-width:800px){.page-heading .pill{white-space:nowrap;flex-shrink:0}input[type="number"]{appearance:textfield}#cashReceived{font-size:24px}}
@media screen and (max-width:360px){main{padding:0 10px}.card{padding:16px}.bottom-nav button{font-size:9px}.mobile-checkout{padding-left:14px;padding-right:14px}.mobile-checkout button{min-width:125px}.mobile-checkout strong{font-size:23px}}
@media print{.bottom-nav,.mobile-checkout{display:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.header-sku{display:none;align-items:center;gap:6px;min-width:0}.authenticated[data-view="sale"] .header-sku{display:flex}.header-sku input{width:200px;min-width:0;margin:0;padding:10px 12px;height:44px}.header-sku button{height:44px;min-width:44px;margin:0;padding:10px}.sku-load svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-grid{grid-template-columns:1fr}.sale-grid .basket{max-width:760px;width:100%;margin:0 auto}
@media screen and (max-width:800px){body.authenticated[data-view="sale"] header{gap:10px;padding-left:14px;padding-right:14px}.authenticated[data-view="sale"] header .brand{flex-shrink:0;font-size:17px;gap:7px}.authenticated[data-view="sale"] header .brand>span{width:32px;height:32px;border-radius:10px}.authenticated[data-view="sale"] header .brand small{display:none}.header-sku{flex:1;justify-content:flex-end}.header-sku input{width:100%;height:44px;min-height:44px;font-size:16px;padding:9px 10px}.header-sku .sku-load{flex-shrink:0;width:44px;border-radius:11px}.sale-grid .basket{max-width:none}.page-heading h1{font-size:27px;margin-bottom:16px}}
@media screen and (max-width:360px){.authenticated[data-view="sale"] header .brand>span{display:none}.authenticated[data-view="sale"] header .brand{font-size:16px}.header-sku{gap:5px}}
.cart-toolbar{display:flex;justify-content:flex-end;margin:0 0 5px}.cart-toolbar button{font-size:12px;padding:8px 12px;background:transparent}.authenticated[data-view="sale"] main{margin-top:12px}#sale{max-width:760px;margin:0 auto}#sale .cart-item{padding:18px 4px;border-bottom:1px solid #dce4d7}#sale #cart>p{margin:24px 4px;text-align:center}.mobile-checkout{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:25;justify-content:space-between;align-items:center;gap:14px;padding:14px max(20px,calc((100vw - 760px)/2));background:#f4f5eff5;border-top:1px solid #dfe5dc;backdrop-filter:blur(12px)}.mobile-checkout small{display:block;font-size:11px;margin-bottom:4px}.mobile-checkout strong{font-size:25px}.mobile-checkout button{min-width:145px;min-height:48px}body.authenticated[data-view="sale"]{padding-bottom:100px}
@media screen and (max-width:800px){.mobile-checkout{bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:12px 20px 17px}body.authenticated[data-view="sale"]{padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))}.authenticated[data-view="sale"] main{margin-top:8px}#sale .cart-item{padding:16px 2px}}
@media print{.mobile-checkout{display:none!important}}
.pdf-download{display:block;text-align:center;margin:12px 0;padding:14px;border-radius:12px;background:#174f46;color:white;text-decoration:none;font-weight:600}

.settings-menu{display:grid;gap:12px}.settings-menu button{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;padding:20px;font-size:16px;background:white}.back-settings{margin-bottom:14px}section[id^="setting"]>.card{max-width:680px}.report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.report-metrics>div{padding:20px;border-radius:15px;background:#fff;border:1px solid #dfe5dc}.report-metrics small{display:block}.report-metrics strong{display:block;font-size:25px;margin-top:8px}#reportContent>.card{margin-bottom:18px}.report-chart svg{display:block;width:100%;height:auto}.report-chart text{font-size:11px;fill:#68796d;font-family:Arial,sans-serif}.report-table{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:12px 7px;border-bottom:1px solid #e5ebe0;text-align:left}th:last-child,td:last-child{text-align:right}td:first-child{overflow-wrap:anywhere}summary{cursor:pointer;font-weight:600;padding:8px 0}.report-warning{padding:15px;background:#fff4dd;border-radius:12px}.bottom-nav button#bottomAccount{font-size:10px}
@media(max-width:800px){.report-metrics{grid-template-columns:1fr 1fr;gap:10px}.report-metrics>div{padding:16px}.report-metrics strong{font-size:23px}#report>.row{align-items:center}#report>.row h1{margin:0}#report>.row label{margin:0;font-size:11px}#reportPeriod{font-size:14px;padding:10px;min-height:42px}.report-chart{padding:18px 10px}.settings-menu button{min-height:65px}section[id^="setting"] h1{font-size:28px}}

#notice:not(:empty),.dialog-notice:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px}.notice-close{flex:none;min-width:44px;min-height:44px;padding:0;font-size:25px;line-height:1;background:transparent;border:0;color:inherit;margin:0}

/* Phone input: reserve a separate column for the country selector. */
.iti{display:flex;align-items:stretch;width:100%;min-width:0;border:1px solid #d7ded5;border-radius:12px;background:#fafbf8;--iti-dialcode-color:#21463d;--iti-hover-color:#eff3ec}
.iti:focus-within{border-color:#174f46;box-shadow:0 0 0 2px #174f4620}
.iti .iti__country-container{position:static;flex:0 0 auto;max-width:45%;padding:0;border-right:1px solid #d7ded5}
.iti .iti__country-container .iti__selected-country{width:auto!important;min-width:0;min-height:50px;height:100%;margin:0!important;padding:0!important;border:0;border-radius:11px 0 0 11px;background:#eff3ec;font-family:inherit;font-size:14px;font-weight:500;line-height:1;color:#21463d}
.iti .iti__selected-country-primary{padding:0 8px 0 10px}
.iti .iti__selected-dial-code{margin:0;padding:0 10px 0 4px;white-space:nowrap}
.iti input.iti__tel-input[type=tel]{flex:1 1 0;width:0;min-width:0;max-width:100%;height:50px;margin:0!important;padding:12px!important;border:0;border-radius:0 11px 11px 0;background:transparent;font-size:16px;line-height:24px;color:#213a35;box-shadow:none}
.iti input.iti__tel-input:focus{outline:none}
.iti .iti__dropdown-content{position:absolute;top:calc(100% + 5px);left:0;right:0;width:100%!important;max-width:100%;border:1px solid #d7ded5;background:white;box-shadow:0 8px 25px #173b3020;z-index:60}
.iti .iti__search-input{margin:0!important;padding:12px!important;border-radius:11px 11px 0 0;font-size:16px}

/* Mobile app shell: content scrolls, navigation stays in the last viewport row. */
[hidden]{display:none!important}
@media screen and (max-width:800px){
 body.authenticated{height:100vh;height:100dvh;min-height:0!important;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;padding-bottom:0!important}
 body.authenticated>header{grid-row:1;position:relative;top:auto}
 body.authenticated>#notice{grid-row:2;min-width:0}
 body.authenticated>main{grid-row:3;min-height:0;width:100%;max-width:600px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;margin:0 auto!important;padding-top:14px;padding-bottom:20px}
 body.authenticated>#mobileCheckout{grid-row:4;position:relative!important;inset:auto!important;padding:12px 20px 17px}
 body.authenticated>#bottomNav{grid-row:5;position:relative!important;inset:auto!important;z-index:30;box-sizing:border-box;width:100%;height:calc(78px + env(safe-area-inset-bottom,0px));padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));background:#fff;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-around;margin:0}
 body.authenticated>footer{display:none}
}

/* Installed iPhone apps need the full viewport; dvh can omit the safe area. */
@media screen and (max-width:800px) and (display-mode:standalone){body.authenticated{height:100vh!important}}
@media screen and (max-width:800px){html{background:#fff}body.authenticated{overscroll-behavior:none}body.authenticated>#bottomNav{flex-shrink:0}}
/* Stable mobile scale, including focused inputs and report filters. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
@media(max-width:800px){input,select,textarea{font-size:16px!important}#cashReceived{font-size:24px!important}}

.qty .delete-item{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;color:#a53e3e}.delete-item svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
