/* Menu */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

h1 {
  font-weight: 600;
  font-size: 1.5rem;
}

body {
  font-family: 'Poppins', sans-serif;
}

.wrapper {
  display: flex;
}

.main {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
  background-color: #fafbfe;
}

#sidebar {
  width: 70px;
  min-width: 70px;
  z-index: 1000;
  transition: all .25s ease-in-out;
  background-color: #142967;
  display: flex;
  flex-direction: column;
}

#sidebar.expand {
  width: 260px;
  min-width: 260px;
}

.toggle-btn {
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 1rem 1.5rem;
}

.toggle-btn i {
  font-size: 1.5rem;
  color: #FFF;
}

.sidebar-logo {
  margin: auto 0;
  animation: circle-in-hesitate 2s forwards;
}

@keyframes circle-in-hesitate {
  0% {
    clip-path: circle(0%);
  }

  40% {
    clip-path: circle(40%);
  }

  100% {
    clip-path: circle(125%);
  }
}

[transition-style="in:circle:hesitate"] {
  animation: 2.5s cubic-bezier(.25, 1, .30, 1) circle-in-hesitate both;
}

.sidebar-logo a {
  color: #FFF;
  font-size: 1.15rem;
  font-weight: 600;
}

.img-logo {
  width: 50%;
  height: auto;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
  display: none;
}

.sidebar-nav {
  padding: 2rem 0;
  flex: 1 1 auto;
}

a.sidebar-link {
  padding: .625rem 1.625rem;
  color: #FFF;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.sidebar-link i {
  font-size: 2rem;
  margin-right: 1rem;
}

a.sidebar-link:hover {
  background-color: rgba(255, 255, 255, .075);
  border-left: 3px solid #3b7ddd;
}

.sidebar-item {
  position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  position: absolute;
  top: 0;
  left: 70px;
  background-color: #0e2238;
  padding: 0;
  min-width: 15rem;
  display: none;
  scrollbar-width: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
  display: block;
  max-height: 15em;
  width: 100%;
  opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 .075rem .075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

/* Fin menu */

/* Paginación centrada */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th {
  white-space: nowrap;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

.form-group {
  margin-bottom: 1rem;
}

[v-cloak] {
  display: none;
}

.jadar-icon-primary {
  color: #048ED1;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s, box-shadow 0.3s;
  border-radius: 50%;
  padding: 4px;
}

.jadar-icon-primary:hover,
.jadar-icon-primary:active {
  color: #048ED1;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(65, 162, 212, 0.5);
}

/* Botón Verde */
.jadar-btn-success {
  background: linear-gradient(to bottom, #22b973, #1a9a61);
  /* Gradiente verde */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s ease-in-out;
}

.jadar-btn-success:hover,
.jadar-btn-success:active {
  background: linear-gradient(to bottom, #34d186, #22b973);
  /* Gradiente más claro al pasar el cursor */
  box-shadow: 0 0 15px rgba(34, 185, 115, 0.5);
  /* Sombra más brillante */
}

/* Botón azul oscuro */
.jadar-btn-secondary {
  background: linear-gradient(to bottom, #142967, #033261);
  /* Gradiente azul oscuro */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s ease-in-out;
}

.jadar-btn-secondary:hover,
.jadar-btn-secondary:active {
  background: linear-gradient(to bottom, #033f7a, #022548);
  color: white;
  /* Gradiente más claro al pasar el cursor */
  box-shadow: 0 0 15px rgb(5,115,222);
  /* Sombra más brillante */
}

/* Botón Azul */
.jadar-btn-primary {
  background: linear-gradient(to bottom, #048ED1, #048ED1);
  /* Gradiente azul */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s ease-in-out;
}

.jadar-btn-primary:hover,
.jadar-btn-primary:active {
  background: linear-gradient(to bottom, #62b4e1, #41a2d4);
  /* Gradiente más claro al pasar el cursor */
  box-shadow: 0 0 15px rgba(65, 162, 212, 0.5);
  /* Sombra más brillante */
}

/* Botón Amarillo */
.jadar-btn-warning {
  background: linear-gradient(to bottom, #ffe79a, #ffd764);
  /* Gradiente amarillo */
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s ease-in-out;
}

.jadar-btn-warning:hover,
.jadar-btn-warning:active {
  background: linear-gradient(to bottom, #fff3cc, #ffe79a);
  /* Gradiente más claro al pasar el cursor */
  box-shadow: 0 0 15px rgba(255, 231, 154, 0.5);
  /* Sombra más brillante */
}

/* Botón Rojo */
.jadar-btn-danger {
  background: linear-gradient(to bottom, #e74c3c, #d9442f);
  /* Gradiente rojo */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s ease-in-out;
}

.jadar-btn-danger:hover,
.jadar-btn-danger:active {
  background: linear-gradient(to bottom, #f06a5d, #e74c3c);
  /* Gradiente más claro al pasar el cursor */
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
  /* Sombra más brillante */
}

/* Css GridView */

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: #f8f9fa;
  color: #343a40;
  font-weight: bold;
}

.table tbody tr {
  border-bottom: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.custom-grid-container .summary {
  margin-bottom: 0.5rem;
}

/* Bordes tabla */
.rounded-table {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Animación agregar card */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

/* Animación eliminar card */
.fade-out {
  animation: fadeOut 0.5s forwards; /* Duración de 0.5 segundos */
}

@keyframes fadeOut {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}

/* Reorder */
.sortable-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.sortable-item:hover {
  background-color: #349ac7;
  color: white;
}

/* Fondos de pantalla, con los mismos colores personalizados de los botones */
/* Fondo Verde */
.jadar-bg-success {
  background: linear-gradient(to bottom, #22b973, #1a9a61);
}

/* Fondo Azul Oscuro */
.jadar-bg-secondary {
  background: linear-gradient(to bottom, #142967, #033261);
}

/* Fondo Azul */
.jadar-bg-primary {
  background: linear-gradient(to bottom, #142967, #349ac7);
}

/* Fondo Amarillo */
.jadar-bg-warning {
  background: linear-gradient(to bottom, #ffe79a, #ffd764);
}

/* Fondo Rojo */
.jadar-bg-danger {
  background: linear-gradient(to bottom, #e74c3c, #d9442f);
}

/* graficas */
.jadar-card {
  height: 550px; /* Altura fija para simetría */
}

.jadar-card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 3rem); /* Ajusta según el alto de la cabecera */
}

.jadar-card-body canvas {
  width: 95%;
  height: 95%;
  aspect-ratio: 1 / 1; /* Asegura que el canvas sea cuadrado */
  display: block;
  margin: 0 auto;
}

.logo-card {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}