:root {
  --bard-color-brand-text-gradient-stop-1: #4285f4;
  --bard-color-brand-text-gradient-stop-1-rgb: 66, 133, 244;
  --bard-color-brand-text-gradient-stop-2: #9b72cb;
  --bard-color-brand-text-gradient-stop-2-rgb: 155, 114, 203;
  --bard-color-brand-text-gradient-stop-3: #d96570;
  --bard-color-brand-text-gradient-stop-3-rgb: 217, 101, 112;
  --gem-sys-color--surface: #1b1c1d;
  --footer-height: 40px; /* Altura del footer compacto */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
}

.flex-none {
  flex: none !important;
}

.dropdown-side-link {
  display: inline-flex;
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
  text-decoration: none;
  width: 92%;
}

/* Ajustar padding de nav-links en sidebar desktop para que coincida con btn-toggle */
.bg-dark .nav-link {
  padding: 0.5rem 0.75rem;
}

.dropdown-side-link.active {
  color: #fff;
  background-color: #0d6efd;
}

.border-radius-left-0 {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.border-radius-right-0 {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.hovered-link {
  transition: 0.3s;
}

.hovered-link:hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  text-decoration: none !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.fs-8px {
  font-size: 8px !important;
}

.p-6px {
  padding: 6px !important;
}

.small-page-table th,
.small-page-table td {
  padding: 4px !important;
}

.card-header {
  border-bottom: 0px !important;
}

.cursor-pointer {
  cursor: pointer;
}

.table thead th,
.table tbody tr {
  cursor: pointer;
  vertical-align: middle;
}

.table thead th:last-child,
.table tbody tr td:last-child {
  text-align: start;
}

.ia-box {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
}

.ia-separator {
  width: 20%;
  height: 1px;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  margin: auto;
}

.ia-box-text {
  font-size: 72px;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  animation: gradient 8s ease infinite;
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.animation-translate-hidden {
  opacity: 0 !important;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animation-translate-show {
  opacity: 1 !important;
  transform: translateY(0);
}

.mh-180px {
  min-height: 180px;
}

.h-85 {
  height: 85%;
}

.h-15 {
  height: 15%;
}

.mt--285px {
  margin-top: -285px;
}

.mt--328px {
  margin-top: -328px;
}

.min-h-75 {
  min-height: 75% !important;
}

.min-h-25 {
  min-height: 25% !important;
}

@media (max-width: 488px) {
  #landin-loggin-button {
    position: unset !important;
    margin-top: 12px;
    margin-bottom: 18px;
  }
}

@media (max-width: 991px) {
  #main-base-layout {
    padding-top: 64px;
    flex-direction: column;
  }

  .nav-list-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-list-navigation .row {
    justify-content: space-between;
  }

  .nav-list-navigation ul {
    justify-content: center !important;
  }

  .hstack {
    flex-direction: column !important;
  }
  
  /* Ocultar bottom navigator ya que ahora usamos el sidebar móvil */
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .mt--285px {
    margin-top: -350px;
  }
}

.blob {
  border-radius: 50%;
  margin: auto;
  height: 10px;
  width: 10px;

  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  transform: scale(1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

#landin-loggin-button {
  position: absolute;
  top: 27px;
  right: 22px;
}

.btn-material-design {
  font-style: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
  padding: 0.375rem 1.5rem;
}

.absolute-bottom {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.w-fit-content {
  width: fit-content !important;
}

.right-19-px {
  right: 19px !important;
}

.card-person-type-wrapper {
  position: absolute;
  top: -13px;
}

.container-sidebar-logo {
  aspect-ratio: 16 / 5;
  width: 70%;
  max-width: 800px;
  overflow: hidden;
}

.sidebar-logo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* o 'contain' si no quieres recortar */
}

.mw-700-px {
  max-width: 700px !important;
}

.ml--14px {
  margin-left: -14px !important;
}

.bd-20px {
  border-radius: 20px;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  z-index: 1030;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
}

.bottom-nav .nav-item .bi {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.bottom-nav .nav-item.active {
  border: 1px solid #6c757d;
}

.h-24px {
  height: 24px !important;
}

.h-21px {
  height: 21px !important;
}

.dopdown-bottom-navigator::after {
  content: unset !important;
}

.bottom-navigator-submenu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  flex-direction: column-reverse;
  background-color: rgba(0, 0, 0, 0.4);
}

.empty-bottom-space {
  height: 72px;
}

.bottom-card-items-wrapper {
  flex: none;
}

.bottom-navigator-submenu-wrapper .nav-pills .nav-link.active,
.bottom-navigator-submenu-wrapper .nav-pills {
  background-color: unset !important;
  border: 1px solid white;
}

#transcriptWrapper {
  max-height: 400px;
  overflow-y: auto;
}

.mw-100 {
  max-width: 100%;
}

.mh-200-scroll {
  max-height: 200px;
  overflow-y: auto;
}

.circle-icon-bg {
  margin: auto;
  height: 26px;
  width: 26px;
  background: rgba(173, 216, 230, 0.7);
  border-radius: 50%;
}

.circle-icon-bg i::before {
  transform: rotate(335deg);
}

.input-group.has-childs::after {
  content: " ";
  height: 0px;
  width: 6px;
  position: absolute;
  right: -11px;
  border: 1px solid lightblue;
  bottom: 15px;
}

#main-classify-container .col .classify-child-branch:last-child {
  height: 0px !important;
}

.classify-child-branch {
  height: 100%;
  width: 6px;
  position: absolute;
  top: 14px;
  left: -1px;
  border-top: 2px solid lightblue;
  border-left: 2px solid lightblue;
  bottom: 14px;
}

#classifyTree {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas: Group, Category, Type */
  gap: 1rem;
  align-items: start;
}

