table {
  border-collapse: collapse;
  margin-bottom: 20px;
  tr {
    border-top: 1px solid #ccc;
    background: transparent;
    @include run-transition(background);
  }
  tr.checked {
    background: #eee;
  }
  tr.disabled {
    color: #999;
  }
  tr.overline {
    border-bottom: none;
  }

  tr.underline {
    border-top: none;
  }

  tr.nested-root {
    border-left: 3px solid $primary;
  }
  tr.nested-child {
    border-left: 3px solid $primary-light;
  }
}

td.icon {
  width: 25px !important;
  height: 25px !important;
  position: relative;
}

td.text {
  min-width: 150px !important;
}

td.main-cell {
  width: 100% !important;
}

.light-style {
  tr {
    border: 1px solid #fff;
  }
}

.table-condensed {
  font-size: 12px;
  tr {
    td,
    th {
      padding: 0;
    }
  }
}

.blogs-posts-list table {
  table-layout: fixed;
}

table.sticky-header thead tr th,
table.sticky-header thead tr td {
  background: $primary;
  color: $white;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

table th .sortable {
  display: flex;
  flex-direction: row;
  align-items: center;
}

table th .sortable .icons {
  display: flex;
  flex-direction: column;
  float: left;
}

table th .sortable .icons i {
  margin: 0;
}

table th .sortable .icons i.arrow:before {
  font-size: 10px;
}
table.darkgrey tbody tr *,
table.darkgrey tbody tr.checked *,
table.darkgrey tbody tr.checked:hover * {
  color: $darkest-grey;
}
table.primary-hover tbody tr:hover * {
  color: $orange;
}

.fixed-head {
  & + .row {
    -webkit-overflow-scrolling: touch;
  }
}
.responsive-table {
  margin: 30px 0;
  border: 1px solid $medium-grey;
  line-height: 18px;
  font-size: 14px;
  .fixed-head {
    margin-bottom: 0;
    background: $white;
    border-collapse: initial;
    //	z-index: 99;

    th {
      text-align: center;
      padding: 10px;
      width: 20%;
    }
    tr {
      border: none;
    }
    tr:hover {
      background: transparent;
    }
    td:hover {
      background: transparent;
    }
  }

  table {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    margin-bottom: 0;

    thead {
      tr {
        font-weight: bold;
        color: $black;
        border-top: 1px solid $medium-grey;
      }
      td {
        padding: 10px;
        position: relative;
        font-size: 14px;
      }
    }
    tbody {
      tr {
        td {
          padding: 10px;
          font-size: 14px;
        }
      }
    }
    td {
      text-align: center;
      width: 20%;
    }
    td:first-child {
      text-align: left;
    }
  }
  thead.slided + tbody {
    //cause display block slide
    display: table-row-group !important;
  }
  input[type="radio"] {
    cursor: pointer;
  }
}
.row.my-notifications .responsive-table {
  .fixed-head tbody tr:hover {
    background: transparent;
  }
}

.share .responsive-table {
  thead tr {
    border-top: none;
    color: $white;
  }
}
@media screen and (max-width: $fat-mobile) {
  .responsive-table {
    border: 0;

    table.fixed-head {
      display: none;
    }

    table {
      margin-bottom: 15px;
      display: block;

      thead,
      tbody,
      tr,
      td {
        display: block;
      }
      tr {
        margin: 10px 2px;
        box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.4);
        border: none;
      }
      thead td,
      td {
        width: auto;
        padding: 15px 10px;
      }
      td:before {
        content: attr(data-label);
        display: block;
        text-align: center;
        text-transform: uppercase;
      }
      td:first-child {
        padding: 15px 25px;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 16px;
        text-align: center;
        border-bottom: 1px solid $medium-grey;
      }
      tbody {
        td:first-child {
          border-top: 1px solid $medium-grey;
        }
      }
    }
  }
}
