/* Thêm border/kẻ ô cho bảng danh sách tài khoản */
.agencies table.simple,
.agencies table.simple thead,
.agencies table.simple tbody,
.agencies table.simple tfoot {
    border-collapse: collapse !important;
}

.agencies table.simple th,
.agencies table.simple td {
    border: 1px solid #e0e0e0 !important;
    padding: 8px 12px !important;
}

.agencies table.simple thead th {
    background-color: #f5f5f5 !important;
    border-color: #bdbdbd !important;
    font-weight: 600 !important;
}

.agencies table.simple tbody tr:hover {
    background-color: #fafafa !important;
}

.agencies table.simple tbody tr.blocked {
    background-color: #e0e0e0 !important;
}

.agencies table.simple tbody tr.suspended {
    background-color: #ffebee !important;
}

/* 15/10/2026 — XÁM (đóng tài khoản) LUÔN THẮNG HỒNG. CSS bundle gốc đặt luật
   .suspended SAU .blocked cùng độ ưu tiên, nên dòng mang cả hai cờ bị tô hồng
   (vận hành báo: đóng TK xong F5 thành hồng). Máy chủ đã không gửi cả hai cờ
   nữa; luật này là chốt chặn thứ hai. */
.agencies table.simple tbody tr.blocked,
.agencies table.simple tbody tr.blocked.suspended {
    background-color: #e0e0e0 !important;
}
.agencies .content .simple-table-container table tbody tr.blocked td,
.agencies .content .simple-table-container table tbody tr.blocked.suspended td {
    background: rgba(179, 179, 179, 0.7) !important;
}
.agencies .content .simple-table-container table tbody tr.blocked:hover td,
.agencies .content .simple-table-container table tbody tr.blocked.suspended:hover td {
    background: rgba(179, 179, 179, 0.5) !important;
}

/* Danh sách tài khoản: chỉ căn ba cột được chỉ định. */
.agencies table.simple thead th:first-child {
    text-align: center !important;
}

.agencies table.simple thead th:nth-child(5) {
    text-align: center !important;
}

.agencies table.simple thead th:nth-child(2),
.agencies table.simple thead th:nth-child(7),
.agencies table.simple thead th[ng-if="vm.hasMember"] + th {
    text-align: center !important;
}

.agencies table.simple thead th:nth-child(3),
.agencies table.simple thead th:nth-child(4),
.agencies table.simple thead th:nth-child(6),
.agencies table.simple thead th:nth-last-child(2) {
    text-align: center !important;
}

.agencies table.simple tbody td.credit {
    text-align: right !important;
}

.agencies table.simple tbody td.level {
    text-align: center !important;
}

.agencies table.simple tbody td.payment:not(.payment-status) {
    text-align: center !important;
}

/* Border cho các bảng khác (share-holder, parameter...) */
.simple-table-container table.simple th,
.simple-table-container table.simple td {
    border: 1px solid #e0e0e0 !important;
}

.simple-table-container table.simple thead th {
    background-color: #f5f5f5 !important;
    border-color: #bdbdbd !important;
}

/* Share holder dialog table */
.share-holder-dialog .share-content {
    border-right: 1px solid #e0e0e0 !important;
}

.share-holder-dialog .share-content .head-line,
.share-holder-dialog .share-content .base-line {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 4px 8px !important;
    height: 27px !important;
    line-height: 19px !important;
    box-sizing: border-box !important;
}

/* Betting limit dialog */
.agencies-parameter .wrap-bet-type {
    border-right: 1px solid #e0e0e0 !important;
}

.agencies-parameter .wrap-bet-type div {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 4px 6px !important;
    height: 27px !important;
    line-height: 19px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}
