/* ────────────────────────────────────────────────────────────────────────
 * Unified live-document preview — Invoice / Quote / Work Order builders.
 * Extracted from the New Invoice page so all three builders render the same
 * white "paper" document preview. Pair with js/doc-preview.js renderDocPreview().
 * ──────────────────────────────────────────────────────────────────────── */
.preview-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-2);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 600; color: var(--text-2);
}
.preview-inner { padding: 20px; }

.inv-preview {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.inv-preview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; }
.inv-biz-name { font-size: 18px; font-weight: 800; color: #111; letter-spacing: -0.03em; }
.inv-biz-detail { font-size: 11px; color: #666; margin-top: 4px; line-height: 1.6; }
.inv-title-block { text-align: right; flex-shrink: 0; }
.inv-title { font-size: 22px; font-weight: 900; color: #17afa5; letter-spacing: -0.04em; }
.inv-num { font-size: 13px; color: #555; font-weight: 600; margin-top: 2px; }
.inv-dates { font-size: 11px; color: #777; margin-top: 6px; line-height: 1.7; }
.inv-bill-section { margin-bottom: 24px; }
.inv-bill-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.inv-bill-name { font-size: 13px; font-weight: 700; color: #111; }
.inv-bill-detail { font-size: 11px; color: #666; line-height: 1.6; margin-top: 2px; }
.inv-items-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.inv-items-table th {
    padding: 8px 10px; font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #fff; background: #17afa5; text-align: left;
}
.inv-items-table th:last-child, .inv-items-table td:last-child { text-align: right; }
.inv-items-table th:nth-child(2), .inv-items-table td:nth-child(2) { text-align: center; }
.inv-items-table th:nth-child(3), .inv-items-table td:nth-child(3) { text-align: right; }
.inv-items-table td { padding: 8px 10px; font-size: 11px; border-bottom: 1px solid #f0f0f0; color: #333; }
.inv-items-table tr:last-child td { border-bottom: none; }
.inv-totals { margin-left: auto; width: 220px; }
.inv-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11px; color: #555; }
.inv-total-row.final { border-top: 1.5px solid #e0e0e0; margin-top: 8px; padding-top: 10px; font-size: 15px; font-weight: 800; color: #17afa5; }
.inv-notes { margin-top: 24px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.inv-notes-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.inv-notes-text { font-size: 11px; color: #555; line-height: 1.6; }
.inv-footer { text-align: center; margin-top: 24px; font-size: 10px; color: #bbb; font-style: italic; }
