@import "../../Themes/common/PredefinedMixins.scss";
@import "./partial.scss";
@import "./Variables.scss";

.grid {
  position: absolute;
  overflow: hidden;
  outline: 0;
  margin: 0;
  padding: 0;
  border: $grid_border;
  border-radius: 12px;

  &.grid-no-grid-lines {
    border: unset;
  }

  .grid-main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    outline: 0;
    margin: 0;
    padding: 0;
  }

  &:focus-visible {
    @include focus(
      $outline: $focus_outline,
      $outline_offset: -1px,
      $box-shadow: none
    );
  }
}

.grid-premium {
  .grid-main {
    background-color: $grid_main_bg;
    border-radius: 4px;
  }

  &:focus {
    border: $grid_filterbar_input_focused_border;
    box-shadow: $grid_focused_shadow;
  }
}
