@import 'variables';

html{
  min-height: 100vh;
}

@media all and (-ms-high-contrast: none) {
  html {
    display: flex;
    flex-direction: column;
  }
}

#app-wrapper {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

#main {
  flex: 1;
  margin-top: $navbar-height;
  font-size: $content-font-size;
  line-height: $content-line-height;
  transition: all 0.3s;
  min-height: 100%;
  position: relative;
}

.embedded {
  overflow: hidden;
  #main {
    margin-top: 0;
  }
  #content {
    padding: 0;
  }
  .container-fluid{
    padding: 0;
  }
}

#content {
  padding: $content-padding-y $content-padding-x;
  min-width: $content-min-width;
}

.sidebar-fixed {
  #main {
    margin-left: $sidebar-width;
    margin-top: $navbar-height;
    @include media-breakpoint-down('md') {
      margin-left: 0;
    }
  }
}

.sidebar-hidden {
  #main {
    margin-left: 0;
  }
}

.sidebar-fixed {
  #sidebar {
    position: fixed;
    z-index: 55;
  }
}

.set-sidebar-visible {
  margin-left: 0!important;
}

.object-renderInstance{
  .ng-select-container {
    right: 5px;
    min-height: 100%;
    height: auto;
    width: 95%;
    line-height: 1;
  }
  div.ng-select-container {
    align-items: unset!important;
  }
}

.ng-select-valid {
  .ng-select-container {
    right: 5px;
  }

  .ng-arrow-wrapper {
    width: auto;
  }
  .ng-arrow-wrapper .ng-arrow {
    display: none;
  }
}

@include media-breakpoint-down('md') {
  .sidebar {
    margin-left: -$sidebar-width;
  }

  .sidebar-mobile-show {
    .sidebar {
      margin-left: 0;
    }
  }
  // #sidebar-categories {
  //   input.form-control {
  //     display: none;
  //   }
  // }
}

@include media-breakpoint-down('md') {
  #sidebar {
    margin-left: -$sidebar-width;
  }

  .sidebar-mobile-show {
    #sidebar {
      margin-left: 0;
    }
  }
}


