/**
 * TuiHocTA Custom Styles
 *
 * Modules:
 * 1. Market Breadth
 * 2. Strong Stocks
 * 3. Responsive
 * 4. Accessibility
 */


/* ==================================================
   1. MARKET BREADTH — GIÁ TRỊ PHẦN TRĂM
================================================== */

#breadth-ma50-day,
#breadth-ma200-day,
#breadth-ma26-week,
#breadth-ma52-week {
    color: #0f172a !important;
    font-size: clamp(26px, 2.1vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
    margin-top: 7px !important;
    margin-bottom: 0 !important;
}


/* ==================================================
   2. MARKET BREADTH — CARD
================================================== */

body.home .wp-block-group:has(> #breadth-ma50-day),
body.home .wp-block-group:has(> #breadth-ma200-day),
body.home .wp-block-group:has(> #breadth-ma26-week),
body.home .wp-block-group:has(> #breadth-ma52-week) {
    box-sizing: border-box;
    padding-bottom: 17px !important;

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}


/* Chỉ hover trên thiết bị có chuột */

@media (hover: hover) and (pointer: fine) {
    body.home .wp-block-group:has(> #breadth-ma50-day):hover,
    body.home .wp-block-group:has(> #breadth-ma200-day):hover,
    body.home .wp-block-group:has(> #breadth-ma26-week):hover,
    body.home .wp-block-group:has(> #breadth-ma52-week):hover {
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, 0.28) !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    }
}


/* ==================================================
   3. MARKET BREADTH — TRẠNG THÁI
================================================== */

.tuihocta-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-weight: 600;
    line-height: 1.3;
}

.tuihocta-status-dot {
    --status-color: #64748b;

    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;

    border-radius: 999px;
    background-color: var(--status-color);

    border: 2px solid rgba(255, 255, 255, 0.94);

    box-shadow:
        0 0 0 2px var(--status-color),
        0 0 8px color-mix(
            in srgb,
            var(--status-color) 38%,
            transparent
        );
}

.tuihocta-status-label {
    line-height: 1.3;
}


/* ==================================================
   4. MARKET BREADTH — PROGRESS BAR
================================================== */

body.home .tuihocta-breadth-progress {
    display: block !important;
    box-sizing: border-box !important;

    width: calc(100% - 64px) !important;
    max-width: 190px !important;
    height: 7px !important;

    margin: 13px auto 8px !important;

    flex: 0 0 auto !important;
    align-self: center !important;

    position: relative;
    overflow: hidden !important;

    border-radius: 999px !important;
    background-color: #e2e8f0 !important;

    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

body.home .tuihocta-breadth-progress-bar {
    --progress-color: #64748b;
    --progress-color-light: #94a3b8;

    display: block !important;
    position: relative;

    width: 0;
    height: 100% !important;
    max-width: 100% !important;

    overflow: hidden;
    border-radius: inherit !important;

    background:
        linear-gradient(
            90deg,
            var(--progress-color) 0%,
            var(--progress-color-light) 100%
        ) !important;

    box-shadow:
        0 0 8px color-mix(
            in srgb,
            var(--progress-color) 35%,
            transparent
        );

    transition:
        width 550ms ease,
        background 300ms ease;
}


/* Ánh sáng chạy nhẹ trên progress bar */

body.home .tuihocta-breadth-progress-bar::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;

    width: 40%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.42),
            transparent
        );

    transform: skewX(-18deg);

    animation:
        tuihocta-progress-shine
        3.6s ease-in-out infinite;
}

@keyframes tuihocta-progress-shine {
    0%,
    55% {
        left: -45%;
        opacity: 0;
    }

    65% {
        opacity: 1;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}


/* ==================================================
   5. MARKET BREADTH — SỐ LƯỢNG CỔ PHIẾU
================================================== */

.tuihocta-breadth-count {
    margin: 0 auto 11px;

    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/* ==================================================
   6. STRONG STOCKS — BIẾN DÙNG CHUNG
================================================== */

:root {
    /* ==================================================
       TUIHOCTA DESIGN TOKENS — FOUNDATION V1
       Không thay đổi giao diện hiện tại
    ================================================== */

    /* Brand & semantic colors */
    --th-color-primary: #2563eb;
    --th-color-success: #15803d;
    --th-color-danger: #dc2626;
    --th-color-danger-strong: #b91c1c;
    --th-color-warning: #d97706;
    --th-color-warning-strong: #c2410c;

    /* Text */
    --th-color-text: #0f172a;
    --th-color-text-secondary: #334155;
    --th-color-text-subtle: #475569;
    --th-color-text-muted: #64748b;
    --th-color-text-placeholder: #94a3b8;
    --th-color-text-inverse: #ffffff;

    /* Surfaces */
    --th-color-surface: #ffffff;
    --th-color-surface-subtle: #f8fafc;
    --th-color-surface-muted: #f1f5f9;
    --th-color-surface-hover: #eff6ff;

    /* Borders */
    --th-color-border: #dbe3ec;
    --th-color-border-control: #cbd5e1;
    --th-color-border-subtle: #e2e8f0;

    /* Legacy aliases — Strong Stocks */
    --tuihocta-ss-text: var(--th-color-text);
    --tuihocta-ss-muted: var(--th-color-text-muted);
    --tuihocta-ss-border: var(--th-color-border);
    --tuihocta-ss-header: var(--th-color-surface-muted);
    --tuihocta-ss-row-alt: var(--th-color-surface-subtle);
    --tuihocta-ss-hover: var(--th-color-surface-hover);
    --tuihocta-ss-blue: var(--th-color-primary);
    --tuihocta-ss-green: var(--th-color-success);
    --tuihocta-ss-red: var(--th-color-danger);
    --tuihocta-ss-orange: var(--th-color-warning);
}


/* ==================================================
   7. STRONG STOCKS — WRAPPER BẢNG
================================================== */

figure#strong-stocks-table,
figure#strong-stocks-full-table,
#strong-stocks-table.tuihocta-table-scroll,
#strong-stocks-full-table.tuihocta-table-scroll {
    display: block !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

figure#strong-stocks-table::-webkit-scrollbar,
figure#strong-stocks-full-table::-webkit-scrollbar,
#strong-stocks-table.tuihocta-table-scroll::-webkit-scrollbar,
#strong-stocks-full-table.tuihocta-table-scroll::-webkit-scrollbar {
    height: 8px;
}

figure#strong-stocks-table::-webkit-scrollbar-track,
figure#strong-stocks-full-table::-webkit-scrollbar-track,
#strong-stocks-table.tuihocta-table-scroll::-webkit-scrollbar-track,
#strong-stocks-full-table.tuihocta-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

figure#strong-stocks-table::-webkit-scrollbar-thumb,
figure#strong-stocks-full-table::-webkit-scrollbar-thumb,
#strong-stocks-table.tuihocta-table-scroll::-webkit-scrollbar-thumb,
#strong-stocks-full-table.tuihocta-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: #cbd5e1;
}


/* ==================================================
   8. STRONG STOCKS — TOP 5 TRANG CHỦ
================================================== */

figure#strong-stocks-table,
#strong-stocks-table.tuihocta-table-scroll {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    border-radius: 4px;
}

figure#strong-stocks-table > table,
#strong-stocks-table.tuihocta-table-scroll > table {
    width: 100% !important;
    min-width: 620px !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #ffffff;
}

#strong-stocks-table thead th {
    padding: 13px 10px !important;
    color: var(--tuihocta-ss-text);
    background-color: var(--tuihocta-ss-header);
    border: 1px solid var(--tuihocta-ss-border);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#strong-stocks-table tbody td {
    padding: 12px 10px !important;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid var(--tuihocta-ss-border);
    font-size: 14px;
    line-height: 1.35;
    vertical-align: middle;
    white-space: nowrap;
}

#strong-stocks-table tbody tr:nth-child(even) td {
    background-color: var(--tuihocta-ss-row-alt);
}

#strong-stocks-table .strong-stocks-rank,
#strong-stocks-table .strong-stocks-ticker,
#strong-stocks-table .strong-stocks-rs,
#strong-stocks-table .strong-stocks-change {
    text-align: center;
}

#strong-stocks-table .strong-stocks-trend {
    text-align: left;
}

#strong-stocks-table .strong-stocks-error {
    padding: 24px !important;
    color: var(--tuihocta-ss-muted);
    text-align: center;
}


/* ==================================================
   9. STRONG STOCKS — SUMMARY CARDS
================================================== */

.strong-stocks-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 24px auto 0;
}

.strong-stocks-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 108px;
    padding: 15px 12px;
    border: 1px solid var(--tuihocta-ss-border);
    border-radius: 12px;
    background-color: #ffffff;
    text-align: center;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.strong-stocks-summary-label {
    color: var(--tuihocta-ss-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.strong-stocks-summary-value {
    color: var(--tuihocta-ss-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.strong-stocks-summary-note {
    color: var(--tuihocta-ss-muted);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.35;
}

.strong-stocks-summary-rating-card {
    border-color: #bfdbfe;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f8ff 100%
        );
}

.strong-stocks-summary-rating-card
.strong-stocks-summary-value {
    color: #1d4ed8;
}

@media (hover: hover) and (pointer: fine) {
    .strong-stocks-summary-card:hover {
        transform: translateY(-2px);
        border-color: rgba(37, 99, 235, 0.25);
        box-shadow:
            0 8px 22px rgba(15, 23, 42, 0.07);
    }
}


/* ==================================================
   10. STRONG STOCKS — TOP INDUSTRIES
================================================== */

.strong-stocks-industries-section {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 34px auto 0;
}

.strong-stocks-section-heading {
    margin-bottom: 17px;
}

.strong-stocks-section-heading h2 {
    margin: 0;
    color: var(--tuihocta-ss-text);
    font-size: clamp(24px, 2.1vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.strong-stocks-section-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--tuihocta-ss-muted);
    font-size: 15px;
    line-height: 1.55;
}

.strong-stocks-industries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.strong-stocks-industry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 198px;
    padding: 20px;
    color: var(--tuihocta-ss-text);
    background-color: #ffffff;
    border: 1px solid var(--tuihocta-ss-border);
    border-radius: 12px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.strong-stocks-industry-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: var(--tuihocta-ss-blue);
    background-color: #eff6ff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.strong-stocks-industry-name {
    min-height: 50px;
    color: var(--tuihocta-ss-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.strong-stocks-industry-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    color: var(--tuihocta-ss-muted);
    font-size: 14px;
    line-height: 1.45;
}

.strong-stocks-industry-metrics strong {
    color: var(--tuihocta-ss-text);
    font-size: 16px;
    font-weight: 800;
}

.strong-stocks-industry-progress {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background-color: #e2e8f0;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.strong-stocks-industry-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #2563eb 0%,
            #60a5fa 100%
        );
    box-shadow:
        0 0 8px rgba(37, 99, 235, 0.22);
    transition: width 500ms ease;
}

.strong-stocks-industry-footer {
    margin-top: auto;
    color: var(--tuihocta-ss-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.strong-stocks-industries-loading,
.strong-stocks-industries-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    color: var(--tuihocta-ss-muted);
    background-color: var(--tuihocta-ss-row-alt);
    border: 1px solid var(--tuihocta-ss-border);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .strong-stocks-industry-card:hover {
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, 0.32);
        box-shadow:
            0 12px 26px rgba(15, 23, 42, 0.08);
    }
}

.strong-stocks-industry-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}


/* ==================================================
   11. STRONG STOCKS — TOOLBAR
================================================== */

.strong-stocks-toolbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 18px;
    border: 1px solid var(--tuihocta-ss-border);
    border-radius: 12px;
    background-color: var(--tuihocta-ss-row-alt);
}

.strong-stocks-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.strong-stocks-filter-field:first-child {
    grid-column: span 2;
}

.strong-stocks-filter-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.strong-stocks-filter-field input,
.strong-stocks-filter-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--tuihocta-ss-text);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.strong-stocks-filter-field input::placeholder {
    color: #94a3b8;
}

.strong-stocks-filter-field input:focus,
.strong-stocks-filter-field select:focus {
    border-color: var(--tuihocta-ss-blue);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.strong-stocks-result-count {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 14px auto 0;
    color: var(--tuihocta-ss-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}


/* ==================================================
   12. STRONG STOCKS — FULL TABLE
================================================== */

figure#strong-stocks-full-table,
#strong-stocks-full-table.tuihocta-table-scroll {
    width: calc(100% - 32px) !important;
    max-width: 1480px !important;
    margin: 24px auto 0 !important;
    padding: 0 0 7px !important;
    border-radius: 7px;
}

figure#strong-stocks-full-table > table,
#strong-stocks-full-table.tuihocta-table-scroll > table {
    width: 100% !important;
    min-width: 1160px !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #ffffff;
}

#strong-stocks-full-table thead th {
    padding: 11px 7px !important;
    color: var(--tuihocta-ss-text);
    background-color: var(--tuihocta-ss-header);
    border: 1px solid var(--tuihocta-ss-border);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
    white-space: normal !important;
}

#strong-stocks-full-table tbody td {
    padding: 10px 7px !important;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid var(--tuihocta-ss-border);
    font-size: 13px;
    line-height: 1.3;
    vertical-align: middle;
    white-space: nowrap;
}

#strong-stocks-full-table tbody tr:nth-child(even) td {
    background-color: var(--tuihocta-ss-row-alt);
}


/* ==================================================
   13. STRONG STOCKS — CHIỀU RỘNG 12 CỘT
================================================== */

#strong-stocks-full-table th:nth-child(1),
#strong-stocks-full-table td:nth-child(1) {
    width: 48px;
}

#strong-stocks-full-table th:nth-child(2),
#strong-stocks-full-table td:nth-child(2) {
    width: 58px;
}

#strong-stocks-full-table th:nth-child(3),
#strong-stocks-full-table td:nth-child(3) {
    width: 78px;
}

#strong-stocks-full-table th:nth-child(4),
#strong-stocks-full-table td:nth-child(4) {
    width: 68px;
}

#strong-stocks-full-table th:nth-child(5),
#strong-stocks-full-table td:nth-child(5) {
    width: 90px;
}

#strong-stocks-full-table th:nth-child(6),
#strong-stocks-full-table td:nth-child(6),
#strong-stocks-full-table th:nth-child(7),
#strong-stocks-full-table td:nth-child(7),
#strong-stocks-full-table th:nth-child(8),
#strong-stocks-full-table td:nth-child(8) {
    width: 68px;
}

#strong-stocks-full-table th:nth-child(9),
#strong-stocks-full-table td:nth-child(9) {
    width: 72px;
}

#strong-stocks-full-table th:nth-child(10),
#strong-stocks-full-table td:nth-child(10) {
    width: 76px;
}

#strong-stocks-full-table th:nth-child(11),
#strong-stocks-full-table td:nth-child(11) {
    width: 100px;
}

#strong-stocks-full-table th:nth-child(12),
#strong-stocks-full-table td:nth-child(12) {
    width: 210px;
}


/* ==================================================
   14. STRONG STOCKS — TYPOGRAPHY VÀ CĂN LỀ
================================================== */

#strong-stocks-full-table .strong-stocks-rank,
#strong-stocks-full-table .strong-stocks-ticker,
#strong-stocks-full-table .strong-stocks-rs-rating,
#strong-stocks-full-table .strong-stocks-price,
#strong-stocks-full-table .strong-stocks-rs,
#strong-stocks-full-table .strong-stocks-change,
#strong-stocks-full-table .strong-stocks-condition,
#strong-stocks-full-table .strong-stocks-trend {
    text-align: center;
}

