/**
 * Header CSS – fonti:
 * 1) Framework rails da copiare/app/assets/stylesheets/teamartist_framework/_responsive.scss
 * 2) teamartist_assets/app/assets/stylesheets/dynamic_menu.css
 * JS header: teamartist_assets/app/assets/javascripts/dynamic_menu.js (logica resize, click .dynamic-menu);
 *            Framework rails responsive.js.coffee / ta-responsive.js (mini, toggle menu).
 * Variabili Rails: $menu_bg_dark #1D2328, $grey_extra_dark #333333, $grey_super_dark #262626,
 * $grey_dark #868686, $white #FFFFFF, $orange2 #FF8D00, $menu_gray #4F5D72.
 */

/* Layout base: barra full-width e colonne sinistra/destra (come in Rails) */
#header {
  background-color: #1D2328 !important;
  width: 100%;
  min-width: 100%;
  height: 40px;
  padding: 7px 7px 6px 7px;
  color: #FFFFFF;
  line-height: 26px;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
#header:after {
  content: '';
  display: block;
  clear: both;
}
#header-left {
  float: left;
  font-size: 0;
  letter-spacing: 0;
}
#header-right {
  float: right;
  height: 26px;
  font-size: 0;
  letter-spacing: 0;
  position: absolute;
  top: 7px;
  right: 7px;
}
#header-right:after {
  content: '';
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}

#header-left {
  min-width: 0 !important;
}

#header-left .app_icon,
#header-left .app_icon_placeholder {
  display: none;
}

#header-left .responsive-menu {
  display: none;
}

#header-left li.close,
#header-right li.close {
  display: none;
}

#header-left > ul {
  line-height: 1;
  font-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
  margin-left: 7px;
  padding-top: 5px;
}

#header-left > ul > li {
  font-size: 14px;
  display: inline-block;
  padding: 0 7px;
  border-right: 1px solid white;
  border-left: 1px solid #1a2d41;
  line-height: 16px;
  vertical-align: middle;
  position: relative;
}

#header-left > ul > li:first-child {
  border-left: none;
  padding-left: 0;
}

#header-left > ul > li:last-child {
  border-right: none;
  padding-right: 0;
}

#header-left > ul > li form {
  padding: 5px 10px;
  height: auto;
}

#header-left > ul > li form input[type="text"] {
  height: 31px;
}

#header-left > ul > li form .ion-search {
  top: 14px;
  right: 13px;
}

/* --- Da teamartist_assets/app/assets/stylesheets/dynamic_menu.css --- */
#header a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 1px;
}

#header-left .app_icon {
  height: 26px;
  width: 26px;
  padding: 0;
  background-color: #fff;
  border-radius: 5px;
  position: relative;
}

#header-left .app_icon_placeholder {
  height: 26px;
  display: inline-block;
}

#header-left ul.menu.single-menu {
  width: 220px;
}

#header-left > ul > li > a {
  text-shadow: 0 1px 1px #1a2d41;
}

#header-left > ul > li > a:hover,
#header-left > ul > li.selected > a {
  color: #ff8d00;
}

#header-left > ul > li.selected ul {
  display: block;
}

#header-left > ul > li.selected > ul {
  background-color: #333333;
  min-width: 0;
  padding: 0;
  border-bottom: 4px solid #262626;
}

#header-left > ul > li > a span.ion-flag {
  font-size: 1.3em;
}

#header-left > ul > li > a span.ion-flag:before {
  line-height: 16px;
}

#header-left > ul > li form {
  height: 32px;
  padding: 2px 0;
  position: relative;
}

#header-left > ul > li form input[type="text"] {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  height: 24px;
  margin-top: 2px;
  padding: 5px 20px 5px 10px;
  background-color: #fff;
  line-height: 1;
}

#header-left > ul > li form .ion-search {
  cursor: pointer;
  position: absolute;
  right: 3px;
  font-size: 1.4em;
  top: 7px;
}

#header #header-right {
  font-size: 0;
  line-height: 16px;
}

#header #header-right ul.menu.single-menu {
  width: 170px;
  top: 33px;
  right: 0;
}

#header #header-right > span {
  font-size: 14px;
  vertical-align: middle;
  line-height: 16px;
}

