/* Estilos compartidos - Global */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.oculto {
  display: none !important;
}
textarea {
  resize: none; /* desactiva el redimensionado */
  overflow: auto; /* mantiene la barra de scroll si el contenido sobrepasa el área */
  padding: 10px;
}
.center {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}
.btn-menu {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-right: 1rem;
}
.btn-verde {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-naranja {
  background-color: #ff840b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-naranja:hover {
  background-color: #e07b0a;
}
.btn-rojo2 {
  background-color: #fd3642;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-rojo2:hover {
  background-color: #c82333;
}
.btn-verde:hover {
  background-color: #218838;
}
button {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
  transition: background 0.2s ease;
  height: 40px !important;
}
button svg {
  margin-right: 6px;
  vertical-align: middle;
  width: 18px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select {
  transition: background-color 0.3s ease;
}
select.activo {
  background-color: rgba(40, 167, 69, 0.1);
  /* verde 10% */
}
select.inactivo {
  background-color: rgba(220, 53, 69, 0.1);
  /* rojo 10% */
}
.no-margin {
  margin: 0 !important;
}
/* furmularios */
.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.fila.x2 {
  width: 50%;
  max-width: 500px;
}
.campo {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.campoCheck {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
  margin-top: 15px;
}
.ancho-completo {
  flex: 100%;
}
.campo label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.campo input {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Amarillo */
.btn-amarillo {
  background-color: #facc15;
  color: black;
}
.btn-amarillo:hover {
  background-color: #eab308;
}
.btn-rojo {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-rojo:hover {
  background-color: #c82333;
}
.btn-azul {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-azul:hover {
  background-color: #0069d9;
}
.logo-header {
  height: 40px;
  margin-right: auto;
}
.usuario-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.bienvenida {
  text-align: center;
  margin-top: 4rem;
  color: #333;
}
.bienvenida h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.bienvenida p {
  font-size: 1.1rem;
  color: #555;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.activo {
  display: flex;
}
/* Entrada animada */
.modal-contenido {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
/* Animación de entrada */
.modal.activo .modal-contenido {
  opacity: 1;
  transform: translateY(0);
}
/* Animación de salida */
.modal-contenido.cerrando {
  opacity: 0;
  transform: translateY(-30px);
}
.modal-contenido h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.modal-contenido label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.modal-contenido input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
.modal-contenido .acciones {
  margin-top: 1rem;
  text-align: right;
}
.modal-contenido .acciones button {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-contenido .acciones button:first-child {
  background-color: #82c567;
  color: white;
}
.modal-contenido .acciones button:last-child {
  background-color: #eee;
}
.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}
.btn-principal {
  background-color: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-principal:hover {
  background-color: #444;
}
.logo-d10 {
  height: 42px;
  max-width: 140px;
  object-fit: contain;
}
.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-btn i {
  width: 24px;
  height: 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 1rem;
  background-color: #fff;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge {
  background: red;
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  position: relative;
  top: -8px;
  left: -6px;
}
.avatar img {
  border-radius: 50%;
  height: 36px;
  width: 36px;
}
.sidebar.mini span.nav-text {
  display: none;
}
.sidebar.mini .logo-d10 {
  max-width: 48px;
}
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  display: none;
  z-index: 9999;
}
.toast.mostrar {
  display: block;
}
.toast.ok {
  background-color: #28a745;
}
.toast.warning,
.toast.advertencia {
  background-color: #ffc107;
  color: #000;
}
.toast.error {
  background-color: #dc3545;
}
.input-error,
.input-error:focus {
  border: 2px solid #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.1) !important;
}
.input-error:focus {
  outline: none !important;
}
.input-error {
  animation: vibrar 0.3s ease;
}
@keyframes vibrar {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes aparecerModal {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes swipeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes swipeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}
.modal-contenido {
  animation: swipeIn 0.3s ease forwards;
}
.modal-contenido.cerrando {
  animation: swipeOut 0.3s ease forwards;
}
/* Dashboard styles merged below */
/* =======================
   BASE LAYOUT
======================= */
body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background: #f9fafc;
}
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 160px;
  background-color: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
}
.sidebar-header {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
}
.sidebar .logo {
  height: 30px;
  transition: all 0.3s ease;
}
.nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}
.nav-item:hover,
.nav-item.active {
  background-color: #f0f0f0;
}
.nav-item i {
  width: 24px;
  height: 24px;
}
.topbar {
  height: 64px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.toggle-btn:hover {
  background: #f0f0f0;
}
.top-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.notif {
  position: relative;
}
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e53935;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}
.avatar img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#contenido {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}
.bienvenida {
  text-align: center;
  margin-top: 3rem;
}
.notif {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0rem;
}
.notif i {
  width: 24px;
  height: 24px;
  display: block;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 4px;
  height: 11px;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px white;
  z-index: 2;
}
.avatar {
  position: relative;
  cursor: pointer;
}
.avatar img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: block;
}
.logout-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  display: none;
  white-space: nowrap;
  z-index: 99;
}
.logout-menu button {
  background: transparent;
  border: none;
  color: #e53935;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.avatar:hover .logout-menu {
  display: block;
}
.logout-menu {
  display: block;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.logout-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* =======================
   SIDEBAR CONTRAÍDO
======================= */
body.contraido .sidebar {
  width: 64px;
}
body.contraido .sidebar .logo {
  content: url('../img/logoD10short.svg');
  /* Asegúrate de tener este archivo */
  height: 36px;
}
body.contraido .nav-item span {
  display: none;
}
body.contraido .nav-item {
  justify-content: center;
}
/* =======================
   RESPONSIVE (opcional)
======================= */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .nav {
    flex-direction: row;
  }
  .main {
    flex: 1;
  }
  body.contraido .sidebar {
    width: 100%;
  }
}
/* Correcciones esenciales para sidebar colapsable usando la clase .mini */
.sidebar.mini {
  width: 60px;
  transition: width 0.3s;
}
.sidebar.mini .menu-item span,
.sidebar.mini .menu-item-text,
.sidebar.mini .menu-title {
  display: none;
}
.sidebar.mini .logo svg {
  transform: scale(0.8);
}
.formulario-recuperar {
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 30px auto;
}
.formulario-recuperar input {
  max-width: 250px;
  height: 40px;
  padding: 0 10px;
  margin-bottom: 20px;
}
/* FORMULARIO CON ESTILOS */
section.formulario.estilo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 30px auto;
}
section.estilo .fila {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px !important;
  margin: 0 0 20px 0 !important;
  align-items: flex-end;
}
section.estilo .fila.x1 {
  width: 10%;
}
section.estilo .fila.x3 {
  width: 30%;
}
section.estilo .fila.x4 {
  width: 40%;
}
section.estilo .fila.x5 {
  width: 50%;
}
section.estilo .fila.x6 {
  width: 60%;
}
section.estilo .fila.x7 {
  width: 70%;
}
section.estilo .fila.x8 {
  width: 80%;
}
section.estilo .fila.x9 {
  width: 90%;
}
section.estilo .fila.x10 {
  width: 100%;
}
section.estilo .fila.doble {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  /* width: auto; */
}
section.estilo .fila.doble .x2 {
  width: 20%;
}
section.estilo .fila.doble .x3 {
  width: 30%;
}
section.estilo .fila.doble .x4 {
  width: 40%;
}
section.estilo .fila.doble .x5 {
  width: 50%;
}
section.estilo .fila.doble .x6 {
  width: 60%;
}
section.estilo .fila.doble .x7 {
  width: 70%;
}
section.estilo .fila.doble .x8 {
  width: 80%;
}
section .acciones {
  margin: 0 !important;
}
section.estilo .campo.select {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}
section.estilo input,
section.estilo select,
section.estilo .ts-wrapper {
  width: auto;
  height: 40px;
  padding: 0 10px;
  border-radius: 4px;
}
section.estilo .ts-wrapper {
  padding: 0px;
}
section.estilo .ts-wrapper .ts-control {
  padding: 0 10px !important;
  /* height: 40px !important; */
  font-size: 14px !important;
  line-height: 40px;
}
section.estilo .select-wrapper select {
  /* La propiedad clave para ocultar la flecha en la mayoría de navegadores */
  appearance: none;
  -webkit-appearance: none; /* Para navegadores como Chrome y Safari */
  -moz-appearance: none; /* Para Firefox */
  cursor: pointer; /* Cambia el cursor para indicar que es clicable */
}
section.estilo .select-wrapper select::-ms-expand {
  display: none;
}
section.estilo .select-wrapper {
  position: relative; /* Necesario para posicionar la flecha adentro */
  width: 250px; /* O el ancho que necesites */
}
section.estilo .select-wrapper::after {
  content: '▼';
  font-size: 1rem;
  color: #555;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-30%); /* Centra la flecha verticalmente */
  pointer-events: none;
}
section.estilo .ts-dropdown,
.ts-control,
.ts-control input {
  font-size: 14px;
  line-height: 30px;
}
section.estilo .campo label {
  font-weight: bold;
  margin: 10px 0;
  display: block;
}
section.estilo .acciones {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
section.estilo button + button {
  margin-left: 10px;
}
section.estilo .division {
  margin-bottom: 20px;
}
section.estilo .campo.flex-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
section.estilo .campo.flex-vertical {
  display: flex;
  flex-direction: column;
}
section.estilo .campo.flex-horizontal.flex-end {
  align-items: flex-end !important;
}
section.estilo .campo.flex-vertical.flex-end {
  justify-content: flex-end !important;
}
section.estilo .color-selector {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
}
section.estilo .color-circulo {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  border: 2px solid #ccc;
  background-color: #10b981;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
section.estilo .tabla-tareas .color-circulo {
  width: 16px !important;
  height: 16px !important;
}
section.estilo .color-circulo svg {
  width: 16px;
  height: 16px;
  color: #fff;
  margin: 0 !important;
}
section.estilo .tabla-tareas .color-circulo {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
section.estilo .color-circulo i {
  width: 14px;
  height: 14px;
}
section.estilo .color-paleta {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
section.estilo .colores-fijos,
section.estilo .colores-historial {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
section.estilo .color-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
}
section.estilo #inputColorPersonalizado {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  z-index: -1;
}
section.estilo #tareaDuracion {
  width: 50px;
}
/* PESTAÑAS CON ESTILO */
section.estilo .tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: solid 1px #ccc;
}
section.estilo .tabs button {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  color: #5a615d;
  font-weight: bold;
}
section.estilo .tabs button.activo {
  border-bottom: 2px solid #0faa55;
  color: #0faa55;
  border-radius: 0 !important;
  padding-bottom: 25px;
}
section.estilo .btn-tab {
  background-color: #0faa55;
  color: white;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
section.estilo .btn-tab:not(.active) {
  background-color: #dff7ea;
  color: #0faa55;
}
section.estilo .tab-content {
  display: none;
}
section.estilo .tab-content.visible {
  display: block;
}
section.estilo .input-fecha {
  position: relative;
}
section.estilo .input-fecha input {
  padding-left: 40px !important;
  height: 40px;
  font-size: 16px;
}
section.estilo .input-fecha .icono-fecha {
  position: absolute;
  top: 73%;
  left: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
}
.table-container {
  height: 150px;
  max-height: 150px; /* altura máxima antes de hacer scroll */
  overflow-y: auto; /* scroll vertical en el cuerpo */
  border: 1px solid #ccc; /* opcional: para delimitar visualmente */
  margin-top: 27px;
  border-radius: 4px;
}
section.estilo table.personas {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
section.estilo table.personas thead th {
  position: sticky; /* fija el th en su posición */
  top: 0; /* se “pega” al top del contenedor al hacer scroll */
  background: white; /* fondo para que no se vea traslúcido */
  z-index: 10; /* que quede por encima de las filas */
  padding: 5px; /* ajuste de espaciado */
  border-bottom: 1px solid #999;
}
section.estilo table.personas tbody tr:nth-child(even) {
  background: #f9f9f9; /* opcional: filas alternas */
}
section.estilo table.personas th,
section.estilo table.personas td {
  text-align: left;
  padding: 5px;
}
section.estilo table.personas td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
section.estilo table.personas input:is([type='radio'], [type='text']) {
  margin: 0 !important;
  height: 30px;
}
section.estilo table.personas input:is([type='text']) {
  border: none;
  border-bottom: 1px solid #000;
  background-color: transparent;
  width: -webkit-fill-available;
  padding: 0 5px;
}
section.estilo table.personas input:is([type='text']):focus {
  outline: none;
  border-bottom: 2px solid #000; /* repites el mismo estilo para que no cambie */
}

section.estilo .color-circulo svg {
  width: 16px;
  height: 16px;
  color: #fff;
  margin: 0 !important;
}
section.estilo .tabla-resultados .color-circulo {
  display: inline-block;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
section.estilo .color-circulo i {
  width: 14px;
  height: 14px;
}
section.estilo .color-paleta {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
section.estilo .colores-fijos,
section.estilo .colores-historial {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
section.estilo .color-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  background: none;
  border: solid 1px #d3d3d3;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  color: #111827;
}
section.estilo .color-custom .pcr-button {
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
  overflow: auto;
}
section.estilo #inputColorPersonalizado {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  z-index: -1;
}
section.estilo .permisos {
  display: block;
}
section.estilo label {
  margin: 10px 0;
  display: block;
}
section.estilo .permisos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
section.estilo .c {
  display: flex;
  flex-direction: row;
}
section.estilo .permiso {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.checkboxes-permisos {
  display: flex;
}
.checkboxes-permisos .permiso {
  position: relative;
  padding: 0 10px;
}
section.estilo input[type='checkbox'] {
  height: auto;
}
section.estilo .permiso:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: #999999;
}
section.estilo .toggler {
  width: 72px;
  display: flex;
  justify-content: center;
}
section.estilo .toggler input {
  display: none;
}
section.estilo .toggler label {
  display: block;
  position: relative;
  width: 44px;
  height: 22px;
  border: 1px solid #d6d6d6;
  border-radius: 36px;
  background: #e4e8e8;
  cursor: pointer;
}
section.estilo .toggler label::after {
  display: block;
  border-radius: 100%;
  background-color: #d7062a;
  content: '';
  animation-name: toggler-size;
  animation-duration: 0.15s;
  animation-timing-function: ease-out;
  animation-direction: forwards;
  animation-iteration-count: 1;
  animation-play-state: running;
}
section.estilo .toggler label::after,
section.estilo .toggler label .toggler-on,
section.estilo .toggler label .toggler-off {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%) translateX(-50%);
  transition: left 0.15s ease-in-out, background-color 0.2s ease-out, width 0.15s ease-in-out,
    height 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
section.estilo .toggler input:checked + label::after,
section.estilo .toggler input:checked + label .toggler-on,
section.estilo .toggler input:checked + label .toggler-off {
  left: 75%;
}
section.estilo .toggler input:checked + label::after {
  background-color: #50ac5d;
  animation-name: toggler-size2;
}
section.estilo .toggler .toggler-on,
section.estilo .toggler .toggler-off {
  opacity: 1;
  z-index: 2;
}
section.estilo .toggler input:checked + label .toggler-off,
section.estilo .toggler input:not(:checked) + label .toggler-on {
  width: 0;
  height: 0;
  opacity: 0;
}
section.estilo .toggler .path {
  fill: none;
  stroke: #fefefe;
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
@keyframes toggler-size {
  0%,
  100% {
    width: 26px;
    height: 26px;
  }
  50% {
    width: 20px;
    height: 20px;
  }
}
@keyframes toggler-size2 {
  0%,
  100% {
    width: 26px;
    height: 26px;
  }
  50% {
    width: 20px;
    height: 20px;
  }
}

section.estilo #canvasGantt {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* FORMULARIO CON ESTILOS */
/* TABLAS DE RESULTADOS DE BUSQUEDAS */
.tabla-resultados {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.tabla-resultados th,
.tabla-resultados td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.tabla-resultados th {
  background-color: #f0f0f0;
  font-weight: 600;
}
.tabla-resultados tr:hover {
  background-color: #f9f9f9;
}
.tabla-resultados .acciones {
  display: flex;
  gap: 0.5rem;
}
.tabla-resultados .acciones button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.modal.oculto {
  display: none;
}
.modal.activo {
  display: flex;
  /* o block, según diseño */
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.modal .modal-acciones {
  margin: 20px 0;
  display: flex;
}
.modal .modal-acciones button + button {
  margin-left: 10px;
}
.modal .modal-acciones button.cerrar-modal {
  position: initial !important;
}
.modal .modal-contenido {
  margin: 20px 0;
}
.fondo-modal {
  display: flex;
}
.ventana {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.ventana h3 {
  margin-top: 0;
}
.cerrar-modal {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.acciones {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.btn {
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-gris {
  background-color: #ccc;
  color: #000;
}
.btn-rojo {
  background-color: #e53935;
  color: #fff;
}
.oculto {
  display: none !important;
}
.botonera {
  display: flex;
  margin-bottom: 20px;
}
/* EN global.css */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Muy alto para que esté por encima de todo */
  color: white;
}
.loader-overlay.oculto {
  display: none;
}
.loader-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #fff;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