#strong-stocks-full-table .strong-stocks-industry {
    color: #475569;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    white-space: normal !important;
    overflow-wrap: break-word;
}

#strong-stocks-full-table .strong-stocks-rank,
#strong-stocks-full-table .strong-stocks-price,
#strong-stocks-full-table .strong-stocks-rs,
#strong-stocks-full-table .strong-stocks-change,
#strong-stocks-full-table .strong-stocks-rs-rating {
    font-variant-numeric: tabular-nums;
}

#strong-stocks-full-table .strong-stocks-ticker,
#strong-stocks-table .strong-stocks-ticker {
    color: var(--tuihocta-ss-text);
    font-weight: 800;
    letter-spacing: 0.01em;
}

#strong-stocks-full-table .strong-stocks-rs,
#strong-stocks-table .strong-stocks-rs {
    color: var(--tuihocta-ss-blue);
    font-weight: 700;
}

#strong-stocks-full-table .strong-stocks-change,
#strong-stocks-table .strong-stocks-change,
#strong-stocks-full-table .strong-stocks-condition,
#strong-stocks-full-table .strong-stocks-trend,
#strong-stocks-table .strong-stocks-trend {
    font-weight: 650;
}


/* ==================================================
   15. STRONG STOCKS — RS RATING BADGE
================================================== */

.strong-stocks-rs-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.rs-rating-leading {
    color: #ffffff;
    background-color: #166534;
    border-color: #166534;
}

.rs-rating-strong {
    color: #166534;
    background-color: #dcfce7;
    border-color: #bbf7d0;
}

.rs-rating-good {
    color: #854d0e;
    background-color: #fef9c3;
    border-color: #fde68a;
}

.rs-rating-average {
    color: #9a3412;
    background-color: #ffedd5;
    border-color: #fed7aa;
}

.rs-rating-weak {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fecaca;
}

.rs-rating-unavailable {
    color: #64748b;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}


/* ==================================================
   16. STRONG STOCKS — MÀU TRẠNG THÁI
================================================== */

#strong-stocks-full-table .is-positive,
#strong-stocks-table .is-positive {
    color: var(--tuihocta-ss-green) !important;
}

#strong-stocks-full-table .is-negative,
#strong-stocks-table .is-negative {
    color: var(--tuihocta-ss-red) !important;
}

#strong-stocks-full-table .is-neutral,
#strong-stocks-table .is-neutral {
    color: var(--tuihocta-ss-muted) !important;
}

#strong-stocks-full-table .is-strong,
#strong-stocks-table .is-strong {
    color: var(--tuihocta-ss-green) !important;
    font-weight: 700;
}

#strong-stocks-full-table .is-improving,
#strong-stocks-table .is-improving {
    color: var(--tuihocta-ss-orange) !important;
}

#strong-stocks-full-table .is-weak,
#strong-stocks-table .is-weak {
    color: var(--tuihocta-ss-red) !important;
}

#strong-stocks-full-table .rs-level-very-strong {
    color: #166534 !important;
    background-image:
        linear-gradient(
            rgba(220, 252, 231, 0.72),
            rgba(220, 252, 231, 0.72)
        );
    font-weight: 800;
}

#strong-stocks-full-table .rs-level-strong {
    color: #1d4ed8 !important;
    background-image:
        linear-gradient(
            rgba(219, 234, 254, 0.55),
            rgba(219, 234, 254, 0.55)
        );
    font-weight: 750;
}

#strong-stocks-full-table .rs-level-normal {
    color: var(--tuihocta-ss-blue) !important;
}


/* ==================================================
   17. STRONG STOCKS — NÚT SẮP XẾP
================================================== */

.strong-stocks-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 24px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    cursor: pointer;
    white-space: normal;
}

.strong-stocks-sort-button:hover {
    color: var(--tuihocta-ss-blue);
}

.strong-stocks-sort-button:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--tuihocta-ss-blue);
    outline-offset: 2px;
}


/* ==================================================
   18. STRONG STOCKS — PHÂN TRANG
================================================== */

.strong-stocks-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 22px auto 0;
}

.strong-stocks-pagination[hidden] {
    display: none;
}

.strong-stocks-page-button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.strong-stocks-page-button:hover:not(:disabled) {
    color: var(--tuihocta-ss-blue);
    border-color: var(--tuihocta-ss-blue);
    background-color: var(--tuihocta-ss-hover);
}

.strong-stocks-page-button.is-active {
    color: #ffffff;
    border-color: var(--tuihocta-ss-blue);
    background-color: var(--tuihocta-ss-blue);
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.22);
}

.strong-stocks-page-button:disabled {
    color: #94a3b8;
    background-color: var(--tuihocta-ss-row-alt);
    cursor: not-allowed;
    opacity: 0.7;
}

#strong-stocks-full-table .strong-stocks-error {
    padding: 28px !important;
    color: var(--tuihocta-ss-muted);
    text-align: center;
}


/* ==================================================
   19. HOVER DESKTOP
================================================== */

@media (hover: hover) and (pointer: fine) {
    #strong-stocks-table tbody tr td,
    #strong-stocks-full-table tbody tr td {
        transition: background-color 180ms ease;
    }

    #strong-stocks-table tbody tr:hover td,
    #strong-stocks-full-table tbody tr:hover td {
        background-color: var(--tuihocta-ss-hover);
    }
}


/* ==================================================
   20. TABLET VÀ LAPTOP NHỎ
================================================== */

@media (min-width: 690px) and (max-width: 1200px) {
    figure#strong-stocks-table > table,
    #strong-stocks-table.tuihocta-table-scroll > table {
        min-width: 720px !important;
    }

    figure#strong-stocks-full-table,
    #strong-stocks-full-table.tuihocta-table-scroll {
        width: calc(100% - 20px) !important;
    }

    figure#strong-stocks-full-table > table,
    #strong-stocks-full-table.tuihocta-table-scroll > table {
        min-width: 1120px !important;
    }

    #strong-stocks-full-table thead th,
    #strong-stocks-full-table tbody td {
        padding: 9px 6px !important;
        font-size: 12px;
    }

    .strong-stocks-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: calc(100% - 24px);
    }

    .strong-stocks-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: calc(100% - 24px);
    }

    .strong-stocks-filter-field:first-child {
        grid-column: span 3;
    }

    .strong-stocks-result-count,
    .strong-stocks-pagination {
        width: calc(100% - 24px);
    }

    .strong-stocks-industries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==================================================
   21. MOBILE
================================================== */

@media (max-width: 689px) {

    #breadth-ma50-day,
    #breadth-ma200-day,
    #breadth-ma26-week,
    #breadth-ma52-week {
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em !important;
        margin-top: 6px !important;
    }

    body.home .wp-block-group:has(> #breadth-ma50-day),
    body.home .wp-block-group:has(> #breadth-ma200-day),
    body.home .wp-block-group:has(> #breadth-ma26-week),
    body.home .wp-block-group:has(> #breadth-ma52-week) {
        padding-bottom: 15px !important;
    }

    body.home .tuihocta-breadth-progress {
        width: calc(100% - 48px) !important;
        max-width: 210px !important;
        height: 7px !important;
        margin: 12px auto 8px !important;
    }

    .tuihocta-breadth-count {
        margin-bottom: 10px;
        font-size: 12px;
    }

    figure#strong-stocks-table,
    figure#strong-stocks-full-table,
    #strong-stocks-table.tuihocta-table-scroll,
    #strong-stocks-full-table.tuihocta-table-scroll {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    figure#strong-stocks-table > table,
    #strong-stocks-table.tuihocta-table-scroll > table {
        width: 620px !important;
        min-width: 620px !important;
    }

    figure#strong-stocks-full-table,
    #strong-stocks-full-table.tuihocta-table-scroll {
        margin-top: 22px !important;
    }

    figure#strong-stocks-full-table > table,
    #strong-stocks-full-table.tuihocta-table-scroll > table {
        width: 1160px !important;
        min-width: 1160px !important;
    }

    #strong-stocks-table thead th,
    #strong-stocks-table tbody td,
    #strong-stocks-full-table thead th,
    #strong-stocks-full-table tbody td {
        padding: 9px 7px !important;
        font-size: 12px;
        line-height: 1.3;
    }

    .strong-stocks-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-top: 20px;
    }

    .strong-stocks-summary-card {
        min-height: 92px;
        padding: 12px 8px;
    }

    .strong-stocks-summary-value {
        font-size: 22px;
    }

    .strong-stocks-industries-section {
        width: 100%;
        margin-top: 28px;
    }

    .strong-stocks-industries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .strong-stocks-industry-card {
        min-height: 164px;
        padding: 14px;
        gap: 9px;
    }

    .strong-stocks-industry-name {
        min-height: 40px;
        font-size: 15px;
    }

    .strong-stocks-industry-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        font-size: 12px;
    }

    .strong-stocks-toolbar {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        margin-top: 22px;
        padding: 15px;
    }

    .strong-stocks-filter-field:first-child {
        grid-column: auto;
    }

    .strong-stocks-filter-field input,
    .strong-stocks-filter-field select {
        min-height: 46px;
        font-size: 16px;
    }

    .strong-stocks-result-count,
    .strong-stocks-pagination {
        width: 100%;
    }

    .strong-stocks-rs-rating-badge {
        min-width: 38px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
}


/* ==================================================
   22. MOBILE RẤT NHỎ
================================================== */

@media (max-width: 420px) {
    .strong-stocks-industries {
        grid-template-columns: 1fr;
    }

    .strong-stocks-industry-card {
        min-height: 150px;
    }

    .strong-stocks-industry-name {
        min-height: auto;
    }
}


/* ==================================================
   23. CHẶN CUỘN NGANG TOÀN TRANG
================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* ==================================================
   24. ACCESSIBILITY — GIẢM CHUYỂN ĐỘNG
================================================== */

@media (prefers-reduced-motion: reduce) {
    body.home .tuihocta-breadth-progress-bar {
        transition: none !important;
    }

    body.home .tuihocta-breadth-progress-bar::after {
        display: none;
        animation: none !important;
    }

    body.home .wp-block-group:has(> #breadth-ma50-day),
    body.home .wp-block-group:has(> #breadth-ma200-day),
    body.home .wp-block-group:has(> #breadth-ma26-week),
    body.home .wp-block-group:has(> #breadth-ma52-week),
    #strong-stocks-table tbody tr td,
    #strong-stocks-full-table tbody tr td,
    .strong-stocks-page-button,
    .strong-stocks-filter-field input,
    .strong-stocks-filter-field select,
    .strong-stocks-summary-card,
    .strong-stocks-industry-card,
    .strong-stocks-industry-progress-bar {
        transition: none !important;
    }
}

/* ==================================================
   25. STRONG STOCKS — INDUSTRY FILTER ACTIVE
================================================== */

.strong-stocks-industry-card.is-active {
    border-color: rgba(37, 99, 235, 0.58);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f3f7ff 100%
        );
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.11);
}

.strong-stocks-industry-card.is-active
.strong-stocks-industry-rank {
    color: #ffffff;
    background-color: var(--tuihocta-ss-blue);
}


/* ==================================================
   26. STRONG STOCKS — CLICKABLE ROW
================================================== */

#strong-stocks-full-table
.strong-stocks-clickable-row {
    cursor: pointer;
}

#strong-stocks-full-table
.strong-stocks-clickable-row:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: -3px;
}


/* ==================================================
   27. STRONG STOCKS — STOCK DETAIL MODAL
================================================== */

body.strong-stocks-detail-open {
    overflow: hidden;
}

.strong-stocks-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 160ms ease,
        visibility 160ms ease;
}

.strong-stocks-detail-modal[hidden] {
    display: none;
}

.strong-stocks-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.strong-stocks-detail-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.strong-stocks-detail-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(86vh, 820px);
    overflow-y: auto;
    border: 1px solid #dbe3ec;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.28);
    transform: translateY(10px) scale(0.985);
    transition: transform 160ms ease;
}

.strong-stocks-detail-modal.is-open
.strong-stocks-detail-dialog {
    transform: translateY(0) scale(1);
}

.strong-stocks-detail-close {
    position: sticky;
    top: 14px;
    z-index: 3;
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 14px 14px -52px 0;
    padding: 0;
    color: #475569;
    background-color: rgba(248, 250, 252, 0.94);
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.strong-stocks-detail-close:hover {
    color: var(--tuihocta-ss-blue);
    border-color: #93c5fd;
}

.strong-stocks-detail-content {
    padding: 28px;
}

.strong-stocks-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-right: 44px;
    margin-bottom: 20px;
}

.strong-stocks-detail-title-group h2 {
    margin: 0;
    color: var(--tuihocta-ss-text);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.035em;
}

.strong-stocks-detail-title-group p {
    margin: 9px 0 0;
    color: var(--tuihocta-ss-muted);
    font-size: 14px;
    line-height: 1.45;
}

.strong-stocks-detail-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.strong-stocks-detail-price-group span {
    color: var(--tuihocta-ss-muted);
    font-size: 12px;
    font-weight: 650;
}

.strong-stocks-detail-price-group strong {
    color: var(--tuihocta-ss-text);
    font-size: 26px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.strong-stocks-detail-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.strong-stocks-detail-rating-card,
.strong-stocks-detail-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 102px;
    padding: 15px;
    border: 1px solid var(--tuihocta-ss-border);
    border-radius: 12px;
    background-color: #ffffff;
}

.strong-stocks-detail-rating-card {
    align-items: flex-start;
    gap: 8px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f8ff 100%
        );
    border-color: #bfdbfe;
}

