.colgiai tr th {
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
    color: #666;
    padding: 8px 0;
}

.w50 {
    float: left;
    width: 50%;
}

.colorBlue {
    color: blue;
}

.s18 {
    font-size: 18px;
}

.tk-loto-gan .colgiai tr th {
    background: var(--light-gray);
}

#monthly-result td .dau, #monthly-result td .duoi, #monthly-result td .loto, #monthly-result td .tong, #monthly-result td .date, #monthly-result td .even-odd, .tk-tong-db td .dau, .tk-tong-db td .duoi, .tk-tong-db td .loto, .tk-tong-db td .tong, #monthly-result.db-prefix td .db-prefix {
    display: none;
}

#monthly-result.dau td .dau, #monthly-result.duoi td .duoi, #monthly-result.loto td .loto, #monthly-result.tong td .tong, #monthly-result.date td .date, #monthly-result.even-odd td .even-odd, .tk-tong-db.dau td .dau, .tk-tong-db.duoi td .duoi, .tk-tong-db.loto td .loto, .tk-tong-db.tong td .tong {
    display: block;
}

#monthly-result td.lightBlue {
    background: #d9edf7;
}


/*Thong ke tan suat*/
.list-bstk li {
    margin: 1% 2%;
    display: inline-block;
    color: #ed0303;
}

