/* market-ratings.css — Market Ratings table + trend chart */

/* ========================================
   GLOBAL OVERRIDES
   ======================================== */
.market-ratings-page button {
    background-color: transparent !important;
    margin-bottom: 0 !important;
}
.market-ratings-page button:hover {
    background-color: transparent !important;
}

.market-ratings-page {
    padding: 15px 20px;
}

/* ========================================
   CONTROLS ROW (Sport tabs)
   ======================================== */
.mr-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========================================
   FILTER CONTROLS + HCA CALLOUT
   ======================================== */
.mr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
}

.mr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mr-filter-group label {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mr-filter-group select {
    font-size: 13px;
    padding: 5px 10px;
    min-width: 140px;
    height: 34px;
}

.mr-hca-callout {
    font-size: 14px;
    color: #333;
}

.mr-hca-label {
    color: #666;
    margin-right: 6px;
}

.mr-hca-value {
    font-weight: 900;
    color: #07250e;
    font-size: 16px;
}

/* ========================================
   TABLE + CHART LAYOUT
   ======================================== */
.mr-body-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.mr-table-col {
    flex: 0 0 40%;
    max-width: 40%;
    overflow-x: auto;
}

.mr-chart-col {
    flex: 1 1 60%;
    min-width: 0;
}

.mr-team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mr-team-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.mr-team-table thead th:hover {
    color: #07250e;
}

.mr-team-table thead th.mr-sort-active {
    color: #07250e;
}

.mr-team-table thead th.mr-sort-active::after {
    content: ' \25BC';
    font-size: 9px;
}

.mr-team-table thead th.mr-sort-active.mr-sort-asc::after {
    content: ' \25B2';
}

.mr-team-table tbody tr {
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.mr-team-table tbody tr:hover {
    background-color: #f6f8f7;
}

.mr-team-table tbody tr.mr-row-selected {
    background-color: #e8f3ec;
}

.mr-team-table td {
    padding: 7px 10px;
    color: #333;
}

.mr-team-table td.mr-rank-cell {
    color: #888;
    font-weight: 600;
    width: 40px;
}

.mr-team-table td.mr-rating-cell {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mr-loading, .mr-no-data {
    color: #888;
    padding: 20px;
    font-size: 14px;
    text-align: center;
}

/* ========================================
   CHART
   ======================================== */
.mr-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.mr-chart-wrap {
    position: relative;
    width: 100%;
    height: 420px;
}

.mr-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .content-wrapper > .market-ratings-page {
        padding: 10px 16px !important;
    }

    .mr-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mr-filter-group select {
        width: 100%;
    }

    .mr-body-container {
        flex-direction: column;
    }

    .mr-table-col,
    .mr-chart-col {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .mr-chart-wrap {
        height: 300px;
    }

    .mr-chart-title {
        font-size: 13px;
    }
}
