/* =====bắt đầu tên file assets/css/devexx.css ===== */
:root {
    --color-primary: #cf1518;
    --color-primary-hover: #870d0f;
    --color-secondary: #ffd23d;
    --color-secondary-hover: #9c7801;
    --color-accent: #7C4DFF;
    --color-bg: #FFFFFF;
    --color-bg-soft: #F8FAFC;
    --color-border: #E5E7EB;
    --color-text: #000000;
    --color-text-muted: #6B7280;
    --color-success: #2E7D32;
    --color-warning: #FBC02D;
    --color-error: #D32F2F;
    --color-info: #0288D1
    --tk-bg-light: #fafafa;
    --tk-bg-white: #fff;
    --tk-border-color: #ddd;
    --tk-border-dark: #333;
    --tk-text-color: #081e30;
    --tk-text-muted: #460101;
    --tk-primary-color: #cf1518;
    --tk-secondary-color: #ffd23d;
    --tk-shadow-color: rgba(0,0,0,.04);
    --tk-header-bg: #f9f9f9;
}




h1,h2,h3,h4,h5,h6 {
  color: var(--color-primary) !important;
}

a.plain {
    color: var(--color-primary);
    transition: color .3s, opacity .3s, transform .3s;
   background-color: var(--color-secondary);
}

.is-outline:hover {
    background-color: var(--color-primary-hover);
    border-color: var( --color-secondary);
    color: #fff;
}

/* ===== CONTAINER CHUNG ===== */
.xsmb-boxketqua2,
.boxketqua2_container,
.boxketqua2_pagination,
.content,
.box_kqxs,
.boxkq-pagination {
    width: 100%;
    max-width: 520px;
    margin: 5px auto;
    box-sizing: border-box;
    list-style: none;
}

.xsmb-gdb-charts-container {
    width: 100%;
    max-width: 520px;
    margin: 10px auto 24px;
    padding: 10px;
    box-sizing: border-box;
    background-color: var(--color-bg-soft);
}

/* ===== HEADER ===== */
.xsmb-gdb-charts-header {
    display: flex;
    align-items: flex-start;      /* an toàn hơn baseline */
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
    width: 100%;
}

/* ===== TITLE ===== */
.xsmb-gdb-charts-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;

    /* QUAN TRỌNG khi dùng flex */
    flex: 1;
    min-width: 0;

    /* chống tràn chữ */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===== LINK ===== */
.xsmb-gdb-charts-link {
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0; /* không cho bị co */
}

/* ===== SCROLL WRAPPER ===== */
.xsmb-gdb-charts-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ===== ROW ===== */
.xsmb-gdb-charts-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    padding-bottom: 8px;
}

/* ===== ITEM ===== */
.xsmb-gdb-charts-row .gdb-special-charts-wrapper {
    width: auto;
    margin: 0;
}

.xsmb-gdb-charts-row .gdb-charts-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
}

.xsmb-gdb-charts-row .gdb-chart-item {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .xsmb-gdb-charts-row .gdb-chart-item {
        flex: 0 0 85vw;
        width: 85vw;
    }

    .xsmb-gdb-charts-title {
        font-size: 16px;
    }

    .xsmb-gdb-charts-link {
        font-size: 13px;
    }
}

.xsmb-loto-charts-container {
    width: 100%;
    max-width: 520px;
    margin: 10px auto;
    box-sizing: border-box;
    padding: 10px;
        background-color: var(--color-bg-soft);
}

/* ===== HEADER ===== */
.xsmb-loto-charts-header {
    display: flex;
    align-items: flex-start;   /* an toàn hơn baseline */
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
    width: 100%;
}

/* ===== TITLE ===== */
.xsmb-loto-charts-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;

    flex: 1;          /* chiếm phần còn lại */
    min-width: 0;     /* QUAN TRỌNG khi dùng flex */

    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===== LINK ===== */
.xsmb-loto-charts-link {
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;   /* không cho bị co */
}

/* ===== SCROLL WRAPPER ===== */
.xsmb-loto-charts-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ===== ROW ===== */
.xsmb-loto-charts-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    padding-bottom: 8px;
}

/* ===== GRID ===== */
.xsmb-loto-charts-row .loto-special-charts-wrapper {
    width: auto;
    margin: 0;
}

.xsmb-loto-charts-row .loto-charts-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
}

/* ===== ITEM ===== */
.xsmb-loto-charts-row .loto-chart-item {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .xsmb-loto-charts-row .loto-chart-item {
        flex: 0 0 85vw;
        width: 85vw;
    }

    .xsmb-loto-charts-title {
        font-size: 16px;
    }

    .xsmb-loto-charts-link {
        font-size: 13px;
    }
}

/* ===== UTILS BAR BOX ===== */
.xsmb-utils-bar {
    max-width: 520px;
    margin: 20px auto;
    padding: 16px;
    border-radius: 10px;

    background: linear-gradient(135deg, var(--color-bg-soft), #ffffff);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    box-sizing: border-box;
}

/* ===== TITLE TEXT ===== */
.xsmb-utils-bar p {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
}

/* ===== LIST ===== */
.xsmb-utils-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===== ITEM ===== */
.xsmb-utils-list li {
    margin: 0;
}

/* ===== LINK STYLE ===== */
.xsmb-utils-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;

    background-color: var(--color-bg);
    border: 1px solid var(--color-border);

    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;

    transition: all 0.25s ease;
}

/* ===== HOVER EFFECT ===== */
.xsmb-utils-list a:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .xsmb-utils-list {
        grid-template-columns: 1fr;
    }
}


/* Header màu */
.entry-content th,
.post-content th,
.page-content th,
.wp-block-table th,
.content th {
    background: #ff0000;
    color: #222;
    font-weight: 600;
}

/* css cho toàn table */


.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: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.site_link a:hover {
    text-decoration: underline;
}

