/* HARD DÉCO — V2-RC1.5.14 : aperçu papier commun Devis / Facture. */
.document-preview-host { overflow: auto; background: color-mix(in srgb, var(--bg) 82%, #dbe3f0); }
.document-preview-stage { min-width: 760px; padding: 28px clamp(18px, 4vw, 54px) 18px; }
.document-paper { width: min(100%, 920px); min-height: 720px; box-sizing: border-box; margin: 0 auto; padding: 44px 46px; border: 1px solid #d9dee8; background: #fff; color: #172033; box-shadow: 0 16px 42px rgba(15, 23, 42, .12); font-size: 11px; }
.document-paper-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 23px; border-bottom: 2px solid #4967e9; }
.document-paper-brand { display: flex; align-items: center; gap: 12px; }.document-paper-brand > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #4967e9; color: #fff; font-size: 13px; font-weight: 900; line-height: .85; text-align: center; transform: rotate(-3deg); }.document-paper-brand small { color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.document-paper-identity { display: grid; justify-items: end; gap: 3px; text-align: right; }.document-paper-identity small { color: #4967e9; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.document-paper-identity strong { font-size: 19px; }.document-paper-identity span { color: #64748b; }
.document-paper-title { padding: 25px 0 17px; }.document-paper-title h3 { margin: 0; font-size: 22px; line-height: 1.2; }.document-paper-title p { margin: 6px 0 0; color: #64748b; }
.document-paper-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; overflow: hidden; border: 1px solid #e2e7ef; border-radius: 8px; background: #e2e7ef; }.document-paper-meta > div { min-width: 0; padding: 10px 11px; background: #f8fafc; }.document-paper-meta dt { margin-bottom: 4px; color: #64748b; font-size: 8px; text-transform: uppercase; }.document-paper-meta dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.document-paper-table-wrap { overflow: hidden; border: 1px solid #e2e7ef; border-radius: 8px; }.document-paper table { width: 100%; border-collapse: collapse; }.document-paper th, .document-paper td { padding: 11px 10px; border-bottom: 1px solid #e8ecf2; text-align: left; vertical-align: top; }.document-paper th { background: #4967e9; color: #fff; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }.document-paper td:first-child { width: 52%; line-height: 1.45; }.document-paper :is(th, td).is-number { text-align: right; white-space: nowrap; }.document-paper tbody tr:last-child td { border-bottom: 0; }
.document-paper td:first-child > strong { display: block; margin-bottom: 2px; color: #182034; font-size: 9px; }.document-paper td:first-child > span { display: block; color: #566176; white-space: pre-wrap; }.document-paper-section td { background: #eef2ff; color: #344fc8; }.document-paper-section td > strong { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }.document-paper-section td > span { display: block; margin-top: 3px; color: #566176; font-size: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }.document-paper-note td { background: #fafbfc; }.document-paper-note strong { display: block; margin-bottom: 3px; color: #344fc8; font-size: 9px; }.document-paper-note span { color: #566176; white-space: pre-wrap; }.document-paper-empty td { padding-block: 32px; color: #64748b; text-align: center; }
.document-paper-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr); gap: 28px; align-items: start; padding-top: 22px; }.document-paper-footer > p { margin: 0; color: #64748b; line-height: 1.55; white-space: pre-wrap; }.document-paper-footer > dl { display: grid; gap: 7px; margin: 0; }.document-paper-footer dl > div { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 7px; border-bottom: 1px solid #e2e7ef; }.document-paper-footer dt { color: #64748b; }.document-paper-footer dd { margin: 0; font-weight: 800; white-space: nowrap; }.document-paper-footer .is-emphasis { margin-top: 3px; padding: 10px; border: 0; border-radius: 7px; background: #eef2ff; color: #344fc8; font-size: 13px; }
.document-preview-caption { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 9px; }.document-preview-caption .lucide { width: 12px; height: 12px; }
@media (max-width: 820px) { .document-preview-stage { min-width: 680px; padding: 18px; }.document-paper { min-height: 600px; padding: 32px; } }
