:root {
  --teal-primary: #5A8A72;
  --teal-dark: #144B52;
  --teal-bg-light: #E4EDE9;
  --teal-bg-light-2: #F1F4F3;
  --text-primary: #333;
  --text-secondary: #555;
  --text-positive: #2e7d32;
  --text-neutral: #999999;
  --text-negative: #c62828;
  --text-gray: #7f8c8d;
  --text-dark-gray: #34495e;
  --text-blue: #3498db;
  --border-color: #ddd;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f9f9f9;
  --gray-lighter: #f5f5f5;
  --gray-medium: #ecf0f1;
  --gray-dark: #656565;
  --blue-light: #e3f0f7;
  --blue-medium: #2980b9;
  --blue-dark: #2c3e50;
  --green-light: #e3f7e8;
  --green-dark: #27ae60;
  --red-light: #fde8e8;
  --red-medium: #f56565;
  --red-dark: #e74c3c;
  --orange-light: #fffaf0;
  --orange-medium: #dd6b20;
  --yellow-light: #fff8f0;
  --bg-very-light-gray: #f5f7fa;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
  color: var(--text-primary);
}

/* Teal Color Scheme */
.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shadow-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog {
  background: var(--white);
  padding: 20px;
  border-radius: 4px;
  width: 400px;
  max-width: 90%;
}

.dialog label {
  display: block;
  margin-bottom: 10px;
}

.dialog input,
.dialog select {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  box-sizing: border-box;
}

button {
  margin-right: 10px;
  padding: 6px 12px;
  cursor: pointer;
}

.sonderurlaub-row {
  background-color: var(--red-light);
}

.arbeitszeiten-container {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.monatsstatistik {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding: 15px;
  background: var(--teal-bg-light);
  border-radius: 8px;
}

.statistik-item {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.statistik-label {
  font-size: 0.9em;
  color: var(--text-secondary);
}

.statistik-wert {
  font-weight: bold;
  font-size: 1.1em;
}

.positiv {
  color: var(--text-positive);
}

.negativ {
  color: var(--text-negative);
}

.tage-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tag-karte {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  background: var(--white);
}

.tag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.tag-stunden {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.zeitblocke ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zeitblock {
  padding: 10px;
  margin-bottom: 10px;
  background: var(--gray-light);
  border-left: 3px solid var(--teal-primary);
  border-radius: 4px;
}

.block-projekt {
  margin-bottom: 5px;
}

.projekt-nr {
  font-size: 0.8em;
  color: var(--text-secondary);
  margin-left: 8px;
}

.block-zeiten {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.block-notiz,
.block-nacht {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-top: 5px;
}

.tag-notizen {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9em;
  color: var(--text-secondary);
}

.urlaubs-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text-primary);
}

.urlaubs-statistik {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.statistik-karte {
  flex: 1;
  padding: 20px;
  background: var(--teal-bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-light);
  text-align: center;
}

.statistik-karte h3 {
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.statistik-wert {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--teal-dark);
  margin: 10px 0 0;
}

.urlaubs-tabelle-container {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-light);
  padding: 20px;
}

.urlaubs-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.urlaubs-tabelle th {
  text-align: left;
  padding: 12px 15px;
  background: var(--teal-bg-light);
  color: var(--teal-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--teal-dark);
}

.urlaubs-tabelle td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--teal-dark);
}

.urlaubs-tabelle tr:last-child td {
  border-bottom: none;
}

.urlaubs-tabelle tr:hover {
  background-color: var(--teal-bg-light);
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.genehmigt {
  background-color: #e6fffa;
  color: var(--teal-dark);
}

.status-badge.offen {
  background-color: var(--orange-light);
  color: var(--orange-medium);
}

.status-badge.abgelehnt {
  background-color: #fff5f5;
  color: var(--red-medium);
}

.status-badge.eingereicht {
  background-color: var(--gray-lighter);
  color: var(--gray-dark);
}

.dashboard-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text-primary);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.main-text h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--teal-dark);
}

.main-subtext {
  margin: 5px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.user-period {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.main-meta {
  display: flex;
  gap: 20px;
}

.meta-item {
  text-align: right;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--teal-primary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-light);
  padding: 0px 0px 20px 20px;
  transition: transform 0.2s;
  border-top: 3px solid var(--teal-primary);
}

.kpi-card:hover {
  box-shadow: 0 6px 12px var(--shadow-medium);
}

.kpi-header {
  margin-bottom: 15px;
}

.kpi-header h3 {
  font-size: 1.2rem;
  color: var(--teal-dark);
}

.kpi-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 5px 0;
  color: var(--teal-primary);
}

