.ship-name-view {
    font-size: 16px;
    color: #444;
    margin-top: 6px;
}

.ship-stop-title {
    font-weight: 600;
    font-size: 12px;
}

.ship-stop-actions button {
    margin-left: 4px;
}

.ship-stop-time {
    font-size: 11px;
    margin-left: 6px;
    margin-bottom: 2px;
}

.ship-stop-address {
    font-size: 11px;
    color: #444;
    margin-left: 6px;
}


/* ------------------------------------------------

------------------------------------------------ */

.detail-ship-image {
  width: 90px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.detail-ship-image:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

@media (hover: none) {
  .detail-ship-image:hover {
    transform: none;
    box-shadow: none;
  }
}
.detail-ship-placeholder {
  width: 90px;
  height: 48px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #666;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  user-select: none;
}



/* ---------- LIGHTBOX ---------- */
.ship-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ship-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.ship-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
}
.detail-ship-placeholder {
  cursor: default;
}
/* ------------------------------------------------

------------------------------------------------ */

.ship-stop-row {
    position: relative;
    z-index: 1;   /* Basis-Ebene */
}


.ship-stop-row.empty-stop {
    background:#fff6f6;
    border-left:3px solid #ff8c8c;
    padding-left:6px;
    opacity: 0.6;
}

.ship-stop-row.active-stop {
    background: #fff3b0;
    border-radius: 6px;
    padding: 4px;
}

/* ------------------------------------------------
   Port Search
------------------------------------------------ */
.portSearchResults .port-item {
    padding: 6px 6px;
    cursor: pointer;
}

/* Zebra */
.portSearchResults .port-item:nth-child(odd) {
    background: #f4f7ff;
}
.portSearchResults .port-item:nth-child(even) {
    background: #ffffff;
}
.portSearchResults .port-item:hover {
    background: #cfe0ff;
}

/* ------------------------------------------------
   Stop Header – eine Zeile, kein Umbruch
------------------------------------------------ */
.ship-stop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}


.ship-stop-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Nummer + Datum nie umbrechen */
.ship-stop-header > * {
    white-space: nowrap;
}

/* View / Edit inline */
.ship-stop-header .dt-view,
.ship-stop-header .dt-edit {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* View Mode */
.ship-stop-header .dt-view {
    font-size: 11px;
    color: #4a6fa1;
    background: #f3f6ff;
    border: 1px solid #c5d1ea;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Inputs */
.ship-stop-header .dt-input {
    width: 130px;
    font-size: 11px;
    padding: 1px 3px;
    height: 22px;
    border: 1px solid #c5d1ea;
    border-radius: 4px;
}

/* Trenner */
.ship-stop-header .dt-sep {
    margin: 0 3px;
    font-size: 11px;
    font-weight: bold;
    color: #6c7fa6;
}

/* Standard */
.ship-stop-header .dt-edit { display:none; }
.ship-stop-header .dt-view { display:inline-flex; }

/* Edit Mode – gesteuert über .mode-time */
.event-detail-block.mode-time .ship-stop-header .dt-edit {
    display: inline-flex;
}

.event-detail-block.mode-time .ship-stop-header .dt-view {
    display: none;
}


/* Inputs wenn Zeitbearbeitung aktiv */
.event-detail-block.mode-time .dt-input {
    background: var(--edit-blue-bg);
    color: #ffffff;
    border-color: var(--edit-blue-border);
}

/* Kalender-Icon sichtbar auf dunklem Hintergrund */
.event-detail-block.mode-time .dt-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.event-detail-block.mode-time .detail-datetime .dt-input {
    background: var(--edit-blue-bg);
    color: #ffffff;
    border-color: var(--edit-blue-bg);
}


/* MAP */
.event-detail-block.mode-edit .ship-map {
    display: none !important;
}