/* -----------------------------------
   LOADER (Overlay + Spinner)
----------------------------------- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 16px solid #007bff; /* Gris claro */
    border-top: 16px solid #007bff; /* Azul */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -----------------------------------
   ESTILOS LOGIN
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&family=Roboto:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/* Fondo con gradiente suave */
.login-page {
    min-height: 100vh;
    background: #444444 ;
    background-size: cover;
    display: flex;
    flex-direction: column;  /* Para colocar logo + contenedor de login en columna */
    justify-content: center;
    align-items: center;
}

/* Ícono del login (Logo) */
.login-icon {
    width: 160px; 
    height: auto;
    margin-bottom: 30px;
}

/* Contenedor principal del formulario */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Caja del formulario con efecto glassmorphism */
.login-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    margin: 0 auto; /* Centra horizontalmente */
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

/* Grupos de input */
.login-input-group {
    margin-bottom: 20px;
    text-align: left; /* Para alinear labels a la izquierda (si los usas) */
}

/* Inputs */
.login-input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.login-input-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 74, 173, 0.3);
}

/* Botón principal (CTA) */
.login-btn {
    background: #007bff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.login-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Mensajes de error */
.login-error-message {
    margin-top: 20px;
    text-align: center;
}

.login-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 14px;
}

.login-alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 768px) {
    .login-icon {
        width: 140px;
        margin-bottom: 20px;
    }
    .login-box {
        padding: 25px 20px;
        max-width: 90%;
    }
    .login-btn {
        font-size: 0.95rem;
    }
}

/* ESTILOS ACTUALIZADOS PARA ADMIN DASHBOARD */

/* Variables de color */
:root {
    --color-primario: #007bff;
    --color-secundario: #003a8c;
    --color-acento: #f0ad4e;
    --color-fondo: #ffffff;
    --color-blanco: #ffffff;
    --color-texto: #333333;
}


/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}


/* General Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-secundario);
    color: var(--color-texto);
}



.descripcion-dashboard {
    font-size: 1rem; /* Tamaño más grande para resaltar */
    color: #4a4a4a; /* Un gris oscuro para mayor legibilidad */
    font-weight: 500; /* Semi-bold para un énfasis más profesional */
    line-height: 1.8; /* Espaciado entre líneas más cómodo */
    margin-bottom: 1.5rem; /* Separación clara del contenido siguiente */
    margin-top: 1.5rem;
    text-align: justify; /* Alinear el texto para un acabado más formal */
  }
  
  .descripcion-dashboard strong {
    color: #007bff; /* Azul para el texto destacado */
    font-weight: 600; /* Aumentar el peso de la palabra destacada */
  }
  

/* Existing Styles for dashboard-container and dashboard-content */
.dashboard-container {
    display: flex;
    margin: 20px 20px 20px 270px; /* top, right, bottom, left */
    background-color: #f5f7fa;
    min-height: 100vh;
}
/* Existing Styles for dashboard-container and dashboard-content */
.dashboard-container22 {
    display: flex;
    margin: 20px 20px 20px 270px; /* top, right, bottom, left */
    background-color: #f5f7fa;
    min-height: 100vh;
}


.dashboard-container h2 {
    color: #363636;
    font-size: 1.2rem;
}

.dashboard-container22 h2 {
    color: #ffffff;
    font-size: 1.2rem;
}
.dashboard-content {
    background-size: cover;
    margin-left: 0px; 
    padding: 80px;
    flex-grow: 1;
    background-color: var(--color-blanco);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Admin Info Section */
.admin-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: -40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.admin-info-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-info-section h3 {
    margin-bottom: 15px;
    color: #007bff;
    font-size: 1.2rem;
}

.admin-info-section p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.admin-info-section strong {
    font-weight: bold;
    color: #ffffff;
}

/* Botón de menú para móviles */
.dashboard-sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: var(--color-primario);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    z-index: 1000;
}

.dashboard-sidebar-toggle i {
    font-size: 1.2rem;
}

/* Sidebar */
.dashboard-sidebar {
    flex: 0 0 220px;
    background-color: #f0f8ff;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.dashboard-sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.dashboard-sidebar ul {
    list-style: none;
    padding: 0;
}

.dashboard-sidebar ul li {
    margin-bottom: 15px;
}

.dashboard-sidebar ul li a {
    color: rgb(53, 53, 53);
    text-decoration: none;
    display: block;
    text-align: left;
    padding: 12px 15px;
    background-color: #f0f8ff;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.2s;
}

.dashboard-sidebar ul li a i {
    margin-right: 10px;
}

.dashboard-sidebar ul li a:hover {
    background-color: #007bff;
    transform: scale(1.05);
    color: rgb(255, 255, 255);
}

