/* Importing Google Font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
}

/* Color variables for light theme */
:root {
  --white-color: #fff;
  --black-color: #000;
  --light-white-color: #f0f0f0;
  --light-gray-color: #e5e5e5;
  --border-color: #ccc;
  --primary-color: #3b82f6;
  --secondary-color: #404040;
  --overlay-dark-color: rgba(0, 0, 0, 0.6);
}

/* Color variables for dark theme */
.dark-mode {
  --white-color: #171717;
  --black-color: #d4d4d4;
  --light-white-color: #333;
  --light-gray-color: #404040;
  --border-color: #808080;
  --secondary-color: #d4d4d4;
}

body {
  background: var(--white-color);
}

.container {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white-color);
}

.navbar {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 8px 16px;
  justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
  gap: 16px;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
  display: flex;
  align-items: center;
}

:where(.navbar, .sidebar) :where(.logo-image, .user-image) {
  width: 32px;
  cursor: pointer;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button {
  border: none;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
  background: var(--light-gray-color) !important;
}

:where(.navbar, .sidebar) .nav-button i {
  font-size: 1.5rem;
  display: flex;
  color: var(--black-color);
  align-items: center;
  justify-content: center;
}

:where(.navbar, .sidebar) .nav-logo {
  display: flex;
  gap: 8px;
  text-decoration: none;
}

:where(.navbar, .sidebar) .nav-logo .logo-text {
  color: var(--black-color);
  font-size: 1.25rem;
}

.navbar .search-back-button {
  display: none;
}

.navbar .nav-center {
  gap: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar .search-form {
  flex: 1;
  height: 40px;
  max-width: 550px;
}

.navbar .search-form .search-input {
  width: 100%;
  height: 100%;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  color: var(--black-color);
  background: var(--white-color);
  border-radius: 49px 0 0 49px;
  border: 1px solid var(--border-color);
}

.navbar .search-form .search-input:focus {
  border-color: var(--primary-color);
}

.navbar .search-form .search-button {
  height: 40px;
  width: auto;
  padding: 0 20px;
  border-radius: 0 49px 49px 0;
  border: 1px solid var(--border-color);
  border-left: 0;
}

.navbar .nav-center .mic-button {
  background: var(--light-white-color);
}

.navbar .nav-right .search-button {
  display: none;
}

.main-layout {
  display: flex;
  overflow-y: auto;
  scrollbar-color: #a6a6a6 transparent;
}

.main-layout .sidebar {
  position: fixed;
  top: 56px; /* Altura del header */
  left: 0;
  width: 280px;
  height: calc(100vh - 56px);
  background: var(--white-color);
  z-index: 999;
  overflow-y: auto;
  padding: 0 11px 0;
}

.main-layout .sidebar .nav-left {
  display: none;
  padding: 8px 5px;
}

body.sidebar-hidden .main-layout .sidebar {
  width: 0;
  padding: 0;
}

.sidebar .links-container {
  padding: 0 0 32px 0;
  overflow-y: auto;
  height: calc(100vh - 280px); /* Ajustado para el espacio del usuario y buscador */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar .links-container:hover {
  scrollbar-color: #a6a6a6 transparent;
}

.sidebar .link-section {
  list-style: none;
}

.sidebar .link-section .link-item {
  display: flex;
  cursor: pointer;
  color: var(--black-color);
  white-space: nowrap;
  align-items: center;
  font-size: 0.938rem;
  padding: 5px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  text-decoration: none;
}

.sidebar .link-section .link-item:hover {
  background: var(--light-gray-color);
}

.sidebar .link-section .link-item i {
  font-size: 1.4rem;
  margin-right: 10px;
}

.sidebar .link-section .section-title {
  color: var(--black-color);
  font-weight: 600;
  font-size: 0.938rem;
  margin: 16px 0 8px 8px;
}

.sidebar .section-separator {
  height: 1px;
  margin: 10px 0;
  background: var(--light-gray-color);
}

/* Estilos para la sección de información del usuario */
.user-info-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: #f6f6f6;
  border-radius: 16px;
  box-shadow: none;
  margin: 0;
}

.user-avatar {
  margin-right: 0;
}

.user-image-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-level {
  margin: 0;
  font-size: 0.8rem;
  color: var(--secondary-color);
  opacity: 0.8;
}

.user-actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.btn-profile, .btn-logout, .btn-notify {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-profile {
  background: var(--primary-color);
  color: white;
}

.btn-profile:hover {
  background: #2563eb;
  color: white;
  transform: scale(1.05);
}

.btn-notify {
  background: #ffc107;
  color: #fff;
}

.btn-notify:hover {
  background: #e0a800;
  color: #fff;
  transform: scale(1.05);
}

.btn-logout {
  background: #dc3545;
  color: white;
}

.btn-logout:hover {
  background: #c82333;
  color: white;
  transform: scale(1.05);
}

/* Estilos para el buscador de menú */
.menu-search-section {
  padding: 0 5px 16px 5px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--secondary-color);
  font-size: 1rem;
  z-index: 1;
}

.menu-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 40px 8px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.menu-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.menu-search-input::placeholder {
  color: var(--secondary-color);
  opacity: 0.7;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--secondary-color);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: var(--light-gray-color);
  color: var(--black-color);
}

/* Estilos para elementos ocultos del menú */
.menu-item.hidden,
.link-item.hidden {
  display: none !important;
}

.menu-item.fade {
  opacity: 0.3;
  pointer-events: none;
}

/* Estilos para modo oscuro */
.dark-mode .user-info-section {
  background: var(--light-white-color);
  border-color: var(--border-color);
}

.dark-mode .menu-search-input {
  background: var(--white-color);
  color: var(--black-color);
  border-color: var(--border-color);
}

.dark-mode .menu-search-input:focus {
  border-color: var(--primary-color);
}

.dark-mode .search-icon,
.dark-mode .clear-search-btn {
  color: var(--secondary-color);
}

.dark-mode .clear-search-btn:hover {
  background: var(--light-gray-color);
  color: var(--black-color);
}

.main-layout .content-wrapper {
  margin-left: 280px; /* Ancho del sidebar */
  padding: 0 16px;
  padding-top: 56px; /* Altura del header */
  width: 100%;
  overflow-x: hidden;
}

body.sidebar-hidden .main-layout .content-wrapper {
  margin-left: 0;
}

.category-list {
  position: fixed;
  top: 56px; /* Altura del header */
  left: 280px; /* Ancho del sidebar */
  right: 0;
  z-index: 900;
  background: var(--white-color);
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scrollbar-width: none;
  padding: 0px 15px 0px 15px;
  margin-bottom: 60px; /* Espacio para que no tape los filtros */
}

body.sidebar-hidden .category-list {
  left: 0;
}

.dark-mode .category-list {
  background: #18191a;
}

.category-list .category-button {
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--black-color);
  padding: 6px 12px;
  background: var(--light-gray-color);
}

