body {
  margin: 0;
  padding: 20px;
  font-family: sans-serif;
  background-color: #343e59;
}

.wrapper-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wrapper-charts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}
.wrapper-rfv {
  display: grid;
  grid-template-columns: 1fr;
}
.wrapper-refresh {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 16px;
}

.card,
.circle,
.chart,
.table,
.rfv {
  background-color: #2b2d3e;
  margin: 16px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.card {
  height: 180px;
  flex-direction: column;
  justify-content: center;
}
.circle {
  height: 320px;
  display: flex;
  justify-content: center;
}
.chart,
.table {
  height: 350px;
  padding: 16px;
}

.card p,
.circle p,
.chart p,
.table p,
.rfv p {
  margin: 0 auto;
}
.chart,
.rfv,
.table {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#vendas-meses,
#rfv {
  width: 100%;
}

#rfv {
  transform: translateX(15px);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #cccccc;
}
.card-value {
  font-size: 24px;
  font-weight: 700;
  color: #cccccc;
}

.styled-table {
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  width: 100%;
}
.styled-table thead tr {
  background-color: #232332;
  color: #ccccc3;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 12px 15px;
}
.styled-table tbody tr {
  border-bottom: 1px solid #444444;
  color: #ccccc3;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #343e59;
}
.alert {
  background-color: #9e100d !important;
}

.botoes-dash {
  position: relative;
  margin: 0;
  margin-left: 14px;
  padding: 0.8em 1em;
  outline: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  background-color: #2b2d3e;
  border-radius: 10px;
  color: #fff;
  font-weight: 300;
  font-size: 18px;
  font-family: inherit;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.botoes-dash span {
  font-weight: 600;
}

.botoes-dash:hover {
  animation: sh0 0.5s ease-in-out both;
}

@keyframes sh0 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  25% {
    transform: rotate(7deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-7deg) translate3d(0, 0, 0);
  }

  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

.botoes-dash:hover span {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

.botoes-dash::before,
.botoes-dash::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
  z-index: -1;
  transform: translate(100%, -25%) translate3d(0, 0, 0);
}

.botoes-dash:hover::before,
.botoes-dash:hover::after {
  opacity: 0.15;
  transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.botoes-dash:hover::before {
  transform: translate3d(50%, 0, 0) scale(0.9);
}

.botoes-dash:hover::after {
  transform: translate(50%, 0) scale(1.1);
}

.rfv-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 90%;
}
.rfv-itens {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  height: 100%;
}

.rfv-chart {
  height: 480px;
  width: 25%;
}
#lista-rfv {
  width: 480px;
  padding-left: 32px;
  max-width: 100%;
}

.btn-help {
  position: absolute;
  right: 18px;
  top: 18px;
  height: 20px;
  width: 20px;
  background: #343e59;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.7s ease-in-out;
  z-index: 999;
}
.btn-help:hover {
  z-index: 9999;
  background: #343e59;
  border-radius: 15px;
  animation: 0.3s forwards 0.1s resize;
  box-shadow: 0px 0px 1px 1px #25252588;
}
.btn-help i {
  position: absolute;
  font-size: 16px;
  color: #cccccc;
  font-weight: bold;
}
.btn-help:hover i {
  opacity: 0;
}
.text-section {
  padding: 20px;
  opacity: 0;
  display: none;
  color: #cccccc;
}
.btn-help:hover .text-section {
  animation: forwards fadeIn 0.3s 0.2s ease-in-out;
  display: block;
}

@keyframes resize {
  0% {
    height: 30px;
    width: 250px;
  }
  70% {
    width: 250px;
    height: auto;
  }
  100% {
    width: 250px;
    height: auto;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.text-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin: 12px 16px;
  gap: 15px;
}
label[for="valor-vendas"] {
  margin-bottom: 4px;
  color: aliceblue;
  font-weight: 600;
}
#valor-vendas {
  height: 40px;
  border-radius: 4px;
  border: solid 1px aliceblue;
  padding: 0 8px;
  background-color: #343e59;
  color: #cccccc;
  font-size: 16px;
  font-weight: 600;
}

@media screen and (max-width: 1080px) {
  .wrapper-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrapper-charts {
    display: grid;
    grid-template-columns: 1fr;
  }
  .rfv-row {
    flex-direction: column;
  }
  .rfv {
    max-width: 82vw;
  }
}

@media screen and (max-width: 700px) {
  .wrapper-cards {
    grid-template-columns: repeat(1, 1fr);
  }
}
