/* VAT-return review surface (BL-067.12). Screen layout + a print-friendly
   block so the browser print-to-PDF acts as the B1 "PDF preview" (a
   server-side official-layout PDF is deferred to BL-067.12b). All rules are
   scoped to .vat-return-review so the globally-loaded sheet never bleeds. */

.vat-return-review {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 1.5rem);
}

.vat-return-review__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md, 1rem);
}

.vat-return-review__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs, 0.25rem);
}

.vat-return-review__print {
    padding: 0.5rem 1rem;
    border: 1px solid var(--md-sys-color-outline, #79747e);
    border-radius: var(--radius-full, 999px);
    background: var(--md-sys-color-surface, #fff);
    cursor: pointer;
}

.vat-return-review__table {
    width: 100%;
    border-collapse: collapse;
}

.vat-return-review__table th,
.vat-return-review__table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
    text-align: left;
}

.vat-return-review__num {
    width: 3rem;
    color: var(--md-sys-color-on-surface-variant, #49454f);
}

.vat-return-review__amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vat-return-review__row--total {
    font-weight: 600;
}

@media print {
    /* Hide the app chrome and print only the return. */
    .nav-bar,
    .navigation,
    .vat-return-review__print {
        display: none !important;
    }

    .vat-return-review {
        gap: 0.75rem;
    }

    .vat-return-review__section {
        break-inside: avoid;
    }
}
