.warehouse-receipt-open { min-height: 44px; align-self: end; white-space: nowrap; }
.warehouse-receipt-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; color: #193a5c; box-shadow: 0 24px 80px rgba(14,39,67,.3); }
.warehouse-receipt-dialog::backdrop { background: rgba(12,29,47,.58); }
.warehouse-receipt-dialog form { padding: 20px; }
.warehouse-receipt-header,.warehouse-receipt-actions,.receipt-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.warehouse-receipt-header { align-items:flex-start; }
.warehouse-receipt-header h2 { margin:2px 0 0; font-size:25px; }
.receipt-document-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:0 12px; }
.warehouse-receipt-dialog label { position:relative; display:block; margin-top:12px; font-size:12px; }
.warehouse-receipt-dialog input,.warehouse-receipt-dialog select,.warehouse-receipt-dialog textarea { width:100%; margin-top:5px; font-size:14px; }
.warehouse-receipt-dialog input,.warehouse-receipt-dialog select { height:42px; }
.receipt-results { position:absolute; z-index:12; left:0; right:0; max-height:230px; overflow:auto; border:1px solid #dce5ee; border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(25,58,92,.18); }
.receipt-results button { display:block; width:100%; padding:10px 12px; border:0; border-bottom:1px solid #e6edf3; border-radius:0; background:#fff; color:#193a5c; text-align:left; }
.receipt-results button:hover { background:#f1f6fb; }
.receipt-results strong,.receipt-results span,.receipt-selected strong,.receipt-selected span { display:block; }
.receipt-results span,.receipt-selected span { margin-top:3px; color:#718092; font-size:11px; }
.receipt-results p { margin:0; padding:12px; color:#718092; }
.receipt-create-supplier { color:#205f99 !important; font-weight:700; }
.receipt-selected { margin-top:6px; padding:9px 11px; border:1px solid #bdd4ec; border-radius:10px; background:#eef6fd; }
.receipt-official { display:flex !important; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; background:#f2f6fa; }
.receipt-official input { flex:0 0 auto; width:18px; height:18px; margin:0; }
.receipt-official span,.receipt-official small { display:block; }
.receipt-official small { margin-top:2px; color:#718092; }
.receipt-lines-section { margin-top:14px; border:1px solid #dce6ef; border-radius:12px; overflow:hidden; }
.receipt-section-heading { padding:11px 13px; background:#f1f5f9; }
.receipt-section-heading div strong,.receipt-section-heading div small { display:block; }
.receipt-section-heading small { margin-top:3px; color:#718092; font-size:10px; }
.receipt-section-heading > span { color:#205f99; font-size:12px; font-weight:800; }
.receipt-material-search { margin:10px 12px !important; }
.receipt-lines { max-height:390px; overflow:auto; }
.receipt-line { display:grid; grid-template-columns:minmax(230px,1.6fr) 120px 145px 90px 34px; align-items:end; gap:8px; padding:9px 12px; border-top:1px solid #e5ebf1; }
.receipt-line label { margin:0; font-size:10px; color:#657789; }
.receipt-line input,.receipt-line select { height:34px; margin-top:3px; padding:5px 7px; }
.receipt-line-name { align-self:center; min-width:0; }
.receipt-line-name strong,.receipt-line-name small { display:block; }
.receipt-line-name strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.receipt-line-name small { margin-top:3px; color:#718092; font-size:10px; }
.receipt-remove { width:32px; height:34px; padding:0; border:0; border-radius:8px; background:#f5eaea; color:#9b3e3e; font-size:20px; }
.receipt-empty { margin:0; padding:20px; color:#718092; text-align:center; font-size:12px; }
.receipt-success { margin-top:10px; padding:10px 12px; border-radius:10px; background:#e8f6ee; color:#176b57; font-size:12px; }
.warehouse-receipt-actions { justify-content:flex-end; margin-top:16px; padding-top:13px; border-top:1px solid #e3eaf1; }
@media(max-width:700px){.warehouse-receipt-dialog form{padding:14px}.receipt-document-grid{grid-template-columns:1fr}.receipt-line{grid-template-columns:minmax(0,1fr) 90px 32px}.receipt-line-name{grid-column:1/-1}.receipt-line label:nth-of-type(2){grid-column:1}.receipt-line label:nth-of-type(3){grid-column:2}.receipt-line label:nth-of-type(4){grid-column:1}.receipt-remove{grid-column:3;grid-row:2}.warehouse-receipt-actions button{flex:1}.warehouse-receipt-open{width:100%}}

.receipt-store-grid { grid-template-columns:minmax(180px,.6fr) minmax(280px,1.4fr); }
.receipt-store-line { grid-template-columns:minmax(240px,1fr) minmax(130px,.35fr) 34px; }
@media(max-width:700px){
    .receipt-store-grid,.receipt-store-line{grid-template-columns:1fr}
    .receipt-store-line .receipt-remove{grid-column:1;grid-row:auto;justify-self:end}
}
