.allocation-prompt{display:flex;align-items:flex-start;gap:12px;padding:17px 20px;margin-bottom:22px;border:1px solid var(--line);border-radius:12px;background:#f7f9fc;color:var(--muted);font-size:12px;line-height:1.65}
.allocation-prompt>.icon{flex:none;width:19px;height:19px;color:#657e9e;margin-top:2px}.allocation-prompt strong{display:block;font-size:12px;color:var(--ink);margin-bottom:3px}.allocation-prompt p{margin:0}
.allocation-overview{margin-bottom:22px}.allocation-overview .panel-heading{border-bottom:1px solid var(--line)}.allocation-overview .panel-heading p{margin:7px 0 0}
.allocation-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding:24px}.allocation-metrics>div{display:flex;flex-direction:column;gap:5px;min-width:0}.allocation-metrics strong{font-size:28px;color:var(--ink);font-weight:600}.allocation-metrics span{font-size:11px;color:var(--muted);line-height:1.5}
.allocation-warehouses{margin-bottom:22px}.allocation-warehouses>.panel-heading{display:flex;align-items:center;justify-content:space-between}.allocation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 24px 24px}.allocation-card{border:1px solid var(--line);border-radius:12px;padding:20px;min-width:0}.allocation-card-heading{display:flex;align-items:flex-start;gap:12px}.allocation-card-heading>div{min-width:0}.allocation-card-heading h3{font-size:14px;margin:2px 0 10px;overflow-wrap:anywhere}.allocation-card-heading>.stat-icon{width:35px;height:35px;flex:none}.allocation-card-progress{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:24px 0 11px}.allocation-card-progress strong{font-size:24px;font-weight:600;color:var(--ink)}.allocation-card-progress strong>span{font-size:12px;font-weight:400;color:var(--muted)}.allocation-card-progress>span{font-size:11px;color:var(--muted)}.allocation-card-state{font-size:11px;color:var(--muted);line-height:1.6;margin:14px 0 19px;min-height:35px}.allocation-card-state.has-errors{color:#a97534}.allocation-card>.btn{font-size:11px}.allocation-empty{padding:0 24px;color:var(--muted);font-size:12px}
.receipt-warehouse-context{border:1px solid var(--line);border-radius:12px;padding:18px 21px;margin-bottom:22px;background:#f8fafc}.receipt-warehouse-context>div{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ink)}.receipt-warehouse-context>div>.icon{width:18px;height:18px;flex:none}.receipt-warehouse-context p{font-size:12px;line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere}.receipt-warehouse-context>.text-button{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:12px}.receipt-warehouse-context>.text-button .icon{width:14px;height:14px}
.allocation-form-body>p{line-height:1.65;margin:0;font-size:12px}.allocation-form-totals{position:sticky;top:0;background:#f4f7fb;border:1px solid var(--line);border-radius:9px;padding:13px 15px;font-size:12px;font-weight:500;color:var(--ink);line-height:1.8;z-index:1}.allocation-form-row{border:1px solid var(--line);padding:17px;border-radius:11px;margin-bottom:14px;min-width:0}.allocation-form-row:last-child{margin-bottom:0}.allocation-row-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:15px}.allocation-row-heading>.field{flex:1;min-width:0;margin:0}.allocation-row-heading>.icon-button{margin-top:19px;flex:none}.allocation-form-row textarea{font-family:var(--mono,monospace);font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;max-width:100%;width:100%;box-sizing:border-box}.allocation-row-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted);font-size:11px}.allocation-row-footer>.text-button{font-size:11px;text-align:right}.allocation-pending-note{padding:13px 15px;border-radius:8px;background:#fff9ed;color:#936f38;font-size:12px;line-height:1.7}.allocation-form-body>p[hidden]{display:none}.allocation-form-body .form-error{font-size:11px;line-height:1.7;margin:0}.allocation-form-body [disabled]{opacity:.65}
@media(max-width:1100px){.allocation-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.allocation-metrics{gap:12px;padding:20px}.allocation-metrics strong{font-size:25px}.allocation-metrics span{font-size:10px}}
@media(max-width:760px){.allocation-cards{grid-template-columns:1fr;padding:0 20px 20px}.allocation-card{padding:19px}.allocation-card-state{min-height:0}.allocation-card-progress{margin-top:19px}.allocation-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 13px}.allocation-metrics strong{font-size:25px}.allocation-prompt{font-size:11px;padding:15px 17px;gap:10px}.allocation-prompt strong{font-size:11px}.receipt-warehouse-context{padding:17px}.receipt-warehouse-context>div{font-size:13px}.receipt-warehouse-context p{font-size:11px}.allocation-row-footer{display:block}.allocation-row-footer>span{display:block;margin-bottom:11px}.allocation-row-footer>.text-button{text-align:left;font-size:10px}.allocation-form-totals{font-size:11px;padding:12px}.allocation-form-row{padding:14px}.allocation-row-heading>.icon-button{width:28px;height:28px}.allocation-form-body>p{font-size:11px}}
@media(max-width:420px){.allocation-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:17px}.allocation-metrics strong{font-size:24px}.allocation-cards{padding:0 16px 16px}.allocation-card-heading h3{font-size:13px}.allocation-card>.btn{font-size:11px}.allocation-form-row textarea{font-size:10px}.allocation-row-heading{gap:6px}.allocation-form-body .field select{max-width:100%}}
.receipt-edi-facts dt {font-weight:600}
.receipt-edi-facts dd {margin:4px 0 12px;overflow-wrap:anywhere}

.allocation-product{display:flex;flex-wrap:wrap;align-items:end;gap:8px 14px;margin:0 0 16px}
.allocation-product .field{flex:1 1 15rem;min-width:0}
.allocation-product select{max-width:100%}
#warehouseHandover .draft-codes{max-height:10rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
#warehouseHandover [data-handover-documents] .allocation-prompt{margin-bottom:8px}
[data-check-panel] .field{margin:12px 0}
[data-handover-paper]{overflow-wrap:anywhere}
[data-handover-paper] h3{margin:0 0 8px}
[data-handover-paper] .draft-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:12px 18px;margin:18px 0}
.draft-facts dt{font-size:.75rem;color:var(--muted)}
.draft-facts dd{margin:3px 0}
.draft-warning{border-left:3px solid #aa7426;background:#fcf6eb;color:#684919;padding:9px 12px}
.handover-version{font-size:.8rem}
#warehouseHandover .dialog-actions{flex-wrap:wrap}
#handoverPaperPrint{display:none}
@media print{
  body:has(>#handoverPaperPrint){display:block!important;min-width:0;height:auto!important;overflow:visible!important;background:white}
  body:has(>#handoverPaperPrint)>:not(#handoverPaperPrint){display:none!important}
  #handoverPaperPrint{display:block;font:10pt/1.45 Arial,sans-serif;color:#121212;background:white;overflow:visible}
  #handoverPaperPrint h3{font-size:18pt;margin:0 0 8pt}
  #handoverPaperPrint a{color:inherit}
  #handoverPaperPrint .muted,#handoverPaperPrint .draft-facts dt{color:#444}
  #handoverPaperPrint .draft-facts{grid-template-columns:repeat(2,1fr)}
  #handoverPaperPrint .allocation-prompt{display:block;padding:7pt 0;margin:0;border:0;border-bottom:1px solid #bbb;break-inside:avoid}
  #handoverPaperPrint .allocation-prompt strong{font-size:10pt;color:#111}
  #handoverPaperPrint .draft-identifiers{margin-top:11pt}
  #handoverPaperPrint summary{font-weight:bold;list-style:none}
  #handoverPaperPrint h4{break-after:avoid;margin:8pt 0 3pt}
  #handoverPaperPrint pre{white-space:pre-wrap;overflow-wrap:anywhere;font:9pt/1.5 Courier,monospace;max-height:none;overflow:visible;margin:0}
  #handoverPaperPrint .draft-warning{border:1px solid #555;color:#222;background:white}
}
dialog:has(.quantity-editor){width:min(1120px,96vw);max-width:96vw}
.qty-scroll{overflow:auto;max-height:58vh}.qty-scroll table{width:100%;border-collapse:separate;border-spacing:0}.qty-scroll th,.qty-scroll td{padding:7px;border-bottom:1px solid #dce2ed;text-align:left}.qty-scroll thead th{position:sticky;top:0;background:#f5f7fc}.qty-scroll th small{display:block;color:#66758a;font-weight:400}.qty-scroll input{width:7em;padding:7px;border:1px solid #c3ccda;border-radius:5px}.quantity-editor .heading-actions{flex-wrap:wrap}
