body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container, .form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

input, select, textarea, button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

textarea {
    height: 100px;
    resize: vertical;
}

/* Estilos generales para las tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

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

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

td {
    word-wrap: break-word; /* Permite que el texto largo se ajuste */
    max-width: 150px; /* Define un ancho máximo para las celdas */
}

/* Estilos específicos para la tabla de detalles */
#detallesTable th:nth-child(1), #detallesTable td:nth-child(1) { /* ID */
    width: 5%;
}
#detallesTable th:nth-child(2), #detallesTable td:nth-child(2) { /* Liquidación */
    width: 8%;
}
#detallesTable th:nth-child(3), #detallesTable td:nth-child(3) { /* Factura */
    width: 8%;
}
#detallesTable th:nth-child(4), #detallesTable td:nth-child(4) { /* Proveedor */
    width: 12%;
}
#detallesTable th:nth-child(5), #detallesTable td:nth-child(5) { /* Fecha */
    width: 8%;
}
#detallesTable th:nth-child(6), #detallesTable td:nth-child(6) { /* Bien/Servicio */
    width: 12%;
}
#detallesTable th:nth-child(7), #detallesTable td:nth-child(7) { /* Tipo de Gasto */
    width: 10%;
}
#detallesTable th:nth-child(8), #detallesTable td:nth-child(8) { /* Precio Unitario */
    width: 8%;
}
#detallesTable th:nth-child(9), #detallesTable td:nth-child(9) { /* Total Factura */
    width: 8%;
}
#detallesTable th:nth-child(10), #detallesTable td:nth-child(10) { /* Estado */
    width: 10%;
}
#detallesTable th:nth-child(11), #detallesTable td:nth-child(11) { /* Archivos */
    width: 8%;
}
#detallesTable th:nth-child(12), #detallesTable td:nth-child(12) { /* Acciones */
    width: 10%;
}



/* Estilos para la tabla de liquidaciones */
#liquidacionesTable th:nth-child(1), #liquidacionesTable td:nth-child(1) { /* ID */
    width: 10%;
}
#liquidacionesTable th:nth-child(2), #liquidacionesTable td:nth-child(2) { /* Caja Chica */
    width: 20%;
}
#liquidacionesTable th:nth-child(3), #liquidacionesTable td:nth-child(3) { /* Fecha Creación */
    width: 20%;
}
#liquidacionesTable th:nth-child(4), #liquidacionesTable td:nth-child(4) { /* Monto Total */
    width: 15%;
}
#liquidacionesTable th:nth-child(5), #liquidacionesTable td:nth-child(5) { /* Estado */
    width: 20%;
}
#liquidacionesTable th:nth-child(6), #liquidacionesTable td:nth-child(6) { /* Acciones */
    width: 15%;
}

/* Estilos para la tabla de cajas chicas */
#cajasChicasTable th:nth-child(1), #cajasChicasTable td:nth-child(1) { /* ID */
    width: 10%;
}
#cajasChicasTable th:nth-child(2), #cajasChicasTable td:nth-child(2) { /* Nombre */
    width: 25%;
}
#cajasChicasTable th:nth-child(3), #cajasChicasTable td:nth-child(3) { /* Monto Asignado */
    width: 15%;
}
#cajasChicasTable th:nth-child(4), #cajasChicasTable td:nth-child(4) { /* Monto Disponible */
    width: 15%;
}
#cajasChicasTable th:nth-child(5), #cajasChicasTable td:nth-child(5) { /* Estado */
    width: 15%;
}
#cajasChicasTable th:nth-child(6), #cajasChicasTable td:nth-child(6) { /* Acciones */
    width: 20%;
}

/* Estilos para la tabla de auditoría */
#auditoriaTable th:nth-child(1), #auditoriaTable td:nth-child(1) { /* ID */
    width: 5%;
}
#auditoriaTable th:nth-child(2), #auditoriaTable td:nth-child(2) { /* Liquidación */
    width: 10%;
}
#auditoriaTable th:nth-child(3), #auditoriaTable td:nth-child(3) { /* Detalle */
    width: 10%;
}
#auditoriaTable th:nth-child(4), #auditoriaTable td:nth-child(4) { /* Usuario */
    width: 15%;
}
#auditoriaTable th:nth-child(5), #auditoriaTable td:nth-child(5) { /* Tipo de Acción */
    width: 20%;
}
#auditoriaTable th:nth-child(6), #auditoriaTable td:nth-child(6) { /* Detalles */
    width: 25%;
}
#auditoriaTable th:nth-child(7), #auditoriaTable td:nth-child(7) { /* Fecha */
    width: 15%;
}

/* Estilos para la tabla de usuarios */
#usuariosTable th:nth-child(1), #usuariosTable td:nth-child(1) { /* ID */
    width: 10%;
}
#usuariosTable th:nth-child(2), #usuariosTable td:nth-child(2) { /* Nombre */
    width: 25%;
}
#usuariosTable th:nth-child(3), #usuariosTable td:nth-child(3) { /* Email */
    width: 30%;
}
#usuariosTable th:nth-child(4), #usuariosTable td:nth-child(4) { /* Rol */
    width: 20%;
}
#usuariosTable th:nth-child(5), #usuariosTable td:nth-child(5) { /* Acciones */
    width: 15%;
}

/* Estilos para los botones */
button {
    /* padding: 5px 10px; */
    margin: 2px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}



/* button:hover {
    background-color: #0056b3;
} */

a {
    color: #007bff;
    text-decoration: none;
    margin: 2px;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    .login-container, .form-container, table {
        width: 90%;
        margin: 0 auto;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
      
    }
    
}



.success {
    color: #28a745;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}


/* Estilos para la página de lista */
.page-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #2980b9;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
}

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

.data-table tr:hover {
    background-color: #e9ecef;
}

.revisar-btn {
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
   
}
#detallesLiquidacionesTable button:nth-child(1){
    background-color: #2ecc71;
}

#detallesLiquidacionesTable button:nth-child(3){
    background-color: #ec4d42;
}
.revisar-btn:hover {
    background-color: #27ae60;
}

/* Estilos para la página de revisión individual */
.detail-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.detail-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.status-pendiente,
.status-en-revisión {
    color: #f39c12;
    font-weight: bold;
}

.status-autorizado-por-contabilidad {
    color: #2ecc71;
    font-weight: bold;
}

.status-rechazado-por-contabilidad,
.status-descartado {
    color: #e74c3c;
    font-weight: bold;
}

.files-section h3 {
    margin-top: 20px;
    color: #2c3e50;
}

.file-list {
    list-style: none;
    margin-left: 20px;
}

.file-list li {
    margin: 5px 0;
}

.file-link {
    color: #3498db;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

.no-files {
    color: #7f8c8d;
}

.review-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-actions {
    margin-top: 20px;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #27ae60;
}

.cancel-btn {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #c0392b;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.success {
    color: #2ecc71;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        min-width: 150px;
    }

    .detail-card,
    .error-box {
        padding: 15px;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-actions .cancel-btn {
        margin-left: 0;
    }
}


/* Estilos generales para formularios */
.form-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.report-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

.success {
    color: #27ae60;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: none;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .report-form {
        padding: 15px;
        width: 90%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }
}



.form-group .invalid {
    border-color: red;
}

.form-group .error {
    color: red;
    font-size: 0.9em;
    display: none;
    margin-top: 5px;
}

#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#modal.active {
    display: flex;
}

#modalForm {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}