* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .dashboard-container { max-width: 100% !important; padding: 20px 30px; } /* Navbar */ .navbar { background-color: #2c3e50; color: white; padding: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .navbar .container { display: flex; justify-content: space-between; align-items: center; max-width: 100%; padding: 15px 30px; } .navbar h1 { font-size: 24px; margin: 0; } .nav-right { display: flex; align-items: center; gap: 15px; } /* Buttons */ .btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; transition: background-color 0.3s; } .btn-primary { background-color: #3498db; color: white; } .btn-primary:hover { background-color: #2980b9; } .btn-secondary { background-color: #95a5a6; color: white; } .btn-secondary:hover { background-color: #7f8c8d; } .btn-success { background-color: #27ae60; color: white; } .btn-success:hover { background-color: #229954; } .btn-danger { background-color: #e74c3c; color: white; } .btn-danger:hover { background-color: #c0392b; } .btn-sm { padding: 5px 10px; font-size: 12px; } /* Login Page */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .login-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); width: 100%; max-width: 400px; } .login-box h1 { text-align: center; color: #2c3e50; margin-bottom: 10px; } .login-box h2 { text-align: center; color: #7f8c8d; font-size: 18px; margin-bottom: 30px; font-weight: normal; } /* Forms */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; color: #555; font-weight: 500; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3498db; } .form-help-text { display: block; margin-top: 8px; color: #666; font-size: 13px; font-style: italic; } /* Rollen-Checkboxen Styling */ .roles-checkbox-group { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 15px; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; } .roles-checkbox-group-inline { padding: 10px; gap: 8px; } .role-checkbox-label { display: flex; align-items: center; cursor: pointer; padding: 10px 12px; background-color: white; border: 2px solid #e0e0e0; border-radius: 6px; transition: all 0.2s ease; user-select: none; } .role-checkbox-label:hover { border-color: #3498db; background-color: #f0f8ff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .role-checkbox-label-small { padding: 6px 10px; font-size: 13px; } .role-checkbox-input { width: 18px; height: 18px; margin-right: 12px; cursor: pointer; accent-color: #3498db; flex-shrink: 0; } .role-checkbox-input:checked + .role-checkbox-text { font-weight: 600; color: #2c3e50; } .role-checkbox-label:has(.role-checkbox-input:checked) { border-color: #3498db; background-color: #e8f4f8; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); } .role-checkbox-text { font-size: 14px; color: #333; transition: all 0.2s ease; } .role-checkbox-label-small .role-checkbox-text { font-size: 13px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } /* Error Messages */ .error-message { background-color: #e74c3c; color: white; padding: 10px; border-radius: 4px; margin-bottom: 20px; text-align: center; } /* Dashboard Layout */ .dashboard-layout { display: flex; gap: 20px; align-items: flex-start; } /* Dashboard */ .dashboard { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); flex: 1; min-width: 0; /* Ermöglicht Flexbox-Shrinking */ } /* User Stats Panel */ .user-stats-panel { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); width: 280px; flex-shrink: 0; box-sizing: border-box; overflow: hidden; } .user-stats-panel h3 { margin-top: 0; margin-bottom: 15px; color: #2c3e50; font-size: 18px; font-weight: 600; } .stat-card { background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 12px; border-left: 4px solid #3498db; box-sizing: border-box; width: 100%; overflow: hidden; } .stat-card.stat-vacation { border-left-color: #27ae60; } .stat-label { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 500; } .stat-value { font-size: 24px; font-weight: bold; color: #2c3e50; margin-bottom: 4px; } .stat-unit { font-size: 11px; color: #999; } .week-selector { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .week-selector h2 { flex: 1; text-align: center; color: #2c3e50; } /* Timesheet Table */ .timesheet-grid { overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; } table th { background-color: #f8f9fa; font-weight: 600; color: #555; } table tr:hover { background-color: #f8f9fa; } table input[type="time"], table input[type="number"], table input[type="text"] { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; } /* Summary */ .summary { background-color: #ecf0f1; padding: 20px; border-radius: 4px; margin-bottom: 20px; } .summary-item { display: flex; justify-content: space-between; font-size: 18px; } /* Actions */ .actions { text-align: center; } .actions .help-text { margin-top: 10px; color: #7f8c8d; font-size: 14px; } /* Admin Panel */ .admin-panel { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .add-user-form { background-color: #f8f9fa; padding: 20px; border-radius: 4px; margin-bottom: 30px; } .add-user-form h3 { margin-bottom: 20px; color: #2c3e50; } /* Role Badges */ .role-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; text-transform: capitalize; } .role-admin { background-color: #e74c3c; color: white; } .role-verwaltung { background-color: #3498db; color: white; } .role-mitarbeiter { background-color: #27ae60; color: white; } /* Status Badges */ .status-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; } .status-eingereicht { background-color: #f39c12; color: white; } .status-genehmigt { background-color: #27ae60; color: white; } .status-abgelehnt { background-color: #e74c3c; color: white; } /* Version Badge */ .version-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; background-color: #6c757d; color: white; display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; } .version-info { font-size: 11px; opacity: 0.9; font-weight: normal; } /* PDF Download Marker */ .pdf-downloaded-marker { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; background-color: #27ae60; color: white; margin-left: 5px; } .pdf-not-downloaded-marker { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; background-color: #e0e0e0; color: #7f8c8d; margin-left: 5px; } /* Verwaltung Container - Volle Breite */ .verwaltung-container { max-width: 100% !important; padding: 20px 30px; } /* Verwaltung Panel */ .verwaltung-panel { background: white; padding: 30px 40px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); width: 100%; } .empty-state { text-align: center; padding: 40px; color: #7f8c8d; } /* Timesheet Groups */ .timesheet-groups { display: flex; flex-direction: column; gap: 25px; width: 100%; } .timesheet-group { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background-color: #fff; } .group-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f8f9fa; border-bottom: 2px solid #e0e0e0; cursor: pointer; } .group-header:hover { background-color: #e9ecef; } .group-info { flex: 1; display: flex; flex-direction: column; gap: 5px; } .group-employee { font-size: 16px; color: #2c3e50; } .group-week { font-size: 14px; color: #555; } .group-versions-info { font-size: 12px; color: #7f8c8d; } .version-count { display: inline-block; padding: 2px 8px; background-color: #3498db; color: white; border-radius: 12px; font-size: 11px; font-weight: 600; } .toggle-versions-btn { display: flex; align-items: center; gap: 5px; } .toggle-icon { font-size: 12px; transition: transform 0.2s ease; } .toggle-versions-btn.active .toggle-icon { transform: rotate(180deg); } .versions-container { padding: 0; background-color: #fff; width: 100%; overflow-x: auto; } .versions-table { margin: 0; border-top: none; width: 100%; table-layout: auto; } .versions-table th, .versions-table td { padding: 15px 25px; } .versions-table tbody tr:hover { background-color: #f8f9fa; } /* Timesheet Table */ .timesheet-table { width: 100%; border-collapse: collapse; margin-top: 20px; table-layout: auto; } .timesheet-table th, .timesheet-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #e0e0e0; } .timesheet-table th { background-color: #f8f9fa; font-weight: 600; color: #2c3e50; } .timesheet-table tr:hover { background-color: #f8f9fa; } /* PDF Preview */ .pdf-preview-row { background-color: #f8f9fa; } .pdf-preview-row td { padding: 0 !important; } .pdf-preview-container { padding: 20px; background-color: white; border-top: 2px solid #3498db; } .pdf-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; } .pdf-preview-header h3 { margin: 0; color: #2c3e50; font-size: 18px; } .pdf-viewer-wrapper { position: relative; width: 100%; min-height: 800px; border: 1px solid #ddd; border-radius: 4px; background-color: #f5f5f5; } .pdf-iframe { width: 100%; height: 800px; border: none; border-radius: 4px; background-color: white; display: block; } .pdf-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 1; } .pdf-iframe:not([src=""]) ~ .pdf-fallback { display: none; } /* Toggle PDF Button */ .toggle-pdf-btn { margin-right: 10px; display: inline-flex; align-items: center; gap: 5px; } .toggle-pdf-btn .arrow-icon { display: inline-block; transition: transform 0.3s ease; font-size: 12px; } .toggle-pdf-btn.active .arrow-icon { transform: rotate(90deg); } .btn-info { background-color: #17a2b8; color: white; } .btn-info:hover { background-color: #138496; } /* Utility Classes */ .text-muted { color: #7f8c8d; } /* Activities/Tätigkeiten */ .activities-row { background-color: #f8f9fa; border-top: 2px solid #e0e0e0; } .activities-cell { padding: 15px !important; } .activities-form { display: flex; flex-direction: column; gap: 10px; } .activities-header { margin-bottom: 8px; color: #2c3e50; font-size: 14px; } .activity-row { display: grid; grid-template-columns: 1fr 150px 120px; gap: 15px; align-items: center; } .activity-desc { display: flex; align-items: center; } .activity-hours { display: flex; align-items: center; gap: 5px; } .activity-input, .activity-hours-input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .activity-input { width: 100%; } .activity-hours-input { width: 80px; } .activity-hours-label { font-size: 14px; color: #555; } .activity-project { display: flex; align-items: center; } .activity-project-input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; width: 100%; } .overtime-vacation-controls { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; } .overtime-control, .vacation-control { display: flex; align-items: center; gap: 5px; } .overtime-input, .vacation-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .user-field-display { display: inline-block; } .user-field-edit { display: none; } /* Mitarbeiter-Gruppe (Level 1) */ .employee-group { background-color: white; border: 1px solid #ddd; border-radius: 8px; padding: 25px 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; } .employee-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid #3498db; margin-bottom: 20px; } .employee-info { flex: 1; } .employee-name { font-size: 18px; color: #2c3e50; margin-bottom: 10px; } .employee-details { font-size: 14px; color: #666; } .toggle-employee-btn { display: flex; align-items: center; gap: 5px; } /* Wochen-Container (Level 2) */ .weeks-container { margin-top: 20px; padding-left: 25px; border-left: 3px solid #e0e0e0; width: 100%; } .week-group { background-color: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px 25px; margin-bottom: 20px; } .week-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid #ddd; margin-bottom: 15px; } .week-info { flex: 1; } .week-dates { font-size: 16px; color: #2c3e50; margin-bottom: 10px; } .week-versions-info { font-size: 12px; color: #7f8c8d; margin-top: 5px; } /* Responsive */ @media (max-width: 1024px) { .dashboard-layout { flex-direction: column; } .user-stats-panel { width: 100%; display: flex; gap: 15px; flex-wrap: wrap; } .stat-card { flex: 1; min-width: 200px; margin-bottom: 0; } } @media (max-width: 768px) { .dashboard-container { padding: 15px; } .form-row { grid-template-columns: 1fr; } .week-selector { flex-direction: column; gap: 15px; } table { font-size: 12px; } table th, table td { padding: 8px; } .user-stats-panel { flex-direction: column; } .stat-card { width: 100%; } .activity-row { grid-template-columns: 1fr; } .overtime-vacation-controls { flex-direction: column; align-items: flex-start; } }