/**
 * Bootstrap 5 Override Styles
 * Este archivo contiene estilos que sobrescriben los estilos predeterminados de Bootstrap 5
 * Específicamente para tablas personalizadas con la clase table-blue
 */

/* ========================================
   TABLA table-blue - Encabezado Naranja
   ======================================== */

table.table-blue thead tr,
table.table-blue > thead > tr,
.table.table-blue thead tr,
.table.table-blue > thead > tr {
    background-color: #ff6326 !important;
}

table.table-blue thead tr th,
table.table-blue thead th,
table.table-blue > thead > tr > th,
.table.table-blue thead tr th,
.table.table-blue thead th,
.table.table-blue > thead > tr > th {
    background-color: #ff6326 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 10px !important;
    border: none !important;
}

.table.table-blue.table-precios thead tr.tableSubHead,
table.table-blue.table-precios thead tr.tableSubHead,
.table.table-blue.table-precios > thead > tr.tableSubHead {
    background-color: #EFEFEF !important;
}

.table.table-blue.table-precios thead tr.tableSubHead th,
table.table-blue.table-precios thead tr.tableSubHead th,
.table.table-blue.table-precios > thead > tr.tableSubHead > th,
.table.table-blue.table-precios thead tr.tableSubHead > th {
    background-color: #EFEFEF !important;
    color: #ff6804 !important;
}

/* ========================================
   TABLA table-blue - Efecto Zebra
   ======================================== */

/* Filas impares - Gris claro */
table.table-blue tbody tr:nth-of-type(odd),
table.table-blue tbody tr:nth-child(odd),
table.table-blue > tbody > tr:nth-of-type(odd),
table.table-blue > tbody > tr:nth-child(odd),
.table.table-blue tbody tr:nth-of-type(odd),
.table.table-blue tbody tr:nth-child(odd),
.table.table-blue > tbody > tr:nth-of-type(odd),
.table.table-blue > tbody > tr:nth-child(odd) {
    background-color: #E9E8E8 !important;
}

table.table-blue tbody tr:nth-of-type(odd) td,
table.table-blue tbody tr:nth-child(odd) td,
table.table-blue > tbody > tr:nth-of-type(odd) > td,
table.table-blue > tbody > tr:nth-child(odd) > td,
.table.table-blue tbody tr:nth-of-type(odd) td,
.table.table-blue tbody tr:nth-child(odd) td,
.table.table-blue > tbody > tr:nth-of-type(odd) > td,
.table.table-blue > tbody > tr:nth-child(odd) > td {
    background-color: #E9E8E8 !important;
    border: none !important;
}

table.table-blue tbody tr:nth-of-type(even),
table.table-blue tbody tr:nth-child(even),
table.table-blue > tbody > tr:nth-of-type(even),
table.table-blue > tbody > tr:nth-child(even),
.table.table-blue tbody tr:nth-of-type(even),
.table.table-blue tbody tr:nth-child(even),
.table.table-blue > tbody > tr:nth-of-type(even),
.table.table-blue > tbody > tr:nth-child(even) {
    background-color: #F6F6F6 !important;
}

table.table-blue tbody tr:nth-of-type(even) td,
table.table-blue tbody tr:nth-child(even) td,
table.table-blue > tbody > tr:nth-of-type(even) > td,
table.table-blue > tbody > tr:nth-child(even) > td,
.table.table-blue tbody tr:nth-of-type(even) td,
.table.table-blue tbody tr:nth-child(even) td,
.table.table-blue > tbody > tr:nth-of-type(even) > td,
.table.table-blue > tbody > tr:nth-child(even) > td {
    background-color: #F6F6F6 !important;
    border: none !important;
}

/* ========================================
   CONTEXTOS ESPECÍFICOS: Modal y Mini-container
   ======================================== */

.modal table.table-blue thead tr th,
.modal .table.table-blue thead th,
.modal-body table.table-blue thead th,
.mini-container table.table-blue thead th,
.mini-container .table.table-blue thead th {
    background-color: #ff6326 !important;
    color: #ffffff !important;
}

.modal table.table-blue tbody tr:nth-of-type(odd) td,
.modal .table.table-blue tbody tr:nth-child(odd) td,
.modal-body table.table-blue tbody tr:nth-of-type(odd) td,
.mini-container table.table-blue tbody tr:nth-of-type(odd) td,
.mini-container .table.table-blue tbody tr:nth-child(odd) td {
    background-color: #E9E8E8 !important;
}

.modal table.table-blue tbody tr:nth-of-type(even) td,
.modal .table.table-blue tbody tr:nth-child(even) td,
.modal-body table.table-blue tbody tr:nth-of-type(even) td,
.mini-container table.table-blue tbody tr:nth-of-type(even) td,
.mini-container .table.table-blue tbody tr:nth-child(even) td {
    background-color: #F6F6F6 !important;
}

/* ========================================
   SOBRESCRIBIR ESTILOS DE BOOTSTRAP 5
   ======================================== */

table.table-blue tbody tr:hover,
.table.table-blue tbody tr:hover {
    --bs-table-hover-bg: transparent !important;
}

table.table-blue,
.table.table-blue {
    --bs-table-border-color: transparent !important;
}

table.table-blue td,
table.table-blue th,
.table.table-blue td,
.table.table-blue th {
    border-color: transparent !important;
}


