:root{--blue:#1468e7;--blue-dark:#0d4fbb;--ink:#172438;--muted:#708198;--surface:#fff;--line:#e2e9f2;--bg:#f4f7fb;--radius:17px;--shadow:0 6px 24px rgba(18,52,98,.06);color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{line-height:1.27;letter-spacing:-.025em;margin:0}h1{font-size:clamp(24px,2vw,31px);font-weight:750}h2{font-size:19px;font-weight:730}h3{font-size:16px;font-weight:680}p{margin:0 0 12px}small,.small{font-size:12px}.muted{color:var(--muted)}.tiny{font-size:10px;letter-spacing:.1em;font-weight:760;color:#6b81a3}.space-top{margin-top:18px}.stack{display:flex;flex-direction:column;gap:14px}.form-gap{margin-top:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid>*{min-width:0}label{display:flex;flex-direction:column;gap:6px;color:#384c66;font-weight:620;font-size:12px}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:42px;background:#fff;border:1px solid #d6e0ed;border-radius:10px;padding:10px 12px;color:#1e304a;outline:0;transition:border-color .12s ease,box-shadow .12s ease}input[type=file]{padding:8px!important}input:focus,select:focus,textarea:focus{border-color:#86b5ff!important;box-shadow:0 0 0 3px #cfe2ff99}textarea{resize:vertical}.check{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:13px;font-weight:500}.check input{width:17px;height:17px;accent-color:var(--blue);flex-shrink:0}.btn{border:1px solid transparent;border-radius:10px;padding:10px 15px;display:inline-flex;gap:6px;justify-content:center;align-items:center;text-align:center;line-height:1.35;font-weight:650;white-space:normal;min-height:41px;text-decoration:none!important;transition:background-color .12s ease,border-color .12s ease;vertical-align:middle}.btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #8fbdff;outline-offset:2px}.btn.primary{background:var(--blue);color:white}.btn.primary:hover{background:var(--blue-dark)}.btn.outline{background:white;border-color:#cedbec;color:#274e84}.btn.outline:hover{background:#f2f7ff}.btn.ghost{background:#f5f8fc;color:#50657f}.btn.whats{background:#138950;color:white}.btn.whats:hover{background:#0e7041}.btn.danger-outline{border-color:#f4c5c5;background:#fff8f8;color:#b62537}.btn.small{font-size:12px;min-height:32px;padding:6px 10px}.btn.block{width:100%}.btn:disabled{opacity:.48;cursor:not-allowed}.button-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.flex-between{display:flex;justify-content:space-between;align-items:center;gap:15px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:17px;box-shadow:var(--shadow);min-width:0}.panel h2{margin-bottom:15px}.panel.medium{max-width:690px}.panel hr{border:0;border-top:1px solid var(--line);margin:22px 0}.two-pane{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(0,1.45fr);gap:18px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:5px 0 22px}.section-heading p{color:var(--muted);margin:6px 0 0}.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.filters label{flex:1 1 150px;max-width:290px}.table-wrap{width:100%;overflow:auto;scrollbar-color:#cbd8e9 transparent}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th{text-align:left;background:#f5f8fc;color:#556880;font-weight:710;white-space:nowrap;border-bottom:1px solid var(--line);padding:12px 10px}td{padding:12px 10px;border-bottom:1px solid #edf1f6;vertical-align:middle}td small{display:block;color:#8390a4;margin-top:3px}tbody tr:hover{background:#f9fbfe}.table-wrap .btn{margin:1px}.badge{display:inline-block;border-radius:6px;padding:4px 9px;font-size:11px;line-height:1.3;white-space:nowrap;font-weight:720}.badge.green{background:#e0f7e9;color:#187346}.badge.blue{background:#e7f1ff;color:#1263d1}.badge.orange{background:#fff0de;color:#9a620e}.badge.violet{background:#eee8ff;color:#6843ab}.badge.grey{background:#edf0f4;color:#697588}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{border-radius:var(--radius);border:1px solid var(--line);background:white;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:7px}.kpi span{font-weight:650;color:#637992}.kpi strong{font-size:clamp(22px,2vw,28px);font-weight:800;letter-spacing:-.04em}.kpi small{color:#8998ab}.bar-track{background:#eaf0f8;height:5px;border-radius:10px;overflow:hidden;margin-top:6px;max-width:280px}.bar-track span{display:block;height:100%;background:#2c7be8;border-radius:10px}.details-title{font-weight:700;font-size:16px;cursor:pointer;list-style-position:inside}.details-title:hover{color:var(--blue)}.inline{display:inline}.image-strip{display:flex;gap:12px;flex-wrap:wrap}.image-tile{width:125px;border:1px solid var(--line);padding:8px;border-radius:10px;text-align:center}.image-tile img{width:100%;height:90px;object-fit:contain;background:white}.table-photo{width:44px;height:44px;object-fit:contain;background:white;border-radius:8px;border:1px solid #edf0f5}.img-missing{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:#eef3f9;color:#9cacbf}.alert{padding:13px 16px;border-radius:10px;margin-bottom:18px;font-weight:550}.alert.success{background:#e8faef;border:1px solid #bcebd0;color:#176c3d}.alert.error{background:#fff1f2;border:1px solid #f3ccd2;color:#a92335}.error-text{color:#b52c3c}.order-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.totals{margin:14px 0 10px  auto}.totals>div{display:flex;justify-content:space-between;gap:15px;max-width:340px;margin:8px 0 8px auto}.totals .grand{border-top:1px solid var(--line);font-weight:780;font-size:17px;padding-top:9px}.timeline{display:flex;flex-direction:column;gap:9px;margin-top:15px;padding-left:10px;border-left:2px solid #d2e2fa}.timeline>div{padding-left:10px}.logo-frame{display:grid;place-items:center;flex-shrink:0;overflow:hidden;background:white;border:1px solid #e5e9ef;border-radius:12px;aspect-ratio:1;box-shadow:0 1px 3px #1b366210}.logo-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff;padding:5px}.logo-placeholder{color:#1566e9;font-size:30px;font-weight:800}.brand-logo{width:55px;height:55px}.top-logo{height:40px;width:40px}.preview-logo{width:150px;height:150px}.logo-preview{display:flex;gap:20px;align-items:center;background:#fbfcff;border:1px solid #e2eaf3;border-radius:12px;padding:15px}.logo-preview>div{max-width:380px}.logo-preview p{margin-top:8px}.auth-outer{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(100%,420px);background:white;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 14px 60px #133a731c}.auth-card.wide{max-width:550px}.auth-card h2{margin:20px 0 6px}.auth-card .stack{margin:22px 0}.auth-card .small{margin-top:18px}.auth-brand{display:flex;gap:13px;align-items:center}.auth-brand h1{font-size:22px}.auth-brand p{color:var(--muted)}
/* Backend app shell */
.admin-shell{display:flex;min-height:100vh}.sidebar{width:245px;position:sticky;top:0;height:100vh;flex:none;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e1e8f2;padding:21px 13px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:8px 9px 24px;color:var(--ink);text-decoration:none!important}.sidebar-brand span{min-width:0}.sidebar-brand strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis}.sidebar-brand small{color:#8392a7;font-size:11px}.nav-list{display:flex;flex-direction:column;gap:3px;overflow:auto;min-height:0}.nav-item{display:flex;align-items:center;padding:10px 12px;border-radius:9px;font-size:13px;color:#50647d;font-weight:600;text-decoration:none!important}.nav-item:hover{background:#f1f6fe;color:var(--blue)}.nav-item.active{color:#0c55bc;background:#e8f1ff;font-weight:750}.sidebar-bottom{margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}.admin-work{min-width:0;flex:1}.topbar{display:flex;justify-content:space-between;align-items:center;height:73px;background:white;border-bottom:1px solid var(--line);padding:0 30px;position:sticky;top:0;z-index:5}.topbar-left{display:flex;gap:11px;align-items:center}.topbar-left strong{display:block;font-size:17px}.topbar-right{display:flex;align-items:center;gap:10px}.user-name{font-size:12px;color:#6b7890;margin:0 6px}.main-content{padding:26px 30px;max-width:1700px;margin:0 auto}.mobile-navigation{display:none}
/* PWA shop */
.shop-header{position:sticky;top:0;z-index:8;background:#fff;border-bottom:1px solid #e3eaf4;box-shadow:0 3px 13px #152d5012}.shop-head-inner{max-width:1280px;margin:auto;padding:10px 24px;min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:15px}.shop-brand{display:flex;align-items:center;gap:11px;min-width:0;color:var(--ink)!important;text-decoration:none!important}.shop-logo{height:55px;width:55px}.shop-brand h1{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px}.shop-brand small{font-size:11px;color:#8091a6}.shop-header-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.chip{background:#f5f9ff;border:1px solid #dfe9f7;color:#385879;font-size:12px;line-height:1.3;font-weight:670;border-radius:100px;padding:9px 13px;min-height:34px}.chip:hover{background:#eaf2ff}.count-bubble{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#e84961;color:white;font-size:10px}.shop-content{max-width:1280px;margin:0 auto;padding:24px}.shop-welcome{background:linear-gradient(112deg,#ecf5ff,#e4efff 60%,#eafaf3);border:1px solid #dce9fa;border-radius:22px;padding:33px 39px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.shop-welcome h2{font-size:clamp(24px,2.3vw,34px);max-width:580px;margin:8px 0 10px}.shop-welcome p{color:#687f9d;max-width:570px;margin-bottom:0}.eyebrow{font-size:11px;color:#1b6ad0;font-weight:780;letter-spacing:.1em}.welcome-illustration{height:140px;width:190px;flex:0 0 auto;display:grid;place-items:center}.welcome-illustration span{font-size:100px;filter:drop-shadow(0 10px 14px #7195ce33)}.search-shell{display:flex;gap:12px;align-items:center;margin-bottom:24px;background:white;padding:11px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.search-input{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:0 10px}.search-input span{font-size:26px;color:#6c8ebc}.search-input input{border:0!important;box-shadow:none!important;padding:8px!important;font-size:14px}.search-shell select{width:230px;flex:none;background:#f7faff}.shop-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}.shop-section-title p{color:#8090a4;margin:3px 0}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column}.product-card .product-image{height:194px;display:grid;place-items:center;background:#fff;border:0;border-bottom:1px solid #edf2f7;width:100%;padding:12px}.product-image img{width:100%;height:100%;object-fit:contain;object-position:center}.image-placeholder{display:grid;place-items:center;width:100%;height:100%;background:#f7f9fc;font-size:48px;color:#a9b5c5;border-radius:9px}.product-info{display:flex;flex-direction:column;flex:1;padding:14px 16px 16px;gap:8px}.product-category{font-size:11px;color:#8292a7;font-weight:640}.product-title{background:none;border:0;padding:0;text-align:left;line-height:1.4;font-size:14px;font-weight:700;color:#1c2d49;min-height:38px}.product-title:hover{color:var(--blue)}.price-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.price-line strong{font-size:19px;color:#1059c5}.price-line del{color:#9eabba;font-size:12px}.promo-ribbon{font-size:11px;color:#187348;background:#e7f8ef;border-radius:6px;padding:4px 8px;align-self:flex-start}.product-actions{display:flex;gap:8px;margin-top:auto;padding-top:7px}.product-actions .btn{flex:1}.bottom-space{height:95px}.cart-bottom{position:fixed;left:0;right:0;bottom:0;z-index:7;background:white;border-top:1px solid var(--line);box-shadow:0 -5px 22px #223e691c}.cart-bottom-inner{max-width:1280px;margin:0 auto;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.cart-bottom-inner>div:first-child{display:flex;flex-direction:column}.cart-bottom-inner strong,.cart-bottom-inner b{font-size:14px}.cart-bottom-inner span{font-size:15px;font-weight:760;color:#1263d7}.floating-whatsapp{position:fixed;right:24px;bottom:92px;z-index:7;display:flex;align-items:center;gap:8px;background:#169857;color:white;border-radius:99px;padding:12px 17px;box-shadow:0 8px 25px #15845248;font-weight:700;text-decoration:none!important}.floating-whatsapp:hover{color:white;background:#0d7d46}.modal{border:1px solid #e4ebf4;border-radius:19px;box-shadow:0 20px 80px #132f5870;padding:26px;width:min(95vw,730px);max-height:min(90vh,900px);overflow:auto;color:var(--ink)}.modal::backdrop{background:#10243b8a;backdrop-filter:blur(2px)}.modal h2{font-size:24px}.modal-head{margin-bottom:20px}.modal-head h2{margin:3px 0 6px}.close-x{position:sticky;top:0;float:right;background:#f2f6fb;color:#55708e;border:0;border-radius:100%;height:34px;width:34px;font-size:23px;font-weight:400;z-index:1}.cart-line{display:flex;gap:13px;border-bottom:1px solid var(--line);padding:12px 0;align-items:center}.cart-mini-photo{width:67px;height:67px;flex-shrink:0}.cart-mini-photo img{width:100%;height:100%;object-fit:contain}.cart-line-name{flex:1;min-width:0}.cart-line-name b{display:block}.cart-line-name small{display:block;color:var(--muted)}.cart-line>b{white-space:nowrap}.qty-control{display:inline-flex;gap:5px;align-items:center;background:#f2f6fc;border-radius:9px;margin-top:7px}.qty-control button{width:29px;height:27px;border:0;background:transparent;color:var(--blue);font-size:18px}.qty-control strong{min-width:24px;text-align:center}.cart-summary{background:#f6f9fe;border-radius:13px;padding:13px 16px;margin-top:16px}.cart-summary>div{display:flex;justify-content:space-between;padding:5px 0}.cart-summary>div.grand{border-top:1px solid #dce5f0;margin-top:6px;padding-top:10px;font-size:16px;font-weight:800}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;padding-top:20px}.detail-image{height:285px;background:white;border:1px solid var(--line);border-radius:15px;display:grid;place-items:center;overflow:hidden}.detail-image img{object-fit:contain;width:100%;height:100%}.detail-thumbnails{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.detail-thumbnails button{height:54px;width:54px;background:white;border:1px solid var(--line);border-radius:8px;padding:3px}.detail-thumbnails img{width:100%;height:100%;object-fit:contain}.detail-price{font-size:25px;font-weight:800;color:var(--blue);margin-top:18px}.detail-price del{font-size:14px;color:#9eabba}.detail-description{white-space:pre-wrap;margin:17px 0 22px;color:#5a6b81}.empty-state{text-align:center;padding:40px 15px;background:#fff;border:1px dashed #d0deef;border-radius:12px;color:#72859c}.toast{position:fixed;left:50%;bottom:93px;z-index:100;max-width:min(92vw,530px);transform:translate(-50%,30px);opacity:0;pointer-events:none;border-radius:10px;background:#1a334f;color:white;padding:12px 20px;box-shadow:0 8px 30px #18233c55;transition:opacity .18s,transform .18s;font-size:13px}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.bad{background:#ac283a}.notice-item{border:1px solid var(--line);padding:15px;border-radius:12px;margin-bottom:12px}.notice-item h3{margin:8px 0}.notice-item p{white-space:normal;color:#596b80;margin:10px 0}.notice-image{display:block;width:100%;max-height:230px;object-fit:contain;background:white;margin-bottom:12px}.history-item{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px;background:#fbfcff}.history-item h3{font-size:23px}.history-item .timeline{margin-bottom:16px}.timeline-row{font-size:12px;color:#65748a}.timeline-row span{color:#1b70d9}.timeline-row small{margin-left:10px;color:#8795a8}.success-symbol{margin:10px auto 17px;border-radius:100%;background:#e1f8eb;color:#138c4d;font-size:40px;font-weight:800;width:76px;height:76px;display:grid;place-items:center}.po-number{font-size:21px;letter-spacing:.02em;font-weight:800;padding:15px;text-align:center;background:#f1f6ff;border:1px dashed #b5c9e9;border-radius:10px;margin:20px 0}.modal#successDialog{text-align:center;max-width:500px}.modal#successDialog .totals{text-align:left;margin-bottom:20px}
@media(max-width:1150px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar{padding:0 22px}.main-content{padding:22px}.sidebar{width:216px}.two-pane{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{display:none}.topbar{height:66px;padding:0 16px}.topbar-right .ghost,.topbar-right .user-name{display:none}.topbar-left strong{font-size:15px}.main-content{padding:15px}.mobile-navigation{display:block;background:#fff;border-bottom:1px solid var(--line);padding:7px 15px}.mobile-navigation summary{cursor:pointer;font-size:13px;font-weight:700;color:#265484;padding:5px 0}.mobile-navigation nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px 0}.mobile-navigation nav a{padding:9px 11px;border-radius:8px;color:#375979;background:#f4f7fb;font-size:12px;font-weight:650}.panel{padding:15px}.section-heading{margin:7px 0 16px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-head-inner{padding:10px 16px}.shop-content{padding:15px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.welcome-illustration{width:105px;height:100px}.welcome-illustration span{font-size:75px}.shop-welcome{padding:20px}.shop-header-actions{gap:5px}.chip{font-size:11px;padding:8px 9px}.shop-brand h1{max-width:190px}.hide-small{display:none}.product-card .product-image{height:170px}}
@media(max-width:520px){body{font-size:13px}.section-heading h1{font-size:23px}.topbar-right .btn{min-width:56px}.kpi-grid,.kpi-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi{padding:14px}.kpi strong{font-size:20px}.kpi small{font-size:11px}.form-grid,.order-details{grid-template-columns:1fr}.filters label{flex-basis:100%;max-width:none}.filters .btn{flex:1}.shop-head-inner{align-items:center;gap:7px;flex-wrap:wrap;padding:9px 12px}.shop-brand{flex:1}.shop-logo{height:42px;width:42px}.shop-brand h1{font-size:15px;max-width:250px}.shop-brand small{font-size:10px}.shop-header-actions{width:100%;justify-content:space-between}.chip{flex:1;padding:7px 5px}.shop-welcome{padding:17px;margin-bottom:14px}.shop-welcome h2{font-size:22px}.shop-welcome p{font-size:12px}.welcome-illustration{width:55px}.welcome-illustration span{font-size:45px}.search-shell{position:sticky;top:103px;z-index:4;flex-wrap:wrap;padding:7px;gap:6px;margin-bottom:20px}.search-input{flex-basis:100%}.search-shell select{width:100%;min-height:37px}.product-grid{gap:10px}.product-card .product-image{height:125px;padding:8px}.product-info{padding:11px;gap:5px}.product-title{font-size:12px;min-height:36px}.price-line strong{font-size:16px}.product-category{font-size:10px}.product-actions{gap:5px}.product-actions .btn{font-size:11px;min-height:31px;padding:6px 5px}.cart-bottom-inner{padding:9px 12px}.cart-bottom-inner .btn{font-size:11px;padding:8px 10px}.cart-bottom-inner .button-row{gap:5px}.cart-bottom-inner>div:first-child b{font-size:12px}.cart-bottom-inner>div:first-child span{font-size:13px}.floating-whatsapp{right:13px;bottom:87px;padding:10px 12px}.modal{max-height:94vh;width:100vw;max-width:100vw;min-height:45vh;border-radius:18px 18px 0 0;margin:auto 0 0;padding:19px 17px}.modal::backdrop{backdrop-filter:none}.detail-grid{grid-template-columns:1fr;gap:13px}.detail-image{height:240px}.cart-mini-photo{width:50px;height:50px}.shop-section-title h2{font-size:18px}.logo-preview{flex-wrap:wrap}.logo-preview .preview-logo{width:110px;height:110px}.panel h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.history-lines{border-top:1px solid #e3e9f2;margin:11px 0;padding-top:7px}.history-item-line{display:flex;justify-content:space-between;gap:13px;font-size:12px;padding:5px 0}.history-item-line b{white-space:nowrap}

.shop-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;color:#8492a5;border-top:1px solid #dfe7f0;margin-top:32px;padding:24px 0}.shop-footer nav{display:flex;gap:18px;flex-wrap:wrap}.shop-footer a{color:#537295;font-size:12px}.legal-wrap{max-width:870px;margin:38px auto;padding:0 18px}.legal-wrap .panel{padding:30px}.legal-wrap h2{margin:24px 0 8px}.legal-wrap p{font-size:14px;color:#53657e}.legal-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}@media(max-width:520px){.legal-wrap{margin:14px auto}.legal-wrap .panel{padding:20px}}

/* Single-company upgrade: compact dashboard summary + filtered customer sales */
.dashboard-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.period-card{padding:19px 20px;min-width:0}
.period-card h2{font-size:16px;margin:0 0 14px}
.period-main{display:flex;align-items:baseline;gap:11px;margin-bottom:16px}
.period-main strong{font-size:35px;line-height:1.1;color:#142c53;font-weight:700;font-variant-numeric:tabular-nums}
.period-main span{font-size:12px;color:#6b7d96}
.period-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.period-stats>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#f5f8fc;border-radius:10px;font-size:12px}
.period-stats span{color:#57708c}
.period-stats b{color:#1b3a64;font-size:14px;font-weight:650}
.sales-total{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}
.sales-total b{font-size:23px;color:#174e9e;font-variant-numeric:tabular-nums}
.sales-total small{color:#718096}
.dashboard-filters{margin:18px 0}
.dashboard-filters>label{flex:1 1 155px;max-width:240px}
.subpanel{background:#f5f8fd!important;box-shadow:none!important;border:1px solid #e1e8f2;padding:15px!important}
.subpanel h3{margin:0}
.subpanel .check{margin:10px 0}
/* Customer shop: social and in-app campaign presentation */
.social-section{display:flex;flex-direction:column;gap:9px;margin:4px 0 19px}
.social-heading{color:#7388a4;font-size:11px;letter-spacing:0.12em;font-weight:700}
.social-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.social-pill{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#183152;background:#fff;border:1px solid #e0e7f1;border-radius:999px;padding:6px 13px 6px 7px;font-size:12px;font-weight:650;box-shadow:0 2px 7px #11315c0b;transition:background .15s,border-color .15s}
.social-pill:hover,.social-pill:focus-visible{border-color:#81adea;background:#f1f7ff}
.social-mark{width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:white;font-size:17px;font-weight:800}
.social-facebook{background:#1877f2;font-family:Arial,sans-serif}
.social-instagram{background:linear-gradient(135deg,#8a3ab9,#e95950,#fccc63);font-size:21px}
.social-tiktok{background:#101218;font-size:19px}
.social-youtube{background:#f31b2c;font-size:12px}
.campaigns-section{margin:0 0 23px}
.campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.campaign-card{background:linear-gradient(150deg,#fff,#f5f9ff);border:1px solid #dfe8f5;border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
.campaign-card h3{margin:0;font-weight:650;font-size:17px;color:#1b375d;overflow-wrap:anywhere}
.campaign-card p{margin:0}
.campaign-card .btn{margin-top:auto}
.video-modal{width:min(750px,94vw);max-width:750px}
.video-frame{width:100%;aspect-ratio:16/9;background:#0e1726;border-radius:12px;overflow:hidden;margin:14px 0}
.video-frame iframe{width:100%;height:100%;border:0;display:block}
@media(max-width:1080px){.dashboard-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.dashboard-periods{grid-template-columns:1fr;gap:10px}.period-card{padding:15px}.period-main{margin-bottom:10px}.period-main strong{font-size:29px}.period-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-total{align-items:flex-start}.dashboard-filters>label{max-width:none;flex-basis:100%}.campaign-grid{grid-template-columns:1fr}.campaign-card{padding:14px}.social-links{gap:6px}.social-pill{padding:6px 10px 6px 6px;font-size:11px}.social-mark{width:25px;height:25px}.video-modal{padding:16px}.video-frame{border-radius:8px}}

/* v3 order editing + customer CRUD — compact and mobile first */
.order-editor{scroll-margin-top:24px;border:1px solid #c9dafa;background:#fbfdff}
.order-editor h2{margin:0 0 5px}
.order-editor h3{margin:20px 0 9px;font-size:16px}
.order-editor .stack{gap:15px}
.order-edit-table{min-width:690px}
.order-edit-table td{vertical-align:middle}
.order-edit-table td:first-child{min-width:190px}
.order-edit-table input[type="number"]{width:120px;min-width:110px;max-width:150px;padding:9px 10px}
.order-edit-table .remove-check{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:650}
.order-edit-table .remove-check input{width:17px;height:17px;accent-color:#be314d}
.order-edit-table .low-stock{color:#a72c3f;font-weight:700}
.add-items{display:grid;gap:12px}
.add-item-row{display:grid;grid-template-columns:minmax(180px,3fr) minmax(100px,1fr) minmax(140px,1.3fr);gap:11px;align-items:end;padding:10px 12px;border-radius:12px;border:1px solid #e2eaf3;background:#fff}
.add-item-row label{min-width:0}
.add-item-row select{width:100%;min-width:0}
@media(max-width:700px){.order-editor{padding:15px}.add-item-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.add-item-row label:first-child{grid-column:1/-1}.order-edit-table{min-width:620px}}
@media(max-width:390px){.add-item-row{grid-template-columns:1fr}.add-item-row label:first-child{grid-column:auto}}

/* Compact, mobile-friendly customer PWA share control. */
.shop-header-actions .share-app{background:#e9f2ff;color:#1259b8;border-color:#c9dcfa}
.shop-header-actions .share-app:hover{background:#ddecff}
@media(max-width:520px){.shop-head-inner{flex-wrap:wrap;gap:7px}.shop-header-actions{width:100%;justify-content:flex-start}.shop-header-actions .chip{min-height:34px}}

/* v3.2 back-office sortable tables: compact, accessible, stable-width headings. */
.table-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;min-height:30px;padding:2px 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;white-space:nowrap;text-align:left;cursor:pointer}
.table-sort-button:hover,.table-sort-button.is-sorted{color:#155dc1}
.table-sort-button:focus-visible{outline:2px solid #2478e3;outline-offset:3px;border-radius:3px}
.table-sort-arrow{display:inline-block;flex:0 0 13px;width:13px;text-align:center;color:#6686b2;font-size:13px;line-height:1}
.table-sort-button.is-sorted .table-sort-arrow{color:#125dcc}
.order-list-filters>label{flex:1 1 165px;max-width:235px}
.order-list-filters .btn{align-self:end}
.order-filter-hint{margin:0 0 12px}
@media(max-width:650px){.order-list-filters>label{flex-basis:100%;max-width:none}.table-sort-button{min-height:36px}}

/* v3.2.2: graceful logo/product image fallback; original white logo treatment retained */
.logo-frame {position:relative;}
.logo-frame .logo-fallback {display:none;position:absolute;inset:0;place-items:center;background:#fff;color:#1263dc;font-size:24px;font-weight:800;}
.logo-frame.logo-missing .logo-fallback {display:grid;}
.photo-holder {display:block;position:relative;width:100%;height:100%;}
.photo-holder img {display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.photo-holder .image-fallback {display:none;position:absolute;inset:0;place-items:center;background:#f7f9fc;color:#9cabbe;font-size:36px;}
.photo-holder.image-unavailable .image-fallback {display:grid;}

/* Campaigns: compact mobile-friendly eligible selection and weekday chips */
[hidden]{display:none!important}
.weekday-grid{display:flex;gap:8px;flex-wrap:wrap}
.weekday-option{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe5f2;border-radius:9px;padding:9px 11px;background:#f6f9fe;font-weight:650}
.target-panel{border:1px solid #e2eaf4;background:#fbfdff;border-radius:13px;padding:16px}
.target-search{width:100%;margin:9px 0}
.target-list{max-height:260px;overflow:auto;border:1px solid #e1e9f3;border-radius:9px;background:white;padding:5px}
.target-option{display:flex;gap:10px;align-items:center;padding:9px 10px;cursor:pointer;border-bottom:1px solid #f0f3f7}
.target-option:last-child{border:0}
.target-option:hover{background:#f1f6ff}
.target-option span{min-width:0;overflow-wrap:anywhere}
.target-option small{color:#73839a}
.tier-grid{display:grid;gap:10px}
.tier-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e5ecf5;border-radius:11px}
@media(max-width:660px){.tier-row{grid-template-columns:1fr}.target-list{max-height:220px}}

/* v5 category filters, banner, POS and purchasing */
.pwa-banner{width:100%;background:white;border-radius:20px;overflow:hidden;margin:10px 0 26px;border:1px solid #d8e5f6}.pwa-banner img{width:100%;max-height:340px;object-fit:contain;display:block;margin:auto}.search-shell{flex-wrap:wrap}.search-shell select{min-width:180px;flex:1}.pos-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.pos-quick{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}.pos-quick button{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #d9e3f2;border-radius:13px;padding:10px;gap:8px;background:#fff;min-height:105px;cursor:pointer}.pos-quick img{width:88px;height:72px;object-fit:contain}.pos-quick span{font-weight:700;font-size:12px}.pos-total{font-size:26px;color:#145ac7}.pos-cart-list{max-height:48vh;overflow:auto}.pos-cart-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e5ebf4;padding:11px 0}.pos-cart-row input{width:74px}.pos-payments-row{display:flex;gap:8px;align-items:end}.pos-payments-row>*{flex:1;min-width:70px}@media(max-width:800px){.pos-grid{grid-template-columns:1fr}.pos-quick{grid-template-columns:repeat(auto-fill,minmax(95px,1fr))}}

/* v5.2 supplier PO multi-select picker and supplier registration */
.po-supplier-address{white-space:pre-wrap;min-width:160px;max-width:300px}
.po-tax-overview{border:1px solid #dbe7f5;background:#f5f9ff;padding:12px 14px;border-radius:12px;min-height:75px}
.po-tax-overview strong,.po-tax-overview div,.po-tax-overview small{display:block}
.po-tax-overview small{color:#677e99;font-size:12px}
.po-lines-heading{gap:12px;flex-wrap:wrap;margin:16px 0 12px}
.po-lines-heading h3{margin:0 0 3px}
.po-lines-heading p{margin:0}
.po-selected-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(100px,.8fr) minmax(150px,1fr) auto;gap:12px;align-items:end;border:1px solid #dce6f3;background:#f9fbff;border-radius:12px;padding:12px;margin:8px 0}
.po-selected-row strong,.po-selected-row small{display:block;overflow-wrap:anywhere}.po-selected-row small{font-size:12px;color:#687c95;margin-top:3px}
.po-selected-row label{font-size:12px;font-weight:650}.po-selected-row input{width:100%;min-width:70px}.po-selected-row [data-cost-inc-preview]{font-weight:400}
.po-picker-dialog{width:min(1280px,97vw);max-width:97vw;max-height:92vh;padding:0;border:1px solid #d3e1f4;border-radius:16px;box-shadow:0 22px 80px #12243a44;background:white;color:var(--ink)}
.po-picker-dialog::backdrop{background:rgba(18,32,55,.45)}
.po-picker-head,.po-picker-filters,.po-picker-actions,.po-picker-footer{padding:13px 17px;border-bottom:1px solid #e0e8f4}
.po-picker-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.po-picker-head h2{margin:0 0 3px}.po-picker-head p{margin:0}
.po-picker-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(105px,1fr));gap:10px;background:#f7faff}
.po-picker-filters label{font-size:12px;font-weight:650;min-width:0}.po-picker-filters input,.po-picker-filters select{width:100%;margin-top:4px}
.po-picker-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.po-picker-actions .check{margin-right:8px}.po-picker-actions #poPickerPage{margin-left:auto}
.po-picker-table-wrap{overflow:auto;max-height:52vh}.po-picker-table{border-collapse:collapse;width:100%;min-width:860px;font-size:12px}
.po-picker-table th{background:#eaf3ff;position:sticky;top:0;z-index:1;white-space:nowrap}.po-picker-table td,.po-picker-table th{padding:7px 9px;border-bottom:1px solid #e0e9f3;text-align:left}
.po-picker-table tr:nth-child(even){background:#f7faff}.po-picker-table tr.is-selected{background:#e4f1ff}
.po-picker-thumb{height:38px;width:38px;object-fit:contain;background:#fff;border:1px solid #dae3ed;border-radius:6px}.po-picker-no-photo{display:block;font-size:10px;color:#8797a7;width:38px}
.po-picker-sku{display:block;font-size:11px}.po-picker-num{width:95px;min-width:80px;padding:7px;border:1px solid #cad9ec;border-radius:7px}
.po-picker-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:0}.po-empty{text-align:center;padding:25px!important;color:#778ba2}
@media(max-width:850px){.po-picker-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.po-selected-row{grid-template-columns:1fr 1fr}.po-selected-row>div:first-child{grid-column:1/-1}.po-picker-dialog{width:100vw;max-width:100vw;max-height:97vh;border-radius:14px 14px 0 0;margin:auto 0 0}.po-picker-table-wrap{max-height:49vh}}
@media(max-width:480px){.po-picker-head,.po-picker-filters,.po-picker-actions,.po-picker-footer{padding:9px 12px}.po-picker-filters{grid-template-columns:1fr 1fr;gap:6px}.po-picker-filters label:first-child{grid-column:1/-1}.po-picker-actions{font-size:11px}.po-picker-footer{flex-wrap:wrap}.po-picker-footer button{width:100%}}

/* Staff POS v5.4 staged: reference-layout UI, functional Qty × and Edit Cart. */
.pos-v54{--pos-border:#c9dafa;--pos-pale:#e6f1ff;--pos-blue:#0961e9;min-height:100vh;background:linear-gradient(135deg,#edf5ff,#f5f8fe 72%);color:#102447;font-size:14px}
.pos-v54 button,.pos-v54 input,.pos-v54 select{font-family:inherit}
.pos-v54 :focus-visible{outline:3px solid #2d81f8!important;outline-offset:2px}
.pos-v54 [hidden]{display:none!important}
.pos-v54 .pos-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 26px;background:#fff;border-bottom:1px solid #dbe8fa;box-shadow:0 2px 11px #2f70bd0d}
.pos-v54 .pos-brand{display:flex;align-items:center;gap:14px;color:#102b60;text-decoration:none}
.pos-v54 .pos-brand .logo-frame{height:54px;width:54px;flex:none}
.pos-v54 .pos-brand span:last-child{display:flex;flex-direction:column;gap:0;line-height:1.13}
.pos-v54 .pos-brand small{font-size:12px;letter-spacing:.07em;font-weight:800;color:#5c7497}
.pos-v54 .pos-brand strong{font-size:28px;letter-spacing:-.035em}
.pos-v54 .pos-top-actions{display:flex;align-items:center;gap:9px}
.pos-v54 .pos-operator{display:flex;align-items:center;gap:9px;margin-right:10px}
.pos-v54 .pos-operator>span:last-child{display:flex;flex-direction:column;gap:0;white-space:nowrap}
.pos-v54 .pos-operator small{color:#6b7d97}
.pos-v54 .pos-avatar{background:#edf4ff;border:1px solid #d5e3f5;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-size:24px}
.pos-v54 .pos-outline{border:1px solid var(--pos-border);border-radius:10px;padding:10px 13px;background:linear-gradient(#fff,#eef5ff);font-weight:730;color:#183b70;white-space:nowrap;text-decoration:none;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.pos-v54 .pos-outline:hover{background:#e5efff;text-decoration:none}
.pos-v54 .pos-layout{width:min(100%,1740px);padding:16px 26px 24px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:start;gap:16px}
.pos-v54 .pos-left-col{min-width:0;display:flex;flex-direction:column;gap:14px}
.pos-v54 .pos-card{background:#fff;border-radius:20px;box-shadow:0 6px 21px #2360b718;border:1px solid #d8e5f7;padding:20px 22px;min-width:0}
.pos-v54 h1,.pos-v54 h2{font-size:26px;letter-spacing:-.035em;margin:0 0 10px;font-weight:800;color:#0e234b}
.pos-v54 h3{font-size:18px;letter-spacing:-.025em;font-weight:800;margin:0 0 10px}
.pos-v54 .pos-products h1{margin-bottom:5px}
.pos-v54 .pos-search-label{font-weight:680;margin:0 0 8px;display:block}
.pos-v54 .pos-search-row{display:flex;gap:8px;align-items:center;margin-bottom:14px}
.pos-v54 .pos-search-row input{width:100%;flex:1;min-width:0;font-size:15px;padding:13px 16px;border:1px solid #a9c5f5;border-radius:10px;background:#fff;min-height:50px}
.pos-v54 #posCamera{width:100%;max-height:220px;object-fit:cover;border-radius:10px}
.pos-v54 .pos-products-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:485px;overflow-y:auto;align-content:start;padding:2px}
.pos-v54 .pos-products-grid>button{border:1px solid #d4e2f4;border-radius:10px;background:#fff;box-shadow:0 2px 5px #173f6b13;text-align:left;min-width:0;padding:0 0 5px;display:flex;flex-direction:column;overflow:hidden;cursor:pointer;color:#142238}
.pos-v54 .pos-products-grid>button:hover{border-color:#3a8efb;box-shadow:0 3px 14px #155fd632}
.pos-v54 .pos-products-grid>button img,.pos-v54 .pos-product-fallback{width:100%;height:88px;object-fit:cover;background:#e3ecf7;display:flex;align-items:center;justify-content:center;color:#8796ab;font-size:27px}
.pos-v54 .pos-products-grid>button strong{font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;padding:4px 7px 0}
.pos-v54 .pos-products-grid>button small{font-size:11px;line-height:1.2;padding:0 7px;font-weight:650;color:#23456c;min-height:24px}
.pos-v54 .pos-product-more{margin-top:10px}
.pos-v54 .pos-product-more summary{color:#1c63c1;font-weight:680;cursor:pointer;padding:8px 0}
.pos-v54 .pos-product-more .pos-products-grid{max-height:330px;margin-top:6px}
.pos-v54 .pos-left-bottom{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.9fr);gap:12px 16px}
.pos-v54 .pos-left-bottom h2{font-size:23px;margin-bottom:12px}
.pos-v54 .pos-sale-settings{min-width:0;padding-right:14px;border-right:1px solid #b9d1f4}
.pos-v54 .pos-payment-details{min-width:0;padding-left:3px}
.pos-v54 .pos-field-row{display:grid;grid-template-columns:minmax(90px,.9fr) minmax(0,1.35fr);gap:6px;align-items:center;font-weight:720;margin-bottom:8px}
.pos-v54 .pos-field-row>span:first-child{font-size:12px;min-width:0}
.pos-v54 .pos-field-row input,.pos-v54 .pos-field-row select,.pos-v54 .pos-field-stack input{min-width:0;width:100%;padding:8px 10px;height:42px;background:#fff;border:1px solid #acc7ed;border-radius:9px;color:#172d53}
.pos-v54 .pos-field-row select{appearance:auto}
.pos-v54 .pos-customer-search-box{display:flex;position:relative;min-width:0;align-items:center}
.pos-v54 #posCustomerSearch{padding-right:28px}
.pos-v54 #posCustomerClear{position:absolute;right:6px;border:0;background:transparent;color:#486ba0;font-size:18px;padding:4px 7px}
.pos-v54 .pos-customer-meta{display:flex;justify-content:space-between;gap:5px;color:#5b6d88;font-size:11px;margin:-2px 0 11px;align-items:center;min-width:0}
.pos-v54 #posCustomerName{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-v54 #posNewCustomer{border:0;color:#145ed1;background:transparent;font-weight:700;white-space:nowrap;font-size:11px;padding:2px}
.pos-v54 .pos-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:24;display:flex;flex-direction:column;min-width:235px;border:1px solid #bad2f2;border-radius:12px;background:white;box-shadow:0 11px 26px #16386b44;overflow:hidden;max-height:230px;overflow-y:auto}
.pos-v54 .pos-suggestions button{padding:9px 11px;border:0;border-bottom:1px solid #e3ebf5;text-align:left;display:flex;flex-direction:column;background:white;gap:0}
.pos-v54 .pos-suggestions button:hover,.pos-v54 .pos-suggestions button:focus{background:#dcecff}
.pos-v54 .pos-suggestions small{color:#647590}
.pos-v54 .pos-no-customer{padding:10px;color:#60728a;font-size:12px}
.pos-v54 .pos-field-stack{display:flex;flex-direction:column;font-size:12px;font-weight:740;gap:5px;margin-bottom:10px;min-width:0}
.pos-v54 .pos-field-stack input{font-weight:760;font-size:17px;border:2px solid #1f76ff}
.pos-v54 .pos-quick-tender{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.pos-v54 .pos-quick-tender button{border:1px solid #bbd0ec;background:white;border-radius:8px;padding:8px 2px;font-size:13px;font-weight:800}
.pos-v54 .pos-change{font-size:27px;line-height:1.05;font-weight:850;color:#138c4a}
.pos-v54 .pos-due-hint{color:#9b4d26;font-size:11px}
.pos-v54 .pos-gst-note{grid-column:1 / -1;background:#e1efff;border:1px solid #d0e4ff;color:#18539e;border-radius:11px;padding:11px 14px;font-size:12px;font-weight:680;margin-top:3px}
.pos-v54 .pos-gst-note:before{content:'ⓘ';font-size:17px;margin-right:9px}
.pos-v54 .pos-right{padding:16px 20px 18px}
.pos-v54 .pos-sale-header{display:flex;justify-content:space-between;align-items:center;gap:6px;border-bottom:1px solid #e2eaf7;padding-bottom:7px}
.pos-v54 .pos-sale-header h2{margin:0;font-size:25px}
.pos-v54 .pos-sale-header .pos-outline{min-height:35px;padding:6px 10px;white-space:normal;text-align:right}
.pos-v54 #posTopCustomer{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}
.pos-v54 .pos-cart-list{max-height:225px;min-height:85px;overflow:auto}
.pos-v54 .pos-empty-cart{text-align:center;padding:24px 10px;color:#7789a0}
.pos-v54 .pos-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(85px,.27fr);gap:10px;align-items:center;padding:6px 4px;border-bottom:1px solid #ebf0f9}
.pos-v54 .pos-cart-row.is-selected{background:#eff6ff;border-left:3px solid #116ce9;border-radius:7px}
.pos-v54 .pos-cart-select{display:flex;align-items:center;gap:8px;min-width:0;border:none;background:transparent;text-align:left;color:#182d54;padding:3px}
.pos-v54 .pos-cart-select img,.pos-v54 .pos-row-fallback{width:46px;height:43px;object-fit:cover;border-radius:7px;background:#e8f0fc;flex:none;display:flex;align-items:center;justify-content:center}
.pos-v54 .pos-cart-select span:last-child{display:flex;flex-direction:column;min-width:0;gap:1px}
.pos-v54 .pos-cart-select strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-v54 .pos-cart-select small{font-size:10px;color:#6982a0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pos-v54 .pos-line-quantity{display:flex;gap:0;background:#eff6ff;border:1px solid #bed4f6;border-radius:9px;height:36px;align-items:center;overflow:hidden}
.pos-v54 .pos-line-quantity button{border:0;background:transparent;padding:0 10px;font-size:20px;color:#1a5cb6;height:100%}
.pos-v54 .pos-line-quantity b{font-size:14px;min-width:23px;text-align:center}
.pos-v54 .pos-line-amount{text-align:right;font-size:14px;white-space:nowrap}
.pos-v54 .pos-totals{margin:8px 0 11px;display:flex;flex-direction:column;gap:3px}
.pos-v54 .pos-totals>div:not(.pos-small-tax){display:flex;justify-content:space-between;gap:8px;align-items:center}
.pos-v54 .pos-grand{margin-top:5px;background:linear-gradient(90deg,#ddecff,#d6e8ff);padding:11px 13px;border-radius:11px;font-size:16px}
.pos-v54 .pos-grand strong:nth-child(2){font-size:25px;color:#0b3779}
.pos-v54 #posGstBadge{border:1px solid #9fd8b7;border-radius:7px;padding:3px 7px;background:#e1faeb;color:#147b42;font-size:11px;white-space:nowrap}
.pos-v54 .pos-small-tax{font-size:11px;color:#56708d;text-align:right}
.pos-v54 .pos-split-title{font-size:18px;margin-top:6px;margin-bottom:7px}
.pos-v54 .pos-split-list{display:flex;flex-direction:column;gap:5px;max-height:180px;overflow:auto}
.pos-v54 .pos-payment-row{display:flex;align-items:center;gap:5px;background:#eff5ff;border:1px solid #c6d8f5;border-radius:9px;padding:5px 7px;min-height:40px}
.pos-v54 .pos-payment-row.is-active{border-color:#428afa;background:#e4f0ff}
.pos-v54 .pos-payment-row select{flex:1;min-width:0;max-width:210px;background:transparent;border:0;outline:0;font-weight:800;color:#163967;font-size:13px;padding:4px}
.pos-v54 .pos-payment-row input{width:100px;min-width:0;max-width:28%;margin-left:auto;border:1px solid #c6d7eb;background:#fff;height:30px;text-align:right;font-weight:800;border-radius:5px;padding:3px 7px;font-size:13px}
.pos-v54 .pos-payment-row button{border:0;background:transparent;color:#6f81a0;font-size:20px;padding:3px 6px}
.pos-v54 .pos-payment-icon{color:#238957;font-size:19px}
.pos-v54 .pos-payment-buttons{display:flex;gap:6px;margin:7px 0 12px}
.pos-v54 .pos-payment-buttons button{flex:1;min-width:0;background:linear-gradient(#fff,#eef5ff);border:1px solid #bdd1f1;padding:8px 4px;border-radius:9px;color:#174677;font-weight:750;font-size:12px}
.pos-v54 .pos-keyboard-note{color:#5f7a9e;font-size:11px;min-height:20px;margin-bottom:3px;cursor:pointer}
.pos-v54 .pos-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(54px,1fr));gap:8px}
.pos-v54 .pos-keypad button{background:linear-gradient(#f3f8ff,#d7e9ff);border:1px solid #b8d2f5;box-shadow:0 1px 1px #d8e4f9;min-height:54px;border-radius:11px;font-weight:800;font-size:30px;color:#09264d;padding:3px}
.pos-v54 .pos-keypad button:hover{background:#c7e0ff}
.pos-v54 .pos-keypad button:active{background:#a9d3ff;transform:translateY(1px)}
.pos-v54 .pos-keypad .pos-key-clear{grid-column:4;grid-row:2 / span 2;font-size:54px}
.pos-v54 .pos-keypad .pos-key-zero{grid-column:1 / span 2}
.pos-v54 .pos-keypad .pos-key-qty{grid-column:4;grid-row:4;font-size:17px;background:#d9eaff}
.pos-v54 .pos-edit-cart{width:100%;margin-top:8px;border:1px solid #aacbf7;background:linear-gradient(#e6f1ff,#d0e4ff);border-radius:10px;padding:10px;font-size:16px;font-weight:790;color:#0b3677}
.pos-v54 .pos-edit-cart:disabled{opacity:.55;cursor:not-allowed}
.pos-v54 .pos-checkout-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;margin-top:12px}
.pos-v54 .pos-checkout-actions>button{min-height:54px;font-weight:800;font-size:16px}
.pos-v54 .pos-pay-button{background:linear-gradient(160deg,#2787ff,#0759e8);color:white;border:0;border-radius:11px;padding:10px;font-weight:800}
.pos-v54 .pos-pay-button:disabled{opacity:.55;cursor:progress}
.pos-edit-dialog{width:min(96vw,750px)}.pos-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.pos-dialog-head .close-x{position:static;float:none}
.pos-edit-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dce6f3;padding:12px 2px}
.pos-edit-name{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.pos-edit-name strong{overflow:hidden;text-overflow:ellipsis}.pos-edit-name small{color:#7083a0}
.pos-edit-controls{display:flex;align-items:center;gap:6px}.pos-edit-controls button{border:1px solid #bdd1ec;background:#f0f6ff;border-radius:7px;padding:7px 9px;font-weight:800;min-height:36px}
.pos-edit-controls input{width:70px;text-align:center;border:1px solid #a7c5eb;border-radius:7px;min-height:36px}
.pos-edit-controls .pos-edit-delete{color:#a9273a;background:#fff2f3;border-color:#e9cbd0}
.pos-edit-footer{display:flex;justify-content:flex-end;margin-top:16px}
@media(max-width:1300px){.pos-v54 .pos-layout{padding:13px;gap:12px}.pos-v54 .pos-card{padding:16px}.pos-v54 .pos-products-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.pos-v54 .pos-topbar{padding:10px 14px}.pos-v54 .pos-field-row{grid-template-columns:minmax(85px,.9fr) minmax(0,1.3fr)}}
@media(max-width:1030px){.pos-v54 .pos-layout{grid-template-columns:1fr}.pos-v54 .pos-products-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.pos-v54 .pos-cart-list{max-height:260px}.pos-v54 .pos-topbar{flex-wrap:wrap}}
@media(max-width:650px){.pos-v54 .pos-products-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:370px}.pos-v54 .pos-products-grid>button img,.pos-v54 .pos-product-fallback{height:92px}.pos-v54 .pos-left-bottom{grid-template-columns:1fr}.pos-v54 .pos-sale-settings{border-right:0;border-bottom:1px solid #b9d1f4;padding:0 0 10px}.pos-v54 .pos-payment-details{padding:0}.pos-v54 .pos-brand strong{font-size:19px}.pos-v54 .pos-top-actions{width:100%;justify-content:space-between;flex-wrap:wrap}.pos-v54 .pos-operator{display:none}.pos-v54 .pos-layout{padding:9px;gap:9px}.pos-v54 .pos-card{padding:14px}.pos-v54 .pos-field-row{grid-template-columns:minmax(103px,.9fr) minmax(0,1.3fr)}.pos-v54 .pos-cart-row{grid-template-columns:minmax(0,1fr) auto 66px;gap:4px}.pos-v54 .pos-cart-select img,.pos-v54 .pos-row-fallback{width:34px;height:35px}.pos-v54 .pos-cart-select strong{font-size:11px}.pos-v54 .pos-line-quantity button{padding:0 6px}.pos-v54 .pos-line-amount{font-size:12px}.pos-v54 .pos-keypad{gap:6px}.pos-v54 .pos-keypad button{font-size:27px;min-height:58px}.pos-v54 .pos-keypad .pos-key-clear{font-size:45px}.pos-v54 .pos-payment-buttons{flex-wrap:wrap}.pos-v54 .pos-payment-buttons button{flex-basis:35%}.pos-v54 .pos-checkout-actions>button{font-size:13px}.pos-edit-item{flex-direction:column;align-items:stretch}}

/* v5.4.1: POS product results always visible and both left cards fill the checkout height. */
.pos-v54 .pos-product-photo{width:100%;display:block;position:relative;aspect-ratio:1.22/1;overflow:hidden;background:#e7f0fc}
.pos-v54 .pos-product-photo img,.pos-v54 .pos-product-photo .pos-product-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;object-fit:cover;background:#e6eef9}
.pos-v54 .pos-product-photo [hidden]{display:none!important}
.pos-v54 .pos-products-grid>button strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px;font-size:12px;padding-top:7px}
.pos-v54 .pos-products-grid>button small{margin-top:auto;padding-top:5px;padding-bottom:5px;min-height:26px;font-size:12px}
.pos-v54 .pos-product-heading{margin:3px 0 8px;font-size:15px}
.pos-v54 .pos-product-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0 9px}
.pos-v54 .pos-product-list-heading h3{margin:0;font-size:16px}
.pos-v54 .pos-product-list-heading span{color:#6380a0;font-size:12px;white-space:nowrap}
.pos-v54 .pos-product-more{margin-top:8px;min-height:0;display:flex;flex-direction:column}
.pos-v54 .pos-product-more .pos-products-grid{max-height:510px;min-height:80px;align-content:start;overflow-y:auto}
.pos-v54 .pos-products-empty{grid-column:1 / -1;border-radius:10px;border:1px dashed #bcd3f1;background:#f4f8ff;color:#496587;padding:15px;font-size:13px;line-height:1.6}
.pos-v54 .pos-load-more{margin-top:8px;align-self:center}
@media(min-width:1031px){
 .pos-v54 .pos-layout{align-items:stretch}
 .pos-v54 .pos-left-col{height:100%;min-height:0}
 .pos-v54 .pos-products{display:flex;flex-direction:column;flex:1 1 auto;min-height:330px}
 .pos-v54 .pos-products .pos-product-more{flex:1 1 auto}
 .pos-v54 .pos-products .pos-product-more .pos-products-grid{flex:1 1 auto;max-height:510px}
 .pos-v54 .pos-left-bottom{flex:0 0 auto;min-height:330px}
}
@media(max-width:650px){
 .pos-v54 .pos-product-photo{aspect-ratio:1.1/1}
 .pos-v54 .pos-product-more .pos-products-grid{max-height:410px}
}

/* v5.5 POS refund/exchange and manual-price controls. */
.pos-v54 .pos-heading-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pos-v54 .pos-heading-actions h1{margin:0 0 6px}
.pos-v54 .pos-refund-toggle{color:#9b2342;border-color:#ecc3d0;background:#fff3f6;font-weight:800}
.pos-v54 .pos-refund-toggle.is-active{background:#a52d4e;color:white;border-color:#a52d4e}
.pos-v54 .pos-refund-mode-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:#fef2f5;border:1px solid #f2c3d1;border-radius:10px;margin:8px 0}
.pos-v54 .pos-refund-mode-nav button{border:1px solid #deb4c3;background:#fff;border-radius:9px;padding:9px 12px;color:#7b2b48;font-weight:750;cursor:pointer}
.pos-v54 .pos-refund-mode-nav button.is-active{background:#a52d4e;color:white}
.pos-v54 .pos-refund-mode-nav span{font-size:12px;color:#8a5c69}
.pos-v54 .pos-refund-panel{border:1px solid #ecc3d0;border-radius:12px;padding:12px;background:#fff8fa;margin:8px 0}
.pos-v54 .pos-refund-title{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin-bottom:8px}
.pos-v54 .pos-refund-title strong{font-size:16px;color:#812343}
.pos-v54 .pos-refund-title span{font-size:12px;color:#9d6275}
.pos-v54 .pos-refund-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.pos-v54 .pos-refund-fields label{font-size:12px;font-weight:700;color:#5c3247}
.pos-v54 .pos-refund-fields input,.pos-v54 .pos-refund-fields select{display:block;width:100%;min-width:0;min-height:40px;margin-top:4px;background:white;border:1px solid #e1b8c7;border-radius:8px;padding:8px;color:#25344b}
.pos-v54 .pos-refund-warning{font-size:11px;color:#7b5062;line-height:1.5;margin:9px 0 0}
.pos-v54 .pos-return-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px dashed #e0bdc9}
.pos-v54 .pos-return-row span{display:flex;align-items:center;gap:6px}
.pos-v54 .pos-return-row span:first-child{display:flex;flex-direction:column;align-items:start;min-width:0}
.pos-v54 .pos-return-row b{font-size:12px}
.pos-v54 .pos-return-row small{font-size:11px;color:#886777}
.pos-v54 .pos-return-row button{background:#fff;border:1px solid #d7a5b4;border-radius:7px;min-width:31px;min-height:32px;cursor:pointer;color:#993a53}
.pos-v54 .pos-refund-summary{padding:8px 11px;margin:8px 0;border:1px solid #ead0d9;background:#fff8fa;border-radius:10px}
.pos-v54 .pos-refund-summary>div{display:flex;justify-content:space-between;gap:8px;padding:3px 0}
.pos-v54 .pos-refund-net{border-top:1px solid #dfc4cf;font-weight:850;font-size:17px;margin-top:5px;padding-top:8px!important;color:#68253c}
.pos-v54 .pos-manual-price-dialog input{display:block;width:100%;margin-top:6px;min-height:44px}
.pos-v54 .pos-manual-price-dialog{max-width:440px}
@media(max-width:650px){.pos-v54 .pos-refund-fields{grid-template-columns:1fr}.pos-v54 .pos-heading-actions{flex-wrap:wrap}.pos-v54 .pos-refund-mode-nav button{flex:1 1 140px}}

/* v5.6 POS: compact fixed left panels, pageable product browser, staff receipt center. */
@media (min-width:1031px) {
  .pos-v54 .pos-left-col{display:grid;grid-template-rows:minmax(365px,1fr) minmax(310px,.78fr);align-items:stretch;height:100%;gap:14px}
  .pos-v54 .pos-products{min-height:0;overflow:hidden}
  .pos-v54 .pos-left-bottom{min-height:0;align-self:stretch;align-content:start}
  .pos-v54 .pos-product-more{min-height:0;overflow:hidden;display:flex;flex-direction:column}
  .pos-v54 #posResults{flex:1 1 auto;overflow:auto;min-height:0;max-height:none}
}
.pos-v54 .pos-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 2px;font-size:12px;font-weight:700;color:#42668d}
.pos-v54 .pos-pages button{border:1px solid #b9d1f1;background:#f5f9ff;border-radius:8px;color:#215a99;min-height:33px;padding:6px 14px;font-weight:700;cursor:pointer}
.pos-v54 .pos-pages button:disabled,.pos-pages button:disabled{opacity:.4;cursor:default}
.pos-v54 .pos-load-more{margin-top:8px;min-height:37px;width:100%;font-weight:750;color:#145fba}
.pos-v54 .pos-product-list-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 7px}
.pos-v54 .pos-product-list-heading h3{margin:0;font-size:14px}
.pos-v54 .pos-product-list-heading span{font-size:11px;color:#5d7a9b}
.pos-v54 .pos-group-icon{display:flex;align-items:center;justify-content:center;width:100%;height:88px;background:linear-gradient(140deg,#e9f4ff,#c8ddfc);color:#175aaa;font-size:40px}
.pos-v54 .pos-products-grid .pos-group-tile{background:#fff}
.pos-v54 .pos-payment-method{font-weight:800;color:#173f70;font-size:14px;flex:1}
.pos-catalog-dialog{width:min(97vw,1080px);max-height:93vh;padding:22px;overflow:auto}
.pos-catalog-dialog .pos-products-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;max-height:65vh;overflow:auto}
.pos-catalog-dialog .pos-products-grid>button{min-width:0;display:flex;flex-direction:column;text-align:left;background:white;border:1px solid #cadaf1;border-radius:10px;overflow:hidden;cursor:pointer;padding:0 0 7px}
.pos-catalog-dialog .pos-products-grid>button img,.pos-catalog-dialog .pos-product-fallback{display:flex;width:100%;height:115px;object-fit:cover;align-items:center;justify-content:center;background:#dfe9f8}
.pos-catalog-dialog .pos-products-grid>button strong,.pos-catalog-dialog .pos-products-grid>button small{padding:4px 7px 0;font-size:12px;white-space:normal}
.pos-catalog-dialog .pos-pages{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:15px}
.pos-catalog-dialog .pos-pages button{border:1px solid #bdd0ed;border-radius:8px;background:#eaf3ff;padding:9px 18px;font-weight:750}
.pos-receipts-dialog{width:min(96vw,1020px);max-height:92vh;padding:22px;overflow:auto}
.pos-receipts-dialog .pos-receipt-search{display:flex;gap:10px;align-items:center;margin:14px 0}
.pos-receipts-dialog .pos-receipt-search input{flex:1;min-width:0}
.pos-receipt-list{max-height:63vh;overflow:auto}
.pos-receipt-entry{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #e0e9f6;padding:10px 0}
.pos-receipt-entry>div{flex:1;display:flex;flex-direction:column;min-width:0;gap:4px}
.pos-receipt-entry>div small{color:#6a7c90;font-size:12px}
.pos-receipt-entry>button{border:1px solid #b8cdeb;border-radius:8px;background:#f3f8ff;color:#174c8b;padding:8px 12px;cursor:pointer}
.pos-receipt-item-table{width:100%;border-collapse:collapse;margin:10px 0}
.pos-receipt-item-table td,.pos-receipt-item-table th{border-bottom:1px solid #dce8f5;padding:9px;text-align:left}
.pos-receipt-void{display:flex;flex-direction:column;gap:10px;background:#fff1ef;border:1px solid #e7b5b5;border-radius:12px;padding:14px;margin-top:12px}
.pos-receipt-void label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.pos-void-action{background:#b72e31;color:#fff;border:0;padding:10px;border-radius:9px;align-self:flex-start;font-weight:800}
#posReceiptPrintPreview iframe{width:100%;height:min(75vh,900px);border:1px solid #cad8ee;background:#fff;border-radius:12px;display:block;margin-top:10px}
@media(max-width:1030px){.pos-v54 .pos-left-col{display:flex;height:auto}.pos-v54 .pos-products{min-height:350px}.pos-v54 .pos-left-bottom{min-height:310px}}
@media(max-width:650px){.pos-catalog-dialog .pos-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-receipt-entry{flex-wrap:wrap}.pos-receipt-entry>div{flex-basis:100%}.pos-v54 .pos-left-bottom{min-height:auto}}

@media(min-width:1031px){
  .pos-v54 .pos-left-col{grid-template-rows:minmax(370px,1fr) minmax(300px,auto)}
  .pos-v54 .pos-products{max-height:520px;min-height:420px}
  .pos-v54 .pos-left-bottom{min-height:310px}
  .pos-v54 .pos-product-more.is-compact{flex:0 0 auto}
  .pos-v54 .pos-product-more.is-compact #posResults{display:none}
}

/* v5.6.1 POS search/checkout layout: one shared paginated product surface. */
.pos-v54 .pos-current-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.pos-v54 .pos-sale-header{min-height:49px}
.pos-v54 .pos-refund-toggle{padding:7px 13px;min-height:37px}
.pos-v54 .pos-products{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.pos-v54 #posSearchResultsPanel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;margin-top:14px}
.pos-v54 #posResults{display:grid;align-content:start;flex:1 1 auto;overflow-y:auto;max-height:none;min-height:120px}
.pos-v54 .pos-inline-pager{flex:none;min-height:37px;margin:9px 0 0}
.pos-v54 .pos-inline-pager[hidden]{display:none!important}
.pos-v54 .pos-right{display:flex;flex-direction:column;min-height:0}
.pos-v54 .pos-cart-list{flex:1 1 auto;min-height:175px;max-height:340px;overflow-y:auto}
.pos-v54 .pos-payment-buttons{margin-bottom:11px}
.pos-v54 .pos-checkout-actions{margin-top:11px}
.pos-v54 .pos-keypad{margin-top:4px}
@media(min-width:1031px){
 .pos-v54 .pos-left-col{display:grid;grid-template-rows:minmax(400px,1fr) minmax(300px,auto);align-self:stretch;height:auto}
 .pos-v54 .pos-products{max-height:none;min-height:400px}
 .pos-v54 .pos-left-bottom{align-self:stretch;min-height:300px}
 .pos-v54 #posResults{display:grid;max-height:none}
 .pos-v54 .pos-right{min-height:840px}
}
@media(max-width:1030px){.pos-v54 .pos-products{min-height:370px;max-height:640px}.pos-v54 .pos-right{min-height:auto}.pos-v54 .pos-cart-list{min-height:120px}}
@media(max-width:650px){.pos-v54 .pos-current-actions{gap:5px}.pos-v54 .pos-sale-header h2{font-size:20px}.pos-v54 .pos-cart-list{min-height:100px}.pos-v54 #posResults{min-height:130px}}

.pos-v54 #posResults{grid-auto-rows:minmax(145px,auto)}
.pos-v54 .pos-quote-error{background:#fff1f2;border:1px solid #f4b9c2;border-radius:10px;padding:11px 13px;color:#952239;font-size:12px;margin:8px 0}
.pos-v54 .pos-quote-error[hidden]{display:none!important}
.pos-v54 .pos-quote-error strong{font-size:14px;display:block;margin-bottom:5px}
.pos-v54 .pos-quote-error span{display:block;line-height:1.5}
.pos-v54 .pos-quote-error>div{display:flex;gap:12px;align-items:center;margin-top:8px;flex-wrap:wrap}
.pos-v54 .pos-quote-error button{padding:6px 11px;border:1px solid #e4a2ad;border-radius:7px;background:white;color:#952239;font-weight:800}
.pos-v54 .pos-quote-error a{color:#952239;text-decoration:underline;font-weight:750}
@media(max-width:650px){.pos-v54 #posResults{grid-auto-rows:minmax(145px,auto)}}

/* v5.6.2: two-action discount selector and keypad-active numeric fields. */
.pos-v54 .pos-discount-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;min-width:0}
.pos-v54 .pos-discount-switch button{min-height:43px;border:1px solid #aec8ee;background:#f5f9ff;border-radius:9px;color:#124377;font-weight:900;font-size:23px;line-height:1;cursor:pointer}
.pos-v54 .pos-discount-switch button.is-active{background:#176bed;border-color:#176bed;color:white;box-shadow:0 2px 7px #176bed36}
.pos-v54 .pos-discount-switch button:focus-visible{outline:3px solid #79b9ff;outline-offset:2px}
.pos-v54 .pos-discount-input{display:flex;align-items:center;position:relative;min-width:0}
.pos-v54 #posDiscountValue{padding-right:39px;font-size:17px;font-weight:800}
.pos-v54 #posDiscountValue:disabled{background:#f3f6fb;color:#6c7e98;cursor:not-allowed}
.pos-v54 .pos-discount-unit{position:absolute;right:10px;font-weight:850;font-size:16px;color:#436c9f;pointer-events:none}
.pos-v54 .pos-field-row input.is-keypad-target,.pos-v54 .pos-field-stack input.is-keypad-target{border:2px solid #146ef5;box-shadow:0 0 0 2px #146ef525}
@media(max-width:650px){.pos-v54 .pos-discount-switch button{min-height:46px;font-size:22px}}


/* v5.6.3 — compact settings; return the reclaimed space to the product gallery. */
.pos-v54 .pos-left-bottom{row-gap:0;align-content:start;padding:15px 20px;min-height:0;align-self:stretch}
.pos-v54 .pos-sale-settings,.pos-v54 .pos-payment-details{padding-top:0;min-width:0}
.pos-v54 .pos-left-bottom .pos-field-row{margin-bottom:7px}
.pos-v54 .pos-left-bottom .pos-customer-meta{margin-bottom:9px}
.pos-v54 .pos-left-bottom .pos-field-stack{margin-bottom:8px}
.pos-v54 .pos-gst-note{display:none!important}
.pos-v54 .pos-products-grid{align-content:start}
/* Delete uses amber/orange; C has a deeper amber treatment to distinguish clearing from backspace. */
.pos-v54 .pos-keypad button.pos-key-delete{
  background:linear-gradient(160deg,#fff7e9,#ffd99e);
  border:1px solid #eab05f;color:#814005;
  font-size:16px;font-weight:900;letter-spacing:.01em;
}
.pos-v54 .pos-keypad button.pos-key-delete:hover{background:#ffcd7a}
.pos-v54 .pos-keypad button.pos-key-clear{
  background:linear-gradient(160deg,#ffe6a3,#ffbe5c);
  border:1px solid #d99326;color:#713900;
  font-size:54px;font-weight:900;
}
.pos-v54 .pos-keypad button.pos-key-clear:hover{background:#ffb44c}
.pos-v54 .pos-keypad button.pos-key-delete:focus-visible,
.pos-v54 .pos-keypad button.pos-key-clear:focus-visible{outline:3px solid #a35208;outline-offset:2px}
@media(min-width:1031px){
  .pos-v54 .pos-left-col{grid-template-rows:minmax(470px,1fr) auto;gap:14px}
  .pos-v54 .pos-products{min-height:470px}
  .pos-v54 .pos-left-bottom{min-height:0;max-height:none}
  .pos-v54 #posResults{min-height:165px;max-height:none}
}
@media(max-width:1030px){
  .pos-v54 .pos-left-bottom{min-height:0}
  .pos-v54 .pos-products{min-height:420px}
}
@media(max-width:650px){
  .pos-v54 .pos-left-bottom{padding:15px;row-gap:9px}
  .pos-v54 .pos-products{min-height:400px}
  .pos-v54 .pos-keypad button.pos-key-delete{font-size:13px}
  .pos-v54 .pos-keypad button.pos-key-clear{font-size:45px}
}

/* v5.6.4 – equal width discount actions; stable side-by-side left panels */
.pos-v54 .pos-field-row.pos-discount-mode-row {
  display:grid;grid-template-columns:minmax(90px,.9fr) minmax(0,1.35fr);
  align-items:center;column-gap:6px;width:100%;
}
.pos-v54 .pos-discount-mode-row .pos-discount-switch {
  width:100%;min-width:0;max-width:none;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;
}
.pos-v54 .pos-discount-mode-row .pos-discount-switch>button {
  display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;max-width:none;min-height:48px;
  font-size:25px;line-height:1;box-sizing:border-box;
}
@media(min-width:1031px) {
  .pos-v54 .pos-layout {align-items:stretch}
  .pos-v54 .pos-left-col {
    display:grid;grid-template-rows:minmax(0,1fr) auto;
    align-self:stretch;height:100%;gap:14px;min-height:0;
  }
  .pos-v54 .pos-products {min-height:0;overflow:hidden;display:flex;flex-direction:column}
  .pos-v54 .pos-product-more {flex:1;min-height:0;overflow:hidden}
  .pos-v54 #posResults {max-height:none;min-height:0;flex:1;overflow-y:auto}
  .pos-v54 .pos-left-bottom {align-self:end;min-height:0;max-height:none}
}
@media(max-width:1030px) {
  .pos-v54 .pos-field-row.pos-discount-mode-row {grid-template-columns:minmax(95px,.9fr) minmax(0,1.35fr)}
}
@media(max-width:650px) {
  .pos-v54 .pos-field-row.pos-discount-mode-row {grid-template-columns:minmax(95px,.9fr) minmax(0,1.35fr)}
  .pos-v54 .pos-discount-mode-row .pos-discount-switch>button{min-height:50px;font-size:24px}
}

.checkout-error:not([hidden]){display:block;background:#fff3f4;border:1px solid #f0b8c0;color:#9c2337;border-radius:10px;padding:12px 14px;font-weight:700;line-height:1.5;}

/* v5.6.5 — accessible application warnings and confirmations */
.app-message-modal{border:0;background:transparent;padding:20px;width:min(520px,calc(100vw - 22px));max-width:520px;color:#13284a;overflow:visible}
.app-message-modal::backdrop{background:rgba(17,32,58,.58);backdrop-filter:blur(2px)}
.app-message-card{border:1px solid #cad9ef;border-radius:17px;background:#fff;box-shadow:0 28px 90px rgba(10,38,84,.25);overflow:hidden;font:inherit}
.app-message-header{display:flex;align-items:center;gap:12px;padding:19px 23px;border-bottom:1px solid #e5edfa;background:#f4f8ff}
.app-message-header h2{font-size:19px;font-weight:800;margin:0;color:#14284b}
.app-message-symbol{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-weight:900;color:#185cba;background:#dbeaff}
.app-message-symbol.is-danger{color:#aa2429;background:#ffe5e6}
.app-message-body{font-size:15px;line-height:1.6;white-space:pre-line;padding:20px 24px;margin:0;overflow-wrap:anywhere}
.app-message-buttons{display:flex;gap:10px;justify-content:flex-end;padding:14px 22px 20px}
.app-message-buttons button{font:inherit;font-size:14px;font-weight:700;border-radius:9px;padding:11px 18px;min-width:92px;cursor:pointer;border:1px solid #cad7ed;background:#f6f9fe;color:#1c3152}
.app-message-buttons .app-message-ok{background:#1268e6;border-color:#1268e6;color:white}
.app-message-buttons .app-message-ok.is-danger{background:#c4363b;border-color:#c4363b}
.app-message-buttons button:focus-visible{outline:3px solid #80b3ff;outline-offset:2px}
@media(max-width:520px){.app-message-body{padding:18px}.app-message-header{padding:16px}.app-message-buttons button{flex:1}}


/* v5.7 — wide back-office tables: user-selectable columns, no impact on data/CSV. */
.table-col-hidden{display:none!important}
.table-column-picker{margin:7px 0 12px;position:relative;display:inline-block;max-width:100%;z-index:2}
.table-column-picker>summary{list-style:none;cursor:pointer;background:#fff;border:1px solid #d0e0f4;border-radius:9px;color:#1d4d8c;font-size:13px;font-weight:750;padding:9px 15px;user-select:none}
.table-column-picker>summary::-webkit-details-marker{display:none}
.table-column-picker>summary:before{content:'▥';margin-right:8px}
.table-column-picker[open]>summary{border-color:#2e7be6;background:#edf5ff}
.table-column-menu{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:9px 16px;position:absolute;left:0;top:calc(100% + 5px);min-width:min(410px,85vw);max-width:min(540px,calc(100vw - 35px));max-height:min(60vh,440px);overflow:auto;background:white;border:1px solid #cedcf0;box-shadow:0 16px 35px #142e592b;padding:14px;border-radius:12px;z-index:40}
.table-column-hint{grid-column:1/-1;color:#56708b;font-size:12px;margin:0 0 3px}
.table-column-check{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;line-height:1.35;min-width:0;overflow-wrap:anywhere}
.table-column-check input{accent-color:#1267d9;width:17px;height:17px;flex:none}
.table-column-menu>button{grid-column:1/-1;justify-self:start;margin-top:5px}
@media(max-width:550px){.table-column-menu{grid-template-columns:1fr;min-width:min(270px,80vw)}}
