/* style.css - Estilos personalizados */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2 {
  color: #D40404; /* azul primario */
  font-weight: 600;
}


#app { 
  padding: 1rem 0.5rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.content-bottom {
  margin-bottom: 150px;
}

.swal2-popup {
    font-size: 0.8rem;
}

.presentacionTitulo {
  font-size: 35px;
  font-weight: 600;
  color: #D40404; /* azul primario */
}

.presentacionTituloLow {
  font-size: 25px;
  font-weight: 500;
  color: #D40404; /* azul primario */
}

.navTitulo {
  font-weight: 700;
  color: #D40404; /* azul primario */
}

.btn-primary {
  background-color: #D40404;
  border-color: #D40404;
}

.btn-primary:hover {
  background-color: #DE4343;
  border-color: #DE4343;
}

.text-muted {
  font-size: 0.9rem;
  color: #6c757d !important;
}

.link-red {
  color: #D40404 !important;
}

/* 🌟 Animaciones SPA */

.view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view.show {
  opacity: 1;
  transform: translateY(0);
}

#loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  background-color: var(--loader-bg-color);
  transition: opacity 0.4s ease;
  opacity: 0;
}

#loader.show {
  display: flex;
  opacity: 1;
}

#loader.fade-out {
  opacity: 0;
}

/* Spinner más grande para pantallas pequeñas */
#loader .spinner-border {
  width: 4rem;
  height: 4rem;
  border-width: 0.4em;
}

html[data-bs-theme="light"] #loader {
  --loader-bg-color: rgba(255, 255, 255, 0.8);
  --loader-spinner-color: #D40404;
}

html[data-bs-theme="dark"] #loader {
  --loader-bg-color: rgba(0, 0, 0, 0.85);
  --loader-spinner-color: #ffc107;
}

#loader .spinner-border {
  color: var(--loader-spinner-color);
}

/* 🌟 Toast iOS */
html[data-bs-theme="dark"] #iosToast {
  background-color: rgba(255, 255, 255, 0.95); /* muestro los colores opuestos al tema para que resalte */
  color: #212529;
}

html[data-bs-theme="light"] #iosToast {
  background-color: rgba(33, 37, 41, 0.95); /* muestro los colores opuestos al tema para que resalte */
  color: #f8f9fa;
}

/* 🌟 Label Sin Definir */
html[data-bs-theme="dark"] #spnSinDefinir {
  color: #EDE85A;
  font-size: 12px;
}

html[data-bs-theme="light"] #spnSinDefinir {
  color: #941515;
  font-size: 12px;
}

.fs-item-list {
  font-size: 14px; 
  font-weight: 600;
}

.fs-alerta-cantidad {
  font-size: 15px; 
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 2px;
  color: #E32700;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border: 2px solid red !important;
  border-radius: 5px;
}

.offcanvas-bottom,
.offcanvas-top {
  --bs-offcanvas-height: 50vh;
}


/* Navbar siempre con el tema contrario */
html[data-bs-theme="light"] .navbar-contrario {
  background-color: #212529 !important; /* dark */
  color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .navbar-contrario {
  background-color: #f8f9fa !important; /* light */
  color: #212529 !important;
}

/* Asegurar color de los links/botón */
html[data-bs-theme="light"] .navbar-contrario .navbar-brand,
html[data-bs-theme="light"] .navbar-contrario .btn {
  color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .navbar-contrario .navbar-brand,
html[data-bs-theme="dark"] .navbar-contrario .btn {
  color: #212529 !important;
}


.menu-inferior {
  position: fixed; 
  background: rgb(255, 255, 255); 
  margin-top: 20px; 
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.753);
  width: 100%;
  bottom: 0; 
  left: 0;
  z-index: 990;
  cursor: pointer;
  color: #444; 
  font-size: 14px;
}

 
.menu-inferior-btn-plus {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #D40404;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;
  margin-top: -30px;
  font-size: 28px;
}

.menu-inferior-btn-plus:hover {
  background-color: #D4040480;
}

.titDatoVta {
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #D40404;
    margin-right: 8px;
}

.lblEstadoInfo {
  border: solid 1px #fff; 
  padding-top: 1px; 
  padding-bottom: 1px; 
  padding-left: 3px; 
  padding-right: 3px; 
  border-radius: 5px; 
}

/* ====== HOME CARDS ====== */
.home-card {
    position: relative;
    background: var(--md-surface, #f5f5f5);
    border: 2px solid #444444;
    border-radius: 22px;
    padding: 17px 12px;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Material You Elevation */
    box-shadow: 0 3px 6px rgba(0,0,0,0.10);
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.3s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}

.home-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.home-card-sm {
    position: relative;
    background: var(--md-surface, #f5f5f5);
    border: 2px solid #444444;
    border-radius: 22px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Material You Elevation */
    box-shadow: 0 3px 6px rgba(0,0,0,0.10);
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.3s ease;
}

.home-card-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}

.home-card-sm:active {
    transform: scale(0.97);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Icono grande estilo Material */
.card-icon {
    font-size: 40px;
    margin-bottom: 6px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
.card-icon-sm {
    font-size: 30px;
    margin-bottom: 3px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.card-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #444444;
}

/* ===========================
   Ripple Effect (Flutter-like)
=========================== */
.home-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: rgba(212, 4, 4, 0.3);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.45s ease;
}

.home-card:active::after {
    opacity: 1;
    transform: scale(18);
}

/* Responsivo */
@media (min-width: 768px) {
    .home-card {
        height: 160px;
    }
}

/* ======== CONTENEDOR GENERAL DE LA GRILLA LECTURA ======== */
.estado-spn {
  white-space: nowrap;
  padding: 2px; 
  border: solid 1px #444; 
  border-radius: 5px;
}

.bultos-div {
  white-space: nowrap;
  font-weight: 700;
}

.cod-venta-div {
  font-size: 18px; 
  margin-top: -2px;
  font-weight: 700;
}

.cliente-div {
  line-height: 1.0;
}

.divLecturas {
  background-color: #f2f2f2;
  color: #444;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 1px solid #444; 
  padding: 1px 2px; 
  font-size: 17px; 
  font-weight: 600;
}

.spnBULeidos {color: #B01515; font-size: 20px; font-weight: 800;}

.spnBuLeer {color: #444; font-size: 20px; font-weight: 800;}


/* Fin style.css - Estilos personalizados */