/* balanceSheet.css */

.balance-sheet-report-wrapper {
    font-family: var(--liq-font-display);
    font-size: 11pt;
    line-height: 1.4;
    color: var(--liq-text);
    padding: 12px;
    border: 1px solid var(--liq-border);
    background-color: var(--liq-surface);
    max-width: 1200px; /* Maximum width for readability */
    margin: 0 auto; /* Center the content */
}

.balance-sheet-report-wrapper .report-title {
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.balance-sheet-report-wrapper .report-subtitle {
    font-size: 10pt;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.balance-sheet-report-wrapper .bs-table {
    width: 100%;
    border-collapse: collapse;
}

.balance-sheet-report-wrapper .bs-table td {
    padding: 3px 2px; /* Tighter padding */
    border: none; /* No internal cell borders */
    vertical-align: top;
}

.balance-sheet-report-wrapper .bs-table td.description-column {
    width: 65%;
}
.balance-sheet-report-wrapper .bs-table td.label-column { /* For right-aligned total labels */
    width: 20%;
    text-align: right;
    font-weight: normal; /* Sub-total labels not necessarily bold */
    padding-right: 8px;
    white-space: nowrap;
}
.balance-sheet-report-wrapper .bs-table td.amount-column {
    width: 15%;
    text-align: right;
    padding-right: 8px;
}

.balance-sheet-report-wrapper .bs-main-heading { /* For ASSETS, LIABILITIES, EQUITY */
    font-weight: bold;
    font-size: 11pt; /* Slightly larger */
    padding-top: 10px;
    padding-bottom: 3px;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--liq-text);
    margin-bottom: 5px;
}
.balance-sheet-report-wrapper .bs-section-heading { /* For Current Assets, Non-Current Assets etc. */
    font-weight: bold;
    font-size: 11pt;
    padding-top: 6px;
    padding-bottom: 2px;
    padding-left: 10px; /* Indent section headings */
}

.balance-sheet-report-wrapper .bs-account-item {
    padding-left: 25px !important; /* Indentation for individual accounts */
}

.balance-sheet-report-wrapper .bs-subtotal-line td.amount-column { /* For Total Current Assets etc. */
    font-weight: normal; /* Amounts for sub-totals not necessarily bold */
    border-top: 1px solid var(--liq-text); /* Single line above sub-total amount */
    padding-top: 2px;
}
.balance-sheet-report-wrapper .bs-subtotal-line td.label-column {
    font-weight: bold; /* Make the "Total..." label bold */
}


.balance-sheet-report-wrapper .bs-total-line td.amount-column { /* For Total Liabilities, Total Equity */
    font-weight: bold;
    border-top: 1px solid var(--liq-text);
    padding-top: 2px;
}
.balance-sheet-report-wrapper .bs-total-line td.label-column {
    font-weight: bold;
}


.balance-sheet-report-wrapper .bs-major-total-line td { /* For TOTAL ASSETS, TOTAL LIABILITIES & EQUITY */
    font-weight: bold;
    font-size: 11.5pt;
    border-top: 1.5px solid var(--liq-text);
    border-bottom: 2.5px double var(--liq-text); /* Double line */
    padding-top: 5px;
    padding-bottom: 5px;
}
.balance-sheet-report-wrapper .whitespace-row-bs td {
    padding-top: 6px;
}

/* === Interactive Balance Sheet Enhancements === */

.bs-controls {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}
.bs-movement-toggle {
    padding: 4px 10px;
    border: 1px solid var(--liq-border);
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--liq-font-body);
    background: var(--liq-bg);
    cursor: pointer;
    color: var(--liq-text);
    transition: all 0.15s;
}
.bs-movement-toggle:hover { background: #e8e4e0; }
.bs-movement-toggle.active { background: var(--liq-accent); color: var(--liq-surface); border-color: var(--liq-accent); }

/* Collapsible */
.bs-collapsible { cursor: pointer; user-select: none; transition: background 0.15s; }
.bs-collapsible:hover { background: var(--liq-bg); }
.bs-chevron {
    display: inline-block;
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}
.bs-chevron.collapsed { transform: rotate(-90deg); }

/* Account rows */
.bs-account-row:hover td { background: var(--liq-bg); }

/* Movement columns */
.bs-change-positive { color: var(--liq-profit); }
.bs-change-negative { color: var(--liq-loss); }

/* Weight bar */
.bs-bar-cell {
    width: 60px;
    min-width: 60px;
    padding: 4px 4px !important;
    vertical-align: middle;
}
.bs-weight-bar {
    height: 6px;
    background: var(--liq-accent);
    border-radius: 3px;
    min-width: 2px;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.bs-account-row:hover .bs-weight-bar { opacity: 1; }

/* Table header for movement mode */
.bs-interactive th {
    padding: 4px 8px;
    text-align: right;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #717e96;
    border-bottom: 2px solid var(--liq-border);
    white-space: nowrap;
}
.bs-interactive th.description-column { text-align: left; }