/* bảng odds */
#bkbd-main-container {
    font-size: 12px;
    color: #333;
}
#bkbd-main-container table {
    margin-bottom: 0px;
    border-spacing: 2px;
    border: 0px;
    color: #333;
}
#bkbd-main-container td {
    padding: 0px 2px;
    border: 0px;
}
#bkbd-main-container a {
    text-decoration: none;
}
h2.bg_h2 {
    font-size: 13px;
    font-weight: 700;
    margin: 0px 2px;
    padding: 5px 2px;
    color: rgb(255, 105, 0);
    background: #409d0754;
    margin-left: 2px;
    margin-right: 2px;
}

/* coppy */
.TYLETT_4 {
    background-color: #b1b1b1;
    line-height: 22px;
}
.TYLETT_3 {
    background-color: #c6d4f1;
    line-height: 18px;
}
.TYLETT_3a {
    color: #464646;
    text-align: center;
    line-height: 15px;
}
.TYLETT_3b {
    color: #464646;
    text-align: left;
    padding-left: 3px;
}
.TYLETT_3_1 {
    background-color: #e4e4e4;
    line-height: 18px;
}
.Tyleweb_1, .Tyleweb_1a, .Tyleweb_1c {
    text-align: center;
    color: #ffffff;
    background-color: #004118;
    line-height: 22px;
    font-weight: bold;
}
.Tyleweb_1 {
    width: 10%;
}
.Tyleweb_1a {
    width: 30%;
}
.chutyle {
    color: rgb(255, 105, 0);
}
.do {
    color: #810101;
}
.TYLETT_4_LIVE {
    background-color: #b1b1b1;
    line-height: 22px;
}
.dong3 {
    background-color: #FFDDD3;
    font-weight: bold;
}
.TYLETT_3a_LIVE {
    color: #464646;
    text-align: center;
    line-height: 15px;
}
.dong4 {
    background-color: #f9cfb7;
    font-weight: bold;
}

/* mobile */
@media (max-width: 768px) {
    .bkbd-wrap {
        max-width: 100%;
        overflow-x: scroll;
    }
    div#bkbd-main-container {
        min-width: 700px;
    }
}

/* menu ngày */
.bkbd-day-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 2px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}
.bkbd-day-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
    line-height: 1.6;
}
.bkbd-day-btn:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.bkbd-day-btn.bkbd-day-active {
    background: #004118;
    border-color: #004118;
    color: #fff;
}

/* ── Modal phong độ ── */
#bkbd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#bkbd-modal-box {
    background: #fff;
    border-radius: 6px;
    width: 92%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
#bkbd-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    padding: 4px 8px;
}
#bkbd-modal-close:hover {
    color: #000;
}
#bkbd-modal-body {
    font-size: 12px;
    color: #333;
}

/* Spinner */
.bkbd-modal-spinner {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 13px;
}
.bkbd-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top-color: #004118;
    border-radius: 50%;
    animation: bkbd-spin 0.7s linear infinite;
    margin-bottom: 10px;
}
@keyframes bkbd-spin {
    to { transform: rotate(360deg); }
}
.bkbd-modal-error {
    text-align: center;
    padding: 30px 0;
    color: #c00;
}

/* ── Nội dung phong độ trong popup ── */
#bkbd-modal-body {
    overflow-x: auto;
}
#bkbd-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 12px;
}
#bkbd-modal-body td {
    padding: 3px 5px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
#bkbd-modal-body tr:first-child td[colspan] {
    background: #004118;
    color: #fff;
    font-weight: 700;
    padding: 6px 5px;
    font-size: 13px;
}
#bkbd-modal-body td[align="center"] b {
    color: #004118;
}
#bkbd-modal-body td b {
    color: #c00;
}
#bkbd-modal-body tr:nth-child(odd) {
    background: #f9f9f9;
}
#bkbd-modal-body tr:nth-child(even) {
    background: #fff;
}
#bkbd-modal-body td.xanh { color: #007a00; font-weight: 700; }
#bkbd-modal-body td.do   { color: #c00;    font-weight: 700; }
#bkbd-modal-body td.xam  { color: #888;    font-weight: 700; }
td.trd_phongdo1 h3 {
    margin: 0;
    font-size: 1.2rem;
}
td.trd_phongdo1 tr {
    background: none !important;
}
div#bkbd-modal-body a {
    text-decoration: none;
}