#header #header-right .current_society_name {
  padding-right: 10px;
  border-right: 1px solid #fff;
  display: inline-block;
  text-align: right;
  letter-spacing: 1px;
}

#header #header-right .current_account_name {
  padding: 0 7px 0 0;
  display: inline-block;
  text-align: right;
  position: relative;
}

#header #header-right .current_account_name > a {
  display: inline-block;
  height: 26px;
}
#header #header-right .current_account_name > a:after {
  content: "";
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}

#header #header-right .current_account_name > a > span {
  display: inline-block;
  vertical-align: middle;
}

#header #header-right .current_account_name > a > span:first-child {
  border-left: 1px solid #1a2d41;
  padding: 0 5px 0 10px;
  position: relative;
}

#header #header-right .current_account_name > a > span:first-child:after {
  content: "\f104";
  display: inline-block;
  font-family: "TAIonicons", "Ionicons";
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  top: 2px;
  right: -2px;
  visibility: visible;
}

#header #header-right .current_account_name > a:focus > span:first-child,
#header #header-right .current_account_name > a:hover > span:first-child {
  color: #ff8d00;
}

#header #header-right .current_account_name.selected:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 14px 6px 14px;
  border-color: transparent transparent #fff transparent;
  position: absolute;
  bottom: -12px;
  left: 50%;
  margin-left: -14px;
}

#header #header-right .current_account_name.selected > a > span:first-child {
  color: #ff8d00;
}

#header #header-right .current_account_name.selected ul {
  display: block;
}

#header #header-right .avatar img {
  height: 26px;
  width: 26px;
  border: 1px solid #fff;
  padding: 0;
  border-radius: 4px;
  position: relative;
}

#header #header-right .logo {
  font-size: 10px;
  text-shadow: 1px 1px 1px #1a2d41;
  padding-left: 4px;
  position: relative;
  height: 26px;
  line-height: 26px;
  display: inline-block;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

#header #header-right .logo .orange {
  color: #ff8d00;
}

#header #header-right .notifications-link {
  position: relative;
  display: inline-block;
  height: 26px;
  width: 24px;
  vertical-align: middle;
}

#header #header-right .notifications-link .ion-disc {
  font-size: 16px;
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
}

#header #header-right .notifications-link .notifications-number {
  display: inline-block;
  font-size: 0.7em;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(212, 79, 47, 0.8);
  border: 1px solid #d44f2f;
  border-radius: 3px;
  padding: 0 2px;
  line-height: 12px;
}

#header #header-right .notifications-link.all-read .ion-disc {
  top: 4px;
}

#header #header-right .notifications-link.all-read .notifications-number {
  display: none;
}

#header ul.menu {
  display: none;
  list-style: none;
  padding: 7px;
  margin: 0;
  position: absolute;
  top: 28px;
  left: 0;
  font-size: 0;
  letter-spacing: 0;
  z-index: 1;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.13);
}

#header ul.menu li {
  font-size: 12px;
  letter-spacing: 1px;
  color: #4b4b4b;
  text-align: left;
}

#header ul.menu li a {
  color: inherit;
  border-bottom: 1px solid white;
  border-top: 1px solid #e4e4e4;
  display: block;
  padding: 1px 0;
}

#header ul.menu li a > span {
  padding: 2px 5px;
  display: block;
}

#header #header-right ul.menu {
  top: 35px;
}

#header #header-right span.selected:before {
  bottom: -7px !important;
}

#header #header-right ul.menu li.site {
  display: none;
}

#header ul.menu.single-menu li:nth-child(2) a {
  border-top: none;
}

#header li.dynamic-menu.selected ul.menu.apps-menu {
  margin-top: 0;
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
}

/* li.dynamic-menu.selected, span.current_account_name.selected { ul.menu { ... } } */
#header li.dynamic-menu.selected ul.menu.apps-menu,
#header span.current_account_name.selected ul.menu.apps-menu {
  background-color: #333333;
  min-width: 0;
  padding: 0;
  border-top: none;
  border-bottom: 4px solid #262626;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li {
  display: inline-block;
  width: 20%;
  padding: 0px 7px;
  border-right: 1px solid #FFFFFF;
  border-left: 1px solid #e4e4e4;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li,