.strong-stocks-detail-rating-card > span,
.strong-stocks-detail-metric-label {
    color: var(--tuihocta-ss-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.strong-stocks-detail-rating-card small,
.strong-stocks-detail-metric-note {
    margin-top: 6px;
    color: var(--tuihocta-ss-muted);
    font-size: 11px;
    line-height: 1.4;
}

.strong-stocks-detail-metric-value {
    margin-top: 7px;
    color: var(--tuihocta-ss-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.strong-stocks-detail-section {
    margin-top: 24px;
}

.strong-stocks-detail-section h3 {
    margin: 0 0 12px;
    color: var(--tuihocta-ss-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.strong-stocks-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.strong-stocks-detail-footnote {
    margin: 24px 0 0;
    padding: 14px 16px;
    color: var(--tuihocta-ss-muted);
    background-color: var(--tuihocta-ss-row-alt);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .strong-stocks-detail-highlights,
    .strong-stocks-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 689px) {
    .strong-stocks-detail-modal {
        align-items: flex-end;
        padding: 0;
    }

    .strong-stocks-detail-dialog {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    .strong-stocks-detail-content {
        padding: 22px 16px 28px;
    }

    .strong-stocks-detail-header {
        flex-direction: column;
        gap: 14px;
        padding-right: 42px;
    }

    .strong-stocks-detail-price-group {
        align-items: flex-start;
    }

    .strong-stocks-detail-highlights,
    .strong-stocks-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .strong-stocks-detail-rating-card,
    .strong-stocks-detail-metric {
        min-height: 94px;
        padding: 13px;
    }

    .strong-stocks-detail-metric-value {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .strong-stocks-detail-highlights,
    .strong-stocks-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .strong-stocks-detail-modal,
    .strong-stocks-detail-dialog {
        transition: none !important;
    }
}

/* ==================================================
   28. STRONG STOCKS — MÀU CARD TRONG STOCK DETAIL
================================================== */

/* RS Momentum */

.strong-stocks-detail-metric.rs-level-very-strong {
    border-color: #bbf7d0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ecfdf3 100%
        );
}

.strong-stocks-detail-metric.rs-level-strong {
    border-color: #bfdbfe;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eff6ff 100%
        );
}

.strong-stocks-detail-metric.rs-level-normal {
    border-color: #dbe3ec;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


/* Xu hướng */

.strong-stocks-detail-metric.is-strong,
.strong-stocks-detail-metric.is-positive {
    border-color: #bbf7d0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f0fdf4 100%
        );
}

.strong-stocks-detail-metric.is-improving {
    border-color: #fed7aa;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff7ed 100%
        );
}

.strong-stocks-detail-metric.is-neutral {
    border-color: #e2e8f0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.strong-stocks-detail-metric.is-negative,
.strong-stocks-detail-metric.is-weak {
    border-color: #fecaca;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fef2f2 100%
        );
}


/* Giữ màu chữ label trung tính, chỉ value mang màu trạng thái */

.strong-stocks-detail-metric.is-positive
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-negative
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-strong
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-improving
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-neutral
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-weak
.strong-stocks-detail-metric-label {
    color: var(--tuihocta-ss-muted) !important;
}

/* ==================================================
   29. STRONG STOCKS — MÀU CHỮ TRONG CARD CHI TIẾT
================================================== */

/* RS Momentum */

.strong-stocks-detail-metric.rs-level-very-strong
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.rs-level-very-strong
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.rs-level-very-strong
.strong-stocks-detail-metric-note {
    color: #166534 !important;
}

.strong-stocks-detail-metric.rs-level-strong
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.rs-level-strong
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.rs-level-strong
.strong-stocks-detail-metric-note {
    color: #1d4ed8 !important;
}

.strong-stocks-detail-metric.rs-level-normal
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.rs-level-normal
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.rs-level-normal
.strong-stocks-detail-metric-note {
    color: #475569 !important;
}


/* Tăng, Tăng mạnh, giá tăng và trên MA */

.strong-stocks-detail-metric.is-positive
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-positive
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-positive
.strong-stocks-detail-metric-note,
.strong-stocks-detail-metric.is-strong
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-strong
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-strong
.strong-stocks-detail-metric-note {
    color: #15803d !important;
}


/* Cải thiện */

.strong-stocks-detail-metric.is-improving
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-improving
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-improving
.strong-stocks-detail-metric-note {
    color: #c2410c !important;
}


/* Trung tính */

.strong-stocks-detail-metric.is-neutral
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-neutral
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-neutral
.strong-stocks-detail-metric-note {
    color: #64748b !important;
}


/* Giảm, Yếu và dưới MA */

.strong-stocks-detail-metric.is-negative
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-negative
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-negative
.strong-stocks-detail-metric-note,
.strong-stocks-detail-metric.is-weak
.strong-stocks-detail-metric-label,
.strong-stocks-detail-metric.is-weak
.strong-stocks-detail-metric-value,
.strong-stocks-detail-metric.is-weak
.strong-stocks-detail-metric-note {
    color: #b91c1c !important;
}

/* ==================================================
   30. STRONG STOCKS — SUMMARY CARD FILTER
================================================== */

.strong-stocks-summary-card[data-filter-ready="true"] {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.strong-stocks-summary-card[data-filter-ready="true"]::after {
    content: "Lọc";
    position: absolute;
    top: 9px;
    right: 10px;
    padding: 3px 7px;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(-2px);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.strong-stocks-summary-card[data-summary-filter=""]::after {
    content: "Bỏ lọc";
}

@media (hover: hover) and (pointer: fine) {
    .strong-stocks-summary-card[data-filter-ready="true"]:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}

.strong-stocks-summary-card[data-filter-ready="true"]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.strong-stocks-summary-card.is-filter-active {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.65);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #edf4ff 100%
        );
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.13);
}

.strong-stocks-summary-card.is-filter-active::after {
    content: "Đang lọc";
    color: #ffffff;
    background-color: var(--tuihocta-ss-blue);
    opacity: 1;
    transform: translateY(0);
}

.strong-stocks-summary-card.is-filter-active
.strong-stocks-summary-label,
.strong-stocks-summary-card.is-filter-active
.strong-stocks-summary-value,
.strong-stocks-summary-card.is-filter-active
.strong-stocks-summary-note {
    color: #1d4ed8;
}

@media (max-width: 689px) {
    .strong-stocks-summary-card[data-filter-ready="true"]::after {
        top: 7px;
        right: 7px;
        padding: 2px 5px;
        font-size: 8px;
    }
}

/* ==================================================
   31. STRONG STOCKS — TOP 5 CÓ RS RATING
================================================== */

figure#strong-stocks-table > table,
#strong-stocks-table.tuihocta-table-scroll > table {
    min-width: 680px !important;
}

/* 1. Hạng */
#strong-stocks-table th:nth-child(1),
#strong-stocks-table td:nth-child(1) {
    width: 64px;
}

/* 2. Mã */
#strong-stocks-table th:nth-child(2),
#strong-stocks-table td:nth-child(2) {
    width: 80px;
}

/* 3. RS Rating */
#strong-stocks-table th:nth-child(3),
#strong-stocks-table td:nth-child(3) {
    width: 105px;
    text-align: center;
}

/* 4. RS Momentum */
#strong-stocks-table th:nth-child(4),
#strong-stocks-table td:nth-child(4) {
    width: 130px;
    text-align: center;
}

/* 5. Xu hướng */
#strong-stocks-table th:nth-child(5),
#strong-stocks-table td:nth-child(5) {
    width: 150px;
}

#strong-stocks-table
.strong-stocks-rs-rating-badge {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
}

#strong-stocks-table
.strong-stocks-clickable-row {
    cursor: pointer;
}

#strong-stocks-table
.strong-stocks-clickable-row:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: -3px;
}

@media (max-width: 689px) {
    figure#strong-stocks-table > table,
    #strong-stocks-table.tuihocta-table-scroll > table {
        width: 680px !important;
        min-width: 680px !important;
    }

    #strong-stocks-table
    .strong-stocks-rs-rating-badge {
        min-width: 38px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ==================================================
   TUIHOCTA — SECTOR & INDUSTRY STRENGTH
================================================== */

.tuihocta-strength-page {
    /* Module aliases — dùng chung Design Tokens */
    --strength-border: var(--th-color-border);
    --strength-muted: var(--th-color-text-muted);
    --strength-text: var(--th-color-text);
    --strength-blue: var(--th-color-primary);
    --strength-green: var(--th-color-success);
    --strength-red: var(--th-color-danger-strong);
    --strength-orange: var(--th-color-warning-strong);

    width: 100%;
    color: var(--strength-text);
}

.tuihocta-strength-hero,
.tuihocta-strength-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.tuihocta-strength-hero {
    margin-bottom: 38px;
}

.tuihocta-strength-eyebrow,
.tuihocta-strength-kicker {
    margin: 0 0 6px;
    color: var(--strength-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tuihocta-strength-hero h1,
.tuihocta-strength-section-heading h2 {
    margin: 0;
    line-height: 1.15;
}

.tuihocta-strength-description {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--strength-muted);
}

.tuihocta-strength-updated {
    margin: 0;
    color: var(--strength-muted);
    white-space: nowrap;
}

.tuihocta-strength-summary-section,
.tuihocta-strength-ranking-section {
    margin-top: 34px;
}

.tuihocta-strength-scope-switch {
    display: inline-flex;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
}

.tuihocta-strength-scope-switch button {
    border: 0;
    padding: 9px 14px;
    color: var(--strength-muted);
    background: transparent;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.tuihocta-strength-scope-switch button.is-active {
    color: #ffffff;
    background: var(--strength-blue);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.tuihocta-strength-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tuihocta-strength-summary-card {
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--strength-border);
    background: #ffffff;
    border-radius: 16px;
}

.tuihocta-strength-summary-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--strength-muted);
    font-size: 13px;
    font-weight: 700;
}

.tuihocta-strength-summary-card strong {
    font-size: 28px;
    line-height: 1;
}

.tuihocta-strength-summary-card.is-strong,
.tuihocta-strength-summary-card.is-positive,
.tuihocta-strength-detail-metric.is-strong,
.tuihocta-strength-detail-metric.is-positive {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tuihocta-strength-summary-card.is-strong strong,
.tuihocta-strength-summary-card.is-positive strong,
.tuihocta-strength-detail-metric.is-strong strong,
.tuihocta-strength-detail-metric.is-positive strong,
td.is-strong,
td.is-positive {
    color: var(--strength-green);
}

.tuihocta-strength-summary-card.is-improving,
.tuihocta-strength-detail-metric.is-improving {
    border-color: #fed7aa;
    background: #fff7ed;
}

.tuihocta-strength-summary-card.is-improving strong,
.tuihocta-strength-detail-metric.is-improving strong,
td.is-improving {
    color: var(--strength-orange);
}

.tuihocta-strength-summary-card.is-negative,
.tuihocta-strength-detail-metric.is-negative {
    border-color: #fecaca;
    background: #fef2f2;
}

.tuihocta-strength-summary-card.is-negative strong,
.tuihocta-strength-detail-metric.is-negative strong,
td.is-negative {
    color: var(--strength-red);
}

.tuihocta-strength-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.tuihocta-strength-toolbar label {
    display: grid;
    gap: 6px;
}

.tuihocta-strength-toolbar label span {
    color: var(--strength-muted);
    font-size: 12px;
    font-weight: 700;
}

.tuihocta-strength-toolbar input,
.tuihocta-strength-toolbar select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--strength-border);
    background: #ffffff;
    border-radius: 10px;
}

.tuihocta-strength-toolbar input {
    min-width: 230px;
}

.tuihocta-strength-result-count {
    margin: 16px 0 10px;
    color: var(--strength-muted);
    font-size: 13px;
}

.tuihocta-strength-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--strength-border);
    border-radius: 16px;
}

#strength-industry-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: #ffffff;
}

#strength-industry-table th,
#strength-industry-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}

#strength-industry-table th {
    background: #f8fafc;
}

.tuihocta-strength-sort-button {
    border: 0;
    padding: 0;
    color: #334155;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.tuihocta-strength-clickable-row {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.tuihocta-strength-clickable-row:hover {
    background: #f8fbff;
}

.tuihocta-strength-clickable-row:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: -3px;
}

.tuihocta-strength-empty {
    padding: 34px !important;
    color: var(--strength-muted);
    text-align: center !important;
}

.tuihocta-strength-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.tuihocta-strength-pagination button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--strength-border);
    color: #334155;
    background: #ffffff;
    border-radius: 9px;
    cursor: pointer;
}

.tuihocta-strength-pagination button.is-active {
    color: #ffffff;
    border-color: var(--strength-blue);
    background: var(--strength-blue);
}

.tuihocta-strength-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


/* Modal */

.tuihocta-strength-modal[hidden] {
    display: none;
}

.tuihocta-strength-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tuihocta-strength-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.tuihocta-strength-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.tuihocta-strength-modal.is-open
.tuihocta-strength-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tuihocta-strength-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--strength-border);
    background: #ffffff;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
}

.tuihocta-strength-modal-content > header p,
.tuihocta-strength-modal-content > header span {
    margin: 0;
    color: var(--strength-muted);
}

.tuihocta-strength-modal-content > header h2 {
    margin: 6px 0;
}

.tuihocta-strength-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.tuihocta-strength-detail-metric {
    min-height: 108px;
    padding: 18px;
    border: 1px solid var(--strength-border);
    border-radius: 14px;
}

.tuihocta-strength-detail-metric span {
    display: block;
    margin-bottom: 12px;
    color: var(--strength-muted);
    font-size: 13px;
    font-weight: 700;
}

.tuihocta-strength-detail-metric strong {
    font-size: 22px;
}

.tuihocta-strength-top-stocks {
    margin-top: 28px;
}

.tuihocta-strength-top-stocks > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.tuihocta-strength-top-stocks article {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--strength-border);
    border-radius: 12px;
}

.tuihocta-strength-top-stocks article strong {
    font-size: 20px;
}

.tuihocta-strength-top-stocks article span {
    color: var(--strength-muted);
    font-size: 12px;
}

body.tuihocta-strength-modal-open {
    overflow: hidden;
}


@media (max-width: 900px) {
    .tuihocta-strength-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tuihocta-strength-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tuihocta-strength-top-stocks > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 689px) {
    .tuihocta-strength-hero,
    .tuihocta-strength-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .tuihocta-strength-updated {
        white-space: normal;
    }

    .tuihocta-strength-scope-switch {
        width: 100%;
    }

    .tuihocta-strength-scope-switch button {
        flex: 1;
    }

    .tuihocta-strength-summary-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-strength-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tuihocta-strength-toolbar input,
    .tuihocta-strength-toolbar select {
        width: 100%;
        min-width: 0;
    }

    .tuihocta-strength-modal {
        align-items: end;
        padding: 0;
    }

    .tuihocta-strength-modal-dialog {
        width: 100%;
        max-height: 88vh;
        padding: 26px 18px;
        border-radius: 20px 20px 0 0;
    }

    .tuihocta-strength-detail-grid,
    .tuihocta-strength-top-stocks > div {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   32. SECTOR & INDUSTRY STRENGTH — HOÀN THIỆN V2.1
================================================== */

/*
 * Ẩn tiêu đề mặc định của WordPress / Blocksy
 * trên trang có module Sức mạnh ngành.
 */

body:has(.tuihocta-strength-page)
.entry-header,
body:has(.tuihocta-strength-page)
.page-header,
body:has(.tuihocta-strength-page)
.entry-title {
    display: none !important;
}


/*
 * Tối ưu khoảng cách phần đầu trang sau khi ẩn page title.
 */

body:has(.tuihocta-strength-page)
.tuihocta-strength-page {
    padding-top: 8px;
}


/*
 * Tối ưu wrapper bảng và thanh cuộn ngang.
 */

.tuihocta-strength-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.tuihocta-strength-table-scroll::-webkit-scrollbar {
    height: 8px;
}

.tuihocta-strength-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.tuihocta-strength-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: #cbd5e1;
}


/*
 * Bảng xếp hạng Ngành:
 * - Industry đổi thành Ngành trong JS/HTML.
 * - Sector đổi thành Nhóm ngành trong JS/HTML.
 * - Giảm chiều rộng tổng để hạn chế cuộn ngang.
 */

#strength-industry-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
}


/* 1. Hạng */

#strength-industry-table th:nth-child(1),
#strength-industry-table td:nth-child(1) {
    width: 72px;
    text-align: center;
}


/* 2. Ngành */

#strength-industry-table th:nth-child(2),
#strength-industry-table td:nth-child(2) {
    width: 260px;
    white-space: normal;
    overflow-wrap: break-word;
}


/* 3. Nhóm ngành */

#strength-industry-table th:nth-child(3),
#strength-industry-table td:nth-child(3) {
    width: 150px;
    white-space: normal;
    overflow-wrap: break-word;
}


/* 4. Số mã */

#strength-industry-table th:nth-child(4),
#strength-industry-table td:nth-child(4) {
    width: 78px;
    text-align: center;
}


/* 5. RS Momentum trung bình */

#strength-industry-table th:nth-child(5),
#strength-industry-table td:nth-child(5) {
    width: 140px;
    text-align: center;
}


/* 6. RS Rating trung bình */

#strength-industry-table th:nth-child(6),
#strength-industry-table td:nth-child(6) {
    width: 122px;
    text-align: center;
}


/* 7–8. MA50 và MA200 */

#strength-industry-table th:nth-child(7),
#strength-industry-table td:nth-child(7),
#strength-industry-table th:nth-child(8),
#strength-industry-table td:nth-child(8) {
    width: 110px;
    text-align: center;
}


/* 9. Xu hướng tích cực */

