/* ========================================================= */
/* 1. ACTIVE GLOBAL RESET (BRANDED FOUNDATION)               */
/* ========================================================= */

/* Global Reset for all BI Chart Tables */
.view-bi-charts table {
    width: 100% !important;
    table-layout: fixed; /* Enforces strict column alignment */
    border-collapse: collapse;
    margin: 0;
    background-color: #FFFFFF; /* White Background */
    color: #1C1C1C; /* Near-Black Primary Text */
}

/* TARGET: Month Headers (th) AND Unified Description Header Cell */
.view-bi-charts th[class*="bawd-table-time-"],
.view-bi-charts th.bawd-table-description,
.view-bi-charts .cash-flow-table-block thead th {
    background-color: #083F4B !important; /* Deep Teal Ink */
    color: #FFFFFF !important; /* White text for contrast */
    font-size: 10px !important;
    white-space: nowrap !important;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #2998A7 !important; /* Cool Teal Gray UI Line */
}

/* TARGET: Data Cells (td) */
.view-bi-charts td[class*="bawd-table-time-"] {
    font-size: 8px !important;
    width: 5% !important; /* Enforced 5% width for time columns */
    min-width: 40px;
    text-align: center;
    border: 1px solid #F8FAFB; /* Subtle Off-White Border */
    padding: 6px 4px;
}

/* TARGET: Description Column (Gray Spine) */
.view-bi-charts .bawd-table-description, .view-bi-charts .views-field-field-bi-table-item-description, .view-bi-charts .views-field-nothing {
    width: 175px !important;
    min-width: 150px !important;
    box-sizing: border-box !important;
    text-align: left;
    font-size: 9px !important;
    font-weight: 600 !important;
    padding: 8px 10px !important;
    background-color: #F8FAFB !important;
    border: 1px solid #2998A7 !important;
    color: #1C1C1C !important;
}

/* ========================================================= */
/* 2. CBLOCK LAYOUT & NESTING OPTIMIZATION                   */
/* ========================================================= */

/* Force embedded tables to match system table footprint */
.bawd-cblock-type-table table {
    width: 100% !important;
    table-layout: fixed;
}

/* Tighten the vertical stack of line items to remove gaps */
.bawd-cash-flow-table-line-items .views-field {
    margin-bottom: -1px !important; 
    padding: 0 !important;
}

/* Enforce header color for the specific CBlock description header */
.cash-flow-table-block .views-field-nothing-1 .bawd-table-description {
    background-color: #083F4B !important; /* Matches Month Headers */
    color: #FFFFFF !important;
}

/* ========================================================= */
/* 3. SUMMARY FOOTER STYLING                                 */
/* ========================================================= */

/* Ensure utility footer matches the global table width and alignment */
.bawd-summary-footer-table table {
    width: 100% !important;
    table-layout: fixed;
}

/* STUFF TORY ADDED */
.startup-longterm-assets-sblock tfoot, 
.startup-longterm-assets-sblock tfoot td.views-field-field-bi-table-item-description {
    background: #083f4b !important;
    color: #fff !important;
    font-weight: 800 !important;
}


/* ========================================================= */
/* 4. ACTIVE DISPLAY RULES (RETAINED)                        */
/* ========================================================= */
/* [Your display: none rules remain safely hidden here] */

.darkness-stuff {
	display: none !important;
}

