body {
  font-family: "Roboto", sans-serif;
}

.navbar {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
  border-radius: 15px;
}

.btn {
  border-radius: 10px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.list-group-item i {
  margin-right: 10px;
}

.bg-gradient-to-r {
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}

.btn-lg-menu {
  height: 120px;
  width: 100%;
  font-size: 1.2rem;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-lg-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.timer-box {
  background-color: #0d6efd;
  color: white;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-align: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chart-card {
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 1.5rem;
}

.dashboard {
  padding: 30px;
}

.card-action {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  padding: 25px 20px;
  cursor: pointer;
}

.card-action:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-action i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.saldo-box {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 15px 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.saldo-box h5 {
  margin: 0;
  font-weight: 600;
  color: #212529;
}

.saldo-valor {
  font-size: 1.8rem;
  color: #198754;
  font-weight: 700;
}

.time-box {
  background: #fff3cd;
  border-radius: 10px;
  padding: 8px 15px;
  font-weight: 500;
  color: #856404;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

footer {
  margin-top: 20px;
  text-align: center;
  color: #6c757d;
}

.transacciones-fecha {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.transacciones-fecha h5 {
  color: #0d6efd;
  font-weight: 600;
}

.transacciones-fecha .form-control {
  border-radius: 8px;
}

.transacciones-historia {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  max-height: 400px;
  overflow-y: auto;
}

/* 🔹 Personalización del scroll (para navegadores basados en WebKit) */
.transacciones-historia::-webkit-scrollbar {
  width: 8px;
}

.transacciones-historia::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.transacciones-historia::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.transacciones-historia h5 {
  color: #0d6efd;
  font-weight: 600;
}

.transacciones-historia .form-control {
  border-radius: 8px;
}

.tabla-transacciones td,
.tabla-transacciones th {
  vertical-align: middle;
}

.badge-credito {
  background-color: #198754;
}

.badge-debito {
  background-color: #dc3545;
}

.credit-container {
  margin-top: 50px;
  max-width: 900px;
}

.card-custom {
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: none;
  background: #fff;
  transition: all 0.3s ease;
}

.saldo-deuda {
  font-size: 1.6rem;
  color: #dc3545;
  font-weight: 700;
}

.interes-deuda {
  font-size: 1.6rem;
  color: #dcaa35;
  font-weight: 700;
}

.saldo-etiqueta {
  color: #495057;
  font-weight: 500;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 12px;
}

.input-monto {
  font-size: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.historial-card {
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.transfer-container {
  margin-top: 50px;
  max-width: 850px;
}

.saldo-banco {
  font-size: 2rem;
  color: #198754;
  font-weight: 700;
}

.saldo-etiqueta {
  color: #495057;
  font-weight: 500;
}

.empresa-info h2 {
  font-size: 1.6rem;
  letter-spacing: 0.3px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.empresa-info p {
  color: rgba(255, 255, 255, 0.85);
}

.reloj-container {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

#timeRemaining {
  font-family: "Poppins", sans-serif;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .empresa-info {
    width: 100%;
  }

  .empresa-info h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .empresa-info p {
    text-align: center;
    font-size: 0.9rem;
  }

  .reloj-container {
    margin-top: 10px;
    text-align: center;
    width: 100%;
  }
}

.empresa-item {
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.3s;
  cursor: pointer;
}

.empresa-item-auto {
  background-color: #c7c8c8;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.3s;
  cursor: pointer;
}

.empresa-item:hover {
  background-color: #e2e6ea;
  transform: translateX(5px);
}

.empresa-item i {
  color: #0dcaf0;
  margin-right: 8px;
}

label {
  color: #495057;
  font-weight: 500;
}

.form-select,
.form-control {
  background-color: #f1f3f5;
  color: #212529;
  border: 1px solid #ced4da;
}

.form-select:focus,
.form-control:focus {
  border-color: #0dcaf0;
  box-shadow: none;
}

.badge {
  font-weight: 500;
}

.item-financiero {
  display: flex;
  justify-content: space-between;
  /* separa texto e importe */
  /* align-items: center; */
}

.item-financiero span {
  font-weight: 400;
  color: var(--azul);
  /* puedes ajustar el color institucional */
}

.periodos-lista {
  max-height: 400px;
  overflow-y: auto;
}

.error {
  font-size: small;
  color: red;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.transaction-date {
  margin-right: 10px;
  flex-shrink: 0;
}

.transaction-description {
  flex-grow: 1;
}

.transaction-amount {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.cuenta {
  font-weight: 700;
  font-size: larger;
}

.login-btn {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}


#lectorQR {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

#lectorQR video {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

#lectorQR__scan_region {
  border-radius: 10px;
}

@media (max-width: 576px) {

  #lectorQR {
    max-width: 100%;
  }

}




/* =================================================
   MODAL LECTOR QR
================================================= */

.qr-modal {

  display: none;

  position: fixed;

  z-index: 99999;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.75);

  align-items: center;
  justify-content: center;

  padding: 15px;

}


/* CONTENEDOR */

.qr-modal-content {

  position: relative;

  background: #ffffff;

  width: 100%;

  max-width: 500px;

  max-height: 95vh;

  border-radius: 12px;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, .35);

  overflow: hidden;

  display: flex;

  flex-direction: column;

}


/* CABECERA */

.qr-modal-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 15px 20px;

  background: #003975;

  color: white;

}


.qr-modal-header h5 {

  margin: 0;

  font-size: 18px;

}


/* BOTÓN CERRAR */

.qr-close {

  border: none;

  background: transparent;

  color: white;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;

  padding: 0;

}


/* CUERPO */

.qr-modal-body {

  padding: 20px;

  text-align: center;

  overflow-y: auto;

}


/* LECTOR */

#lectorQR {

  width: 100%;

  max-width: 400px;

  margin: 15px auto 0;

}


/*
   Importante:
   Html5Qrcode genera un elemento VIDEO.
*/

#lectorQR video {

  display: block !important;

  width: 100% !important;

  height: auto !important;

  min-height: 250px;

  object-fit: cover;

  border-radius: 10px;

}


/* PIE */

.qr-modal-footer {

  padding: 15px 20px;

  border-top: 1px solid #ddd;

  text-align: right;

}


/* ============================================
   TELÉFONOS
============================================ */

@media (max-width: 576px) {

  .qr-modal {

    padding: 10px;

  }


  .qr-modal-content {

    max-width: 100%;

    max-height: 95vh;

    border-radius: 10px;

  }


  .qr-modal-body {

    padding: 15px;

  }


  #lectorQR {

    max-width: 100%;

  }


  #lectorQR video {

    min-height: 220px;

  }

}