/* Bắt đầu Css section thu-dai */
.category-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background: var(--color-bg-soft);
    border-radius: 6px;
    justify-content: space-between;
    margin-bottom: 8px;

}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-bar .item {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 5px;
    padding: 2px 10px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    white-space: nowrap;
    font-size: 12px;
    text-decoration: none;
    margin: 5px;
}


/* Hover */
.category-bar .item:hover {
    background: var(--color-primary-hover);
    color: var(--color-bg);
    border-color: var(--color-primary-hover);
}

/* Active (trang hiện tại) */
.category-bar .item.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

/* Focus outline */
.category-bar .item:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* CSS Section Thứ-Đài */


/* ====================== */
/* BẢNG KẾT QUẢ CHÍNH     */
/* ====================== */
.table_boxketqua {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    font-size: 15px;
    max-width: 520px;
    width: 100%;
    margin-bottom: 0px !important;
    font-weight: bold;

}
.table_boxketqua tr,
.table_boxketqua_bottom tr{
    border: 1px solid var(--color-border);
}

.table_boxketqua td:first-child
{
padding:5px;
vertical-align:middle;
border-bottom: none !important;
border-right: 1px solid var(--color-border);
    width: 30%;
    color: var(    --tk-text-color);


}

.table_boxketqua td:nth-child(2)
{
padding:5px;
vertical-align:middle;
text-align: center;
border-bottom: none !important

}
/* Dòng xen kẽ nền */
.table_boxketqua tr:nth-child(even) {
    background: var(--color-bg-soft);
}

/* ====================== */
/* KIỂU SỐ GIẢI           */
/* ====================== */
.giaiSo {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    background: none;
    padding: 2px 4px;
}

/* Hiệu ứng hover */
.giaiSo:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    border-radius: 5px;
}

/* Giải đặc biệt */
.giaidb .giaiSo {
    color: var(--color-error);
    font-size: 40px;
}

/* Giải nhất */
.giai1 .giaiSo {
    color: var(--color-error);
    font-size: 30px;
}

.ma_db .giaiSo{
    font-size: 15px;
}
/* Giải bảy */
.giai7 .giaiSo {
    color: var(--color-error);
    font-size: 30px;
}

/* ====================== */
/* DÀN SỐ THEO DÒNG GIẢI  */
/* ====================== */

.giai2 ,
.giai3 ,
.giai4 ,
.giai5 ,
.giai6 ,
.giai7{
    
    display: grid;
    display:grid;
text-align:center;
width:100%;
}

.giai2,.giai4 {grid-template-columns:repeat(2,1fr);}
.giai3,.giai5,.giai6{grid-template-columns:repeat(3,1fr);}
.giai7{grid-template-columns:repeat(4,1fr);}
    
    
  .giaiSo img{
    width:25px;
    height:25px;
    object-fit:contain;
}  

.xsmb-countdown {
    display: block;
    min-height: 24px;
    margin: 8px 0 12px 0;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
}


/* ===== Bảng thống kê so sánh (Loto vs GĐB) ===== */
.table-stats-compare {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.table-stats-compare th,
.table-stats-compare td {
    border: 1px solid var(--color-border);
    padding: 8px;
    vertical-align: middle;
}

.table-stats-compare thead th {
    background: var(--color-bg-soft);
    font-weight: bold;
    text-align: center;
    color: var(--color-text);
}

.table-stats-compare .stats-col-title {
    width: 30%;
}

.table-stats-compare .stats-col-data {
    width: 35%;
}

.table-stats-compare tbody td:first-child {
    font-weight: bold;
    background: var(--color-bg-soft);
    color: var(--color-text);
}

.table-stats-compare tbody td:not(:first-child) {
    text-align: left;
    color: var(--color-text);
}

/* Responsive cho bảng thống kê */
@media (max-width: 520px) {
    .table-stats-compare {
        font-size: 12px;
    }

    .table-stats-compare th,
    .table-stats-compare td {
        padding: 4px;
    }
}


/* ===== Bảng Loto (Đầu/Đuôi) ===== */
.table-loto {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
}

.table-loto th,
.table-loto td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Header styling */
.table-loto thead th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 8px;
}

/* Cột số đầu/đuôi (0-9) */
.table-loto tbody th {
    background-color: var(--color-bg-soft);
    font-weight: bold;
    color: var(--color-primary);
    width: 40px;
}

/* Highlight số đặc biệt (đỏ đậm) */
.table-loto span.colorRed {
    color: var(--color-error);
    font-weight: bold;
}

/* Hover effect cho dòng */
.table-loto tbody tr:hover {
    background-color: var(--color-bg-soft);
}

/* Responsive cho bảng loto */
@media (max-width: 480px) {
    .table-loto {
        font-size: 12px;
    }

    .table-loto th,
    .table-loto td {
        padding: 6px 4px;
    }
}

/* Style cho nút Xem thêm Box KQ */
.boxkq-load-more {
    text-align: center;
    margin: 20px 0;
}

.boxkq-load-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #d0021b;
    /* Màu đỏ */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.live-load-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #d0021b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}
.live-load-btn:hover {
    background-color: #a80013;
    color: #fff;
}

.boxkq-load-more-btn:hover {
    background-color: #a80013;
    /* Màu đỏ đậm hơn khi hover */
    color: #fff;
}

.boxkq-load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ====================== */
/* PHÂN TRANG             */
/* ====================== */
.boxkq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-bg-soft);
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--color-border);
    flex-wrap: nowrap;
    padding: 4px;
    overflow-x: auto;
}

.boxkq-pagination .btn-nav-pagination{
    height: 28px;
    line-height: 26px;
    border-radius: 4px;
    background-color: var(--color-bg);
    color: var(--color-text);
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: 12px;
    white-space: nowrap;
}


}

.boxkq-pagination .btn-nav-pagination {
    cursor: pointer;
    transition: all 0.2s ease;
}

.boxkq-pagination .btn-nav-pagination:hover {
    background-color: var(--color-bg-soft);
    border-color: var(--color-border);
    color: var(--color-text);
}

