.ops-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:22px 0}.ops-toolbar form{display:flex;gap:12px;align-items:end}.ops-toolbar label{margin:0}.ops-toolbar input{margin-top:6px}.ops-toolbar>.btn{margin-bottom:0}.ops-metrics strong{font-size:27px}.ops-product{min-width:210px}.ops-product small{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.6;margin-top:5px}.ops-product code{display:block;color:var(--muted);font-size:10px;margin-top:7px}.ops-table-wrap{max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;position:relative;scrollbar-gutter:stable;margin-bottom:20px}.ops-matrix{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px;font-variant-numeric:tabular-nums}.ops-matrix caption{text-align:left;padding:16px 20px;background:var(--forest);color:#fff;font-weight:600}.ops-matrix th,.ops-matrix td{padding:14px 12px;min-width:100px;text-align:center;border-bottom:1px solid var(--line);border-right:1px solid #edf0eb;background:#fff;vertical-align:middle}.ops-matrix th small,.ops-matrix td small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:6px;line-height:1.4}.ops-matrix thead th{position:sticky;top:0;z-index:2;background:#f2f5ef;font-size:11px}.ops-matrix .ops-sticky{position:sticky;left:0;text-align:left;min-width:230px;max-width:270px;z-index:1;box-shadow:3px 0 5px #0a1f1605}.ops-matrix thead .ops-sticky{z-index:3}.ops-matrix .ops-buy{background:#edf4e7;color:#183022}.ops-matrix .ops-buy strong{font-size:21px}.ops-matrix .ops-zero{color:#9ba49e}.ops-matrix tfoot td,.ops-matrix tfoot th{font-weight:600;background:#f2f5ef}.ops-count,.ops-cell{border:1px solid #d3dacf;background:#fff;border-radius:8px;padding:10px;min-width:72px;min-height:48px;color:var(--ink);font:inherit;cursor:pointer}.ops-cell strong{font-size:18px}.ops-cell.ops-packed{background:#e5efde;border-color:#bbd1a9}.ops-count:hover,.ops-cell:not(:disabled):hover{border-color:var(--forest);background:#f0f4eb}.ops-count:disabled,.ops-cell:disabled{opacity:1;cursor:default;border-color:transparent;background:transparent}.ops-editor{margin:0 0 25px;border-color:#b8c7ac}.ops-editor h2{font-size:21px;margin-top:0}.ops-editor .ops-product{font-size:15px}.ops-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ops-price-list{display:grid;gap:14px}.ops-price-row{display:grid;grid-template-columns:minmax(230px,1.7fr) repeat(3,minmax(125px,1fr)) auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.ops-price-row label{margin:0;font-size:11px}.ops-price-row input{min-width:0}.ops-price-row .btn{align-self:end}.ops-no-volume{color:var(--muted);font-size:12px}.ops-price-row .ops-product{font-size:14px}.ops-table-wrap:focus-visible{outline:3px solid #9bbe7d;outline-offset:3px}
@media(max-width:1250px){.ops-price-row{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-price-row>.ops-product{grid-column:1/-1}.ops-price-row>.btn{grid-column:1/-1}.ops-metrics strong{font-size:24px}}
@media(max-width:720px){.ops-toolbar{align-items:stretch}.ops-toolbar form{width:100%;align-items:end}.ops-toolbar label{flex:1;min-width:0}.ops-toolbar>.btn{flex:1}.ops-price-row{grid-template-columns:1fr;gap:14px;padding:18px}.ops-fields{grid-template-columns:1fr;gap:0}.ops-matrix .ops-sticky{min-width:155px;max-width:170px}.ops-matrix th,.ops-matrix td{min-width:90px;padding:12px 9px}.ops-matrix .ops-product{font-size:12px}.ops-metrics strong{font-size:24px}.ops-table-wrap{max-height:65vh}.ops-product small{font-size:10px}}
@media print{@page{size:landscape;margin:10mm}.ops-toolbar,.ops-filters,.ops-editor,.notice,.metric-grid{display:none!important}.ops-table-wrap{max-height:none;overflow:visible;border:0}.ops-matrix{font-size:9px;width:100%;min-width:0}.ops-matrix th,.ops-matrix td,.ops-matrix .ops-sticky{position:static;min-width:0;max-width:none;padding:5px}.ops-matrix th small,.ops-matrix td small{font-size:8px}.ops-count,.ops-cell{min-width:0;min-height:0;border:0;padding:0}.ops-matrix .ops-buy strong,.ops-cell strong{font-size:12px}.ops-matrix caption{background:none;color:#000;padding:8px 0}.ops-matrix tr{break-inside:avoid}.ops-matrix thead{display:table-header-group}}
.ops-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.ops-methods h2{font-size:18px;margin:0}.ops-methods .fine-print{margin-bottom:0}#operations-checkout>.btn{margin-right:10px;margin-top:8px}@media(max-width:720px){.ops-methods{grid-template-columns:1fr;gap:10px}.ops-methods .panel{padding:16px}body[data-role=admin] #pilot-nav .nav-item{font-size:9px}}

.ops-checkout{padding:24px 0;overflow:hidden}.ops-checkout>h2,.ops-checkout>p{margin-left:24px;margin-right:24px}.ops-checkout>p{color:var(--muted);font-size:13px;line-height:1.6}#pardo-stripe-checkout{min-height:360px}.ops-checkout[hidden]{display:none}
.ops-checkout:has(+.ops-payment-summary) #pardo-stripe-checkout{padding:0 24px;min-height:250px}.ops-payment-summary{margin-top:24px}.ops-payment-summary dl{margin:20px 0 0}.ops-payment-summary dl>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0}.ops-payment-summary dd{margin:0;font-variant-numeric:tabular-nums}.ops-payment-summary .ops-payment-total{border-top:1px solid var(--line);margin-top:8px;padding-top:22px;font-size:22px;font-weight:600}.ops-pay-dock{position:fixed;z-index:30;bottom:0;left:215px;right:0;background:#fff;border-top:1px solid var(--line);padding:16px max(24px,calc((100vw - 1100px)/2)) calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #0a1f1606}.ops-pay-dock>button{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:60px;width:100%;border:0;border-radius:999px;padding:17px 26px;background:var(--lime);color:var(--ink);font-size:18px;font-weight:600}.ops-pay-dock>button:not(:disabled):hover{background:#ade24f}.ops-pay-dock>small{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:8px}.ops-pay-dock>p{margin:0 0 12px;font-size:13px;line-height:1.4;color:#9e2b20;max-height:15vh;overflow:auto}.ops-pay-dock>p:empty{display:none}#pilot-content:has(.ops-pay-dock:not([hidden])){padding-bottom:210px}
@media(max-width:1100px){.ops-pay-dock{left:180px}}
@media(max-width:720px){.ops-pay-dock{left:0;padding:14px 20px calc(12px + env(safe-area-inset-bottom))}body:has(.ops-pay-dock:not([hidden])) .pilot-sidebar{display:none}.ops-checkout:has(+.ops-payment-summary) #pardo-stripe-checkout{padding:0 20px}}
@media print{.ops-pay-dock{display:none!important}}

/* Focused customer checkout and the same receipt through confirmation. */
.customer-checkout{max-width:760px;margin:0 auto}.checkout-topbar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.checkout-topbar>.text-button{font-size:28px;min-width:44px;text-align:center}.checkout-topbar h1{font-size:28px;letter-spacing:-.7px;margin:0;flex:1}.checkout-topbar>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.checkout-reassurance{font-size:14px;color:var(--forest);margin-bottom:28px}.checkout-receiving{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:32px}.checkout-receiving>div{display:flex;align-items:flex-start;gap:16px;padding:22px}.checkout-receiving>div+div{border-top:1px solid var(--line)}.checkout-detail-icon{display:grid;place-items:center;min-width:30px;font-size:24px;line-height:1.1}.checkout-receiving h2{font-size:16px;letter-spacing:0;margin:0 0 7px}.checkout-receiving p{font-size:14px;color:var(--muted);line-height:1.5;margin:3px 0}.checkout-payment-section h2{font-size:22px;margin-bottom:10px}.checkout-method-note{font-size:13px;color:var(--muted);margin-bottom:18px}.customer-checkout .ops-checkout{padding:0;overflow:visible}.customer-checkout #pardo-stripe-checkout{min-height:250px}.customer-checkout .order-purchase-summary{margin-top:28px;border-radius:18px;padding:22px}.checkout-costs{border-top:1px solid var(--line);padding-top:15px;margin-top:12px}.checkout-costs p{display:flex;justify-content:space-between;gap:20px;margin-bottom:9px;font-size:13px}.checkout-costs p:last-child{font-size:17px;margin-top:16px;margin-bottom:0}.checkout-test-note{font-size:11px;color:var(--muted);margin:20px 0 8px}.checkout-help{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px}.checkout-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:0 20px;margin-top:15px}.checkout-feedback>p{width:100%;font-size:11px;line-height:1.5;color:var(--muted);margin:0}.checkout-feedback [aria-pressed=false]{color:var(--muted)}.checkout-feedback [aria-pressed=true]:before{content:'♪';margin-right:8px;font-size:18px}.checkout-feedback [aria-pressed=false]:before{content:'○';margin-right:8px}
.checkout-journey{max-width:800px;margin:0 auto;padding:10px 24px 28px;background:#edf3e7;border-radius:28px}.journey-art{max-width:310px;width:70%;margin:0 auto}.journey-art svg{display:block;width:100%;height:auto}.journey-sheet{background:white;border-radius:24px;padding:30px}.checkout-journey .order-experience{border:0;border-radius:0;margin:0 0 22px}.checkout-journey .order-moment{padding:0;background:white;color:var(--ink)}.checkout-journey .order-moment-icon{display:none}.checkout-journey .order-moment .eyebrow{color:var(--muted);font-size:10px}.checkout-journey .order-moment h1{color:var(--ink);font-size:clamp(28px,3.5vw,38px);line-height:1.15}.checkout-journey .order-moment-copy{color:var(--muted);font-size:15px;margin-top:14px}.checkout-journey .order-moment-facts{margin-top:18px}.checkout-journey .order-moment-facts>span:first-child{display:none}.checkout-journey .order-moment-footer{padding:18px 0 0;text-align:left}.checkout-journey .order-progress{padding-left:0;padding-right:0}.checkout-journey.is-waiting .order-progress{display:none}.checkout-journey .checkout-receiving{border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;margin:0 0 20px}.checkout-journey .checkout-receiving>div{padding:20px 0}.checkout-journey .order-purchase-summary{padding:0;border:0;border-radius:0;margin:0 0 20px}.checkout-journey .order-follow-actions{margin:0;gap:8px 20px}.checkout-journey .order-follow-actions .btn{width:100%;border-radius:999px}.checkout-journey.is-cancelled{padding-top:24px;background:#f7f1e7}.checkout-journey .needs-attention .order-moment h1{color:#765020}
@media(prefers-reduced-motion:no-preference){.is-waiting .journey-box{animation:journey-float 2.2s ease-in-out infinite}.is-waiting .journey-dots circle{animation:journey-dot 1.5s ease-in-out infinite}.is-waiting .journey-dots circle:nth-child(2){animation-delay:.18s}.is-waiting .journey-dots circle:nth-child(3){animation-delay:.36s}.is-received .journey-seal{transform-origin:284px 62px;animation:journey-confirm .4s ease-out}@keyframes journey-float{50%{transform:translateY(-5px)}}@keyframes journey-dot{50%{opacity:.25}}@keyframes journey-confirm{from{transform:scale(.7);opacity:.3}to{transform:scale(1);opacity:1}}}
.checkout-journey:has(.is-paused) .journey-box,.checkout-journey:has(.is-paused) .journey-dots circle{animation:none}
@media(max-width:720px){.checkout-topbar{gap:8px;margin-bottom:16px}.checkout-topbar h1{font-size:24px}.checkout-topbar>span{font-size:10px}.checkout-reassurance{font-size:13px;margin-bottom:22px}.checkout-receiving>div{padding:18px 16px;gap:12px}.checkout-receiving h2{font-size:15px}.checkout-receiving p{font-size:13px}.customer-checkout .order-purchase-summary{padding:18px 16px}.checkout-journey{padding:0 14px 20px;border-radius:0;margin:-27px -18px 0;min-height:70svh}.journey-art{max-width:260px;width:72%;padding:10px 0}.journey-sheet{border-radius:22px;padding:24px 20px}.checkout-journey .order-moment h1{font-size:29px;letter-spacing:-.9px}.checkout-journey .order-moment-copy{font-size:14px}.checkout-journey .order-follow-actions{justify-content:space-between}.checkout-journey .checkout-receiving h2{font-size:14px}body:has(.customer-checkout) .pilot-header,body:has(.checkout-journey) .pilot-header{min-height:64px;padding-top:12px;padding-bottom:12px}body:has(.customer-checkout) .pilot-header img,body:has(.checkout-journey) .pilot-header img{width:116px}}

.client-profile-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:24px;margin:24px 0}.client-facts{display:grid;gap:8px;margin:24px 0 0}.client-facts dt{font-weight:600}.client-facts dd{margin:0 0 12px;color:var(--muted);overflow-wrap:anywhere}.client-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0}.client-terms-form{margin:24px 0}.client-terms-form label{display:grid;gap:8px}.client-terms-form textarea{width:100%;margin:8px 0}.client-order-row{display:flex;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.client-order-row>div{flex:1}.client-order-row p{margin:6px 0;color:var(--muted)}.client-order-row>strong{white-space:nowrap}@media(max-width:850px){.client-profile-grid{grid-template-columns:1fr}.client-order-row{flex-wrap:wrap}.client-order-row>div{flex-basis:100%}}

.product-admin-list{display:grid;gap:1rem}.product-admin-row{display:flex;align-items:center;gap:1rem}.product-admin-row img{object-fit:contain;flex-shrink:0}.product-admin-row>div{flex:1;min-width:0}.product-admin-row h2{font-size:1.1rem;margin:0}.product-admin-row p{margin:.3rem 0}.product-sku{overflow-wrap:anywhere;font-size:.8rem;color:var(--muted,#627568)}.product-admin-editor,.product-admin-preview{max-width:880px;margin-top:1rem}.product-admin-editor textarea{width:100%;box-sizing:border-box}.product-admin-editor .btn{margin:.6rem .5rem .2rem 0}.product-admin-preview img{display:block;object-fit:contain;margin:1rem auto}.product-admin-preview h2{margin-top:1rem}@media(max-width:600px){.product-admin-row{flex-wrap:wrap}.product-admin-row>div{flex-basis:calc(100% - 90px)}.product-admin-row>strong{margin-right:auto}.product-admin-editor .ops-fields{grid-template-columns:1fr}}

/* Purchase workspace: list-first navigation and a separate order composer. */
#pilot-content:has(.po-workspace),#pilot-content:has(.control-center){padding:28px clamp(18px,2.2vw,36px) 48px}.po-workspace .page-heading{margin-bottom:22px}.po-workspace h1{font-size:clamp(26px,2.5vw,34px);letter-spacing:-1px}.po-workspace .eyebrow{margin-bottom:8px}.po-workspace label{display:grid;gap:8px;font-size:12px;color:var(--muted);margin:0;min-width:0}.po-workspace input:not([type=checkbox]),.po-workspace select,.po-workspace textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #cbd4cc;background:#fff;color:var(--ink);border-radius:7px;font-size:14px;line-height:1.3}.po-workspace textarea{resize:vertical}.po-workspace input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--forest)}.po-workspace input[type=date]{min-height:44px}.po-workspace button{touch-action:manipulation}.po-tabs{display:flex;gap:8px;background:var(--forest);padding:0 16px;margin:0 0 24px;border-radius:10px 10px 0 0}.po-tabs>button{border:0;border-bottom:3px solid transparent;background:transparent;color:#d8e4d8;padding:17px 18px 14px;min-height:56px;font-size:15px;white-space:nowrap}.po-tabs>button[aria-pressed=true]{border-bottom-color:var(--lime);color:#fff;font-weight:600}.po-tabs>button>span{display:inline-block;margin-left:9px;padding:2px 7px;border-radius:12px;background:#ffffff1a;font-size:11px}.po-tabs>button:focus-visible{outline:2px solid var(--lime);outline-offset:-5px}.po-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.po-filters>label{flex:1;min-width:150px}.po-filters .po-search{min-width:230px;flex:1.4}.po-date-range{display:flex;gap:6px;align-items:center;border:0;margin:0;padding:0;flex:1.7;min-width:275px}.po-date-range legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:8px}.po-date-range input{flex:1;min-width:0}.po-date-range>span{color:var(--muted)}.po-filters>.text-button{font-weight:400;min-height:44px}.po-list-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 0;color:var(--muted);font-size:12px}.po-list-wrap{max-height:72vh;border-radius:8px;scrollbar-gutter:auto}.po-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;font-variant-numeric:tabular-nums;text-align:left}.po-table th,.po-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.po-table th{font-size:11px;font-weight:500;color:#59685f;background:#edf1eb;text-transform:uppercase;letter-spacing:.3px;text-align:left;line-height:1.4}.po-table thead th{position:sticky;top:0;z-index:2}.po-table th>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:30px;font:inherit;color:inherit;text-transform:inherit;border:0;background:none;padding:0;text-align:left}.po-table th>button>span{font-size:13px;color:#7d8c80}.po-table th.po-num>button{justify-content:flex-end}.po-table .po-num{text-align:right;white-space:nowrap}.po-table td small{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5}.po-orders{min-width:1120px}.po-orders>thead>tr>th:first-child{left:0;z-index:4}.po-orders>tbody>tr>td:first-child:not(.po-empty):not(.po-detail-cell){position:sticky;left:0;z-index:1;background:var(--po-row-background,#fff)}.po-orders>tbody>tr:nth-child(even){--po-row-background:#f8faf6}.po-orders>tbody>tr>td:not(.po-detail-cell):not(.po-empty){background:var(--po-row-background,#fff)}.po-orders>tbody>tr.po-selected>td{background:#edf5df!important}.po-number{border:0;background:none;color:var(--forest);font:inherit;font-weight:600;min-height:36px;text-align:left;padding:0;white-space:nowrap}.po-badge{display:inline-flex;align-items:center;min-height:27px;padding:5px 10px;border-radius:30px;white-space:nowrap;font-size:11px;font-weight:600;line-height:1.1}.po-ordered{background:#fff3da;color:#775217}.po-received{background:#deeed9;color:#24592d}.po-cancelled{background:#fff0ee;color:#8e3930;border:1px solid #efc9c3}.po-table .po-empty{text-align:center;padding:64px 24px;background:#fff}.po-empty h2{font-size:21px}.po-empty p{color:var(--muted);font-size:13px}.po-table .po-detail-cell{padding:0;background:#fff;position:static}.po-detail{padding:24px;max-width:1180px}.po-detail-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.po-detail h2{font-size:21px;margin-bottom:0}.po-detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}.po-detail-facts dt{font-size:11px;color:var(--muted);margin-bottom:6px}.po-detail-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere}.po-detail .ops-table-wrap{max-height:none;margin-bottom:18px}.po-detail .po-table th{position:static}.po-detail-expenses{max-width:600px}.po-detail-expenses h3{font-size:14px}.po-detail-expenses p{display:flex;justify-content:space-between;gap:20px;font-size:13px}.po-detail-total{display:flex;gap:24px;flex-wrap:wrap;justify-content:flex-end;padding:18px 0;border-top:1px solid var(--line);font-size:13px}.po-detail-total>strong{font-size:15px}.po-saved-note{margin:16px 0}.po-saved-note p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.po-receive{border-top:1px solid var(--line);padding-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:800px}.po-receive>h3,.po-receive>.po-check,.po-receive-actions{grid-column:1/-1}.po-workspace .po-check{display:flex;align-items:center;gap:10px;color:var(--ink);line-height:1.5}.po-receive-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.po-supplier-box{background:#edf3e7;border:1px solid #cadbbb;padding:20px;border-radius:9px;margin:0 0 22px}.po-supplier-box form{display:flex;gap:12px;align-items:end;max-width:750px}.po-supplier-box label{flex:1}.po-form-fields{border:0;padding:0;margin:0;min-width:0}.po-summary-grid{display:grid;grid-template-columns:1.35fr 1.1fr 1.05fr .8fr .9fr;gap:12px}.po-summary-card{border:1px solid var(--line);border-radius:8px;padding:14px;background:#fafbf9;min-width:0}.po-summary-card>span,.po-card-label>span{font-size:12px;color:var(--muted)}.po-card-label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;margin-bottom:8px}.po-card-label .text-button{padding:0;min-height:24px;font-size:11px;white-space:nowrap}.po-summary-card>strong{display:block;font-size:21px;font-weight:500;line-height:44px}.po-summary-total{background:#eff5e6;border-color:#dbe7cc}.po-summary-total>strong{font-size:23px;font-weight:600}.po-summary-total>small{font-size:10px;color:var(--muted)}.po-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;padding-bottom:22px;border-bottom:1px solid var(--line)}.po-items-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 16px}.po-items-heading h2{font-size:18px;letter-spacing:-.3px;margin:0}.po-products-empty{min-height:230px;display:grid;place-items:center;text-align:center;background:#fff;border:1px dashed #d9e1d3;border-radius:9px;margin-bottom:22px;padding:24px}.po-products-empty p{margin:0;font-size:14px;color:var(--muted)}.po-edit-wrap{max-height:none;border-radius:8px}.po-edit-table{min-width:690px}.po-edit-table td{padding:12px 10px;background:#fff}.po-edit-table th:first-child{width:48%}.po-edit-table th:nth-child(2){width:100px}.po-edit-table th:nth-child(3){width:145px}.po-edit-table th:last-child{width:44px}.po-edit-table select{max-width:100%;min-width:230px}.po-edit-table input{min-width:80px}.po-edit-table output{font-weight:600}.po-edit-table .btn{font-size:23px;padding:4px;min-width:36px}.po-note{max-width:740px;margin:24px 0!important}.po-expense-editor{padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:18px 0}.po-expense-editor h2{font-size:17px}.purchase-expense{display:grid;grid-template-columns:1fr 160px 44px;gap:14px;align-items:end;margin-bottom:14px;max-width:700px}.purchase-expense .btn{font-size:23px;padding:4px}.po-expense-editor .fine-print{margin:14px 0 0}.po-create-footer{position:sticky;bottom:0;z-index:3;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px;margin-top:24px;box-shadow:0 -5px 22px #0a1f1605}.po-footer-metrics{display:flex;align-items:center;justify-content:flex-end;gap:16px 24px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.po-footer-metrics strong{color:var(--ink)}.po-footer-total{display:flex;align-items:center;gap:15px;margin-left:auto}.po-footer-total strong{font-size:23px}.po-footer-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.po-footer-actions .primary{min-width:210px}.po-test-note{font-size:11px;color:var(--muted);margin:18px 0 0}.po-workspace .notice{margin-top:16px}
@media(min-width:1500px){#pilot-content:has(.po-workspace),#pilot-content:has(.control-center){padding-left:30px;padding-right:30px}}
@media(max-width:1150px){.po-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.po-summary-total{grid-column:span 2;display:flex;gap:16px;align-items:center}.po-summary-total>strong{margin-left:auto}.po-filters>label{min-width:170px}.po-reference-grid{gap:12px}}
@media(max-width:720px){#pilot-content:has(.po-workspace),#pilot-content:has(.control-center){padding:24px 16px 110px}.po-tabs{padding:0 6px;gap:0;margin-bottom:20px}.po-tabs>button{font-size:13px;padding:16px 12px 13px;flex:1}.po-summary-grid{grid-template-columns:1fr 1fr;gap:10px}.po-summary-grid>.po-summary-card:first-child{grid-column:1/-1}.po-summary-total{grid-column:auto;display:block}.po-summary-card{padding:12px}.po-summary-card>strong{font-size:20px}.po-reference-grid{grid-template-columns:1fr;gap:15px;margin:18px 0;padding-bottom:18px}.po-filters>.po-search,.po-date-range{flex-basis:100%;min-width:0}.po-filters>label{flex-basis:40%;min-width:0}.po-filters>.btn{flex:1}.po-list-meta{align-items:start}.po-list-wrap{max-height:70vh}.po-supplier-box{padding:16px}.po-supplier-box form{flex-wrap:wrap}.po-supplier-box label{flex-basis:100%}.po-items-heading h2{font-size:17px}.po-items-heading>.btn{font-size:12px;padding:10px 13px}.po-products-empty{min-height:190px}.purchase-expense{grid-template-columns:minmax(0,1fr) 105px 30px;gap:8px}.po-expense-editor{padding:14px}.po-create-footer{bottom:68px;padding:14px}.po-footer-metrics{gap:10px 16px;justify-content:flex-start}.po-footer-total{width:100%;margin:4px 0 0;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.po-footer-actions{gap:8px}.po-footer-actions>.btn{flex:1;min-width:0;font-size:12px;padding:11px}.po-detail{padding:18px}.po-detail-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.po-receive{max-width:600px}.po-list-wrap .po-detail{max-width:900px}}
@media print{.po-tabs,.po-filters,.po-list-meta button,.po-receive,.po-supplier-box,.po-test-note,.po-footer-actions{display:none!important}.po-create-footer{position:static;box-shadow:none}.po-list-wrap{max-height:none;overflow:visible}.po-orders{min-width:0}.po-orders td,.po-orders th{position:static!important;font-size:9px;padding:6px}.po-detail{max-width:none}}

/* Administration: compact area rail with touch-friendly flyout navigation. */
body[data-role=admin] .pilot-shell{grid-template-columns:96px minmax(0,1fr);max-width:none}
body[data-role=admin] .pilot-sidebar{position:relative;padding:18px 8px;background:#fff;gap:12px;z-index:25}
body[data-role=admin] .workspace-label,body[data-role=admin] .sidebar-note{display:none}
body[data-role=admin] .team-link{margin-top:auto;padding:16px 4px;text-align:center;line-height:1.6;font-size:10px}
body[data-role=admin] #pilot-nav{position:sticky;top:12px;gap:7px}
body[data-role=admin] .admin-nav-group{position:relative}
body[data-role=admin] .admin-rail-item{width:100%;display:flex;flex-direction:column;gap:7px;padding:12px 3px;min-height:77px;justify-content:center;text-align:center;font-size:11px;font-weight:400;border-radius:10px}
body[data-role=admin] .admin-rail-item svg{width:28px;height:28px;stroke-width:1.6}
body[data-role=admin] .admin-rail-item.active{color:#1f674b;background:#e8f2eb;font-weight:600}
body[data-role=admin] .admin-rail-item[aria-expanded=true]{background:#21664c;color:#fff}
body[data-role=admin] .admin-submenu{position:fixed;left:104px;top:12px;width:276px;max-width:calc(100vw - 120px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;padding:9px;background:#fff;border:1px solid #dbe4dd;border-radius:0 12px 12px 0;box-shadow:0 14px 34px #14372426;z-index:30}
body[data-role=admin] .admin-submenu>p{margin:0;padding:12px 14px 9px;color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:600;letter-spacing:1.3px}
body[data-role=admin] .admin-submenu-item{display:block;min-height:49px;width:100%;padding:13px 14px;border:0;border-left:3px solid transparent;background:white;text-align:left;font-size:15px;line-height:1.5;border-radius:4px;white-space:normal}
body[data-role=admin] .admin-submenu-item:hover{background:#f2f6f1}
body[data-role=admin] .admin-submenu-item.active{background:#eaf2e9;color:#20573c;font-weight:600;border-left-color:#21664c}
body[data-role=admin] #pilot-content{padding:28px clamp(18px,2.4vw,40px) 55px}
body[data-role=admin] .page-heading h1{font-size:30px;letter-spacing:-.8px}
body[data-role=admin] .ops-pay-dock{left:96px}
body[data-role=admin] .po-workspace .page-heading{margin-bottom:20px}
.operation-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}
.operation-stages .metric{text-align:left;min-height:125px}
.operation-stages .metric small{color:var(--muted);font-size:12px;font-weight:400}
.operation-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.operation-shortcut{display:flex;flex-direction:column;gap:9px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:10px;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.operation-shortcut span{color:var(--muted);font-size:13px;line-height:1.5}
.operation-shortcut:hover{background:var(--soft)}
.dispatch-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0}
.dispatch-tools label{display:grid;gap:7px;font-size:13px}
.dispatch-tools select{min-height:44px;min-width:220px;padding:9px;background:white;border:1px solid var(--line);border-radius:8px;font:inherit}
@media(min-width:721px) and (max-height:900px){
 body[data-role=admin] .admin-rail-item{min-height:60px;padding:7px 2px;gap:5px}
 body[data-role=admin] .admin-rail-item svg{width:24px;height:24px}
}
@media(max-width:720px){
 body[data-role=admin] .pilot-shell{display:block}
 body[data-role=admin] .pilot-sidebar{padding:0;position:static}
 body[data-role=admin] #pilot-nav{position:fixed;top:auto;bottom:0;left:0;right:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));gap:1px;display:flex;overflow-x:auto;overscroll-behavior-x:contain;box-shadow:0 -4px 16px #1437240a}
 body[data-role=admin] .admin-nav-group{flex:1 0 70px;min-width:70px;position:static}
 body[data-role=admin] .admin-rail-item{font-size:9px;min-height:58px;padding:7px 1px;gap:6px;border-radius:7px}
 body[data-role=admin] .admin-rail-item svg{width:22px;height:22px}
 body[data-role=admin] #pilot-nav>.admin-rail-item{flex:1 0 70px;min-width:70px;width:auto}
 body[data-role=admin] .admin-submenu{top:auto;left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:min(60dvh,calc(100dvh - 94px - env(safe-area-inset-bottom)));border-radius:12px}
 body[data-role=admin] #pilot-content{padding:24px 16px 115px}
 body[data-role=admin] .ops-pay-dock{left:0}
 body[data-role=admin] .po-create-footer{bottom:calc(72px + env(safe-area-inset-bottom))}
}

/* Purchase filters: searchable suppliers and a compact additional-filter panel. */
.po-filter-field{flex:1.2;min-width:220px}.po-supplier-filter,.po-advanced-filter{position:relative}.po-filter-field>label{margin-bottom:8px}.po-picker-trigger{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:11px 12px;border:1px solid #cbd4cc;border-radius:7px;background:#fff;text-align:left;font-size:14px;color:var(--muted)}.po-picker-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.po-picker-trigger>span:last-child{border-left:1px solid var(--line);padding-left:12px;font-size:18px}.po-picker-trigger.has-value{color:var(--ink)}.po-picker-trigger[aria-expanded=true],.po-advanced-trigger[aria-expanded=true]{border-color:#36745a;box-shadow:0 0 0 2px #21664c14}.po-filter-popover{position:absolute;top:calc(100% + 9px);left:0;width:100%;min-width:280px;max-width:calc(100vw - 40px);padding:10px;background:white;border:1px solid #ccd6cd;border-radius:9px;box-shadow:0 12px 32px #163b2824;z-index:12}.po-filter-popover input[type=search]{margin:0 0 9px;min-height:44px}.po-supplier-options{max-height:315px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.po-supplier-option{display:flex;justify-content:space-between;gap:14px;width:100%;min-height:46px;padding:12px;border:0;border-radius:5px;background:white;text-align:left;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.po-supplier-option:hover,.po-supplier-option:focus-visible{background:#f0f4ed}.po-supplier-option.selected{background:#eaf2e7;color:#21593e}.po-picker-empty{padding:14px 12px;margin:0;font-size:13px;color:var(--muted)}.po-advanced-filter{flex:0 0 auto}.po-advanced-trigger{white-space:nowrap;min-height:44px}.po-filter-count{display:inline-grid;place-items:center;min-width:20px;min-height:20px;padding:2px 5px;border-radius:12px;background:#21664c;color:white;font-size:11px}.po-advanced-popover{left:auto;right:0;width:330px;min-width:0;padding:20px;display:grid;gap:20px}.po-advanced-popover label{gap:10px;font-size:12px;text-transform:uppercase;letter-spacing:.4px}.po-advanced-popover select{margin:0;text-transform:none;letter-spacing:0}.po-filter-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;flex-basis:100%;padding:7px 0 0}.po-filter-actions .text-button{font-size:13px;font-weight:400}.po-filter-error{flex-basis:100%;margin:0;color:#9c3c2b;font-size:13px;line-height:1.5}.po-applied-filters{display:flex;gap:8px;flex-wrap:wrap;flex-basis:100%;margin:0 0 4px}.po-applied-filters>button{display:flex;align-items:center;gap:12px;background:#eaf2e7;color:#21593e;min-height:38px;padding:8px 12px;border:1px solid #cedec8;border-radius:20px;font-size:12px}.po-applied-filters>button>span{font-size:17px}
@media(max-width:1150px){.po-filters>.po-filter-field{min-width:220px;flex:1.2}.po-supplier-options{max-height:280px}}
@media(max-width:720px){.po-filters>.po-filter-field{min-width:0;flex-basis:100%}.po-supplier-filter .po-filter-popover{min-width:0;width:100%;max-width:100%}.po-filter-popover input[type=search]{font-size:16px}.po-advanced-filter{margin-left:auto}.po-advanced-popover{width:320px;max-width:calc(100vw - 32px)}.po-filter-actions{justify-content:space-between;gap:8px}.po-filter-actions .btn{min-width:130px}.po-supplier-options{max-height:260px}.po-applied-filters>button{max-width:100%;text-align:left}.po-applied-filters>button>span{margin-left:auto}.po-picker-trigger{font-size:16px}}

/* Order expense dialog; native top layer contains focus and blocks the underlying form. */
.po-expense-dialog{width:min(1120px,calc(100% - 48px));max-width:none;max-height:90dvh;padding:0;border:1px solid #d0d6d2;border-radius:12px;background:#f7f8fa;color:var(--ink);box-shadow:0 25px 85px #122b3840;overflow:auto}
.po-expense-dialog::backdrop{background:#13251c70}
.po-expense-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 28px;background:white;border-bottom:1px solid #d0d6d2}
.po-expense-dialog h2{margin:0;font-size:24px;line-height:1.4;letter-spacing:-.3px}
.po-expense-dialog>header .btn{font-size:27px;min-width:44px;min-height:44px;padding:4px 10px}
.po-expense-dialog form{display:flex;flex-direction:column;min-height:min(570px,75dvh)}
.po-expense-body{flex:1;padding:30px 28px 36px}
.po-expense-fields{display:grid;grid-template-columns:1.25fr 1fr .9fr 1.2fr;gap:24px 20px}
.po-expense-fields>label,.po-expense-notes,.po-expense-payable>span{font-size:12px;font-weight:500;letter-spacing:.25px}
.po-workspace .po-expense-dialog input,.po-workspace .po-expense-dialog select,.po-workspace .po-expense-dialog textarea{margin:8px 0 0;min-width:0;font-size:16px;border-radius:6px}
.po-expense-dialog label{min-width:0}
.po-expense-payable{display:flex;flex-direction:column;gap:20px}
.po-expense-payable .po-check{margin:0;font-size:14px;line-height:1.5;align-items:flex-start}
.po-expense-payable input[type=checkbox]{margin:1px 0 0;width:21px;height:21px;min-width:21px;accent-color:#21664c}
.po-currency-input{display:flex;margin-top:8px;align-items:stretch;border:1px solid #cbd4cc;border-radius:6px;background:#fff;overflow:hidden}
.po-currency-input>span{display:grid;place-items:center;padding:0 15px;background:#f0f2f5;border-right:1px solid #cbd4cc;font-size:18px;color:var(--muted)}
.po-workspace .po-expense-dialog .po-currency-input>input{width:100%;margin:0;border:0;border-radius:0}
.po-currency-input:focus-within{outline:2px solid #36745a;outline-offset:2px}
.po-expense-invoice{grid-column:2}
.po-expense-dialog .po-expense-notes{margin-top:28px}
.po-expense-dialog textarea{resize:vertical;min-height:130px}
.po-expense-dialog .fine-print{max-width:720px;line-height:1.6;margin:16px 0 0}
.po-expense-dialog .po-filter-error{margin-top:16px}
.po-expense-dialog footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:12px;padding:18px 28px calc(18px + env(safe-area-inset-bottom));background:white;border-top:1px solid #d0d6d2}
.po-expense-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}
.po-expense-row small,.po-detail-expenses small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:5px}
.po-expense-note{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-width:600px;color:var(--muted);font-size:12px;line-height:1.5;margin-top:6px}
@media(max-width:1000px){.po-expense-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.po-expense-invoice{grid-column:auto}.po-expense-payable{gap:16px}}
@media(max-width:600px){.po-expense-dialog{width:calc(100% - 20px);max-height:94dvh;border-radius:10px}.po-expense-dialog>header{padding:16px 18px;gap:12px}.po-expense-dialog h2{font-size:20px}.po-expense-body{padding:24px 18px}.po-expense-fields{grid-template-columns:1fr;gap:22px}.po-expense-dialog footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.po-expense-dialog footer .btn{flex:1}.po-expense-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.po-expense-row .btn{padding:8px;min-height:40px}.po-expense-row .btn:last-child{min-width:40px}.po-expense-dialog .po-expense-notes{margin-top:24px}}

/* Expense vendor and accounting classification. */
.po-expense-vendor{grid-column:1;min-width:0}.po-expense-vendor .po-card-label{margin-bottom:0;gap:12px}.po-expense-vendor .text-button{font-size:12px;min-height:36px}.po-expense-vendor-new{display:flex;align-items:flex-end;gap:12px;margin-top:22px;padding:16px;border:1px solid #d4dfd8;border-radius:7px;background:#edf4ed}.po-expense-vendor-new>label{flex:1}.po-expense-vendor-new .btn{flex:none;min-height:44px}.po-expense-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.po-expense-accounts select{min-height:48px}.po-expense-accounting{overflow-wrap:anywhere;line-height:1.65}.po-finance-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.po-finance-tabs .btn{font-size:13px}
@media(max-width:600px){.po-expense-vendor,.po-expense-dialog .po-expense-invoice{grid-column:auto}.po-expense-accounts{grid-template-columns:1fr;gap:22px}.po-expense-vendor-new{flex-wrap:wrap}.po-expense-vendor-new>label{flex-basis:100%}.po-expense-vendor-new .btn{flex:1}.po-finance-tabs{gap:8px}.po-finance-tabs .btn{padding:10px 12px;flex:1;white-space:nowrap}}

/* Supplier details and non-stock purchasing lines. */
.po-supplier-dialog{width:min(650px,calc(100% - 32px))}
.po-supplier-dialog .po-expense-body{padding:24px 28px}
.po-supplier-dialog h3{margin:22px 0 16px;font-size:18px}
.po-supplier-dialog label{display:grid;gap:8px;font-size:12px;color:var(--muted)}
.po-supplier-dialog input{width:100%;min-height:44px;margin:0;padding:12px;border:1px solid #bdc5c0;border-radius:6px;background:white;color:var(--ink);font:inherit;font-size:16px;box-sizing:border-box}
.po-supplier-dialog .po-check{display:flex;align-items:center;gap:10px;font-size:14px;margin:12px 0}
.po-supplier-dialog input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0;flex:0 0 20px}
.po-supplier-terms{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.po-supplier-address{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}
.po-address-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.po-address-name,.po-address-line1,.po-address-line2{grid-column:1/-1}
.po-supplier-info{margin-top:8px;font-size:12px;font-weight:400;min-width:240px}
.po-supplier-info summary{color:#21664c;cursor:pointer;min-height:28px}
.po-supplier-info dl{display:grid;grid-template-columns:110px 1fr;gap:9px;padding:12px 0;line-height:1.5}
.po-supplier-info dt{color:var(--muted)}
.po-supplier-info dd{margin:0}
.po-noninventory{margin:28px 0;padding:22px 0;border-top:1px solid var(--line)}
.po-noninventory>.btn{margin-top:14px}
.po-noninventory-table{min-width:850px}
.po-noninventory-table th:first-child{width:28%}
.po-noninventory-table th:nth-child(2){width:25%}
.po-noninventory-table input,.po-noninventory-table select{width:100%;min-height:44px;padding:9px;border:1px solid #bdc5c0;border-radius:6px;font:inherit;box-sizing:border-box;background:white}
.po-noninventory-table input[type=number]{min-width:100px}
@media(max-width:600px){.po-supplier-dialog .po-expense-body{padding:20px 18px}.po-address-grid,.po-supplier-terms{grid-template-columns:1fr}.po-address-name,.po-address-line1,.po-address-line2{grid-column:auto}}

/* Supplier contact preferences and document delivery. */
.po-contacts{margin-top:24px;border-top:1px solid #d5ded7;padding-top:18px}
.po-contact{border:1px solid #d5ded7;border-radius:12px;background:#f5f7f6;padding:16px;margin:0 0 14px;min-width:0}
.po-contact legend{padding:0 6px;font-weight:600}.po-contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.po-contact-fields input{min-width:0;width:100%}
.po-contact details{margin-top:16px}.po-contact-options,.po-document-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px}.po-contact-options .po-check{margin:0}
.po-documents{border-top:1px solid #d5ded7;margin-top:24px;padding-top:20px}.po-document-status{padding-left:20px;font-size:.9rem}.po-payment-entry{padding:16px;background:#f5f7f6;border-radius:12px;margin-top:16px}
@media(max-width:600px){.po-contact-fields{grid-template-columns:1fr}.po-contact-options{flex-direction:column}.po-document-actions .btn{width:100%;text-align:center}}
/* Editable supplier lookup for a new purchase order. */
.po-new-supplier{position:relative;min-width:0}
.po-new-supplier-input{position:relative}
.po-workspace .po-new-supplier-input input{padding-right:46px}
.po-new-supplier-input>button{position:absolute;right:1px;top:1px;bottom:1px;width:42px;min-height:42px;border:0;border-left:1px solid #dce3d9;border-radius:0 6px 6px 0;background:#f3f6f0;color:#3c624a;font-size:20px;line-height:1;display:grid;place-items:center}
.po-new-supplier-input>button:hover{background:#e8f0e1}
.po-new-supplier-popover{position:absolute;top:calc(100% + 6px);left:0;width:max(100%,280px);max-width:calc(100vw - 64px);z-index:45;padding:7px;border:1px solid #cbd7c7;border-radius:12px;background:#fff;box-shadow:0 12px 32px #173a2226}
.po-new-supplier-popover[hidden]{display:none}
.po-new-supplier-popover .po-supplier-options{max-height:285px}
.po-new-supplier-popover .po-supplier-option{font-size:13px;min-height:52px;padding:10px 12px;color:#193e2e}
.po-new-supplier-popover .po-supplier-option small{display:block;margin-top:4px;color:#65755f;font-size:10px;letter-spacing:.02em}
.po-new-supplier-popover .po-supplier-option.is-active{background:#eaf2e4;outline:1px solid #b7cbaa;outline-offset:-2px}
.po-new-supplier-popover>p{margin:5px 3px 0;padding:8px;border-top:1px solid #edf1e8;font-size:10px;color:#677360}
#po-selected-supplier-code{min-height:24px;margin:8px 0 0;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:720px){.po-workspace .po-new-supplier-input input{font-size:16px}.po-new-supplier-popover{width:100%;max-width:100%}.po-new-supplier-popover .po-supplier-option{min-height:54px;font-size:14px}}

/* Procurement polish: scoped deliberately; the approved Home stays unchanged. */
.po-workspace{--po-radius:12px;--po-focus:#36745a;--po-surface:#f8faf7}
.po-workspace *,.po-workspace *::before,.po-workspace *::after{box-sizing:border-box}
.po-workspace input:not([type=checkbox]),.po-workspace select,.po-workspace textarea{max-width:100%;border-radius:9px;transition:border-color .16s ease,box-shadow .16s ease}
.po-workspace input[type=date]{display:block;width:100%;max-width:100%;min-width:0;min-inline-size:0;text-align:left;overflow:hidden}
.po-workspace input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
.po-workspace input[type=date]::-webkit-datetime-edit{min-width:0;padding:0}
.po-workspace :is(input,select,textarea):focus-visible{outline:2px solid var(--po-focus);outline-offset:2px;border-color:var(--po-focus)}
.po-workspace :is(button,a):focus-visible{outline:2px solid var(--po-focus);outline-offset:3px}
.po-workspace .po-summary-grid{grid-template-columns:minmax(220px,1.4fr) minmax(180px,1.1fr) minmax(175px,1fr) minmax(130px,.8fr) minmax(145px,.9fr);align-items:stretch}
.po-workspace .po-summary-card{border-radius:var(--po-radius);padding:18px;background:var(--po-surface)}
.po-workspace .po-summary-total{background:#eff5e6}
.po-workspace .po-summary-card label{line-height:1.5}
.po-workspace .po-card-label{flex-wrap:wrap;min-height:24px}
.po-workspace .po-card-label .text-button{min-height:32px;padding:4px 6px;border-radius:6px}
.po-workspace .po-reference-grid{padding:20px;border:1px solid var(--line);border-radius:var(--po-radius);background:#fff}
.po-workspace .po-tabs{border-radius:var(--po-radius);overflow-x:auto;scrollbar-width:thin}
.po-workspace .po-tabs>button{border-radius:8px 8px 0 0;transition:background-color .16s ease}
.po-workspace .btn{min-height:44px;border-radius:9px;transition:background-color .16s ease,box-shadow .16s ease}
.po-workspace .po-list-wrap,.po-workspace .po-edit-wrap,.po-workspace .po-expense-editor,.po-workspace .po-products-empty{border-radius:var(--po-radius)}
.po-workspace .po-list-meta{flex-wrap:wrap;line-height:1.6}
.po-workspace .po-detail-heading{flex-wrap:wrap}
.po-workspace .po-footer-total strong,.po-workspace .po-summary-total>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.po-workspace .po-create-footer{border-radius:var(--po-radius);padding-bottom:max(18px,env(safe-area-inset-bottom))}
@media(hover:hover){.po-workspace .po-card-label .text-button:hover{background:#e8efdf}.po-workspace .btn:not(:disabled):hover{box-shadow:0 3px 10px #173a2012}}
@media(max-width:1350px){.po-workspace .po-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.po-workspace .po-summary-total{grid-column:span 2;display:flex;align-items:center;gap:16px}.po-workspace .po-summary-total>strong{margin-left:auto}}
@media(max-width:720px){.po-workspace .po-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.po-workspace .po-summary-card{padding:14px}.po-workspace .po-summary-total{grid-column:auto;display:block}.po-workspace input:not([type=checkbox]),.po-workspace select,.po-workspace textarea{font-size:16px}.po-workspace .po-reference-grid{padding:16px}.po-workspace .po-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.po-workspace .po-footer-actions{flex-wrap:wrap}.po-workspace .po-footer-actions>.btn{flex:1 1 150px}.po-workspace .po-create-footer{position:static}.po-workspace .po-footer-total{gap:12px;flex-wrap:wrap}}
@media(max-width:420px){.po-workspace .po-summary-grid{grid-template-columns:minmax(0,1fr)}.po-workspace .po-summary-grid>.po-summary-card:first-child{grid-column:auto}.po-workspace .po-summary-total{display:flex;align-items:center;gap:12px}.po-workspace .po-receive{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.po-workspace :is(input,select,textarea,button,.btn){transition:none}}

.po-workspace .po-created{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:24px;margin:0 0 24px;border:1px solid #ccdfc5;border-radius:16px;background:linear-gradient(120deg,#eff6e8,#fff 75%)}
.po-created h2{margin:4px 0 8px;font-size:25px}.po-created p{margin:6px 0;line-height:1.6}.po-created small{display:block;max-width:650px;line-height:1.6;color:var(--muted)}.po-created-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:500px}.po-created>.fine-print{grid-column:1/-1;margin:0}
@media(max-width:900px){.po-workspace .po-created{grid-template-columns:minmax(0,1fr);padding:20px}.po-created-actions{max-width:none}.po-created-actions .btn{flex:1 1 150px;text-align:center}}

.customer-directory{max-width:1400px}.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}.directory-form fieldset{border:0;min-width:0;padding:0}.directory-form label,.directory-search label{display:grid;gap:8px;min-width:0;font-size:13px}.directory-form :is(input,select,textarea),.directory-search input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:9px;font:inherit;background:white}.directory-form :is(input,select,textarea):focus-visible,.directory-search input:focus-visible{outline:2px solid var(--forest);outline-offset:2px}.directory-form input[type=checkbox]{width:20px;min-height:20px}.directory-form .po-check{display:flex;gap:10px;align-items:center;margin:18px 0}.directory-form .btn{margin:8px 8px 0 0}.directory-location{background:#f8faf5;border-radius:12px;padding:16px}.directory-search{display:flex;align-items:end;gap:12px;margin:24px 0}.directory-search label{flex:1}.directory-rehearsal{margin-top:36px}.directory-rehearsal>summary{padding:16px;cursor:pointer;color:var(--muted)}@media(max-width:900px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.directory-grid{grid-template-columns:minmax(0,1fr)}.directory-form :is(input,select,textarea),.directory-search input{font-size:16px}}

.directory-form [hidden]{display:none!important}.directory-credit-fields{padding:16px;background:#eff5e6;border:1px solid #dbe7cc;border-radius:12px}.directory-credit-fields .fine-print{margin-bottom:0;line-height:1.6}
/* Customer onboarding: a welcoming business file, within the Pardo palette. */
.customer-directory .directory-entry{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start;margin:24px 0}
.directory-entry .directory-form{padding:0;border-radius:18px;overflow:hidden;margin:0;background:#fff}
.directory-form-header{display:flex;align-items:center;gap:20px;padding:28px;background:linear-gradient(125deg,#f5f8ee,#fff 75%);border-bottom:1px solid var(--line)}
.directory-brand{font-size:56px;letter-spacing:-9px;font-weight:600;color:var(--forest);line-height:1}.directory-brand>span{color:var(--lime);font-size:30px;letter-spacing:0}
.directory-form-header h2{margin:4px 0 8px;font-size:28px;letter-spacing:-.8px}.directory-form-header p{margin:0;color:var(--muted);line-height:1.6}
.directory-form>fieldset{padding:0 26px 24px}.directory-block{padding:24px 0;border-bottom:1px solid var(--line)}.directory-block>h3{display:flex;align-items:center;gap:12px;font-size:17px;margin:0 0 20px}.directory-block>h3>span{font-size:11px;color:var(--forest);background:#edf3e5;border-radius:50%;padding:8px}.directory-block h4{font-size:13px;color:var(--muted)}
.directory-form .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-payment-picker{grid-column:1/-1}.directory-payment-picker legend{font-size:13px;color:var(--muted);margin-bottom:12px}
.directory-option-grid{display:flex;gap:10px;flex-wrap:wrap}.directory-form .directory-option{display:flex;align-items:flex-start;gap:10px;padding:16px;border:1px solid var(--line);border-radius:12px;flex:1 1 160px;cursor:pointer;transition:background-color .16s,border-color .16s}.directory-option input[type=radio]{width:18px;min-height:18px;flex:none;accent-color:var(--forest);padding:0;margin:2px 0}.directory-option strong{display:block;font-size:13px}.directory-option small{display:block;margin-top:6px;font-size:11px;line-height:1.6;color:var(--muted)}.directory-option:has(input:checked){background:#eff5e6;border-color:#6b8d57;box-shadow:inset 0 0 0 1px #6b8d5730}.directory-option:focus-within{outline:2px solid var(--forest);outline-offset:2px}
.directory-portal-choice{padding:22px;border-radius:14px;background:#f4f6fa;margin:20px 0 0}.directory-portal-choice h3{font-size:16px}.directory-portal-choice>p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:0}
.directory-entry .directory-summary{position:sticky;top:24px;border-radius:18px;padding:24px;background:#fff;margin:0;box-shadow:0 12px 40px #12301a05}.directory-summary h2{font-size:22px;line-height:1.4;overflow-wrap:anywhere}.directory-summary dl{margin:24px 0}.directory-summary dl>div{padding:14px 0;border-bottom:1px solid var(--line)}.directory-summary dt{font-size:11px;color:var(--muted);margin-bottom:7px}.directory-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.directory-portal{margin-top:24px;border-radius:18px!important;background:#f8fafc!important}.directory-portal-user{padding:20px;background:white;border:1px solid var(--line);border-radius:12px;margin:16px 0}.directory-portal-user label{display:grid;gap:8px;font-size:13px;margin:18px 0}.directory-portal-user .po-check{display:flex;gap:10px;align-items:center}.directory-portal-user input:not([type=checkbox]){width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px;box-sizing:border-box}.directory-portal-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.directory-portal .po-check input{width:18px;height:18px;accent-color:var(--forest)}.directory-portal details{margin-top:20px}.directory-portal summary{cursor:pointer;line-height:1.6}
@media(hover:hover){.directory-option:hover{background:#f8faf5}.directory-option:has(input:checked):hover{background:#e8f0dc}}
@media(max-width:1100px){.customer-directory .directory-entry{grid-template-columns:minmax(0,1fr)}.directory-entry .directory-summary{position:static}.directory-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}}
@media(max-width:600px){.directory-form-header{padding:20px}.directory-form>fieldset{padding:0 18px 20px}.directory-form .directory-grid{grid-template-columns:minmax(0,1fr)}.directory-form .directory-option{flex-basis:100%}.directory-portal-choice{padding:16px}.directory-portal-user input:not([type=checkbox]){font-size:16px}.directory-portal-buttons>.btn{flex:1 1 150px;text-align:center}}
@media(prefers-reduced-motion:reduce){.directory-option{transition:none!important}}

/* Sales shares purchasing geometry; only its tab bar uses a distinct blue. */
.sales-workspace .sales-tabs{background:#214b73}.sales-workspace .sales-tabs>button{transition:none;color:#e8eff7}.sales-workspace .sales-tabs>button[aria-pressed=true]{color:#fff;border-bottom-color:#b8d9f5}
.sales-workspace .po-summary-grid{grid-template-columns:1.4fr 1.2fr 1fr 1fr}.sales-picker-backdrop{position:fixed;inset:0;z-index:30;background:#10231b66;display:grid;place-items:center;padding:24px}.sales-picker{background:#fff;width:min(1050px,100%);max-height:85dvh;overflow:auto;padding:24px;border-radius:12px}.sales-picker .ops-table-wrap{max-height:55dvh;margin-top:20px}.sales-picker td small{display:block;color:var(--muted)}
@media(max-width:720px){.sales-workspace .po-summary-grid{grid-template-columns:1fr 1fr}.sales-picker-backdrop{padding:12px}.sales-picker{padding:16px}}

/* Receiving keeps the existing purchase layout and separates unusable cases. */
.po-receipt-line{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:16px;margin:0}.po-receipt-line legend{padding:0 6px;font-size:13px;font-weight:600}.po-receipt-line p{font-size:12px;color:var(--muted);margin:4px 0 12px}.po-receipt-quantities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}.po-receipt-note,.po-receipt-help{grid-column:1/-1}.po-receipt-review{border:1px solid #e1cda0;background:#fff8e8;padding:16px;border-radius:8px;margin:16px 0;font-size:13px}.po-receipt-review p{line-height:1.6;margin:8px 0 0}.po-received_with_exceptions{background:#fff3da;color:#775217}.po-receipt-line output{font-weight:600;color:var(--ink)}
@media(max-width:600px){.po-receipt-quantities{grid-template-columns:minmax(0,1fr)}}

.po-invoice-reconciliation{border-top:1px solid var(--line);padding-top:20px;margin:20px 0}.po-invoice-credit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.po-invoice-reconciliation .po-receipt-line{margin-bottom:14px}.po-reconciliation-history details{margin:12px 0;border:1px solid var(--line);border-radius:8px;padding:12px}.po-reconciliation-history summary{cursor:pointer;font-size:12px}.po-invoice-reconciliation output{font-weight:600}.po-invoice-reconciliation p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}@media(max-width:600px){.po-invoice-credit-fields{grid-template-columns:minmax(0,1fr)}}

.po-expense-settlement{scroll-margin-top:110px}.po-expense-settlement fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.po-expense-settlement fieldset>label{display:grid;gap:7px}.po-expense-settlement .po-check,.po-expense-settlement fieldset>button,.po-expense-settlement fieldset>p{grid-column:1/-1}.po-expense-settlement .po-check{display:flex;align-items:center;gap:10px}.po-expense-settlement article{padding:14px 0;border-bottom:1px solid #dce4e0}.po-payable-actions{display:grid;gap:8px;min-width:160px}@media(max-width:700px){.po-expense-settlement fieldset{grid-template-columns:1fr}}
.po-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-inline-start:auto}
.po-list-refresh{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--forest);cursor:pointer}
.po-list-refresh:hover,.po-list-refresh:focus-visible{background:var(--soft)}
.po-list-refresh:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.po-list-refresh[aria-busy="true"]{opacity:.55}
.po-refresh-feedback{max-width:26ch}

/* The reference picker and date range share a compact purchasing toolbar. */
.po-workspace .po-tabs>button:hover{background:transparent}
.po-orders>tbody>tr[data-po-list-row]{cursor:pointer}
.po-confirmed{background:#f0f2ee;color:#354638}
.po-workspace .po-filters{
 --po-range-width:16rem;
 --po-select-width:11rem;
 --po-vendor-width:13.25rem;
 --po-filter-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' stroke='%235b695f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-bottom:0
}
.po-workspace .po-filters>label,.po-workspace .po-filters>.po-filter-field{
 flex:0 1 auto;width:min(100%,var(--po-field-width,var(--po-select-width)));min-width:0;
 display:grid;grid-template-rows:18px 44px;row-gap:6px;align-content:end
}
.po-workspace .po-filters>label,.po-workspace .po-filter-field>label{margin:0;line-height:18px;font-weight:600}
.po-workspace .po-filters>label select,.po-workspace .po-filters .po-picker-trigger,.po-workspace .po-advanced-trigger{
 height:44px;margin:0;box-sizing:border-box;border:1px solid #cbd4cc;border-radius:8px;
 background-color:white;color:var(--ink);font-size:14px;font-weight:400;line-height:20px
}
.po-workspace .po-filters>label select{
 appearance:none;padding-inline-end:30px;background-image:var(--po-filter-chevron);
 background-repeat:no-repeat;background-position:right 11px center
}
.po-workspace .po-filters .po-picker-trigger[aria-expanded=true],.po-workspace .po-advanced-trigger[aria-expanded=true]{
 border-color:var(--po-focus)
}
.po-workspace .po-advanced-trigger{display:inline-flex;align-items:center;gap:8px;padding:0 12px}
.po-workspace .po-advanced-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.po-workspace .po-advanced-actions .text-button{margin-inline-end:auto}
.po-workspace:has(>.po-filters)>.po-tabs{margin-bottom:16px}
.po-workspace .po-filters+.po-list-wrap{margin-top:10px}
.po-workspace .po-filters>.po-filter-error{grid-column:1/-1}
.po-workspace .po-filters>.po-filter-actions{justify-content:flex-start;gap:8px;padding:0
}
.po-workspace .po-filters>.po-search{--po-field-width:9rem}
.po-workspace .po-filters>.po-requested-range{--po-field-width:var(--po-range-width)}
.po-workspace .po-filters>.po-supplier-filter{--po-field-width:var(--po-vendor-width)}
.po-workspace .po-supplier-filter .po-picker-trigger{gap:6px}
.po-workspace .po-supplier-filter .po-picker-trigger>span:last-child,.po-workspace .po-advanced-trigger>span[aria-hidden]{
 flex:0 0 12px;width:12px;height:12px;border:0;padding:0;font-size:0;line-height:0;
 background:var(--po-filter-chevron) center / 12px 12px no-repeat
}
.po-supplier-filter .po-picker-trigger[aria-expanded=true]>span:last-child,.po-advanced-trigger[aria-expanded=true]>span[aria-hidden]{transform:rotate(180deg)}
.po-search-select,.po-requested-range{position:relative}
.po-search-select svg{position:absolute;top:50%;left:11px;transform:translateY(-50%);pointer-events:none}
.po-workspace .po-search-select select{padding-left:33px}
.po-requested-range .po-picker-trigger{font-variant-numeric:tabular-nums;gap:5px}
.po-requested-range .po-picker-trigger svg{flex-shrink:0}
.po-range-control{position:relative}
.po-range-control.has-range .po-picker-trigger{padding-inline:9px 39px}
.po-range-clear{
 position:absolute;inset-block:1px;inset-inline-end:1px;width:34px;display:grid;place-items:center;
 padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer
}
.po-range-clear:focus-visible{outline:2px solid var(--forest);outline-offset:-3px;color:var(--forest)}
.po-workspace .po-filter-actions,.po-workspace .po-applied-filters{grid-column:1/-1}
.po-workspace #po-reference-query{width:min(100%,17rem)}
.po-calendar{width:35rem;max-width:calc(100vw - 16rem);padding:14px}
.po-calendar-top,.po-calendar-months{display:flex;align-items:center;justify-content:space-between;gap:12px}
.po-calendar-top{font-size:13px;color:var(--muted)}
.po-calendar-top button,.po-calendar-grid button{background:transparent;border:0;border-radius:5px;color:var(--ink);min-height:32px}
.po-calendar-top button{width:36px;font-size:22px}
.po-calendar-months{align-items:start;margin:10px 0}
.po-calendar-month{min-width:0;flex:1}
.po-calendar-month h3{text-align:center;text-transform:capitalize;font-size:14px;margin:4px 0 10px}
.po-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.po-calendar-grid>span{font-size:11px;color:var(--muted);padding:3px}
.po-calendar-grid button{font-size:13px;padding:2px}
.po-calendar-grid .in-range{background:#edf5df;border-radius:0}
.po-calendar-grid .range-edge{background:var(--forest);color:white}
.po-calendar button:focus-visible{outline:2px solid var(--forest);outline-offset:-2px}
.po-calendar-grid .range-edge:focus-visible{outline-color:var(--lime)}
@media(max-width:800px){
 .po-workspace .po-filters{--po-range-width:17.25rem;--po-select-width:12rem;--po-vendor-width:14.5rem;position:relative}
 .po-workspace .po-filters>.po-advanced-filter{margin-left:0}
 .po-workspace .po-filters>label select,.po-workspace .po-filters .po-picker-trigger,.po-workspace .po-advanced-trigger{font-size:16px}
 .po-requested-range{position:static}
 .po-calendar{top:auto;left:0;right:0;margin-top:6px;width:auto;max-width:none}
}
@media(max-width:520px){
 .po-workspace .po-filters{display:grid;grid-template-columns:repeat(2,minmax(0,var(--po-select-width)));gap:12px 8px}
 .po-workspace .po-filters>.po-supplier-filter{grid-column:1/-1}
 .po-workspace .po-requested-range{grid-column:1/-1;grid-row:2}
 .po-workspace .po-filters>.po-advanced-filter{grid-column:2;grid-row:1;justify-self:end}
 .po-calendar-month:nth-child(2){display:none}
 .po-calendar-grid button{min-height:38px}
}
@media(max-width:410px){
 .po-workspace .po-filters>label:not(.po-search){grid-column:1/-1}
}

/* Keep the full text legible while distinguishing default filter values. */
.po-workspace .po-filters>label select:has(option[value=""]:checked),
.po-workspace .po-range-control:not(.has-range) .po-picker-trigger,
.po-workspace .po-supplier-filter .po-picker-trigger:not(.has-value){color:#6c786f}
.po-workspace .po-filters>label select option{color:var(--ink)}
.po-workspace .po-tabs>.po-list-actions{margin-inline-start:auto;margin-block:0;color:#fff}
.po-tabs .po-list-refresh{color:inherit}
.po-tabs .po-list-refresh:is(:hover,:focus-visible){background:transparent}
.po-tabs .po-list-refresh:focus-visible{outline-color:var(--lime)}
.po-tabs .po-refresh-feedback{color:#fff;white-space:normal}
.po-orders>thead>tr>th{padding:4px 10px}
.po-orders>tbody>tr[data-po-list-row]>td{padding:3px 10px;line-height:1.25}
.po-orders>tbody>tr[data-po-list-row]:has([data-po-check-id]:checked)>td{background:#edf5df}
.po-orders .po-row-start{display:grid;grid-template-columns:20px 26px minmax(max-content,1fr);align-items:center;gap:5px}
.po-orders .po-row-start input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;justify-self:center;accent-color:var(--forest);cursor:pointer}
.po-orders .po-expand{width:26px;height:26px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}
.po-orders .po-expand:is(:hover,:focus-visible){border-color:var(--line);background:#f4f6f2}
.po-orders .po-expand[aria-expanded=true] svg{transform:rotate(180deg)}
.po-orders .po-number{display:inline-flex;align-items:center;justify-self:start;min-height:26px;color:inherit;text-decoration:none;text-underline-offset:2px}
@media(hover:hover){
 .po-orders .po-number:hover{color:#275a8a;text-decoration:underline;text-decoration-color:#9cb4c9}
}
.po-orders .po-badge{min-height:21px;padding:3px 8px}
.po-orders th .po-row-start>button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left}
@media(pointer:coarse){
 .po-orders .po-expand,.po-orders .po-row-start input[type=checkbox]{min-width:24px;min-height:24px}
 .po-orders .po-row-start{grid-template-columns:26px 30px minmax(max-content,1fr)}
 .po-orders .po-number,.po-orders .po-expand{min-height:30px}
}

.po-orders .po-status-check{text-align:center;color:var(--muted)}
.po-orders .po-row-actions{width:1%;white-space:nowrap}
.po-row-actions button{display:grid;place-items:center;min-width:26px;min-height:26px;border:0;border-radius:5px;background:transparent;color:var(--forest);padding:0}

.po-number-group{display:inline-flex;align-items:center;gap:5px;justify-self:start}
.po-flag{color:#94620d;flex:none}
.po-action-menu{position:fixed;inset:auto;z-index:1000;margin:0;padding:4px;box-sizing:border-box;width:max-content;min-width:min(184px,calc(100vw - 16px));max-width:min(290px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;border:1px solid #d4dad5;border-radius:7px;background:#fff;color:#26352d;box-shadow:0 4px 16px #152a1e24}
.po-action-menu[hidden]{display:none}
.po-action-menu [role=menuitem]{display:block;width:100%;padding:6px 10px;border:0;border-radius:3px;background:transparent;text-align:left;text-decoration:none;color:inherit;font:inherit;font-size:14px;line-height:20px;box-sizing:border-box}
.po-action-menu [role=menuitem]:is(:hover,:focus-visible):not(:disabled){background:#f0f2f4;outline-offset:-2px}
.po-action-menu [role=menuitem]:disabled{color:#859087;cursor:default}
.po-action-menu p{margin:5px 10px 8px;font-size:13px;line-height:1.4}


.po-rts-host{margin:12px 0;text-align:left;white-space:normal}
.po-rts-panel{max-width:46rem;padding:14px 16px;border:1px solid var(--line,#d2dbd4);border-radius:8px;background:#fff}
.po-rts-panel .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.po-rts-panel h3,.po-rts-panel p[role]{margin:0}
.po-rts-panel [role="alert"]+.btn{margin-top:10px}
.po-rts-panel h3:focus{outline:none}
.po-orders .po-rts{background:#eae5f2;color:#54386c}
.po-orders .po-partial_rts{background:#fff0cf;color:#654a16}

.po-workspace .po-list-wrap .po-detail,.po-record-page .po-detail{width:100%;max-width:none;box-sizing:border-box}
.po-workspace .po-list-wrap .po-detail-cell{padding:0;position:static;white-space:normal}
.po-record-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.po-record-footer{justify-content:space-between;margin:12px 0;font-size:13px}
.po-record-status{margin:6px 0 12px;color:var(--muted);font-size:12px}
.po-record-page>nav{padding-bottom:12px;border-bottom:1px solid var(--line)}
.po-rts-quantities{margin:6px 0}
.po-order-editor{width:min(780px,95vw);max-height:90vh;overflow:auto}
.po-order-editor .po-form-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.po-detail .po-rts-panel{max-width:none}
@media(min-width:1000px){.po-workspace .po-detail-facts{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}

.po-list-wrap .po-summary{padding:14px 18px}
.po-summary-heading,.po-summary-facts,.po-summary-facts div,.po-summary-footer,.po-summary-footer div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.po-summary .po-summary-heading h2{margin:0;font-size:16px}
.po-summary .po-detail-heading{align-items:center}
.po-summary .po-detail-heading>.btn,.po-summary .po-rts-host>.btn{min-height:30px;padding:4px 10px;font-size:12px}
.po-summary-facts{column-gap:22px;margin:6px 0 10px;font-size:12px}
.po-summary-facts dt,.po-summary-footer span{color:var(--muted)}
.po-summary-facts dd{margin:0}
.po-summary .ops-table-wrap{margin:8px 0}
.po-summary .po-table th,.po-summary .po-table td{padding:6px 10px;line-height:1.35}
.po-summary-items td:first-child small{display:block;font-size:12px;color:var(--muted)}
.po-summary-expenses{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;font-size:12px;margin:8px 0}
.po-summary-items .po-num{white-space:nowrap}
.po-summary-footer{justify-content:space-between;gap:8px 20px;font-size:13px}
.po-summary-footer div{margin-inline-start:auto;column-gap:16px}
.po-summary .po-rts-host{margin:6px 0 0}
.po-buyer-dialog{width:min(26rem,95vw)}
.po-buyer-dialog form>header,.po-buyer-dialog form>footer{padding:14px 18px}
.po-buyer-dialog form>header h2{margin:0;font-size:18px}
.po-buyer-dialog form>footer{display:flex;justify-content:flex-end;gap:8px}
.po-buyer-dialog .po-expense-body{padding:8px 18px}
@media(min-width:1351px){#operations-purchase-create .po-summary-grid{grid-template-columns:minmax(180px,1.3fr) minmax(180px,1.2fr) repeat(2,minmax(145px,1fr)) repeat(2,minmax(115px,.8fr))}}
@media(min-width:721px) and (max-width:1350px){#operations-purchase-create .po-summary-total{grid-column:auto}}
.po-summary-items .po-line-sku{font-family:ui-monospace,monospace;font-size:11px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
#operations-purchase-create .po-edit-table{min-width:780px}
#operations-purchase-create .po-edit-table th:first-child{width:38%}
#operations-purchase-create .po-edit-table th:nth-child(2){width:110px}
#operations-purchase-create .po-edit-table th:nth-child(3){width:100px}
#operations-purchase-create .po-edit-table th:nth-child(4){width:145px}
.po-edit-table [data-po-pack]{white-space:nowrap}

.po-workspace .po-order-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.po-order-heading h2{margin:0}
.po-receipt-confirmation{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.po-signed-off{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.po-signed-off [aria-hidden]{color:var(--forest)}
.po-heading-actions{display:flex;align-items:center;gap:6px}
.po-heading-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:4px 9px;font-size:12px}
.po-placed{margin:2px 0 12px;color:var(--muted);font-size:12px}
.po-detail .po-summary-items .po-line-pack{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);line-height:1.3}
.po-detail .po-line-pack svg{flex:none}
.po-detail .po-total-stack{display:grid;justify-items:end;gap:3px;margin-inline-start:auto;text-align:right}
.po-order-value{padding-inline-end:12px;text-align:end}
.po-summary .po-order-value{margin-block:8px;padding-inline-end:10px;font-size:13px}
.po-payment-status{margin-inline-start:auto;color:var(--muted);font-size:12px;font-weight:400}
.po-detail .po-rts-host:empty{display:none}

.po-files{margin-block:18px 12px;min-width:0}
.po-files h3{margin:0 0 5px;font-size:14px}
.po-files-summary,.po-files-notice{color:var(--muted);font-size:12px;margin:3px 0 8px;overflow-wrap:anywhere}
.po-files-notice:empty{display:none}
.po-files-drop{display:grid;justify-items:center;gap:4px;padding:14px 10px;border:1px dashed #ced7cf;border-radius:6px;color:var(--muted);font-size:12px;text-align:center}
.po-files-drop.is-dragging,.po-files-drop:focus-within{border-color:var(--forest);background:#f6f9f5}
.po-files-drop small,.po-file-list small{font-size:11px;color:var(--muted)}
.po-workspace .po-files-picker{display:inline-block;position:relative;color:var(--forest);font-size:12px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.po-workspace .po-files-picker input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;padding:0;cursor:pointer}
.po-files-picker:focus-within{outline:2px solid var(--forest);outline-offset:3px}
.po-file-list{list-style:none;margin:5px 0 10px;padding:0}
.po-file-list li{display:flex;align-items:baseline;gap:10px;padding:3px 0}
.po-file-list a{color:var(--forest);overflow-wrap:anywhere}
.po-file-list small{flex:none}
.po-value-rows{display:grid;gap:4px;margin:0 0 0 auto;width:fit-content;max-width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.po-value-rows>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(7ch,auto);gap:24px;align-items:baseline}
.po-value-rows dd,.po-value-rows dt,.po-signature dd{margin:0}
.po-value-rows dd{white-space:nowrap;text-align:right}
.po-grand-total{font-weight:700}
.po-rts-notes{display:grid;justify-items:end;gap:3px;margin-top:6px;color:var(--muted)}
.po-summary-footer.po-record-footer{display:grid;justify-content:end;justify-items:end;text-align:right}
.po-record-footer .po-payment-status{display:inline-flex;align-items:center;gap:5px}
.po-signature{display:grid;gap:3px;margin:8px 0 0;font-size:13px}
.po-signature dt,.po-file-author time{color:var(--muted);font-size:12px}
.po-signature dd+dt{margin-top:5px}
.po-file-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:6px;padding:6px 0}
.po-file-author,.po-file-main{display:grid;gap:2px}
.po-file-author{text-align:right;font-size:12px;overflow-wrap:anywhere}
.po-file-action{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);cursor:pointer}
.po-file-action[aria-pressed="true"]{color:var(--forest);background:#ecf5ed;border-color:#94b59c}
.po-file-remove,.po-file-dialog [data-file-confirm]{color:#a72b27}
.po-file-action:disabled{opacity:.5;cursor:default}
.po-vendor-files{font-size:12px}
.po-file-dialog{width:min(380px,90vw);padding:20px;border:1px solid var(--line);border-radius:10px;color:var(--ink);text-align:left}
.po-file-dialog::backdrop{background:#10241b55}
.po-file-dialog p{font-size:14px;overflow-wrap:anywhere}
.po-file-dialog>div{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:540px){.po-file-list li{grid-template-columns:minmax(0,1fr) auto auto}.po-file-author{grid-column:1;grid-row:2;text-align:left}.po-file-action{grid-row:1 / span 2}.po-file-remove{grid-column:3}}
.po-workspace .po-option-field{position:relative;min-width:0}
.po-workspace .po-filters>.po-search{--po-field-width:13.5rem}
.po-inline-control{display:flex;align-items:center;min-width:0;height:44px}
.po-inline-control .po-picker-trigger{gap:8px}
.po-choice-chevron{margin-inline-start:auto;flex:none;width:12px;height:12px;background:var(--po-filter-chevron) center/contain no-repeat}
.po-picker-trigger[aria-expanded="true"] .po-choice-chevron{transform:rotate(180deg)}
.po-inline-control.is-typing{border:1px solid #cbd4cc;border-radius:8px;background:white}
.po-inline-control.is-typing:focus-within{border-color:var(--po-focus)}
.po-workspace .po-inline-control.is-typing .po-picker-trigger,.po-workspace .po-inline-control .po-query-clear{display:grid;place-items:center;flex:none;width:32px;border:0;border-radius:7px;background:transparent;padding:0;min-height:38px;height:38px;color:var(--muted)}
.po-workspace .po-inline-control #po-reference-query{flex:1;width:0;min-width:0;min-height:0;margin:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;padding:7px 0;font:inherit;font-size:14px}
.po-inline-control input::-webkit-search-cancel-button{appearance:none}
.po-workspace .po-filters .po-filter-popover{border:1px solid #cbd4cc;border-radius:10px;background:#fff;box-shadow:0 8px 24px #193b2819}
.po-workspace .po-choice-panel{left:0;right:auto;min-width:100%;width:max-content;max-width:min(22rem,calc(100vw - 40px));max-height:17rem;padding:6px;overflow:auto;box-sizing:border-box}
.po-choice-panel .po-supplier-option[aria-pressed="true"]{background:#edf5e8;color:#1d4e36}
.po-advanced-popover .po-option-field{display:grid;gap:4px;width:100%}
.po-workspace .po-advanced-popover .po-choice-panel{position:static;width:100%;max-height:13rem;margin-top:2px}
@media(max-width:720px){.po-workspace .po-filters>.po-option-field{width:100%}.po-workspace .po-filters .po-choice-panel{min-width:100%;width:100%}.po-workspace .po-inline-control #po-reference-query{font-size:16px}}
.po-orders .po-grand-total,.po-orders th.po-num{font-weight:400}
.po-orders th.po-status-heading{text-align:center}
.po-orders th.po-status-heading>button{position:relative;justify-content:center;text-align:center;padding-inline:12px}
.po-orders th.po-status-heading>button>span{position:absolute;right:0}
.po-workspace .po-cancel-action{color:#90332c}
.po-heading-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.po-workspace .po-order-heading{display:flex;flex-wrap:wrap}.po-heading-actions{margin-inline-start:auto}}
pardo-documents{display:block;min-width:0;margin:14px 0;padding:12px 14px;border:1px solid var(--line,#dce3dd);border-radius:8px;text-align:left;white-space:normal}
pardo-documents h3{margin:0;font-size:15px}pardo-documents p,pardo-documents li,pardo-documents a{font-size:13px;overflow-wrap:anywhere}pardo-documents p:empty{display:none}
pardo-documents ul{padding-inline-start:18px}.document-upload{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.document-upload label{display:grid;gap:4px;font-size:12px}.document-upload label[hidden]{display:none}
.document-upload input[type=file]{width:min(235px,100%);min-width:0}.document-upload .document-check{display:flex;align-items:center}.document-check input[type=checkbox]{min-height:0;width:16px}
