/* SheaOlein v253 — replacement Purchase Orders -> Receive Items workspace.
   All selectors belong to this single component. No inherited QB table/grid sizing. */
.recv-overlay{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:18px;background:rgba(25,38,30,.46);backdrop-filter:blur(5px);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#203329}
.recv-overlay *{box-sizing:border-box}
.recv-dialog{display:flex;flex-direction:column;width:min(1370px,100%);max-height:min(940px,calc(100dvh - 36px));background:#fbfcfa;border:1px solid #e0e8e1;border-radius:20px;box-shadow:0 26px 88px rgba(15,36,23,.24);overflow:hidden;outline:none}
.recv-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 30px 20px;background:#fff;border-bottom:1px solid #e7ede7;flex-shrink:0}
.recv-eyebrow{display:block;color:#4d7c5d;font-size:10px;font-weight:800;letter-spacing:.13em;line-height:1.5}
.recv-header h2{margin:5px 0 5px;color:#1b2a21;font-size:clamp(20px,2.1vw,27px);font-weight:750;letter-spacing:-.035em;line-height:1.2}
.recv-header h2 span{color:#42604c;font-weight:650}
.recv-header p{font-size:12.5px;color:#64746b;margin:0;line-height:1.55}
.recv-close{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border:1px solid #e0e8e2;background:#fff;color:#4a5c4f;border-radius:10px;cursor:pointer;font-size:23px;font-weight:350;line-height:1}
.recv-close:hover{background:#f0f5f0}
.recv-body{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.recv-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:22px;padding:23px 26px 25px;margin:0;min-width:0}
.recv-left,.recv-right{min-width:0;display:grid;gap:20px}
.recv-right{position:sticky;top:0}
.recv-panel,.recv-summary-panel{background:#fff;border:1px solid #e3ebe5;border-radius:15px;box-shadow:0 2px 8px rgba(22,58,36,.025)}
.recv-panel{padding:21px 22px}
.recv-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:19px;min-width:0}
.recv-section-heading>div{min-width:0}
.recv-section-heading h3{margin:0 0 3px;color:#26382e;font-size:16px;line-height:1.3;letter-spacing:-.018em;font-weight:760}
.recv-section-heading p{margin:0;color:#75847a;font-size:11.5px;line-height:1.5}
.recv-step{flex:0 0 auto;display:grid;place-items:center;width:33px;height:33px;background:#eaf4ec;border:1px solid #d6e8db;border-radius:10px;color:#2e7048;font-weight:800;font-size:12px}
.recv-count{margin-left:auto;flex:0 0 auto;padding:5px 9px;border:1px solid #dce9df;background:#eef6f0;color:#396e4c;border-radius:99px;font-size:11px;font-weight:750}
.recv-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
.recv-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600;color:#415749}
.recv-field>span{font-size:11.5px;font-weight:700;color:#425749;line-height:1.3}
.recv-field i{font-style:normal;color:#a93d34}
.recv-field em{font-size:10px;color:#8a968e;font-weight:500;font-style:normal}
.recv-field input,.recv-field select,.recv-field textarea,.recv-generated{display:block;width:100%;min-width:0;min-height:41px;border:1px solid #dce6df;background:#fff;border-radius:9px;padding:10px 11px;font:inherit;font-size:12px;color:#24362b;line-height:1.5;outline:none;box-shadow:none}
.recv-field input:focus,.recv-field select:focus,.recv-field textarea:focus{border-color:#3c9364;box-shadow:0 0 0 3px rgba(48,141,88,.12)}
.recv-field input::placeholder,.recv-field textarea::placeholder{color:#a3aea6}
.recv-field textarea{resize:vertical;min-height:82px}
.recv-generated{background:#f6f9f6;color:#667e6c;font-weight:500;border-style:dashed}
.recv-field input[type=number]{font-variant-numeric:tabular-nums}
.recv-input-prefix,.recv-input-suffix{display:flex;align-items:center;position:relative;width:100%;min-width:0}
.recv-input-prefix em,.recv-input-suffix em{position:absolute;font-size:11px;color:#758779;font-style:normal;pointer-events:none}
.recv-input-prefix em{left:12px}.recv-input-suffix em{right:12px;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recv-field .recv-input-prefix input{padding-left:27px}.recv-field .recv-input-suffix input{padding-right:52px}
.recv-products{min-width:0}
.recv-products>.recv-section-heading{margin:0 2px 15px}
.recv-items{display:grid;gap:14px}
.recv-item{border:1px solid #e0e9e1;background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 2px 9px rgba(25,54,34,.025);transition:opacity .12s ease}
.recv-item.is-off{opacity:.55}
.recv-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 19px 13px}
.recv-select-item{display:flex;align-items:flex-start;gap:11px;cursor:pointer;min-width:0}
.recv-select-item input{margin:3px 0 0;width:16px;height:16px;flex:0 0 auto;accent-color:#167143}
.recv-item-title{display:flex;flex-direction:column;gap:5px;min-width:0}
.recv-item-title>strong{color:#1e3326;font-size:14px;font-weight:760;line-height:1.3;overflow-wrap:anywhere}
.recv-item-title>small{font-size:11px;color:#708178;font-weight:500;line-height:1.4}
.recv-item-title b{color:#355e44;font-weight:750}
.recv-remaining{flex:0 0 auto;padding:6px 9px;background:#eff7f1;border:1px solid #dceddf;color:#396f4e;border-radius:8px;font-weight:750;font-size:10px;white-space:nowrap}
.recv-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 19px 16px;background:#f7faf8;border:1px solid #e5ede7;border-radius:10px;overflow:hidden}
.recv-progress>div{display:grid;gap:3px;padding:9px 12px}
.recv-progress>div+div{border-left:1px solid #e5ede7}
.recv-progress span{color:#7b8980;font-size:10px;line-height:1.4}
.recv-progress b{font-size:12px;color:#34493a;font-variant-numeric:tabular-nums}
.recv-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 19px 17px}
.recv-readonly-field strong{display:flex;align-items:center;min-height:41px;padding:8px 10px;border:1px solid #e2eae4;border-radius:9px;background:#f8faf8;font-size:12px;color:#365742;font-variant-numeric:tabular-nums}
.recv-pack-area{border-top:1px solid #e8eee9;padding:17px 19px 18px;background:#fcfdfc}
.recv-pack-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.recv-pack-head strong{display:block;font-size:12px;color:#2e4937;margin-bottom:4px}
.recv-pack-head p{margin:0;font-size:10.5px;line-height:1.55;color:#819087;max-width:460px}
.recv-pack-select{display:grid;gap:4px;flex:0 0 175px;color:#577161;font-size:10px;font-weight:700}
.recv-pack-select input,.recv-pack-select select{min-height:37px;padding:7px 9px;border:1px solid #dce7de;background:#fff;border-radius:8px;color:#2f4838;font-size:11px;font-weight:650}
.recv-one-pack{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:13px;align-items:end}
.recv-auto-lot{min-height:68px;border:1px dashed #bad5c2;border-radius:9px;padding:9px 12px;background:#f5fbf6;display:grid;gap:3px}
.recv-auto-lot span{font-size:10px;color:#617b6a;font-weight:700}.recv-auto-lot strong{font-size:11px;color:#276c42}.recv-auto-lot small{font-size:9px;color:#718575}
.recv-many-packs{display:grid;gap:11px}
.recv-pack-controls{display:flex;align-items:end;gap:17px}.recv-pack-controls .recv-field{width:162px;flex:0 0 162px}.recv-pack-controls p{font-size:10.5px;line-height:1.5;margin:0 0 3px;color:#748579}
.recv-pack-list{display:grid;gap:8px}
.recv-pack-row{display:grid;grid-template-columns:80px minmax(85px,.75fr) minmax(125px,1fr) minmax(125px,1fr) minmax(115px,.9fr);gap:12px;align-items:center;border:1px solid #e3ece5;border-radius:10px;background:#fff;padding:11px}
.recv-pack-index{display:grid;gap:4px}.recv-pack-index strong{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#edf6ee;color:#306843;font-size:12px}.recv-pack-index small{font-size:9px;color:#78887e;line-height:1.35}
.recv-pack-tally{font-size:11px;color:#28744b;font-weight:700;padding:5px 0}
.recv-pack-tally.bad{color:#a4443b}
.recv-item-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 19px;border-top:1px solid #e9f0ea;background:#f6faf7;font-size:11px;color:#6b7e71}
.recv-item-foot b{font-weight:800;color:#31694a}.recv-item-foot>span:last-child{font-size:12px;font-weight:800;color:#244d33}
.recv-summary-panel{padding:0;overflow:hidden}
.recv-summary-heading{padding:20px 19px 15px;border-bottom:1px solid #e9eee9}
.recv-summary-heading h3{margin:4px 0 5px;font-size:17px;font-weight:800;letter-spacing:-.028em;color:#203528}
.recv-summary-heading p{font-size:11px;color:#7b8980;line-height:1.5;margin:0}
.recv-summary-rows{display:grid;gap:14px;padding:19px 20px}
.recv-summary-rows>div{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11.5px;color:#6b7b70}
.recv-summary-rows strong{color:#293f31;font-weight:760;font-size:12px;font-variant-numeric:tabular-nums}
.recv-shipping{margin:0 19px;padding:15px 0;border-top:1px solid #e8eee9}
.recv-shipping>small{font-size:10px;color:#788980;line-height:1.65;font-weight:450}
.recv-grand{margin:0 16px 17px;padding:17px 16px;background:#eaf5ed;border:1px solid #d7e9dc;border-radius:11px;display:grid;gap:5px}
.recv-grand>span{font-size:11px;color:#3a6448;font-weight:750}.recv-grand strong{color:#154d2e;font-size:clamp(20px,2.3vw,27px);letter-spacing:-.045em;font-variant-numeric:tabular-nums}.recv-grand small{font-size:9.5px;color:#718977;line-height:1.4}
.recv-line-valuations{padding:0 19px 17px}.recv-line-valuations>strong{display:block;font-size:11px;color:#405e49;margin-bottom:9px}
.recv-line-valuations>div{display:grid;gap:8px}.recv-line-valuations>div>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.recv-line-valuations>div>div span{min-width:0;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#75847a}.recv-line-valuations b{color:#2b5639;font-size:11px;white-space:nowrap}.recv-line-valuations b small{font-size:9px;color:#819186;font-weight:450}
.recv-none{font-size:11px;color:#8b9a90}
.recv-label-switch{display:flex;align-items:flex-start;gap:11px;padding:16px 19px;border-top:1px solid #e8eee9;border-bottom:1px solid #e8eee9;cursor:pointer;background:#fbfdfb}
.recv-label-switch input{margin:3px 0 0;accent-color:#137447;flex:0 0 auto;width:17px;height:17px}.recv-label-switch span{display:grid;gap:5px}.recv-label-switch b{font-size:11.5px;color:#2c5338}.recv-label-switch small{font-size:10.5px;color:#7b8981;line-height:1.5}
.recv-security-note{padding:14px 19px 18px;color:#8b968d;font-size:10.5px;line-height:1.65}
.recv-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 25px;border-top:1px solid #e2ebe4;background:#fff;flex:0 0 auto;box-shadow:0 -5px 15px rgba(22,54,30,.025)}
.recv-footer-info{display:flex;align-items:center;gap:8px;color:#799084;font-size:11px;line-height:1.4}.recv-footer-dot{width:7px;height:7px;border-radius:50%;background:#b9c9be;flex:0 0 auto}
.recv-footer-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.recv-btn{appearance:none;min-height:41px;border-radius:9px;font-size:12px;font-weight:750;padding:10px 17px;cursor:pointer;border:1px solid transparent;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-family:inherit}
.recv-btn-primary{color:#fff;background:#176b42;border-color:#176b42}.recv-btn-primary:hover:not(:disabled){background:#115735}.recv-btn-secondary{color:#2e4635;background:#fff;border-color:#d8e4dc}.recv-btn-secondary:hover{background:#f4f8f5}.recv-btn:disabled{cursor:wait;opacity:.62}
.recv-spinner{width:13px;height:13px;border:2px solid #ffffff73;border-top-color:#fff;border-radius:50%;animation:recv-spin .7s linear infinite}@keyframes recv-spin{to{transform:rotate(360deg)}}
.recv-error{font-size:10.5px;font-weight:550;color:#b14135;line-height:1.4}.recv-error[hidden]{display:none!important}
.recv-global-error{margin:12px 24px 0;padding:12px 14px;border:1px solid #efc8c2;background:#fff4f3;border-radius:10px;color:#a83d33;font-size:12px;line-height:1.5;font-weight:650}
.recv-success{max-width:740px;margin:45px auto 55px;padding:30px 25px;text-align:center;background:#fff;border:1px solid #dfeae2;border-radius:17px}
.recv-success-mark{margin:0 auto 14px;background:#e8f6ee;color:#167347;border:1px solid #d1ebdb;border-radius:50%;height:53px;width:53px;display:grid;place-items:center;font-size:24px;font-weight:800}
.recv-success h3{font-size:23px;margin:4px 0 8px;color:#1c5031}.recv-success>p{color:#74887a;font-size:12px;line-height:1.6;margin:0 auto 17px;max-width:460px}
.recv-success-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 auto 19px;max-width:500px}.recv-success-stats>div{display:grid;gap:7px;background:#f5faf6;padding:13px;border-radius:10px}.recv-success-stats span{font-size:10.5px;color:#728476}.recv-success-stats b{font-size:17px;color:#27563a}
.recv-success-lots{display:grid;text-align:left;gap:0;max-width:520px;margin:auto}.recv-success-lots>div{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e7eee8;padding:11px 3px;font-size:11.5px;color:#354c3b}.recv-success-lots>div small{display:block;color:#7f8e82;margin-top:4px}.recv-success-lots b{font:750 14px ui-monospace,Menlo,Consolas,monospace;color:#176b42}
@media(max-width:1120px){.recv-layout{grid-template-columns:minmax(0,1fr) 305px;gap:14px;padding:18px}.recv-panel{padding:17px}.recv-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recv-one-pack{grid-template-columns:repeat(2,minmax(0,1fr))}.recv-auto-lot{grid-column:1/-1}.recv-pack-row{grid-template-columns:78px minmax(85px,1fr) minmax(120px,1fr)}.recv-pack-row .recv-field:nth-last-child(2){grid-column:2/-1}.recv-pack-row .recv-field:nth-last-child(2){grid-column:auto}.recv-pack-row .recv-field:last-child{grid-column:1/-1}}
@media(max-width:790px){.recv-overlay{padding:8px}.recv-dialog{max-height:calc(100dvh - 16px);border-radius:15px}.recv-header{padding:17px 18px}.recv-layout{grid-template-columns:minmax(0,1fr);gap:15px;padding:14px}.recv-right{position:static;grid-row:2}.recv-summary-panel{display:grid;grid-template-columns:1fr 1fr;align-items:start}.recv-summary-heading{grid-column:1/-1}.recv-summary-rows{padding:16px}.recv-shipping{margin:0 15px}.recv-grand{margin:0 14px 15px}.recv-line-valuations{padding:6px 14px 15px}.recv-label-switch{grid-column:1/-1}.recv-security-note{grid-column:1/-1}.recv-footer{padding:12px 17px}}
@media(max-width:540px){.recv-overlay{padding:0}.recv-dialog{height:100dvh;max-height:100dvh;border-radius:0;border:0}.recv-header{padding:14px 15px}.recv-header h2{font-size:21px}.recv-header p{font-size:11px}.recv-layout{padding:12px;gap:13px}.recv-panel{padding:15px 13px}.recv-details-grid{grid-template-columns:1fr;gap:11px}.recv-section-heading{margin-bottom:14px}.recv-item-heading{padding:14px 12px;flex-direction:column}.recv-remaining{align-self:flex-start;margin-left:27px}.recv-progress{margin:0 12px 14px}.recv-progress>div{padding:8px 7px}.recv-progress span{font-size:9px}.recv-progress b{font-size:11px}.recv-edit-grid{padding:0 12px 13px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.recv-pack-area{padding:12px}.recv-pack-head{display:grid;gap:10px}.recv-pack-select{width:100%}.recv-one-pack{grid-template-columns:1fr}.recv-auto-lot{grid-column:auto}.recv-pack-controls{display:grid;gap:8px}.recv-pack-controls .recv-field{width:100%;max-width:200px}.recv-pack-row{grid-template-columns:1fr 1fr;gap:8px}.recv-pack-index{grid-column:1/-1;display:flex;align-items:center;gap:9px}.recv-pack-row .recv-field:last-child{grid-column:1/-1}.recv-item-foot{padding:10px 12px;flex-wrap:wrap}.recv-summary-panel{grid-template-columns:1fr}.recv-summary-heading{grid-column:auto}.recv-shipping{margin:0 15px 16px}.recv-grand{margin:0 15px 15px}.recv-line-valuations{padding:0 15px 15px}.recv-label-switch,.recv-security-note{grid-column:auto}.recv-footer{padding:10px 13px}.recv-footer-info{display:none}.recv-footer-buttons{width:100%}.recv-btn{flex:1;padding:10px 12px}.recv-success{margin:13px 9px;padding:23px 14px}.recv-success-stats{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.recv-spinner{animation:none}}

/* v254 actual physical package entry and supplier delivery context */
.recv-delivery-banner{margin:16px 22px 0;padding:11px 14px;background:#f2f8f2;border:1px solid #d0e5d4;border-radius:11px;display:flex;gap:14px;align-items:center;color:#28583b;font-size:12px;flex-wrap:wrap}.recv-delivery-banner span{font-size:11px;color:#627969}
.recv-pack-select i{color:#a74238;font-style:normal}.recv-pack-select input{background:#fff;width:100%;font-weight:720}
@media(max-width:760px){.recv-delivery-banner{margin:10px 12px 0;gap:5px}}