.boxkq-pagination .btn-nav-pagination:active {
    background-color: var(--color-bg-soft);
    transform: scale(0.97);
}





/* =========================

BOX PAGINATION

========================= */



.boxkq-pagination{

display:flex;

align-items:center;

justify-content:space-around;

flex-wrap:nowrap;

margin-bottom: 8px !important;

}





.boxkq-pagination input{

    text-align:center;

    font-size:12px;

    height:26px;

    line-height:26px;

    padding:0;

    margin: 0;;

}



/* =========================

NAV BUTTON

========================= */



.btn-nav-pagination{

display:flex;

align-items:center;

background:var(--color-bg-soft);

border:1px solid var(--color-border);

border-radius:6px;

transition:all .2s ease;

padding: 2px 3px;

flex:0 0 auto;

flex-wrap:nowrap;  



}





/* =========================

DATE PICKER

========================= */



.boxkq-datepicker{

border:1px solid var(--color-border);

border-radius:6px;

background:var(--color-bg);

color:var(--color-text);



outline:none;

cursor:pointer;

    width:110px;

    text-align:center;

    padding-right:24px;

    background-image:url("/wp-content/themes/flatsome-child/assets/img/calendar.png");

    background-repeat:no-repeat;

    background-position:right 6px center;

    background-size:14px;

}





/* khung datepicker */

.ui-datepicker{

    width:260px;

    padding:10px;

    border:1px solid var(--color-divider);

    border-radius:6px;

    background:var(--color-bg);

    box-shadow:0 2px 8px rgba(0,0,0,0.15);

    font-size:13px;

}

.ui-datepicker .ui-datepicker-header {
    position: static !important;
    padding: 0 !important;
}



.ui-datepicker-header{

    display:flex;

    align-items:center;

    justify-content:center;

}



.ui-datepicker-title{

    display:flex;

    align-items:center;

    gap:4px;

    font-size: 12px;

    justify-content: center;

    width: 100%;

}





    .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {

top: auto;

}

.ui-datepicker-prev,

.ui-datepicker-next{

    position:static;   /* bỏ position absolute của jQuery UI */



}



.ui-datepicker select{

    height:24px;

    font-size:13px;

}

.ui-datepicker .ui-datepicker-buttonpane{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding-top:8px;
    margin-top:8px;
    border-top:1px solid var(--color-divider);
}

.ui-datepicker .ui-datepicker-buttonpane button{
    height:24px;
    line-height:24px;
    padding:0 10px;
    border-radius:4px;
}




/* bảng */

.ui-datepicker table{

    width:100%;

    border-collapse:collapse;

    margin-top:6px;

}



/* header thứ */

.ui-datepicker th{

    font-weight:600;

    color:var(--color-text);

    padding:4px 0;

}



/* ngày */

.ui-datepicker td{

    padding:2px;

}



/* nút ngày */

.ui-datepicker td a{

    display:block;

    padding:5px 0;

    border-radius:4px;

    text-align:center;

    text-decoration:none;

    color:var(--color-text);

}



/* hover */

.ui-datepicker td a:hover{

    background:var(--color-bg-soft);

}



/* ngày hôm nay */

.ui-datepicker .ui-datepicker-today a{

    background:#fff3a0;

}



/* ngày được chọn */

.ui-datepicker .ui-state-active{

    background:var(--color-primary);

    color:#fff;

}



/* ngày disable */

.ui-datepicker .ui-state-disabled{

    opacity:0.3;

}




/* Bảng loto */

.table_boxketqua_bottom {
    max-width: 520px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0px !important;
    border-collapse: collapse;
}

.thongke-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;


}
/* Nút Normal / 2 số / 3 số */
.config_list_loto,
.list-thongkesoloto{
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}



.hl2 {
    color: #c00;
    font-weight: 700
}




.config_loto {
    background: radial-gradient(circle at 32px 32px, var(--color-primary), var(--color-secondary));
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
    display:flex;
    color: white;
    text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
      font-weight: bold;
 height: 26px;
      width: 60px;
    align-items: center;
    display: flex;
    justify-content: center;

}

.config_loto.active {
    background-color: var(--color-success);
    color: var(--color-bg);
}

/* Các số 0-9 */
.thongkesoloto {
      background-image: radial-gradient(circle at 4px 4px, var(--color-primary), var(--color-secondary));
width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
          font-weight: bold;
margin:10px 0px;


}


.thongkesoloto.highlight {
    background: #222;
    color: #fff
}


.collect-digi-loto .last2-item.hl2 {
    border: 2px solid var(--color-error);
    box-shadow: 0 0 0 2px var(--color-error)
}


.thongke-actions{
    display:flex;
            width: 50%;
    height: 26px;
    justify-content: space-evenly;

}


.showLoto{
      background-image: radial-gradient(circle at 32px 32px, var(--color-primary), var(--color-secondary));
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
      font-size:10px;
  box-shadow: 0 0 20px #eee;
  border-radius: 5px;
  outline: none;
  border: none;
  font-weight: bold;
    display:flex;
  align-items:center;
  justify-content:center;
      width: 60px;

}

.btn-print:hover,
.showLoto:hover,
.config_loto:hover,
.thongkesoloto:hover,
.last2-item:hover

{
  background-position: right center;
  color: #fff;
  text-decoration: none;
}



.button.btn-print{
      background-image: radial-gradient(circle at 32px 32px, var(--color-primary), var(--color-secondary));
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
      font-size:10px;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 5px;
  display: block;
  outline: none;
  border: none;
  margin: 0 !important;
      width: 60px;
   
}


/* Dự đoán */
.sodudoan {
    margin-left: 6px;
    display: flex;
    align-items: center;
}

/* Xem Loto */



.giaiSo .hl2 {
 background-image: radial-gradient(circle at 32px 32px, var(--color-primary), var(--color-secondary));
    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)
}





.collect-digi-loto .last2-item {
 background-image:radial-gradient(circle at 32px 32px, var(--color-primary), var(--color-secondary));
 display:inline-flex;
    width:36px;
    height:36px;
    border-radius:50%;
    border:1px solid #ccc;
    align-items:center;
    justify-content:center;
    margin:2px;
          font-weight: bold;
color: white;
}

