.responsive-table {
    border: 1px solid #ccc;
    border-collapse: separate;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

.responsive-table caption {
    font-size: 1.5em;
    margin: 0.5em 0 0.75em;
}

.responsive-table tr {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 0.35em;
}

.responsive-table th,
.responsive-table td {
    padding: 0.625em;
    text-align: center;
}

.responsive-table th {
    font-size: 0.85em;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 500px) {
    .responsive-table {
        border: 0;
    }

    .responsive-table caption {
        font-size: 1.3em;
    }

    .responsive-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .responsive-table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 0.625em;
        font-size: 12px;
    }

    .responsive-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 1em;
        text-align: right;
        font-size: 12px;
    }

    .responsive-table ul li {
        font-size: 12px;
    }

    .responsive-table span {
        font-size: 12px;
    }
    .responsive-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }
}

/* *************************
*                          *
*    Clases para tablas    *
*                          *
************************* */

.table-common {
    width: 100%;
    color: #212529;
    border: 0px;
    margin: 10px auto;
    margin-bottom: 30px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    border-collapse: separate;
}

th:first-child,
tr:first-child {
    border-top-left-radius: 10px;
}

th:last-child,
tr:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.table-common th {
    text-transform: uppercase;
    font-weight: 800;
}

.table-common td,
.table-common th {
    padding: 0.5rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    border: 0px;
}

@media (max-width: 768px) {
    .table-common td,
    .table-common th {
        padding: 0.35rem;
    }
}

@media (max-width: 443px) {
    .table-common td,
    .table-common th,
    .table-common thead {
        font-size: 10px;
    }
}

.table-common thead td,
.table-common thead th {
    vertical-align: middle;
    border-bottom-width: 2px;
}

.table-common tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-common tbody tr:nth-last-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-common thead tr th {
    column-span: 3;
    color: white;
    text-align: center;
}
/* Fin Clases para tablas */

/* *******************************************
*                                            *
*    Clases para tablas de programaciones    *
*                                            *
**********************************************/

.table-prog {
    border-collapse: separate;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* .table-prog caption {
    font-size: 1.5em;
    margin: 0.5em 0 0.75em;
} */

.table-prog th,
.table-prog td {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    border: 0px;
}

.table-prog th {
    text-transform: uppercase;
    color: white;
    font-weight: 800;
}

.table-prog tr {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    border: 0px;
}

.table-prog tbody tr:nth-last-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
    .table-prog {
        border: none;
    }

    /* .table-prog caption {
        font-size: 1.3em;
    } */

    .table-prog thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .table-prog td:first-child {
        background: linear-gradient(90deg, rgb(5, 81, 168) 0%, rgb(9, 146, 210) 70%, rgb(12 120 218) 100%);
        text-transform: uppercase;
        text-align: center !important;
        color: white;
        font-weight: bold;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
    }

    .table-prog tr {
        display: block;
        margin-bottom: 0.625em;
        text-align: right;
        padding: 0;
        border: 0.01rem solid #eeeeee;
        border-radius: 10px;
    }

    .table-prog td {
        border-top: 1px solid #eeeeee !important;
        display: block;
        font-size: 1em;
        text-align: left !important;
        font-size: 12px;
    }

    .table-prog ul li {
        font-size: 12px;
    }

    .table-prog span {
        font-size: 12px;
    }
    .table-prog td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        margin-right: 15px;
        margin-bottom: 10px;
    }

    td[data-label="Función"]::before {
        display: none;
    }

    td[data-label="Detalles"]::before {
        display: none;
    }

    .table-prog td:last-child {
        border-bottom: 0;
    }

    .table-prog tbody tr:nth-last-of-type(odd) {
        background-color: rgb(255, 255, 255);
    }
}

.table-prog caption {
    font-size: 1.3em;
}

.table-prog thead tr th {
    column-span: 3;
    color: white;
    text-align: center;
}

.table-prog ul li {
    font-size: 12px;
}

.table-prog tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.arrow-prog {
    color: #636363;
    font-size: 12px;
    margin: 0 4px;
}

/* Fin Clases para tablas de programaciones */

