.po-inventory-query{width:min(1120px,96vw);max-height:92vh;overflow:hidden;}
.po-inventory-query[open]{display:flex;flex-direction:column;}
.po-inventory-query>header,.po-inventory-basic,.po-inventory-query>footer{flex-shrink:0;}
.po-inventory-query>header{padding:12px 20px;}
.po-inventory-query>header input[type=search]{display:none;}
.po-inventory-query>header button{margin-left:auto;}
.po-inventory-basic{padding:10px 20px 20px;border-bottom:1px solid #eee;max-height:36vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}
.po-inventory-filter-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.po-inventory-filter-heading strong{background:#5585df;color:white;padding:4px 12px;font-weight:400;}
.po-inventory-filter-heading button{border:0;background:none;color:#5585df;font-size:12px;}
.po-inventory-filter-heading button:last-child{border:1px solid #aab3c0;border-radius:50%;width:18px;height:18px;padding:0;color:#7b8795;}
.po-inventory-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 60px;padding:0 20px;}
.po-inventory-filter-grid>label{display:flex;flex-direction:column;gap:3px;min-width:0;color:#777;}
.po-inventory-filter-input{display:flex;position:relative;height:28px;border:1px solid #d9dde4;background:white;}
.po-inventory-filter-input>input,.po-inventory-filter-input>select{flex:1;min-width:0;width:100%;border:0;background:transparent;padding:2px 7px;color:#333;font:inherit;outline:none;}
.po-inventory-filter-input>input[readonly]{background:#f5f5f5;color:#777;}
.po-inventory-filter-input:focus-within{border-color:#5585df;}
.po-inventory-filter-input>button{flex:0 0 30px;border:0;background:none;color:#78838e;padding:4px;}
.po-inventory-filter-input svg{width:16px;height:16px;}
.po-inventory-filter-suggestions{position:absolute;top:100%;left:0;right:0;z-index:12;max-height:220px;overflow:auto;background:white;border:1px solid #d9dde4;box-shadow:0 3px 8px #0002;}
.po-inventory-filter-suggestions button{display:block;border:0;background:white;color:#333;width:100%;padding:6px 8px;text-align:left;white-space:normal;font:inherit;}
.po-inventory-filter-suggestions button:hover,.po-inventory-filter-suggestions button:focus{background:#eef4ff;}
.po-inventory-filter-suggestions p{margin:8px;color:#888;}
.po-inventory-query .finance-date-calendar header{gap:0;padding:0 4px;}
.po-inventory-query .finance-date-calendar header button{font-size:12px;color:#333;white-space:nowrap;line-height:20px;}
.po-inventory-query .finance-date-calendar table{min-width:0;}
.po-inventory-query .finance-date-calendar th,.po-inventory-query .finance-date-calendar td{min-width:0;padding:0;height:32px;text-align:center;border:0;}
.po-inventory-query .finance-date-calendar th{position:static;background:white;font-weight:400;}
.po-inventory-query .finance-date-calendar>section{width:100%;flex:0 0 100%;}
.po-inventory-query .finance-date-calendar tbody button{padding:4px;}
.po-inventory-query>.directory-reference-layout{display:flex;flex-direction:column;min-height:0;padding:0 20px;}
.po-inventory-query>.directory-reference-layout>section{display:flex;flex-direction:column;min-height:0;}
.po-inventory-query .directory-reference-pagination{flex-shrink:0;}
.po-inventory-query>.directory-reference-layout>aside{display:flex;gap:12px;align-items:center;border:0;max-height:60px;overflow:auto;padding:4px 0;}
.po-inventory-query>.directory-reference-layout>aside>div{flex-shrink:0;}
.po-inventory-query>.directory-reference-layout>aside ul{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;}
.po-inventory-query>.directory-reference-layout>aside li{padding:3px 8px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.po-inventory-query .directory-reference-scroll{min-height:0;max-height:48vh;}
/* Keep pointer targets stationary when a tax range-total message appears. */
.receipt-tax-reference > .po-range-total{position:absolute;bottom:9px;left:12px;max-width:38%;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;}
.po-inventory-query>footer{justify-content:flex-end;flex-wrap:wrap;padding:12px 20px;}
.po-inventory-query>footer [data-ref-message]{margin-right:auto;flex:1 1 180px;font-size:12px;}
@media(max-width:720px){.po-inventory-filter-grid{gap:12px 16px;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-height:500px){.po-inventory-basic{max-height:35vh;overflow:auto;}}
.receipt-split-dialog{width:400px;max-width:calc(100vw - 32px);padding:0;border:1px solid #ddd;border-radius:2px;color:#333;font:14px "Microsoft YaHei",sans-serif;box-shadow:0 8px 32px #0003}
.receipt-split-dialog::backdrop{background:#0005}
.receipt-split-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #eee}
.receipt-split-dialog h2{margin:0;font-size:16px;font-weight:400}
.receipt-split-dialog>header button{border:0;background:none;font-size:22px;color:#888;cursor:pointer}
.receipt-split-fields{padding:36px 48px 12px;max-height:55vh;overflow:auto}
.receipt-split-fields>label{display:flex;align-items:center;gap:8px}
.receipt-split-fields>label>span{display:flex;align-items:center;gap:6px;width:112px;flex-shrink:0}
.receipt-split-fields b{color:#d33;font-weight:400}
.receipt-split-fields input[type=number]{width:90px;height:30px;border:1px solid #ddd;padding:4px 8px;text-align:right}
.receipt-split-modes{display:flex;gap:30px;margin:18px 0 0 38px}
.receipt-split-modes label{display:flex;gap:6px;align-items:center;white-space:nowrap}
.receipt-split-fields [data-split-message]{color:#b42318;font-size:12px;line-height:1.5}
.receipt-split-dialog footer{display:flex;justify-content:flex-end;gap:12px;padding:12px 18px;border-top:1px solid #eee}
.receipt-split-dialog footer button{width:auto;min-width:64px;min-height:30px;height:30px;flex:0 0 auto;margin:0;padding:4px 16px;white-space:nowrap;border:1px solid #ddd;background:white;border-radius:2px;cursor:pointer}
.receipt-split-dialog footer .primary-button{color:#fff;background:#5582f3;border-color:#5582f3}
.purchase-receipt-layout.workspace-form-page>.finance-editor>.modal-header{display:none}
.purchase-receipt-layout .finance-editor-scroll{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.purchase-receipt-layout #purchaseFinanceFields,.purchase-receipt-layout #purchaseFinanceAttachments,.purchase-receipt-layout #purchaseFinanceHistory{flex:0 1 48%;min-height:100px;overflow:auto;scrollbar-gutter:stable;padding:10px 20px}
.purchase-receipt-layout #purchaseFinanceFields{grid-template-columns:repeat(2,minmax(330px,1fr));align-content:start;gap:9px 40px}
.purchase-receipt-layout .finance-field-grid>label{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:8px}
.purchase-receipt-layout .finance-field-caption{text-align:right;font-size:14px;line-height:20px;color:#666}
.purchase-receipt-layout #purchaseFinanceTabs .finance-header-fullscreen-toggle{margin-left:auto;padding:6px}
.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell{min-width:0;height:30px;box-sizing:border-box;border:1px solid #d4dce4}
.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell:focus-within,.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell:hover{border-color:#5585dd}
.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell input{height:28px;border:0}
.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell button.department-parent-icon::before,.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell button.department-parent-icon::after{display:none}
.purchase-receipt-layout #purchaseFinanceFields .directory-reference-cell button.department-parent-icon svg{display:block;width:16px;height:16px}
.purchase-receipt-layout .receipt-required{color:#d33;font-weight:400}
.purchase-receipt-layout .receipt-tax-input .kd-switch{justify-self:start}
.purchase-receipt-layout .receipt-tax-input .kd-switch input{inset:0;width:100%;height:100%;margin:0;padding:0;border:0;z-index:1;cursor:pointer}
.purchase-receipt-layout .receipt-tax-input .kd-switch:has(input:disabled){opacity:.55}
.receipt-line-column-editor .transfer-results-grid{table-layout:fixed;width:100%}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(1){width:24px;min-width:24px!important;max-width:24px;padding-left:3px;padding-right:3px}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(2){width:32px;min-width:32px!important;max-width:32px;padding-left:3px;padding-right:3px}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(3){width:48px;min-width:48px!important;max-width:48px}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(4){width:158px}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(5){width:108px}
.receipt-line-column-editor .transfer-results-grid :is(th,td):nth-child(n+6){width:90px}
.picker-column-editor.receipt-line-column-editor [data-options]{display:block;padding:18px 20px}
.picker-column-editor.receipt-line-column-editor [data-options]>label:not(.kd-switch){display:inline-block;margin-right:4px;color:#666}
.picker-column-editor.receipt-line-column-editor [data-options]>.kd-switch{display:block;margin-top:6px}
.receipt-line-column-editor [data-move="reset"]{color:#ed5555}
.purchase-receipt-layout #purchaseFinanceFields input,.purchase-receipt-layout #purchaseFinanceFields select{height:30px;border-radius:0}
.purchase-receipt-layout .receipt-header-extra{grid-column:1/-1}
.purchase-receipt-layout .receipt-header-extra summary{color:#4887bc;cursor:pointer;padding:8px}
.purchase-receipt-layout .receipt-header-extra>.finance-field-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}
.purchase-receipt-layout .finance-lines{display:flex;flex-direction:column;flex:1 1 52%;min-height:180px;padding-top:0}
.purchase-receipt-layout .finance-lines>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ddd;flex:0 0 auto}
.purchase-receipt-layout .finance-lines>header h3{margin:0;color:#5582f3;font-size:14px;font-weight:400;white-space:nowrap;align-self:stretch;display:flex;align-items:center;border-bottom:2px solid #5582f3}
.purchase-receipt-layout .finance-lines>header .finance-toolbar{margin:0;padding:0;gap:4px;flex-wrap:nowrap;overflow:auto;min-width:0}
.purchase-receipt-layout .finance-lines>header .command-button{border:0;background:white;color:#3280c5;min-height:32px;padding:5px 8px;white-space:nowrap}
.purchase-receipt-layout .finance-lines>header .command-button svg{display:none}
.purchase-receipt-layout .finance-lines>.table-scroll{flex:1;min-height:80px;max-height:none}
.purchase-receipt-layout.financial-header-fullscreen #purchaseFinanceFields,.purchase-receipt-layout.financial-header-fullscreen #purchaseFinanceAttachments,.purchase-receipt-layout.financial-header-fullscreen #purchaseFinanceHistory{flex:1;max-height:none}
@media(max-height:600px){.purchase-receipt-layout .finance-editor-scroll{overflow:auto}.purchase-receipt-layout #purchaseFinanceFields{max-height:190px;flex-basis:auto}.purchase-receipt-layout .finance-lines{min-height:250px;flex:none}}
.receipt-tax-scheme .finance-scheme-date{display:flex;align-items:center;gap:4px;min-width:0;height:28px;border:1px solid #d8d8d8;background:#fff;box-sizing:border-box}
.receipt-tax-scheme .finance-scheme-date>input{flex:1;min-width:0;width:0;height:26px;border:0;padding:0 3px;font-size:12px}
.receipt-tax-scheme .finance-scheme-date>[data-scheme-calendar]{height:26px;width:20px}
.receipt-tax-scheme .finance-scheme-date>span{flex:none}
