 body {
  background: #e9e9e9 !important; 
}

.btn-success {
  --bs-btn-bg:  #b1d8a0;
  --bs-btn-color: #3b3b3b;
  --bs-btn-border-radius: 50% !important;
  --bs-btn-font-weight: 500;  
}

.btn-success:hover {
  --bs-btn-hover-bg: #a8cb98;
  --bs-btn-hover-color:
}

.btn-success-modal {
  background: linear-gradient(
    90deg,
    #48b995 0%,
    #4cd1a2 50%,
    #52d3ac 100%
  ) !important;

  color: #ffffff;
  font-weight: 700;
  border: none;
}

/* Hover */
.btn-success-modal:hover {
  background: linear-gradient(
    90deg,
    #3fae8c 0%,
    #45c99b 50%,
    #4acfa6 100%
  ) !important;

  color: #ffffff;
}

.btn-info, .btn-primary {
  --bs-btn-bg: #2ca8d5;
  --bs-btn-color: #fff;
   --bs-btn-font-weight: 500;
}

.btn-info:hover {
  --bs-btn-hover-color: #fff !important;
}

.btn-warning{
  --bs-btn-bg: #f3c94b;
  --bs-btn-color: #474747;
  --bs-btn-font-weight: 500;
}

.btn-outline-secondary {
  --bs-btn-color: #444;
  --bs-btn-border-color: #e1dfdf;
  --bs-btn-bg: #f4f4f4;
  --bs-btn-font-weight: 500;
}

.btn-purple {
  --bs-btn-color: #fff;
  --bs-btn-bg: blueviolet;
  --bs-btn-border-color: blueviolet;
  --bs-btn-font-weight: 500;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgb(95, 36, 150);
  --bs-btn-hover-border-color: rgb(95, 36, 150);

  --bs-btn-focus-shadow-rgb: 138, 43, 226;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgb(85, 30, 135);
  --bs-btn-active-border-color: rgb(85, 30, 135);
}

.btn-outline-secondary:hover {
  --bs-btn-hover-color: #444;
  --bs-btn-hover-bg: #e7e7e7;
  --bs-btn-hover-border-color: #e1dfdf;
}

.grid-view .bg-success {
  background-color: #dff0d8 !important;
  color: rgb(55, 109, 38) !important;
}

.grid-view .bg-info {
  background-color: #489af3 !important;
  color: rgb(243, 243, 243) !important;  
}

.border-active {
  color:#6b6394 !important;
}

.grid-view .bg-warning {
  background-color: #f0e174 !important;
  color: #746001 !important;  
}

.grid-view .bg-danger{
  background-color: #e15454 !important;
  color: #f4f4f4 !important;  
}

.grid-view :is(.bg-info, .bg-danger)
  :is(.gridview-panel-heading-info, .gridview-panel-heading-danger) {
  color: #ffffff;
}

.grid-view :is(.bg-success, .bg-warning)
  :is(.gridview-panel-heading-success, .gridview-panel-heading-warning) {
  color: #555555;
}

.grid-view  table a { 
  color: #0a69d4 !important;
}

.grid-view table a:hover { 
  color: #217ae0 !important;
}

.kv-editable {
  font-size: small !important;
}

.card :is(
  .border-success,
  .border-info,
  .border-danger,
  .border-warning,
  .border-primary
) {
  border-color: #ffffff !important;
}

.card .bg-gray-50 {
    background-color: #f4f4f4;
}

.kv-grid-panel .kv-table-header > tr,
.kv-grid-panel .kv-table-header > tr > th,
.kv-grid-panel .kv-table-header > tr > td {
  background: #fafafa;
  background: linear-gradient(
    90deg,
    rgba(250, 250, 250, 1) 0%,
    rgba(243, 243, 243, 1) 51%,
    rgba(250, 250, 250, 1) 100%
  );
}

/* Solo afecta al modal con clase .modal-success */
.modal-success .bg-success {
  background: linear-gradient(
    90deg,
    #48b995 0%,
    #4cd1a2 50%,
    #52d3ac 100%
  ) !important;

  border-bottom: none;
}

/* Solo afecta al modal con clase .modal-info */
.modal-info .bg-info {
  background: linear-gradient(
    90deg,
    #2a8dd8 0%,
    hsl(210, 82%, 56%) 50%,
    #3156eb 100%
  ) !important;

  border-bottom: none;
}

