/* Fit the complete console inside the viewport without an internal horizontal bar. */
html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.dj-app,
.controller-grille,
.hardware-layout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hardware-layout {
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  resize: none !important;
}

.hardware-layout > .deck,
.hardware-layout > .pro-center-mixer {
  width: 100%;
  min-width: 0;
  height: auto !important;
}

.hardware-layout .pro-center-mixer {
  min-height: 650px !important;
  padding: 10px 8px !important;
}

.pro-center-mixer .mixer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mixer-height-controls {
  display: flex;
  gap: 5px;
}

.pro-center-mixer .mixer-height-controls button {
  width: 27px;
  height: 25px;
  min-height: 0;
  padding: 0 !important;
  border: 1px solid #38dffb !important;
  border-radius: 5px !important;
  color: #8becff;
  background: linear-gradient(180deg, #27313a, #080b0e) !important;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.pro-center-mixer .mixer-height-controls button:hover {
  color: #071014;
  background: #55e5ff !important;
}

.deck-a-appearance,
.deck-b-height-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.deck-height-controls {
  display: flex;
  gap: 4px;
}

.hardware-layout .deck-height-controls button {
  width: 25px;
  height: 24px;
  min-height: 0;
  padding: 0 !important;
  border: 1px solid var(--deck) !important;
  border-radius: 5px !important;
  color: var(--deck);
  background: linear-gradient(180deg, #303740, #090c10) !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.hardware-layout .deck-height-controls button:hover {
  color: #080a0d;
  background: var(--deck) !important;
}

.hardware-layout .deck-body {
  min-height: 218px;
  padding: 7px 10px;
}

.hardware-layout .platter {
  width: 205px;
  height: 205px;
}

.deck-lcd {
  min-width: 0;
}

.deck-lcd canvas {
  max-width: 100%;
}

.master-waveforms {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.transport {
  min-height: 70px;
  padding: 7px !important;
  gap: 5px !important;
}

.transport .play {
  width: 64px !important;
  min-width: 64px;
  height: 64px !important;
}

.transport .cue {
  width: 52px !important;
  min-width: 52px;
  height: 52px !important;
}

.pro-center-mixer .channel-faders {
  height: 135px;
}

.pro-center-mixer .channel-faders input {
  height: 108px;
}

@media (max-width: 1350px) {
  .hardware-layout {
    grid-template-columns: minmax(0, 1fr) 245px minmax(0, 1fr) !important;
  }

  .hardware-layout .platter {
    width: 175px;
    height: 175px;
  }

  .hardware-layout .deck-body {
    grid-template-columns: 52px minmax(0, 1fr) 88px;
    min-height: 190px;
  }

  .hardware-layout .deck-b .deck-body {
    grid-template-columns: 88px minmax(0, 1fr) 52px;
  }
}

.mini-main-decks .hardware-layout {
  grid-template-columns: minmax(0, 1fr) 155px minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.mini-main-decks .hardware-layout .pro-center-mixer {
  min-height: 165px !important;
}
