@import url("Icons.css");
:root{--ink:#182326;--muted:#667376;--line:#dde4e2;--green:#126d5b;--soft:#edf5f1;--bar:#303638;--bg:#f4f6f5}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--ink)}button,input,select{font:inherit}button,.button{border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);padding:9px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px}button:hover,.button:hover{border-color:#8da7a0;background:var(--soft)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:600}.primary:hover{background:#0c5849;color:white}.primary span{margin-left:auto}input,select{border:1px solid #cbd6d2;border-radius:5px;padding:9px 10px;background:#fff;color:var(--ink);min-width:0}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #8dd9c4;outline-offset:2px}label{display:grid;gap:5px;font-size:13px;font-weight:600}label input,label select{width:100%}h1,h2,p{margin:0}h1{font-size:27px;letter-spacing:-.7px;font-weight:650}h2{font-size:18px}p{margin:9px 0}small,.muted{font-size:12px;color:var(--muted)}[hidden]{display:none!important}.toolbar{background:var(--bar);color:white;min-height:62px;padding:8px 24px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:9px;color:white;text-decoration:none;font-size:18px;font-weight:600;white-space:nowrap}.brandmark{font-size:15px;border:1px solid #83958f;border-radius:5px;padding:5px}.toolbar nav,.tools{display:flex;align-items:center;gap:5px}.toolbar button{color:#e6ece9;background:transparent;border-color:transparent;padding:6px 9px;font-size:22px;min-width:40px}.toolbar button span{font-size:13px}.toolbar button.active{background:#4d5855;color:white}.tools{margin-left:auto}.tools input{height:27px;width:230px;font-size:13px;padding:3px 8px}.tools select{height:32px;padding:4px 8px;max-width:180px}.context{padding:9px 26px;display:flex;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);gap:15px}main{padding:27px;max-width:1660px;margin:auto}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--green);margin-bottom:5px}.panel{background:white;border:1px solid var(--line);border-radius:10px}.login{max-width:410px;margin:7vh auto;padding:33px}.login h1{margin:13px 0}.login form{display:grid;gap:17px;margin:25px 0}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:21px}.pill{border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:12px;white-space:nowrap}.pos{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:28px}.filters{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.filters button{min-height:30px;padding:5px 13px;font-size:12px;border-radius:20px;background:transparent}.filters .active{background:var(--green);color:white;border-color:var(--green)}.catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:13px}.product{text-align:left;display:flex;flex-direction:column;align-items:stretch;padding:17px;min-height:190px;gap:10px;border-radius:9px}.product:hover{transform:translateY(-1px);box-shadow:0 5px 16px #173a2b0b}.product .device{background:#f0f4f2;height:50px;width:50px;display:grid;place-items:center;border-radius:9px;font-size:28px;color:#427568}.product .sku{font-size:10px;color:var(--muted);letter-spacing:.5px}.product strong{font-size:14px;font-weight:600;line-height:1.4}.product .bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.product .price{font-size:19px;font-weight:650}.product .stock{font-size:11px;color:var(--muted)}.cart{padding:21px;display:flex;flex-direction:column;align-self:start;position:sticky;top:15px;min-height:570px}.textbutton{border:0;background:none;padding:2px;color:var(--muted);min-height:30px;font-size:12px}.cartlines{flex:1;min-height:210px}.empty{text-align:center;padding:45px 20px;color:var(--muted);border:1px dashed var(--line);border-radius:7px}.empty strong{display:block;color:var(--ink);margin-bottom:7px}.cartline{border-bottom:1px solid var(--line);padding:13px 0}.cartline .name{display:flex;justify-content:space-between;gap:7px}.linecontrols{display:grid;grid-template-columns:65px 95px 1fr;gap:8px;align-items:end;margin:10px 0}.linecontrols input{width:100%;padding:5px 7px}.linecontrols label{font-size:10px;color:var(--muted)}.linecontrols strong{text-align:right;font-size:14px}.cartline .reason{width:100%;padding:6px 8px;font-size:12px}.checkout{padding-top:20px}.total{display:flex;align-items:center;justify-content:space-between;font-size:16px}.total strong{font-size:32px;letter-spacing:-1px}.checkout label{margin:18px 0}.checkout .primary{width:100%}.checkout #retry{width:100%;margin-top:8px}.importintro{padding:20px;margin-bottom:25px}.importintro form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:white;margin:14px 0 27px}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.5px;background:#eef2f0;color:#53645c;padding:12px;white-space:nowrap}td{padding:11px 12px;border-top:1px solid #e9eeeb;vertical-align:top}td input{width:100%;min-width:85px;padding:6px}td .current{display:block;color:var(--muted);font-size:11px;margin-top:5px;white-space:normal}.status{font-size:11px;border-radius:4px;padding:3px 6px;background:var(--soft);display:inline-block}.status.error{background:#ffeded;color:#ac3535}.status.changed{background:#fff3d9;color:#875e0c}.errorlist{font-size:11px;color:#ab3333;min-width:150px}.actions{display:flex;gap:9px;flex-wrap:wrap}.adminforms{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start;margin-bottom:25px}.adminforms form{padding:23px;display:grid;gap:14px}.adminforms fieldset{border:1px solid var(--line);border-radius:6px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}#userLocations{display:flex;gap:18px;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#303638;color:white;padding:15px 23px;border-radius:8px;box-shadow:0 4px 20px #0002;z-index:9}dialog{border:1px solid var(--line);border-radius:10px;padding:25px;max-width:480px}dialog::backdrop{background:#15221e66}dialog .actions{justify-content:flex-end;margin-top:20px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1150px){.toolbar{gap:10px;padding:8px 14px}.toolbar button span{display:none}.tools input{width:180px}.pos{grid-template-columns:minmax(0,1fr) 330px;gap:17px}main{padding:20px}.catalog{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}@media(max-width:760px){.pos,.adminforms{grid-template-columns:1fr}.cart{position:static;min-height:400px}.tools{width:100%;margin:0}.tools input{flex:1}.toolbar{justify-content:space-between}.context{padding:8px 15px;flex-wrap:wrap;gap:3px}main{padding:15px}.sectionhead{align-items:start;flex-wrap:wrap}h1{font-size:23px}.catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product{padding:13px;min-height:185px}.product .price{font-size:17px}}

/* Original website logo, displayed locally; frame removes only transparent canvas padding. */
.brand-logo{position:relative;display:block;overflow:hidden;background:#fff;border-radius:5px;width:60px;height:46px;flex:none}.brand-logo img{position:absolute;width:76px;height:76px;max-width:none;left:-8px;top:-14px}.login-logo{position:relative;overflow:hidden;width:164px;height:126px;margin:0 auto 22px}.login-logo img{position:absolute;width:216px;height:216px;max-width:none;left:-25px;top:-41px}

/* Keep navigation reachable after scrolling short or narrow windows. */
.toolbar{position:sticky;top:0;z-index:20;box-shadow:0 1px 0 #0001}.catalog-empty{grid-column:1/-1;max-width:520px;background:#fff;text-align:left;padding:28px}.catalog-empty p{margin:8px 0 18px}.catalog-empty .primary{font-size:13px}.catalog-empty strong{font-size:16px}

/* Spreadsheet-style review: editable proposals, read-only existing inventory. */
.import-sheet{max-height:65vh;overflow:auto;border-radius:3px;border-color:#c9d3ce;scroll-padding-top:42px}
#importGrid{min-width:1168px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}
#importGrid.sheet-has-errors{min-width:1358px}
.sheet-col-row{width:34px}.sheet-col-status{width:62px}.sheet-col-sku{width:150px}.sheet-col-barcode{width:126px}.sheet-col-name{width:230px}.sheet-col-category{width:90px}.sheet-col-quantity{width:86px}.sheet-col-price{width:90px}.sheet-col-validation{width:190px}.sheet-col-existing-qty{width:90px}.sheet-col-existing-price{width:100px}.sheet-col-existing-value{width:110px}
#importGrid th,#importGrid td{height:31px;padding:0;border:0;border-right:1px solid #dce3df;border-bottom:1px solid #dce3df;vertical-align:middle;overflow:hidden}
#importGrid thead th{position:sticky;top:0;z-index:4;background:#e9efeb;color:#3e5048;padding:5px 7px;height:40px;font-size:10px;line-height:1.3;letter-spacing:.35px;text-align:left;white-space:normal}
#importGrid tbody td{background:#fff}
#importGrid tbody tr:nth-child(even) td:not(.sheet-existing){background:#fbfcfb}
#importGrid .sheet-rownum{position:sticky;left:0;z-index:2;background:#edf2ef;color:#6b7c72;text-align:center;font-size:11px;font-weight:400}
#importGrid .sheet-status{position:sticky;left:34px;z-index:2;text-align:center;background:#f7faf8}
#importGrid thead .sheet-rownum,#importGrid thead .sheet-status{z-index:6}
#importGrid .status{font-size:10px;padding:2px 5px;border-radius:2px;line-height:17px;white-space:nowrap}
#importGrid .sheet-edit input{display:block;width:100%;height:30px;min-width:0;margin:0;border:0;border-radius:0;padding:5px 7px;font:inherit;line-height:20px;background:transparent;box-shadow:none;color:#22372e}
#importGrid .sheet-edit input:focus{position:relative;outline:2px solid #13755e;outline-offset:-2px;background:#fff;z-index:1}
#importGrid .sheet-edit input:disabled{color:#51645a;opacity:1;cursor:default}
#importGrid .sheet-numeric,#importGrid .sheet-numeric input{text-align:right}
#importGrid .sheet-existing{background:#f0f5f2;color:#465b50;padding:5px 8px;white-space:nowrap}
#importGrid thead .sheet-existing{background:#dfeae3;white-space:normal}
#importGrid .sheet-existing-start{border-left:2px solid #aabfb2}
#importGrid .sheet-changed{box-shadow:inset 3px 0 #d7a138}
#importGrid td.sheet-edited{background:#fff8dd!important}
#importGrid .sheet-row-error .sheet-status{background:#fff0ef}
#importGrid .sheet-validation{color:#a3342e;font-size:11px;padding:5px 8px;white-space:nowrap;text-overflow:ellipsis;background:#fff5f4!important}
.brand-symbol{position:relative;display:block;width:44px;height:28px;overflow:hidden;flex:none}
.brand-symbol-base,.brand-symbol-signal{position:absolute;inset:0;background:#f5f8fb;mask-image:url('Logo.png');mask-size:76px 76px;mask-position:-17px -15px;mask-repeat:no-repeat;-webkit-mask-image:url('Logo.png');-webkit-mask-size:76px 76px;-webkit-mask-position:-17px -15px;-webkit-mask-repeat:no-repeat}
.brand-symbol-signal{background:#4eddd1;clip-path:inset(0 0 16.5px 28px)}

.catalog-heading-actions{display:flex;align-items:center;gap:9px}.catalog-view-toggle{padding:7px;min-width:40px;min-height:40px}.catalog-view-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.catalog-view-toggle.active{background:#e4f1eb;color:#126d5b;border-color:#b5d3c5}
.single-location-control{display:flex;align-items:center}.location-multiselect{position:relative;min-width:155px;max-width:210px;font-size:13px}.location-multiselect summary{display:flex;gap:8px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:5px 9px;min-height:32px;border:1px solid #cbd6d2;border-radius:5px;color:#233c32;background:#fff}.location-multiselect summary::-webkit-details-marker{display:none}.location-multiselect summary:after{content:'⌄';font-size:15px}.location-multiselect summary:focus-visible{outline:3px solid #8dd9c4;outline-offset:2px}#locationSummary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-filter-menu{position:absolute;right:0;top:calc(100% + 7px);width:245px;max-height:320px;overflow:auto;padding:8px;background:#fff;color:#24382e;border:1px solid #cddbd3;border-radius:7px;box-shadow:0 8px 28px #13251d33;z-index:30}.location-filter-menu label{display:flex;align-items:center;gap:8px;padding:8px;font-size:13px;font-weight:400;cursor:pointer}.location-filter-menu input{width:auto;accent-color:#126d5b}.location-filter-menu .all-locations{font-weight:600;border-bottom:1px solid #e2e9e5;margin-bottom:4px}
.sale-location{padding-bottom:15px;border-bottom:1px solid #e2e9e5;margin-bottom:5px}.sale-location select{width:100%;font-size:13px;padding:7px 9px}.sale-location p{margin:5px 0 0}.stock-breakdown{display:grid;gap:3px;margin:2px 0 5px}.store-stock{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;line-height:1.6;color:#62746a}.store-stock>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-stock b{font-weight:600;font-variant-numeric:tabular-nums}.store-stock.sale-store-stock{color:#16664e}.sale-availability{font-size:11px;color:#557064}.product:disabled{opacity:1;cursor:default}.product:disabled .sale-availability{color:#8b9791}.product:disabled:hover{transform:none;box-shadow:none}
.catalog.catalog-list{display:block}.sales-list-wrap{overflow:auto;border:1px solid #dce5df;border-radius:7px;background:white}.sales-inventory-list{font-size:12px;min-width:620px}.sales-inventory-list th{font-size:10px;padding:10px;white-space:normal;min-width:70px}.sales-inventory-list td{padding:9px 10px;vertical-align:middle}.sales-inventory-list td:first-child{white-space:nowrap;font-size:11px}.sales-inventory-list td small{display:block;margin-top:2px;font-size:10px}.sales-inventory-list tbody tr:nth-child(even){background:#fafcfb}.sales-number{text-align:right;font-variant-numeric:tabular-nums}.sales-inventory-list .stock-column{text-align:right;min-width:85px}.sales-inventory-list .sale-stock-column{background:#edf5f0;color:#126d5b;font-weight:600}.sales-inventory-list button{font-size:12px;min-height:32px;padding:5px 9px;white-space:nowrap}
@media(max-width:760px){.location-multiselect{max-width:150px;min-width:125px}.location-filter-menu{right:0;width:230px}.catalog-heading-actions{gap:6px}.stock-breakdown{width:100%}.product .bottom{align-items:flex-end;gap:6px}.sale-availability{max-width:75px;text-align:right}.catalog .product{min-height:220px}}

/* Inline administration tables. */
.admin-section{margin-bottom:28px}.admin-heading{display:flex;align-items:center;gap:10px;margin:18px 0 10px}.admin-heading h2{margin:0}.admin-add{font-size:24px;line-height:1;width:34px;height:34px;padding:0;color:var(--green,#126d60)}
.admin-table{width:100%;table-layout:auto}.admin-table td{vertical-align:top}.admin-table small{display:block;font-size:11px;color:#607582;margin-top:5px}.admin-table input:not([type=checkbox]),.admin-table select{min-width:125px;width:100%;box-sizing:border-box}.admin-table input[name=name]{min-width:160px}.admin-table input[name=password]{min-width:150px}.admin-edit-row{background:#eef7f4}.admin-edit-row td{padding:10px}.admin-actions{display:flex;gap:6px;white-space:nowrap}.admin-actions button{padding:8px 11px}.admin-location-choices{min-width:145px;max-height:150px;overflow-y:auto}.admin-table .check{display:flex;align-items:center;gap:5px;margin:0 0 5px;font-size:12px}.admin-table input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0}

/* The toolbar and catalog controls stay outside their independently scrolling bodies. */
body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.toolbar{flex:none}.toolbar-identity{font-size:12px;color:#e2eae6;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}main{flex:1;min-height:0;overflow:auto;width:100%}.sales-open main{overflow:hidden}#workspace{min-height:0}.sales-open #workspace,.sales-open .pos{height:100%}.catalog-pane{display:flex;flex-direction:column;min-height:0;min-width:0}.catalog-header{flex:none;position:relative;z-index:5;background:var(--bg);padding-bottom:12px}.catalog-header .sectionhead{margin-bottom:12px}.catalog-controls{display:flex;align-items:center;gap:10px;margin-bottom:12px}.catalog-controls>input{flex:1;width:100%;height:32px;padding:4px 9px;font-size:13px}.catalog-header .filters{margin:0}.catalog-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.sales-open .cart{position:static;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}.sales-open .cartlines{flex:1 0 auto}.sales-list-wrap{overflow:visible;border:0;border-radius:0}.sales-inventory-list{border-collapse:separate;border-spacing:0}.sales-inventory-list thead th{position:sticky;top:0;z-index:2;background:#303638;color:#fff}.sales-inventory-list td{background:#fff}.category-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}.sales-inventory-list .category-filter-button{min-height:30px;min-width:30px;padding:4px;border:0;background:transparent;color:#fff}.category-filter-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.sales-inventory-list .category-filter-button.filtered{color:#ff4d58}.category-filter-button:focus-visible{outline:2px solid #8dd9c4}.category-column{min-width:130px}.category-menu{position:absolute;right:0;top:100%;width:260px;max-width:100%;max-height:300px;overflow:auto;background:#fff;border:1px solid #cbd6d2;border-radius:7px;box-shadow:0 8px 28px #13251d33;padding:12px;z-index:10}.category-menu .sectionhead{margin:0 0 6px}.category-menu button{min-height:30px;padding:2px 8px;font-size:20px}.category-menu label{display:flex;align-items:center;gap:9px;padding:7px;font-weight:400}.category-menu input{width:16px;height:16px;margin:0;accent-color:var(--green)}.category-menu>label{border-bottom:1px solid var(--line);font-weight:600}.catalog-controls .location-filter-menu{top:100%}.sales-open .pos{align-items:stretch}
@media(max-width:760px){.toolbar{gap:5px}.toolbar .tools{width:auto;margin-left:auto}.toolbar-identity{max-width:120px;margin-right:0}.sales-open main{padding:12px}.sales-open .pos{display:flex;flex-direction:column;gap:12px}.catalog-pane{flex:1;min-height:200px}.sales-open .cart{height:36%;flex:0 0 36%;padding:14px}.catalog-header h1{font-size:20px}.catalog-header .sectionhead{flex-wrap:nowrap;gap:8px}.catalog-heading-actions{gap:4px}.catalog-heading-actions .pill{padding:4px 7px}.catalog-view-toggle{min-width:34px;min-height:34px;padding:5px}.catalog-controls{gap:7px}.catalog-controls .location-multiselect{min-width:115px}.catalog-header .eyebrow{margin:0}.catalog-header{padding-bottom:8px}.catalog-header .filters{gap:4px}.catalog-header .filters button{padding:3px 8px;min-height:27px}}

@media(max-width:760px){.toolbar .brand{font-size:16px;gap:6px}.toolbar nav{gap:0}.toolbar nav button{min-width:34px;min-height:34px;padding:4px}}

/* Compact sale heading and matching top inset for catalog/cart. */
.sales-open main{padding-top:10px;padding-bottom:12px}.catalog-header .sectionhead{margin-bottom:8px;min-height:40px}.catalog-header h1{font-size:23px;line-height:1.25;letter-spacing:-.4px}.catalog-controls{margin-bottom:8px}.catalog-header{padding-bottom:9px}.sales-open .cart{padding-top:14px}.catalog-sale-hint{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#fff4db;border:1px solid #e8d7ac;border-radius:5px;padding:7px 9px;margin-bottom:8px;font-size:12px}.catalog-sale-hint button{min-height:30px;padding:4px 8px;font-size:12px}.catalog-header .filters:empty{display:none}@media(max-width:760px){.sales-open main{padding-top:8px}.catalog-header h1{font-size:18px}.catalog-header .sectionhead{min-height:34px;gap:5px}.sales-open .cart{padding-top:12px}}

/* Compact cart controls keep their labels beside the values. */
.cartline{padding:8px 0}.cartline .name{align-items:center;gap:6px}.cartline .name strong{font-size:13px;line-height:1.3}.cartline .name .textbutton{min-height:23px;padding:0 3px}.cartline>small{display:block;font-size:10px;line-height:1.3;margin:1px 0 0}.linecontrols{grid-template-columns:77px minmax(118px,1fr) auto;gap:6px;align-items:center;margin:6px 0 2px}.linecontrols label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px}.linecontrols label input{flex:1;width:50px;min-width:0;height:27px;padding:3px 5px}.linecontrols strong{font-size:13px;white-space:nowrap}.cartline .reason{margin-top:5px}.sale-location>label{display:flex;align-items:center;gap:8px}.sale-location>label+select{margin-top:4px}.sale-location{padding-bottom:10px;margin-bottom:2px}.sale-location p{font-size:11px;margin-top:4px}.cart .sectionhead{margin-bottom:12px}
.sales-inventory-list .category-group-button{min-height:30px;min-width:30px;padding:4px;border:0;background:transparent;color:white}.category-group-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.sales-inventory-list .category-group-button.grouped{color:#ff4d58;background:#455653}.category-heading{gap:3px}.category-column{min-width:160px}.sales-inventory-list .catalog-group-row td{background:#e3eee8;padding:7px 10px;color:#1d5949;border-top:1px solid #bfd3c7}.catalog-group-row strong{font-size:12px}.catalog-group-row span{margin-left:10px;font-size:11px;color:#58776a}

.sale-location-row{display:flex;align-items:center;gap:10px}.sale-location-row label{white-space:nowrap;font-size:12px}.sale-location-row select{flex:1;min-width:0;width:auto}.checkout>label{display:flex;align-items:center;gap:10px;white-space:nowrap;margin:12px 0;font-size:12px}.checkout>label select{flex:1;min-width:0;width:auto;padding:6px 7px}.checkout{padding-top:12px}

.inventory-status{font-size:12px;color:#426c60;padding:4px 0 7px}.inventory-status-error{color:#b3313c}.sales-adjusted td{color:#b32636;background:#fff2f3}.sales-adjusted td:first-child{font-weight:700}

#transferForm{display:grid;gap:10px;min-width:min(330px,75vw)}#transferForm .actions{margin-top:5px}#inventorySearch{width:min(440px,100%)}

.stock-actions{display:flex;gap:7px;white-space:nowrap}.stock-actions button{font-size:12px;padding:6px 9px;min-height:34px}#correctionForm{display:grid;gap:10px;min-width:min(330px,75vw)}#correctionPreview{font-weight:600;color:#245a49}#inventory>.sectionhead{flex-wrap:wrap;justify-content:flex-start}#inventory>.sectionhead>div:first-child{margin-right:auto}

.stock-location-group td{background:#e4eee9;border-top:1px solid #bed0c5;vertical-align:middle}.stock-location-group td>span{font-size:12px;color:#62776a;margin-left:12px}.stock-location-heading{display:flex;align-items:center;gap:10px;white-space:nowrap}.stock-location-heading button{padding:3px 8px;min-height:28px;font-size:11px}.stock-location-code{font-size:11px;color:#536f62;white-space:nowrap}#inventoryLocationsToggle[aria-pressed=true]{background:#e4f1eb;border-color:#9dbfb1;color:#126d5b}

.bulk-transfer-panel{padding:15px;border:1px solid #b7cfc1;background:#edf5f0;border-radius:8px;margin:10px 0 18px;display:grid;gap:10px}.bulk-transfer-panel textarea{font:inherit;resize:vertical;border:1px solid #cbd6d2;border-radius:5px;padding:7px 9px;max-width:650px;width:100%}.bulk-destination-actions{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.bulk-destination-actions label{min-width:230px}.bulk-transfer-panel p{font-size:12px;margin:0}.bulk-quantity-cell input{width:90px!important;min-width:70px;padding:6px}#bulkTransferToggle[aria-pressed=true]{color:#b32636;border-color:#c8777f;background:#fff0f1}

.history-transfer td{background:#eef6f2;color:#1d6552}.history-transfer td:nth-child(2){font-weight:700}

.history-summary{cursor:pointer}.history-open{padding:2px 5px;min-height:30px;font-size:12px;background:transparent;border-color:transparent;white-space:nowrap;color:inherit}.history-receipt td{background:#f8f3e8;color:#76561d}.transaction-detail-content{padding:12px 16px;background:#fff;border:1px solid #d7e2db;border-radius:5px}.transaction-detail-table{overflow:auto;margin-top:8px}.transaction-detail-table th{background:#edf2ee;font-size:10px}.transaction-detail-table td{background:#fff!important;color:#233b30!important;font-size:12px}.transaction-detail-content p{font-size:12px}.transaction-detail-content>strong{font-size:13px}

.subtotal-row,.tax-total-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:5px 0;font-size:12px}.tax-total-row label{display:flex;gap:3px;font-size:12px;margin:0}.tax-total-row input{width:75px;padding:4px 6px;height:29px;font-size:12px}.tax-total-row>span{display:flex;align-items:center;gap:4px;margin-right:auto}.tax-total-row strong{white-space:nowrap}.tax-reason{width:100%;font-size:12px;padding:6px 8px;margin:5px 0}.tax-notice{font-size:11px;color:#9a5b17;background:#fff4dd;border-radius:4px;padding:7px}.checkout .total{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}

/* Compact inventory rows: controls and text share one vertical center. */
#stockTable th,#stockTable td{vertical-align:middle;padding:5px 8px;line-height:1.25}
#stockTable .stock-actions{align-items:center;gap:5px}#stockTable .stock-actions button{min-height:27px;height:27px;padding:3px 8px;line-height:19px;margin:0}
#stockTable .stock-group-row th,#stockTable .stock-group-row td{padding:6px 8px}
#stockTable input{min-height:27px;height:27px;padding:3px 6px}#correctionForm p{margin:2px 0}
.recovery-section{margin-top:28px;border-top:1px solid #d8e2e2;padding-top:18px}.recovery-section form{display:grid;gap:10px;max-width:670px;margin:12px 0 22px}.recovery-section label{display:grid;gap:4px}.recovery-section details{border:1px solid #d8e2e2;border-radius:6px;padding:12px;margin-top:12px}.recovery-section summary{cursor:pointer;font-weight:700}.danger-warning{color:#b91c1c;font-size:22px;line-height:1.3;font-weight:800;margin:12px 0}.danger-button{background:#b91c1c;color:white;border-color:#b91c1c}.recovery-section .inline-check{display:flex;align-items:flex-start;gap:8px}.inline-check input{width:auto;min-height:0;margin-top:3px}.recovery-section .actions{justify-content:flex-start;flex-wrap:wrap}#recoveryStatus{white-space:pre-line}#backupList button{min-height:28px;padding:4px 9px}

#historyLocationFilter{color:var(--ink);min-width:170px;max-width:220px}#historyLocationFilter summary{height:32px;min-height:32px;padding:4px 9px;background:#fff;font-size:13px}#historyLocationFilter .location-filter-menu{right:0;left:auto;min-width:260px;z-index:50;color:var(--ink)}#historyLocationFilter input[type=checkbox]{width:16px;height:16px;min-width:16px;padding:0;margin:0}#historyStatus{margin:-10px 0 14px}

.movement-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}.movement-filters .location-multiselect{min-width:165px}.movement-filters .location-filter-menu{left:0;right:auto}.movement-filters details.filtered>summary{color:#b91c1c;font-weight:600}.movement-filters form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.movement-filters label{font-size:12px}.movement-filters input[type=datetime-local]{padding:7px;min-height:38px}.movement-filters button{min-height:38px;padding:7px 11px}.movement-filters .location-filter-menu input{width:16px;height:16px;margin:0}#movementStatus{margin:0 0 12px}#movementTable td{vertical-align:middle}

#deviceManager,#devicePicker,#importDevicesDialog{width:min(1000px,95vw);max-width:95vw;max-height:90vh;overflow:auto}#deviceManager form,#devicePicker form,#importDevicesDialog form{display:grid;gap:10px}#deviceManager .sectionhead{margin-bottom:0}#deviceManager input,#devicePicker input,#importDevicesDialog input{min-width:0}.device-table-scroll{overflow:auto;max-height:50vh;border:1px solid var(--line);border-radius:5px}.device-table-scroll table{width:100%;border-collapse:collapse}.device-table-scroll th{position:sticky;top:0;background:#edf2ef}.device-table-scroll td,.device-table-scroll th{padding:5px 8px;vertical-align:middle}.device-table-scroll td input{width:100%;padding:5px 7px}.device-table-scroll input[type=checkbox]{width:18px;height:18px}.device-pages{display:flex;align-items:center;justify-content:space-between;gap:10px}.device-pages button,.device-table-scroll button{min-height:28px;padding:3px 8px}.device-summary{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:85px;overflow:auto}.cartline .device-summary{margin:5px 0}.cartline [data-cart-devices]{min-height:25px;padding:2px 7px;font-size:12px}.bulk-quantity-cell [data-bulk-devices]{min-height:25px;height:auto;font-size:11px;padding:2px 5px}.sheet-col-devices{width:110px}#importGrid [data-import-devices]{min-height:27px;height:27px;font-size:11px;padding:3px 6px}#deviceUnitHistory{border-top:1px solid var(--line);padding-top:10px}#deviceEventTable td:last-child{white-space:normal;overflow-wrap:anywhere;max-width:380px}

#passwordResetForm{display:grid;gap:12px;min-width:min(360px,80vw)}#passwordResetMessage{max-width:440px}

.stock-identifiers button{white-space:nowrap;height:26px;padding:2px 7px;font-size:11px;color:#086d61}.stock-identifiers{vertical-align:middle}
.history-header-label{display:flex;align-items:center;gap:6px}.history-filter-button{padding:3px;width:26px;height:26px;background:#303a3a;color:white;border:0;display:inline-flex;align-items:center;justify-content:center}.history-filter-button.active{color:#df152c}.history-filter-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.history-column-menu{position:fixed;z-index:50;top:115px;right:24px;width:290px;max-width:calc(100vw - 32px);background:white;border:1px solid #cbd6d3;border-radius:8px;padding:14px;box-shadow:0 8px 30px #0003}.history-column-menu label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:7px 0}.history-column-menu input{width:auto}.history-column-menu>div:last-child{max-height:50vh;overflow:auto}.receipt-link{display:inline-block;padding:6px 9px;border:1px solid #cbd6d3;border-radius:5px;color:#086d61;background:white;text-decoration:none;white-space:nowrap}.history-categories{max-width:220px}

.history-device-lines{margin-top:5px;font-size:11px;line-height:1.55;overflow-wrap:anywhere;color:#526465}