#header span.current_account_name.selected ul.menu.apps-menu li {
  border-left: none;
  border-color: #868686;
  line-height: 16px;
  vertical-align: top;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a,
#header span.current_account_name.selected ul.menu.apps-menu li a {
  display: block;
  padding: 10px;
  border-top: none;
  border-bottom: none;
  color: #FFFFFF;
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a > span,
#header span.current_account_name.selected ul.menu.apps-menu li a > span {
  padding: 0 0 0 33px;
  position: relative;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a > span img,
#header span.current_account_name.selected ul.menu.apps-menu li a > span img {
  width: 26px;
  height: 26px;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a > span span,
#header span.current_account_name.selected ul.menu.apps-menu li a > span span {
  display: inline-block;
  width: 100%;
  line-height: 26px;
  font-size: 13px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a:hover,
#header li.dynamic-menu.selected ul.menu.apps-menu li a:focus,
#header span.current_account_name.selected ul.menu.apps-menu li a:hover,
#header span.current_account_name.selected ul.menu.apps-menu li a:focus {
  background-color: #262626;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li a:hover span,
#header li.dynamic-menu.selected ul.menu.apps-menu li a:focus span,
#header span.current_account_name.selected ul.menu.apps-menu li a:hover span,
#header span.current_account_name.selected ul.menu.apps-menu li a:focus span {
  background-color: transparent;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li:nth-child(5n),
#header li.dynamic-menu.selected ul.menu.apps-menu li:nth-last-child(2),
#header span.current_account_name.selected ul.menu.apps-menu li:nth-child(5n),
#header span.current_account_name.selected ul.menu.apps-menu li:nth-last-child(2) {
  border-right: 1px solid #868686;
  padding-right: 7px;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li:last-child,
#header li.dynamic-menu.selected ul.menu.apps-menu li:nth-child(5n+1),
#header span.current_account_name.selected ul.menu.apps-menu li:last-child,
#header span.current_account_name.selected ul.menu.apps-menu li:nth-child(5n+1) {
  border-right: none;
  padding-left: 7px;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li.close,
#header span.current_account_name.selected ul.menu.apps-menu li.close {
  width: 100%;
  border-left: none;
  border-right: none;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li.menu-footer,
#header span.current_account_name.selected ul.menu.apps-menu li.menu-footer {
  float: right;
  width: 20%;
  padding: 0 7px;
  text-align: right;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li.menu-footer .ion-chevron-up,
#header span.current_account_name.selected ul.menu.apps-menu li.menu-footer .ion-chevron-up {
  display: none;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li.menu-footer a,
#header span.current_account_name.selected ul.menu.apps-menu li.menu-footer a {
  line-height: 26px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: none;
}

#header li.dynamic-menu.selected ul.menu.apps-menu li.menu-footer a:hover,
#header li.dynamic-menu.selected ul.menu.apps-menu li.menu-footer a:focus,
#header span.current_account_name.selected ul.menu.apps-menu li.menu-footer a:hover,
#header span.current_account_name.selected ul.menu.apps-menu li.menu-footer a:focus {
  background-color: transparent;
}

/* single-menu */
#header li.dynamic-menu.selected ul.menu.single-menu,
#header span.current_account_name.selected ul.menu.single-menu {
  background-color: #333333;
  padding: 0;
  border: none;
  border-bottom: 4px solid #262626;
}

#header li.dynamic-menu.selected ul.menu.single-menu li,
#header span.current_account_name.selected ul.menu.single-menu li {
  line-height: 18px;
}

#header li.dynamic-menu.selected ul.menu.single-menu li a,
#header span.current_account_name.selected ul.menu.single-menu li a {
  padding: 9px 15px;
  border: none;
  font-size: 13px;
  color: #FFFFFF;
}

#header li.dynamic-menu.selected ul.menu.single-menu li a:hover,
#header li.dynamic-menu.selected ul.menu.single-menu li a:focus,
#header span.current_account_name.selected ul.menu.single-menu li a:hover,
#header span.current_account_name.selected ul.menu.single-menu li a:focus {
  background-color: #262626;
}

#header li.dynamic-menu.selected ul.menu.single-menu li a:hover span,
#header li.dynamic-menu.selected ul.menu.single-menu li a:focus span,
#header span.current_account_name.selected ul.menu.single-menu li a:hover span,
#header span.current_account_name.selected ul.menu.single-menu li a:focus span {
  background-color: transparent;
}

