/* HiFleet Market visual theme. Keep site chrome and schedule behavior independent. */
.schedule-body {
  --ink: #22334c;
  --muted: #61718a;
  --faint: #8997a9;
  --bg: #f5f7fa;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --line: #e0e7ef;
  --line-strong: #cdd8e6;
  --navy: #142c50;
  --accent: #2c65b7;
  --accent-soft: #edf4fe;
  --green: var(--accent);
  --green-hover: #235493;
  --green-soft: var(--accent-soft);
  --green-ink: #254f86;
  --blue: var(--accent);
  --blue-soft: var(--accent-soft);
  --blue-ink: #254f86;
  --shadow: 0 2px 8px rgb(20 44 80 / 2%);
  --radius: 7px;
  --schedule-font: "Outfit", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
}

.schedule-page {
  font: 14px/1.6 var(--schedule-font);
  -webkit-font-smoothing: antialiased;
}

.schedule-page button,
.schedule-page input,
.schedule-page select {
  font-family: var(--schedule-font);
}

.schedule-page .page-main {
  max-width: 1496px;
  margin: 0 auto;
  padding: 34px 48px 48px;
}

.schedule-page .schedule-intro {
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}

.schedule-page .product-copy { gap: 13px; }

.schedule-page .product-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.5;
}