/* ALL "display: none !important;" SELECTORS */
.cash-flow-table-block .cash-flow-embed-revenue-forecast tbody,
.cash-flow-table-block .cash-flow-embed-revenue-forecast thead,
.cash-flow-table-block .cash-flow-embed-cogs tbody,
.cash-flow-table-block .cash-flow-embed-cogs thead,
.cash-flow-table-block .cash-flow-embed-gross-profits tbody,
.cash-flow-table-block .cash-flow-embed-gross-profits thead,
.cash-flow-table-block .cash-flow-embed-fixed-expenses tbody,
.cash-flow-table-block .cash-flow-embed-fixed-expenses thead,
.cash-flow-table-block .cash-flow-embed-personnel-expenses tbody,
.cash-flow-table-block .cash-flow-embed-personnel-expenses thead,
.profit-loss-table-block .pl-table-embed-revenue-forecast tbody,
.profit-loss-table-block .pl-table-embed-revenue-forecast thead,
.profit-loss-table-block .pl-table-embed-cogs tbody,
.profit-loss-table-block .pl-table-embed-cogs thead,
.profit-loss-table-block .pl-table-embed-gross-profits tbody,
.profit-loss-table-block .pl-table-embed-gross-profits thead,
.profit-loss-table-block .pl-table-embed-fixed-expenses tbody,
.profit-loss-table-block .pl-table-embed-fixed-expenses thead,
.profit-loss-table-block .pl-table-embed-personnel-expenses tbody,
.profit-loss-table-block .pl-table-embed-personnel-expenses thead,
.profit-loss-table-block .pl-table-embed-pl-adjustments tbody,
.profit-loss-table-block .pl-table-embed-pl-adjustments thead,
.bs-longterm-liabilities-sblock .view-empty-table-placeholder thead,
.darkness-stuff,
.view-display-id-block_cash_flow .views-field-field-tax-rate,
.view-display-id-block_cash_flow .views-field-field-fa-tax-model,
.view-display-id-block_cash_flow [class*="views-field-field-funding-"],
.embedded-current-assets-bs thead,
.embedded-current-assets-startup thead,
.embedded-lt-assets-pl thead,
.embedded-lt-assets-bs thead,
.bawd-cash-flow-table-line-items .views-field-view-1 thead,
.bawd-cash-flow-table-line-items .views-field-view-2 thead,
.bawd-cash-flow-table-line-items .views-field-view-3 thead,
.bawd-cash-flow-table-line-items .views-field-view-4 thead,
.bawd-cash-flow-table-line-items .views-field-view-5 thead,
.bawd-profit-loss-line-items .views-field-view-1 thead,
.bawd-profit-loss-line-items .views-field-view-2 thead,
.bawd-profit-loss-line-items .views-field-view-3 thead,
.bawd-profit-loss-line-items .views-field-view-4 thead,
.bawd-profit-loss-line-items .views-field-view-5 thead,
.view-display-id-block_balance_sheet_table .cash-flow-table-block .revenue-table-block tfoot, 
.view-display-id-block_balance_sheet_table .cash-flow-table-block .variable-expense-table-block tfoot, 
.view-display-id-block_balance_sheet_table .cash-flow-table-block .gross-profit-table-block tfoot, 
.view-display-id-block_balance_sheet_table .cash-flow-table-block .fixed-expense-table-block tfoot, 
.view-display-id-block_balance_sheet_table .cash-flow-table-block .personnel-table-block tfoot,
.view-display-id-block_balance_sheet_table .startup-current-assets-sblock tbody,
.view-display-id-block_balance_sheet_table .embedded-lt-assets-startup tbody,
.detailed-balance-sheet-cblock .revenue-table-block thead,
.detailed-balance-sheet-cblock .cash-flow-table-block .views-field-view,
.detailed-balance-sheet-cblock .cash-flow-table-block .views-field-view-1,
.detailed-balance-sheet-cblock .cash-flow-table-block .views-field-view-2,
.detailed-balance-sheet-cblock .cash-flow-table-block .views-field-view-4,
.detailed-balance-sheet-cblock .cash-flow-table-block .views-field-view-5,
.detailed-balance-sheet-cblock .net-cash-flow-summary tr#cash-flow-sum-row,
.detailed-balance-sheet-cblock .net-cash-flow-summary tr#gross-cash-flow-row,
.dbs-embedded-pl-taxes-interest thead,
.dbs-embedded-pl-taxes-interest tfoot,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view-1,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view-2,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view-4,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view-5,
.bs-equity-retained-earnings-sblock .profit-loss-table-block .views-field-view-3,
.bs-equity-retained-earnings-sblock tr#pl-expenses-sum-row,
.bs-equity-retained-earnings-sblock tr#loan-payment-row,
.bs-equity-retained-earnings-sblock tr#tax-burden-row,
.bs-equity-invested-capital-sblock tr.fuca-row,
.bs-equity-invested-capital-sblock .view-empty-table-placeholder,
.bs-longterm-liabilities-sblock .loan-interest-paid-summary-wrapper, 
.bs-longterm-liabilities-sblock .loan-principal-paid-summary-wrapper, 
.bs-longterm-liabilities-sblock .loan-total-payment-summary-wrapper {
    display: none !important;
}

