/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Source: assets/css/app_shell.dashboard.css
 * Feature bundle: dashboard
 */
/*
   App Shell — Dashboard 功能板块（首页仪表盘 widget）

   源码: assets/css/app_shell/dashboard/
   构建: python scripts/build_app_shell_bundle.py
   产物: app_shell.dashboard.bundle.css

   overviews/ · funnel/ · tables/ · ranking/ · communication/
*/


/* === import from ./app_shell/layers/06-dashboard.css (06-dashboard.css) */

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

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

/* === import from ./overviews/index.css (index.css) */
/* 仪表盘概览：统计卡与基础卡片 */

/* === import from ./container.css (container.css) */
.dashboard-overview-container {
    width: 100%;
}

/* Stats Cards Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}



/* === import from ./stat-card.css (stat-card.css) */
/* Base Stat Card */
.stat-card {
    background: var(--panel);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow2);
}

/* Primary Stat Card (Blue background) */
.stat-card.primary-card {
    background: var(--brand1);
    color: white;
    border: none;
}

.stat-card.primary-card .stat-card-title,
.stat-card.primary-card .stat-card-value {
    color: white;
}

.stat-card.primary-card .trend-icon,
.stat-card.primary-card .stat-card-arrow,
.stat-card.primary-card .stat-card-trend span {
    color: rgba(255, 255, 255, 0.8);
}

/* Left Content */
.stat-card-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Trends */
.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.trend-up i {
    color: var(--danger);
}

.trend-up span:last-child {
    color: var(--danger);
}

.trend-down i {
    color: var(--ok);
}

.trend-down span:last-child {
    color: var(--ok);
}

/* Right Content */
.stat-card-right {
    display: flex;
    align-items: center;
    gap: 24px;
}



/* === import from ./micro-charts.css (micro-charts.css) */
/* Micro Line Chart */
.micro-chart-container {
    width: 80px;
    height: 40px;
}

.micro-line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Micro Bar Chart */
.micro-bar-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    width: 60px;
}

.micro-bar {
    width: 6px;
    background: var(--brand1);
    opacity: 0.3;
    border-radius: 2px 2px 0 0;
}

.micro-bar:nth-child(even) {
    opacity: 0.6;
}

.micro-bar:nth-child(5) {
    opacity: 1;
}



/* === import from ./stat-aside.css (stat-aside.css) */
/* Icon Wrapper */
.stat-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--brand1-rgb), 0.1);
    color: var(--brand1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card-arrow {
    color: var(--muted2);
    font-size: 12px;
}



/* === import from ./mantine-cards.css (mantine-cards.css) */
/* Dashboard Base Card Container */
.dashboard-card {
    background: var(--panel);
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dashboard-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    padding: 20px 24px;
}

/* Mantine 仪表盘卡片（V7 重构） */
.dash-glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #f1f5f9;
}

.dash-stat-primary-card {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.dash-stat-primary-title {
    opacity: 0.9;
}

.dash-stat-sparkline {
    width: 100%;
    height: 40px;
}

.dash-stat-icon-blue {
    color: #3b82f6;
}

.dash-header-spacer {
    flex: 1;
}





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

/* === import from ./legend.css (legend.css) */
.funnel-card {
    padding-bottom: 40px;
}

.funnel-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0 24px 30px;
}

.funnel-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.funnel-legend-color {
    width: 24px;
    height: 12px;
    border-radius: 4px;
}



/* === import from ./chart.css (chart.css) */
.funnel-chart-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.funnel-body {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* === import from ./layers.css (layers.css) */
.funnel-layer-container {
    width: 100%;
    height: 60px;
    margin-bottom: 4px;
    position: relative;
}

/* 
  Creating a perfect uniform funnel using clip-path on full-width containers.
*/

.funnel-layer-container:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.funnel-layer-container:nth-child(2) {
    clip-path: polygon(8% 0, 92% 0, 84% 100%, 16% 100%);
}

.funnel-layer-container:nth-child(3) {
    clip-path: polygon(16% 0, 84% 0, 76% 100%, 24% 100%);
}

.funnel-layer-container:nth-child(4) {
    clip-path: polygon(24% 0, 76% 0, 68% 100%, 32% 100%);
}

.funnel-layer-container:nth-child(5) {
    clip-path: polygon(32% 0, 68% 0, 50% 100%, 50% 100%);
}

.funnel-layer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}



/* === import from ./labels.css (labels.css) */
.dash-funnel-label {
    width: 100px;
}

.dash-funnel-progress {
    flex: 1;
}

.dash-funnel-value {
    width: 60px;
    text-align: right;
}

.dash-funnel-trend {
    font-size: 12px;
}

.dash-funnel-trend--up {
    color: var(--mantine-color-green-6);
}

.dash-funnel-trend--down {
    color: var(--mantine-color-red-6);
}





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

/* === import from ./container.css (container.css) */
.dashboard-tables-container {
    margin-bottom: 40px;
}

.table-card {
    overflow: hidden;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0 24px 24px;
}



/* === import from ./custom-table.css (custom-table.css) */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

/* Table Header */
.custom-table th {
    color: var(--muted);
    font-weight: 500;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background-color: transparent;
}

/* Table Body Cells */
.custom-table td {
    padding: 16px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

/* Remove bottom border for last row */
.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover Effect on Rows */
.custom-table tbody tr:hover td {
    background-color: rgba(var(--brand1-rgb), 0.04);
}

/* Align first column to the left */
.custom-table th:first-child,
.custom-table td:first-child {
    text-align: left;
}





/* === import from ./ranking/index.css (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 ./communication/index.css (index.css) */

/* === 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;
}












