.receipt-entry .receipt-header{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin:20px 0}
.receipt-entry .inline-field{display:flex;align-items:center;gap:10px;min-width:0;position:relative}
.receipt-entry .inline-field>span{white-space:nowrap;font-weight:600}.receipt-entry .inline-field input,.receipt-entry .inline-field select{min-width:0;width:100%}
.receipt-entry .source-search{display:flex;gap:12px;align-items:center;margin:22px 0}.receipt-entry .source-search label{display:flex;gap:12px;align-items:center;flex:1}.receipt-entry .source-search label span{white-space:nowrap}.receipt-entry .source-search input{width:100%}
.receipt-entry .source-search .source-toggle{flex:0 0 auto;gap:8px}.receipt-entry .source-search .source-toggle input{width:18px}.receipt-entry .receipt-matrix{min-width:740px}.receipt-entry .receipt-matrix .size-cell{text-align:center}.receipt-entry .receipt-matrix .size-cell input{width:66px;text-align:center}.receipt-entry .receipt-matrix td,.receipt-entry .receipt-matrix th{white-space:nowrap}.receipt-source-dialog [data-direct-cell]{width:70px;text-align:center}
.receipt-entry .supplier-wrap{flex:1;min-width:0}.receipt-entry .supplier-suggestions{position:absolute;top:100%;left:0;right:0;z-index:12;background:#fff;border:1px solid #ccdce5;box-shadow:0 5px 18px #13364720;max-height:250px;overflow:auto;border-radius:8px}.receipt-entry .supplier-suggestions button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e5edf1;padding:12px;background:#fff;color:#17394d}.receipt-entry .supplier-suggestions button:hover,.receipt-entry .supplier-suggestions button:focus{background:#eaf8f3}
.receipt-entry small{display:block;color:#577083;margin-top:5px}.receipt-entry .table-wrap{margin:16px 0}.receipt-entry td input[type=number]{width:76px}.receipt-entry td input[data-price]{width:108px}.receipt-entry .row-check{width:18px;height:18px;accent-color:#19b88c}
.receipt-source-dialog{width:min(1120px,calc(100vw - 32px));max-height:85vh;border:1px solid #ccdce5;border-radius:14px;padding:0;color:#17394d;background:#fff;box-shadow:0 20px 65px #12394b35}.receipt-source-dialog::backdrop{background:#102c4060}.receipt-source-dialog header,.receipt-source-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#f5f9fa}.receipt-source-dialog h2{margin:0;font-size:20px}.receipt-source-dialog .source-content{padding:8px 24px;max-height:58vh;overflow:auto}.receipt-source-dialog .source-document{margin:16px 0 24px;border:1px solid #d5e2e8;border-radius:10px;overflow:hidden}.receipt-source-dialog .source-document>label{display:flex;align-items:center;gap:14px;background:#eef6f8;padding:14px 16px;font-weight:600}.receipt-source-dialog .source-date{font-size:18px;font-weight:700;margin-left:16px}.receipt-source-dialog table{width:100%;white-space:nowrap}.receipt-source-dialog th,.receipt-source-dialog td{padding:12px}.receipt-source-dialog .row-check{width:18px;height:18px;accent-color:#19b88c}.receipt-source-dialog .table-wrap{margin:0}.receipt-source-dialog td:not(:nth-child(2)):not(:nth-child(3)){text-align:center}.receipt-source-dialog small{display:block;color:#577083;font-weight:400}
@media(max-width:1100px){.receipt-entry .receipt-header{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.receipt-entry .receipt-header{grid-template-columns:1fr}.receipt-entry .source-search{flex-wrap:wrap}.receipt-entry .source-search label{flex-basis:100%}.receipt-source-dialog .source-date{margin-left:0}.receipt-source-dialog .source-document>label{flex-wrap:wrap}.receipt-source-dialog header,.receipt-source-dialog footer{padding:14px}.receipt-source-dialog .source-content{padding:8px 12px}}
