.tb-the {
    margin-top: 24px;
}

.tb-tg {
    padding: 16px;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-md);
    background: linear-gradient(135deg, rgba(41, 168, 235, 0.06), rgba(255, 255, 255, 0.02) 60%);
}

.tb-tg-dau {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tb-tg-ic {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 168, 235, 0.15);
    color: #29a8eb;
    font-size: 22px;
    flex-shrink: 0;
}

.tb-tg-chu {
    flex: 1;
    min-width: 200px;
}

.tb-tg-ten {
    font-weight: 600;
    color: var(--cm-text-primary);
}

.tb-tg-mo {
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
    margin-top: 2px;
    line-height: 1.5;
}

.tb-tg-loi {
    color: var(--cm-warning);
}

.tb-tg[data-tt="ok"] .tb-tg-ic::after,
.tb-tg[data-tt="loi"] .tb-tg-ic::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--cm-bg-card);
}

.tb-tg[data-tt="ok"] .tb-tg-ic::after {
    background: var(--cm-success);
}

.tb-tg[data-tt="loi"] .tb-tg-ic::after {
    background: var(--cm-warning);
}

.tb-tg-ok {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--cm-success-light);
    color: var(--cm-success);
    font-size: 12px;
    font-weight: 600;
}

.tb-tg-nut {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tb-tg-nut .cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tb-tg-nut .cm-btn i {
    margin: 0;
    width: auto;
    font-size: 13px;
    color: inherit;
}

.tb-tg[data-tt="chua"] [data-phan]:not([data-phan~="chua"]),
.tb-tg[data-tt="ok"] [data-phan]:not([data-phan~="ok"]),
.tb-tg[data-tt="loi"] [data-phan]:not([data-phan~="loi"]) {
    display: none !important;
}

.tb-tg-cho {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--cm-border);
    flex-wrap: wrap;
    align-items: center;
}

.tb-tg-cho[hidden] {
    display: none;
}

.tb-tg-qr {
    background: #fff;
    padding: 8px;
    border-radius: var(--cm-radius-sm);
    line-height: 0;
}

.tb-tg-qr:empty {
    display: none;
}

.tb-tg-qr svg {
    width: 160px;
    height: 160px;
    display: block;
}

.tb-tg-cho-chu {
    flex: 1;
    min-width: 220px;
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
}

.tb-tg-cho-chu p {
    margin: 0 0 8px;
}

.tb-tg-han {
    margin-top: 12px !important;
    color: var(--cm-text-muted);
}

.tb-ds {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.tb-dong {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 6px 16px;
    padding: 14px 0;
    border-top: 1px solid var(--cm-border);
}

.tb-dong:first-child {
    border-top: 0;
}

.tb-dong-ten {
    color: var(--cm-text-primary);
    font-size: 14px;
    min-width: 0;
}

.tb-dong-muc {
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
}

.tb-dong-muc a,
.tb-kenh-note a {
    color: var(--cm-primary);
}

.tb-kenh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 12px;
    min-width: 0;
}

.tb-dong .tb-kenh {
    justify-content: flex-end;
    width: 100%;
}

.tb-dong .tb-kenh-them {
    flex: 1 1 auto;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.tb-dong .tb-kenh-email {
    margin-right: auto;
}

.tb-dong .tb-nhip-i {
    order: -1;
}

.tb-dong .tb-kenh .cm-seg {
    flex: 1 1 auto;
}

.tb-dong .tb-kenh .cm-seg-btn {
    flex: 1 1 0;
    justify-content: center;
    white-space: nowrap;
}

.tb-dong-muc {
    text-align: right;
}

.tb-khoa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid var(--cm-border);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--cm-text-muted);
    white-space: nowrap;
    vertical-align: middle;
}

.tb-khoa i {
    font-size: 9px;
}

.tb-kenh-note {
    flex-basis: 100%;
}

.tb-kenh-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--cm-border);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--cm-text-secondary);
    white-space: nowrap;
}

