/* Botón flotante rectangular (add record) - usa primary-color de la aplicación */
.floating-button {
    position: fixed;
    bottom: 50px;
    right: 50px;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 6px;
    background-color: var(--bs-primary);
    color: white;
    font-size: 14px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.floating-button:focus {
    outline: none;
}
.floating-button:hover {
    outline: none;
    filter: brightness(0.92);
}

.icon-listener {
    cursor: pointer;

}
.icon-listener:hover {
    color: #000;
}

.cursor-help {
    cursor: help;
}

/* =============== Custom scroll datatables =============== */
.div_x_scroll {

    overflow-x: auto; /*para la barra de desplazamiento horizontal */
    /* Estilos personalizados */
    &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    &::-webkit-scrollbar-thumb {
        background: #007bff;
        border-radius: 5px;
        transition: background 0.3s; /* Añade una transición para el efecto de hover */
    }
    &::-webkit-scrollbar-thumb:hover {
      background: #fd3a08aa; /* Cambia a un tono más oscuro en hover */
    }
    &::-webkit-scrollbar-track {
        background: #aaaaaa;
    }
}

/* Estilos personalizados para el formulario */
#userForm .form-control {
    border-radius: 0.25rem;
    box-shadow: none;
}

#userForm .form-label {
    font-weight: bold;
}

#userForm .modal-footer {
    border-top: none;
}

.custom-drone-modal .modal-dialog {
    max-width: 1200px; /* Ajusta el ancho según sea necesario */
    height: 800px;
}

.form-step {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  }
  
  .form-step.active {
    opacity: 1;
    display: block;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  }
  
  .progress-bar {
    transition: width 0.5s ease-in-out;
  }

/* =============== Custom icon button =============== */
.custom-icon-button {
    padding: 0.6rem;
    border-radius: 7px;
    color: #fff;
    background-color: #1a3946;
    border-color: #1a3946;
    box-shadow: 2px 2px 4px #8d9ba1;
    font-size: 1.3rem;
    margin: 0.2rem;
    transition: background-color 0.2s ease-in-out; /* Added transition for hover effect */
  }
  
  /* .custom-icon-button {
    background-color: #2b5263;
  } */
  
  .custom-icon-button:mousedown {
    background-color: #122933;
  }
  
  .custom-icon-button:hover {
    background-color: #2b5263;
  }

/* Punto de despegue: solo borde verde en válidos, sin icono de check */
.takeoff-point-input-group .form-control.tp-input.is-valid,
.takeoff-point-input-group .form-control.tp-dir.is-valid,
.was-validated .takeoff-point-input-group .form-control.tp-input:valid,
.was-validated .takeoff-point-input-group .form-control.tp-dir:valid {
    background: transparent !important;
    background-image: none !important;
    background-size: 0 !important;
    padding-right: 0.35rem !important;
}

/* Asterisco rojo en labels requeridos */
label.required::after,
.form-label.required::after {
    content: " *";
    color: #dc3545 !important;
}

/* Sidebar multitenant: tenant bajo el logo, mayúsculas, tipografía más grande; menú con scroll */
.pc-sidebar {
  display: flex;
  flex-direction: column;
}
.pc-sidebar .navbar-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pc-sidebar .navbar-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}
.pc-sidebar .m-header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: auto;
  min-height: 74px;
  flex-shrink: 0;
}
.pc-sidebar .m-header .b-brand {
  flex-shrink: 0;
}
.pc-sidebar .tenant-org-name {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem 0.4rem !important;
  white-space: normal;
  word-break: break-word;
}
/* Íconos de acción en filas del alertsTable */
#alertsTable .action-icons .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}
#alertsTable .action-icons .icon i {
    font-size: 18px;
    cursor: pointer;
}
