/* ══════════════════════════════════════════════════════════════════════════════
   BẢNG KÊ HÓA ĐƠN KHÁCH HÀNG — /bangke-hoadon
   CSS partial global (theo .agents/workflows/css-partial-views.md): class dùng cả
   ở page và các component con nên KHÔNG dùng scoped .razor.css.
   Prefix: .bkhd-*
   ══════════════════════════════════════════════════════════════════════════════ */

.bkhd-page {
    padding: 16px;
}

.bkhd-page__icon {
    color: #38bdf8;
    font-size: 30px;
}

.bkhd-page__title {
    font-weight: 700;
    color: #fff;
}

.bkhd-page__sub {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    display: block;
}

.bkhd-page__hint {
    color: rgba(255, 255, 255, 0.45);
    align-self: center;
}

.bkhd-filter,
.bkhd-info,
.bkhd-empty {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.bkhd-empty {
    color: rgba(255, 255, 255, 0.55);
}

/* ── Khối thông tin tài khoản ─────────────────────────────────────────────── */
.bkhd-info__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 10px;
}

.bkhd-info__list {
    display: grid;
    grid-template-columns: minmax(110px, max-content) 1fr;
    gap: 6px 16px;
    margin: 0;
}

.bkhd-info__list dt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.bkhd-info__list dd {
    margin: 0;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bkhd-info__mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* ── Ô tổng công nợ ───────────────────────────────────────────────────────── */
.bkhd-total {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(30, 58, 138, 0.28));
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.bkhd-total__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.bkhd-total__value {
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.bkhd-total__sub,
.bkhd-total__legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.bkhd-total__legal {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Bảng ─────────────────────────────────────────────────────────────────── */
.bkhd-table {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.bkhd-table td,
.bkhd-table th {
    font-variant-numeric: tabular-nums;
}

.bkhd-strong {
    font-weight: 700;
    color: #fff;
}

.bkhd-vat {
    color: #38bdf8;
}

.bkhd-missing {
    color: #d97706;
    font-weight: 600;
}

.bkhd-tax {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.9);
}

.bkhd-tax--vat {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

.bkhd-site {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

.bkhd-foot {
    font-weight: 800 !important;
    background: rgba(148, 163, 184, 0.14);
    color: #fff !important;
}

/* ── Mobile (≤ 600px): MudTable tự stack theo DataLabel; chỉ cần nới chữ ──── */
@media (max-width: 600px) {
    .bkhd-page {
        padding: 10px;
    }

    .bkhd-info__list {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .bkhd-info__list dt {
        margin-top: 6px;
    }

    .bkhd-table {
        border-radius: 10px;
    }
}