/* Dashboard Content Title */
.dashboard-content h1 {
    text-align: center;
    font-size: 1.2rem;
    color: #363636;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Dashboard Content Title */
.dashboard-content h2 {
    color: #363636;
    justify-content: center;
}
.dashboard-content h3 {
    color: #363636;
    justify-content: center;
    align-items: center;
}

.dashboard-content h1 i {
    margin-right: 10px;
}

/* KPI Section */
.dashboard-kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-kpi-card {
    background-color: var(--color-blanco);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.dashboard-kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.kpi-icon {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-blanco);
    width: 35px;        /* de 60px a ~42px */
    height: 35px;       /* de 60px a ~42px */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.kpi-icon-total-datarisk {
    background-color: #2196F3;
}

.kpi-icon-total-datainsight {
    background-color: #2196F3;
}

.kpi-icon-datarisk-pending,
.kpi-icon-datainsight-pending {
    background-color: #2196F3;
}

.kpi-icon-creditos-creados {
    background-color: #2196F3;
}

.kpi-icon-creditos-pagados {
    background-color: #28a745;
}

.kpi-icon-creditos-morosos {
    background-color: #F44336;
}

.kpi-icon-creditos-por-vencer {
    background-color: #f3b121;
}

.dashboard-kpi-card h3 {
    font-size: 1rem;
    color: var(--color-texto);
    margin-bottom: 10px;
}

.dashboard-kpi-card p {
    font-size: 1rem;
    color: var(--color-primario);
}

/* Charts Section */
.dashboard-charts-section {
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-charts-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Contenedor de los botones */
#yearTabs {
    display: flex;         /* Muestra los botones en línea */
    gap: 0.5rem;           /* Espacio horizontal entre ellos */
    margin-bottom: 1rem;   /* Separación inferior */
}

.year-tab {
    background-color: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #444;           /* Color de texto base */
    cursor: pointer;
    border-bottom: 2px solid transparent; 
    transition: border-color 0.2s, color 0.2s;
    outline: none;         /* Para quitar el contorno en algunos navegadores */
}

  /* Efecto hover */
.year-tab:hover {
    color: #007bff;        /* Cambia el color en hover */
}

/* Estilo de la pestaña activa */
.year-tab.active {
    color: #007bff;            /* Color resaltado */
    border-bottom-color: #007bff;  /* Línea inferior para destacar */
}

.dashboard-charts-row2 {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 60px;
    justify-content: space-between;
    flex-direction: row; /* Agrupa los contenedores en una fila (horizontal) */
    justify-content: flex-start; /* Ajusta la alineación horizontal */
    align-items: flex-start; /* Ajusta la alineación vertical */
}
.dashboard-chart {
    flex: 1;
    min-width: 300px;
    max-width: 1400px;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.dashboard-chart2 {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    
}

.dashboard-chart h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4b4b4b;
}

.dashboard-chart2 h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4b4b4b;
}

canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    background-color: var(--color-blanco);
    border: 2px solid var(--color-blanco);
    border-radius: 10px;
}


/* ESTILO DE REGISTRO*/

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Cambiar la tipografía del título del panel de registro */
.registro-admin-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.registro-admin-container {
    display: flex;
    margin: 20px 20px 20px 270px; /* top, right, bottom, left */
    background-color: #f5f7fa;
    min-height: 100vh;
}

.registro-sidebar {
    flex: 0 0 220px;
    background-color: #007bff;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.registro-sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.registro-sidebar ul {
    list-style: none;
    padding: 0;
}

.registro-sidebar ul li {
    margin-bottom: 15px;
}

.registro-sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #003a8c;
    border-radius: 5px;
}

.registro-sidebar ul li a:hover {
    background-color: #002d63;
}

.registro-container {
    margin-left:100px;
    margin-top: 50px;
    padding: 40px;
    flex-grow: 1;
    font-size: 1.2em;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilo base para el select */
.registro-estatus-select {
    width: auto; /* Ajuste automático al contenido */
    min-width: 120px; /* Ancho mínimo */
    padding: 6px 10px; /* Espaciado interno */
    font-size: 0.9rem; /* Tamaño del texto */
    color: #363636; /* Color del texto */
    background-color: #f9f9f9; /* Fondo claro */
    border: 1px solid #ddd; /* Borde suave */
    border-radius: 6px; /* Bordes redondeados */
    text-align: center; /* Centra horizontalmente el texto */
    line-height: 1.5; /* Ajusta la altura de línea */
    display: flex; /* Activa flexbox */
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: center; /* Centra horizontalmente */
    transition: all 0.3s ease; /* Transición suave */
    appearance: none; /* Remueve estilo predeterminado */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

/* Cambios al interactuar */
.registro-estatus-select:hover {
    background-color: #f1f1f1; /* Cambio de fondo */
    border-color: #007bff; /* Resalta el borde */
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2); /* Acentúa la sombra */
}

.registro-estatus-select:focus {
    outline: none; /* Elimina el borde azul predeterminado */
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3); /* Más énfasis en el foco */
}

/* Personalización según estatus */
.registro-estatus-aprobado {
    color: #28a745; /* Verde aprobado */
}

.registro-estatus-pendiente {
    color: #ffc107; /* Amarillo pendiente */
}

.registro-estatus-rechazado {
    color: #dc3545; /* Rojo rechazado */
}

/* Asegurar que el texto se ajuste dentro */
.registro-estatus-select option {
    white-space: nowrap; /* Evitar saltos de línea */
    overflow: hidden; /* Ocultar contenido desbordado */
    text-overflow: ellipsis; /* Añadir puntos suspensivos si es necesario */
}

/* Estilos para la tabla de registro */
.registro-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

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

.registro-table th {
    background-color: #007bff;
    color: #fff;
}

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

.registro-table tr:hover {
    background-color: #f1f1f1;
}

/* Solo cambiar el color del estatus seleccionado */
.registro-estatus-select {
    color: black;
    font-weight: bold;
}

.registro-estatus-select option {
    color: black;
}


/* Aplicar color solo al texto seleccionado después del cambio */
.registro-estatus-aprobado {
    color: #1e7e34 !important;
    font-weight: bold;
}

.registro-estatus-pendiente {
    color: #8d5000 !important;
    font-weight: bold;
}

.registro-estatus-rechazado {
    color: #c82333 !important;
    font-weight: bold;
}

/* Botón de acción */
.registro-action-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    display: inline-block;
}

.registro-action-btn:hover {
    background-color: #003a8c;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
    .registro-container {
        margin-left: 220px;
        padding: 20px;
    }

    .registro-table {
        width: 100%;
    }
}

/* ESTILOS DE DETALLE EVALUACION */
/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
}

/* Variables de Color para DataInsight */
body.datainsight-theme {
    --primary-color: #5c69f5;
    --primary-color-dark: #4a55d1;
}

/* Estilos de la Barra Lateral */
.evaluar-sidebar {
    width: 250px;
    background-color: #1b2a49;
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: -250px; /* Oculto por defecto en móviles */
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    text-align: center;
}

