﻿/* Aggregated statistics styles */

/* ===== thong-ke-giai-dac-biet.css ===== */
.tkdb-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#tkdb-results-wrap {
    position: relative;
}

.tkdb-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkdb-title-ico svg {
    width: 24px;
    height: 24px;
}

.tkdb-title-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6600;
    transform: translateY(1px);
}

.tkdb-filter-card,
.tkdb-card,
.tkdb-mode-row {
    background: #f3f4f6;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    margin-bottom: 8px;
}

.tkdb-filter-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --tkdb-control-h: 38px;
}

.tkdb-filter-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tkdb-filter-main-row {
    flex: 0 0 200px;
}

.tkdb-filter-sub-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}

.tkdb-date-range-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.tkdb-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.tkdb-filter-field select {
    width: 100%;
}

.tkdb-filter-field label,
.tkdb-time-label,
.tkdb-quick-label {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

.tkdb-filter-field select {
    height: var(--tkdb-control-h);
    line-height: var(--tkdb-control-h);
    box-sizing: border-box;
    border: 1px solid #c9d1db;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

.tkdb-search-btn,
.tkdb-apply-btn {
    height: var(--tkdb-control-h);
    line-height: var(--tkdb-control-h);
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 120px;
    font-size: 15px;
}

.tkdb-date-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c9d1db;
    border-radius: 8px;
    background: #fff;
    padding: 0 8px;
    height: var(--tkdb-control-h);
    min-height: var(--tkdb-control-h);
    box-sizing: border-box;
}

.tkdb-date-field input {
    border: none;
    padding: 0;
    height: 100%;
    width: 92px;
    background: transparent;
    font-size: 14px;
    line-height: 1;
}

.tkdb-date-field input:focus {
    outline: none;
}

.tkdb-date-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.tkdb-date-ico .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.tkdb-date-field .flatpickr-input[readonly] {
    cursor: pointer;
}

.tkdb-date-field .form-control.input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: 100% !important;
    width: 75px !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1 !important;
}

.tkdb-wd {
    color: #9ca3af;
    font-size: 12px;
}

.tkdb-arrow {
    color: #6b7280;
    font-weight: 700;
    flex: 0 0 auto;
}

.tkdb-time-label {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    margin: 0;
}

.tkdb-quick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 100%;
}

.tkdb-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #c9d1db;
    background: #fff;
    color: #111827;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tkdb-quick-btn.is-active {
    border-color: #e3262f;
    color: #e3262f;
    font-weight: 700;
    background: #fff5f5;
}

.tkdb-quick-btn:hover {
    border-color: #e3262f;
    background: #fff5f5;
}

.tkdb-context {
    background: #e7effa;
    border: 1px solid #b8cbee;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0f172a;
}

.tkdb-context span {
    color: #e3262f;
    font-weight: 700;
}

.tkdb-mode-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    flex-wrap: wrap;
}

.tkdb-mode-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #c9d1db;
    border-radius: 7px;
    background: #fff;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.tkdb-mode-btn input {
    display: none;
}

.tkdb-mode-btn.is-active {
    border-color: #e3262f;
    color: #e3262f;
}

.tkdb-card {
    overflow: hidden;
}

.tkdb-card-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid #d6dbe3;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tkdb-card-subtitle {
    font-size: 22px;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid #d6dbe3;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
}

.tkdb-title-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tkdb-card-subtitle.is-red {
    color: #dc2626;
    background: #fff5f5;
}

.tkdb-card-subtitle.is-blue {
    color: #2563eb;
    background: #f2f7ff;
}

.tkdb-card-subtitle.is-green {
    color: #15803d;
    background: #f1fbf3;
}

.tkdb-table-wrap {
    width: 100%;
}

.tkdb-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tkdb-calendar th,
.tkdb-calendar td {
    border: 1px solid #d9dee6;
    text-align: center;
    vertical-align: middle;
}

.tkdb-calendar th {
    background: #fff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 6px;
}

.tkdb-calendar td {
    height: 78px;
    background: #fff;
    padding: 4px;
}

.tkdb-calendar td.is-empty {
    background: #fff;
}

.db-value {
    font-size: 22px;
    line-height: 1.1;
    color: #334155;
    font-weight: 700;
}

.tkdb-calendar td.has-value .db-value {
    color: #e3262f;
}

.db-day {
    margin-top: 4px;
    font-size: 16px;
    color: #334155;
}

.tkdb-stat-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tkdb-stat-table th,
.tkdb-stat-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 5px 10px;
    font-size: 17px;
    text-align: center;
}

.tkdb-stat-table th {
    font-weight: 700;
    color: #0f172a;
    background: #f1f3f6;
}

.tkdb-stat-table td {
    color: #111827;
}

.tkdb-stat-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.tkdb-stat-table tbody tr:nth-child(even) td {
    background: #f3f4f6;
}

.tkdb-stat-table td.is-red {
    color: #e3262f;
    font-weight: 700;
}

.tkdb-stat-table tr:last-child td {
    border-bottom: none;
}

.tkdb-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.tkdb-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e3e6eb;
    border-top-color: #e3262f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .tkdb-title {
        font-size: 34px;
    }

    .tkdb-context {
        font-size: 17px;
    }

    .tkdb-card-title,
    .tkdb-card-subtitle {
        font-size: 15px;
    }

    .db-value {
        font-size: 20px;
    }

    .db-day {
        font-size: 14px;
    }

    .tkdb-stat-table th,
    .tkdb-stat-table td {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .tkdb-title {
        font-size: 30px;
        gap: 10px;
    }

    .tkdb-title-ico svg {
        width: 22px;
        height: 22px;
    }

    .tkdb-filter-form {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-end;
    }

    .tkdb-filter-main-row {
        flex: 0 0 40%;
        min-width: 0;
    }

    .tkdb-filter-field {
        width: 100%;
    }

    .tkdb-filter-field select {
        width: 100%;
        min-width: unset;
    }

    .tkdb-filter-sub-row {
        flex: 0 0 calc(60% - 8px);
        min-width: 0;
        gap: 6px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .tkdb-date-range-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .tkdb-search-btn,
    .tkdb-apply-btn {
        width: 100%;
        flex: 0 0 100%;
    }

    .tkdb-time-label {
        display: block;
        font-size: 14px;
        line-height: 1.2;
        margin: 0;
    }

    .tkdb-arrow,
    .tkdb-wd {
        display: none;
    }

    .tkdb-mode-btn {
        width: 100%;
    }

    .tkdb-mode-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tkdb-context {
        font-size: 16px;
    }

    .tkdb-date-field {
        padding: 0 6px;
        gap: 4px;
        height: var(--tkdb-control-h);
        min-height: var(--tkdb-control-h);
        width: 100%;
        min-width: 0;
    }

    .tkdb-date-field input,
    .tkdb-date-field .form-control.input {
        width: 100% !important;
        min-width: 0;
        font-size: 13px;
    }

    .tkdb-wd {
        font-size: 12px;
    }

    .tkdb-card-title,
    .tkdb-card-subtitle {
        font-size: 16px;
    }

    .tkdb-calendar th {
        font-size: 13px;
        padding: 6px 2px;
    }

    .tkdb-calendar td {
        height: 58px;
        padding: 3px 2px;
    }

    .db-value {
        font-size: 16px;
    }

    .db-day {
        font-size: 12px;
        margin-top: 2px;
    }

    .tkdb-stat-table th,
    .tkdb-stat-table td {
        font-size: 13px;
        padding: 8px 6px;
    }
}


/* ===== thong-ke-lo-gan.css ===== */
.tkgan-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#tkgan-results-wrap {
    position: relative;
}