.category-list .category-button.active {
  color: var(--white-color);
  background: var(--black-color);
  pointer-events: none;
}

.dark-mode .category-list {
  background: #18191a;
}

.dark-mode .category-list .category-button.active {
  filter: brightness(120%);
}

.category-list .category-button:not(.active):hover {
  background: var(--border-color);
}

/* Responsive media code for small devices */
@media (max-width: 768px) {
  .navbar {
    gap: 1rem;
  }

  .navbar .nav-center,
  body.show-mobile-search .navbar .nav-left,
  body.show-mobile-search .navbar .nav-right {
    display: none;
  }

  .navbar .nav-right .search-button,
  body.show-mobile-search .navbar .search-back-button,
  body.show-mobile-search .navbar .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-layout .screen-overlay {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark-color);
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .screen-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .main-layout .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    height: 100vh;
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .sidebar {
    left: -280px;
  }

  .main-layout .sidebar .nav-left {
    display: flex;
  }

  /* Ajustes para la sección de usuario en móviles */
  .user-info-section {
    padding: 12px 8px;
    margin: 0 2px 12px 2px;
  }

  .user-image-large {
    width: 40px;
    height: 40px;
  }

  .user-name {
    font-size: 0.9rem;
  }

  .user-level {
    font-size: 0.75rem;
  }

  .btn-profile, .btn-logout {
    width: 28px;
    height: 28px;
  }

  /* Ajustes para el buscador en móviles */
  .menu-search-section {
    padding: 0 2px 12px 2px;
  }

  .menu-search-input {
    height: 36px;
    font-size: 0.85rem;
  }

  /* Ajuste de altura del contenedor de links para móviles */
  .sidebar .links-container {
    height: calc(100vh - 240px);
  }

  .sidebar-user-bottom {
    width: 100vw;
    left: 0;
    border-radius: 0 0 16px 16px;
    padding: 14px 8px 8px 8px;
  }
}

.colorgraph {
  height: 5px;
  border-top: 0;
  background: #c4e17f;
  border-radius: 5px;
  background-image: -webkit-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
  background-image: -moz-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
  background-image: -o-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
  background-image: linear-gradient(to right, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
}

/* Contenedor del loader */
#loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.dark-mode #loader {
  background: rgba(24, 25, 26, 0.85);
}

/* Fondo circular blanco */
.icon-background {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 50%;
  width: 60px;  /* Ajusta el tamaño del círculo */
  height: 60px;
}

.dark-mode .icon-background {
  background: #23272b;
}

/* Estilo y animación de la huella */
.spinner {
  font-size: 30px;   /* Ajusta el tamaño del ícono */
  color: #007bff;
  animation: spin 0.8s linear infinite;
}

