*{box-sizing:border-box}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937;background:#f5f6f7;font-synthesis:none}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{border:0;border-radius:8px;padding:10px 14px;background:#1f2937;color:#fff;cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button.secondary{background:#fff;color:#1f2937;border:1px solid #d1d5db}input{width:100%;padding:11px 12px;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}input:focus{outline:2px solid #475569;outline-offset:1px}.auth-shell,.center-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card,.empty-state{width:min(100%,420px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:28px}.brand-mark{display:inline-block;padding:5px 8px;border-radius:6px;background:#1f2937;color:#fff;font-size:12px;font-weight:700;letter-spacing:.08em}.auth-card h1{margin-bottom:4px}.stack{display:grid;gap:16px;margin-top:24px}.stack label span{display:block;font-size:14px;font-weight:600}.muted{color:#64748b}.error-message,.global-error{padding:10px 12px;border-radius:8px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.global-error{margin:12px}.topbar{min-height:64px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid #e5e7eb}.header-context{margin-left:12px;color:#64748b;font-size:14px}.account{display:flex;align-items:center;gap:12px}.content{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:32px 0}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.page-heading h1{margin:0 0 6px}.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #eef0f2}th{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.04em}td small{display:block;margin-top:4px;color:#64748b}.status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;text-transform:capitalize;background:#f1f5f9}.status-pending,.status-rejected{background:#fef2f2;color:#991b1b}.status-uploaded_unverified,.status-needs_review{background:#fffbeb;color:#92400e}.status-verified{background:#f0fdf4;color:#166534}.status-not_required{background:#f1f5f9;color:#475569}@media(max-width:680px){.topbar{align-items:flex-start;padding:14px 16px}.account{align-items:flex-end;flex-direction:column}.account>span{display:none}.header-context{display:block;margin:4px 0 0}.content{width:min(100% - 24px,1180px);padding-top:20px}th:nth-child(3),td:nth-child(3){display:none}}.upload-card{max-width:720px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px}.upload-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.upload-card-header h2{margin:4px 0}.eyebrow{margin:0;color:#64748b;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.field-help{display:block;margin-top:6px;color:#64748b}.file-list{margin:0;padding-left:24px;color:#475569}.file-list li+li{margin-top:5px}.confirmation{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e5e7eb;border-radius:8px}.confirmation input{width:auto;margin:3px 0 0}.confirmation span{font-weight:400!important}@media(max-width:680px){.upload-card{padding:18px}.upload-card-header{flex-direction:column}}select,textarea{width:100%;padding:11px 12px;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}select:focus,textarea:focus{outline:2px solid #475569;outline-offset:1px}.review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:18px 0}.review-facts p{margin:0}@media(max-width:680px){.review-facts{grid-template-columns:1fr}}.sync-panel{display:grid;gap:.75rem;margin-bottom:1rem;padding:1rem;border:1px solid var(--border, #d9d9d9);border-radius:.75rem;background:var(--surface, #fff)}.sync-panel>button{justify-self:start}.sync-panel .muted{margin:.25rem 0 0}.sync-result{display:flex;flex-wrap:wrap;gap:.75rem 1rem;font-size:.9rem}.dispatch-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.dispatch-preview-results{display:grid;gap:1rem}.dispatch-preview-status{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.dispatch-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.dispatch-stats>div{display:grid;gap:.25rem;padding:.85rem;border:1px solid #e5e7eb;border-radius:8px;background:#fafafa}.dispatch-stats strong{font-size:1.35rem}.dispatch-stats span{color:#64748b;font-size:.85rem}.dispatch-action-summary,.dispatch-conflicts,.dispatch-fulfillment{display:grid;gap:.65rem}.dispatch-conflicts{padding:.9rem;border:1px solid #fecaca;border-radius:8px;background:snow;color:#7f1d1d}.dispatch-conflicts ul{margin:0;padding-left:1.25rem}.dispatch-conflicts li+li{margin-top:.75rem}.dispatch-conflicts p{margin:.25rem 0 0;color:#7f1d1d}.dispatch-preview-note{margin:0}@media(max-width:680px){.dispatch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-preview-heading{flex-direction:column}}.outward-panel{display:grid;gap:1rem;margin-bottom:1rem;padding:1rem;border:1px solid var(--border, #d9d9d9);border-radius:.75rem;background:var(--surface, #fff)}.outward-panel-header,.outward-card-heading,.outward-card-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.outward-panel-header h2,.outward-card-heading h3{margin:4px 0}.outward-card{display:grid;gap:.9rem;padding:1rem;border:1px solid #e5e7eb;border-radius:.65rem;background:#fff}.outward-card .table-wrap{margin:0}.outward-card input[type=number]{min-width:140px;max-width:190px}.outward-card-actions{align-items:center}.outward-card-actions .field-help{max-width:620px;margin:0}.error-text{color:#b91c1c}.success-message{padding:.75rem .9rem;border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534}@media(max-width:680px){.outward-panel,.outward-card{padding:.75rem}.outward-card-actions{align-items:stretch}.outward-card-actions button{width:100%}}.status-dispatched,.status-verified{background:#f0fdf4;color:#166534}.status-discrepancy{background:#fff7ed;color:#9a3412}.review-history{display:grid;gap:.75rem;margin:1rem 0}.history-entry{padding:.75rem;border:1px solid #e5e7eb;border-radius:8px}.history-entry p{margin:.35rem 0}.overview-panel{display:grid;gap:1rem;margin-bottom:1rem;padding:1rem;border:1px solid #e5e7eb;border-radius:.75rem;background:#fff}.overview-heading,.overview-delivery-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.overview-heading h2,.overview-delivery-heading h4{margin:4px 0}.overview-table{min-width:920px}.overview-table td{vertical-align:middle}.overview-detail-row>td{padding:0;background:#f8fafc}.overview-details{display:grid;gap:1rem;padding:1rem}.overview-details h3{margin:.5rem 0 0}.overview-delivery{display:grid;gap:.8rem;padding:1rem;border:1px solid #e2e8f0;border-radius:.65rem;background:#fff}.overview-delivery .table-wrap{margin:0}.overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1rem}.overview-facts p,.overview-history p{margin:.2rem 0}.overview-history{padding-top:.65rem;border-top:1px solid #e5e7eb;overflow-wrap:anywhere}.status-attention_required,.status-discrepancy,.status-awaiting_confirmation{background:#fff7ed;color:#9a3412}.status-fully_billed,.status-fully_outwarded{background:#f0fdf4;color:#166534}@media(max-width:680px){.overview-panel{padding:.75rem}.overview-facts{grid-template-columns:1fr}.overview-details{padding:.65rem}}.overview-outward-actions{display:grid;gap:.75rem;padding-top:.75rem;border-top:1px solid #e5e7eb}.overview-action-form{display:grid;gap:.75rem;padding:.9rem;border:1px solid #e2e8f0;border-radius:.6rem;background:#f8fafc}.overview-action-form h5{margin:0;font-size:.95rem}.overview-action-form input{min-width:120px;max-width:180px}.overview-reason span{display:block;font-size:.875rem;font-weight:600}.overview-reason textarea{margin-top:.35rem}.outward-acknowledgement{max-width:760px}.outward-acknowledgement input{flex:0 0 auto}.overview-file-list{display:grid;gap:.4rem;margin:.4rem 0 0;padding-left:1.2rem}.overview-file-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}.overview-file-list a{font-size:.875rem;font-weight:600}.overview-history-entry+.overview-history-entry{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #cbd5e1}.status-over_billed{background:#fff7ed;color:#9a3412}
