/* HF05CU · PO receive unified workspace · mockup-locked */
.invoice-receipt-popup.hf05cu-receive-dialog{
  width:min(1460px,calc(100vw - 42px));
  max-width:min(1460px,calc(100vw - 42px));
  height:min(900px,calc(100vh - 34px));
  max-height:calc(100vh - 34px);
  padding:0;
  overflow:hidden;
  border:1px solid #d7e3df;
  border-radius:18px;
  box-shadow:0 26px 70px rgba(14,55,46,.24);
  background:#f8fbfa;
}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading{
  min-height:70px;margin:0;padding:14px 20px;border:0;border-bottom:1px solid #dbe8e3;
  background:linear-gradient(90deg,#f0faf6 0%,#fbfdfc 62%,#f3faf7 100%);
}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading h2{font-size:22px;color:#0f513f;margin:0;font-weight:800}
.invoice-receipt-popup.hf05cu-receive-dialog>#ap-invoice-content{height:calc(100% - 70px);padding:0;overflow:hidden}
.hf05cu-receive-form{height:100%;display:flex;flex-direction:column;gap:12px;padding:14px 16px 12px;background:#f8fbfa;box-sizing:border-box}
.hf05cu-receive-top{display:grid;grid-template-columns:minmax(320px,1.15fr) minmax(460px,1.35fr) minmax(210px,.52fr);gap:12px;align-items:stretch}
.hf05cu-supplier-card,.hf05cu-document-card,.hf05cu-vat-card{border:1px solid #d9e6e1;border-radius:12px;background:#fff;min-height:82px;box-sizing:border-box}
.hf05cu-supplier-card{padding:13px 16px;display:flex;flex-direction:column;justify-content:center;gap:3px}
.hf05cu-supplier-card>span{font-size:12px;color:#6b7c78;font-weight:700}.hf05cu-supplier-card>strong{font-size:16px;color:#173c32;line-height:1.35}.hf05cu-supplier-card>small{font-size:12px;color:#667b75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hf05cu-document-card{padding:10px 12px}.hf05cu-document-fields{display:grid;grid-template-columns:1.35fr .8fr;gap:12px}.hf05cu-document-fields label{margin:0}.hf05cu-document-fields label>span{display:block;font-size:12px;font-weight:800;color:#214d41;margin-bottom:5px}.hf05cu-document-fields input{height:40px;border:1px solid #cadbd5;border-radius:7px;background:#fff;font-weight:700;color:#173c32;padding:0 11px;box-sizing:border-box;width:100%}
.hf05cu-vat-card{padding:12px 15px;background:#eef9f3;display:flex;align-items:center;gap:10px;color:#176343}.hf05cu-vat-check{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#16854f;color:#fff;font-weight:900;font-size:18px}.hf05cu-vat-card strong{display:block;font-size:15px}.hf05cu-vat-card small{display:block;font-size:11px;color:#4f7568;margin-top:2px}
.hf05cu-receive-notice{border:1px solid #bad8f1;border-radius:9px;background:#eef7ff;color:#225b8a;padding:10px 14px;display:flex;gap:12px;align-items:center;min-height:44px;box-sizing:border-box}.hf05cu-receive-notice strong{font-size:13px;white-space:nowrap}.hf05cu-receive-notice span{font-size:12px;line-height:1.45;color:#3d6c91}
.hf05cu-receive-workspace{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(390px,.82fr);gap:12px}
.hf05cu-receive-left,.hf05cu-receive-right{min-height:0;border:1px solid #d8e6e1;border-radius:12px;background:#fff;overflow:hidden}
.hf05cu-receive-left{display:flex;flex-direction:column}.hf05cu-panel-head,.hf05cu-scan-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #d7e7e1;background:linear-gradient(90deg,#effaf5,#f7fcfa);box-sizing:border-box}.hf05cu-panel-head>div,.hf05cu-scan-head>div{display:flex;align-items:center;gap:8px;color:#195e49}.hf05cu-panel-head strong,.hf05cu-scan-head strong{font-size:15px}.hf05cu-panel-head small{font-size:11px;color:#688078}.hf05cu-panel-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;color:#0d8152;background:#def3e8;font-weight:900}
.hf05cu-receive-table-wrap{min-height:0;flex:1;overflow:auto}.hf05cu-receive-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.hf05cu-receive-table thead th{position:sticky;top:0;z-index:2;background:#edf8f3;color:#244d42;font-size:11px;font-weight:800;padding:10px 8px;border-bottom:1px solid #d8e6e1;text-align:left;white-space:nowrap}.hf05cu-receive-table thead th small{font-size:9px;font-weight:600;color:#6f837d}.hf05cu-receive-table tbody tr{cursor:pointer;background:#fff;transition:background .12s,box-shadow .12s}.hf05cu-receive-table tbody tr:nth-child(even){background:#fbfdfc}.hf05cu-receive-table tbody tr:hover{background:#f2faf6}.hf05cu-receive-table tbody tr.is-selected{background:#eaf8f1;box-shadow:inset 4px 0 #14915a}.hf05cu-receive-table td{padding:9px 8px;border-bottom:1px solid #e5eeeb;vertical-align:middle;color:#243c36}.hf05cu-receive-table td:nth-child(2){min-width:220px}.hf05cu-receive-table td:nth-child(2)>strong{display:block;color:#174b3d;font-size:11px;margin-bottom:2px}.hf05cu-receive-table td:nth-child(2)>span{display:block;font-size:12px;line-height:1.35}.hf05cu-receive-table td.num{text-align:center;font-weight:800}.hf05cu-receive-table td input{width:86px;max-width:100%;height:34px;border:1px solid #cbdcd6;border-radius:6px;background:#fff;text-align:right;padding:0 8px;box-sizing:border-box;font-weight:700;color:#203f36}.hf05cu-receive-table td:nth-child(5) input{width:100px}.hf05cu-sn-status{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:26px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.hf05cu-sn-status.is-waiting{background:#fff3d6;color:#a46b00}.hf05cu-sn-status.is-complete{background:#ddf6e8;color:#087544}.hf05cu-sn-status.is-idle{background:#eef1f0;color:#66736f}
.hf05cu-receive-totals{border-top:1px solid #dce8e4;background:#fbfdfc;padding:8px 12px}.hf05cu-receive-totals .ap-invoice-totals{margin:0 0 0 auto;width:min(540px,100%);display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px}.hf05cu-receive-totals .ap-invoice-totals>div{border:1px solid #dce7e3;border-radius:8px;padding:8px 10px;background:#fff}.hf05cu-receive-totals .ap-invoice-totals dt{font-size:10px;color:#647973}.hf05cu-receive-totals .ap-invoice-totals dd{margin:2px 0 0;font-size:17px;font-weight:800;color:#193b32}.hf05cu-receive-totals .ap-invoice-totals .ap-invoice-grand-total{background:#eef9f3;border-color:#8dceb0}.hf05cu-receive-totals .ap-invoice-totals .ap-invoice-grand-total dd{font-size:22px;color:#087646}
.hf05cu-receive-right{display:flex;flex-direction:column}.hf05cu-scan-panel{height:100%;display:flex;flex-direction:column;min-height:0}.hf05cu-scan-head{flex:0 0 48px}.hf05cu-scan-head button{font-size:10px;padding:6px 9px}.hf05cu-scan-current{margin:10px 12px 8px;border:1px solid #d9e8e2;border-radius:9px;background:#f8fcfa;padding:9px 11px;display:flex;justify-content:space-between;gap:10px;min-height:62px;box-sizing:border-box}.hf05cu-scan-current>div:first-child{min-width:0}.hf05cu-scan-current span{font-size:10px;color:#6a7e78}.hf05cu-scan-current strong{display:block;color:#155b46;font-size:13px;margin:1px 0}.hf05cu-scan-current p{margin:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}.hf05cu-scan-current>div:last-child{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;white-space:nowrap}.hf05cu-scan-current .is-complete{color:#07804a;font-weight:800}
.hf05cu-scan-input{margin:0 12px 8px}.hf05cu-scan-input>span{display:block;font-size:11px;font-weight:800;color:#284f44;margin-bottom:4px}.hf05cu-scan-input>div{display:grid;grid-template-columns:1fr 108px;gap:7px}.hf05cu-scan-input input{height:40px;border:2px solid #15905a;border-radius:7px;padding:0 10px;font-size:13px;box-sizing:border-box;width:100%;outline:none}.hf05cu-scan-input input:focus{box-shadow:0 0 0 3px rgba(21,144,90,.13)}.hf05cu-scan-input button{border-radius:7px}
.hf05cu-scan-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 12px 9px}.hf05cu-scan-actions button{height:36px;font-size:11px}
.hf05cu-scan-modes{border:0;margin:0;padding:0 12px 10px}.hf05cu-scan-modes legend{font-size:11px;font-weight:800;color:#425d55;padding:0 0 6px}.hf05cu-scan-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.hf05cu-scan-modes legend{grid-column:1/-1}.hf05cu-scan-modes label{min-width:0;border:1px solid #d4e2dd;border-radius:8px;padding:7px;display:flex;gap:6px;align-items:flex-start;background:#fff;cursor:pointer}.hf05cu-scan-modes label:has(input:checked){border-color:#64b78e;background:#eef9f3;box-shadow:inset 0 0 0 1px #8bcaaa}.hf05cu-scan-modes input{margin-top:2px}.hf05cu-scan-modes b{display:block;font-size:10px;color:#1b4d3d}.hf05cu-scan-modes small{display:block;font-size:9px;color:#72837e;line-height:1.2;margin-top:2px}
.hf05cu-scan-list-head{padding:0 12px 6px;display:flex;justify-content:space-between;font-size:10px;color:#536c64}.hf05cu-scan-list-head>span{font-weight:800}.hf05cu-scan-list-head small{font-weight:500}.hf05cu-scan-list{margin:0 12px;min-height:70px;max-height:170px;overflow:auto;border:1px solid #dae7e2;border-radius:8px;background:#fff}.hf05cu-scan-row{display:grid;grid-template-columns:1fr auto 28px;align-items:center;gap:7px;padding:7px 8px;border-bottom:1px solid #edf2f0}.hf05cu-scan-row:last-child{border-bottom:0}.hf05cu-scan-row span{min-width:0}.hf05cu-scan-row b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hf05cu-scan-row small{display:block;font-size:10px;color:#435e56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hf05cu-scan-row em{font-size:9px;font-style:normal;background:#e3f6eb;color:#087848;padding:3px 6px;border-radius:999px;white-space:nowrap}.hf05cu-scan-row button{width:25px;height:25px;border:1px solid #efc9c5;background:#fff6f5;color:#c74336;border-radius:6px}.hf05cu-scan-empty{display:grid;place-items:center;height:70px;color:#87958f;font-size:10px}
.hf05cu-scan-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px 12px 0;margin-top:auto}.hf05cu-scan-kpis>div{border:1px solid #dde8e4;border-radius:8px;background:#f9fcfb;padding:7px 9px}.hf05cu-scan-kpis span{display:block;font-size:9px;color:#74867f}.hf05cu-scan-kpis strong{display:block;font-size:18px;color:#153e33;margin-top:1px}.hf05cu-scan-kpis>div:nth-child(2){background:#eff9f4}.hf05cu-scan-kpis>div:nth-child(2) strong{color:#09804b}.hf05cu-scan-kpis>div:nth-child(3){background:#fff8eb}.hf05cu-scan-kpis>div:nth-child(3) strong{color:#b46d00}.hf05cu-scan-feedback{min-height:28px;margin:6px 12px 8px;padding:6px 8px;border-radius:7px;background:#f7fbf9;color:#177348;font-size:10px;line-height:1.35}.hf05cu-scan-feedback.is-error{background:#fff1ef;color:#b3382e}
.hf05cu-fifo-panel{border:1px solid #d8e6e1;border-radius:10px;background:#fff;max-height:220px;overflow:auto}.hf05cu-fifo-panel>header{display:flex;justify-content:space-between;padding:8px 12px;background:#f2f8f6;border-bottom:1px solid #dce8e4}.hf05cu-fifo-panel>header strong{font-size:12px;color:#214f42}.hf05cu-fifo-panel>header span{font-size:10px;color:#6d817a}.hf05cu-fifo-panel .ap-table-scroll{margin:0}.hf05cu-fifo-panel input{width:110px}
.hf05cu-receive-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto;padding-top:1px}.hf05cu-footer-left,.hf05cu-footer-right{display:flex;gap:8px}.hf05cu-receive-footer button{min-height:38px}.hf05cu-footer-right .primary-btn{min-width:220px;font-weight:800}.hf05cu-receive-footer [data-toggle-fifo].is-active{border-color:#188b58;color:#0c7044;background:#ecf8f2}
@media(max-width:1080px){.invoice-receipt-popup.hf05cu-receive-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:calc(100vh - 16px)}.hf05cu-receive-top{grid-template-columns:1fr 1fr}.hf05cu-vat-card{grid-column:1/-1;min-height:54px}.hf05cu-receive-workspace{grid-template-columns:1fr;overflow:auto}.hf05cu-receive-left,.hf05cu-receive-right{min-height:420px}.hf05cu-receive-form{overflow:auto}.hf05cu-receive-footer{position:sticky;bottom:0;background:#f8fbfa;padding:8px 0}.hf05cu-receive-notice{align-items:flex-start;flex-direction:column;gap:2px}.hf05cu-receive-notice strong{white-space:normal}}
@media(max-width:720px){.hf05cu-receive-top{grid-template-columns:1fr}.hf05cu-document-fields{grid-template-columns:1fr}.hf05cu-vat-card{grid-column:auto}.hf05cu-receive-table{min-width:820px}.hf05cu-scan-modes{grid-template-columns:1fr}.hf05cu-scan-modes legend{grid-column:auto}.hf05cu-receive-footer{align-items:stretch;flex-direction:column}.hf05cu-footer-left,.hf05cu-footer-right{display:grid;grid-template-columns:1fr 1fr}.hf05cu-footer-right .primary-btn{min-width:0}.hf05cu-receive-totals .ap-invoice-totals{grid-template-columns:1fr}}


/* HF05CV · compact PO + receive layout based on user review */
.invoice-receipt-popup.hf05cu-receive-dialog{height:auto;max-height:calc(100vh - 24px);}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading{min-height:58px;padding:10px 16px;display:flex;align-items:center;}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading h2{display:flex;align-items:center;gap:10px;font-size:19px;line-height:1.15;}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading h2::before{content:'▣';width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#e3f5ec;color:#0d7c50;font-size:16px;}
.hf05cv-receive-po{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:#eef5f2;color:#4f6d63;font-size:11px;font-weight:800;letter-spacing:.15px;}
.invoice-receipt-popup.hf05cu-receive-dialog>#ap-invoice-content{height:auto;max-height:calc(100vh - 82px);overflow:auto;}
.hf05cu-receive-form{height:auto;min-height:0;gap:10px;padding:12px 14px 0;overflow:visible;}
.hf05cu-receive-top{gap:10px;}
.hf05cu-supplier-card,.hf05cu-document-card,.hf05cu-vat-card{min-height:72px;}
.hf05cu-supplier-card{padding:10px 14px;}
.hf05cu-document-card{padding:8px 10px;}
.hf05cu-vat-card{padding:9px 12px;}
.hf05cu-receive-notice{display:none!important;}
.hf05cu-receive-workspace{flex:none;align-items:start;gap:10px;}
.hf05cu-receive-left{display:flex;height:auto;align-self:start;}
.hf05cu-receive-right{align-self:start;min-height:430px;}
.hf05cu-receive-table-wrap{flex:0 1 auto;max-height:390px;overflow:auto;}
.hf05cu-receive-totals{margin-top:0;border-top:1px solid #dce8e4;padding:9px 10px;background:#fbfdfc;}
.hf05cu-receive-totals .ap-invoice-totals{width:min(560px,100%);}
.hf05cu-receive-footer{position:sticky;bottom:0;z-index:12;margin:0 -14px;padding:9px 14px;background:rgba(248,251,250,.98);border-top:1px solid #d8e6e1;box-shadow:0 -8px 20px rgba(14,47,54,.07);}
.hf05cu-footer-right{margin-left:auto;}
.hf05cu-receive-footer button{min-height:36px;height:36px;}
.hf05cu-footer-right .primary-btn{min-width:210px;}

/* Manual PO: totals follow product lines, footer is actions only */
dialog.purchase-workflow-manual{width:min(1220px,calc(100vw - 34px));}
dialog.purchase-workflow-manual .purchase-workflow-head{min-height:60px;padding:10px 16px;}
dialog.purchase-workflow-manual .purchase-workflow-icon{width:36px;height:36px;flex-basis:36px;border-radius:9px;font-size:20px;}
dialog.purchase-workflow-manual .purchase-workflow-title h2{font-size:18px;}
dialog.purchase-workflow-manual .purchase-workflow-title p{display:none;}
dialog.purchase-workflow-manual .purchase-workflow-body{max-height:calc(min(92vh,920px) - 60px);padding-top:12px;}
dialog.purchase-workflow-manual .purchase-po-form{gap:10px;}
dialog.purchase-workflow-manual .purchase-form-card{padding:12px;}
dialog.purchase-workflow-manual .purchase-section-head{margin-bottom:8px;}
.purchase-inline-summary{display:flex;justify-content:flex-end;padding:10px 0 0;}
.purchase-inline-summary .purchase-total-breakdown{width:min(590px,100%);display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px;}
.purchase-inline-summary .purchase-total-breakdown>div{border:1px solid #dce7e3;border-radius:9px;background:#fff;padding:8px 11px;display:grid;gap:2px;}
.purchase-inline-summary .purchase-total-breakdown span{font-size:10px;color:#647973;}
.purchase-inline-summary .purchase-total-breakdown strong{font-size:18px;color:#193b32;}
.purchase-inline-summary .purchase-total-grand{background:#eef9f3!important;border-color:#8dceb0!important;}
.purchase-inline-summary .purchase-total-grand strong{font-size:22px!important;color:#087646!important;}
.purchase-po-actions-footer{min-height:54px;justify-content:flex-end;padding-top:8px;padding-bottom:8px;}
.purchase-po-actions-footer .purchase-modal-actions{margin-left:auto;}
.purchase-po-actions-footer .purchase-modal-actions button{min-width:100px;}
.purchase-po-actions-footer .purchase-modal-actions .primary-btn{min-width:160px;font-weight:800;}

@media(max-width:1080px){
  .invoice-receipt-popup.hf05cu-receive-dialog{height:calc(100vh - 16px);}
  .invoice-receipt-popup.hf05cu-receive-dialog>#ap-invoice-content{height:calc(100% - 58px);max-height:none;}
  .hf05cu-receive-form{height:100%;overflow:auto;padding-bottom:0;}
  .hf05cu-receive-workspace{grid-template-columns:1fr;}
  .hf05cu-receive-left,.hf05cu-receive-right{min-height:0;}
  .hf05cu-receive-right{min-height:430px;}
  .purchase-inline-summary .purchase-total-breakdown{grid-template-columns:1fr 1fr 1.25fr;}
}
@media(max-width:720px){
  .hf05cv-receive-po{display:none;}
  .purchase-inline-summary .purchase-total-breakdown{grid-template-columns:1fr;}
  .purchase-po-actions-footer .purchase-modal-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;}
}


/* HF05CW · receive mockup proportions + sequential scan */
.invoice-receipt-popup.hf05cu-receive-dialog{
  width:min(1520px,calc(100vw - 24px));max-width:min(1520px,calc(100vw - 24px));
  height:min(940px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);
  border-radius:18px;background:#f8fbfa;
}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading{height:64px;min-height:64px;padding:11px 18px;background:#fbfdfc;}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading h2{font-size:21px;gap:10px;flex-wrap:wrap;}
.invoice-receipt-popup.hf05cu-receive-dialog>.ap-heading h2::before{display:none;}
.hf05cw-heading-title{font-size:22px;color:#103f34;font-weight:900;letter-spacing:-.2px;}
.hf05cv-receive-po{height:31px;padding:0 13px;background:#e6f2f1;color:#133b4a;font-size:16px;border-radius:16px;}
.hf05cw-receive-state{height:29px;display:inline-flex;align-items:center;padding:0 12px;border-radius:16px;background:#fff2d8;color:#a76700;font-size:12px;font-weight:800;}
.hf05cw-home-button{min-width:132px;height:38px!important;border:1px solid #ccdcd7!important;border-radius:9px!important;background:#fff!important;color:#28564a!important;font-weight:800!important;}
.invoice-receipt-popup.hf05cu-receive-dialog>#ap-invoice-content{height:calc(100% - 64px);max-height:none;overflow:hidden;}
.hf05cu-receive-form.hf05cw-receive-form{height:100%;padding:14px 18px 0;gap:12px;overflow:hidden;}
.hf05cw-receive-top{grid-template-columns:minmax(430px,1.45fr) minmax(480px,1.35fr) minmax(245px,.72fr);gap:12px;flex:0 0 auto;}
.hf05cw-receive-top .hf05cu-supplier-card,.hf05cw-receive-top .hf05cu-document-card,.hf05cw-receive-top .hf05cu-vat-card{height:98px;min-height:98px;border-radius:11px;box-shadow:0 2px 9px rgba(25,70,58,.025);}
.hf05cw-receive-top .hf05cu-supplier-card{padding:13px 16px;}
.hf05cw-receive-top .hf05cu-supplier-card>strong{font-size:15px;}
.hf05cw-receive-top .hf05cu-supplier-card>small{font-size:11px;}
.hf05cw-receive-top .hf05cu-document-card{padding:11px 12px;}
.hf05cw-receive-top .hf05cu-document-fields{grid-template-columns:1.45fr .85fr;gap:12px;height:100%;align-items:center;}
.hf05cw-receive-top .hf05cu-document-fields input{height:42px;font-size:13px;}
.hf05cw-receive-top .hf05cu-vat-card{padding:13px 16px;}
.hf05cw-receive-top .hf05cu-vat-check{width:38px;height:38px;font-size:21px;}
.hf05cw-receive-top .hf05cu-vat-card strong{font-size:16px;}.hf05cw-receive-top .hf05cu-vat-card small{font-size:10px;}
.hf05cw-receive-workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1.62fr) minmax(430px,.98fr);gap:14px;align-items:stretch;}
.hf05cw-receive-left,.hf05cw-receive-right{height:100%;min-height:0;border-radius:13px;box-shadow:0 2px 10px rgba(26,68,57,.025);}
.hf05cw-receive-left{display:grid;grid-template-rows:58px minmax(0,1fr) 100px;}
.hf05cw-panel-head{height:58px;padding:0 16px;}
.hf05cw-panel-head>div:first-child strong{font-size:16px;}
.hf05cw-list-meta{display:flex!important;align-items:center!important;gap:10px!important;color:#4e6b62!important;font-size:11px!important;font-weight:700;white-space:nowrap;}
.hf05cw-list-meta i{display:block;width:150px;height:8px;border-radius:5px;background:#e2e9e7;overflow:hidden;}
.hf05cw-list-meta i b{display:block;height:100%;width:0;background:#159057;border-radius:inherit;transition:width .2s ease;}
.hf05cw-receive-table-wrap{max-height:none!important;height:auto;overflow:auto;}
.hf05cw-receive-table{font-size:12px;table-layout:fixed;}
.hf05cw-receive-table thead th{height:52px;padding:9px 10px;background:#f7faf9;color:#526b64;font-size:10px;}
.hf05cw-receive-table thead th:nth-child(1){width:42px}.hf05cw-receive-table thead th:nth-child(2){width:34%}.hf05cw-receive-table thead th:nth-child(3){width:10%}.hf05cw-receive-table thead th:nth-child(4){width:12%}.hf05cw-receive-table thead th:nth-child(5){width:12%}.hf05cw-receive-table thead th:nth-child(6){width:14%}.hf05cw-receive-table thead th:nth-child(7){width:14%}
.hf05cw-receive-table tbody tr{cursor:default;height:76px;}
.hf05cw-receive-table tbody tr:hover{background:inherit;}
.hf05cw-receive-table tbody tr.is-selected{background:linear-gradient(90deg,#eefaf5,#f7fcfa);box-shadow:inset 4px 0 #14915a;}
.hf05cw-receive-table tbody tr.is-partial{background:#fffaf0;}
.hf05cw-receive-table td{padding:10px 10px;font-size:12px;}
.hf05cw-receive-table td:nth-child(2){min-width:0;}.hf05cw-receive-table td:nth-child(2)>strong{font-size:12px}.hf05cw-receive-table td:nth-child(2)>span{font-size:12px;line-height:1.4;}
.hf05cw-shot-count{display:inline-flex;align-items:center;justify-content:center;min-width:72px;height:34px;border-radius:9px;background:#eef2f1;color:#294c42;font-weight:800;font-size:13px;}
.hf05cw-receive-table tr.is-selected .hf05cw-shot-count{background:#168ff0;color:white;box-shadow:10px 0 0 #e4edf2;}
.hf05cw-receive-table tr.is-partial .hf05cw-shot-count{background:#fff0cd;color:#936000;box-shadow:none;}
.hf05cw-price{font-weight:700;color:#263f38;}
.hf05cu-sn-status.is-active{background:#e1f1ff;color:#0872c5;}.hf05cu-sn-status.is-partial{background:#fff0ce;color:#9a6500;min-width:92px;}
.hf05cw-receive-totals{height:100px;padding:13px 14px;background:#fbfdfc;display:flex;align-items:center;}
.hf05cw-receive-totals .ap-invoice-totals{width:100%;grid-template-columns:1fr 1fr 1.18fr;gap:10px;}
.hf05cw-receive-totals .ap-invoice-totals>div{height:72px;padding:10px 14px;display:flex;flex-direction:column;justify-content:center;border-radius:10px;}
.hf05cw-receive-totals .ap-invoice-totals dt{font-size:11px}.hf05cw-receive-totals .ap-invoice-totals dd{font-size:20px}.hf05cw-receive-totals .ap-invoice-totals .ap-invoice-grand-total dd{font-size:24px;}
.hf05cw-receive-right{display:block;overflow:hidden;}
.hf05cw-scan-panel{height:100%;display:grid;grid-template-rows:58px auto auto auto auto minmax(105px,1fr) 34px;min-height:0;}
.hf05cw-scan-head{height:58px;padding:0 15px;background:#fff;border-bottom:1px solid #e1ebe7;}
.hf05cw-scan-head>div{gap:10px}.hf05cw-scan-head strong{font-size:17px;color:#213f37;}.hf05cw-step{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#0f8752;color:#fff;font-size:15px;font-weight:900;}
.hf05cw-sequence{font-size:13px;font-weight:800;color:#314f47;}
.hf05cw-scan-current{margin:10px 12px 8px;padding:12px 13px;display:block;min-height:126px;background:#fbfdfc;border-radius:10px;}
.hf05cw-current-main{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;align-items:center;}
.hf05cw-current-copy strong{font-size:13px;color:#163c32}.hf05cw-current-copy p{margin:4px 0 0;font-size:12px;line-height:1.45;color:#254d42;white-space:normal;max-width:none;}
.hf05cw-current-stats{border-left:1px solid #e1ebe7;padding-left:12px;}.hf05cw-current-stats>span{display:block;text-align:right;font-size:10px;color:#6a8079}.hf05cw-current-stats>span b{font-size:11px;color:#455f58}.hf05cw-current-stats>div{display:flex;justify-content:flex-end;gap:22px;margin-top:5px}.hf05cw-current-stats>div span{font-size:9px;color:#71837e}.hf05cw-current-stats strong{display:block;font-size:23px;color:#163c32;line-height:1.1}.hf05cw-current-stats>div span:last-child strong{color:#b26700;}
.hf05cw-progress{height:11px;margin-top:13px;border-radius:7px;background:#e4e9e8;overflow:hidden}.hf05cw-progress i{display:block;height:100%;background:#1590e8;border-radius:inherit;transition:width .15s ease;}
.hf05cw-scan-input{margin:2px 12px 8px}.hf05cw-scan-input>span{font-size:12px}.hf05cw-scan-input>div{grid-template-columns:minmax(0,1fr) 45px;gap:8px}.hf05cw-scan-input input{height:46px;font-size:13px;border-color:#128652}.hf05cw-sound-toggle{height:46px;width:45px;border:0;border-radius:50%;font-size:19px;background:#eef3f2;cursor:pointer;}
.hf05cw-scan-modes{padding:0 12px 8px;gap:7px}.hf05cw-scan-modes legend{font-size:11px;padding-bottom:6px}.hf05cw-scan-modes label{height:55px;box-sizing:border-box;align-items:center;padding:8px 10px}.hf05cw-scan-modes b{font-size:11px}.hf05cw-scan-modes small{font-size:9px;}
.hf05cw-scan-actions{padding:0 12px 9px;}.hf05cw-scan-actions button{height:34px;}
.hf05cw-scan-list-head{height:35px;padding:0 12px;align-items:center}.hf05cw-scan-list-head>span{font-size:11px;color:#2f5047}.hf05cw-scan-list-head button{padding:4px 8px;font-size:9px;min-height:25px;}
.hf05cw-scan-list{margin:0 12px;min-height:105px;max-height:none;height:auto;overflow:auto;border-radius:8px;}
.hf05cw-scan-table-head,.hf05cw-scan-row{display:grid;grid-template-columns:28px minmax(120px,1fr) 70px 72px 26px;align-items:center;gap:5px;}
.hf05cw-scan-table-head{position:sticky;top:0;z-index:2;height:27px;padding:0 8px;background:#f0f5f3;color:#6a7d77;font-size:9px;font-weight:800;border-bottom:1px solid #dfe8e5;}
.hf05cw-scan-row{min-height:31px;padding:3px 8px;border-bottom:1px solid #edf2f0;font-size:9px;}.hf05cw-scan-row>span{color:#526861}.hf05cw-scan-row>b{font-size:10px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hf05cw-scan-row time{font-size:9px;color:#60746d}.hf05cw-scan-row em{font-size:9px;padding:3px 5px;background:transparent;color:#0c824c}.hf05cw-scan-row button{width:22px;height:22px;}
.hf05cw-scan-feedback{margin:3px 12px 6px;min-height:28px;padding:6px 9px;}
.hf05cw-receive-footer{height:68px;min-height:68px;margin:0 -18px;padding:10px 18px;position:relative;bottom:auto;background:#fff;border-top:1px solid #dce7e3;box-shadow:0 -5px 14px rgba(23,58,49,.035);}
.hf05cw-receive-footer .hf05cu-footer-right{gap:10px}.hf05cw-receive-footer button{height:43px;min-height:43px;border-radius:8px;}.hf05cw-receive-footer .primary-btn{min-width:235px;}.hf05cw-partial-button{min-width:185px;}
.hf05cu-fifo-panel{position:absolute;left:18px;right:18px;bottom:76px;z-index:20;max-height:260px;box-shadow:0 12px 36px rgba(18,54,45,.16);}
@media(max-width:1180px){
 .invoice-receipt-popup.hf05cu-receive-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
 .hf05cw-receive-top{grid-template-columns:1.2fr 1fr}.hf05cw-receive-top .hf05cu-vat-card{grid-column:1/-1;height:58px;min-height:58px}.hf05cw-receive-workspace{grid-template-columns:1fr}.hf05cu-receive-form.hf05cw-receive-form{overflow:auto}.hf05cw-receive-left,.hf05cw-receive-right{height:auto;min-height:520px}.hf05cw-scan-panel{min-height:520px}.hf05cw-receive-footer{position:sticky;bottom:0}.hf05cw-list-meta i{width:90px}
}
@media(max-width:760px){.hf05cw-heading-title{font-size:18px}.hf05cv-receive-po{font-size:12px;height:26px}.hf05cw-receive-state{display:none}.hf05cw-home-button{min-width:44px;font-size:0}.hf05cw-home-button::after{content:'⌂';font-size:18px}.hf05cw-receive-top{grid-template-columns:1fr}.hf05cw-receive-top .hf05cu-supplier-card,.hf05cw-receive-top .hf05cu-document-card{height:auto;min-height:80px}.hf05cw-receive-top .hf05cu-vat-card{grid-column:auto}.hf05cw-receive-table{min-width:760px}.hf05cw-current-main{grid-template-columns:1fr}.hf05cw-current-stats{border-left:0;border-top:1px solid #e1ebe7;padding:8px 0 0}.hf05cw-current-stats>span{text-align:left}.hf05cw-current-stats>div{justify-content:flex-start}.hf05cw-receive-footer{height:auto;flex-direction:column}.hf05cw-receive-footer .hf05cu-footer-right{width:100%;display:grid;grid-template-columns:1fr}.hf05cw-receive-footer .hf05cu-footer-left{width:100%}.hf05cw-receive-footer button,.hf05cw-receive-footer .primary-btn,.hf05cw-partial-button{width:100%;min-width:0}}