#strength-industry-table th:nth-child(9),
#strength-industry-table td:nth-child(9) {
    width: 140px;
    text-align: center;
}


#strength-industry-table td:nth-child(2) strong {
    line-height: 1.45;
}


/*
 * Header bảng rõ ràng hơn.
 */

#strength-industry-table thead th {
    vertical-align: middle;
    text-align: center;
}

#strength-industry-table thead th:nth-child(2),
#strength-industry-table thead th:nth-child(3) {
    text-align: left;
}


/*
 * Căn số liệu theo chiều ngang và dùng tabular numbers.
 */

#strength-industry-table td:nth-child(1),
#strength-industry-table td:nth-child(4),
#strength-industry-table td:nth-child(5),
#strength-industry-table td:nth-child(6),
#strength-industry-table td:nth-child(7),
#strength-industry-table td:nth-child(8),
#strength-industry-table td:nth-child(9) {
    font-variant-numeric: tabular-nums;
}


/*
 * Hàng hover và focus.
 */

@media (hover: hover) and (pointer: fine) {
    #strength-industry-table
    .tuihocta-strength-clickable-row:hover td {
        background-color: #f8fbff;
    }
}


/*
 * Toolbar cân đối trên desktop.
 */

.tuihocta-strength-toolbar {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(170px, 1fr)
        minmax(88px, 0.42fr);
    align-items: end;
    gap: 12px;
    width: min(100%, 600px);
}

.tuihocta-strength-toolbar label,
.tuihocta-strength-toolbar input,
.tuihocta-strength-toolbar select {
    min-width: 0;
    width: 100%;
}


/*
 * Responsive tablet.
 */

@media (min-width: 690px) and (max-width: 980px) {
    .tuihocta-strength-toolbar {
        width: 100%;
        grid-template-columns:
            minmax(220px, 1.4fr)
            minmax(160px, 1fr)
            100px;
    }

    #strength-industry-table {
        min-width: 1040px;
    }
}


/*
 * Responsive mobile.
 */

@media (max-width: 689px) {
    body:has(.tuihocta-strength-page)
    .tuihocta-strength-page {
        padding-top: 0;
    }

    .tuihocta-strength-toolbar {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #strength-industry-table {
        width: 1040px;
        min-width: 1040px;
    }

    #strength-industry-table th,
    #strength-industry-table td {
        padding: 11px 12px;
        font-size: 12px;
    }
}


/*
 * Accessibility — giảm chuyển động.
 */

@media (prefers-reduced-motion: reduce) {
    .tuihocta-strength-clickable-row,
    .tuihocta-strength-modal-dialog,
    .tuihocta-strength-scope-switch button {
        transition: none !important;
    }
}

/* ==================================================
   33. SECTOR & INDUSTRY STRENGTH — CÂN ĐỐI BẢNG V2.2
================================================== */

/*
 * Giữ bảng vừa khung desktop, giảm cảm giác cột bị lệch
 * và cho tiêu đề dài được xuống dòng.
 */

.tuihocta-strength-table-scroll {
    width: 100%;
}

#strength-industry-table {
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
}


/* Header */

#strength-industry-table th {
    padding: 13px 10px;
    vertical-align: middle;
    white-space: normal;
}

#strength-industry-table
.tuihocta-strength-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

#strength-industry-table th:nth-child(2)
.tuihocta-strength-sort-button,
#strength-industry-table th:nth-child(3)
.tuihocta-strength-sort-button {
    justify-content: flex-start;
    text-align: left;
}


/* Body */

#strength-industry-table td {
    padding: 13px 12px;
    vertical-align: middle;
}

#strength-industry-table td:nth-child(2),
#strength-industry-table td:nth-child(3) {
    line-height: 1.4;
}


/* Chiều rộng 9 cột */

#strength-industry-table th:nth-child(1),
#strength-industry-table td:nth-child(1) {
    width: 64px;
}

#strength-industry-table th:nth-child(2),
#strength-industry-table td:nth-child(2) {
    width: 250px;
}

#strength-industry-table th:nth-child(3),
#strength-industry-table td:nth-child(3) {
    width: 158px;
}

#strength-industry-table th:nth-child(4),
#strength-industry-table td:nth-child(4) {
    width: 72px;
}

#strength-industry-table th:nth-child(5),
#strength-industry-table td:nth-child(5) {
    width: 138px;
}

#strength-industry-table th:nth-child(6),
#strength-industry-table td:nth-child(6) {
    width: 118px;
}

#strength-industry-table th:nth-child(7),
#strength-industry-table td:nth-child(7),
#strength-industry-table th:nth-child(8),
#strength-industry-table td:nth-child(8) {
    width: 104px;
}

#strength-industry-table th:nth-child(9),
#strength-industry-table td:nth-child(9) {
    width: 142px;
}


/*
 * Căn lề:
 * - Ngành và Nhóm ngành căn trái.
 * - Các chỉ số căn giữa.
 */

#strength-industry-table th:nth-child(1),
#strength-industry-table td:nth-child(1),
#strength-industry-table th:nth-child(4),
#strength-industry-table td:nth-child(4),
#strength-industry-table th:nth-child(5),
#strength-industry-table td:nth-child(5),
#strength-industry-table th:nth-child(6),
#strength-industry-table td:nth-child(6),
#strength-industry-table th:nth-child(7),
#strength-industry-table td:nth-child(7),
#strength-industry-table th:nth-child(8),
#strength-industry-table td:nth-child(8),
#strength-industry-table th:nth-child(9),
#strength-industry-table td:nth-child(9) {
    text-align: center;
}


/*
 * Không để tên ngành quá dài làm bảng cao bất thường.
 */

#strength-industry-table td:nth-child(2) strong {
    display: block;
    line-height: 1.38;
}


/*
 * Tăng độ rõ của hàng xen kẽ.
 */

#strength-industry-table tbody tr:nth-child(even) td {
    background-color: #fbfdff;
}

@media (hover: hover) and (pointer: fine) {
    #strength-industry-table
    .tuihocta-strength-clickable-row:hover td {
        background-color: #eff6ff;
    }
}


/*
 * Tablet: giữ cuộn ngang nhưng không phóng bảng quá lớn.
 */

@media (min-width: 690px) and (max-width: 1180px) {
    #strength-industry-table {
        min-width: 1080px;
    }

    #strength-industry-table th,
    #strength-industry-table td {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 13px;
    }
}


/*
 * Mobile.
 */

@media (max-width: 689px) {
    #strength-industry-table {
        width: 1040px;
        min-width: 1040px;
    }

    #strength-industry-table th,
    #strength-industry-table td {
        padding: 10px 9px;
        font-size: 12px;
    }

    #strength-industry-table
    .tuihocta-strength-sort-button {
        min-height: 34px;
        font-size: 12px;
    }
}

/* ==================================================
   34. SECTOR & INDUSTRY STRENGTH — CĂN GIỮA TIÊU ĐỀ
================================================== */

/*
 * Căn giữa tiêu đề hai cột:
 * - Ngành
 * - Nhóm ngành
 *
 * Dữ liệu trong thân bảng vẫn giữ căn trái.
 */

#strength-industry-table th:nth-child(2),
#strength-industry-table th:nth-child(3) {
    text-align: center !important;
}

#strength-industry-table th:nth-child(2)
.tuihocta-strength-sort-button,
#strength-industry-table th:nth-child(3)
.tuihocta-strength-sort-button {
    justify-content: center !important;
    text-align: center !important;
}

/* ==================================================
   35. SECTOR & INDUSTRY STRENGTH — HERO DESCRIPTION 1 DÒNG
================================================== */

/*
 * Giữ mô tả dưới tiêu đề “Sức mạnh ngành” trên một dòng
 * ở màn hình desktop đủ rộng.
 */

.tuihocta-strength-description {
    max-width: none;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .tuihocta-strength-description {
        white-space: normal;
    }
}

/* ==================================================
   36. SECTOR & INDUSTRY STRENGTH — HẠ DÒNG CẬP NHẬT
================================================== */

/*
 * Hạ dòng “Cập nhật dữ liệu” xuống nhẹ trên desktop
 * để tách khỏi phần mô tả bên trái.
 */

.tuihocta-strength-updated {
    transform: translateY(10px);
}

@media (max-width: 980px) {
    .tuihocta-strength-updated {
        transform: none;
        margin-top: 6px;
    }
}

/* ==================================================
   37. SECTOR & INDUSTRY STRENGTH — MODAL CHI TIẾT V2
================================================== */

.tuihocta-strength-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-right: 52px;
}

.tuihocta-strength-detail-header h2 {
    margin: 6px 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.tuihocta-strength-detail-header p,
.tuihocta-strength-detail-header span {
    margin: 0;
    color: var(--strength-muted);
}

.tuihocta-strength-detail-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tuihocta-strength-detail-badges span {
    padding: 7px 10px;
    color: #1d4ed8;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.tuihocta-strength-comparison-wrapper {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.tuihocta-strength-scope-comparison {
    padding: 20px;
    border: 1px solid var(--strength-border);
    border-radius: 16px;
    background-color: #ffffff;
}

.tuihocta-strength-scope-comparison.is-active {
    border-color: rgba(37, 99, 235, 0.55);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8ff 100%
        );
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.08);
}

.tuihocta-strength-scope-comparison > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tuihocta-strength-scope-comparison > header span {
    color: var(--strength-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tuihocta-strength-scope-comparison > header h3 {
    margin: 3px 0 0;
    font-size: 20px;
}

.tuihocta-strength-scope-comparison > header > strong {
    padding: 6px 9px;
    color: #ffffff;
    background-color: var(--strength-blue);
    border-radius: 999px;
    font-size: 11px;
}

.tuihocta-strength-scope-comparison
.tuihocta-strength-detail-grid {
    margin-top: 0;
}

.tuihocta-strength-trend-distribution {
    margin-top: 18px;
}

.tuihocta-strength-trend-distribution h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.tuihocta-strength-trend-distribution > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.tuihocta-strength-trend-card {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--strength-border);
    border-radius: 11px;
}

.tuihocta-strength-trend-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--strength-muted);
    font-size: 11px;
    font-weight: 700;
}

.tuihocta-strength-trend-card strong {
    font-size: 20px;
}

.tuihocta-strength-trend-card.is-strong,
.tuihocta-strength-trend-card.is-positive {
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

.tuihocta-strength-trend-card.is-strong strong,
.tuihocta-strength-trend-card.is-positive strong {
    color: var(--strength-green);
}

.tuihocta-strength-trend-card.is-improving {
    border-color: #fed7aa;
    background-color: #fff7ed;
}

.tuihocta-strength-trend-card.is-improving strong {
    color: var(--strength-orange);
}

.tuihocta-strength-trend-card.is-neutral {
    border-color: #e2e8f0;
    background-color: #f8fafc;
}

.tuihocta-strength-trend-card.is-neutral strong {
    color: var(--strength-muted);
}

.tuihocta-strength-trend-card.is-negative {
    border-color: #fecaca;
    background-color: #fef2f2;
}

.tuihocta-strength-trend-card.is-negative strong {
    color: var(--strength-red);
}

.tuihocta-strength-top-stocks article {
    position: relative;
    min-height: 138px;
}

.tuihocta-strength-stock-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #1d4ed8;
    background-color: #eff6ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.tuihocta-strength-top-stocks article > strong {
    padding-right: 28px;
}

.tuihocta-strength-top-stocks article span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.tuihocta-strength-top-stocks article span b {
    color: var(--strength-text);
}

.tuihocta-strength-stock-trend {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
    font-weight: 700;
}

.tuihocta-strength-top-stocks-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 20px;
    color: var(--strength-muted);
    background-color: #f8fafc;
    border: 1px solid var(--strength-border);
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .tuihocta-strength-trend-distribution > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 689px) {
    .tuihocta-strength-detail-header {
        flex-direction: column;
        padding-right: 42px;
    }

    .tuihocta-strength-detail-badges {
        justify-content: flex-start;
    }

    .tuihocta-strength-scope-comparison {
        padding: 15px;
    }

    .tuihocta-strength-trend-distribution > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .tuihocta-strength-trend-distribution > div {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   38. MODAL NGÀNH — BADGE CÙNG DÒNG & BỎ NHÃN PHẠM VI
================================================== */

/*
 * Giữ hai badge thống kê ở góc trên bên phải
 * trên cùng một dòng ở desktop.
 */

.tuihocta-strength-detail-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.tuihocta-strength-detail-badges {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.tuihocta-strength-detail-badges span {
    padding: 6px 9px;
    font-size: 11px;
}


/*
 * Sau khi bỏ chữ “Phạm vi”, tiêu đề panel bắt đầu
 * trực tiếp bằng nội dung xếp hạng.
 */

.tuihocta-strength-scope-comparison > header h3 {
    margin-top: 0;
}


/*
 * Với màn hình hẹp, cho phép badge xuống dòng
 * để tránh tràn khỏi modal.
 */

@media (max-width: 900px) {
    .tuihocta-strength-detail-badges {
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }
}

/* ==================================================
   39. MODAL NGÀNH — CHÚ THÍCH XU HƯỚNG
================================================== */

.tuihocta-strength-detail-note {
    display: block;
    margin-top: 8px;
    color: var(--strength-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.tuihocta-strength-detail-metric.is-strong
.tuihocta-strength-detail-note,
.tuihocta-strength-detail-metric.is-positive
.tuihocta-strength-detail-note {
    color: #15803d;
}

.tuihocta-strength-detail-metric.is-improving
.tuihocta-strength-detail-note {
    color: #c2410c;
}

.tuihocta-strength-detail-metric.is-negative
.tuihocta-strength-detail-note {
    color: #b91c1c;
}

/* ==================================================
   40. SECTOR & INDUSTRY STRENGTH — XẾP HẠNG NHÓM NGÀNH
================================================== */

.tuihocta-strength-sector-section {
    margin-top: 42px;
}

.tuihocta-strength-sector-heading {
    margin-bottom: 18px;
}

.tuihocta-strength-sector-heading h2 {
    margin: 0;
    color: var(--strength-text);
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.tuihocta-strength-sector-heading p:last-child {
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    color: var(--strength-muted);
    font-size: 14px;
    line-height: 1.55;
}

.tuihocta-strength-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-strength-sector-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 210px;
    padding: 18px;
    color: var(--strength-text);
    background-color: #ffffff;
    border: 1px solid var(--strength-border);
    border-radius: 14px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.tuihocta-strength-sector-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tuihocta-strength-sector-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--strength-blue);
    background-color: #eff6ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tuihocta-strength-sector-count {
    color: var(--strength-muted);
    font-size: 12px;
    font-weight: 700;
}

.tuihocta-strength-sector-card > strong {
    min-height: 48px;
    color: var(--strength-text);
    font-size: 19px;
    line-height: 1.3;
}

.tuihocta-strength-sector-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tuihocta-strength-sector-metrics span,
.tuihocta-strength-sector-breadth span {
    display: grid;
    gap: 4px;
    color: var(--strength-muted);
    font-size: 11px;
    font-weight: 700;
}

.tuihocta-strength-sector-metrics b,
.tuihocta-strength-sector-breadth b {
    color: var(--strength-text);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.tuihocta-strength-sector-breadth {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.tuihocta-strength-sector-card
b.is-strong,
.tuihocta-strength-sector-card
b.is-positive {
    color: var(--strength-green);
}

.tuihocta-strength-sector-card
b.is-improving {
    color: var(--strength-orange);
}

.tuihocta-strength-sector-card
b.is-negative {
    color: var(--strength-red);
}

.tuihocta-strength-sector-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.62);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f2f6ff 100%
        );
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.11);
}

.tuihocta-strength-sector-card.is-active
.tuihocta-strength-sector-rank {
    color: #ffffff;
    background-color: var(--strength-blue);
}

.tuihocta-strength-sector-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .tuihocta-strength-sector-card:hover {
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, 0.32);
        box-shadow:
            0 12px 25px rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 980px) {
    .tuihocta-strength-sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 689px) {
    .tuihocta-strength-sector-section {
        margin-top: 34px;
    }

    .tuihocta-strength-sector-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-strength-sector-card {
        min-height: 190px;
    }
}

/* ==================================================
   41. NHÓM NGÀNH — MODAL CHI TIẾT & NÚT LỌC RIÊNG
================================================== */

.tuihocta-strength-sector-card {
    overflow: hidden;
}

.tuihocta-strength-sector-filter-button {
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 8px 12px;
    color: var(--strength-blue);
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.tuihocta-strength-sector-filter-button:hover,
.tuihocta-strength-sector-card.is-active
.tuihocta-strength-sector-filter-button {
    color: #ffffff;
    background-color: var(--strength-blue);
    border-color: var(--strength-blue);
}

.tuihocta-strength-sector-industries-list {
    margin-top: 28px;
}

.tuihocta-strength-sector-industries-list > h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.tuihocta-strength-sector-industries-list > div {
    display: grid;
    gap: 10px;
}

.tuihocta-strength-sector-industry-item {
    display: grid;
    grid-template-columns: 42px minmax(180px, 1.7fr) minmax(120px, 0.8fr) minmax(100px, 0.6fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    color: var(--strength-text);
    background-color: #ffffff;
    border: 1px solid var(--strength-border);
    border-radius: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tuihocta-strength-sector-industry-item:hover {
    border-color: #bfdbfe;
    background-color: #f8fbff;
}

.tuihocta-strength-sector-industry-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--strength-blue);
    background-color: #eff6ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.tuihocta-strength-sector-industry-name {
    font-weight: 800;
}

.tuihocta-strength-sector-industry-item > span:not(.tuihocta-strength-sector-industry-rank):not(.tuihocta-strength-sector-industry-name) {
    display: grid;
    gap: 3px;
    color: var(--strength-muted);
    font-size: 11px;
}

.tuihocta-strength-sector-industry-item b {
    font-size: 13px;
}

.tuihocta-strength-sector-industry-item b.is-strong,
.tuihocta-strength-sector-industry-item b.is-positive {
    color: var(--strength-green);
}

.tuihocta-strength-sector-industry-item b.is-improving {
    color: var(--strength-orange);
}

.tuihocta-strength-sector-industry-item b.is-negative {
    color: var(--strength-red);
}

@media (max-width: 689px) {
    .tuihocta-strength-sector-industry-item {
        grid-template-columns: 38px 1fr;
    }

    .tuihocta-strength-sector-industry-item > span:nth-child(3),
    .tuihocta-strength-sector-industry-item > span:nth-child(4) {
        grid-column: 2;
    }
}

/* ==================================================
   42. NHÓM NGÀNH — MÔ TẢ THỨ TỰ XẾP HẠNG
================================================== */

.tuihocta-strength-sector-heading,
.tuihocta-strength-sector-heading > div {
    width: 100%;
    max-width: none;
}

/* ==================================================
   43. CỔ PHIẾU DẪN DẮT — MODAL CHI TIẾT CỔ PHIẾU
================================================== */

.tuihocta-strength-top-stocks article.is-clickable {
    cursor: pointer;
    transition:
        transform 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease;
}

.tuihocta-strength-top-stocks article.is-clickable:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08);
}

