/* FINAL OVERRIDE - THIS MUST LOAD LAST TO FIX WHITE BACKGROUNDS */

/* FIX: Ensure main content doesn't go under fixed navbar */
.main {
    padding-top: 100px !important;
    margin-top: 0 !important;
}

/* Ensure navbar stays on top */
.modern-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* PRINT STYLES - Hide navbar and adjust spacing */
@media print {
    /* Hide navigation completely when printing */
    .modern-nav,
    nav.modern-nav,
    .nav-container,
    .nav-brand,
    .nav-links {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Remove extra padding from main content when printing */
    .main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Hide any no-print elements */
    .no-print {
        display: none !important;
    }
    
    /* Ensure body starts from top */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* KILL ALL WHITE BACKGROUNDS IN REPORTS SUMMARY */
.table.table-borderless td,
.table.table-borderless th,
.table-borderless td,
.table-borderless th {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* SPECIFIC SUMMARY VALUE CELLS */
.card-body .table-borderless td:nth-child(2),
.card-body .table-borderless td:last-child,
.card-body table td:nth-child(2),
.card-body table td:last-child {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* OVERRIDE BOOTSTRAP TABLE STYLES */
.table>:not(caption)>*>* {
    background-color: transparent !important;
}

/* FORCE ALL TD AND TH TO TRANSPARENT */
td, th {
    background: transparent !important;
    background-color: transparent !important;
}

/* REMOVE ROW HOVER EFFECT IN TIMESHEET GRID - MOST SPECIFIC RULES */
.table tbody tr:hover,
.modern-table tbody tr:hover,
.table-striped tbody tr:hover,
.table.table-striped tbody tr:hover,
table.table tbody tr:hover,
table tbody tr:hover,
tbody tr:hover,
tr:hover {
    background: rgba(30, 41, 59, 0.6) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
    background-image: none !important;
}

/* Also target any nth-child striped patterns */
.table tbody tr:nth-of-type(odd):hover {
    background: rgba(30, 41, 59, 0.6) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
}

.table tbody tr:nth-of-type(even):hover {
    background: rgba(30, 41, 59, 0.6) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
}

/* ACCORDION FIX - Ensure Bootstrap accordion works properly */
.accordion-collapse {
    background: transparent !important;
    background-color: transparent !important;
}

.accordion-collapse.collapse:not(.show) {
    display: none !important;
}

.accordion-collapse.collapse.show {
    display: block !important;
}

.accordion-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.accordion-button {
    background: rgba(30, 41, 59, 0.8) !important;
    color: var(--text-light, #cbd5e1) !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
    font-weight: 600 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.25) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(34, 211, 238, 0.15) !important;
    color: #22d3ee !important;
    box-shadow: inset 0 -1px 0 rgba(34, 211, 238, 0.2) !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: rgba(30, 41, 59, 0.4) !important;
    color: var(--text-light, #cbd5e1) !important;
    border-top: 1px solid rgba(34, 211, 238, 0.1) !important;
}

.accordion-item {
    background: transparent !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
    margin-bottom: 0.5rem !important;
}

.accordion-header {
    margin-bottom: 0 !important;
}