.header {
  background-color: var(--panel);
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: var(--header-height);

  padding:
    var(--safe-top)
    max(16px, var(--safe-right))
    0
    max(16px, var(--safe-left));

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 2;

  transition:
    left 0.3s ease,
    width 0.3s ease;
}


@media (min-width: 767px) {
  body:has(.sidebar-nav.open) .header {
    left: 256px;
    width: calc(100vw - 256px);
  }
}
@media (max-width: 767px) {
  .header {
    left: 0;
    width: 100%;

    padding-left: 16px;
    padding-right: 16px;

    border-left: none;
    border-right: none;
  }
}

.header-controls-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.mobile-logo{
  display: block;
  width: var(--icon-size);
  height: auto;
  transition: all 0.3s ease-in;
}

@media (max-width: 767px) {
  .mobile-logo{
    display: block;
  }
}

body:has(.sidebar-nav.open) .mobile-logo {
  display: none;
}

.greeting-controls{
  display: flex;
  flex-direction: row;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}
.header-action-button{
  width: var(--icon-size);
  height: var(--icon-size);
}
.notification-button{
  width: var(--icon-size);
}

.header-action-button {
  background-color: var(--secondary-text);
  mask-image: var(--icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  border: none;

  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle{
  border-radius: 8px;
  padding: 8px;
}


.user-greeting {
  position: relative;

  display: flex;
  align-items: center;
  gap: 8px;
}

.user-greeting__avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  background-color: var(--selected);
  color: var(--muted);

  font-size: 16px;
  font-weight: 700;
}

.user-greeting__title {
  margin: 0;
  padding: 0;

  color: var(--secondary-text);
  font-size: 16px;
  font-weight: 700;
}

.user-greeting__company {
  margin: 0;
  padding: 0;

  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
}

.user-greeting__expand {
  width: 16px;
  height: 16px;
  padding: 0;

  transform: rotate(0deg);
  transition: 0.08s all ease-in-out;
}

.dropdown.open .user-greeting__expand {
  transform: scaleY(-1);
}

.welcome-message{
  font-size: 21px;
  color: var(--text);
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .user-greeting__title {
    display: none;
  }
  .welcome-message{
    display: none;
  }

  .user-greeting__company {
    display: none;
  }
  .user-greeting {
    gap: 4px;
  }
}


.dropdown {
  position: relative;
  z-index: 10;
}

.dropdown-menu {
  display: none;

  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
}

.dropdown.open .dropdown-menu {
  display: flex;
}


.notification-center__dropdown{
  display: flex;
  flex-direction: column;
  width: 352px;
}
@media (max-width: 767px) {

  .notification-center__dropdown{
    display: flex;
    flex-direction: column;
    width: 304px;
  }
  .dropdown-menu:has(.notification-center__dropdown){
    margin-right: -100px;
  }

}
.notification-center_header{
  display: flex;
  flex-direction: row;
  margin-bottom: 12px;
  margin-top: 8px;
  padding: 0;
}

.notification-center__heading{
  font-size: 16px;
  color: var(--text);
  margin: 0;

}

.notification_container{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.notification{
  display: flex;
  flex-direction: row;
  background-color: var(--selected);
  min-height: var(--icon-size);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.notification__title{
  font-size: 16px;
  font-weight: 500;

}

.notification:hover{
  background-color: var(--border);
}


.nav-link-open{
  margin-left: 8px;
  background-color: var(--secondary-text);
  mask-image: var(--icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  border: none;
  height: var(--icon-size);
  width: var(--icon-size);
}