.dashboard {
display: flex;
flex-direction: column;
gap: 16px;
}
.layout-grid {
flex-direction: row;
flex-wrap: wrap;
}
.layout-grid .dashboard-section {
flex: 1 1 300px;
min-width: 280px;
}
.layout-tabs .dashboard-section {
display: none;
}
.layout-tabs .dashboard-section:first-child {
display: block;
}
.tabs-nav {
display: flex;
gap: 4px;
margin-bottom: 16px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 8px;
}
.tab-btn {
padding: 8px 16px;
border: none;
background: none;
cursor: pointer;
font-size: 14px;
color: #666;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.tab-btn:hover {
color: #333;
}
.tab-btn.active {
color: #007bff;
border-bottom-color: #007bff;
}
.dashboard-section {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 16px;
}
.section-title {
font-size: 16px;
font-weight: 600;
margin: 0 0 12px 0;
color: #333;
}
.section-content {
min-height: 100px;
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
}
.metric-card {
background: #f8f9fa;
border-radius: 6px;
padding: 12px;
text-align: center;
}
.metric-value {
font-size: 24px;
font-weight: 700;
color: #333;
}
.metric-unit {
font-size: 14px;
font-weight: 400;
color: #666;
margin-left: 2px;
}
.metric-label {
font-size: 12px;
color: #666;
margin-top: 4px;
}
.metric-change {
display: block;
font-size: 12px;
margin-top: 4px;
}
.metric-change.positive {
color: #28a745;
}
.metric-change.negative {
color: #dc3545;
}
.chart-container {
height: 250px;
position: relative;
}
.section-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.section-table th,
.section-table td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #eee;
}
.section-table th {
background: #f8f9fa;
font-weight: 600;
}
.status-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.status-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
background: #f8f9fa;
border-radius: 4px;
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
}
.status-ok {
background: #28a745;
}
.status-warning {
background: #ffc107;
}
.status-error {
background: #dc3545;
}
.status-unknown {
background: #6c757d;
}
.status-name {
flex: 1;
font-weight: 500;
}
.status-value {
color: #666;
font-size: 12px;
text-transform: uppercase;
}
.section-list {
margin: 0;
padding-left: 20px;
}
.section-list li {
padding: 4px 0;
}
.section-text {
color: #666;
line-height: 1.6;
}