.collect-digi-loto .last2-item.hl2 {
    border: 2px solid var(--color-error);
    box-shadow: 0 0 0 2px var(--color-error)
}

.last2-item.is-dbpair {
    border: 2px solid #c00;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.25)
}

.table-loto td .loto-db-hl {
    color: var(--color-error);
    font-weight: 700
}

.dbw-grid-compare .dbw-sep {
    min-width: 8px;
    width: 8px;
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)}
    
.dbw-compare-grids{
    overflow:auto;
    max-height: 200px;
}

.dbw-bar {
    width: var(--dbw-bar-pct)
}



/* Kết thúc Bảng loto */


.thongke-xsmb-gdb {
    background: var(--color-bg);
    padding: 12px;
    border-radius: 6px;
}

.boxtit {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.colorYellow {
    color: var(--color-warning);
}

.colorRed {
    color: var(--color-error);
}

.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: var(--color-text);
}

.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: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--color-text);
    padding: 12px 12px 16px;
    box-sizing: border-box
}

.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: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    cursor: pointer;
    padding: 6px 12px;
}

.tk_xsmb_loto_lo-roi .lr-day-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}

.tk_xsmb_loto_lo-roi .lr-day-block .hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text));
    border-radius: 50%;
    padding: 4px;
    color: var(--color-error);
    font-weight: bold;
}

.tk_xsmb_loto_lo-roi .lr-day-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.tk_xsmb_loto_lo-roi .lr-day-title strong {
    color: var(--color-error);
}

.tk_xsmb_loto_lo-roi .lr-date-link {
    color: var(--color-primary);
    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: var(--color-primary);
}

.tk_xsmb_loto_lo-roi .lr-pop-next {
    color: var(--color-primary);
    cursor: pointer;
}

.colgiai th,
.colgiai td {
    border: 1px solid var(--color-border);
    padding: 8px;
    text-align: left;
}

.hoverTR tbody tr:hover {
    background: var(--color-bg-soft);
}

.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: var(--color-bg);
    z-index: 2
}

.dbm-grid thead th:first-child {
    left: 0;
    z-index: 3
}

.dbm-grid .dbm-year-label {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 1
}

.dbm-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 4;
    overflow: hidden
}

.dbm-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    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: var(--color-bg);
    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: var(--color-bg);
    z-index: 1
}


.dbm-number.hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text));
    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-number.hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text))
}

.dbm-consec {
    background: var(--color-warning)
}

.dbm-consec-h {
    border-left: 2px solid var(--color-warning);
    border-right: 2px solid var(--color-warning)
}

.dbm-consec-v {
    border-top: 2px solid var(--color-warning);
    border-bottom: 2px solid var(--color-warning)
}
.dbm-repeat{
    overflow:auto;
}

.dbm-grid-repeat thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    z-index: 2
}

.dby-grid thead th:first-child {
    left: 0;
    z-index: 3
}

.dby-grid .dby-day-label {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 1
}

.dby-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 4;
    overflow: hidden
}

.dby-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    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: var(--color-info)
}

.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: var(--color-bg);
    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: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

.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: var(--color-bg);
    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: var(--color-bg);
    z-index: 1
}

.dby-grid.dby-grid-summary .dby-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    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: var(--color-border);
    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: var(--color-bg);
    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: var(--color-bg);
    z-index: 1
}

.dby-grid-year-detail .dby-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 4;
    overflow: hidden
}

.dby-grid-year-detail .dby-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    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: var(--color-warning);
    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 var(--color-border)
}

.dby-year-detail-plain .dby-row-head {
    background: var(--color-bg-soft);
    font-weight: 600;
    border-bottom: 2px solid var(--color-border)
}

.dby-year-detail-plain .dby-cell {
    white-space: nowrap
}

.dby-year-detail-plain .dby-line {
    padding: 4px 0;
    border-bottom: 1px dashed var(--color-border)
}

.dby-year-detail-plain .colorRed {
    color: var(--color-error);
    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 var(--color-border)
}

.dby-box.dby-total .dby-row-head {
    background: var(--color-bg-soft);
    font-weight: 600;
    border-bottom: 2px solid var(--color-border)
}

.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: var(--color-bg);
    z-index: 2
}

.dby-grid.dby-grid-total-range td.dtr-highlight {
    background: var(--color-warning)
}


.dtr-hover-panel-container {
    margin-top: 8px;
    display: flex;
    justify-content: center
}

.dtr-hover-panel {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    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: var(--color-bg);
    border: 1px solid var(--color-border);
    cursor: pointer
}

.dtr-hover-number-item:hover {
    background: var(--color-bg-soft);
    border-color: var(--color-info)
}

.dtr-hover-number-item.active {
    background: var(--color-warning);
    border-color: var(--color-border)
}

/* 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: var(--color-bg);
    z-index: 2
}

.dtr-day-label {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 1
}

.dtr-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 4;
    overflow: hidden
}

.dtr-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    transform: rotate(-45deg);
    transform-origin: left top
}

.dtr-weekend-row .dby-cell {
    background: var(--color-bg-soft)
}

.dtr-daily-grid tfoot tr {
    position: sticky;
    bottom: 0;
    background: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    z-index: 2
}

.drg-fixed30-pairs-grid thead .drg-sep {
    min-width: 8px;
    width: 8px
}

.drg-fixed30-pairs-grid .drg-sep {
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

/* 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: var(--color-bg);
    z-index: 2
}

.drg-fixed60-pairs-grid thead .drg60-sep {
    min-width: 8px;
    width: 8px
}

.drg-fixed60-pairs-grid .drg60-sep {
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

/* caret & popup – lo-roi */
.tk_xsmb_loto_lo-roi .lr-sortable {
    background: var(--color-bg);
    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 var(--color-border)
}

