--AGRANDAT IMAGEN EN PRODUCTOS .imagen-agrandable {
  cursor: pointer;
  transition: transform 0.2s;
}

.imagen-agrandada {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(10);
  z-index: 9999;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}











/* columna fija, fijar*/


html.dark table.dataTable thead tr>.dtfc-fixed-left,
html.dark table.dataTable thead tr>.dtfc-fixed-right,
html.dark table.dataTable tfoot tr>.dtfc-fixed-left,
html.dark table.dataTable tfoot tr>.dtfc-fixed-right {
  background-color: var(--dt-html-background)
}

html.dark table.dataTable tbody tr>.dtfc-fixed-left,
html.dark table.dataTable tbody tr>.dtfc-fixed-right {
  background-color: var(--dt-html-background)
}

html.dark div.dtfc-left-top-blocker,
html.dark div.dtfc-right-top-blocker {
  background-color: var(--dt-html-background)
}





.mi_card {
  background-color: rgb(94, 0, 0);
}




/* Estilos específicos para ciertos elementos en el modo oscuro */
.dark-mode .navbar {
  background-color: #343A40;
  /* Cambia el color de fondo de la barra de navegación a un tono oscuro */
  color: #ffffff;
  /* Cambia el color del texto en la barra de navegación a blanco */
}

.dark-mode .product-grid {
  background-color: #343A40;
  /* Cambia el color de fondo de la barra de navegación a un tono oscuro */
  color: #ffffff;
  /* Cambia el color del texto en la barra de navegación a blanco */
}

.dark-mode .products-section {
  background-color: #343A40;
  /* Cambia el color de fondo de la barra de navegación a un tono oscuro */
  color: #ffffff;
  /* Cambia el color del texto en la barra de navegación a blanco */
}



.dark-mode .product-card {
  background-color: rgb(65, 73, 80);
  /* Cambia el color de fondo de la barra de navegación a un tono oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto en la barra de navegación a blanco */
}




/* Estilos específicos para ciertos elementos en el modo oscuro */
.mi_card_info {
  background-color: #17a2b8 !important;
  /* Cambia el color de fondo del encabezado de la tarjeta a un tono oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto del encabezado de la tarjeta a blanco */
}

.dark-mode .mi_card_info {
  background-color: #343A40 !important;
  /* Cambia el color de fondo a un tono oscuro en modo oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto a blanco en modo oscuro */
}

.dark-mode .btn {

  color: #ffffff !important;
  /* Cambia el color del texto a blanco en modo oscuro */
}


.mi_color {
  background-color: #055ea7 !important;
  /* Cambia el color de fondo del encabezado de la tarjeta a un tono oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto del encabezado de la tarjeta a blanco */
}


.color_card_dash {
  background-color: #8d989938 !important;
  /* Cambia el color de fondo del encabezado de la tarjeta a un tono oscuro */
  color: #000000 !important;
  /* Cambia el color del texto del encabezado de la tarjeta a blanco */
}

.dark-mode .color_card_dash {
  background-color: #003547 !important;
  /* Cambia el color de fondo a un tono oscuro en modo oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto a blanco en modo oscuro */
}

.dark-mode .miBodyColor {
  background-color: #343A40 !important;
  /* Cambia el color de fondo a un tono oscuro en modo oscuro */
  color: #ffffff !important;
  /* Cambia el color del texto a blanco en modo oscuro */
}


/*--------------------------------------------*/
.color_general {
  color: #ffffff !important;
  border-radius: 1px;
  padding: 5px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.color_general.active {
  background-color: #007bff !important;
  /* Color de resaltado cuando está activo */
  color: #fff !important;
}

.color_text:hover {
  background-color: #00a1bc !important;
  /* Color ligeramente más oscuro al pasar el mouse */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  /* Aumentar la sombra al hacer hover */
}

.text-responsive {
  text-align: center;
  /* Por defecto, centrado */
}




/*--------------------------------------------*/

.color_aside {
  background-color: #384048 !important;
  color: #ffffff !important;
}


/* BOTON DE HABILITAR Y DESHABILITAR O ENCENDER Y APAGAR */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  /* Reducido de 60px */
  height: 28px;
  /* Reducido de 34px */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  transition: .4s;
  border-radius: 28px;
  /* Ajustado según el nuevo height */
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  /* Reducido de 26px */
  width: 22px;
  /* Reducido de 26px */
  left: 3px;
  /* Ajustado según el nuevo tamaño */
  bottom: 3px;
  /* Ajustado según el nuevo tamaño */
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #15a51a;
}

input:checked+.slider:before {
  transform: translateX(22px);
  /* Ajustado según el nuevo width */
}


/* GIF DE LOADER CARGAR */
.loader {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  /* Posición fija para mantenerla en la pantalla */
  top: 50%;
  /* Centrado verticalmente */
  left: 50%;
  /* Centrado horizontalmente */

  transform: translate(-50%, -50%);
  /* Ajuste para centrar la imagen */
  z-index: 9999;
  width: 250px;
  /* Ajusta el ancho */
  height: 250px;
  /* Ajusta la altura */
}