/* ALL "display: none;" (WITHOUT !IMPORTANT) SELECTORS */
.view-display-id-sblock_revenue_cash_hand thead, 
.view-display-id-sblock_revenue_cash_hand tbody,
.dbs-embedded-purchase-startup thead, 
.dbs-embedded-purchase-startup tbody,
.dbs-embedded-gross-profit tbody,
.embedded-current-bs-adjustments thead {
    display: none;
}

/* TARGET: Data Cells (td) */
.view-bi-charts td[class*="bawd-table-time-"] {
    display: table-cell !important; /* Kills the block/flex behavior of .col-* grid classes */
    font-size: 8px !important;
    width: 5% !important; 
    min-width: 40px;
    text-align: center;
    border: 1px solid #F8FAFB; 
    padding: 6px 4px;
}

/* TARGET: Description Column (Gray Spine) */
.view-bi-charts .bawd-table-description {
    display: table-cell !important; /* Same fix for the description column */
    /* ... keep your existing width, min-width, box-sizing, etc. ... */
}

/* [Remainder of CSS remains commented out as requested] */


/* ========================================================= */
/* 2. INACTIVE RULES (COMMENTED OUT AS REQUESTED)            */
/* ========================================================= */

/* --- 1. GLOBAL TABLE STYLING --- */
/* Unified column sizing for the bawd-table-time scheme */
/*
[class*="bawd-table-time-"] {
    font-size: 8px !important;
    width: 5%;
    min-width: 40px;
    text-align: center;
}
*/

/* Unified description column width */
/*
.bawd-table-description, 
.views-field-field-bi-table-item-description {
    min-width: 150px !important;
    text-align: left;
    font-size: 11px;
}
*/

/* Ensures the Footers (Summaries) remain visible */
/*
.cash-flow-table-block tfoot,
.profit-loss-table-block tfoot {
    display: table-footer-group !important;
}
*/

/* --- 4. MANUAL SUMMARY ROW STYLING --- */
/*
#total-current-assets-row, #total-longterm-assets-row, #cash-flow-sum-row, #gross-cash-flow-row, #pl-expenses-sum-row {
    font-weight: bold;
    background-color: #f8f9fa;
    border-top: 1px solid lightgray;
    border-bottom: 2px solid lightgray;
}
*/

/* --- 5. LAYOUT ADJUSTMENTS --- */
/*
.embedded-current-assets-bs,
.embedded-current-assets-startup,
.embedded-lt-assets-pl,
.embedded-lt-assets-bs,
.embedded-current-assets-cash-flow .net-cash-flow-summary {
    margin-top: 14px;
}
*/

/* --- BATBLOCK FOOTER STYLING --- */
/* Targets the aggregation row in Revenue, COGs, Gross Profit, Fixed Exp, and Personnel */
/*.revenue-table-block table tfoot tr,
.variable-expense-table-block table tfoot tr,
.gross-profit-table-block table tfoot tr,
.fixed-expense-table-block table tfoot tr,
.personnel-table-block table tfoot tr {
    font-weight: bold;
    background-color: #f8f9fa; *//* Standard light-grey highlight */
    /*border-top: 2px solid #333; *//* Double-line accounting effect */
   /* color: #000;
} */

/* Fixes the "Label" cell in the footer to align with the description column */
/*
.revenue-table-block table tfoot tr td:first-child,
.variable-expense-table-block table tfoot tr td:first-child,
.gross-profit-table-block table tfoot tr td:first-child,
.fixed-expense-table-block table tfoot tr td:first-child,
.personnel-table-block table tfoot tr td:first-child {
    text-align: left;
    min-width: 150px; */ /* Matches your .bawd-table-description width */ /*
    padding-left: 10px;
}
*/