.tkgan-header-box {
    border: 1px solid #cfd5de;
    --tkgan-control-h: 38px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tkgan-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    color: #152238;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkgan-title-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6600;
    transform: translateY(1px);
}

.tkgan-title-ico svg {
    width: 24px;
    height: 24px;
}

.tkgan-filter-form {
    display: grid;
    grid-template-columns: 115px 115px 100px;
    gap: 8px;
    align-items: end;
    justify-content: start;
}

.tkgan-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: auto;
}

.tkgan-filter-item label {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

.tkgan-filter-item input,
.tkgan-filter-item select,
.tkgan-filter-item button {
    height: var(--tkgan-control-h);
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    box-sizing: border-box;
}

.tkgan-date-field {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 6px;
    height: var(--tkgan-control-h);
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    box-sizing: border-box;
}

.tkgan-date-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.tkgan-date-ico .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.tkgan-date-field .tkgan-datepicker,
.tkgan-date-field .flatpickr-input[readonly] {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 13px;
    box-shadow: none;
}

.tkgan-date-field .tkgan-datepicker:focus,
.tkgan-date-field .flatpickr-input[readonly]:focus {
    outline: none;
}

.tkgan-filter-item button {
    border: none;
    background: #de2328;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tkgan-context {
    background: #eef5ff;
    border: 1px solid #bed3f5;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.tkgan-context span {
    color: #e11d2e;
}

.tkgan-card {
    background: #f3f4f6;
    border: 1px solid #cfd5de;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tkgan-card h2 {
    margin: 0;
    padding: 10px 12px;
    font-size: 22px;
    border-bottom: 1px solid #d9dde4;
    color: #ffffff;
    background: #ff6600;
}

.tkgan-table {
    width: 100%;
    border-collapse: collapse;
}

.tkgan-table th,
.tkgan-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #e2e6ec;
    font-size: 14px;
}

.tkgan-table th {
    font-size: 17px;
    color: #334155;
    font-weight: 700;
}

.tkgan-table td:last-child,
.tkgan-table th:last-child {
    text-align: right;
}

.tkgan-table td:nth-child(2),
.tkgan-table th:nth-child(2) {
    text-align: center;
}

.tkgan-table .is-red {
    color: #e11d2e;
    font-weight: 700;
}

.tkgan-table tr:last-child td {
    border-bottom: none;
}

.tkgan-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.tkgan-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e3e6eb;
    border-top-color: #e11d2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .tkgan-filter-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 92px;
        justify-content: start;
        align-items: end;
    }

    .tkgan-filter-item {
        width: 100%;
        min-width: 0;
    }

    .tkgan-date-field {
        width: 100%;
        min-width: 0;
    }

    .tkgan-filter-item select {
        width: 100%;
        min-width: 0;
    }

    .tkgan-filter-item button {
        width: 92px;
        padding: 0 8px;
        font-size: 12px;
    }

    .tkgan-title {
        font-size: 26px;
        gap: 10px;
    }

    .tkgan-title-ico svg {
        width: 22px;
        height: 22px;
    }
}


/* ===== thong-ke-loto.css ===== */
/* ============================================================
   THá»NG KÃŠ LOTO - XSKT Theme
   ============================================================ */

/* --- Header Box --- */
.tkloto-header-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tkloto-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkloto-title-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transform: translateY(1px);
}

.tkloto-title-ico svg {
    width: 24px;
    height: 24px;
}



/* --- Filter Form --- */
.tkloto-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tkloto-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkloto-filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
}

.tkloto-filter-item select {
    padding: 8px 12px;
    border: 1px solid #c9d1db;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.tkloto-filter-item select:hover {
    border-color: #999;
}

.tkloto-filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* --- Radio Buttons --- */
.tkloto-filter-radios {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tkloto-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.tkloto-radio-label input[type="radio"] {
    cursor: pointer;
}

.tkloto-radio-label span {
    font-weight: 500;
}

.tkloto-filter-submit {
    flex-direction: row;
    margin-top: 0;
}

.tkloto-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tkloto-btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.tkloto-btn-search:active {
    transform: translateY(0);
}

/* --- Context --- */
.tkloto-context {
    margin-bottom: 20px;
    background: #e7effa;
    border: 1px solid #b8cbee;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0f172a;
}

.tkloto-context strong {
    color: #222;
}

.tkloto-context span {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Results Wrapper --- */
.tkloto-results-wrap {
    position: relative;
}

/* --- Note Box --- */
.tkloto-note {
    background: #fffbf0;
    border: 1px solid #ffd9b3;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.tkloto-note strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.tkloto-note ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.tkloto-note li {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.5;
}

.tkloto-note li:last-child {
    margin-bottom: 0;
}

/* --- Table --- */
.tkloto-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #d0d0d0;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
}

.tkloto-table thead {
    background: #dfdfdf;
    border-bottom: 1px solid #d0d0d0;
}

.tkloto-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #d0d0d0;
}

.tkloto-table thead th:last-child {
    border-right: none;
}

.tkloto-col-num {
    width: 60px;
}

.tkloto-col-chart {
    flex: 1;
    min-width: 200px;
}

.tkloto-col-percent {
    width: 170px;
    text-align: right;
}

.tkloto-table tbody tr {
    border-bottom: 1px solid #d0d0d0;
    transition: background 0.15s;
}

.tkloto-table tbody tr:hover {
    background: #fafafa;
}

.tkloto-table tbody tr:last-child {
    border-bottom: none;
}

.tkloto-table td {
    padding: 5px 10px;
}

.tkloto-table td:last-child {
    border-right: none;
}