.tuihocta-strength-top-stocks article.is-clickable:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.tuihocta-strength-stock-detail-link {
    display: block;
    margin-top: 8px;
    color: var(--strength-blue);
    font-size: 11px;
    font-weight: 750;
    text-align: right;
}

.tuihocta-strength-top-stocks article.is-clickable:hover
.tuihocta-strength-stock-detail-link {
    text-decoration: underline;
}

/* ==================================================
   44. PHƯƠNG PHÁP XẾP HẠNG — KHỐI THU GỌN
================================================== */

.tuihocta-strength-methodology {
    margin-top: 18px;
    border: 1px solid var(--strength-border);
    border-radius: 14px;
    background-color: #ffffff;
    overflow: hidden;
}

.tuihocta-strength-methodology > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tuihocta-strength-methodology > summary::-webkit-details-marker {
    display: none;
}

.tuihocta-strength-methodology > summary > span:first-child {
    display: grid;
    gap: 3px;
}

.tuihocta-strength-methodology > summary strong {
    color: var(--strength-text);
    font-size: 15px;
    font-weight: 800;
}

.tuihocta-strength-methodology > summary small {
    color: var(--strength-muted);
    font-size: 12px;
    font-weight: 600;
}

.tuihocta-strength-methodology-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--strength-blue);
    background-color: #eff6ff;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.tuihocta-strength-methodology[open] > summary {
    border-bottom: 1px solid var(--strength-border);
    background-color: #f8fbff;
}

.tuihocta-strength-methodology-content {
    padding: 18px;
}

.tuihocta-strength-methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-strength-methodology-grid section {
    padding: 15px;
    border: 1px solid #e8edf4;
    border-radius: 11px;
    background-color: #fbfcfe;
}

.tuihocta-strength-methodology-grid h4 {
    margin: 0 0 9px;
    color: var(--strength-text);
    font-size: 14px;
}

.tuihocta-strength-methodology-grid p,
.tuihocta-strength-methodology-grid li {
    color: var(--strength-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tuihocta-strength-methodology-grid p {
    margin: 0 0 6px;
}

.tuihocta-strength-methodology-grid p:last-child {
    margin-bottom: 0;
}

.tuihocta-strength-methodology-grid ol {
    margin: 0;
    padding-left: 18px;
}

.tuihocta-strength-methodology-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8edf4;
}

.tuihocta-strength-methodology-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--strength-muted);
    font-size: 12px;
    font-weight: 700;
}

.tuihocta-strength-methodology-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.tuihocta-strength-methodology-legend i.is-strong {
    background-color: #16a34a;
}

.tuihocta-strength-methodology-legend i.is-positive {
    background-color: #22c55e;
}

.tuihocta-strength-methodology-legend i.is-improving {
    background-color: #f59e0b;
}

.tuihocta-strength-methodology-legend i.is-negative {
    background-color: #ef4444;
}

.tuihocta-strength-methodology > summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: -3px;
}

@media (max-width: 689px) {
    .tuihocta-strength-methodology-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-strength-methodology > summary {
        padding: 13px 14px;
    }

    .tuihocta-strength-methodology-content {
        padding: 14px;
    }
}

/* ==================================================
   45. PHƯƠNG PHÁP XẾP HẠNG — BỔ SUNG TRUNG TÍNH
================================================== */

.tuihocta-strength-methodology-legend i.is-neutral {
    background-color: #94a3b8;
}

/* ==================================================
   46. STRONG STOCKS — LINK TỪ CỘT NGÀNH
================================================== */

.strong-stocks-industry-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    text-underline-offset: 3px;
    transition:
        color 150ms ease,
        text-decoration-color 150ms ease;
}

.strong-stocks-industry-link::after {
    content: '↗';
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.strong-stocks-industry-link:hover,
.strong-stocks-industry-link:focus-visible {
    color: #2563eb;
    text-decoration: underline;
}

.strong-stocks-industry-link:hover::after,
.strong-stocks-industry-link:focus-visible::after {
    color: #2563eb;
    transform: translate(1px, -1px);
}

.strong-stocks-industry-link:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
}

/* ==================================================
   48. MODAL NHÓM NGÀNH / NGÀNH — CHUYỂN PHẠM VI
================================================== */

.tuihocta-strength-detail-scope-switch {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding-right: 4px;
}

.tuihocta-strength-detail-scope-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.tuihocta-strength-detail-scope-button strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: inherit;
    background-color: #f1f5f9;
    border-radius: 999px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.tuihocta-strength-detail-scope-button:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background-color: #f8fbff;
}

.tuihocta-strength-detail-scope-button.is-active {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow:
        0 7px 16px rgba(37, 99, 235, 0.18);
}

.tuihocta-strength-detail-scope-button.is-active strong {
    color: #1d4ed8;
    background-color: #ffffff;
}

.tuihocta-strength-detail-scope-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.tuihocta-strength-detail-extra-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.tuihocta-strength-comparison-wrapper {
    grid-template-columns: 1fr;
}

@media (max-width: 820px) {
    .tuihocta-strength-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tuihocta-strength-detail-scope-switch {
        justify-content: flex-start;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .tuihocta-strength-detail-scope-switch {
        flex-wrap: wrap;
    }

    .tuihocta-strength-detail-scope-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==================================================
   49. MARKET SUMMARY — BỘ LỌC NHANH NGÀNH
================================================== */

.tuihocta-strength-summary-card.is-clickable {
    position: relative;
    cursor: pointer;
    transition:
        transform 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease,
        background-color 170ms ease;
}

.tuihocta-strength-summary-card.is-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08);
}

.tuihocta-strength-summary-card.is-clickable:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}

.tuihocta-strength-summary-card.is-clickable.is-active {
    border-color: rgba(37, 99, 235, 0.66);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eef4ff 100%
        );
    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.12);
}

.tuihocta-strength-summary-card.is-clickable.is-active::after {
    content: 'Đang lọc';
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 7px;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.tuihocta-strength-summary-hint {
    display: block;
    margin-top: 8px;
    color: var(--strength-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

.tuihocta-strength-quick-filter-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    color: #1e3a8a;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 12px;
}

.tuihocta-strength-quick-filter-status[hidden] {
    display: none;
}

.tuihocta-strength-quick-filter-status > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.tuihocta-strength-quick-filter-status strong {
    color: #1d4ed8;
}

.tuihocta-strength-quick-filter-status small {
    color: #64748b;
    font-size: 11px;
}

.tuihocta-strength-quick-filter-status button {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #1d4ed8;
    background-color: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.tuihocta-strength-quick-filter-status button:hover {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 689px) {
    .tuihocta-strength-summary-card.is-clickable.is-active::after {
        position: static;
        display: inline-flex;
        width: max-content;
        margin-top: 8px;
    }

    .tuihocta-strength-quick-filter-status {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================
   50. ACTIVE FILTER BANNERS — SECTOR + STRONG STOCKS
================================================== */

.tuihocta-strength-sector-filter-status {
    margin-bottom: 8px;
}

.strong-stocks-active-filter-statuses {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
}

.strong-stocks-active-filter-statuses[hidden] {
    display: none;
}

.strong-stocks-filter-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    color: #1e3a8a;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 12px;
}

.strong-stocks-filter-status > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.strong-stocks-filter-status strong {
    color: #1d4ed8;
}

.strong-stocks-filter-status small {
    color: #64748b;
    font-size: 11px;
}

.strong-stocks-filter-status button {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #1d4ed8;
    background-color: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.strong-stocks-filter-status button:hover,
.strong-stocks-filter-status button:focus-visible {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

.strong-stocks-filter-status button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

@media (max-width: 689px) {
    .strong-stocks-filter-status {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================
   51. SECTOR STRENGTH MOBILE — 2 CARD MỖI DÒNG
================================================== */

@media (max-width: 689px) {
    .tuihocta-strength-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tuihocta-strength-summary-card {
        min-height: 132px;
        padding: 15px 13px;
        border-radius: 14px;
    }

    .tuihocta-strength-summary-card span {
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.35;
    }

    .tuihocta-strength-summary-card strong {
        font-size: 23px;
        line-height: 1.05;
    }

    .tuihocta-strength-summary-hint {
        margin-top: 7px;
        font-size: 9px;
        line-height: 1.35;
    }

    .tuihocta-strength-summary-card.is-clickable.is-active::after {
        position: static;
        display: inline-flex;
        width: max-content;
        margin-top: 7px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .tuihocta-strength-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tuihocta-strength-detail-metric {
        min-height: 118px;
        padding: 14px 12px;
        border-radius: 12px;
    }

    .tuihocta-strength-detail-metric span {
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.35;
    }

    .tuihocta-strength-detail-metric strong {
        font-size: 18px;
        line-height: 1.25;
    }

    .tuihocta-strength-detail-note {
        margin-top: 6px;
        font-size: 9px !important;
    }

    .tuihocta-strength-sector-industries-list > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tuihocta-strength-sector-industry-item {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-content: start;
        min-height: 182px;
        padding: 13px 11px;
        gap: 9px 8px;
        border-radius: 12px;
    }

    .tuihocta-strength-sector-industry-rank {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .tuihocta-strength-sector-industry-name {
        align-self: center;
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .tuihocta-strength-sector-industry-item > span:nth-child(3),
    .tuihocta-strength-sector-industry-item > span:nth-child(4) {
        grid-column: 1 / -1;
        gap: 2px;
        padding-top: 3px;
        font-size: 10px;
    }

    .tuihocta-strength-sector-industry-item b {
        font-size: 12px;
    }

    .tuihocta-strength-top-stocks > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tuihocta-strength-top-stocks article {
        min-width: 0;
        padding: 12px 10px;
    }
}

@media (max-width: 380px) {
    .tuihocta-strength-summary-card {
        min-height: 140px;
        padding: 14px 11px;
    }

    .tuihocta-strength-summary-card strong {
        font-size: 21px;
    }

    .tuihocta-strength-sector-industry-item {
        min-height: 194px;
        padding: 12px 9px;
    }
}

/* ==================================================
   52. XẾP HẠNG NGÀNH MOBILE — CARD VIEW
================================================== */

.tuihocta-strength-industry-mobile-cards {
    display: none;
}

@media (max-width: 689px) {
    #strength-industry-table,
    #strength-industry-table.closest {
        display: none;
    }

    #strength-industry-table {
        display: none !important;
    }

    #strength-industry-table
        + .tuihocta-strength-industry-mobile-cards {
        display: grid;
    }

    .tuihocta-strength-industry-mobile-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .tuihocta-strength-industry-mobile-card {
        padding: 14px;
        background-color: #ffffff;
        border: 1px solid #dbe4ef;
        border-radius: 15px;
        box-shadow:
            0 6px 18px rgba(15, 23, 42, 0.05);
        cursor: pointer;
    }

    .tuihocta-strength-industry-mobile-card:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.24);
        outline-offset: 3px;
    }

    .tuihocta-strength-industry-mobile-card > header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e8edf4;
    }

    .tuihocta-strength-industry-mobile-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 30px;
        padding: 0 9px;
        color: #1d4ed8;
        background-color: #eff6ff;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
    }

    .tuihocta-strength-industry-mobile-card h3 {
        margin: 0;
        color: var(--strength-text);
        font-size: 15px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .tuihocta-strength-industry-mobile-card header p {
        margin: 4px 0 0;
        color: var(--strength-muted);
        font-size: 11px;
        line-height: 1.35;
    }

    .tuihocta-strength-industry-mobile-count {
        color: #475569;
        font-size: 11px;
        font-weight: 750;
        white-space: nowrap;
    }

    .tuihocta-strength-industry-mobile-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .tuihocta-strength-industry-mobile-metrics > div {
        min-width: 0;
        padding: 10px;
        background-color: #f8fafc;
        border: 1px solid #e8edf4;
        border-radius: 11px;
    }

    .tuihocta-strength-industry-mobile-metrics > div.is-wide {
        grid-column: 1 / -1;
    }

    .tuihocta-strength-industry-mobile-metrics span {
        display: block;
        margin-bottom: 5px;
        color: var(--strength-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.3;
    }

    .tuihocta-strength-industry-mobile-metrics strong {
        color: var(--strength-text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
    }

    .tuihocta-strength-industry-mobile-card > small {
        display: block;
        margin-top: 10px;
        color: #64748b;
        font-size: 10px;
        font-weight: 650;
        text-align: right;
    }

    .tuihocta-strength-ranking-section
        .tuihocta-table-scroll {
        display: none;
    }
}

/* ==================================================
   53. MOBILE TABLE — GIỮ CỘT HẠNG + TÊN/MÃ
================================================== */

@media (max-width: 980px) {
    /*
     * Sector & Industry Strength:
     * giữ nguyên bảng cuộn ngang, ẩn card mobile.
     */
    .tuihocta-strength-industry-mobile-cards {
        display: none !important;
    }

    .tuihocta-strength-ranking-section
        .tuihocta-table-scroll {
        display: block !important;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    #strength-industry-table {
        display: table !important;
        min-width: 1180px;
        border-collapse: separate;
        border-spacing: 0;
    }

    #strength-industry-table th:nth-child(1),
    #strength-industry-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 4;
        width: 72px;
        min-width: 72px;
        max-width: 72px;
        background-color: #ffffff;
    }

    #strength-industry-table th:nth-child(2),
    #strength-industry-table td:nth-child(2) {
        position: sticky;
        left: 72px;
        z-index: 3;
        width: 230px;
        min-width: 230px;
        max-width: 230px;
        background-color: #ffffff;
        box-shadow:
            7px 0 10px -10px rgba(15, 23, 42, 0.75);
    }

    #strength-industry-table thead th:nth-child(1),
    #strength-industry-table thead th:nth-child(2) {
        z-index: 7;
        background-color: #f1f5f9;
    }

    #strength-industry-table tbody tr:nth-child(even)
        td:nth-child(1),
    #strength-industry-table tbody tr:nth-child(even)
        td:nth-child(2) {
        background-color: #f8fafc;
    }

    #strength-industry-table tbody tr:hover
        td:nth-child(1),
    #strength-industry-table tbody tr:hover
        td:nth-child(2) {
        background-color: #eef5ff;
    }

    /*
     * Strong Stocks:
     * cố định Hạng và Mã khi cuộn ngang.
     */
    #strong-stocks-full-table {
        min-width: 1220px;
        border-collapse: separate;
        border-spacing: 0;
    }

    #strong-stocks-full-table th:nth-child(1),
    #strong-stocks-full-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 4;
        width: 72px;
        min-width: 72px;
        max-width: 72px;
        background-color: #ffffff;
    }

    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        position: sticky;
        left: 72px;
        z-index: 3;
        width: 92px;
        min-width: 92px;
        max-width: 92px;
        background-color: #ffffff;
        box-shadow:
            7px 0 10px -10px rgba(15, 23, 42, 0.75);
    }

    #strong-stocks-full-table thead th:nth-child(1),
    #strong-stocks-full-table thead th:nth-child(2) {
        z-index: 7;
        background-color: #f1f5f9;
    }

    #strong-stocks-full-table tbody tr:nth-child(even)
        td:nth-child(1),
    #strong-stocks-full-table tbody tr:nth-child(even)
        td:nth-child(2) {
        background-color: #f8fafc;
    }

    #strong-stocks-full-table tbody tr:hover
        td:nth-child(1),
    #strong-stocks-full-table tbody tr:hover
        td:nth-child(2) {
        background-color: #eef5ff;
    }

    #strong-stocks-full-table td:nth-child(2) {
        font-weight: 800;
    }
}

