#Banner {
  background-color: var(--red);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  color: white;
  height: var(--banner-height);
  left: 0;
  padding: 3px 5px 6px;
  position: fixed;
  right: 0;
  text-align: center;
  transition: box-shadow 0.5s, top 0.5s;
  top: -100px;
  width: 100%;
  z-index: 10000;
  &.visible {
    top: 0;
  }
  & .banner-text {
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    margin: 0 25px;
    padding: 0;
    text-transform: uppercase;
    transition: border-color 0.5s;
    @media (max-width: 768px) {
      border-bottom: none;
      text-decoration: underline;
    }
  }
  &:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    & .banner-text {
      border-color: white;
    }
  }
  & a {
    color: white;
  }
  & .close {
    line-height: 20px;
    min-height: 20px;
    min-width: 20px;
    opacity: 0.5;
    position: absolute;
    right: 10px;
    top: 5px;
    transition: opacity 0.2s;
    vertical-align: top;
    & .bp3-icon {
      color: white;
    }
    &:before {
      color: white;
    }
    &:hover {
      background: none;
      opacity: 1;
    }
  }
}

html {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

body {
  background-color: transparent;
  /* Adjust font size */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  /* Font varient */
  font-variant-ligatures: none;
  /* Smoothing */
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  & #App {
    background-color: var(--darkbluegray);
    box-sizing: border-box;
    padding-top: 0;
    position: relative;
    transition: padding-top 0.5s;
    &.bare {
      background-color: transparent;
    }
    &.visible-banner {
      padding-top: var(--banner-height);
      & #Nav {
        top: var(--banner-height);
      }
      & .subnav.visible {
        top: var(--banner-height);
      }
    }
  }
}

.heading, h1, h2, h3, h4, h5, h6 {
  font-family: var(--base-font-stack);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.125;
}

.arrow-link {
  color: var(--textblue);
  font-family: var(--base-font-stack);
  font-size: 17px;
  font-weight: 600;
  line-height: 31px;
  text-transform: uppercase;

  &:after {
    background-image: url('/icons/link-arrow-dark.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: inline-block;
    height: 15px;
    margin-bottom: 4px;
    margin-left: 15px;
    vertical-align: middle;
    width: 15px;
  }
  &:hover {
    color: var(--textblue);
  }

  &.light {
    color: var(--white);
    &:after {
      background-image: url('/icons/link-arrow-light.png');
    }
    &:hover {
      color: var(--white);
    }
  }
}

.bp3-spinner {
  & .bp3-spinner-head {
    stroke: var(--red) !important;
  }
}

.bp3-dialog {
  background-color: #F6F6F6 !important;
  border-radius: 0 !important;
  max-width: 584px;
  min-height: 100px;
  width: 100%;
  & .bp3-dialog-header {
    background: none;
    box-shadow: none;
    & img {
      margin-right: 5px;
    }
    & h5 {
      color: #434958;
      font-family: var(--base-font-stack);
      font-size: 13px;
      font-weight: 700;
      opacity: 0.4;
      text-transform: uppercase;
    }
    & .bp3-dialog-close-button {
      outline: 0;
    }
  }
  & .bp3-dialog-body {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: scroll;
  }
}

.bp3-overlay {
  z-index: 22 !important;
}

.bp3-overlay-backdrop {
  background-color: rgba(233, 233, 233, 0.4) !important;
}

.bp3-popover {
  & .bp3-popover-arrow {
    & .bp3-popover-arrow-border {
      stroke-width: 0;
    }
    & .bp3-popover-arrow-fill {
      fill: white !important;
    }
  }
  & .bp3-popover-content {
    border: 0;
    border-radius: 0;
    background: white !important;
    color: var(--darkgray) !important;
    font-family: var(--base-font-stack);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 300px;
    padding: 5px;
  }
}

::selection {
  background: #ddd;
}

input[type="text"] {
  &:focus {
    outline: 0;
  }
}

.bp3-transition-container {
  z-index: 30;
}

.bp3-control.bp3-checkbox {
  padding-left: 22px;
  & .bp3-control-indicator {
    border-radius: 0;
    box-shadow: inset 0 0 0 1px var(--red);
  }
  & input:checked ~ .bp3-control-indicator {
    background-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
  }
  &:hover {
    & input:checked ~ .bp3-control-indicator {
      background-color: var(--red);
    }
  }
}

.bp3-select, .bp3-html-select {
  position: relative;
  margin-bottom: 5px;
  & select {
    appearance: none !important;
    background: white !important;
    border: 1px solid #BEC7DE !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--darkgray) !important;
    font-family: var(--base-font-stack);
    font-size: 13px !important;
    font-weight: 600;
    height: 35px !important;
    line-height: 13px !important;
    padding: 0 23px 0 9px !important;
    transition: background 0.2s !important;
    &:hover {
      background: rgb(241, 241, 241) !important;
    }
  }
  &:after {
    bottom: 9px !important;
    color: var(--darkgray) !important;
    content: "";
    display: block;
    font-family: "Icons16", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    opacity: 0.5 !important;
    position: absolute;
    right: 10px !important;
    top: auto !important;
    width: 11px !important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
  }
}
.bp3-html-select:after {
  display: none;
}
.bp3-html-select .bp3-icon {
  top: 10px;
}

/* Blueprint Table Styles */
.bp3-table-container {
  background: transparent;
  box-shadow: none;
  outline: 0;
  & .bp3-table-quadrant {
    background: var(--white);
  }
  & .bp3-table-top-container {
    & .bp3-table-menu {
      background: var(--white);
      border-bottom: 1px solid #ccc;
      box-shadow: none;
    }
    & .bp3-table-column-headers {
      background: var(--white);
      box-shadow: none;
      & .bp3-table-header {
        box-shadow: none;
        & .bp3-table-column-name-text {
          align-items: flex-end;
          border-bottom: 1px solid #ccc;
          display: flex;
          padding: 15px 12px 12px;
          font-size: 13px;
          font-weight: bold;
          height: 87px;
          letter-spacing: 0.6px;
          line-height: 15px;
          overflow-wrap: break-word;
          text-overflow: clip;
          text-transform: uppercase;
          white-space: normal;
        }
      }
    }
  }
  & .bp3-table-bottom-container {
    & .bp3-table-row-headers {
      background: transparent;
      & .bp3-table-header {
        box-shadow: none;
        & .bp3-table-row-name {
          font-size: 12px;
          font-weight: 300;
          opacity: 0.25;
          padding: 3px 0;
        }
      }
    }
    & .bp3-table-cell-client {
      background: transparent;
    }
    & .bp3-table-cell, & .bp3-table-cell.bp3-table-last-in-row {
      box-shadow: none;
      font-size: 12px;
      font-weight: 300;
      padding: 3px 12px;
      & a {
        color: var(--red);
      }
    }
  }
}

.cms {
  min-height: calc(100vh - var(--nav-height)) !important;
  margin-top: var(--nav-height) !important;
}

.cms-ace-container.is-fullscreen {
  height: calc(100vh - var(--nav-height)) !important;
  top: var(--nav-height) !important;
}
