/* Compact on-screen invoice preview only. Does not affect PDF/PNG or invoice calculations. */
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview).doc {
 min-width:0; width:100%; max-width:100%;
 padding:10px 8px; margin:8px 0 13px;
 border:1px solid var(--divider); border-radius:var(--radius);
 background:var(--surface-soft); color:var(--text);
 box-shadow:none;
 font-size:11px; line-height:1.35;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) > .flex-between-top {
 display:flex; align-items:flex-start; justify-content:space-between;
 gap:10px; margin:0 0 8px; min-width:0;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) .heading-md {
 font-size:13px; font-weight:650; color:var(--text); line-height:1.3;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) .ta-right {
 text-align:right; font-size:11px; min-width:0; line-height:1.4;
 font-variant-numeric:tabular-nums;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) :is(.sub-label,.sub-label-mt) {
 display:block; color:var(--muted); font-size:10px; font-weight:500; margin:0;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) .ta-right .fw-900 {
 display:block; font-size:12px; font-weight:700; color:var(--text);
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark {
 width:100%; max-width:100%; table-layout:fixed; border-collapse:collapse;
 margin:7px 0 0; font-size:10px; color:var(--text);
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th,
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td {
 padding:6px 2px; border:0; border-bottom:1px solid var(--divider);
 vertical-align:middle; font-size:10px; line-height:1.25;
 overflow-wrap:anywhere; word-break:normal; hyphens:auto;
 font-weight:400; color:var(--text);
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th {
 font-weight:650; color:var(--muted); font-size:9px;
 text-align:center; letter-spacing:0;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:first-child,
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:first-child { width:26%; text-align:left; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:nth-child(2),
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:nth-child(2) { width:13%; text-align:center; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:nth-child(3),
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:nth-child(3) { width:8%; text-align:center; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:nth-child(4),
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:nth-child(4) { width:18%; text-align:right; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:nth-child(5),
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:nth-child(5) { width:15%; text-align:right; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark th:nth-child(6),
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td:nth-child(6) { width:20%; text-align:right; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td b { font-weight:600; }
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) table.c-dark td[colspan="6"] {
 width:auto; text-align:left; padding:7px 2px; font-size:10px; font-weight:600;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) > div[style*="margin-top:12px"] {
 margin-top:9px !important; padding-top:8px;
 border-top:1px solid var(--divider); font-size:11px;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) > div[style*="margin-top:12px"] .fw-900 {
 font-size:11px; font-weight:650;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) ul {
 margin:4px 0 !important; padding-left:16px !important;
 font-size:11px; line-height:1.4;
}
body[data-theme="7"] :is(#ship-doc-preview,#extra-doc-preview) li { padding:1px 0; }
/* The invoice summary and expense lines remain in the same scoped paper surface. */
