/* Global styles */
* {
  font-family: "Roboto", sans-serif;
}

body {
  overflow-y: hidden;
  max-height: 100vh;
  max-width: 100vw;
}

a:hover {
  background-color: #fafafa;
}

/* Bootstrap overrides */
.tooltip-inner {
  /* let text wrap in tooltips */
  white-space: pre-wrap;
}

/* Header styles */

.main-header {
  display: flex;
  background-color: #010431;
}

.total-header {
  height: 64px;
  background: #010431;
}

.headline {
  padding-left: 15px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 0.25px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sub-headline {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.flexsave {
  background: #cad2ff;
  border-radius: 32px 0px 0px 0px;
  margin-left: auto;
  display: none;
}

.flexsave-text {
  text-align: center;
  height: 64px;
  font-size: 18px;
  padding-left: 20px;
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.87);
}

.flexsave-subtext {
  font-weight: bold;
  color: black;
  margin-left: 5px;
  padding-right: 10px;
}

.flexsave-logo {
  padding: 0 15px;
  height: 24px;
  align-items: center;
}

.flexsave-link:hover,
.flexsave-link:active,
.flexsave-link {
  text-decoration: none !important;
}

.doit-link:hover {
  background-color: transparent;
}

/* Table styles */

#menu {
  background-color: #ffffff;
  padding: 0px 10px 16px 10px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  align-items: baseline;
  width: 100%;
  max-width: 100vw;
  max-height: 40vh;
}

.sticky {
  position: fixed;
  top: 0;
  background: #ffffff;
  margin-bottom: 10px;
  z-index: 3;
  padding-bottom: 8px;
  width: 100%;
}

.selectors {
  display: inline-block;
}

.right-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dataTables_filter {
    display: none;
}

.dropdown-box {
  width: 125px;
  height: 36px;
  padding-left: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  position: relative;
  z-index: inherit;
}

.dropdown-label {
  font-size: 12px;
  display: block;
  letter-spacing: 0.4px;
  color: #000000;
}

.dropdown-select {
  font-size: 18px;
  text-decoration: none !important;
  color: #000000;

  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.dropdown-select:active {
  text-decoration: none;
}

.dropdown-select:hover {
  background-color: #fff;
}

.dropdown-menu {
  max-height: 50vh;
  overflow-y: scroll;
}

.buttons-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.text {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.15px;
  color: #000000;
}

.btn-clear {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 121px;
  height: 36px;

  font-weight: 500;
  border: none;
  background-color: transparent;
  color: rgba(0, 0, 0, 0.26);
}

.clear-span {
  padding-left: 10px;
}

.right-buttons,
#csv {
  letter-spacing: 0.4px;
  color: #3b40b5;
  background-color: transparent;
  width: 110px;
  height: 36px;
  border: 1px solid rgba(59, 64, 181, 0.5);
  border-radius: 4px;
}

.end-compare {
  color: #d32f2f;
  border-color: #d32f2f;
}

#csv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
}

.csv-button {
  color: #3b40b5;
  background-color: transparent;
}

.csv-button:hover {
  text-decoration: none;
  color: #3b40b5;
}

.table-filters {
  background: #fafafa;
  /* border-radius: 0px; */
}

.thead-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  margin-bottom: 10px;
}

#data {
  margin-top: 10px;
  clear: both;
}

#data a {
  color: #333;
  text-decoration: underline;
}

#data tr {
  background-color: white;
  cursor: pointer;
}

#data tr.highlight {
  background-color: #f4f6ff;
}

#data th,
#data td {
  white-space: nowrap;
}

#data th,
.sorting th {
  padding: 4px 15px 0 15px;
  background-color: #fafafa;
}

#data th input[type="text"] {
  width: 100%;
  height: 30px;
  background: #ffffff;
  padding-left: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  margin-bottom: 8px;
}
#data th input[type="text"]::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

table.table td.numeric {
  text-align: right;
}

input[type="text"]:focus,
input[type="search"]:focus,
.form-control:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}
input[type="search"]:focus {
  border: 1px solid #ccc;
}
#data td {
  font-size: 13px;
  padding: 8px 15px;
}

/* Bootstrap overrides */
.dropdown-menu .active a {
  color: #fff !important;
}

/* Footer styles */

.visit-doit {
  color: #ffffff !important;
  font-size: 16px;
  text-decoration-line: underline;
}

