body {
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.login-container {
  max-width: 400px;
  margin: auto;
}

.btn-primary {
  background-color: #0073aa;
  border: none;
}

.btn-primary:hover {
  background-color: #005f87;
}

.card {
  border-radius: 10px;
}

input.form-control {
  border-radius: 8px;
}

main.container {
  flex: 1;
  padding-top: 20px;
  padding-bottom: 20px;
}

.form-text.text-danger {
  font-weight: 500;
}

.form-text.text-success {
  color: #198754 !important;
  font-weight: 500;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

#passwordCriteria li {
  font-weight: 500;
  margin-bottom: 3px;
  transition: color 0.2s ease;
}

#passwordCriteria li:contains("✅") {
  color: #198754;
  /* Grün */
}

#passwordCriteria li:contains("❌") {
  color: #dc3545;
  /* Rot */
}

.hidden {
  display: none !important;
}

/* 🔒 deaktivierte Felder grau */
.disabled-field,
.disabled-field:disabled,
.disabled-field[readonly] {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed;
  opacity: 1;
}

.notes-preview {
  max-width: 200px;
  /* anpassen */
  max-height: 24px;
  /* eine Zeile */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.notes-expanded {
  white-space: normal;
  max-height: none;
}

.table td,
.table th {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Helle vertikale Linien zwischen Spalten */
.table td,
.table th {
  border-right: 1px solid #eaeaea !important;
  white-space: nowrap !important;
  /* nie umbrechen */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Letzte Spalte ohne Linie */
.table td:last-child,
.table th:last-child {
  border-right: none !important;
}

/* Nur die Bemerkungsspalte soll umbrechen dürfen */
.table td.notes-cell {
  white-space: normal !important;
}

/* --- Tabellenrahmen & vertikale Linien --- */
.table td,
.table th {
  white-space: nowrap;
  border-right: 1px solid #e5e5e5 !important;
  background: #fff;
}

/* Header Hintergrund */
.table thead th {
  background: #f8f9fa;
}

/* --- Sticky Right Columns --- */

/* Aktion-Spalte (ganz rechts) */
.sticky-right {
  position: sticky;
  right: 0;
  z-index: 40;
  background: #fff;
  width: 90px;
  min-width: 90px;

  /* Fix: Border NICHT mitscrollen lassen */
  box-shadow: -2px 0 0 #dcdcdc;
}

/* Status-Spalte (links daneben) */
.sticky-right-2 {
  position: sticky;
  right: 90px;
  /* exakt gleiche Breite wie sticky-right */
  z-index: 39;
  background: #fff;
  width: 130px;
  min-width: 130px;

  /* Fix: Border NICHT mitscrollen lassen */
  box-shadow: -2px 0 0 #dcdcdc;
}

/* Header Sticky Fix */
.table thead th.sticky-right,
.table thead th.sticky-right-2 {
  background: #f8f9fa !important;
  z-index: 50;
}