/* Bayi yatay profil menü v123 — kurumsal giriş paleti */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

[data-mercan-firm-menu="horizontal"] {
  --mfm-ink: #0b1f3a;
  --mfm-ink-soft: #64748b;
  --mfm-line: #e2e8f0;
  --mfm-bg: #fff;
  --mfm-accent: #0b1f3a;
  --mfm-accent-soft: #eef2f7;
  --mfm-orange: #f97316;
  position: relative;
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  font-family: 'Manrope', system-ui, sans-serif;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--mfm-bg);
  border: 1px solid var(--mfm-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(6, 21, 40, 0.05);
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  box-sizing: border-box;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-nav::-webkit-scrollbar {
  display: none;
  height: 0;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: max-content;
  max-width: none;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mfm-ink-soft);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap !important;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link > span:not(.mercan-firm-menu-badge) {
  display: inline;
  overflow: visible;
  max-width: none;
  white-space: nowrap;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link:hover {
  background: var(--mfm-accent-soft);
  color: var(--mfm-ink);
  box-shadow: none;
  border-color: transparent;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-ico {
  display: block !important;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  opacity: 0.85;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link:hover .mercan-firm-menu-ico {
  opacity: 1;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.is-active,
[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.is-dashboard.is-active,
[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.active {
  background: linear-gradient(135deg, #061528 0%, #0b1f3a 55%, #123056 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(11, 31, 58, 0.45);
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.is-active .mercan-firm-menu-ico,
[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.active .mercan-firm-menu-ico {
  opacity: 1;
  stroke: #fff;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.is-dashboard:not(.is-active):not(.active) {
  background: transparent;
  color: var(--mfm-ink);
  font-weight: 600;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.is-active .mercan-firm-menu-badge,
[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link.active .mercan-firm-menu-badge {
  background: #fff;
  color: var(--mfm-accent);
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-logout {
  font-family: inherit;
  margin-left: 4px;
  color: #b91c1c;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-logout:hover {
  background: #fef2f2;
  color: #991b1b;
}

/* Taşma okları */
[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mfm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mfm-ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  padding: 0;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-arrow-prev {
  left: 4px;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-arrow-next {
  right: 4px;
}

[data-mercan-firm-menu="horizontal"].is-scrollable .mercan-firm-menu-arrow {
  display: inline-flex;
}

[data-mercan-firm-menu="horizontal"].is-scrollable .mercan-firm-menu-nav {
  padding-left: 34px;
  padding-right: 34px;
}

[data-mercan-firm-menu="horizontal"] .mercan-firm-menu-arrow[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

[data-mercan-firm-menu="horizontal"].has-overflow-start::before,
[data-mercan-firm-menu="horizontal"].has-overflow-end::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 36px;
  z-index: 1;
  pointer-events: none;
}

[data-mercan-firm-menu="horizontal"].has-overflow-start::before {
  left: 0;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(90deg, #fff 30%, transparent);
}

[data-mercan-firm-menu="horizontal"].has-overflow-end::after {
  right: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(270deg, #fff 30%, transparent);
}

@media (max-width: 640px) {
  [data-mercan-firm-menu="horizontal"] .mercan-firm-menu-link {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
  }

  [data-mercan-firm-menu="horizontal"] .mercan-firm-menu-ico {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}