.tk_xsmb_loto_lo-roi .lr-sortable.asc .lr-head-arrow {
    border-bottom: 7px solid var(--color-text-muted);
    border-top-color: transparent
}

.tk_xsmb_loto_lo-roi .lr-sortable.desc .lr-head-arrow {
    border-top: 7px solid var(--color-text-muted);
    border-bottom-color: transparent
}

.tk_xsmb_loto_lo-roi .tk_xsmb_loto_lo-roi-bottom-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    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 var(--color-border);
    padding: 6px;
    text-align: center;
    vertical-align: middle;
    background: var(--color-bg)
}

.tk_xsmb_loto_lo-roi-bottom-grid .hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text));
    border-radius: 50%;
    padding: 4px;
    color: var(--color-error);
    font-weight: bold
}


.tk_xsmb_loto_lo-roi .lr-pop-next {
    cursor: pointer;
    color: var(--color-primary)
}

.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: var(--color-text)
}

.tk_xsmb_loto_lo-roi .lr-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--color-text);
    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: var(--color-bg-soft);
    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: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

/* 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: var(--color-bg);
    z-index: 2
}

.dlf-fixed60-pairs-grid thead .dlf60-sep {
    min-width: 8px;
    width: 8px
}

.dlf-fixed60-pairs-grid .dlf60-sep {
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

.dlf-fixed90-pairs-grid thead .dlf90-sep {
    min-width: 8px;
    width: 8px
}

.dlf-fixed90-pairs-grid .dlf90-sep {
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

/* 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: var(--color-bg);
    z-index: 2
}

.dlf-fixed100-pairs-grid thead .dlf100-sep {
    min-width: 8px;
    width: 8px
}

.dlf-fixed100-pairs-grid .dlf100-sep {
    background: var(--color-bg);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border)
}

/* 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: var(--color-bg);
    z-index: 2
}

.dht-day-label {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 1
}

.dht-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 4;
    overflow: hidden
}

.dht-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    transform: rotate(-45deg);
    transform-origin: left top
}

.dht-weekend-row .dby-cell {
    background: var(--color-bg-soft)
}

.dht-daily-head-grid tfoot tr,
.dht-daily-tail-grid tfoot tr {
    position: sticky;
    bottom: 0;
    background: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: var(--color-bg);
    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: white;
    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: var(--color-border)
}

.tk_xsmb_freq_loto-top10-subhead,
.tk_xsmb_freq_loto-bottom10-subhead,
.tk_xsmb_freq_loto-doubles-subhead {
    background: var(--color-bg-soft)
}

.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;
    overflow: auto;
}

/* 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 var(--color-border);
    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: var(--color-text)
}

.tk_xsmb_freq_loto-daily-help-control select {
    padding: 4px 8px
}

.tk_xsmb_freq_loto-daily-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 60
}

.tk_xsmb_freq_loto-daily-grid thead th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 100;
    background: var(--color-bg)
}

.tk_xsmb_freq_loto-daily-grid thead th:last-child {
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
    background: var(--color-bg)
}

.tk_xsmb_freq_loto-daily-headcol {
    position: sticky;
    left: 0;
    top: 0;
    background: var(--color-bg);
    z-index: 70
}

.tk_xsmb_freq_loto-daily-totalcol {
    position: sticky;
    right: 0;
    top: 0;
    background: var(--color-bg);
    z-index: 70
}

.tk_xsmb_freq_loto-daily-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_freq_loto-daily-grid tbody td:last-child {
    position: sticky;
    right: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_freq_loto-daily-cell-gdb {
    color: var(--color-error);
    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: var(--color-error);
    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: var(--color-text)
}

.tk_xsmb_freq_loto-popup-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    padding: 16px;
    border: 1px solid var(--color-border);
    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: var(--color-primary);
    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 var(--color-border);
    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 var(--color-border);
    padding: 6px
}

.tk_xsmb_freq_loto_pairs-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 2
}

.tk_xsmb_freq_loto_pairs-grid .tk_xsmb_freq_loto_pairs-day-label {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 1
}

.tk_xsmb_freq_loto_pairs-grid .tk_xsmb_freq_loto_pairs-dia {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    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 var(--color-border);
    padding: 6px
}

.tk_xsmb_freq_loto_pairs-list thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    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 var(--color-border);
    padding: 6px;
    text-align: center
}

.tk_xsmb_freq_loto_pairs-emph {
    color: var(--color-error);
    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;
    overflow: auto;
}

.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: var(--color-text);
    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: var(--color-border)
}

.tk_xsmb_freq_loto_pairs-top10-subhead,
.tk_xsmb_freq_loto_pairs-bottom10-subhead,
.tk_xsmb_freq_loto_pairs-doubles-subhead {
    background: var(--color-bg-soft)
}

.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 var(--color-border);
    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: var(--color-text)
}

.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: var(--color-bg);
    z-index: 60
}

.tk_xsmb_freq_loto_pairs-daily-grid thead th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 100;
    background: var(--color-bg)
}

.tk_xsmb_freq_loto_pairs-daily-grid thead th:last-child {
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
    background: var(--color-bg)
}

.tk_xsmb_freq_loto_pairs-daily-headcol {
    position: sticky;
    left: 0;
    top: 0;
    background: var(--color-bg);
    z-index: 70
}

.tk_xsmb_freq_loto_pairs-daily-totalcol {
    position: sticky;
    right: 0;
    top: 0;
    background: var(--color-bg);
    z-index: 70
}

.tk_xsmb_freq_loto_pairs-daily-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_freq_loto_pairs-daily-grid tbody td:last-child {
    position: sticky;
    right: 0;
    top: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_freq_loto_pairs-daily-cell-gdb {
    color: var(--color-error);
    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: var(--color-text)
}

.tk_xsmb_freq_loto_pairs-popup-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    padding: 16px;
    border: 1px solid var(--color-border);
    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: var(--color-primary);
    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 var(--color-border);
    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 */



