@import "vars";

table.dataTable.dtr-inline.collapsed > tbody > tr > td.child, table.dataTable.dtr-inline.collapsed > tbody > tr > th.child, table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty {
  cursor: default !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before, table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before {
  display: none !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: "#{$wb-font-family}";
  font-style: normal;
  font-weight: 400;
  content: "#{$wb-var-plus-circle}";
  transform: translate(0, 0);
  text-rendering: auto;

  // top: 12px;
  // left: 4px;
  // height: 14px;
  // width: 14px;
  // display: block;
  // position: absolute;
  // color: white;
  // border: 2px solid white;
  // border-radius: 14px;
  // box-shadow: 0 0 3px #444;
  // box-sizing: content-box;
  // text-align: center;
  // font-family: 'Courier New', Courier, monospace;
  // line-height: 14px;
  // content: '+';
  // background-color: $brand-primary;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
  content: "#{$wb-var-minus-circle}";
  // background-color: #d33333;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before {
  display: none;
}

table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child {
  padding-left: 27px;
}

table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before {
  top: 5px;
  left: 4px;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-indent: 3px;
  border-radius: 14px;
}

table.dataTable.dtr-column > tbody > tr > td.control, table.dataTable.dtr-column > tbody > tr > th.control {
  position: relative;
  cursor: pointer;
}

table.dataTable.dtr-column > tbody > tr > td.control:before, table.dataTable.dtr-column > tbody > tr > th.control:before {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: content-box;
  display: block;
  width: 16px;
  height: 16px;
  margin-top: -10px;
  margin-left: -10px;
  font-family: "Courier New", Courier, monospace;
  line-height: 14px;
  color: white;
  text-align: center;
  content: "+";
  background-color: #0275d8;
  border: 2px solid white;
  border-radius: 14px;
  box-shadow: 0 0 3px #444;
}

table.dataTable.dtr-column > tbody > tr.parent td.control:before, table.dataTable.dtr-column > tbody > tr.parent th.control:before {
  content: "-";
  background-color: #d33333;
}

table.dataTable > tbody > tr.child {
  padding: .5em 1em;
}

table.dataTable > tbody > tr.child:hover {
  background: transparent !important;
}

table.dataTable > tbody > tr.child ul.dtr-details {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

table.dataTable > tbody > tr.child ul.dtr-details li {
  padding: .5em 0;
  border-bottom: 1px solid #efefef;
}

table.dataTable > tbody > tr.child ul.dtr-details li:first-child {
  padding-top: 0;
}

table.dataTable > tbody > tr.child ul.dtr-details li:last-child {
  border-bottom: none;
}

table.dataTable > tbody > tr.child span.dtr-title {
  display: inline-block;
  min-width: 75px;
  font-weight: bold;
}

div.dtr-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10em 1em;
}

div.dtr-modal div.dtr-modal-display {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 102;
  width: 50%;
  height: 50%;
  margin: auto;
  overflow: auto;
  overflow: auto;
  background-color: #f5f5f7;
  border: 1px solid black;
  border-radius: .5em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}

div.dtr-modal div.dtr-modal-content {
  position: relative;
  padding: 1em;
}

div.dtr-modal div.dtr-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 12;
  width: 22px;
  height: 22px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 3px;
}

div.dtr-modal div.dtr-modal-close:hover {
  background-color: #eaeaea;
}

div.dtr-modal div.dtr-modal-background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 101;
  background: rgba(0, 0, 0, .6);
}

@media screen and (max-width: 767px) {
  div.dtr-modal div.dtr-modal-display {
    width: 95%;
  }
}

div.dtr-bs-modal table.table tr:first-child td {
  border-top: none;
}
