/* ===== CONTAINER CHUNG ===== */
#boxketqua2_container,
#boxketqua2_pagination,
.content,
.box_kqxs,
.boxkq-pagination {
    width: 100%;
    max-width: 520px;
    margin: 5px auto;
    box-sizing: border-box;
    font-family: sans-serif;
}

.box_kqxs {
    text-align: justify;

}

/* ===== HEADER ===== */
.box_kqxs h2 {
    font-size: 20px;
    text-align: center;
    line-height: 1.3;
}

.site_link {
    font-size: 13px;
    text-align: center;
    display: block;
}

.site_link a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.site_link a:hover {
    text-decoration: underline;
}

/* ====================== */
/* BẢNG KẾT QUẢ CHÍNH     */
/* ====================== */
.table_boxketqua {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid red;
    font-size: 15px;
    table-layout: fixed; /* đảm bảo cột thẳng hàng */
    overflow-x: auto;
    max-width: 520px;
    width: 100%;
        margin-bottom: 0px !important;

}

.table_boxketqua td {
    vertical-align: middle;
    border: 1px solid red;
    text-align: center;
    color: #000000;
    word-wrap: break-word;
}

.table_boxketqua td:first-child {
    width: 100px;
    text-align: left;
    font-weight: bold;
  padding-left: 8px;
}

/* Dòng xen kẽ nền */
.table_boxketqua tr:nth-child(even) {
    background: #bcb7b75d;
}

/* ====================== */
/* KIỂU SỐ GIẢI           */
/* ====================== */
.giaiSo {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    background: none;
    padding: 2px 4px;
}

/* Hiệu ứng hover */
.giaiSo:hover {
    background-color: #e70000;
    color: #fff;
    border-radius: 5px;
}

/* Giải đặc biệt */
.giaidb .giaiSo {
    color: #a00;
    font-size: 40px;
}

/* Giải nhất */
.giai1 .giaiSo {
    color: #a00;
    font-size: 30px;
}

/* Giải bảy */
.giai7 .giaiSo {
    color: #a00;
    font-size: 30px;
}

/* Mã đặc biệt */
.ma_db {
    background: #f0f0f0;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.ma_db .giaiSo {
    font-size: 17px;
    color: #333;
    display: inline-block;
}

/* ====================== */
/* DÀN SỐ THEO DÒNG GIẢI  */
/* ====================== */
.giai2 .giaiSo,
.giai3 .giaiSo,
.giai4 .giaiSo,
.giai5 .giaiSo,
.giai6 .giaiSo,
.giai7 .giaiSo {
    min-width: 40px;
    display: inline-block;
    text-align: center;
  padding: 0 34px;
}

.giai4 .giaiSo
{
  padding: 0 50px;
}


.giai7 .giaiSo {
padding: 0 23px;
}


/* Giải 3 và 5: 2 hàng */
.giai3 .giaiSo,
.giai5 .giaiSo {
    display: inline-block;
}

.row-values {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.row-values.two-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* ====================== */
/* PHÂN TRANG             */
/* ====================== */
.boxkq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 auto;
    background-color: #d791cab5;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.boxkq-pagination .btn-nav-pagination,
#boxketqua2_datepicker {
    line-height: 10px;
    border-radius: 6px;
    background-color: #fff;
    color: #374151;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    margin-bottom: 0px !important;
    padding: 0 10px !important;
    margin: 7px 0px !important;
    font-size: 12px;
}

.boxkq-pagination .btn-nav-pagination {
    cursor: pointer;
    transition: all 0.2s ease;
}

.boxkq-pagination .btn-nav-pagination:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.boxkq-pagination .btn-nav-pagination:active {
    background-color: #e5e7eb;
    transform: scale(0.97);
}

#boxketqua2_datepicker {
    width: 100px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    outline: none;
}

#boxketqua2_datepicker:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}


.ui-datepicker-title {
    display: flex;           /* Hiển thị flex để các phần tử con nằm ngang */
    align-items: center;     /* Căn giữa theo chiều dọc nếu cần */
    gap: 8px;
    font-size: 12px;   /* Khoảng cách giữa tháng và năm (tùy chỉnh) */
    justify-content: center;
}

.ui-datepicker-title select {
    margin: 0;               /* Loại bỏ margin mặc định nếu có */
}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    top: 0.7em;}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
	display: block;
	position: absolute;
	left: 50%;
	margin-left: -8px;
	 top: 0%;
	 margin-top: 0px;
}

.ui-datepicker-year, .ui-datepicker-month{
    padding: auto !important;
}





/* Bảng loto */

.table_boxketqua_bottom {
    max-width: 520px;
    width: 100%;
    margin-top: 10px;
margin-bottom: 0px !important;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.thongke-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

}
.thongkeloto_cot{
    padding-bottom: 0px;
    border-bottom: 0px solid #d1d5db;
}

/* Nút Normal / 2 số / 3 số */
.config_list_loto {
    display: flex;
        border-right: 1px solid #d1d5db;
                border-left: 1px solid #d1d5db;
}




.config_loto {
    padding: 4px 4px;
    background-color: #f2f2f2;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    margin: 0 3px;

}

.config_loto.active {
    background-color: #4caf50;
    color: #fff;
}