/* ===== Xiên 2 grid ===== */
.tk_xsmb_xien2 .x2-grid-scroll {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-height: 70vh;
    display: block
}

.tk_xsmb_xien2 .x2-grid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    display: block
}

.tk_xsmb_xien2 .x2-grid th,
.tk_xsmb_xien2 .x2-grid td {
    white-space: nowrap;
    min-width: 140px;
    border: 1px solid var(--color-border);
    padding: 6px;
    text-align: center;
    background: var(--color-bg)
}

.tk_xsmb_xien2 .x2-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 60
}

.tk_xsmb_xien2 .x2-grid thead th.x2-sticky {
    left: 0;
    z-index: 100
}

.tk_xsmb_xien2 .x2-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_xien2 .x2-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 120;
    min-height: 24px
}

.tk_xsmb_xien2 .x2-diagonal::after {
    content: \"\";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    transform: rotate(-45deg);
    transform-origin: left top
}

.tk_xsmb_xien2 .dby-dia-month {
    position: absolute;
    bottom: 0px;
    left: 0px;
    font-weight: 600
}

.tk_xsmb_xien2 .dby-dia-day {
    position: absolute;
    right: 6px;
    top: 0px;
    font-weight: 600
}

.tk_xsmb_xien2 .x2-day {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    margin: 0 3px
}

.tk_xsmb_xien2 .x2-day.active {
    background: var(--color-success);
    color: var(--color-bg)
}

.tk_xsmb_xien2 .x2-sortable {
    position: relative;
    cursor: pointer;
    padding-right: 24px
}

.tk_xsmb_xien2 .x2-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 var(--color-border)
}

.tk_xsmb_xien2 .x2-sortable.asc .x2-head-arrow {
    border-bottom: 8px solid var(--color-primary);
    border-top: none
}

.tk_xsmb_xien2 .x2-sortable.desc .x2-head-arrow {
    border-top: 8px solid var(--color-primary);
    border-bottom: none
}



/* ===== Xiên 3 grid ===== */
.tk_xsmb_xien3 .x3-grid-scroll {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-height: 70vh;
    display: block
}

.tk_xsmb_xien3 .x3-grid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    display: block
}

.tk_xsmb_xien3 .x3-grid th,
.tk_xsmb_xien3 .x3-grid td {
    white-space: nowrap;
    min-width: 140px;
    border: 1px solid var(--color-border);
    padding: 6px;
    text-align: center;
    background: var(--color-bg)
}

.tk_xsmb_xien3 .x3-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 60
}

.tk_xsmb_xien3 .x3-grid thead th.x3-sticky {
    left: 0;
    z-index: 100
}

.tk_xsmb_xien3 .x3-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_xien3 .x3-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 120;
    min-height: 24px
}

.tk_xsmb_xien3 .x3-diagonal::after {
    content: \"\";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    transform: rotate(-45deg);
    transform-origin: left top
}

.tk_xsmb_xien3 .dby-dia-month {
    position: absolute;
    bottom: 0px;
    left: 0px;
    font-weight: 600
}

.tk_xsmb_xien3 .dby-dia-day {
    position: absolute;
    right: 6px;
    top: 0px;
    font-weight: 600
}

.tk_xsmb_xien3 .x3-day {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    margin: 0 3px
}

.tk_xsmb_xien3 .x3-day.active {
    background: var(--color-success);
    color: var(--color-bg)
}

.tk_xsmb_xien3 .x3-sortable {
    position: relative;
    cursor: pointer;
    padding-right: 24px
}

.tk_xsmb_xien3 .x3-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 var(--color-border)
}

.tk_xsmb_xien3 .x3-sortable.asc .x3-head-arrow {
    border-bottom: 8px solid var(--color-primary);
    border-top: none
}

.tk_xsmb_xien3 .x3-sortable.desc .x3-head-arrow {
    border-top: 8px solid var(--color-primary);
    border-bottom: none
}

/* ===== Xiên 4 grid ===== */
.tk_xsmb_xien4 .x4-grid-scroll {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-height: 70vh;
    display: block
}

.tk_xsmb_xien4 .x4-grid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    display: block
}

.tk_xsmb_xien4 .x4-grid th,
.tk_xsmb_xien4 .x4-grid td {
    white-space: nowrap;
    min-width: 140px;
    border: 1px solid var(--color-border);
    padding: 6px;
    text-align: center;
    background: var(--color-bg)
}

.tk_xsmb_xien4 .x4-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 60
}

.tk_xsmb_xien4 .x4-grid thead th.x4-sticky {
    left: 0;
    z-index: 100
}

.tk_xsmb_xien4 .x4-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 50
}

.tk_xsmb_xien4 .x4-diagonal {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 120;
    min-height: 24px
}

.tk_xsmb_xien4 .x4-diagonal::after {
    content: \"\";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background: var(--color-border);
    transform: rotate(-45deg);
    transform-origin: left top
}

.tk_xsmb_xien4 .x4-day {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    margin: 0 3px
}

.tk_xsmb_xien4 .x4-day.active {
    background: var(--color-success);
    color: var(--color-bg)
}

.tk_xsmb_xien4 .x4-sortable {
    position: relative;
    cursor: pointer;
    padding-right: 24px
}

.tk_xsmb_xien4 .x4-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 var(--color-border)
}

.tk_xsmb_xien4 .x4-sortable.asc .x4-head-arrow {
    border-bottom: 8px solid var(--color-primary);
    border-top: none
}

.tk_xsmb_xien4 .x4-sortable.desc .x4-head-arrow {
    border-top: 8px solid var(--color-primary);
    border-bottom: none
}


/* ===== bắt đầu lô câm đầu===== */


.lh-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.lh-controls input {
    width: 110px;
    text-align: center;
    font-size: 12px;
    z-index: 3;
}

.lh-run {
    font-size: 12px;
}

.lh-days .lh-day,
.lh-heads .lh-head {
    display: inline-block;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    padding: 2px 8px;
    margin: 2px;
    font-size: 12px;
    cursor: pointer
}

