/* Blocksy/Greenshift dashboard-nav header — enqueued sitewide by CompanyDashboard. */

.dashboard-nav {
  margin: 0 16px;
  background: #006fdb;
  padding: 8px 25px;
  border-radius: 5px;
}
.dashboard-nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
#header-company-return {
  display: none;
  white-space: nowrap;
}
#header-account-individual {
  display: none;
  white-space: nowrap;
}
.header-company-bug {
  height: 23px;
  transform: translateY(-1px);
}
.header-company-text {
  display: flex;
}
.mobile-header-company {
  white-space: nowrap;
}

#header-account-individual a {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-account-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-account-label {
  font-weight: 600;
}

/* --- Account dropdown --- */
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.account-trigger {
  cursor: pointer;
}
.account-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.16s ease;
}
.account-menu:hover .account-caret,
.account-menu:focus-within .account-caret,
.account-menu.is-open .account-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 224px;
  margin-top: 10px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 1000;
}
/* Keeps hover alive across the gap between trigger and panel. */
.account-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.account-menu.is-open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#header-account-individual .account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}
#header-account-individual .account-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #006fdb;
  transition: color 0.12s ease;
}
/* Beats body.uc-header-individual link color on dropdown items. */
#header-account-individual .account-item:hover,
#header-account-individual .account-item:focus {
  background: #006fdb;
  color: #fff !important;
}
#header-account-individual .account-item:hover svg,
#header-account-individual .account-item:focus svg {
  color: #fff;
}

@media screen and (max-width: 999px) {
  .dashboard-nav a {
    font-size: 14px;
  }
  .mobile-header-company {
    display: none;
  }
}

/* --- Account-type overrides (body classes from CompanyDashboard) --- */
body.uc-header-individual #header-account-individual {
  display: block !important;
}
body.uc-header-individual .regular-account,
body.uc-header-individual #header-company-return {
  display: none !important;
}
body.uc-header-individual .dashboard-nav {
  background: transparent !important;
  padding: 0 !important;
}
body.uc-header-individual #header-account-individual a {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  color: #111 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}
body.uc-header-individual #header-account-individual .header-account-label {
  font-weight: 600;
}

body.uc-header-company #header-company-return {
  display: block !important;
}
body.uc-header-company .regular-account,
body.uc-header-company #header-account-individual {
  display: none !important;
}

