.dashboard-module {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-module .module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    gap: 24px;
}

.dashboard-module .module-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.dashboard-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.dashboard-menu {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-menu label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.dashboard-menu select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 14px;
}

.dashboard-menu select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

.dashboard-widgets {
    display: grid;
    gap: 20px;
    
	grid-template-columns: repeat(6, 1fr);
	
}

.dashboard-widget {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 8px;
	text-align:center;
}

.widget-label {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 600;
}

.widget-value {
    margin: 0;
    font-size: 28px;
    color: #111827;
}

.dashboard-widget.is-loading {
    align-content: space-between;
    min-height: 145px;
}

.widget-loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    justify-self: center;
    animation: dashboard-widget-spin 0.8s linear infinite;
}

@keyframes dashboard-widget-spin {
    to {
        transform: rotate(360deg);
    }
}

.widget-detail {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.widget-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.widget-stars .star {
    font-size: 16px;
    line-height: 1;
}

.widget-stars[data-stars="5"] { color: #22c55e; } /* green */
.widget-stars[data-stars="4"] { color: #84cc16; }
.widget-stars[data-stars="3"] { color: #facc15; }
.widget-stars[data-stars="2"] { color: #f97316; }
.widget-stars[data-stars="1"] { color: #ef4444; } /* red */

.dashboard-chart {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
	margin-top:20px;
}

.dashboard-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-chart .chart-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.dashboard-chart .chart-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.dashboard-chart .chart-canvas {
    position: relative;
    min-height: 260px;
}

@media (max-width: 1024px) {
    .dashboard-module .module-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-menu label {
        align-items: flex-start;
    }
}

@media (max-width: 450px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}