.lh-heads .lh-head.active,
.lh-days .lh-day.active {
    background: var(--color-success);
    color: var(--color-bg)
}

.lh-grid-wrap {
    margin-top: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden
}

.lh-grid-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh;
}

.lh-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.lh-grid th,
.lh-grid td {
    border: 1px solid var(--color-border);
    padding: 6px;
    text-align: left;
}

.lh-grid thead th {
    position: sticky;
    top: 0;
    background: var(--color-bg-soft);
}

.lh-grid thead th.lh-sortable {
    cursor: pointer;
    position: sticky;
}

.lh-grid thead th .lh-caret {
    margin-left: 6px;
    font-size: 12px;
    color: var(--color-text-muted)
}

.lh-grid thead th .lh-caret {
    color: var(--color-text-muted)
}

.tk_xsmb_locam_head .lh-grid th,
.tk_xsmb_locam_head .lh-grid td {
    text-align: center
}

.tk_xsmb_locam_head .lh-grid thead th:nth-child(1),
.tk_xsmb_locam_head .lh-grid tbody td:nth-child(1) {
    width: 20%;
    padding: 6px 8px
}

.tk_xsmb_locam_head .lh-grid thead th:nth-child(2),
.tk_xsmb_locam_head .lh-grid tbody td:nth-child(2) {
    width: 10%;
    padding: 6px 8px
}

.tk_xsmb_locam_head .lh-grid thead th:nth-child(3),
.tk_xsmb_locam_head .lh-grid tbody td:nth-child(3) {
    width: 20%;
    padding: 6px 8px
}

.tk_xsmb_locam_head .lh-grid thead th:nth-child(4),
.tk_xsmb_locam_head .lh-grid tbody td:nth-child(4) {
    width: auto
}

.tk_xsmb_locam_head .lh-lotos {
    justify-content: center
}

.tk_xsmb_locam_head .lh-loto.hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text));
    border-radius: 50%;
    padding: 4px;
    color: var(--color-bg);
    font-weight: bold
}

@media (max-width: 768px) {
    .tk_xsmb_locam_head .lh-grid {
        font-size: 12px
    }

    .tk_xsmb_locam_head .lh-controls input {
        font-size: 12px
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(1) {
        width: 25%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(2) {
        width: 10%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(3) {
        width: 25%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(4) {
        width: auto
    }

    .tk_xsmb_locam_head .lh-grid-scroll {
        max-height: 80vh
    }

}

@media (max-width: 520px) {
    .tk_xsmb_locam_head .lh-grid {
        font-size: 12px
    }

    .tk_xsmb_locam_head .lh-controls input {
        font-size: 12px
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(1) {
        width: 22%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(2) {
        width: 10%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(3) {
        width: 22%
    }

    .tk_xsmb_locam_head .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_head .lh-grid tbody td:nth-child(4) {
        width: auto
    }

    .tk_xsmb_locam_head .lh-grid thead th,
    .tk_xsmb_locam_head .lh-grid tbody td {
        text-align: center
    }

    .tk_xsmb_locam_head .lh-grid-scroll {
        max-height: 80vh
    }
}

.lh-grid tbody tr:nth-child(even) {
    background: var(--color-bg-soft);
}

.lh-grid tbody tr:nth-child(even) td {
    background: var(--color-bg-soft);
}

.tk_xsmb_locam_head .lh-grid tbody tr:nth-child(even) td:nth-child(1),
.tk_xsmb_locam_head .lh-grid tbody tr:nth-child(even) td:nth-child(2) {
    background: var(--color-bg-soft)
}

.lh-status {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: 6px
}

.lh-lotos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lh-loto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid var(--color-error)
}

.lh-loto {
    border: 1px solid var(--color-error)
}

/* ===== bổ sung – sticky và z-index cho tk_xsmb_locam_head ===== */
.tk_xsmb_locam_head .lh-controls {
    position: relative;
    z-index: 10
}

.tk_xsmb_locam_head .lh-grid-scroll {
    position: relative
}

.tk_xsmb_locam_head .lh-grid.sticky-cols thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-bg)
}

.tk_xsmb_locam_head .lh-grid.sticky-cols thead th.locam-head-sticky {
    left: 0;
    z-index: 4
}

.tk_xsmb_locam_head .lh-grid.sticky-cols tbody td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff
}

.ui-datepicker {
    z-index: 10000 !important;
    background: #f6f6f6;
    border: 1px solid;
    padding: 5px;
    
}

/* ===== kết thúc lô câm đầu ===== */

/* ===== bắt đầu lô câm đuôi===== */
.tk_xsmb_locam_head {
    width: 100%;
    margin: 10px auto;
    display: block;
    clear: both;
}

.tk_xsmb_locam_tail .lh-grid th,
.tk_xsmb_locam_tail .lh-grid td {
    text-align: center
}

.tk_xsmb_locam_tail .lh-lotos {
    justify-content: center
}

.tk_xsmb_locam_tail .lh-loto.hl2 {
    background: radial-gradient(circle at 5px 5px, var(--color-success), var(--color-text));
    border-radius: 50%;
    padding: 4px;
    color: var(--color-bg);
    font-weight: bold
}

.tk_xsmb_locam_tail .lh-grid-scroll {
    position: relative
}

.tk_xsmb_locam_tail .lh-grid.sticky-cols thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-bg)
}

.tk_xsmb_locam_tail .lh-grid.sticky-cols thead th.locam-head-sticky {
    left: 0;
    z-index: 4
}

.tk_xsmb_locam_tail .lh-grid.sticky-cols tbody td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-bg)
}

.tk_xsmb_locam_tail .lh-grid tbody tr:nth-child(even) td:nth-child(1),
.tk_xsmb_locam_tail .lh-grid tbody tr:nth-child(even) td:nth-child(2) {
    background: var(--color-bg-soft)
}

