/* Market82 Procurement Suite — separate admin/buyer layer, no jumps or saturated fills */
.procurement-page{--proc-accent:#e65a68;--proc-border:rgba(0,0,0,.08);--proc-dim:#858591;padding-bottom:100px}
html[data-theme="dark"] .procurement-page{--proc-border:rgba(255,255,255,.095);--proc-dim:#a0a0aa}
.procurement-page :is(h1,h2,h3,p){margin-top:0}.procurement-page h2{font-size:22px;font-weight:750;letter-spacing:-.7px;margin-bottom:5px}.procurement-page h3{font-size:17px;font-weight:750;letter-spacing:-.5px}
.procurement-page .page-head{margin-bottom:23px}.procurement-page .page-head h1{font-size:36px;letter-spacing:-1.5px}.procurement-page .page-head p{color:var(--muted-strong)}
.proc-topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0 36px}.proc-headline{display:flex;align-items:center;gap:12px}.proc-headline>span:last-child{display:flex;flex-direction:column;gap:1px}.proc-headline small{font-size:11px;color:var(--muted)}.proc-signal{width:9px;height:9px;background:#45bc92;border-radius:50%;box-shadow:0 0 0 5px rgba(69,188,146,.1)}
.proc-section{margin-top:38px}.proc-section-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}.proc-section-title p,.proc-detail-heading p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.proc-light-button,.proc-outline{background:transparent!important;border:1px solid var(--line)!important;color:var(--ink)!important;min-height:42px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;justify-content:center;transition:border-color .18s,background-color .18s!important;white-space:nowrap}.proc-light-button:hover,.proc-outline:hover{background:var(--surface-2)!important;border-color:var(--proc-accent)!important;transform:none!important}.proc-primary{border:1px solid var(--proc-accent)!important;color:var(--proc-accent)!important;background:transparent!important;min-height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .18s}.proc-primary:hover{background:rgba(230,90,104,.1)!important;transform:none!important}.proc-primary:disabled{opacity:.4;cursor:not-allowed}.proc-primary:disabled:hover{background:transparent!important}
.proc-supplier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.proc-supplier-card{padding:23px;border:1px solid var(--line);border-radius:22px;background:var(--surface);min-width:0}.proc-supplier-name{display:flex;gap:12px;align-items:center;margin-bottom:19px}.proc-supplier-icon{width:44px;height:44px;border-radius:14px;background:var(--surface-2);display:grid;place-items:center;color:var(--ink)}.proc-supplier-name h3{margin-bottom:2px}.proc-supplier-name small{color:var(--muted);font-size:11px}.proc-limits-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.proc-limits-form label{font-size:10px;font-weight:680;color:var(--muted);display:grid;gap:6px;min-width:0}.proc-limits-form input,.proc-number{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;height:43px;width:100%;min-width:0;padding:0 12px;outline:none}.proc-limits-form input:focus,.proc-number:focus{border-color:var(--proc-accent)}.proc-limits-form .btn{grid-column:1/-1;margin-top:4px;width:100%}
.proc-batches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.proc-batch-card{padding:25px;border-radius:23px;border:1px solid var(--line);background:var(--surface);min-width:0;display:flex;flex-direction:column;gap:16px}.proc-batch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.proc-overline{font-size:10px;font-weight:720;letter-spacing:.065em;color:var(--muted);text-transform:uppercase}.proc-batch-head h3{font-size:24px;letter-spacing:-.85px;margin:6px 0 0}.proc-state{padding:8px 10px;border:1px solid var(--line);border-radius:99px;line-height:1.1;white-space:nowrap;color:var(--ink);font-size:10px;font-weight:760;background:var(--surface-2)}.proc-state-shipping,.proc-state-buying,.proc-state-sorting{border-color:rgba(230,90,104,.45);color:var(--proc-accent);background:rgba(230,90,104,.05)}.proc-state-ready{color:#248e6c;border-color:rgba(36,142,108,.36)}html[data-theme="dark"] .proc-state-ready{color:#7ae4bd}
.proc-batch-metrics{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:9px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.proc-batch-metrics>div{display:flex;flex-direction:column;min-width:0;gap:3px}.proc-batch-metrics b{font-size:19px;letter-spacing:-.5px;white-space:nowrap}.proc-batch-metrics span{font-size:10px;color:var(--muted)}.proc-meter{height:7px;display:flex;overflow:hidden;border-radius:15px;background:var(--surface-2)}.proc-meter>span{display:block;height:100%;transition:width .25s}.proc-meter-ok{background:#45b993}.proc-meter-cancel{background:#e65a68}.proc-substats{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.proc-batch-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto}.proc-batch-footer>span{font-size:10px;color:var(--muted);max-width:165px}.proc-empty{padding:35px;border-radius:22px;border:1px dashed var(--line);color:var(--muted);background:var(--surface)}
.proc-back{font-size:12px;color:var(--muted-strong);display:inline-block;margin-bottom:24px}.proc-back:hover{color:var(--proc-accent)}.proc-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.proc-detail-heading h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0}.proc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.proc-kpi-grid>div{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:19px;display:flex;flex-direction:column;gap:6px}.proc-kpi-grid span{font-size:11px;color:var(--muted)}.proc-kpi-grid strong{font-size:24px;letter-spacing:-1px;white-space:nowrap}.proc-steps{display:flex;gap:5px;margin:22px 0 34px;flex-wrap:wrap}.proc-step{flex:1;min-width:85px;text-align:center;padding:11px 5px;font-size:10px;font-weight:650;color:var(--muted);border-radius:10px;background:var(--surface-2);border:1px solid transparent}.proc-step.is-done{border-color:var(--line);background:var(--surface);color:var(--ink)}.proc-step.is-done:last-child{color:var(--proc-accent)}
.proc-workflow{margin-top:20px}.proc-action-row{background:var(--surface);border-radius:21px;border:1px solid var(--line);padding:23px;display:flex;justify-content:space-between;gap:25px;align-items:center}.proc-action-row>div{display:flex;flex-direction:column;gap:7px}.proc-action-row strong{font-size:15px}.proc-action-row small{font-size:11px;line-height:1.6;color:var(--muted);max-width:650px}.proc-notice{margin:15px 0;padding:15px 19px;border:1px solid rgba(230,90,104,.23);border-radius:13px;background:rgba(230,90,104,.06);font-size:12px;color:var(--ink)}.proc-warning{margin-top:22px}.proc-counter{color:var(--muted);font-size:13px}
.proc-item-list{display:flex;flex-direction:column;gap:9px}.proc-item-row{background:var(--surface);border:1px solid var(--line);border-radius:19px;display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:18px;padding:13px 16px;min-width:0}.proc-item-image{width:78px;height:86px;background:var(--surface-2);border-radius:13px;overflow:hidden}.proc-item-image img{width:100%;height:100%;object-fit:cover}.proc-item-main{min-width:0}.proc-item-ref{font-size:10px;color:var(--muted);margin-bottom:4px}.proc-item-main>strong{font-size:13px;line-height:1.4;display:block}.proc-item-meta{display:flex;gap:13px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:7px 0}.proc-item-state{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.proc-item-pill{border:1px solid var(--line);border-radius:99px;padding:4px 8px;color:var(--ink);white-space:nowrap}.proc-item-pill.has-cancel{color:var(--proc-accent);border-color:rgba(230,90,104,.28)}.proc-buyout-actions{display:flex;align-items:center;gap:8px}.proc-buyout-form{display:flex;align-items:end;gap:8px}.proc-buyout-form label{font-size:10px;color:var(--muted);display:grid;gap:5px}.proc-number{width:76px;height:38px}.proc-buyout-actions .btn{height:38px;min-height:38px}.proc-text-danger{border:0;background:transparent;color:var(--proc-accent);font-size:11px;white-space:nowrap;padding:12px 2px}.proc-text-danger:hover{text-decoration:underline}
.proc-history{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:22px}.proc-history h2{margin-bottom:15px}.proc-history-row{display:grid;grid-template-columns:120px minmax(0,1fr) 105px;gap:13px;border-top:1px solid var(--line);padding:12px 0;font-size:11px}.proc-history-row span,.proc-history-row small{color:var(--muted)}
.proc-managed-order{padding:8px;border-radius:7px;background:var(--surface-2)}.proc-managed-order a{color:var(--proc-accent)}
/* Customer-facing progress */
.proc-customer-orders .v10-order-tile{transition:border-color .2s,box-shadow .2s!important;transform:none!important}.proc-customer-orders .v10-order-tile:hover{transform:none!important;border-color:var(--line)!important}.proc-order-foot{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.proc-cancel-tag{font-size:10px;color:var(--proc-accent);border:1px solid rgba(230,90,104,.23);padding:5px 8px;border-radius:12px}
.proc-buyer-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:16px}.proc-buyer-step{display:flex;align-items:center;flex-direction:column;gap:7px;color:var(--muted);position:relative}.proc-buyer-step:before{content:"";height:2px;background:var(--line);position:absolute;top:18px;left:50%;right:-50%;z-index:0}.proc-buyer-step:last-child:before{display:none}.proc-buyer-step.done:before{background:rgba(56,167,128,.65)}.proc-buyer-dot{width:37px;height:37px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;background:var(--surface);color:var(--muted);font-size:12px;position:relative;z-index:1}.proc-buyer-step.done .proc-buyer-dot{background:rgba(51,172,125,.11);border-color:rgba(51,172,125,.48);color:#3aaf85}.proc-buyer-step small{font-size:10px;text-align:center;line-height:1.4;white-space:normal}.proc-buyer-line{padding:15px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:13px;align-items:center}.proc-buyer-line>img{width:70px;height:77px;object-fit:cover;background:var(--surface-2);border-radius:11px}.proc-buyer-line-text{display:flex;flex-direction:column;gap:5px;min-width:0}.proc-buyer-line-text strong{font-size:12px;line-height:1.4}.proc-buyer-line-text small{font-size:10px;color:var(--muted)}.proc-buyer-line> b{white-space:nowrap;font-size:12px}.proc-status-line{font-size:11px;color:#3caa82;font-weight:710}.proc-status-muted{font-size:11px;color:var(--muted)}.proc-buyer-line-text .proc-refund-line{color:var(--proc-accent)}.proc-buyer-refund{border:1px solid rgba(230,90,104,.25);border-radius:13px;background:rgba(230,90,104,.05);padding:13px 16px;display:flex;flex-direction:column;gap:6px;margin-top:17px}.proc-buyer-refund strong{color:var(--proc-accent);font-size:12px}.proc-buyer-refund small{color:var(--muted);line-height:1.5}
@media(max-width:1100px){.proc-supplier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.proc-item-row{grid-template-columns:60px minmax(0,1fr);gap:11px}.proc-item-image{width:60px;height:70px}.proc-buyout-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.proc-kpi-grid>div{padding:15px}}
@media(max-width:760px){.procurement-page{padding-bottom:115px}.procurement-page .page-head h1{font-size:29px}.proc-topbar{align-items:stretch;flex-direction:column}.proc-supplier-grid,.proc-batches{grid-template-columns:1fr}.proc-detail-heading{align-items:flex-start;flex-direction:column}.proc-detail-heading h1{font-size:30px}.proc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.proc-action-row{align-items:stretch;flex-direction:column}.proc-action-row .btn{width:100%}.proc-history-row{grid-template-columns:1fr;gap:3px}.proc-steps{gap:5px}.proc-step{min-width:70px;flex:1 0 22%}.proc-buyer-line{grid-template-columns:58px minmax(0,1fr);align-items:flex-start}.proc-buyer-line>img{width:58px;height:67px}.proc-buyer-line>b{grid-column:2}.proc-buyer-timeline{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}.proc-buyer-step:nth-child(3):before{display:none}.proc-buyer-step small{font-size:9px}}
@media(max-width:440px){.procurement-page h2{font-size:19px}.proc-batch-head h3{font-size:21px}.proc-batch-metrics b{font-size:16px}.proc-batch-card,.proc-supplier-card{padding:17px}.proc-batch-footer{flex-direction:column;align-items:stretch}.proc-batch-footer>span{max-width:none}.proc-limits-form{grid-template-columns:1fr 1fr}.proc-supplier-name h3{font-size:16px}.proc-item-row{padding:10px}.proc-buyout-actions{grid-column:1/-1;padding-top:6px}.proc-buyout-form{flex:1}.proc-buyout-form .btn{flex:1}.proc-item-main>strong{font-size:12px}.proc-item-meta{gap:7px}.proc-kpi-grid strong{font-size:20px}.proc-kpi-grid>div{padding:14px}.proc-buyer-line-text strong{font-size:11px}}

.proc-pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin:25px auto}.proc-pagination span{font-size:11px;color:var(--muted)}
@media(max-width:760px){.proc-section-title{align-items:stretch;flex-direction:column}.proc-section-title form,.proc-section-title button{width:100%}}

.proc-global-limit{display:flex;align-items:flex-end;gap:12px;min-width:230px}.proc-global-limit label{min-width:180px}.proc-global-limit button{white-space:nowrap}.proc-default-settings .proc-action-row{align-items:center}@media(max-width:700px){.proc-default-settings .proc-action-row{display:block}.proc-global-limit{margin-top:16px;flex-wrap:wrap}.proc-global-limit label{flex:1;min-width:130px}.proc-global-limit button{flex:1}}

.proc-autofill-caption{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-top:-5px}.proc-autofill-caption b{color:var(--ink)}.proc-autofill-meter{margin-top:-10px}
