/* ═══════════════════════════════════════════════════════════
   STATISTIC PAGES CSS
   Áp dụng cho tất cả 6 trang thống kê × 4 devices
   File: /cdn/assets/all/statistic.css
   ═══════════════════════════════════════════════════════════ */

/* === BLOCK CONTAINER === */
.statistic-logan .center-block,
body[class*="statistic-"] .center-block.seo-content-block {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* === BLOCK HEADER — gradient hồng-cam === */
.statistic-logan .center-block .block-header,
body[class*="statistic-"] .seo-content-block .block-header {
    background: linear-gradient(90deg, #e91e63 0%, #ff5722 100%) !important;
    color: #fff !important;
    text-align: center;
    font-weight: bold;
    padding: 14px 15px;
    font-size: 16px;
    border-radius: 0;
    letter-spacing: .3px;
}
.statistic-logan .center-block .block-header a,
body[class*="statistic-"] .seo-content-block .block-header a {
    color: #fff !important;
}

/* Override luân phiên màu */
.statistic-logan .center-block:nth-of-type(3n+2) .block-header,
.statistic-logan .center-block:nth-of-type(3n) .block-header {
    background: linear-gradient(90deg, #e91e63 0%, #ff5722 100%) !important;
}

/* ═══════════════════════════════════════════════════════════
   FORM (Chọn Tỉnh + Chọn biên độ + Nút)
   ═══════════════════════════════════════════════════════════ */
.tk-form {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.tk-form .form-group-inline {
    display: inline-block;
    vertical-align: bottom;
    margin: 0 10px 10px 0;
}
.tk-form .form-group-inline label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}
.tk-form .form-group-inline select {
    min-width: 200px;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    height: 38px;
    transition: border-color .15s, box-shadow .15s;
}
.tk-form .form-group-inline select:focus {
    border-color: #ed1c24;
    box-shadow: 0 0 0 3px rgba(237,28,36,.1);
}
.tk-form .form-group-inline select:hover {
    border-color: #bbb;
}
.tk-form .text-center {
    display: inline-block;
    vertical-align: bottom;
    margin-bottom: 10px;
}
.tk-form .btn-primary {
    padding: 0 28px;
    background: #ed1c24;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    height: 38px;
    line-height: 38px;
    transition: background .15s;
}
.tk-form .btn-primary:hover {
    background: #c62828;
}

/* ═══════════════════════════════════════════════════════════
   TABLE LO GAN (top 10)
   ═══════════════════════════════════════════════════════════ */
.tbl-logan {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    font-weight: normal;
}
.tbl-logan thead td {
    background: #f7f7f7;
    color: #c00;
    font-weight: bold;
    font-size: 15px;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #e8e8e8;
}
.tbl-logan tbody td {
    padding: 11px 8px;
    text-align: center;
    font-size: 15px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
.tbl-logan tbody td:last-child {
    border-right: none;
}
.tbl-logan tbody tr:nth-child(even) {
    background: #fafafa;
}
.tbl-logan tbody tr:hover {
    background: #fff8f0;
}
.tbl-logan tbody td:nth-of-type(1) {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}
.tbl-logan tbody td:nth-of-type(3) {
    color: #e91e63;
    font-size: 16px;
    font-weight: bold;
}
.tbl-logan tbody td:nth-of-type(4) {
    color: #666;
    font-weight: normal;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   BẢNG GAN CỰC ĐẠI 00-99
   ═══════════════════════════════════════════════════════════ */
.tbl-cucdai {
    font-size: 16px !important;
}
.tbl-cucdai tr td {
    padding: 8px 5px !important;
    font-size: 15px !important;
}

/* ═══════════════════════════════════════════════════════════
   BLOCK BODY + DESCRIPTION
   ═══════════════════════════════════════════════════════════ */
.statistic-logan .center-block .block-body {
    padding: 2px;
}
.description-gdb {
    padding: 12px;
    line-height: 1.5em;
    font-size: 14px;
    color: #444;
    background: #fff;
}
.description-gdb p {
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   SEO CONTENT BLOCK (giải thích + FAQ)
   ═══════════════════════════════════════════════════════════ */
.seo-content-block .seo-body {
    padding: 18px 20px;
    line-height: 1.65;
    color: #333;
    font-size: 14.5px;
}
.seo-content-block .seo-h2 {
    font-size: 18px;
    font-weight: bold;
    color: #c2185b;
    margin: 22px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #f5e1ea;
}
.seo-content-block .seo-h2:first-child {
    margin-top: 0;
}
.seo-content-block p {
    margin: 0 0 12px 0;
}
.seo-content-block strong {
    color: #222;
}
.seo-content-block a {
    color: #c2185b;
    text-decoration: underline;
    font-weight: 500;
}
.seo-content-block a:hover {
    color: #ed1c24;
}

/* SEO Steps */
.seo-steps {
    margin: 15px 0;
}
.seo-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #e91e63;
}
.seo-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #ff5722);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.seo-step strong {
    display: block;
    color: #c2185b;
    font-size: 15px;
    margin-bottom: 4px;
}
.seo-step p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* SEO FAQ accordion */
.seo-faq {
    margin-top: 10px;
}
.seo-faq-item {
    margin-bottom: 8px;
    background: #fafafa;
    border: 1px solid #f0e0e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s;
}
.seo-faq-item:hover {
    border-color: #e91e63;
}
.seo-faq-item summary {
    padding: 13px 16px;
    font-weight: 600;
    cursor: pointer;
    color: #c2185b;
    font-size: 14.5px;
    outline: none;
    list-style: none;
    position: relative;
    padding-right: 40px;
    user-select: none;
}
.seo-faq-item summary::-webkit-details-marker {
    display: none;
}
.seo-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: bold;
    color: #e91e63;
    transition: transform .2s;
}
.seo-faq-item[open] summary::after {
    content: "−";
}
.seo-faq-item summary:hover {
    background: #fff5f8;
}
.seo-faq-item[open] summary {
    background: linear-gradient(90deg, #fde8ef, #ffe7dd);
    border-bottom: 1px solid #f0e0e8;
}
.seo-faq-item p {
    padding: 12px 16px;
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

/* SEO Disclaimer */
.seo-disclaimer {
    margin-top: 20px;
    padding: 14px;
    background: #fff8e1;
    border-left: 4px solid #ffa000;
    border-radius: 6px;
    font-size: 13.5px;
    color: #5d4037;
    line-height: 1.55;
}
.seo-disclaimer strong {
    color: #e65100;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .statistic-logan .center-block .block-header,
    body[class*="statistic-"] .seo-content-block .block-header {
        font-size: 14px;
        padding: 12px;
    }
    .tk-form {
        padding: 10px;
    }
    .tk-form .form-group-inline {
        display: block;
        margin: 0 0 12px 0;
        width: 100%;
    }
    .tk-form .form-group-inline select {
        width: 100%;
        min-width: 0;
    }
    .tk-form .text-center {
        display: block;
        text-align: center;
    }
    .tk-form .btn-primary {
        width: 100%;
    }
    .tbl-logan thead td,
    .tbl-logan tbody td {
        font-size: 14px;
        padding: 9px 5px;
    }
    .tbl-cucdai tr td {
        padding: 6px 3px !important;
        font-size: 13px !important;
    }
    .statistic-logan .center-block .block-body {
        padding: 8px;
        overflow-x: auto;
    }

    /* SEO mobile */
    .seo-content-block .seo-body {
        padding: 14px;
        font-size: 14px;
    }
    .seo-content-block .seo-h2 {
        font-size: 16px;
    }
    .seo-step {
        padding: 10px;
        gap: 10px;
    }
    .seo-step-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .seo-step strong {
        font-size: 14px;
    }
    .seo-faq-item summary {
        font-size: 14px;
        padding: 11px 38px 11px 14px;
    }
    .seo-faq-item p {
        padding: 10px 14px;
        font-size: 13.5px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE/TABLET — STATISTIC PAGES (app-form structure)
   Áp dụng cho view mobile (app/) & tablet/
   ═══════════════════════════════════════════════════════════ */

/* === RESULT BLOCK CONTAINER === */
body[class*="statistic-"] .result-block {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
}

/* === RESULT HEADER — gradient hồng cam === */
body[class*="statistic-"] .result-block .result-header {
    background: linear-gradient(90deg, #e91e63 0%, #ff5722 100%) !important;
    color: #fff !important;
    text-align: center;
    padding: 13px 12px;
    font-size: 15px;
    font-weight: bold;
}
body[class*="statistic-"] .result-block .result-header h2,
body[class*="statistic-"] .result-block .result-header strong {
    color: #fff !important;
    margin: 0;
    font-size: 15px;
    font-weight: bold;
}

/* === DESCRIPTION === */
body[class*="statistic-"] .result-block .description {
    padding: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}
body[class*="statistic-"] .result-block .description p {
    margin: 0 0 8px 0;
}

/* === APP-FORM-CARD (search tỉnh) === */
body[class*="statistic-"] .app-form-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
body[class*="statistic-"] .app-form-card .card-header label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
body[class*="statistic-"] .app-form-card .card-header .guide {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 2px;
}
body[class*="statistic-"] .app-form-card .selected-value span {
    color: #e91e63;
    font-weight: bold;
    font-size: 14px;
}
body[class*="statistic-"] .app-form-card .search-dropdown {
    position: relative;
    margin-top: 8px;
}
body[class*="statistic-"] .app-form-card .search-dropdown input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    height: 36px;
    box-sizing: border-box;
}
body[class*="statistic-"] .app-form-card .search-dropdown input:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233,30,99,.1);
}
body[class*="statistic-"] .app-form-card .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* === APP-FORM-GROUP (Biên độ) === */
body[class*="statistic-"] .app-form-group {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
body[class*="statistic-"] .app-form-group > i.fa-calendar {
    color: #e91e63;
    font-size: 18px;
    flex-shrink: 0;
}
body[class*="statistic-"] .app-form-group .label {
    flex: 1;
}
body[class*="statistic-"] .app-form-group .label label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: block;
}
body[class*="statistic-"] .app-form-group .label .guide {
    font-size: 11px;
    color: #999;
}
body[class*="statistic-"] .app-form-group .value {
    font-weight: bold;
    color: #e91e63;
    font-size: 16px;
    margin-right: 24px;
}
body[class*="statistic-"] .app-form-group select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* === APP-FORM-BTNS (Nút Xem thống kê) === */
body[class*="statistic-"] .app-form-btns {
    text-align: center;
    margin-top: 12px;
}
body[class*="statistic-"] .app-form-btns button {
    width: 100%;
    padding: 12px;
    background: #ed1c24;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
}
body[class*="statistic-"] .app-form-btns button:hover,
body[class*="statistic-"] .app-form-btns button:active {
    background: #c62828;
}
body[class*="statistic-"] .app-form-btns button i {
    margin-right: 6px;
}

/* === BLOCK BODY (chứa tables) === */
body[class*="statistic-"] .result-block .block-body {
    padding: 10px;
}

/* ═══════════════════════════════════════════════════════════
   FIX — block-header trong mọi view (desktop/mobile/tablet)
   Bảng "Bảng gan cực đại 00-99" trong app/logan.volt
   dùng .center-block > .block-header — cần force gradient
   ═══════════════════════════════════════════════════════════ */
body[class*="statistic-"] .block-header,
body.statistic-logan .block-header,
body.statistic-logan .center-block .block-header,
body[class*="statistic-"] .center-block .block-header {
    background: linear-gradient(90deg, #e91e63 0%, #ff5722 100%) !important;
    color: #fff !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 13px 12px !important;
    font-size: 15px !important;
    border-radius: 0 !important;
    letter-spacing: .3px !important;
}
body[class*="statistic-"] .block-header a,
body[class*="statistic-"] .center-block .block-header a {
    color: #fff !important;
}

/* Mobile padding nhỏ hơn */
@media (max-width: 576px) {
    body[class*="statistic-"] .block-header,
    body[class*="statistic-"] .center-block .block-header {
        font-size: 14px !important;
        padding: 11px 10px !important;
    }
}