#header li.dynamic-menu.selected ul.menu.single-menu li.close a:hover,
#header li.dynamic-menu.selected ul.menu.single-menu li.close a:focus,
#header span.current_account_name.selected ul.menu.single-menu li.close a:hover,
#header span.current_account_name.selected ul.menu.single-menu li.close a:focus {
  background-color: transparent;
}

/* multi-menu */
#header ul.menu.multi-menu .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header ul.menu.multi-menu > li {
  display: inline-block;
  width: 230px;
  padding: 0 7px;
  border-left: 1px solid #e4e4e4;
  border-right: 1px solid white;
  vertical-align: top;
}

#header ul.menu.multi-menu > li > span {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding-bottom: 3px;
  margin-bottom: 4px;
  border-bottom: 1px solid white;
  font-style: italic;
}

#header li.dynamic-menu.selected ul.menu.multi-menu,
#header span.current_account_name.selected ul.menu.multi-menu {
  background-color: #333333;
  min-width: 320px;
  padding: 0;
  border-top: none;
  border-bottom: 4px solid #262626;
  overflow: hidden;
  position: fixed;
  top: 40px;
}

#header li.dynamic-menu.selected ul.menu.multi-menu span,
#header li.dynamic-menu.selected ul.menu.multi-menu a,
#header span.current_account_name.selected ul.menu.multi-menu span,
#header span.current_account_name.selected ul.menu.multi-menu a {
  color: #FFFFFF;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li,
#header span.current_account_name.selected ul.menu.multi-menu > li {
  height: 100%;
  padding: 0;
  border-left: 4px solid #4F5D72;
  border-right: none;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li > span,
#header span.current_account_name.selected ul.menu.multi-menu > li > span {
  background-color: #262626;
  height: 40px;
  margin: 0;
  padding: 10px;
  border: none;
  line-height: 20px;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li > span > span,
#header span.current_account_name.selected ul.menu.multi-menu > li > span > span {
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
  overflow: hidden;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li.close,
#header span.current_account_name.selected ul.menu.multi-menu > li.close {
  border-left: none;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu {
  width: calc(100% + 4px);
  margin-left: -4px;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li {
  line-height: 18px;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li a,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li a {
  padding: 9px 15px;
  border: none;
  font-size: 13px;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li a:hover,
#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li a:focus,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li a:hover,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li a:focus {
  background-color: #262626;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li a:hover span,
#header li.dynamic-menu.selected ul.menu.multi-menu > li ul.sub-menu > li a:focus span,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li a:hover span,
#header span.current_account_name.selected ul.menu.multi-menu > li ul.sub-menu > li a:focus span {
  background-color: transparent;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li.close,
#header span.current_account_name.selected ul.menu.multi-menu > li.close {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid #FFFFFF;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li.close a,
#header span.current_account_name.selected ul.menu.multi-menu > li.close a {
  border: none;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(2),
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(2) {
  border-left: none;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(2) ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(2) ul.sub-menu {
  width: 100%;
  margin-left: 0;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(3) ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(3) ul.sub-menu {
  border-left: 4px solid #78C0AF !important;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(4) ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(4) ul.sub-menu {
  border-left: 4px solid #C55D5E !important;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(5) ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(5) ul.sub-menu {
  border-left: 4px solid #A6C9DD !important;
}

#header li.dynamic-menu.selected ul.menu.multi-menu > li:nth-child(6) ul.sub-menu,
#header span.current_account_name.selected ul.menu.multi-menu > li:nth-child(6) ul.sub-menu {
  border-left: 4px solid #DD9963 !important;
}

#header ul.menu.multi-menu.cols2 > li {
  width: 50%;
}

#header ul.menu.multi-menu.cols3 > li {
  width: 33%;
}
#header ul.menu.multi-menu.cols3 > li:nth-child(2){
  width: 34%;
}

#header ul.menu.multi-menu.cols4 > li {
  width: 25%;
}

#header ul.menu.multi-menu.cols5 > li {
  width: 20%;
}

/* span.current_account_name.selected */
#header span.current_account_name.selected:before {
  display: none;
}