.page-txlt .title-sig {
    padding: 5px;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
    width: 96%;
    height: 30px;
    margin: 0 2%;
    background: #fafafa;
    margin-top: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.form-input-data li label {
    line-height: 27px;
}

.center {
    text-align: center;
}

.form-full li {
    display: inline-block;
    padding: 5px 10px;
}

.tk-txloto.colgiai th, .tk-txloto.colgiai tr td:first-child {
    font-size: 11px;
    font-weight: 700;
}

.tk-txloto.colgiai th:first-child, .tk-txloto.colgiai td:first-child {
    position: sticky;
    left: 0;
}

.tk-txloto.colgiai th:last-child, .tk-txloto.colgiai td:last-child {
    position: sticky;
    right: 0;
}

.tk-txloto.colgiai tr:first-child th {
    position: sticky;
    top: 0;
    background: var(--text-color);
    color: var(--text-color-light);
}

.tk-txloto.colgiai tr:first-child th:first-child, .tk-txloto.colgiai tr:first-child th:last-child {
    background: var(--orange);
    color: #fff
}

.tk-txloto.colgiai tr:nth-child(2n+2) td {
    background: var(--light-blue);
}

.tk-txloto.colgiai tr:nth-child(2n+1) td {
    background: var(--text-color-light);
}

.tk-txloto.colgiai th {
    border-right: 1px solid #eee;
    min-width: 36px;
}

.txt-tbao-opt {
    padding: 5px;
    background: #fdfad1;
    border: 1px solid #fae46c;
    margin: 0 5px 10px;
}

.txt-left {
    text-align: left;
}

.form-input-data input {
    border: 1px solid #ccc;
    height: 27px;
}

.tk-txloto.colgiai {
    border-top: 1px solid #eee
}

.tk-txloto.colgiai .bg_note, .tk-txloto.colgiai th {
    background: var(--text-color-light);
}

.tk-txloto.colgiai tr td:first-child, .tk-txloto.colgiai tr td:last-child {
    background: var(--light-gray);
    color: var(--primary-color);
}

.tk-txloto.colgiai tr:nth-child(2n+2) td.bg_note, .tk-txloto.colgiai tr:nth-child(2n+1) td.bg_note {
    background: var(--orange);
    color: var(--text-color-light);
}

.tk-txloto.colgiai .bg_note .clnote {
    font-weight: bold
}

.tk-txloto.colgiai td {
    padding: 2px 8px
}

.tk-txloto.colgiai, .tk-txloto.colgiai tbody > tr:nth-of-type(2n+1) {
    background: #888;
}

.tk-txloto.colgiai th, .tk-txloto.colgiai tr td:first-child {
    font-size: 11px;
    font-weight: 700;
}

.tk-txloto.colgiai th {
    border-right: 1px solid #eee;
}

.tk-txloto.colgiai {
    border-top: 1px solid #eee;
}

.scoll {
    max-height: 500px;
    overflow: auto;
}

.tk-db table.colgiai.fl {
    float: left;
    width: 50%
}

.tk-db table.colgiai:nth-child(2n) {
    border-left: 1px solid #ccc
}

.tk-db td span.clred {
    font-size: 16px;
    color: #ed0303
}

.tk-socuoi-db td {
    color: #666;
    font-size: 14px;
    height: 25px;
    text-align: center;
    font-weight: bold
}

.tk-tong-db .colgiai td div {
    font-size: 12px;
}

@media (min-width: 640px) {
    .tk-tong-db .colgiai td div {
        font-size: 14px;
    }
}


.tk-tong-db .colgiai td div.ngay-quay {
    font-size: 13px;
    font-weight: normal;
}

.title-c2 {
    background: var(--secondary-color);
    padding: 8px 5px;
    text-align: center
}

.title-c2 strong {
    font-weight: normal
}

.box-tk .title-c2 {
    border-bottom: 1px solid #e4e4e4
}

/*.box-tk .colgiai td {*/
/*    color: #505050*/
/*}*/

.box-tk .colgiai td:first-child {
    font-weight: bold;
    font-size: 14px
}

.bg_red, .hrate {
    background: #da1c47;
}

.colgiai td div:last-child {
    margin-bottom: 0;
}

.tile-tren-duoi {
    position: relative;
    height: 30px;
    background: #eee
}

.tile-tren-duoi span {
    display: block;
    width: 100%;
    position: absolute;
    left: 0
}

.tile-tren-duoi span em {
    position: absolute;
    color: #333
}

.tile-tren-duoi span.leftbor {
    border-left: 70px solid transparent;
    border-top: 30px solid #e2e2e2;
    position: absolute;
    top: 0;
}

.tile-tren-duoi span.leftbor em {
    top: -29px;
    right: 10px;
}

.tile-tren-duoi span.righttbor em {
    left: 5px;
    top: 13px
}

.scoll {
    max-height: 500px;
    overflow: auto
}

.scoll .colgiai td, .tk-db .colgiai td, .tk-loto-gan .colgiai td {
    padding: 5px
}

.colgiai.tk-dd-db th, .colgiai.tk-dd-loto th {
    padding-top: 0;
    padding-bottom: 0;
    background: #fafafa
}

.colgiai.tk-dd-db td div, .colgiai.tk-dd-loto td div {
    font-weight: normal;
    font-size: 13px
}

.colgiai.tk-dd-db tbody > tr:nth-of-type(2n+1), .colgiai.tk-dd-loto tbody > tr:nth-of-type(2n+1) {
    background: none
}

.rate {
    color: red;
}

.list-dau-db li {
    padding: 8px 5px;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    float: left;
    text-align: center;
    width: 20%;
    font-weight: bold
}

.list-dau-db span.clnote {
    font-weight: normal;
    color: #666;
    font-size: 13px
}

.list-bstk li {
    margin: 1% 2%;
    display: inline-block;
    color: #ed0303
}

.page-txlt .fr span:last-child {
    margin-left: 10px
}

.page-txlt .title-sig {
    padding: 5px;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
    width: 96%;
    height: 30px;
    margin: 0 2%;
    background: #fafafa;
    margin-top: 10px;
    border-bottom: 1px solid #f5f5f5
}

.page-txlt .title-sig strong.fl {
    margin-right: 20px
}

.list-loto-mb h3, .logo-gan, .logo-gan li.gr-gray {
    padding: 5px;
}

.statistic_date {
    font-size: 14px;
    color: blue;
    text-decoration: underline;
}

.statistic_lo {
    font-size: 17px;
    color: #05056f;
}

.box-note {
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #efefef
}

.de {
    font-size: 24px;
    color: blue;
    text-decoration: underline;
}

.tbl50 {
    width: 50%;
}

.row-hover tr:hover {
    background: #f9f0cd;
}

.glyphicon-calendar {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAqklEQVQ4T6WSAQ2DQAxFHw6QgIThAAmTgAQkIAEJSJgEHGwSJgEJ5JG7jFzgBqFJE67l9V/bK/hZBzyAHvhu4n4aN/8BBgMF8AJKoALakJgT0LzgGIrOgiroT6AJYKpoUcEpCPVbMBHJHlfQKvoVa24pxh6PFB2MvTvEaKd6tHCcZhZUQXMlKrnDdXf/FAVV8Gf3qqeWvarw3iuyyKke94Z2D3TM7yvbB+oFcLYpL5aZM2YAAAAASUVORK5CYII=");
    background-size: contain;
    background-position: center;
    display: inline-block;
    width: 14px;
    height: 14px;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.daterangepicker .calendar {
    display: none;
    max-width: 270px;
    min-width: 0;
    margin: 4px;
}

.daterangepicker td {
    font-size: inherit;
}

.daterangepicker th {
    background: none;

    margin: 0;
}

.daterangepicker * {
    box-sizing: border-box;
}

.daterangepicker table, .daterangepicker table td, .daterangepicker table th {
    border: none;
}

.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.opensright {
    display: none;
}

.glyphicon-chevron-left {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAYElEQVQ4T2NkIA4IMDAwfEBWykiEPpCmDQwMDAkMDAwPYOoJaYRpKmBgYLhArI04NYEMwGUjXk24NBLUhE0jUZqoqhFkGFG2UjVwYNFFVnQQ1Ewo5SD7maQkh2wzSiIHAP/IGg+3WqATAAAAAElFTkSuQmCC");
    background-size: contain;
    background-position: center;
    display: inline-block;
    width: 14px;
    height: 14px;
}

.glyphicon-chevron-right {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAATUlEQVQ4T2NkIBMwkqmPAZfGAAYGhg34DMWl0YCBgSGBgYGhAJdmfE7Fq5mQH3FqJqQR5FKsmmmmkSynkhU4ZEcH2QmAYEokJlSxGgIAgOAKDxkkxIgAAAAASUVORK5CYII=");
    background-size: contain;
    background-position: center;
    display: inline-block;
    width: 14px;
    height: 14px;
}

.tk-tong-db table th {
    background: var(--light-blue);
    /*background-image: linear-gradient(to bottom, #fafafa, #eee);*/
    /*background-repeat: repeat-x;*/
    color: var(--text-color);
    font-weight: bold;
    padding: 8px 0;
}

.tk-tong-db td {
    color: var(--text-color);
    font-size: 16px;
    height: 25px;
    font-weight: 700;
    padding-top: 5px;
    text-align: center;
}

.tk-tong-db td div.ngay-quay {
    color: var(--high-gray);
    font-size: 12px;
    /*height: 25px;*/
    font-weight: normal;
}

.tk-tong-db td {
    border-bottom: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
    padding: 5px 0px;
}

@media (max-width: 360px) {
    .tk-tong-db td {
        font-size: 13px;
    }

    .tk-db .colgiai td {
        /*padding: 0;*/
    }
}

@media (max-width: 320px) {
    .tk-tong-db td {
        font-size: 12px;

    }
}

.hl-btn:not(.selected) {
    opacity: .5;
}

.tab-highlight {
    position: relative;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 13px;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 5px;
}

.tab-highlight li {
    line-height: 24px;
    flex: 1 1 auto;
    border-top: 1px solid #d9d3cb;
    border-bottom: 1px solid #d9d3cb;
    border-right: 1px solid #d9d3cb;
    margin: 0;
}

.tab-highlight li:first-child {
    border-left: 1px solid #d9d3cb;
    border-radius: 5px 0 0 5px;
}

.tab-highlight li.disabled {
    background: 0 0;
    color: #000;
}

.tab-highlight li.active {
    background: #bf2527;
    color: #fff;
}

.freq-stat-num {
    border: 1px solid #DDDDDD;
    background: var(--secondary-color-light);
}

.freq-stat-num table tr:last-child td {
    /*background: #f7e9be;*/
    border: none;

}

.freq-stat-num table td {
    /*background: #FFFFFF;*/
    border: none;
    padding: 5px 1px;
}

.freq-stat-num table tr.title-light td, .freq-stat-num table td.title-light {
    background: var(--secondary-color-light);
}

/*.freq-stat-num table td:last-child {*/
/*    background: #f7e9be;*/
/*}*/

#table-tansuat {
    /* For Webkit browsers (Chrome, Safari) */
    overflow: auto; /* Keep scrolling functionality */
}

#table-tansuat::-webkit-scrollbar {
    display: none; /* Hide the scrollbar visual */
    width: 0; /* Also hide scrollbar space */
    background: transparent; /* Optional: make the track transparent */
}

