.warehouse-items { width: 100%; border-collapse: collapse; }
.warehouse-items th, .warehouse-items td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.warehouse-items th { background: var(--brand-soft); font-size: 12px; }
.warehouse-items .warehouse-check { width: 70px; text-align: center; font-size: 22px; }
.warehouse-items .warehouse-quantity { font-weight: 700; }
.warehouse-detail .wf-info-grid dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.warehouse-help { padding: 0 20px 15px; }
.warehouse-order-link { display: inline-block; text-decoration: none; }
.warehouse-print-dialog { width: min(980px, 94vw); max-height: 90vh; border: 1px solid var(--line); border-radius: 14px; padding: 0; color: var(--text); }
.warehouse-print-dialog::backdrop { background: #201b3d80; }
.warehouse-print-dialog .wf-dialog-header { position: sticky; top: 0; background: white; z-index: 1; gap: 12px; }
.warehouse-print-dialog .wf-dialog-header > div { display: flex; gap: 8px; }
.warehouse-print-dialog .wf-dialog-header button { width: auto; height: auto; padding: 8px 13px; font: inherit; font-size: 13px; }
.warehouse-preview-body { padding: 24px; background: #f5f4f8; }
.warehouse-document { padding: 26px; background: white; color: #202030; font-size: 13px; }
.warehouse-document header { border-bottom: 2px solid #504198; margin-bottom: 20px; }
.warehouse-document h2 { margin: 12px 0; font-size: 23px; }
.warehouse-document p, .warehouse-document dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.warehouse-document footer { margin-top: 30px; padding-top: 10px; border-top: 1px solid #ccc; color: #555; font-size: 11px; }
.warehouse-signatures { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; }
.warehouse-parcel-label { border: 2px solid #202030; padding: 22px; }
.warehouse-parcel-label h3 { font-size: 19px; }
.warehouse-shipping-address { font-size: 20px; line-height: 1.7; }
.warehouse-parcel-label li { margin-bottom: 10px; }
.warehouse-document-warning { border: 1px solid #c58b34; padding: 12px; }
.warehouse-document-totals { margin-left: auto; max-width: 320px; }
.warehouse-document-totals > div { display: flex; justify-content: space-between; gap: 24px; margin: 8px 0; }
.warehouse-document-totals dd { margin: 0; }
#warehousePrintRoot { display: none; }
@media (max-width: 860px) {
  .warehouse-detail .wf-header-actions { width: 100%; justify-content: flex-start; }
  .warehouse-detail .warehouse-items { min-width: 600px; }
}
@media (max-width: 560px) {
  .warehouse-preview-body, .warehouse-document { padding: 12px; }
  .warehouse-print-dialog .wf-dialog-header { flex-wrap: wrap; }
  .warehouse-signatures { flex-direction: column; }
}
@media print {
  body.warehouse-printing { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; background: white; }
  body.warehouse-printing > :not(#warehousePrintRoot) { display: none !important; }
  #warehousePrintRoot { display: block !important; position: static !important; width: 100%; }
  #warehousePrintRoot, #warehousePrintRoot * { visibility: visible !important; }
  #warehousePrintRoot .warehouse-document { padding: 0; font-size: 11pt; }
  #warehousePrintRoot .warehouse-items { table-layout: auto; }
  #warehousePrintRoot .warehouse-items th, #warehousePrintRoot .warehouse-items td { padding: 8px; border: 1px solid #aaa; overflow-wrap: anywhere; }
  #warehousePrintRoot thead { display: table-header-group; }
  #warehousePrintRoot tr, #warehousePrintRoot .warehouse-signatures { break-inside: avoid; }
  #warehousePrintRoot .warehouse-parcel-label { max-width: 150mm; margin: auto; }
}
