html, body, a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn, a, button {
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.btn:active, a:active, button:active {
  transform: scale(0.97);
  background-color: rgba(0,0,0,0.05);
}

/* 🚫 Bloquear selección y gestos tipo web */
html, body {
  -webkit-user-select: none; /* Safari, iOS */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-touch-callout: none; /* Bloquea menú de copiar/compartir en iOS */
  -webkit-tap-highlight-color: transparent; /* Quita parpadeo azul al tocar */
}

/* Opcional: evita la pulsación larga de enlaces/imágenes */
a, img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}


html, body {
  -webkit-overflow-scrolling: touch; /* Inercia natural al hacer scroll */
  scroll-behavior: smooth; /* desplazamiento fluido */
}

* {
  -webkit-tap-highlight-color: transparent; /* sin parpadeo azul en iOS */
}




/* Estilo del overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 9999; /* Asegura que est茅 por encima de otros elementos */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

/* Clase para desenfocar contenido */
.blur {
    filter: blur(5px);
    pointer-events: none; /* Evita interacci贸n con el contenido */
}

/* Spinner centrado */
.loading-overlay .spinner-border {
    width: 4rem;
    height: 4rem;
    color: white; /* Color del spinner */
}

.loading-overlay .label-text{
    color:white;
    user-select: none;
}


