/* Single-screen document editor layout (Invoice first; shared across sales docs later). */
.s-invoice-singlescreen .inv-ss { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.s-invoice-singlescreen .inv-header { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-end; }
.s-invoice-singlescreen .inv-header > .field { flex: 1 1 320px; max-width: 460px; margin: 0; }
/* keep label + editor on one line inside each compact strip field */
.s-invoice-singlescreen .inv-header > .field > .caption { width: 110px; }
.s-invoice-singlescreen .inv-more { flex: 1 1 100%; margin-top: 2px; }
.s-invoice-singlescreen .inv-more > summary { cursor: pointer; color: var(--s-link-color, #2563eb); font-size: 12px; }
.s-invoice-singlescreen .inv-more[open] { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.s-invoice-singlescreen .inv-more[open] > summary { flex: 1 1 100%; }

.s-invoice-singlescreen .inv-body { display: grid; grid-template-columns: 1fr 280px; gap: 12px; align-items: start; }
.s-invoice-singlescreen .inv-lines-host { min-width: 0; }
.s-invoice-singlescreen .inv-totals-host { position: sticky; top: 8px; }

.inv-totals { border: 1px solid var(--s-border-color, #e5e7eb); border-radius: 8px; padding: 10px 12px; background: var(--s-panel-bg, #fff); }
.inv-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.inv-total-row .inv-total-usd { font-variant-numeric: tabular-nums; font-weight: 500; }
.inv-total-row.inv-discount .inv-total-usd { color: #b91c1c; }
.inv-total-row.grand { border-top: 1px solid var(--s-border-color, #e5e7eb); margin-top: 4px; padding-top: 8px; font-size: 16px; font-weight: 700; }
.inv-total-row.balance .inv-total-usd { font-weight: 700; }

.s-invoice-singlescreen .inv-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--s-border-color, #e5e7eb); }

/* Collapse the now-empty PropertyGrid category chrome (fields were relocated out of it). */
.s-invoice-singlescreen .s-PropertyGrid { display: none; }