.schedule-page .product-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.schedule-page .product-title-row {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.schedule-page .product-title-row h1 {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .02em;
}

.schedule-page .product-description {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.schedule-page .schedule-stats {
  align-self: center;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-color: #dae5f3;
  border-radius: var(--radius);
}

.schedule-page .schedule-stat { gap: 6px; min-width: 78px; text-align: left; }
.schedule-page .schedule-stat-value { color: var(--navy); font-size: 28px; font-weight: 500; }
.schedule-page .schedule-stat-label { font-weight: 400; }
.schedule-page .schedule-stat-divider { margin: 2px 18px; background: #d7e2ef; }

.schedule-page .query-band {
  padding: 0;
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: none;
}

.schedule-page .query-type-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-page .query-type-label { color: var(--muted); font-size: 13px; white-space: nowrap; }

.schedule-page .mode-tabs {
  display: flex;
  gap: 30px;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.schedule-page a.mode-tab {
  width: auto;
  min-height: 55px;
  padding: 0 2px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}

.schedule-page a.mode-tab:hover { color: var(--accent); }
.schedule-page a.mode-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.schedule-page .query-grid {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(290px, 1.65fr) minmax(140px, 1.15fr) auto;
  gap: 18px;
  padding: 22px 24px 24px;
}

.schedule-page .query-grid label,
.schedule-page .query-grid .laycan-field { gap: 9px; }
.schedule-page .query-grid span { font-size: 13px; font-weight: 400; }

.schedule-page .query-grid input {
  height: 42px;
  padding-left: 12px;
  color: #485566;
  border-color: var(--line);
  border-radius: 4px;
  transition: border-color .16s, box-shadow .16s;
}

.schedule-page .query-grid input::placeholder { color: #8a96a5; }
.schedule-page .query-grid input:hover { border-color: #b8c9de; }
.schedule-page .query-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(44 101 183 / 10%); }
.schedule-page .laycan-range { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.schedule-page .laycan-calendar-btn { color: #62768e; }

.schedule-page .search-button,
.schedule-page .primary-button {
  min-width: 88px;
  min-height: 42px;
  height: auto;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.schedule-page .search-button span { color: inherit; font-size: 14px; font-weight: inherit; }
.schedule-page .search-button:hover,
.schedule-page .primary-button:hover { color: #fff; background: #244875; border-color: #244875; }
.schedule-page .search-button svg { width: 16px; height: 16px; stroke-width: 1.7; }

.schedule-page .secondary-button,
.schedule-page .icon-button,
.schedule-page .pagination-button {
  border-color: var(--line);
  border-radius: 4px;
  color: #485b74;
  font-weight: 400;
}

.schedule-page .query-reset-button { min-height: 42px; padding: 0 12px; }
.schedule-page .query-reset-button,
.schedule-page .query-reset-button span { color: var(--accent); font-size: 14px; font-weight: 400; }
.schedule-page .secondary-button:hover,
.schedule-page .icon-button:hover { color: var(--accent); background: var(--accent-soft); border-color: #bfd2ed; }
.schedule-page .followed-only-button.active { color: var(--accent); background: var(--accent-soft); border-color: #bfd2ed; }

.schedule-page .port-suggestions { border-color: var(--line); border-radius: 5px; box-shadow: 0 8px 24px rgb(20 44 80 / 10%); }
.schedule-page .port-option-name { font-weight: 600; }
.schedule-page .port-option-meta { font-weight: 400; }
.schedule-page .workspace { margin-top: 24px; }
.schedule-page .result-pane { border-radius: var(--radius); box-shadow: none; }
.schedule-page .result-header { min-height: 88px; padding: 20px 24px; }
.schedule-page .result-header h2 { font-size: 19px; font-weight: 600; line-height: 1.5; }
.schedule-page .result-header p { margin-top: 4px; font-size: 13px; line-height: 1.6; }
.schedule-page .result-tools { gap: 10px; }
.schedule-page .result-tools button { min-height: 36px; }

.schedule-page .result-pane th {
  padding-top: 16px;
  padding-bottom: 16px;
  background: #f7f9fc;
  color: #61718a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  word-break: normal;
}

.schedule-page .result-pane td { padding-top: 16px; padding-bottom: 16px; }
.schedule-page .result-pane tbody tr:hover,
.schedule-page .result-pane tbody tr.selected { background: #f1f6fd; }
.schedule-page .vessel-name { font-weight: 600; }
.schedule-page .follow-button { color: var(--accent); border-color: #c7d7ec; border-radius: 4px; font-weight: 500; }
.schedule-page .follow-button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.schedule-page .result-pane .col-follow .table-follow-button.active { color: var(--accent); background: var(--accent-soft); border-color: #bfd2ed; }
.schedule-page .status-pill { font-weight: 500; }
.schedule-page .status-confirmed { color: #287451; background: #edf7f1; }
.schedule-page .status-planned { color: #426b9e; background: #edf4fe; }
.schedule-page .schedule-status-tip { padding: 42px 20px; color: var(--muted); font-size: 14px; font-weight: 400; border-top: 0; }
.schedule-page .schedule-login-link { color: var(--accent); font-weight: 500; }

.schedule-page .pagination-bar {
  min-height: 66px;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 24px;
}

.schedule-page .pagination-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
.schedule-page .pagination-info,
.schedule-page .page-size-control,
.schedule-page .page-size-control select { font-weight: 400; }
.schedule-page .page-size-control select { border-color: var(--line); border-radius: 4px; }
.schedule-page .pagination-button:hover:not(:disabled),
.schedule-page .pagination-button.active { color: var(--accent); background: var(--accent-soft); border-color: #bfd2ed; }
.schedule-page .pagination-button:disabled { color: #94a0af; border-color: #e8edf3; background: #fafbfd; }
.schedule-page .detail-top h2 { font-weight: 600; }
.schedule-page .detail-pane { box-shadow: -8px 0 32px rgb(20 44 80 / 10%); }

.schedule-page .schedule-seo.hf-seo-block {
  margin-top: 18px;
  padding: 0;
  font: 14px/1.75 var(--schedule-font);
  box-shadow: none;
}

.schedule-page .schedule-seo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 24px;
  border-radius: var(--radius);
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

.schedule-page .schedule-seo-toggle::-webkit-details-marker { display: none; }
.schedule-page .schedule-seo-toggle::marker { content: ""; }
.schedule-page .schedule-seo-toggle:hover { color: var(--accent); background: var(--surface-soft); }
.schedule-page .schedule-seo-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.schedule-page .schedule-seo-toggle-label,
.schedule-page .schedule-seo-toggle-action { display: inline-flex; align-items: center; gap: 10px; }
.schedule-page .schedule-seo-toggle-label { font-weight: 500; }
.schedule-page .schedule-seo-toggle-action { flex-shrink: 0; color: var(--accent); font-size: 13px; }
.schedule-page .schedule-seo-toggle svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.7; }
.schedule-page .schedule-seo-toggle-action svg { transition: transform .16s ease; }
.schedule-page .schedule-seo-collapse { display: none; }
.schedule-page .schedule-seo[open] > .schedule-seo-toggle { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.schedule-page .schedule-seo[open] .schedule-seo-expand { display: none; }
.schedule-page .schedule-seo[open] .schedule-seo-collapse { display: inline; }
.schedule-page .schedule-seo[open] .schedule-seo-toggle-action svg { transform: rotate(180deg); }
.schedule-page .schedule-seo-content { padding: 24px; }
.schedule-page .schedule-seo-content > .schedule-seo-panel { margin-bottom: 16px; }
.schedule-page .schedule-seo-content > .schedule-seo-panel:last-child { margin-bottom: 0; }

/* Static previews contain both Thymeleaf branches; show the active language only. */
html[lang|="zh"] .schedule-page .schedule-seo[data-schedule-lang="en"],
html[lang|="en"] .schedule-page .schedule-seo[data-schedule-lang="zh"] { display: none; }

.schedule-page .schedule-seo.hf-seo-block .schedule-seo-title { font-size: 18px; font-weight: 600; }
.schedule-page .schedule-seo.hf-seo-block .schedule-seo-panel > h3 { font-size: 15px; font-weight: 500; }
.schedule-page .schedule-seo-panel { background: var(--surface-soft); }
.schedule-page .schedule-seo-panel li::marker { color: var(--accent); }
.schedule-page .schedule-seo .hf-seo-faq dt { font-weight: 500; }
.schedule-page .schedule-seo-link-row a { color: var(--accent); border-color: #d7e3f3; border-radius: 4px; font-weight: 400; }
.schedule-page .schedule-seo th { background: #f3f6fa; font-weight: 500; }

.schedule-page :is(button, a, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Keep desktop columns legible; smaller screens retain the existing card rows. */
@media (min-width: 769px) {
  .schedule-page .result-pane table,
  .schedule-page .result-pane .table-wrap.has-delay-risk-col table { min-width: 1080px; }
}

@media (max-width: 1280px) {
  .schedule-page .page-main { padding: 28px 30px 40px; }
  .schedule-page .query-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-page .query-actions { grid-column: 1 / -1; justify-content: flex-end; width: auto; }
  .schedule-page .query-actions .search-button,
  .schedule-page .query-actions .query-reset-button { flex: 0 0 auto; }
}

@media (max-width: 768px) {
  .schedule-page .page-main { padding: 24px 16px 30px; }
  .schedule-page .schedule-intro { gap: 18px; margin-bottom: 22px; align-items: stretch; }
  .schedule-page .product-title-row h1 { font-size: 26px; }
  .schedule-page .product-description { font-size: 13px; line-height: 1.8; }
  .schedule-page .schedule-stats { order: 0; width: 100%; align-self: stretch; justify-content: space-around; padding: 14px 16px; }
  .schedule-page .schedule-stat { min-width: 0; flex: 1; padding-left: 10px; }
  .schedule-page .schedule-stat-value { font-size: 24px; }
  .schedule-page .query-type-row { gap: 18px; padding: 0 16px; }
  .schedule-page .query-type-label { display: none; }
  .schedule-page .mode-tabs { width: 100%; gap: 16px; justify-content: space-between; }
  .schedule-page a.mode-tab { min-height: 52px; font-size: 14px; padding: 0 3px; }
  .schedule-page .query-grid { padding: 20px 16px; gap: 18px 14px; }
  .schedule-page .query-grid .laycan-field,
  .schedule-page .query-grid > label:nth-of-type(3) { grid-column: 1 / -1; }
  .schedule-page .query-grid input { height: 44px; font-size: 16px; }
  .schedule-page .laycan-range { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .schedule-page .laycan-range .laycan-date > input[type="text"] { padding-left: 9px; padding-right: 30px; font-size: 16px; }
  .schedule-page .query-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .schedule-page .query-actions button { min-height: 44px; }
  .schedule-page .query-reset-button { min-width: 80px; }
  .schedule-page .workspace { margin-top: 20px; }
  .schedule-page .result-header { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 16px; }
  .schedule-page .result-header h2 { font-size: 18px; }
  .schedule-page .result-tools { width: auto; margin-left: auto; }
  .schedule-page .result-tools .secondary-button { font-size: 13px; padding: 0 10px; }
  .schedule-page .result-tools .icon-button { width: 36px; }
  .schedule-page .result-pane tbody tr { box-shadow: none; }
  .schedule-page .result-pane tbody tr.selected { border-color: #bfd2ed; background: var(--accent-soft); }
  .schedule-page .result-pane td::before { font-weight: 400; }
  .schedule-page .schedule-status-tip { margin: 0; padding: 36px 14px; border: 0; }
  .schedule-page .pagination-bar { padding: 14px 16px; gap: 14px; }
  .schedule-page .pagination-meta { gap: 10px; justify-content: space-between; width: 100%; }
  .schedule-page .pagination-controls { margin-left: auto; }
  .schedule-page .schedule-seo.hf-seo-block { margin-top: 16px; padding: 0; }
  .schedule-page .schedule-seo-toggle { padding: 16px; }
  .schedule-page .schedule-seo-content { padding: 20px 16px; }
}

@media (max-width: 380px) {
  .schedule-page .laycan-range { grid-template-columns: minmax(0, 1fr); }
  .schedule-page .laycan-sep { justify-self: center; }
}