/* spacing between modules */
.tk_xsmb_locam_head .lh-grid-wrap,
.tk_xsmb_locam_tail .lh-grid-wrap {
    margin-bottom: 16px
}


 .quaythu_xsmb {
        width: 100%;
        max-width: 520px;
        margin: 5px auto;
        box-sizing: border-box;
        list-style: none;
    }

    .quaythu_xsmb .quaythu-controls {
        display: flex;
        margin-bottom: 10px
    }

    .quaythu_xsmb .btn-quaythu {
        background: var(--color-primary);
        color: var(--color-bg);
        border-radius: 4px;
        cursor: pointer
    }

    .quaythu_xsmb .btn-quaythu:hover {
        background: var(--color-primary-hover)
    }

    .quaythu_xsmb .btn-quaythu[disabled] {
        opacity: .6;
        cursor: not-allowed
    }

    .quaythu_xsmb .btn-print {
        background: var(--color-primary);
        border-radius: 4px;
        cursor: pointer
    }

    .quaythu_xsmb .btn-print[disabled] {
        opacity: .6;
        cursor: not-allowed
    }

    .quaythu_xsmb .quaythu-meta {
        min-height: 22px;
        color: var(--color-text-muted);
        margin-bottom: 6px
    }

    .quaythu_xsmb .quaythu-status {
        color: var(--color-error);
        font-weight: 600
    }

    .quaythu_xsmb .table_boxketqua {
        width: 100%;
        border-collapse: collapse
    }

   
/* Desktop > 1024px */
@media (min-width: 1025px) {

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(1) {
        width: 20%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(2) {
        width: 10%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(3) {
        width: 20%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(4) {
        width: auto
    }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(1) {
        width: 20%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(2) {
        width: 10%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(3) {
        width: 20%;
        padding: 6px 8px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(4) {
        width: auto
    }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
    .tk_xsmb_locam_tail .lh-grid {
        font-size: 12px
    }

    .tk_xsmb_locam_tail .lh-controls input {
        font-size: 12px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(1) {
        width: 25%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(2) {
        width: 10%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(3) {
        width: 25%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(4) {
        width: auto
    }

    .tk_xsmb_locam_tail .lh-grid-scroll {
        max-height: 80vh
    }
}

/* Mobile nhỏ ≤ 520px */
@media (max-width: 520px) {
    .tk_xsmb_locam_tail .lh-grid {
        font-size: 12px
    }

    .tk_xsmb_locam_tail .lh-controls input {
        font-size: 12px
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(1),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(1) {
        width: 22%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(2),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(2) {
        width: 10%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(3),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(3) {
        width: 22%
    }

    .tk_xsmb_locam_tail .lh-grid thead th:nth-child(4),
    .tk_xsmb_locam_tail .lh-grid tbody td:nth-child(4) {
        width: auto
    }

    .tk_xsmb_locam_tail .lh-grid thead th,
    .tk_xsmb_locam_tail .lh-grid tbody td {
        text-align: center
    }

    .tk_xsmb_locam_tail .lh-grid-scroll {
        max-height: 80vh
    }
}

/* =====kết thúc lô câm đuôi===== */



/* ====================== */
/* 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: nowrap;
        gap: 2px;
        justify-content: space-between;
        padding: 4px;
        overflow-x: auto;
    }

    .boxkq-pagination .btn-nav-pagination
{
        flex: 0 0 auto;
        min-width: auto;
        padding: 0 2px !important;
        font-size: 11px;
    }


    .box_kqxs h1 {
        font-size: 18px;
    }

    .site_link {
        font-size: 11px;
    }







    .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;
        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 var(--color-border);
        padding: 6px 8px;
        text-align: left;
    }

    .tk_xsmb_loto_lo-roi .lr-summary thead th {
        background: var(--color-bg-soft);
        font-weight: 600;
    }

  
    .gdb-special-charts-wrapper {
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.gdb-charts-filter {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.gdb-filter-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.gdb-filter-group {
    display: flex;
    align-items: center;
}

.gdb-filter-group label {
    margin-right: 10px;
    font-weight: bold;
    color: var(--gdb-text);
}

.gdb-filter-group select,
.gdb-date-input {
    padding: 5px 10px;
    border: 1px solid var(--gdb-border);
    border-radius: 4px;
    background-color: var(--gdb-bg-card);
    color: var(--gdb-text);
}

.gdb-btn {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.gdb-btn-primary {
    color: #fff;
    background-color: var(--gdb-primary);
    border-color: var(--gdb-primary);
}

.gdb-btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.gdb-btn-secondary {
    color: #fff;
    background-color: var(--gdb-secondary);
    border-color: var(--gdb-secondary);
}

.gdb-btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.gdb-filter-error {
    color: var(--gdb-error);
    font-size: 14px;
    margin-top: 5px;
    width: 100%;
    text-align: right;
}

.gdb-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: opacity 0.2s ease;
}

.gdb-chart-item {
    background: var(--gdb-bg-card);
    border: 1px solid var(--gdb-border);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.gdb-chart-item h2 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gdb-text);
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    flex-grow: 1;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .gdb-charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gdb-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .gdb-filter-row {
        justify-content: space-between;
    }
    
    .gdb-filter-group {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .gdb-filter-group input,
    .gdb-filter-group select {
        width: 60%;
    }
    
    .gdb-filter-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    
    .gdb-btn {
        flex: 1;
    }

    .chart-container {
        height: 220px;
    }
    
    .gdb-chart-item canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    .gdb-chart-item h2 {
    text-align: center;
}
}

.gdb-stats-container {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid var(--gdb-border);
    padding-top: 10px;
}

.gdb-stat-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.gdb-stat-label {
    font-weight: 600;
    color: var(--gdb-text);
}

.gdb-stat-count {
    color: var(--gdb-secondary);
    font-size: 12px;
}

.gdb-count-val {
    color: var(--gdb-error);
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 576px) {
    .gdb-stats-container {
        gap: 5px;
    }
    .gdb-stat-item {
        font-size: 11px;
        padding: 4px 8px;
    }
    .gdb-count-val {
        font-size: 13px;
    }
}