.group-column,
.category-column,
.type-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.position-relative {
  position: relative;
}

.col-8.col-childs > .row:last-child .classify-child-branch {
  height: 0px;
}

.col-6.col-childs > .row .classify-child-branch {
  height: 100% !important;
}

.col-6.col-childs > .row:last-child .classify-child-branch {
  height: 0px !important;
}

.hiding-childs .row {
  display: none;
}

.hiding-childs::before {
  content: " ";
  position: absolute;
  height: 20px;
  width: 20px;
  background-color: red;
}

.chevron-rotate {
  transition: transform 0.3s ease;
}

.chevron-rotate.rotated {
  transform: rotate(180deg);
}

.sidebar-item-disabled {
  opacity: 0.7;
  cursor: not-allowed !important;
}

/* Organization Selector Styles */
.organization-selector-wrapper {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.organization-selector-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.organization-selector {
  transition: all 0.3s ease;
  cursor: pointer;
}

.organization-selector:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.organization-selector option {
  background-color: #212529;
  padding: 8px;
}

.organization-selector:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Loading animation for organization switch */
.organization-selector.loading {
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"%3E%3Ccircle cx="10" cy="10" r="8" stroke="%23ffffff" stroke-width="2" fill="none" stroke-dasharray="12.57" stroke-dashoffset="0"%3E%3Canimate attributeName="stroke-dashoffset" values="0;-12.57" dur="1s" repeatCount="indefinite"/%3E%3C/circle%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}


.badge-role {
  text-transform: uppercase;
  letter-spacing: .7px;
  word-spacing: 3px;
}

.classify-cell-container div {
  display: flex;
}

.classify-tree {
  height: 12px;
  width: 6px;
}

.ms-12px {
  margin-left: 12px;
}
.ms-29px {
  margin-left: 29px;
}


#nav-user-info {
  transition: all 0.3s ease;
  border: 0px solid black;
  background-color: transparent;
}
#nav-user-info:hover {
  background-color : rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  
}
@media (min-width: 992px) {
  .content-wrapper {
    margin-left: 280px;
    width: calc(100% - 280px);
  }
  
  #app-container {
    margin-left: 0;
    max-width: 100%;
  }
  
  .content-with-sidebar {
    max-width: 100%;
  }
}