.evaluar-sidebar.active {
    left: 0;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    width: 400px;
    max-width: 90%;
    text-align: center;
    padding: 20px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.popup-body p {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

.popup-footer {
    margin-top: 15px;
}

.popup-action-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.popup-action-btn:hover {
    background-color: #0056b3;
}

.sidebar-header {
    text-align: center;
    padding: 30px 0;
    background-color: #162036;
}

.sidebar-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.menu-list {
    list-style: none;
    padding: 20px 0;
}

.menu-list li {
    margin-bottom: 15px;
}

.menu-list li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.menu-list li a i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.menu-list li a:hover {
    background-color: #2c3e50;
}

.menu-list li a.active {
    background-color: #2c3e50;
}

.evaluar-content2 {
    margin-left: 0; /* Ajuste para móviles */
    transition: margin-left 0.3s ease-in-out;
}

.informe-content {
    max-width: 960px;
    margin: auto;
}

/* Estilos del Botón "Menú" */
.menu-button {
    display: none; /* Oculto por defecto en escritorio */
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px 0;
}

.menu-button:hover {
    background-color: var(--primary-color-dark);
}

/* Section header styling */
.section-header {
    background-color: #5c69f5;
    color: white;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Table styling */
.styled-summary-table,
.info-table,
.info-complementaria-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
}

.styled-summary-table th,
.info-table th,
.info-complementaria-table th {
    background-color: #5c69f5;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}

.styled-summary-table td,
.info-table td,
.info-complementaria-table td {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f1f1f1;
}

.styled-summary-table tbody tr:nth-child(even),
.info-complementaria-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    text-align: center;
}

.alert-light {
    background-color: #f7f7f7;
    color: #333;
    padding: 15px;
    border-left: 6px solid #5c69f5;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

.info-text {
    font-size: 15px; /* Aumentado para mejor legibilidad */
    color: #555;
    margin: 10px 0 15px;
} 

/* Lista de Información Complementaria */
.info-list {
    list-style-type: none;
    padding: 0;
    margin: 10px auto;
    width: 85%;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.info-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Texto informativo entre secciones */
.section-description {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0;
    text-align: center;
    padding: 0 10px;
} 

.empresa-titulo-container {
    background-color: #5c69f5;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.empresa-titulo-container h1 {
    font-size: 2em;
    margin: 0;
}

/* Classification Section Styles */
.classification-section {
    text-align: center;
    margin-top: 20px;
}

.classification-icons {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.classification-icon {
    text-align: center;
    width: 22%;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.classification-icon:hover {
    transform: scale(1.05);
    background-color: #e0e7ff;
}

.classification-icon .icon {
    width: 40px;
    height: 40px;
    color: #5c69f5; /* Color de los íconos */
    font-size: 30px;
    margin-bottom: 8px;
}

.classification-label {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    font-size: 1.1em;
}

.classification-range {
    font-size: 0.9em;
    color: #555;
}

/* Media Queries para Responsividad */
@media (min-width: 769px) {
    .evaluar-sidebar {
        left: 0;
    }

    .evaluar-content2 {
        margin-left: 250px;
    }

    .menu-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    .evaluar-content2 {
        padding: 20px;
    }

    /* Ajustes para tablas en móviles */
    .classification-icons {
        flex-direction: column;
        align-items: center;
    }

    .classification-icon {
        width: 80%;
        margin-bottom: 20px;
    }

    .styled-summary-table,
    .info-table,
    .info-complementaria-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .styled-summary-table th,
    .styled-summary-table td,
    .info-table th,
    .info-table td,
    .info-complementaria-table th,
    .info-complementaria-table td {
        font-size: 14px;
        padding: 8px;
        white-space: nowrap;
    }

    .section-header {
        font-size: 18px;
        padding: 8px;
    }

    .empresa-titulo-container h1 {
        font-size: 1.5em;
    }

    .empresa-titulo-container {
        padding: 15px;
    }
}


/* Variables de color */
:root {
    --color-primario: #007bff;
    --color-secundario: #003a8c;
    --color-acento: #f0ad4e;
    --color-fondo: #f9f9f9;
    --color-texto: #333;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}



/* Botón de menú para móviles */
.detalle-sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: var(--color-primario);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    z-index: 1000;
}

.detalle-sidebar-toggle i {
    font-size: 1.2rem;
}

/* Contenedor principal */
.detalle-admin-container {
    display: flex;
}

/* Sidebar */
.detalle-sidebar {
    flex: 0 0 220px;
    background-color: var(--color-primario);
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.detalle-sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.detalle-sidebar ul {
    list-style: none;
    padding: 0;
}

.detalle-sidebar ul li {
    margin-bottom: 15px;
}

.detalle-sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    background-color: var(--color-secundario);
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.detalle-sidebar ul li a i {
    margin-right: 10px;
}

.detalle-sidebar ul li a:hover {
    background-color: #002d63;
}

/* Contenido principal */
.detalle-container {
    background-size: cover;
    margin-left:0px; 
    padding: 80px;
    flex-grow: 1;
    background-color: var(--color-blanco);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detalle-container h1 {
    font-size: 2rem;
    color: var(--color-primario);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.detalle-container h1 i {
    margin-right: 10px;
}

/* Tarjetas */
.detalle-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.detalle-card-header {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.detalle-card-header i {
    margin-right: 10px;
}

.detalle-card-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.detalle-card-content i {
    margin-right: 8px;
    color: var(--color-primario);
}

/* Tablas */
.detalle-table {
    width: 100%;
    border-collapse: collapse;
}

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

.detalle-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    width: 40%;
}

.detalle-table td {
    width: 60%;
}

/* Pestañas */
.detalle-tabs {
    width: 100%;
}

.detalle-tab-list {
    list-style: none;
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.detalle-tab-list li {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.detalle-tab-list li i {
    margin-right: 8px;
}

.detalle-tab-list li.active {
    border-bottom: 3px solid var(--color-primario);
    color: var(--color-primario);
}

.detalle-tab-list li:hover {
    color: var(--color-primario);
}

.detalle-tab-content {
    display: none;
}

.detalle-tab-content.active {
    display: block;
}

/* Alertas */
.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.alert-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.alert-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.alert-icon {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--color-primario);
}

.alert-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-texto);
}

.alert-text p {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.alert-info {
    position: relative;
}

.alert-info i {
    font-size: 1.2rem;
    color: var(--color-primario);
    cursor: pointer;
}

.alert-tooltip {
    display: none;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: var(--color-primario);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    text-align: center;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-primario) transparent transparent transparent;
}

.alert-info:hover .alert-tooltip {
    display: block;
}

.alert-normal {
    border-left: 5px solid #5cb85c;
}

.alert-critica {
    border-left: 5px solid #d9534f;
}

/* Ponderaciones */
.ponderacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ponderacion-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ponderacion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ponderacion-header strong {
    font-size: 1rem;
    color: var(--color-primario);
}

.ponderacion-info {
    position: relative;
}

.ponderacion-info i {
    font-size: 1.2rem;
    color: var(--color-primario);
    cursor: pointer;
}

.ponderacion-tooltip {
    display: none;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: var(--color-primario);
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    width: 220px;
    text-align: center;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ponderacion-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-primario) transparent transparent transparent;
}

.ponderacion-info:hover .ponderacion-tooltip {
    display: block;
}

.ponderacion-body p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.detalle-ponderacion-barra {
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    height: 15px;
    margin-top: 10px;
    position: relative;
}

/* Modificaciones para la barra de Nota de Riesgo */
.nota-riesgo-barra {
    height: 100%;
    background-color: gray; /* Color por defecto */
    transition: width 0.6s ease;
}

.nota-riesgo-card .detalle-ponderacion-barra:hover .nota-riesgo-barra {
    opacity: 0.8;
}

/* Leyenda emergente para Nota de Riesgo */
.nota-riesgo-tooltip {
    position: absolute;
    background-color: rgba(52, 73, 94, 0.9);
    color: #ecf0f1;
    padding: 8px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    font-size: 14px;
    white-space: nowrap;
    display: none;
}

.nota-riesgo-card .detalle-ponderacion-barra:hover .nota-riesgo-tooltip {
    display: block;
}

/* Estilos para la barra regular */
.detalle-ponderacion-barra .barra {
    height: 100%;
    background-color: var(--color-primario);
    transition: width 0.6s ease;
}

/* Resultados */
.detalle-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.detalle-card-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.detalle-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detalle-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.ventas-icon {
    background-color: #007bff;
}

.compras-icon {
    background-color: #007bff;
}

.margen-icon {
    background-color: #007bff;
}

.capacidad-icon {
    background-color: #007bff;
}

.resultado-icon {
    background-color: #007bff;
}

.detalle-card-info h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #333333;
}

.detalle-card-info p {
    font-size: 1em;
    font-weight: bold;
    color: #000000;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 15px;
    margin-top: 10px;
}

.progress {
    background-color: #4CAF50;
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Gráfico */
.grafico-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Botón de regresar */
.detalle-btn-regresar {
    display: inline-block;
    margin-top: 30px;
    background-color: var(--color-primario);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.detalle-btn-regresar i {
    margin-right: 8px;
}

.detalle-btn-regresar:hover {
    background-color: var(--color-secundario);
}

/* Responsividad */
@media (max-width: 992px) {
    .detalle-container {
        margin-left: 0;
    }

    .detalle-sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 999;
    }

    .detalle-sidebar.active {
        transform: translateX(0);
    }

    .detalle-sidebar-toggle {
        display: block;
    }

    .detalle-admin-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .detalle-tab-list {
        flex-direction: column;
    }

    .detalle-tab-list li {
        border-bottom: 1px solid #e0e0e0;
        padding: 15px;
    }

    .detalle-tab-list li.active {
        border-bottom: none;
        border-left: 4px solid var(--color-primario);
    }

    .detalle-card {
        padding: 20px;
    }

    .detalle-card-header {
        font-size: 1.4rem;
    }

    .detalle-tab-content {
        padding: 15px 0;
    }

    .alert-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .detalle-container {
        padding: 20px;
    }

    .detalle-card {
        padding: 15px;
    }

    .detalle-card-header {
        font-size: 1.2rem;
    }

    .detalle-tab-list li {
        padding: 12px;
    }

    .detalle-tab-content {
        padding: 10px 0;
    }

    .detalle-btn-regresar {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .alert-grid {
        grid-template-columns: 1fr;
    }
}


/* ESTILOS GESTION DE USERS */
/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Cambiar la tipografía del título del panel de gestión de usuarios */
.users-admin-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.users-admin-container {
    display: flex;
    margin: 20px 20px 20px 270px; /* top, right, bottom, left */
    background-color: #f5f7fa;
    min-height: 100vh;
}

.users-sidebar {
    flex: 0 0 220px;
    background-color: #007bff;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.users-sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.users-sidebar ul {
    list-style: none;
    padding: 0;
}

.users-sidebar ul li {
    margin-bottom: 15px;
}

.users-sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #003a8c;
    border-radius: 5px;
}

.users-sidebar ul li a:hover {
    background-color: #002d63;
}

.users-gestion-usuarios-container {
    margin-left: 100px;
    margin-top: 50px;
    padding: 40px;
    flex-grow: 1;
    font-size: 1.2em;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para mensajes flash */
.users-flash-messages {
    margin-bottom: 20px;
}

.users-alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.users-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.users-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para el formulario de creación de usuario */
.users-form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.users-form-box {
    display: flex;
    flex-direction: column;
}

.users-input-group {
    margin-bottom: 15px;
}

.users-input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.users-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.users-submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 150px;
    align-self: center;
}

.users-submit-btn:hover {
    background-color: #003a8c;
}

/* Estilos para la tabla de usuarios */
.users-user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.users-action-container {
    display: flex; /* Convierte el contenedor en un flexbox */
    justify-content: flex-end; /* Alinea los botones a la derecha */
    gap: 10px; /* Espaciado entre botones */
}
.users-user-table th, .users-user-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle; /* Alinear verticalmente al centro */
    padding: 10px; /* Espaciado interno uniforme */
}

/* Para la columna de acciones específicamente */
.users-user-table th:last-child,
.users-user-table td:last-child {
    text-align: center; /* Alinear horizontalmente al centro */
}

.users-user-table th {
    background-color: #007bff;
    color: #fff;
}

.users-user-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.users-user-table tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para botones de acción de usuario */
.users-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
    position:relative;
}

.users-edit {
    background-color: #007bff;
}

.users-edit:hover {
    background-color: #138496;
}

.users-delete {
    background-color: #dc3545;
}

.users-delete:hover {
    background-color: #c82333;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
    .users-gestion-usuarios-container {
        margin-left: 220px;
        padding: 20px;
    }

    .users-user-table th, .users-user-table td {
        font-size: 0.9rem;
    }

    .users-submit-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .users-action-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* CAMBIO DE CONTRASEÑA */

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Cambiar la tipografía del título del panel de restablecimiento de contraseña */
.password-admin-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.password-admin-container {
    display: flex;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.password-sidebar {
    flex: 0 0 220px;
    background-color: #007bff;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.password-sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.password-sidebar ul {
    list-style: none;
    padding: 0;
}

.password-sidebar ul li {
    margin-bottom: 15px;
}

.password-sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #003a8c;
    border-radius: 5px;
}

.password-sidebar ul li a:hover {
    background-color: #002d63;
}

.password-content {
    margin-left: 250px;
    margin-top: 50px;
    padding: 40px;
    flex-grow: 1;
    font-size: 1.2em;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para el formulario de restablecimiento de contraseña */
.password-form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.password-form-box {
    display: flex;
    flex-direction: column;
}

.password-input-group {
    margin-bottom: 15px;
}

.password-input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.password-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.password-submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 150px;
    align-self: center;
}

.password-submit-btn:hover {
    background-color: #003a8c;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
    .password-content {
        margin-left: 220px;
        padding: 20px;
    }

    .password-submit-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ESTILOS EVALUAR */

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.evaluar-admin-container {
    display: flex;
    min-height: 100vh;
}

/* Estilos de la Barra Lateral */
.evaluar-sidebar {
    width: 250px;
    background-color: #007bff;
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.evaluar-sidebar.active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .evaluar-sidebar {
        transform: translateX(-100%);
    }
}

.sidebar-header {
    text-align: center;
    padding: 20px;
    background-color: #f0f8ff;
    position: relative;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666666;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .close-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .download-pdf-button {
        width: 100%; /* Ocupa todo el ancho en dispositivos móviles */
        margin-top: 10px; /* Espaciado superior */
    }
}

.menu-list {
    list-style: none;
    padding: 20px 0;
}

.menu-list li {
    margin-bottom: 15px;
}

.menu-list li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.menu-list li a i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.menu-list li a:hover {
    background-color: #2c3e50;
}

.menu-list li a.active {
    background-color: #2c3e50;
}

/* Estilos del Contenido Principal */
.evaluar-content2 {
    flex-grow: 1;
    padding: 50px;
    margin-left: 250px;
    background-color: #ffffff;
    transition: margin-left 0.3s ease-in-out;
    position: relative;
    width: 100%;
    
}

@media (max-width: 768px) {
    .evaluar-content2 {
        margin-left: 0;
        padding: 20px;
    }
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #34495e;
    text-align: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #34495e;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.evaluar-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Más pequeño ya que tiene pocos campos */
    width: 100%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.evaluar-form-box {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado reducido entre elementos */
    width: 100%;
}

.evaluar-input-group {
    display: flex;
    flex-direction: column;
}

.evaluar-input-group label {
    margin-bottom: 5px; /* Espaciado reducido */
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.evaluar-input-group input,
.evaluar-input-group select {
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.evaluar-input-group input:focus,
.evaluar-input-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
}

.evaluar-submit-btn {
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.evaluar-submit-btn:hover {
    background-color: #0056b3;
}

.evaluar-submit-btn:active {
    background-color: #004494;
}

#rut-datainsight-group {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Estilos del Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 8px solid #007bff;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos del Área de Arrastrar y Soltar */
#drop-area {
    border: 2px dashed #ccd1d9;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
}

#drop-area.highlight {
    border-color: var(--primary-color);
}

#drop-area input[type="file"] {
    display: none;
}

#drop-area .file-msg {
    font-size: 1rem;
    color: #95a5a6;
}

/* Variables de Color para Datarisk */
body.datarisk-theme {
    --primary-color: #4CC9F0;
    --primary-color-dark: #39b1d6;
}

/* Variables de Color para DataInsight */
body.datainsight-theme {
    --primary-color: #5c69f5;
    --primary-color-dark: #4a55d1;
}


/*contraseña admin */

/* Ajustar ancho de la sidebar */
.detalle-sidebar {
    width: 200px;
}

        /* Centrar el contenedor del formulario */
.password-content {
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.password-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Estilos para el formulario */
.password-form-box {
    display: flex;
    flex-direction: column;
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.password-input-group {
    margin-bottom: 15px;
}

.password-input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.password-input-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.password-submit-btn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.password-submit-btn:hover {
    background-color: #003a8c;
    transform: scale(1.02);
}

/* Estilo para mensajes de error */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 10px;
}


/* Estilos para el botón y el campo de búsqueda */
.btn {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

#search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* filtrar */

/* Estilos para el botón Exportar a Excel */
.export-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 20px;
    background-color: #28a745; /* Color verde para Excel */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.export-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

.export-btn:hover {
    background-color: #218838; /* Verde más oscuro al pasar el cursor */
}

/* Estilos para el buscador de RUT */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: #007bff;
    outline: none;
}

.search-container i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 20px;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .export-btn,
    .search-container input {
        width: 100%;
        margin-bottom: 10px;
    }
}

/*creador de admin*/

/* Contenedor principal */
.gestor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Altura completa de la ventana */
    padding: 20px;
    background-color: #f9f9f9; /* Fondo ligero */
}

/* Título */
.gestor-title {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Botón de formulario */
.gestor-show-form-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gestor-show-form-btn:hover {
    background-color: #004494;
    transform: scale(1.05);
}

.gestor-form-container {
    max-width: 600px; /* Ancho máximo del formulario */
    width: 90%; /* Se ajusta al tamaño de la pantalla */
    margin: 20px auto; /* Centrado vertical y horizontal */
    padding: 15px 20px; /* Reduce el espacio interno */
    background-color: #f9f9f9; /* Fondo claro */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Alineación vertical */
    gap: 10px; /* Espacio entre los elementos */
}

/* Estilo para la sección de Datarisk */
.datarisk-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.datarisk-group label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

.datarisk-group input,
.datarisk-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

.gestor-input-group {
    display: flex;
    flex-direction: column; /* Alineación vertical para cada grupo */
    gap: 5px; /* Espacio entre el label y el input */
}

.gestor-input-group label {
    font-size: 0.95rem; /* Tamaño ajustado de texto */
    font-weight: bold;
    color: #333; /* Color oscuro para visibilidad */
}

.gestor-input-group input,
.gestor-input-group select {
    width: 100%; /* Ancho completo */
    padding: 8px; /* Reduce el espacio interno */
    border: 1px solid #ccc; /* Borde claro */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 0.9rem; /* Texto legible */
}

.gestor-submit-btn {
    background-color: #28a745; /* Verde claro */
    color: white;
    border: none;
    padding: 10px 15px; /* Botón más compacto */
    font-size: 0.9rem; /* Tamaño del texto */
    font-weight: bold;
    border-radius: 5px; /* Redondeo suave */
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center; /* Centrar el botón */
}

.gestor-submit-btn:hover {
    background-color: #218838; /* Verde oscuro en hover */
}


/* Contenedor de la tabla con scroll horizontal */
.gestor-table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
}

/* Tabla de administradores */
.gestor-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Asegura que las columnas tengan ancho fijo */
}

.gestor-table th,
.gestor-table td {
    padding: 12px 15px;
    border: 1px solid #9b9b9b;
    text-align: left;
    font-size: 0.7em;
    word-wrap: break-word; /* Permite el ajuste de palabras largas */
}

.gestor-table th {
    background-color: #0056b3;
    color: #fff;
}

.gestor-table tbody tr:nth-child(even) {
    background-color: #fff;
}

.gestor-table tbody tr:hover {
    background-color: #fff;
}

/* Contenedores de KPI en una fila */
.dashboard-kpi-sectionad {
    display: flex; /* Cambia a flex para alinear en una sola fila */
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Permite que los elementos se ajusten a la línea si el espacio es limitado */
    justify-content: center; /* Centra los elementos en la fila */
}

/* Estilo de las tarjetas KPI */
.dashboard-kpi-cardad {
    background-color: var(--color-blanco);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    width: 250px; /* Define un ancho fijo para cada tarjeta */
}

.dashboard-kpi-cardad:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.gestor-action-btn {
    background-color: #007bff; /* Azul moderno */
    color: white;
    padding: 8px 12px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gestor-action-btn i {
    margin-right: 5px; /* Espacio entre el icono y el texto */
    font-size: 1rem;
}

.gestor-action-btn:hover {
    background-color: #0056b3; /* Azul más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.gestor-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gestor-action-btn-form {
    background-color: #dc3545; /* Rojo moderno */
    color: white;
    padding: 8px 12px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gestor-action-btn-form i {
    margin-right: 5px; /* Espacio entre el icono y el texto */
    font-size: 1rem;
}

.gestor-action-btn-form:hover {
    background-color: #a71d2a; /* Rojo más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.gestor-action-btn-form:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Espaciado entre los botones */
.gestor-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.gestor-action-btn,
.gestor-action-btn-form {
    background-color: transparent; /* Fondo transparente para iconos */
    color: #007bff; /* Azul moderno para iconos */
    padding: 6px;
    margin: 2px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem; /* Tamaño del icono */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gestor-action-btn:hover,
.gestor-action-btn-form:hover {
    background-color: #f1f1f1; /* Fondo claro al pasar el ratón */
    color: #0056b3; /* Azul más oscuro */
    transform: scale(1.1);
}

.gestor-action-btn-form {
    color: #dc3545; /* Rojo para icono de eliminar */
}

.gestor-action-btn-form:hover {
    color: #a71d2a; /* Rojo más oscuro */
}


/* Credit Management Styles */

/* Button to open the new credit popup */
.credito-show-popup-btn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 20px; /* Reducir el tamaño del botón */
    border-radius: 10px; /* Bordes menos redondeados */
    font-size: 0.9rem; /* Tamaño de fuente más estándar */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 10px; /* Espaciado más reducido */
    display: inline-block; /* Mejor para botones */
    margin-left: 0;
    text-align: center; /* Centrar el texto */
}


.credito-show-popup-btn:hover {
    background-color: #00a52f;
    transform: scale(1.05);
}

/* Credit table styles */
.credito-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.credito-table th, .credito-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.credito-table th {
    background-color: #007bff;
    color: #ffffff;
    font-weight: normal;
    text-transform: uppercase;
}

.credito-table tr:hover {
    background-color: #f1f1f1;
}

.credito-table td button {
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 1.2rem;
    margin-right: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.credito-table td button:hover {
    color: #002f6c;
}

/* Status label styles */
.credito-table td.status {
    font-weight: bold;
    position: relative;
}

.credito-table td.status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.credito-table td.status[data-status="Activo"]::before {
    background-color: #28a745;
}

.credito-table td.status[data-status="Por vencer"]::before {
    background-color: #ffc107;
}

.credito-table td.status[data-status="Vencido"]::before {
    background-color: #dc3545;
}

.credito-table td.status[data-status^="Moroso"]::before {
    background-color: #6c757d;
}

.credito-table td.status[data-status="Pagado"]::before {
    background-color: #17a2b8;
}

/* Popup Overlay */
.credito-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
}

.credito-popup-overlay.active {
    display: block;
}

/* Popups */
.credito-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    max-height: 90vh;
}

.credito-popup.active {
    display: block;
}

.credito-popup h2 {
    font-size: 1.6rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.credito-popup p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.credito-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.credito-popup input[type="text"],
.credito-popup input[type="email"],
.credito-popup input[type="tel"],
.credito-popup input[type="date"],
.credito-popup input[type="number"],
.credito-popup textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease-in-out;
    background-color: #f9f9f9;
}

.credito-popup input:focus,
.credito-popup textarea:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

.credito-popup textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

/* Forma de Pago Options */
.forma-pago-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.forma-pago-option {
    flex: 1 1 calc(33% - 10px);
    background-color: #e0e0e0;
    color: #333;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.forma-pago-option.selected {
    background-color: #007bff;
    color: #fff;
}

.forma-pago-option:hover {
    background-color: #ccc;
}

/* Popup Buttons */
.popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.popup-buttons button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-buttons .btn-secondary {
    background-color: #cccccc;
    color: #333333;
}

.popup-buttons .btn-secondary:hover {
    background-color: #bbbbbb;
    transform: scale(1.02);
}

.popup-buttons button:not(.btn-secondary) {
    background-color: #007bff;
    color: #ffffff;
}

.popup-buttons button:not(.btn-secondary):hover {
    background-color: #003a8c;
    transform: scale(1.02);
}

/* Steps */
.popup-step {
    display: none;
}

.popup-step.active {
    display: block;
}

/* Table inside Popup */
.credito-table-popup {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.credito-table-popup th,
.credito-table-popup td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.credito-table-popup th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.credito-table-popup tr:hover {
    background-color: #f9f9f9;
}

.btn-select {
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-select:hover {
    background-color: #218838;
}

/* Contact Info Popup */
#popupContacto p {
    font-size: 1rem;
    margin-bottom: 10px;
}

#popupContacto p strong {
    color: #007bff;
}

/* Message Popup */
.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    z-index: 1001;
    display: none;
    padding: 20px;
    text-align: center;
}

.message-popup p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.message-popup button {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.message-popup button:hover {
    background-color: #003a8c;
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Tooltip Styles */
.credito-table td button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
}

.credito-table td button[data-tooltip]:hover::after {
    opacity: 1;
}

.credito-table td button[data-tooltip]::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.credito-table td button[data-tooltip]:hover::before {
    opacity: 1;
}

/* Estilos Generales */

/* Tabla */
.credito-table-container {
    display: block; /* Siempre visible en web */
    width: 100%;
    max-width: 1500px;     /* Fija un ancho máximo en escritorio */
    margin: 0 auto;        /* Centra el contenedor */
    overflow-x: auto;      /* Scroll horizontal */
    margin-top: 20px;
    border: 1px solid #ddd; /* Borde para delimitar */
    border-radius: 15px;
    background-color: #ffffff; /* Fondo blanco para resaltar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.credito-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ancho mínimo para el scroll horizontal */
}

.credito-table th,
.credito-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
}

.credito-table th {
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
}

.credito-table tr:hover {
    background-color: #f1f1f1;
}

/* Botones */
.export-excel-btn {
    font-size: 1.8rem;
    padding: 15px 25px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    display: block;
}

.credito-show-popup-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

.credito-show-popup-btn:hover {
    background-color: #003a8c;
}

.export-excel-btn {
    background-color: #28a745;
    color: white;
    border: none;
}

.export-excel-btn:hover {
    background-color: #218838;
}

/* Filtros */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-item {
    flex: 1 1 calc(33% - 20px);
    max-width: calc(33% - 20px);
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    box-sizing: border-box;
}

/* Input Error Styles */
input:invalid,
textarea:invalid {
    border-color: #dc3545;
}

input:invalid:focus,
textarea:invalid:focus {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

/* Scrollbar Styles */
.credito-popup::-webkit-scrollbar {
    width: 8px;
}

.credito-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.credito-popup::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.credito-popup::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Adjusting input fields for better UX */
.credito-popup input[type="date"] {
    padding-right: 40px;
}

.credito-popup input[type="number"]::-webkit-inner-spin-button,
.credito-popup input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hover effect for table rows */
.credito-table tbody tr:hover {
    background-color: #e9f5ff;
}

/* Styling for required fields */
.credito-popup input[required],
.credito-popup textarea[required] {
    border-left: 3px solid #dc3545;
}

.credito-popup input[required]:focus,
.credito-popup textarea[required]:focus {
    border-left-color: #007bff;
}
/* Estilos para el contenedor de filtros */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

/* Estilos para cada elemento de filtro */
.filter-item {
    position: relative;
    flex: 1 1 200px;
}

.filter-item i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #555;
    font-size: 16px;
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 8px 12px 8px 40px; /* Ajustar padding para dejar espacio al icono */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.filter-item input:hover,
.filter-item select:hover {
    border-color: #888;
}

.filter-item input:focus,
.filter-item select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    background-color: #fff;
}

/* Estilos para los botones de acción */
.filter-action-btn {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.filter-action-btn i {
    margin-right: 5px;
}

.filter-action-btn:hover {
    background-color: #0056b3;
}

.filter-action-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


/* Estilos para el modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Fondo semitransparente */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

#comentario-textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

/* Estilo del campo de texto para editar */
.input-edit {
    width: 80%; /* Ocupa menos espacio */
    resize: none; /* Deshabilita el redimensionamiento */
    font-size: 13px; /* Tamaño de fuente reducido */
    padding: 4px 6px; /* Espaciado interno más ajustado */
    border: 1px solid #ddd; /* Borde gris suave */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    outline: none; /* Sin borde de enfoque */
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.input-edit:focus {
    border-color: #007BFF; /* Cambia el borde al enfocarse */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5); /* Efecto de enfoque */
}

/* Botón "OK" con diseño más compacto */
.btn-ok {
    background-color: #4CAF50; /* Verde agradable */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    padding: 4px 8px; /* Botón más compacto */
    font-size: 12px; /* Fuente pequeña y legible */
    cursor: pointer; /* Indicador de clic */
    border-radius: 4px; /* Bordes redondeados */
    margin-left: 5px; /* Espacio entre el botón y el campo de texto */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Sombra suave */
}

/* Hover para el botón */
.btn-ok:hover {
    background-color: #45a049; /* Verde más oscuro al pasar el mouse */
    transform: translateY(-1px); /* Ligero movimiento hacia arriba */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
}

/* Activo (cuando se presiona el botón) */
.btn-ok:active {
    background-color: #3e8e41; /* Verde más oscuro */
    transform: translateY(1px); /* Movimiento hacia abajo */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Sombra reducida */
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin-left: 20px;
    border-left: 2px solid #3498db; /* línea vertical */
}

.timeline-item {
    position: relative;
    margin: 0 0 20px 40px;
}

.timeline-item::before {
    content: "";
    background-color: #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    position: absolute;
    left: -39px;
    top: 0;
}

.timeline-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.timeline-description {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

/* Colorea el fondo y el texto del evento "Pago del crédito" */
.timeline-paid {
    background-color: #e6ffe6;    /* Un verde claro de fondo */
    border-left: 4px solid #28a745;  /* Una línea verde más gruesa */
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Opcional: Cambiar color del texto */
.timeline-paid .timeline-date,
.timeline-paid .timeline-description {
    color: #28a745;
    font-weight: bold;
}

/* Estilos del Botón "Descargar Informe" */
.download-pdf-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.download-pdf-button i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.download-pdf-button:hover {
    background-color: #28a745;
}


/* Responsiveness */

/* Pantallas de hasta 992px */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        margin: 10px 10px;
    }
    .dashboard-container22 {
        flex-direction: column;
        margin: 10px 10px;
    }

    .dashboard-sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 999;
        transition: transform 0.3s ease-in-out;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-sidebar-toggle {
        display: block;
        font-size: 1.5rem;
        padding: 10px;
    }

    .dashboard-content {
        width: 90%;
        min-height: 85vh; 
        padding: 20px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filters-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .filter-item {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .filter-input-icon input,
    .filter-input-icon select {
        font-size: 1.2rem;
        padding: 15px 15px 15px 50px;
    }

    .filter-action-btn,
    .credito-show-popup-btn,
    .export-btn {
        font-size: 1.2rem;
        padding: 15px 20px;
        max-width: 300px;
        margin: 10px auto;
        text-align: center;
    }

    .credito-table-container {
        overflow-x: auto; /* Habilitar scroll horizontal */
        max-width: 100%;
        margin: 15px 0;
        border: 1px solid #007bff;
        border-radius: 10px;
        background-color: white;
    }

    .credito-table {
        width: 100%;
        min-width: 700px; /* Ancho mínimo para la tabla */
        table-layout: auto; /* Ajustar columnas automáticamente */
        border-collapse: collapse;
    }

    .credito-table th,
    .credito-table td {
        border: 1px solid #ddd;
        white-space: nowrap; /* Evitar saltos de línea */
        font-size: 0.8rem; /* Disminuir tamaño de la letra */
        padding: 12px; /* Espaciado interno amplio */
        text-align: center; /* Centrar texto para mayor claridad */
        min-width: 100px; /* Definir un ancho mínimo */
        word-break: break-word; /* Ajustar palabras largas */
    }

    .credito-table th {
        background-color: #007bff;
        font-weight: bold;
    }
}

/* Pantallas de hasta 768px */
@media (max-width: 768px) {
    .dashboard-content {
        width: 95%;
        padding: 10px;
        margin: 0 auto;
    }

    .filters-container {
        gap: 8px;
        margin-bottom: 10px;
    }
    .admin-info-section {
    margin-top: 20px;
    }
    .filter-input-icon input,
    .filter-input-icon select {
        font-size: 1rem;
        padding: 12px 12px 12px 40px;
    }

    .filter-action-btn {
        font-size: 1rem;
        padding: 12px 15px;
        max-width: 250px;
    }

    .evaluar-sidebar,
    .menu-button {
        display: none !important;
    }

    .credito-table-container {
        overflow-x: auto; /* Scroll horizontal */
        max-width: 100%;
    }
    
    .credito-table th,
    .credito-table td {
        font-size: 0.7rem; /* Ajustar tamaño del texto */
        padding: 10px; /* Espaciado interno */
        text-align: center; /* Centrar texto */
        min-width: 90px; /* Ancho mínimo */
        word-break: break-word; /* Evitar desbordes */
    }
    
    .grafico-container canvas {
        width: 100%; /* Asegura que ocupe todo el ancho del contenedor */
        height: 2500px; /* Ajusta este valor según el alto deseado */
    }
    
}

/* Pantallas de hasta 576px */
@media (max-width: 576px) {
    .dashboard-content {
        width: 100%;
        padding: 5px;
    }

    .filters-container {
        gap: 5px;
        margin-bottom: 5px;
    }

    .filter-input-icon input,
    .filter-input-icon select {
        font-size: 0.9rem;
        padding: 10px 10px 10px 30px;
    }

    .filter-action-btn,
    .credito-show-popup-btn,
    .export-btn {
        font-size: 0.9rem;
        padding: 10px;
        max-width: 200px;
    }

    .credito-table-container {
        overflow-x: auto; /* Scroll horizontal */
        max-width: 100%; /* Limitar el ancho al contenedor */
        border: 1px solid #ddd;
        border-radius: 10px;
        background-color: #fff;
    }

    .credito-table {
        width: 100%;
        min-width: 600px; /* Scroll horizontal si necesario */
        border-collapse: collapse;
    }

    .credito-table th,
    .credito-table td {
        font-size: 0.6rem; /* Reducir tamaño de la letra un 30% */
        padding: 10px; /* Incrementar el padding un 50% */
        white-space: nowrap; /* Evitar saltos de línea */
    }

    h1, h2 {
        font-size: 1.5rem;
    }
}

/* Pantallas de hasta 480px */
@media (max-width: 480px) {
    .credito-table-container {
        overflow-x: auto; /* Habilitar scroll horizontal */
        max-width: 100%;
    }

    .credito-table th,
    .credito-table td {
        font-size: 0.7rem;
        padding: 4px;
    }
}

/* ---- Toggle Switch (formato_nuevo) ---- */
.toggle-group {
    display: flex;
    flex-direction: column; /* label arriba, switch abajo */
    align-items: flex-start; /* todo a la izquierda */
    gap: 6px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db; /* gris claro */
    transition: background-color 0.25s ease;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primario);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    outline: 2px solid rgba(0,123,255,0.35);
    outline-offset: 2px;
}

/* Compacto en móvil */
@media (max-width: 480px) {
    .toggle-switch { width: 48px; height: 26px; }
    .toggle-slider::before { width: 22px; height: 22px; top: 2px; left: 2px; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
}
