html,
body.cms-faction-background {
  min-height: 100%;
}

body.cms-faction-background {
  background-color: #070b10;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.cms-faction-mmo {
  --cms-faction-accent: #e53935;
  background-image:
    linear-gradient(rgba(7, 9, 12, .46), rgba(7, 9, 12, .68)),
    url('../img/cms-backgrounds/mmo.png');
}

body.cms-faction-eic {
  --cms-faction-accent: #1e88e5;
  background-image:
    linear-gradient(rgba(7, 9, 12, .46), rgba(7, 9, 12, .68)),
    url('../img/cms-backgrounds/eic.png');
}

body.cms-faction-vru {
  --cms-faction-accent: #20c997;
  background-image:
    linear-gradient(rgba(7, 9, 12, .46), rgba(7, 9, 12, .68)),
    url('../img/cms-backgrounds/vru.png');
}

body.cms-faction-background #app,
body.cms-faction-background #main {
  background: transparent;
}

body.cms-faction-background #main {
  padding-top: 8px;
  padding-bottom: 24px;
}

body.cms-faction-background nav {
  position: relative !important;
  z-index: 2147483000 !important;
  isolation: isolate;
  background-color: rgba(10, 12, 16, .36) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  /* The Hangar list is rendered next to the nav in Materialize. A blur on
     the nav therefore blurred the dropdown from above in Electron. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cms-faction-background nav .nav-wrapper.grey.darken-4 {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.cms-faction-background .tabs .indicator {
  background-color: var(--cms-faction-accent) !important;
}

body.cms-faction-background .grey.darken-4,
body.cms-faction-background .card.grey.darken-4,
body.cms-faction-background .page-footer.grey.darken-4 {
  background-color: rgba(18, 20, 24, .32) !important;
  backdrop-filter: blur(3px);
}

body.cms-faction-background .grey.darken-3,
body.cms-faction-background .card.grey.darken-3 {
  background-color: rgba(45, 47, 52, .26) !important;
  backdrop-filter: blur(3px);
}

body.cms-faction-background table.striped > tbody > tr,
body.cms-faction-background table.striped > tbody > tr:nth-child(odd) {
  background-color: rgba(22, 24, 28, .18) !important;
}

body.cms-faction-background table.striped > tbody > tr:nth-child(odd) {
  background-color: rgba(120, 120, 124, .16) !important;
}

body.cms-faction-background table.highlight > tbody > tr:hover {
  background-color: rgba(105, 105, 110, .26) !important;
}

body.cms-faction-background .dropdown-content,
body.cms-faction-background .modal {
  background-color: rgba(25, 27, 31, .9) !important;
  backdrop-filter: blur(5px);
}

/* Materialize positions dropdowns outside the normal flow. Keep them above
   the translucent CMS cards and make their labels fully readable. */
body.cms-faction-background .dropdown-content {
  /* The lists now live inside the high navigation stacking context. */
  z-index: 2147483640 !important;
  position: absolute !important;
  isolation: isolate;
  background-color: rgba(12, 15, 20, .98) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .58);
}

body.cms-faction-background .dropdown-content li,
body.cms-faction-background .dropdown-content li > a,
body.cms-faction-background .dropdown-content li > span {
  background-color: transparent !important;
  opacity: 1;
  filter: none !important;
  -webkit-filter: none !important;
}

body.cms-faction-background .dropdown-content li > a,
body.cms-faction-background .dropdown-content li > span {
  color: var(--cms-faction-accent) !important;
}

body.cms-faction-background .dropdown-content li:hover,
body.cms-faction-background .dropdown-content li.active {
  background-color: rgba(255, 255, 255, .1) !important;
}

body.cms-faction-mmo .dropdown-content li:hover,
body.cms-faction-mmo .dropdown-content li.active {
  background-color: rgba(229, 57, 53, .18) !important;
}

body.cms-faction-eic .dropdown-content li:hover,
body.cms-faction-eic .dropdown-content li.active {
  background-color: rgba(30, 136, 229, .18) !important;
}

body.cms-faction-vru .dropdown-content li:hover,
body.cms-faction-vru .dropdown-content li.active {
  background-color: rgba(32, 201, 151, .18) !important;
}

.company-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.company-change-button {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .15s ease, transform .15s ease;
}

.company-change-button:hover,
.company-change-button:focus {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transform: rotate(45deg);
}

.company-change-button .material-icons {
  font-size: 17px;
  line-height: 1;
}

.company-change-status {
  padding-bottom: 0 !important;
}

body.cms-faction-background ::-webkit-scrollbar,
body.cms-faction-background #pilots::-webkit-scrollbar,
body.cms-faction-background #clans::-webkit-scrollbar,
body.cms-faction-background #quests::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

body.cms-faction-background ::-webkit-scrollbar-track,
body.cms-faction-background ::-webkit-scrollbar-track-piece,
body.cms-faction-background #pilots::-webkit-scrollbar-track,
body.cms-faction-background #pilots::-webkit-scrollbar-track-piece {
  background: rgba(255, 255, 255, .06);
}

body.cms-faction-background ::-webkit-scrollbar-thumb,
body.cms-faction-background #pilots::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .28);
  background-clip: padding-box;
}

body.cms-faction-background ::-webkit-scrollbar-button,
body.cms-faction-background #pilots::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 900px) {
  body.cms-faction-background {
    background-position: 64% center;
    background-attachment: scroll;
  }
}
