:root{color:#172033;font-synthesis:none;background:#f5f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}.application-shell{min-height:100vh}.topbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:16px 32px;display:flex}.topbar p{color:#667085;margin:0;font-size:14px}.brand{color:#172033;letter-spacing:-.03em;font-size:20px;font-weight:700;text-decoration:none}.brand span{color:#2563eb}.application-layout{grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 61px);display:grid}aside{background:#fff;border-right:1px solid #e5e7eb;padding:24px 12px}.nav-item{color:#667085;text-align:left;background:0 0;border:0;border-radius:8px;width:100%;padding:11px 12px;font-weight:500;display:block}.nav-item.active{color:#1d4ed8;background:#eaf0ff}main{width:100%;max-width:1100px;margin:0 auto;padding:40px 32px}.page-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;display:flex}h1,h2{letter-spacing:-.03em}h1{margin:0 0 7px;font-size:28px}.page-heading p,.modal-heading p,.confirmation p{color:#667085;margin:0}.button{border:0;border-radius:8px;padding:10px 14px;font-weight:600}.primary{color:#fff;background:#2563eb}.secondary{color:#344054;background:#fff;border:1px solid #d0d5dd}.destructive-button{color:#fff;background:#b42318}.text-button{color:#1d4ed8;background:0 0;border:0;padding:5px 8px}.text-button.destructive{color:#b42318}.notice{border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:12px 14px;display:flex}.notice.error{color:#b42318;background:#fef3f2}.notice.info{color:#175cd3;background:#eff8ff}.notice.warning{color:#93370d;background:#fffaeb;border:1px solid #fedf89;margin-top:18px;display:block}.notice.error .text-button{color:#b42318;font-weight:600}.state-message{color:#667085;padding:24px 0}.table-wrapper{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:640px}th{color:#667085;letter-spacing:.04em;text-align:left;text-transform:uppercase;background:#f9fafb;padding:13px 16px;font-size:12px;font-weight:600}td{border-top:1px solid #eaecf0;padding:15px 16px}.price{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.actions{text-align:right;white-space:nowrap}.warning-cell{text-align:center;width:44px}.warning-icon{color:#b54708;font-size:19px}.empty-state{text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:42px 24px}.empty-state h2{margin:0 0 8px;font-size:20px}.empty-state p{color:#667085;margin:0 0 22px}.modal-backdrop{z-index:10;background:#0f172a7a;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;width:100%;max-width:460px;padding:24px;box-shadow:0 24px 48px #0f172a2e}.modal-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.modal h2{margin:0 0 7px;font-size:21px}.close-button{color:#667085;background:0 0;border:0;padding:0 2px;font-size:28px;line-height:1}label{margin:19px 0 7px;font-size:14px;font-weight:600;display:block}input,select,textarea{color:#172033;background:#fff;border:1px solid #d0d5dd;border-radius:8px;width:100%;padding:10px 12px}textarea{resize:vertical;min-height:88px}input:focus,select:focus,textarea:focus{border-color:#2563eb;outline:3px solid #dbeafe}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:#d92d20}.field-error{color:#b42318;margin:6px 0 0;font-size:13px}.field-hint{color:#667085;margin:6px 0 0;font-size:13px}.readonly-value{background:#f9fafb;border:1px solid #eaecf0;border-radius:8px;margin:7px 0 0;padding:10px 12px}.modal .notice{margin-top:18px;font-size:14px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:26px;display:flex}.advance-warning{font-weight:600;color:#b54708!important;margin-top:14px!important}.auth-page{background:#f5f7fb;justify-content:center;align-items:flex-start;min-height:100vh;padding:10vh 20px 32px;display:flex}.auth-card,.panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:28px;box-shadow:0 8px 24px #0f172a0d}.auth-card{width:100%;max-width:440px}.auth-card h1{margin-bottom:24px}.auth-submit{width:100%;margin-top:24px}.panel{margin:0 0 24px}.panel h2{margin:0 0 18px;font-size:18px}.invite-form{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end;gap:14px;display:grid}.invite-form label{margin:0}.invite-form button{min-height:42px}.account-table select{max-width:170px}.filter-row{align-items:end;gap:14px;max-width:500px;margin:-8px 0 20px;display:flex}.filter-row label{margin:0 0 7px}.filter-control{flex:1;align-items:center;gap:4px;display:flex}.filter-control .text-button{flex:none}.orders-filter{background:#fff;border:1px solid #e5e7eb;border-radius:12px;grid-template-columns:1.1fr .9fr 1.25fr 1.25fr .85fr .85fr auto;align-items:end;gap:14px;margin:-8px 0 20px;padding:14px;display:grid}.orders-filter label{margin:0 0 7px}.orders-filter .text-button{white-space:nowrap;align-self:end;margin-bottom:3px}.filtered-empty-state{color:#667085;text-align:center;padding:28px 16px}.inventory-table{min-width:1120px}.quantity{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.available-quantity{color:#047857;font-weight:700}.available-quantity.negative{color:#b42318}.status-pill{color:#6b5600;background:#fff4cc;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;display:inline-block}.status-pill.ordered{color:#694c00;background:#ffe7a3}.status-pill.deposit_paid{color:#24527a;background:#dceeff}.status-pill.deposit_invoice_sent{color:#1f4e79;background:#c9e2fa}.status-pill.order_picking{color:#244a70;background:#b8d3f0}.status-pill.in_progress{color:#293b63;background:#a8bde3}.status-pill.order_ready{color:#245c55;background:#b6ded5}.status-pill.invoice_paid{color:#1f5a55;background:#9fd5d0}.status-pill.product_ready{color:#205c3b;background:#8fd2b0}.status-pill.product_sent_to_customer{color:#1d5a36;background:#7ac99b}.status-pill.product_sent_to_warehouse{color:#174c2d;background:#68be88}.status-pill.completed{color:#fff;background:#16834b}.status-pill.withdrawn{color:#4b5563;background:#e5e7eb}.order-status{border-radius:8px;justify-content:space-between;align-items:center;margin-top:18px;padding:11px 13px;display:flex}.order-status span{font-size:13px;font-weight:600}.order-status.created{color:#6b5600;background:#fff4cc}.order-status.ordered{color:#694c00;background:#ffe7a3}.order-status.deposit_paid{color:#24527a;background:#dceeff}.order-status.deposit_invoice_sent{color:#1f4e79;background:#c9e2fa}.order-status.order_picking{color:#244a70;background:#b8d3f0}.order-status.in_progress{color:#293b63;background:#a8bde3}.order-status.order_ready{color:#245c55;background:#b6ded5}.order-status.invoice_paid{color:#1f5a55;background:#9fd5d0}.order-status.product_ready{color:#205c3b;background:#8fd2b0}.order-status.product_sent_to_customer{color:#1d5a36;background:#7ac99b}.order-status.product_sent_to_warehouse{color:#174c2d;background:#68be88}.order-status.completed{color:#fff;background:#16834b}.order-status.withdrawn{color:#4b5563;background:#e5e7eb}.correct-details-button{margin-top:12px}.order-modal{max-width:920px;max-height:calc(100vh - 40px);overflow-y:auto}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;display:grid}.order-lines,.order-actions{border-top:1px solid #eaecf0;margin-top:24px;padding-top:20px}.action-history summary{cursor:pointer;font-weight:700;list-style-position:inside}.action-history[open] summary{margin-bottom:13px}.action-history-list{margin:0;padding:0;list-style:none}.action-history-list li{border-bottom:1px solid #eaecf0;justify-content:space-between;align-items:flex-start;gap:16px;padding:10px 2px;display:flex}.action-history-list p{color:#475467;margin:4px 0 0;font-size:13px}.action-history-list time{color:#667085;white-space:nowrap;font-size:12px}.action-list{margin:13px 0 0;padding:0;list-style:none}.action-list li{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:14px;display:flex}.action-list li.green-action{background:#f0fdf4;border-color:#bbf7d0}.action-list li.green-action .action-checkbox input{accent-color:#15803d}.action-list li.blue-action{background:#eff6ff;border-color:#bfdbfe}.action-list li.blue-action .action-checkbox input{accent-color:#2563eb}.action-list li.red-action{background:#fff5f4;border-color:#fecdca}.action-list li.red-action .action-checkbox input{accent-color:#b42318}.action-checkbox{cursor:pointer;flex:1;align-items:flex-start;gap:11px;margin:0;display:flex}.action-item-content{flex:1}.action-hover-warning{margin:10px 0 0;padding:8px 10px;font-size:13px;display:block}.action-checkbox:has(input:disabled){cursor:not-allowed;opacity:.52}.action-checkbox input{accent-color:#15803d;width:18px;height:18px;margin-top:2px;padding:0}.action-checkbox strong{display:block}.required-action{color:#166534;white-space:nowrap;font-size:12px;font-weight:700}.advance-button{background:#15803d;margin-top:14px}.advance-button:hover:not(:disabled){background:#166534}.action-list p{color:#475467;margin:4px 0 0;font-size:13px}.stock-warning-modal{max-width:700px}.shortage-table{margin-top:18px}.shortage-table table{min-width:540px}.section-heading{justify-content:space-between;align-items:center;display:flex}.section-heading h3{margin:0;font-size:16px}.section-heading span{color:#667085;font-size:13px}.add-product-row{grid-template-columns:minmax(150px,1fr) minmax(190px,1fr) auto;gap:10px;margin-top:13px;display:grid}.order-lines-table{margin-top:14px}.order-lines-table table{min-width:680px}.quantity-input{text-align:right;min-width:86px;padding:7px 8px}.line-error{text-align:left;max-width:180px}.order-total{justify-content:flex-end;align-items:center;gap:20px;margin-top:16px;font-size:16px;display:flex}.order-total strong{font-size:19px}.order-footer{justify-content:space-between}.status-actions,.save-actions{gap:10px;display:flex}.invoice-list,.linked-orders-list{margin:13px 0;padding:0;list-style:none}.invoice-list li,.linked-orders-list li{border-bottom:1px solid #eaecf0;justify-content:space-between;align-items:center;padding:9px 2px;display:flex}.invoice-list small{color:#667085;margin-top:2px;font-weight:400;display:block}.invoice-file-link{margin-top:7px;font-size:13px;font-weight:600;display:block}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.invoice-preview{background:#f8fafc;border-radius:8px;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;padding:12px;display:flex}.invoice-preview span{color:#475467;margin-right:auto;font-size:13px}.linked-orders-list span{color:#667085;font-size:13px}.linked-order-lines{color:#475467;margin:5px 0 0;font-size:13px}.linked-orders-list li>div{min-width:0}.link-order-row{align-items:center;gap:10px;margin-top:12px;display:flex}@media (width<=700px){.topbar{padding:15px 20px}.application-layout{display:block}aside{border-bottom:1px solid #e5e7eb;border-right:0;gap:8px;padding:10px 14px;display:flex;overflow-x:auto}.nav-item{flex:none;width:auto}main{padding:28px 20px}.page-heading{flex-direction:column;align-items:stretch}.page-heading .button{align-self:flex-start}.filter-row{flex-direction:column;align-items:stretch;gap:0}.orders-filter{grid-template-columns:1fr;align-items:stretch}.orders-filter .text-button{align-self:flex-start;margin:0}.form-grid,.add-product-row,.link-order-row{grid-template-columns:1fr}.invoice-preview{flex-direction:column;align-items:stretch}.order-footer{flex-direction:column-reverse;align-items:stretch}.status-actions,.save-actions{justify-content:flex-end}}
