/* ---------------------------------
-----  dimension variables --------
---------------------------------- */
/* ------  standard elements padding & margin  ------- */
/* spacing */
/**
**  Official Font sizes
------------------------------- */
/**
** Line-heights
------------------------------- */
/*
  Mixin to progressively-enhance :focus-visible, keeping :focus where not supported
  Add an arbitrary list of selectors into the arguments, and the styling in the block.
  I you pass no selectors to the mixin the parent ("ampersand") operator is used instead.

  There are two mixins:
  - focus-visible: a generic focus-visible, giving you "slots" to decide what to render for :focus, :focus reset, and :focus-visible
  - focus-visible-outline: a focus-visible, which only resets the outline. If you don't need more custom resets, use this one!

  Use focus-visible:
  The key thing here is checking which slot is being rendered.
  For example, you can reset box-shadow here, or anything else.

  @include focus-visible using ($slot) {
      @if $slot == focus {
          outline: 2px solid transparent;
          box-shadow: 0 0 0 4px blue;
      }
      @if $slot == focusReset {
          box-shadow: none;
      }
      @if $slot == focusVisible {
          box-shadow: 0 0 0 4px blue;
      }
  }

  Use focus-visible-outline:
  @include focus-visible-outline("button", "a[href]") {
      outline: 2px solid blue;
  }

  Resulting CSS (compressed):

  button:focus,
  a[href]:focus {
      outline: 2px solid blue;
  }

  button:focus:not(:focus-visible),
  a[href]:focus:not(:focus-visible) {
      outline: none;
  }
  button:focus-visible,
  a[href]:focus-visible {
      outline: 2px solid blue;
  }
*/
.ux-sidebar__inner {
  background-color: #fff;
  bottom: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: var(--ux-sidebar-max-width);
  position: fixed;
  right: -100%;
  top: 0;
  transition: right 0.3s ease-in-out;
  width: var(--ux-sidebar-width);
  z-index: 9999;
}
.ux-sidebar__inner--align-header {
  top: var(--ux-sidebar-align-header);
}
.ux-sidebar__inner--align-footer {
  bottom: var(--ux-sidebar-align-footer);
}
.ux-sidebar__inner--align-left {
  left: -100%;
  transition: left 0.3s ease-in-out;
}
.ux-sidebar__inner--no-transition {
  transition: none;
}
.ux-sidebar__backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  bottom: 0;
  display: block;
  height: 0;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.2s ease-in-out;
}
.ux-sidebar__backdrop--no-transition {
  transition: none;
}
.ux-sidebar__head {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: flex-end;
  padding: 15px 15px 0 0;
}
.ux-sidebar__close {
  appearance: none;
  background: transparent;
  border: 0 none transparent;
  cursor: pointer;
  height: 40px;
  margin: 0;
  outline: none;
  padding: 0;
  width: 40px;
}
.ux-sidebar__slot {
  align-items: stretch;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  max-height: calc(100% - 55px);
  width: 100%;
}

.ux-sidebar--open .ux-sidebar__inner {
  right: 0;
}
.ux-sidebar--open .ux-sidebar__inner--align-left {
  left: 0;
}
.ux-sidebar--open .ux-sidebar__backdrop {
  height: auto;
  opacity: 1;
}
.ux-sidebar--open .ux-date-range-picker .ux-date-picker {
  flex: 1 1 auto;
  width: 100%;
}
.ux-sidebar--open .ux-date-range-picker__container {
  align-items: stretch;
  flex-direction: column;
  justify-content: stretch;
}
.ux-sidebar--open .ux-date-picker .ux-date-picker__container {
  left: 0;
  right: 0;
  width: auto;
}