* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #36414a;
}

.dashboard {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 30px 40px;
}

h1 {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 33px;
  font-weight: 400;
  margin: 0 0 45px;
  color: #4f17a8;
}

/* -----------------------------------------
   Statistics Grid
----------------------------------------- */

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px;
}


/* -----------------------------------------
   Statistics Card
----------------------------------------- */

.stat-card {
  flex: 0 0 calc(25% - 29px);
  min-height: 165px;

  background: #f4f4f4;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 25px 15px;
}

.stat-label {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;

  margin-bottom: 25px;

  color: #36414a;
}

.stat-value {
  font-size: 40px;
  line-height: 1;

  font-weight: 700;

  min-height: 40px;
}

/* -----------------------------------------
   Approved PMI Colors
----------------------------------------- */

.color-purple {
  color: #4f17a8;
}

.color-orange {
  color: #ff6110;
}

.color-cyan {
  color: #0bbfe0;
}

.color-black {
  color: #000000;
}

/* -----------------------------------------
   Last row
----------------------------------------- */

.last-row {
  grid-column: span 1;
}

.stats-container {
  --card-width: calc((100% - 114px) / 4);
}

.last-row:first-child {
  margin-left: calc((100% - (var(--card-width) * 4) - 114px) / 2);
}

/* -----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 1100px) {

  .stat-card {
    flex-basis: calc(33.333% - 26px);
  }

  h1 {
    font-size: 34px;
  }

}


@media (max-width: 750px) {

  .dashboard {
    padding: 10px 20px 30px;
  }

  .stat-card {
    flex-basis: calc(50% - 10px);
    min-height: 145px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .stat-label {
    font-size: 18px;
  }

  .stat-value {
    font-size: 34px;
  }

}


@media (max-width: 500px) {

  .stat-card {
    flex-basis: 100%;
    min-height: 135px;
  }

  h1 {
    font-size: 25px;
  }

}
