/* =============================================================
   css/estilos.css — Estilos propios (complementan Bootstrap 5)
   ============================================================= */

:root {
    --color-primario: #0d3b66;
    --color-acento: #f4a259;
    --fondo: #f3f5f9;
}

body {
    background: var(--fondo);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Barra de navegación */
.barra-principal {
    background: linear-gradient(90deg, var(--color-primario), #1b5c96);
}
.barra-principal .nav-link.active {
    background: rgba(255, 255, 255, .15);
    border-radius: .4rem;
}

/* Títulos de página */
.titulo-pagina {
    font-weight: 700;
    color: var(--color-primario);
}

/* Tarjetas del dashboard */
.tarjeta-indicador {
    border: 0;
    border-radius: .8rem;
    transition: transform .15s ease;
}
.tarjeta-indicador:hover { transform: translateY(-3px); }
.tarjeta-indicador .icono {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.tarjeta-indicador .valor {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.card { border-radius: .8rem; }
.card-header:first-child { border-radius: .8rem .8rem 0 0; }

/* Tablas */
.table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    white-space: nowrap;
}
.tabla-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

/* Punto de venta */
.resultado-pos {
    cursor: pointer;
}
.resultado-pos:hover { background: #eef4ff; }
.resultado-pos.sin-stock { opacity: .55; cursor: not-allowed; }

.total-pos {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primario);
}

.input-cantidad { max-width: 90px; }
.input-costo { max-width: 140px; }

/* Lista desplegable de autocompletado de productos (compras) */
.autocompletar {
    position: absolute;
    z-index: 1060;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
}

@media print {
    .barra-principal, footer, .no-imprimir { display: none !important; }
}
