main {
  display: flex;
  flex: 1;
}

.panel {
  display: flex;
  flex-direction: column;
  /* border: 2px solid; */
}

.show {
  display: inline-block;
}
.hide {
  display: none;
}

.panel-green {
  border-color: var(--border-green);
}
.panel-purple {
  border-color: var(--border-purple);
}
.panel-red {
  border-color: var(--border-red);
}

.panel h2 {
  font-size: 1rem;
  padding: 0.3rem;
}

.scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.ok {
  color: var(--ok);
}
.fail {
  color: var(--fail);
}

/* Scroll personalizado */
.scroll::-webkit-scrollbar {
  width: 6px;
}
.scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}
.scroll::-webkit-scrollbar-track {
  background: transparent;
}

.loader {
  border: 2px solid #292929; /* Fondo del círculo */
  border-top: 2px solid #fff; /* Color blanco en la parte superior */
  border-radius: 50%;
  width: 15px;
  height: 15px;
  animation: spin 0.4s linear infinite; /* Animación de giro */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
ESTILOS DE UN PANEL GENERAL
============================================= */

/* ============= ESTILOS DEL HEADER ============ 
- Continen Barra de titulo (Izquierda) 
- Continee Barra de botones (Derecha) 
*/

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-container .header-title {
  margin: 0; /* Elimina margen por defecto */
}

.button-container {
  display: flex;
  gap: 5px; /* Espacio entre los botones */
}

.header-container .button {
  background-color: transparent;
  border: none;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.header-container .button i {
  font-size: 80%;
  color: #fff;
}

.header-container .button-addnew {
  background-color: #007bff; /* Azul */
}

.header-container .button-refresh {
  background-color: transparent; /* transparente refrescar */
}

/* ============= ESTILOS DEL CEONTENIDO ============ 
  - Continen el contenido del panel
  */

.content-container {
  padding: 0.5rem;
  width: 100%;
}

/* ======================
     CONFIGURACIONES EXTRAS PARA LOS PANELES
     ====================== */

/* Alineación vertical */
.panel-vatop {
  display: flex;
  align-items: flex-start;
}
.panel-vacenter {
  display: flex;
  align-items: center;
}
.panel-vabottom {
  display: flex;
  align-items: flex-end;
}

/* Altura fija */
.pane-100H {
  height: 100px;
}

/* Clases de tamaño personalizado para los paneles */
.panel-10 {
  flex: 0 0 10%;
}
.panel-20 {
  flex: 0 0 20%;
}
.panel-30 {
  flex: 0 0 30%;
}
.panel-33 {
  flex: 0 0 33.3%;
}
.panel-40 {
  flex: 0 0 40%;
}
.panel-50 {
  flex: 0 0 50%;
}
.panel-60 {
  flex: 0 0 59%;
}
.panel-70 {
  flex: 0 0 69%;
}
.panel-80 {
  flex: 0 0 79%;
}
.panel-90 {
  flex: 0 0 90%;
}
.panel-100 {
  flex: 0 0 100%;
}

/* Responsive: en móviles ocupan 100% */
@media (max-width: 768px) {
  .panel-10,
  .panel-20,
  .panel-30,
  .panel-33,
  .panel-40,
  .panel-50,
  .panel-60,
  .panel-70,
  .panel-80,
  .panel-90,
  .panel-100 {
    flex: 0 0 100%;
  }
}

/* Padding top */
.panel-pTop-10 {
  padding-top: 10px;
}
.panel-pTop-20 {
  padding-top: 20px;
}
.panel-pTop-30 {
  padding-top: 30px;
}
.panel-pTop-40 {
  padding-top: 40px;
}
.panel-pTop-50 {
  padding-top: 50px;
}
.panel-pTop-60 {
  padding-top: 60px;
}
.panel-pTop-70 {
  padding-top: 70px;
}
.panel-pTop-80 {
  padding-top: 80px;
}
.panel-pTop-90 {
  padding-top: 90px;
}
.panel-pTop-100 {
  padding-top: 100px;
}

/* Padding bottom */
.panel-pBottom-10 {
  padding-bottom: 10px;
}
.panel-pBottom-20 {
  padding-bottom: 20px;
}
.panel-pBottom-30 {
  padding-bottom: 30px;
}
.panel-pBottom-40 {
  padding-bottom: 40px;
}
.panel-pBottom-50 {
  padding-bottom: 50px;
}
.panel-pBottom-60 {
  padding-bottom: 60px;
}
.panel-pBottom-70 {
  padding-bottom: 70px;
}
.panel-pBottom-80 {
  padding-bottom: 80px;
}
.panel-pBottom-90 {
  padding-bottom: 90px;
}
.panel-pBottom-100 {
  padding-bottom: 100px;
}

/* Padding left */
.panel-pLeft-10 {
  padding-left: 10px;
}
.panel-pLeft-20 {
  padding-left: 20px;
}
.panel-pLeft-30 {
  padding-left: 30px;
}
.panel-pLeft-40 {
  padding-left: 40px;
}
.panel-pLeft-50 {
  padding-left: 50px;
}
.panel-pLeft-60 {
  padding-left: 60px;
}
.panel-pLeft-70 {
  padding-left: 70px;
}
.panel-pLeft-80 {
  padding-left: 80px;
}
.panel-pLeft-90 {
  padding-left: 90px;
}
.panel-pLeft-100 {
  padding-left: 100px;
}

/* Margin top */
.panel-mTop-10 {
  margin-top: 10px;
}
.panel-mTop-20 {
  margin-top: 20px;
}
.panel-mTop-30 {
  margin-top: 30px;
}
.panel-mTop-40 {
  margin-top: 40px;
}
.panel-mTop-50 {
  margin-top: 50px;
}
.panel-mTop-60 {
  margin-top: 60px;
}
.panel-mTop-70 {
  margin-top: 70px;
}
.panel-mTop-80 {
  margin-top: 80px;
}
.panel-mTop-90 {
  margin-top: 90px;
}
.panel-mTop-100 {
  margin-top: 100px;
}

/* Margin bottom */
.panel-mBottom-10 {
  margin-bottom: 10px;
}
.panel-mBottom-20 {
  margin-bottom: 20px;
}
.panel-mBottom-30 {
  margin-bottom: 30px;
}
.panel-mBottom-40 {
  margin-bottom: 40px;
}
.panel-mBottom-50 {
  margin-bottom: 50px;
}
.panel-mBottom-60 {
  margin-bottom: 60px;
}
.panel-mBottom-70 {
  margin-bottom: 70px;
}
.panel-mBottom-80 {
  margin-bottom: 80px;
}
.panel-mBottom-90 {
  margin-bottom: 90px;
}
.panel-mBottom-100 {
  margin-bottom: 100px;
}

/* ======================
     ESTILOS GENERALES DEL TOOLTIP
     ====================== */

.tooltip {
  position: relative;
  display: inline-block;
  z-index: 2147483647;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 75%;
}

/* Estilo del tooltip Top Arriba del icono*/
.tooltipBottom::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%; /* Muestra el tooltip arriba del icono */
  left: 50%;
  transform: translateX(-50%);
  background-color: #414141;
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 80% !important;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2147483647;
} /* Mostrar el tooltip cuando el icono es hover */
.tooltipBottom:hover::before {
  opacity: 1;
  visibility: visible;
  height: max-content;
  width: max-content;
} /* Estilo del tooltip Abajo del icono : empezar al final del icono y extenderse hacia la izquierda, eso significa que el tooltip está debajo del icono (bottom), pero alineado a la derecha del icono y se extiende hacia la izquierda.*/
.tooltipBottomLeft::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%; /* debajo del icono */
  right: 0; /* alineado al borde derecho del icono */
  background-color: #414141;
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 80%;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2147483647;
} /* Mostrar tooltip al hacer hover */
.tooltipBottomLeft:hover::before {
  opacity: 1;
  visibility: visible;
} /* Estilo del tooltip Top Arriba del icono*/
.tooltipTop::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; /* Muestra el tooltip arriba del icono */
  left: 50%;
  transform: translateX(-50%);
  background-color: #414141;
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 80%;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2147483647;
} /* Mostrar el tooltip cuando el icono es hover */
.tooltipTop:hover::before {
  opacity: 1;
  visibility: visible;
  height: max-content;
  width: max-content;
} /* Mostrar el tooltip a la izquierda del icono */
.tooltipLeft::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%; /* Mueve el tooltip a la izquierda */
  top: 50%;
  transform: translateY(-50%);
  background-color: #414141; /* Color de fondo negro */
  color: white; /* Texto blanco */
  padding: 5px;
  border-radius: 4px;
  font-size: 80%;
  white-space: normal; /* Permite que el texto haga salto de línea */
  word-wrap: break-word; /* Rompe las palabras largas si es necesario */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  height: max-content;
  max-width: 150px;
}
.tooltipLeft:hover::before {
  opacity: 1;
  visibility: visible;
  height: max-content;
  width: max-content;
}

/* ======================
     ESTILOS GENERALES POPUP INPUT
     ====================== */

/* Estilo general */
.popup-input {
  margin: 2px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: calc(100% - 10px);
  background-color: #2f2f2f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px;
  font-family: monospace;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 80%;
  display: none;
}

.popup-input .cointainer {
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bloques */
.popup-input .cointainer .popup-left {
  flex: 2;
}

.popup-input .cointainer .popup-middle {
  flex: 2;
  text-align: center;
}

.popup-input .cointainer .popup-middle input {
  width: 80%;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: transparent;
  color: #fff;
}

/* Botones */
.popup-input .cointainer .popup-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.popup-input .cointainer .popup-btn {
  padding: 4px 10px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}

.popup-input .cointainer .popup-btn.cancel {
  background-color: #434343;
  color: white;
}

.popup-input .cointainer .popup-btn.ok {
  background-color: #007bff;
  color: white;
}
