.tables {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 100%;
    table-layout: fixed;
}

.table_{
    width: max-content !important;
    border-collapse: collapse;
    font-size: 12px;
}

.tables thead {
    background: #2196f3; /* verde bootstrap */
    color: white;
    text-align: center;
}

.tables thead th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.tables tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.tables tbody tr:hover {
    background: #f6f9fc;
    transition: 0.2s;
}

.tables tbody tr:last-child td {
    border-bottom: none;
}

/* estados */
.normal {
    color: #212529;
    font-weight: 500;
}

.criticada {
    background-color: #dc3545;
    color:white;
    font-weight: 600;
}

.table_ th, .table_ td
{
    border:1ps solid;
    text-align:center;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    padding: 6px 10px;
}
.table_ thead
{
    text-transform: uppercase;
    border-bottom:2px solid #000;
}

.table_ td:first-child,
.table_ th:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
}


/* responsive básico */
@media (max-width: 768px) {
    .tables thead {
        display: none;
    }

    .tables, .tables tbody, .tables tr, .tables td {
        display: block;
        width: 100%;
    }

    .tables tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        padding: 10px;
    }

    .tables td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
    }

    .tables td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
    }
}

.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.paginacion a {
    padding: 8px 14px;
    background: #198754;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.paginacion a:hover {
    background: #146c43;
}