:root{--text:#141413;--text-muted:#5e5e58;--border:#e7e7e2;--border-strong:#d0d0ca;--surface:#fff;--sidebar:#f7f7f5;--hover:#ebebe6;--primary:#141413;--primary-hover:#33332f;--status-draft:#d0d0ca;--status-pending:#c98a0a;--status-approved:#2e7d4f;--status-sent:#3b6fb5;--status-billed:#7a54b0;--status-paid:#8a8a83;--status-changes:#b3372a}*{box-sizing:border-box}body{background:var(--surface);color:var(--text);margin:0;font-family:Instrument Sans,system-ui,sans-serif;font-size:14px;line-height:1.45}button,input,select,textarea{color:inherit;font-family:inherit;font-size:14px}a{color:var(--text)}a:hover{color:var(--primary-hover)}.shell{min-height:100vh;display:flex}.shell-sidebar{border-right:1px solid var(--border);background:var(--sidebar);flex-direction:column;flex:none;gap:4px;width:208px;height:100vh;padding:20px 12px;display:flex;position:sticky;top:0}.shell-name{letter-spacing:-.01em;padding:0 10px 16px;font-size:16px;font-weight:600}.shell-main{flex:1;min-width:0;padding:28px 32px 48px}.page-title{letter-spacing:-.02em;margin:0 0 4px;font-size:24px;font-weight:600}.muted{color:var(--text-muted)}.error-text{color:var(--status-changes)}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);font-size:11px}.button-secondary{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;border-radius:6px;padding:7px 10px;font-weight:500}.button-secondary:hover{background:var(--hover)}.page-message{padding:28px 32px}.shell-user{border-top:1px solid var(--border);flex-direction:column;gap:2px;margin-top:auto;padding:12px 10px 0;display:flex}.shell-user-name{margin-top:4px;font-weight:500}.shell-user .button-secondary{margin-top:10px}.sign-in{background:var(--sidebar);justify-content:center;min-height:100vh;padding:72px 16px 40px;display:flex}.sign-in-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-self:flex-start;width:100%;max-width:420px;padding:28px}.sign-in-action{justify-content:center;width:100%;margin-top:16px;display:flex}.sign-in-name{letter-spacing:-.01em;margin-bottom:20px;font-size:16px;font-weight:600}.sign-in-users{flex-direction:column;gap:8px;margin:20px 0 0;padding:0;list-style:none;display:flex}.sign-in-user{border:1px solid var(--border-strong);background:var(--surface);text-align:left;cursor:pointer;border-radius:6px;grid-template-columns:1fr auto;gap:2px 12px;width:100%;min-height:48px;padding:10px 12px;display:grid}.sign-in-user:hover:not(:disabled){background:var(--sidebar)}.sign-in-user:disabled{cursor:default;opacity:.6}.sign-in-user-name{font-weight:500}.sign-in-user-email{overflow-wrap:anywhere;grid-column:1/-1;font-size:13px}.numeric{font-variant-numeric:tabular-nums}.card{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:20px}.card-title{margin:0 0 10px;font-size:14px;font-weight:600}.card p{margin:0}.card p+p{margin-top:6px}.notice{color:#5e3f00;background:#fbf0d9;border-radius:6px;margin:0 0 16px;padding:9px 12px}.badge{background:var(--primary);color:#fff;font-variant-numeric:tabular-nums;border-radius:10px;padding:1px 7px;font-size:12px}.shell-nav{flex-direction:column;gap:4px;display:flex}.shell-nav-item{border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-weight:500;text-decoration:none;display:flex}.shell-nav-item:hover,.shell-nav-item[aria-current=page]{background:var(--hover);color:var(--text)}.status{align-items:center;gap:7px;display:inline-flex}.status-dot{background:var(--status-draft);border-radius:50%;flex:none;width:7px;height:7px}.status-dot-pending_approval{background:var(--status-pending)}.status-dot-approved{background:var(--status-approved)}.status-dot-changes_requested{background:var(--status-changes)}.status-dot-sent{background:var(--status-sent)}.status-dot-billed{background:var(--status-billed)}.status-dot-paid{background:var(--status-paid)}.status-dot-cancelled{border:1.5px solid var(--text-muted);background:0 0}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-header .page-title{margin:0}.tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:4px;margin-bottom:4px;display:flex}.tab{color:var(--text-muted);white-space:nowrap;border-bottom:2px solid #0000;margin-bottom:-1px;padding:8px 12px;font-weight:500;text-decoration:none}.tab[aria-current=page]{border-bottom-color:var(--primary);color:var(--primary-hover)}.tab-count{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:12px}.list-message{text-align:center;margin:0;padding:40px 12px}.po-list ul{margin:0;padding:0;list-style:none}.po-list-head,.po-row{grid-template-columns:minmax(0,1fr) 190px 120px;align-items:center;gap:12px;display:grid}.po-list-head{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;padding:10px 12px;font-size:12px}.po-row{border-top:1px solid var(--border);color:var(--text);padding:13px 12px;text-decoration:none}.po-row:hover{background:var(--sidebar);color:var(--text)}.po-vendor,.po-status{min-width:0}.po-vendor-name{font-weight:500;display:block}.po-sub{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;display:block;overflow:hidden}.po-total{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.back-link{color:var(--text-muted);margin-bottom:10px;text-decoration:none;display:inline-block}.po-header{margin-bottom:18px}.po-header-top{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.po-number{font-variant-numeric:tabular-nums;margin:0}.po-rev{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:13px}.po-name{margin-top:6px;font-size:16px;font-weight:500}.progress{border:1px solid var(--border);border-radius:8px;flex-wrap:wrap;gap:6px 22px;margin:0 0 20px;padding:14px 18px;list-style:none;display:flex}.progress-step{color:#8a8f8c;align-items:center;gap:8px;font-size:13px;font-weight:500;display:flex}.progress-mark{font-variant-numeric:tabular-nums;background:#efefeb;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:11px;display:inline-flex}.progress-done,.progress-current,.progress-stopped{color:var(--text)}.progress-done .progress-mark{background:var(--primary);color:#fff}.progress-current .progress-mark{color:#5e3f00;background:#fbf0d9}.progress-stopped .progress-mark{color:#fff;background:#8e2b1a}.po-columns{flex-wrap:wrap;align-items:flex-start;gap:24px;display:flex}.po-main,.po-side{flex-direction:column;gap:16px;min-width:0;display:flex}.po-main{flex:440px}.po-side{flex:280px}.po-facts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;display:grid}.fact-label{color:var(--text-muted);font-size:12px}.fact-value{overflow-wrap:anywhere}.po-line{border-top:1px solid #efefeb;justify-content:space-between;gap:16px;padding:10px 0;display:flex}.po-line-text{min-width:0}.po-line-description{overflow-wrap:anywhere;font-weight:500}.po-line .po-sub{white-space:normal}.po-line-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}.po-total-row{border-top:1px solid var(--primary);justify-content:space-between;padding-top:12px;font-weight:600;display:flex}.po-usd-row{justify-content:space-between;padding-top:4px;font-size:13px;display:flex}.card .po-memo{color:var(--text-muted);white-space:pre-line;margin-top:12px;font-size:13px}.approval{align-items:flex-start;gap:10px;display:flex}.approval+.approval{margin-top:12px}.approval .po-sub{white-space:normal}.approval-dot{background:var(--status-approved);border-radius:50%;flex:none;width:10px;height:10px;margin-top:5px}.approval-dot-sent_back{background:#8e2b1a}.approval-name{font-weight:500}.audit-event{font-size:13px}.audit-event+.audit-event{margin-top:10px}.audit-meta{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:12px}.button-primary,.button-secondary,.button-danger,.button-danger-solid{white-space:nowrap;cursor:pointer;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;height:38px;padding:0 16px;font-weight:500;line-height:20px;text-decoration:none;display:inline-flex}.button-primary{background:var(--primary);color:#fff}.button-primary:hover{background:var(--primary-hover);color:#fff}.button-secondary,.button-danger{border-color:var(--border-strong);background:var(--surface);color:var(--text)}.button-secondary:hover,.button-danger:hover{background:var(--sidebar);color:var(--text)}.button-danger,.button-warn,.button-danger:hover,.button-warn:hover{color:#8e2b1a}.button-danger-solid{color:#fff;background:#8e2b1a}.button-small{height:34px;padding:0 12px;font-weight:400}button:disabled{cursor:default;opacity:.55}.tag{background:var(--hover);color:var(--text-muted);border-radius:10px;margin-left:8px;padding:1px 7px;font-size:12px;font-weight:400}.page-caption{margin:-16px 0 20px}input,select,textarea{border:1px solid var(--border-strong);background:var(--surface);border-radius:6px;width:100%;padding:8px 10px;line-height:20px}input,select{height:38px}select{appearance:none;text-overflow:ellipsis;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E5E58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:30px}input[type=date]{appearance:none}input[type=date]::-webkit-date-and-time-value{text-align:left}textarea{resize:vertical;min-height:58px;display:block}input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);margin:0;padding:0}input:disabled,select:disabled,textarea:disabled{background:var(--sidebar);color:var(--text-muted)}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--primary);outline-offset:0;outline:2px solid #d0d0ca}.combo{position:relative}.combo-list{z-index:10;border:1px solid var(--border-strong);background:var(--surface);border-radius:8px;width:100%;min-width:min(260px,80vw);max-height:288px;margin:0;padding:4px;font-size:14px;font-weight:400;list-style:none;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto;box-shadow:0 8px 24px #1414131f}.combo-option{cursor:pointer;border-radius:6px;padding:8px 10px}.combo-option[data-active=true]{background:var(--hover)}.combo-option[aria-selected=true]{font-weight:500}.combo-empty{color:var(--text-muted);padding:8px 10px}.list-search{align-items:center;gap:12px;margin-bottom:12px;display:flex}.list-search input{max-width:480px}.form-body{border:0;min-width:0;margin:0;padding:0}.form-body:disabled{opacity:.6}.form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:start;gap:14px;display:grid}.field{flex-direction:column;gap:5px;min-width:0;font-size:13px;font-weight:500;display:flex}.field input,.field select,.field textarea{font-size:14px;font-weight:400}.field-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.field-wide{grid-column:1/-1}.field-wide .field-label,.lines-card .field-label{white-space:normal}.field-hint{color:var(--text-muted);font-weight:400}.field-help{color:var(--text-muted);font-size:12px;font-weight:400}.check{align-items:center;gap:8px;font-size:14px;font-weight:400;display:flex}.form-errors{color:#8e2b1a;margin-top:14px;font-weight:500}.form-errors-reload{color:inherit;margin-top:4px;display:inline-block}.form-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px;display:flex}.quote-box{margin-bottom:20px}.quote-drop,.quote-reading{text-align:center;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:22px 20px;display:flex}.quote-drop{border:1.5px dashed var(--primary);background:var(--hover);cursor:pointer}.quote-drop:hover,.quote-drop:focus-visible,.quote-drop-over{background:#e2e2dc}.quote-drop-title{color:var(--primary-hover);font-weight:600}.quote-drop-text{color:#3d4441;font-size:13px}.quote-drop-hint{color:var(--text-muted);font-size:13px}.quote-reading{border:1px solid var(--border);background:var(--surface)}.quote-reading-title{font-weight:600}.progress-bar{background:var(--hover);border-radius:2px;width:min(320px,100%);height:4px;margin:10px 0 6px;position:relative;overflow:hidden}.progress-bar:after{background:var(--primary);content:"";border-radius:2px;width:35%;animation:1.4s ease-in-out infinite progress-slide;position:absolute;top:0;bottom:0}@keyframes progress-slide{0%{left:-35%}to{left:100%}}@media (prefers-reduced-motion:reduce){.progress-bar:after{width:100%;animation:1.6s ease-in-out infinite alternate progress-pulse;left:0}@keyframes progress-pulse{0%{opacity:.25}to{opacity:1}}}.quote-result{border:1px solid var(--primary);background:var(--surface);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 20px;padding:16px 18px;display:flex}.quote-result-text{flex-direction:column;flex:320px;gap:6px;min-width:0;display:flex}.quote-result-title{font-weight:600}.quote-file{font-size:13px;font-weight:500}.quote-filled{color:#3d4441;font-size:13px}.quote-check{color:#5e3f00;background:#fbf0d9;border-radius:6px;padding:7px 10px;font-size:13px}.quote-check ul{margin:4px 0 0;padding-left:18px}.quote-box .form-errors{margin-top:10px}.po-form-columns{flex-wrap:wrap;align-items:flex-start;gap:24px;display:flex}.po-form-main{flex-direction:column;flex:440px;gap:16px;min-width:0;display:flex}.po-form-summary{flex-direction:column;flex:280px;gap:14px;min-width:0;max-width:360px;display:flex;position:sticky;top:20px}.summary-label{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;font-size:12px}.summary-total{letter-spacing:-.02em;font-size:28px;font-weight:500;line-height:1.25}.summary-sub{color:var(--text-muted);font-size:13px}.summary-route{border-top:1px solid #efefeb;flex-direction:column;gap:10px;padding-top:14px;display:flex}.summary-route .card-title{margin:0}.route-step{align-items:flex-start;gap:10px;display:flex}.route-number{background:var(--hover);width:22px;height:22px;color:var(--primary-hover);font-variant-numeric:tabular-nums;border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.route-who{font-weight:500}.lines-card{flex-direction:column;gap:10px;display:flex}.lines-card .card-title{margin:0}.line-row{border-bottom:1px solid #efefeb;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:10px;display:flex}.line-description{flex:100%;min-width:0}.line-account{flex:150px;min-width:0}.line-quantity{flex:0 0 68px;width:68px}.line-unit{flex:0 0 72px;width:72px}.line-price{flex:0 0 104px;width:104px}.line-quantity,.line-price{font-variant-numeric:tabular-nums}.line-amount{text-align:right;white-space:nowrap;flex:0 0 96px;font-size:13px}.line-remove{width:30px;height:30px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;padding:0;font-size:16px}.line-remove:hover:not(:disabled){background:var(--hover)}.lines-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.po-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.po-actions{flex-wrap:wrap;gap:8px;display:flex}.send-back{border:1px solid #8e2b1a;border-radius:8px;flex-direction:column;gap:10px;margin-bottom:16px;padding:16px;display:flex}.send-back label{font-weight:500}.send-back-actions{flex-wrap:wrap;gap:8px;display:flex}.send-back-note{color:#8e2b1a;margin:0;font-size:13px}.send-back+.form-errors,.po-header+.form-errors{margin:0 0 16px}.card-list{margin:0;padding:0;list-style:none}.card-row{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin-bottom:6px;padding:13px 14px;display:flex}.card-row-name{flex:200px;min-width:0;font-weight:500}.card-row-name .po-sub{font-weight:400}.vendor-contact{color:var(--text-muted);flex:140px}.vendor-email{color:var(--text-muted);overflow-wrap:anywhere;flex:200px}.vendor-terms{color:var(--text-muted);flex:0 0 120px}.card-row-actions{flex:none;justify-content:flex-end;gap:8px;display:flex}.vendor-list .card-row-actions{flex-basis:56px}.user-roles{flex:200px;min-width:0}.user-list .card-row-actions{flex-basis:232px}.role-checks{flex-wrap:wrap;gap:6px 16px;display:flex}.directory-results{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.editor-card{margin-bottom:20px}.editor-card .card-title{margin:0}.editor-card .form-actions{margin-top:6px}.editor-card .form-errors{margin-top:0}.page-errors{margin:0 0 16px}.rules-page{max-width:720px}.rules{flex-direction:column;gap:8px;margin:0 0 16px;padding:0;list-style:none;display:flex}.rule{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;padding:16px 18px;display:flex}.rule strong{font-weight:600}.rule-number{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:12px}.money-input{border:1px solid var(--border-strong);background:var(--surface);border-radius:6px;align-items:center;padding-left:8px;display:inline-flex}.money-input input{font-variant-numeric:tabular-nums;background:0 0;border:0;outline:none;width:100px;height:34px}.money-input:focus-within{border-color:var(--primary)}.shell-nav-heading{padding:18px 10px 6px}.po-row-actions{display:none}@media (width<=640px){.shell{flex-direction:column}.shell-sidebar{border-right:0;border-bottom:1px solid var(--border);width:auto;height:auto;padding:12px;position:static}.shell-name{padding-bottom:8px}.shell-nav{flex-flow:wrap}.shell-nav-heading{display:none}.shell-nav-item,.tab{align-items:center;min-height:48px;display:inline-flex}.shell-nav-item{flex:1}.tab{gap:5px}.shell-user{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;margin-top:8px;padding-top:8px;display:grid}.shell-user .eyebrow{display:none}.shell-user-name{margin-top:0}.shell-user .muted{grid-row:2}.shell-user .button-secondary{grid-area:1/2/span 2;margin-top:0}.shell-main{padding:20px 16px 40px}.sign-in{padding-top:24px}.card{padding:16px}.tabs{flex-wrap:nowrap;overflow-x:auto}.po-list-head{display:none}.po-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;min-height:48px}.po-status{flex-wrap:wrap;grid-area:2/1/auto/-1;gap:2px 10px;display:flex}.po-list-approvals ul{flex-direction:column;gap:12px;padding-top:12px;display:flex}.po-list-approvals li{border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.po-list-approvals .po-row{border-top:0;padding:0}.po-list-approvals .po-vendor-name{font-size:16px;font-weight:600}.po-list-approvals .po-total{font-size:20px;font-weight:500}.po-list-approvals .po-status{display:none}.po-row-actions{gap:8px;display:flex}.po-row-actions>*{border-radius:8px;flex:1;height:48px;font-size:16px}input,select,.button-primary,.button-secondary,.button-danger,.button-danger-solid{height:48px}input[type=checkbox]{width:20px;height:20px}.check{min-height:44px}.combo-option{align-items:center;min-height:44px;display:flex}.list-search{flex-direction:column;align-items:stretch;gap:6px}.list-search input{max-width:none}.button-small{height:44px}.line-remove{width:44px;height:44px}.line-amount{text-align:left;flex:auto}.po-form-summary{max-width:none;position:static}.card-row-actions,.vendor-list .card-row-actions,.user-list .card-row-actions{flex:100%;justify-content:flex-start}.vendor-terms{flex:100%}.money-input input{height:44px}}
