/* Shared layout: left nav + main content for /salesman/ pages */
:root {
  --s-line: rgba(255, 255, 255, 0.08);
  --s-muted: #94a3b8;
  --s-accent: #10b981;
}

.sh-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sh-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(6, 78, 59, 0.55);
  border-right: 1px solid var(--s-line);
  padding: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.sh-sidebar-brand {
  padding: 0 1.1rem 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--s-line);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.sh-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sh-sidebar nav a:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #fff;
}

.sh-sidebar nav a.is-active {
  color: #6ee7b7;
  border-left-color: var(--s-accent);
  background: rgba(16, 185, 129, 0.08);
}

.sh-sidebar nav a i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.sh-sidebar-section {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.75rem 1.1rem 0.35rem;
}

.sh-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Login page: workflow nav hidden until user continues into the app */
body.salesman-login-page .sh-sidebar {
  display: none !important;
}

/* Field landing (/salesman/): workflow nav only after sign-in */
.sh-shell.sh-landing-anon .sh-sidebar {
  display: none;
}

.sh-shell.sh-landing-auth .sh-sidebar {
  display: flex;
}

.sh-landing-actions-auth {
  display: none;
}

.sh-shell.sh-landing-auth .sh-landing-actions-guest {
  display: none !important;
}

.sh-shell.sh-landing-auth .sh-landing-actions-auth {
  display: flex !important;
}

.sh-shell.sh-landing-auth .sh-landing-cta-guest {
  display: none !important;
}

.sh-shell.sh-landing-auth .sh-landing-cta-auth {
  display: inline-flex !important;
}

/* Login page: center card in the content column */
.sh-content-wrap.sh-login-center {
  flex: 1;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
}

@media (max-width: 991.98px) {
  .sh-shell {
    flex-direction: column;
  }

  .sh-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem 0.85rem;
    border-right: none;
    border-bottom: 1px solid var(--s-line);
  }

  .sh-sidebar-brand {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0.35rem;
    margin-bottom: 0;
  }

  .sh-sidebar-section {
    width: 100%;
    padding-top: 0.35rem;
  }

  .sh-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
  }

  .sh-sidebar nav a {
    border-left: none;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .sh-sidebar nav a.is-active {
    border-left: none;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
  }
}
