/* Importar fuente Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');


/* Estilos generales */
:root {
  --sutec-green: #109D39;
  --sutec-green-dark: #006030;
  --sutec-yellow: #FFD700;
  --font-family-base: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Aplicar Montserrat a todo el sitio, excepto iconos */
/* body, 
html, 
button, 
input, 
select, 
textarea,
.unfold-sidebar,
.unfold-main,
.unfold-content,
.unfold-header,
.unfold-footer {
  font-family: var(--font-family-base) !important;
} */

/* Excluir iconos de la regla general de fuentes */
/* .material-symbols-outlined,
.material-icons,
[class^="icon-"],
[class*=" icon-"] {
  font-family: inherit !important; /* Mantener la fuente original del icono */
} */

/* Ajustar pesos de fuente para diferentes elementos */
h1, h2, h3, h4, h5, h6,
.unfold-nav-item,
.unfold-nav-section-title,
.unfold-header-title,
.unfold-form-title,
.button, 
.submit-row input, 
input[type=submit], 
input[type=button],
.object-tools a {
  font-family: var(--font-family-base) !important;
  font-weight: 600 !important;
}

/* Elementos con peso normal */
p, 
span:not(.material-symbols-outlined):not(.material-icons), 
div, 
td, 
th, 
li, 
label,
.help, 
.unfold-form-row,
.unfold-field-box {
  font-family: var(--font-family-base) !important;
  font-weight: 400 !important;
}

/* Elementos con peso ligero */
.help-text,
.description,
.quiet,
.minor {
  font-family: var(--font-family-base) !important;
  font-weight: 300 !important;
}

/* Ajustar tamaño de fuente para mejorar legibilidad */
body {
  font-size: 14px;
  line-height: 1.5;
}

/* Personalización de la página de login */
.login-logo {
  max-width: 150px;
  margin: 0 0 2rem;
  display: block;
}

.base-logo {
    margin: 0 auto;
}

.logo-gob {
  max-width: 160px;
  margin: 3rem 0 2rem;
  display: block;
}

.img-franja {
  width: 35px;
  display: block;
}

/* Personalización del sidebar */
#nav-sidebar {
  background-color: var(--sutec-green-dark) !important;
  color: white !important;
}

/* Eliminar fondo blanco de los elementos del menú */
#nav-sidebar .unfold-nav-item,
#nav-sidebar .unfold-nav-section {
  background-color: transparent !important;
  color: white !important;
}

/* Estilo para los elementos del menú */
#nav-sidebar .unfold-nav-item {
  border-radius: 4px;
  margin: 4px 8px;
  padding: 8px 12px;
}

#nav-sidebar .unfold-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Estilo para el elemento activo */
#nav-sidebar .unfold-nav-item.active {
  background-color: transparent !important;
  color: var(--sutec-yellow) !important;
  font-weight: bold;
}

/* Estilo para el primer elemento (Inicio) */
#nav-sidebar .unfold-nav-item:first-child {
  background-color: var(--sutec-green) !important;
  color: white !important;
}

/* Estilo para los iconos */
#nav-sidebar .material-symbols-outlined {
  color: white !important;
}

#nav-sidebar .text-font-important-light {
  color: white !important;
}

/* Estilo para el elemento activo - icono */
#nav-sidebar .unfold-nav-item.active .material-symbols-outlined {
  color: var(--sutec-yellow) !important;
}

/* Estilo para el título del menú */
#nav-sidebar .unfold-nav-section-title {
  color: white !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding-left: 16px;
  text-transform: uppercase;
}

/* Eliminar bordes y sombras no deseados */
#nav-sidebar .unfold-nav-item,
#nav-sidebar .unfold-nav-section {
  border: none !important;
  box-shadow: none !important;
}

/* Ajustar el color de fondo del contenedor principal del sidebar */
.unfold-sidebar {
  background-color: var(--sutec-green-dark) !important;
  position: relative;
  padding-bottom: 100px; /* Espacio para el logo */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 640px) {
  .login-logo {
    max-width: 120px;
  }
}

/* Sobrescribir el fondo blanco de los elementos del menú */
#nav-sidebar .bg-base-100 {
  background-color: transparent !important;
}

/* Asegurar que los enlaces dentro del sidebar tengan fondo transparente */
#nav-sidebar a, 
#nav-sidebar a.bg-base-100,
#nav-sidebar li a,
#nav-sidebar .unfold-nav-item a {
  background-color: transparent !important;
  color: white !important;
}

/* Asegurar que los enlaces activos tengan el color amarillo */
#nav-sidebar a.active,
#nav-sidebar li a.active,
#nav-sidebar .unfold-nav-item.active a {
  color: var(--sutec-yellow) !important;
}

/* Sobrescribir cualquier estilo de hover que pueda estar aplicando fondos blancos */
#nav-sidebar a:hover,
#nav-sidebar li a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Asegurar que el primer elemento (Inicio) mantenga su fondo verde */
/* #nav-sidebar li:first-child a,
#nav-sidebar .unfold-nav-item:first-child a {
  background-color: var(--sutec-green) !important;
} */

/* Estilos para las tarjetas de estadísticas */
.stat-card {
  flex: 1;
  background-color: #FFF9E6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #FFE8A3;
}

.stat-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  background-color: #FFE8A3;
  color: #8B6E00;
  font-weight: 500;
  margin-bottom: 10px;
  float: right;
}

.stat-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

.stat-progress {
  font-size: 13px;
  color: var(--sutec-green);
  font-weight: 500;
}

/* Ajustes específicos para cada tipo de tarjeta */
.stat-card.yellow {
  background-color: #FFF9E6;
  border: 1px solid #FFE8A3;
}

.stat-card.blue {
  background-color: #EFF8FF;
  border: 1px solid #C2E0FF;
}

.stat-card.green {
  background-color: #F0FFF4;
  border: 1px solid #C6F6D5;
}

.stat-card.blue .stat-badge {
  background-color: #C2E0FF;
  color: #1A56DB;
}

.stat-card.green .stat-badge {
  background-color: #C6F6D5;
  color: #047857;
}

/* Logo de Sucre en el sidebar */
.sidebar-logo-container {
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
}

.sidebar-logo-sucre {
  width: 160px;
  height: auto;
  opacity: 0.9;
  margin: 0 auto;
  left: 60px;
  bottom: 60px;
}

/* Ajustar el padding-bottom del contenedor del sidebar */
.unfold-sidebar .simplebar-content {
  padding-bottom: 20px !important;
}

.vForeignKeyRawIdAdminField {
  width: 60px !important;
}