/* ========================================================
   SOI CẦU CHUẨN 247 - SCOPED 3-COLUMN APP STYLESHEET
   100% cách ly trong #soicau-home-app, không ghi đè theme Flatsome
   ======================================================== */

#soicau-home-app {
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #212529;
    box-sizing: border-box;
}
#soicau-home-app *, #soicau-home-app *::before, #soicau-home-app *::after {
    box-sizing: border-box;
}

/* 3-Column Grid Root */
#soicau-home-app > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
#soicau-home-app [class*="col-"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
    position: relative;
    width: 100%;
}

@media (min-width: 1200px) {
    #soicau-home-app > .row {
        flex-wrap: nowrap !important;
    }
    #soicau-home-app .col-xl-200 {
        flex: 0 0 200px !important;
        max-width: 200px !important;
        width: 200px !important;
        order: 1 !important;
    }
    #soicau-home-app .col-xl-610 {
        flex: 0 0 610px !important;
        max-width: 610px !important;
        width: 610px !important;
        order: 2 !important;
    }
    #soicau-home-app .col-xl-300 {
        flex: 0 0 300px !important;
        max-width: 300px !important;
        width: 300px !important;
        order: 3 !important;
    }
}

/* Nested Grid inside center column */
#soicau-home-app .col-xl-610 .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    max-width: 100% !important;
    width: auto !important;
}

@media (max-width: 1199.98px) {
    #soicau-home-app .col-xl-610 { flex: 0 0 100% !important; max-width: 100% !important; order: 1 !important; margin-bottom: 20px; }
    #soicau-home-app .col-xl-300 { flex: 0 0 100% !important; max-width: 100% !important; order: 2 !important; margin-bottom: 20px; }
    #soicau-home-app .col-xl-200 { flex: 0 0 100% !important; max-width: 100% !important; order: 3 !important; }
}

/* Nested Grid Utilities */
#soicau-home-app .col-12 { flex: 0 0 100% !important; max-width: 100% !important; }
#soicau-home-app .col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
#soicau-home-app .col-4 { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; }
#soicau-home-app .col-3 { flex: 0 0 25% !important; max-width: 25% !important; }
#soicau-home-app .col-2 { flex: 0 0 16.6667% !important; max-width: 16.6667% !important; }

/* Base Display & Flex */
#soicau-home-app .d-none { display: none !important; }
#soicau-home-app .d-block { display: block !important; }
#soicau-home-app .d-flex { display: flex !important; }
#soicau-home-app .d-inline { display: inline !important; }
#soicau-home-app .d-inline-block { display: inline-block !important; }
#soicau-home-app .flex-column { flex-direction: column !important; }
#soicau-home-app .flex-wrap { flex-wrap: wrap !important; }
#soicau-home-app .justify-content-between { justify-content: space-between !important; }
#soicau-home-app .justify-content-center { justify-content: center !important; }
#soicau-home-app .align-items-center { align-items: center !important; }

@media (min-width: 992px) {
    #soicau-home-app .col-lg-6 { flex: 0 0 50% !important; max-width: 50% !important; }
    #soicau-home-app .col-lg-4 { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; }
    #soicau-home-app .col-lg-8 { flex: 0 0 66.6667% !important; max-width: 66.6667% !important; }
    #soicau-home-app .d-lg-block,
    #soicau-home-app .d-none.d-lg-block { display: block !important; }
    #soicau-home-app .d-lg-none { display: none !important; }
    #soicau-home-app .d-lg-flex { display: flex !important; }
}

@media (max-width: 991.98px) {
    #soicau-home-app .d-lg-block { display: none !important; }
    #soicau-home-app .d-lg-none { display: block !important; }
}

