header {
  position: fixed;
  width: calc(100% - 140px);
  height: 64px;
  top: 0;
  left: 0;
  z-index: 2;
  padding-left: 100px;
  padding-right: 40px;
  background: white;
  box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}
header.nosidebar {
  padding-left: 40px;
  padding-right: 40px;
  width: calc(100% - 80px);
}
header .logo {
  position: relative;
  float: left;
  width: 160px;
  height: calc(100% - 28px);
  top: 0;
  left: 0;
  margin-right: 60px;
  padding: 14px;
}
header .logo img {
  position: relative;
  float: left;
  width: auto;
  height: 100%;
  top: 0;
  left: 0;
}
nav {
  position: relative;
  float: left;
  width: calc(100% - 248px);
  height: 100%;
  top: 0;
  left: 0;
}
nav ul {
  position: relative;
  float: left;
  width: 100%;
  height: 100%;
  list-style: none;
}
nav ul li {
  display: inline-block;
  padding: 4px 20px;
}
nav .menubutton {
  position: relative;
  float: right;
  width: auto;
  min-width: 28px;
  height: 100%;
  margin-left: 0px;
  line-height: 64px;
  padding-left: 10px;
  padding-right: 10px;
  cursor: pointer;
  text-align: center;
}
nav .menubutton p {
  line-height: 64px;
  color: var(--darkestmetal);
  font-size: 26px;
}
nav .menubutton ul {
  position: fixed;
  width: 200px;
  height: auto;
  border-radius: 8px;
  top: -500px; /*64px;*/
  right: 4px;
  background: var(--darkestmetal);
  overflow: hidden;
  transition: .2s linear all;
  /*display: none;*/
}
nav .menubutton ul li {
  position: relative;
  float: left;
  width: calc(100% - 20px);
  height: auto;
  top: 0;
  left: 0;
  padding: 0;
  padding: 10px;
  font-size: 13px;
  line-height: 16px;
  color: white;
}
nav .menubutton.opened {
  background: var(--darkestmetal);
}
nav .menubutton.opened ul {
  top: 64px;
}
nav .menubutton.opened p {
  color: white;
}
nav .menubutton ul li:hover {
  background: var(--darkmetal);
}
nav .profile {
  position: relative;
  float: right;
  width: auto;
  height: 100%;
  text-align: right;
  top: 0;
  right: 0;
}
nav .profile .pname {
  position: relative;
  float: right;
  width: auto;
  height: auto;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
nav .profile .pname .mini-welcome {
  font-size: 11px;
  line-height: 12px;
  text-transform: uppercase;
}
nav .profile .picon {
  position: relative;
  float: right;
  width: 54px;
  height: 54px;
  margin: 5px;
  top: 0;
  right: 0;
  background: var(--darkmetal);
  border-radius: 50%;
  margin-left: 25px;
  overflow: hidden;
}
nav .profile .picon img {
  position: absolute;
  width: auto;
  height: auto;
  min-height: 100%;
  min-width: 100%;
  max-width: 120%;
  max-height: 120%;
  border-radius: 50%;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.notifications {
  position: relative;
  float: right;
  width: 30px;
  height: 30px;
  top: 18px;
  right: 0;
  margin-right: 30px;
  background-image: url('../img/icons/bell-3@3x.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.notifications .notif-alert {
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: 10px;
  right: 0;
  background: var(--blue);
  border-radius: 50%;
}
.notifications .notifdd {
  position: absolute;
  width: 500px;
  height: auto;
  min-height: 60px;
  max-height: 200px;
  top: -300px;
  right: 0;
  background: white;
  box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
  border-radius: 4px;
  transition: .5s linear all;
  overflow: hidden;
}
.notifications.opened .notifdd, .notifications:hover > .notifdd {
  top: calc(100% + 10px) !important;
}
.notifications .notifdd .basenotif {
  position: absolute;
  width: 100%;
  height: auto;
  text-align: center;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.notifications .notifdd .basemessage p {
  color: var(--darkmetal);
  font-size: 13px;
  line-height: 15px;
}
.notifications .notifdd li {
  position: relative;
  float: left;
  width: calc(100% - 70px);
  height: 40px;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  padding: 20px;
  padding-right: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 5px;
  border-radius: 4px;
  cursor: default;
  background: var(--lightmetal);
}
.notifications .notifdd li p {
  font-size: 14px;
  line-height: 16px;
  color: var(--darkblue);
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.notifications .notifdd li .markAsRead {
  position: absolute;
  width: 40px;
  height: 100%;
  top: 0;
  right: 0;
  text-align: center;
  cursor: pointer;
  transition: .2s linear all;
}
.notifications .notifdd li .markAsRead i {
  line-height: 50px;
  font-size: 1.2em;
  position: relative;
  top: 5px;
  color: var(--darkestmetal);
  transition: .2s linear all;
}
.notifications .notifdd li .markAsRead:hover {
  background: var(--blue);
}
.notifications .notifdd li .markAsRead:hover > i {
  color: white;
}
.contactButton {
  position: relative;
  float: right;
  width: auto;
  height: 34px;
  top: 13px;
  right: 0;
  border: 2px solid var(--darkestmetal);
  border-radius: 19px;
  padding-left: 30px;
  padding-right: 30px;
  cursor: pointer;
  transition: .2s linear all;
}
.contactButton p {
  line-height: 34px;
}
.contactButton:hover {
  background: var(--darkestmetal);
}
.contactButton:hover p {
  color: white;
}
@media all and (max-width: 1020px){
  header.nosidebar {
    padding-left: 40px;
    padding-right: 40px;
    width: calc(100% - 80px);
  }
}
@media all and (max-width: 740px){
  .notifications .notifdd {
    right: auto;
    left: -150px;
  }
}
@media all and (max-width: 720px){
  header {
    width: calc(100% - 100px);
    padding-left: 80px;
    padding-right: 20px;
  }
  header.nosidebar {
    padding-left: 20px;
    padding-right: 20px;
    width: calc(100% - 40px);
  }
  header .logo {
    width: 120px;
    margin-right: 20px;
  }
  header .logo img {
    width: 100%;
    height: auto;
  }
  nav {
    width: calc(100% - 168px);
  }
}
@media all and (max-width: 620px){
  header .logo {
    display: none;
  }
  header.nosidebar {
    padding-left: 10px;
    padding-right: 10px;
    width: calc(100% - 20px);
  }
  header.nosidebar .logo {
    display: block
  }
  nav {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  header.nosidebar nav {
    padding-left: 0;
    padding-right: 0;
    width: calc(100% - 168px)
  }
  nav .profile .picon {
    margin-left: 10px;
  }
}
@media all and (max-width: 530px){
  .notifications .notifdd {
    width: 200px;
    right: auto;
    left: 0;
  }
}
@media all and (max-width: 420px){
  .contactButton {
    padding-left: 20px;
    padding-right: 20px;
  }
  nav .profile .pname p {
    font-size: 13px;
    line-height: 15px;
  }
  nav .profile .pname p.mini-welcome {
    font-size: 11px;
    line-height: 12px;
    text-transform: uppercase;
  }
}