.content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}




  /* Fuente global moderna */
    body {
      font-family: "Inter", "Roboto", sans-serif !important;
      font-size: 14px;
      color: #2c2c2c;
      background-color: #f8f9fb; /* gris muy claro, profesional */
    }
    
    /* Ajuste para títulos y encabezados */
    h1, h2, h3, h4, h5, h6 {
      font-family: "Inter", "Roboto", sans-serif !important;
      font-weight: 600;
      color: #232323;
      letter-spacing: 0.2px;
    }
    
    /* Ajuste para botones, inputs, selects */
    button, input, select, textarea {
      font-family: "Inter", "Roboto", sans-serif !important;
      font-size: 14px;
    }
    
    /* Ajuste para la barra lateral o menús */
    .sidebar, .navbar, .nav, .dropdown-menu {
      font-family: "Inter", "Roboto", sans-serif !important;
    }

  
  
  
  .btn-primary{
      background:#232323!important;
      border-color: #232323!important;
  }
  .btn-info{
      background:#232323!important;
      border-color: #232323!important;
  }
  .skin-blue .main-header .navbar{
      background:#232323!important;
      position:fixed;
      width: -webkit-fill-available;
  }
  .skin-blue .main-header .logo{
      background:#232323!important;
      position:fixed;
  }
  .skin-blue .main-header .logo:hover{
      background:#232323!important;
  }
  .skin-blue .main-header .navbar .sidebar-toggle:hover{
      background:#232323!important;
  }
  .skin-blue .main-header li.user-header{
      background:#232323!important;
  }
  input[type=date].form-control, input[type=datetime-local].form-control{
      line-height:1.42857143!important;
  }
  .content-copy-clave{
      margin-top:10px;
      display: flex;
align-items: center;
  }
  #label-clave,#label-clave-2{
      margin-right: 10px;
  }
  .iti__country-list{
      z-index:10!important;
  }
  
  .nav-tabs {
        list-style: none;
        padding: 0;
        display: flex;
        border-bottom: none;
        margin-bottom: 1rem;
    }
    .nav-tabs li {
        margin-right: 10px;
    }
    .nav-tabs a {
        padding: 8px 16px;
        display: inline-block;
        background: #f0f0f0;
        border: 1px solid #ccc;
        border-bottom: none;
        text-decoration: none;
        color: #000;
        border-radius: 5px 5px 0 0;
    }
    .nav-tabs a.active {
        background: #fff;
        border-bottom: 1px solid #fff;
        font-weight: bold;
    }
    .tab-content {
        display: none;
        border-top: 1px solid #ccc;
        background: #fff;
    }
    .tab-content.active {
        display: block;
    }
    .nav-tabs>li>a:hover {
        border-color: white!important;
    }
    input[type=time].form-control{
        line-height:1.42857143;
    }
    .label-check{
        font-weight:500;
    }
    
    
    
    
    .switch {
      position: relative;
      display: inline-block;
      width: 50px;
      height: 24px;
    }

    .switch input {
      display: none;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0;
      right: 0; bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 24px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }

    input:checked + .slider {
      background-color: #232323;
    }

    input:checked + .slider:before {
      transform: translateX(26px);
    }

    .setting-row {
      margin-bottom: 10px;
      padding-bottom: 5px;
      border-bottom: 1px solid #eee;
    }

    .setting-header {
        margin-bottom: 5px;
        display: flex;
        justify-content: space-between;
    }

    .setting-header .label-switch {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .bootstrap-tagsinput, .input-config {
      width: 100%;
      border-radius: 4px;
      border: 1px solid #ccc;
      padding: 6px 8px;
    }

    .bootstrap-tagsinput .tag {
      background-color: #232323!important;
      padding: 3px 8px;
      border-radius: 3px;
      margin-right: 5px;
      color: white;
    }
    .toast-custom-success {
    background-color: #232323 !important; /* verde Bootstrap */
    color: white !important;
}

/* Día seleccionado */
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:focus {
  background-color: #232323 !important;  /* color de fondo del día seleccionado */
  border-color: #232323 !important;      /* borde del día seleccionado */
  color: #fff !important;                /* texto blanco para contraste */
}

/* Día actual (hoy) */
.datepicker table tr td.today {
  background-color: #e0e0e0 !important;  /* un gris suave para distinguir hoy */
  color: #232323 !important;
  border-color: #ccc !important;
}

/* Hover sobre días (opcional, para coherencia visual) */
.datepicker table tr td.day:hover {
  background-color: #f0f0f0 !important;
  color: #232323 !important;
}

  
  

/* === Estilo base para todos los botones de DataTables === */
.dt-button {
  border: none !important;
  border-radius: 6px !important;
  font-family: "Inter", "Roboto", sans-serif;
  font-weight: 500;
  padding: 8px 14px !important;
  margin: 3px !important;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #f5f5f5 !important;
  background: linear-gradient(135deg, #2f2f2f 0%, #232323 100%) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dt-button i {
  font-size: 14px;
  opacity: 0.9;
}

/* Hover elegante */
.dt-button:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2b2b2b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

/* === BOTONES ESPECÍFICOS === */

/* Copiar (gris-azulado sutil) */
.buttons-copy {
  background: linear-gradient(135deg, #3d3f48 0%, #2b2b2b 100%) !important;
}
.buttons-copy:hover {
  background: linear-gradient(135deg, #4a4c55 0%, #333333 100%) !important;
}

/* Excel (verde oscuro elegante) */
.buttons-excel {
  background: linear-gradient(135deg, #245c48 0%, #1a4032 100%) !important;
}
.buttons-excel:hover {
  background: linear-gradient(135deg, #2b7359 0%, #21513f 100%) !important;
}

/* CSV (azul petróleo profesional) */
.buttons-csv {
  background: linear-gradient(135deg, #1d4e5f 0%, #163b46 100%) !important;
}
.buttons-csv:hover {
  background: linear-gradient(135deg, #25687c 0%, #1a4e5c 100%) !important;
}

/* PDF (rojo elegante) */
.buttons-pdf {
  background: linear-gradient(135deg, #a62828 0%, #7e1f1f 100%) !important;
}
.buttons-pdf:hover {
  background: linear-gradient(135deg, #c93434 0%, #922424 100%) !important;
}

/* === Ajuste: íconos siempre visibles y bien alineados === */
.dt-button i {
  margin-right: 6px;
  vertical-align: middle;
}

/* === Estado activo o presionado === */
.dt-button:active,
.dt-button.active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}



/* === CONTENEDOR GENERAL === */
.dataTables_wrapper {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  color: #333;
  border: 1px solid #eee;
}

/* === TABLA === */
table.dataTable {
  border-collapse: collapse !important;
  width: 100%;
  background-color: #fff;
  color: #2c2c2c;
  border: none !important;
}

/* === CABECERA BLANCA CON BORDE SUAVE === */
table.dataTable thead {
  background-color: #ffffff !important; /* Fondo blanco */
  border-bottom: 2px solid #e6e6e6; /* línea inferior sutil */
  text-transform: uppercase;
  color: #232323;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05); /* sombra mínima para separar */
}

table.dataTable thead th {
  border: none !important;
  padding: 12px 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Mantener los íconos sort originales */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  background-color: #ffffff !important;
}


/* === FILAS === */
table.dataTable tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

table.dataTable tbody tr:hover {
  background-color: #fafafa !important;
}

/* === CELDAS === */
table.dataTable td {
  border: none !important;
  padding: 10px 14px;
  vertical-align: middle;
  color: #333;
}

/* === BUSCADOR Y SELECT === */
.dataTables_filter label,
.dataTables_info {
  color: #555;
}

.dataTables_filter input {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  padding: 5px 8px;
  outline: none;
  transition: border 0.2s;
}

.dataTables_filter input:focus {
  border-color: #232323;
}

.dataTables_length select {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  padding: 3px 6px;
}

/* === PAGINACIÓN MODERNA === */
.dataTables_paginate {
  margin-top: 10px;
  text-align: right;
}

.dataTables_paginate .paginate_button {
  border: 1px solid #ddd !important;
  background-color: #fff !important;
  color: #232323 !important;
  border-radius: 4px !important;
  margin: 0 3px;
  padding: 6px 12px;
  transition: all 0.2s ease-in-out;
}

.dataTables_paginate .paginate_button:hover {
  background-color: #232323 !important;
  color: #fff !important;
  border-color: #232323 !important;
}

.dataTables_paginate .paginate_button.current {
  background-color: #232323 !important;
  color: #fff !important;
  font-weight: 600;
}

/* === INFORMACIÓN === */
.dataTables_info {
  color: #777;
}

/* === RESPONSIVE DETALLE ICON === */
table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child::before {
  background-color: #232323;
  border-radius: 4px;
}



/* === ESTILO BASE PARA TODOS LOS BOTONES === */
.btn {
  border: none !important;
  border-radius: 6px !important;
  font-family: "Inter", "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  transition: all 0.25s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: none !important;
  line-height: 1.4;
}

/* Hover moderno */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  color: #fff !important;
}

/* Active o presionado */
.btn:active,
.btn.active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Tamaños --- */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 10px 22px;
  font-size: 15px;
}

/* --- Íconos dentro del botón --- */
.btn i {
  font-size: 15px;
  opacity: 0.9;
  pointer-events: none;
}

/* === VARIANTES DE COLOR === */

/* Principal (Primary) – tu color #232323 */
.btn-primary {
  background: linear-gradient(135deg, #2f2f2f 0%, #232323 100%) !important;
  color: #f5f5f5 !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2b2b2b 100%) !important;
}

/* Éxito (Success) – verde elegante */
.btn-success {
  background: linear-gradient(135deg, #2e7d32 0%, #256528 100%) !important;
  color: #fff !important;
}
.btn-success:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2a7030 100%) !important;
}

/* Información (Info) – azul profesional */
.btn-info {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%) !important;
  color: #fff !important;
}
.btn-info:hover {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%) !important;
}

/* Advertencia (Warning) – amarillo sobrio */
.btn-warning {
  background: linear-gradient(135deg, #f4b400 0%, #d79a00 100%) !important;
  color: #fff !important;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #f6c100 0%, #d6a100 100%) !important;
}

/* Peligro (Danger) – rojo moderno */
.btn-danger {
  background: linear-gradient(135deg, #c62828 0%, #8e0000 100%) !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #9b1111 100%) !important;
}

/* Por defecto (Default) – gris neutro */
.btn-default {
  background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) !important;
  color: #232323 !important;
  border: 1px solid #ccc !important;
}
.btn-default:hover {
  background: linear-gradient(135deg, #ebebeb 0%, #c9c9c9 100%) !important;
}

/* === ESTADOS === */
.btn[disabled],
.btn.disabled {
  opacity: 0.6 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* === CORRECCIÓN PARA BOOTSTRAP-SELECT (selectpicker) === */
.bootstrap-select > .btn {
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  color: #333 !important;
  box-shadow: none !important;
  font-weight: normal !important;
  font-size: 14px !important;
  padding: 6px 12px !important;
  transition: border-color 0.2s ease-in-out;
}

/* Hover y focus normales */
.bootstrap-select > .btn:hover,
.bootstrap-select > .btn:focus {
  background: #fff !important;
  border-color: #232323 !important;
  color: #232323 !important;
  box-shadow: none !important;
}

/* Desplegable */
.bootstrap-select .dropdown-menu {
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Opciones */
.bootstrap-select .dropdown-menu li a {
  color: #333;
  font-size: 14px;
  padding: 6px 12px;
}
.bootstrap-select .dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #232323;
}

/* Placeholder */
.bootstrap-select .filter-option {
  color: #555;
}

/* === CORRECCIÓN PARA BOOTSTRAP FILESTYLE === */
.bootstrap-filestyle .btn {
  background: #f8f8f8 !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  color: #333 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 6px 14px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: all 0.2s ease-in-out;
}

/* Hover y focus sutiles para el botón de archivo */
.bootstrap-filestyle .btn:hover,
.bootstrap-filestyle .btn:focus {
  background-color: #fff !important;
  border-color: #232323 !important;
  color: #232323 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Ícono dentro del botón de archivo */
.bootstrap-filestyle .btn i {
  margin-right: 6px;
  font-size: 14px;
  color: inherit;
}

/* Input oculto del plugin */
.bootstrap-filestyle input {
  display: none !important;
}



/* === CONTENEDOR DE ACCIONES === */
.btn-group-acciones {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

/* === BOTÓN BASE === */
.btn-accion {
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: #f4f4f4;
  color: #232323;
}

.btn-accion i {
  font-size: 14px;
  pointer-events: none;
}

/* Hover elegante */
.btn-accion:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  background-color: #232323;
  color: #fff;
}

/* === VARIANTES === */

/* Botón “Ver ubicación” */
.btn-accion-info {
  background-color: #e8f0fe;
  color: #1a73e8;
}
.btn-accion-info:hover {
  background-color: #1a73e8;
  color: #fff;
}

/* Botón “Ver detalle” */
.btn-accion-detalle {
  background-color: #f3e8ff;
  color: #7b1fa2;
}
.btn-accion-detalle:hover {
  background-color: #7b1fa2;
  color: #fff;
}

/* Botón “Editar” */
.btn-accion-editar {
  background-color: #fff3e0;
  color: #ef6c00;
}
.btn-accion-editar:hover {
  background-color: #ef6c00;
  color: #fff;
}



/* === ETIQUETAS / BADGES MODERNAS === */
.label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 30px; /* forma tipo píldora */
  letter-spacing: 0.3px;
  color: #fff;
  text-align: center;
  min-width: 80px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  user-select: none;
}

/* Hover sutil */

/* === COLORES MODERNOS === */
.bg-green {
  background: linear-gradient(135deg, #2e7d32 0%, #256528 100%);
}

.bg-green:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2a7030 100%);
}

.bg-red {
  background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
}

.bg-red:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #9b1111 100%);
}

.bg-yellow {
  background: linear-gradient(135deg, #f4b400 0%, #d79a00 100%);
  color: #fff;
}

.bg-yellow:hover {
  background: linear-gradient(135deg, #f6c100 0%, #d6a100 100%);
}

.bg-blue {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

.bg-blue:hover {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

.bg-gray {
  background: linear-gradient(135deg, #eeeeee 0%, #cccccc 100%);
  color: #232323;
}

.bg-gray:hover {
  background: linear-gradient(135deg, #f5f5f5 0%, #bdbdbd 100%);
}

/* Etiqueta neutra estilo sistema */
.bg-dark {
  background: linear-gradient(135deg, #2f2f2f 0%, #232323 100%);
}

.bg-dark:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2b2b2b 100%);
}



/* ========= TOKENS (puedes ajustarlos si quieres) ========= */
:root{
  --brand:#232323;
  --fc-bg:#fff;
  --fc-text:#2c2c2c;
  --fc-border:#dadce0;
  --fc-border-hover:#c7cbd1;
  --fc-placeholder:#9aa0a6;
  --fc-focus-ring: rgba(35,35,35,.12);
}

/* ========= BASE: inputs modernos ========= */
.form-control{
  background: var(--fc-bg);
  color: var(--fc-text);
  border: 1px solid var(--fc-border)!important;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: "Inter","Roboto",sans-serif;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s, color .2s;
  box-shadow: none;
}

.form-control:hover{
  border-color: var(--fc-border-hover);
}

.form-control:focus{
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--fc-focus-ring);
  background: #fff;
}

/* Placeholders */
.form-control::placeholder{ color: var(--fc-placeholder); opacity: 1; }

/* Disabled / readonly */
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control{
  background: #f5f6f7;
  color: #9e9e9e;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
}

/* Textarea */
textarea.form-control{
  min-height: 92px;
  resize: vertical;
}

/* ========= SELECT NATIVO (cuando NO usas .selectpicker) ========= */
select.form-control{
  padding-right: 32px;               /* espacio para flecha */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}
select.form-control:focus{
}

/* ========= NUMBER: spinners minimalistas ========= */
input[type="number"].form-control{
  -moz-appearance: textfield;
}
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button{
  -webkit-appearance: none; margin: 0;
}

/* ========= INPUT-GROUP (Bootstrap 3) ========= */
.input-group .form-control{ border-radius: 6px; }

.input-group-addon{
  background-color: #f5f6f7!important;
  border: 1px solid var(--fc-border);
  color: #666;
  border-radius: 6px;
  transition: border-color .2s, color .2s, background .2s;
}

.input-group:focus-within .input-group-addon{
  border-color: var(--brand);
  color: var(--brand);
}

/* Evita doble borde entre addon y control */
.input-group .form-control + .input-group-addon,
.input-group-addon + .form-control{ margin-left: -1px; }

/* ========= ESTADOS DE VALIDACIÓN (Bootstrap 3) ========= */
.has-error .form-control{
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}
.has-success .form-control{
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}
.help-block, .form-text{ color:#6b7280; }

/* ========= TAMAÑOS COHERENTES ========= */
.input-sm.form-control{ padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.input-lg.form-control{ padding:10px 16px; font-size: 15px; border-radius: 6px; }

/* ========= RESPETO a plugins ya ajustados ========= */
/* selectpicker (ya tienes estilos específicos para su .btn) */
.bootstrap-select > .btn{ /* se mantiene con tu override existente */ }
/* filestyle (ya tienes override para su .btn) */
.bootstrap-filestyle .btn{ /* se mantiene con tu override existente */ }




/* ===== NAVBAR USER MENU ===== */
.navbar-custom-menu .user-menu {
  position: relative;
}

.user-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #f5f5f5 !important;
  padding: 10px 14px;
  font-family: "Inter","Roboto",sans-serif;
  font-size: 14px;
  transition: background .25s ease, color .25s ease;
}

.user-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
}

.caret-icon {
  font-size: 12px;
  color: #bbb;
  transition: transform .2s ease;
}

.user-menu.open .caret-icon {
  transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.user-menu-dropdown {
  min-width: 230px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 0;
  animation: dropdownFade .2s ease;
}

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

/* Header */
.user-dropdown-header {
  text-align: center;
  background: #fafafa;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.user-dropdown-body {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.user-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 8px;
  object-fit: cover;
}

.user-meta {
  color: #333;
}

.user-meta small {
  color: #888;
}

/* Footer */
.user-dropdown-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}

.user-dropdown-footer .btn {
  flex: 1;
  font-size: 13px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  transition: all .2s;
}

/* Perfil */
.btn-profile {
  background: #232323;
  color: #fff!important;
  border: 1px solid #e0e0e0;
}
.btn-profile:hover {
  background-color: #232323!important;
  color: #fff;
  border-color: #232323;
}

/* Salir */
.btn-logout {
  background: #c62828;
  color: #fff;
  border: none;
}
.btn-logout:hover {
  background: #b71c1c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .user-name {
    display: none;
  }
}

.user-info p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.user-info strong {
  flex-shrink: 0;
  font-weight: 600;
  color: #000;
}

.user-info span {
  word-break: break-word;
  text-align: right;
}

.user-info {
  text-align: left;
}


#modalPerfil .perfil-header {
  text-align: center;
  background: #fafafa;
  padding: 20px 10px;
  border-bottom: 1px solid #eee;
}

#modalPerfil .perfil-header img {
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin-bottom: 10px;
}

#modalPerfil .perfil-header h4 {
  margin: 5px 0 2px;
  font-weight: 600;
}

#modalPerfil .perfil-header small {
  color: #777;
}




/* ==== CONTENEDOR GENERAL ==== */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==== TARJETAS ==== */
.dashboard-card {
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 140px;
}

.dashboard-card:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ==== CONTENIDO ==== */
.card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  height: 100%;
}

.card-icon {
  font-size: 40px;
  opacity: 0.15;
  position: absolute;
  right: 20px;
}

.card-text h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.card-text p {
  font-size: 13px;
  opacity: 0.9;
  margin: 4px 0 0;
}

/* ==== COLORES ==== */
.card-orange { background: linear-gradient(135deg, #f57c00, #ef6c00); }
.card-blue   { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.card-green  { background: linear-gradient(135deg, #43a047, #2e7d32); }

/* ==== ENLACES ==== */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  width: 100%;
}

.card-footer {
  background: rgba(0,0,0,0.1);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: #fff;
  transition: background 0.25s ease;
}

.card-footer:hover {
  background: rgba(0,0,0,0.2);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 991px) {
  .dashboard-card {
    height: auto;
  }
  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-icon {
    position: relative;
    right: 0;
    opacity: 0.25;
  }
}







.user-panel{
    height:80px;
    display: flex;
    align-items: center;
}
.identificacion-empresa{
    font-weight: 100!important;
font-size: 12px;
}

@media (max-width: 767px) {
    .user-panel{
        height:100px;
    }
}





.dropdown-menu>.active>a{
    background-color:#232323;
    color:white!important;
}




        .dropzone {
            border: 2px dashed #007bff;
            border-radius: 5px;
            background-color: #f8f9fa;
            padding: 50px;
            text-align: center;
            color: #6c757d;
            cursor: pointer;
        }
        .dropzone.dragover {
            background-color: #e2e6ea;
        }
        @media only screen and (max-width: 768px) {
            #preview,#preview-img{
                padding-top:20px;
            }
        }
        #preview,#preview-img{
            display: flex;
            justify-content: center;
        }
        
        
        
/* Limita el tamaño del modal y centra el recorte */
#cropperModal .modal-dialog {
  width: 90%;
  max-width: 900px;
}

#cropperModal .modal-body {
  max-height: 70vh;
  overflow: hidden;
  text-align: center;
}

/* Asegura que la imagen se ajuste al contenedor */
#cropperImage {
  max-width: 100%;
  max-height: 65vh;
  display: inline-block;
}



.modal-backdrop{
    z-index:999!important;
}


.iti{
    display:block!important;
}

.d-none {
  display: none !important;
}



/* Modo espejo para el lector QR */
/*#qrReader video {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
}*/


.skin-blue .main-header .navbar .sidebar-toggle{
    font-size:20px;
}

.sidebar-menu .treeview-menu li i, .treeview i{
    padding-right:10px;
}

.sidebar-menu .treeview-menu>li>a,.sidebar-menu li.header,.sidebar-menu>li>a{
    padding:17px 5px 17px 30px!important;
}
.user-panel{
    padding-left:27px;
}

.sidebar-mini.sidebar-collapse .main-sidebar{
    width:75px!important;
}

.main-sidebar,.skin-blue .sidebar-menu>li.header, .skin-blue .sidebar-menu>li>.treeview-menu, .skin-blue .sidebar-menu>li:hover>a{
    background-color: #232323!important;
}

.sidebar-mini.sidebar-collapse .content-wrapper,.sidebar-mini.sidebar-collapse .main-footer{
    margin-left:75px!important;
}

.skin-blue .wrapper{
    background-color: #ecf0f5!important;
}
.skin-blue .sidebar-menu>li>.treeview-menu, .sidebar-mini.sidebar-collapse .sidebar-menu>li:hover>a>span{
    width:210px!important;
}

.group-buttons-header{
    padding: 10px 0;
}

.btn-refresh,.btn-refresh:hover{
    color: #fff;
    float: left;
    background-color: transparent;
    background-image: none;
    padding: 15px 15px;
    font-family: fontAwesome;
    font-size: 20px;
}

.message-container{
    position:relative;
}

.message-container .alert{
    padding-right: 42px;
}

.close-btn-message {
    position: absolute;
    top: 3%;
    right: 4px;
    background: none;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 767px) {
    .skin-blue .main-header .logo{
        display: none!important;
    }
    .main-sidebar{
        padding-top:50px!important;
    }
    .sidebar-open .main-sidebar{
        width: 100%!important;
    }
    .main-header .navbar-custom-menu a{
        background:#232323;
    }
    .kpis h3{
        font-size:22px;
    }
}

/* Z-index más alto que sidebar y backdrop */
.modal {
  z-index: 99999 !important;
}
.modal-backdrop {
  z-index: 99998 !important;
}

.content-wrapper{
    margin-top:60px;
}

.main-sidebar{
    position:fixed!important;
}

#rango_fecha{
    font-size: 12px;
font-weight: 100;
font-style: italic;
}

    #tree-permisos {
        padding-top: 10px;
    }


label.required::after {
  content: " *"; /* Agrega el asterisco */
  color: red;    /* Cambia el color a rojo */
}



