.board-details-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;

  &__badge { grid-column: 1; }
  &__actions-row { grid-column: 2; display: flex; justify-content: flex-end; }
  &__events-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.details-header-badge {
  display: flex;
  align-items: center;
  gap: 12px;

  &__flight-number { display: flex; flex-direction: column; }
  &__primary { font-size: 24px; font-weight: 600; color: #1a3a5c; }
  &__codesharing { font-size: 12px; color: #666; margin-top: 2px; }
}

.flight-events {
  display: flex;
  gap: 12px;
  align-items: center;

  &__event {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    height: 28px;
    font-size: 12px;
  }
}

.last-update {
  display: flex;
  align-items: center;
  gap: 8px;

  &__description { font-size: 12px; color: #666; }

  .share-button-wrap {
    @media (min-width: 769px) { display: none; }
  }
}

.share-button-wrap {
  position: relative;

  .share-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 140px;
    z-index: 10;

    a, button {
      padding: 6px 10px;
      font-size: 14px;
      color: #1a3a5c;
      text-decoration: none;
      background: none;
      border: none;
      text-align: left;
      cursor: pointer;

      &:hover { background: #f0f4f8; }
    }
  }
}

.flight-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