.tkloto-col-num {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.tkloto-col-num.is-red {
    color: #e3262f;
}

/* --- Bar Chart --- */
.tkloto-bar-container {
    width: 100%;
    height: 28px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tkloto-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6600, #ff8833);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 30px;
    transition: width 0.3s ease;
    position: relative;
    border-radius: 5px;
}

.tkloto-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.tkloto-col-percent {
    font-size: 13px;
    color: #666;
}

/* --- Loading Overlay --- */
.tkloto-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.tkloto-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e3e6eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tkloto-header-box {
        padding: 14px;
        margin-bottom: 12px;
    }

    .tkloto-title {
        font-size: 24px;
        gap: 10px;
    }

    .tkloto-title-ico svg {
        width: 22px;
        height: 22px;
    }

    .tkloto-filter-form {
        flex-direction: column;
        gap: 10px;
    }

    .tkloto-filter-item,
    .tkloto-filter-submit {
        width: 100%;
    }

    .tkloto-filter-item select,
    .tkloto-btn-search {
        width: 100%;
    }

    .tkloto-btn-search {
        justify-content: center;
        min-height: 40px;
    }

    .tkloto-table {
        font-size: 13px;
        table-layout: fixed;
    }

    .tkloto-col-num {
        width: 42px;
        text-align: center;
    }

    .tkloto-col-chart {
        min-width: 0;
    }

    .tkloto-col-percent {
        width: 116px;
        text-align: right;
    }

    .tkloto-table thead th,
    .tkloto-table td {
        padding: 8px 6px;
    }

    .tkloto-bar-container {
        height: 24px;
    }

    .tkloto-bar {
        min-width: 24px;
        padding-right: 6px;
    }

    .tkloto-bar-label {
        font-size: 11px;
    }

    .tkloto-col-percent {
        font-size: 12px;
        line-height: 1.25;
        color: #374151;
    }
}

@media (max-width: 480px) {
    .tkloto-title {
        font-size: 20px;
    }

    .tkloto-header-box {
        padding: 15px;
    }

    .tkloto-note {
        padding: 12px;
    }

    .tkloto-note strong {
        font-size: 13px;
    }

    .tkloto-note li {
        font-size: 12px;
    }

    .tkloto-filter-radios {
        gap: 12px;
        flex-wrap: wrap;
    }

    .tkloto-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .tkloto-table thead th {
        font-size: 11px;
        padding: 8px 6px;
        letter-spacing: 0.2px;
    }

    .tkloto-table td {
        padding: 7px 5px;
    }

    .tkloto-col-num {
        width: 38px;
        font-size: 16px;
    }

    .tkloto-col-chart {
        min-width: 0;
    }

    .tkloto-col-percent {
        width: 102px;
        font-size: 13px;
    }
}


/* ===== thong-ke-tan-suat.css ===== */
.tkts-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#tkts-results-wrap {
    position: relative;
}

.tkts-header-box,
.tkts-card {
    background: #f3f4f6;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tkts-header-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tkts-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    color: #0f2347;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkts-title-ico {
    color: #ff6600;
    display: inline-flex;
    transform: translateY(1px);
}

.tkts-title-ico svg {
    width: 24px;
    height: 24px;
}

.tkts-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 210px;
    gap: 10px;
    align-items: end;
}

.tkts-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkts-filter-item label {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

.tkts-filter-item select,
.tkts-filter-item button {
    height: 38px;
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
}

.tkts-filter-item button {
    border: none;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tkts-context {
    background: #e7effa;
    border: 1px solid #b8cbee;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f2347;
}

.tkts-context span {
    color: #ef1f2d;
    font-weight: 700;
}

.tkts-card {
    overflow: hidden;
}

.tkts-card-title {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #d9dee7;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: #0f2347;
    font-weight: 700;
}

.tkts-card-title small {
    font-size: 16px;
    color: #4b5a76;
    font-weight: 600;
}

.tkts-card-title .is-red {
    color: #ef1f2d;
}

.tkts-card-title .is-blue {
    color: #2f63ea;
}

.tkts-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tkts-ico.is-red {
    color: #ef1f2d;
}

.tkts-ico.is-blue {
    color: #2f63ea;
}

.tkts-ico.is-green {
    color: #1d9b4f;
}

.tkts-ico.is-yellow {
    color: #f4ce14;
}

.tkts-table {
    width: 100%;
    border-collapse: collapse;
}

.tkts-table th,
.tkts-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #e2e6ee;
    font-size: 18px;
    text-align: center;
    color: #152238;
}

.tkts-table th {
    background: #f0f2f5;
    color: #223250;
    font-weight: 700;
}

.tkts-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.tkts-table tbody tr:nth-child(even) td {
    background: #f7f8fa;
}

.tkts-table td.is-num {
    color: #ef1f2d;
    font-weight: 700;
}

.tkts-table tr:last-child td {
    border-bottom: none;
}

.tkts-note-box {
    background: #f5f4df;
    border: 1px solid #e3da73;
    border-radius: 8px;
    padding: 12px;
}

.tkts-note-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f2347;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tkts-note-box ul {
    margin: 0;
    padding-left: 20px;
    color: #4d5a72;
    font-size: 18px;
}

.tkts-note-box li {
    margin-bottom: 4px;
}

.tkts-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.tkts-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e3e6eb;
    border-top-color: #ef1f2d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .tkts-title {
        font-size: 36px;
    }

    .tkts-filter-form {
        grid-template-columns: 1fr;
    }

    .tkts-filter-item button {
        width: 100%;
    }

    .tkts-context {
        font-size: 21px;
    }

    .tkts-card-title {
        font-size: 22px;
    }

    .tkts-card-title small {
        font-size: 14px;
    }

    .tkts-table th,
    .tkts-table td {
        font-size: 18px;
    }

    .tkts-note-box h3 {
        font-size: 20px;
    }

    .tkts-note-box ul {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .tkts-title {
        font-size: 32px;
        gap: 10px;
    }

    .tkts-title-ico svg {
        width: 22px;
        height: 22px;
    }

    .tkts-filter-form {
        grid-template-columns: 1fr 1fr 90px;
    }

    .tkts-filter-item label {
        font-size: 13px;
    }

    .tkts-filter-item select,
    .tkts-filter-item button {
        font-size: 14px;
        height: 38px;
    }

    .tkts-filter-item button {
        width: auto;
    }

    .tkts-context {
        font-size: 16px;
    }

    .tkts-card-title {
        font-size: 16px;
        flex-wrap: wrap;
    }

    .tkts-card-title small {
        font-size: 12px;
    }

    .tkts-table th,
    .tkts-table td {
        font-size: 14px;
        padding: 8px 6px;
    }

    .tkts-note-box h3 {
        font-size: 18px;
    }

    .tkts-note-box ul {
        font-size: 14px;
    }
}


/* ===== thong-ke-chu-ky-dan-lo-to.css ===== */
/* ============================================================
   THONG KE CHU KY DAN LO TO
   ============================================================ */

