/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/app_shell/dashboard/modules/overviews/index.css, assets/css/app_shell/dashboard/modules/funnel/index.css, assets/css/app_shell/dashboard/modules/tables/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 ./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 ./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;
}