/* Colors Exact Match soicau247.com */
#soicau-home-app .bg-red1 { background-color: #ED1C24 !important; }
#soicau-home-app .bg-red2 { background-color: #D0021B !important; }
#soicau-home-app .bg-blue1 { background-color: #004593 !important; }
#soicau-home-app .bg-blue2 { background-color: #EFFAFF !important; }
#soicau-home-app .bg-black5 { background-color: #4A4A4A !important; }
#soicau-home-app .bg-orange { background-color: #fd7e14 !important; }
#soicau-home-app .bg-white { background-color: #ffffff !important; }
#soicau-home-app .text-red, #soicau-home-app .text-red1 { color: #ED1C24 !important; }
#soicau-home-app .text-red2, #soicau-home-app .text-red3 { color: #D0021B !important; }
#soicau-home-app .text-white { color: #ffffff !important; }
#soicau-home-app .text-blue1 { color: #004593 !important; }
#soicau-home-app .text-blue2 { color: #EFFAFF !important; }
#soicau-home-app .text-black, #soicau-home-app .text-black1 { color: #212529 !important; }
#soicau-home-app .hover-text-blue1:hover,
#soicau-home-app .hover-text-blue1:focus {
    color: #ffffff !important;
    background-color: #004593 !important;
}

/* Typography */
#soicau-home-app .font-12 { font-size: 12px !important; }
#soicau-home-app .font-13 { font-size: 13px !important; }
#soicau-home-app .font-14 { font-size: 14px !important; }
#soicau-home-app .font-15 { font-size: 15px !important; }
#soicau-home-app .font-16 { font-size: 16px !important; }
#soicau-home-app .font-18 { font-size: 18px !important; }
#soicau-home-app .font-20 { font-size: 20px !important; }
#soicau-home-app .font-24 { font-size: 24px !important; }
#soicau-home-app .font-28 { font-size: 28px !important; }
#soicau-home-app .font-weight-bold { font-weight: 700 !important; }
#soicau-home-app .text-uppercase { text-transform: uppercase !important; }
#soicau-home-app .text-center { text-align: center !important; }
#soicau-home-app .text-justify { text-align: justify !important; }

/* Spacing */
#soicau-home-app .m-0 { margin: 0 !important; }
#soicau-home-app .mt-1 { margin-top: 0.25rem !important; }
#soicau-home-app .mt-2 { margin-top: 0.5rem !important; }
#soicau-home-app .mt-3 { margin-top: 1rem !important; }
#soicau-home-app .mt-4 { margin-top: 1.5rem !important; }
#soicau-home-app .mb-0 { margin-bottom: 0 !important; }
#soicau-home-app .mb-1 { margin-bottom: 0.25rem !important; }
#soicau-home-app .mb-2 { margin-bottom: 0.5rem !important; }
#soicau-home-app .mb-3 { margin-bottom: 1rem !important; }
#soicau-home-app .my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
#soicau-home-app .my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
#soicau-home-app .p-0 { padding: 0 !important; }
#soicau-home-app .p-1 { padding: 0.25rem !important; }
#soicau-home-app .p-2 { padding: 0.5rem !important; }
#soicau-home-app .p-3 { padding: 1rem !important; }
#soicau-home-app .py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
#soicau-home-app .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
#soicau-home-app .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
#soicau-home-app .px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
#soicau-home-app .px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
#soicau-home-app .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
#soicau-home-app .pl-2 { padding-left: 0.5rem !important; }
#soicau-home-app .pr-2 { padding-right: 0.5rem !important; }
#soicau-home-app .pb-1 { padding-bottom: 0.25rem !important; }
#soicau-home-app .pb-2 { padding-bottom: 0.5rem !important; }
#soicau-home-app .pt-2 { padding-top: 0.5rem !important; }
#soicau-home-app .pt-3 { padding-top: 1rem !important; }
#soicau-home-app .h-35px { height: 35px !important; line-height: 35px !important; }
#soicau-home-app .h-42px { height: 42px !important; line-height: 42px !important; }

/* Borders & Cards */
#soicau-home-app .border { border: 1px solid #dee2e6 !important; }
#soicau-home-app .border-top { border-top: 1px solid #dee2e6 !important; }
#soicau-home-app .border-bottom { border-bottom: 1px solid #dee2e6 !important; }
#soicau-home-app .rounded { border-radius: 4px !important; }
#soicau-home-app .rounded-top { border-top-left-radius: 4px !important; border-top-right-radius: 4px !important; }
#soicau-home-app .border-radius-4 { border-radius: 4px !important; }
#soicau-home-app .border-radius-top { border-top-right-radius: 4px !important; border-top-left-radius: 4px !important; }
#soicau-home-app .shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }

/* Asides & Sidebars */
#soicau-home-app aside {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}
#soicau-home-app .aside-title-blue,
#soicau-home-app .title-blue,
#soicau-home-app .title-bg-blue {
    background: #004593 !important;
    color: #ffffff !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
}
#soicau-home-app .aside-title-blue a,
#soicau-home-app .title-blue a,
#soicau-home-app .title-bg-blue a,
#soicau-home-app .aside-title-blue a.text-blue1 {
    color: #ffffff !important;
    text-decoration: none !important;
}
#soicau-home-app .aside-title-blue a:hover {
    color: #ffeb3b !important;
}
#soicau-home-app .aside-title-red {
    background: #D0021B !important;
    color: #ffffff !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
}
#soicau-home-app .aside-title-red a,
#soicau-home-app .aside-title-red a.text-red2 {
    color: #ffffff !important;
    text-decoration: none !important;
}
#soicau-home-app .aside-title-red a:hover {
    color: #ffeb3b !important;
}
#soicau-home-app .aside-province ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#soicau-home-app .aside-province li {
    border-bottom: 1px solid #f1f3f5 !important;
    padding: 7px 12px !important;
}
#soicau-home-app .aside-province li:last-child {
    border-bottom: none !important;
}
#soicau-home-app .aside-province a {
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    display: block !important;
    transition: color 0.15s !important;
}
#soicau-home-app .aside-province a:hover {
    color: #D0021B !important;
    font-weight: 600 !important;
}
#soicau-home-app .vip {
    background: #D0021B !important;
    color: #ffffff !important;
    font-size: 10px !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}
#soicau-home-app .vip::after { content: "VIP"; }
#soicau-home-app .new {
    background: #ffc107 !important;
    color: #212529 !important;
    font-size: 10px !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}
#soicau-home-app .new::after { content: "MỚI"; }

/* Star list */
#soicau-home-app .style-list-star {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#soicau-home-app .style-list-star li {
    padding: 6px 0 !important;
    position: relative !important;
    padding-left: 18px !important;
}
#soicau-home-app .style-list-star li::before {
    content: "★";
    color: #D0021B !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 12px !important;
}
#soicau-home-app .style-list-star a {
    color: #212529 !important;
    text-decoration: none !important;
}
#soicau-home-app .style-list-star a:hover {
    color: #D0021B !important;
}

/* Tabs 3 Miền */
#soicau-home-app .nav-menu-result-home {
    display: flex !important;
    list-style: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
#soicau-home-app .nav-menu-result-home .nav-item {
    flex: 1 1 0 !important;
    margin: 0 !important;
}
#soicau-home-app .nav-menu-result-home .nav-link {
    display: block !important;
    padding: 10px 15px !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: #004593 !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}
#soicau-home-app .nav-menu-result-home .nav-link.active,
#soicau-home-app .nav-menu-result-home .nav-link:hover {
    background: #D0021B !important;
}

#soicau-home-app .tab-content > .tab-pane {
    display: none !important;
}
#soicau-home-app .tab-content > .tab-pane.active,
#soicau-home-app .tab-content > .tab-pane.show {
    display: block !important;
}

