/* Procurement workspace: suggestions, local preparation and saved orders stay distinct. */
.replenishment-workspace{--rp-bg:#fff;--rp-soft:#f3f5f7;--rp-text:#202630;--rp-muted:#626d7b;--rp-border:#d5dce4;--rp-orange:#ff5b18;color:var(--rp-text);font-family:Inter,Arial,sans-serif}
.replenishment-workspace [hidden]{display:none!important}
.replenishment-loading h2{font:700 26px Inter,Arial,sans-serif;text-transform:none}.replenishment-loading p{font-size:13px;color:var(--muted)}.replenishment-loading>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.replenishment-loading i{height:78px;background:var(--line);opacity:.4;border-radius:6px}
.replenishment-heading{position:relative;padding:0 0 20px}
.replenishment-heading h2{font:750 30px/1.2 Inter,Arial,sans-serif;text-transform:none;letter-spacing:-.035em;margin:10px 0}
.replenishment-heading .lead{font-size:12px;line-height:1.6;color:var(--rp-muted);max-width:76ch;margin:0}
.replenishment-health{display:inline-flex;align-items:center;gap:7px;color:#196b45;font-size:11px;font-weight:700}
.replenishment-health:before{content:'';width:7px;height:7px;border-radius:50%;background:#248b58}
.replenishment-health.pending{color:#935500}.replenishment-health.pending:before{background:#b87917}
.replenishment-syncbar{margin:16px 0 8px;gap:10px;font-size:12px}.replenishment-syncbar select{padding:8px;border:1px solid var(--rp-border);background:var(--rp-bg);color:var(--rp-text)}
.replenishment-freshness{font-size:11px;line-height:1.6;color:var(--rp-muted);margin:0}
.replenishment-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.replenishment-metrics button{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:17px 18px;border:1px solid var(--rp-border);border-radius:8px;background:var(--rp-bg);color:var(--rp-text);min-width:0;border-top:3px solid #a7b3c1}
.replenishment-metrics button:first-child{border-top-color:var(--rp-orange)}
.replenishment-metrics button:nth-child(2){border-top-color:#c45746}.replenishment-metrics button:nth-child(3){border-top-color:#35805b}
.replenishment-metrics span{font-size:12px;font-weight:650}.replenishment-metrics strong{font-size:30px;line-height:1;font-variant-numeric:tabular-nums}.replenishment-metrics small{font-size:11px;line-height:1.4;color:var(--rp-muted)}
.replenishment-metrics button:hover{border-color:#8f9dad}
.replenishment-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--rp-border);padding-bottom:10px;margin-bottom:14px}
.replenishment-tabs button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--rp-muted);padding:11px 13px;font-size:12px;font-weight:700;min-height:40px}
.replenishment-tabs button[aria-pressed=true]{background:var(--rp-text);color:var(--rp-bg);border-radius:5px}
.replenishment-tabs span{font-size:10px;padding:3px 6px;border:1px solid currentColor;border-radius:4px}
.replenishment-tabs [data-replenishment-jump]{margin-left:auto;color:var(--rp-text)}
.replenishment-data-notes{background:var(--rp-soft);border:1px solid var(--rp-border);border-radius:5px;margin-bottom:18px}
.replenishment-data-notes>summary{padding:12px 15px;font-size:12px;justify-content:flex-start;gap:8px;list-style:revert}
.replenishment-data-notes .readonly-note{margin:10px 14px;padding:10px 14px;font-size:12px;line-height:1.6;background:var(--rp-bg);color:var(--rp-text)}
.replenishment-columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:18px}
.replenishment-main{min-width:0}.replenishment-workspace .admin-panel{padding:18px;background:var(--rp-bg);border-color:var(--rp-border);border-radius:7px;min-width:0}
.replenishment-workspace .admin-panel h2{font:700 18px/1.35 Inter,Arial,sans-serif;text-transform:none;letter-spacing:-.02em;margin:0 0 10px}
.replenishment-workspace .replenishment-view{padding:0;overflow:hidden}
.replenishment-view>.form-error{padding:12px 16px;margin:0}
.replenishment-filters{padding:16px 16px 0;margin:0;display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,160px);gap:10px}
.replenishment-filters input[type=search]{min-width:0;width:100%;font-size:12px;padding:11px 12px}
.replenishment-filters select{width:100%;font-size:12px;min-height:39px}
.replenishment-filters>label:not(.replenishment-sort){font-size:11px;color:var(--rp-muted);flex-wrap:wrap}
.replenishment-sort{display:flex;gap:7px;font-size:11px;color:var(--rp-muted)}
.replenishment-quick{display:flex;flex-wrap:wrap;gap:6px;padding:13px 16px 0}
.replenishment-quick button{border:1px solid var(--rp-border);background:var(--rp-bg);color:var(--rp-muted);padding:8px 10px;border-radius:5px;font-size:11px;font-weight:600;min-height:35px}
.replenishment-quick button[aria-pressed=true]{border-color:#d34c12;background:#fff1e9;color:#8e310c}
#replenishment-count{padding:0 16px;font-size:11px;color:var(--rp-muted);margin:12px 0}
.replenishment-workspace .replenishment-list{max-height:750px;overflow:auto;border-top:1px solid var(--rp-border);scrollbar-gutter:stable}
.replenishment-workspace .replenishment-card{grid-template-columns:62px minmax(0,1fr) 116px;gap:12px;padding:16px 14px;border-bottom:1px solid var(--rp-border);background:var(--rp-bg);align-items:center}
.replenishment-workspace .replenishment-card:last-child{border-bottom:0}
.replenishment-workspace .replenishment-photo img{width:62px;height:62px;object-fit:contain;border-radius:5px;background:#eef0f2}
.replenishment-workspace .replenishment-photo .admin-product-thumb{width:62px;height:62px;margin:0}
.replenishment-product-info{min-width:0}.replenishment-product-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.replenishment-product-heading strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.replenishment-product-brand{font-size:11px;color:var(--rp-muted);display:block;margin-top:4px;line-height:1.5}
.replenishment-state{display:inline-block;font-size:9px;font-weight:700;line-height:1.4;padding:3px 6px;border-radius:4px;background:var(--rp-soft);color:var(--rp-muted)}
.replenishment-state.ordered{background:#d4eddf;color:#1d6541}.replenishment-state.draft{background:#fff0c9;color:#815a0d}.replenishment-state.empty{background:#fbe5e1;color:#9b382b}
.replenishment-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 6px}
.replenishment-numbers dt{font-size:10px;line-height:1.4;color:var(--rp-muted)}.replenishment-numbers dd{font-size:16px;font-weight:700;line-height:1.5;margin:3px 0 0;font-variant-numeric:tabular-nums}
.replenishment-numbers div:last-child dd{color:#a03a0e}
.replenishment-product-history{border:0;padding:0}.replenishment-product-history summary{font-size:10px;font-weight:500;padding:5px 0;color:var(--rp-muted);list-style:revert;display:list-item;margin-left:12px}
.replenishment-product-history p{font-size:10px;color:var(--rp-muted);line-height:1.6;margin:4px 0}
.replenishment-workspace .replenishment-card.replenishment-ordered{background:#f1faf5;border-left:4px solid #278057;padding-left:10px}
.replenishment-workspace .replenishment-card.replenishment-draft{background:#fffbef;border-left:4px solid #b7871f;padding-left:10px}
.replenishment-prepared-label{font-size:10px;font-weight:700;color:#a13c13;display:block;margin-top:6px}
.replenishment-workspace .replenishment-prepared:not(.replenishment-ordered):not(.replenishment-draft){box-shadow:inset 3px 0 #ff5b18}
.replenishment-workspace [data-replenishment-open]{min-height:40px;font-size:11px;border-color:#c6cdd5;background:var(--rp-bg);color:var(--rp-text);padding:9px}
.replenishment-workspace .replenishment-preparation{position:sticky;top:100px;scroll-margin-top:100px;border-top:3px solid var(--rp-orange)}
.replenishment-preparation-note{font-size:11px;line-height:1.6;color:var(--rp-muted);margin:0 0 14px}
#replenishment-basket>p{font-size:12px;line-height:1.6;color:var(--rp-muted)}
.replenishment-workspace .replenishment-basket-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-color:var(--rp-border);padding:13px 0}
.replenishment-basket-row>div{grid-column:1/-1;min-width:0}.replenishment-basket-row strong{font-size:12px;overflow-wrap:anywhere}.replenishment-workspace .replenishment-basket-row small{font-size:10px;color:var(--rp-muted);line-height:1.5}
#replenishment-basket>label{display:grid;gap:7px;font-size:12px;margin-top:14px}
#replenishment-basket #replenishment-save{width:100%;min-height:42px;margin-top:12px;font-size:12px}
.replenishment-clear-preparation{width:100%;font-size:11px;margin-top:8px}
.replenishment-workspace .replenishment-empty{padding:28px 18px;font-size:13px;text-align:center}
.replenishment-empty p{font-size:12px;color:var(--rp-muted)}
.replenishment-orders-panel>.lead{font-size:12px;line-height:1.6;color:var(--rp-muted)}
.replenishment-order-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;margin:15px 0}.replenishment-order-filter select{padding:9px;border:1px solid var(--rp-border);background:var(--rp-bg);color:var(--rp-text)}
.replenishment-workspace .replenishment-order{padding:16px 0;border-color:var(--rp-border)}
.replenishment-order>strong{font-size:14px}.replenishment-workspace .replenishment-order small{font-size:11px;color:var(--rp-muted);line-height:1.6}
.replenishment-order[data-order-state=ordered]>strong{color:#24704d}.replenishment-order[data-order-state=draft]>strong{color:#936214}
.replenishment-order details summary{padding:10px 0;font-size:12px}.replenishment-order details p{font-size:12px;line-height:1.5}
.replenishment-workspace .small-action,.replenishment-workspace .secondary-action{min-height:36px;color:var(--rp-text);background:var(--rp-bg);border-color:var(--rp-border)}
.replenishment-workspace :is(button,input,select):focus-visible,.replenishment-dialog :is(button,input,select):focus-visible{outline:3px solid #287fc2;outline-offset:3px}
.replenishment-dialog h2{font:700 23px/1.3 Inter,Arial,sans-serif;text-transform:none;margin:10px 0 16px}.replenishment-dialog>p{font-size:12px;line-height:1.7}.replenishment-dialog th{font-size:11px;background:#f1f3f5}.replenishment-dialog button{min-height:38px}.replenishment-dialog .replenishment-close{min-width:38px}
html[data-theme=dark] .replenishment-workspace{--rp-bg:#1e2228;--rp-soft:#292f37;--rp-text:#eff2f6;--rp-muted:#b2bcc9;--rp-border:#485362}
html[data-theme=dark] .replenishment-health{color:#98dfb6}html[data-theme=dark] .replenishment-health.pending{color:#f0c67c}
html[data-theme=dark] .replenishment-quick button[aria-pressed=true]{background:#4a2b1e;color:#ffc7aa;border-color:#f28b57}
html[data-theme=dark] .replenishment-workspace .replenishment-card.replenishment-ordered{background:#1d352a}html[data-theme=dark] .replenishment-workspace .replenishment-card.replenishment-draft{background:#39301e}
html[data-theme=dark] .replenishment-state.ordered{background:#1e4c34;color:#b0ecc9}html[data-theme=dark] .replenishment-state.draft{background:#5a431c;color:#ffdf97}html[data-theme=dark] .replenishment-state.empty{background:#502a26;color:#ffb7a8}
html[data-theme=dark] .replenishment-numbers div:last-child dd,html[data-theme=dark] .replenishment-prepared-label{color:#ffb48d}
html[data-theme=dark] .replenishment-order[data-order-state=ordered]>strong{color:#9adbb4}html[data-theme=dark] .replenishment-order[data-order-state=draft]>strong{color:#edcc86}
html[data-theme=dark] .replenishment-dialog th{background:#292f37}
@media(max-width:1150px){.replenishment-columns{grid-template-columns:minmax(0,1fr)}.replenishment-workspace .replenishment-preparation{position:static}.replenishment-workspace #replenishment-basket{max-height:500px;overflow:auto}}
@media(max-width:640px){.replenishment-heading h2{font-size:25px}.replenishment-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.replenishment-metrics button{padding:13px 12px;gap:7px}.replenishment-metrics strong{font-size:25px}.replenishment-tabs{gap:3px}.replenishment-tabs button{font-size:11px;padding:10px 8px}.replenishment-tabs [data-replenishment-jump]{margin-left:0}.replenishment-filters{grid-template-columns:minmax(0,1fr);padding:12px 12px 0}.replenishment-sort select{flex:1}.replenishment-quick{padding:12px 12px 0;gap:5px}.replenishment-workspace .replenishment-card{grid-template-columns:48px minmax(0,1fr);gap:10px;padding:14px 12px}.replenishment-workspace .replenishment-photo img,.replenishment-workspace .replenishment-photo .admin-product-thumb{width:48px;height:48px}.replenishment-photo{align-self:start}.replenishment-workspace [data-replenishment-open]{grid-column:2;justify-self:start;min-height:40px}.replenishment-numbers{gap:6px}.replenishment-numbers dt{font-size:9px}.replenishment-numbers dd{font-size:15px}.replenishment-product-heading strong{font-size:13px}.replenishment-workspace .admin-panel{padding:14px}.replenishment-workspace .replenishment-view{padding:0}.replenishment-workspace .replenishment-list{max-height:620px}.replenishment-data-notes>summary{line-height:1.5}.replenishment-preparation{scroll-margin-top:85px}}
