:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24312f;background:#f4f5f2;font-size:15px;--green:#205947;--muted:#64726c;--line:#e0e6df;--white:#fff;--orange:#bc4d22}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 16px;color:inherit;font-weight:600}button:hover{background:#edf3ee}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #80ad94;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#184735}.quiet{border-color:transparent;background:transparent}.danger{color:#a9382e}input,select{width:100%;min-width:0;border:1px solid #cbd6ce;border-radius:10px;padding:12px;background:#fff;color:#24312f}input[type=checkbox]{width:auto}label{display:block;font-weight:550;font-size:.9rem}label input,label select{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.8px;margin-bottom:10px}h2{font-size:1.18rem}h3{font-size:1rem}p{line-height:1.6}.muted,small{color:var(--muted)}small{display:block;line-height:1.5;margin-top:6px}.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:1.5px;color:var(--green);font-weight:750;margin-bottom:12px}.brand{font-size:1.45rem;font-weight:750;letter-spacing:-1px;color:var(--green)}.brand span{color:var(--orange)}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:#fcfcfa;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column;gap:26px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{text-align:left;border:0;background:transparent;color:#586760}.sidebar nav button.selected{background:#e4eee6;color:var(--green)}.sidebar footer{margin-top:auto;font-size:.8rem;color:var(--muted);line-height:1.7}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 32px;background:#fff;border-bottom:1px solid var(--line)}.pill{font-size:.75rem;background:#e8f2e9;color:#24563b;border-radius:30px;padding:6px 10px;white-space:nowrap}.pill.draft{background:#fff0db;color:#8c580f}.content{padding:34px;max-width:1180px;margin:auto}.heading,.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.heading{margin-bottom:26px;flex-wrap:wrap}.heading p{margin-bottom:0}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:18px;box-shadow:0 3px 10px #16221b03}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.full{grid-column:1/-1}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.empty{text-align:center;padding:50px 20px}.empty .symbol{margin:auto auto 20px;border-radius:22px;background:#eff3e8;font-size:2rem;width:70px;height:70px;display:grid;place-items:center}.search{max-width:360px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th{text-align:left;font-weight:600;font-size:.76rem;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:#f8faf7}td,th{padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td:first-child{font-weight:600}.nested{border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:15px;background:#fbfcfa}.nested .row{margin-bottom:16px}.section-note{background:#f1f5ef;border-radius:12px;padding:12px 16px;color:#50634e;font-size:.86rem}.check{display:flex;gap:8px;align-items:center;margin:16px 0}.check input{margin:0}.auth{max-width:440px;margin:8vh auto;padding:0 20px}.auth .brand{margin-bottom:36px}.auth form{display:grid;gap:18px}.auth .card{padding:30px}.auth h1{font-size:1.7rem}.badge-row{display:flex;gap:8px;flex-wrap:wrap}.sticky-actions{position:sticky;bottom:0;padding:16px;background:#ffffffed;border:1px solid var(--line);border-radius:16px;display:flex;justify-content:space-between;gap:10px;backdrop-filter:blur(12px)}#message{position:fixed;bottom:24px;right:24px;max-width:min(520px,90vw);background:#1f4738;color:white;padding:17px 22px;border-radius:14px;box-shadow:0 6px 24px #0002;z-index:20;white-space:pre-line}#message.error{background:#873329}.loading{padding:40px}.form-error{color:#a32b22;white-space:pre-line;padding:12px;background:#fff1ed;border-radius:10px}.steps{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.steps a{color:var(--green);text-decoration:none;padding:8px 12px;border:1px solid var(--line);border-radius:20px;font-size:.83rem}.list{padding-left:20px;line-height:1.9}.inline-msg{font-size:.85rem;color:var(--muted)}.tree{color:var(--green);font-weight:600;line-height:1.7}.subnote{border-left:3px solid #b7ceb8;padding-left:13px;margin:18px 0}.count{font-size:2rem;font-weight:700;letter-spacing:-1px}
@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{padding:18px;border-right:0;border-bottom:1px solid var(--line);gap:14px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap}.sidebar footer{display:none}.topbar{padding:12px 18px}.content{padding:22px 16px}.grid,.grid.three{grid-template-columns:1fr}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:18px}h1{font-size:1.6rem}.sticky-actions{flex-wrap:wrap}.heading{align-items:flex-start}.row{flex-wrap:wrap}.topbar .muted{font-size:.8rem}}
.form-fieldset{border:0;padding:0;margin:0;min-width:0}#help-content{margin-top:20px}
label + select{margin-top:7px}
.sidebar,.layout>main,.content{min-width:0}@media(max-width:760px){.layout{grid-template-columns:minmax(0,1fr)}.sidebar nav{max-width:100%}}
.sticky-actions{backdrop-filter:none;background:#fff;z-index:2}.actions .search{width:260px;max-width:100%}

.pos-item-search-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.pos-item-search-button svg{width:20px;height:20px;flex:none}

#checkout-panel {min-width:0;overflow-wrap:anywhere;} #checkout-panel dd {margin:0 0 .65rem;} #checkout-panel .actions button {white-space:normal;}

#delivery-panel{min-width:0;overflow-wrap:anywhere}#delivery-panel form{display:grid;gap:12px}#delivery-panel .nested{min-width:0}#delivery-panel input[type=file]{max-width:100%}.delivery-label-svg{max-width:100%;height:auto}#delivery-signature{width:100%;height:160px;border:1px solid #aab8b0;border-radius:12px;background:#fff;touch-action:none}#delivery-accept-form{display:grid;gap:12px;min-width:0}

.driver-cash-form{display:grid;gap:12px;min-width:0}.driver-cash-form canvas{display:block;width:100%;max-width:100%;height:160px;touch-action:none;border:1px solid #aab8b0;border-radius:12px;background:#fff}
.warehouse-pos-document{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:.35rem;overflow-wrap:anywhere;width:100%;}

/* Quote controls follow the products in document order. A large fixed header
   must not cover the first product while the user scrolls to these actions. */
.workspace-window .layout.pos-layout .quote-register .pos-floating-tools{position:static!important}
.quote-register .pos-transaction-actions{display:flex;position:static;flex-wrap:wrap;gap:10px;scroll-margin-top:16px}
.quote-register .pos-transaction-actions>button{white-space:normal;max-width:100%}
@media(max-width:600px){.quote-register .pos-transaction-actions>button{flex:1 1 140px;min-height:44px}}
@media(max-width:600px){
 .workspace-window .layout.pos-layout .quote-register .pos-transaction-actions,
 .quote-register .pos-transaction-actions{position:sticky;bottom:0;z-index:11;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 -3px 12px #16221b12}
 .workspace-window .layout.pos-layout .quote-register .pos-transaction-actions>button,
 .pos-register.quote-register .pos-transaction-actions>button{min-width:0;min-height:44px;padding:5px 4px;font-size:13px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
 .quote-register .pos-secondary-actions{margin-top:10px}
 .quote-register .quote-table tr{scroll-margin-bottom:145px}
 .workspace-window .layout.pos-layout .content:has(.quote-register){scroll-padding-bottom:145px}
 html:has(.quote-register .pos-transaction-actions){scroll-padding-bottom:145px}
}
.wo-allocation-values{display:grid;gap:6px;overflow-wrap:anywhere}.wo-allocation-values>p{margin:0;font-size:.95rem;color:inherit}


/* WMS count directory and batch capture; external CSS for the existing self-only CSP. */
.wms-directory table{width:100%;table-layout:fixed;border-collapse:collapse}.wms-directory th,.wms-directory td{padding:6px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #ddd}.wms-directory th:first-child{width:42px}.wms-directory input[type=checkbox]{min-width:22px;width:22px;height:22px}.wms-directory button{min-height:40px}.wms-directory .actions{flex-wrap:wrap}.wms-directory td button{padding:4px;text-align:left;background:transparent;color:inherit;border:0}.wms-directory [data-selection-summary]{overflow-wrap:anywhere}.wms-batch-line{padding:10px 0;border-bottom:1px solid #ddd}.wms-batch-line summary{cursor:pointer;overflow-wrap:anywhere}.wms-batch-line input{max-width:100%}@media(max-width:600px){.wms-directory th,.wms-directory td{padding:5px 3px;font-size:13px}.wms-directory th:first-child{width:32px}.wms-directory .unit-column{width:48px}.wms-directory .state-column{width:95px}}
