/* Columna Nombre sticky (header + celdas) en scroll horizontal.
   Un solo contenedor de scroll. floatThead y border-collapse: collapse rompen el efecto. */

.nombre-col-scroll {
    max-height: min(70vh, 720px);
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.nombre-col-scroll .floatThead-container {
    display: none !important;
}

table.has-col-nombre-fijo,
table#agyt-table.has-col-nombre-fijo {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
}

table.has-col-nombre-fijo > thead > tr > th {
    position: sticky !important;
    top: 0;
    z-index: 4;
    background: var(--enco-blue, #001489) !important;
    color: #fff !important;
}

table.has-col-nombre-fijo[data-nombre-col="1"] > thead > tr > th:nth-child(1),
table.has-col-nombre-fijo[data-nombre-col="1"] > tbody > tr > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="1"] > tfoot > tr > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="2"] > thead > tr > th:nth-child(2),
table.has-col-nombre-fijo[data-nombre-col="2"] > tbody > tr > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="2"] > tfoot > tr > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="3"] > thead > tr > th:nth-child(3),
table.has-col-nombre-fijo[data-nombre-col="3"] > tbody > tr > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="3"] > tfoot > tr > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="4"] > thead > tr > th:nth-child(4),
table.has-col-nombre-fijo[data-nombre-col="4"] > tbody > tr > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="4"] > tfoot > tr > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="5"] > thead > tr > th:nth-child(5),
table.has-col-nombre-fijo[data-nombre-col="5"] > tbody > tr > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="5"] > tfoot > tr > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="6"] > thead > tr > th:nth-child(6),
table.has-col-nombre-fijo[data-nombre-col="6"] > tbody > tr > td:nth-child(6):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="6"] > tfoot > tr > td:nth-child(6):not([colspan]) {
    position: sticky !important;
    left: 0 !important;
    min-width: 12.5rem !important;
    width: 14rem !important;
    max-width: 14.5rem !important;
    box-sizing: border-box;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-shadow: inset -8px 0 8px -6px rgba(0, 20, 137, 0.18);
}

table.has-col-nombre-fijo[data-nombre-col="1"] > thead > tr > th:nth-child(1),
table.has-col-nombre-fijo[data-nombre-col="2"] > thead > tr > th:nth-child(2),
table.has-col-nombre-fijo[data-nombre-col="3"] > thead > tr > th:nth-child(3),
table.has-col-nombre-fijo[data-nombre-col="4"] > thead > tr > th:nth-child(4),
table.has-col-nombre-fijo[data-nombre-col="5"] > thead > tr > th:nth-child(5),
table.has-col-nombre-fijo[data-nombre-col="6"] > thead > tr > th:nth-child(6) {
    top: 0 !important;
    z-index: 6 !important;
    background: var(--enco-blue, #001489) !important;
    color: #fff !important;
}

table.has-col-nombre-fijo[data-nombre-col="1"] > tbody > tr > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="2"] > tbody > tr > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="3"] > tbody > tr > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="4"] > tbody > tr > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="5"] > tbody > tr > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="6"] > tbody > tr > td:nth-child(6):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="1"] > tfoot > tr > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="2"] > tfoot > tr > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="3"] > tfoot > tr > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="4"] > tfoot > tr > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="5"] > tfoot > tr > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="6"] > tfoot > tr > td:nth-child(6):not([colspan]) {
    z-index: 3 !important;
    background-color: #fff !important;
    text-align: left !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

table.has-col-nombre-fijo[data-nombre-col="1"] > tbody > tr > td:nth-child(1):not([colspan]) *,
table.has-col-nombre-fijo[data-nombre-col="2"] > tbody > tr > td:nth-child(2):not([colspan]) *,
table.has-col-nombre-fijo[data-nombre-col="3"] > tbody > tr > td:nth-child(3):not([colspan]) *,
table.has-col-nombre-fijo[data-nombre-col="4"] > tbody > tr > td:nth-child(4):not([colspan]) *,
table.has-col-nombre-fijo[data-nombre-col="5"] > tbody > tr > td:nth-child(5):not([colspan]) *,
table.has-col-nombre-fijo[data-nombre-col="6"] > tbody > tr > td:nth-child(6):not([colspan]) * {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

table.has-col-nombre-fijo.table-striped[data-nombre-col="1"] > tbody > tr:nth-of-type(odd) > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo.table-striped[data-nombre-col="2"] > tbody > tr:nth-of-type(odd) > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo.table-striped[data-nombre-col="3"] > tbody > tr:nth-of-type(odd) > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo.table-striped[data-nombre-col="4"] > tbody > tr:nth-of-type(odd) > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo.table-striped[data-nombre-col="5"] > tbody > tr:nth-of-type(odd) > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo.table-striped[data-nombre-col="6"] > tbody > tr:nth-of-type(odd) > td:nth-child(6):not([colspan]) {
    background-color: #f2f4f8 !important;
}

table.has-col-nombre-fijo[data-nombre-col="1"] > tbody > tr:hover > td:nth-child(1):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="2"] > tbody > tr:hover > td:nth-child(2):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="3"] > tbody > tr:hover > td:nth-child(3):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="4"] > tbody > tr:hover > td:nth-child(4):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="5"] > tbody > tr:hover > td:nth-child(5):not([colspan]),
table.has-col-nombre-fijo[data-nombre-col="6"] > tbody > tr:hover > td:nth-child(6):not([colspan]) {
    background-color: #fafbfd !important;
}
