@import '../_custom-variables/pages';

$clients-content-bg: transparent !default;
$clients-sidebox-width: 20rem !default;
$clients-transition-duration: .2s !default;

// Make wrapper full page height
.clients-wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
  flex: 1 1 100%;
  width: 100%;
}

.clients-sidebox,
.clients-content {
  transition: all $clients-transition-duration;
}

.clients-content {
  background: $clients-content-bg;
}

.clients-sidebox {
  position: fixed;
  top: 0;
  right: -$clients-sidebox-width;
  height: 100%;
  width: $clients-sidebox-width;

  @include feature-rtl {
    right: auto;
    left: -$clients-sidebox-width;
  }
}

.layout-sidenav-100vh .clients-sidebox {
  height: 100vh;
}

.clients-sidebox-open .clients-sidebox {
  right: 0;

  @include feature-rtl {
    right: auto;
    left: 0;
  }
}

.clients-sidebox-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: block;
  line-height: 1;

  @include feature-rtl {
    right: 1rem;
    left: auto;
  }
}

.clients-table tr,
.clients-table tr > * {
  cursor: pointer;
}

.clients-scroll {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
}

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

    .clients-sidebox {
      z-index: $zindex-layout-fixed + 1;
    }

    @include media-breakpoint-up(lg) {
      .clients-sidebox {
        position: absolute;
        z-index: 1;
      }

      .clients-sidebox-open .clients-content {
        right: $clients-sidebox-width;
      }
    }
  }

  @if $enable-rtl-support {
    .light-style[dir=rtl] .clients-sidebox-open .clients-content {
      @import "../_appwork/include";

      @include media-breakpoint-up(lg) {
        right: 0;
        left: $clients-sidebox-width;
      }
    }
  }
}

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

    .clients-sidebox {
      z-index: $zindex-layout-fixed + 1;
    }

    @include media-breakpoint-up(lg) {
      .clients-sidebox {
        position: absolute;
        z-index: 1;
      }

      .clients-sidebox-open .clients-content {
        right: $clients-sidebox-width;
      }
    }
  }

  @if $enable-rtl-support {
    .material-style[dir=rtl] .clients-sidebox-open .clients-content {
      @import "../_appwork/include-material";

      @include media-breakpoint-up(lg) {
        right: 0;
        left: $clients-sidebox-width;
      }
    }
  }
}

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

    .clients-sidebox {
      z-index: $zindex-layout-fixed + 1;
    }

    @include media-breakpoint-up(lg) {
      .clients-sidebox {
        position: absolute;
        z-index: 1;
      }

      .clients-sidebox-open .clients-content {
        right: $clients-sidebox-width;
      }
    }
  }

  @if $enable-rtl-support {
    .dark-style[dir=rtl] .clients-sidebox-open .clients-content {
      @import "../_appwork/include-dark";

      @include media-breakpoint-up(lg) {
        right: 0;
        left: $clients-sidebox-width;
      }
    }
  }
}
