/* Tables - Diseño Moderno */
table{
    margin: auto;
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    table-layout: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

thead{
    position: sticky;
    top: 0;
    z-index: 10;
}

/* div table */
.div-table{
    overflow-y: auto;
    overflow-x: auto;
    margin: auto;
    width: fit-content;
    max-width: 95%;
    border-radius: 10px;
}

/* tables heads */
.th{
    text-align: center;
    background: linear-gradient(180deg, var(--color1) 0%, var(--color1) 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.th:first-child{
    border-top-left-radius: 10px;
}

.th:last-child{
    border-top-right-radius: 10px;
}

/* body */
.body {
    font-weight: 400;
    text-align: center;
    font-size: 13px;
    color: #2c3e50;
}

.body-std {
    font-weight: 400;
    text-align: center;
    max-height: 2rem;
    padding: 10px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-size: 13px;
    color: #2c3e50;
}

.body-overflow{
    font-weight: 400;
    padding: 10px 12px;
    text-align: center;
    max-height: 2rem;
    font-size: 13px;
    color: #2c3e50;
}

.body-even{
    background-color: white;
}

.body-odd{
    background-color: #f1f3f5;
}

tbody tr{
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

tbody tr:hover{
    background-color: #f0f7ff !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

tbody tr:last-child{
    border-bottom: none;
}

.allowed-icon{
    cursor: pointer;
    color: var(--color1);
    transition: all 0.2s ease;
    font-size: 16px;
}

.allowed-icon:hover{
    color: var(--color2);
    transform: scale(1.2);
}

.unabled-icon{
    color: #cbd5e0;
}

/* table tooltips */
.t-tooltip{
    font-size: 12px;
    position: absolute;
    display: none;
    text-align: center;
    background-color: #2c3e50;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.t-tooltip::after{
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

/* Scrollbar personalizado para tablas */
.div-table::-webkit-scrollbar{
    width: 8px;
    height: 8px;
}

.div-table::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 4px;
}

.div-table::-webkit-scrollbar-thumb{
    background: #c1c1c1;
    border-radius: 4px;
}

.div-table::-webkit-scrollbar-thumb:hover{
    background: #a8a8a8;
}