@media (max-width: 689px) {
    #strength-industry-table th:nth-child(1),
    #strength-industry-table td:nth-child(1) {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }

    #strength-industry-table th:nth-child(2),
    #strength-industry-table td:nth-child(2) {
        left: 58px;
        width: 190px;
        min-width: 190px;
        max-width: 190px;
    }

    #strong-stocks-full-table th:nth-child(1),
    #strong-stocks-full-table td:nth-child(1) {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }

    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        left: 58px;
        width: 76px;
        min-width: 76px;
        max-width: 76px;
    }
}

/* ==================================================
   54. ĐIỀU CHỈNH MOBILE TABLE — CHỈ GIỮ STICKY STRONG STOCKS
================================================== */

@media (max-width: 980px) {
    /*
     * Xếp hạng Ngành:
     * bỏ cố định Hạng + Ngành, giữ bảng cuộn ngang tự nhiên.
     */
    #strength-industry-table th:nth-child(1),
    #strength-industry-table td:nth-child(1),
    #strength-industry-table th:nth-child(2),
    #strength-industry-table td:nth-child(2) {
        position: static;
        left: auto;
        z-index: auto;
        width: auto;
        min-width: 0;
        max-width: none;
        background-color: inherit;
        box-shadow: none;
    }

    #strength-industry-table thead th:nth-child(1),
    #strength-industry-table thead th:nth-child(2) {
        z-index: auto;
        background-color: #f1f5f9;
    }

    #strength-industry-table tbody tr:nth-child(even)
        td:nth-child(1),
    #strength-industry-table tbody tr:nth-child(even)
        td:nth-child(2) {
        background-color: #f8fafc;
    }

    #strength-industry-table tbody tr:hover
        td:nth-child(1),
    #strength-industry-table tbody tr:hover
        td:nth-child(2) {
        background-color: #eef5ff;
    }

    /*
     * Strong Stocks:
     * tiếp tục cố định Hạng + Mã.
     */
    #strong-stocks-full-table th:nth-child(1),
    #strong-stocks-full-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 4;
    }

    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        position: sticky;
        left: 72px;
        z-index: 3;
    }

    #strong-stocks-full-table thead th:nth-child(1),
    #strong-stocks-full-table thead th:nth-child(2) {
        z-index: 7;
    }
}

@media (max-width: 689px) {
    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        left: 58px;
    }
}


/* ==================================================
   57. CĂN RS RATING THEO ĐÚNG CỘT THỨ 3
================================================== */

/*
 * Dùng cùng cấu trúc 3 cột và cùng khoảng cách với hàng:
 * Trên MA50 | Trên MA200 | Xu hướng tích cực.
 */
.tuihocta-strength-sector-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

/* RS Momentum nằm đúng cột MA50 */
.tuihocta-strength-sector-metrics > span:first-child {
    grid-column: 1;
    display: grid;
    gap: 4px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

/* RS Rating nằm đúng cột Xu hướng tích cực */
.tuihocta-strength-sector-metrics > span:last-child {
    grid-column: 3;
    display: grid;
    gap: 4px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

.tuihocta-strength-sector-metrics > span:last-child b {
    width: auto;
    text-align: left;
}


/* ==================================================
   58. MOBILE — CĂN RS RATING ĐÚNG CỘT THỨ 3
================================================== */

@media (max-width: 689px) {
    .tuihocta-strength-sector-metrics {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .tuihocta-strength-sector-metrics > span:first-child {
        grid-column: 1 / 3 !important;
        display: grid !important;
        align-items: start !important;
        justify-items: start !important;
        justify-self: stretch !important;
        place-self: stretch !important;
        width: 100% !important;
        text-align: left !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child {
        grid-column: 3 !important;
        display: grid !important;
        align-items: start !important;
        justify-items: start !important;
        justify-self: stretch !important;
        place-self: stretch !important;
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child b {
        display: block !important;
        width: auto !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
}


/* ==================================================
   59. MOBILE — ĐỒNG BỘ LƯỚI HÀNG RS VÀ HÀNG ĐỘ RỘNG
================================================== */

@media (max-width: 689px) {
    /*
     * Hai hàng dùng chính xác cùng một lưới 3 cột.
     * Nhờ vậy RS Rating bắt đầu đúng vị trí của
     * cột "Xu hướng tích cực".
     */
    .tuihocta-strength-sector-metrics,
    .tuihocta-strength-sector-breadth {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 8px !important;
        row-gap: 4px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .tuihocta-strength-sector-metrics > span:first-child {
        grid-column: 1 / 3 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-self: stretch !important;
        text-align: left !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child {
        grid-column: 3 / 4 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        text-align: left !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child b {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
}


/* ==================================================
   60. MOBILE — CĂN PHẢI CỘT THỨ 3 ĐỒNG NHẤT
================================================== */

@media (max-width: 689px) {
    /*
     * Căn phải đồng thời:
     * - RS Rating trung bình
     * - Xu hướng tích cực
     * để hai khối trùng chính xác cùng một lề phải.
     */
    .tuihocta-strength-sector-metrics,
    .tuihocta-strength-sector-breadth {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .tuihocta-strength-sector-metrics > span:first-child {
        grid-column: 1 / 3 !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child,
    .tuihocta-strength-sector-breadth > span:last-child {
        grid-column: 3 !important;
        display: grid !important;
        width: 100% !important;
        justify-items: end !important;
        align-items: start !important;
        text-align: right !important;
    }

    .tuihocta-strength-sector-metrics > span:last-child b,
    .tuihocta-strength-sector-breadth > span:last-child b {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: right !important;
    }
}

/* ==================================================
   61. SECTOR CARD — NHÃN RS 1 DÒNG TRÊN DESKTOP
================================================== */

@media (min-width: 981px) {
    .tuihocta-strength-sector-metrics > span {
        white-space: nowrap !important;
    }
}

/* ==================================================
   STOCK DETAIL — NHÓM NGÀNH TRƯỚC, NGÀNH SAU
================================================== */

.strong-stocks-detail-classification {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    margin: 4px 0 0;
}

.strong-stocks-detail-classification strong {
    color: var(--tuihocta-ss-text, #0f172a);
    font-weight: 750;
}

.strong-stocks-detail-classification > span:last-child {
    color: var(--tuihocta-ss-muted, #64748b);
    font-weight: 500;
}

.strong-stocks-detail-classification-separator {
    color: var(--tuihocta-ss-muted, #64748b);
    font-weight: 500;
    white-space: pre;
}

/* ==================================================
   63. STRONG STOCKS — MÀU SUMMARY CARD
================================================== */

.strong-stocks-summary-card.is-summary-strong {
    border-color: #bbf7d0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f0fdf4 100%
        );
}

.strong-stocks-summary-card.is-summary-strong
.strong-stocks-summary-value {
    color: #166534;
}

.strong-stocks-summary-card.is-summary-positive {
    border-color: #bbf7d0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f0fdf4 100%
        );
}

.strong-stocks-summary-card.is-summary-positive
.strong-stocks-summary-value {
    color: #15803d;
}

.strong-stocks-summary-card.is-summary-improving {
    border-color: #fed7aa;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff7ed 100%
        );
}

.strong-stocks-summary-card.is-summary-improving
.strong-stocks-summary-value {
    color: #c2410c;
}

.strong-stocks-summary-card.is-summary-neutral {
    border-color: #e2e8f0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.strong-stocks-summary-card.is-summary-neutral
.strong-stocks-summary-value {
    color: #475569;
}

.strong-stocks-summary-card.is-summary-weak {
    border-color: #fecaca;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fef2f2 100%
        );
}

.strong-stocks-summary-card.is-summary-weak
.strong-stocks-summary-value {
    color: #b91c1c;
}

.strong-stocks-summary-card.is-summary-rating {
    border-color: #bfdbfe;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eff6ff 100%
        );
}

.strong-stocks-summary-card.is-summary-rating
.strong-stocks-summary-value {
    color: #1d4ed8;
}

.strong-stocks-summary-card.is-summary-rs {
    border-color: #bfdbfe;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eff6ff 100%
        );
}

.strong-stocks-summary-card.is-summary-rs
.strong-stocks-summary-value {
    color: #2563eb;
}
/* ==================================================
   52. P1.5 — TABLE SCROLL UX & ACCESSIBILITY
================================================== */

.tuihocta-table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 8px;
    color: var(--th-color-text-muted, #64748b);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.tuihocta-table-scroll-hint::before {
    content: "↔";
    color: var(--th-color-primary, #2563eb);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.tuihocta-table-scroll-hint[hidden] {
    display: none !important;
}

.tuihocta-table-scroll,
.tuihocta-strength-table-scroll {
    position: relative;
    outline: none;
    transition: box-shadow 160ms ease;
}

.tuihocta-table-scroll:focus-visible,
.tuihocta-strength-table-scroll:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.tuihocta-table-scroll.is-scrollable:not(.is-at-start),
.tuihocta-strength-table-scroll.is-scrollable:not(.is-at-start) {
    box-shadow:
        inset 16px 0 14px -16px rgba(15, 23, 42, 0.32);
}

.tuihocta-table-scroll.is-scrollable:not(.is-at-end),
.tuihocta-strength-table-scroll.is-scrollable:not(.is-at-end) {
    box-shadow:
        inset -16px 0 14px -16px rgba(15, 23, 42, 0.32);
}

.tuihocta-table-scroll.is-scrollable:not(.is-at-start):not(.is-at-end),
.tuihocta-strength-table-scroll.is-scrollable:not(.is-at-start):not(.is-at-end) {
    box-shadow:
        inset 16px 0 14px -16px rgba(15, 23, 42, 0.32),
        inset -16px 0 14px -16px rgba(15, 23, 42, 0.32);
}

/* ==================================================
   53. P1.5 — NHÓM NGÀNH: ACTIONS KHÔNG LỒNG BUTTON
================================================== */

.tuihocta-strength-sector-card {
    cursor: default;
}

.tuihocta-strength-sector-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.tuihocta-strength-sector-detail-button,
.tuihocta-strength-sector-filter-button {
    width: 100%;
    min-height: 40px;
    margin-top: 0;
    padding: 8px 10px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.tuihocta-strength-sector-detail-button {
    color: #ffffff;
    background-color: var(--strength-blue);
    border: 1px solid var(--strength-blue);
}

.tuihocta-strength-sector-filter-button {
    color: var(--strength-blue);
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

@media (hover: hover) and (pointer: fine) {
    .tuihocta-strength-sector-detail-button:hover,
    .tuihocta-strength-sector-filter-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
    }

    .tuihocta-strength-sector-detail-button:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }
}

.tuihocta-strength-sector-detail-button:focus-visible,
.tuihocta-strength-sector-filter-button:focus-visible,
.tuihocta-strength-sort-button:focus-visible,
.tuihocta-strength-pagination button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.tuihocta-strength-sector-filter-button[aria-pressed="true"],
.tuihocta-strength-sector-card.is-active
.tuihocta-strength-sector-filter-button {
    color: #ffffff;
    background-color: var(--strength-blue);
    border-color: var(--strength-blue);
}

@media (max-width: 420px) {
    .tuihocta-strength-sector-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tuihocta-table-scroll,
    .tuihocta-strength-table-scroll,
    .tuihocta-strength-sector-detail-button,
    .tuihocta-strength-sector-filter-button {
        transition: none !important;
    }
}

/* P1.5.2 HOTFIX — chỉ hiển thị một scroll hint cho mỗi bảng */
.tuihocta-table-scroll-hint + .tuihocta-table-scroll-hint {
    display: none !important;
}

@media (max-width: 689px) {
    .tuihocta-table-scroll-hint {
        margin-top: 10px;
        margin-bottom: 8px;
    }
}


/* ==================================================
   54. P1.5 FINAL — MOBILE TABLE UX
   Chỉ áp dụng trên điện thoại, không thay đổi desktop
================================================== */

@media (max-width: 689px) {
    /* Dấu hiệu có thể vuốt ngang */
    .tuihocta-table-scroll-hint {
        min-height: 28px;
        margin: 10px 0 8px;
        padding: 4px 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .tuihocta-table-scroll-hint::before {
        font-size: 17px;
    }

    /* Vùng cuộn dễ chạm, giữ cuộn quán tính trên iOS */
    .tuihocta-table-scroll,
    .tuihocta-strength-table-scroll {
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        touch-action: pan-x pan-y;
    }

    /* Tăng vùng bấm cho nút sort */
    .strong-stocks-sort-button,
    .tuihocta-strength-sort-button {
        min-width: 44px;
        min-height: 44px;
        padding: 6px 5px;
        line-height: 1.25;
    }

    /* Hàng dễ chạm hơn nhưng không quá chật */
    #strong-stocks-table tbody td,
    #strong-stocks-full-table tbody td,
    #strength-industry-table tbody td {
        min-height: 48px;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }

    /* Strong Stocks: giảm nhẹ độ rộng tổng trên màn hình 390–430px */
    figure#strong-stocks-full-table > table,
    #strong-stocks-full-table.tuihocta-table-scroll > table {
        width: 1080px !important;
        min-width: 1080px !important;
    }

    #strong-stocks-full-table thead th,
    #strong-stocks-full-table tbody td {
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    /* Sticky hai cột nhận diện: Hạng + Mã */
    #strong-stocks-full-table th:nth-child(1),
    #strong-stocks-full-table td:nth-child(1),
    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        position: sticky;
        z-index: 2;
        background-clip: padding-box;
    }

    #strong-stocks-full-table th:nth-child(1),
    #strong-stocks-full-table td:nth-child(1) {
        left: 0;
    }

    #strong-stocks-full-table th:nth-child(2),
    #strong-stocks-full-table td:nth-child(2) {
        left: 48px;
        box-shadow: 8px 0 10px -10px rgba(15, 23, 42, 0.48);
    }

    #strong-stocks-full-table thead th:nth-child(1),
    #strong-stocks-full-table thead th:nth-child(2) {
        z-index: 4;
        background-color: var(--tuihocta-ss-header);
    }

    #strong-stocks-full-table tbody tr:nth-child(odd) td:nth-child(1),
    #strong-stocks-full-table tbody tr:nth-child(odd) td:nth-child(2) {
        background-color: #ffffff;
    }

    #strong-stocks-full-table tbody tr:nth-child(even) td:nth-child(1),
    #strong-stocks-full-table tbody tr:nth-child(even) td:nth-child(2) {
        background-color: var(--tuihocta-ss-row-alt);
    }

    /* Sector & Industry: thu gọn bảng và giữ Hạng + Ngành */
    #strength-industry-table {
        min-width: 1020px;
    }

    #strength-industry-table th,
    #strength-industry-table td {
        padding-right: 12px;
        padding-left: 12px;
    }

    #strength-industry-table th:nth-child(1),
    #strength-industry-table td:nth-child(1),
    #strength-industry-table th:nth-child(2),
    #strength-industry-table td:nth-child(2) {
        position: sticky;
        z-index: 2;
        background-clip: padding-box;
    }

    #strength-industry-table th:nth-child(1),
    #strength-industry-table td:nth-child(1) {
        left: 0;
        width: 70px;
        min-width: 70px;
        text-align: center;
    }

    #strength-industry-table th:nth-child(2),
    #strength-industry-table td:nth-child(2) {
        left: 70px;
        width: 205px;
        min-width: 205px;
        white-space: normal;
        box-shadow: 8px 0 10px -10px rgba(15, 23, 42, 0.48);
    }

    #strength-industry-table thead th:nth-child(1),
    #strength-industry-table thead th:nth-child(2) {
        z-index: 4;
        background-color: #f8fafc;
    }

    #strength-industry-table tbody tr:nth-child(odd) td:nth-child(1),
    #strength-industry-table tbody tr:nth-child(odd) td:nth-child(2) {
        background-color: #ffffff;
    }

    #strength-industry-table tbody tr:nth-child(even) td:nth-child(1),
    #strength-industry-table tbody tr:nth-child(even) td:nth-child(2) {
        background-color: #f8fafc;
    }

    /* Touch target thống nhất */
    .strong-stocks-page-button,
    .tuihocta-strength-pagination button,
    .tuihocta-strength-sector-detail-button,
    .tuihocta-strength-sector-filter-button,
    .tuihocta-strength-modal-close,
    .strong-stocks-detail-close {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (min-width: 390px) and (max-width: 430px) {
    .strong-stocks-toolbar,
    .tuihocta-strength-toolbar {
        gap: 12px;
    }

    .strong-stocks-result-count,
    .tuihocta-strength-result-count {
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .tuihocta-strength-table-scroll {
        border-radius: 14px;
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 689px) {
    #strong-stocks-full-table tbody tr:hover td:nth-child(1),
    #strong-stocks-full-table tbody tr:hover td:nth-child(2),
    #strength-industry-table tbody tr:hover td:nth-child(1),
    #strength-industry-table tbody tr:hover td:nth-child(2) {
        background-color: var(--th-color-surface-hover, #eff6ff);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tuihocta-table-scroll,
    .tuihocta-strength-table-scroll {
        scroll-behavior: auto;
    }
}

/* ==================================================
   55. P1.5.2 FINAL — MOBILE TABLE POLISH
================================================== */

.tuihocta-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mũi tên gợi ý nhẹ; tự tắt khi người dùng giảm chuyển động. */
@media (max-width: 689px) {
    .tuihocta-table-scroll-hint::before {
        animation: tuihocta-scroll-hint-nudge 1.8s ease-in-out 2;
    }

    /* Touch target thống nhất cho toolbar. */
    .strong-stocks-filter-field input,
    .strong-stocks-filter-field select,
    .tuihocta-strength-toolbar input,
    .tuihocta-strength-toolbar select {
        min-height: 44px;
    }

    /* Top 5 trang chủ cũng giữ Hạng + Mã khi vuốt. */
    #strong-stocks-table th:nth-child(1),
    #strong-stocks-table td:nth-child(1),
    #strong-stocks-table th:nth-child(2),
    #strong-stocks-table td:nth-child(2) {
        position: sticky;
        z-index: 2;
        background-clip: padding-box;
    }

    #strong-stocks-table th:nth-child(1),
    #strong-stocks-table td:nth-child(1) {
        left: 0;
    }

    #strong-stocks-table th:nth-child(2),
    #strong-stocks-table td:nth-child(2) {
        left: 64px;
        box-shadow: 8px 0 10px -10px rgba(15, 23, 42, 0.48);
    }

    #strong-stocks-table thead th:nth-child(1),
    #strong-stocks-table thead th:nth-child(2) {
        z-index: 4;
        background-color: var(--tuihocta-ss-header);
    }

    #strong-stocks-table tbody tr:nth-child(odd) td:nth-child(1),
    #strong-stocks-table tbody tr:nth-child(odd) td:nth-child(2) {
        background-color: #ffffff;
    }

    #strong-stocks-table tbody tr:nth-child(even) td:nth-child(1),
    #strong-stocks-table tbody tr:nth-child(even) td:nth-child(2) {
        background-color: var(--tuihocta-ss-row-alt);
    }
}

