/* FROZEN COLUMNS - Target by position using :nth-child() */

/* First column (Date) - Subtle gray alternating for DARK MODE */
body.dark-mode table tbody tr td:nth-child(1),
body.dark-mode .rz-datatable tbody tr td:nth-child(1),
body.dark-mode .rz-grid-table tbody tr td:nth-child(1) {
    background-color: #2c3e50 !important;
    color: #e8e8e8 !important;
    font-weight: 500 !important;
    border-right: 1px solid #34495e !important;
}

/* Alternating rows - first column */
body.dark-mode table tbody tr:nth-child(even) td:nth-child(1),
body.dark-mode .rz-datatable tbody tr:nth-child(even) td:nth-child(1),
body.dark-mode .rz-grid-table tbody tr:nth-child(even) td:nth-child(1) {
    background-color: #253544 !important;
}

/* Second column (Total) - Subtle gray alternating for DARK MODE */
body.dark-mode table tbody tr td:nth-child(2),
body.dark-mode .rz-datatable tbody tr td:nth-child(2),
body.dark-mode .rz-grid-table tbody tr td:nth-child(2) {
    background-color: #2c3e50 !important;
    color: #e8e8e8 !important;
    font-weight: 500 !important;
    border-right: 1px solid #34495e !important;
}

/* Alternating rows - second column */
body.dark-mode table tbody tr:nth-child(even) td:nth-child(2),
body.dark-mode .rz-datatable tbody tr:nth-child(even) td:nth-child(2),
body.dark-mode .rz-grid-table tbody tr:nth-child(even) td:nth-child(2) {
    background-color: #253544 !important;
}

/* Headers - First column */
body.dark-mode table thead tr th:nth-child(1),
body.dark-mode .rz-datatable thead tr th:nth-child(1),
body.dark-mode .rz-grid-table thead tr th:nth-child(1) {
    background-color: #34495e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #4a5568 !important;
    border-right: 1px solid #34495e !important;
}

/* Headers - Second column */
body.dark-mode table thead tr th:nth-child(2),
body.dark-mode .rz-datatable thead tr th:nth-child(2),
body.dark-mode .rz-grid-table thead tr th:nth-child(2) {
    background-color: #34495e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #4a5568 !important;
    border-right: 1px solid #34495e !important;
}

/* Totals row - First column (only tfoot) */
body.dark-mode table tfoot tr td:nth-child(1),
body.dark-mode .rz-datatable tfoot tr td:nth-child(1),
body.dark-mode .rz-grid-table tfoot tr td:nth-child(1) {
    background-color: #34495e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Totals row - Second column (only tfoot) */
body.dark-mode table tfoot tr td:nth-child(2),
body.dark-mode .rz-datatable tfoot tr td:nth-child(2),
body.dark-mode .rz-grid-table tfoot tr td:nth-child(2) {
    background-color: #34495e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Border above entire totals row - all columns (only tfoot) */
body.dark-mode table tfoot tr td,
body.dark-mode .rz-datatable tfoot tr td,
body.dark-mode .rz-grid-table tfoot tr td {
    border-top: 2px solid #6c9bd1 !important;
    background-color: #34495e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* LIGHT MODE - No special colors, keep grid default styling */

/* ============================================
   HOMEPAGE REPORT SPECIFIC - Dark Mode Only
   ============================================ */

/* Homepage Report - Headers (Date & Total columns) */
body.dark-mode .homepagereport thead tr th.rz-frozen-cell,
body.dark-mode table.homepagereport thead tr th.rz-frozen-cell {
    background-color: #2a3f4d !important;
    color: #e8f4f8 !important;
    font-weight: 600 !important;
}

/* Homepage Report - Body cells (Date & Total columns) */
body.dark-mode .homepagereport tbody tr td.rz-frozen-cell,
body.dark-mode table.homepagereport tbody tr td.rz-frozen-cell {
    background-color: #1f3544 !important;
    color: #e8f4f8 !important;
}

/* Homepage Report - Body cells alternating rows (Date & Total columns) */
body.dark-mode .homepagereport tbody tr:nth-child(even) td.rz-frozen-cell,
body.dark-mode table.homepagereport tbody tr:nth-child(even) td.rz-frozen-cell {
    background-color: #243a49 !important;
    color: #e8f4f8 !important;
}

/* Homepage Report - Footer cells (Date & Total columns) */
body.dark-mode .homepagereport tfoot tr td.rz-frozen-cell,
body.dark-mode table.homepagereport tfoot tr td.rz-frozen-cell {
    background-color: #2a4455 !important;
    color: #e8f4f8 !important;
    font-weight: 700 !important;
}

