@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");:root{--ink:#172033;--muted:#697386;--line:#e8edf4;--blue:#2563eb;--blue-soft:#eff6ff;--green:#16a375;--red:#e5484d;--amber:#e89518;--surface:#fff;--bg:#f6f8fb}*{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body{margin:0;background:var(--bg);color:var(--ink);font-family:DM Sans,system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}.app-shell{min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;width:244px;padding:22px 14px;z-index:30;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px}.brand .logo{display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:800;font-size:18px;width:38px;height:38px;border-radius:12px}.brand div{display:flex;flex-direction:column;min-width:0}.brand strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small,.sidebar-foot small{font-size:11px;color:#8a94a5;margin-top:2px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{height:44px;border:0;background:transparent;color:#637083;border-radius:10px;display:flex;align-items:center;gap:13px;padding:0 13px;font-weight:600;text-align:left}.sidebar nav svg{width:19px}.sidebar nav button.active{background:var(--blue-soft);color:var(--blue)}.sidebar nav b{margin-left:auto;border-radius:20px;background:#fee2e2;color:#c93434;padding:2px 7px;font-size:11px}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:18px 7px 2px;display:flex;align-items:center;gap:9px}.sidebar-foot>div:nth-child(2){display:flex;flex-direction:column}.sidebar-foot>svg{margin-left:auto;width:18px;color:#9aa3b2}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-weight:700}main{margin-left:244px;min-height:100vh}header{min-height:92px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);padding:19px 30px;display:flex;align-items:center;gap:16px;position:-webkit-sticky;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}header h1{font-size:21px;margin:0 0 5px;letter-spacing:-.3px}header p{margin:0;color:var(--muted);font-size:12px}header>div:not(.header-actions){min-width:0}.header-actions{margin-left:auto;gap:10px}.header-actions,.sync{display:flex;align-items:center}.sync{height:34px;border-radius:9px;padding:0 10px;gap:6px;font-size:11px;font-weight:600}.sync svg{width:14px}.sync.online{color:#16815f;background:#edfbf5}.sync.offline{color:#a66b08;background:#fff8e7}.home-button,.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;display:grid;place-items:center;position:relative}.mobile-logout{display:none}.home-button svg,.icon-button svg{width:18px}.home-button{color:var(--blue);border-color:#cddcff}.icon-button i{position:absolute;width:7px;height:7px;border-radius:50%;background:#ef4444;right:7px;top:6px;border:1.5px solid #fff}.card-head select,.header-actions select{border:1px solid var(--line);border-radius:9px;background:#fff;height:36px;padding:0 28px 0 10px;color:#4b5563;font-weight:600;font-size:12px}.content{padding:24px 30px 36px;max-width:1500px;margin:auto}.dashboard-content{display:flex;flex-direction:column;gap:24px}.dashboard-snapshot{background:#17283b;color:#fff;border-radius:16px;padding:22px 24px;box-shadow:0 14px 32px rgba(23,40,59,.14)}.snapshot-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.12)}.snapshot-heading span{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}.snapshot-heading svg{width:17px}.snapshot-heading p{margin:0;color:#bac7d5;font-size:12px}.snapshot-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding-top:17px}.snapshot-metrics button{position:relative;min-width:0;min-height:57px;padding:4px 24px;text-align:left;color:#fff;background:transparent;border:0;border-left:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;justify-content:center;gap:6px}.snapshot-metrics button:first-child{border-left:0;padding-left:0}.snapshot-metrics small{color:#acbbca;font-size:11px;font-weight:600}.snapshot-metrics strong{overflow:hidden;font-size:clamp(16px,1.7vw,23px);letter-spacing:-.5px;text-overflow:ellipsis;white-space:nowrap}.snapshot-metrics svg{position:absolute;width:15px;right:16px;bottom:5px;color:#7f94a9;opacity:0;transform:translateX(-4px);transition:opacity .18s ease,transform .18s ease}.snapshot-metrics button:focus-visible svg,.snapshot-metrics button:hover svg{opacity:1;transform:translateX(0)}.dashboard-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:13px}.dashboard-section-heading h2{margin:0 0 4px;font-size:16px;letter-spacing:-.2px}.dashboard-section-heading p{margin:0;color:var(--muted);font-size:11px}.action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px}.action-card{position:relative;min-width:0;min-height:96px;padding:16px;border:1px solid #e3e9f1;border-radius:14px;background:#fff;color:var(--ink);display:grid;grid-template-columns:58px minmax(0,1fr) 18px;align-items:center;grid-gap:12px;gap:12px;text-align:left;box-shadow:0 3px 12px rgba(25,40,68,.04);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.action-card:hover{border-color:#cbd9ee;box-shadow:0 10px 24px rgba(25,40,68,.09);transform:translateY(-2px)}.action-card:active{opacity:.88;transform:none}.action-illustration{width:54px;height:54px;display:grid;place-items:center}.action-illustration img{width:54px;height:54px;display:block;object-fit:contain}.action-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.action-copy strong{font-size:12px}.action-copy small,.action-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-copy small{color:var(--muted);font-size:10px}.action-arrow{width:17px;color:#a0aabc}.action-badge{position:absolute;top:9px;left:54px;min-width:20px;height:20px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:#1f8b61;color:#fff;display:grid;place-items:center;font-size:9px;animation:badge-pop .18s ease-out}@keyframes badge-pop{0%{opacity:0;transform:scale(.78)}to{opacity:1;transform:scale(1)}}.dashboard-detail-section .grid{align-items:start}.dashboard-sale-row{width:100%;color:inherit;background:transparent;border-right:0;border-bottom:0;border-left:0;text-align:left;transition:background-color .16s ease}.dashboard-sale-row:hover{background:#f8fafc}.dashboard-sale-row>svg{width:15px;color:#9aa6b6}.dashboard-card-link{width:100%;min-height:40px;margin-top:8px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:700}.dashboard-card-link svg{width:14px}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.quick{display:flex;gap:9px;margin-bottom:20px}.outline,.primary,.quick button{border:1px solid var(--line);background:#fff;height:39px;padding:0 15px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:8px;color:#4b5870;font-weight:600;font-size:12px}.primary svg,.quick svg{width:16px}.primary,.quick .primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(37,99,235,.17)}.stats{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:14px;gap:14px;margin-bottom:14px}.card,.stat{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 1px 2px rgba(25,40,68,.02)}.stat{padding:18px;display:flex;align-items:flex-start;gap:13px}.stat>span{width:38px;height:38px;border-radius:10px;display:grid;place-items:center}.stat>span svg{width:19px}.blue-bg{color:var(--blue);background:var(--blue-soft)}.warn-bg{color:var(--amber);background:#fff7e8}.stat p{margin:0 0 7px;color:var(--muted);font-size:11px;font-weight:600}.stat h3{font-size:20px;margin:0 0 5px;letter-spacing:-.3px}.stat small{font-size:10px;font-weight:600;display:flex;align-items:center;gap:2px}.stat small svg{width:13px}.positive{color:var(--green)}.negative{color:var(--red)}.muted{color:#7b8799}.grid{display:grid;grid-template-columns:1.45fr 1fr;grid-gap:14px;gap:14px}.card{padding:19px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-head h2,.cart h2{font-size:14px;margin:0 0 4px}.card-head p{font-size:11px;color:var(--muted);margin:0}.link{border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:600;display:flex;align-items:center;gap:2px}.link svg{width:14px}.table-row{display:grid;grid-template-columns:35px 1.5fr .8fr 1fr .6fr 24px;grid-gap:10px;gap:10px;align-items:center;padding:11px 0;border-top:1px solid #f0f2f6}.table-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px}.table-row strong{font-size:11px}.table-row small,.time{color:var(--muted);font-size:10px}.receipt{width:31px;height:31px;border-radius:8px;background:#f3f6fb;color:#748198;display:grid;place-items:center}.receipt svg{width:15px}.table-row em{font-size:9px;font-style:normal;font-weight:700;border-radius:12px;padding:4px 7px;text-align:center}.paid{background:#eafaf4;color:#148160}.credit{background:#eef5ff;color:#2461ca}.pending{background:#fff5df;color:#a86605}.table-row>button{border:0;background:transparent;color:#9ba4b2}.alert{background:#fff1f1;color:#d63a3f;border-radius:12px;padding:4px 8px;font-size:9px;font-weight:700;display:flex;align-items:center;gap:4px}.alert svg{width:11px}.stock-row{display:grid;grid-template-columns:40px 1fr auto;grid-gap:11px;gap:11px;align-items:center;border-top:1px solid #f0f2f6;padding:11px 0}.bottle,.product-art{display:grid;place-items:center;border-radius:9px;height:40px;background:#eef4ff;color:#3772d8}.bottle svg{width:18px}.bottle.red,.product-art.red{background:#fff0f1;color:#d74850}.bottle.orange,.product-art.orange{background:#fff5e9;color:#d97918}.bottle.cyan,.product-art.cyan{background:#ecfbfd;color:#1595a5}.stock-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px}.stock-row strong{font-size:11px}.stock-row small{font-size:9px;color:var(--muted)}.stock-row>b{font-size:15px;color:var(--red)}.meter{height:3px;background:#f0f1f4;margin-top:3px}.meter,.meter i{border-radius:3px}.meter i{height:100%;display:block;background:var(--red)}.wide{width:100%}.low-stock .wide{height:36px;border:1px solid var(--line);background:#fff;border-radius:8px;color:#526078;font-size:11px;font-weight:600;margin-top:7px}.credit-row{display:grid;grid-template-columns:35px 1fr auto;align-items:center;grid-gap:10px;gap:10px;padding:12px 0;border-top:1px solid #f0f2f6}.credit-row>span{width:33px;height:33px;border-radius:50%;background:#e8f2ff;color:#2563eb;display:grid;place-items:center;font-size:12px;font-weight:700}.credit-row>div{display:flex;flex-direction:column;gap:3px}.credit-row>div:last-of-type{text-align:right;align-items:flex-end}.credit-row b,.credit-row strong{font-size:11px}.credit-row small{font-size:9px;color:var(--muted)}.credit-row em{font-size:9px;font-style:normal}.credit-row em.danger{color:var(--red)}.credit-row em.warn{color:var(--amber)}.credit-row em.ok{color:var(--green)}.chart{height:180px;display:flex;align-items:flex-end;gap:7%;padding:12px 8px 0}.chart div{height:100%;flex:1 1;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px}.chart i{display:block;width:100%;max-width:28px;border-radius:5px 5px 2px 2px;background:#4f83f1}.chart span{font-size:9px;color:var(--muted)}.section-toolbar{display:flex;gap:10px;margin-bottom:16px}.search{height:41px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;padding:0 12px;flex:1 1;max-width:500px}.search svg{width:17px;color:#8490a3}.search input{border:0;outline:0;width:100%;padding-left:9px;color:var(--ink)}.pos-grid{display:grid;grid-template-columns:1fr 340px;grid-gap:16px;gap:16px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px}.product-grid button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px;text-align:left;display:flex;flex-direction:column;gap:5px}.product-art{height:85px;margin-bottom:5px;overflow:hidden;flex:0 0 auto}.product-art svg{width:28px}.product-art.has-image{padding:5px;border:1px solid #edf1f6;background:#fff}.product-art img{width:100%;height:100%;display:block;object-fit:contain}.product-grid small{font-size:10px;color:var(--muted)}.product-grid b{font-size:12px;color:var(--blue)}.cart{min-height:420px;display:flex;flex-direction:column}.empty-cart{margin:auto;text-align:center;color:#8994a6}.empty-cart svg{width:35px}.empty-cart strong{display:block;color:#4f5a6e;margin-top:8px}.empty-cart p{font-size:11px}.credit-page .credit-row{grid-template-columns:35px 1fr auto 78px}.outline{height:36px;color:var(--blue);border-color:#cddcff}.placeholder{text-align:center;padding:70px 20px}.placeholder>span{width:54px;height:54px;border-radius:16px;background:var(--blue-soft);display:grid;place-items:center;margin:auto;color:var(--blue)}.placeholder h2{margin:14px 0 6px}.placeholder p{max-width:500px;margin:0 auto 18px;color:var(--muted);font-size:12px;line-height:1.6}.placeholder .outline{margin:auto}.audit>p{color:var(--muted)}.audit>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;border-top:1px solid var(--line);padding:13px 0}.audit>div>span{width:24px;height:24px;border-radius:7px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:700}@media (max-width:1050px){.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid,.stats{grid-template-columns:repeat(2,1fr)}}@media (max-width:760px){body{padding-bottom:env(safe-area-inset-bottom);overflow-x:hidden;-webkit-text-size-adjust:100%}.sidebar{transform:translateX(-105%);transition:.2s ease;width:min(86vw,320px);padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(22px,env(safe-area-inset-bottom))}.desktop-primary-nav{display:none!important}main{margin:0;min-width:0}header{min-height:72px;padding:calc(13px + env(safe-area-inset-top)) 16px 13px;position:-webkit-sticky;position:sticky;gap:8px}.home-button{width:40px;height:40px;flex:0 0 40px}header h1{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions select,.icon-button,header p{display:none}.mobile-logout{width:44px;height:44px;padding:0;border:1px solid #f0d2d4;border-radius:10px;background:#fff;color:#b83238;display:grid;place-items:center;flex:0 0 44px}.mobile-logout svg{width:18px;height:18px}.mobile-logout:disabled{cursor:wait;opacity:.55}.sync{width:40px;min-height:38px;padding:0 9px;justify-content:center;font-size:0}.content{padding:16px;min-width:0}.dashboard-content{gap:20px}.dashboard-snapshot{padding:18px;border-radius:14px}.snapshot-heading{display:block;padding-bottom:14px}.snapshot-heading p{margin-top:5px}.snapshot-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:9px}.snapshot-metrics button{min-height:67px;padding:10px 12px}.snapshot-metrics button:nth-child(odd){border-left:0;padding-left:0}.snapshot-metrics button:nth-child(n+3){border-top:1px solid rgba(255,255,255,.12)}.snapshot-metrics button:nth-child(2n){padding-right:0}.snapshot-metrics strong{font-size:18px}.snapshot-metrics svg{display:none}.action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.action-card{min-height:116px;padding:12px 7px 11px;grid-template-columns:1fr;grid-template-rows:56px auto;justify-items:center;align-content:center;gap:9px;text-align:center;border-radius:12px}.action-illustration,.action-illustration img{width:56px;height:56px}.action-copy{width:100%}.action-copy strong{font-size:10px;white-space:normal;line-height:1.3}.action-arrow,.action-copy small{display:none}.action-badge{top:8px;left:calc(50% + 12px)}.dashboard-section-heading{margin-bottom:11px}.dashboard-section-heading h2{font-size:14px}.dashboard-detail-section{display:none}.quick{overflow:auto;margin:0 -16px 15px;padding:0 16px;scrollbar-width:none}.quick::-webkit-scrollbar,.stats::-webkit-scrollbar{display:none}.quick button{white-space:nowrap}.stats{display:flex;overflow:auto;gap:10px;margin:0 -16px 12px;padding:0 16px;scroll-snap-type:x mandatory;scrollbar-width:none}.stat{min-width:218px;scroll-snap-align:start}.grid{display:block}.grid>.card{margin-bottom:12px}.transactions{overflow:hidden}.table-row{grid-template-columns:35px minmax(0,1fr) auto}.dashboard-sale-row>svg,.table-row .time,.table-row>button,.table-row>em{display:none}.table-row>strong{text-align:right}.performance{display:none}.section-toolbar{position:-webkit-sticky;position:sticky;top:80px;z-index:5}.section-toolbar .primary{width:44px;padding:0;font-size:0}.pos-grid{display:flex;flex-direction:column}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.cart{min-height:300px}.credit-page{padding:12px}.credit-page .credit-row{grid-template-columns:34px minmax(0,1fr) auto}.credit-page .credit-row>button{grid-column:2/4}.audit{padding:16px}.audit>div{grid-template-columns:30px minmax(0,1fr)}.audit .link{grid-column:2;margin-top:4px;padding:0}.placeholder{padding:50px 16px}[role=button],a,button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.home-button,.icon-button,button{min-height:44px}input,select,textarea{font-size:16px!important}button,input,select,textarea{max-width:100%}.search{height:46px}.search input{min-width:0}.cart-drawer,.modal{overscroll-behavior:contain}.invoice-detail,.modal-form{padding:18px}.error-banner{margin:12px 16px 0}}.inventory-product-identity{min-width:0;display:grid!important;grid-template-columns:42px minmax(0,1fr);align-items:center;grid-gap:10px!important;gap:10px!important}.inventory-product-identity>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.inventory-product-image{width:42px;height:42px;overflow:hidden;display:grid;place-items:center;border:1px solid #e5ebf3;border-radius:10px;background:#f7f9fc;color:#8290a4}.inventory-product-image img{width:100%;height:100%;display:block;object-fit:cover}.inventory-product-image svg{width:19px}.inventory-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.inventory-row-actions button{white-space:nowrap}.inventory-row-actions svg{width:14px}.inventory-delete-button,.product-remove-image{min-width:32px;min-height:32px;border:1px solid #f0c9cb;border-radius:8px;background:#fff;color:#c83c42;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:700}.inventory-delete-button:hover,.product-remove-image:hover{background:#fff3f3}.inventory-delete-button svg,.product-remove-image svg{width:15px}.product-image-field{display:grid;grid-template-columns:112px minmax(0,1fr);grid-gap:15px;gap:15px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f9fbfd}.product-image-preview{width:112px;aspect-ratio:1;overflow:hidden;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:11px;background:#fff;color:#93a0b2}.product-image-preview img{width:100%;height:100%;display:block;object-fit:contain}.product-image-preview svg{width:30px}.product-image-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}.product-image-copy>small{color:var(--muted);font-size:10px;line-height:1.45}.product-image-actions{display:flex;flex-wrap:wrap;gap:7px}.product-upload-button{margin:0;min-height:36px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px}.product-upload-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.product-upload-button svg{width:15px}.image-ready{color:#147756;font-size:10px;font-weight:700}.product-stock-note{margin:0;padding:10px 12px;border-left:3px solid #9dbaf0;background:#f4f8ff;color:#53627a;font-size:10px;line-height:1.45}.product-delete-confirm{padding:22px;display:grid;grid-template-columns:46px minmax(0,1fr);grid-gap:13px;gap:13px}.product-delete-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#fff0f0;color:#c7353b}.product-delete-icon svg{width:21px}.product-delete-confirm h3{margin:2px 0 5px;font-size:15px}.product-delete-confirm p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.product-delete-confirm .form-error,.product-delete-confirm .modal-actions{grid-column:1/-1}.danger-button{min-height:39px;padding:0 15px;border:1px solid #cf3f45;border-radius:9px;background:#cf3f45;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:700}.danger-button svg{width:15px}.danger-button:disabled{opacity:.55}.reports-page{display:flex;flex-direction:column;gap:15px}.report-control-card,.report-export-card,.report-panel{border:1px solid var(--line);border-radius:14px;background:#fff}.report-control-card{padding:18px}.report-control-heading{display:flex;align-items:center;gap:11px}.report-control-heading>span{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:var(--blue-soft);color:var(--blue)}.report-control-heading svg{width:19px}.report-control-heading h2,.report-export-card h2,.report-panel h2{margin:0 0 3px;font-size:14px}.report-control-heading p,.report-export-card p,.report-panel-head p{margin:0;color:var(--muted);font-size:10px}.report-presets{margin-top:15px;padding:4px;display:grid;grid-template-columns:repeat(4,1fr);grid-gap:4px;gap:4px;border:1px solid var(--line);border-radius:10px;background:#f7f9fc}.report-presets button{min-height:40px;border:0;border-radius:8px;background:transparent;color:#5e6b7e;font-size:11px;font-weight:700}.report-presets button.active{background:#fff;color:var(--blue);box-shadow:0 1px 4px rgba(23,40,59,.1)}.report-custom-range{margin-top:13px;display:grid;grid-template-columns:1fr 1fr auto;align-items:end;grid-gap:9px;gap:9px}.report-custom-range label{color:#526078;font-size:10px;font-weight:700}.report-custom-range input{width:100%;min-height:42px;margin-top:5px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.report-custom-range .primary{min-height:42px}.report-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px}.report-summary-grid article{min-width:0;padding:15px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;grid-gap:10px;gap:10px;border:1px solid var(--line);border-radius:13px;background:#fff}.report-summary-grid article>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f0f5ff;color:var(--blue)}.report-summary-grid svg{width:17px}.report-summary-grid article>div{min-width:0;display:flex;flex-direction:column;gap:3px}.report-summary-grid em,.report-summary-grid small{overflow:hidden;color:var(--muted);font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.report-summary-grid strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.report-summary-grid .attention{color:#b45309;font-weight:700}.report-export-card{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.report-export-actions{display:flex;gap:8px}.report-export-actions button{min-height:42px}.report-export-actions svg{width:16px}.excel-button{color:#147756;border-color:#b7ddcf}.report-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.report-panel{overflow:hidden}.report-panel-head{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.report-panel-head>svg{width:17px;color:#8290a4}.report-invoice-row,.report-product-row{min-height:58px;padding:10px 15px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line)}.report-panel-head+.report-invoice-row,.report-panel-head+.report-product-row{border-top:0}.report-product-row>b{width:25px;height:25px;flex:0 0 auto;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;color:#66758a;font-size:10px}.report-invoice-row>span,.report-product-row>span{min-width:0;flex:1 1;display:flex;flex-direction:column;gap:3px}.report-invoice-row>span:last-child,.report-product-row>strong{flex:0 0 auto;align-items:flex-end;text-align:right}.report-invoice-row strong,.report-product-row strong{font-size:11px}.report-invoice-row small,.report-product-row small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.report-invoice-row em{font-size:8px;font-style:normal;font-weight:700;text-transform:uppercase}.report-empty,.report-loading{margin:0;min-height:110px;padding:25px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:11px}.report-loading svg{width:18px}.report-error{display:flex;align-items:center;justify-content:space-between}.report-error button{border:0;background:transparent;color:inherit;font-weight:700}@media (max-width:900px){.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.inventory-products{overflow:visible;border:0;background:transparent}.inventory-products .data-head{display:none}.inventory-products .data-row{min-width:0;margin-bottom:9px;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:10px;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.inventory-products .inventory-product-identity{grid-column:1/-1}.inventory-products .data-row>span:nth-child(2):before{content:"Stock · ";color:var(--muted);font-weight:500}.inventory-products .data-row>span:nth-child(3){text-align:right;font-weight:700}.inventory-products .data-row>span:nth-child(4){display:none}.inventory-products .data-row>span:last-child{grid-column:1/-1}.inventory-row-actions{display:grid;grid-template-columns:1fr 1fr 44px}.inventory-row-actions button{min-height:44px}.product-image-field{grid-template-columns:84px minmax(0,1fr);gap:11px}.product-image-preview{width:84px}.product-remove-image,.product-upload-button{min-height:44px}.reports-page{gap:11px}.report-control-card{padding:14px}.report-presets{grid-template-columns:repeat(2,1fr)}.report-presets button{min-height:44px}.report-custom-range{grid-template-columns:1fr 1fr}.report-custom-range .primary{grid-column:1/-1;min-height:46px}.report-summary-grid{grid-template-columns:1fr;gap:8px}.report-summary-grid article{padding:12px}.report-export-card{align-items:stretch;flex-direction:column}.report-export-actions{display:grid;grid-template-columns:1fr 1fr}.report-export-actions button{min-height:46px;padding:0 10px}.report-preview-grid{grid-template-columns:1fr}.product-delete-confirm{padding:18px}.product-delete-confirm .modal-actions{display:grid;grid-template-columns:1fr 1.2fr}.product-delete-confirm .modal-actions button{min-height:46px}}.thermal-invoice-shell{align-items:center;background:#eef2f7}.thermal-receipt{width:min(80mm,100%);padding:18px 15px 22px;border:1px solid #dfe3e8;background:#fff;color:#111;box-shadow:0 8px 25px rgba(28,39,57,.08);font-family:Courier New,ui-monospace,monospace;font-size:10px}.thermal-head{display:flex;flex-direction:column;align-items:center;padding:0;text-align:center;background:transparent;border:0}.thermal-head img{width:46px;height:46px;margin-bottom:7px;object-fit:contain}.thermal-head>svg{width:30px;margin-bottom:7px}.thermal-head h2{margin:0 0 5px;font:700 16px/1.15 DM Sans,sans-serif}.invoice-detail .thermal-head p,.thermal-head p{display:block;margin:1px 0;padding:0;border:0;font-size:9px;line-height:1.35}.thermal-head>strong{margin-top:10px;font-size:12px}.thermal-rule{height:1px;margin:10px 0;border-top:1px dashed #555}.thermal-meta{margin:0}.thermal-meta>div{display:grid;grid-template-columns:74px minmax(0,1fr);grid-gap:8px;gap:8px;padding:2px 0}.thermal-meta dt{color:#555}.thermal-meta dd{margin:0;overflow-wrap:anywhere;font-weight:700;text-align:right;text-transform:uppercase}.thermal-customer{display:flex;flex-direction:column;gap:3px;text-align:center}.thermal-customer small{color:#555;font-size:8px;text-transform:uppercase}.thermal-customer strong{font-size:11px}.thermal-item,.thermal-item-head{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:9px;gap:9px;align-items:end}.thermal-item-head{padding-bottom:7px;font-size:8px;text-transform:uppercase}.thermal-item{padding:7px 0;border-top:1px dotted #aaa}.thermal-item>span{display:flex;min-width:0;flex-direction:column;gap:3px}.thermal-item small{color:#555;font-size:8px}.thermal-item>b{white-space:nowrap}.thermal-totals{display:flex;flex-direction:column;gap:4px}.invoice-detail .thermal-totals p,.thermal-totals p{display:flex;justify-content:space-between;margin:0;padding:2px 0;border:0}.thermal-totals .thermal-grand{margin:4px 0;padding:7px 0;border-top:1px solid #222;border-bottom:1px solid #222;font-size:13px}.thermal-payment{margin-top:11px;padding-top:10px;border-top:1px dashed #555;text-align:center}.invoice-detail .thermal-payment p,.thermal-payment p{display:block;margin:5px 0 0;padding:0;border:0;white-space:pre-line;font-size:8px;line-height:1.4}.thermal-footer{display:flex;flex-direction:column;gap:7px;margin-top:15px;text-align:center}.thermal-footer small{color:#666;font-size:7px}.thermal-invoice-shell>.invoice-actions,.thermal-invoice-shell>.invoice-notice{width:100%}.thermal-public-page{display:flex;min-height:100dvh;flex-direction:column;align-items:center;gap:12px}.public-thermal-receipt{min-height:auto}.public-receipt-toolbar{width:min(80mm,100%);display:flex;justify-content:flex-end}.public-receipt-print svg{width:15px}@media (max-width:600px){.thermal-public-page{padding:12px;background:#eef2f7}.public-receipt-print,.public-receipt-toolbar,.public-thermal-receipt{width:100%}}@media print{@page{size:80mm auto;margin:0}body{padding:0!important;background:#fff!important}.public-receipt-toolbar{display:none!important}.thermal-public-page{display:block;min-height:0;padding:0;background:#fff}.thermal-receipt{width:80mm;padding:4mm;border:0;box-shadow:none}}@media (max-width:380px){.sync{font-size:0}.stats .stat{min-width:200px}.product-grid{grid-template-columns:1fr 1fr}.brand strong{max-width:160px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.loading,.login-page{min-height:100vh;display:grid;place-items:center}.loading{display:flex;gap:10px;color:var(--muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.login-page{background:#eef4fb;padding:20px}.login-card{width:min(410px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:0 18px 60px rgba(25,45,85,.1);display:flex;flex-direction:column;gap:15px}.login-card h1{margin:2px 0 0;font-size:24px}.login-card>p{margin:-8px 0 4px;color:var(--muted)}.login-card>small{text-align:center;color:var(--muted)}.login-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#2563eb;color:#fff;font-size:22px;font-weight:800}label{display:flex;flex-direction:column;gap:6px;color:#526078;font-size:11px;font-weight:700}input,select,textarea{border:1px solid #dfe5ee;border-radius:9px;background:#fff;padding:10px 11px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#73a0f7;box-shadow:0 0 0 3px #eaf2ff}textarea{min-height:74px;resize:vertical}.logout{border:0;background:transparent;color:#8a94a5;margin-left:auto}.logout svg{width:17px}.sync{border:0;cursor:pointer}.error-banner{margin:12px 30px 0;padding:10px 13px;border-radius:9px;background:#fff0f0;color:#b83238;display:flex;justify-content:space-between}.error-banner button{border:0;background:transparent;color:inherit;font-weight:700}.action-notice{position:fixed;z-index:120;right:24px;bottom:24px;max-width:min(360px,calc(100vw - 32px));padding:12px 16px;border:1px solid #b9ead7;border-radius:10px;background:#edfbf5;color:#126b50;box-shadow:0 12px 30px rgba(23,32,51,.14);font-size:12px;font-weight:700}.form-error,.form-success{padding:10px;border-radius:8px;font-size:11px}.form-error{background:#fff0f0;color:#b83238}.form-success{background:#edfbf5;color:#16815f}.data-table{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.data-head,.data-row{display:grid;grid-template-columns:1.6fr repeat(4,1fr);align-items:center;grid-gap:12px;gap:12px;padding:13px 18px}.data-head{background:#f9fafc;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:.04em}.data-row{border-top:1px solid var(--line);min-height:58px}.data-row>div{display:flex;flex-direction:column;gap:3px}.data-row small,.user-row small{font-size:10px;color:var(--muted)}.data-row em,.user-row em{font-size:9px;font-style:normal;font-weight:700;border-radius:14px;padding:5px 8px;width:max-content}.partially_paid{background:#fff5df;color:#9e6508}.void{background:#f0f1f3;color:#647084}.stock-danger{color:var(--red);font-weight:700}.compact{height:30px;padding:0 10px;font-size:10px}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px}.customer-card{position:relative;border:1px solid var(--line);display:grid;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:18px 106px 18px 18px;text-align:left}.customer-card>.customer-avatar{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:700}.customer-card-info{min-width:0;display:flex;flex-direction:column;gap:4px}.customer-card-info small,.customer-card-info strong{overflow-wrap:anywhere}.customer-card-info small{font-size:9px;color:var(--muted)}.customer-balance{white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.customer-actions{position:absolute;top:5px;right:5px;display:flex;gap:2px}.customer-card-action{width:44px;height:44px;padding:0;border:0;border-radius:9px;background:transparent;color:#667085;display:grid;place-items:center}.customer-card-action:focus-visible,.customer-card-action:hover{background:#f1f5f9;color:var(--ink)}.customer-card-action svg{width:19px;height:19px}.customer-delete-action{color:#b4232c}.customer-delete-action:focus-visible,.customer-delete-action:hover{background:#fff1f1;color:#9b1c24}.cart-lines{display:flex;flex-direction:column;margin:12px 0}.cart-lines>div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.cart-lines span:first-child{display:flex;flex-direction:column;gap:3px}.cart-lines small{font-size:9px;color:var(--muted)}.qty{display:flex;align-items:center;gap:8px}.qty button{width:25px;height:25px;border:1px solid var(--line);background:#fff;border-radius:7px;display:grid;place-items:center}.qty svg{width:12px}.cart label{margin-top:10px}.form-split{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.cart-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:15px 0;margin-top:12px}.cart-total strong{font-size:18px}.product-grid button:disabled{opacity:.45;cursor:not-allowed}.settings-grid{display:grid;grid-template-columns:280px 1fr;grid-gap:14px;gap:14px}.settings-card h2{margin-top:0}.settings-card>p{color:var(--muted)}.user-row{display:grid;grid-template-columns:36px 1fr auto auto;grid-gap:10px;gap:10px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}.role-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px;margin:14px 0 18px}.role-access-grid>div{min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;display:grid;grid-template-columns:30px minmax(0,1fr);grid-gap:3px 9px;gap:3px 9px;align-items:center}.role-access-grid span{grid-row:1/3;width:30px;height:30px;border-radius:8px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}.role-access-grid svg{width:15px}.role-access-grid strong{color:var(--ink);font-size:11px}.role-access-grid small{color:var(--muted);font-size:9px;line-height:1.35}.role-selection-note{min-height:44px;padding:10px 11px;border:1px solid #d9e4f5;border-radius:9px;background:#f6f9fd;color:var(--blue);display:flex;align-items:flex-start;gap:9px}.role-selection-note svg{width:17px;height:17px;flex:0 0 auto}.role-selection-note small{color:#526078;font-size:10px;font-weight:500;line-height:1.45}.role-selection-note.admin-role-note{border-color:#f0d28e;background:#fff8e8;color:#9a6208}.role-selection-note.admin-role-note small{color:#704b10}.audit strong,.user-row>div{display:flex;flex-direction:column;gap:3px}.audit small{color:var(--muted);font-weight:400;font-size:9px}.audit em{font-style:normal;color:var(--muted);font-size:10px}.settings-side{display:flex;flex-direction:column;gap:14px}.settings-side .settings-card{width:100%}.logo-upload>div{height:90px;border:1px dashed #bdc8d8;border-radius:11px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.logo-upload img{max-width:100%;max-height:82px}.logo-upload svg{color:#8b98aa}.logo-upload small{font-weight:400;color:var(--muted)}.invoice-actions{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;gap:8px;margin-top:12px;padding-top:15px;border-top:1px solid var(--line)}.invoice-actions button{height:38px}.invoice-actions svg{width:15px}.invoice-actions .whatsapp{color:#138a58;border-color:#b9e8d4}.modal.invoice-settings-modal{width:min(760px,100%)}.invoice-settings-head>div{min-width:0}.invoice-settings-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.invoice-settings-form{display:flex;flex-direction:column;gap:16px}.invoice-settings-section{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.invoice-settings-section-head{display:grid;grid-template-columns:38px minmax(0,1fr);grid-gap:11px;gap:11px;align-items:center;margin-bottom:16px}.invoice-settings-section-head>svg{width:38px;height:38px;padding:9px;border-radius:10px;background:var(--blue-soft);color:var(--blue)}.invoice-settings-section-head h3{margin:0;color:var(--ink);font-size:14px}.invoice-settings-section-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.invoice-settings-section>.form-split,.invoice-settings-section>label{margin-top:12px}.optional-label,.required-label{margin-left:4px;font-size:9px;font-weight:600}.required-label{color:var(--blue)}.optional-label{color:var(--muted)}.field-with-icon{position:relative;display:block;margin-top:6px}.field-with-icon>svg{position:absolute;z-index:1;top:50%;left:12px;width:16px;height:16px;color:#7a879a;transform:translateY(-50%);pointer-events:none}.field-with-icon>input,.field-with-icon>textarea{margin-top:0;padding-left:38px}.field-with-icon-textarea>svg{top:14px;transform:none}.field-with-icon textarea{resize:vertical;line-height:1.45}.invoice-settings-actions{position:-webkit-sticky;position:sticky;bottom:-20px;z-index:2;margin:0 -20px -20px;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.receipt-settings-summary{display:flex;flex-direction:column;gap:9px;margin:14px 0 16px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}.receipt-settings-summary span{min-width:0;display:grid;grid-template-columns:17px minmax(0,1fr);grid-gap:8px;gap:8px;align-items:start;color:#526078;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.receipt-settings-summary svg{width:15px;height:15px;color:var(--blue)}.thermal-head p,.thermal-payment p{white-space:pre-line;overflow-wrap:anywhere}@media (max-width:760px){.invoice-settings-section{padding:15px}.invoice-settings-form .form-split{grid-template-columns:1fr}.invoice-settings-actions{flex-wrap:wrap}.invoice-settings-actions .primary{flex:1 0 100%;order:-1}}.modal-backdrop{position:fixed;inset:0;background:rgba(18,28,47,.45);z-index:100;display:grid;place-items:center;padding:15px}.modal{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(10,25,50,.24)}.modal-head{position:-webkit-sticky;position:sticky;top:0;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line);z-index:1}.modal-head h2{font-size:16px;margin:0}.modal-head button{border:0;background:transparent}.modal-head svg{width:18px}.invoice-detail,.modal-form{padding:20px;display:flex;flex-direction:column;gap:13px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.invoice-detail p{display:flex;justify-content:space-between;margin:0;padding-bottom:11px;border-bottom:1px solid var(--line)}.invoice-detail .grand{font-size:17px}.mini-empty{padding:35px 15px;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted)}.mini-empty svg{width:25px}.credit-page .mini-empty{border:0}.credit-ledger-page{display:flex;flex-direction:column;gap:14px}.credit-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.credit-summary-grid>div{display:grid;grid-template-columns:42px minmax(0,1fr);grid-gap:12px;gap:12px;align-items:center;padding:16px}.credit-summary-grid>div>span{width:42px;height:42px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}.credit-summary-grid>div>span.credit-summary-warn{background:#fff5df;color:#9e6508}.credit-summary-grid>div>span.credit-summary-ok{background:#e8f8f0;color:#14845e}.credit-summary-grid svg{width:20px}.credit-summary-grid div>div{min-width:0;display:flex;flex-direction:column;gap:4px}.credit-summary-grid small{color:var(--muted);font-size:10px}.credit-summary-grid strong{color:var(--ink);font-size:17px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.credit-ledger-card{padding:0;overflow:hidden}.credit-ledger-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px 14px}.credit-ledger-toolbar h2{margin:0;color:var(--ink);font-size:16px}.credit-ledger-toolbar p{margin:4px 0 0;color:var(--muted);font-size:11px}.credit-filter-tabs{display:flex;gap:4px;padding:4px;border-radius:10px;background:#f1f4f8}.credit-filter-tabs button{min-height:34px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:#647084;font-size:10px;font-weight:700}.credit-filter-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 2px 7px rgba(30,50,80,.1)}.credit-search{position:relative;display:block;margin:0 20px 14px}.credit-search>svg{position:absolute;top:50%;left:13px;width:17px;color:#7c899c;transform:translateY(-50%);pointer-events:none}.credit-search input{height:44px;margin:0;padding:0 44px 0 40px;font-size:13px}.credit-search button{position:absolute;top:0;right:0;width:44px;height:44px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center}.credit-search button svg{width:16px}.credit-order-list{border-top:1px solid var(--line)}.credit-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:12px;gap:12px;align-items:center;padding:0 16px 0 6px;border-bottom:1px solid var(--line)}.credit-order-row:last-child{border-bottom:0}.credit-order-open{min-width:0;min-height:76px;padding:10px 8px;border:0;background:transparent;color:inherit;display:grid;grid-template-columns:38px minmax(150px,1.2fr) minmax(150px,1fr) minmax(105px,auto) 20px;grid-gap:12px;gap:12px;align-items:center;text-align:left}.credit-order-open:hover .credit-order-identity strong{color:var(--blue)}.credit-order-open>svg{width:18px;color:#8a96a8}.credit-customer-avatar{width:38px;height:38px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:800}.credit-order-balance,.credit-order-identity,.credit-order-progress{min-width:0;display:flex;flex-direction:column;gap:5px}.credit-order-balance strong,.credit-order-identity strong{color:var(--ink);font-size:12px}.credit-order-identity small,.credit-order-progress small{color:var(--muted);font-size:9px}.credit-order-progress i{width:100%;height:5px;border-radius:4px;background:#edf0f5;overflow:hidden}.credit-order-progress i b{display:block;height:100%;border-radius:inherit;background:var(--blue)}.credit-order-balance{text-align:right;align-items:flex-end;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.credit-order-balance small{font-size:9px;font-weight:700}.credit-order-balance .overdue{color:var(--red)}.credit-order-balance .outstanding{color:#9e6508}.credit-order-balance .settled{color:var(--green)}.credit-collect{min-width:112px;white-space:nowrap}.credit-empty{min-height:220px;padding:36px 18px;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center}.credit-empty svg{width:30px;color:#8b98aa}.credit-empty strong{color:#526078}.credit-empty p{margin:0;font-size:11px}.credit-history-backdrop{z-index:125}.credit-history-dialog{width:min(560px,100%);max-height:92dvh;overflow:auto;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(10,25,50,.26)}.credit-history-dialog:focus{outline:none}.credit-history-head{position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fff}.credit-history-head small{color:var(--blue);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.credit-history-head h2{margin:3px 0;color:var(--ink);font-size:18px}.credit-history-head p{margin:0;color:var(--muted);font-size:11px}.credit-history-head button{width:44px;height:44px;border:0;border-radius:11px;background:#f3f6fa;color:#526078;display:grid;place-items:center}.credit-history-head button svg{width:18px}.credit-history-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:1px;gap:1px;margin:18px 20px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--line)}.credit-history-overview span{min-width:0;padding:13px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.credit-history-overview small{color:var(--muted);font-size:9px}.credit-history-overview strong{color:var(--ink);font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.credit-history-overview .balance-due strong{color:var(--red)}.credit-history-overview .balance-settled strong{color:var(--green)}.credit-timeline{position:relative;padding:2px 20px 18px}.credit-timeline:before{content:"";position:absolute;top:24px;bottom:36px;left:38px;width:1px;background:#dce3ed}.credit-timeline-entry{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-gap:12px;gap:12px;padding:11px 0}.credit-timeline-entry>span{z-index:1;width:38px;height:38px;border:5px solid #fff;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}.credit-timeline-entry.payment>span{background:#e8f8f0;color:#14845e}.credit-timeline-entry.pending>span{background:#fff5df;color:#9e6508}.credit-timeline-entry svg{width:15px}.credit-timeline-entry>div{min-width:0;padding-top:3px}.credit-timeline-entry strong{display:flex;justify-content:space-between;gap:10px;color:var(--ink);font-size:12px}.credit-timeline-entry strong b{color:var(--green);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.credit-timeline-entry p{margin:4px 0;color:#526078;font-size:10px;overflow-wrap:anywhere}.credit-timeline-entry small{color:var(--muted);font-size:9px}.credit-history-actions{position:-webkit-sticky;position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.credit-history-actions button{min-height:42px}.credit-history-actions svg{width:16px}.payment-collection-summary{display:grid;grid-template-columns:1fr 1fr;grid-gap:1px;gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--line)}.payment-collection-summary span{min-width:0;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}.payment-collection-summary small{color:var(--muted);font-size:9px}.payment-collection-summary strong{color:var(--ink);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media (max-width:760px){.credit-ledger-page{padding:12px}.credit-summary-grid{grid-template-columns:1fr;gap:8px}.credit-summary-grid>div{padding:12px 14px}.credit-ledger-toolbar{flex-direction:column}.credit-filter-tabs{width:100%}.credit-filter-tabs button{min-height:42px;flex:1 1;padding:0 6px}.credit-order-row{grid-template-columns:1fr;gap:0;padding:0 10px 11px}.credit-order-open{grid-template-columns:38px minmax(0,1fr) auto 18px;gap:10px;padding:12px 2px}.credit-order-progress{grid-column:2/5;grid-row:2}.credit-order-balance{grid-column:3;grid-row:1}.credit-order-open>svg{grid-column:4;grid-row:1}.credit-collect{width:100%;min-height:42px}.credit-history-dialog{width:100%;max-height:92dvh;border-radius:20px 20px 0 0;align-self:end}.credit-history-overview{margin:14px}.credit-timeline{padding-inline:14px}.credit-timeline:before{left:32px}.credit-history-actions{padding-inline:14px}.credit-history-actions button{flex:1 1}}.placeholder>svg{color:var(--blue);width:35px}.stock-stepper{display:grid;grid-template-columns:1fr 36px 1fr;align-items:center;padding:16px 20px 0;color:#8a94a5}.stock-stepper>span{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.stock-stepper>span:last-child{justify-content:flex-end}.stock-stepper b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#edf0f5;color:#7b8798;font-size:10px}.stock-stepper span.active{color:var(--blue)}.stock-stepper span.active b{background:var(--blue);color:#fff}.stock-stepper>i{height:2px;background:#dfe5ee}.stock-step-copy{display:flex;flex-direction:column;gap:4px}.stock-step-copy strong{font-size:14px}.field-hint,.stock-step-copy small{font-size:10px;color:var(--muted)}.supplier-search{max-width:none;width:100%;flex:none}.supplier-options{display:flex;flex-direction:column;gap:7px;max-height:220px;overflow-y:auto}.supplier-options>button{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-gap:9px;gap:9px;align-items:center;text-align:left;color:inherit}.supplier-options>button.selected,.supplier-options>button:hover{border-color:#8fb1f4;background:#f5f9ff}.stock-selection-summary>span,.supplier-options>button>span{width:32px;height:32px;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}.stock-selection-summary svg,.supplier-options svg{width:15px}.supplier-options>button>div{display:flex;flex-direction:column;gap:3px}.supplier-options small{font-size:9px;color:var(--muted)}.supplier-options>button>b{font-size:9px;color:var(--blue)}.supplier-empty{padding:20px;text-align:center;color:var(--muted);font-size:11px;border:1px dashed var(--line);border-radius:10px;margin:0}.inline-supplier-form{display:flex;flex-direction:column;gap:13px}.stock-actions{padding-top:12px;border-top:1px solid var(--line)}.stock-selection-summary{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-gap:9px;gap:9px;align-items:center;padding:10px 12px;background:#f8fafc;border:1px solid var(--line);border-radius:11px}.stock-selection-summary>div{display:flex;flex-direction:column;gap:3px}.stock-selection-summary small{font-size:9px;color:var(--muted)}.stock-cost-summary{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:10px;background:#f3f7fd}.stock-cost-summary span{font-size:11px;color:var(--muted)}.stock-cost-summary strong{font-size:17px;color:var(--blue)}.stock-step input[readonly]{background:#f4f6f9;color:#788497}.stock-step label{display:flex;flex-direction:column;gap:6px}.stock-step label>.field-hint{font-weight:400;color:var(--blue)}.pos-page{padding-bottom:105px}.pos-search{display:flex;align-items:center;gap:15px;margin-bottom:14px}.pos-search .search{max-width:680px}.pos-search .search button{border:0;background:transparent;color:var(--muted);display:grid;place-items:center}.pos-search .search button svg{width:15px}.pos-search>span{font-size:11px;color:var(--muted)}.pos-products{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-products>button{position:relative;min-height:160px}.pos-products>button>em{position:absolute;right:8px;top:8px;background:#dbeafe;color:#1d4ed8;border-radius:20px;padding:4px 7px;font-size:9px;font-style:normal;font-weight:700}.pos-products>.mini-empty{grid-column:1/-1}.floating-cart{position:fixed;right:28px;bottom:28px;z-index:45;height:54px;border:0;border-radius:16px;background:#172033;color:#fff;padding:0 20px;display:flex;align-items:center;gap:9px;font-weight:700;box-shadow:0 14px 35px rgba(18,32,55,.3);transition:transform .15s ease,background .15s ease}.floating-cart:hover{transform:translateY(-2px)}.floating-cart.has-items{background:var(--blue)}.floating-cart svg{width:20px}.floating-cart>b{position:absolute;right:-6px;top:-7px;min-width:24px;height:24px;padding:0 6px;border-radius:13px;background:#ef4444;color:#fff;border:3px solid var(--bg);display:grid;place-items:center;font-size:10px}.cart-backdrop{position:fixed;inset:0;background:rgba(18,28,47,.4);z-index:90}.cart-drawer{position:absolute;right:0;top:0;bottom:0;width:min(430px,100%);background:#fff;box-shadow:-18px 0 55px rgba(15,30,55,.2);display:flex;flex-direction:column;animation:drawer-in .2s ease-out}@keyframes drawer-in{0%{transform:translateX(100%)}to{transform:translateX(0)}}.cart-drawer-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--line)}.cart-drawer-head h2{margin:0 0 3px;font-size:17px}.cart-drawer-head small{color:var(--muted)}.cart-drawer-head button{border:0;background:transparent}.cart-drawer-head svg{width:19px}.cart-drawer .cart-lines{padding:0 20px;margin:0;overflow-y:auto}.cart-drawer .empty-cart{margin:auto;text-align:center}.cart-checkout{margin-top:auto;border-top:1px solid var(--line);padding:18px 20px 22px;background:#fbfcfe;display:flex;flex-direction:column;gap:10px}.cart-checkout .cart-total,.cart-checkout label{margin:0}@media (max-width:1050px){.customer-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:1200px){.pos-products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.data-table{overflow-x:auto;-webkit-overflow-scrolling:touch}.data-head,.data-row{min-width:680px}.customer-grid,.settings-grid{grid-template-columns:1fr}.user-row{grid-template-columns:36px minmax(0,1fr) auto}.role-access-grid{grid-template-columns:1fr}.user-row .compact{grid-column:2/4}.form-split{grid-template-columns:1fr}.modal{border-radius:16px 16px 0 0;align-self:end;max-height:92dvh}.modal-backdrop{padding:0}.credit-page .credit-row{grid-template-columns:34px minmax(0,1fr) auto}.credit-page .credit-row>button{grid-column:2/4}.login-page{min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}.login-card{padding:25px 20px}.pos-search{align-items:stretch;flex-direction:column;gap:7px}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:9px}.pos-products>button{min-height:145px;padding:12px}.floating-cart{right:16px;bottom:calc(80px + env(safe-area-inset-bottom));height:52px}.cart-drawer{top:auto;height:min(82dvh,720px);border-radius:20px 20px 0 0;animation:drawer-up .2s ease-out}@keyframes drawer-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.cart-checkout{padding-bottom:max(20px,env(safe-area-inset-bottom))}}.receipt-history{margin-top:14px}.receipt-history-row{display:grid;grid-template-columns:35px 1fr auto;grid-gap:11px;gap:11px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.receipt-history-row>div{display:flex;flex-direction:column;gap:4px}.receipt-history-row>div:last-child{text-align:right;align-items:flex-end}.receipt-history-row b,.receipt-history-row strong{font-size:11px}.receipt-history-row small{font-size:9px;color:var(--muted)}.section-toolbar>.outline svg{width:15px}.quantity-backdrop{position:fixed;inset:0;background:rgba(18,28,47,.46);z-index:110;display:grid;place-items:center;padding:16px}.quantity-sheet{width:min(390px,100%);background:#fff;border-radius:17px;padding:20px;box-shadow:0 24px 70px rgba(15,30,55,.25);display:flex;flex-direction:column;gap:15px}.quantity-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.quantity-product-identity{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;grid-gap:11px;gap:11px}.cart-line-product-image,.quantity-product-image{overflow:hidden;display:grid;place-items:center;border:1px solid #e5ebf3;border-radius:10px;background:#f7f9fc;color:#8290a4}.quantity-product-image{width:52px;height:52px}.cart-line-product-image img,.quantity-product-image img{width:100%;height:100%;display:block;object-fit:contain}.cart-line-product-image svg,.quantity-product-image svg{width:18px}.quantity-head h2{margin:0 0 4px;font-size:16px}.quantity-head small{color:var(--muted)}.quantity-head button{border:0;background:transparent}.quantity-head svg{width:18px}.quantity-sheet label{font-size:12px}.quantity-sheet label input{height:55px;font-size:24px;font-weight:700;text-align:center;color:var(--blue)}.quantity-presets{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:7px;gap:7px}.quantity-presets button{height:38px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;color:#526078;font-weight:700}.quantity-presets button.active{background:var(--blue-soft);border-color:#b9d0ff;color:var(--blue)}.quantity-summary{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:13px}.quantity-summary span{color:var(--muted);font-size:11px}.quantity-summary strong{font-size:17px}.stock-warning{display:none}.checkout-progress{display:grid;grid-template-columns:1fr 1fr;grid-gap:6px;gap:6px;padding:0 20px}.checkout-progress i{height:3px;background:#e6ebf2;border-radius:4px}.checkout-progress i.done{background:var(--blue)}.cart-step-footer{margin-top:auto;border-top:1px solid var(--line);padding:16px 20px 22px}.checkout-step{padding:18px 20px 22px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.checkout-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.checkout-section-head>div{display:flex;flex-direction:column;gap:3px}.checkout-section-head small{font-size:9px;color:var(--muted)}.checkout-section-head .outline svg{width:14px}.customer-search{max-width:none;width:100%;flex:none}.customer-option{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;grid-gap:9px;gap:9px;text-align:left}.customer-option.selected,.customer-option:hover{border-color:#8fb1f4;background:#f5f9ff}.customer-option>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:700}.customer-option>div{display:flex;flex-direction:column;gap:3px}.customer-option small{font-size:9px;color:var(--muted)}.customer-option em{font-size:9px;font-style:normal;color:var(--red)}.checkout-customers{display:flex;flex-direction:column;gap:7px;max-height:195px;overflow-y:auto}.payment-fields{display:flex;flex-direction:column;gap:11px;border-top:1px solid var(--line);padding-top:14px}.payment-summary{background:#f8fafc;border-radius:10px;padding:10px 12px}.payment-summary p{display:flex;justify-content:space-between;margin:0;padding:4px 0;font-size:10px;color:var(--muted)}.payment-summary p.grand{border-top:1px solid var(--line);margin-top:4px;padding-top:9px;color:var(--ink);font-size:13px}.checkout-actions{display:grid;grid-template-columns:100px 1fr;grid-gap:9px;gap:9px}.checkout-actions button{width:100%}.checkout-step .stock-warning{display:flex}.checkout-progress.three{grid-template-columns:repeat(3,1fr)}.customer-only-step{height:100%}.checkout-customers.expanded{max-height:none;flex:1 1}.sticky-actions{margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.payment-step{padding-top:20px}.selected-customer-summary{display:grid;grid-template-columns:40px 1fr auto;grid-gap:10px;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f9fbfe}.selected-customer-summary>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:700}.selected-customer-summary>div{display:flex;flex-direction:column;gap:3px}.selected-customer-summary small{font-size:9px;color:var(--muted)}.selected-customer-summary .link{padding:4px}.payment-step>.form-split{margin-top:5px}.discount-cart-line{display:block!important;padding:14px 0!important}.cart-line-main,.line-discount-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.cart-line-product{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;grid-gap:9px;gap:9px}.cart-line-product>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.cart-line-product-image{width:42px;height:42px}.cart-line-main strong{overflow-wrap:anywhere}.discount-cart-line .qty button{width:38px;height:38px}.line-discount-row{margin-top:11px;padding:10px;border-radius:10px;background:#f7f9fc;align-items:end}.line-discount-row label{width:142px;flex:0 0 142px}.line-discount-row label>small{color:var(--muted);font-size:8px;font-weight:500}.money-input{width:100%;height:40px;display:grid!important;grid-template-columns:auto 1fr;align-items:center;overflow:hidden;border:1px solid #dbe3ee;border-radius:9px;background:#fff}.money-input:focus-within{border-color:#7ea7f5;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.money-input i{padding-left:9px;color:var(--muted);font-size:10px;font-style:normal}.money-input input{min-width:0;height:38px;padding:0 8px 0 5px;border:0;outline:0;background:transparent;font-size:14px;font-weight:700}.discounted-line-total{min-width:0;display:flex!important;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}.discounted-line-total s{color:var(--muted);font-size:9px}.discounted-line-total strong{font-size:13px}.discounted-line-total em{font-size:9px;font-style:normal}.discounted-line-total em,.thermal-item .thermal-item-discount{color:#137a59;font-weight:700}.cart-discount-summary{margin-bottom:12px}.cart-discount-summary p{margin:0;padding:4px 0;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.cart-discount-summary .cart-total{margin-top:5px;padding:10px 0 0;color:var(--ink)}.cart-discount-summary .cart-total strong{font-size:17px}.payment-step label>small{color:var(--muted);font-size:9px;font-weight:500}.payment-summary .payment-order-total{margin-top:4px;padding-top:8px;border-top:1px solid var(--line);color:var(--ink);font-size:11px}@media (max-width:760px){.section-toolbar{flex-wrap:wrap}.section-toolbar .search{flex-basis:100%;max-width:none}.section-toolbar>.outline{flex:1 1;white-space:nowrap}.receipt-history-row{grid-template-columns:35px 1fr}.receipt-history-row>div:last-child{grid-column:2;text-align:left;align-items:flex-start}.quantity-backdrop{padding:0;place-items:end center}.quantity-sheet{width:100%;border-radius:20px 20px 0 0;padding:20px 18px max(22px,env(safe-area-inset-bottom));animation:drawer-up .2s ease-out}.quantity-sheet label input{height:60px;font-size:27px}}.invoice-toolbar{display:flex;gap:10px;margin-bottom:12px}.invoice-toolbar .search{max-width:none}.invoice-toolbar select{min-width:160px;font-weight:600}.invoice-summary-strip{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:1px;gap:1px;margin-bottom:14px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.invoice-summary-strip span{display:flex;flex-direction:column;gap:4px;padding:13px 16px;background:#fff;color:var(--muted);font-size:10px}.invoice-summary-strip b{color:var(--ink);font-size:14px}.invoice-table .data-head,.invoice-table .data-row{grid-template-columns:1.45fr 1fr .8fr .8fr 132px}.invoice-identity{border:0;background:transparent;padding:0;display:grid;grid-template-columns:36px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center;text-align:left;color:inherit}.invoice-amount,.invoice-identity>span:last-child{display:flex;flex-direction:column;gap:3px}.invoice-identity:hover strong{color:var(--blue)}.invoice-mobile-meta,.invoice-mobile-status{display:none}.invoice-row-actions{display:flex;align-items:center;gap:5px}.invoice-row-actions button{width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#647084;display:grid;place-items:center}.invoice-row-actions button:hover{border-color:#a9c2f5;background:var(--blue-soft);color:var(--blue)}.invoice-row-actions button.whatsapp{color:#138a58}.invoice-row-actions svg{width:16px}.invoice-notice{margin-top:9px;padding:9px 11px;border-radius:8px;background:#edfbf5;color:#16815f;font-size:11px;text-align:center}.order-success-backdrop{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:16px;background:rgba(18,28,47,.52)}.order-success-dialog{position:relative;width:min(440px,100%);padding:32px 28px 28px;border:1px solid #dfe7f1;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(10,25,50,.25);text-align:center;animation:success-dialog-in .2s ease-out}@keyframes success-dialog-in{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.order-success-dialog:focus{outline:none}.order-success-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:12px;background:#f3f6fa;color:#526078;display:grid;place-items:center}.order-success-close:hover{background:#e8edf4;color:var(--ink)}.order-success-close svg{width:19px}.order-success-icon{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:#e8f8f0;color:#14845e;display:grid;place-items:center}.order-success-icon svg{width:34px;height:34px}.order-success-eyebrow{margin:0 0 5px;color:#14845e;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.order-success-dialog h2{margin:0;color:var(--ink);font-size:21px}.order-success-copy{max-width:340px;margin:9px auto 18px;color:var(--muted);font-size:13px;line-height:1.55}.order-success-copy strong{color:var(--ink)}.order-success-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:16px;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;text-align:left}.order-success-summary span{min-width:0;display:flex;flex-direction:column;gap:4px}.order-success-summary span:last-child{text-align:right}.order-success-summary small{color:var(--muted);font-size:10px}.order-success-summary strong{overflow-wrap:anywhere;color:var(--ink);font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.success-invoice-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px;margin-top:16px}.success-invoice-actions button{min-height:72px;padding:10px 6px;border:1px solid #d6dfec;border-radius:12px;background:#fff;color:#46536a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:700}.success-invoice-actions button:hover{border-color:#9ebcf8;background:var(--blue-soft);color:var(--blue)}.success-invoice-actions button:disabled{cursor:wait;opacity:.55}.success-invoice-actions .success-action-view{border-color:var(--blue);background:var(--blue);color:#fff}.success-invoice-actions .success-action-view:hover{background:#1858d5;color:#fff}.success-invoice-actions .whatsapp{border-color:#a9dfc9;color:#137b55}.success-invoice-actions .whatsapp:hover{border-color:#72c7a7;background:#ebf9f3;color:#0e6847}.success-invoice-actions svg{width:20px;height:20px}@media (max-width:520px){.order-success-backdrop{padding:0;place-items:end center}.order-success-dialog{width:100%;padding:28px 18px max(22px,env(safe-area-inset-bottom));border-radius:22px 22px 0 0;animation:drawer-up .2s ease-out}}@media (prefers-reduced-motion:reduce){.order-success-dialog{animation:none}}.invoice-detail{background:#fff}.invoice-detail .grand{background:#f7faff;padding:14px;border-radius:10px}@media (max-width:760px){.invoices-page{padding:12px}.invoice-toolbar{flex-direction:row;gap:7px;margin-bottom:9px}.invoice-toolbar .search{height:42px}.invoice-toolbar select{width:112px;min-width:112px;height:42px;padding-left:8px}.invoice-summary-strip{grid-template-columns:repeat(3,1fr);margin-bottom:10px}.invoice-summary-strip span{padding:9px 8px;gap:2px}.invoice-summary-strip span:last-child{grid-column:auto}.invoice-summary-strip b{font-size:12px}.invoice-table{overflow:visible;border:0;background:transparent}.invoice-table .data-head{display:none}.invoice-table .data-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 34px;grid-gap:7px 10px;gap:7px 10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px;margin-bottom:7px;box-shadow:0 1px 4px rgba(25,40,68,.035)}.invoice-identity{grid-column:1;grid-row:1;grid-template-columns:32px minmax(0,1fr);gap:8px;min-height:34px}.invoice-identity .receipt{width:32px;height:32px}.invoice-identity .receipt svg{width:15px}.invoice-identity strong{font-size:12px}.invoice-customer,.invoice-desktop-date,.invoice-item-count,.invoice-status{display:none}.invoice-mobile-meta,.invoice-mobile-status{display:block}.invoice-mobile-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62vw}.invoice-amount{grid-column:1;grid-row:2;text-align:left;align-items:flex-start;justify-content:center;padding-left:40px}.invoice-amount b{font-size:12px}.invoice-mobile-status{font-size:8px!important;padding:3px 6px!important}.invoice-row-actions{grid-column:2;grid-row:1/3;align-self:start;justify-self:end;display:flex;flex-direction:column;padding:0;border:0;gap:5px}.invoice-row-actions button{flex:none;width:34px;height:34px;min-height:34px;border-radius:8px;background:#fafbfd}.invoice-row-actions svg{width:15px}.invoice-actions{grid-template-columns:1fr}.invoice-actions button{height:44px}}@media (max-width:390px){.invoice-summary-strip span{padding:8px 5px}.invoice-summary-strip b{font-size:11px}.invoice-toolbar select{width:104px;min-width:104px;font-size:14px!important}}.public-invoice-page{margin:0;min-height:100dvh;padding:40px 18px;background:#f4f7fb}.public-invoice{width:min(780px,100%);margin:auto;background:#fff;border:1px solid #e1e8f2;border-radius:20px;box-shadow:0 22px 70px rgba(27,48,83,.1);overflow:hidden}.public-invoice-head{position:static;min-height:0;padding:28px 32px;background:#fff;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:3px solid var(--blue)}.public-brand{display:flex;align-items:center;gap:12px}.public-brand>span{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--blue);color:#fff}.public-brand svg{width:21px}.public-brand img{width:52px;height:52px;object-fit:contain;border-radius:9px}.public-brand>div{display:flex;flex-direction:column;gap:4px}.public-brand strong{font-size:16px}.public-brand small,.public-invoice-meta small,.public-invoice-title small{color:var(--muted);font-size:10px}.public-invoice-title{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px}.public-invoice-title h1{font-size:22px;margin:0}.public-invoice-title em{font-size:9px;font-style:normal;font-weight:700;border-radius:14px;padding:5px 8px}.public-invoice-meta{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px;padding:24px 32px}.public-invoice-meta>div{display:flex;flex-direction:column;gap:5px}.public-invoice-meta>div:last-child{text-align:right}.public-items{margin:0 32px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.public-item{display:grid;grid-template-columns:minmax(0,1fr) 55px 130px;align-items:center;grid-gap:12px;gap:12px;padding:13px 15px;border-top:1px solid var(--line)}.public-item:first-child{border:0}.public-item>span:first-child{display:flex;flex-direction:column;gap:4px}.public-item small{color:var(--muted);font-size:9px}.public-item>b{text-align:right}.public-item-head{background:#f7f9fc;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase}.public-item-head span:last-child{text-align:right}.public-totals{width:min(330px,calc(100% - 64px));margin:20px 32px 25px auto}.public-totals p{display:flex;justify-content:space-between;margin:0;padding:6px 0;color:var(--muted);font-size:11px}.public-totals b{color:var(--ink)}.public-totals .public-grand{margin-top:7px;padding-top:13px;border-top:2px solid var(--ink);font-size:15px;color:var(--ink)}.public-payment{margin:0 32px 24px;padding:14px;background:#f5f8fd;border-radius:10px}.public-payment p{white-space:pre-line;color:var(--muted);font-size:11px;line-height:1.6;margin:6px 0 0}.public-invoice footer{text-align:center;padding:22px 32px;background:#f8fafc;border-top:1px solid var(--line)}.public-invoice footer p{margin:0 0 6px;font-weight:600}.public-invoice footer small{color:var(--muted);font-size:9px}@media (max-width:600px){.public-invoice-page{padding:0;background:#fff}.public-invoice{border:0;border-radius:0;box-shadow:none;min-height:100dvh}.public-invoice-head{padding:20px 16px}.public-brand>div strong{font-size:13px}.public-brand img{width:42px;height:42px}.public-invoice-title h1{font-size:17px}.public-invoice-meta{padding:18px 16px}.public-items{margin:0 16px}.public-item{grid-template-columns:minmax(0,1fr) 32px 92px;padding:11px 10px;gap:7px;font-size:11px}.public-totals{width:calc(100% - 32px);margin:16px}.public-payment{margin:0 16px 18px}.public-invoice footer{padding:18px 16px}}.inventory-tabs{display:flex;gap:5px;margin-bottom:14px;padding:4px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:11px;background:#fff}.inventory-tabs button{min-height:36px;padding:0 12px;display:flex;align-items:center;gap:7px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:700}.inventory-tabs button.active{color:var(--blue);background:var(--blue-soft)}.inventory-tabs svg{width:15px}.inventory-tabs b{min-width:19px;padding:2px 5px;border-radius:10px;background:#e6ebf3;color:#68758a;font-size:9px;text-align:center}.inventory-tabs button.active b{background:#d6e5ff;color:var(--blue)}.delivery-summary{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:1px;gap:1px;overflow:hidden;margin-bottom:13px;border:1px solid var(--line);border-radius:12px;background:var(--line)}.delivery-summary span{display:flex;flex-direction:column;gap:5px;padding:14px 16px;background:#fff}.delivery-summary small{color:var(--muted);font-size:10px}.delivery-summary strong{font-size:16px}.delivery-list{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}.delivery-row{width:100%;min-height:68px;padding:12px 16px;display:grid;grid-template-columns:34px minmax(160px,1fr) minmax(180px,1.4fr) minmax(140px,auto) 85px;align-items:center;grid-gap:11px;gap:11px;border:0;border-top:1px solid var(--line);background:#fff;color:inherit;text-align:left}.delivery-row:first-child{border-top:0}.delivery-row:hover{background:#f8fbff}.delivery-identity,.delivery-value,.stock-receipt-line>span:first-child{display:flex;flex-direction:column;gap:4px}.delivery-row small{color:var(--muted);font-size:9px}.delivery-products{overflow:hidden;color:#536076;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.delivery-value{align-items:flex-end;text-align:right}.delivery-open{color:var(--blue);font-size:10px;font-weight:700;text-align:right}.stock-receipt-detail{padding:20px;display:flex;flex-direction:column;gap:14px;background:#fff}.stock-receipt-brand{display:grid;grid-template-columns:40px 1fr auto;align-items:center;grid-gap:10px;gap:10px}.stock-receipt-brand>span{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--blue);color:#fff}.stock-receipt-brand svg{width:19px}.stock-receipt-brand h3{margin:2px 0 0;font-size:16px}.stock-receipt-brand small,.stock-receipt-brand time{color:var(--muted);font-size:9px}.stock-receipt-meta{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.stock-receipt-meta p{margin:0;padding:10px;display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:9px;background:#fff}.stock-receipt-meta small{color:var(--muted);font-size:8px}.stock-receipt-meta strong{overflow:hidden;font-size:10px;text-overflow:ellipsis}.stock-receipt-lines{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff}.stock-receipt-line{padding:10px;display:grid;grid-template-columns:minmax(0,1fr) 40px 85px 85px;align-items:center;grid-gap:8px;gap:8px;border-top:1px solid var(--line);font-size:10px}.stock-receipt-line:first-child{border-top:0}.stock-receipt-line.head{background:#f7f9fc;color:var(--muted);font-size:8px;font-weight:700;text-transform:uppercase}.stock-receipt-line>span:not(:first-child),.stock-receipt-line>strong{text-align:right}.stock-receipt-line small{color:var(--muted);font-size:8px}.stock-receipt-total{padding:13px 14px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;background:#f1f6ff}.stock-receipt-total strong{color:var(--blue);font-size:18px}.stock-receipt-notes{margin:0;padding:11px;display:flex;flex-direction:column;gap:4px;border-left:3px solid #bfd3f8;background:#f8fafc;color:var(--muted);font-size:10px}.stock-receipt-notes b{color:var(--ink)}.stock-receipt-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;grid-gap:8px;gap:8px;padding-top:13px;border-top:1px solid var(--line)}.stock-receipt-actions button{width:100%}.stock-receipt-actions svg{width:15px}@media (max-width:760px){.inventory-tabs{width:100%}.inventory-tabs button{flex:1 1;justify-content:center}.inventory-toolbar>button{flex:1 1}.delivery-summary span{padding:10px}.delivery-summary strong{font-size:12px}.delivery-row{min-width:0;grid-template-columns:34px minmax(0,1fr) auto;padding:11px}.delivery-open,.delivery-products{display:none}.delivery-value{align-items:flex-end}.stock-receipt-detail{padding:16px}.stock-receipt-brand{grid-template-columns:40px 1fr}.stock-receipt-brand time{grid-column:2}.stock-receipt-meta{grid-template-columns:1fr}.stock-receipt-line{grid-template-columns:minmax(0,1fr) 32px 72px}.stock-receipt-line>:nth-child(3){display:none}.stock-receipt-actions{grid-template-columns:1fr}.stock-receipt-actions button{min-height:44px}}.pos-cheque-fields{display:grid;grid-gap:12px;gap:12px;min-width:0}.pos-cheque-fields p{margin:0;font-size:13px;line-height:1.5}.pos-cheque-fields input{min-width:0;max-width:100%}