/* Các số 0-9 */
.thongkesoloto {
width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    margin: 0 2px;
        border-radius: 50%;
    color: red;
    background: radial-gradient(circle at 5px 5px, #81ff81, rgba(0, 0, 17, 0.736));
}


/* Highlight số */
.thongkesoloto.highlight div {
    background-color: #ffeb3b;
    font-weight: bold;
}

/* Dự đoán */
.sodudoan {
    margin-left: 6px;
    display: flex;
    align-items: center;
}

/* Xem Loto */
.showLoto {
    margin-left: 6px;
    cursor: pointer;
    color: #1976d2;
    font-weight: 500;
    text-decoration: underline;
                border-left: 1px solid #d1d5db;
                padding: 0 4px;
                      border-right: 1px solid #d1d5db;
}


.giaiSo .hl2 {
    background: radial-gradient(circle at 5px 5px, #81ff81, rgba(0, 0, 17, 0.736));

  font-weight: 700;
  padding: 0 2px;
  border-radius: 50%;
    display: inline-block; /* cần để transform không ảnh hưởng flow */
    transition: transform 0.2s ease, color 0.2s ease; /* mượt khi phóng to */
    transform: scale(1.1)
}


/* Kết thúc Bảng loto */


.thongke-xsmb-gdb {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
}

.boxtit {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.colorYellow {
    color: #f1c40f;
}

.colorRed {
    color: #e60000;
}

.bold {
    font-weight: 700;
}

.tk-meta {
    margin-bottom: 10px;
}

.colgiai {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

/* ===== POPUP LÔ RƠI (module classes) ===== */
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup { position: fixed; inset: 0; z-index: 9999; display: none; }
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup-content { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 24px); max-width: 520px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 12px 12px 16px; box-sizing: border-box; font-family: sans-serif; }
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup-body { max-height: 70vh; overflow-y: auto; }
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-popup-close { display: inline-block; margin-top: 8px; background: #f2f2f2; border: 1px solid #d1d5db; border-radius: 6px; color: #374151; cursor: pointer; padding: 6px 12px; }
.tk_xsmb_loto_lo-roi .lr-day-block {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}
.tk_xsmb_loto_lo-roi .lr-day-title {
    font-size: 14px;
    margin-bottom: 6px;
}
.tk_xsmb_loto_lo-roi .lr-day-title strong {
    color: #e60000;
}
.tk_xsmb_loto_lo-roi .lr-date-link {
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
}
.tk_xsmb_loto_lo-roi .lr-date-link:hover {
    text-decoration: underline;
}
.tk_xsmb_loto_lo-roi .lr-deve-link {
    color: #1976d2;
    text-decoration: underline;
}
.tk_xsmb_loto_lo-roi .lr-pop-next {
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
}

.colgiai th,
.colgiai td {
    border: 1px solid #e6e6e6;
    padding: 8px;
    text-align: left;
}

.hoverTR tbody tr:hover {
    background: #f9f9f9;
}

.tk-table-freq td,
.tk-table-cham td {
    padding: 6px;
}

.fl {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.clearfix:after {
    content: '';
    display: block;
    clear: both;
}

.pad10 {
    padding-top: 10px;
}

.cl-link {
    cursor: default;
}
/* Bắt đầu thống kê GBD tháng */

.dbm-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block;}
.dbm-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dbm-grid th,.dbm-grid td{white-space:nowrap;min-width:90px}
.dbm-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dbm-grid thead th:first-child{left:0;z-index:3}
.dbm-grid .dbm-year-label{position:sticky;left:0;background:#fff;z-index:1}
.dbm-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dbm-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dbm-dia-year{position:absolute;bottom:0px;left:0px;font-weight:600}
.dbm-dia-day{position:absolute;right:6px;top:0px;font-weight:600}
.dbm-grid thead th:first-child,.dbm-grid .dbm-year-label{width:110px;min-width:110px}


.dbm-cal-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dbm-cal-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dbm-cal-grid th,.dbm-cal-grid td{white-space:nowrap;min-width:90px}
.dbm-cal-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dbm-cal-grid thead th:first-child{left:0;z-index:3}
.dbm-cal-grid .dbm-day-label{position:sticky;left:0;background:#fff;z-index:1}


.dbm-number.hl2{background:radial-gradient(circle at 5px 5px, #81ff81, rgba(0, 0, 17, 0.736));font-weight:700;padding:0 2px;border-radius:50%;display:inline-block;transition:transform 0.2s ease, color 0.2s ease;transform:scale(1.1)}
.dbm-consec{background:#fff9c4}
.dbm-consec-h{border-left:2px solid #fbc02d;border-right:2px solid #fbc02d}
.dbm-consec-v{border-top:2px solid #fbc02d;border-bottom:2px solid #fbc02d}


.dbm-grid-repeat thead th{position:sticky;top:0;background:#fff;z-index:2}
.dbm-grid-repeat thead th:first-child{left:0;z-index:3}
.dbm-grid-repeat tbody td:first-child{position:sticky;left:0;background:#fff;z-index:1}
.dbm-grid-cycle-pairs thead th,.dbm-grid-cycle-ht thead th,.dbm-grid-cycle-total thead th{position:sticky;top:0;background:#fff;z-index:2}
.dbm-grid-cycle-pairs thead th:first-child,.dbm-grid-cycle-ht thead th:first-child,.dbm-grid-cycle-total thead th:first-child{left:0;z-index:3}
.dbm-grid-cycle-pairs tbody td:first-child,.dbm-grid-cycle-ht tbody td:first-child,.dbm-grid-cycle-total tbody td:first-child{position:sticky;left:0;background:#fff;z-index:1}
.dbm-cycle-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}


.dbm-char-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dbm-grid-char thead th,.dbm-grid-char-dist thead th{position:sticky;top:0;background:#fff;z-index:2}
.dbm-grid-char thead th:first-child,.dbm-grid-char-dist thead th:first-child{left:0;z-index:3}
.dbm-grid-char tbody td:first-child,.dbm-grid-char-dist tbody td:first-child{position:sticky;left:0;background:#fff;z-index:1}


/* Kết thúc thống kê GBD tháng */

/* Bắt đầu thống kê GDB năm */
.dby-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dby-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-grid th,.dby-grid td{white-space:nowrap;min-width:90px}
.dby-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dby-grid thead th:first-child{left:0;z-index:3}
.dby-grid .dby-day-label{position:sticky;left:0;background:#fff;z-index:1}
.dby-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dby-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dby-grid thead th:first-child,.dby-grid .dby-day-label{width:110px;min-width:110px}
.dby-cell.lightBlue{background-color:#e6f7ff}

.dby-compare-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dby-grid.dby-grid-compare{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-grid.dby-grid-compare th,.dby-grid.dby-grid-compare td{white-space:nowrap;min-width:90px}
.dby-grid.dby-grid-compare thead th{position:sticky;top:0;background:#fff;z-index:2}
.dby-grid.dby-grid-compare thead th:first-child{left:0;z-index:3}
.dby-grid.dby-grid-compare .dby-day-label{position:sticky;left:0;background:#fff;z-index:1}
.dby-grid.dby-grid-compare .dby-sep{min-width:8px;width:8px;background:#fff;border-left:2px solid #999;border-right:2px solid #999}
.dby-grid.dby-grid-compare thead .dby-sep{position:sticky;top:0}
.dby-grid.dby-grid-compare .dby-sep .dby-cell-content{padding:0}
.dby-dia-day{position:absolute;bottom:0px;left:0px;font-weight:600}
.dby-dia-month{position:absolute;right:6px;top:0px;font-weight:600}


.dby-summary-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.dby-grid.dby-grid-summary{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-grid.dby-grid-summary th,.dby-grid.dby-grid-summary td{white-space:nowrap;min-width:120px}
.dby-grid.dby-grid-summary thead th{position:sticky;top:0;background:#fff;z-index:2}
.dby-grid.dby-grid-summary thead th:first-child{left:0;z-index:3}
.dby-grid.dby-grid-summary .dby-stat-label{position:sticky;left:0;background:#fff;z-index:1}
.dby-grid.dby-grid-summary .dby-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dby-grid.dby-grid-summary .dby-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dby-grid.dby-grid-summary .dby-dia-day{position:absolute;bottom:0px;left:0px;font-weight:600}
.dby-grid.dby-grid-summary .dby-dia-month{position:absolute;right:6px;top:0px;font-weight:600}

.dby-year-detail-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.dby-grid-year-detail{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-grid-year-detail th,.dby-grid-year-detail td{white-space:nowrap;min-width:160px}
.dby-grid-year-detail thead th{position:sticky;top:0;background:#fff;z-index:2}
.dby-grid-year-detail thead th:first-child{left:0;z-index:3}
.dby-grid-year-detail .dby-stat-label{position:sticky;left:0;background:#fff;z-index:1}
.dby-grid-year-detail .dby-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dby-grid-year-detail .dby-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dby-grid-year-detail .dby-dia-day{position:absolute;bottom:0px;left:0px;font-weight:600}
.dby-grid-year-detail .dby-dia-month{position:absolute;right:6px;top:0px;font-weight:600}



.dby-year-detail-plain .dby-header{background:#f3e0a0;padding:6px 8px;margin-top:10px}
.dby-year-detail-plain .dby-plain-top{display:flex;gap:12px}
.dby-year-detail-plain .dby-col{flex:1}
.dby-year-detail-plain .dby-row{display:grid;grid-template-columns: 1fr 1fr;gap:8px;padding:6px 0;border-bottom:1px solid #e6e6e6}
.dby-year-detail-plain .dby-row-head{background:#d9ecff;font-weight:600;border-bottom:2px solid #cfd8dc}
.dby-year-detail-plain .dby-cell{white-space:nowrap}
.dby-year-detail-plain .dby-line{padding:4px 0;border-bottom:1px dashed #e0e0e0}
.dby-year-detail-plain .colorRed{color:#d32f2f;font-weight:700}
.dby-year-detail-plain .dby-cols3{display:grid;grid-template-columns: repeat(3, 1fr);gap:12px}
/* Kết thúc thống kê GDB năm */



/* bắt đầu – Thống kê tổng giải đặc biệt */
.dby-box.dby-total .dby-plain-ht-total{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.dby-box.dby-total .dby-items-total-only{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-box.dby-total .dby-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr);gap:8px;padding:6px 0;border-bottom:1px solid #e6e6e6}
.dby-box.dby-total .dby-row-head{background:#d9ecff;font-weight:600;border-bottom:2px solid #cfd8dc}
.dby-box.dby-total .dby-cell{white-space:nowrap}


/* bắt đầu – Thống kê tổng theo khoảng */
.dtr-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dby-grid.dby-grid-total-range{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dby-grid.dby-grid-total-range th,.dby-grid.dby-grid-total-range td{white-space:nowrap;min-width:120px}
.dby-grid.dby-grid-total-range thead th{position:sticky;top:0;background:#fff;z-index:2}
.dby-grid.dby-grid-total-range td.dtr-highlight{background:#fff9c4}


.dtr-hover-panel-container{margin-top:8px;display:flex;justify-content:center}
.dtr-hover-panel{background:#f5f5f5;border:1px solid #ddd;border-radius:6px;padding:6px 8px}
.dtr-hover-numbers{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.dtr-hover-number-item{width:24px;height:24px;line-height:24px;text-align:center;border-radius:50%;background:#fff;border:1px solid #ccc;cursor:pointer}
.dtr-hover-number-item:hover{background:#e0f2ff;border-color:#99c}
.dtr-hover-number-item.active{background:#ffe082;border-color:#cc9}

/* kết thúc – Thống kê tổng giải đặc biệt */
/* bắt đầu – Lưới ngày theo tổng */
.dtr-daily-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dtr-daily-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dtr-daily-grid th,.dtr-daily-grid td{white-space:nowrap;min-width:120px}
.dtr-daily-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dtr-day-label{position:sticky;left:0;background:#fff;z-index:1}
.dtr-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dtr-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dtr-weekend-row .dby-cell{background:#e8f5e9}
.dtr-daily-grid tfoot tr{position:sticky;bottom:0;background:#fff;z-index:3}
.dtr-daily-summary{padding:6px 8px}
.dtr-sum-item{margin-right:12px}
/* kết thúc – Lưới ngày theo tổng */

/* bắt đầu – Thống kê GĐB theo khoảng nhanh */
/* (Module này đã chuyển sang fixed30, loại bỏ lưới ngày theo khoảng) */
/* kết thúc – Thống kê GĐB theo khoảng nhanh */

/* bắt đầu – Thống kê 30 ngày */
.drg-fixed30-ht-scroll,.drg-fixed30-pairs-scroll{width:100%; display:block}
.drg-fixed30-ht-grid,.drg-fixed30-pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.drg-fixed30-parity-scroll{width:100%; display:block}
.drg-fixed30-parity-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.drg-fixed30-parity-grid th,.drg-fixed30-parity-grid td{white-space:nowrap;min-width:140px}
.drg-fixed30-parity-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.drg-fixed30-ht-grid th,.drg-fixed30-ht-grid td,.drg-fixed30-pairs-grid th,.drg-fixed30-pairs-grid td{white-space:nowrap;min-width:140px}
.drg-fixed30-ht-grid thead th,.drg-fixed30-pairs-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.drg-fixed30-pairs-grid thead .drg-sep{min-width:8px;width:8px}
.drg-fixed30-pairs-grid .drg-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
/* kết thúc – Thống kê 30 ngày */

/* bắt đầu – Fixed 60/90 ngày */
.drg-fixed60-ht-scroll,.drg-fixed90-ht-scroll,.drg-fixed60-parity-scroll,.drg-fixed90-parity-scroll,.drg-fixed60-pairs-scroll,.drg-fixed90-pairs-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.drg-fixed60-ht-grid,.drg-fixed90-ht-grid,.drg-fixed60-parity-grid,.drg-fixed90-parity-grid,.drg-fixed60-pairs-grid,.drg-fixed90-pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.drg-fixed60-ht-grid th,.drg-fixed60-ht-grid td,.drg-fixed90-ht-grid th,.drg-fixed90-ht-grid td,.drg-fixed60-parity-grid th,.drg-fixed60-parity-grid td,.drg-fixed90-parity-grid th,.drg-fixed90-parity-grid td,.drg-fixed60-pairs-grid th,.drg-fixed60-pairs-grid td,.drg-fixed90-pairs-grid th,.drg-fixed90-pairs-grid td{white-space:nowrap;min-width:140px}
.drg-fixed60-ht-grid thead th,.drg-fixed60-pairs-grid thead th,.drg-fixed60-parity-grid thead th,.drg-fixed90-ht-grid thead th,.drg-fixed90-pairs-grid thead th,.drg-fixed90-parity-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.drg-fixed60-pairs-grid thead .drg60-sep{min-width:8px;width:8px}
.drg-fixed60-pairs-grid .drg60-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}

/* caret & popup – lo-roi */
.tk_xsmb_loto_lo-roi .lr-sortable{background:#fff;z-index:2}
.tk_xsmb_loto_lo-roi .lr-head-arrow{display:inline-block;width:0;height:0;margin-left:6px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #bbb}
.tk_xsmb_loto_lo-roi .lr-sortable.asc .lr-head-arrow{border-bottom:7px solid #555;border-top-color:transparent}
.tk_xsmb_loto_lo-roi .lr-sortable.desc .lr-head-arrow{border-top:7px solid #555;border-bottom-color:transparent}
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-bottom-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-bottom-grid tbody td{white-space:nowrap}
.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-bottom-grid th,.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-bottom-grid td{border:1px solid #e6e6e6;padding:6px;text-align:center;vertical-align:middle;background:#fff}
.tk_xsmb_loto_lo-roi-bottom-grid .hl2{background:#ffe082;border-radius:4px;padding:0 2px;font-weight:700}
.tk_xsmb_loto_lo-roi .lr-pop-next{cursor:pointer;color:#1976d2}
.tk_xsmb_loto_lo-roi .lr-pop-next:hover{text-decoration:underline}

.tk_xsmb_loto_lo-roi .lr-modal{position:fixed;left:0;top:0;width:100%;height:100%;z-index:1000}
.tk_xsmb_loto_lo-roi .lr-modal-backdrop{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.4)}
.tk_xsmb_loto_lo-roi .lr-modal-content{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.2);padding:12px;min-width:280px;max-width:90%}
.tk_xsmb_loto_lo-roi .lr-modal-close{position:absolute;right:8px;top:6px;border:none;background:#eee;border-radius:50%;width:24px;height:24px;cursor:pointer}
.tk_xsmb_loto_lo-roi .lr-modal-body{max-height:70vh;overflow:auto}
.drg-fixed90-pairs-grid thead .drg90-sep{min-width:8px;width:8px}
.drg-fixed90-pairs-grid .drg90-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
/* kết thúc – Fixed 60/90 ngày */

/* bắt đầu – Loto 60/90 ngày */
.dlf-fixed60-ht-scroll,.dlf-fixed90-ht-scroll,.dlf-fixed60-parity-scroll,.dlf-fixed90-parity-scroll,.dlf-fixed60-pairs-scroll,.dlf-fixed90-pairs-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.dlf-fixed60-ht-grid,.dlf-fixed90-ht-grid,.dlf-fixed60-parity-grid,.dlf-fixed90-parity-grid,.dlf-fixed60-pairs-grid,.dlf-fixed90-pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dlf-fixed60-ht-grid th,.dlf-fixed60-ht-grid td,.dlf-fixed90-ht-grid th,.dlf-fixed90-ht-grid td,.dlf-fixed60-parity-grid th,.dlf-fixed60-parity-grid td,.dlf-fixed90-parity-grid th,.dlf-fixed90-parity-grid td,.dlf-fixed60-pairs-grid th,.dlf-fixed60-pairs-grid td,.dlf-fixed90-pairs-grid th,.dlf-fixed90-pairs-grid td{white-space:nowrap;min-width:140px}
.dlf-fixed60-ht-grid thead th,.dlf-fixed90-ht-grid thead th,.dlf-fixed60-parity-grid thead th,.dlf-fixed90-parity-grid thead th,.dlf-fixed60-pairs-grid thead th,.dlf-fixed90-pairs-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dlf-fixed60-pairs-grid thead .dlf60-sep{min-width:8px;width:8px}
.dlf-fixed60-pairs-grid .dlf60-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
.dlf-fixed90-pairs-grid thead .dlf90-sep{min-width:8px;width:8px}
.dlf-fixed90-pairs-grid .dlf90-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
/* kết thúc – Loto 60/90 ngày */

/* bắt đầu – Fixed 100 ngày */
.drg-fixed100-ht-scroll,.drg-fixed100-parity-scroll,.drg-fixed100-pairs-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.drg-fixed100-ht-grid,.drg-fixed100-parity-grid,.drg-fixed100-pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.drg-fixed100-ht-grid th,.drg-fixed100-ht-grid td,.drg-fixed100-parity-grid th,.drg-fixed100-parity-grid td,.drg-fixed100-pairs-grid th,.drg-fixed100-pairs-grid td{white-space:nowrap;min-width:140px}
.drg-fixed100-ht-grid thead th,.drg-fixed100-parity-grid thead th,.drg-fixed100-pairs-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.drg-fixed100-pairs-grid thead .drg100-sep{min-width:8px;width:8px}
.drg-fixed100-pairs-grid .drg100-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
/* kết thúc – Fixed 100 ngày */

/* bắt đầu – Loto 100 ngày */
.dlf-fixed100-ht-scroll,.dlf-fixed100-parity-scroll,.dlf-fixed100-pairs-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:60vh;display:block}
.dlf-fixed100-ht-grid,.dlf-fixed100-parity-grid,.dlf-fixed100-pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dlf-fixed100-ht-grid th,.dlf-fixed100-ht-grid td,.dlf-fixed100-parity-grid th,.dlf-fixed100-parity-grid td,.dlf-fixed100-pairs-grid th,.dlf-fixed100-pairs-grid td{white-space:nowrap;min-width:140px}
.dlf-fixed100-ht-grid thead th,.dlf-fixed100-parity-grid thead th,.dlf-fixed100-pairs-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dlf-fixed100-pairs-grid thead .dlf100-sep{min-width:8px;width:8px}
.dlf-fixed100-pairs-grid .dlf100-sep{background:#fff;border-left:2px solid #999;border-right:2px solid #999}
/* kết thúc – Loto 100 ngày */


/* bắt đầu – Lưới ngày đầu/đuôi đặc biệt */
.dht-daily-head-scroll,.dht-daily-tail-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.dht-daily-head-grid,.dht-daily-tail-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dht-daily-head-grid th,.dht-daily-head-grid td,.dht-daily-tail-grid th,.dht-daily-tail-grid td{white-space:nowrap;min-width:120px}
.dht-daily-head-grid thead th,.dht-daily-tail-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.dht-day-label{position:sticky;left:0;background:#fff;z-index:1}
.dht-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:4;overflow:hidden}
.dht-diagonal::after{content:"";position:absolute;top:0;left:0;width:140%;height:1px;background:#bdbdbd;transform:rotate(-45deg);transform-origin:left top}
.dht-weekend-row .dby-cell{background:#e8f5e9}
.dht-daily-head-grid tfoot tr,.dht-daily-tail-grid tfoot tr{position:sticky;bottom:0;background:#fff;z-index:3}
.dht-daily-head-summary,.dht-daily-tail-summary{padding:6px 8px}
.dht-sum-item{margin-right:12px}
/* kết thúc – Lưới ngày đầu/đuôi đặc biệt */
/* bắt đầu – Tỷ lệ tổng hôm sau */
.dtr-trans-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:50vh;display:block}
.dtr-trans-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dtr-trans-grid th,.dtr-trans-grid td{white-space:nowrap;min-width:120px}
.dtr-trans-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
/* kết thúc – Tỷ lệ tổng hôm sau */

/* bắt đầu – Chẵn/Lẻ hôm sau */
.dtr-parity-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:40vh;display:block}
.dtr-parity-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dtr-parity-grid th,.dtr-parity-grid td{white-space:nowrap;min-width:160px}
.dtr-parity-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
/* kết thúc – Chẵn/Lẻ hôm sau */
/* bắt đầu – Thống kê tổng chưa về */
.dtr-gan-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:50vh;display:block}
.dtr-gan-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.dtr-gan-grid th,.dtr-gan-grid td{white-space:nowrap;min-width:160px}
.dtr-gan-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
/* kết thúc – Thống kê tổng chưa về */


//* bắt đầu – Thống kê tần suất loto (tk_xsmb_freq_loto) */
.tk_xsmb_freq_loto .tk_xsmb_freq_loto-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.tk_xsmb_freq_loto .tk_xsmb_freq_loto-meta{margin-bottom:6px}
.tk_xsmb_freq_loto-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.tk_xsmb_freq_loto-list-scroll{overflow-x:auto;overflow-y:visible;width:100%;max-width:100%;display:none}
.tk_xsmb_freq_loto-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto-grid th,.tk_xsmb_freq_loto-grid td{white-space:nowrap;min-width:90px;border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.tk_xsmb_freq_loto-grid .tk_xsmb_freq_loto-day-label{position:sticky;left:0;background:#fff;z-index:1}
.tk_xsmb_freq_loto-grid .tk_xsmb_freq_loto-dia{position:sticky;top:0;left:0;background:#fff;z-index:4}
.tk_xsmb_freq_loto-list{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto-list th,.tk_xsmb_freq_loto-list td{white-space:nowrap;min-width:140px;border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto-list thead th{position:sticky;top:0;background:#fff;z-index:2}
.tk_xsmb_freq_loto-statistic-scroll{overflow-x:auto}
.tk_xsmb_freq_loto-statistic-table{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto-statistic-table th,.tk_xsmb_freq_loto-statistic-table td{white-space:nowrap;min-width:90px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto-statistic .btn-tslt{display:inline-block;margin:0 4px;padding:4px 8px;background:#f5f5f5;border:1px solid #ddd;border-radius:4px;cursor:pointer}
.tk_xsmb_freq_loto-statistic .btn-tslt.active{background:#ffe082}
.tk_xsmb_freq_loto-statistic .btn-tk{display:inline-block;padding:2px 6px;background:#e0f7fa;border:1px solid #b2ebf2;border-radius:4px;cursor:pointer}
/* kết thúc – Thống kê tần suất loto (tk_xsmb_freq_loto) */
/* bắt đầu – Top10/Bottom10/Doubles tần suất loto (tk_xsmb_freq_loto) */
.tk_xsmb_freq_loto-top10-title,.tk_xsmb_freq_loto-bottom10-title,.tk_xsmb_freq_loto-doubles-title{font-size:18px;margin:8px 0;color:#1976d2;text-transform:uppercase}
.tk_xsmb_freq_loto-top10-table,.tk_xsmb_freq_loto-bottom10-table,.tk_xsmb_freq_loto-doubles-table{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto-top10-table th,.tk_xsmb_freq_loto-top10-table td,.tk_xsmb_freq_loto-bottom10-table th,.tk_xsmb_freq_loto-bottom10-table td,.tk_xsmb_freq_loto-doubles-table th,.tk_xsmb_freq_loto-doubles-table td{white-space:nowrap;min-width:140px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto-top10-head,.tk_xsmb_freq_loto-bottom10-head,.tk_xsmb_freq_loto-doubles-head{background:#d9d9d9}
.tk_xsmb_freq_loto-top10-subhead,.tk_xsmb_freq_loto-bottom10-subhead,.tk_xsmb_freq_loto-doubles-subhead{background:#f2f2f2}
.tk_xsmb_freq_loto-emph{color:#e60000;font-weight:700}
.tk_xsmb_freq_loto-top10,.tk_xsmb_freq_loto-bottom10,.tk_xsmb_freq_loto-doubles{display:block;margin-top:12px}
/* kết thúc – Top10/Bottom10/Doubles tần suất loto (tk_xsmb_freq_loto) */
/* daily grid */
.tk_xsmb_freq_loto-daily-scroll{overflow:auto;position:relative;width:100%;max-height:70vh;display:block}
.tk_xsmb_freq_loto-daily-grid{border-collapse:collapse;width:max-content;min-width:100%;table-layout:fixed}
.tk_xsmb_freq_loto-daily-grid th,.tk_xsmb_freq_loto-daily-grid td{white-space:nowrap;min-width:80px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto-daily-grid thead th.tslt-day{min-width:40px}
.tslt-day-vertical{display:inline-block;line-height:1;text-align:center}
.tk_xsmb_freq_loto-daily-help{display:flex;align-items:center;gap:12px;margin:8px 0}
.tk_xsmb_freq_loto-daily-help-text{flex:1;color:#333}
.tk_xsmb_freq_loto-daily-help-control select{padding:4px 8px}
.tk_xsmb_freq_loto-daily-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_freq_loto-daily-grid thead th:first-child{position:sticky;left:0;top:0;z-index:100;background:#fff}
.tk_xsmb_freq_loto-daily-grid thead th:last-child{position:sticky;right:0;top:0;z-index:100;background:#fff}
.tk_xsmb_freq_loto-daily-headcol{position:sticky;left:0;top:0;background:#fff;z-index:70}
.tk_xsmb_freq_loto-daily-totalcol{position:sticky;right:0;top:0;background:#fff;z-index:70}
.tk_xsmb_freq_loto-daily-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_freq_loto-daily-grid tbody td:last-child{position:sticky;right:0;background:#fff;z-index:50}
.tk_xsmb_freq_loto-daily-cell-gdb{color:#e60000;font-weight:700}
/* aliases for db-tan-suat-loto */
.db-tslt-scroll{overflow:auto;position:relative;width:100%;max-height:70vh;display:block}
.db-tslt-grid{border-collapse:collapse;width:max-content;min-width:100%;table-layout:fixed}
.db-tslt-grid th,.db-tslt-grid td{white-space:nowrap;min-width:80px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.db-tslt-grid thead th.tslt-day{min-width:40px}
.db-tslt-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.db-tslt-grid thead th:first-child{position:sticky;left:0;top:0;z-index:100;background:#fff}
.db-tslt-grid thead th:last-child{position:sticky;right:0;top:0;z-index:100;background:#fff}
.db-tslt-headcol{position:sticky;left:0;top:0;background:#fff;z-index:70}
.db-tslt-totalcol{position:sticky;right:0;top:0;background:#fff;z-index:70}
.db-tslt-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.db-tslt-grid tbody td:last-child{position:sticky;right:0;background:#fff;z-index:50}
.db-tslt-cell-gdb{color:#e60000;font-weight:700}
/* popup */
.tk_xsmb_freq_loto-popup{position:fixed;left:0;top:0;width:100%;height:100%;display:none;z-index:9999}
.tk_xsmb_freq_loto-popup-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.4)}
.tk_xsmb_freq_loto-popup-content{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:16px;border:1px solid #ddd;width:400px;max-height:80%;overflow:auto}
.tk_xsmb_freq_loto-popup-title{font-weight:700;margin-bottom:8px}
.tk_xsmb_freq_loto-popup-close{margin-top:8px;padding:6px 10px}
.tk_xsmb_freq_loto-popup .site_link{margin:6px 0;font-size:14px}
.tk_xsmb_freq_loto-popup .site_link a{color:#1976d2;text-decoration:none;margin-right:4px}
.tk_xsmb_freq_loto-popup .tk_xsmb_freq_loto-summary{margin:8px 0;font-size:14px}
.tk_xsmb_freq_loto-popup .table_boxketqua{border-collapse:collapse;width:100%}
.tk_xsmb_freq_loto-popup .table_boxketqua td{border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto-popup .giaiSo{display:inline-block;padding:4px 8px;border-radius:4px;margin:2px;font-weight:600}
/* kết thúc – Top10/Bottom10/Doubles tần suất loto (tk_xsmb_freq_loto) */

/* tk_xsmb_freq_loto_pairs styles */
.tk_xsmb_freq_loto_pairs .tk_xsmb_freq_loto_pairs-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.tk_xsmb_freq_loto_pairs .tk_xsmb_freq_loto_pairs-meta{margin-bottom:6px}
.tk_xsmb_freq_loto_pairs-grid-scroll{overflow-x:auto;overflow-y:auto;width:100%;max-height:70vh;display:block}
.tk_xsmb_freq_loto_pairs-list-scroll{overflow-x:auto;overflow-y:visible;width:100%;max-width:100%;display:none}
.tk_xsmb_freq_loto_pairs-grid{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto_pairs-grid th,.tk_xsmb_freq_loto_pairs-grid td{white-space:nowrap;min-width:90px;border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto_pairs-grid thead th{position:sticky;top:0;background:#fff;z-index:2}
.tk_xsmb_freq_loto_pairs-grid .tk_xsmb_freq_loto_pairs-day-label{position:sticky;left:0;background:#fff;z-index:1}
.tk_xsmb_freq_loto_pairs-grid .tk_xsmb_freq_loto_pairs-dia{position:sticky;top:0;left:0;background:#fff;z-index:4}
.tk_xsmb_freq_loto_pairs-list{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto_pairs-list th,.tk_xsmb_freq_loto_pairs-list td{white-space:nowrap;min-width:140px;border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto_pairs-list thead th{position:sticky;top:0;background:#fff;z-index:2}
.tk_xsmb_freq_loto_pairs-statistic-scroll{overflow-x:auto}
.tk_xsmb_freq_loto_pairs-statistic-table{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto_pairs-statistic-table th,.tk_xsmb_freq_loto_pairs-statistic-table td{white-space:nowrap;min-width:90px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto_pairs-emph{color:#e60000;font-weight:700}
.tk_xsmb_freq_loto_pairs-top10,.tk_xsmb_freq_loto_pairs-bottom10,.tk_xsmb_freq_loto_pairs-doubles{display:block;margin-top:12px}
.tk_xsmb_freq_loto_pairs-top10-title,.tk_xsmb_freq_loto_pairs-bottom10-title,.tk_xsmb_freq_loto_pairs-doubles-title{font-size:18px;margin:8px 0;color:#1976d2;text-transform:uppercase}
.tk_xsmb_freq_loto_pairs-top10-table,.tk_xsmb_freq_loto_pairs-bottom10-table,.tk_xsmb_freq_loto_pairs-doubles-table{border-collapse:collapse;width:max-content;min-width:100%;display:block}
.tk_xsmb_freq_loto_pairs-top10-table th,.tk_xsmb_freq_loto_pairs-top10-table td,.tk_xsmb_freq_loto_pairs-bottom10-table th,.tk_xsmb_freq_loto_pairs-bottom10-table td,.tk_xsmb_freq_loto_pairs-doubles-table th,.tk_xsmb_freq_loto_pairs-doubles-table td{white-space:nowrap;min-width:140px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto_pairs-top10-head,.tk_xsmb_freq_loto_pairs-bottom10-head,.tk_xsmb_freq_loto_pairs-doubles-head{background:#d9d9d9}
.tk_xsmb_freq_loto_pairs-top10-subhead,.tk_xsmb_freq_loto_pairs-bottom10-subhead,.tk_xsmb_freq_loto_pairs-doubles-subhead{background:#f2f2f2}
.tk_xsmb_freq_loto_pairs-daily-scroll{overflow:auto;position:relative;width:100%;max-height:70vh;display:block}
.tk_xsmb_freq_loto_pairs-daily-grid{border-collapse:collapse;width:max-content;min-width:100%;table-layout:fixed}
.tk_xsmb_freq_loto_pairs-daily-grid th,.tk_xsmb_freq_loto_pairs-daily-grid td{white-space:nowrap;min-width:80px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_freq_loto_pairs-daily-grid thead th.tslt-day{min-width:40px}
.tk_xsmb_freq_loto_pairs-daily-help{display:flex;align-items:center;gap:12px;margin:8px 0}
.tk_xsmb_freq_loto_pairs-daily-help-text{flex:1;color:#333}
.tk_xsmb_freq_loto_pairs-daily-help-control select{padding:4px 8px}
.tk_xsmb_freq_loto_pairs-daily-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_freq_loto_pairs-daily-grid thead th:first-child{position:sticky;left:0;top:0;z-index:100;background:#fff}
.tk_xsmb_freq_loto_pairs-daily-grid thead th:last-child{position:sticky;right:0;top:0;z-index:100;background:#fff}
.tk_xsmb_freq_loto_pairs-daily-headcol{position:sticky;left:0;top:0;background:#fff;z-index:70}
.tk_xsmb_freq_loto_pairs-daily-totalcol{position:sticky;right:0;top:0;background:#fff;z-index:70}
.tk_xsmb_freq_loto_pairs-daily-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_freq_loto_pairs-daily-grid tbody td:last-child{position:sticky;right:0;top:0;background:#fff;z-index:50}
.tk_xsmb_freq_loto_pairs-daily-cell-gdb{color:#e60000;font-weight:700}

/* popup – tk_xsmb_freq_loto_pairs */
.tk_xsmb_freq_loto_pairs-popup{position:fixed;left:0;top:0;width:100%;height:100%;display:none;z-index:9999}
.tk_xsmb_freq_loto_pairs-popup-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.4)}
.tk_xsmb_freq_loto_pairs-popup-content{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:16px;border:1px solid #ddd;width:400px;max-height:80%;overflow:auto}
.tk_xsmb_freq_loto_pairs-popup-title{font-weight:700;margin-bottom:8px}
.tk_xsmb_freq_loto_pairs-popup-close{margin-top:8px;padding:6px 10px}
.tk_xsmb_freq_loto_pairs-popup .site_link{margin:6px 0;font-size:14px}
.tk_xsmb_freq_loto_pairs-popup .site_link a{color:#1976d2;text-decoration:none;margin-right:4px}
.tk_xsmb_freq_loto_pairs-popup .tk_xsmb_freq_loto_pairs-summary{margin:8px 0;font-size:14px}
.tk_xsmb_freq_loto_pairs-popup .table-kqxs{border-collapse:collapse;width:100%}
.tk_xsmb_freq_loto_pairs-popup .table-kqxs td{border:1px solid #e6e6e6;padding:6px}
.tk_xsmb_freq_loto_pairs-popup .giaiSo{display:inline-block;padding:4px 8px;border-radius:4px;margin:2px;font-weight:600}





/* kết thúc – Thống kê tần suất loto */



/* ====================== */
/* MEDIA QUERIES – RESPONSIVE */
/* ====================== */
@media (max-width: 520px) {
    #boxketqua2_container,
    .content,
    .box_kqxs,
    .boxkq-pagination {
        width: 100%;
    }

    .table_boxketqua td:first-child {
        width: 100px;
        font-size: 13px;
        padding: 5px;
    }

    .table_boxketqua td {
        font-size: 12px;
        padding: 4px 2px;
    }

    .giaiSo {
        font-size: 16px;
        padding: 2px 3px;
        min-width: 30px;
    }

    .row-values.two-lines {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .boxkq-pagination {
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
    }

    .boxkq-pagination .btn-nav-pagination,
    #boxketqua2_datepicker {
        flex: 1 1 45%;
        min-width: 60px;
    }

    .box_kqxs h1 {
        font-size: 18px;
    }

    .site_link {
        font-size: 11px;
    }
  
  
  .giai3 .giaiSo
{
  padding: 0 20px;
}

.giai5 .giaiSo
{
  padding: 0 20px;
}

.giai6 .giaiSo
{
  padding: 0 20px;
}

.giai7 .giaiSo {
padding: 0 13px;
}

.giai4 .giaiSo {
    padding: 0 35px;
}
 
  
}



/* MEDIA QUERIES – RESPONSIVE */
@media screen and (max-width: 423px) {
  
  
.giai7 .giaiSo {
padding: 0 6px;
}
  
    .giai3 .giaiSo
{
  padding: 0 10px;
}
  .giai5 .giaiSo
{
  padding: 0 10px;
}
  
  
}
.tk_xsmb_loto_hdt .tk_xsmb_loto_hdt-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.tk_xsmb_loto_hdt .tk_xsmb_loto_hdt-meta{margin-bottom:6px}
.tk_xsmb_loto_hdt-head-scroll,.tk_xsmb_loto_hdt-tail-scroll,.tk_xsmb_loto_hdt-sum-scroll{overflow:auto;width:100%;max-height:70vh}
.tk_xsmb_loto_hdt-head-grid,.tk_xsmb_loto_hdt-tail-grid,.tk_xsmb_loto_hdt-sum-grid{border-collapse:collapse;width:max-content;min-width:100%;table-layout:fixed}
.tk_xsmb_loto_hdt-head-grid th,.tk_xsmb_loto_hdt-tail-grid th,.tk_xsmb_loto_hdt-sum-grid th,.tk_xsmb_loto_hdt-head-grid td,.tk_xsmb_loto_hdt-tail-grid td,.tk_xsmb_loto_hdt-sum-grid td{white-space:nowrap;min-width:80px;border:1px solid #e6e6e6;padding:6px;text-align:center}
.tk_xsmb_loto_hdt-head-grid thead th,.tk_xsmb_loto_hdt-tail-grid thead th,.tk_xsmb_loto_hdt-sum-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_loto_hdt-head-grid tbody td:first-child,.tk_xsmb_loto_hdt-tail-grid tbody td:first-child,.tk_xsmb_loto_hdt-sum-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_loto_hdt-head-grid tfoot tr,.tk_xsmb_loto_hdt-tail-grid tfoot tr,.tk_xsmb_loto_hdt-sum-grid tfoot tr{position:sticky;bottom:0;background:#fff;z-index:55}
.tk_xsmb_loto_hdt-head-grid tfoot tr td:first-child,.tk_xsmb_loto_hdt-tail-grid tfoot tr td:first-child,.tk_xsmb_loto_hdt-sum-grid tfoot tr td:first-child{position:sticky;left:0;z-index:65;background:#fff}
.lht-diagonal{position:sticky;top:0;left:0;background:#fff;z-index:100}
.lht-diagonal .lht-dia-left{float:left}
.lht-diagonal .lht-dia-right{float:right}
.lightBlue{background:#e8f4ff}
.lht-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:8px 0}
.lht-summary-item{padding:6px 8px;border:1px solid #e6e6e6;background:#fff;text-align:center}
.lht-summary-item .lht-label{color:#333;font-weight:700;margin-right:6px}
.lht-summary-item .lht-count{color:#e60000;font-weight:700}
.tk_xsmb_quick_stat-scroll{overflow:auto;max-height:70vh}
.tk_xsmb_quick_stat-grid{border-collapse:collapse;width:max-content;min-width:100%}
.tk_xsmb_quick_stat-grid th,.tk_xsmb_quick_stat-grid td{white-space:nowrap;min-width:160px;border:1px solid #e6e6e6;padding:6px;text-align:center;background:#fff}
.tk_xsmb_quick_stat-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_quick_stat-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_quick_stat-grid .qs-sticky{position:sticky;left:0;z-index:70;background:#fff}
.qs-bar{display:flex;gap:12px;align-items:center;margin:8px 0;flex-wrap:wrap}
.qs-days .qs-day,.qs-sort .qs-sort-btn{padding:6px 10px;border:1px solid #ddd;background:#fff;cursor:pointer}
.qs-days .qs-day:hover,.qs-sort .qs-sort-btn:hover{background:#f5f5f5}
.tk_xsmb_loto_gan-scroll{overflow-y:auto;overflow-x:hidden;width:100%;max-height:70vh}
.tk_xsmb_loto_gan-grid{border-collapse:collapse;width:100%;table-layout:fixed}
.tk_xsmb_loto_gan-grid th,.tk_xsmb_loto_gan-grid td{white-space:nowrap;min-width:160px;border:1px solid #e6e6e6;padding:6px;text-align:center;background:#fff}
.tk_xsmb_loto_gan-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_loto_gan-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_loto_gan-grid .lg-sticky{position:sticky;left:0;z-index:70;background:#fff}
.tk_xsmb_loto_gan-grid thead th.lg-sortable{position:relative;cursor:pointer;padding-right:24px}
.tk_xsmb_loto_gan-grid thead th .lg-head-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #999}
.tk_xsmb_loto_gan-grid thead th.lg-sortable.asc .lg-head-arrow{border-left-color:transparent;border-right-color:transparent;border-bottom:none;border-top:8px solid #1976d2}
.tk_xsmb_loto_gan-grid thead th.lg-sortable.desc .lg-head-arrow{border-left-color:transparent;border-right-color:transparent;border-top:none;border-bottom:8px solid #1976d2}
.tk_xsmb_loto_gan-top{margin-top:16px}
.tk_xsmb_loto_gan-top-title{margin:0 0 8px}
.tk_xsmb_loto_gan-top-scroll{overflow-y:auto;overflow-x:hidden;width:100%;max-height:50vh}
.tk_xsmb_loto_gan-top-grid{border-collapse:collapse;width:100%;table-layout:fixed}
.tk_xsmb_loto_gan-top-grid th,.tk_xsmb_loto_gan-top-grid td{white-space:nowrap;min-width:160px;border:1px solid #e6e6e6;padding:6px;text-align:center;background:#fff}
.tk_xsmb_loto_gan-top-grid thead th.lg-top-sortable{position:relative;cursor:pointer;padding-right:24px}
.tk_xsmb_loto_gan-top-grid thead th .lg-head-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #999}
.tk_xsmb_loto_gan-top-grid thead th.lg-top-sortable.asc .lg-head-arrow{border-left-color:transparent;border-right-color:transparent;border-bottom:none;border-top:8px solid #1976d2}
.tk_xsmb_loto_gan-top-grid thead th.lg-top-sortable.desc .lg-head-arrow{border-left-color:transparent;border-right-color:transparent;border-top:none;border-bottom:8px solid #1976d2}
.lg-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.lg-days .lg-day{padding:6px 10px;border:1px solid #ddd;background:#fff;cursor:pointer}
.lg-days .lg-day:hover{background:#f5f5f5}
.lg-sort{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}
.lg-sort .lg-sort-btn{padding:6px 10px;border:1px solid #ddd;background:#fff;cursor:pointer}
.lg-sort .lg-sort-btn:hover{background:#f5f5f5}
.tk_xsmb_loto_gan-top-gdb{margin-top:16px}
.tk_xsmb_loto_gan-top-gdb-scroll{overflow-y:auto;overflow-x:hidden;width:100%;max-height:50vh}
.tk_xsmb_loto_gan-top-gdb-grid{border-collapse:collapse;width:100%;table-layout:fixed}
.tk_xsmb_loto_gan-top-gdb-grid th,.tk_xsmb_loto_gan-top-gdb-grid td{white-space:nowrap;min-width:160px;border:1px solid #e6e6e6;padding:6px;text-align:center;background:#fff}
.tk_xsmb_loto_gan-top-gdb-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_loto_gan-top-gdb-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_loto_gan-top-gdb-grid thead th.lg-gdb-sortable{position:relative;cursor:pointer;padding-right:24px}
.tk_xsmb_loto_gan-top-gdb-grid thead th .lg-head-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #999}
.tk_xsmb_loto_gan-top-gdb-grid thead th.lg-gdb-sortable.asc .lg-head-arrow{border-top:8px solid #1976d2;border-bottom:none}
.tk_xsmb_loto_gan-top-gdb-grid thead th.lg-gdb-sortable.desc .lg-head-arrow{border-bottom:8px solid #1976d2;border-top:none}
.tk_xsmb_loto_lo-roi .lr-title{margin:8px 0}
.lr-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.lr-days .lr-day{padding:6px 10px;border:1px solid #ddd;background:#fff;cursor:pointer}
.lr-days .lr-day:hover{background:#f5f5f5}
.tk_xsmb_loto_lo-roi-scroll{overflow-y:auto;overflow-x:hidden;width:100%;max-height:50vh}
.tk_xsmb_loto_lo-roi-grid{border-collapse:collapse;width:100%;table-layout:fixed}
.tk_xsmb_loto_lo-roi-grid th,.tk_xsmb_loto_lo-roi-grid td{white-space:nowrap;min-width:160px;border:1px solid #e6e6e6;padding:6px;text-align:center;background:#fff}
.tk_xsmb_loto_lo-roi-grid thead th{position:sticky;top:0;background:#fff;z-index:60}
.tk_xsmb_loto_lo-roi-grid tbody td:first-child{position:sticky;left:0;background:#fff;z-index:50}
.tk_xsmb_loto_lo-roi-grid thead th.lr-sortable{position:relative;cursor:pointer;padding-right:24px}
.tk_xsmb_loto_lo-roi-grid thead th .lr-head-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #999}
.tk_xsmb_loto_lo-roi-grid thead th.lr-sortable.asc .lr-head-arrow{border-top:8px solid #1976d2;border-bottom:none}
.tk_xsmb_loto_lo-roi-grid thead th.lr-sortable.desc .lr-head-arrow{border-bottom:8px solid #1976d2;border-top:none}
.tk_xsmb_loto_lo-roi-bottom-grid thead th.lr-sortable{position:relative;cursor:pointer;padding-right:24px}
.tk_xsmb_loto_lo-roi-bottom-grid thead th .lr-head-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #999}
.tk_xsmb_loto_lo-roi-bottom-grid thead th.lr-sortable.asc .lr-head-arrow{border-top:8px solid #1976d2;border-bottom:none}
.tk_xsmb_loto_lo-roi-bottom-grid thead th.lr-sortable.desc .lr-head-arrow{border-bottom:8px solid #1976d2;border-top:none}
.tk_xsmb_loto_lo-roi .lr-summary { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.tk_xsmb_loto_lo-roi .lr-summary th, .tk_xsmb_loto_lo-roi .lr-summary td { border: 1px solid #d1d5db; padding: 6px 8px; text-align: left; }
.tk_xsmb_loto_lo-roi .lr-summary thead th { background: #f9fafb; font-weight: 600; }
