.dashboard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0;

  & > * {
    margin-bottom: 0.5rem;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

.info-boxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  width: 100%;
  height: max-content;
  padding: 1rem 2rem;

  @media (max-width: 668px) {
    flex-direction: column;
    padding: 1rem;

    .info-box {
      width: calc(100% - 1rem) !important;
      max-width: none !important;
      margin: 0 0.5rem 1rem !important;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .info-box {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    height: max-content;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: hsl(var(--background-container));
    border: 1px solid hsl(var(--border));
    user-select: none;
    max-width: 460px;

    margin-right: 1.5rem;
    margin-left: auto;

    &:last-child {
      margin-right: auto;
    }

    & > * {
      flex-shrink: 0;
    }

    .box-wrapper {
      flex-grow: 1;

      .box-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
      }

      .box-value {
        font-size: 1.5rem;
        font-weight: 600;

        &.money::after,
        .box-subvalue {
          font-size: 1rem;
          font-weight: normal;
          margin-left: 0.5rem;
          content: 'CNY';
        }
      }
    }

    .box-icon {
      width: max-content;
      height: max-content;
      transform: translate(0.25rem, 0.25rem);
      border-radius: 0.25rem;

      svg {
        width: 2rem;
        height: 2rem;
        stroke-width: 1.5;
      }
    }
  }
}

.chart-boxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;

  .chart-box {
    width: calc(50% - 1rem);
    height: max-content;
    max-height: 420px;

    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: var(--radius);
    background: hsl(var(--background-container));
    border: 1px solid hsl(var(--border));
    user-select: none;
    box-shadow: 0 0 1rem 0 hsla(var(--foreground), 0.1);
  }
}