.tkck-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkck-header-box,
.tkck-table-box,
.tkck-selected-info,
.tkck-empty-state,
.tkck-summary-card {
    background: #f3f4f6;
    border: 1px solid #cfd5de;
    border-radius: 8px;
}

.tkck-header-box {
    padding: 14px;
}

.tkck-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    color: #0f2347;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkck-title-ico {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1px);
}

.tkck-title-ico svg {
    width: 24px;
    height: 24px;
}

.tkck-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tkck-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tkck-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkck-filter-item label,
.tkck-quick-label,
.tkck-mode-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.tkck-filter-item select,
.tkck-filter-item input[type="date"] {
    height: 38px;
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

.tkck-date-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    background: #fff;
    height: 38px;
    padding: 0 8px;
    box-sizing: border-box;
}

.tkck-date-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.tkck-date-ico .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.tkck-date-field .tkck-datepicker,
.tkck-date-field .flatpickr-input[readonly],
.tkck-date-field .form-control.input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100% !important;
    width: 95px !important;
    font-size: 14px;
    line-height: 1 !important;
}

.tkck-date-field .flatpickr-input[readonly] {
    cursor: pointer;
}

.tkck-wd {
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
}

.tkck-number-input-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 6px;
}

#tkck-number-input {
    height: 38px;
    border: 1px solid #bcc6d3;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    background: #fff;
}

.tkck-btn-add {
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.tkck-chip-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tkck-chip {
    border: none;
    border-radius: 6px;
    background: #ffe8e8;
    color: #b91c1c;
    font-weight: 700;
    font-size: 13px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tkck-chip i {
    font-style: normal;
    opacity: 0.7;
}

.tkck-clear-btn {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    padding: 4px 6px;
    cursor: pointer;
}

.tkck-quick-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkck-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tkck-quick-btn {
    height: 28px;
    border: 1px solid #c7d0dc;
    border-radius: 6px;
    background: #fff;
    color: #0f2347;
    font-size: 13px;
    padding: 0 10px;
    cursor: pointer;
}

.tkck-mode-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.tkck-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #111827;
}

.tkck-submit-btn {
    width: 140px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.tkck-results-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tkck-empty-state {
    padding: 32px 18px;
    text-align: center;
    color: #4b5563;
}

.tkck-empty-ico {
    font-size: 30px;
    margin-bottom: 8px;
}

.tkck-empty-state p {
    margin: 0 0 6px;
    font-size: 20px;
}

.tkck-empty-state small {
    font-size: 14px;
}

.tkck-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.tkck-summary-card {
    padding: 8px 10px;
    background: #f8fafc;
}

.tkck-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.tkck-card-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tkck-card-icon svg {
    width: 16px;
    height: 16px;
}

.tkck-card-label {
    display: inline-block;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.2;
}

.tkck-summary-card strong {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: #1f3b82;
    white-space: nowrap;
}

.tkck-summary-card .tkck-unit {
    font-size: 0.75em;
    font-weight: 600;
}

.tkck-summary-card.is-total .tkck-card-icon,
.tkck-summary-card.is-total strong {
    color: #2563eb;
}

.tkck-summary-card.is-hit .tkck-card-icon,
.tkck-summary-card.is-hit strong {
    color: #16a34a;
}

.tkck-summary-card.is-current-gap .tkck-card-icon,
.tkck-summary-card.is-current-gap strong {
    color: #dc2626;
}

.tkck-summary-card.is-max-gap .tkck-card-icon,
.tkck-summary-card.is-max-gap strong {
    color: #d97706;
}

.tkck-summary-card.is-avg-gap .tkck-card-icon,
.tkck-summary-card.is-avg-gap strong {
    color: #7c3aed;
}

.tkck-selected-info {
    padding: 10px 12px;
    font-size: 15px;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkck-table-box {
    overflow: hidden;
}

.tkck-history-box {
    margin-top: 2px;
}

.tkck-table-box h2 {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #d7dde7;
    font-size: 22px;
    color: #0f2347;
}

.tkck-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tkck-table th,
.tkck-table td {
    border-bottom: 1px solid #e1e5ec;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    color: #1f2937;
}

.tkck-table th {
    background: #f8fafc;
    font-weight: 700;
}

.tkck-table td:first-child,
.tkck-table th:first-child {
    text-align: left;
    width: 60px;
}

.tkck-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #159147;
    font-size: 13px;
    font-weight: 700;
}

.tkck-pill.is-low {
    background: #dff7e8;
    color: #138f49;
}

.tkck-pill.is-medium {
    background: #fff1d8;
    color: #b7791f;
}

.tkck-pill.is-high {
    background: #ffe3e3;
    color: #cf2e2e;
}

.tkck-history-scroll {
    height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid #e1e5ec;
}

.tkck-history-table {
    margin: 0;
}

.tkck-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

.tkck-history-table th:first-child,
.tkck-history-table td:first-child {
    width: 120px;
}

.tkck-history-table th:nth-child(2),
.tkck-history-table td:nth-child(2) {
    width: 90px;
}

.tkck-history-table td {
    vertical-align: top;
}

.tkck-hit-ratio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    border-radius: 999px;
    background: #dff7e8;
    color: #138f49;
    font-size: 13px;
    font-weight: 700;
}

.tkck-hit-numbers {
    text-align: left;
}

.tkck-hit-numbers .tkck-pill {
    margin: 0 4px 4px 0;
}

.tkck-loading {
    min-height: 120px;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkck-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: tkck-spin 0.8s linear infinite;
}

@keyframes tkck-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .tkck-grid-row {
        grid-template-columns: 1fr 1fr;
    }

    .tkck-grid-row .tkck-filter-item:first-child {
        grid-column: 1 / -1;
    }

    .tkck-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tkck-summary-card strong {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .tkck-title {
        font-size: 28px;
    }

    .tkck-title-ico svg {
        width: 22px;
        height: 22px;
    }

    .tkck-grid-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        align-items: end;
    }

    .tkck-grid-row .tkck-filter-item {
        min-width: 0;
    }

    .tkck-grid-row .tkck-filter-item:first-child {
        grid-column: auto;
    }

    .tkck-filter-item label {
        font-size: 13px;
    }

    .tkck-filter-item select {
        height: 36px;
        padding: 0 7px;
        font-size: 12px;
    }

    .tkck-date-field {
        width: 100%;
        height: 36px;
        padding: 0 6px;
        gap: 4px;
    }

    .tkck-date-field .tkck-datepicker,
    .tkck-date-field .flatpickr-input[readonly],
    .tkck-date-field .form-control.input {
        width: 100% !important;
        font-size: 12px;
    }

    .tkck-wd {
        display: none;
    }

    .tkck-submit-btn {
        width: 100%;
    }

    .tkck-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }


    .tkck-summary-card strong {
        font-size: 24px;
    }

    .tkck-table {
        table-layout: fixed;
    }

    .tkck-table th,
    .tkck-table td {
        font-size: 13px;
        padding: 8px 6px;
    }

    .tkck-table th:nth-child(3),
    .tkck-table td:nth-child(3) {
        width: 24px;
    }

    .tkck-history-scroll {
        height: 260px;
    }

    .tkck-history-table {
        table-layout: fixed;
    }

    .tkck-history-table th:first-child,
    .tkck-history-table td:first-child {
        width: 34%;
    }

    .tkck-history-table th:nth-child(2),
    .tkck-history-table td:nth-child(2) {
        width: 18%;
    }

    .tkck-history-table th,
    .tkck-history-table td {
        padding: 7px 5px;
        font-size: 12px;
    }

    .tkck-history-table th:nth-child(3),
    .tkck-history-table td:nth-child(3) {
        text-align: left;
    }

    .tkck-hit-ratio {
        min-width: 34px;
        height: 22px;
        font-size: 12px;
    }

    .tkck-hit-numbers .tkck-pill {
        min-width: 28px;
        height: 20px;
        font-size: 11px;
        margin: 0 3px 3px 0;
    }
}

