/**
 * Shell layout fixes — align with live admin-common.css + index.index.css
 * Do NOT fight dark sidebar / fixed positioning from admin-common.css
 */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Live: header left:169px @ >=641px (admin-common) — keep it */
@media only screen and (min-width: 641px) {
  header.admin-header,
  header.am-topbar.admin-header {
    left: 169px !important;
    right: 0;
  }

  /* Live: sidebar fixed from top:0 — kill prototype flex push-down blank corner */
  .admin-sidebar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 170px !important;
    height: 100% !important;
    z-index: 1;
    float: none !important;
    flex: none !important;
    background: transparent !important;
  }

  /* Live: iframe full width of .admin + padding-left 170px (index.index.css) */
  #ifcontent {
    padding-left: 170px !important;
    width: 100% !important;
    margin-left: 0 !important;
    flex: none !important;
  }
}

.admin {
  /* live: flex + padding-top 35px — sidebar is fixed so must NOT reserve flex column */
  display: block !important;
  width: 100%;
  height: 100%;
  padding-top: 35px;
  background: #fff;
  box-sizing: border-box;
}

/* Dark sidebar (live admin-common) — reinforce in case cascade broke */
.admin-offcanvas-bar,
.admin-offcanvas-bar .am-list > li {
  background: #36373c !important;
}

.admin-sidebar-list li a {
  color: #b6b6b6;
}

.admin-sidebar-sub {
  background: #404246 !important;
  box-shadow: 0 16px 8px -15px #e2e2e2 inset;
  padding-left: 10px;
  margin: 0;
}

.admin-sidebar-sub li {
  background: #404246 !important;
  border-color: #393b3e !important;
}

.admin-sidebar-sub.am-collapse:not(.am-in) {
  display: none;
}

.admin-sidebar-sub.am-in {
  display: block;
}

.common-left-menu-active,
a.common-left-menu-active {
  background: #1cc09f !important;
  color: #fff !important;
}

.common-left-menu-active .nav-name,
a.common-left-menu-active .nav-name {
  color: #fff !important;
}

.left-menu-more-ico-rotate {
  transform: rotate(180deg);
}

#ifcontent {
  border: 0;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
}

/* FontAwesome must win for am-icon glyphs */
[class*="am-icon-"]:before,
[class^="am-icon-"]:before {
  font-family: FontAwesome !important;
  font-style: normal;
  font-weight: normal;
}

.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
