/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/app_shell/dashboard/modules/ranking/index.css, assets/css/app_shell/dashboard/modules/communication/index.css
 */
/* TOP 10 排行表 */

/* === import from ./card.css (card.css) */
.ranking-card {
    background: transparent;
    border: none;
    box-shadow: none;
}



/* === import from ./tabs.css (tabs.css) */
.ranking-tabs-container {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #DCEFFF 0%, #E8EFFF 45%, #F5F7FA 100%);
    padding: 20px 24px 16px;
    gap: 40px;
    overflow-x: auto;
    border-radius: 8px 8px 0 0;
}

/* 横向 Tab：隐藏滚动条（全局 scrollbars.css 中 .ranking-tabs-container 规则） */

.ranking-tab {
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.2s;
    font-weight: 400;
}

.ranking-tab:hover {
    color: var(--brand1, #4B7CFF);
}

/* Active indicator */
.ranking-tab.active {
    color: var(--brand1, #4B7CFF);
    font-weight: 500;
}

/* The thick brand-colored underline */
.ranking-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background-color: var(--brand1, #4B7CFF);
    border-radius: 3px;
}



/* === import from ./table.css (table.css) */
/* Ranking Table specific overrides */
.ranking-table {
    background: var(--panel);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    border: none;
}

/* Adjust centering and padding for breathability */
.ranking-table th:first-child,
.ranking-table td:first-child,
.ranking-table th,
.ranking-table td {
    text-align: center;
    padding: 16px 24px;
}

/* Very subtle pale border lines for rows */
.ranking-table th,
.ranking-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Clean transparent header */
.ranking-table th {
    background: transparent;
    color: var(--muted);
    font-weight: 500;
}

/* Hover Effect override */
.ranking-table tbody tr:hover td {
    background-color: rgba(75, 124, 255, 0.02);
}



/* === import from ./badges.css (badges.css) */
/* General Rank Badge Styles */
.rank-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    background-color: transparent;
    color: var(--text);
}

/* Default state for ranks 4 and beyond */
.ranking-table td .rank-badge {
    color: var(--text);
}

/* Top 3 different colors */
.rank-1 {
    background-color: #4B7CFF;
    color: white !important;
}

.rank-2 {
    background-color: #A3BFFF;
    color: white !important;
}

.rank-3 {
    background-color: #D6E4FF;
    color: #4B7CFF !important;
}




/* === import from ./card.css (card.css) */
.comm-stats-card {
    padding-bottom: 32px;
}

.dash-comm-metric-paper {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dash-comm-chart-placeholder {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.comm-stats-body {
    padding: 0 24px;
}



/* === import from ./controls.css (controls.css) */
/* Controls Area */
.comm-controls-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.comm-date-picker {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 12px;
    background: white;
    width: 320px;
}

.comm-date-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    padding: 0;
}

.comm-date-separator {
    color: var(--muted);
    margin: 0 8px;
}

.comm-date-icon {
    color: var(--muted2);
    font-size: 14px;
}

.comm-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, opacity 0.2s;
}

.comm-btn.primary-btn {
    background-color: var(--brand1, #4B7CFF);
    color: white;
}

.comm-btn.primary-btn:hover {
    opacity: 0.9;
}

.comm-btn.secondary-btn {
    background-color: var(--brand1, #4B7CFF);
    color: white;
}

.comm-btn.secondary-btn:hover {
    opacity: 0.9;
}



/* === import from ./metrics.css (metrics.css) */
/* Metrics Grid */
.comm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.comm-metric-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.2s;
}

.comm-metric-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.comm-metric-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.comm-metric-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.comm-metric-unit {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}



/* === import from ./chart/index.css (index.css) */

/* === import from ./tabs.css (tabs.css) */
/* Chart Tabs */
.comm-chart-tabs {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid transparent;
}

.comm-chart-tab {
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    font-weight: 400;
    padding-bottom: 8px;
    transition: color 0.2s;
}

.comm-chart-tab:hover {
    color: var(--brand1, #4B7CFF);
}

.comm-chart-tab.active {
    font-weight: 600;
}



/* === import from ./container.css (container.css) */
/* Chart Container */
.comm-chart-container {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 24px;
}

.comm-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.comm-chart-body {
    display: flex;
    height: 300px;
    position: relative;
    padding-left: 20px;
}

.comm-chart-content-area {
    flex: 1;
    position: relative;
    border-bottom: 2px solid #E4E7ED;
    border-left: 2px solid #E4E7ED;
}

.comm-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.comm-grid-line {
    border-bottom: 1px solid #EDEDED;
    width: 100%;
    height: 1px;
}

.comm-grid-line:last-child {
    border-bottom: none;
}

.comm-chart-svg-line {
    position: absolute;
    top: 10%;
    left: 2%;
    width: 96%;
    height: 80%;
    z-index: 2;
    object-fit: fill;
}



/* === import from ./axes.css (axes.css) */
/* Chart Axes */
.comm-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
    padding-right: 12px;
    position: relative;
    top: -6px;
}

.comm-y-unit {
    position: absolute;
    top: -24px;
    right: 12px;
}

.comm-x-axis {
    position: absolute;
    bottom: -24px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}