/* Result Tables Shared */
#soicau-home-app .result-single,
#soicau-home-app .result-multi {
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
}
#soicau-home-app .breadcrumb-table {
    background: #f8f9fa !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #dee2e6 !important;
}
#soicau-home-app .breadcrumb-table-title {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666666 !important;
}
#soicau-home-app .breadcrumb-table-title a {
    color: #004593 !important;
    text-decoration: none !important;
}
#soicau-home-app .table-flex-border {
    border: 1px solid #dee2e6 !important;
    overflow-x: auto !important;
}
#soicau-home-app .table-flex, #soicau-home-app .table-result {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* Result Single (XSMB 1 Đài) */
#soicau-home-app .result-single table.table-flex tbody tr {
    border-bottom: 1px solid #dee2e6 !important;
}
#soicau-home-app .result-single table tbody tr td:first-child {
    width: 15% !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #004593 !important;
    font-weight: bold !important;
    background: #f8f9fa !important;
}
#soicau-home-app .result-single table tbody tr:not(:first-child) td:last-child {
    color: #3E3F42 !important;
    font-size: 20px !important;
    line-height: 1.8rem !important;
    text-align: center !important;
}
#soicau-home-app .result-single table tbody tr:nth-child(2) td:last-child {
    font-size: 28px !important;
    color: #ff0c2a !important;
    font-weight: bold !important;
    line-height: 3.3rem !important;
}
#soicau-home-app .result-single table tbody tr:nth-child(4) td:last-child > span {
    width: 48% !important;
    display: inline-block !important;
}
#soicau-home-app .result-single table tbody tr:nth-child(5) td:last-child > span,
#soicau-home-app .result-single table tbody tr:nth-child(7) td:last-child > span,
#soicau-home-app .result-single table tbody tr:nth-child(8) td:last-child > span {
    width: 32% !important;
    display: inline-block !important;
}
#soicau-home-app .result-single table tbody tr:nth-child(6) td:last-child > span,
#soicau-home-app .result-single table tbody tr:nth-child(9) td:last-child > span {
    width: 22% !important;
    display: inline-block !important;
}

/* Result Multi (XSMT / XSMN Nhiều Đài) */
#soicau-home-app .result-multi table.table-flex tbody tr {
    border-bottom: 1px solid #dee2e6 !important;
    display: flex !important;
}
#soicau-home-app .result-multi table tbody tr td:first-child {
    width: 12% !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: bold !important;
    color: #004593 !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#soicau-home-app .result-multi table.table-flex tbody tr td:not(:first-child) {
    flex-grow: 1 !important;
    height: 100% !important;
    width: 28% !important;
    border-left: 1px solid #dee2e6 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 4px 2px !important;
}
#soicau-home-app .result-multi table tbody tr:first-child td a {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #3E3F42 !important;
    text-decoration: none !important;
}
#soicau-home-app .result-multi table tbody tr:not(:first-child) td:not(:first-child) > span {
    font-size: 20px !important;
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    display: block !important;
}
#soicau-home-app .result-multi table tbody tr:nth-child(2) td:not(:first-child) > span,
#soicau-home-app .result-multi table tbody tr:last-child td:not(:first-child) > span {
    color: #ff0c2a !important;
    font-weight: bold !important;
}
#soicau-home-app .result-multi table tbody tr:last-child td:not(:first-child) > span {
    font-size: 24px !important;
}

/* Loto đầu đuôi */
#soicau-home-app .table-loto {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 10px !important;
}
#soicau-home-app .table-loto th, #soicau-home-app .table-loto td {
    border: 1px solid #dee2e6 !important;
    padding: 5px 8px !important;
    text-align: center !important;
    font-size: 13px !important;
}
#soicau-home-app .table-loto th {
    background: #f1f3f5 !important;
    color: #004593 !important;
    font-weight: 700 !important;
}

/* Prediction Badges & Boxes */
#soicau-home-app .box-item-rbk {
    display: flex !important;
    width: 60px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    color: #004593 !important;
    transition: all 0.2s !important;
}
#soicau-home-app .block-number {
    display: inline-block !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    color: #D0021B !important;
}

/* SEO Article at Bottom */
#soicau-home-app .soicau-home-seo-article {
    margin-top: 25px !important;
    padding-top: 20px !important;
    border-top: 2px solid #dee2e6 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #333333 !important;
}
#soicau-home-app .soicau-home-seo-article h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #004593 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}
#soicau-home-app .soicau-home-seo-article h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #D0021B !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
}
#soicau-home-app .soicau-home-seo-article table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
}
#soicau-home-app .soicau-home-seo-article th,
#soicau-home-app .soicau-home-seo-article td {
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
}
