.document-details-v4 { margin-top: 24px; padding-top: 4px; border-top: 1px solid #e1e8f2; }
.document-details-v4 .section-label { margin-top: 20px; }
.document-details-v4 small { color: #6c7b90; font-size: 11px; line-height: 1.45; }
.document-details-actions { margin: 4px 0 18px; }
.seller-contact { margin-top: 7px; font-size: 11px; color: #526987; line-height: 1.45; }
.party-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
.party-card { padding: 18px 20px; border: 1px solid #dce6f1; border-radius: 8px; background: #fbfdff; }
.party-card h3 { margin: 0 0 11px; color: #12366b; font-size: 17px; }
.party-card p { margin: 7px 0; line-height: 1.45; }
.document-product-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: 25px; align-items: stretch; margin: 28px 0; padding: 18px; border: 1px solid #dce6f1; background: #fff; }
.document-product-image { min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f7faff; }
.document-product-image img { width: 100%; height: 100%; max-height: 310px; object-fit: contain; display: block; background: #fff; }
.document-product-specs { padding: 12px 8px; }
.document-product-specs h3 { margin: 0 0 13px; color: #12366b; font-size: 19px; }
.document-product-specs table { width: 100%; border-collapse: collapse; }
.document-product-specs th, .document-product-specs td { padding: 10px 8px; border-bottom: 1px solid #e4ebf4; text-align: left; font-size: 14px; }
.document-product-specs th { width: 42%; color: #5b6e87; font-weight: 600; }
.document-product-specs td { color: #172c4c; font-weight: 700; }
.invoice-lines table th:nth-child(3), .invoice-lines table th:nth-child(4), .invoice-lines table th:nth-child(5), .invoice-lines table td:nth-child(3), .invoice-lines table td:nth-child(4), .invoice-lines table td:nth-child(5) { white-space: nowrap; }
@media (max-width: 760px) { .party-grid, .document-product-card { grid-template-columns: 1fr; } }
@media print { .document-product-card, .party-card, .trade-terms { break-inside: avoid; } }