/* --- BATBLOCK FOOTER STYLING (The Summed Rows) --- */
/* Targets: Revenue, COGs, Gross Profit, Fixed Expenses, Personnel */

/* 1. ROW STYLING */
/* Adds the bold text, grey background, and double-border to the footer row */
/*.revenue-table-block table tfoot tr,
.variable-expense-table-block table tfoot tr,
.gross-profit-table-block table tfoot tr,
.fixed-expense-table-block table tfoot tr,
.personnel-table-block table tfoot tr {
    font-weight: bold;
    background-color: #f8f9fa; *//* Light grey highlight */
   /* border-top: 2px solid #333; 8//* Double line accounting effect */
/* color: #000;
}*/

/* --- CASH FLOW TABLE RESTORATION --- */
/* Overrides the "Summary" styling for embedded tables so they look like regular rows */
/* Specificity: Targets the batBlock footers ONLY when inside the Cash Flow Block */

/*
.cash-flow-table-block .revenue-table-block table tfoot tr,
.cash-flow-table-block .variable-expense-table-block table tfoot tr,
.cash-flow-table-block .gross-profit-table-block table tfoot tr,
.cash-flow-table-block .fixed-expense-table-block table tfoot tr,
.cash-flow-table-block .personnel-table-block table tfoot tr {
    background-color: transparent !important; */ /* Removes the grey highlight */ /*
    font-weight: normal !important;           */ /* Removes bold text */ /*
    border-top: 1px solid #ddd !important;    */ /* Reverts to a standard thin light-grey border */ /*
    color: inherit !important;                */ /* Resets text color */ /*
}
*/

/* Optional: Tweaks the first cell padding to ensure it looks like a standard label */
/*
.cash-flow-table-block .revenue-table-block table tfoot tr td:first-child,
.cash-flow-table-block .variable-expense-table-block table tfoot tr td:first-child,
.cash-flow-table-block .gross-profit-table-block table tfoot tr td:first-child,
.cash-flow-table-block .fixed-expense-table-block table tfoot tr td:first-child,
.cash-flow-table-block .personnel-table-block table tfoot tr td:first-child {
    padding-left: 10px; */ /* Maintains alignment with other rows */ /*
}
*/

/* --- CASH FLOW LAYOUT TWEAKS (Updated Selectors) --- */

/* 1. Tighten Vertical Spacing (The "Closer Together" Fix) */
/* Uses your working selectors with negative margins to pull rows tight */
/*
.bawd-cash-flow-table-line-items .views-field-view, 
.bawd-cash-flow-table-line-items .views-field-view-1, 
.bawd-cash-flow-table-line-items .views-field-view-2, 
.bawd-cash-flow-table-line-items .views-field-view-3, 
.bawd-cash-flow-table-line-items .views-field-view-4, 
.bawd-cash-flow-table-line-items .views-field-view-5 {
    margin-bottom: -19px !important;
}
*/

/* 2. SHOW the Header ONLY on the First Item (Revenue / .views-field-view) */
/*
.bawd-cash-flow-table-line-items .views-field-view thead {
    display: table-header-group !important;
}
*/

/* 4. RE-APPLY ROW STYLING RESTORATION */
/* Ensures these specific rows look like "normal" data rows inside the Cash Flow table */
/*
.bawd-cash-flow-table-line-items .views-field-view tfoot tr,
.bawd-cash-flow-table-line-items .views-field-view-1 tfoot tr,
.bawd-cash-flow-table-line-items .views-field-view-2 tfoot tr,
.bawd-cash-flow-table-line-items .views-field-view-3 tfoot tr,
.bawd-cash-flow-table-line-items .views-field-view-4 tfoot tr,
.bawd-cash-flow-table-line-items .views-field-view-5 tfoot tr {
    background-color: transparent !important;
    font-weight: normal !important;
    border-top: 1px solid #ddd !important;
    color: inherit !important;
}
*/

/* --- PROFIT & LOSS LAYOUT TWEAKS (Corrected Selector) --- */

