/* FLIP CARD AND ANIMATION */
    .dashboard-card {
  perspective: 1000px;
  flex-shrink: 0;
  position: relative;
  transform: translateZ(0);
  display: block;
  width: 365px;
  height: 240px;
}

.card-inner {
  position: absolute;
  top: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.dashboard-card.flipped .card-inner {
  transform: rotateY(180deg) translate3d(0,0,0);
}

.dashboard-card-front,
.dashboard-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  box-sizing: border-box;
  top: 0;
  left: 0;
  -webkit-backface-visibility: hidden;
}

.dashboard-card-back {
  transform: rotateY(0deg);
}

.dashboard-card-back {
  transform: rotateY(180deg);
}



/* CONTAINER (DETERMINES COLUMN COUNT AND MANAGES GRID) */
body {
  background: #d9d9d9;
}

.container {
  max-width: 1200px;
  background: #d9d9d9;
}

@media (min-width: 400px) {
  .container {
    width: 100%;
    padding: ;
  }
}

.dashboard-container {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 30px;
  padding: 10px;
  margin: auto;
}

  @media (min-width: 839px) {
    .dashboard-container {
      grid-template-columns: 1fr;
    }
  }

  @media (min-width: 840px) and (max-width: 1400px) {
    .dashboard-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1401px) {
    .dashboard-container {
      grid-template-columns: repeat(3, 1fr);
      max-width: 1400px;
    }
  }

/* FRONT CARD */
.dashboard-card-front {
  border: 2px solid #253353;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  font-size: 14px !important;
  line-height: 1.3;
}

  .dashboard-card-front .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-card-front .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    padding: 12px 12px 0px;
    color: #253353;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    padding-bottom: 5px;
  }

  .dashboard-card-front .card-action-options {
    background: #fff;
    color: #253353;
    border: none;
    border-left: 1px solid #fff;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 6px;
    padding: 0 12px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    height: 35px;
    align-self: start;
    position: absolute;
    top: 0;
    right: 0;
  }

  .model-number {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #253353;
    font-size: 1.25rem;
  }

  .dashboard-card-front .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #253353;
    padding: 16px;
    flex: 1;
    margin-bottom: 8px;
  }

.dashboard-card-front .decision-type {
  position: absolute;
  top: 68px;
  text-align: center;
  color: #009933;
  font-size: 1.2rem;
  font-weight: bold;
}

.amount-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.7rem;
  font-weight: 600;
  color: #253353;
  margin-bottom: 8px;
}

.amount-icon img {
  width: auto;
  height: 18px;
  display: inline-block;
  padding-inline-end: 4px;
}

.dashboard-card-front .card-action-next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 38px;
  padding: 4px 0;
  background: #009933;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center !important;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: none !important;
}

.dashboard-card-front .card-action-wait {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 38px;
  padding: 4px 0;
  background: #aeaeaf;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center !important;
  margin-top: 12px;
  text-decoration: none !important;
}

.dashboard-card-front .card-action-resend {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 38px;
  padding: 4px 0;
  background: #f77300;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center !important;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: none !important;
}

.dashboard-card-front .card-action-error {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 38px;
  padding: 4px 0;
  background: #C2002F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center !important;
  margin-top: 12px;
  text-decoration: none !important;
}

.dashboard-card-front .card-action-complete {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 38px;
  padding: 4px 0;
  background: #327439;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center !important;
  margin-top: 12px;
  text-decoration: none !important;
}

.dashboard-card-front .note {
  position: absolute;
  top: 175px;
  width: 98%;
  text-align: center;
  color: #253353;
  font-size: 1rem;
}

.dashboard-card-front .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px 2px;
  color: #253353;
  font-size: 1.25rem;
  margin: 0px 12px 0px 12px;
}

.dashboard-card-front .card-footer .LOS-id,
.dashboard-card-front .card-footer .date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0px;
}


/* BACK CARD */
.dashboard-card-back {
  border: 2px solid #253353;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  font-size: 14px !important;
  line-height: 1.3;
}

  .dashboard-card-back .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-card-back .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 12px 0px;
    color: #253353;
    white-space: normal;
    word-break: break-word;
    width: 100%;
  }

  .dashboard-card-back .card-action-options {
    background: #fff;
    color: #253353;
    border: none;
    border-left: 1px solid #fff;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 6px;
    padding: 0 12px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    height: 35px;
    align-self: start;
    position: absolute;
    top: 0;
    right: 0;
  }

  .dashboard-card-back .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #253353;
    padding: 0px 8px 8px;
    flex: 1;
  }

  .dashboard-card-back .card-action-details {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: 38px;
    padding: 4px 0px;
    background: #009933;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
  }

  .dashboard-card-back .card-body-details {
    align-self: flex-start;
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .dashboard-card-back .contract-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    min-height: 28px;
    margin-top: 4px;
  }

  .contract-actions .edit-contract {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 49%;
    min-height: 28px;
    padding: 4px 0px;
    background: #009933;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
  }

.contract-actions .resend-contract-true {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 49%;
  min-height: 28px;
  padding: 4px 0px;
  background: #009933;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
}

.contract-actions .resend-contract-false {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 49%;
  min-height: 28px;
  padding: 4px 0px;
  background: #aeaeaf;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none !important;
}

.dashboard-card-back .card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0px 2px;
  color: #253353;
  font-size: 1.25rem;
}

  .dashboard-card-back .card-footer p {
    margin: 0;
  }
