/* styles.css */
:root{--navy:#082440;--navy2:#0d3154;--gold:#f6bd21;--green:#167a55;--ink:#12243b;--muted:#667085;--line:#d7dde5;--paper:#fff;--wash:#f3f6f9;--danger:#b42318;--radius:14px;font-family:Georgia,"Times New Roman",serif;color:var(--ink);background:var(--wash)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--wash)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.shell{min-height:100vh}.topbar{height:76px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20}.brand{color:var(--gold);font-size:1.55rem;font-weight:800;letter-spacing:.02em}.top-user{text-align:right;font-weight:700}.layout{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 76px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:18px 12px}.nav-btn{width:100%;border:1px solid var(--line);background:#fff;color:var(--ink);padding:14px 16px;margin-bottom:9px;text-align:left;border-radius:9px;font-weight:700}.nav-btn.active{border-color:#168ff0;background:#e9f5ff}.nav-btn[disabled]{opacity:.48;cursor:not-allowed}.content{padding:28px;min-width:0}.page-title{font-size:2rem;margin:0 0 20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 3px 14px rgba(8,36,64,.05)}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.stat{border-top:5px solid var(--green);min-height:128px;text-align:center}.stat small{font-size:1rem}.stat strong{display:block;font-size:1.6rem;margin-top:16px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.input,select{border:1px solid #b9c1cc;border-radius:8px;padding:12px 14px;background:#fff;min-height:46px}.input{width:100%}.search{flex:1;min-width:220px}.btn{border:0;border-radius:8px;padding:12px 18px;background:var(--green);color:#fff;font-weight:800}.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.danger{background:var(--danger)}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:720px}th{background:var(--navy);color:#fff;text-align:left}th,td{padding:13px;border-bottom:1px solid var(--line)}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.auth-hero{background:linear-gradient(145deg,var(--navy),#07182a);color:#fff;padding:10vw 8vw}.auth-hero h1{color:var(--gold);font-size:3rem;margin:0 0 18px}.auth-hero p{font-size:1.2rem;line-height:1.6;max-width:560px}.auth-panel{background:#fff;padding:8vw;display:flex;align-items:center}.auth-box{width:100%;max-width:520px}.auth-box h2{font-size:2rem;margin:0 0 8px}.field{margin:14px 0}.field label{display:block;font-weight:700;margin-bottom:7px}.auth-tabs{display:flex;gap:8px;margin:20px 0}.auth-tabs button{flex:1}.notice{padding:12px 14px;border-radius:8px;background:#fff4d5;border-left:5px solid var(--gold);margin:14px 0}.error{color:var(--danger)}.empty{text-align:center;padding:48px 18px;color:var(--muted)}.toast{position:fixed;right:18px;bottom:18px;background:var(--navy);color:#fff;padding:14px 18px;border-radius:10px;display:none;z-index:50}.onboard{max-width:720px;margin:40px auto}.mobilebar{display:none}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.product{background:#fff;border:2px solid #26323e;border-radius:8px;padding:16px;text-align:center;min-height:132px}.product strong{display:block;font-size:1.05rem}.product span{display:block;margin-top:18px;font-weight:700}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f7f0;color:#126142;font-size:.86rem;font-weight:700}@media(max-width:900px){.topbar{height:auto;min-height:84px;padding:14px 18px}.brand{font-size:1.25rem;max-width:58%}.layout{display:block;padding-bottom:76px}.sidebar{display:none}.content{padding:18px 14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:112px}.mobilebar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;background:var(--navy);z-index:30;padding:8px 4px calc(8px + env(safe-area-inset-bottom))}.mobilebar button{border:0;background:transparent;color:#fff;padding:7px 2px;font-size:.82rem}.auth-page{display:block}.auth-hero{padding:48px 24px}.auth-hero h1{font-size:2.2rem}.auth-panel{padding:32px 20px}.page-title{font-size:1.65rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:470px){.stats{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.product{padding:12px 8px;min-height:120px}.toolbar>*{width:100%}}

.offline-check-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #e4e9eb}.offline-check-row small{display:block;margin-top:4px;color:#526371;line-height:1.4}.offline-check-dot{flex:0 0 26px;height:26px;border-radius:50%;background:#fff1d4;color:#996800;display:grid;place-items:center}.offline-check-dot.ready{background:#e1f3e9;color:#086b48}#offline-checklist{margin:18px 0}.sync-centre{max-height:88dvh;overflow-y:auto}
.history-import-card{margin:16px 0 20px;border-top:5px solid var(--gold);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:22px;align-items:start}.history-import-card h2{margin:0 0 8px}.history-import-card p{color:var(--muted);line-height:1.5}.history-import-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.history-recent{border-left:1px solid var(--line);padding-left:20px;min-width:0}.history-recent strong{display:block;margin:4px 0 10px}.history-recent ul{list-style:none;padding:0;margin:0}.history-recent li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:.92rem}.history-recent li span{overflow-wrap:anywhere}.history-recent li b{white-space:nowrap}.history-import-errors{background:#fff4f2;border:1px solid #f2b8b5;border-radius:10px;padding:14px;margin:14px 0}.history-import-errors ul{margin:10px 0 0;padding-left:22px}.history-import-errors li{margin:7px 0}.history-import-card button{min-height:46px}
@media(max-width:720px){.history-import-card{grid-template-columns:1fr}.history-recent{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.history-recent li{align-items:flex-start;flex-direction:column;gap:4px}}
.difference-shortfall{color:var(--danger)!important}.difference-surplus{color:var(--green)!important}


.held-receipt-list{display:grid;gap:.65rem}.held-receipt-row{display:flex;align-items:center;gap:.65rem;padding:.7rem 0;border-bottom:1px solid var(--line,#dce3ea)}.held-receipt-row>div{display:grid;gap:.2rem;flex:1}.held-receipt-row small{color:var(--muted,#64748b)}.receipt-new-product{margin:1rem 0;padding:1rem;border:1px solid var(--line,#dce3ea);border-radius:12px}.receipt-new-product summary{cursor:pointer;font-weight:700}.receipt-new-product form{margin-top:1rem}.receipt-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}

/* quotations.css */
.quotation-actions{display:flex;gap:.35rem;flex-wrap:wrap;min-width:260px}
.quotation-stats{margin:1rem 0}
.quotation-dialog{width:min(760px,94vw);max-height:92vh;overflow:auto}
.quotation-dialog textarea{min-height:80px;resize:vertical}
.quotation-terms{margin-top:1rem;padding:1rem;border:1px solid #d8dee8;border-radius:8px}
.quotation-terms p{white-space:pre-wrap}
.quotation-pending_approval{background:#fff0c2;color:#775400}
.quotation-approved,.quotation-accepted{background:#dff5e8;color:#12633b}
.quotation-sent{background:#e7efff;color:#234f99}
.quotation-converted{background:#d8f3e7;color:#075c3c}
.quotation-cancelled,.quotation-expired{background:#f1e5e5;color:#7b2929}
@media(max-width:720px){.quotation-actions{min-width:190px}.quotation-dialog .form-grid{grid-template-columns:1fr}.quotation-dialog .span-2{grid-column:auto}.quotation-report table{min-width:980px}}

/* operations.css */
.operations-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.operations-tabs button.active{background:var(--navy);color:#fff}.operation-layout{display:grid;grid-template-columns:minmax(300px,430px) 1fr;gap:1rem}.operation-line{display:grid;grid-template-columns:1fr 90px 110px;gap:.5rem;align-items:end;margin:.5rem 0}.operation-line .field{margin:0}.operation-total{font-size:1.25rem;font-weight:800;text-align:right;margin:1rem 0}.operation-status{font-weight:700;text-transform:capitalize}.return-items label{display:grid;grid-template-columns:auto 1fr 90px;gap:.65rem;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--line)}@media(max-width:850px){.operation-layout{grid-template-columns:1fr}.operation-line{grid-template-columns:1fr 82px 100px}.operations-tabs button{flex:1}}

/* features.css */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.page-head .page-title{margin:0}.page-search{margin-bottom:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-bottom:18px}.span-2{grid-column:1/-1}.small-btn{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 12px;color:var(--ink)}.danger-text{color:var(--danger)}.check{display:flex;align-items:center;gap:8px;padding:10px 4px;font-weight:700}.check input{width:20px;height:20px}.permissions{border:1px solid var(--line);border-radius:10px;margin:12px 0;padding:10px 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px}.permissions legend{font-weight:800;padding:0 8px}td small,.cart-line small{display:block;color:var(--muted);margin-top:4px}.low-row{background:#fff8e8}.pill.warn{background:#fff0ca;color:#8a5200}.sales-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.cart{position:sticky;top:94px;align-self:start}.cart h2{margin-top:0;color:var(--navy);text-transform:uppercase}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.qty{display:flex;align-items:center;gap:8px}.qty button{width:32px;height:32px;border:1px solid var(--line);background:#fff;border-radius:6px}.cart-total{font-size:1.45rem;font-weight:800;margin:18px 0}.sold-out{opacity:.5}.mobile-menu{display:none}.text-button{border:0;background:transparent;color:var(--green);text-decoration:underline;padding:12px;font-weight:700}@media(max-width:900px){.sales-layout{display:block}.cart{position:static;margin-top:18px}.mobile-menu{display:block;position:fixed;inset:84px 10px 76px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;overflow:auto;z-index:29;box-shadow:0 12px 40px rgba(0,0,0,.2)}.mobile-menu.hidden{display:none}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.permissions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.page-head{align-items:stretch;flex-direction:column}.table-wrap table{min-width:760px}.cart-line{grid-template-columns:minmax(0,1fr) auto}.cart-line>strong{grid-column:2}.auth-tabs{align-items:stretch}.auth-tabs .btn{padding:12px 8px}.permissions{grid-template-columns:1fr}}
.closing-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0}.closing-summary .stat{padding:14px;border:1px solid #d7dde5;border-top:4px solid var(--green);border-radius:10px}.closing-summary small,.closing-summary strong{display:block}.closing-summary strong{margin-top:7px;color:var(--navy)}.reconciliation-preview{padding:14px;border-radius:9px;background:#eef5fb;color:var(--navy);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.reconciliation-preview div{padding:10px;background:#fff;border-radius:8px}.reconciliation-preview small,.reconciliation-preview strong{display:block}.reconciliation-preview strong{margin-top:6px}.inline-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.inline-filter .input{width:auto}.expense-total{margin:16px 0;border-top:5px solid var(--green)}.expense-total small,.expense-total strong{display:block}.expense-total strong{font-size:1.7rem;margin-top:8px;color:var(--navy)}@media(max-width:760px){.closing-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.reconciliation-preview{grid-template-columns:1fr}}@media(max-width:430px){.closing-summary{grid-template-columns:1fr}.inline-filter>*{width:100%!important}}
.report-section{margin-top:24px}.report-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.report-toolbar .input,.report-toolbar select{min-width:150px}.receipt-builder{margin-bottom:26px}.receipt-line-grid{display:grid;grid-template-columns:minmax(260px,2fr) minmax(120px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:end;margin:14px 0}.receipt-line-grid .field{margin:0}.accept-receipt{margin-top:16px}.receipt-builder tfoot th{border-top:2px solid var(--navy)}
@media(max-width:760px){.receipt-line-grid{grid-template-columns:1fr 1fr}.receipt-line-grid .field:first-child{grid-column:1/-1}.report-toolbar>*{flex:1 1 145px}}
@media(max-width:470px){.receipt-line-grid{grid-template-columns:1fr}.receipt-line-grid .field:first-child{grid-column:auto}.report-toolbar>*{width:100%;flex-basis:100%}}
.dashboard-money{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 26px}.dashboard-money .stat{min-height:132px;border-top:4px solid var(--green)}.dashboard-money .primary-stat{background:var(--navy);color:#fff;border-top-color:var(--gold)}.dashboard-money .primary-stat small,.dashboard-money .primary-stat strong,.dashboard-money .primary-stat span{color:#fff}.dashboard-money .expense-stat{border-top-color:#b86d00}.dashboard-money .net-stat{border-top-color:#15805d;background:#f0faf6}.dashboard-money .other-income-stat{border-top-color:#7863a5;background:#f7f4fb}.dashboard-money .stat span{display:block;margin-top:7px;color:var(--muted);font-size:.88rem}.dashboard-revenue-detail{margin:0 0 26px;padding:18px 20px}.dashboard-revenue-detail h3{margin:0 0 5px}.dashboard-revenue-detail>p{margin:0 0 12px;color:var(--muted)}.dashboard-revenue-line{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line,#dbe3ec)}.dashboard-revenue-line small{display:block;color:var(--muted);font-size:.85rem}.dashboard-revenue-total{font-weight:800;border-bottom:2px solid var(--navy)}.dashboard-net-line{font-weight:800;color:var(--green);border-bottom:0;padding-bottom:0}.dashboard-alert{width:100%;text-align:left;border:1px solid #e7c375;cursor:pointer}.success-notice{border-left-color:var(--green);background:#effaf5}.contact-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-limit{display:grid;gap:6px;margin-bottom:18px}.settings-limit span{display:block}.settings-limit b{font-size:1.2rem;color:var(--navy)}
.payment-editor{border-top:5px solid var(--gold);margin-bottom:20px}.payment-editor h2{margin:0}.payment-history{margin-top:24px}.supplier-balance-stat{font:inherit;text-align:left;cursor:pointer;width:100%;color:var(--ink)}.supplier-balance-stat:hover{border-color:var(--gold);transform:translateY(-1px)}
.account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}.account-summary .card{padding:16px;border-top:4px solid var(--gold)}.account-summary .cleared{border-top-color:var(--green)}.account-summary small,.account-summary strong,.account-summary span{display:block}.account-summary strong{font-size:1.45rem;color:var(--navy);margin:7px 0}.account-summary span{color:var(--muted)}.pill.paid{background:#e8f7f0;color:#126142}.action-dialog-backdrop{position:fixed;inset:0;background:rgba(3,16,29,.72);z-index:100;display:grid;place-items:center;padding:18px}.action-dialog{width:min(520px,100%);background:#fff;border-radius:14px;padding:24px;border-top:6px solid var(--gold);box-shadow:0 18px 60px rgba(0,0,0,.35)}.action-dialog h2{margin:0 0 10px;color:var(--navy)}.action-dialog p{margin:0 0 18px;color:var(--muted)}.action-dialog textarea{resize:vertical}.action-dialog .field small{display:block;color:var(--muted);margin-top:6px}.action-dialog-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.page-head p,#payment-balance-note,.payment-history>p,.account-summary .cleared span{display:none!important}
.credit-sale-fields{border:1px solid var(--gold);border-radius:10px;padding:10px 12px;margin:12px 0;background:#fff9e8}.credit-sale-fields .field{margin:8px 0}.credit-sale-fields select{width:100%}
@media(max-width:1000px){.dashboard-money{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-columns{grid-template-columns:1fr}}
@media(max-width:700px){.account-summary{grid-template-columns:1fr}}
@media(max-width:520px){.dashboard-money{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-money .stat{min-height:auto}.action-dialog-buttons{flex-direction:column-reverse}.action-dialog-buttons .btn{width:100%}}
@media print{.topbar,.sidebar,.mobilebar,.mobile-menu,.btn,.small-btn,.toolbar,.no-print,.no-report-print,.page-search{display:none!important}.layout,.content{display:block!important;margin:0!important;padding:0!important}.report-section{margin:0}.card,.table-wrap{box-shadow:none!important;border:0!important;overflow:visible!important}table{min-width:0!important;width:100%!important;font-size:10pt}body{background:#fff!important}.page-title{font-size:22pt}.report-table{display:block!important}}
.cart-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cart-head h2{margin:0}.cart-head button,.mobile-menu-head button{display:none;border:0;background:transparent;color:var(--navy);font-size:2rem;line-height:1;padding:6px}.mobile-cart-dock,.mobile-cart-backdrop{display:none}body:has(.cart.mobile-open){overflow:hidden}
@media(max-width:900px){
  .topbar{min-height:68px;padding:10px 14px}.brand{font-size:1.08rem;line-height:1.15}.top-user{font-size:.82rem;line-height:1.25}.top-user small{font-size:.74rem}
  .content{padding:14px 12px 150px}.page-title{font-size:1.45rem;margin-bottom:12px}
  .sales-layout{display:block}.sales-catalog .sales-toolbar{position:sticky;top:68px;z-index:12;background:var(--wash);padding:8px 0;margin-bottom:8px;display:grid;grid-template-columns:minmax(0,1fr) 42%;gap:8px}.sales-toolbar .search{min-width:0}.sales-toolbar .input,.sales-toolbar select{min-height:48px;padding:10px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product{min-height:108px;padding:12px 8px;border-width:1.5px}.product strong{font-size:.96rem;line-height:1.25}.product span{margin-top:12px;font-size:.86rem;line-height:1.25}
  .mobile-cart-dock{display:flex;position:fixed;left:12px;right:12px;bottom:76px;z-index:25;align-items:center;justify-content:space-between;border:0;border-radius:13px;background:var(--green);color:#fff;padding:11px 16px;box-shadow:0 8px 24px rgba(8,36,64,.28)}.mobile-cart-dock span,.mobile-cart-dock small{display:block;text-align:left}.mobile-cart-dock small{margin-top:2px;opacity:.9}.mobile-cart-dock strong{font-size:1.15rem}
  .cart{display:block;position:fixed;left:0;right:0;top:max(8px,env(safe-area-inset-top));height:calc(100dvh - max(8px,env(safe-area-inset-top)));z-index:42;margin:0;border-radius:18px 18px 0 0;padding:18px 18px calc(110px + env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;transform:translateY(105%);transition:transform .2s ease;box-shadow:0 -12px 36px rgba(8,36,64,.3)}.cart.mobile-open{transform:translateY(0)}.cart-head{position:sticky;top:-18px;background:#fff;padding:10px 0 12px;z-index:4;border-bottom:1px solid var(--line)}.cart-head button{display:block}.mobile-cart-backdrop.show{display:block;position:fixed;inset:0;z-index:41;border:0;background:rgba(3,16,29,.62)}.cart #checkout{padding-bottom:24px}.cart #checkout>button.btn{width:100%;min-height:52px;margin:7px 0}.cart #checkout>button.btn:not(.secondary){position:sticky;bottom:0;z-index:3;box-shadow:0 -8px 18px rgba(255,255,255,.94)}.qty button{width:40px;height:40px}
  .mobilebar{grid-template-columns:repeat(4,1fr);padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px rgba(8,36,64,.2)}.mobilebar button{min-height:48px;border-radius:8px;line-height:1.25}.mobilebar button.active{background:rgba(246,189,33,.18);color:var(--gold)}
  .mobile-menu{inset:68px 8px 72px;border-radius:16px;padding:0;overflow:auto}.mobile-menu-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:var(--gold);padding:14px 16px;z-index:2}.mobile-menu-head button{display:block;color:#fff}.mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.mobile-menu-grid .nav-btn{min-height:62px;margin:0;text-align:center;padding:10px}
}
@media(max-width:380px){.sales-catalog .sales-toolbar{grid-template-columns:1fr}.product strong{font-size:.9rem}.product span{font-size:.8rem}.mobile-menu-grid{grid-template-columns:1fr 1fr}.mobilebar button{font-size:.74rem}}
.network-status{position:absolute;left:50%;transform:translateX(-50%);bottom:5px;font:700 .72rem Arial,sans-serif;color:#8de0b6}.network-status.offline{color:#ffd278}.mobile-sale-tools{display:flex;gap:8px;overflow-x:auto;padding:3px 0 12px;scrollbar-width:none}.mobile-sale-tools button,.quick-pay button{flex:0 0 auto;min-height:44px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);padding:9px 13px;font-weight:800}.quick-pay{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px}.quick-pay button{padding:9px 4px}.quick-pay button.active{background:var(--green);border-color:var(--green);color:#fff}.customer-details{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:12px 0}.customer-details summary{cursor:pointer;font-weight:800;color:var(--navy);padding:4px 0}.scanner-overlay{position:fixed;inset:0;z-index:100;background:rgba(3,16,29,.9);display:grid;place-items:center;padding:18px}.scanner-overlay section{width:min(520px,100%);background:#fff;border-radius:16px;padding:16px;text-align:center}.scanner-overlay video{display:block;width:100%;max-height:60vh;object-fit:cover;border-radius:10px;background:#000}.scanner-overlay .btn{width:100%}@media(max-width:600px){.network-status{left:14px;transform:none}.mobile-sale-tools{margin-inline:-2px}.quick-pay{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pos-install{display:grid;gap:18px}.pos-install-hero{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;align-items:center;padding:28px}.pos-install-hero>img{width:180px;height:180px;border-radius:34px;box-shadow:0 12px 30px rgba(8,36,64,.22)}.pos-install-hero h2{margin:5px 0 10px;color:var(--navy);font-size:1.75rem}.install-device{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--green)}.install-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.install-status{min-height:1.4em;color:var(--green);font-weight:700}.install-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.install-benefits .card{border-top:4px solid var(--gold);padding:18px}.install-benefits strong,.install-benefits span{display:block}.install-benefits strong{color:var(--navy);font-size:1.08rem;margin-bottom:8px}.install-benefits span{color:var(--muted);line-height:1.45}.install-login{width:100%;margin-top:18px;min-height:56px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);font:800 1rem Georgia,serif;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer}.install-login img{width:38px;height:38px;border-radius:9px}.install-login:hover{border-color:var(--gold);background:#fffaf0}
@media(max-width:900px){.install-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.pos-install-hero{grid-template-columns:1fr;text-align:center;padding:20px}.pos-install-hero>img{width:132px;height:132px;margin:auto;border-radius:26px}.install-buttons{display:grid}.install-buttons .btn{width:100%;min-height:50px}.install-benefits{grid-template-columns:1fr}.pos-install{padding-bottom:70px}}

/* Keep long desktop navigation accessible within the viewport. */
@media screen and (min-width:901px){.sidebar{position:sticky;top:76px;height:calc(100vh - 76px);height:calc(100dvh - 76px);align-self:start;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}.sidebar .nav-btn{min-height:46px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}}

/* Desktop shell: two independent scroll areas beneath a fixed-height header. */
@media screen and (min-width:901px){
.shell{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.shell>.topbar{position:relative;flex:0 0 76px;height:76px}
.shell>.layout{flex:1 1 0;min-height:0;height:0;overflow:hidden;grid-template-columns:250px minmax(0,1fr)}
.shell>.layout>.sidebar{position:static;top:auto;height:100%;min-height:0;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#94a3b8 #f1f5f9}
.shell>.layout>.content{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.shell .sidebar:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
}

.pos-nav-heading{font:700 .72rem system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:16px 8px 9px}.pos-nav-group:first-child .pos-nav-heading{padding-top:3px}.pos-sync-status{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:white;border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:20px;font: .85rem/1.4 system-ui,sans-serif}.pos-sync-status strong,.pos-sync-status small{display:block}.pos-sync-status small,.pos-sync-status span{color:var(--muted)}.sync-status-actions{display:flex;gap:8px}.sync-status-actions button:disabled{opacity:.5;cursor:default}
@media(max-width:900px){.mobile-menu-grid{grid-template-columns:1fr}.mobile-menu-grid .pos-nav-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-menu-grid .pos-nav-heading{grid-column:1/-1}.pos-sync-status{gap:10px}.sync-status-actions{width:100%}.sync-status-actions button{flex:1}}

.receive-search-results{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}.receive-search-results p{flex-basis:100%;margin:0;color:var(--muted)}.receive-search-results button{max-width:100%;white-space:normal;text-align:left;min-height:40px}
.dashboard-period-filter{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;align-items:end;gap:12px;margin:16px 0 8px;padding:16px}.dashboard-period-filter label{display:grid;gap:6px;font-weight:700}.dashboard-period-filter .input{min-width:0}.dashboard-filter-error{grid-column:1/-1;min-height:0;margin:0}.dashboard-source-note{color:var(--muted);margin:8px 2px 14px}.dashboard-loading{color:var(--muted);font-weight:700}.dashboard-money .imported-stat{border-top-color:#7863a5;background:#f7f4fb}.dashboard-detail-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;margin:0 0 18px}.dashboard-detail-card h2,.dashboard-activity h2{margin:0 0 6px}.dashboard-detail-card>p,.dashboard-activity .section-title p{color:var(--muted);margin:0 0 12px}.dashboard-source{display:inline-block;background:#e7f3ee;color:#126142;border-radius:999px;padding:4px 8px;font-size:.85rem;font-weight:700}.dashboard-source.imported{background:#f0eafa;color:#5d438d}.dashboard-activity{margin-bottom:22px}.dashboard-activity .section-title{margin-bottom:12px}.dashboard-detail-card .table-wrap table,.dashboard-activity .table-wrap table{min-width:640px}.dashboard-detail-card .table-wrap th,.dashboard-activity .table-wrap th{white-space:nowrap}
@media(max-width:760px){.dashboard-period-filter{grid-template-columns:1fr 1fr}.dashboard-period-filter label:first-child{grid-column:1/-1}.dashboard-period-filter button{grid-column:1/-1}.dashboard-detail-grid{grid-template-columns:1fr}}

.pos-update-banner{position:fixed;z-index:10020;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:740px;margin:0 auto;padding:14px 16px;border:1px solid #c6d9cd;border-radius:14px;background:#fff;color:#082440;box-shadow:0 10px 36px #06172c35}.pos-update-banner>div{display:flex;align-items:center;gap:8px;white-space:nowrap}.pos-update-banner button{border:0;border-radius:9px;padding:9px 12px;background:#086b48;color:white;font:700 14px system-ui;cursor:pointer}.pos-update-banner [data-pos-update-dismiss]{background:transparent;color:#42586b}.pos-update-banner span{font-size:14px;line-height:1.4}@media(max-width:560px){.pos-update-banner{align-items:flex-start;flex-direction:column}.pos-update-banner>div{width:100%;justify-content:flex-end}}

/* Keep the active POS destination clear while the sidebar retains its scroll position. */
.nav-btn.active{border-color:#1369a5;background:#e8f3fb;box-shadow:inset 4px 0 var(--gold);color:var(--navy)}
.nav-btn:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.staff-sales-summary{margin:1rem 0}.staff-sales-summary>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.6rem}.staff-sales-summary article,.shift-sales-by-user article{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .85rem;border:1px solid var(--line,#d8e0e9);border-radius:.7rem;background:var(--surface,#fff)}.staff-sales-summary article span,.shift-sales-by-user article span,.sale-sync-time{color:var(--muted,#64748b);font-size:.86em}.staff-sales-summary article b,.shift-sales-by-user article b{white-space:nowrap}.shift-sales-by-user{margin:1rem 0}.shift-sales-by-user>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.6rem}.sale-item-list{min-width:13rem;line-height:1.45}.sale-sync-time{display:block;margin-top:.2rem}

/* support.css */
.support-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(340px,1.15fr);gap:18px}.support-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.support-history{display:grid;gap:10px}.support-message{width:100%;border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:14px;color:inherit}.support-message:hover,.support-message.unread{border-color:var(--green);background:#f3fbf7}.support-message span{display:grid;gap:4px}.support-message span:last-child{justify-items:end}.support-message em{font-style:normal;background:var(--gold);color:var(--navy);border-radius:999px;padding:3px 8px;font-size:.78rem;font-weight:800}.support-conversation{max-width:880px;margin:auto}.conversation-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}.conversation-head h2{margin:0}.chat-thread{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow:auto;padding:18px 4px}.chat-bubble{max-width:78%;border-radius:16px;padding:12px 14px;box-shadow:0 3px 12px rgba(8,36,64,.08)}.chat-bubble p{white-space:pre-wrap;margin:.35rem 0}.chat-bubble small{display:block;opacity:.75}.chat-bubble.business{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:4px}.chat-bubble.zedon{align-self:flex-start;background:#eaf7f1;border-bottom-left-radius:4px}.support-conversation form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;border-top:1px solid var(--line);padding-top:14px}.support-conversation form .error{grid-column:1/-1}.support-nav-badge{float:right;min-width:24px;height:24px;padding:2px 7px;border-radius:999px;background:#c81e1e;color:#fff;text-align:center;font:bold .78rem/20px system-ui}.support-live-state{margin-left:auto;border-radius:999px;padding:7px 11px;font:bold .82rem system-ui;background:#fff3cd;color:#7a5200}.support-live-state.live{background:#e5f7ee;color:#126142}.support-live-state.offline{background:#feeceb;color:#9c1c13}.support-live-alert{position:fixed;right:18px;top:92px;z-index:90;width:min(390px,calc(100vw - 28px));border:0;border-left:6px solid var(--gold);border-radius:14px;background:var(--navy);color:#fff;padding:16px 18px;text-align:left;box-shadow:0 14px 36px rgba(4,25,45,.32);opacity:0;transform:translateY(-18px);pointer-events:none;transition:.22s ease}.support-live-alert.show{opacity:1;transform:translateY(0);pointer-events:auto}.support-live-alert strong,.support-live-alert span{display:block}.support-live-alert strong{font-size:1.05rem}.support-live-alert span{margin-top:5px;color:#dfe8f1}.scheduled-plan button{margin-left:10px}@media(max-width:900px){.support-layout{grid-template-columns:1fr}.support-fields{grid-template-columns:1fr}.chat-bubble{max-width:90%}.support-conversation form{grid-template-columns:1fr}.support-live-alert{top:98px;right:14px}.support-live-state{font-size:.75rem}.page-head:has(#support-live-state){gap:8px;flex-wrap:wrap}} 

.support-case-reference{display:block;overflow-wrap:anywhere;font-size:.75rem;color:var(--muted)}.support-closure{border:1px solid #b8dfcc;border-radius:12px;background:#edf8f1;padding:14px;margin:12px 0;color:#17583e}.support-closure small{display:block;margin-top:6px}.support-closure p{white-space:pre-wrap;margin:.5rem 0;overflow-wrap:anywhere}.support-closed-records{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.support-closed-records summary{cursor:pointer;font-weight:700}

/* share.css */
.auth-share{margin-top:18px;border:1px solid rgba(255,255,255,.55);background:transparent;color:#fff;border-radius:9px;padding:12px 18px;font-weight:800}.share-pos-card{display:grid;grid-template-columns:1fr 260px;gap:24px;align-items:center;margin:18px 0}.share-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.share-actions .btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.share-actions .whatsapp{background:#168f5b}.share-qr{text-align:center}.share-qr img,.share-qr svg{width:min(240px,100%);height:auto;border:10px solid #fff;border-radius:12px;box-shadow:0 3px 14px rgba(8,36,64,.12)}.share-qr small{display:block;margin-top:7px;color:var(--muted)}.referral-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.referral-summary .card{text-align:center}.referral-summary small,.referral-summary strong{display:block}.referral-summary strong{font-size:1.7rem;color:var(--navy);margin-top:6px}@media(max-width:760px){.share-pos-card{grid-template-columns:1fr}.share-qr{order:-1}.share-actions>*{flex:1 1 45%}.referral-summary{grid-template-columns:1fr 1fr}.referral-summary .card:last-child{grid-column:1/-1}}

/* clean-ui.css */
.page-head>div>p,.page-subtitle{display:none!important}
.install-device,.install-benefits{display:none!important}
body:has(#new-member) .content>.notice,
.field>small,
.invite-form h2+p,
.auth-hero>p,
.auth-hero>.notice,
.auth-box>p:not(.error),
.onboard>p,
.trial-notice,
.billing-note,
.privacy-note,
.settings-limit span{display:none!important}
body:has(#support-message-form) .page-title,body:has(.support-conversation) .page-title{font-size:0}
body:has(#support-message-form) .page-title::after,body:has(.support-conversation) .page-title::after{content:"Zedon Support";font-size:2rem}
.settings-profile-fields{border:0;padding:0;margin:0;min-width:0}.settings-profile-fields:disabled,.settings-profile-fields[disabled]{opacity:.72}.settings-profile-fields[disabled] .input{background:#f2f4f6;color:#4b5563;cursor:not-allowed}
.correction-dialog{width:min(720px,94vw);max-height:90vh;overflow:auto}.correction-dialog .modal-head{display:flex;align-items:center;justify-content:space-between}.correction-history{margin-top:1.25rem;border-top:1px solid #d7dde4;padding-top:1rem}.correction-history article{padding:.8rem 0;border-bottom:1px solid #e4e7eb}.correction-history article strong,.correction-history article small{display:block}.correction-history .status-chip{float:right;text-transform:capitalize}
.backup-manager{margin-top:18px}.backup-manager .page-head{display:flex;align-items:center;justify-content:space-between}.backup-manager .page-head h2{margin:0}.backup-list{display:grid;gap:9px}.backup-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px;border:1px solid #d7dde5;border-radius:8px}.backup-list small{display:block;margin-top:4px;color:#667085}@media(max-width:620px){.backup-list article{align-items:stretch;flex-direction:column}.backup-list article>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px}}
#network-status{cursor:pointer}.sync-warning{background:#fff0d4!important;color:#8a4b00!important}.sync-centre-backdrop{position:fixed;inset:0;background:rgba(3,18,34,.62);z-index:120;display:grid;place-items:center;padding:16px}.sync-centre{width:min(760px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:20px}.sync-centre .modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.sync-centre h2{margin:0 0 5px}.sync-actions{display:flex;gap:9px;margin:18px 0}.sync-list{display:grid;gap:10px}.sync-list article{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px;border:1px solid #d7dde5;border-radius:9px}.sync-list strong,.sync-list small,.sync-list b{display:block;margin-top:4px}@media(max-width:620px){.sync-centre{padding:15px}.sync-actions{display:grid;grid-template-columns:1fr 1fr}.sync-list article{align-items:stretch;flex-direction:column}.sync-list article>button{width:100%}}
.alert-bell{position:relative;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:9px;padding:9px 12px;font-size:1.15rem}.alert-bell span{position:absolute;right:-6px;top:-7px;background:#c0392b;color:#fff;border-radius:999px;min-width:21px;padding:2px 5px;font:700 .72rem Arial,sans-serif}.alert-centre-backdrop{position:fixed;inset:0;background:rgba(3,18,34,.62);z-index:125;display:grid;place-items:center;padding:16px}.alert-centre{width:min(780px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:20px}.alert-centre .modal-head{display:flex;justify-content:space-between;align-items:center}.alert-centre h2{margin:0}.alert-toolbar{display:flex;gap:9px;align-items:center;margin:16px 0}.alert-toolbar select{flex:1}.alert-list{display:grid;gap:9px}.alert-item{display:flex;justify-content:space-between;gap:14px;border:1px solid #d7dde5;border-left:5px solid #7390aa;border-radius:9px;padding:13px}.alert-item.warning{border-left-color:#dc9300}.alert-item.critical{border-left-color:#b42318}.alert-item.unread{background:#f3f9ff}.alert-item strong,.alert-item small{display:block;margin-top:3px}.alert-item p{margin:.45rem 0 0}.alert-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0;padding:14px;border:1px solid #d7dde5;border-radius:9px}@media(max-width:620px){.alert-centre{padding:15px}.alert-toolbar{display:grid;grid-template-columns:1fr 1fr}.alert-toolbar select{grid-column:1/-1}.alert-item{flex-direction:column}.alert-options{grid-template-columns:1fr}}
.product-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.product-import-backdrop{position:fixed;inset:0;z-index:160;background:rgba(3,18,34,.72);display:grid;place-items:center;padding:16px}.product-import{width:min(1040px,97vw);max-height:94vh;overflow:auto;background:#fff;border-radius:14px;padding:20px;color:#10263e}.product-import .modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9e0e7;padding-bottom:12px}.product-import h2,.product-import h3{margin:.2rem 0 1rem}.import-step{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.import-drop{flex:1;min-width:260px;border:2px dashed #188157;border-radius:12px;padding:18px;cursor:pointer;background:#f3fbf7}.import-drop strong,.import-drop span{display:block}.import-drop span{color:#667085;margin-top:4px}.import-drop input{margin-top:12px;max-width:100%}.import-work{border-top:1px solid #d9e0e7;padding-top:16px}.import-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.import-mapping label span{display:block;font-weight:700;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-options{display:flex;justify-content:flex-end;margin:16px 0}.import-options label{min-width:min(100%,340px);font-weight:700}.import-options select{margin-top:5px}.import-summary{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;background:#edf7f2;border-left:5px solid #188157;margin-bottom:10px}.import-error{background:#fff1ef;color:#8c1c13}.import-history{border-top:1px solid #d9e0e7;margin-top:22px;padding-top:16px}.import-history article{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e5e9ee}.import-history article strong,.import-history article small{display:block}.import-history article small{color:#667085;margin-top:3px}@media(max-width:760px){.product-actions{width:100%;justify-content:stretch}.product-actions .btn{flex:1 1 calc(50% - 8px)}.product-import{padding:14px}.import-mapping{grid-template-columns:1fr}.import-step{display:grid}.import-history article{display:grid}.import-summary{display:grid}}
.barcode-label-backdrop{position:fixed;inset:0;z-index:170;background:rgba(3,18,34,.65);display:grid;place-items:center;padding:16px}.barcode-label-dialog{width:min(760px,96vw);max-height:92vh;overflow:hidden;background:#fff;border-radius:14px;padding:18px;display:grid;grid-template-rows:auto auto minmax(160px,1fr) auto;gap:12px}.barcode-product-list{overflow:auto;border:1px solid #d7dde5;border-radius:9px}.barcode-product-list>label{display:grid;grid-template-columns:auto 1fr 88px;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #e5e9ee}.barcode-product-list>label:last-child{border-bottom:0}.barcode-product-list span,.barcode-product-list small{display:block}.label-quantity{min-width:0!important}.barcode-dialog-actions{display:flex;justify-content:flex-end;gap:9px}.barcode-print-sheet{display:none}.barcode-label svg{display:block;width:100%;height:54px}.barcode-label>strong,.barcode-label>span,.barcode-label>b{display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.barcode-label>strong,.barcode-label>b{font-size:12px}.barcode-label>span{font-size:10px}.barcode-printing>*:not(.barcode-print-sheet){display:none!important}.barcode-printing .barcode-print-sheet{display:grid!important;grid-template-columns:repeat(3,1fr);gap:3mm;padding:4mm}.barcode-label{break-inside:avoid;border:1px dashed #999;padding:2.5mm;min-height:32mm;display:grid;align-content:center;background:#fff;color:#000}@media(max-width:620px){.barcode-product-list>label{grid-template-columns:auto 1fr 70px}.barcode-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.barcode-dialog-actions button{width:100%}}@media print{body.barcode-printing{background:#fff!important}.barcode-printing .barcode-print-sheet{display:grid!important;position:absolute;inset:0;width:100%;grid-template-columns:repeat(3,1fr);gap:2mm;padding:2mm}.barcode-label{border:1px dashed #bbb;min-height:28mm;padding:2mm}.barcode-label svg{height:50px}@page{margin:5mm}}

/* subscriptions.css */
.subscription-banner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-4px 0 18px;padding:15px 18px;border:1px solid #c7d5e3;border-left:6px solid var(--green);border-radius:12px;background:#fff;text-align:left;color:var(--ink)}
.subscription-banner small{display:block;margin-top:4px;color:var(--muted)}
.subscription-banner b{font-size:2rem;color:var(--green)}
.subscription-banner.grace,.subscription-banner.expired{border-left-color:var(--gold)}
.page-subtitle{margin:6px 0 0;color:var(--muted)}
.subscription-status{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;border-left:6px solid var(--green)}
.subscription-status h2{margin:6px 0 8px}.subscription-status p{margin:0;color:var(--muted)}
.subscription-status.grace,.subscription-status.expired{border-left-color:var(--gold)}
.status-chip,.popular-tag{display:inline-block;border-radius:999px;padding:7px 11px;background:#e8f7f0;color:#126142;font-weight:800;text-transform:capitalize}
.plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.plan-card{position:relative;display:flex;flex-direction:column;gap:12px}
.plan-card.popular{border:2px solid var(--green);box-shadow:0 8px 24px rgba(22,122,85,.12)}
.popular-tag{position:absolute;right:14px;top:14px;font-size:.82rem}
.plan-card h2{margin:0}.plan-price{font-size:1.75rem;font-weight:800;color:var(--navy)}
.plan-price small{font-size:.9rem;color:var(--muted);font-weight:400}.plan-choice small{font-size:.75rem;font-weight:700}
.plan-card ul{margin:0 0 8px;padding-left:20px;line-height:1.75;flex:1}
.plan-card .btn{width:100%}.subscription-request{max-width:640px;margin:20px auto}.billing-note{margin-top:18px}
.payment-message{margin:14px 0 0;padding:12px 14px;border-radius:8px;background:#eaf7f1;color:#0b5f43;line-height:1.5}.payment-message:empty{display:none}
@media(max-width:1100px){.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.plan-grid{grid-template-columns:1fr}.subscription-status{align-items:flex-start}.popular-tag{position:static;width:max-content;order:-1}}
.platform-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.platform-stats .stat{border-top:4px solid var(--green)}.platform-status-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.platform-status-row .status-chip{position:static}.status-chip.trial{background:#fff4d4;color:#7b5700}.status-chip.past_due,.status-chip.suspended{background:#ffe7e4;color:#9a271d}.admin-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:210px}.privacy-note{margin-top:18px;border-left:5px solid var(--green)}.warn-text{color:#9a5a00!important;font-weight:700}@media(max-width:900px){.platform-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.platform-stats{grid-template-columns:1fr}.platform-status-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.platform-status-row .status-chip{text-align:center}.admin-actions{min-width:190px}}
.offline-queue{display:block;width:100%;text-align:left;border:1px solid #d8a300;cursor:pointer;margin-bottom:1rem}.return-line{display:grid;grid-template-columns:1fr 7rem;gap:1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid #d7dde5}.return-line span,.return-line small{display:block}.return-line small{color:#667085;margin-top:.2rem}@media(max-width:640px){.return-line{grid-template-columns:1fr 5.5rem}.receipt .btn{width:100%;margin:.3rem 0}}
.platform-plan-editor{margin:0 0 18px;border-left:6px solid var(--green)}.platform-plan-editor h2{margin:0 0 4px}.platform-plan-editor p{margin:0;color:var(--muted)}.plan-manage-btn{background:#e8f7f0;color:#126142;border-color:#9ccfb9}

/* Green identifies only the selected package and billing period. */
.plan-card.popular{border:1px solid var(--line);box-shadow:0 3px 14px rgba(8,36,64,.05)}
.plan-card .plan-choice{background:white;color:var(--ink);border:1px solid var(--line);min-height:54px;line-height:1.35}
.plan-card .plan-choice.selected{background:var(--green);border-color:var(--green);color:white;box-shadow:0 0 0 2px rgba(22,122,85,.16)}
.plan-card.selected-plan{border-color:var(--green);box-shadow:0 0 0 2px var(--green)}
.plan-choice:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.popular-tag{background:#fff3cf;color:#7c5500}

.current-plan-badge{align-self:flex-start;border:1px solid #9aafc3;background:#edf3f9;color:var(--navy);border-radius:6px;padding:5px 9px;font-size:.8rem;font-weight:700}.plan-card:has(.current-plan-badge) .popular-tag{position:static;align-self:flex-start;order:0}
.plan-selection-summary{border-left:5px solid var(--green);margin:20px 0}.plan-selection-summary h2{margin:0 0 14px}.plan-selection-summary dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}.plan-selection-summary dt{color:var(--muted);font-size:.88rem}.plan-selection-summary dd{margin:6px 0 0;font-weight:700;overflow-wrap:anywhere}.plan-selection-summary p{margin-bottom:0;color:var(--muted);font-size:.9rem}.plan-selection-summary[hidden]{display:none}
@media(max-width:700px){.plan-selection-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
.subscription-payments{margin-top:20px}.payment-history-list{display:grid;gap:10px;margin:16px 0}.payment-history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);padding:14px;border-radius:12px;overflow-wrap:anywhere}.payment-history-row h3{font-size:1rem;margin:8px 0;text-transform:capitalize}.payment-history-row small{display:block;color:var(--muted);margin-top:5px}.payment-state{font:700 .78rem system-ui;padding:6px 10px;border-radius:999px;background:#fff1d2;color:#805300}.payment-state.paid{background:#dff3e7;color:#08633e}.payment-state.failed,.payment-state.reversed{background:#fee9e6;color:#9e2118}.payment-state.cancelled{background:#eef1f4;color:#526371}.payment-history-pages{display:flex;align-items:center;justify-content:space-between;gap:8px}.payment-history-row p{font-size:.85rem}.payment-history-row>div{min-width:0}@media(max-width:620px){.payment-history-row{flex-direction:column;align-items:stretch}.payment-history-row>button{min-height:44px}.payment-history-pages{flex-wrap:wrap}.subscription-payments .page-head h2{font-size:1.1rem}}

/* onboarding.css */
.onboarding-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:-4px 0 26px}
.onboarding-progress span{display:flex;align-items:center;gap:7px;color:var(--muted);font-weight:700;border-bottom:3px solid var(--line);padding:8px 2px}
.onboarding-progress b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8edf3}
.onboarding-progress .done,.onboarding-progress .active{color:var(--ink);border-color:var(--green)}
.onboarding-progress .done b,.onboarding-progress .active b{background:var(--green);color:#fff}
.trial-notice{display:flex;flex-direction:column;gap:4px;background:#effaf5;border-left:5px solid var(--green);padding:14px 16px;border-radius:8px;margin:18px 0}
.trial-notice span{color:var(--muted)}
.onboarding-confirm{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-weight:700}
.onboarding-confirm input{width:21px;height:21px}
.onboarding-submit{width:100%}
.onboarding-switch{background:#fff;color:var(--navy)}
.onboarding-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.help-grid a{color:var(--green);font-weight:800}
.trial-warning{border-color:#d89000;background:#fff7df}
@media(max-width:520px){.onboarding-progress{gap:4px}.onboarding-progress span{font-size:.82rem;display:grid;justify-items:center;text-align:center}.onboarding-switch{padding:9px 10px}}
@media(max-width:700px){.onboarding-form,.help-grid{grid-template-columns:1fr}.onboarding-form .span-2{grid-column:auto}}
.invite-welcome img{width:76px;height:76px;border-radius:20px;margin-bottom:1rem}.invite-summary{display:grid;gap:.35rem;padding:1rem;margin:0 0 1.25rem;border:1px solid #d7dee6;border-left:5px solid #d6aa21;border-radius:10px;background:#f8fafc}.invite-summary strong{font-size:1.15rem;color:#092544}.invite-summary span{font-weight:700;color:#1d684b}.invite-summary small{font-size:.88rem;color:#576576}

/* staff-invites.css */
.user-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0}
.invite-form{margin:18px 0;border-top:5px solid var(--green)}
.invite-form h2{margin:0;color:var(--navy)}
.invite-form p{margin:.35rem 0 0;color:var(--muted)}
.invitation-list{margin:18px 0;padding:18px}
.invitation-list h2{margin:0 0 14px;color:var(--navy)}
@media(max-width:700px){.user-summary{grid-template-columns:repeat(3,minmax(90px,1fr));overflow-x:auto}.user-summary .stat{padding:12px}.user-summary .stat strong{font-size:1.25rem}}

/* trust.css */
.danger-text{color:#b42318;border-color:#efb2aa}.receipt{max-width:520px;margin:22px auto;background:#fff}.receipt h2{text-align:center;color:var(--navy)}.receipt>p{text-align:center;line-height:1.55}.receipt table{min-width:0}.receipt-company{text-align:center}.receipt-company img{display:block;max-width:110px;max-height:80px;object-fit:contain;margin:0 auto 8px}.receipt-company p,.receipt-footer{margin:3px 0}.print-settings{margin-top:18px}.print-settings-grid{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:22px;align-items:start}.logo-uploader{display:grid;gap:8px;font-weight:700}.logo-preview{min-height:150px;border:2px dashed #b8c4cf;border-radius:12px;display:grid;place-items:center;background:#f8fafc;color:#536274;overflow:hidden}.logo-preview img{width:100%;height:150px;object-fit:contain;background:#fff}.logo-uploader input{font:inherit}.check-field{display:flex;gap:9px;align-items:center;font-weight:700;padding-top:28px}.content>.card+.card{margin-top:18px}@media(max-width:700px){.print-settings-grid{grid-template-columns:1fr}.logo-preview{min-height:120px}.logo-preview img{height:120px}}@page{margin:12mm}@media print{body.receipt-print *{visibility:hidden}body.receipt-print .receipt,body.receipt-print .receipt *{visibility:visible}body.receipt-print .receipt{position:absolute;inset:0;margin:0 auto;border:0;box-shadow:none}body.receipt-print .receipt .btn{display:none}body.report-print *{visibility:hidden}body.report-print .print-target,body.report-print .print-target *{visibility:visible}body.report-print .print-target{position:absolute;inset:0;width:100%;margin:0!important;padding:0!important}.print-heading{display:block!important;margin:0 0 18px;border-bottom:2px solid #082440;padding:0 0 12px}.print-company{display:flex;align-items:center;gap:16px}.print-company-logo{width:76px;height:76px;object-fit:contain}.print-heading h1,.print-heading h2,.print-heading p{margin:2px 0}.print-heading h1{font-size:20pt}.print-heading h2{font-size:15pt}.print-report-title{margin-top:13px}.print-report-title p{font-size:10pt}.print-target .page-head,.print-target .toolbar,.print-target .report-actions,.print-target button{display:none!important}.sidebar,.topbar,.mobilebar,.mobile-menu,.mobile-cart-dock{display:none!important}}
@page{size:auto;margin:0}@media print{body.report-print .print-target{box-sizing:border-box;padding:12mm!important}.print-heading{text-align:center;border-bottom:2px solid #082440;padding-bottom:12px;margin-bottom:18px}.print-company{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}.print-company-logo{display:block;width:auto;max-width:105px;height:auto;max-height:72px;margin:0 auto 2px}.print-company h1{font-size:19pt;line-height:1.15;letter-spacing:.02em}.print-company p{font-size:9.5pt;line-height:1.35}.print-report-title{margin-top:10px}.print-report-title h2{font-size:14pt}.print-report-title p{font-size:9.5pt}.print-target table{width:100%;table-layout:auto}.print-target th,.print-target td{font-size:9pt;padding:6px 8px}}
.quotation-print{position:fixed;left:-10000px;top:0;width:760px;background:#fff}.quotation-meta{display:flex;justify-content:flex-end;gap:38px;margin:0 0 20px}.quotation-meta div{display:grid;gap:3px;min-width:120px}.quotation-meta span,.quotation-customer span{font-size:8.5pt;font-weight:800;letter-spacing:.08em;color:#5b6773}.quotation-meta strong{font-size:11pt}.quotation-customer{display:grid;text-align:left;margin:0 0 18px;padding:12px 14px;border-left:4px solid #15835d;background:#f3f8f6;gap:3px}.quotation-customer strong{font-size:12pt}.quotation-customer small{font-size:9.5pt;color:#44515d}.quotation-table{width:100%;border-collapse:collapse}.quotation-table thead th{background:#082440!important;color:#fff!important;border:0;text-align:left}.quotation-table th:nth-child(1),.quotation-table td:nth-child(1){width:34px;text-align:center}.quotation-table th:nth-child(n+3),.quotation-table td:nth-child(n+3){text-align:right}.quotation-table tbody tr:nth-child(even){background:#f5f7f9}.quotation-table td{border-bottom:1px solid #d7dde2}.quotation-totals{width:320px;margin:20px 0 0 auto;border-top:1px solid #9ca8b3}.quotation-totals>div{display:flex;justify-content:space-between;gap:20px;padding:7px 10px}.quotation-grand-total{background:#082440!important;color:#fff!important;font-size:13pt;padding:12px!important}.quotation-grand-total span{font-weight:800}.quotation-footer{display:flex;justify-content:space-between;margin-top:42px;padding-top:10px;border-top:1px solid #c7cfd6;font-size:9pt;color:#5b6773}@media print{body.report-print .quotation-print.print-target{left:0;top:0;width:100%}}

/* loyalty.css */
.customer-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.loyalty-settings{margin-bottom:18px}.loyalty-settings h2,.customer-list h2{margin-top:0}.loyalty-rule{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px}.toggle-field{display:flex;align-items:center;gap:9px;font-weight:700;margin:10px 0}.customer-list-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.customer-list-head .input{max-width:390px}.customer-list td small{display:block;color:#667085;margin-top:4px}.customer-dialog-backdrop{position:fixed;inset:0;background:#081c33a8;z-index:2000;display:grid;place-items:center;padding:16px}.customer-dialog{background:#fff;border-radius:16px;padding:22px;width:min(560px,100%);max-height:92vh;overflow:auto;box-shadow:0 28px 80px #0005}.customer-history{width:min(820px,100%)}.loyalty-history{display:grid;gap:8px}.loyalty-history>div{display:flex;justify-content:space-between;gap:14px;padding:11px;border:1px solid #d8dee7;border-radius:9px}.loyalty-history span{display:grid}.loyalty-history small{color:#667085}.loyalty-customer-field small,#loyalty-redeem-field small{display:block;color:#166843;margin-top:6px;font-weight:700}
@media(max-width:760px){.customer-stats{grid-template-columns:1fr 1fr}.loyalty-rule{grid-template-columns:1fr 1fr}.loyalty-rule .btn{grid-column:1/-1}.customer-list-head{display:grid}.customer-list-head .input{max-width:none}.customer-list table th:nth-child(3),.customer-list table td:nth-child(3),.customer-list table th:nth-child(5),.customer-list table td:nth-child(5){display:none}.customer-dialog{border-radius:14px 14px 0 0;align-self:end;max-height:88vh}.customer-dialog-backdrop{padding:0}.customer-history table th:nth-child(3),.customer-history table td:nth-child(3){display:table-cell}}

/* print-fixes.css */
@media print{
  body.report-print #receipt-area{display:none!important;visibility:hidden!important}
}

/* checkout-ux.css */
.layout,.content,.sales-layout,.sales-catalog{min-width:0}.sales-layout{grid-template-columns:minmax(0,1fr) minmax(370px,430px)}
.cart{max-height:calc(100dvh - 112px);display:flex;flex-direction:column;overflow:hidden}.cart-head{flex:0 0 auto}.cart #checkout{display:flex;flex-direction:column;min-height:0;flex:1}.cart-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:8px;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.checkout-footer{flex:0 0 auto;background:#fff;border-top:2px solid var(--line);padding-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.checkout-footer .cart-total,.checkout-footer #checkout-error{grid-column:1/-1;margin:0}.checkout-footer .cart-total{font-size:1.25rem}.checkout-footer>button{margin:0!important;min-height:44px}.checkout-footer>button:not(.secondary){grid-column:1/-1;order:2}.checkout-footer #checkout-error{order:3}.loyalty-customer-field{position:relative}.quick-add-customer{position:absolute;right:0;top:-7px;padding:6px 9px}.customer-details.hidden{display:none!important}
@media(max-width:1180px) and (min-width:901px){.sales-layout{grid-template-columns:minmax(0,1fr) minmax(350px,40%)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart{top:84px;max-height:calc(100dvh - 96px)}}
@media(max-width:900px){.cart{height:var(--zbp-mobile-height,100dvh);max-height:var(--zbp-mobile-height,100dvh);display:flex;overflow:hidden;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.cart #checkout{min-height:0;padding-bottom:0}.cart-scroll{padding:0 4px 20px 0;scroll-padding-bottom:140px}.checkout-footer{position:sticky;bottom:0;margin:0 -2px;padding:10px 2px calc(8px + env(safe-area-inset-bottom));z-index:6;box-shadow:0 -8px 20px rgba(8,36,64,.08)}.cart-head button{width:auto;height:44px;border:1px solid var(--line);border-radius:9px;padding:7px 12px;font-size:1rem;font-weight:800}.checkout-footer .cart-total{font-size:1.15rem}.quick-add-customer{position:static;margin:0 0 7px}.customer-details>summary{min-height:44px;display:flex;align-items:center}.cart-scroll input,.cart-scroll select{font-size:16px}}
@media(max-width:520px){.sales-layout,.sales-catalog,.product-grid{min-width:0}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product{min-width:0;padding:12px 8px}.product strong,.product span{overflow-wrap:anywhere}.cart{padding-left:14px;padding-right:14px}.checkout-footer{grid-template-columns:1fr 1fr}.checkout-footer>button{font-size:.92rem;padding-inline:8px}}
/* Workspace scrolling starts below the app header. */
.shell:not(.is-messaging) #pos-sync-status{position:sticky;top:0;z-index:16;margin-bottom:12px;box-shadow:0 4px 12px #08244012;background:#fff}
@media(min-width:901px){.sales-layout{align-items:start}.sales-layout>.cart{top:calc(var(--pos-sync-height,80px) + 8px);margin-top:0;align-self:start;max-height:calc(100dvh - 76px - var(--pos-sync-height,80px) - 28px)}.sales-catalog>.page-title{margin-bottom:12px}}
@media(max-width:900px){.sales-catalog .sales-toolbar{top:calc(var(--pos-sync-height,110px) + 4px)}.pos-sync-status{padding:8px 10px;gap:6px}.pos-sync-status>div:nth-child(2){display:none}.pos-sync-status .sync-status-actions{width:auto;margin-left:auto}.pos-sync-status .sync-status-actions button{min-height:36px;padding:6px 8px}}
/* Give the flex children a definite height so long carts can scroll. */
.cart #checkout{flex:1 1 0;min-height:0;overflow:hidden}.cart .cart-scroll{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain}.cart .checkout-footer{flex:0 0 auto}.cart .cart-head{flex:0 0 auto}
@media(min-width:901px){.sales-layout>.cart{height:calc(100dvh - 76px - var(--pos-sync-height,80px) - 28px);min-height:0;display:flex;flex-direction:column;overflow:hidden}.cart .cart-scroll{scrollbar-width:auto}.cart .checkout-footer{position:relative;bottom:auto}}
/* Compact cart typography and checkout actions preserve room for line items. */
.sales-layout>.cart{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:14px;border-radius:14px;box-shadow:0 4px 20px #0824400a}.cart .cart-head{margin:0;padding:0 0 10px;border-bottom:1px solid #e5ece8;display:flex;align-items:center;justify-content:space-between;gap:8px}.cart .cart-head h2{font-family:inherit;font-size:1.05rem;line-height:1.3;font-weight:700;text-transform:none;letter-spacing:0;margin:0!important}.cart .cart-item-count{font-size:.72rem;color:#64748b;white-space:nowrap}.cart .cart-line{padding:10px 0;gap:8px;font-size:.85rem;line-height:1.3}.cart .cart-line small{font-size:.72rem;margin-top:3px}.cart .cart-line>.qty{gap:6px}.cart .qty button{width:32px;height:32px;min-height:32px;font-size:1rem}.cart .cart-line>strong{font-size:.8rem;white-space:nowrap}.cart .field{margin:10px 0}.cart .field label{font-size:.78rem;margin-bottom:5px}.cart .cart-scroll .input,.cart .cart-scroll select{font-family:inherit;font-size:.85rem;min-height:38px;padding:8px 10px}.cart .cart-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:.8rem;margin:5px 0}.cart .checkout-footer{padding-top:10px;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #dce5df}.cart .checkout-footer .cart-total{font-size:1rem;line-height:1.4;padding:2px 0 6px;font-weight:700}.cart .checkout-footer>button{font-family:inherit;font-size:.75rem;line-height:1.25;padding:8px 5px;min-height:36px!important;border-radius:8px}.cart .checkout-footer>button:not(.secondary){font-size:.9rem;min-height:42px!important;grid-column:1/-1}.cart .checkout-footer #checkout-error:empty{display:none}.cart .cart-scroll{padding-top:4px}.cart .empty-cart{font-size:.85rem;color:#64748b}
@media(min-width:901px){.cart .cart-head button{display:none}.cart .cart-line{grid-template-columns:minmax(0,1fr) auto auto}}
@media(max-width:900px){.sales-layout>.cart{padding:12px 14px calc(8px + env(safe-area-inset-bottom))}.cart .cart-head{top:0;padding:2px 0 10px}.cart .cart-head button{font-size:.8rem;height:38px;min-height:38px}.cart .cart-scroll .input,.cart .cart-scroll select{font-size:16px}.cart .qty button{width:38px;height:38px;min-height:38px}.cart .checkout-footer>button{min-height:44px!important}.cart .cart-item-count{font-size:.65rem}}

.cash-tender-box{display:grid;gap:6px;padding:10px;background:#f0f8f3;border:1px solid #d3e5da;border-radius:10px;margin:10px 0}.cash-tender-box[hidden]{display:none}.cash-tender-box label{font-size:.78rem;font-weight:600}.cash-tender-box strong{font-size:.85rem;color:#12663f}

.device-manager{width:min(620px,94vw);max-height:90vh;overflow:auto;border:1px solid #d7e2db;border-radius:14px;padding:20px;font:14px/1.5 system-ui;color:#12243b}.device-manager::backdrop{background:#08244088}.device-manager article{padding:12px 0;border-bottom:1px solid #dce5df}.device-manager button{margin:5px}.device-manager img{display:block;max-width:100%}

/* messaging.css */
.chat-profile{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.chat-profile strong{display:block;font-size:1.7rem;letter-spacing:.12em;color:var(--green)}.chat-profile small,.chat-profile span{display:block}.business-chat-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:18px}.chat-code-form,.chat-actions{display:flex;gap:8px;margin:8px 0}.chat-code-form input{min-width:0}.business-chat-contacts{display:grid;gap:12px;margin-top:20px}.business-chat-contacts article{padding:12px;border:1px solid #dce4e0;border-radius:12px}.chat-contact{display:block;width:100%;text-align:left;background:transparent;border:0;padding:8px;color:inherit}.chat-contact strong,.chat-contact small{display:block;overflow-wrap:anywhere}.chat-contact.active{background:#e5f5ec;border-radius:8px}.business-chat-thread{min-width:0}.business-chat-thread .chat-thread{max-height:50dvh;min-height:120px;overflow:auto}.business-chat-thread p{white-space:pre-wrap;overflow-wrap:anywhere}.business-chat-thread form{display:grid;gap:10px}.business-chat-thread .chat-bubble{max-width:94%}@media(max-width:760px){.business-chat-layout{grid-template-columns:1fr}.chat-profile{flex-wrap:wrap}.chat-code-form{flex-wrap:wrap}.chat-code-form input{flex:1 1 180px}.chat-code-form button{flex:1 1 110px}.business-chat-layout input,.business-chat-layout textarea{font-size:16px}.business-chat-layout button{min-height:44px}}

.chat-code-share{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.chat-profile{border:2px solid #b79532;background:#f6fbf7}.chat-profile strong{font-size:clamp(1.7rem,5vw,2.4rem)}.messaging-shortcut{white-space:nowrap}@media(max-width:600px){.messaging-shortcut{font-size:.8rem;padding:8px}.chat-profile>div{width:100%}.chat-code-share button{flex:1;min-height:44px}}

.chat-contact-options{margin-top:8px;font-size:.82rem;color:#64748b}.chat-contact-options summary{cursor:pointer;padding:8px;min-height:36px}.chat-contact-options button{color:#a12828;margin-top:8px}.chat-live-status{font-size:.8rem;color:#12663f}.chat-file-picker{display:grid;gap:8px;font-size:.9rem}.chat-file-picker small{color:#64748b}.chat-file-link{white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left}.business-chat-thread .chat-thread{scroll-behavior:smooth}

.chat-attachment-toolbar{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}.chat-attachment-toolbar button{min-height:46px;padding:10px 18px;border:1px solid #16734b;background:#edf8f1;color:#125b3b;font-weight:700}.chat-attachment-toolbar button:disabled{opacity:.5;border-color:#a8b4ae}.chat-selected-file{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere;font-size:.9rem}.chat-attachment-help{display:block!important;color:#64748b;font-size:.8rem}.business-chat-thread form{border-top:1px solid #dce4e0;padding-top:14px}

/* Keep the contact code above a conversation-led workspace. */
.chat-profile{padding:12px 16px!important;border-width:1px;gap:12px;margin-bottom:14px}.chat-profile>div{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px 16px;flex:1;min-width:0}.chat-profile small{font-size:.78rem}.chat-profile strong{font-size:1.4rem;letter-spacing:.08em;white-space:nowrap}.chat-profile span{grid-column:1/3;font-size:.75rem;color:#64748b}.chat-code-share{grid-column:3;grid-row:1/3;justify-content:flex-end;margin:0}.chat-code-share button,.chat-profile>button{min-height:40px;font-size:.8rem;padding:8px 12px}.business-chat-layout{grid-template-columns:minmax(220px,270px) minmax(0,1fr);gap:14px;align-items:start}.chat-contacts-panel{max-height:calc(100dvh - 240px);overflow:auto;padding:16px!important}.chat-contacts-heading h2{font-size:1.15rem;margin:0 0 14px}.chat-contacts-heading>button{display:none}.chat-code-form{flex-wrap:wrap}.chat-code-form input{width:100%}.chat-code-form button{width:100%;min-height:40px}.business-chat-contacts{gap:8px;margin-top:14px}.business-chat-contacts article{padding:8px}.business-chat-thread{height:clamp(480px,calc(100dvh - 245px),850px);display:flex;flex-direction:column;padding:18px!important;gap:8px}.business-chat-thread .conversation-head{flex:0 0 auto;padding-bottom:10px}.business-chat-thread .conversation-head h2{font-size:1.2rem}.business-chat-thread .chat-thread{flex:1 1 auto;min-height:180px;max-height:none;padding:12px 4px;overscroll-behavior:contain}.business-chat-thread .chat-bubble{flex:0 0 auto;max-width:85%}.business-chat-thread form{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:10px}.business-chat-thread form>label,.business-chat-thread form>textarea,.chat-selected-file,.chat-attachment-help{grid-column:1/-1}.business-chat-thread form>label{font-size:.8rem}.business-chat-thread textarea{height:64px;min-height:54px;max-height:140px;resize:vertical}.chat-attachment-toolbar{padding:0;align-items:center}.chat-attachment-toolbar button{min-height:40px;padding:8px 12px;font-size:.85rem}.business-chat-thread form>.btn{grid-column:2;grid-row:3;min-height:40px;padding:8px 16px}.chat-selected-file:empty{display:none}.chat-attachment-help{font-size:.7rem}
@media(max-width:900px){.business-chat-layout{grid-template-columns:minmax(190px,220px) minmax(0,1fr)}.chat-profile{flex-wrap:wrap}.chat-profile>button{margin-left:auto}}
@media(max-width:760px){.business-chat-layout{grid-template-columns:1fr}.chat-profile>div{width:100%;grid-template-columns:1fr auto;gap:4px 8px}.chat-profile small{grid-column:1}.chat-profile strong{grid-column:1;grid-row:2;font-size:1.35rem}.chat-profile span{grid-column:1/-1;grid-row:3}.chat-code-share{grid-column:2;grid-row:1/3;gap:6px}.chat-code-share button{flex:0 0 auto;padding:8px;min-height:42px}.chat-profile>button{font-size:.75rem;min-height:36px;padding:6px 10px}.chat-contacts-panel{max-height:none}.chat-contacts-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-contacts-heading h2{margin:0;font-size:1rem}.chat-contacts-heading>button{display:block;font-size:.75rem;min-height:40px}.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>form,.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>.business-chat-contacts{display:none}.business-chat-thread{height:max(520px,calc(100dvh - 170px));padding:14px!important}.business-chat-thread .chat-bubble{max-width:92%}.business-chat-thread form>.btn{padding:8px 12px}.chat-attachment-toolbar{gap:6px}.chat-attachment-toolbar button{padding:8px;font-size:.8rem}.chat-contacts-panel #chat-request{margin-top:12px}}

@media(max-width:440px){.business-chat-thread form>.btn{grid-row:auto;grid-column:1/-1;width:100%}.business-chat-thread .chat-attachment-toolbar{grid-column:1/-1}.chat-profile .chat-code-share button{font-size:.72rem}.chat-profile>div{column-gap:6px}}

/* Compact heading and code toolbar leave the workspace for messages. */
.messaging-head{min-height:0!important;margin:0 0 8px!important;gap:10px!important;align-items:center!important}.messaging-head .page-title{font-size:1.2rem!important;margin:0!important;line-height:1.2!important}.messaging-head>div>p{display:none}.messaging-head button{font-size:.8rem!important;padding:6px 12px!important;min-height:34px!important}.messaging-head .chat-live-status{margin-left:auto;font-size:.75rem}.chat-profile.chat-code-strip{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;padding:8px 12px!important;min-height:0!important;margin-bottom:10px!important;gap:8px 14px!important;border-radius:10px!important}.chat-code-strip>.chat-code-identity{display:flex!important;align-items:center!important;gap:10px!important;flex:0 1 auto!important;width:auto!important}.chat-code-strip .chat-code-identity small{font-size:.78rem!important;white-space:nowrap}.chat-code-strip .chat-code-identity strong{font-size:1.15rem!important;letter-spacing:.07em!important}.chat-code-strip>.chat-code-share{display:flex!important;grid-column:auto!important;grid-row:auto!important;gap:6px!important;margin:0!important}.chat-code-strip .chat-code-share button{font-size:.78rem!important;min-height:36px!important;padding:6px 10px!important;flex:0 0 auto!important}.chat-code-options{margin-left:auto;position:relative;font-size:.8rem}.chat-code-options summary{cursor:pointer;padding:8px}.chat-code-options>div{position:absolute;right:0;top:100%;z-index:8;width:220px;padding:14px;background:#fff;border:1px solid #dce4e0;border-radius:10px;box-shadow:0 8px 24px #0002}.chat-code-options small{display:block;margin-bottom:8px}.is-messaging .content #pos-sync-status{display:none}.business-chat-thread{height:clamp(520px,calc(100dvh - 195px),900px)}.chat-contacts-panel{max-height:calc(100dvh - 195px)}
@media(max-width:760px){.messaging-head{flex-wrap:wrap}.messaging-head>.small-btn{width:auto!important}.chat-code-strip{column-gap:8px!important}.chat-code-strip .chat-code-identity strong{font-size:1.05rem!important}.chat-code-strip .chat-code-identity small{font-size:.7rem!important}.chat-code-options{margin-left:auto}.business-chat-thread{height:max(520px,calc(100dvh - 155px))}.chat-contacts-panel{max-height:none}}

.business-chat-thread .chat-thread{scroll-behavior:auto!important;overflow-anchor:none}.is-messaging .content{overflow-anchor:none}

/* Fit the chat and composer into the visible workspace, including browser zoom. */
.shell.is-messaging{height:var(--chat-app-height,100dvh)!important;min-height:0!important;overflow:hidden;display:flex;flex-direction:column}.shell.is-messaging>.topbar{flex:0 0 auto}.shell.is-messaging>.layout{flex:1 1 0;min-height:0!important;height:0!important;overflow:hidden}.is-messaging .content{display:flex!important;flex-direction:column;box-sizing:border-box;height:100%!important;min-height:0!important;overflow:hidden!important;padding:12px 18px!important;gap:8px}.messaging-head,.chat-code-strip{flex:0 0 auto;margin:0!important}.is-messaging .content>#chat-error:empty{display:none}.is-messaging .content>#chat-error{flex:0 0 auto;max-height:60px;overflow:auto;font-size:.8rem}.business-chat-layout{flex:1 1 0;min-height:0!important;overflow:hidden;align-items:stretch!important}.business-chat-thread{height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box;overflow:hidden;padding:12px!important}.business-chat-thread .chat-thread{min-height:0!important;flex:1 1 0;overflow-y:auto!important;max-height:none!important}.business-chat-thread .conversation-head{padding-bottom:6px}.business-chat-thread .conversation-head h2{font-size:1rem!important}.business-chat-thread form{min-height:0;gap:6px;padding-top:8px}.business-chat-thread form>label{display:none}.business-chat-thread textarea{height:48px;min-height:40px;max-height:90px;padding:8px;grid-column:1/-1;font-size:16px}.business-chat-thread form>.btn{grid-row:2!important;grid-column:2!important;min-height:36px;padding:6px 12px;white-space:nowrap}.business-chat-thread .chat-attachment-toolbar{grid-row:2;grid-column:1;gap:6px}.chat-attachment-toolbar button{min-height:36px;padding:6px 9px;font-size:.78rem}.chat-attachment-help{font-size:.65rem;line-height:1.3}.chat-selected-file{font-size:.75rem;max-height:48px;overflow:auto}.chat-contacts-panel{height:100%;max-height:none!important;min-height:0;box-sizing:border-box;overflow:auto!important}.business-chat-thread>h2{font-size:1.1rem}.business-chat-thread>p,.business-chat-thread>small{font-size:.85rem}
@media(max-width:900px){.is-messaging .content{padding:8px 10px calc(76px + env(safe-area-inset-bottom))!important}.shell.is-messaging>.layout{display:block!important}.business-chat-layout{display:flex!important;flex-direction:column;gap:8px}.chat-contacts-panel{height:auto;max-height:30%!important;flex:0 0 auto;padding:8px 12px!important}.chat-contacts-heading{display:flex;justify-content:space-between;align-items:center}.chat-contacts-heading>button{display:block}.chat-contacts-heading h2{margin:0;font-size:.9rem}.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>form,.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>.business-chat-contacts{display:none}.business-chat-thread{flex:1 1 0;height:auto!important}.messaging-head .page-title{font-size:1rem!important}.chat-code-strip{padding:4px 8px!important}.chat-code-strip .chat-code-share button{min-height:32px!important}.messaging-head #offline-panel-btn{display:none}.chat-attachment-help{display:none!important}}
@media(max-width:380px){.business-chat-thread .chat-attachment-toolbar{grid-column:1}.chat-attachment-toolbar button{padding:5px;font-size:.7rem}.business-chat-thread form>.btn{font-size:.75rem;padding:6px}.chat-code-strip .chat-code-identity small{display:none}}

@media(max-width:900px){.shell.is-messaging.chat-keyboard>.topbar,.shell.chat-keyboard .mobilebar,.shell.chat-keyboard .messaging-head,.shell.chat-keyboard .chat-code-strip,.shell.chat-keyboard .chat-contacts-panel{display:none!important}.shell.chat-keyboard .is-messaging .content{padding:8px!important}}

.chat-new-messages{align-self:center;flex:0 0 auto;min-height:32px;background:#16734b;color:#fff;border-radius:999px;font-size:.8rem;padding:5px 14px}.chat-search-label{display:block;font-size:.75rem;margin:10px 0 5px;color:#64748b}#chat-contact-search{width:100%;min-height:40px;font-size:14px;margin-bottom:8px}.chat-attachment-card{display:grid;gap:6px;margin:8px 0;padding:10px;border:1px solid #b9cec3;border-radius:10px;background:#ffffff12}.chat-attachment-card>small{font-size:.7rem}.chat-photo-preview{min-height:36px;justify-self:start}.chat-image-preview{display:block;width:240px;max-width:100%;height:160px;object-fit:contain;background:#ffffff20;border-radius:8px;cursor:pointer}.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>#chat-contact-search,.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>.chat-search-label{display:block}@media(max-width:900px){.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>#chat-contact-search,.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>.chat-search-label,.chat-contacts-panel.conversation-selected:not(.contacts-expanded)>#chat-search-empty{display:none!important}}

.chat-phone-back{display:none}.chat-conversation-title{min-width:0}.chat-conversation-title h2{overflow-wrap:anywhere}.chat-conversation-title>small{font-size:.72rem;color:#64748b}
@media(max-width:900px){
/* Opening a contact becomes a dedicated phone conversation screen. */
.shell.is-messaging.chat-open{position:fixed;inset:0;width:100%;height:var(--chat-app-height,100dvh)!important;z-index:25;background:#f5f8f6;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}.shell.is-messaging.chat-open>.topbar,.shell.is-messaging.chat-open>.mobilebar,.shell.is-messaging.chat-open .sidebar,.shell.is-messaging.chat-open .messaging-head,.shell.is-messaging.chat-open .chat-code-strip,.shell.is-messaging.chat-open .chat-contacts-panel{display:none!important}.shell.is-messaging.chat-open>.layout{height:100%!important;flex:1 1 0!important;display:flex!important;min-height:0!important}.shell.is-messaging.chat-open .content{width:100%;height:100%!important;padding:0!important;gap:0!important;overflow:hidden!important;display:flex!important;flex-direction:column}.shell.is-messaging.chat-open .business-chat-layout{width:100%;height:100%;flex:1 1 0;gap:0!important}.shell.is-messaging.chat-open #chat-error:not(:empty){padding:8px 12px;background:#fff1f1;margin:0;font-size:.8rem}.shell.is-messaging.chat-open .business-chat-thread{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;background:#f5f8f6;gap:0!important}.shell.is-messaging.chat-open .conversation-head{padding:calc(10px + env(safe-area-inset-top)) 12px 10px!important;background:#fff;border-bottom:1px solid #dbe7df;gap:12px;min-height:60px;box-sizing:border-box;flex:0 0 auto}.chat-phone-back{display:block;flex:0 0 auto;min-height:42px;font-size:.85rem;padding:8px 10px;border:0;background:#eef6f1;color:#125b3b}.shell.is-messaging.chat-open .chat-conversation-title h2{font-family:inherit!important;font-size:1rem!important;font-weight:700;line-height:1.25;margin:0 0 3px}.shell.is-messaging.chat-open #business-chat-messages{padding:14px 12px!important;gap:10px;min-height:0!important;max-height:none!important;flex:1 1 0}.shell.is-messaging.chat-open .chat-bubble{font-size:.9rem;line-height:1.45;padding:10px 12px;max-width:88%;border-radius:14px}.shell.is-messaging.chat-open .chat-bubble small{font-size:.66rem;line-height:1.4;margin-top:5px}.shell.is-messaging.chat-open #business-chat-send{background:#fff;border-top:1px solid #dbe7df;padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0;gap:8px;flex:0 0 auto;box-sizing:border-box}.shell.is-messaging.chat-open #business-chat-text{border-radius:16px;height:46px;min-height:46px;max-height:100px;font-family:inherit;font-size:16px;line-height:1.3;padding:12px;resize:none}.shell.is-messaging.chat-open .chat-attachment-toolbar button{border-radius:999px;font-size:.78rem;min-height:38px;padding:6px 10px}.shell.is-messaging.chat-open #business-chat-send>.btn{min-height:38px;border-radius:999px;font-size:.8rem;padding:8px 14px;font-family:inherit}.shell.is-messaging.chat-open #chat-older{align-self:center;margin:8px 0;font-size:.75rem;min-height:32px}.shell.is-messaging.chat-open .chat-new-messages{margin:6px auto}.shell.is-messaging.chat-open .chat-selected-file{max-height:40px;overflow:auto;margin:0}.shell.is-messaging.chat-open .chat-attachment-help{display:none!important}
/* On the contacts screen, spend space on contacts rather than an empty thread. */
.shell.is-messaging.chat-inbox .business-chat-thread{display:none!important}.shell.is-messaging.chat-inbox .chat-contacts-panel{flex:1 1 0;height:auto;max-height:none!important;overflow:auto!important}.shell.is-messaging.chat-inbox .messaging-head{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between;gap:8px!important}.shell.is-messaging.chat-inbox .messaging-head>div{flex:1;min-width:0}.shell.is-messaging.chat-inbox .messaging-head #business-chat-live{display:none}.shell.is-messaging.chat-inbox .messaging-head>button:not(#chat-refresh){display:none!important}.chat-contacts-heading>button{display:none!important}
}

@media(max-width:900px){.shell.is-messaging.chat-open button,.shell.is-messaging.chat-open textarea{font-family:inherit!important}}

/* Independent inbox, with a scrolling list and a separate conversation screen. */
.chat-sections{display:flex;gap:8px;flex:0 0 auto;border-bottom:1px solid #dce4e0;padding-bottom:8px}.chat-sections>span,.chat-sections>button{font:600 .85rem system-ui;padding:8px 12px;border-radius:8px}.chat-sections>span{background:#e2f3e8;color:#12663f}.chat-new-contact{flex:0 0 auto;border:1px solid #dce4e0;border-radius:10px;margin:4px 0 8px;padding:8px 12px}.chat-new-contact summary{cursor:pointer;font-size:.85rem;font-weight:600;color:#12663f;min-height:28px;line-height:28px}.chat-new-contact label{font-size:.8rem}.is-messaging .chat-contacts-panel{display:flex;flex-direction:column;overflow:hidden!important}.is-messaging .business-chat-contacts{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-top:8px}.is-messaging .business-chat-contacts article{flex:0 0 auto}.is-messaging .chat-contact{min-height:58px;cursor:pointer}.is-messaging .chat-contact strong{font-size:.95rem}.is-messaging .chat-contact small{font-size:.75rem;margin-top:5px;color:#64748b}.is-messaging .chat-contact.active{border-left:3px solid #16734b}.is-messaging #offline-tools{display:none!important}.is-messaging .chat-exit{display:block!important}.is-messaging .chat-contacts-panel>input,.is-messaging .chat-contacts-heading,.is-messaging .chat-search-label{flex:0 0 auto}.is-messaging .chat-code-strip{background:#f0f8f3;border-color:#c7ded0;font-family:system-ui,sans-serif}
@media(max-width:900px){.shell.is-messaging{position:fixed;inset:0;width:100%;height:var(--chat-app-height,100vh)!important;z-index:25;background:#f5f8f6;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.shell.is-messaging>.topbar,.shell.is-messaging>.mobilebar,.shell.is-messaging .sidebar,.shell.is-messaging .mobile-menu{display:none!important}.shell.is-messaging>.layout{height:100%!important;width:100%;display:flex!important}.shell.is-messaging .content{width:100%;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))!important;gap:10px!important}.shell.is-messaging.chat-inbox .messaging-head{align-items:center!important;flex-wrap:nowrap!important}.shell.is-messaging.chat-inbox .messaging-head>.chat-exit{display:block!important;flex:0 0 auto!important}.shell.is-messaging.chat-inbox .messaging-head .page-title{font:700 1.05rem system-ui!important}.shell.is-messaging.chat-inbox .messaging-head>#team-refresh{display:block!important}.shell.is-messaging.chat-inbox .chat-contacts-panel{padding:12px!important;flex:1 1 0;max-height:none!important;min-height:0;overflow:hidden!important}.shell.is-messaging.chat-inbox .business-chat-layout{min-height:0;flex:1 1 0}.shell.is-messaging.chat-inbox .chat-code-strip{padding:8px!important;gap:6px!important}.shell.is-messaging.chat-inbox .chat-code-strip .chat-code-share button{min-height:36px!important}.shell.is-messaging.chat-open .chat-sections{display:none!important}.shell.is-messaging.chat-open .content{padding:0!important;gap:0!important}.shell.is-messaging.chat-inbox .chat-sections{justify-content:stretch}.chat-sections>*{text-align:center;flex:1}.shell.is-messaging.chat-inbox .chat-contacts-heading>button{display:none!important}.is-messaging .business-chat-contacts{gap:6px}.is-messaging .chat-code-strip>.chat-code-identity{gap:6px!important}.is-messaging .chat-code-identity small{font-size:.65rem!important}.is-messaging .chat-code-options summary{padding:8px 4px}.is-team .chat-code-strip>small{display:none}.shell.is-messaging.chat-open #team-message-list{padding:14px 12px!important;flex:1 1 0;min-height:0;overflow:auto}}

.chat-photo-viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;background:#101b24;color:#fff;z-index:1000;overflow:auto;font-family:system-ui,sans-serif}.chat-photo-viewer[open]{display:flex;flex-direction:column}.chat-photo-viewer::backdrop{background:#101b24}.chat-photo-viewer>header{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;background:#162733;flex:0 0 auto}.chat-photo-viewer>header>strong{font-size:.9rem;overflow-wrap:anywhere;font-weight:500}.chat-photo-viewer button{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;background:#ffffff15;color:white;font-size:30px;cursor:pointer}.chat-photo-viewer>img{display:block;flex:1 1 0;min-height:0;width:100%;object-fit:contain;padding:12px 0 calc(12px + env(safe-area-inset-bottom));box-sizing:border-box;touch-action:pinch-zoom}.chat-photo-viewer>img[hidden],.chat-photo-viewer>p[hidden]{display:none}.chat-photo-viewer>p{padding:20px;text-align:center;color:#dce5e9}

.is-messaging #chat-selected-file:not(:empty){max-height:112px!important;padding:8px;background:#eff7f2;border-radius:10px;gap:10px;grid-column:1/-1}.chat-selected-preview{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:0 0 64px}.chat-selected-document{font-size:30px}.chat-selected-file>span{flex:1;min-width:0;overflow-wrap:anywhere}.chat-selected-file>button{flex:0 0 auto}.chat-image-preview{border-radius:10px;cursor:pointer}.chat-photo-preview:disabled{opacity:.65}

.messaging-unread{display:inline-block;margin-left:6px;padding:2px 6px;min-width:18px;border-radius:999px;background:#16734b;color:#fff;font:700 .72rem system-ui}.messaging-unread[hidden]{display:none}.conversation-tools{flex:0 0 auto;padding:8px 12px;background:#fff;border-bottom:1px solid #dce4e0;font:.8rem system-ui}.conversation-tools summary{cursor:pointer;color:#12663f;font-weight:600}.conversation-tools>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.conversation-tools input,.conversation-tools select,.conversation-tools button{min-height:36px;max-width:100%;border:1px solid #c7d7cc;border-radius:6px;padding:6px;font:inherit}.conversation-tools input[type=search]{flex:1 1 140px}.conversation-tools small{flex-basis:100%;color:#64748b}.chat-thread>[hidden]{display:none!important}.chat-sections #chat-mute-alerts{font-size:.72rem;padding:6px;flex:0 1 auto}

.chat-quote{margin:0 0 8px;padding:8px 10px;border-left:3px solid #16734b;background:#ffffff60;border-radius:6px;font-size:.8rem}.chat-quote p{margin:3px 0!important}.chat-reply-button{border:0;background:transparent;color:#12663f;font-size:.72rem;padding:6px;cursor:pointer}.chat-reply-selection{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:.75rem;background:#eff7f2;border-left:3px solid #16734b;padding:8px}.chat-reply-selection[hidden]{display:none}.chat-reply-selection>span{flex:1;min-width:0;overflow-wrap:anywhere}.team-composer .chat-attachment-toolbar{grid-column:1/-1!important;grid-row:2!important}.team-composer .chat-selected-file{grid-column:1/-1}.team-composer .chat-reply-selection{grid-row:1!important}.team-composer:has(.chat-reply-selection:not([hidden])) #business-chat-text,.team-composer:has(.chat-reply-selection:not([hidden]))>.btn{grid-row:2!important}.team-composer:has(.chat-reply-selection:not([hidden])) .chat-attachment-toolbar{grid-row:3!important}

.team-composer.reply-active #business-chat-text,.team-composer.reply-active>.btn{grid-row:2!important}.team-composer.reply-active .chat-attachment-toolbar{grid-row:3!important}

.chat-original-quality{display:flex;align-items:center;gap:5px;font-size:.7rem;white-space:nowrap}.chat-original-quality input{width:16px;height:16px}.is-messaging #chat-selected-file:not(:empty){flex-wrap:wrap;max-height:140px!important}

/* team-messaging.css */
.team-head #team-refresh{display:block!important}.team-head+ #chat-error:empty{display:none}#team-search{width:100%;margin:12px 0;min-height:40px;font-size:16px}#team-message-list{scroll-behavior:auto;overflow-anchor:none}.team-composer #business-chat-text{grid-column:1!important;grid-row:1!important}.team-composer>.btn{grid-column:2!important;grid-row:1!important;align-self:end}.team-head~.chat-code-strip>small{font-size:.75rem;color:#64748b}.team-head~.business-chat-layout .chat-bubble{flex:0 0 auto}.team-head~.business-chat-layout .chat-live-status{margin-left:auto;font-size:.7rem}.shell.is-team .chat-new-messages{align-self:center}.shell.is-team .chat-contacts-panel{overflow:auto}
@media(max-width:900px){.shell.is-team.chat-open #team-message-list{padding:14px 12px!important;min-height:0!important;flex:1 1 0;overflow:auto}.shell.is-team.chat-inbox .messaging-head>button[data-view="messaging"]{display:block!important}.shell.is-team .team-composer #business-chat-text{grid-column:1!important;font-size:16px}.shell.is-team .team-composer>.btn{grid-row:1!important;grid-column:2!important}.shell.is-team .chat-code-strip .chat-code-identity strong{font-size:.95rem!important}}
@media(max-width:900px){.shell.is-team.chat-inbox .messaging-head>button#team-refresh,.shell.is-team.chat-inbox .messaging-head>button[data-view="messaging"]:not(#chat-refresh){display:block!important}}

/* offline-mobile.css */
/* Offline dialogs and compact phone header */
#offline-panel .sync-centre,#offline-pin-setup .sync-centre{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;width:min(640px,100%);min-width:0;max-height:calc(100dvh - 32px);overscroll-behavior:contain;overflow-x:hidden;font-size:15px;line-height:1.45}
.offline-dialog-head{position:sticky;top:-20px;background:#fff;z-index:2;display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e4e9eb}
#offline-panel h2,#offline-pin-setup h2{font-family:inherit;font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.offline-dialog-head h2{flex:1;min-width:0}.offline-close{flex:0 0 44px;width:44px;height:44px;border:1px solid #d7dde5;border-radius:12px;background:#f3f6f9;color:#082440;font:26px system-ui}.offline-note{font-size:13px;color:#526371}.offline-intro{margin:12px 0}.offline-check-row>div{min-width:0;overflow-wrap:anywhere}
#offline-panel .sync-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#offline-panel .sync-actions>*{min-width:0;min-height:46px;font:600 14px/1.3 system-ui;padding:12px;text-align:center;display:grid;place-items:center}
#offline-pin-setup input{font-size:16px;width:100%;min-width:0}#offline-pin-setup .sync-actions{display:grid;grid-template-columns:1fr 1fr}#offline-pin-setup .sync-actions button{min-height:46px}
@media(max-width:620px){
#offline-panel,#offline-pin-setup{padding:8px;align-items:center;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
#offline-panel .sync-centre,#offline-pin-setup .sync-centre{width:100%;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;border-radius:16px;margin:0;font-size:14px}
.offline-dialog-head{top:-16px;padding:8px 0}#offline-panel h2,#offline-pin-setup h2{font-size:19px}#offline-checklist{margin:10px 0}.offline-check-row{padding:10px 0;gap:10px}.offline-check-row small{font-size:12px}.offline-check-row strong{font-size:14px}#offline-panel h3{font-size:16px}#offline-panel .sync-actions{margin:14px 0}#set-offline-pin,#renew-offline{grid-column:1/-1}
.shell:not(.is-messaging)>.topbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px;height:auto!important;min-height:0;flex:0 0 auto!important;font-family:system-ui,sans-serif}
.shell:not(.is-messaging)>.topbar>.brand{grid-column:1/3;font-size:15px;min-width:0;overflow-wrap:anywhere}
.shell:not(.is-messaging)>.topbar>.top-user{grid-column:3;font-size:11px;min-width:0;overflow-wrap:anywhere}
.shell:not(.is-messaging)>.topbar>.small-btn,.shell:not(.is-messaging)>.topbar>#offline-tools{min-width:0;width:100%;min-height:40px;padding:8px 5px;font:600 11px/1.2 system-ui;white-space:normal;margin:0}
.shell:not(.is-messaging)>.topbar>.messaging-shortcut{grid-row:2;grid-column:1}.shell:not(.is-messaging)>.topbar>#offline-tools{grid-row:2;grid-column:2}.shell:not(.is-messaging)>.topbar>#account-devices{grid-row:2;grid-column:3}
}

/* Fit synchronization and receipt dialogs inside the visible viewport. */
.sync-centre-backdrop{width:100%;max-width:100%;min-width:0;overflow:hidden}.sync-centre-backdrop>.sync-centre{min-width:0;width:min(760px,100%);max-width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-wrap:anywhere}
#sync-panel .sync-centre{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.45}#sync-panel h2{font-family:inherit;font-size:21px;line-height:1.25}#sync-panel .sync-actions{flex-wrap:wrap}#sync-panel .sync-actions>*{min-width:0;min-height:44px;white-space:normal}#sync-panel article{padding:14px;margin:12px 0;border:1px solid #d7dde5;border-radius:12px;background:#f8fafc}#sync-panel article small{color:#526371}
@media(max-width:620px){.sync-centre-backdrop{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}.sync-centre-backdrop>.sync-centre{width:100%;padding:16px;margin:0;border-radius:16px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#sync-panel h2{font-size:19px}#sync-panel .sync-centre{font-size:14px}#sync-panel .sync-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}#sync-panel .sync-actions>*{width:100%;padding:12px;font:600 14px/1.3 system-ui;text-align:center}#sync-panel article{padding:12px}#local-receipt-dialog .sync-centre{font-family:system-ui,sans-serif}}

/* stock-manager.css */
.stock-addon-summary,.stock-actions,.stock-addon-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.stock-addon-actions{justify-content:flex-end}.stock-manager-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.stock-count-lines>div{display:grid;grid-template-columns:1fr 130px auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e1e9e5}.stock-count-lines small,.stock-manager-metrics small,#stock-report-table small{display:block}.stock-count-record{border:1px solid #e1e9e5;padding:16px;border-radius:12px;margin:12px 0}.stock-count-record.approved{background:#eefaf1;border-color:#64b77c}.stock-count-record details{margin:12px 0}.stock-count-record summary{cursor:pointer}.stock-actions{justify-content:flex-start;margin-top:14px}#stock-dialog .sync-centre{max-width:520px;width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}#stock-count-form textarea{min-height:80px}#stock-count-form label{display:block;margin:12px 0}@media(max-width:640px){.stock-manager-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-addon-summary{align-items:stretch}.stock-addon-actions{width:100%;justify-content:flex-start}.stock-addon-actions .btn{flex:1}.stock-count-lines>div{grid-template-columns:1fr 100px}.stock-count-lines>div>button{grid-column:1/-1;justify-self:start}.stock-actions .btn{flex:1}#stock-dialog .sync-centre{padding:18px}}
.stock-planning-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}.stock-planning-filters label{min-width:180px;flex:1}.stock-planning-filters .input{display:block;width:100%}#stock-advanced-panel small{display:block;margin-top:5px;color:#53665d}#stock-advanced-panel .table-wrap{margin-top:14px}#stock-advanced-panel .stat strong{font-size:clamp(19px,3vw,28px)}@media(max-width:600px){.stock-planning-filters label{min-width:100%}.stock-planning-filters>.btn{width:100%}#stock-advanced-panel .stock-actions .btn{min-height:44px}}

/* past-sales.css */
.past-sales-backdrop{position:fixed;inset:0;z-index:1900;background:#08244099;display:grid;place-items:center;padding:16px}.past-sales-window,.past-receipt-window{background:white;color:#082440;border-radius:16px;width:min(800px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px}.past-receipt-window{width:min(580px,100%)}.past-sales-window>header,.past-receipt-window>header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:white;padding:12px 0;z-index:1}.past-sales-window h2,.past-receipt-window h2{margin:0}.past-sales-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.past-sales-filters label{flex:1;min-width:140px}.past-sales-filters .input{width:100%;display:block}.past-sale-row{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;text-align:left;background:white;color:#082440;border:1px solid #dce5e1;border-radius:10px;padding:14px;margin:8px 0;cursor:pointer;font:inherit}.past-sale-row span:last-child{text-align:right}.past-sale-row small,.past-sale-row b{display:block;margin-top:4px}.past-sale-row b{font-size:13px;color:#08754e}.past-sale-row:hover,.past-sale-row:focus-visible{border-color:#08754e;background:#f2faf5}.past-sales-pages,.past-receipt-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.past-receipt-actions{justify-content:flex-end}.history-receipt{max-width:520px;margin:auto}.history-receipt header,.history-receipt>p,.receipt-voided{text-align:center}.history-receipt-logo{display:block;max-width:110px;max-height:80px;margin:0 auto 10px}.history-receipt table{min-width:0;width:100%;font-size:14px}.history-receipt td,.history-receipt th{padding:8px 4px;white-space:normal}.receipt-voided{color:#b42318}@media(max-width:600px){.past-sales-backdrop{padding:8px}.past-sales-window,.past-receipt-window{padding:14px;max-height:calc(100dvh - 16px)}.past-sales-filters label{min-width:calc(50% - 10px)}.past-sales-filters>.btn{width:100%}.past-receipt-actions .btn{width:100%}}@media print{body.history-receipt-print>*{display:none!important}body.history-receipt-print>#past-receipt-dialog{display:block!important;position:static!important;background:white!important;padding:0!important}body.history-receipt-print .past-receipt-window{width:100%!important;max-height:none!important;overflow:visible!important;padding:6mm!important;border:0!important}body.history-receipt-print .past-receipt-window>header,body.history-receipt-print .past-receipt-actions{display:none!important}body.history-receipt-print .history-receipt,body.history-receipt-print .history-receipt *{visibility:visible!important}body.history-receipt-print .history-receipt{max-width:80mm!important;margin:0 auto!important}body.history-receipt-print table{font-size:10pt!important}body.history-receipt-print tr{break-inside:avoid}}

/* receipt-printing.css */
#pos-receipt-print-root{display:none}@media print{body.pos-receipt-print{background:white!important;height:auto!important;overflow:visible!important}body.pos-receipt-print>*{display:none!important}body.pos-receipt-print>#pos-receipt-print-root{display:block!important;position:static!important;inset:auto!important;background:white!important;width:100%!important;padding:5mm!important}body.pos-receipt-print #pos-receipt-print-root,body.pos-receipt-print #pos-receipt-print-root *{visibility:visible!important}body.pos-receipt-print #pos-receipt-print-root .receipt,body.pos-receipt-print #pos-receipt-print-root .history-receipt{position:static!important;inset:auto!important;width:100%!important;max-width:80mm!important;margin:0 auto!important;border:0!important;box-shadow:none!important;overflow:visible!important;padding:0!important}body.pos-receipt-print #pos-receipt-print-root table{min-width:0!important;width:100%!important;font-size:10pt!important}body.pos-receipt-print #pos-receipt-print-root th{background:white!important;color:black!important;border-bottom:1px solid black!important}body.pos-receipt-print #pos-receipt-print-root td{color:black!important;white-space:normal!important}body.pos-receipt-print #pos-receipt-print-root tr{break-inside:avoid}body.pos-receipt-print #pos-receipt-print-root button{display:none!important}}

.receipt-business-heading{text-align:center;border-bottom:1px solid #cbd5e1;padding:0 0 12px;margin-bottom:12px;overflow-wrap:anywhere}.receipt-business-heading h2{font-size:24px;font-weight:800;line-height:1.2;margin:0 0 7px}.receipt-business-heading p{margin:3px 0;line-height:1.4;font-size:13px}.receipt-business-heading .receipt-business-contact{font-size:12px}.receipt-business-heading img{max-width:80px;max-height:65px;object-fit:contain;margin-bottom:8px}@media print{.receipt-business-heading{border-bottom:1px solid #000!important;padding-bottom:3mm!important;margin-bottom:3mm!important;color:#000!important}.receipt-business-heading h2{font-size:18pt!important}.receipt-business-heading p{font-size:10pt!important}}

.receipt-print-time{text-align:center;font-size:10px;border-top:1px dashed #999;padding-top:8px;margin-top:12px}

@media print{body.pos-receipt-print #pos-receipt-print-root[data-paper="58mm"] .receipt,body.pos-receipt-print #pos-receipt-print-root[data-paper="58mm"] .history-receipt{max-width:48mm!important}body.pos-receipt-print #pos-receipt-print-root[data-paper="58mm"] table{font-size:8pt!important}body.pos-receipt-print #pos-receipt-print-root[data-paper="a4"] .receipt,body.pos-receipt-print #pos-receipt-print-root[data-paper="a4"] .history-receipt{max-width:180mm!important}}

/* simple-pos-tools.css */
.favourite-product-tile{position:relative;min-width:0}.favourite-product-tile .product{width:100%;height:100%;padding-right:36px}.favourite-product-tile:has(.product.hidden){display:none}.product-favourite{position:absolute;right:4px;top:4px;width:32px;height:32px;border:0;border-radius:7px;background:transparent;color:#64748b;font-size:25px;cursor:pointer}.product-favourite[aria-pressed="true"]{color:#b77900;background:#fff6d5}.product-favourite:focus-visible{outline:2px solid #188157}.quick-cash-amounts{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.quick-cash-amounts button{flex:1;padding:7px 5px;font-size:12px}.receipt-live-preview{margin-top:16px;border-top:1px solid #d7dde5;padding-top:12px}.receipt-live-preview summary{font-weight:700;cursor:pointer}.receipt-preview-content{background:#f1f5f9;padding:16px;margin-top:10px;max-height:480px;overflow:auto}.receipt-preview-content .history-receipt{background:#fff;margin:auto;padding:15px;max-width:302px}.receipt-preview-content[data-paper="58mm"] .history-receipt{max-width:220px}.receipt-preview-content[data-paper="a4"] .history-receipt{max-width:640px}.receipt-preview-content .receipt-print-time{margin:auto;max-width:640px}.mobile-sale-tools #frequent-products.active{background:#188157;color:white}@media(max-width:600px){.receipt-preview-content{padding:8px}.quick-cash-amounts button{min-height:36px}}

/* auth-usability.css */
.password-visibility{float:right;margin-top:5px;padding:4px 10px;min-height:30px}.confirmation-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.confirmation-actions button{flex:1;min-height:40px}.auth-box .field:has(.password-visibility){display:flow-root}.auth-box input[readonly]{background:#f1f5f9}@media(max-width:600px){.confirmation-actions{flex-direction:column}.auth-box .auth-tabs button{min-height:44px}}

/* business-tools.css */
.tool-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.tool-switches label{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #dce3e9;border-radius:8px}.tool-switches small{font-size:11px;color:#667085}.tools-tabs{display:flex;gap:6px;overflow-x:auto;padding:0 0 12px}.tools-tabs button{white-space:nowrap}.tools-tabs .active{background:#137552;color:white}.tool-panels{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.tool-component-row{display:grid;grid-template-columns:1fr 90px auto;gap:7px}.tool-records article{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #dce3e9}.tool-records strong,.tool-records small,.tool-records span{display:block;margin-bottom:5px}.tool-records article>div:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.business-tool-dialog{position:fixed;inset:0;z-index:210;background:rgba(8,24,40,.65);display:grid;place-items:center;padding:14px}.business-tool-dialog>section{width:min(720px,96vw);max-height:94dvh;overflow:auto;background:white;border-radius:14px;padding:18px}.business-tool-dialog header{display:flex;justify-content:space-between;align-items:center}.business-tool-dialog h2{margin:0 0 12px}.business-tool-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.business-tool-dialog .field{margin-bottom:10px}.tool-payment-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:9px}.tool-payment-row>label{display:grid;gap:4px}.tool-payment-row>span{font-size:12px;color:#667085;align-self:end}.tool-sale-lines>div{display:grid;grid-template-columns:1fr auto;gap:8px;padding:9px 0;border-bottom:1px solid #e2e8f0}.tool-sale-lines label{grid-column:1/-1}.tool-sale-total{display:flex;justify-content:space-between;font-size:20px;padding:14px 0}.tool-return-lines>label{display:grid;grid-template-columns:1fr 90px;gap:10px;align-items:center;padding:9px 0}.tool-return-lines textarea{grid-column:1/-1}.tool-kitchen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.tool-ticket{padding:14px;border:1px solid #dce3e9;border-top:5px solid #c89221;border-radius:9px}.tool-ticket header span{display:block;color:#64748b;margin-top:4px}.tool-ticket.ready,.tool-ticket.paid{border-top-color:#17825c}.tool-ticket.cancelled{opacity:.65}.tool-ticket button{margin:4px 4px 0 0}.tool-order-link{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tool-order-link input{flex:1;min-width:220px}.business-tools-settings .page-head{display:flex;justify-content:space-between;gap:10px}#advanced-checkout{margin-top:8px;width:100%}@media(max-width:760px){.tool-switches,.tool-panels{grid-template-columns:1fr}.tool-kitchen{grid-template-columns:1fr}.tool-records article{flex-direction:column}.business-tool-dialog{padding:5px}.business-tool-dialog>section{max-height:98dvh;padding:14px}.tool-component-row{grid-template-columns:1fr 70px auto}.tool-payment-row{gap:8px}.tool-switches label{min-height:44px}}

.business-tool-dialog>section{overscroll-behavior:contain}

#advanced-sales-tools{margin-top:8px}#advanced-sales-tools summary{cursor:pointer;font-weight:600;padding:7px 0;color:#136b4b}#advanced-sales-tools .btn{width:100%;margin-top:6px}

.tool-history-search{display:grid;grid-template-columns:minmax(180px,1fr) minmax(100px,160px) auto;align-items:end;gap:10px;margin-bottom:14px}.tool-history-search .field{min-width:0}.tool-history-search .error{grid-column:1/-1;margin:0}.tool-history-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;flex-wrap:wrap}@media(max-width:600px){.tool-history-search{grid-template-columns:minmax(0,1fr) minmax(90px,120px)}.tool-history-search>.btn{grid-column:1/-1}.tool-history-footer>.btn{width:100%}}

/* retail-stock.css */
.retail-family-hidden{display:none!important}.retail-variant-name{display:block;font-size:11px;line-height:1.3;color:#536575;margin-top:5px}.sales-toolbar #retail-family-filter{max-width:220px}@media(max-width:600px){.sales-toolbar #retail-family-filter{max-width:none;width:100%}}

.retail-label-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.retail-label-controls label{display:flex;align-items:center;gap:8px}.barcode-label-dialog{grid-template-rows:auto auto auto minmax(120px,1fr) auto}body[data-label-price="hide"] .barcode-label>b{display:none!important}body[data-label-paper="58mm"] .barcode-print-sheet{width:54mm!important;grid-template-columns:1fr!important;padding:0!important}body[data-label-paper="80mm"] .barcode-print-sheet{width:76mm!important;grid-template-columns:1fr!important;padding:0!important}body[data-label-paper="58mm"] .barcode-label,body[data-label-paper="80mm"] .barcode-label{min-height:28mm}
