.button.approve,button[value="approved"],button[data-decision="approved"]{background:#15803d!important;color:#fff!important;border-color:#15803d!important}
.button.return,button[value="returned"]{background:#fbbf24!important;color:#422006!important;border-color:#d69b09!important}
.button.danger,button[value="rejected"]{background:#b91c1c!important;color:#fff!important;border-color:#b91c1c!important}
.button.open-request,.open-request{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important}
.purchase-review-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.purchase-review-heading p{margin:0 0 5px;color:var(--muted)}
.purchase-total-link{display:grid;gap:4px;text-align:right;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 20px;cursor:pointer}.purchase-total-link strong{font-size:21px}
.purchase-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:0;padding:0 4px;scrollbar-width:thin}.purchase-tabs button{flex:0 0 auto;background:var(--surface-soft);color:var(--muted);border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;padding:12px 16px;cursor:pointer;font-weight:700}.purchase-tabs [aria-selected="true"]{background:var(--surface);color:#1d4ed8;box-shadow:inset 0 3px #1d4ed8}
.purchase-tab-panel[hidden]{display:none!important}.purchase-tab-panel{border-top-left-radius:0!important;border-top-right-radius:0!important;margin-top:0!important}.purchase-tab-panel .table-wrap{max-width:100%}.purchase-edit-table [data-line-total]{display:block;min-width:95px;font-weight:750;color:var(--ink)}
.purchase-running-total{font-size:22px;font-weight:750;text-align:right}.purchase-action-bar{position:sticky;bottom:0;background:var(--surface);padding:12px 16px;border:1px solid var(--line);border-radius:12px;z-index:15;box-shadow:0 -4px 20px #0000000a}.purchase-action-bar textarea{min-height:48px}.purchase-action-bar .footer-actions{justify-content:flex-end}.purchase-action-bar [role="alert"]{color:#b91c1c}
[data-purchase-review] .purchase-edit-table{min-width:0!important;width:100%;table-layout:fixed}[data-purchase-review] .purchase-edit-table th,[data-purchase-review] .purchase-edit-table td{padding:10px 6px!important;min-width:0!important}[data-purchase-review] .purchase-edit-table input,[data-purchase-review] .purchase-edit-table select,[data-purchase-review] .purchase-edit-table textarea{min-width:0!important;width:100%!important;max-width:100%}[data-purchase-review] .purchase-edit-table th:nth-child(1){width:14%}[data-purchase-review] .purchase-edit-table th:nth-child(2){width:16%}[data-purchase-review] .purchase-edit-table th:nth-child(3){width:7%}[data-purchase-review] .purchase-edit-table th:nth-child(4){width:14%}[data-purchase-review] .purchase-edit-table th:nth-child(5){width:9%}[data-purchase-review] .purchase-edit-table th:nth-child(6){width:10%}[data-purchase-review] .purchase-edit-table th:nth-child(7){width:10%}[data-purchase-review] .purchase-edit-table th:nth-child(8){width:13%}[data-purchase-review] .purchase-edit-table th:nth-child(9){width:7%}[data-purchase-review] [data-line-total]{min-width:0!important;overflow-wrap:anywhere}
#purchaseForm .purchase-form-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;padding-top:18px;margin-top:24px;border-top:1px solid var(--border)}
#purchaseForm .purchase-form-actions .button{flex:0 0 auto;width:auto;min-height:44px;margin:0;order:0;grid-column:auto;padding:11px 18px}
#purchaseForm .purchase-form-actions #back{background:transparent;box-shadow:none}
@media(max-width:620px){#purchaseForm .purchase-form-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}#purchaseForm .purchase-form-actions .button{width:100%;padding:11px 12px}#purchaseForm .purchase-form-actions #back{grid-column:1/-1;justify-self:start;width:auto}#purchaseForm .purchase-form-actions #submit{grid-column:1/-1}}
@media(max-width:1100px){[data-purchase-review] .purchase-edit-table,[data-purchase-review] .purchase-edit-table tbody{display:block}[data-purchase-review] .purchase-edit-table thead{display:none}[data-purchase-review] .purchase-edit-table tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;gap:12px;border-bottom:1px solid var(--line)}[data-purchase-review] .purchase-edit-table tr[hidden]{display:none!important}[data-purchase-review] .purchase-edit-table td{display:block;width:auto!important;padding:0!important;border:0!important}[data-purchase-review] .purchase-edit-table td:nth-child(1),[data-purchase-review] .purchase-edit-table td:nth-child(2){grid-column:1/-1}[data-purchase-review] .purchase-edit-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;margin:0 0 5px;color:var(--muted)}[data-purchase-review] .purchase-edit-table td:nth-child(8){align-self:end;font-size:17px}[data-purchase-review] .purchase-edit-table td:nth-child(9){justify-self:end;align-self:end}[data-purchase-review] .purchase-edit-table textarea{min-height:60px}}
.purchase-linear-route,.leave-linear-route{list-style:none;margin:0;padding:0;display:grid;gap:0}.purchase-linear-route li,.leave-linear-route li{display:flex;align-items:center;gap:12px;position:relative;padding:12px 0}.purchase-linear-route li>span,.leave-linear-route li>span{display:grid;place-items:center;border-radius:50%;background:var(--surface-soft);border:1px solid var(--line);width:30px;height:30px;flex-shrink:0}.purchase-linear-route small,.leave-linear-route small{display:block;color:var(--muted);margin-top:3px}.purchase-linear-route .route-approved>span{background:#dcfce7;color:#166534}.purchase-linear-route .route-pending>span{background:#dbeafe;color:#1d4ed8}
.balance-settings{min-width:740px}.leave-route-editor .route-row{display:grid;grid-template-columns:34px 1fr 1fr 1fr auto;gap:12px;align-items:end;border:1px solid var(--line);padding:14px;border-radius:10px;margin:8px 0}.leave-route-editor .route-row .field{margin:0}.leave-route-editor .route-order{font-weight:750;align-self:center}.leave-balance-summary{padding:12px;background:var(--surface-soft);border-radius:10px;line-height:1.7}.purchase-form .footer,.purchase-form-actions{justify-content:flex-start!important}
@media(max-width:680px){.purchase-review-heading{align-items:flex-start;gap:8px}.purchase-total-link{padding:8px}.purchase-total-link strong{font-size:17px}.purchase-tabs button{padding:10px;font-size:13px}.purchase-action-bar{position:static;padding:10px}.purchase-action-bar .footer-actions{display:flex;flex-wrap:wrap}.purchase-action-bar .footer-actions button{flex:1;padding:11px 12px}.leave-route-editor .route-row{grid-template-columns:26px 1fr}.leave-route-editor .route-row .field{grid-column:2}.leave-route-editor .route-row .route-actions{grid-column:2}}

.balance-settings tr[hidden]{display:none!important}
@media(max-width:680px){.balance-settings{min-width:0;width:100%;display:block}.balance-settings thead{display:none}.balance-settings tbody{display:block}.balance-settings tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0;gap:12px}.balance-settings td{display:block;padding:0!important;border:0!important}.balance-settings td:first-child,.balance-settings td:last-child{grid-column:1/-1}.balance-settings td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:4px}.balance-settings form{display:grid;gap:8px}.balance-settings input{min-width:0;width:100%}}

/* R24 purchase review: one set of fields, two explicit editing layouts. */
form[data-purchase-review]{min-width:0;--review-radius:16px}
form[data-purchase-review] .purchase-review-heading{align-items:stretch;gap:24px;margin:0 0 18px;padding:22px;border:1px solid var(--border);border-radius:var(--review-radius);background:var(--surface)}
.review-heading-copy{min-width:0;align-self:center}.review-heading-copy .review-eyebrow{margin:0 0 8px;color:var(--portal-accent-text);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.review-heading-copy h2{margin:0 0 8px;font-size:clamp(21px,2vw,28px);line-height:1.25}.review-heading-copy>p:not(.review-eyebrow){margin:0;max-width:580px;color:var(--ink-soft);line-height:1.6}.review-request-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;font-size:12px;color:var(--ink-soft)}.review-status{border-radius:99px;padding:5px 10px;background:var(--cyan-soft);color:var(--cyan-dark);font-weight:750}
form[data-purchase-review] .purchase-total-link{flex:0 1 310px;min-width:190px;max-width:360px;justify-content:center;gap:8px;padding:18px;text-align:right;border-radius:12px;background:var(--surface-soft);border-color:var(--border);box-shadow:none}.purchase-total-link small{font-size:12px;color:var(--ink-soft)}form[data-purchase-review] .purchase-total-link strong{font-size:clamp(20px,2vw,27px);font-variant-numeric:tabular-nums;line-height:1.3;overflow-wrap:anywhere}.purchase-total-link>span{font-size:12px;color:var(--portal-accent-text);font-weight:650}
.review-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.review-facts>div{min-width:0;padding:12px 15px;border-left:3px solid var(--border);background:var(--surface-soft);border-radius:0 9px 9px 0}.review-facts dt{font-size:11px;color:var(--ink-soft);margin-bottom:5px}.review-facts dd{margin:0;font-size:13px;font-weight:650;overflow-wrap:anywhere;color:var(--ink)}.review-dirty-state{display:none;color:var(--portal-accent-text)}[data-purchase-review][data-ui-dirty="1"] .review-dirty-state{display:inline}[data-purchase-review][data-ui-dirty="1"] .review-clean-state{display:none}
form[data-purchase-review] .purchase-tabs{gap:6px;margin:0 0 15px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}form[data-purchase-review] .purchase-tabs button{min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:transparent;color:var(--ink-soft);font-size:13px}form[data-purchase-review] .purchase-tabs [aria-selected="true"]{background:var(--surface);color:var(--portal-accent-text);box-shadow:var(--shadow-sm)}form[data-purchase-review] .purchase-tab-panel{padding:22px;border-radius:var(--review-radius)!important}.review-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.review-section-heading h2{margin:0 0 6px;font-size:20px}.review-section-heading p{margin:0;line-height:1.6;color:var(--ink-soft);font-size:13px}.review-view-switch{display:flex;gap:4px;flex:0 0 auto;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.review-view-switch button{min-height:40px;padding:8px 13px;border:0;border-radius:7px;font:inherit;font-size:13px;font-weight:700;background:transparent;color:var(--ink-soft);cursor:pointer}.review-view-switch [aria-pressed="true"]{background:var(--surface);color:var(--portal-accent-text);box-shadow:var(--shadow-sm)}.review-table-hint{margin:0 0 10px!important;font-size:12px;color:var(--ink-soft)!important}.review-items-wrap{position:relative;border:1px solid var(--border);border-radius:12px;max-width:100%;overscroll-behavior-x:contain}.review-items-footer{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:15px 0 22px}.review-items-footer small{color:var(--ink-soft);font-size:12px;line-height:1.5}.review-add-item{min-height:43px;border-style:dashed!important;font-size:13px!important}
form[data-purchase-review] .purchase-edit-table input,form[data-purchase-review] .purchase-edit-table select,form[data-purchase-review] .purchase-edit-table textarea{min-height:44px;padding:10px 11px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px;line-height:1.45}form[data-purchase-review] .purchase-edit-table textarea{min-height:82px;resize:vertical}form[data-purchase-review] .purchase-edit-table select+input{margin-top:7px}form[data-purchase-review] input[type=number]{font-variant-numeric:tabular-nums;text-align:right}form[data-purchase-review] .icon-remove{display:grid;place-items:center;min-width:38px;min-height:42px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--portal-danger);font-size:24px;cursor:pointer}form[data-purchase-review] .icon-remove:hover{background:var(--portal-danger-soft);border-color:var(--portal-danger)}
form[data-purchase-review][data-items-view="table"] .purchase-edit-table{display:table;min-width:1120px!important;table-layout:fixed;width:100%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table thead{display:table-header-group}form[data-purchase-review][data-items-view="table"] .purchase-edit-table tbody{display:table-row-group}form[data-purchase-review][data-items-view="table"] .purchase-edit-table tr{display:table-row;padding:0;border:0}form[data-purchase-review][data-items-view="table"] .purchase-edit-table td{display:table-cell;width:auto!important;padding:14px 8px!important;vertical-align:top;border-bottom:1px solid var(--border)!important}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th{padding:13px 8px!important;font-size:11px;line-height:1.4;vertical-align:bottom}form[data-purchase-review][data-items-view="table"] .purchase-edit-table td::before{display:none}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(1){width:16%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(2){width:18%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(3){width:7%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(4){width:14%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(5){width:8%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(6){width:10%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(7){width:9%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(8){width:12%}form[data-purchase-review][data-items-view="table"] .purchase-edit-table th:nth-child(9){width:6%}
form[data-purchase-review][data-items-view="cards"] .review-items-wrap{border:0;border-radius:0;overflow:visible}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table{display:block;min-width:0!important;width:100%}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table thead{display:none}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:16px;counter-reset:review-item}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface);counter-increment:review-item}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table tr::before{content:'Item ' counter(review-item);grid-column:1/-1;color:var(--ink);font-size:14px;font-weight:750;padding-bottom:10px;border-bottom:1px solid var(--border)}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td{display:block;min-width:0;width:auto!important;padding:0!important;border:0!important}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td:nth-child(1),form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td:nth-child(2),form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td:nth-child(8){grid-column:1/-1}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:650;margin-bottom:6px;color:var(--ink-soft)}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td:nth-child(8){padding:12px!important;background:var(--surface-soft);border-radius:9px}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table td:nth-child(9){grid-column:2;justify-self:end}form[data-purchase-review][data-items-view="cards"] .review-table-hint{display:none}form[data-purchase-review] .purchase-edit-table tr[hidden]{display:none!important}
.review-totals-area{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:18px;align-items:stretch}.review-discount-box{padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.review-discount-box h3{margin:0 0 6px;font-size:15px}.review-discount-box>p{margin:0 0 13px;font-size:12px;line-height:1.55;color:var(--ink-soft)}.review-discount-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.review-discount-fields .field{margin:0}.review-total-summary{display:flex;justify-content:center;flex-direction:column;gap:9px;padding:20px;background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;text-align:right}.review-total-summary>span{font-size:12px;font-weight:650;color:var(--ink-soft)}.review-total-summary .purchase-running-total{margin:0;font-size:23px;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.review-total-summary small{color:var(--ink-soft);font-size:12px}.review-shared-budget{margin-bottom:18px}
form[data-purchase-review] .purchase-action-bar{position:static;padding:22px;margin-top:20px;border:1px solid var(--border);border-top:3px solid var(--portal-accent);border-radius:var(--review-radius);box-shadow:var(--shadow-sm);background:var(--surface)}.review-action-heading h2{margin:0 0 7px;font-size:19px}.review-action-heading p{margin:0 0 17px;font-size:13px;line-height:1.65;color:var(--ink-soft)}.review-comment{max-width:760px;margin:0 0 18px}.review-comment textarea{min-height:76px}.review-comment small{font-weight:400;color:var(--ink-soft)}.review-action-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.review-primary-actions{display:flex;align-items:center;gap:10px;margin:0!important;flex-wrap:wrap}.review-primary-actions .button{min-height:48px;padding:12px 21px;font-size:14px;font-weight:750;white-space:normal;text-align:center}.review-primary-actions .review-save:not(.primary){border-color:var(--border-strong);background:var(--surface-soft);color:var(--ink)}.review-primary-actions .review-approve{box-shadow:0 3px 7px #15803d20}.review-alternative-actions{position:relative}.review-alternative-actions summary{min-height:44px;display:flex;align-items:center;gap:7px;padding:9px 11px;list-style:none;cursor:pointer;color:var(--ink-soft);font-size:13px;font-weight:650}.review-alternative-actions summary::after{content:'+';font-size:18px}.review-alternative-actions[open] summary::after{content:'−'}.review-alternative-actions>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.review-alternative-actions .button{min-height:42px;padding:10px 15px}.purchase-action-bar [data-purchase-message]:not([hidden]){margin:0 0 18px;padding:14px;border:1px solid #d28787;border-radius:9px;background:#fff3f3;color:#942929;line-height:1.6}.purchase-review-heading h2,.review-section-heading h2{scroll-margin-top:100px}
@media(max-width:900px){form[data-purchase-review] .purchase-review-heading{padding:18px;gap:16px}.review-facts{grid-template-columns:1fr 1fr}.review-section-heading{align-items:flex-start;flex-wrap:wrap}.review-totals-area{grid-template-columns:1fr}.review-total-summary{padding:18px}.review-action-row{align-items:stretch}.review-primary-actions{flex:1;justify-content:flex-end}.review-alternative-actions{align-self:center}}
@media(max-width:600px){form[data-purchase-review] .purchase-review-heading{display:block;padding:17px}.review-heading-copy h2{font-size:22px}form[data-purchase-review] .purchase-total-link{width:100%;max-width:none;min-width:0;margin-top:17px;padding:15px;text-align:left;align-items:start}.review-facts{gap:9px;margin-bottom:16px}.review-facts>div{padding:10px}.review-facts dd{font-size:12px}form[data-purchase-review] .purchase-tab-panel{padding:16px}.review-view-switch{width:100%}.review-view-switch button{flex:1}.review-section-heading h2{font-size:19px}.review-section-heading{gap:13px}.review-items-footer{align-items:flex-start}.review-items-footer small{max-width:100%}.review-discount-box{padding:14px}.review-discount-fields{gap:9px}.review-totals-area{gap:12px}.review-total-summary{text-align:left}form[data-purchase-review] .purchase-action-bar{padding:17px}.review-action-row{flex-direction:column-reverse;align-items:stretch;gap:12px}.review-primary-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.review-primary-actions .button{width:100%;padding:12px 10px;font-size:13px}.review-primary-actions .button:only-child{grid-column:1/-1}.review-alternative-actions{align-self:stretch;border-top:1px solid var(--border);padding-top:8px}.review-alternative-actions>div{padding:0 8px 8px}.review-alternative-actions .button{flex:1}form[data-purchase-review][data-items-view="cards"] .purchase-edit-table tr{padding:15px;gap:12px}.review-back{width:100%;text-align:center}}