@media (min-width: 390px) and (max-width: 430px) {
    #strong-stocks-table thead th,
    #strong-stocks-table tbody td,
    #strong-stocks-full-table thead th,
    #strong-stocks-full-table tbody td {
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    #strength-industry-table th,
    #strength-industry-table td {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .tuihocta-table-scroll-hint {
        margin-top: 8px;
        margin-bottom: 6px;
    }
}

@keyframes tuihocta-scroll-hint-nudge {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tuihocta-table-scroll-hint::before {
        animation: none !important;
    }
}

/* ==================================================
   56. P1.5 FINAL — PAGINATION MOBILE
   - Sector giữ kích thước nút đồng bộ.
   - Strong Stocks được khóa một hàng trong strong-stocks.js.
   - Đã loại bỏ các hotfix P1.5.4–P1.5.6 chồng chéo.
================================================== */

@media (max-width: 689px) {
    .strong-stocks-pagination,
    .tuihocta-strength-pagination {
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        margin: 26px auto 0;
    }

    .tuihocta-strength-pagination {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .tuihocta-strength-pagination button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 52px;
        min-height: 52px;
        padding: 10px 14px;
        border-radius: 9px;
        font: inherit;
        font-size: 16px;
        font-weight: 650;
        line-height: 1;
        white-space: nowrap;
    }

    .tuihocta-strength-pagination button:first-child,
    .tuihocta-strength-pagination button:last-child {
        min-width: 104px;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 389px) {
    .tuihocta-strength-pagination {
        gap: 6px;
    }

    .tuihocta-strength-pagination button:first-child,
    .tuihocta-strength-pagination button:last-child {
        min-width: 92px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* =========================================================
   TUIHOCTA — MARKET DASHBOARD P2.1C
========================================================= */

.tuihocta-market-dashboard {
    --dashboard-border: #dfe6ef;
    --dashboard-muted: #64748b;
    --dashboard-surface: #ffffff;
    --dashboard-soft: #f7f9fc;
    --dashboard-text: #172033;
    display: grid;
    gap: 32px;
    color: var(--dashboard-text);
}

.tuihocta-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--dashboard-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(44, 102, 255, .10), transparent 40%),
        var(--dashboard-surface);
}

.tuihocta-dashboard-kicker,
.tuihocta-dashboard-section-heading p,
.tuihocta-dashboard-ranking-panel header p {
    margin: 0 0 8px;
    color: #2c66ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-dashboard-hero h1,
.tuihocta-dashboard-section-heading h2,
.tuihocta-dashboard-ranking-panel h2 {
    margin: 0;
    color: var(--dashboard-text);
}

.tuihocta-dashboard-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.tuihocta-dashboard-subtitle {
    max-width: 760px;
    margin: 16px 0 12px;
    color: var(--dashboard-muted);
    font-size: 17px;
    line-height: 1.7;
}

.tuihocta-dashboard-hero small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-score-gauge {
    --market-score: 0;
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    margin-inline: auto;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            currentColor calc(var(--market-score) * 1%),
            #e9edf4 0
        );
    color: #64748b;
}

.tuihocta-dashboard-score-gauge::before {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: var(--dashboard-surface);
    content: "";
}

.tuihocta-dashboard-score-gauge > div {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
}

.tuihocta-dashboard-score-gauge span,
.tuihocta-dashboard-score-gauge small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-score-gauge strong {
    font-size: 44px;
    line-height: 1.1;
}

.tuihocta-dashboard-score-gauge b {
    margin-top: 4px;
}

.tuihocta-dashboard-section {
    display: grid;
    gap: 18px;
}

.tuihocta-dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.tuihocta-dashboard-component-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-dashboard-component-card,
.tuihocta-dashboard-metric-card,
.tuihocta-dashboard-internal-card,
.tuihocta-dashboard-ranking-panel,
.tuihocta-dashboard-alert {
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-dashboard-component-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
}

.tuihocta-dashboard-component-heading {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.tuihocta-dashboard-component-heading div {
    display: grid;
    gap: 5px;
}

.tuihocta-dashboard-component-heading span {
    font-weight: 800;
}

.tuihocta-dashboard-component-heading small,
.tuihocta-dashboard-component-card footer,
.tuihocta-dashboard-metric-card small,
.tuihocta-dashboard-internal-card small,
.tuihocta-dashboard-ranking-row small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-component-heading strong {
    font-size: 24px;
}

.tuihocta-dashboard-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e9edf4;
}

.tuihocta-dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.tuihocta-dashboard-breadth-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-dashboard-metric-card,
.tuihocta-dashboard-internal-card {
    display: grid;
    gap: 7px;
    padding: 20px;
    border-radius: 18px;
}

.tuihocta-dashboard-metric-card span,
.tuihocta-dashboard-internal-card span {
    color: var(--dashboard-muted);
    font-size: 14px;
    font-weight: 700;
}

.tuihocta-dashboard-metric-card strong,
.tuihocta-dashboard-internal-card strong {
    font-size: 25px;
}

.tuihocta-dashboard-internal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-dashboard-ranking-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tuihocta-dashboard-ranking-panel {
    overflow: hidden;
    border-radius: 20px;
}

.tuihocta-dashboard-ranking-panel header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--dashboard-border);
}

.tuihocta-dashboard-ranking-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--dashboard-border);
}

.tuihocta-dashboard-ranking-row:last-child {
    border-bottom: 0;
}

.tuihocta-dashboard-ranking-row > div {
    display: grid;
}

.tuihocta-dashboard-rank {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--dashboard-soft);
    font-weight: 800;
}

.tuihocta-dashboard-ranking-row > b {
    color: #0f8a4b;
}

.tuihocta-dashboard-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-dashboard-alert {
    padding: 18px 20px;
    border-radius: 16px;
    border-left-width: 4px;
}

.tuihocta-dashboard-alert p {
    margin: 6px 0 0;
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-alert.is-danger {
    border-left-color: #dc2626;
}

.tuihocta-dashboard-alert.is-warning {
    border-left-color: #f59e0b;
}

.tuihocta-dashboard-alert.is-positive {
    border-left-color: #16a34a;
}

.tuihocta-dashboard-disclaimer {
    margin: 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--dashboard-soft);
    color: var(--dashboard-muted);
    font-size: 13px;
}

.tuihocta-dashboard-error,
.tuihocta-dashboard-empty {
    padding: 20px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff7f7;
}

.tuihocta-dashboard-score-gauge.is-very-weak,
.tuihocta-dashboard-component-card.is-very-weak,
.tuihocta-dashboard-metric-card.is-very-weak {
    color: #dc2626;
}

.tuihocta-dashboard-score-gauge.is-weak,
.tuihocta-dashboard-component-card.is-weak,
.tuihocta-dashboard-metric-card.is-weak {
    color: #ea580c;
}

.tuihocta-dashboard-score-gauge.is-neutral-weak,
.tuihocta-dashboard-component-card.is-neutral-weak,
.tuihocta-dashboard-metric-card.is-neutral-weak {
    color: #f59e0b;
}

.tuihocta-dashboard-score-gauge.is-neutral-positive,
.tuihocta-dashboard-component-card.is-neutral-positive,
.tuihocta-dashboard-metric-card.is-neutral-positive {
    color: #65a30d;
}

.tuihocta-dashboard-score-gauge.is-strong,
.tuihocta-dashboard-component-card.is-strong,
.tuihocta-dashboard-metric-card.is-strong,
.tuihocta-dashboard-score-gauge.is-very-strong,
.tuihocta-dashboard-component-card.is-very-strong,
.tuihocta-dashboard-metric-card.is-very-strong {
    color: #0f8a4b;
}

@media (max-width: 1100px) {
    .tuihocta-dashboard-component-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tuihocta-dashboard-breadth-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tuihocta-dashboard-ranking-layout {
        grid-template-columns: 1fr 1fr;
    }

    .tuihocta-dashboard-ranking-panel:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .tuihocta-market-dashboard {
        gap: 24px;
    }

    .tuihocta-dashboard-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .tuihocta-dashboard-score-gauge {
        width: 190px;
        height: 190px;
    }

    .tuihocta-dashboard-component-grid,
    .tuihocta-dashboard-breadth-grid,
    .tuihocta-dashboard-internal-grid,
    .tuihocta-dashboard-alert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tuihocta-dashboard-ranking-layout {
        grid-template-columns: 1fr;
    }

    .tuihocta-dashboard-ranking-panel:last-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .tuihocta-dashboard-component-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-dashboard-component-card,
    .tuihocta-dashboard-metric-card,
    .tuihocta-dashboard-internal-card {
        padding: 16px;
    }

    .tuihocta-dashboard-hero h1 {
        font-size: 36px;
    }
}


/* =========================================================
   P2.1C.3 — MARKET REGIME & BOTTOMING MODEL
========================================================= */