/* Clases para gradiente en encabezado de tablas */
.table-gradient {
    background: linear-gradient(90deg, rgb(5, 81, 168) 0%, rgb(9, 146, 210) 70%, rgb(12 120 218) 100%);
}
/* Fin Clases para gradiente en encabezado de tablas */

/* Clases para botón de detalles */
.details-button,
.details-button:active {
    justify-content: center;
    align-content: center;
    vertical-align: middle;
    background: linear-gradient(90deg, rgb(5, 81, 168) 0%, rgb(9, 146, 210) 70%, rgb(12 120 218) 100%);
    color: #ffffff;
    padding: 5px 0;
    width: 28px;
    height: 28px;
    margin: 3px 5px 0 5px;
    border-radius: 20px;
    -webkit-box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.25);
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 y IE 11 */
    user-select: none;
    cursor: pointer;
    outline: none !important;
}

.icons8-plus {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImZpbGw6bm9uZSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTSAxMSAyIEwgMTEgMTEgTCAyIDExIEwgMiAxMyBMIDExIDEzIEwgMTEgMjIgTCAxMyAyMiBMIDEzIDEzIEwgMjIgMTMgTCAyMiAxMSBMIDEzIDExIEwgMTMgMiBaIgpzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMiI+PC9wYXRoPgo8L3N2Zz4=") 50% 50% no-repeat;
    background-size: 100%;
    justify-content: center;
    align-content: center;
}

.details-button:hover {
    background: linear-gradient(90deg, rgb(15, 108, 214) 0%, rgb(23, 176, 247) 70%, rgb(22, 140, 250) 100%);
}

@media (max-width: 768px) {
    .details-button,
    .details-button:active {
        width: 100px;
        height: 32px;
        font-size: 14px;
        margin-left: 0;
        background: #D8D8D8;
    }

    .details-button::before {
        content: "Detalles";
        color: #4a4a4a;
        text-transform: uppercase;
        font-weight: bold;
    }

    .details-button:hover {
        background: linear-gradient(90deg, rgb(15, 108, 214) 0%, rgb(23, 176, 247) 70%, rgb(22, 140, 250) 100%);
    }

    .details-button:hover::before {
        color: #ffffff;
    }

    .icons8-plus {
        display: none;
    }
}

/* Fin Clases para botón de detalles */

/* Clases para tablas con texto */

.table-texto {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border: 1px solid #dee2e6;
    margin: 10px auto;
    margin-bottom: 10px;
}

.table-texto th {
    text-transform: uppercase;
    font-weight: 800;
}

.table-texto td,
.table-texto th {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    text-align: center !important;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .table-texto td,
    .table-texto th {
        padding: 0.35rem;
    }
}

@media (max-width: 443px) {
    .table-texto td,
    .table-texto th,
    .table-texto thead {
        font-size: 11px;
    }
}

.table-texto thead td,
.table-texto thead th {
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
    border-bottom-width: 2px;
}

.table-texto tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-texto tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-texto thead tr th {
    column-span: 3;
    background-color: #2d2d2d;
    color: white;
    text-align: center;
}
/* Fin Clases para tablas con texto */

/* Clases para tabla de comandos */

.tabla-comandos {
    max-width: 600px;
    margin: 10px 30px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.tabla-comandos th {
    text-transform: uppercase;
}

.tabla-comandos td,
.tabla-comandos th {
    padding: 0.5rem 0.75rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .tabla-comandos td,
    .tabla-comandos th {
        padding: 0.35rem;
    }
}

.tabla-comandos thead td,
.tabla-comandos thead th {
    vertical-align: middle;
    background-color: #016be4; /* Agrega el fondo oscuro al encabezado */
    color: white;
    text-align: center;
    font-weight: lighter;
}

.tabla-comandos tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.tabla-comandos tbody tr:nth-child(even) {
    background-color: #016be4; /* Agrega el fondo oscuro al encabezado */
    color: white;
}

.tabla-comandos tbody tr:nth-child(odd) {
    background-color: white;
}

.respuesta-comando {
    text-align: left !important;
    display: inline-block;
    font-style: italic;
}

/* Fin Clases para tabla de comandos */
