body {
  font-size: 12px;
  text-transform: uppercase;
  caret-color: #088527;
  accent-color: #088527;
  background: linear-gradient(to right, #c3dbc9, #049b2a);
}

/* Hover effects for reposition cards */
.hover-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hover-card:hover .btn {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/*? Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #c9d6ff;
  /*? fallback for old browsers */
  background: -webkit-linear-gradient(to right, #e2e2e2, #c9d6ff);
  /*? Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #e2e2e2, #c9d6ff);
  /*? W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

::-webkit-scrollbar-thumb {
  background: #09ae31;
  /*? fallback for old browsers */
  background: -webkit-linear-gradient(to right, #d5ecdb, #09ae31);
  /*? Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #d5ecdb, #09ae31);
  /*? W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a;
}

.navbar .navbar-nav .nav-link:hover, li.active, a.show {
  background-color: #088527;
  color: #fff;
  margin-bottom: 0px;
}

.nav-item {
  margin-right: 0px;
}

.navbar .navbar-nav .nav-link {
  padding: 0.6em;
}

.navbar .navbar-brand {
  padding: 0 0.6em;
}

@media only screen and (min-width: 992px) {
  .navbar {
    padding: 0;
  }

  .navbar .navbar-nav .nav-link {
    padding: 1em 0.7em;
  }

  .navbar .navbar-brand {
    padding: 0 0.8em;
  }
}

@media only screen and (max-width: 992px) {
  .navbar, .navbar .navbar-brand {
    padding: 0;
  }

  .navbar .navbar-nav .nav-link {
    padding: 1em 0.7em;
  }
}

.dropdown-item {
  text-align: center;
  text-transform: uppercase;
}

#nombre_usuario {
  color: whitesmoke;
  padding-top: 13px;
}

#user_img, #logout {
  border-radius: 50%;
  margin: .3rem;
}

#logout {
  height: 40px;
}

/*? Contenedores */
.row-container {
  position: absolute;
  top: 60px !important;
  right: 15px !important;
  left: 15px !important;
}

.card, .card-body {
  background: whitesmoke;
  color: black;
  font-weight: bold;
  text-align: center;
}

/*? Forms */
.form-label.form-control,
.form-label.form-select,
.input-group-text {
  text-overflow: ellipsis;
  font-weight: bold;
}

.form-control, .form-select {
  text-overflow: ellipsis;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px ridge;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
  text-decoration: none;
  color: #ffffff;
  background-color: #088527;
}

.needs-validation {
  text-align: left;
}

.form-select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus,
.btn-success-outline:focus {
  border-color: rgba(9, 174, 49, 1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset,
  0 0 8px rgba(9, 174, 49, 0.6);
  outline: 0 none;
}

[type="file"] {
  width: 175px;
  text-overflow: ellipsis;
}

#img-preview, #img-preview_ad {
  display: none;
}

#img-preview img,
#img-preview-actual img,
#img-preview_ad img,
.swal2-html-container img {
  width: 175px;
  height: 175px;
  border-radius: 0.5rem;
  display: block;
  border: 2.5px inset #09ae31;
  margin-bottom: 10px;
}

.invalid-tooltip, .valid-tooltip {
  font-size: 11px;
  color: whitesmoke;
  font-style: oblique;
}

/*? Fotter */
#page-footer {
  margin-bottom: -15px;
}

.fa-usd {
  padding-top: 6px;
  padding-bottom: 6px;
}

.mark, mark {
  background-color: #088527;
  border-radius: 90px;
}

.tricolor-bg {
  background: hsla(0, 57%, 51%, 1);

  background: linear-gradient(135deg, hsla(0, 57%, 51%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(139, 75%, 46%, 1) 100%);

  background: -moz-linear-gradient(135deg, hsla(0, 57%, 51%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(139, 75%, 46%, 1) 100%);

  background: -webkit-linear-gradient(135deg, hsla(0, 57%, 51%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(139, 75%, 46%, 1) 100%);

  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#C93C3C", endColorstr="#FFFFFF", GradientType=1);
}

.blanca-bg {
  background: hsla(0, 0%, 100%, 1);

  background: radial-gradient(circle, hsla(0, 0%, 100%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(135, 89%, 28%, 1) 100%);

  background: -moz-radial-gradient(circle, hsla(0, 0%, 100%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(135, 89%, 28%, 1) 100%);

  background: -webkit-radial-gradient(circle, hsla(0, 0%, 100%, 1) 0%, hsla(0, 0%, 100%, 1) 50%, hsla(135, 89%, 28%, 1) 100%);

  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFF", endColorstr="#FFFFFF", GradientType=1);
}

#sidecontainer .container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}

/* Sidebar */
#vinSidebar {
  position: fixed;
  top: 0;
  right: -100%; /* Oculto fuera de la pantalla */
  width: 25%; /* Ajusta según necesidad */
  height: 100vh;
  background-color: #f8f9fa;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: right 0.3s ease-in-out; /* Transición suave */
}


#vinSidebar.show {
  right: 0; /* Sidebar visible */
  transform: translateX(0); /* Mostrar el sidebar */
}

/* Ajuste de la tabla para ocupar todo el espacio */
.sidebar-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Asegura que el contenedor ocupe todo el alto */
  overflow: hidden; /* Elimina scroll interno */
}

#tablaside {
  width: 100%; /* Tabla ocupa todo el ancho disponible */
  table-layout: fixed; /* Distribuir columnas de manera uniforme */
}
#tablaside th,
#tablaside td {
  word-wrap: break-word; /* Forzar ajuste del texto si es necesario */
  text-align: left; /* Alinear texto a la izquierda */
  white-space: normal; /* Permitir saltos de línea */
}
.sidebar-body table {
  margin: 0;
}

#vinSidebar.show .sidebar-body {
  height: auto; /* Asegura que el contenido se ajuste dinámicamente */
}


/* Ajuste responsivo para inputs */
.form-control.fluid {
  width: 100%; /* Los inputs se expanden al 100% del ancho disponible */
  transition: width 0.3s ease; /* Animación suave */
}

/* Estilo para el botón flotante */
.btn-floating {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 1050;
  background-color: #17a2b8;
  color: white;
  border-radius: 50%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-floating:hover {
  background-color: #138496;
}
.offcanvas-side {
  position: fixed;
  top: 0;
  right: 0;
  width: 30%; /* Ancho inicial, ajustable según tamaño */
  max-width: 600px; /* Ancho máximo para pantallas grandes */
  min-width: 250px; /* Ancho mínimo */
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  background: #ffffff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transform: translateX(100%); /* Ocultar inicialmente */
  transition: transform 0.3s ease-in-out;
  display: none; /* Ocultar por defecto */
  overflow-y: auto; /* Scroll interno si el contenido excede */
}

.offcanvas-side.show {
  transform: translateX(0); /* Mostrar el sidebar */
}

.sidebar-body {
  max-height: calc(100vh - 70px); /* Ajustar la altura para restar el header */
  overflow-y: auto; /* Scroll interno */
  padding: 15px;
}

/*.pushed {
  margin-right: 30%; !* Empujar el contenido principal *!
}*/

@media (max-width: 768px) {
  .offcanvas-side {
    width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
  }
  .pushed {
    margin-right: 0; /* No empujar en pantallas pequeñas */
  }
}

/* Ajustar el contenedor principal sin desplazar contenido */
/* Ajustar formulario para que se adapte */
#mainCard {
  position: relative;
  width: 100%; /* Siempre ocupa todo el ancho */
  z-index: 1; /* Detrás del sidebar */
}
#mainCard.full {
  max-width: 100%; /* Cuando el sidebar está oculto */
}
#mainCard.pushed {
  padding-right: 25%; /* Espacio igual al ancho del sidebar */
}