.visit-doit:hover {
  color: #ffffff;
  background-color: transparent;
}

.divider {
  width: 35px;
  height: 0px;
  opacity: 0.5;
  border: 1px solid #ffffff;
  transform: rotate(90deg);
}

.in {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.details {
  padding: 0 10px;
  height: 7.5vh;
  background: #010431;
  display: flex;
  align-items: center;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  bottom: 0;
}

.fa-twitter {
  color: #1da1f2;
}

#share-links {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.links {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #000000;

  display: flex;
  flex-direction: row;
  align-items: center;
}
.links:hover {
  text-decoration: none;
  color: initial;
}
.disclaimer {
  font-size: 16px;
  opacity: 0.5;
}

.share {
  width: 177px;
  height: 35px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #ffffff;
  border-radius: 355px;
}

.share-github {
  margin-left: 20px;
}

.space {
  margin-left: 5px;
}

.share-url {
  text-align: left;
  margin-left: 5px;
  margin-bottom: 0px !important;
}

.btn-sm {
  height: 26px;
  padding: 3px 0px;
}

.well p:last-child {
  margin-bottom: 0;
}

table {
  border-collapse: separate !important;
  overflow: scroll;
  width: 100% !important;
}

thead {
  background-color: #000000;
}

thead th {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.colum-filter {
  padding-left: 5px;
}

/* DataTables: http://datatables.net/blog/Twitter_Bootstrap_2 */
table.table thead .sorting,
table.table thead .sorting_asc,
table.table thead .sorting_desc,
table.table thead .sorting_asc_disabled,
table.table thead .sorting_desc_disabled {
  cursor: pointer;
  *cursor: hand;
}

button[disabled] {
  color: #b6b6b6;
  border: 1px solid #d7d7d7;
}

table.table thead .sorting {
  background: url("datatables/images/sort_both.png") no-repeat center right;
}
table.table thead .sorting_asc {
  background: url("datatables/images/sort_asc.png") no-repeat center right;
}
table.table thead .sorting_desc {
  background: url("datatables/images/sort_desc.png") no-repeat center right;
}

table.table thead .sorting_asc_disabled {
  background: url("datatables/images/sort_asc_disabled.png") no-repeat center
    right;
}
table.table thead .sorting_desc_disabled {
  background: url("datatables/images/sort_desc_disabled.png") no-repeat center
    right;
}

/* This class is applied to the DataTables search box by our own code once it renders */
input.search {
  width: 100%;
  height: 36px;
}

.table-container {
  overflow: auto;
  width: 100%;
  max-height: 100vh;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 16px;
}

.table-with-filters {
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  height: 95vh;
}

.table thead th {
  font-weight: bold;
}

.table tbody td {
  padding: 8px;
}

thead th[class*="sorting"]:not(:last-child),
thead th[class*="sorting"]:last-child {
  border-bottom: none;
  border-top: none;
}

thead th:not([class*="sorting"]):not(:last-child),
thead th:not([class*="sorting"]):last-child {
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

thead th {
  border-left: none;
  /* margin-top: 16px; */
}

table tr:first-child td:last-child,
table tr:first-child td:not(:last-child) {
  border-top: none;
}

.active-line {
  background-color: #f4f6ff;
  color: #000000;
}


/* Media queries */

@media screen and (max-width: 801px) {
  .headline {
    font-size: 20px;
  }

  .sub-headline {
    font-size: 12px;
  }

  .doit-logo {
    width: 70px;
  }

  .flexsave {
    display: none;
  }

  .details-links > .space {
    display: none;
  }

  .share {
    width: 24px;
    height: 24px;
  }
}

@media screen and (min-width: 398px) {
  #menu {
    max-height: 30vh;
    gap: 5px;
  }
}

@media screen and (min-width: 490px) {
  input.search {
    width: 200px;
  }

  .right-selectors {
    flex-wrap: nowrap;
  }

  #menu {
    max-height: 25vh;
  }
}

@media screen and (min-width: 802px) {
  .links {
    flex-direction: row;
  }

  #menu {
    margin-top: 16px;
  }
}

@media screen and (min-width: 1012px) {
  .flexsave {
    display: block;
  }
}

@media screen and (min-width: 1029px) {
  #menu {
    grid-template-columns: 0.725fr 0.275fr;
    grid-template-rows: 1fr;
    justify-content: space-between;
  }
}
