.panel {
  position: fixed;
  z-index:1000;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow-y:scroll;
  transition: opacity, transform;
  transition-duration: 250ms;
  transition-timing-function: $transition-timing-function;
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
  &.open {
    opacity: 1;
    transform: none;
    pointer-events: all;
  }
}

.panel-header {
  position: relative;
  z-index:1;
  top:0;
  width: 100%;
  height: var(--site-header-height);
  border-bottom: 1px solid $color-neutral-10;
  background-color: $color-neutral-04;
  font-size: .8125rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.panel-header__close-button {
  width: var(--site-header-height);
  height: var(--site-header-height);
  flex-basis: var(--site-header-height);
  flex-shrink: 0;
  border: none;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
  background-color: $color-green;
  color: $color-white;
  &:hover, &:focus {
    background-color: $color-green-hover;
    color: $color-white;
  }
  &:before,
  &:after {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    left: calc(50% - #{var(--site-header-height)} / 4);
    width: var(--site-header-height) / 2;
    height: 2px;
    transform: rotate(-45deg);
    background-color: currentColor;
  }
  &:after {
    transform: rotate(45deg);
  }
}

.panel-header__title-group {
  flex-grow: 1;
  .dat-details {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.panel-header__action-group {
  padding-right: 1rem;
}

.panel-title {
  max-width: calc(100vw - 25rem);
  font-size: 1.375rem;
  margin-right: 1rem;
}