@media (max-width: 480px) {
    .tkck-header-box {
        padding: 12px;
    }

    .tkck-title {
        font-size: 24px;
    }

    .tkck-grid-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .tkck-summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .tkck-summary-card strong {
        font-size: 22px;
    }
}

/* ===== thong-ke-dau-duoi-loto ===== */
.tkdd-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkdd-filter-card,
.tkdd-table-card {
    background: #ffffff;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    overflow: hidden;
}

.tkdd-filter-card {
    padding: 10px;
}

.tkdd-title {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f65e62;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tkdd-title-ico {
    display: inline-flex;
    color: #fff;
}

.tkdd-filter-form {
    display: block;
}

.tkdd-filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 1.1fr;
    gap: 10px;
    align-items: end;
}

.tkdd-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkdd-filter-item label {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.tkdd-filter-item select {
    height: 38px;
    border: 1px solid #c7cfda;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
}

.tkdd-date-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.tkdd-date-field {
    width: 100%;
    height: 38px;
    min-height: 38px;
}

.tkdd-date-field .tkdb-datepicker,
.tkdd-date-field .flatpickr-input[readonly],
.tkdd-date-field .form-control.input {
    /* width: 100% !important; */
}

.tkdd-date-sep {
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
}

.tkdd-submit-btn {
    border: none;
    border-radius: 8px;
    height: 38px;
    background: #e3262f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tkdd-table-card h2 {
    margin: 0;
    padding: 10px 12px;
    font-size: 22px;
    color: #fff;
    text-align: center;
    background: #f65e62;
}

.tkdd-range-note {
    margin: 0;
    padding: 6px 12px;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    background: #fff;
    border-bottom: 1px solid #e2e6ee;
}

.tkdd-table-scroll {
    overflow: auto;
}

.tkdd-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}

.tkdd-table th,
.tkdd-table td {
    border-bottom: 1px solid #e2e6ee;
    border-right: 1px solid #e2e6ee;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
}

.tkdd-table th {
    background: #f1f4f8;
    color: #0f172a;
}

.tkdd-table th:first-child,
.tkdd-table td:first-child {
    width: 84px;
}

