/* WIFAQ_DYNAMIC_DASHBOARD_V1 */

#wifaqDynamicDashboard {
  display: grid;
  gap: 18px;
}

.wdd-hero {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  min-height: 150px;
  padding: 26px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #102f59,
      #1d5b99
    );

  color: #ffffff;

  box-shadow:
    0 18px 40px
    rgba(15, 47, 89, .20);
}

.wdd-hero::after {
  content: "";

  position: absolute;
  left: -60px;
  bottom: -100px;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, .07);
}

.wdd-hero-content {
  position: relative;
  z-index: 2;
}

.wdd-hero h2 {
  margin: 0;

  font-size: 26px;
  line-height: 1.5;
}

.wdd-hero p {
  margin: 8px 0 0;

  color:
    rgba(255, 255, 255, .78);

  font-size: 13px;
}

.wdd-mode {
  position: relative;
  z-index: 2;

  min-width: 150px;
  padding: 13px 17px;

  border:
    1px solid
    rgba(255, 255, 255, .18);

  border-radius: 13px;

  background:
    rgba(255, 255, 255, .10);

  text-align: center;
}

.wdd-mode span {
  display: block;

  margin-bottom: 5px;

  color:
    rgba(255, 255, 255, .74);

  font-size: 10px;
}

.wdd-mode strong {
  font-size: 15px;
}

.wdd-stats {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 13px;
}

.wdd-stat {
  min-width: 0;

  padding: 17px;

  border:
    1px solid #e1e7ef;

  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    0 6px 20px
    rgba(15, 23, 42, .045);
}

.wdd-stat-head {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 11px;
}

.wdd-stat-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  border-radius: 10px;

  background: #edf4fb;

  font-size: 17px;
}

.wdd-stat span {
  color: #667085;

  font-size: 11px;
}

.wdd-stat strong {
  display: block;

  color: #173f73;

  font-size: 25px;
}

.wdd-stat small {
  display: block;

  margin-top: 6px;

  color: #98a2b3;

  font-size: 9px;
}

.wdd-columns {
  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(310px, .75fr);

  gap: 17px;

  align-items: start;
}

.wdd-card {
  min-width: 0;

  border:
    1px solid #e1e7ef;

  border-radius: 15px;

  background: #ffffff;

  box-shadow:
    0 6px 20px
    rgba(15, 23, 42, .04);

  overflow: hidden;
}

.wdd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 60px;
  padding: 14px 17px;

  border-bottom:
    1px solid #edf0f4;
}

.wdd-card-header h3 {
  margin: 0;

  color: #173f73;

  font-size: 15px;
}

.wdd-card-header a {
  color: #1d5b99;

  font-size: 10px;
  font-weight: 700;

  text-decoration: none;
}

.wdd-list {
  display: grid;
}

.wdd-list-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 12px;

  padding: 13px 17px;

  border-bottom:
    1px solid #f0f2f5;

  color: inherit;

  text-decoration: none;
}

.wdd-list-item:last-child {
  border-bottom: 0;
}

.wdd-list-item:hover {
  background: #f8fafc;
}

.wdd-list-item strong {
  display: block;

  overflow: hidden;

  color: #344054;

  font-size: 12px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.wdd-list-item span {
  display: block;

  margin-top: 5px;

  color: #667085;

  font-size: 9px;
}

.wdd-list-date {
  color: #475467;

  font-size: 10px;

  white-space: nowrap;
}

.wdd-empty {
  padding: 34px 15px;

  color: #98a2b3;

  font-size: 11px;

  text-align: center;
}

.wdd-modules {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 11px;

  padding: 15px;
}

.wdd-module {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 11px;

  min-height: 78px;
  padding: 12px;

  border:
    1px solid #e2e8f0;

  border-radius: 12px;

  background: #fbfcfe;

  color: inherit;

  text-decoration: none;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.wdd-module:hover {
  transform:
    translateY(-2px);

  border-color:
    #aac1dc;

  box-shadow:
    0 8px 18px
    rgba(15, 23, 42, .07);
}

.wdd-module-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  border-radius: 11px;

  background: #edf4fb;

  font-size: 19px;
}

.wdd-module strong {
  display: block;

  color: #173f73;

  font-size: 12px;
}

.wdd-module span {
  display: block;

  margin-top: 5px;

  color: #667085;

  font-size: 9px;
  line-height: 1.5;
}

.wdd-scope {
  display: inline-block !important;

  margin-top: 6px !important;
  padding: 3px 6px;

  border-radius: 999px;

  background: #edf4fb;

  color: #1d5b99 !important;

  font-size: 8px !important;
  font-weight: 700;
}

.wdd-side-grid {
  display: grid;
  gap: 17px;
}

@media (
  max-width: 1250px
) {
  .wdd-stats {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

  .wdd-modules {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

@media (
  max-width: 950px
) {
  .wdd-columns {
    grid-template-columns:
      1fr;
  }

  .wdd-stats {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

@media (
  max-width: 650px
) {
  .wdd-hero {
    min-height: 130px;

    padding: 20px;

    align-items: flex-start;
    flex-direction: column;
  }

  .wdd-hero h2 {
    font-size: 20px;
  }

  .wdd-mode {
    min-width: 0;
    width: 100%;

    text-align: right;
  }

  .wdd-stats {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 8px;
  }

  .wdd-stat {
    padding: 12px;
  }

  .wdd-stat strong {
    font-size: 20px;
  }

  .wdd-modules {
    grid-template-columns:
      1fr;
  }
}