.tb-nhip-i {
    color: var(--cm-text-muted);
    font-size: 13px;
    cursor: help;
    transition: color .15s ease;
}

.tb-nhip-i:hover,
.tb-nhip-i:focus-visible {
    color: var(--cm-primary);
    outline: none;
}

.tb-kenh-them {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
    cursor: pointer;
    margin: 0;
}

.tb-kenh-note {
    font-size: 12px;
    color: var(--cm-text-muted);
    text-align: right;
}


.tb-kenh .cm-seg-btn i,
.tb-kenh .tb-kenh-them i,
.tb-kenh .tb-kenh-email i {
    width: auto;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

#thong-bao .tb-kenh-note {
    display: none;
}

.tb-kenh-gon {
    align-items: flex-start;
    margin-top: 6px;
}

.tb-kenh-gon .cm-seg-btn {
    padding: 4px 8px;
    font-size: 12px;
    gap: 5px;
}

.tb-kenh-gon .tb-kenh-note {
    text-align: left;
}

.tb-kenh-nhan {
    display: block;
}

.tb-dang-ky {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--cm-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.tb-dang-ky .tb-kenh {
    justify-content: flex-start;
    gap: 4px 10px;
}

.tb-dang-ky .tb-kenh-note {
    flex-basis: auto;
    text-align: left;
}

@media (max-width: 640px) {
    .tb-dang-ky {
        width: 100%;
        justify-content: space-between;
        border-radius: var(--cm-radius-md);
    }
}

@media (max-width: 640px) {
    .tb-kenh {
        align-items: flex-start;
    }

    .tb-kenh-note {
        text-align: left;
    }
}

.tb-dv-mo {
    margin: 4px 0 0;
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
}

.tb-dv-ghi {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--cm-text-muted);
}

.tb-kenh-batbuoc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--cm-text-muted);
    white-space: nowrap;
}

.tb-kenh-batbuoc i {
    font-size: 10px;
}

@media (max-width: 640px) {
    .tb-dong {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tb-dong-muc {
        text-align: left;
    }

    .tb-dong .tb-kenh {
        justify-content: flex-start;
    }

    .tb-dong .tb-kenh-email {
        margin-right: 0;
    }
}

.sd-the .tb-dong {
    grid-template-columns: minmax(0, 1fr) 344px;
    align-items: start;
}

.sd-kenh {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.sd-muc-hang {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-muc-hang.sd-an {
    display: none;
}

.sd-muc-hang label {
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
    margin: 0;
}

.sd-muc-hang .sd-muc {
    width: 118px;
    max-width: 100%;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sd-muc-hang .sd-dv {
    font-size: var(--cm-font-sm);
    color: var(--cm-text-secondary);
    min-width: 22px;
}

.sd-muc-hang .sd-luu {
    padding: 6px 14px;
    font-size: var(--cm-font-sm);
}

@media (max-width: 640px) {
    .sd-the .tb-dong {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-kenh {
        align-items: flex-start;
    }

    .sd-muc-hang {
        justify-content: flex-start;
    }
}

.tb-dai {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 16px 20px;
}

.tb-dai-chu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    min-width: 0;
}

.tb-dai-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--cm-radius-md);
    background: var(--cm-primary-light);
    color: var(--cm-primary);
    font-size: 15px;
    flex-shrink: 0;
}

.tb-dai-ten {
    color: var(--cm-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.tb-dai-mo {
    margin-top: 2px;
    color: var(--cm-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.tb-dai .tb-kenh {
    flex: 0 1 auto;
}

@media (max-width: 640px) {
    .tb-dai {
        padding: 14px 16px;
    }

    .tb-dai .tb-kenh {
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .tb-dai .tb-kenh .cm-seg {
        flex: 1 1 auto;
    }

    .tb-dai .tb-kenh .cm-seg-btn {
        flex: 1 1 0;
        justify-content: center;
    }
}