.chart-container {
  width: 100%;
  overflow-x: auto;
  /* Habilita el scroll horizontal */
}

#barChart {
  min-width: 400px;
  /* Ancho mínimo del gráfico */
  width: 100%;
}


/* Fondo completo */
.login-page {
  background: linear-gradient(to right, #051f4734, #051f476f, #051f47);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* Caja de login */
.login-box {
  width: 400px;
  background: rgba(255, 255, 255, 0.804);
  /* Fondo semitransparente */
  padding: 30px;
  /* Mayor espacio interno */
  border-radius: 20px;
  /* Bordes más suaves */
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  /* Sombra más intensa */
  transition: all 0.3s ease;
  /* Transición suave para todo */
  animation: slideIn 1s ease-out;
  /* Animación al ingresar */
}

.login-box:hover {
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.2);
  /* Sombra más grande al pasar el cursor */
}

@keyframes slideIn {
  0% {
    transform: translateY(-50px);
    /* Empieza desde más arriba */
    opacity: 0;
    /* Comienza invisible */
  }

  100% {
    transform: translateY(0);
    /* Se mueve a su posición original */
    opacity: 1;
    /* Se vuelve completamente visible */
  }
}



/* Estilo del título */
.login-box h3 {
  margin-bottom: 30px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Estilos para los inputs */
.input-group .form-control {
  border-radius: 30px;
  border: 1px solid #0c315bc4;
  transition: all 0.3s ease-in-out;
  /* Transición suave */
  position: relative;
}

.input-group .form-control:focus {
  border-color: #0c315bc4;
  box-shadow: 0 0 8px #0c315bc4;
  outline: none;
  transform: scale(1.05);
  /* Aumenta ligeramente el tamaño */
}

/* Animación del borde con before */
.input-group .form-control::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #0056b3;
  transition: all 0.3s ease-in-out;
}

.input-group .form-control:focus::before {
  width: 100%;
  left: 0;
}


/* Agregamos una animación en el label si usas uno */
.input-group label {
  transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
  transform-origin: left;
}

.input-group .form-control:focus+label {
  transform: translateY(-25px) scale(0.9);
  font-weight: bold;
  color: #0056b3;
}



/* Botón personalizado */
.btn-custom {
  background-color: #4A90E2;
  color: #fff;
  border-radius: 30px;
  padding: 10px 30px;
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: #357ABD;
}

/* Responsive */
@media (max-width: 768px) {
  .login-box {
    width: 90%;
  }
}



.login-box img {
  width: 200px;
  margin-bottom: 10px;
}


.login-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  /* Ocupa toda la pantalla */
  overflow: hidden;
  /* Evita que se salga el fondo */
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/sistema_ventas_fel/vistas/assets/dist/img/fondoLogin.png') no-repeat left center;
  /* Alinea la imagen a la izquierda */
  background-size: cover;
  /* Asegura que la imagen cubra toda la pantalla */
  opacity: 0.3;
  /* Ajusta la opacidad */
  z-index: -1;
}


.btn-login {
  background-color: #0c315b;
  /* Color de fondo */
  color: white;
  /* Color del texto */
  border: none;
  /* Eliminar bordes */
  padding: 12px 24px;
  /* Añadir espacio alrededor del texto */
  font-size: 16px;
  /* Tamaño de la fuente */
  border-radius: 8px;
  /* Bordes redondeados */
  cursor: pointer;
  /* Cambiar el cursor al pasar sobre el botón */
  text-transform: uppercase;
  /* Convertir el texto a mayúsculas */
  font-weight: bold;
  /* Hacer el texto más grueso */
  transition: background-color 0.3s, box-shadow 0.3s;
  /* Transiciones suaves */
}

.btn-login:hover {
  background-color: #0c315bc4;
  /* Color de fondo cuando el mouse pasa sobre el botón */
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
  /* Sombra suave alrededor del botón */
}

.btn-login:focus {
  outline: none;
  /* Eliminar el borde de enfoque predeterminado */
  box-shadow: 0 0 0 3px #0c315bc4;
  /* Añadir sombra cuando el botón está en foco */
}

.btn-login:active {
  background-color: #0c315bc4;
  /* Color cuando se hace clic en el botón */
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.4);
  /* Sombra más pequeña cuando el botón está presionado */
}




.switch-icon {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch-icon input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.slider-checked {
  background-color: #28a745;
  color: white;
}






.success-container {
  text-align: center;
  padding: 40px;
  animation: fadeIn 1s ease-in-out;
}

.success-checkmark {
  width: 120px;
  height: 120px;
  display: inline-block;
  border-radius: 50%;
  background-color: #4BB543;
  position: relative;
  animation: pop 0.6s ease forwards;
  box-shadow: 0 0 30px rgba(75, 181, 67, 0.5);
}

.check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: white;
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  animation: drawCheck 0.5s 0.6s ease forwards, growCheck 0.3s 0.6s ease forwards;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes growCheck {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }

  60% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-text {
  color: #4BB543;
  font-size: 26px;
  font-weight: bold;
  margin-top: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out 0.8s forwards;
  opacity: 0;
}

.success-subtext {
  color: #444;
  font-size: 16px;
  margin-top: 5px;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 1.2s forwards;
}




/*loading anulacion success*/
.cancel-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #dc3545;
  /* rojo */
  position: relative;
  animation: pop 0.4s ease;
}

