/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNzcyIsInNvdXJjZXMiOlsiY3VzdG9tLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */

/*# sourceMappingURL=custom.css.map */
#previewImagen {
  border-radius: 50%;
  position: absolute;
  float: inline-start;
}
.login-page {
  /* Establece una imagen de fondo por defecto */
  background-image: url("../img/fondo-pc.jpg");

  /* Establece un degradado lineal como fondo */
  background: linear-gradient(
      to bottom,
      rgba(212, 214, 211, 0.8),
      rgba(0, 35, 51, 0.8)
    ),
    url("../img/fondo-pc.jpg");
  /* Establece una altura mínima para que el contenido se muestre correctamente */
  min-height: 100vh;
  margin: 0;
  padding: 0 20px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;

  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
}

.login-form {
  background-color: rgba(255, 255, 255, 0.9);
  /* Fondo del formulario con opacidad */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  /* Sombra para dar profundidad al formulario */
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el resto del contenido del formulario */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-form button {
  background-color: #353c48;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #1b1c1f;
}

.logo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: url("../img/logo.png") no-repeat center;
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
}

.tagline {
  text-align: center;
  color: #777;
}

/* Estilos para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
  .login-page {
    /* Cambia la imagen de fondo para pantallas pequeñas */
    background: linear-gradient(
      to bottom,
      rgba(212, 214, 211, 0.8),
      rgba(0, 35, 51, 0.8)
    );
    background-image: url("../img/fondo-celular.jpg");
    min-height: 100vh;
    margin: 0;
    padding: 0 20px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;

    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
  }
}

.table-scroll-top {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  margin-bottom: 6px;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  background: #f8fafc;
}

.table-scroll-top-inner {
  height: 1px;
}

/* Formularios de venta/cotizacion: forzar scroll horizontal interno en tabla de articulos */
.route-sales-forms .table-responsive {
  overflow-x: auto;
}

.route-sales-forms #tblarticulos {
  min-width: 1200px;
}

.route-sales-forms #tblarticulos th,
.route-sales-forms #tblarticulos td {
  white-space: nowrap;
}

img[src*="img/products/"] {
  cursor: zoom-in;
  border-radius: 4px;
}

.img-hover-preview {
  position: fixed;
  z-index: 9999;
  display: none;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  padding: 6px;
}

.img-hover-preview img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
}

/* Ajustes globales responsive para panel interno */
@media (max-width: 991.98px) {
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section .section-body .card {
    margin-bottom: 12px;
  }

  .dashboard-kpi-row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 767.98px) {
  .dashboard-kpi-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dashboard-kpi-row .card.card-statistic-1 .card-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 18px;
  }

  .dashboard-kpi-row .card.card-statistic-1 .font-light {
    font-size: 20px !important;
    min-height: auto !important;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dataTables_wrapper .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0;
  }

  .dataTables_wrapper .dataTables_length select {
    width: 100%;
  }

  .form-inline {
    display: block;
  }

  .form-inline .form-control,
  .form-inline .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

/* Responsive fino por modulo: Compras / Nueva venta / Creditos */
@media (max-width: 991.98px) {
  .route-buy .card-header h4,
  .route-newsale .card-header h4,
  .route-client-credits .card-header h4,
  .route-branch-credits .card-header h4,
  .route-new-branch-credit-order .card-header h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .route-buy .table-responsive,
  .route-newsale .table-responsive,
  .route-client-credits .table-responsive,
  .route-branch-credits .table-responsive,
  .route-new-branch-credit-order .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .route-newsale #tblarticulos,
  .route-new-branch-credit-order #tblarticulos {
    min-width: 980px;
  }

  .route-buy #tbllistado,
  .route-client-credits #tbllistado,
  .route-branch-credits #tbllistado {
    min-width: 920px;
  }
}

@media (max-width: 767.98px) {
  body.route-newsale {
    overflow-x: hidden;
  }

  .route-newsale .main-content,
  .route-newsale .section,
  .route-newsale .section-body,
  .route-newsale .card,
  .route-newsale .card-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .route-newsale .section-body > .row {
    margin-left: 0;
    margin-right: 0;
  }

  .route-newsale .section-body > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .route-buy .form-group[class*="col-"],
  .route-newsale .form-group[class*="col-"],
  .route-client-credits .form-group[class*="col-"],
  .route-branch-credits .form-group[class*="col-"],
  .route-new-branch-credit-order .form-group[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .route-buy .btn-block,
  .route-newsale .btn-block,
  .route-client-credits .btn-block,
  .route-branch-credits .btn-block,
  .route-new-branch-credit-order .btn-block {
    width: 100%;
  }

  .route-buy .input-group,
  .route-newsale .input-group,
  .route-new-branch-credit-order .input-group {
    flex-wrap: wrap;
  }

  .route-buy .input-group .input-group-prepend,
  .route-newsale .input-group .input-group-prepend,
  .route-new-branch-credit-order .input-group .input-group-prepend {
    width: 100%;
    margin-top: 8px;
  }

  .route-buy .input-group .input-group-prepend .btn,
  .route-newsale .input-group .input-group-prepend .btn,
  .route-new-branch-credit-order .input-group .input-group-prepend .btn {
    width: 100%;
  }

  .route-newsale .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .route-newsale #tblarticulos {
    min-width: 820px;
  }

  .route-buy #detallesmWrap {
    max-height: 240px;
  }

  .route-client-credits .modal-dialog,
  .route-branch-credits .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem;
  }
}