/* For Firefox */
#table-tansuat {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    overflow: auto; /* Keep scrolling functionality */
}

/* Optional: For IE and Edge (older versions) */
#table-tansuat {
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
    overflow: auto; /* Keep scrolling functionality */
}

#table-so {
    background: var(--secondary-color-light);
}

.freq-stat-num table td button {
    background: var(--secondary-color);
    border: 1px solid #DDDDDD;
    border-radius: 2px;
    width: 100%;
}

.freq-stat-num table td.number-checkbox div {
    background: #fff;
    height: 100%;
    border: 1px solid var(--color-gray);
    padding: 5px 0;
}


.freq-stat-num table td.number-checkbox div:has(input:checked) {
    background: var(--orange);
    color: #FFFFFF;
}

.freq-stat-num .number-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    padding-top: 1em;
    padding-left: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .freq-stat-num .number-checkbox label {
        padding-left: 1.5em;
        padding-top: 0;
    }
}

.freq-stat-num .number-checkbox label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.freq-stat-num .number-checkbox label input:checked ~ span:after {
    display: block;
}

.freq-stat-num .number-checkbox label span:after {
    /*left: 1px;*/
    /*top: 1px;*/
    /*width: 12px;*/
    /*height: 12px;*/
    /*border-radius: 25%;*/
    /*border: 1px solid #CF4F00;*/
    /*background: #CF4F00;*/

    display: none;
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 6px;
    height: 12px;
    border: solid var(--orange);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: all 0.3s;
}