/* Solo afecta al modal con clase .modal-info */
  .modal-bg-slate {
  background: linear-gradient(
    90deg,
    #7495b6 0%,
    hsl(207, 18%, 55%) 50%,
    #707899 100%
  ) !important;

  border-bottom: none;
}
.modal-bg-slate h1 {
  color:#fff;
}

.modal-success .modal-header .btn-close {
  background: #dc3545 !important; /* rojo */
  opacity: 1 !important;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  position: relative;
  /* Eliminar el icono SVG de Bootstrap */
  background-image: none !important;
}

.modal-success .modal-header .btn-close::after {
  content: "×";
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: -10px;
  left: 6px;
}

.modal-success .modal-header .btn-close:focus,
.modal-success .modal-header .btn-close:focus-visible,
.modal-success .modal-header .btn-close:active {
  outline: none !important;
  box-shadow: none !important;
}

.select2-container--krajee-bs5 .select2-selection--single {
  border: 1px solid #b0b0b0 !important;
}

.select2-selection,
.select2-container--krajee-bs5:not(.select2-container--disabled)
  .select2-selection:focus {
  border-color: none;
  box-shadow: none !important;
}

.select2-container--krajee-bs5:not(.select2-container--disabled)
  .select2-dropdown {
  border: 1px solid #b0b0b0;
  box-shadow: none;
}

/* ---------- estilos base para help-block (ligth) ---------- */
.help-block {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 12px;
    background: rgba(217, 83, 79, 0.06);
    padding: 6px 10px;
    border-left: 3px solid #d9534f;
    border-radius: 4px;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease, margin-top 0.28s ease;
    pointer-events: none;
}

.help-block:not(:empty),
.form-group.has-error .select2-container--open ~ .help-block {
    max-height: 240px;
    opacity: 1;
    margin-top: 15px;
    pointer-events: auto;
}

/* Cuando el card está EXPANDIDO */
.card:not(.collapsed-card) [data-lte-icon="expand"] {
  display: none;
}

.card:not(.collapsed-card) [data-lte-icon="collapse"] {
  display: inline-block;
}

/* Cuando el card está COLAPSADO */
.card.collapsed-card [data-lte-icon="expand"] {
  display: inline-block;
}

.card.collapsed-card [data-lte-icon="collapse"] {
  display: none;
}

.timeline-item .time .span-time {
  transition: color 0.3s ease !important;
}

.timeline-item .time .span-time:hover {
  color: #e70c0c !important;
}

.header-title-x h5 { 
  color: #3e3d3d;
}

.filter-reports {
  color: #151515;
}

.list-reports {
  color: #151515;
}

.timeline-item a {
  color: #fff;
}

.timeline .timeline-item .timeline-header { 
  background: #009b95 !important;
  color: #fff !important;
}

.timeline-item .time-botones {
   height: 38px !important;
   font-size: 1rem !important; 
   font-weight: 500;
   padding: 0.5rem 0.75rem !important;
}

.timeline-item .btn-outline-light:hover {
   background-color: #04837f !important;
}

.timeline-item .time-dropdown-button {
  margin-top: -15px !important;
}

.error-page {
   background-color: #e0e0e0;
}

.btn-green {

  background-color: #04837f !important;
  color: #fff;
}

.btn-green:hover {
  background-color: #036b67 !important; 
  color: #fff;
}

.btn-violet {
  background-color: #5b5de0 !important;
  color: #fff;
}

.btn-violet:hover {
  background-color: #5153cf !important; 
  color: #fff;
}

.btn-orange {
  background-color: #d48645 !important;
  color: #fff;
}

.btn-orange:hover {
  background-color: #cf7f3e !important; 
  color: #fff;
}

.btn-lemon {
  background-color: #84a352  !important;
  color: #fff;
}

.btn-lemon:hover {
  background-color: #7e9c4e !important; 
  color: #fff;
}

.btn-rose {
  background-color: #b35897  !important;
  color: #fff;
}

.btn-rose:hover {
  background-color: #aa518f !important; 
  color: #fff;
}

.btn-blue {
  background-color: #3e91df  !important;
  color: #fff;
}

.btn-blue:hover {
  background-color: #3482ca !important; 
  color: #fff;
}

.btn-neutral {
  background-color: #f7f7f8  !important;
  color: #6a7282;
  border: solid 1px #dfdfdf !important;
}

.btn-neutral:hover {
  background-color: #dfdfe0  !important; 
  color: #6a7282;
}

.btn-gray {
  background-color: #f0f0f3  !important;
  color: #59606d;
  border: solid 1px #dddddd !important;
}

