@import '../../sass/_custom-variables/libs';
@import "~bootstrap-table/src/bootstrap-table";

.bootstrap-table .bs-checkbox label {
  margin-bottom: 0;
}

@include feature-ltr(false) {
  .bootstrap-table {
    .fixed-table-container .table {
      thead th .sortable {
        padding-right: 30px !important;
      }
    }
  }
}

@include feature-rtl(false) {
  .bootstrap-table {
    .fixed-table-toolbar {
      .columns .btn-group>.btn-group {
        margin-left: 0 !important;
        margin-right: -1px !important;
      }

      .columns .dropdown-menu {
        text-align: right;
      }

      .columns-left {
        margin-left: 5px;
        margin-right: 0;
      }

      .columns-right {
        margin-left: 0;
        margin-right: 5px;
      }

      .pull-right .dropdown-menu {
        right: auto;
        left: 0;
      }
    }

    .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text {
      margin-right: 0;
      margin-left: 6px;
    }

    .table {
      thead th .sortable {
        padding-left: 30px !important;
        background-position: left;
      }

      tbody tr .card-view .card-view-title {
        text-align: right !important;
      }
    }

    .fixed-table-pagination > .pagination-detail .pagination-info {
      margin-left: 5px;
      margin-right: 0;
    }
  }

  div.fixed-table-scroll-outer {
    left: auto;
    right: 0;
  }
}

@if $enable-light-style {
  .light-style {
    @import "../../sass/_appwork/include";

    .bootstrap-table .fixed-table-container.fixed-height {
      &:not(.has-footer),
      .fixed-table-border,
      .table thead th {
        border-color: $table-border-color;
      }
    }

    .bootstrap-table .fixed-table-container .table {
      thead th .th-inner {
        padding: $table-cell-padding;
      }

      &.table-sm .th-inner {
        padding: $table-cell-padding-sm;
      }
    }
  }
}

@if $enable-material-style {
  .material-style {
    @import "../../sass/_appwork/include-material";

    .bootstrap-table .fixed-table-container.fixed-height {
      &:not(.has-footer),
      .fixed-table-border,
      .table thead th {
        border-color: $table-border-color;
      }
    }

    .bootstrap-table .fixed-table-container .table {
      thead th .th-inner {
        padding: $table-cell-padding;
      }

      &.table-sm .th-inner {
        padding: $table-cell-padding-sm;
      }
    }
  }
}

@if $enable-dark-style {
  .dark-style {
    @import "../../sass/_appwork/include-dark";

    .bootstrap-table .fixed-table-container.fixed-height {

      &:not(.has-footer),
      .fixed-table-border,
      .table thead th {
        border-color: $table-border-color;
      }
    }

    .bootstrap-table .fixed-table-container .table {
      thead th .th-inner {
        padding: $table-cell-padding;
      }

      &.table-sm .th-inner {
        padding: $table-cell-padding-sm;
      }
    }
  }
}