/* 1. Reset Spacing (Collapses the default gaps) */
/* We use 0px instead of -19px so the tables touch the labels but don't cover them */
/*
.bawd-profit-loss-line-items .views-field-view, 
.bawd-profit-loss-line-items .views-field-view-1, 
.bawd-profit-loss-line-items .views-field-view-2, 
.bawd-profit-loss-line-items .views-field-view-3, 
.bawd-profit-loss-line-items .views-field-view-4, 
.bawd-profit-loss-line-items .views-field-view-5 {
    margin-bottom: -19px !important;
}
*/

/* 2. Style the Section Headers (Revenue, Fixed Expenses, etc.) */
/* Ensures these labels stand out and aren't covered by the table above */
/*
.bawd-profit-loss-line-items .views-label {
    display: block !important;
    font-weight: bold;
    font-size: 14px;
    background-color: #e9ecef; */ /* Optional: Very light grey bar to distinguish sections */ /*
    padding: 5px 10px;
    margin-top: 0px;
    border-top: 1px solid #ccc;
    width: 100%;
}
*/

/* 3. SHOW the Column Header ONLY on the First Item (Revenue) */
/*
.bawd-profit-loss-line-items .views-field-view thead {
    display: table-header-group !important;
}
*/

/* 5. RE-APPLY ROW STYLING RESTORATION */
/* Ensures embedded summaries look like "normal" data rows */
/*
.bawd-profit-loss-line-items .views-field-view tfoot tr,
.bawd-profit-loss-line-items .views-field-view-1 tfoot tr,
.bawd-profit-loss-line-items .views-field-view-2 tfoot tr,
.bawd-profit-loss-line-items .views-field-view-3 tfoot tr,
.bawd-profit-loss-line-items .views-field-view-4 tfoot tr,
.bawd-profit-loss-line-items .views-field-view-5 tfoot tr {
    background-color: transparent !important;
    font-weight: normal !important;
    border-top: 1px solid #ddd !important;
    color: inherit !important;
}
*/

/* 6. Label Alignment */
/*
.bawd-profit-loss-line-items .views-field-view tfoot tr td:first-child,
.bawd-profit-loss-line-items .views-field-view-1 tfoot tr td:first-child,
.bawd-profit-loss-line-items .views-field-view-2 tfoot tr td:first-child,
.bawd-profit-loss-line-items .views-field-view-3 tfoot tr td:first-child,
.bawd-profit-loss-line-items .views-field-view-4 tfoot tr td:first-child,
.bawd-profit-loss-line-items .views-field-view-5 tfoot tr td:first-child {
    padding-left: 10px;
}
*/

/* --- FIX LABEL/TABLE ALIGNMENT --- */

/* 1. Force the table to stretch to the full container width to match the grey headers */
/*
.profit-loss-table-block table {
    width: 100% !important;
}
*/

/* 1. Target ONLY the Startup: Current Assets footer row */
/*
tfoot tr:has(td[class*="suca-bawd-table-time-"]) td {
    background-color: #f5f5f5 !important; */ /* Matches Gross Cash Flow grey */ /*
    color: #333333 !important;            */ /* Dark text */ /*
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-top: 1px solid #e7e7e7 !important;
    border-bottom: 2px solid #333333 !important; */ /* Thick bottom border */ /*
}
*/

/* 2. EXPLICITLY force Balance Sheet: Current Assets to have NO background */
/* We target this based on the 'Balan...' text seen in your screenshot */
/*
tr:has(td:contains("BALANCE SHEET: CURRENT ASSETS")) td,
tr:has(td:contains("Balance Sheet: Current Assets")) td {
    background-color: transparent !important;
    background: none !important;
    border-bottom: 1px solid #ebe4df !important; */ /* Standard thin border */ /*
}
*/

/*
.bs-current-assets-sblock tfoot {
    background: #f5f5f5;
}
*/

/* Scope all styles to the specific Balance Sheet View */
/*
.view-display-id-block_balance_sheet_table {
  border-collapse: collapse;
  width: 100%;
}
*/

