/**
 * Shared portal sidebar module (company + seaman) — grouped nav + pill active state.
 * Load after portal-layout.css (and company-portal.css on company pages).
 */

@media (min-width: 901px) {
  body.fs-portal-shell .fs-sea-sidebar {
    width: 248px;
    padding: 24px 18px 28px;
    background: #ffffff;
    border-right: 1px solid #e8eef5;
    box-sizing: border-box;
  }

  body.fs-portal-shell .fs-sea-sidebar-nav {
    gap: 22px;
  }

  body.fs-portal-shell .fs-sea-nav-group-label {
    margin: 0 10px 10px;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
  }

  body.fs-portal-shell .fs-sea-nav-list {
    gap: 6px;
  }

  body.fs-portal-shell .fs-sea-nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    gap: 12px;
    border: 1px solid transparent;
  }

  body.fs-portal-shell .fs-sea-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #64748b;
    opacity: 1;
  }

  body.fs-portal-shell .fs-sea-nav-link:hover {
    background: #f1f7ff;
    color: #1e3a5f;
    border-color: transparent;
  }

  body.fs-portal-shell .fs-sea-nav-link.is-active {
    background: #eaf4ff;
    color: #2f7df6;
    border-color: transparent;
    box-shadow: none;
  }

  body.fs-portal-shell .fs-sea-nav-link.is-active svg {
    color: #2f7df6;
    opacity: 1;
  }

  body.fs-portal-shell .fs-sea-nav-link.is-muted {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
  }

  body.fs-portal-shell .fs-sea-sidebar-card {
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e2ebf6;
    background: #f8fbff;
    box-shadow: none;
  }

  body.fs-portal-shell .fs-sea-sidebar-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #11264a;
  }

  body.fs-company-portal .fs-company-sidebar-hint {
    color: #5f7393;
  }

  /* Sign out is in the global header on desktop */
  body.fs-portal-shell .fs-sea-sidebar-logout {
    display: none;
  }

  body.fs-portal-shell .fs-sea-rail {
    display: none !important;
  }
}

/* One page wash on body only — stacked gradients caused a vertical colour seam */
body.fs-portal-shell.fs-seaman-dashboard .fs-sea-app::before,
body.fs-portal-shell.fs-seaman-vacancies .fs-sea-app::before,
body.fs-portal-shell.fs-seaman-account .fs-sea-app::before,
body.fs-portal-shell.fs-seaman-availability .fs-sea-app::before,
body.fs-portal-shell.fs-company-portal .fs-sea-app::before {
  display: none !important;
  content: none !important;
}

body.fs-portal-shell.fs-seaman-dashboard .fs-sea-main.fs-sea-main--dashboard,
body.fs-portal-shell.fs-seaman-dashboard.fs-sailor-dashboard .fs-sea-main.fs-sea-main--dashboard,
body.fs-portal-shell.fs-seaman-vacancies .fs-sea-main.fs-sea-main--vacancies,
body.fs-portal-shell.fs-seaman-vacancies.fs-sailor-dashboard .fs-sea-main.fs-sea-main--vacancies,
body.fs-portal-shell.fs-seaman-account .fs-sea-main.fs-sea-main--account,
body.fs-portal-shell.fs-seaman-account.fs-sailor-dashboard .fs-sea-main.fs-sea-main--account,
body.fs-portal-shell.fs-seaman-availability .fs-sea-main.fs-sea-main--availability,
body.fs-portal-shell.fs-seaman-availability.fs-sailor-dashboard .fs-sea-main.fs-sea-main--availability,
body.fs-portal-shell.fs-my-availability .fs-sea-main.fs-sea-main--availability,
body.fs-portal-shell.fs-company-portal .fs-sea-main.fs-sea-main--company,
body.fs-portal-shell.fs-company-portal.fs-sailor-dashboard .fs-sea-main.fs-sea-main--company {
  background: transparent !important;
}

body.fs-portal-shell .fs-sea-sidebar,
body.fs-portal-shell .fs-sea-rail {
  background: #ffffff !important;
}