.kpi-value.positive {
  color: var(--text-positive);
}

.kpi-value.neutral {
  color: var(--text-neutral);
}

.kpi-value.negative {
  color: var(--text-negative);
}

.kpi-progress {
  height: 6px;
  background: var(--gray-medium);
  border-radius: 3px;
  margin: 10px 0;
  overflow: hidden;
}

/* Kalender-Karte soll zwei Spalten einnehmen */
.kpi-card.calendar-wide {
  grid-column: span 2;
}

.progress-bar {
  height: 100%;
  background: var(--teal-primary);
  border-radius: 3px;
}

.progress-bar.positive {
  background: var(--text-positive);
}

.progress-bar.negative {
  background: var(--text-negative);
}

.quick-actions {
  margin-top: 40px;
}

.quick-actions h2 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--teal-dark);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.action-btn {
  flex: 1 1 200px;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: var(--teal-bg-light);
  color: var(--teal-dark);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--teal-dark);
}

.action-btn.primary {
  background: var(--teal-primary);
  color: var(--white);
}

.action-btn.primary:hover {
  background: var(--teal-dark);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .urlaubs-statistik {
    flex-direction: column;
  }

  .urlaubs-tabelle {
    display: block;
    overflow-x: auto;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 15px;
  }

  .main-meta {
    width: 100%;
    justify-content: space-between;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }
}

/* Base Styles */
.employee-info-container,
.project-info-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 15px var(--shadow-light);
}

/* Header Styles */
.employee-header,
.project-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.project-title-container,
.customer-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-title-container h1,
.customer-title-container h1 {
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin: 0;
}

.project-id {
  background-color: var(--gray-lighter);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.customer-type {
  background-color: var(--teal-bg-light);
  color: var(--teal-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.employee-name-container,
.project-name-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.employee-name-container h2,
.project-name-container h2 {
  margin: 0;
  font-size: 2rem;
}

.first-name {
  font-weight: 500;
}

.last-name {
  font-weight: 700;
}

.project-name {
  font-weight: 600;
}

.project-type {
  font-size: 1.1rem;
  color: var(--text-gray);
  font-style: italic;
}

.customer-name-container h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--blue-dark);
}

.customer-industry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Section Styles */
.info-section {
  margin-bottom: 2.5rem;
  background-color: var(--bg-very-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px var(--shadow-light);
}

.section-title {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .icon {
  font-size: 1.1rem;
}

/* Info Grid Styles */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark-gray);
}

.info-value .age,
.info-value .duration {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-left: 0.5rem;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.stat-card {
  background-color: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px var(--shadow-light);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--teal-primary);
}

.stat-value.positive {
  color: var(--green-dark);
}

.stat-value.negative {
  color: var(--red-dark);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Participants Section */
.participants-section {
  background-color: var(--bg-very-light-gray);
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.participant-card {
  background-color: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-light);
}

.participant-type {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participant-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-dark);
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Address Card */
.map-link-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-medium);
  text-decoration: none;
  font-size: 0.9rem;
}

.map-link:hover {
  text-decoration: underline;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px var(--shadow-light);
}

