body {
  font-family: Arial, sans-serif;
  margin: 20px;
  padding: 0.5rem;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #585858;
}

::-webkit-scrollbar-thumb {
  background: #ff0000;
}

::-webkit-scrollbar-thumb:hover {
  background: #ad4141;
}

/* style.css */
.cell-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Ajusta este valor según tus necesidades */
  display: inline-block;
  vertical-align: middle;
}

.expand-button {
  display: none;
  margin-left: 10px;
  cursor: pointer;
  color: #007bff;
}

.expandable-cell:hover .expand-button {
  display: inline;
}

table {
  width: 80%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0px;
  text-align: left;
  font-size: 12px;
}

th {
  background-color: #f2f2f2;
  cursor: default;
  position: relative;
}

th {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  /* flex-direction: row; */
}

.table-responsive {
  max-height: 100vh;
  overflow: auto;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 2rem;
  margin-bottom: 20px;
  margin-top: 10px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: #ff7300;
  padding: 5px 10px;
  border-radius: 20px;
  animation: fadeIn 0.5s;
  color: hsl(0, 0%, 100%);
}

.filter-tag span {
  margin-left: 5px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.sort-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.sort-button::before,
.sort-button::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 4px solid transparent;
}
.sort-button::before {
  top: 0;
  border-bottom-color: #ff0000;
}
.sort-button::after {
  bottom: 0;
  border-top-color: #ff0000;
}
.btn-informe {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  &:hover {
    background-color: #4ca2ff;
  }
}
.btn-informe2 {
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  &:hover {
    background-color: rgb(83, 83, 255);
  }
}

.print-button {
  position: fixed;
  top: 10px;
  right: 12px;
  padding: 5px 10px;
  background-color: red;
  color: white;
  border: none;
  cursor: pointer;
  width: 150px;
  border-radius: 5px;
  height: 35px;
  z-index: 1;
  &:hover {
    background-color: #939393;
  }
}

.container-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-container {
  /* margin-bottom: 5px; */
  margin-left: 2rem;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  font-size: 0.8em;
  flex: wrap;
  /* padding: 1rem; */
}

.search-input {
  border: none;
  outline: none;
  border-radius: 15px;
  padding: 8px;
  background-color: #ccc;
  box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
  transition: 300ms ease-in-out;
}

.search-input:focus {
  background-color: white;
  transform: scale(1.05);
  box-shadow: 13px 13px 100px #969696, -13px -13px 100px #ffffff;
  border: 1px solid black;
}

.search-input::placeholder {
  color: #000000;
  font-weight: 600;
}

.clear-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  /* border-radius: 50%; */
  border-radius: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: rgb(255, 65, 65);
}

.clear-filters .sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* div:where(.swal2-container) .swal2-input {
  height: auto !important;
} */

/* .clear-filters {
  background-color: #007bff;
  color: #fff;
  border: none;
  height: 2rem;
  border-radius: 5px;
  &:hover {
    background-color: red;
  }
} */

/* .clear-filters .sign svg {
  width: 17px;
}

.clear-filters .sign svg path {
  fill: white;
} */

/* .clear-filters .text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  transition-duration: 0.3s;
} */

/* .clear-filters:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 20px;
} */

/* .clear-filters:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 10px;
} */

/* .clear-filters:active {
  transform: translate(2px, 2px);
} */

.filterSelect {
  height: 45px;
  width: 200px;
  border-radius: 1rem;
}

.page-button {
  border-radius: 1rem;
  padding: 0.5rem;
  gap: 2px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* Personaliza el color y tamaño del checkbox */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: #2196f3; /* Cambia el color del checkbox */
  cursor: pointer;
  /* Opcional: Añade bordes redondeados */
  border-radius: 4px;
  /* Opcional: Añade una sombra */
  box-shadow: 0 0 0 1px #ccc;
  transition: box-shadow 0.2s, border-radius 0.2s;
}

input[type="checkbox"]:hover {
  box-shadow: 0 0 0 2px #2196f3;
}

.choices__list--multiple .choices__item {
  background-color: rgb(131, 131, 131) !important;
  border: 2px solid #fff !important;
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.option-span {
  background-color: red;
  color: white;
  padding: 4px 10px 4px 10px;
  min-width: 40px;
  border-radius: 5px;
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
}

.option-span + .option-span {
  margin-left: 3px;
}

.option-span-linked {
  /* background-color: rgb(228, 228, 228); */
  background-color: #007bff;
  /* color: #000000; */
  color: #fff;
  border-radius: 5px;
  flex: wrap;
  padding: 4px 10px;
  gap: 10px;
  text-align: center;
  font-weight: 500;
  margin-right: 5px;
  display: inline-block;
  margin-top: 5px;
}

/* Estilos para el Spinner Principal */
.spinner {
  border: 6px solid rgba(0, 0, 0, 0.1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-left-color: rgb(255, 106, 0);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos específicos para el Spinner dentro del Botón "Cargar más" */
.button-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

#loadMoreButton.pulse {
  animation: pulse 2s infinite;
}

#loadMoreButton {
  display: none;
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff; /* Azul Bootstrap */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 20px auto;
  text-align: center;
  transition: background-color 0.3s;
}

#loadMoreButton:hover {
  background-color: #0056b3; /* Color más oscuro al pasar el mouse */
}

