/* CSS Document */
body {
    background: #f4f6f8;
    color: #20262d;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.report-shell {
    max-width: 1600px;
    margin: 24px auto;
}

.report-card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: .75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.045);
}

.report-header {
    border-bottom: 2px solid #212529;
    padding-bottom: 14px;
}

.report-title {
    letter-spacing: .03em;
    font-weight: 700;
}

.report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.report-table-wrap {
    max-height: 72vh;
    overflow: auto;
    border: 1px solid #dee2e6;
}

.financial-table {
    min-width: 980px;
}

.financial-table th,
.financial-table td {
    border-color: #e5e8eb;
}

.financial-table thead th {
    white-space: nowrap;
    z-index: 2;
}

.hierarchy-row {
    --row-indent: calc(var(--depth, 0) * 1.35rem);
}

.group-row {
    background: #f8f9fa;
    font-weight: 600;
}

.group-row:hover,
.account-row:hover {
    background: #f1f5f8;
}

.tree-cell {
    padding-left: calc(.35rem + var(--depth) * 1.45rem) !important;
    min-width: 430px;
    white-space: nowrap;
}

.tree-toggle {
    width: 25px;
    height: 25px;
    padding: 0;
    margin-right: .2rem;
    border: 0;
    background: transparent;
    color: #343a40;
    font-weight: 800;
    cursor: pointer;
}

.tree-toggle:hover {
    background: #e9ecef;
    border-radius: .25rem;
}

.tree-spacer {
    display: inline-block;
    width: 25px;
}

.node-code {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .9em;
    color: #495057;
}

.account-meta {
    color: #6c757d;
    font-size: .76rem;
    margin-left: 2rem;
    white-space: normal;
}

.amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.subtotal-value {
    font-weight: 800;
    border-top: 1px solid #8c959f !important;
}

.group-total-value {
    font-weight: 800;
    border-top: 2px double #212529 !important;
}

.grand-total {
    border-top: 3px double #212529 !important;
    font-weight: 800;
    background: #f8f9fa;
}

.report-note {
    color: #6c757d;
    font-size: .85rem;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    body {
        background: #fff !important;
    }

    .no-print {
        display: none !important;
    }

    .report-shell,
    .report-card {
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .report-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .financial-table {
        min-width: 0;
    }

    .financial-table thead {
        position: static !important;
    }
}