.project-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.project-status {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-status.active {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.project-status.completed {
  background-color: var(--gray-lighter);
  color: var(--gray-dark);
}

.view-all-projects {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--blue-medium);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

.view-all-projects:hover {
  text-decoration: underline;
}

/* Notes Section */
.notes-content {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
  min-height: 100px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px var(--shadow-light);
}

.add-note {
  background-color: var(--blue-medium);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.add-note:hover {
  background-color: var(--text-blue);
}

/* Edit Mode Styles */
.edit-input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.edit-input.small {
  width: 80px;
  margin-right: 0.5rem;
}

.edit-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  background-color: var(--white);
}

.address-edit {
  display: flex;
  align-items: center;
}

.project-name-input {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-type-select {
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.customer-name-input {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.location-edit,
.date-range-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-range-edit span {
  color: var(--text-gray);
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  margin-right: 0.5rem;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--teal-primary);
  border-color: var(--teal-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.edit-providers {
  width: 100%;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-edit {
  background-color: var(--blue-medium);
  color: var(--white);
}

.btn-edit:hover {
  background-color: var(--text-blue);
}

.btn-save {
  background-color: var(--green-dark);
  color: var(--white);
}

.btn-save:hover {
  background-color: #2ecc71;
}

.btn-cancel {
  background-color: var(--red-dark);
  color: var(--white);
}

.btn-cancel:hover {
  background-color: #c0392b;
}

/* Status Badges */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-badge.active {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.status-badge.inactive {
  background-color: var(--red-light);
  color: var(--red-dark);
}

.status-badge.aktiv {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.status-badge.abgeschlossen {
  background-color: var(--gray-lighter);
  color: var(--gray-dark);
}

.status-badge.in-planung {
  background-color: var(--blue-light);
  color: var(--blue-medium);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .employee-info-container,
  .project-info-container {
    padding: 1rem;
  }

  .info-grid,
  .stats-grid,
  .participants-grid {
    grid-template-columns: 1fr;
  }

  .employee-name-container,
  .project-name-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-title-container,
  .customer-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-id,
  .customer-type {
    align-self: flex-start;
  }

  .edit-input,
  .edit-select {
    width: 100%;
  }

  .location-edit,
  .date-range-edit,
  .address-edit {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-input.small {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* FullCalendar Styles */
.fc-event:hover {
  background-color: #ffcc80;
  cursor: pointer;
  //transform: scale(1.05);
  transition: all 0.2s ease;
}

.fc-timegrid-slot:hover {
  background-color: rgba(150, 150, 150, 0.1);
  cursor: pointer;
}

.fc-button {
  font-size: 0.7em;
  padding: 0.25em 0.5em;
  height: auto;
}

.fc-saturday {
  background-color: #fff0f0;
}

.fc-day-other {
  background-color: var(--gray-lighter);
  color: #aaa;
}

.fc-col-header-cell-cushion {
  white-space: normal;
  line-height: 1.2em;
}

.calendar-icon {
  font-size: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Ensure the calendar day cells have enough space for icons */
.vanilla-calendar-day__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Optional: Style highlighted vacation days */
.vanilla-calendar-day__btn_selected {
  background-color: #e0f7fa !important; /* Light cyan for vacation days */
  color: #000 !important;
}

.fc-timegrid-slot {
  height: 0.5em !important; /* kleinerer Wert = kompaktere Slots */
}

.fc table {
  border-collapse: collapse;
  border-spacing: 0px;
  font-size: 0.9em;
}
/*
.fc-timegrid-slot-label-cushion {
  height: 0.75em;
}

.fc-scrollgrid-shrink-cushion {
  height: 0.75em;
}

fc-timegrid-slot
fc-timegrid-slot-label
fc-scrollgrid-shrink
*/

        .date-picker-wrapper {
          position: relative;
          width: 100%;
        }
        
        .date-inputs {
          display: flex;
          gap: 8px;
          width: 100%;
        }
        
        .date-input {
          flex: 1;
          padding: 10px 12px;
          border: 2px solid #e5e7eb;
          border-radius: 6px;
          font-size: 14px;
          transition: all 0.2s;
          cursor: pointer;
          background: white;
        }
        
        .date-input:hover {
          border-color: #d1d5db;
        }
        
        .date-input:focus {
          outline: none;
          border-color: var(--teal-primary);
          box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        .date-input.selected {
          border-color: var(--teal-primary);
          background: var(--teal-bg-light);
        }
        
        .calendar-dropdown {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          z-index: 1000;
          margin-top: 4px;
          background: white;
          border: 1px solid #e5e7eb;
          border-radius: 8px;
          box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .calendar-header {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 12px 16px;
          background: var(--teal-primary);
          color: white;
          border-radius: 8px 8px 0 0;
        }
        
        .nav-button {
          background: none;
          border: none;
		  color: white !important;
          font-size: 18px;
          cursor: pointer;
          padding: 4px 8px;
          border-radius: 4px;
          transition: background 0.2s;
        }
        
        .nav-button:hover {
          background: rgba(255,255,255,0.2);
        }
        
        .month-year {
          font-weight: 600;
          font-size: 14px;
        }
        
        .calendar-grid {
          display: grid;
          grid-template-columns: repeat(7, 1fr);
          gap: 1px;
          background: #f3f4f6;
          padding: 1px;
        }
        
        .day-header {
          padding: 8px 4px;
          text-align: center;
          font-weight: 600;
          font-size: 11px;
          color: #6b7280;
          background: #f9fafb;
        }
        
        .day-cell {
          padding: 8px 4px;
          text-align: center;
          cursor: pointer;
          background: white;
          transition: all 0.2s;
          min-height: 32px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 13px;
        }
        
        .day-cell:hover {
          background: var(--teal-bg-light);
        }
        
        .day-cell.other-month {
          color: #d1d5db;
        }
        
        .day-cell.in-range {
          background: var(--teal-bg-light);
          color: var(--teal-primary);
        }
        
        .day-cell.range-start, .day-cell.range-end, .day-cell.single-day {
          background: var(--teal-primary);
          color: white;
        }
        
        .close-button {
          padding: 8px 12px;
          background: #f3f4f6;
          border: none;
          border-radius: 0 0 8px 8px;
          cursor: pointer;
          font-size: 12px;
          color: #6b7280;
          width: 100%;
        }
        
        .close-button:hover {
          background: #e5e7eb;
        }
		
		/* Container für die gesamte Legende */
.calendar-legend {
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid #eee; /* Dezenten Trennstrich hinzufügen */
	font-size: 0.6em;
}

/* Überschrift der Legende */
.calendar-legend h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #666;
}

/* Container für die einzelnen Einträge (für horizontale Anordnung) */
.legend-items-container {
    display: flex;
    gap: 20px; /* Abstand zwischen den Legendeneinträgen */
    flex-wrap: wrap; /* Falls es viele Einträge gibt */
}

/* Stil für einen einzelnen Legendeneintrag */
.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

/* Stil für das Icon/Farbfeld */
.legend-icon {
    font-size: 1.2em;
    margin-right: 5px;
    line-height: 1; /* Stellt sicher, dass das Icon sauber ausgerichtet ist */
}

.kpi-main {
  display: flex;
  flex-direction: column;
  position: relative; /* Wichtig für absolute Positionierung des Buttons */
  flex: 1; /* nimmt den verfügbaren Platz ein */
  padding: 8px 0;
}

.kpi-value.flex-container {
  position: absolute;
  bottom: 10px; /* Positioniert den Button ganz unten */
  right: 10px; /* Positioniert den Button ganz rechts */
}

.kpi-card {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: flex-start;
}

.kpi-footer {
  display: flex;
  justify-content: center; /* oder flex-end */
  padding-top: 12px;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}


.day-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.day-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.holiday-border {
  background: #eeeeee;
}

.status-icon.positive {
  color: var(--text-positive);
}

.status-icon.negative {
  color: var(--text-negative);
}

.status-icon.neutral {
  color: var(--text-neutral);
}

.status-icon.yellow {
  color: #ffffaa;
}

.button-row {
  text-align: right;
}

.warning-card {
  background-color: #fff8db;
  border-top: 0px;
  margin-bottom: 30px;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-icon {
  font-size: 18px;
}

.kpi-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.kpi-group {
  padding: 0px 20px;
  margin: 0px 0px 20px 0px;
  border-radius: 12px;
  background-color: #f5f7fa; /* neutraler Gruppenhintergrund */
  flex: 1;
}

.kpi-group h2 {
  margin-bottom: 12px;
}

.calendar-double {
  display: flex;
  gap: 1rem;
}

.calendar {
  flex: 1;
}

.hover-range {
  background-color: rgba(0, 123, 255, 0.2);
}

.date-picker-wrapper {
  position: relative;
  display: inline-block;
}

.calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 1000;
  margin-top: 8px;
}

.calendar-double {
  display: flex;
  gap: 16px;
}

.calendar {
  flex: 1;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.month-year {
  font-weight: bold;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day-header {
  text-align: center;
  font-weight: bold;
  padding: 4px;
}

.day-cell {
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.day-cell:hover {
  background: #f0f0f0;
}

.other-month {
  color: #aaa;
}

.range-start,
.range-end {
  background: #007bff;
  color: white;
}

.in-range,
.hover-range {
  background: rgba(0, 123, 255, 0.2);
}

.close-button {
  display: block;
  margin: 12px auto 0;
  padding: 8px 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-button:hover {
  background: #e0e0e0;
}

.calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 1000;
  margin-top: 8px;
  /* Feste Breite für den Dropdown */
  width: 600px; /* Beispielwert, passe ihn an deine Kalenderbreite an */
}

.calendar-double {
  display: flex;
  gap: 16px;
}

.calendar {
  flex: 1; /* Beide Kalender teilen sich den Platz gleichmäßig */
}


.fc {
  border-radius: 15px;
  overflow: hidden; /* Wichtig, damit die Ecken abgeschnitten werden */
  border: 1px solid #ddd; /* Falls du einen Rahmen nutzt */
}

.context-menu-item {
	padding: 8px 16px;
	cursor: pointer;
}
.context-menu-item:hover {
	background: #f0f0f0;
}

#custom-context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 8px 0;
    z-index: 9999;
    display: none;
}

.kpi-card canvas {
  width: 100% !important;
  height: 100% !important; /* Beispielhöhe */
  //margin: 15px 0;
}
