#app-header {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  background-color: #222;
  color: #f5f5f5;
  max-height: 66px;

  h1 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;

    small {
      display: block;
      font-size: .6em;
      font-weight: 700;
    }
  }

  .logo {
    margin-right: 15px;
    padding-top: 7px;
    & > img {
      height: 36px;
    }
  }

  .right {
    display: flex;
    align-items: center;
    margin-left: auto;

    .sync-toggle {
      position: relative;
      display: inline-block;
      background-color: #ccc;
      padding: 3px;
      width: 62px;

      span {
        position: relative;
        display: block;
        left: 0;
        width: 25px;
        height: 25px;
        background-color: #222;
        transition: left 150ms cubic-bezier(.29,.56,.68,.43),
                    background-color 100ms ease-in-out;

        &:after {
          content: "S";
          position: relative;
          display: block;
          text-align: center;
          padding-top: 3px;
          color: #555;
          font-weight: 700;
          transition: color 100ms ease-in;
        }

        &:hover {
          cursor: pointer;
        }

      }

      input {
        display: none;

        &:checked + span {
          left: 30px;
          background-color: #222;
          &:after {
            color: #5d9bc1;
          }
        }
      }

    }

  }

  .widget-toolbar {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 14px;
    opacity: 0;
    height: auto;
    pointer-events: none;

    .mode-sync & {
      opacity: 1;
      pointer-events: auto;
    }

    .date-selector > input {
      width: 150px;
      background-color: transparent;
      padding: 10px;
      border: 0;
      font-weight: 700;
      text-align: center;
      width: 100px;
    }

    .time-selector > select {
      background-color: transparent;
      border: 1px solid #666;
    }

    .period-selector {
      input[type="radio"]:checked + span {
        background-color: #666;
      }
    }

  }

}
