.factures-action-toolbar {
    gap: 0.75rem;
}

.factures-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.factures-tax-statement-feedback {
    min-height: 1.5rem;
}

.factures-tax-statements-feedback {
    min-height: 1.25rem;
}

.factures-tax-statements-table .btn-link {
    white-space: nowrap;
}

.fiscal-statement-row-replaced {
    opacity: 0.62;
}

.fiscal-statement-row-cancelled {
    opacity: 0.7;
}

.fiscal-statement-row-sealed {
    background-color: rgba(36, 90, 106, 0.04);
}

.fiscal-statement-status {
    font-weight: 600;
}

.fiscal-statement-status-active {
    color: #1f6f43;
}

.fiscal-statement-status-replaced {
    color: #69737c;
}

.fiscal-statement-status-cancelled {
    color: #8a1f2d;
    text-decoration: line-through;
}

.fiscal-statement-status-sealed {
    color: #245a6a;
}

.factures-tax-statement-onboarding-glow {
    position: relative;
}

.factures-tax-statement-onboarding-glow::after {
    animation: factures_tax_statement_glow_pulse 2.8s ease-in-out infinite;
    border: 2px solid rgba(31, 111, 67, 0.45);
    border-radius: 24px;
    content: '';
    inset: -4px;
    pointer-events: none;
    position: absolute;
}

@keyframes factures_tax_statement_glow_pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.2;
        transform: scale(0.98);
    }
}

.factures-tax-statement-modal .modal-footer {
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .factures-tax-statement-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .factures-tax-statement-modal .modal-footer .btn {
        width: 100%;
    }
}

.patient-tax-statement-pdf {
    color: #222;
    font-family: DejaVu Sans, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    margin: 24px;
}

.tax-statement-header {
    align-items: flex-start;
    border-bottom: 2px solid #2f4f5f;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.tax-statement-clinic {
    font-size: 18px;
    font-weight: 700;
}

.tax-statement-muted,
.tax-statement-period,
.tax-statement-footer {
    color: #5d6870;
}

.tax-statement-meta {
    text-align: right;
}

.tax-statement-section {
    margin-bottom: 20px;
}

.tax-statement-section h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

.tax-statement-section h2,
.tax-statement-grid h2 {
    color: #2f4f5f;
    font-size: 14px;
    margin: 0 0 8px;
}

.tax-statement-grid {
    display: table;
    margin-bottom: 22px;
    table-layout: fixed;
    width: 100%;
}

.tax-statement-grid > div {
    display: table-cell;
    padding-right: 20px;
    vertical-align: top;
    width: 50%;
}

.tax-statement-strong {
    font-weight: 700;
}

.tax-statement-summary-table,
.tax-statement-invoices-table {
    border-collapse: collapse;
    width: 100%;
}

.tax-statement-summary-table th,
.tax-statement-summary-table td,
.tax-statement-invoices-table th,
.tax-statement-invoices-table td {
    border-bottom: 1px solid #d5dce1;
    padding: 6px 5px;
}

.tax-statement-summary-table th,
.tax-statement-invoices-table th {
    color: #34424b;
    font-weight: 700;
    text-align: left;
}

.tax-statement-summary-table td,
.tax-statement-invoices-table td:nth-child(4),
.tax-statement-invoices-table td:nth-child(5),
.tax-statement-invoices-table td:nth-child(6) {
    text-align: right;
}

.tax-statement-total-row th,
.tax-statement-total-row td {
    border-top: 2px solid #2f4f5f;
    font-size: 12px;
    font-weight: 700;
}

.tax-statement-footer {
    border-top: 1px solid #d5dce1;
    font-size: 9px;
    margin-top: 24px;
    padding-top: 8px;
}