.navbar {
  transition:  transform 0.3s ease-in-out;
  transform: translateY(0);
  opacity: 1 !important;
}

.navbar.hide {
  /* opacity: 0; */
  transform: translateY(-100px);
  pointer-events: none;
}

.navbar-hidden {
    /* opacity: 0.3; */
    transform: translateY(-50%);
    pointer-events: none; /* Evita clics cuando está semi-oculta */
}


@media (max-width: 575px) {
  .text-sm-ellipsis {
    width: 50px;         /* Ancho fijo para que se sepa cuándo cortar */
    white-space: nowrap;  /* Evita que el texto salte de línea */
    overflow: hidden;     /* Oculta el texto que sobrepasa */
    text-overflow: ellipsis; /* Muestra "..." al final */
  }
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 20px;
  padding: 0 .375rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border-width: 1px;
  white-space: nowrap;
}

.btn-chip i {
  font-size: 1rem;
}

/* Estados para chips con solo borde */
.btn-chip.btn-outline-secondary:not(.active) {
  background-color: transparent;
  color: #6c757d;
}

.btn-chip.btn-outline-warning:not(.active) {
  background-color: transparent;
  color: #ffc107;
}

.btn-chip.btn-outline-info:not(.active) {
  background-color: transparent;
  color: #0dcaf0;
}

.btn-chip.btn-outline-success:not(.active) {
  background-color: transparent;
  color: #198754;
}

/* Estados activos con fondo */
.btn-chip.btn-outline-secondary.active {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-chip.btn-outline-warning.active {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-chip.btn-outline-info.active {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: #000;
}

.btn-chip.btn-outline-success.active {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

/* Hover effects */
.btn-chip:hover:not(:disabled) {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-chip.btn-outline-secondary:hover:not(.active):not(:disabled) {
  background-color: rgba(108, 117, 125, 0.1);
}

.btn-chip.btn-outline-warning:hover:not(.active):not(:disabled) {
  background-color: rgba(255, 193, 7, 0.1);
}

.btn-chip.btn-outline-info:hover:not(.active):not(:disabled) {
  background-color: rgba(13, 202, 240, 0.1);
}

.btn-chip.btn-outline-success:hover:not(.active):not(:disabled) {
  background-color: rgba(25, 135, 84, 0.1);
}

/* Disabled state */
.btn-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Permite añadir contenido despues de un label como el `*` para mostrar com requerido */
/* ejemplo: 'label_attr' => [
                    'class' => 'custom_label_required',
                    'data-after-label' => '*', 
                ], */
.custom_label_required[data-after-label]::after {
      content: attr(data-after-label);
      color: #dc3545;
      margin-left: 5px;
      display: inline;
      font-weight: bold;
}

/* Sidebar scrollbar styling */
.sidebar-dark-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-dark-scroll::-webkit-scrollbar-track {
  background: #2c3034;
  border-radius: 4px;
}

.sidebar-dark-scroll::-webkit-scrollbar-thumb {
  background: #495057;
  border-radius: 4px;
}

.sidebar-dark-scroll::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

/* Firefox scrollbar styling */
.sidebar-dark-scroll {
  scrollbar-width: thin;
  scrollbar-color: #495057 #2c3034;
}

/* Reducir padding para cards colapsables cuando están cerradas */
.collapsed-card-body {
  padding: 0.50rem 0.75rem !important;
}

/* Eliminar margen inferior del header cuando la card está colapsada */
.collapsed-card-body > .d-flex.align-items-center.justify-content-between {
  margin-bottom: 0 !important;
}

.collapsed-card-body .mb-2:last-child {
  margin-bottom: 0 !important;
}