/* Base styling for all Summary Rows */
/*
.view-display-id-block_balance_sheet_table .longterm-assets-summary-wrapper,
.view-display-id-block_balance_sheet_table .embedded-sum-current-assets,
.view-display-id-block_balance_sheet_table .total-assets-summary-wrapper {
  margin-top: 5px;
  margin-bottom: 5px;
}
*/

/* Gray Sub-totals (Current Assets and Long-term Assets) */
/*
.view-display-id-block_balance_sheet_table .embedded-sum-current-assets tr,
.view-display-id-block_balance_sheet_table .longterm-assets-summary-wrapper tr {
  background-color: #f4f4f4; */ /* Light gray background */ /*
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  font-weight: bold;
}
*/

/* Teal Grand Total (Total Assets) */
/*
.view-display-id-block_balance_sheet_table .total-assets-summary-wrapper tr {
  background-color: #e0f2f1; */ /* Light teal background */ /*
  border-top: 2px solid #008080; */ /* Teal border top */ /*
  border-bottom: 3px double #008080; */ /* Double teal border bottom for emphasis */ /*
  color: #004d40; */ /* Dark teal text */ /*
  font-size: 1.1em;
}
*/

/* Ensure descriptions and values are vertically aligned */
/*
.view-display-id-block_balance_sheet_table td.bawd-table-description {
  padding-left: 10px;
  text-align: left;
}
*/

/*
.view-display-id-block_balance_sheet_table td[class*="-bawd-table-time-"] {
  padding: 8px 4px;
  text-align: center;
}
*/

/* DETAILED BALANCE SHEET */
/*
.dbs-embedded-funding-capitalization,
.bs-equity-invested-capital-sblock .funding-capitalization-sblock {
    margin-bottom: -19px;
}
*/

/*
.detailed-balance-sheet-cblock tfoot tr:has(td[class*="suca-bawd-table-time-"]) td {
    background: none !important;
    color: #333333 !important;
    font-weight: normal !important;
    text-transform: none !important;
    border-top: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
}
*/

/*
.cash-current-assets-summary-wrapper td, .cash-balance-assets-summary-wrapper td,
.embedded-current-assets-bs tfoot,
.detailed-balance-sheet-cblock .views-field-nothing-5 tfoot,
.embedded-current-bs-adjustments tfoot,
.dbs-embedded-lt-assets-startup tfoot,
.longterm-asset-balance-summary-wrapper tfoot,
.dbs-embedded-lt-assets-pl tfoot,
.su-longterm-asset-balance-summary-wrapper tfoot,
.pl-longterm-asset-balance-summary-wrapper tfoot,
.dbs-embedded-lt-assets-bs tfoot,
.total-tlil-summary-wrapper tfoot, 
.balance-tlil-summary-wrapper tfoot,
.profit-loss-table-block span.views-label,
.owner-contribution-balance-summary-wrapper, 
.outside-investment-balance-summary-wrapper {
    padding: 5px 12px !important;
    line-height: 2.1 !important;
    background: #f8f9fa !important;
}
*/

/*
.detailed-balance-sheet-cblock table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}
*/

/* Make the final Current Assets total pop */
/*
table.table.total-current-assets-summary-table td[class*="dbs-d-"] {
    font-weight: 800 !important; */ /* Extra bold for the final total */ /*
}
*/

/*
tr#total-current-assets-summary-row, 
tr#total-lt-asset-balance-summary-row,
.balance-invested-capital-summary-wrapper,
.balance-retained-earnings-summary-wrapper,
tr#balance-draws-reductions-summary-row {
    border-top: 1px solid lightgray;
    border-bottom: 2px solid lightgray;
    background: azure;
}
*/

/*
table.table.bs-adjustments-balance-summary-table, 
table.table.bs-longterm-asset-balance-summary-table {
    margin-bottom: 25px;
}
*/

/*
.total-current-assets-summary-wrapper {
    margin-bottom: 40px;
}
*/

/*
.su-longterm-asset-balance-summary-table,
.pl-longterm-asset-balance-summary-table,
.balance-tlil-summary-wrapper {
    border-top: 2px solid gray;
    border-bottom: 0.2em solid gray;
}
*/