

/* Estilo del formulario */
.mtb-formulario {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    box-sizing: border-box;
    margin: 30px auto;
    border: 1px solid #e0e0e0;
}

.mtb-formulario h1 {
    color: #444;
    font-size: 26px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* Estilos de los grupos de formulario */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    color: #333;
    background-color: #fdfdfd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="file"] {
    padding: 6px;
}

/* Botones de acción */
input[type="submit"].button, /* Botón de búsqueda */
input[type="submit"].button-secondary { /* Botón de exportación */
    background-color: #17a2b8; /* Color específico para el botón de buscar */
    color: #ffffff;
    border: none;
    padding: 4px 8px; /* Ajuste para tamaño del contenido */
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px; /* Tamaño reducido */
    transition: background-color 0.3s ease, transform 0.2s;
    display: inline-block;
    margin-top: 10px;
}

input[type="submit"].button:hover,
input[type="submit"].button-secondary:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.3);
}

/* Contenedor para scroll horizontal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 30px;
}

/* Estilo mejorado para la tabla */
table.mtb-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
}

table.mtb-table th, table.mtb-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 13px;
    white-space: nowrap; /* Evita la división de texto en toda la tabla */
}

table.mtb-table th {
    background-color: #e9ecef;
    color: #444;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}

table.mtb-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table.mtb-table tr:hover {
    background-color: #f1f3f5;
}

@media (max-width: 768px) {
    /* Ajustes para asegurar que el texto no se divida */
    table.mtb-table th, table.mtb-table td {
        display: block;
        width: 100%;
        white-space: nowrap; /* Mantiene el texto en una sola línea */
    }

    table.mtb-table td {
        padding-left: 50%;
        text-align: right;
    }

    table.mtb-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding: 5px;
        font-weight: bold;
        background-color: #f8f9fa;
        border-bottom: 1px solid #ddd;
        display: block;
    }
}