.btn-gray:hover {
  background-color: #f1f1f1  !important; 
  color: #6a7282;
}

.btn-zinc {
  background-color: #f4f4f5  !important;
  color: #6a7282;
}

.btn-zinc:hover {
  background-color: #d4d4d8  !important; 
  color: #6a7282;
}

.btn-purple {
  background-color: #972cb8  !important;
  color: #ffffff;
}

.btn-purple:hover {
  background-color: #8627a3 !important; 
  color: #ffffff;
}

.btn-zinc-grid {
  background-color: #eeeeee  !important;
  color: #6a7282;
  border: solid 1px #dfdfdf !important;
  margin-right: 4px;
  font-size: 10pt;
   /* 👇 clave para centrar y espaciar */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;            
  padding: 6px 12px;    
  text-align: center;
  /*white-space: nowrap;*/
}

.btn-zinc-grid:hover {
  background-color: #dfdfe0  !important; 
  color: #5f6674;
}

.kv-grid-panel .kv-table-header > tr > th, .kv-grid-panel .kv-table-header > tr > td {
    color: #5f93d6;
}

.nav-tabs .nav-link {
  color:#525252;
}

.navbar .nav-link {
  color: #ffffff !important;
}

.pagination {
  margin: 60px;
}

[data-lte-toggle="sidebar"] {
    color: #ffffff;     
    font-weight: bold;
    font-size: 24px;

    /* --- ESTILO CIRCULAR --- */
    background: #009ddc;          
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;            

    /* --- SOMBRA Y EFECTO ELEGANTE --- */
    box-shadow: 0 2px 6px rgba(38, 80, 247, 0.4);
    transition: background 0.25s ease, transform 0.2s ease;
    margin-left: 10px;
}

/* En móvil: solo iconos */
@media (max-width: 768px) {
  .btn-zinc-grid .btn-text{
    display: none;
  }

  .btn-zinc-grid {
    padding: 8px;
    width: 40px;
    height: 40px;
  }
}

/* En tablet: solo iconos */
@media (max-width: 991px) {
  .btn-zinc-grid .btn-text {
    display: none;
  }

  .btn-zinc-grid {
    padding: 8px;
    width: 40px;
    height: 40px;
  }
}

label {
  color: #535353 !important;
  font-size:smaller
}

.app-header {
    background-color: #038cc2 !important;
}

/* Barra principal */
.ui-mprogress .bar-bg,
.ui-mprogress .buffer-bg,
.ui-mprogress .deter-bar,
.ui-mprogress .indeter-bar,
.ui-mprogress .query-bar {
  background: #24d1dd !important;
}

/* Fondo / buffer */
.ui-mprogress .bar-bg,
.ui-mprogress .buffer-bg {
  z-index: 1031;
  background: #b0d0ef !important;
}

/* Línea dashed animada */
.ui-mprogress .mp-ui-dashed {
  z-index: 1030;
  background: transparent;
}

.ui-mprogress .mp-ui-dashed:before {
  background: radial-gradient(#2ac8d3 0, #23c1cc 16%, transparent 42%) 0 -23px !important;
}

/* Brillo lateral */
.ui-mprogress .peg {
  box-shadow:
    0 0 10px rgba(13, 202, 216, 0.9),
    0 0 5px rgba(4, 188, 212, 0.6) !important;
}


/* Modal fullscreen real */
.modal-fullscreen .modal-content {
    height: 100vh;
}

/* Header fijo */
.modal-fullscreen .modal-header {
    height: 56px;
}

/* Footer fijo */
.modal-fullscreen .modal-footer {
    height: 70px;
    background: #e9e9e9;
}

/* Body = pantalla - header - footer */
.modal-fullscreen .modal-body {
    height: calc(100vh - 56px - 70px);
    padding: 0;
}

/* Contenedor del mapa */
.map-detail {
    width: 100%;
    height: 100%;
}

/* Requisito Mapbox */
#map {
    width: 100%;
    height: 100%;
}


