/* View route stylesheet placeholder for overview. */

body.dark-mode .user-list-row.inactive {
  background: #3a2323 !important;
  color: #bbb !important;
}

.view-switch-toggle {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 36px;
}

.view-switch-toggle input {
  display: none;
}

.view-switch-slider {
  position: relative;
  display: flex;
  align-items: center;
  background: #e0e7ef;
  border-radius: 18px;
  height: 36px;
  cursor: pointer;
  transition: background 0.2s;
}

.view-switch-icon {
  z-index: 2;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 1.15em;
}

.view-switch-handle {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 42px;
  height: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: left 0.2s;
  z-index: 1;
}

.view-switch-toggle input:checked + .view-switch-slider .view-switch-handle {
  left: 46px;
}

.view-switch-toggle input:not(:checked) ~ .view-switch-slider #view-switch-table {
  color: #2563eb;
}

.view-switch-toggle input:checked ~ .view-switch-slider #view-switch-widget {
  color: #2563eb;
}

.view-switch-toggle .fa {
  font-size: 1.25em;
}

body.dark-mode .view-switch-slider {
  background: #23272f;
}

body.dark-mode .view-switch-handle {
  background: #2d3440;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.dark-mode .view-switch-icon {
  color: #e0e7ef;
}

body.dark-mode .view-switch-toggle input:not(:checked) ~ .view-switch-slider #view-switch-table {
  color: #90b4fa;
}

body.dark-mode .view-switch-toggle input:checked ~ .view-switch-slider #view-switch-widget {
  color: #90b4fa;
}

.tra-eintrag {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1.2em;
  background: #f9f9f9;
  width: 100%;
  min-width: 550px;
  max-width: 550px;
  box-sizing: border-box;
}

.tra-title {
  font-size: 1.15em;
  margin-bottom: 0.3em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.tra-title .tra-zeit {
  margin-left: 0.5em;
  white-space: nowrap;
}

.tra-zeit {
  color: #1d87f8;
  margin-left: 0.5em;
}

.tra-beschreibung {
  color: #555;
  font-size: 0.97em;
  margin-top: 0.2em;
}

body.dark-mode .tra-eintrag {
  background: #23272e;
  border-color: #444;
}

body.dark-mode .tra-beschreibung {
  color: #bbb;
}

body.dark-mode .tra-zeit {
  color: #4dabff;
}

.tra-liste {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.tra-block {
  flex: 1 1;
  min-width: 550px;
  max-width: 550px;
  box-sizing: border-box;
}

.tra-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e3e6ed;
  border-radius: 10px 10px 0 0;
  border: 1px solid #b6c6e0;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0.9em 0.9em 0.9em 0.9em;
  font-weight: 700;
  color: #1a4a7a;
  font-size: 1.3em;
  position: relative;
  z-index: 2;
}

.tra-info-toggle h1 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: inherit;
  flex: 1 1 auto;
}

.tra-info-toggle-btn {
  background: #1d87f8;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-left: 18px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: #fff;
  font-size: 1.3em;
  flex-shrink: 0;
}

.tra-info-toggle-btn:hover, .tra-info-toggle-btn:focus {
  background: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  outline: none;
}

.tra-info-content {
  border: 1px solid #b6c6e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #f8f9fa;
  padding: 18px 22px 10px 22px;
  line-height: 1.7;
  color: #222;
  margin-top: 0;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: background 0.2s, color 0.2s;
}

.tra-info-content[style*="display: none"] {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark-mode .tra-info-toggle {
  background: #23272e;
  border-color: #333;
  color: #7fc1ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .tra-info-toggle-btn {
  background: #1976d2;
  color: #fff;
}

body.dark-mode .tra-info-toggle-btn:hover, body.dark-mode .tra-info-toggle-btn:focus {
  background: #0056b3;
}

body.dark-mode .tra-info-content {
  background: #23272e;
  color: #eee;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tra-today-list, .tra-inactive-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1em;
  margin-bottom: 30px;
  background: var(--tra-today-bg, #f8fafc);
  color: var(--tra-today-fg, #1e293b);
}

.tra-today-header, .tra-today-row, .tra-inactive-header, .tra-inactive-row {
  display: grid;
  grid-template-columns: 0.5fr 2.2fr 1.7fr 0.9fr 1fr 0.7fr;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e0e7ef;
}

.tra-today-header, .tra-inactive-header {
  font-weight: bold;
  background: #e0e7ef;
  position: sticky;
  top: 0;
  z-index: 2;
}

.tra-today-header .sortable, .tra-inactive-header .sortable {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  font-size: 1em;
}

.tra-today-header .sort-arrow, .tra-inactive-header .sort-arrow {
  font-size: 0.95em;
  margin-left: 0.2em;
  color: #888;
  min-width: 14px;
  display: inline-block;
  vertical-align: middle;
}

.tra-today-row, .tra-inactive-row {
  background: inherit;
  transition: background 0.15s;
}

.tra-today-row:hover, .tra-inactive-row:hover {
  background: rgba(39, 94, 254, 0.07);
}

body.dark-mode .tra-today-list, body.dark-mode .tra-inactive-list {
  --tra-today-bg: #23272f;
  --tra-today-fg: #e0e7ef;
}

body.dark-mode .tra-today-header, body.dark-mode .tra-inactive-header {
  background: #2d3440;
  color: #fff;
  border-bottom: 1px solid #333a47;
}

body.dark-mode .tra-today-row, body.dark-mode .tra-inactive-row {
  border-bottom: 1px solid #333a47;
}

body.dark-mode .tra-today-header .sort-arrow, body.dark-mode .tra-inactive-header .sort-arrow {
  color: #bbb;
}

body.dark-mode .tra-today-row:hover, body.dark-mode .tra-inactive-row:hover {
  background: #28304a;
}

.tra-inactive-row.inactive {
  color: #8a99b3;
  font-style: italic;
  opacity: 0.75;
}

.tra-inactive-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: #888;
}

@media (max-width: 550px) {
  .tra-title .tra-zeit {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 0.2em;
  }

}

@media (max-width: 900px) {
  .tra-liste {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .tra-block {
    max-width: 100%;
    min-width: 300px;
  }

  .tra-today-header, .tra-today-row, .tra-inactive-header, .tra-inactive-row {
    grid-template-columns: 0.5fr 2.5fr 1.3fr 0.8fr 0.9fr 0.6fr;
    font-size: 0.97em;
  }

}

@media (max-width: 600px) {
  .tra-today-header, .tra-today-row, .tra-inactive-header, .tra-inactive-row {
    grid-template-columns: 0.5fr 2fr 1.1fr 0.7fr 0.8fr 0.5fr;
    font-size: 0.93em;
    padding: 6px 4px;
  }

}