/* Responsividad */
@media (max-width: 768px) {
  #vinSidebar {
    width: 100%; /* Sidebar ocupa todo el ancho */
  }
  #vinSidebar {
    width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
  }

  #tablaside th,
  #tablaside  td {
    font-size: 14px; /* Ajustar fuente para pantallas pequeñas */
  }
}

/* Estilos específicos para el menú de finanzas */
#finanzas + .dropdown-menu .dropdown-submenu {
  position: relative;
}

#finanzas + .dropdown-menu .dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

#finanzas + .dropdown-menu .dropdown-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  min-height: 40px;
  line-height: 20px;
}

#finanzas + .dropdown-menu .dropdown-item i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  font-size: 14px;
}

/* Flecha solo para submenús de finanzas */
#finanzas + .dropdown-menu .dropdown-submenu > .dropdown-item {
  position: relative;
}

#finanzas + .dropdown-menu .dropdown-submenu > .dropdown-item:after {
  content: " ";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #088527;
}

/* Hover solo para submenús de finanzas */
#finanzas + .dropdown-menu .dropdown-submenu:hover > .submenu {
  display: block;
}

#finanzas + .dropdown-menu .dropdown-submenu:hover > .dropdown-item:after {
  border-left-color: #fff;
}

.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;  /* Cambiado de 1 a -1 para ponerlo detrás */
}
/* El contenedor del login debe tener z-index positivo */
.form-signin {
  position: relative;
  z-index: 1;
  background: white; /* Asegura que el fondo sea sólido */
}

.snowflake {
  --size: 8px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: white;
  border-radius: 50%;
  filter: blur(2px);
  animation: fall linear infinite;
  pointer-events: none;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh) translateX(0);
  }
  100% {
    transform: translateY(100vh) translateX(20px);
  }
}

.christmas-lights {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  pointer-events: none;
  z-index: 2;  /* Mayor que el formulario */
}

/* Estilo base para cada luz */
.light {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: glow 1.5s ease-in-out infinite alternate;
  background-color: currentColor; /* Añadido para hacer el centro más visible */
}

/* Animación del brillo mejorada */
@keyframes glow {
  from {
    box-shadow: 0 0 5px #fff,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor;
    opacity: 1;
  }
  to {
    box-shadow: 0 0 10px #fff,
    0 0 20px currentColor,
    0 0 30px currentColor,
    0 0 40px currentColor;
    opacity: 0.8;
  }
}

/* Estilos para celdas de saldo inicial */
.editable-saldo {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.editable-saldo:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.editable-saldo:hover::after {
    content: " ✏️";
    font-size: 0.8em;
}

.no-editable {
    color: #6c757d;
    cursor: not-allowed;
    padding: 5px;
    display: inline-block;
    position: relative;
}

.no-editable:hover {
    background-color: #f8f9fa;
}

/* Resaltado para indicar restricción */
.no-editable::after {
    content: " 🔒";
    font-size: 0.8em;
    opacity: 0.5;
}

/* Tooltip personalizado para celdas no editables */
.no-editable:hover::before {
    content: "Solo editable el lunes";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #343a40;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Estilos para el encabezado de las tablas */
.card-header.bg-dark h5 {
    color: white !important;
    font-weight: bold;
}


