@import "../../styles/index.scss";

.impact_drawer_container_medium {
  width: 375px;
  height: 100%;
}
.impact_drawer_container_large {
  width: 526px;
  height: 100%;
}
.MuiBox-root {
  width: auto;
}

.impact_drawer_container {
  --ia-focus-bg: #{$lightBlueColor};
  position: relative;

  .impact_drawer_header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: $lightBlueColor;
    height: 40px;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    align-items: center;
    .impact_drawer_heading {
      font-size: 16px;
      font-weight: $BoldFontWeight;
    }
    .close_icon {
      background: url("../../assets/close.svg") no-repeat;
      background-size: 16px;
      background-position: center;
      width: 16px;
      height: 16px;
      cursor: pointer;
      @include focus-visible-ring;
    }
  }

  .impact_drawer_body {
    z-index: 0;
    position: relative;
    padding: 16px;
    overflow-y: auto;
    height: calc(100% - 100px);
    width: 100%;
  }

  .impact_drawer_footer {
    position: absolute;
    bottom: 0;
    background: white;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    border-top: 1px solid #d9dde7;
    left: 0;
    right: 0;
    .ia-styles.ia-btn.ia-btn-link {
      text-decoration: none;
    }
    .impact_drawer_footer_right_container {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }
  }
}

.panel-resizer {
  width: 5px;
  cursor: col-resize;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 10;

  &.panel-resizer-left {
    left: 0;
  }

  &.panel-resizer-right {
    right: 0;
  }
}