.tkdd-date-cell {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.tkdd-table td.is-zero {
    color: #c7cdd8;
}

.tkdd-table td.is-low {
    color: #0e9f6e;
}

.tkdd-table td.is-mid {
    color: #1f9f67;
}

.tkdd-table td.is-high {
    color: #ef4444;
}

@media (max-width: 992px) {
    .tkdd-title {
        font-size: 24px;
    }

    .tkdd-filter-grid {
        grid-template-columns: 1fr;
    }

    .tkdd-filter-span-2 {
        grid-column: auto;
    }

    .tkdd-submit-btn {
        width: 100%;
    }

    .tkdd-table-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .tkdd-filter-card {
        padding: 8px;
    }

    .tkdd-title {
        font-size: 20px;
        padding: 8px 10px;
    }

    .tkdd-filter-grid {
        grid-template-columns: 1fr 2.2fr;
        gap: 8px;
        align-items: end;
    }

    .tkdd-filter-grid .tkdd-filter-item {
        min-width: 0;
    }

    .tkdd-filter-grid .tkdd-filter-item select,
    .tkdd-filter-grid .tkdd-date-field {
        width: 100%;
        min-width: 0;
    }

    .tkdd-filter-span-2 {
        grid-column: auto;
    }

    .tkdd-filter-action {
        grid-column: 1 / -1;
    }

    .tkdd-filter-item label {
        font-size: 14px;
    }

    .tkdd-filter-item select {
        height: 38px;
        font-size: 14px;
    }

    .tkdd-date-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tkdd-date-sep {
        display: none;
    }

    .tkdd-date-field .tkdb-datepicker,
    .tkdd-date-field .flatpickr-input[readonly],
    .tkdd-date-field .form-control.input {
        width: 100% !important;
    }

    .tkdd-table-card h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .tkdd-range-note {
        font-size: 12px;
        padding: 5px 8px;
    }

    .tkdd-table {
        min-width: 350px;
    }

    .tkdd-table th,
    .tkdd-table td {
        font-size: 12px;
        padding: 6px 3px;
    }

    .tkdd-table th:first-child,
    .tkdd-table td:first-child {
        width: 80px;
    }

    .tkdd-date-cell {
        font-size: 12px;
    }
}


/* ===== soi-cau-giai-dac-biet ===== */
.scdb-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scdb-filter-card,
.scdb-grid-card,
.scdb-day-card {
    background: #fff;
    border: 1px solid #d7dde8;
    border-radius: 8px;
}

.scdb-filter-card {
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.scdb-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scdb-title-ico {
    display: inline-flex;
    color: #ff7a00;
}

.scdb-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scdb-row {
    display: grid;
    gap: 10px;
    align-items: end;
}

.scdb-row-main {
    grid-template-columns: minmax(180px, 260px) 1fr;
}

.scdb-row-opt {
    grid-template-columns: 1fr 1fr 260px;
}

.scdb-row-submit {
    grid-template-columns: 180px;
}

.scdb-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.scdb-item label {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.scdb-item select {
    height: 38px;
    border: 1px solid #c8d1dd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
}

.scdb-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.scdb-date-field {
    width: 100%;
    height: 38px;
    min-height: 38px;
}

.scdb-date-field .tkdb-datepicker,
.scdb-date-field .flatpickr-input[readonly],
.scdb-date-field .form-control.input {
    width: 50% !important;
}

.scdb-switch-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 38px;
    border: 1px solid #c8d1dd;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
}

.scdb-switch-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.scdb-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.scdb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scdb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 999px;
}

.scdb-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.scdb-switch input:checked + .scdb-slider {
    background-color: #f97316;
}

.scdb-switch input:checked + .scdb-slider:before {
    transform: translateX(18px);
}

.scdb-submit-btn {
    border: none;
    border-radius: 8px;
    height: 38px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.scdb-grid-card {
    overflow: hidden;
}

.scdb-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.scdb-grid-table th,
.scdb-grid-table td {
    border: 1px solid #e4e9f1;
    text-align: center;
    padding: 4px 2px;
}

.scdb-grid-table th {
    width: 72px;
    background: #f7f8fb;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.scdb-cell-num {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.scdb-cell-hit {
    color: #f97316;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.scdb-grid-table td.is-empty .scdb-cell-num,
.scdb-grid-table td.is-empty .scdb-cell-hit {
    color: #c5cedb;
}

.scdb-detail-wrap h2 {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-size: 22px;
    text-align: center;
}

.scdb-day-card {
    overflow: hidden;
    margin-top: 10px;
}

.scdb-day-card h3 {
    margin: 0;
    padding: 8px 12px;
    background: #f3f4f6;
    border-bottom: 1px solid #d7dde8;
    color: #111827;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
}

.scdb-day-table-wrap {
    padding: 0;
}

.scdb-day-table {
    margin: 0;
}

.scdb-day-table .prize-label {
    width: 66px;
    white-space: normal;
}

.scdb-day-table .prize-numbers {
    font-size: 27px;
    font-weight: 900;
}

.scdb-day-table .mb-grid > * {
    font-size: 27px;
    font-weight: 900;
    padding: 10px 0;
}

.scdb-day-table .prize-db .prize-numbers,
.scdb-day-table .prize-db .prize-numbers .hl-2,
.scdb-day-table .prize-db .prize-numbers .hl-number {
    font-size: 40px !important;
}

.scdb-day-table .prize-g8 .prize-numbers,
.scdb-day-table .prize-g8 .prize-numbers .hl-2,
.scdb-day-table .prize-g8 .prize-numbers .hl-number {
    font-size: 40px;
}

.scdb-special-note {
    margin: 0;
    padding: 8px 12px;
    text-align: center;
    font-size: 22px;
    border-top: 1px solid #e2e8f0;
    background: #fffdf8;
}

.scdb-special-note strong {
    color: #374151;
}

.scdb-special-note span {
    color: #f97316;
    font-weight: 700;
}

.scdb-empty-note {
    margin: 10px 0 0;
    background: #f8fafc;
    border: 1px solid #d7dde8;
    color: #4b5563;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .scdb-title {
        font-size: 24px;
    }

    .scdb-row-main,
    .scdb-row-opt,
    .scdb-row-submit {
        grid-template-columns: 1fr;
    }

    .scdb-row-submit {
        width: 100%;
    }

    .scdb-submit-btn {
        width: 100%;
    }

    .scdb-switch-wrap {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .scdb-filter-card {
        padding: 10px 8px;
    }

    .scdb-title {
        font-size: 19px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .scdb-date-row {
        grid-template-columns: 1fr;
    }

    .scdb-item label {
        font-size: 13px;
    }

    .scdb-grid-table th,
    .scdb-grid-table td {
        padding: 3px 1px;
    }

    .scdb-grid-table th {
        width: 52px;
        font-size: 10px;
    }

    .scdb-cell-num,
    .scdb-cell-hit {
        font-size: 10px;
    }

    .scdb-detail-wrap h2 {
        font-size: 17px;
        padding: 8px;
    }

    .scdb-day-card h3 {
        font-size: 13px;
        line-height: 1.3;
        padding: 8px;
    }

    .scdb-day-table .prize-label {
        width: 62px;
        font-size: 15px;
    }

    .scdb-day-table .prize-numbers,
    .scdb-day-table .mb-grid > * {
        font-size: 20px;
    }

    .scdb-day-table .prize-db .prize-numbers,
    .scdb-day-table .prize-db .prize-numbers .hl-2,
    .scdb-day-table .prize-db .prize-numbers .hl-number {
        font-size: 32px !important;
    }

    .scdb-day-table .prize-g8 .prize-numbers,
    .scdb-day-table .prize-g8 .prize-numbers .hl-2,
    .scdb-day-table .prize-g8 .prize-numbers .hl-number {
        font-size: 32px;
    }

    .scdb-special-note {
        font-size: 13px;
        padding: 8px;
    }
}




.scdb-btn-pairs {
    background-color: #d11229;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}
.scdb-btn-pairs:hover {
    background-color: #b00d21;
}

.scdb-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
}

.scdb-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.scdb-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}
.scdb-modal-close:hover {
    color: #000;
}

.scdb-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    color: #d11229;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

.scdb-pairs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.scdb-pair-item {
    background-color: #f7f7f7;
    border: 1px solid #eaeaea;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 15px;
}

.scdb-pair-label {
    font-weight: bold;
    color: #bf0000;
}

.scdb-pair-count {
    color: #333;
}

@media (max-width: 500px) {
    .scdb-pairs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== soi-cau-loto-bach-thu ===== */
.sclbt-page .sclbt-date-row {
    grid-template-columns: 1fr;
}

.sclbt-page .sclbt-row-opt {
    grid-template-columns: 1fr 1fr;
}

.sclbt-summary-note, .sc3cl-summary-note {
    margin: 8px 0 0;
    text-align: center;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.sclbt-loto-direct-wrap {
    padding: 8px 12px 12px;
    border-top: 1px solid #d7dde8;
    background: #fff;
}

.sclbt-loto-direct-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sclbt-loto-direct-table th,
.sclbt-loto-direct-table td {
    border: 1px solid #d7dde8;
    text-align: center;
}

.sclbt-loto-direct-table th {
    background: #f3f4f6;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 4px;
}

.sclbt-loto-direct-table td {
    color: #111827;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
    padding: 8px 2px;
}

@media (max-width: 992px) {
    .sclbt-page .sclbt-row-opt {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sclbt-summary-note {
        font-size: 13px;
    }

    .sclbt-loto-direct-wrap {
        padding: 8px;
    }

    .sclbt-loto-direct-table th {
        font-size: 12px;
    }

    .sclbt-loto-direct-table td {
        font-size: 15px;
        padding: 6px 1px;
    }
}

.sc3cl-grid-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: flex-start;
}
.sc3cl-box-item {
    border: 1px solid #ccc;
    padding: 5px 10px;
    text-align: center;
    min-width: 60px;
}
.sc3cl-box-num {
    color: red;
    font-weight: bold;
    font-size: 16px;
}
.sc3cl-box-hit {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    font-style: italic;
}

/* ===== thong-ke-loto-cung-ve ===== */
.tkcv-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkcv-header-box,
.tkcv-results-wrap,
.tkcv-context {
    background: #fff;
    border: 1px solid #cfd5de;
    border-radius: 8px;
}

.tkcv-header-box {
    padding: 14px;
}

.tkcv-title {
    margin: 0 0 12px;
    color: #0f2347;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.tkcv-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 140px;
    gap: 10px;
    align-items: end;
}

.tkcv-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkcv-filter-item label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.tkcv-filter-item select,
.tkcv-btn-search {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #c7cfda;
    box-sizing: border-box;
    font-size: 14px;
}

.tkcv-filter-item select {
    background: #fff;
    color: #111827;
    padding: 0 10px;
}

.tkcv-filter-submit {
    justify-content: flex-end;
}

.tkcv-btn-search {
    width: 100%;
    border: none;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tkcv-btn-search:hover {
    background: #c91f28;
}

.tkcv-context {
    padding: 10px 12px;
    background: #e7effa;
    border-color: #b8cbee;
    color: #0f172a;
    font-size: 14px;
}

.tkcv-context span {
    color: #d81f2a;
    font-weight: 700;
}

.tkcv-results-wrap {
    padding: 0;
    overflow: hidden;
}

.tkcv-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tkcv-table th,
.tkcv-table td {
    border-bottom: 1px solid #e2e6ee;
    border-right: 1px solid #e2e6ee;
    padding: 5px 6px;
    font-size: 15px;
    text-align: left;
    color: #111827;
    vertical-align: top;
}

.tkcv-table th {
    background: #f0f2f5;
    color: #1e293b;
    font-weight: 700;
    text-align: left;
}

.tkcv-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.tkcv-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.tkcv-table td:nth-child(1),
.tkcv-table th:nth-child(1) {
    width: 100px;
    font-weight: 700;
}

.tkcv-table td:nth-child(2),
.tkcv-table th:nth-child(2) {
    width: 120px;
    text-align: center;
}

.tkcv-table td:nth-child(3),
.tkcv-table th:nth-child(3) {
    text-align: left;
}

.tkcv-count-num {
    color: #d81f2a;
    font-weight: 700;
}

.tkcv-note {
    margin: 12px;
    padding: 10px 12px;
    border: 1px solid #e4d77d;
    background: #fff9db;
    border-radius: 8px;
}

.tkcv-note ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
}

.tkcv-note li {
    margin-bottom: 4px;
}

.tkcv-note li:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .tkcv-title {
        font-size: 28px;
    }

    .tkcv-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .tkcv-filter-submit {
        grid-column: 1 / -1;
    }

    .tkcv-table th,
    .tkcv-table td {
        font-size: 14px;
    }

    .tkcv-table td:nth-child(1),
    .tkcv-table th:nth-child(1) {
        width: 85px;
    }

    .tkcv-table td:nth-child(2),
    .tkcv-table th:nth-child(2) {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .tkcv-header-box {
        padding: 10px;
    }

    .tkcv-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tkcv-filter-form {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tkcv-filter-item label {
        font-size: 13px;
    }

    .tkcv-filter-item select,
    .tkcv-btn-search {
        font-size: 13px;
        height: 36px;
    }

    .tkcv-context {
        font-size: 13px;
    }

    .tkcv-results-wrap {
        overflow-x: visible;
    }

    .tkcv-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .tkcv-table th,
    .tkcv-table td {
        font-size: 13px;
        padding: 7px 6px;
    }

    .tkcv-table td:nth-child(1),
    .tkcv-table th:nth-child(1) {
        width: 85px;
    }

    .tkcv-table td:nth-child(2),
    .tkcv-table th:nth-child(2) {
        width: 72px;
    }

    .tkcv-table td:nth-child(3),
    .tkcv-table th:nth-child(3) {
        width: auto;
    }

    .tkcv-table td:nth-child(3) {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.4;
    }

    .tkcv-note {
        margin: 8px;
        padding: 8px 10px;
    }

    .tkcv-note ul {
        font-size: 13px;
    }
}

/* ===== thong-ke-loto-kep ===== */
.tkkep-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkkep-header-box,
.tkkep-results-wrap {
    background: #fff;
    border: 1px solid #cfd5de;
    border-radius: 8px;
}

.tkkep-header-box {
    padding: 10px;
}

.tkkep-red-title {
    background: #f01526;
    color: #fff;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.tkkep-filter-label {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tkkep-filter-grid {
    display: grid;
    grid-template-columns: 130px 1fr 160px 110px;
    gap: 8px;
    align-items: center;
}

.tkkep-filter-item select,
.tkkep-submit-btn {
    height: 38px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.tkkep-filter-item select {
    border: 1px solid #c8d0db;
    background: #fff;
    color: #1f2937;
    padding: 0 10px;
    width: 100%;
}

.tkkep-submit-btn {
    border: none;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
    width: 100%;
}

.tkkep-context {
    margin: 0;
    color: #ef1f2d;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.tkkep-context span {
    color: #ef1f2d;
}

.tkkep-results-wrap {
    overflow: hidden;
}

.tkkep-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tkkep-table th,
.tkkep-table td {
    border-right: 1px solid #d6dbe3;
    border-bottom: 1px solid #d6dbe3;
    padding: 8px 10px;
    font-size: 15px;
    color: #101827;
    text-align: left;
    vertical-align: top;
}

.tkkep-table th {
    background: #f6f7f9;
    font-weight: 700;
}

.tkkep-table td:nth-child(1),
.tkkep-table th:nth-child(1) {
    width: 100px;
    font-weight: 700;
}

.tkkep-table td:nth-child(2),
.tkkep-table th:nth-child(2) {
    width: 120px;
}

.tkkep-count-num,
.tkkep-table td:nth-child(3) {
    color: #e11d2f;
}

.tkkep-table td:nth-child(3) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

.tkkep-table tr:last-child td {
    border-bottom: none;
}

.tkkep-table th:last-child,
.tkkep-table td:last-child {
    border-right: none;
}

@media (max-width: 992px) {
    .tkkep-red-title {
        font-size: 28px;
    }

    .tkkep-filter-label {
        font-size: 14px;
    }

    .tkkep-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tkkep-context {
        font-size: 28px;
    }

    .tkkep-table th,
    .tkkep-table td {
        font-size: 14px;
    }

    .tkkep-table td:nth-child(1),
    .tkkep-table th:nth-child(1) {
        width: 92px;
    }

    .tkkep-table td:nth-child(2),
    .tkkep-table th:nth-child(2) {
        width: 104px;
    }
}

@media (max-width: 768px) {
    .tkkep-header-box {
        padding: 8px;
    }

    .tkkep-red-title {
        font-size: 18px;
        padding: 8px 10px;
        margin-bottom: 10px;
    }

    .tkkep-filter-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .tkkep-filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tkkep-filter-item select,
    .tkkep-submit-btn {
        height: 36px;
        font-size: 13px;
    }

    .tkkep-context {
        font-size: 20px;
    }

    .tkkep-results-wrap {
        overflow-x: visible;
    }

    .tkkep-table {
        width: 100%;
        min-width: 0;
    }

    .tkkep-table th,
    .tkkep-table td {
        font-size: 13px;
        padding: 7px 6px;
    }

    .tkkep-table td:nth-child(1),
    .tkkep-table th:nth-child(1) {
        width: 80px;
    }

    .tkkep-table td:nth-child(2),
    .tkkep-table th:nth-child(2) {
        width: 84px;
    }

    .tkkep-table td:nth-child(3),
    .tkkep-table th:nth-child(3) {
        width: auto;
    }
}

/* ===== soi-cau-tam-giac-pascal ===== */
.scpas-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scpas-header-box,
.scpas-card {
    background: #fff;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    overflow: hidden;
}

.scpas-header-box {
    padding: 10px;
}

.scpas-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    padding: 4px 8px;
}

.scpas-filter-label {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.scpas-filter-grid {
    display: grid;
    grid-template-columns: 130px 1fr 160px 110px;
    gap: 8px;
}

.scpas-filter-item select,
.scpas-filter-item input,
.scpas-submit-btn {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.scpas-filter-item select,
.scpas-filter-item input {
    border: 1px solid #c8d0db;
    background: #fff;
    color: #1f2937;
    padding: 0 10px;
}

.scpas-submit-btn {
    border: none;
    background: #e3262f;
    color: #fff;
    font-weight: 700;
}

.scpas-card-head {
    border-bottom: 1px solid #d9dee7;
    padding: 10px 16px;
}

.scpas-card-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    color: #0f2347;
}

.scpas-sub {
    margin-top: 4px;
    font-size: 20px;
    color: #334155;
}

.scpas-card-body {
    padding: 12px 16px 16px;
}

.scpas-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 22px;
}

.scpas-meta-row strong {
    color: #0f172a;
}

.scpas-triangle-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scpas-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.scpas-ball,
.scpas-result-ball {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.scpas-ball {
    background: #ef1f2d;
}

.scpas-result-title {
    margin-top: 12px;
    text-align: center;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
}

.scpas-result-row {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.scpas-result-ball {
    width: 54px;
    height: 54px;
    font-size: 36px;
    background: #188a57;
}

@media (max-width: 992px) {
    .scpas-title {
        font-size: 28px;
    }

    .scpas-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scpas-card-head h2 {
        font-size: 24px;
    }

    .scpas-sub {
        font-size: 18px;
    }

    .scpas-meta-row {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .scpas-header-box {
        padding: 8px;
    }

    .scpas-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .scpas-filter-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .scpas-filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .scpas-filter-item select,
    .scpas-filter-item input,
    .scpas-submit-btn {
        height: 36px;
        font-size: 13px;
    }

    .scpas-card-head {
        padding: 8px 10px;
    }

    .scpas-card-head h2 {
        font-size: 18px;
    }

    .scpas-sub {
        font-size: 13px;
    }

    .scpas-card-body {
        padding: 8px 8px 12px;
    }

    .scpas-meta-row {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
    }

    .scpas-row {
        gap: 4px;
    }

    .scpas-ball {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .scpas-result-title {
        font-size: 24px;
    }

    .scpas-result-ball {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }
}

/* ===== thong-ke-chu-ky.css ===== */
.tkcky-page-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.tkcky-page-content {
    width: 100%;
}

.tkcky-page-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding: 0;
}

.tkcky-filter-section {
    background: #f3f4f6;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tkcky-filter-form {
    display: block;
    width: 100%;
}

.tkcky-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.tkcky-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.tkcky-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.tkcky-select,
.tkcky-submit-btn {
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #999;
    border-radius: 8px;
    height: 38px;
    background: #fff;
    color: #333;
}

.tkcky-select {
    border: 1px solid #c8d0db;
    background: #fff;
    color: #1f2937;
    padding: 0 10px;
    width: 100%;
}

.tkcky-submit-btn {
    background: #e3262f;
    color: #fff;
    border-color: #e3262f;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 24px;
    min-width: 100px;
}

.tkcky-submit-btn:hover {
    background: #e3262f;
    border-color: #ff6600;
}

.tkcky-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
    user-select: none;
}

.tkcky-table-wrapper:active {
    cursor: grabbing;
}

.tkcky-table {
    width: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.tkcky-table th,
.tkcky-table td {
    padding: 4px 3px;
    text-align: center;
    border: 1px solid #e5e7eb;
    word-wrap: break-word;
    line-height: 1.3;
}

.tkcky-table thead {
    background: #f3f4f6;
}

.tkcky-table thead th {
    font-weight: 700;
    color: #1f2937;
    padding: 4px 3px;
    border: none;
}

.tkcky-number-header,
.tkcky-number-cell {
    font-weight: 700;
    background: #f9fafb;
    text-align: center;
    width: 60px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #cfd5de;
}

.tkcky-date-header {
    font-weight: 700;
    white-space: nowrap;
}

.tkcky-data-cell {
    text-align: center;
    color: #666;
}

.tkcky-data-cell.tkcky-appeared {
    background: #fef3c7;
    color: #b45309;
    font-weight: 600;
}

.tkcky-table tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 992px) {
    .tkcky-page-title {
        font-size: 28px;
    }

    .tkcky-filter-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .tkcky-table {
        font-size: 13px;
    }

    .tkcky-table th,
    .tkcky-table td {
        padding: 3px 2px;
    }

    .tkcky-number-header,
    .tkcky-number-cell {
        width: 45px;
    }

    .tkcky-date-header,
    .tkcky-data-cell {
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .tkcky-page-container {
        padding: 12px;
    }

    .tkcky-page-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .tkcky-filter-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .tkcky-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tkcky-filter-group {
        width: 100%;
    }

    .tkcky-filter-group label {
        font-size: 13px;
        margin-bottom: 6px;
        display: none;
    }

    .tkcky-select,
    .tkcky-submit-btn {
        width: 100%;
        font-size: 13px;
        height: 36px;
        padding: 6px 8px;
    }

    .tkcky-table {
        font-size: 11px;
    }

    .tkcky-table th,
    .tkcky-table td {
        padding: 2px 2px;
    }

    .tkcky-number-header,
    .tkcky-number-cell {
        width: 40px;
    }

    .tkcky-date-header,
    .tkcky-data-cell {
        min-width: 35px;
    }
}