#header span.current_account_name.selected ul.menu.single-menu {
  top: 33px;
  right: 0;
  left: auto;
}

/* #header.mini */
#header.mini li.dynamic-menu.selected ul.menu.multi-menu > li {
  height: calc(100% - 38px);
}

#header.mini li.dynamic-menu.selected ul.menu.multi-menu > li.close {
  height: auto;
}

#header.mini li.dynamic-menu.selected ul.menu.multi-menu.cols5 {
  right: 0;
}

#header.mini #header-left .app_icon {
  display: none;
}

#header.mini #header-left .responsive-menu {
  float: left;
  display: inline-block;
  margin: 1px 0 0 0;
  line-height: 24px;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
}

#header.mini #header-left > ul {
  display: none;
  background-color: #333333;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 39px;
  right: 0;
  left: 0;
  -webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.13);
  -moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.13);
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.13);
}

#header.mini #header-left > ul > li {
  display: block;
  padding: 0;
  border: none;
  border-bottom: 1px solid #FFFFFF;
  position: static;
}

#header.mini #header-left > ul > li:last-child {
  border-bottom: none;
}

#header.mini #header-left > ul > li > a {
  display: block;
  padding: 10px;
}

#header.mini #header-left > ul > li ul {
  background-color: #333333;
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: none;
  top: 0;
  left: 0 !important;
}

#header.mini #header-left > ul > li ul.multi-menu {
  top: 39px;
}

#header.mini #header-left > ul > li ul li {
  line-height: 16px;
}

#header.mini #header-left > ul > li ul li a {
  display: block;
  padding: 10px;
  border-top: none;
  color: #FFFFFF;
  font-size: 13px;
}

#header.mini #header-left > ul > li ul li a > span {
  padding: 0;
}

#header.mini #header-left > ul > li ul li a:hover,
#header.mini #header-left > ul > li ul li a:focus {
  color: #FF8D00;
}

#header.mini #header-left > ul > li ul li a:hover > span,
#header.mini #header-left > ul > li ul li a:focus > span {
  background-color: transparent;
}

#header.mini #header-left > ul > li ul li.close {
  display: block;
  background-color: #868686;
  border-top: 1px solid #FFFFFF;
  text-align: center;
}

#header.mini #header-left > ul > li ul.apps-menu li a > span {
  padding: 0 0 0 33px;
}

#header.mini #header-right .current_society_name {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#header.mini #header-right .current_account_name,
#header.mini #header-right .notifications-link {
  display: none;
}

/* Mostra icona app quando non mini (override) */
#header:not(.mini) #header-left .app_icon {
  display: inline-block;
  vertical-align: middle;
}

/* --- Media query da _responsive.scss (Rails) --- */
@media only screen and (max-width: 1150px) {
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols5 {
    width: 100% !important;
  }
}

@media only screen and (max-width: 920px) {
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols4 {
    width: 100% !important;
  }
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols4 li:not(.close) {
    width: 25%;
  }
}

@media only screen and (max-width: 780px) {
  #header.mini #header-left {
    position: relative;
    z-index: 2;
  }
  #header.mini #header-right {
    max-width: calc(100% - 7px);
    z-index: 1;
  }
  #header.mini #header-right .current_society_name {
    width: 100%;
    max-width: calc(100% - 130px);
    padding-left: 35px;
  }
}

@media only screen and (max-width: 690px) {
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols3 {
    width: 100% !important;
  }
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols3 li:not(.close) {
    width: 33%;
  }
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols3 li:not(.close):nth-child(3) {
    width: 34%;
  }
}

@media only screen and (max-width: 614px) {
  #header-left {
    min-width: 100% !important;
  }
}

@media only screen and (max-width: 460px) {
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols2 {
    width: 100% !important;
  }
  #header li.dynamic-menu.selected ul.menu.multi-menu.cols2 li:not(.close) {
    width: 50%;
  }
}

@media only screen and (max-width: 400px) {
  #header-right .current_account_name > a > span:first-child span {
    display: none;
  }
}

/* Fix iPad (da _responsive.scss html.ipad) */
html.ipad #header li.dynamic-menu.selected ul.menu.apps-menu li a,
html.ipad #header span.current_account_name.selected ul.menu.apps-menu li a {
  letter-spacing: -4px;
}
