/* ── Vessel select modal ─────────────────────────────────────────── */

.vessel-select-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.vessel-select-modal__content {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: #e2e8f0;
  width: 95vw;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.vessel-select-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 14px;
  flex-shrink: 0;
}

.vessel-select-modal__close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.vessel-select-modal__close:hover {
  color: #e2e8f0;
}

.vessel-select-modal__back {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  line-height: 1;
}

.vessel-select-modal__back:hover {
  color: #e2e8f0;
}

.vessel-select-modal__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}

.vessel-select-modal__search {
  padding: 8px 16px;
  flex-shrink: 0;
}

.vessel-select-modal__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px;
}

.vessel-select-modal__grid::-webkit-scrollbar {
  width: 4px;
}

.vessel-select-modal__grid::-webkit-scrollbar-track {
  background: transparent;
}

.vessel-select-modal__grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.vessel-select-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
  font-size: 12px;
}

.vessel-select-modal__body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.vessel-select-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vessel-select-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  font-size: 11px;
  color: #cbd5e1;
}

.vessel-select-modal__presets {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.vessel-select-modal input[type='datetime-local'] {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  color-scheme: dark;
}
