.sheet-order-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-right:auto}.sheet-order-item{display:inline-flex;align-items:stretch;gap:0}.sheet-order-delete{display:inline-flex;align-items:center;justify-content:center;width:26px;border:1px solid var(--line);border-left:0;background:#fff;color:#a76656;border-radius:0 6px 6px 0;padding:0;cursor:pointer}.sheet-order-delete svg{width:12px;height:12px}.sheet-order-delete:hover{background:#fff1ed;color:#913f31}.sheet-order-item .sheet-order-tab{border-radius:6px 0 0 6px}.sheet-order-delete:focus{outline:2px solid #e7b8aa;outline-offset:1px}.sheet-order-tab,.sheet-order-new{border:1px solid var(--line);background:#fff;color:#496354;border-radius:6px;padding:8px 12px;font:inherit;cursor:pointer}.sheet-order-tab.selected{background:#e6f3e9;border-color:#71ae83;color:#1e6841;font-weight:700}.sheet-order-tab span{display:inline-flex;min-width:18px;justify-content:center;margin-left:6px;border-radius:10px;background:#eef3ee;font-size:11px}.sheet-order-new{border-style:dashed;background:#fbfdfb}.sheet-order-tab:focus,.sheet-order-new:focus{outline:2px solid #a8d2b6;outline-offset:1px}
.location-cell{white-space:normal;min-width:155px;max-width:250px;color:#73907e;line-height:1.8;font-size:10px}.location-cell span{display:block}.location-form{background:#f6faf7;border:1px solid #e4eee6;border-radius:9px;padding:17px 17px 0;margin-bottom:17px}.location-form h4{margin-bottom:8px;color:#557b61}.location-form>p{font-size:10px}.location-form .field>span{font-size:11px}.row-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.danger{color:#b66b50!important}.danger-btn{background:#ad6550;color:white;border-color:#ad6550}.danger-btn:hover{background:#92513e;color:#fff}.stock-location{max-width:170px;white-space:normal;line-height:1.6}.tile-location{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#709480!important;margin-top:7px}.empty-action{text-align:center;padding:0 20px 35px}.cart-line .soft-badge{font-size:9px;font-weight:400}.cart-line .text-button{display:block;margin-top:9px;font-size:10px}.ai-preset{background:#f1f8f2;border:1px solid #dcebdc;border-radius:9px;padding:16px;margin-bottom:23px}.ai-preset>strong{display:block;color:#42764d;margin:10px 0;font-size:15px}.ai-preset>p{font-size:11px;color:#8aa48f}.ai-preset .row-actions{gap:12px}.ai-preset .text-button{font-size:10px}.ai-actions,.result-actions{display:flex;flex-wrap:wrap;gap:9px}.result-actions{margin-top:20px}.ai-actions .btn{font-size:11px;padding:9px 12px}.camera-view{position:relative;background:#1e2f28;min-height:220px;aspect-ratio:16/9;border-radius:9px;overflow:hidden}.camera-view video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.camera-guide{position:absolute;inset:15% 14%;border:1px solid #c8f0d57a;border-radius:7px;pointer-events:none}.camera-toolbar{display:flex;align-items:center;gap:16px;margin-top:18px}.camera-toolbar .field{flex:1;margin-bottom:0}.camera-toolbar>.btn{margin-top:23px;font-size:11px}.camera-view+p{font-size:11px}.quick-new-details{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;flex-basis:100%;padding-top:12px;border-top:1px dashed #cddfce}.quick-new-details .field{width:auto!important;flex:auto!important}.quick-new-details[hidden]{display:none}#ai-settings-form>.btn{margin:0 5px 9px 0;font-size:12px}#ai-test-status{line-height:1.8;margin:10px 0 0}.match-row .danger{white-space:normal}.result-actions .btn{font-size:11px}.camera-view+.camera-toolbar select{min-width:0}@media(max-width:600px){.camera-toolbar{gap:10px}.camera-toolbar select{font-size:11px}.camera-view{min-height:190px}.ai-actions{padding:0 12px}.location-form{padding:14px 12px 0}.quick-new-details{grid-template-columns:1fr}.row-actions{gap:12px}.result-actions{flex-direction:column}.result-actions .btn{width:100%}.location-cell{min-width:140px}.page-heading .heading-actions{max-width:185px}}
.doc-edit-line:has(.quick-new-details){flex-wrap:wrap}.doc-edit-line:has(.quick-new-details)>.field:first-child{min-width:200px}.quick-new-details>.field:first-child{min-width:0}@media(max-width:600px){.doc-edit-line:has(.quick-new-details)>.field:first-child{min-width:0}}
.smart-identify{display:flex;gap:14px;align-items:center;background:#f6faf7;border:1px solid #e2eee4;border-radius:9px;padding:12px;margin-bottom:18px}.smart-identify img{width:86px;height:72px;object-fit:cover;border-radius:6px;background:#e6eee8}.smart-identify strong,.smart-identify small{display:block}.smart-identify strong{color:#3e6748;margin-bottom:6px}.smart-identify small{color:#7d9581;line-height:1.6}.smart-identify p{margin-top:7px}
.category-manager{display:flex;flex-direction:column;gap:8px;margin-top:16px}.category-manager-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e5eee6;border-radius:8px;padding:12px 14px}.category-manager-row strong,.category-manager-row small{display:block}.category-manager-row strong{color:#486c52}.category-manager-row small{color:#91a395;font-size:11px;margin-top:4px}.category-manager-row .text-button{font-size:11px}.category-child-row{margin-left:28px;border-style:dashed;background:#fbfdfb}.category-group{display:inline-flex;align-items:center;gap:4px;margin-right:6px}.category-child{font-size:12px!important;padding-inline:10px!important;color:#698174!important}.category-child.selected{color:#087d68!important;background:#e5f5ee!important}
.product-tile.is-selected{border-color:#5ca886;background:#f5fbf7;box-shadow:0 5px 16px #47846418}.tile-top{position:relative}.tile-qty-badge{position:absolute;right:0;top:0;background:#087f68;color:#fff;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:650;box-shadow:0 2px 5px #087f6830}.product-tile.is-selected .tile-bottom>span{width:auto;min-width:25px;padding:0 7px;border-radius:999px;color:#087f68;font-size:10px;font-weight:650}.cart-float{position:fixed;right:24px;bottom:24px;z-index:35;width:min(350px,calc(100vw - 48px));background:#fff;border:1px solid #b9d9c7;border-radius:12px;box-shadow:0 16px 45px #153d2b26;overflow:hidden}.cart-float-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#edf8f1;color:#316c50;font-size:12px}.cart-float-head span{font-size:11px;color:#6f927e}.cart-float-lines{max-height:190px;overflow:auto;padding:4px 16px}.cart-float-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eef3ef;font-size:11px;color:#5a7163}.cart-float-line:last-child{border-bottom:0}.cart-float-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cart-float-line b{font-weight:500;color:#7b9684}.cart-float-line strong{font-size:11px;color:#087f68;min-width:58px;text-align:right}.cart-float-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #e7efe9}.cart-float-foot>strong{font-size:20px;color:#087f68}.cart-float-foot .btn{padding:7px 13px}
@media(max-width:600px){.cart-float{left:12px;right:12px;bottom:70px;width:auto;border-radius:10px}.cart-float-lines{max-height:130px}.cart-float-head{padding:10px 13px}.cart-float-foot{padding:9px 13px}.cart-float-foot>strong{font-size:18px}.product-tile.is-selected{transform:none}}
.record-search-panel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfdfb}.record-search-panel .search-input{width:190px;min-width:120px}.record-search-panel .record-date{display:flex;align-items:center;gap:5px;color:#91a397;font-size:11px}.record-search-panel input{max-width:145px}.star-button{border:0;background:transparent;color:#b5c2b8;font-size:20px;line-height:1;cursor:pointer;padding:5px 8px}.star-button:hover,.star-button.active{color:#e7a72e}.document-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 12px;background:#f8fbf8;border:1px solid #e6eee7;border-radius:8px}.document-toolbar .star-button{font-size:13px}.draft-list{display:flex;flex-direction:column;gap:8px}.draft-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e5eee7;border-radius:8px}.draft-row strong,.draft-row small{display:block}.draft-row small{color:#91a397;margin-top:4px;font-size:11px}.draft-row .row-actions{margin-left:auto}@media(max-width:600px){.record-search-panel{padding:12px;align-items:stretch}.record-search-panel .search-input{width:100%}.record-search-panel .record-date{flex:1}.record-search-panel .record-date input{min-width:0;width:100%}.draft-row{align-items:flex-start;flex-direction:column}.draft-row .row-actions{margin-left:0}}
.catalog-layout-full{display:block}.category-toolbar{background:#fff;border:1px solid #e7ede9;border-radius:10px;padding:9px 12px;margin-bottom:14px}.category-toolbar .category-sidebar-head{margin:0 0 7px}.category-toolbar .category-sidebar-head strong{font-size:12px}.category-strip{display:flex;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap;padding:2px 0 3px;scrollbar-width:thin}.category-strip.collapsed{overflow:visible}.category-group{display:inline-flex;align-items:center;gap:5px}.category-chip{border:0;border-radius:7px;background:#f5f7f5;color:#718078;padding:8px 13px;font-size:12px;white-space:nowrap}.category-chip:hover{background:#edf5ef;color:var(--green)}.category-chip.selected{background:#e5f4ec;color:var(--green);font-weight:650}.category-chip small{font-size:10px;color:#9aaba0;margin-left:3px}.category-chip.selected small{color:#6b9d82}.category-collapse{border:1px solid #e1eae3;border-radius:7px;background:#fff;color:#6e8d79;padding:7px 10px;font-size:11px;white-space:nowrap}.category-toolbar .row-actions{display:flex;align-items:center;gap:9px}.category-toolbar .icon-btn{width:27px;height:27px}
.category-toggle{width:22px;height:22px;border:0;background:transparent;color:#91a59a;font-size:14px;padding:0;line-height:1}.category-toggle:hover{color:var(--green)}
.category-inline-search{display:inline-flex;align-items:center;gap:5px;border:1px solid #e5ece6;background:#fafcfb;border-radius:7px;padding:6px 8px;color:#9aaba0;flex:0 0 130px}.category-inline-search .icon{width:13px;height:13px}.category-inline-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-size:11px;color:#526c59}.category-inline-search input::placeholder{color:#aab6ad}.category-child-group{display:inline-flex;align-items:center;gap:2px}.category-tab-actions{display:inline-flex;align-items:center;opacity:0;transition:opacity .15s}.category-group:hover>.category-tab-actions,.category-child-group:hover>.category-tab-actions{opacity:1}.category-tab-actions .icon-btn{width:20px;height:20px}.category-tab-actions .icon{width:12px;height:12px}
.sheet-sale{overflow:hidden}.sheet-sale-options{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fbfdfb}.sheet-sale-options .field{margin:0}.sheet-table{min-width:930px}.sheet-table th,.sheet-table td{padding:9px 11px;vertical-align:middle}.sheet-table input,.sheet-table select{width:100%;min-width:70px;min-height:36px;border:1px solid #e2eae4;border-radius:6px;padding:7px 9px;background:#fff;color:#40584a;font:inherit}.sheet-table input:focus,.sheet-table select:focus{outline:2px solid #a8d2b6;border-color:#67a67b}.sheet-table [data-sheet-name]{min-width:230px}.sheet-table [data-sheet-qty]{width:105px}.sheet-table [data-sheet-price]{width:125px}.sheet-table [data-sheet-sku]{min-width:110px}.sheet-table [data-sheet-spec]{min-width:135px;color:#60766a}.sheet-table [data-sheet-unit]{min-width:100px}.sheet-table [data-sheet-amount]{min-width:100px;white-space:nowrap}.sheet-add-row td{text-align:center;background:#fbfdfb}.sheet-sale-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-top:1px solid var(--line);color:#74877b;font-size:12px}.sheet-sale-footer strong{color:#286d4c;font-variant-numeric:tabular-nums}.sheet-sale-footer .btn{flex:0 0 auto}.import-conflict-list{max-height:260px;overflow:auto;white-space:pre-wrap;padding:12px;background:#f7faf7;border:1px solid #e5eee7;border-radius:6px;color:#596e5e;font:12px/1.8 ui-monospace,monospace}
@media(max-width:800px){.sheet-sale-options{grid-template-columns:repeat(2,minmax(120px,1fr));padding:13px}.sheet-sale-footer{align-items:flex-start;flex-direction:column}.sheet-sale-footer .btn{width:100%}}
@media(max-width:480px){.sheet-sale-options{grid-template-columns:1fr}.sheet-table th,.sheet-table td{padding:7px}.sheet-sale-footer{padding:12px}.sheet-table [data-sheet-name]{min-width:190px}}

.ranking-sort{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #dce9df;border-radius:7px;background:#f7fbf8;white-space:nowrap}.ranking-sort button{border:0;border-radius:5px;background:transparent;color:#6d8576;padding:6px 10px;font:inherit;font-size:11px;cursor:pointer}.ranking-sort button:hover{background:#edf6ef;color:var(--green)}.ranking-sort button.selected{background:#dff1e4;color:#216b42;font-weight:700}.ranking-sort button:focus{outline:2px solid #a8d2b6;outline-offset:1px}@media(max-width:600px){.ranking-sort{width:100%;justify-content:stretch}.ranking-sort button{flex:1}.panel-head:has(.ranking-sort){align-items:flex-start;flex-wrap:wrap;gap:10px}.panel-head:has(.ranking-sort)>div:first-child{min-width:0;flex:1}}

.sheet-table [data-sheet-note]{min-width:150px}.sheet-table [data-sheet-ratio]{min-width:135px;color:#60766a;font-size:11px}
.cell-input-with-calculator,.input-with-calculator{display:flex;align-items:center;gap:4px;min-width:0}.cell-input-with-calculator input,.input-with-calculator input{min-width:0;flex:1}.calculator-trigger{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;border:1px solid #dbe8df;border-radius:6px;background:#f8fbf8;color:#6c9079;padding:4px}.calculator-trigger:hover{background:#eaf6ee;color:var(--green);border-color:#a8d2b6}.calculator-trigger .icon{width:16px;height:16px}.sheet-table .cell-input-with-calculator{min-width:120px}.sheet-table .cell-input-with-calculator input{width:82px}.sheet-sale-footer{flex-wrap:wrap}.sheet-sale-footer>span{line-height:2}.sheet-sale-footer>.text-button{padding:7px 9px;border:1px solid #dce9df;border-radius:6px;background:#f8fbf8}.cell-calculator{display:flex;flex-direction:column;gap:12px}.cell-calculator .field{margin:0}.cell-calculator-display{font-size:18px!important;text-align:right;font-variant-numeric:tabular-nums}.cell-calculator-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.cell-calculator-key{min-height:42px;border:1px solid #dbe8df;border-radius:7px;background:#f8fbf8;color:#466554;font-size:16px}.cell-calculator-key:hover{background:#eaf6ee;border-color:#a8d2b6}.cell-calculator-key.secondary{font-size:12px;color:#6f8276}.cell-calculator-key.equals{background:var(--green);border-color:var(--green);color:#fff}.net-total-summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;margin:12px 0 18px;background:#f1f8f2;border:1px solid #dfede1;border-radius:8px;color:#78917e;font-size:12px}.net-total-summary strong{font-size:20px;color:var(--green);font-variant-numeric:tabular-nums}.net-total-discount{margin:10px 0 0;padding:9px 11px;background:#f8fbf8;border-radius:6px;font-variant-numeric:tabular-nums}html[data-theme="dark"] .calculator-trigger,html[data-theme="dark"] .cell-calculator-key{background:#26352f;border-color:#42584c;color:#c9e4d4}html[data-theme="dark"] .calculator-trigger:hover,html[data-theme="dark"] .cell-calculator-key:hover{background:#30483c}html[data-theme="dark"] .net-total-summary,html[data-theme="dark"] .net-total-discount{background:#25332d;border-color:#3d5147;color:#c2d5c8}
.sheet-table{min-width:1370px}.sheet-table [data-sheet-discount]{width:92px;min-width:82px}.sheet-table [data-sheet-discounted-price],.sheet-table [data-sheet-discount-amount]{min-width:102px;white-space:nowrap}.cart-discount-field{display:block;clear:both;margin-top:9px;font-size:11px;color:#587162}.cart-discount-field input{display:block;width:125px;max-width:100%;padding:7px 9px;border:1px solid #c6dacd;border-radius:6px;font-size:15px;margin-top:5px;background:white;color:#165b42}.cart-discount-preview{display:block;margin-top:7px!important;font-size:10px!important;color:#7c8c83}.cart-discount-preview b{color:#167b63;font-weight:650}.cart-discount-preview b+b{margin-left:2px}
.unit-options-editor{margin-top:5px;border:1px solid #e1ebe2;border-radius:9px;background:#fbfdfb;padding:15px 16px;overflow:hidden}.unit-options-editor .panel-head{padding:0 0 12px;border-bottom:1px solid #e8efe9}.unit-options-editor h4{margin:0 0 6px;color:#486c52;font-size:13px}.unit-options-table-wrap{overflow:auto;margin-top:12px}.unit-options-table{width:100%;min-width:1080px;border-collapse:collapse;font-size:10px}.unit-options-table th{background:#eef6f0;color:#5d7663;font-weight:600;white-space:nowrap;padding:9px 8px;border:1px solid #dfeae1}.unit-options-table td{padding:7px 6px;border:1px solid #e3ece4;vertical-align:middle;color:#5e7464;white-space:nowrap}.unit-options-table input{width:100%;min-width:74px;padding:7px 6px;border:1px solid #dfe8e1;border-radius:5px;background:#fff;color:#526c59;font:inherit}.unit-options-table input:focus{outline:2px solid #a8d2b6;border-color:#67a67b}.unit-options-table td:nth-child(2) input{min-width:95px}.unit-options-table td:nth-child(3){display:flex;align-items:center;gap:4px}.unit-options-table td:nth-child(3) input{min-width:62px;width:62px}.unit-eq,.unit-base-label{color:#7d9583}.unit-base-row{background:#f7faf7}.unit-base-row strong{color:#376847}.unit-row-actions{display:flex;gap:3px}.unit-row-actions .icon-btn{width:25px;height:25px}.unit-defaults{margin-top:14px}.unit-defaults .field{margin-bottom:0}.unit-options-editor>.muted{margin:12px 0 0;font-size:10px}
.ai-mode-switch{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid #dce9df;border-radius:7px;background:#f7fbf8}.ai-mode-switch>span{padding:0 7px;color:#6f8576;font-size:11px}.ai-mode-switch button{border:0;border-radius:5px;padding:6px 10px;background:transparent;color:#66806d;font:inherit;font-size:11px;cursor:pointer}.ai-mode-switch button.selected{background:#dff1e4;color:#216b42;font-weight:700}.ai-mode-switch button:focus{outline:2px solid #a8d2b6;outline-offset:1px}@media(max-width:600px){.ai-mode-switch{width:100%;justify-content:space-between}.ai-mode-switch button{flex:1}}
.catalog-layout-full{display:grid;grid-template-columns:minmax(220px,250px) minmax(0,1fr);gap:14px;align-items:start}
.catalog-layout-full>.category-sidebar{position:sticky;top:76px;max-height:calc(100dvh - 96px);overflow:auto;margin:0;padding:14px 12px}
.catalog-layout-full>.catalog-products{min-width:0}
.category-tree-content{min-height:40px}
.category-tree-content .category-tree-select{font-size:12px}
@media(max-width:800px){.catalog-layout-full{display:block}.catalog-layout-full>.category-sidebar{position:static;max-height:none;margin-bottom:14px}.catalog-layout-full>.category-sidebar .category-tree-content{max-height:260px;overflow:auto}}
.pos-layout-with-categories{grid-template-columns:minmax(190px,230px) minmax(0,1fr) minmax(300px,342px)}
.pos-layout-with-categories>.pos-products{min-width:0}
.pos-layout-with-categories>.category-sidebar{position:sticky;top:76px;max-height:calc(100dvh - 96px);overflow:auto;margin:0;padding:14px 12px}
@media(max-width:1250px){.pos-layout-with-categories{grid-template-columns:minmax(180px,210px) minmax(0,1fr) 304px}}
@media(max-width:1050px){.pos-layout-with-categories{grid-template-columns:minmax(175px,195px) minmax(0,1fr) 285px}}
@media(max-width:800px){.pos-layout-with-categories{grid-template-columns:1fr}.pos-layout-with-categories>.category-sidebar{position:static;max-height:240px;margin-bottom:14px}.pos-layout-with-categories>.category-sidebar .category-tree-content{max-height:170px;overflow:auto}}
.workspace-back{display:inline-flex;align-items:center;gap:5px;width:auto;padding:7px 9px;color:var(--green);white-space:nowrap}
.workspace-back .icon{width:18px;height:18px}
.workspace-back span{font-size:11px}
@media(max-width:600px){.workspace-back{padding:7px}.workspace-back span{display:none}.workspace-back+.breadcrumb{margin-left:-4px}}
.sidebar{transition:transform .2s ease,visibility .2s ease}
.app-shell.sidebar-collapsed .sidebar{transform:translateX(-100%);visibility:hidden;pointer-events:none}
.app-shell.sidebar-collapsed .workspace{margin-left:0}
.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;color:var(--green);padding:7px;margin-right:2px}
.sidebar-toggle .icon{width:19px;height:19px;transform:rotate(180deg);transition:transform .2s ease}
.sidebar-toggle.is-collapsed .icon{transform:rotate(0)}
@media(max-width:800px){.sidebar-toggle{display:none}}
@media(max-width:600px){.topbar{gap:8px}.breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis}.top-actions{gap:4px}.user-button{min-width:0;max-width:100px}.user-button>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.pos-layout-with-categories .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.barcode-scan-bar{display:grid;grid-template-columns:auto minmax(190px,1fr) minmax(230px,420px) auto;gap:12px;align-items:center;margin:0 0 14px;padding:12px 15px;background:#f3faf5;border:1px solid #cfe4d5;border-radius:9px;color:#496354}.barcode-scan-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#e1f2e7;color:#087f68}.barcode-scan-icon .icon{width:20px;height:20px}.barcode-scan-copy strong,.barcode-scan-copy small{display:block}.barcode-scan-copy strong{font-size:13px;color:#315f48}.barcode-scan-copy small{margin-top:3px;font-size:10px;color:#789080}.barcode-scan-bar input{width:100%;min-width:0;height:40px;border:1px solid #bad5c4;border-radius:7px;padding:8px 11px;background:#fff;color:#30483a;font:inherit;font-size:13px;outline:none}.barcode-scan-bar input:focus{border-color:#09866d;box-shadow:0 0 0 3px #09866d1c}.barcode-scan-bar input::placeholder{color:#9bac9f}.barcode-scan-bar>.text-button{white-space:nowrap;font-size:11px}
html[data-theme="dark"] .barcode-scan-bar{background:#1b2b25;border-color:#344e42;color:#dce8e2}html[data-theme="dark"] .barcode-scan-icon{background:#243c31;color:#82e0bd}html[data-theme="dark"] .barcode-scan-copy strong{color:#d3eee0}html[data-theme="dark"] .barcode-scan-copy small{color:#b3c5b9}html[data-theme="dark"] .barcode-scan-bar input{background:#141f1b;border-color:#455e51;color:#e0ebe5}html[data-theme="dark"] .barcode-scan-bar input::placeholder{color:#9aafa1}
@media(max-width:700px){.barcode-scan-bar{grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:10px}.barcode-scan-copy small{max-width:220px}.barcode-scan-bar input{grid-column:1/-1;grid-row:2;height:42px}.barcode-scan-bar>.text-button{grid-column:3;grid-row:1;padding:4px;font-size:10px}}

/* Keep the mobile sales screen readable when several actions are available. */
@media(max-width:600px){
 .page-heading{display:block;min-width:0}
 .page-heading>div:first-child{min-width:0}
 .page-heading h1{line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 .page-heading p{max-width:none;line-height:1.65}
 .page-heading .heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;margin-top:12px;gap:8px}
 .page-heading .heading-actions>.btn{width:100%;min-width:0;min-height:40px;padding:8px 7px;line-height:1.35;white-space:normal;text-align:center}
 .page-heading .heading-actions>.btn .icon{flex:0 0 auto}
 .pos-layout-with-categories .product-grid{padding:10px;gap:10px}
 .pos-layout-with-categories .product-tile{display:flex;flex-direction:column;min-height:194px;padding:11px 10px;border-radius:9px}
 .pos-layout-with-categories .product-tile .tile-top{min-height:47px;margin-bottom:9px;gap:4px;flex-wrap:wrap}
 .pos-layout-with-categories .product-tile .tile-category{max-width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pos-layout-with-categories .product-tile>strong{min-height:35px;line-height:1.45;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
 .pos-layout-with-categories .product-tile>p{min-height:27px;line-height:1.4;margin:5px 0 3px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
 .pos-layout-with-categories .product-tile>small{line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .pos-layout-with-categories .product-tile .tile-location{margin-top:3px}
 .pos-layout-with-categories .product-tile .tile-bottom{margin-top:auto;padding-top:8px;gap:5px;align-items:center}
 .pos-layout-with-categories .product-tile .tile-bottom>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
 .pos-layout-with-categories .product-tile .tile-bottom>span{width:32px;height:32px;flex:0 0 32px}
 .pos-layout-with-categories .product-tile .tile-qty-badge{max-width:calc(100% - 42px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 6px;font-size:9px}
}

.stock-camera-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.stock-camera-actions>.btn{display:inline-flex;align-items:center;gap:7px}.stock-camera-actions .icon{width:16px;height:16px}.stock-count-panel .table-scroll{max-width:100%}.stock-count-panel table{width:100%;table-layout:fixed}.stock-count-panel th:first-child,.stock-count-panel td:first-child{width:43%}.stock-count-panel th:nth-child(2),.stock-count-panel td:nth-child(2){width:19%}.stock-count-panel th:nth-child(3),.stock-count-panel td:nth-child(3){width:27%}.stock-count-panel th:last-child,.stock-count-panel td:last-child{width:11%}.stock-count-panel td:first-child{overflow-wrap:anywhere}.stock-count-panel td:first-child small{display:block}.stock-count-panel [data-stock-count-qty]{width:100%;min-width:0;max-width:110px}@media(max-width:600px){.stock-camera-actions{align-items:flex-start;flex-direction:column;gap:7px}.stock-camera-actions>.btn{width:100%;justify-content:center;min-height:42px}.stock-count-panel .panel-head{align-items:flex-start;gap:10px}.stock-count-panel .panel-head h3{line-height:1.45}.stock-count-panel .panel-head h3 small{display:block;margin-top:4px;white-space:normal}.stock-count-panel th,.stock-count-panel td{padding:7px 4px;font-size:11px}.stock-count-panel th:first-child,.stock-count-panel td:first-child{width:40%}.stock-count-panel th:nth-child(2),.stock-count-panel td:nth-child(2){width:20%}.stock-count-panel th:nth-child(3),.stock-count-panel td:nth-child(3){width:29%}.stock-count-panel th:last-child,.stock-count-panel td:last-child{width:11%}.stock-count-panel .icon-btn{width:26px;height:26px}.stock-count-panel .form-footer{display:grid;grid-template-columns:1fr 1fr}.stock-count-panel .form-footer .btn{min-width:0;padding:8px 5px}.stock-count-panel .field input{min-width:0}}

/* The button stays outside page content so it remains available on long lists. */
.floating-top{position:fixed;right:24px;bottom:28px;z-index:45;width:44px;height:44px;display:grid;place-items:center;border:1px solid #b8d9c5;border-radius:50%;background:#ffffffee;color:var(--green);box-shadow:0 8px 24px #173d2a26;opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;transition:opacity .18s ease,visibility .18s ease,transform .18s ease,background .18s ease;color .18s ease}
.floating-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.floating-top:hover{background:#eaf6ee;color:#076f5a}
.floating-top:focus-visible{outline:3px solid #58b99566;outline-offset:3px}
.floating-top .icon{width:20px;height:20px}
html[data-theme="dark"] .floating-top{background:#22332cee;border-color:#4b7462;color:#9ce5c7;box-shadow:0 8px 24px #0000004d}
html[data-theme="dark"] .floating-top:hover{background:#2c493b;color:#c9f5df}
@media(max-width:800px){.floating-top{right:16px;bottom:calc(76px + env(safe-area-inset-bottom));width:42px;height:42px}}
@media(max-width:420px){.floating-top{right:12px}}


/* ??????????????????????????????????? */
.heading-actions:has(.sheet-heading-tabs){
  flex:1 1 auto;
  min-width:0;
  max-width:min(100%,760px);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.sheet-heading-tabs{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
}
.sheet-heading-label{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid #dfeae2;
  border-radius:7px;
  background:#f3f8f4;
  color:#5f806b;
  font-size:11px;
  font-weight:650;
  letter-spacing:.2px;
  white-space:nowrap;
}
.sheet-heading-tabs .sheet-order-tabs{
  min-width:0;
  max-width:100%;
  margin-right:0;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding:2px 1px 4px;
  scrollbar-width:thin;
}
.sheet-heading-tabs .sheet-order-item,
.sheet-heading-tabs .sheet-order-tab,
.sheet-heading-tabs .sheet-order-new{
  flex:0 0 auto;
}
.sheet-heading-buttons{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.sheet-heading-buttons>.btn{
  min-height:38px;
}
@media(max-width:900px){
  .page-heading:has(.sheet-heading-tabs){align-items:flex-start;flex-wrap:wrap}
  .heading-actions:has(.sheet-heading-tabs){width:100%;max-width:none;flex-basis:100%;align-items:stretch}
  .sheet-heading-tabs,.sheet-heading-buttons{justify-content:flex-start}
}
@media(max-width:600px){
  .heading-actions:has(.sheet-heading-tabs){gap:9px;margin-top:12px}
  .sheet-heading-tabs{align-items:flex-start;gap:7px}
  .sheet-heading-label{padding:7px 8px;font-size:10px}
  .sheet-heading-tabs .sheet-order-tabs{padding-bottom:3px}
  .sheet-heading-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sheet-heading-buttons>.btn{width:100%;min-width:0;min-height:40px;padding:8px 7px;white-space:normal;text-align:center}
}
@media(max-width:420px){
  .sheet-heading-buttons{grid-template-columns:1fr}
}