.delete-button {
  position: absolute;
  top: 5px;
  right: 5px;
  color: red;
  cursor: pointer;
  z-index: 1;
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-container {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.file-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

div:where(.swal2-container) .swal2-html-container {
  height: auto;
}

div:where(.swal2-container.swal2-double-click-modal) .swal2-html-container {
  height: 200px;
  overflow-y: auto; /* Añadir scroll si el contenido excede la altura */
}

/* Ocultar el spinner por defecto */
.spinner {
  display: none;
}

.showColumns {
  background-color: #181717;
  border-radius: 0.9rem;
  border: none;
  color: #ffff;
  outline: 3px #181717 solid;
  outline-offset: -3px;
  height: 45px;
  padding: 0.5rem;
  font-weight: 400;
  font-size: 0.9em;
  &:hover {
    background-color: #ffff;
    transition: 400ms;
    color: #181717;
  }
}

.controls {
  display: flex;
  gap: 10px;
  /* padding: 1rem; */
  justify-content: start;
  align-items: baseline;
  /* margin-left: 35px; */
}

.controls button {
  background-color: #181717;
  border-radius: 0.5rem;
  border: none;
  color: #ffff;
  outline: 3px #181717 solid;
  outline-offset: -3px;
  padding: 0.5rem;
  width: 45px;
  height: 45px;
  font-weight: 400;
  font-size: 0.9em;
  &:hover {
    background-color: transparent;
    color: #181717;
  }
}

.controls select {
  height: 45px;
  width: 200px;
  border-radius: 1rem;
}

#updateStatus {
  font-size: 0.8em;
}

@media print {
  /* Ocultar botones y elementos que no se deben imprimir */
  #printTableBtn,
  #resetColumnsBtn,
  #filterSelect,
  .search-container {
    display: none;
  }

  @media (min-width: 480px) {
    /* Ajustes para móviles */
    #updateStatus {
      display: none;
    }

    .search-input {
      width: 5rem;
    }
  }

  /* Ocultar la columna "Editar" al imprimir */
  th[data-field-name="Editar"],
  td[data-field-name="Editar"] {
    display: none;
  }

  /* Ajustar estilos de la tabla para impresión */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  table,
  th,
  td {
    border: 1px solid black;
  }

  th,
  td {
    padding: 8px;
    text-align: left;
  }

  /* Opcional: Ajustar tamaño de fuente para impresión */
  body {
    font-size: 12px;
  }

  /* Ocultar la columna "Editar" al imprimir */
  th:nth-child(1),
  td:nth-child(1) {
    display: none;
  }
}

.option-span-linked-fallback {
  color: red; /* Resalta los registros cuyo displayField no está disponible */
  font-weight: bold;
}

#toggleSection {
  padding: 5px;
  background-color: #ffffff; /*color de fondo encabezado*/
  border-radius: 5px;
  border: 1px solid #ddd;
  /* margin: 20px; */
}

/* Clase para ocultar la sección */
.hidden {
  display: none;
}

.fixed-button {
  position: fixed;
  top: 10px;
  right: 175px;
  background-color: #1b1b1b;
  color: white;
  border: none;
  border-radius: 0.5rem;
  width: 55px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.fixed-button:hover {
  background-color: gray; /* Color al pasar el ratón */
}

@-webkit-keyframes sk-rotateplane {
  0% {
    -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  }
  100% {
    -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  }
}

@keyframes sk-rotateplane {
  0% {
    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  }
  100% {
    transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  }
}

/* Botón habilitado */
.btn-enabled {
  background-color: #ff6600;
  color: white;
  transition: background-color 0.3s ease;
}

.btn-enabled:hover {
  background-color: #e65c00;
}

/* Botón deshabilitado */
.btn-disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: none;
}

/* Estilos para el menú de sort */
.sort-menu {
  width: 150px;
}

.sort-menu div {
  padding: 10px;
  cursor: pointer;
}

.sort-menu div:hover {
  background-color: #f0f0f0;
}

/* Estilos para el indicador de sort */
.sort-arrow {
  margin-left: 5px;
  font-size: 12px;
  color: #333;
}
