@import 'Buttons';

.main {
  $header-height: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;

  >header {
    flex: 0 0 auto;
    height: $header-height;
    display: flex;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 9px 0 rgba(0, 0, 0, .25);
    z-index: 1;
    padding-right: 10px;

    .logo {
      margin-right: 10px;
      padding: 13px 10px 10px;
      border-right: 1px solid #d6d6d6;

      >img {
        display: block;
        width: 39px;
      }
    }

    >ul {
      display: flex;
      align-items: center;
      list-style: none;

      >li {
        margin: 0 10px;
        font-size: 13px;
        font-weight: 600;
      }
    }

    .globalNavigation {
      flex: 1 1 auto;
    }

    .arrow {
      &::after {
        content: '⌄';
        font-size: 22px;
        font-weight: normal;
        line-height: 13px;
        margin-left: 4px;
      }
    }

    .more {
      position: relative;
      display: inline-block;
      cursor: pointer;

      > ul {
        display: none;
        position: absolute;
        margin-top: 14px;
        left: -10px;
        padding-right: 20px;
        list-style: none;
        border-radius: 4px;
        background-color: #fff;
        box-shadow: 1px 0 3px 0 rgba(82, 82, 82, .26);
        font-weight: normal;

        &:global.open {
          display: block;
        }

        > li {
          padding: 10px 20px;
          display: block;
          color: #222222;
        }
      }
    }

    .signUp {
      @extend %buttonA
    }

    .newClaim {
      @extend %buttonA
    }

    .account {
      position: relative;
      margin-right: 40px;

      > header {
        display: flex;
        align-items: center;
        cursor: pointer;

        img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
        }

        .cue {
          margin-left: 5px;
          font-size: 24px;
          position: relative;
          top: -5px;
          font-weight: normal;
        }
      }

      >ul {
        display: none;
        position: absolute;
        right: 0;
        list-style: none;
        box-shadow: 1px 0 3px 0 rgba(82, 82, 82, .26);
        border-radius: 4px;
        background-color: #fff;

        &.open {
          display: block;
        }

        >li {
          $separator: 1px solid #e7e7e7;
          padding: 10px 20px;
          color: #222;
          font-size: 14px;
          font-weight: normal;

          &.email {
            border-bottom: $separator;
            font-size: 12px;
            white-space: nowrap;
          }

          &.logout {
            border-top: $separator;
            color: #da0000;
            font-weight: 600;
          }
        }
      }
    }
  }

  >main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;

    &.scrollDisabled {
      height: calc(100% - #{$header-height});
    }
  }
}
