@import '../../../global.less';

.container {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  :global {
    .ant-spin-nested-loading {
      flex-grow: 1;
      overflow: auto;
    }
  }
}

.message {
  text-align: center;
  margin-top: 20px;
}

.banner {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  :global {
    .bg {
      z-index: -1;
      position: absolute;
      left: 0;
      right: 0;
      width: 100%;
      height: 90%;
      background: linear-gradient(to bottom, @purple-one, @purple-two);
    }

    .title, .content {
      color: white;
      font-weight: lighter;
    }

    .title {
      margin-top: 40px;
    }

    .content {
      margin: 10px 0 24px;
    }

    .content .large {
      font-size: 1.6rem;
      margin-right: 6px;
      font-weight: normal;
    }
  }

  .card {
    flex-shrink: 0;
    align-self: stretch;
    background-color: white;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 1px 1px 8px rgba(0,0,0,.1);
    display: flex;
    align-items: center;

    :global {
      .left {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }

      .right {
        flex-shrink: 0;
        margin-left: 8px;
      }

      .line {
        margin: 4px 0;
      }

      .title2 {
        font-weight: lighter;
      }

      .app-btn {
        user-select: none;
        white-space: nowrap;
        background-color: @purple-one;
        @btn-height: 28px;
        height: @btn-height;
        line-height: @btn-height;
        padding: 0 24px;
        border-radius: @btn-height / 2;
        color: white;
        font-size: 0.8rem;
        box-shadow: 1px 1px 8px rgba(0,0,0,.2);
        transition: background-color .18s;

        &:active {
          background-color: lighten(@purple-one, 10%);
        }
      }
    }
  }
}

.controller {
  flex-shrink: 0;
  background-color: @bg-color;
  margin: 10px;
  text-align: right;

  :global {
    .desc {
      display: inline-block;
      font-weight: lighter;
      font-size: 0.8rem;
      margin-left: 4px;
    }

    .content {
      padding: 4px 10px;
    }
  }
}

.item {
  margin: 4px 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid @bg-color;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.8;

  :global {
    .line {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .amount {
      color: @purple-one;
      font-size: 1rem;
    }

    .small {
      font-weight: lighter;
      font-size: 0.8rem;
    }
  }
}
