@charset "UTF-8";
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  height: 100%;
}

.h1titulos {
  font-size: 2rem;
  margin: 10px;
  color: rgb(255, 255, 255);
  text-align: center;
}

/* =====================================================
   BOTONES
===================================================== */
.btn {
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

/* =====================================================
   TABLA
===================================================== */
table.dataTable {
  width: 100% !important;
}

/* =====================================================
   FOOTER DEL DASHBOARD
===================================================== */
.dashboard-footer {
  margin-top: auto; /* empuja al fondo */
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.dashboard-footer p {
  margin: 5px 0;
  opacity: 0.9;
}

.dashboard-footer span {
  font-weight: bold;
  color: #ffd166;
}

/* =====================================================
   LEAFLET
===================================================== */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
}

/* Contenedor del logo */
.logo-wrapper {
  width: 100%;
  padding: 2px;
  display: flex;
  align-items: center;
  overflow: hidden; /* Corta la parte de las letras cuando se achica */
}

.main-logo-img {
  height: 60px; /* Ajusta según el tamaño de tu círculo */
  min-width: 220px; /* Asegura que la imagen no se aplaste */
  transition: transform 0.3s ease;
}

.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background: #f3f3f5;
  color: rgb(8, 8, 8);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: width 0.3s ease;
}

/* Header (botón ☰) */
.sidebar-header {
  padding: 15px;
  cursor: pointer;
  font-size: 20px;
}

/* Estado colapsado */
.sidebar.collapsed {
  width: 70px;
}

/* 🔥 SOLO ocultar texto del menú (NO todo) */
.sidebar.collapsed .sidebar-menu span {
  display: none;
}

/* Menú */
.sidebar-menu {
  list-style: none;
  padding: 10px;
}

.sidebar-menu li {
  margin: 15px 0;
  cursor: pointer;
  /* 🔥 evita que el texto se corte */
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Footer */
.sidebar-footer {
  margin-top: auto; /* 👈 ESTA ES LA CLAVE */
  padding: 15px;
  font-size: 12px;
  opacity: 0.6;
}

/* 🔥 asegurar que el footer SIEMPRE se vea */
.sidebar.collapsed .sidebar-footer {
  display: block;
}

.content {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, #1e8c3a, #63b36c);
  overflow-y: auto;
}

/* =====================================================
   KPI
===================================================== */
.kpi-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-5px);
}

.kpi-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.kpi-title {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: bold;
}

/* public/css/graficas.css */
.graficas-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.graficas-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.controles-graficas {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.btn-tipo-grafica {
  min-width: 120px;
  margin: 5px;
}

.btn-tipo-grafica.active {
  background-color: #0d6efd;
  color: white;
}

.grafica-container {
  height: 400px;
  position: relative;
  margin: 20px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 5px 0;
}

.filtros-avanzados {
  background: #f1f3f4;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.filtro-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.filtro-group label {
  min-width: 150px;
  font-weight: 500;
}

.export-options {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.loader-graficas {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.spinner-graficas {
  width: 3rem;
  height: 3rem;
}

.tabla-beneficiarios {
  max-height: 500px;
  overflow-y: auto;
}

.tabla-beneficiarios table {
  font-size: 0.9rem;
}

.tabla-beneficiarios th {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.chart-tooltip {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .grafica-container {
    height: 300px;
  }
  .btn-tipo-grafica {
    min-width: 90px;
    font-size: 0.8rem;
  }
  .stat-number {
    font-size: 2rem;
  }
}
/* =====================================================
   TARJETAS
===================================================== */
.controls-container,
.map-container,
.table-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

/* =====================================================
   FILTROS
===================================================== */
.filtro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.label {
  display: block;
  margin-bottom: 5px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* =====================================================
   FILTROS
===================================================== */
.filtro-grid {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 15px;
  align-items: end;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contenedor-grilla-excel {
  height: auto;
  min-height: 200px;
  transition: all 0.3s ease-in-out;
  background-color: #ffffff;
  font-size: 0.78rem !important;
}

.tabla-scrolleable {
  max-height: 55vh;
  overflow-y: auto;
}
.tabla-scrolleable::-webkit-scrollbar {
  width: 6px;
}
.tabla-scrolleable::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.tabla-scrolleable::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.tabla-scrolleable::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
@media (max-width: 768px) {
  .tabla-scrolleable {
    max-height: 40vh;
  }
}

.cabecera-fija {
  position: sticky;
  top: 0;
  z-index: 10;
}
.cabecera-fija th {
  background-color: #198754 !important;
  color: #ffffff !important;
  border-color: #146c43 !important;
  font-weight: 600 !important;
}

.pagination,
#numerosPaginasTop,
#numerosPaginasBot {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pagination li,
#numerosPaginasTop li,
#numerosPaginasBot li {
  list-style: none !important;
  list-style-type: none !important;
  background-image: none !important;
  margin: 0 3px !important;
  padding: 0 !important;
  display: inline-block !important;
}

.pagination a,
#numerosPaginasTop a,
#numerosPaginasBot a,
.page-link {
  display: block !important;
  padding: 4px 9px !important;
  color: #4b5563 !important;
  text-decoration: none !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
  transition: all 0.2s ease;
  font-size: 0.75rem !important;
}
.pagination a:hover,
#numerosPaginasTop a:hover,
#numerosPaginasBot a:hover,
.page-link:hover {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

.pagination .active a,
#numerosPaginasTop .active a,
#numerosPaginasBot .active a,
.page-item.active .page-link {
  background-color: #212529 !important;
  border-color: #212529 !important;
  color: #ffffff !important;
  font-weight: bold !important;
}

.pagination .disabled a,
.page-item.disabled .page-link {
  color: #9ca3af !important;
  background-color: #f9fafb !important;
  border-color: #e5e7eb !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.d-flex.flex-wrap.justify-content-between {
  justify-content: space-between !important;
}

.fila-total-convenio td,
.fila-objetivo-general td {
  background-color: #f8f9fa !important;
  padding: 6px 10px !important;
  border-top: 2px solid #dee2e6 !important;
}

.fila-total-convenio {
  font-size: 0.78rem !important;
}

.fila-objetivo-general {
  font-size: 0.75rem !important;
}
.fila-objetivo-general td {
  white-space: normal !important;
  word-break: break-word !important;
}

.table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
  border-bottom: 1px solid #dee2e6 !important;
}
.table tbody tr:nth-child(even) td {
  background-color: #f2f4f6 !important;
  border-bottom: 1px solid #dee2e6 !important;
}
.table tbody tr:hover td {
  background-color: #e9ecef !important;
}

.btn-outline-danger {
  height: 40px !important;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px !important;
  color: #dc3545 !important;
  background-color: #71d0a4 !important;
  border: 1px solid #dc3545 !important;
}
.btn-outline-danger:hover {
  color: #ffffff !important;
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.celda-cargando {
  text-align: center !important;
  padding: 40px 0 !important;
}

.contenedor-cargando {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner-nativo {
  width: 20px;
  height: 10px;
  border: 2px solid #e5e7eb;
  border-top-color: #118c3c;
  border-radius: 50%;
  animation: girarSpinner 0.6s linear infinite;
}

.texto-cargando {
  font-size: 0.75rem;
  color: #105d15;
  font-family: inherit;
}

@keyframes girarSpinner {
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=main.css.map */