.tuihocta-dashboard-regime-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tuihocta-dashboard-regime-summary,
.tuihocta-dashboard-bottoming-card,
.tuihocta-dashboard-regime-factor {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: var(--dashboard-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-dashboard-regime-summary p {
    margin: 0;
    color: #2c66ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-dashboard-regime-summary h2 {
    margin: 0;
    font-size: 30px;
}

.tuihocta-dashboard-regime-summary strong {
    color: #dc2626;
    font-size: 17px;
}

.tuihocta-dashboard-regime-summary span,
.tuihocta-dashboard-regime-summary small,
.tuihocta-dashboard-bottoming-card small,
.tuihocta-dashboard-regime-factor small {
    color: var(--dashboard-muted);
    line-height: 1.55;
}

.tuihocta-dashboard-bottoming-card > span,
.tuihocta-dashboard-regime-factor > span {
    color: var(--dashboard-muted);
    font-size: 14px;
    font-weight: 700;
}

.tuihocta-dashboard-bottoming-card > strong,
.tuihocta-dashboard-regime-factor > strong {
    font-size: 30px;
}

.tuihocta-dashboard-bottoming-card .tuihocta-dashboard-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2c66ff;
}

@media (max-width: 1100px) {
    .tuihocta-dashboard-regime-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tuihocta-dashboard-regime-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .tuihocta-dashboard-regime-panel {
        grid-template-columns: 1fr 1fr;
    }

    .tuihocta-dashboard-regime-summary,
    .tuihocta-dashboard-bottoming-card {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   UNIFIED HISTORY SCORES + WEEKLY BREADTH COMPARISON
========================================================= */

.tuihocta-dashboard-breadth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tuihocta-dashboard-weekly-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: var(--dashboard-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-dashboard-weekly-card header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.tuihocta-dashboard-weekly-card header span {
    color: #2c66ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-dashboard-weekly-card h3 {
    margin: 4px 0 0;
    font-size: 22px;
}

.tuihocta-dashboard-help {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--dashboard-border);
    border-radius: 50%;
    background: var(--dashboard-soft);
    color: var(--dashboard-muted);
    cursor: help;
    font-weight: 800;
}

.tuihocta-dashboard-weekly-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tuihocta-dashboard-weekly-values > div {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 14px;
    background: var(--dashboard-soft);
}

.tuihocta-dashboard-weekly-values span,
.tuihocta-dashboard-weekly-values small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-weekly-values span {
    font-size: 13px;
    font-weight: 700;
}

.tuihocta-dashboard-weekly-values strong {
    font-size: 23px;
}

.tuihocta-dashboard-weekly-card footer {
    display: grid;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid var(--dashboard-border);
}

.tuihocta-dashboard-weekly-card footer b.is-positive {
    color: #0f8a4b;
}

.tuihocta-dashboard-weekly-card footer b.is-negative {
    color: #dc2626;
}

.tuihocta-dashboard-weekly-card footer span {
    color: var(--dashboard-muted);
    font-size: 13px;
}

.tuihocta-dashboard-weekly-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--dashboard-soft);
    color: var(--dashboard-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tuihocta-dashboard-data-warning {
    margin: -18px 0 0;
    padding: 13px 16px;
    border: 1px solid #fcd34d;
    border-radius: 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

@media (max-width: 900px) {
    .tuihocta-dashboard-breadth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tuihocta-dashboard-weekly-card {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   DAILY BREADTH — COMBINED CARD
========================================================= */

.tuihocta-dashboard-breadth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tuihocta-dashboard-daily-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: var(--dashboard-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-dashboard-daily-card header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.tuihocta-dashboard-daily-card header > div > span {
    color: #2c66ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-dashboard-daily-card h3 {
    margin: 4px 0 0;
    font-size: 22px;
}

.tuihocta-dashboard-daily-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tuihocta-dashboard-daily-values > div {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 14px;
    background: var(--dashboard-soft);
}

.tuihocta-dashboard-daily-values span,
.tuihocta-dashboard-daily-values small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-daily-values span {
    font-size: 13px;
    font-weight: 700;
}

.tuihocta-dashboard-daily-values strong {
    font-size: 23px;
}

.tuihocta-dashboard-daily-values .is-very-weak strong,
.tuihocta-dashboard-daily-values .is-weak strong {
    color: #dc2626;
}

.tuihocta-dashboard-daily-values .is-neutral-weak strong {
    color: #ea580c;
}

.tuihocta-dashboard-daily-values .is-neutral-positive strong {
    color: #65a30d;
}

.tuihocta-dashboard-daily-values .is-strong strong,
.tuihocta-dashboard-daily-values .is-very-strong strong {
    color: #0f8a4b;
}

.tuihocta-dashboard-daily-card footer {
    padding-top: 14px;
    border-top: 1px solid var(--dashboard-border);
}

.tuihocta-dashboard-daily-card footer span {
    color: var(--dashboard-muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .tuihocta-dashboard-breadth-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-dashboard-daily-card,
    .tuihocta-dashboard-weekly-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tuihocta-dashboard-daily-values {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   MARKET DASHBOARD — DATA SYNC BADGE
================================================== */

.tuihocta-dashboard-sync-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.tuihocta-dashboard-sync-badge::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.tuihocta-dashboard-sync-badge.is-synced {
    color: #0f7a38;
    background-color: #edf9f0;
}

.tuihocta-dashboard-sync-badge.is-warning {
    color: #a45d00;
    background-color: #fff7e5;
}



/* =========================================================
   P2.1C.5 — REGIME PANEL REFINEMENT + HELP POPOVERS
========================================================= */

.tuihocta-dashboard-regime-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.tuihocta-dashboard-regime-summary,
.tuihocta-dashboard-regime-metric-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: var(--dashboard-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-dashboard-regime-summary > header,
.tuihocta-dashboard-regime-metric-card > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.tuihocta-dashboard-regime-summary > header p {
    margin: 0;
    color: #2c66ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-dashboard-regime-summary h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.tuihocta-dashboard-regime-summary strong {
    font-size: 17px;
    line-height: 1.5;
}

.tuihocta-dashboard-regime-summary.is-downtrend h2,
.tuihocta-dashboard-regime-summary.is-downtrend strong {
    color: #dc2626;
}

.tuihocta-dashboard-regime-summary.is-uptrend h2,
.tuihocta-dashboard-regime-summary.is-uptrend strong {
    color: #15803d;
}

.tuihocta-dashboard-regime-summary span {
    color: var(--dashboard-muted);
    line-height: 1.6;
}

.tuihocta-dashboard-stage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tuihocta-dashboard-stage-chip {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--dashboard-border);
    border-radius: 14px;
    background: var(--dashboard-soft);
}

.tuihocta-dashboard-stage-chip small {
    color: var(--dashboard-muted);
    font-size: 11px;
    line-height: 1.3;
}

.tuihocta-dashboard-stage-chip strong {
    font-size: 14px;
    color: var(--dashboard-text);
}

.tuihocta-dashboard-stage-chip.is-active {
    border-color: rgba(44, 102, 255, .25);
    background: rgba(44, 102, 255, .06);
}

.tuihocta-dashboard-condition-block {
    display: grid;
    gap: 12px;
}

.tuihocta-dashboard-condition-title {
    color: var(--dashboard-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tuihocta-dashboard-condition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tuihocta-dashboard-condition-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--dashboard-soft);
}

.tuihocta-dashboard-condition-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: #f59e0b;
}

.tuihocta-dashboard-condition-item.is-positive .tuihocta-dashboard-condition-dot { background: #15803d; }
.tuihocta-dashboard-condition-item.is-negative .tuihocta-dashboard-condition-dot { background: #dc2626; }
.tuihocta-dashboard-condition-item.is-warning .tuihocta-dashboard-condition-dot { background: #d97706; }

.tuihocta-dashboard-condition-item span,
.tuihocta-dashboard-condition-item small,
.tuihocta-dashboard-regime-metric-card header span,
.tuihocta-dashboard-regime-metric-card p,
.tuihocta-dashboard-regime-metric-card small {
    color: var(--dashboard-muted);
}

.tuihocta-dashboard-condition-item span,
.tuihocta-dashboard-regime-metric-card h3 {
    font-size: 14px;
    font-weight: 700;
}

.tuihocta-dashboard-condition-item strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
    color: var(--dashboard-text);
}

.tuihocta-dashboard-regime-metric-card h3 {
    margin: 0;
    color: var(--dashboard-text);
}

.tuihocta-dashboard-regime-score-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tuihocta-dashboard-regime-score-row strong {
    font-size: 38px;
    line-height: 1;
}

.tuihocta-dashboard-regime-score-row small {
    font-size: 18px;
    font-weight: 700;
}

.tuihocta-dashboard-regime-metric-card .tuihocta-dashboard-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.tuihocta-dashboard-regime-metric-card.is-very-weak,
.tuihocta-dashboard-regime-metric-card.is-weak {
    color: #dc2626;
}

.tuihocta-dashboard-regime-metric-card.is-neutral-weak,
.tuihocta-dashboard-regime-metric-card.is-neutral-positive {
    color: #d97706;
}

.tuihocta-dashboard-regime-metric-card.is-strong,
.tuihocta-dashboard-regime-metric-card.is-very-strong {
    color: #15803d;
}

.tuihocta-dashboard-metric-trend {
    display: block;
    margin-top: -4px;
}

.tuihocta-dashboard-popover {
    position: relative;
}

.tuihocta-dashboard-popover summary {
    list-style: none;
}

.tuihocta-dashboard-popover summary::-webkit-details-marker {
    display: none;
}

.tuihocta-dashboard-popover-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: min(320px, 80vw);
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--dashboard-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .14);
}

.tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover-body p,
.tuihocta-dashboard-popover-body li {
    color: var(--dashboard-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tuihocta-dashboard-popover-body p {
    margin: 0 0 8px;
}

.tuihocta-dashboard-popover-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    .tuihocta-dashboard-regime-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tuihocta-dashboard-regime-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .tuihocta-dashboard-regime-panel {
        grid-template-columns: 1fr;
    }

    .tuihocta-dashboard-stage-list,
    .tuihocta-dashboard-condition-grid {
        grid-template-columns: 1fr;
    }

    .tuihocta-dashboard-popover-panel {
        left: 0;
        right: auto;
        width: min(280px, 80vw);
    }
}


/* =========================================================
   CONTENT REFINEMENT — NEUTRAL REGIME TEXT
========================================================= */

.tuihocta-dashboard-regime-summary h2,
.tuihocta-dashboard-regime-summary strong,
.tuihocta-dashboard-regime-summary.is-downtrend h2,
.tuihocta-dashboard-regime-summary.is-downtrend strong,
.tuihocta-dashboard-regime-summary.is-uptrend h2,
.tuihocta-dashboard-regime-summary.is-uptrend strong {
    color: #111827;
}

.tuihocta-dashboard-regime-summary > span {
    color: #64748b;
}

.tuihocta-dashboard-stage-list {
    display: none !important;
}

.tuihocta-dashboard-popover-panel strong {
    color: #1f2937;
}

.tuihocta-dashboard-popover-body strong {
    color: #374151;
}


/* =========================================================
   TOOLTIP CONTENT REFINEMENT V2
========================================================= */

.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-panel,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-title,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body p,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body strong {
    color: #4b5563 !important;
}

.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-title {
    font-weight: 700;
}

.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body strong {
    font-weight: 650;
}

.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-panel {
    gap: 0;
}

.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-body p {
    color: #4b5563;
}

/* =========================================================
   TOOLTIP LIST STYLE + BREADTH HELP FIX V3
========================================================= */

.tuihocta-dashboard-popover-panel,
.tuihocta-dashboard-popover-title,
.tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover-body p,
.tuihocta-dashboard-popover-body ul,
.tuihocta-dashboard-popover-body li,
.tuihocta-dashboard-popover-body strong,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-panel,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-title,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body p,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body li,
.tuihocta-dashboard-popover.is-regime-help .tuihocta-dashboard-popover-body strong,
.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-body p,
.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-body li,
.tuihocta-dashboard-popover.is-breadth-help .tuihocta-dashboard-popover-body,
.tuihocta-dashboard-popover.is-breadth-help .tuihocta-dashboard-popover-body li {
    color: #5f6b7a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.tuihocta-dashboard-popover-body ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
}

.tuihocta-dashboard-popover-body li {
    margin: 0;
    padding-left: 2px;
}

.tuihocta-dashboard-popover-body li::marker {
    color: #94a3b8;
}

.tuihocta-dashboard-popover.is-usage-only .tuihocta-dashboard-popover-panel,
.tuihocta-dashboard-popover.is-breadth-help .tuihocta-dashboard-popover-panel {
    gap: 0;
}

.tuihocta-dashboard-daily-card header,
.tuihocta-dashboard-weekly-card header {
    overflow: visible;
}

/* deployment/phase2-7c-css-patch.css */
/* deployment/sprint3-1c-6n-patch.css */
/* =========================================================
   MARKET DASHBOARD — VNINDEX SEASONALITY
   Production: Data App calculation owner; frontend render only.
========================================================= */

.tuihocta-dashboard-seasonality {
    min-width: 0;
}

.tuihocta-seasonality-heading {
    gap: 20px;
}

.tuihocta-seasonality-heading > div:first-child {
    min-width: 0;
}

.tuihocta-seasonality-heading small,
.tuihocta-seasonality-meta,
.tuihocta-seasonality-card header small,
.tuihocta-seasonality-unavailable span {
    color: var(--dashboard-muted, #64748b);
}

.tuihocta-seasonality-heading small {
    display: block;
    margin-top: 8px;
    line-height: 1.55;
}

.tuihocta-seasonality-window-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--dashboard-border, #dfe6ef);
    border-radius: 12px;
    background: #f8fafc;
}

.tuihocta-seasonality-window-switch button {
    min-width: 54px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    color: #64748b;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tuihocta-seasonality-window-switch button:hover {
    color: #1d4ed8;
    background: #eef4ff;
}

.tuihocta-seasonality-window-switch button.is-active {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .20);
}

.tuihocta-seasonality-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: -6px;
    font-size: 12px;
    line-height: 1.5;
}

.tuihocta-seasonality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.tuihocta-seasonality-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--dashboard-border, #dfe6ef);
    border-radius: 20px;
    background: var(--dashboard-surface, #ffffff);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.tuihocta-seasonality-card header {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tuihocta-seasonality-card header > span {
    color: #2c66ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tuihocta-seasonality-card h3 {
    margin: 0;
    color: var(--dashboard-text, #172033);
    font-size: 19px;
    line-height: 1.3;
}

.tuihocta-seasonality-echart {
    width: 100%;
    height: 320px;
    min-height: 320px;
    margin-top: 14px;
}

.tuihocta-seasonality-unavailable {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.tuihocta-seasonality-unavailable strong {
    color: #334155;
}

.tuihocta-dashboard-seasonality.is-echarts-missing .tuihocta-seasonality-card {
    opacity: .72;
}

@media (max-width: 900px) {
    .tuihocta-seasonality-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tuihocta-seasonality-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .tuihocta-dashboard-seasonality {
        gap: 14px;
    }

    .tuihocta-seasonality-window-switch {
        width: 100%;
    }

    .tuihocta-seasonality-window-switch button {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 8px;
    }

    .tuihocta-seasonality-meta {
        display: grid;
        gap: 4px;
    }

    .tuihocta-seasonality-card {
        padding: 16px;
        border-radius: 16px;
    }

    .tuihocta-seasonality-card h3 {
        font-size: 18px;
    }

    .tuihocta-seasonality-echart {
        height: 260px;
        min-height: 260px;
    }
}
