﻿/*====================================================================
    Header Pane
--------------------------------------------------------------------*/
/* Header bar */
.headerPane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #333;
}
.headerPane .headerContainer {
  height: 100%;
  display: flex;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
}
.headerPane .spacer {
  flex-grow: 1;
}
.headerPane .btn {
  border-radius: 5px;
}
.headerPane .btn .dxb {
  padding: 0;
}
/* Header buttons / menu */
.headerButtons {
  display: flex;
  flex-shrink: 0;
  margin-left: 15px;
}
.headerButtons .dxm-main {
  font-size: 14px;
  line-height: 14px;
}
.headerButtons .dxm-main .dxm-content {
  padding: 8px 14px;
}
.headerButtons .dxm-main .dxm-hovered a.dx {
  color: inherit;
}
.headerButtons .btn {
  font-size: 11px;
  text-transform: uppercase;
}
.headerButtons .btn-flat {
  border-color: transparent;
  color: #fff;
  background-color: transparent;
}
.headerButtons .btn-flat:hover {
  border-color: #e54c0c;
  color: #fff;
}
@media (max-width: 1024px) {
  .headerButtons .btn {
    padding: 8px;
  }
}
/* Header links */
.headerLinks {
  display: flex;
  align-items: center;
  margin-right: -6px;
  font-size: 11px;
  color: #ccc;
}
.headerLinks .text-wrap {
  display: flex;
}
@media (max-width: 1199px) {
  .headerLinks .text-wrap {
    padding: 0 10px;
    flex-direction: column;
  }
  .headerLinks .text-wrap .text {
    padding: 0;
  }
}
.headerLinks .link,
.headerLinks .text {
  position: relative;
  display: block;
  padding: 8px 6px;
  line-height: 15px;
  vertical-align: middle;
  text-decoration: none;
  text-align: center;
}
.headerLinks .link {
  color: #eee;
}
.headerLinks .link:hover {
  color: #e54c0c;
}
.headerLinks .fas {
  font-size: 12px;
}
/* Account menu */
.headerAccount {
  position: relative;
}
.headerAccount:last-child {
  margin-right: -10px;
}
.headerLinks + .headerAccount:before {
  position: absolute;
  left: 0;
  top: 50%;
  height: 16px;
  display: block;
  margin: -8px 0;
  border-left: 1px solid #d8d8d8;
  content: '';
}
.headerAccount .accountInfo {
  display: flex;
  padding: 9px 10px;
  align-items: center;
}
.headerAccount .accountName {
  position: relative;
  margin-right: 10px;
  color: #666;
  font-size: 12px;
  cursor: default;
}
.headerAccount .accountPicture {
  display: block;
  width: 32px;
  height: 32px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 1px solid #666;
}
.headerAccount .accountMenu {
  position: absolute;
  top: 45px;
  right: 10px;
  z-index: 1000;
  display: none;
  width: 300px;
  margin: 0;
  padding: 0;
  background: #fcfcfc;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
  list-style: none;
  font-size: 13px;
}
.headerAccount .accountMenu .link {
  display: block;
  padding: 8px 10px;
  color: #666;
  text-decoration: none;
}
.headerAccount .accountMenu a:hover {
  background: rgba(0, 0, 0, 0.1);
}
.headerAccount .accountMenu .separator {
  border-top: 1px solid #eee;
}
.headerAccount:hover .accountName {
  color: #333;
  text-decoration: underline;
}
.headerAccount:hover .accountPicture {
  border-color: #333;
}
.headerAccount:hover .accountMenu {
  display: block;
}
/* Project selector */
.headerProject {
  /*flex-grow: 10;
    margin-left: 115px;*/
  text-align: center;
  /* When a project is selected, make it appear as a tab */
}
.headerProject select {
  width: 50%;
  height: 34px;
  padding: 0 20px 0 15px;
  border: 1px solid #333333;
  border-radius: 0;
  background-color: #333333;
  color: white;
  font-size: 12px;
}
.headerProject select:hover {
  background-color: red;
}
.headerProject select[disabled] {
  opacity: 1;
  appearance: none;
}
.headerProject select[disabled]:hover {
  background-color: #333333;
}
.headerProject.active {
  align-self: flex-end;
  margin-bottom: 0px;
}
.headerProject.active select {
  height: 40px;
  padding-bottom: 7px;
  border-bottom: none;
}
.headerProject .btn-flat {
  border-color: transparent;
  color: #fff;
  background: transparent;
  font-size: 11px;
  line-height: 15px;
}
.headerProject .btn-flat.active-project {
  font-size: 12px;
  font-weight: bold;
}
.headerProject .btn-flat:hover,
.headerProject .btn-flat:active,
.headerProject .btn-flat:focus,
.headerProject .btn-flat:active:focus {
  border-color: #e54c0c;
  color: #fff;
  background: transparent;
}
.headerProject .open > .dropdown-toggle.btn-flat,
.headerProject .open > .dropdown-toggle.btn-flat:hover,
.headerProject .open > .dropdown-toggle.btn-flat:focus {
  border-color: #e54c0c;
  color: #fff;
  background: #e54c0c;
}
/* 
    Header Pane for mobile
--------------------------------------------------------------------*/
/* Expand bar */
.headerPane.bar .dxpnl-btn {
  margin-right: 15px;
}
.headerPane.bar .dxpnl-np {
  position: absolute;
  top: 0;
  left: 0;
  right: 53px;
  float: none;
  height: 100%;
}
.headerPane.bar .headerContainer {
  margin-right: 67px;
}
.headerPane.bar .headerLogo {
  width: 120px;
}
.headerPane.bar .logo-only {
  display: none;
}
@media (max-width: 575px) {
  .headerPane.bar .logged-in.headerContainer {
    margin-right: 0;
  }
  .headerPane.bar .logged-in .headerLogo {
    width: 53px;
  }
  .headerPane.bar .logged-in .logo-only {
    display: inline;
  }
  .headerPane.bar .logged-in .logo-full {
    display: none;
  }
}
/* Expanded header bar */
.headerPane.expanded {
  top: 50px;
  height: auto;
  max-height: calc(100% - 50px);
  overflow: auto;
  border-top: 1px solid #555;
  /* Move account into to top, account menu remains on bottom */
  /* Remove project switcher */
}
.headerPane.expanded .headerContainer {
  flex-direction: column;
}
.headerPane.expanded .headerLogo {
  display: none;
}
.headerPane.expanded .headerButtons {
  width: 100%;
  margin-left: 0;
  padding: 10px 0;
  flex-direction: column;
  /* Make menu vertical */
}
.headerPane.expanded .headerButtons .btn {
  width: auto;
}
.headerPane.expanded .headerButtons .dxm-main,
.headerPane.expanded .headerButtons ul.dx,
.headerPane.expanded .headerButtons .dxm-content,
.headerPane.expanded .headerButtons .dxm-item {
  float: none;
}
.headerPane.expanded .headerButtons .dxm-content {
  padding: 8px 14px;
}
.headerPane.expanded .headerButtons .dxm-separator {
  display: none;
}
.headerPane.expanded .headerLinks {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid #555;
}
.headerPane.expanded .headerLinks .link {
  padding: 12px;
}
.headerPane.expanded .headerLinks .text-wrap {
  order: 1;
  width: 100%;
  padding: 10px 0;
  flex-direction: row;
  justify-content: space-between;
  border-top: 1px solid #555;
}
.headerPane.expanded .headerAccount {
  position: static;
  margin-right: 0;
}
.headerPane.expanded .headerAccount:before {
  display: none;
}
.headerPane.expanded .accountInfo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 9px 15px;
  flex-direction: row-reverse;
  justify-content: center;
}
.headerPane.expanded .accountName {
  margin-left: 10px;
}
.headerPane.expanded .accountMenu {
  position: static;
  width: auto;
  display: block;
  border: none;
  border-top: 1px solid #ddd;
  box-shadow: none;
  background: transparent;
}
.headerPane.expanded .accountMenu a {
  padding: 6px 15px;
}
.headerPane.expanded .accountMenu .separator {
  border-color: #ddd;
}
.headerPane.expanded .headerProject {
  display: none;
}
/*====================================================================
    Footer Pane
--------------------------------------------------------------------*/
.footerPane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eee;
  border-top: 1px solid #ccc;
  color: #444;
  font-size: 11px;
}