/* ========= Eagle Table 2 Styles (Override All) ========= */
.eagle-table2 tbody, .eagle-table2 td, .eagle-table2 tfoot, .eagle-table2 th, .eagle-table2 thead, .eagle-table2 tr, .eagle-table2{
    border: 1px solid #000 !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
    font-size: 11px !important;
    line-height: 14px !important;
    padding: 5px !important;
    color: #000 !important;
}

.eagle-table2 p{
    font-size: 11px !important;
    line-height: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.eagle-table2 button{
    margin: 0.3em !important;
    padding: 0 5px !important;
    color: blue !important;
    min-width: 20px !important;
    text-align: center !important;
}

.eagle-table2 button:hover{
    color: red !important;
    border: 1px solid red !important;
    background-color: #ffdcdc !important;
}

.eagle-table2 thead tr th{
    background-color: #105714 !important;
    color: #fff !important;
    font-weight: bold !important;
}

/* Alternating row colors - MUST come BEFORE hover */


table.eagle-table2 tbody tr:nth-child(even),
table.eagle-table2 tbody tr:nth-child(even) > td,
table.eagle-table2 tbody tr:nth-child(even) > th{
    background-color: #e4e4e4;
}

/* Hover MUST be LAST to override nth-child */
table.eagle-table2 tbody tr:hover > td,
table.eagle-table2 tbody tr:hover > th{
    background-color: #f7f58d !important;
    color: black !important;
}

/* ========= Dark Mode Support ========= */
body[data-bs-theme="dark"] .eagle-table2 tbody, 
body[data-bs-theme="dark"] .eagle-table2 td, 
body[data-bs-theme="dark"] .eagle-table2 tfoot, 
body[data-bs-theme="dark"] .eagle-table2 th, 
body[data-bs-theme="dark"] .eagle-table2 thead, 
body[data-bs-theme="dark"] .eagle-table2 tr, 
body[data-bs-theme="dark"] .eagle-table2{
    border-color: #444 !important;
    color: #e2e8f0 !important;
}

body[data-bs-theme="dark"] .eagle-table2 thead tr th{
    background-color: #1e4a72 !important;
    color: #fff !important;
}

/* Dark mode alternating rows - MUST come BEFORE hover */
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(odd),
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(odd) > td,
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(odd) > th{
    background-color: #1a3a4a !important;
}

body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(even),
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(even) > td,
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:nth-child(even) > th{
    background-color: #0f2838 !important;
}

/* Dark mode hover - MUST be LAST to override nth-child */
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:hover > td,
body[data-bs-theme="dark"] table.eagle-table2 tbody tr:hover > th{
    background-color: #4a4a2d !important;
    color: #fff !important;
}
