/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    color: #333;
}

/* Tabla general */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Pequeña sombra para mejorar diseño */
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Botones en formularios */
button {
    padding: 10px 15px;
    background-color: #007BFF; /* Color base azul */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3; /* Color más oscuro al pasar el mouse */
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Contenedores responsivos */
.table-wrapper {
    overflow-x: auto; /* Habilita desplazamiento horizontal en pantallas pequeñas */
}

/* Importante para textos */
.texto-importante {
    font-weight: bold;
    color: red;
    background-color: yellow;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}

/* Formularios */
form {
    margin: 15px 0;
}

input[type="text"], input[type="number"], input[type="date"], select {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }

    button {
        padding: 8px 10px;
        font-size: 14px;
    }

    input[type="text"], input[type="number"], input[type="date"], select {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18px;
        margin: 10px 0;
    }

    button {
        width: 100%; /* Botones ocupan todo el ancho en pantallas muy pequeñas */
        font-size: 14px;
    }

    input[type="text"], input[type="number"], input[type="date"], select {
        font-size: 14px;
    }

    .texto-importante {
        font-size: 12px; /* Reducir texto importante en móviles pequeños */
    }
}

/* Estilo para títulos importantes */
.important-header {
    color: #fff; /* Texto en blanco */
    background-color: #e74c3c; /* Fondo rojo para indicar urgencia */
    padding: 10px 15px; /* Relleno para darle más espacio */
    border-radius: 8px; /* Bordes redondeados */
    font-weight: bold; /* Texto en negrita */
    text-align: center; /* Centrar texto */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
    font-size: 1.5rem; /* Tamaño de fuente */
}

.form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-inline {
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px; /* Reduce el tamaño en dispositivos más pequeños */
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    button {
        font-size: 0.9rem;
    }

    .table-wrapper {
        padding: 10px;
    }

    .form-container {
        width: 95%; /* Asegura que se use casi todo el ancho de la pantalla */
    }
}

/* Estilo de la tabla */
table {
    width: 100%;
    border-collapse: collapse; /* Elimina los bordes dobles entre celdas */
}

/* Encabezado de la tabla */
thead th {
    background-color: #007BFF; /* Fondo azul oscuro */
    color: white; /* Texto blanco */
    padding: 10px;
    text-align: left;
}

/* Renglones alternados */
tbody tr:nth-child(odd) {
    background-color: #f0f8ff; /* Azul claro */
}

tbody tr:nth-child(even) {
    background-color: white; /* Blanco */
}

/* Bordes de la tabla */
th, td {
    border: 1px solid #ddd; /* Borde gris claro */
    padding: 8px;
}

/* Resalto al pasar el ratón */
tbody tr:hover {
    background-color: #cce5ff; /* Cambia a un azul más claro */
}