.cancel-icon {
  width: 50px;
  height: 50px;
  stroke: #dc3545;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 15px;
}

.cancel-text {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #dc3545;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}







/* Contenedor principal del punto de venta */
.pos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* Sección izquierda de productos */
.products-section {
  flex: 2;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.products-section h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #000000;
}


.dark-mode .products-section h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}


/* Grid de tarjetas */
.product-grid {
  max-height: 100vh;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}

/* Estilo para cada tarjeta de producto */
.product-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 230px;
}

.product-card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Nombre truncado con ... */
.product-card .nombre-producto {
  font-size: 0.80rem;
  color: #333;
  margin: 0;
  padding: 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Muestra máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 30px;
}

/* Línea fija */
.product-card .separador {
  border-top: 1px solid #ccc;
  margin: 8px 0 6px 0;
}

/* Precio abajo */
.product-card .precio-producto {
  font-size: 0.75rem;
  color: #007b00;
  font-weight: bold;
  margin: 0;
}

/* Sección derecha (por si la usas) */
.venta-section {
  flex: 2;
  padding: 10px;
  font-size: 0.85rem;
  max-height: 100vh;
  overflow-y: auto;
}

/* Responsive para móviles */
@media (max-width: 768px) {

  .products-section,
  .venta-section {
    flex: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .product-card img {
    height: 60px;
  }

  .product-card h5,
  .product-card p {
    font-size: 0.7rem;
  }
}


.product-card .separador {
  border-top: 1px solid #ccc;
  margin: 8px 0;
}

.product-card .precio-producto {
  font-size: 0.75rem;
  color: #007b00;
  font-weight: bold;
  margin: 0;
}



#lstProductosVentaVisual td,
#lstProductosVentaVisual th {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 150px;
}




/* Estilo para el botón cuando el checkbox está activo */
#chkEfectivoExacto:checked+#labelChkEfectivo {
  background-color: #71b800;
  color: #fff;
  border-color: #71b800;
}

.codigo-producto {
  display: block;
  font-size: 0.7rem;
  color: #666;
  margin-top: 2px;
}

.dark-mode .codigo-producto {
  color: #ffffff;
}


.dark-mode .precio-producto {
  color: #67e967;
}

.dark-mode .nombre-producto {
  color: #ffffff;
}



.dark-mode .table-striped {
  color: #ffffff;
}





.product-card.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.product-card.disabled::after {
  content: "Cargando...";
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  background: rgba(255, 255, 255, 0.8);
}

.oferta-container {
  position: absolute;
  top: 5px;
  left: 5px;
}

.oferta-badge {
  background-color: #ffbf00;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-block;
}



.custom-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.custom-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-switch-label {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.custom-switch-label::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

/* Activado */
.custom-switch-input:checked+.custom-switch-label {
  background-color: #198754;
  /* Bootstrap success */
}

.custom-switch-input:checked+.custom-switch-label::before {
  transform: translateX(22px);
}





#lstProductosVenta .iptPrecioVenta,
#lstProductosVenta .iptDescuento {
  min-width: 70px;
  max-width: 100px;
}

#lstProductosVenta .input-group {
  flex-wrap: nowrap !important;
}





#lstVentas tbody td {
  cursor: pointer;
  /* cambia el cursor */
  transition: background-color 0.2s ease;
  /* transición suave */
  background-clip: padding-box;
  /* asegura que el color se vea completo */
}

/* Cambia el color de toda la celda al pasar el cursor */
#lstVentas tbody tr:hover td {
  background-color: #b7d9eb !important;
  cursor: pointer;
}




#lstVentas tbody td {
  cursor: pointer;
  /* cambia el cursor */
  transition: background-color 0.2s ease;
  /* transición suave */
  background-clip: padding-box;
  /* asegura que el color se vea completo */
}

/* Cambia el color de toda la celda al pasar el cursor */
#lstVentas tbody tr:hover td {
  background-color: #b7d9eb !important;
  cursor: pointer;
}



.stat-card {
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 1.5rem;
}

.stat-title {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.scroll-table {
  max-height: 160px;
  overflow-y: auto;
  border-top: 1px solid #e5e5e5;
  margin-top: 10px;
  padding-top: 10px;
}




/* Mostrar SOLO en pantallas pequeñas */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    z-index: 9999;
}

/* Estilos de los botones */
.mobile-action-bar button {
    flex: 1;
    margin: 0 5px;
    font-size: 12px;
    padding: 8px 0;
    border-radius: 10px;
}



/* Ocultar botones de escritorio en pantallas pequeñas */
.desktop-buttons {
    display: none;
}

@media (min-width: 768px) {
    /* Mostrar solo en pantallas grandes */
    .desktop-buttons {
        display: block;
    }

    /* Ocultar barra móvil en pantallas grandes */
    .mobile-action-bar {
        display: none;
    }
}
