#pageKardexArticulo {
    overflow: visible !important;
}

#pageKardexArticulo .prov-tabla-wrap {
    position: relative;
    max-height: calc(100vh - 280px);
    min-height: 200px;
    border: 1px solid var(--gris-200);
    border-top: none;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#pageKardexArticulo .prov-tabla thead th {
    background: #1A4480;
    vertical-align: middle;
    padding: 8px 6px;
    font-size: 0.7rem;
    border-right: 1px solid rgba(255,255,255,0.35);
    border-bottom: 2px solid #102A50;
}
#pageKardexArticulo .prov-tabla thead th:last-child { border-right: none; }

#pageKardexArticulo .prov-tabla {
    margin-top: 0;
}

#pageKardexArticulo .prov-tabla td.right { text-align: right; }
#pageKardexArticulo .prov-tabla th.right { text-align: right; }
#pageKardexArticulo .prov-tabla td.center { text-align: center; }
#pageKardexArticulo .prov-tabla th.center { text-align: center; }
#pageKardexArticulo .prov-tabla td.bold { font-weight: 700; }

#pageKardexArticulo #kaArticulo:focus,
#pageKardexArticulo #kaFechaDesde:focus,
#pageKardexArticulo #kaFechaHasta:focus {
    outline: none;
    border-color: #1A4480;
    box-shadow: 0 0 0 3px rgba(37, 99, 160, 0.12);
}

#pageKardexArticulo .ka-resumen {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

#pageKardexArticulo .ka-resumen-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

#pageKardexArticulo .ka-resumen-label {
    font-weight: 600;
    color: #475569;
}

#pageKardexArticulo .ka-resumen-value {
    font-weight: 700;
    color: #1A4480;
}

#pageKardexArticulo .tipo-e { color: #16a34a; font-weight: 700; }
#pageKardexArticulo .tipo-s { color: #dc2626; font-weight: 700; }

#pageKardexArticulo .ka-total-bar td {
    background: #1A4480;
    color: #fff;
    padding: 8px 10px;
    font-weight: 700;
    border: 0;
    border-bottom: 0;
    vertical-align: middle;
}
