/* ══════════════════════════════════════════════════════════════════════════════
   ĐCCN — ĐỐI CHIẾU CÔNG NỢ CHI TIẾT — /doi-chieu-cong-no
   CSS partial global: class dùng ở cả page và component con → không scoped.
   Prefix: .dccn-*
   ══════════════════════════════════════════════════════════════════════════════ */

.dccn-page {
    padding: 16px;
}

.dccn-page__icon {
    color: #f472b6;
    font-size: 30px;
}

.dccn-page__title {
    font-weight: 700;
    color: #fff;
}

.dccn-page__sub {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    display: block;
}

.dccn-page__hint {
    color: rgba(255, 255, 255, 0.45);
}

.dccn-page__link {
    font-size: 0.8rem;
    color: #7dd3fc;
}

.dccn-filter,
.dccn-empty,
.dccn-batches {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.dccn-empty {
    color: rgba(255, 255, 255, 0.55);
}

/* ── Thẻ tổng ─────────────────────────────────────────────────────────────── */
.dccn-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.dccn-kpi__tile {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dccn-kpi__tile--bad {
    background: rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.35);
}

.dccn-kpi__tile--warn {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.35);
}

.dccn-kpi__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.55);
}

.dccn-kpi__value {
    font-size: clamp(1.15rem, 3.4vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dccn-kpi__value--muted {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.dccn-kpi__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.dccn-kpi__note {
    margin-top: 2px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Bảng ─────────────────────────────────────────────────────────────────── */
.dccn-table {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.dccn-table td,
.dccn-table th {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dccn-table td {
    font-size: 0.82rem;
}

.dccn-row--bad td {
    background: rgba(225, 29, 72, 0.08);
}

.dccn-strong {
    font-weight: 700;
    color: #fff;
}

.dccn-bad {
    color: #fb7185 !important;
}

.dccn-muted {
    color: rgba(255, 255, 255, 0.35);
}

.dccn-delta {
    font-size: 0.7rem;
    color: #fbbf24;
}

.dccn-cusname {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: normal;
    max-width: 260px;
}

.dccn-site {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(244, 114, 182, 0.14);
    color: #fbcfe8;
}

.dccn-unmapped-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px dashed rgba(245, 158, 11, 0.4);
}

.dccn-mapped-name {
    font-weight: 700;
    color: #38bdf8;
}

.dccn-chip {
    display: inline-block;
    margin: 1px 3px 1px 0;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.dccn-chip--red {
    background: rgba(225, 29, 72, 0.2);
    color: #fda4af;
}

.dccn-chip--warn {
    background: rgba(217, 119, 6, 0.2);
    color: #fcd34d;
}

.dccn-chip--info {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(203, 213, 225, 0.9);
    font-style: italic;
}

.dccn-chip--muted {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.8);
}

.dccn-foot {
    font-weight: 800 !important;
    background: rgba(148, 163, 184, 0.14);
    color: #fff !important;
}

/* ── Mobile (≤ 600px): MudTable stack theo DataLabel ──────────────────────── */
@media (max-width: 600px) {
    .dccn-page {
        padding: 10px;
    }

    .dccn-table td,
    .dccn-table th {
        white-space: normal;
    }

    .dccn-cusname {
        max-width: none;
    }
}