.skeleton{
  background: linear-gradient(90deg,#dbdcdf 25%,#e4e4e6 37%,#cbcbcc 63%);
  background-size:400% 100%;
  animation:shimmer 1.4s ease infinite;
  border-radius:6px;
  margin-bottom: 10px;
}

.skeleton::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-img{
  width:100%;
  height:180px;      /* alto de la imagen */
  border-radius:10px;
}

.skeleton-title{height:28px}
.skeleton-text{height:14px}
.skeleton-block{height:80px}

.filter-skeleton {
  width: 100%;
  padding: 16px;
  border: 1px solid #dddedf;
  border-radius: 8px;
  background: #ebebeb;
}

.skeleton-input,
.skeleton-select,
.skeleton-button {
  height: 40px;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    #dbdcdf 25%,
    #e4e4e6 37%,
    #cbcbcc 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-select {
  height: 42px;
}

.skeleton-button {
  height: 44px;
  width: 120px;
}

.skeleton-row {
  display: flex;
  gap: 12px;
}

.skeleton-input.small {
  height: 40px;
}

 .skeleton-input { height: 38px; width: 100%; }
 .skeleton-textarea { height: 80px; width: 100%; }
 .skeleton-line { height: 20px; width: 90%; }
 .skeleton-image { height: 350px; width: 30%; align-items: center; }
 .skeleton-map { height: 300px; width: 100%; }

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

#global-skeleton,
#cards-skeleton,
#images-skeleton,
#table-skeleton,
#form-tabs-skeleton {
  display: none;
}

body[data-skeleton="global"] #global-skeleton { display:block; }
body[data-skeleton="cards"] #cards-skeleton  { display:block; }
body[data-skeleton="images"] #images-skeleton { display:block; }
body[data-skeleton="table"] #table-skeleton  { display:block; }
body[data-skeleton="form_tabs"] #form-tabs-skeleton  { display:block; }

#page-content {
  display:none;
}

.kv-grid-table .bg-light {  
  background: #eff0f1 !important;
}

.kv-expand-header-cell, .kv-expand-icon-cell:hover { 
   color:#30302f !important;
}


.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

/* Oculta el checkbox original */
.custom-checkbox input {
    display: none;
}

/* Caja personalizada */
.custom-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

/* Hover */
.custom-checkbox:hover .checkmark {
    border-color: #dc3545;
}

/* Cuando está seleccionado */
.custom-checkbox input:checked + .checkmark {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Check (✔) */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

/* Mostrar check */
.custom-checkbox input:checked + .checkmark::after {
    display: block;
}

/* Forma del check */
.custom-checkbox .checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Imagen */
.custom-img {
    width: 80px;
    height: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto al seleccionar */
.custom-checkbox input:checked ~ a img {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #dc3545;
    border-radius: 6px;
}

.mapboxgl-popup-close-button {
    color: #94a0b1 !important; /* Gris elegante por defecto */
    font-size: 18px !important;
    font-weight: 400 !important;
    font-family: Arial, sans-serif !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 50% !important; /* Lo hace perfectamente circular */
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 8px !important;
    right: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important; /* Animación suave */
}

/* Efecto moderno cuando pasas el cursor por encima (Hover) */
.mapboxgl-popup-close-button:hover {
    color: #ffffff !important; /* La X cambia a blanco */
    background-color: #e53e3e !important; /* Fondo rojo premium de alerta */
}

/* Evitar que los tags de Select2 se salgan del contenedor */
.select2-container--krajee-bs5,
.select2-container--krajee-bs4,
.select2-container--krajee {
    width: 100% !important;
}

.select2-container--krajee-bs5 .select2-selection--multiple,
.select2-container--krajee-bs4 .select2-selection--multiple,
.select2-container--krajee .select2-selection--multiple {
    min-height: 34px !important;
    height: auto !important;
    overflow: hidden !important;
}

.select2-container--krajee-bs5 .select2-selection--multiple .select2-selection__rendered,
.select2-container--krajee-bs4 .select2-selection--multiple .select2-selection__rendered,
.select2-container--krajee .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.select2-container--krajee-bs5 .select2-selection--multiple .select2-selection__choice,
.select2-container--krajee-bs4 .select2-selection--multiple .select2-selection__choice,
.select2-container--krajee .select2-selection--multiple .select2-selection__choice {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
}

.select2-container--krajee-bs5 .select2-selection--multiple .select2-search--inline,
.select2-container--krajee-bs4 .select2-selection--multiple .select2-search--inline,
.select2-container--krajee .select2-selection--multiple .select2-search--inline {
    width: auto !important;
    min-width: 50px !important;
}

.select2-container--krajee-bs5 .select2-selection--multiple .select2-selection__choice__display,
.select2-container--krajee-bs4 .select2-selection--multiple .select2-selection__choice__display,
.select2-container--krajee .select2-selection--multiple .select2-selection__choice__display {
    white-space: normal !important;
    word-break: break-word !important;
}