html,
body {
  height: 100%;
}

body {
  background-image: url('../assets/haven/images/bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

* {
  font-family: 'Roboto';
}

.search {
  background-color: white;
  border-radius: 5px;
  max-height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

#main {
  max-height: none;
}

.dataTables_filter {
  position: relative;
  width: 100%;
}

#barter-mark {
  display: none;
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  background-position: center center;
  background-size: contain;
  -webkit-filter:
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.99))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.99))
    drop-shadow(1px 1px 0 #111)
    drop-shadow(-1px -1px 0 #111);
  filter:
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.99))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.99))
    drop-shadow(1px 1px 0 #111)
    drop-shadow(-1px -1px 0 #111);
  z-index: 3;
  background-repeat: no-repeat;
  pointer-events: none;
}

.trade-container {
  padding-top: 16px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trade-header {
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.trade-layout {
  display: flex;
  gap: 18px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.trade-map {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#map {
  width: 100%;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#market {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.market-img {
  max-height: 100%;
  width: 100%;
  filter: none;
}

.trade-market-meta {
  margin-top: 8px;
  flex: 0 0 auto;
}

.trade-panel {
  flex: 1 1 50%;
  max-width: none;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding-bottom: 100px;
}

.trade-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

table.dataTable {
  width: 100% !important;
}

.item-quality {
  position: absolute;
  background-color: black;
  color: white;
  font-size: 10px;
  bottom: 0;
  padding-left: 3px;
  padding-right: 4px;
}

td {
  font-size: 80%;
  padding: 4px 5px !important;
}

th {
  font-size: 80%;
}

p {
  margin: 0px;
  padding: 0px;
}


.timeline-months button {
  margin-right: 6px;
  margin-bottom: 6px;
}

#timeline-label {
  font-size: 85%;
}

@media (max-width: 991.98px) {
  body {
    overflow: auto;
  }

  .trade-container {
    height: auto;
    overflow: visible;
  }

  .trade-layout {
    flex-direction: column;
    overflow: visible;
  }

  #market {
    height: auto;
  }
}

@media (max-width: 991.98px) {
  .trade-layout {
    flex-direction: column;
  }

  .trade-panel {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .market-img {
    max-height: 70vh;
  }
}

* {
  font-family: 'Roboto';
}

td {
  font-size: 80%;
  padding: 4px 5px !important;
}

th {
  font-size: 80%;
}

p {
  margin: 0px;
  padding: 0px;
}

footer {
  position: fixed;
  bottom: 0px;
  width: 100%;
  text-align: center;
  background-color: #ffffff90;
}

footer p {
  font-size: 80%;
}

.timeline-months button {
  margin-right: 6px;
  margin-bottom: 6px;
}

#timeline-label {
  font-size: 85%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  color: #333;
  font-weight: bold;
}
