/* Finale Ansicht: ruhiges, kollisionsfreies Raster auf kleinen Displays. */
body.final-view > header {
  display: flex !important;
}

body.final-view #finalViewBar {
  top: 84px;
  z-index: 9;
}

body.final-view .getting-ready-transfer,
body.final-view .route-pending,
body.final-view .coverage-closing {
  display: none !important;
}

body.final-view .timeline-edit > summary {
  grid-template-columns: 90px 22px minmax(0, 1fr) !important;
  column-gap: 10px !important;
}

body.final-view .timeline-edit > summary time {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0;
}

body.final-view .timeline-edit > summary .timeline-dot {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.final-view .timeline-edit > summary .timeline-title {
  grid-column: 3 !important;
  grid-row: 1 !important;
  min-width: 0;
}

body.final-view .timeline-edit > summary .timeline-title strong {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  body.final-view #finalViewBar {
    top: 74px;
  }

  body.final-view main {
    padding: 12px 8px 34px;
  }

  body.final-view .timeline-card {
    padding: 16px 13px;
  }

  body.final-view .timeline-card-head {
    margin-bottom: 14px;
  }

  body.final-view .timeline-edit > summary {
    grid-template-columns: 68px 14px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
  }

  body.final-view .timeline-edit > summary time {
    font-size: .88rem;
    line-height: 1.25;
  }

  body.final-view .timeline-edit > summary time small {
    margin-top: 2px;
  }

  body.final-view .timeline-edit > summary .timeline-dot::before {
    width: 10px;
    height: 10px;
    left: -6px;
    top: 4px;
  }

  body.final-view .timeline-edit > summary .timeline-title strong {
    font-size: .96rem;
    line-height: 1.22;
  }

  body.final-view .timeline-edit > summary .timeline-title span {
    margin-top: 3px;
    font-size: .78rem;
    line-height: 1.35;
  }
}

.alert.Freie.Zeit {
  border: 1px solid #d5e2dc;
  background: #f1f7f4;
}

.gap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gap-actions button {
  border: 1px solid #a9c1b7;
  border-radius: 9px;
  background: #fff;
  color: #285e4f;
  padding: 8px 10px;
  font-size: .76rem;
  font-weight: 800;
}

.timeline-gap-suggestion {
  margin: 4px 0 14px 112px;
  padding: 13px 15px;
  border: 1px dashed #9fbbb0;
  border-radius: 13px;
  background: linear-gradient(145deg, #f2f8f5, #fff);
}

.timeline-gap-suggestion > div:first-child {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 12px;
}

.timeline-gap-suggestion .eyebrow {
  grid-column: 1 / -1;
}

.timeline-gap-suggestion strong {
  font-size: .9rem;
}

.timeline-gap-suggestion small,
.timeline-gap-suggestion p {
  color: #71807c;
  font-size: .72rem;
}

.timeline-gap-suggestion p {
  margin: 7px 0 0;
}

body.final-view .timeline-gap-suggestion {
  display: none !important;
}

@media (max-width: 650px) {
  .timeline-gap-suggestion {
    margin-left: 90px;
    padding: 12px;
  }
}