.dark-mode .spinner {
  color: #2563eb;
}

/* Keyframes para la animación de rotación */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.dropdown-menu {
  z-index: 99999 !important;
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  min-width: 200px;
}

/* Dropdown modo oscuro */
.dark-mode .dropdown-menu {
  background: #23272b !important;
  color: #fff !important;
  border-color: #444 !important;
}

.dark-mode .dropdown-menu .dropdown-item {
  color: #fff !important;
}

.dark-mode .dropdown-menu .dropdown-item:hover,
.dark-mode .dropdown-menu .dropdown-item:focus {
  background: #343a40 !important;
  color: #fff !important;
}

.dark-mode .dropdown-divider {
  border-color: #444 !important;
}

.dark-mode .dropdown-menu .dropdown-item i {
  color: #fff !important;
}

/* Modo oscuro global para Bootstrap */
.dark-mode, .dark-mode body {
  background-color: #18191a !important;
  color: #f1f1f1 !important;
}

.dark-mode .bg-light, .dark-mode .card, .dark-mode .modal-content, .dark-mode .dropdown-menu, .dark-mode .table, .dark-mode .form-control, .dark-mode .input-group-text, .dark-mode .list-group-item, .dark-mode .alert, .dark-mode .popover, .dark-mode .toast {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .form-control, .dark-mode .input-group-text {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .form-control::placeholder {
  color: #bbb !important;
}

.dark-mode .btn-primary, .dark-mode .btn-primary:active, .dark-mode .btn-primary:focus {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.dark-mode .btn-primary:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.dark-mode .btn-secondary, .dark-mode .btn-secondary:active, .dark-mode .btn-secondary:focus {
  background-color: #444 !important;
  border-color: #444 !important;
  color: #fff !important;
}

.dark-mode .btn-secondary:hover {
  background-color: #333 !important;
  border-color: #333 !important;
}

.dark-mode .table {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
}

.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #202124 !important;
}

.dark-mode .table-hover > tbody > tr:hover {
  background-color: #2a2d31 !important;
}

.dark-mode .modal-content {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
}

.dark-mode .dropdown-menu {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
}

.dark-mode .dropdown-item {
  color: #f1f1f1 !important;
}

.dark-mode .dropdown-item:hover, .dark-mode .dropdown-item:focus {
  background-color: #343a40 !important;
  color: #fff !important;
}

.dark-mode .list-group-item {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .alert {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .popover {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .toast {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.dark-mode .nav-tabs .nav-link.active {
  background-color: #23272b !important;
  color: #fff !important;
  border-color: #444 #444 #23272b !important;
}

.dark-mode .nav-tabs .nav-link {
  color: #bbb !important;
}

.dark-mode .progress {
  background-color: #23272b !important;
}

.dark-mode .progress-bar {
  background-color: #2563eb !important;
}

#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #2563eb !important;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 3px;
}

.active {
  background: #d2e9f9;
}

.dark-mode .active  {
  background: #212529;
}

.dark-mode .card  {
  background: #212529;
}

.dark-mode .title  {
  color: #fff;
}

.dark-mode .text-muted {
  color: #bbb !important;
}

.dark-mode .text-primary {
  color: #2563eb !important;
}

.dark-mode select {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dark-mode .loader-overlay {
  background: rgba(24, 25, 26, 0.85);
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.dark-mode .loader {
  border: 4px solid #23272b;
  border-top: 4px solid #2563eb;
}

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

.card {
  position: relative;
}
/* Fijar tamaño de los canvas de los gráficos pie */
#pieDistribucionArea, #pieFacturadoArea {
  width: 100% !important;
  max-width: 400px;
  height: 300px !important;
  max-height: 300px;
  margin: 0 auto;
  display: block;
}
#comparativoChart {
  width: 100% !important;
  height: 500px !important;
}
#exportButtonsRow {
  position: relative;
}
#exportButtonsRow .loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark-mode .tabla-dark-auto, .dark-mode .tabla-dark-auto th, .dark-mode .tabla-dark-auto td {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}
.dark-mode .tabla-dark-auto thead th {
  background-color: #18191a !important;
  color: #fff !important;
}
.dark-mode .tabla-dark-auto.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #202124 !important;
}
.dark-mode .tabla-dark-auto.table-hover > tbody > tr:hover {
  background-color: #2a2d31 !important;
}

.btn-close {
  filter: invert(0.5); /* Cambia el color de la X, prueba valores entre 0 y 1 */
}

.tab-content .tab-pane {
  background: #fff;
}

.dark-mode .tab-content .tab-pane {
  background: #171819;
}

.fc-daygrid-day-number {
  color: #000;
  text-decoration: none;
}

.dark-mode .fc-daygrid-day-number {
  color: #fff;
}

.fc-col-header-cell-cushion {
  color: #000;
  text-decoration: none;
}

.dark-mode .fc-col-header-cell-cushion {
  color: #fff;
}

/* --- Daterangepicker Dark Mode Mejorado --- */
.dark-mode .daterangepicker {
  background-color: #23272b !important;
  color: #ebf4f8 !important;
  border-color: #444 !important;
}

.dark-mode .daterangepicker .calendar-table {
  background-color: transparent !important;
}

.dark-mode .daterangepicker td,
.dark-mode .daterangepicker th {
  color: #ebf4f8 !important;
}

.dark-mode .daterangepicker td.off,
.dark-mode .daterangepicker td.off.in-range,
.dark-mode .daterangepicker td.off.start-date,
.dark-mode .daterangepicker td.off.end-date {
  background-color: transparent !important;
  color: rgba(200,200,200,0.3) !important;
}

.dark-mode .daterangepicker td.active,
.dark-mode .daterangepicker td.active:hover {
  background-color: #2563eb !important;
  color: #fff !important;
}

.dark-mode .daterangepicker td.in-range {
  background-color: rgba(37,47,57,0.9) !important;
  color: #ebf4f8 !important;
}

.dark-mode .daterangepicker select.monthselect,
.dark-mode .daterangepicker select.yearselect {
  background: #23272b !important;
  color: #ebf4f8 !important;
  border-color: #444 !important;
}

.dark-mode .daterangepicker .input-mini {
  background: #23272b !important;
  color: #ebf4f8 !important;
  border-color: #444 !important;
}

.dark-mode .daterangepicker .drp-buttons .btn {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

.dark-mode .daterangepicker .drp-buttons .btn-default {
  background: #444 !important;
  color: #fff !important;
}

.dark-mode .daterangepicker .drp-buttons .btn-success {
  background: #2563eb !important;
  color: #fff !important;
}

.heatmap-container {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  grid-auto-rows: 50px;
  gap: 2px;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 4px;
  transition: transform 0.3s ease; /* Suaviza la animación */
  width: 50px !important;
}

.cell:hover {
  transform: scale(1.1); /* Agranda el elemento un 10% */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1); /* Agrega sombra al pasar el cursor */
}

.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* Heatmap Colors */
.low {
  background-color: #ED2738;
  color: black;
}

.medium {
  background-color: #F2BD3F; /* Naranja */
  color : black;
}

.high {
  background-color: #84BB4E;
  color: black;
}

.regiones path {
  fill: rgb(255, 217, 50);
  stroke: #68310a;
  stroke-width: 1px;
}

.regiones path:hover {
  fill: crimson;
}


.icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.icon div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
}

.icon .dog {
  color: orange;
}

.icon .cat {
  color: blue;
}

.bar-container {
  position: relative;
  height: 30px;
  background: #ddd;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
}

.bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.dog-bar {
  background: orange;
  border-radius: 15px 0 0 15px;
}

.cat-bar {
  background: blue;
  border-radius: 0 15px 15px 0;
}

.bar span {
  padding: 0 10px;
}

body.dark-mode .select2-container--default .select2-selection--multiple,
body.dark-mode .select2-container--default .select2-selection--single {
    background-color: #23272b;
    color: #fff;
    border-color: #444;
}
body.dark-mode .select2-container--default .select2-results__option {
    background-color: #23272b;
    color: #fff;
}
body.dark-mode .select2-container--default .select2-results__option--highlighted {
    background-color: #343a40;
    color: #fff;
}
body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #343a40;
    color: #fff;
    border-color: #444;
}

/* Cabecera de DataTables en modo oscuro */
body.dark-mode .dataTables_wrapper .dataTables_scrollHead th,
body.dark-mode .dataTables_wrapper .dataTables_scrollHead thead th,
body.dark-mode .dataTables_wrapper .dataTables_scroll thead th {
    background: #222 !important;
    color: #fff !important;
    border-bottom: 2px solid #444 !important;
}
body.dark-mode .dataTables_wrapper .dataTables_scrollHead {
    background: #222 !important;
}
body.dark-mode .dataTables_wrapper .dataTables_scrollBody {
    background: #181818 !important;
}
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #444 !important;
    color: #fff !important;
}
body.dark-mode .dataTables_wrapper .dataTables_length select,
body.dark-mode .dataTables_wrapper .dataTables_filter input {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.user-sedes {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.user-sede-badge {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  margin-bottom: 2px;
}

.sidebar-user-bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #f6f6f6;
  border-top: 1px solid var(--light-gray-color);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
  padding: 18px 16px 12px 16px;
  z-index: 1001;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.sidebar .links-container {
  padding-bottom: 180px !important;
}

.user-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #22c55e44;
  z-index: 2;
}

/* Ocultar la sección de usuario cuando el sidebar esté oculto */
body.sidebar-hidden .sidebar-user-bottom {
  display: none !important;
}