.orca-client-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
}

.orca-admin-view-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #0058be;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.orca-admin-view-banner + .orca-client-header {
  top: 1.75rem;
}

.orca-admin-view-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.orca-admin-view-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

.orca-client-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.orca-client-brand {
  display: flex;
  align-items: center;
  color: #000000;
  text-decoration: none;
}

.orca-client-brand .orca-brand-logo-wordmark {
  height: 2.5rem;
}

.orca-client-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.orca-business-switcher-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  border: 1px solid #c6c6cd;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 0.875rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.orca-business-switcher-icon:not(.orca-business-identity-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #f0edef;
  color: #131b2e;
}

.orca-business-switcher-name {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-business-switcher-panel {
  min-width: 18rem;
}

.orca-business-switcher-option,
.orca-business-switcher-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 0.75rem;
}

.orca-business-switcher-option span,
.orca-business-switcher-current span:not(.orca-business-identity-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-business-switcher-option:hover {
  background: #f6f3f5;
}

.orca-business-switcher-current {
  background: #f0edef;
}

.orca-business-switcher-single {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  border: 1px solid #c6c6cd;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 0.875rem;
}

.orca-account-menu-close {
  display: none;
}

@media (max-width: 1100px) {
  .orca-admin-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .orca-client-header {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  }

  .orca-client-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: 4.25rem;
    padding: 0.75rem 1rem;
  }

  .orca-client-brand {
    display: none;
  }

  .orca-client-header-actions {
    display: contents;
  }

  .orca-client-header-actions .orca-qbo-badge,
  .orca-client-header-actions .orca-qbo-connect-action {
    display: none;
  }

  .orca-business-switcher,
  .orca-business-switcher-single {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    justify-self: stretch;
  }

  .orca-business-switcher-summary,
  .orca-business-switcher-single {
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    border-radius: 9999px;
    background: #f6f3f5;
    box-shadow: none;
    padding: 0 0.875rem;
  }

  .orca-business-switcher-icon {
    display: none;
  }

  .orca-business-switcher-name {
    max-width: 100%;
    min-width: 0;
    font-size: 0.9375rem;
  }

  .orca-business-switcher-panel {
    right: 0;
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .orca-account-menu {
    grid-column: 2;
    justify-self: end;
  }

  .orca-account-menu[open]::before {
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(8px);
    content: "";
    opacity: 1;
    transition: opacity 0.28s ease;
  }

  .orca-account-menu.is-closing::before {
    opacity: 0;
  }

  .orca-account-menu-trigger {
    gap: 0.625rem;
    width: auto;
    height: 2.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #ffffff;
    color: #1b1b1d;
    padding: 0.25rem 0.375rem 0.25rem 0.875rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  .orca-account-menu-hamburger {
    display: inline-flex;
    font-size: 1.75rem;
  }

  .orca-account-menu-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #131b2e;
    color: #ffffff;
    font-size: 0.8125rem;
  }

  .orca-account-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 119;
    align-content: start;
    width: min(72vw, 23rem);
    height: 100vh;
    min-width: 18rem;
    border: 0;
    border-radius: 0;
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    padding: 5.25rem 2rem 2rem;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), opacity 0.28s ease;
  }

  .orca-account-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #ffffff;
    color: #1b1b1d;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  .orca-account-menu-close .lucide-icon {
    font-size: 1.5rem;
  }

  @starting-style {
    .orca-account-menu[open] .orca-account-menu-panel {
      opacity: 0;
      transform: translateX(100%);
    }
  }

  .orca-account-menu.is-closing .orca-account-menu-panel {
    opacity: 0;
    transform: translateX(100%);
  }

  .orca-account-menu-identity {
    align-items: center;
    gap: 1rem;
    border-bottom: 0;
    margin-bottom: 2rem;
    padding: 0;
  }

  .orca-account-menu-identity-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid #d7dde7;
    border-radius: 9999px;
    background: #131b2e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
  }

  .orca-account-menu-identity strong {
    font-size: 1.25rem;
    font-weight: 500;
  }

  .orca-account-menu-identity-text > span {
    font-size: 0.875rem;
  }

  .orca-account-menu-item {
    gap: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0.75rem;
  }

  .orca-account-menu-item .lucide-icon {
    font-size: 1.75rem;
  }

  .orca-account-menu-button,
  .orca-account-menu-button .lucide-icon {
    color: #ba1a1a;
  }

  .orca-admin-business-card-grid,
  .orca-admin-check-grid,
  .orca-admin-form-grid {
    grid-template-columns: 1fr;
  }
}
