Consolitated History views.

This commit is contained in:
2025-07-01 10:41:05 +02:00
committed by Jens Luedicke
parent de510baac1
commit ad10c1fa7d
6 changed files with 1417 additions and 399 deletions

View File

@@ -1127,4 +1127,377 @@ input[type="time"]::-webkit-datetime-edit {
.mobile-overlay {
display: none !important;
}
}
/* Analytics Interface Styles */
.analytics-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid #e9ecef;
}
.analytics-header h2 {
color: #2c3e50;
margin: 0;
font-size: 1.8rem;
font-weight: 600;
}
.mode-switcher {
display: flex;
gap: 0.5rem;
border-radius: 8px;
background: #f8f9fa;
padding: 0.25rem;
border: 1px solid #dee2e6;
}
.mode-btn {
background: transparent;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
color: #6c757d;
}
.mode-btn.active {
background: #4CAF50;
color: white;
box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}
.mode-btn:hover:not(.active) {
background: #e9ecef;
color: #495057;
}
.filter-panel {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
border: 1px solid #dee2e6;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.filter-row {
display: flex;
gap: 1.5rem;
align-items: end;
flex-wrap: wrap;
}
.filter-group {
display: flex;
flex-direction: column;
min-width: 150px;
}
.filter-group label {
font-weight: 500;
color: #495057;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.filter-group input,
.filter-group select {
padding: 0.5rem;
border: 1px solid #ced4da;
border-radius: 6px;
font-size: 0.9rem;
transition: border-color 0.2s ease;
}
.filter-group input:focus,
.filter-group select:focus {
outline: none;
border-color: #4CAF50;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.view-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
border-bottom: 2px solid #e9ecef;
}
.tab-btn {
background: transparent;
border: none;
padding: 0.75rem 1.5rem;
cursor: pointer;
font-weight: 500;
color: #6c757d;
border-bottom: 3px solid transparent;
transition: all 0.2s ease;
font-size: 1rem;
}
.tab-btn.active {
color: #4CAF50;
border-bottom-color: #4CAF50;
background: rgba(76, 175, 80, 0.05);
}
.tab-btn:hover:not(.active) {
color: #495057;
background: rgba(0, 0, 0, 0.05);
}
.view-content {
display: none;
}
.view-content.active {
display: block;
}
.view-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid #dee2e6;
}
.view-header h3 {
color: #2c3e50;
margin: 0;
font-size: 1.4rem;
font-weight: 600;
}
.export-buttons {
display: flex;
gap: 0.5rem;
}
.export-buttons .btn {
padding: 0.5rem 1rem;
font-size: 0.9rem;
border-radius: 6px;
transition: all 0.2s ease;
}
.table-container {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.charts-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
margin-top: 1rem;
}
.chart-wrapper {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
position: relative;
min-height: 400px;
}
.chart-controls {
display: flex;
gap: 1rem;
align-items: center;
}
.chart-controls select {
padding: 0.5rem;
border: 1px solid #ced4da;
border-radius: 6px;
font-size: 0.9rem;
}
.chart-stats {
display: flex;
flex-direction: column;
gap: 1rem;
}
.stat-card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
text-align: center;
border-left: 4px solid #4CAF50;
}
.stat-card h4 {
color: #6c757d;
margin: 0 0 0.5rem 0;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 500;
}
.stat-card span {
color: #2c3e50;
font-size: 2rem;
font-weight: 700;
display: block;
}
.team-summary-container {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.loading {
text-align: center;
padding: 3rem;
color: #6c757d;
font-size: 1.1rem;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #4CAF50;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
background: #f8d7da;
color: #721c24;
padding: 1rem;
border-radius: 6px;
border: 1px solid #f5c6cb;
margin-bottom: 1rem;
}
.text-center {
text-align: center;
}
/* Modal Enhancements for Analytics */
.modal-content {
max-width: 500px;
margin: 5% auto;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: #495057;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid #ced4da;
border-radius: 6px;
font-size: 0.9rem;
transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #4CAF50;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
/* Responsive Design for Analytics */
@media (max-width: 768px) {
.analytics-header {
flex-direction: column;
gap: 1rem;
align-items: stretch;
}
.mode-switcher {
justify-content: center;
}
.filter-row {
flex-direction: column;
gap: 1rem;
}
.filter-group {
min-width: auto;
}
.view-tabs {
flex-wrap: wrap;
}
.tab-btn {
flex: 1;
text-align: center;
min-width: auto;
padding: 0.5rem 0.75rem;
font-size: 0.9rem;
}
.view-header {
flex-direction: column;
gap: 1rem;
align-items: stretch;
}
.export-buttons {
justify-content: center;
}
.charts-container {
grid-template-columns: 1fr;
gap: 1rem;
}
.chart-stats {
flex-direction: row;
overflow-x: auto;
}
.stat-card {
min-width: 120px;
flex-shrink: 0;
}
.stat-card span {
font-size: 1.5rem;
}
.chart-controls {
flex-direction: column;
align-items: stretch;
gap: 0.5rem;
}
}