//  =================
//      Imports
//  =================

@import '../../../base/base';    // Base Variables


.widget-content-area {
  background-color: $dark;
  -webkit-box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.0901960784), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
  -moz-box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.0901960784), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.0901960784), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
}

.no-content {
  &:before, &:after {
    display: none !important;
  }
}

.new-control.new-checkbox .new-control-indicator {
  top: 4px;
  height: 22px;
  width: 22px;
  border-radius: 50%;
}

.table > thead {
  border-top: 1px solid rgba(136, 142, 168, 0.3137254902);
  border-bottom: 1px solid rgba(136, 142, 168, 0.3137254902);
}

table.dataTable {
  thead {
    .sorting {
      &:before, &:after {
        opacity: 1;
        color: $m-color_5;
      }
    }

    .sorting_asc {
      &:before, &:after {
        opacity: 1;
        color: $m-color_5;
      }
    }

    .sorting_desc {
      &:before, &:after {
        opacity: 1;
        color: $m-color_5;
      }
    }

    .sorting_asc_disabled {
      &:before, &:after {
        opacity: 1;
        color: $m-color_5;
      }
    }

    .sorting_desc_disabled {
      &:before, &:after {
        opacity: 1;
        color: $m-color_5;
      }
    }

    .sorting_asc:before, .sorting_desc:after {
      color: #ffff;
    }
  }

  border-collapse: separate;
  border-spacing: 0 5px;
  margin-top: 8px !important;
  margin-bottom: 50px !important;
  border-collapse: collapse !important;
}

.table > {
  tbody {
    &:before {
      line-height: 1em;
      content: "_";
      color: $dark;
      display: block;
    }

    tr {
      border-radius: 4px;
      -webkit-transition: all 0.1s ease;
      transition: all 0.1s ease;
      border-bottom: 1px solid rgba(136, 142, 168, 0.3137254902);
    }
  }

  thead > tr > th {
    color: $white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  tbody > tr > td {
    border: none;
    color: $m-color_5;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: transparent !important;
}

.table > tfoot > tr > th {
  border: none;
}

.table-hover {
  &:not(.table-dark) tbody tr:hover {
    background-color: transparent !important;
    -webkit-transform: translateY(-1px) scale(1.01);
    transform: translateY(-1px) scale(1.01);

    td:first-child {}
  }

  &.non-hover:not(.table-dark) tbody tr:hover {
    -webkit-transform: none;
    transform: none;
  }
}

div.dataTables_wrapper div {
  &.dataTables_info {
    padding-top: 0.85em;
    white-space: normal;
    color: $l-dark;
    font-weight: 600;
    border: 1px solid rgba(136, 142, 168, 0.3137254902);
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
  }

  &.dataTables_filter {
    label {
      position: relative;
    }

    svg {
      position: absolute;
      top: 12px;
      right: 14px;
      width: 20px;
      color: $m-color_5;
    }
  }
}

.dataTables_wrapper .form-control {
  background: $dark;
  border: none;
  margin-top: 5px;
  -webkit-box-shadow: 2px 5px 17px 0 rgba(31, 45, 61, 0.1);
  box-shadow: 2px 5px 17px 0 rgba(31, 45, 61, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(136, 142, 168, 0.3137254902);
  padding: 8px 30px 8px 14px;
  color: $m-color_1;
}

div.dataTables_wrapper div.dataTables_filter input {
  width: 150px;
}

.dataTables_wrapper .dataTables_length select.form-control {
  padding: 8px 17px 8px 14px;
  -moz-appearance: none;

  /* Firefox */
  -webkit-appearance: none;

  /* Safari and Chrome */
  appearance: none;
  background: $dark url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d3d3d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") 50px 9px no-repeat;
}

div.dataTables_wrapper div.dataTables_paginate {
  margin: 0;
  white-space: nowrap;
  text-align: right;
  display: inline-block;
}

.page-link {
  margin-right: 5px;
  border-radius: 50%;
  padding: 8px 12px;
  background: rgba(0, 23, 55, 0.08);
  border: none;
  color: $m-color_6;

  &:focus {
    box-shadow: none;
  }
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 3px 0;
}

.page-item {
  &.disabled .page-link {
    background: $l-dark;

    svg {
      color: $dark;
    }
  }

  &:first-child .page-link, &:last-child .page-link {
    border-radius: 50%;
    padding: 5px 9px;

    &:hover {
      border-radius: 50%;
      padding: 5px 9px;
      background: $l-dark;
      color: $dark;
    }

    svg {
      width: 17px;
    }
  }

  &.active .page-link {
    background-color: $m-color_2;
    color: $dark;
  }
}

#alter_pagination_next a, #alter_pagination_previous a {
  border-radius: 50%;
  padding: 5px 9px;
}

#alter_pagination_next a svg, #alter_pagination_previous a svg {
  width: 17px;
}

.table-cancel {
  color: $m-color_6;
  margin-right: 6px;
  vertical-align: middle;
  fill: rgba(0, 23, 55, 0.08);
  cursor: pointer;
}

.table-hover:not(.table-dark) tbody tr:hover .table-cancel {
  color: $danger;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ CSS styles go here */

  .dataTables_wrapper .dataTables_length select.form-control {
    background: transparent;
    padding: 8px 10px 8px 14px;
  }
}

@media (max-width: 767px) {
  div.dataTables_wrapper div.dataTables_info {
    margin-bottom: 40px;
  }
}