/* ═══════════════════════════════════════════
   BANGKE — Bảng Kê Nhập Hàng (AMIS Accounting)
   ═══════════════════════════════════════════ */

/* ─── Page Header ─── */
.bk-page-title   { font-weight: 700; letter-spacing: 0.3px; }
.bk-page-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
    display: block;
}

/* ═══ FILTER BAR ═══ */
.bk-filter-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* ═══ KPI SUMMARY BAR ═══ */
.bk-kpi-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 14px;
}

.bk-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    min-width: 120px;
}

.bk-kpi-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

.bk-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* ═══ PREVIEW PANEL ═══ */
.bk-preview-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    /* Fill remaining height below filter bar */
    --bk-grid-height: calc(100vh - 260px);
}

.bk-thead-cell {
    background: linear-gradient(135deg, #1e3a5f, #0d47a1) !important;
    color: white !important;
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px !important;
    white-space: nowrap;
}

/* Grand total row */
.bk-grand-total-row td {
    background: rgba(96,165,250,0.12) !important;
    border-top: 2px solid rgba(96,165,250,0.4) !important;
}

/* ─── Empty state ─── */
.bk-empty {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}

/* ═══ Responsive ═══ */
@media (max-width: 600px) {
    .bk-kpi-bar   { gap: 6px; }
    .bk-kpi-card  { min-width: 100px; padding: 6px 10px; }
    .bk-kpi-value { font-size: 1.1rem; }
}