.freq-stat-num .number-checkbox label span {
    position: absolute;
    top: 0;
    left: 25%;
    height: 16px;
    width: 16px;
    border: 1px solid var(--color-gray);
    border-radius: 3px;
    background: var(--light-gray);
}

.freq-stat-num .tan-suat-cap .number-checkbox label span {
    left: 10%;
}

.freq-stat-num .button-menu {
    display: flex;
    justify-content: center;
    background: var(--secondary-color-light);
}

.freq-stat-num .button-menu span.button {
    margin: 0 5px 0 0;
    width: 25%;
    height: 1.8rem;
    position: relative;
}

.freq-stat-num .button-menu span.button input, .freq-stat-num .button-menu span.button label {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.freq-stat-num .button-menu span.button input[type=radio] {
    opacity: .01;
    z-index: 100
}

.freq-stat-num .button-menu span.button label {
    padding: 5px;
    border: 1px solid #dddddd;
    cursor: pointer;
    z-index: 90;
    background: #FFFFFF;
    border-radius: 5px;
}

.freq-stat-num .button-menu span.button .Checked + label, .freq-stat-num .button-menu span.button input[type=radio]:checked + label {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: #FFFFFF;
}

/* Horizontal scroll on mobile */
.loto-gan-scroll {
    width: 100%;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.loto-gan-stat {
    min-width: 650px; /* or 1000px, enough for 10-20 columns */
}

/* Make first column sticky */
.loto-gan-stat table td.bg-blue,
.loto-gan-stat table th.bg-blue,
.loto-gan-stat table .mobile-only {
    position: sticky;
    left: 0;
    background: #f7fafd;
    z-index: 2;
    /* Optional: add a subtle shadow for separation */
    box-shadow: 2px 0 4px -2px #e0e0e0;
    width: 51px;
}

/* On desktop, remove horizontal scroll and min-width */
@media (min-width: 901px) {
    .loto-gan-scroll {
        overflow-x: visible;
    }

    .loto-gan-stat {
        min-width: 0;
    }
}

#monthly-result table th {
    background: var(--light-gray);
}