161 lines
2.8 KiB
CSS
161 lines
2.8 KiB
CSS
/* Dashboard Styles */
|
|
.dashboard-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.dashboard-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.dashboard-card {
|
|
background: white;
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.dashboard-card h3 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1rem;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.card-subtitle {
|
|
font-size: 0.875rem;
|
|
color: #999;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.dashboard-charts {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
|
|
.chart-container {
|
|
background: white;
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
position: relative;
|
|
min-height: 350px;
|
|
}
|
|
|
|
.chart-container.chart-full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.chart-container h3 {
|
|
margin: 0 0 1.5rem 0;
|
|
font-size: 1.25rem;
|
|
color: #333;
|
|
}
|
|
|
|
.chart-container canvas {
|
|
height: 300px !important;
|
|
max-width: 100%;
|
|
width: 100% !important;
|
|
touch-action: pan-y; /* Allow vertical scrolling on mobile */
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 1200px) {
|
|
.dashboard-charts {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.chart-container.chart-full-width {
|
|
grid-column: 1;
|
|
}
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.dashboard-container {
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.dashboard-cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.dashboard-charts {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.dashboard-card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.chart-container {
|
|
padding: 1rem;
|
|
min-height: 300px;
|
|
}
|
|
|
|
.chart-container canvas {
|
|
height: 250px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.dashboard-container {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.dashboard-cards {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.dashboard-card {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.dashboard-card h3 {
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.card-subtitle {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.chart-container {
|
|
padding: 0.75rem;
|
|
min-height: 250px;
|
|
}
|
|
|
|
.chart-container h3 {
|
|
font-size: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.chart-container canvas {
|
|
height: 200px !important;
|
|
}
|
|
}
|