/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.votietable-row:hover {
  background-color: rgb(200, 227, 252) !important;
}

ol.collection {
  margin: 0px;
  padding: 0px;
}

li {
  list-style: none;
}

* {
  box-sizing: border-box;
}

li.activerow {
  background-color: #123456 !important;
  color: white;
}

.rotate {
  /* Something you can count on */
  white-space: nowrap;
  transform: rotate(295deg);
  padding: 5px;
  margin-left: -22px;
}

.rttooltip .rttooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.rttooltip:hover .rttooltiptext {
  visibility: visible;
}

/* Search */
.search {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding-top: 5px;
  border-bottom: 2px solid #dee2e6;
}

.searchinputfield {
  margin-top: -5px;
}

.searchinputfield > input {
  width: 200px;
  border-bottom: 1px solid #dee2e6;
}

.striped {
  background-color: #e9ecef;
}

.searchLabel {
  padding-right: 8px;
}

.boldcenter {
  padding: 5px;
  text-align: center;
  font-weight: bold;
  vertical-align: middle;
}

/* Title */
.title {
  float: left;
}

.titleLabel {
  font-weight: bold;
  padding-top: 5px;
}

.votietable {
  table-layout: fixed;
  width: 100%;
}

.th-sticky {
  position: relative;
  position: sticky;
  position: -webkit-sticky;
  top: -1px;
  background: #fff;
  margin-top: 10px;
  vertical-align: middle !important;
  z-index: 99999;
}

.table-wrapper {
}

.outer-wrapper {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 5px;
  overflow-y: auto;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  width: 150px;
  color: white;
  background-color: #192733;
  padding: 5px;
}

.tooltip-text-bottom {
  top: 65px;
  left: -115%;
}

.tooltip-text-top {
  top: -40px;
  left: -50%;
}

.hover-text:hover span.tooltip-text {
  visibility: visible;
}

.hover-text {
  text-align: center;
}

/* 2 Column Card Layout */
@media screen and (max-width: 736px) {
  .collection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
  }

  .item {
    border: 1px solid #e9ecef;
    border-radius: 2px;
    padding: 10px;
  }

  /* Don't display the first item, since it is used to display the header for tabular layouts*/
  .collection-container > li:first-child {
    display: none;
  }

  .attribute::before {
    content: attr(data-name);
  }

  /* Attribute name for first column, and attribute value for second column. */
  .attribute {
    display: grid;
    grid-template-columns: 1fr;
  }

  .attribute {
    max-height: 75px;
  }
  .qrcode {
    min-height: 150px;
  }
}

/* 1 Column Card Layout */
@media screen and (max-width: 580px) {
  .collection-container {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Tabular Layout */
@media screen and (min-width: 737px) {
  /* The maximum column width, that can wrap */
  .item-container {
    display: grid;
  }

  .attribute-container {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(var(--column-width-min), 1fr)); */
  }

  /* Definition of wrapping column width for attribute groups. */

  .collection {
    border-top: 1px solid #e9ecef;
  }

  /* In order to maximize row lines, only display one line for a cell */
  .attribute {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 10px;
    overflow: hidden;
    white-space: wrap;
    text-overflow: ellipsis;
  }

  /* .collection-container > .item-container:first-child {
    height: 72px;
    margin-bottom: 0 !important;
  } */

  .collection-container-body {
    overflow: auto;
    padding: 0;
    position: absolute;
    top: 173px;
    bottom: 3px;
    left: 10px;
    right: 0px;
    margin-bottom: 0 !important;
  }

  .item-container:hover {
    background-color: rgb(200, 227, 252);
  }

  .item-container-header:hover {
    background-color: transparent;
  }

  .tblcomment {
    white-space: pre-wrap;
  }

  .isreviewedno {
    font-weight: bold;
  }

  .isreviewednob {
    border-right: 5px solid red !important;
  }

  .isreviewedyesb {
    border-right: 5px solid green !important;
  }

  .cursorPointer {
    cursor: pointer;
  }

  /* Center header labels */
  .collection-container > .item-container-header .attribute {
    justify-content: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal;
    font-weight: bold;
    padding-top: 10px;
    padding-left: 10px;
  }

  .collection-container > .item-container-header .attribute:hover .colControl-visible {
    cursor: pointer;
    visibility: visible;
  }

  .attribute:first-child {
    border-left: 1px solid #e9ecef;
  }

  .colControl {
    float: right;
    padding-right: 10px;
    visibility: hidden;
  }

  .colSort {
    float: right;
    padding-right: 10px;
  }

  .colFilter {
    float: right;
    padding-right: 10px;
    position: relative;
  }

  .filterDialog {
    max-height: 350px;
    z-index: 100000;
    width: 250px;
    left: -222px;
    top: 23px;
    padding: 8px;
    background-color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.175);
    min-width: 250px;
    box-sizing: border-box;
    border: 1px solid gray;
    border-radius: 4px;
    position: absolute;
    display: none;
    position: absolute;
  }

  .filterAttributes {
    overflow: visible !important;
  }

  .filterContainer {
    width: 100%;
    padding: 4px;
  }

  .filterSelect {
    width: 100%;
  }

  .filterValue {
    border-color: #ced4da;
    min-width: 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filterAction {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
  }

  .filterCancel {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
  }

  .filterDialog-popup {
    display: inline-flex;
  }

  /* CONTROL DIALOG */
  .control-dialog {
    border: 1px solid #e9ecef;
    width: 220px;
    height: 300px;
    position: fixed;
    background-color: white;
  }

  .ctrldlgtitle {
    border-bottom: 1px solid #e9ecef;
  }

  .ctrldlgtitle > span {
    padding: 10px;
  }

  .ctrlDlgClose {
    float: right;
    padding-right: 10px;
    cursor: pointer;
  }

  .ctrlDlgField {
    padding: 5px;
    width: 100%;
    text-align: center;
    font-weight: bold;
  }

  .ctrldlgProperty {
    padding-left: 15px;
    height: 30px;
    border-bottom: 1px solid #e9ecef;
  }

  .inputProperty {
    width: 50px;
    float: right;
  }

  .ordVidContainer {
    overflow-y: auto;
    height: 180px;
  }

  .ordvis {
    float: right;
    border-left: 1px solid #e9ecef;
    padding: 0 20px 0 10px;
  }

  .colVis {
    padding: 5px;
  }

  .colVis:hover {
    background-color: #e9ecef;
  }

  .colVis > span {
    padding-left: 15px;
  }

  .colVis > input {
    float: right;
    padding-top: 15px;
    padding-right: 15px;
  }
}
