/* ========== 首页特有样式 ========== */

/* 网格布局 */
.dashboard-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* 图表卡片 */
.chart-card {
    grid-column: span 4;
    overflow: hidden;
    width: 32.5%;
    height:40vh;
}

/* 底部图表区域 */
.dashboard-bottom {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-top: 20px;
}

.dashboard-bottom .chart-card {
    width: 19%;
    height: 25vh;
}

/* 表格容器 */
.table-container {
    width: 100%;
    overflow: hidden;
}

.table-container thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa38;
    z-index: 10;
    border-bottom: 2px solid #f8f9fa38;
}

.tbody-scrollable {
    max-height:  calc(100% - 65px);
	/* height: calc(100% - 90px); */
    overflow-y: auto;
}

.tbody-scrollable::-webkit-scrollbar {
    width: 6px;
	
}

.tbody-scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .dashboard-container {
        grid-template-rows: repeat(2, 160px) 1fr;
    }

    .chart-card {
        grid-column: span 6;
    }
}

@media (max-width: 1024px) {
    .dashboard-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .dashboard-container .chart-card {
        width: 100%;
        margin-bottom: 20px;
        height: 45vh;
    }

    .dashboard-bottom {
        flex-wrap: wrap;
    }

    .dashboard-bottom .chart-card {
        width: 48%;
        max-height: 20vh;
        min-height: 260px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-bottom {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .dashboard-bottom .chart-card {
        width: 100%;
        max-height: 20vh;
        min-height: 260px;
        margin-bottom: 20px;
    }
}