/* Store profile card board. Scoped to #shops so other modules stay unchanged. */
#shops {
  --shops-ink: #172234;
  --shops-muted: #7b889b;
  --shops-line: #dfe7ee;
  --shops-teal: #137d83;
  --shops-green: #179366;
}

#shops .shops-hero {
  display: flex;
  align-items: center;
  min-height: 100px;
  margin-bottom: 14px;
  padding: 20px 22px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(112deg, #102b36 0%, #12515b 62%, #16817f 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(19, 64, 74, 0.12);
}

#shops .shops-hero h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
}

#shops .shops-hero p {
  margin: 0;
  color: rgba(231, 249, 248, 0.82);
  font-size: 13px;
}

#shops .shops-hero-metrics {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

#shops .shops-hero-metrics > div {
  min-width: 92px;
  text-align: right;
}

#shops .shops-hero-metrics strong,
#shops .shops-hero-metrics span {
  display: block;
}

#shops .shops-hero-metrics strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

#shops .shops-hero-metrics span {
  margin-top: 5px;
  color: rgba(226, 247, 245, 0.76);
  font-size: 12px;
}

#shops .shops-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--shops-line);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(39, 68, 89, 0.06);
}

#shops .shops-toolbar .search-box {
  flex: 1;
  min-width: 180px;
}

#shops .shops-toolbar select,
#shops .shops-toolbar button,
#shops .shops-toolbar .search-box {
  min-height: 42px;
}

#shops #shopPendingFilter.active {
  color: #b6493c;
  background: #fff0ec;
  border-color: #ffd7ce;
}

#shops .shops-platform-group + .shops-platform-group {
  margin-top: 20px;
}

#shops .shops-platform-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 2px 10px;
}

#shops .shops-platform-heading h3 {
  margin: 0;
  color: var(--shops-ink);
  font-size: 15px;
}

#shops .shops-platform-heading span {
  color: #8a97a8;
  font-size: 12px;
}

#shops .shops-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

#shops .shop-profile-card {
  position: relative;
  min-width: 0;
  padding: 17px 17px 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--shops-line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(35, 60, 80, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#shops .shop-profile-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #25a3aa;
  content: "";
}

#shops .shop-profile-card[data-platform="天猫"]::before,
#shops .shop-profile-card[data-platform="淘宝"]::before {
  background: #e34349;
}

#shops .shop-profile-card[data-platform="抖音小店"]::before,
#shops .shop-profile-card[data-platform="快手"]::before,
#shops .shop-profile-card[data-platform="微信小店"]::before {
  background: #8059c5;
}

#shops .shop-profile-card[data-platform="拼多多"]::before {
  background: #e45a31;
}

#shops .shop-profile-card:hover {
  transform: translateY(-2px);
  border-color: #cfdce6;
  box-shadow: 0 15px 32px rgba(35, 60, 80, 0.11);
}

#shops .shop-profile-head {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

#shops .shop-profile-head > div {
  min-width: 0;
}

#shops .shop-profile-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  place-items: center;
  color: #087981;
  background: #ebf6f7;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

#shops .shop-profile-head h4 {
  margin: 1px 0 4px;
  overflow: hidden;
  color: var(--shops-ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shops .shop-profile-head p {
  margin: 0;
  overflow: hidden;
  color: #8b97a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shops .shop-card-delete {
  margin: -6px -5px 0 auto;
  padding: 5px 7px;
  color: #a0abba;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

#shops .shop-card-delete:hover {
  color: #c64e43;
  background: #fff0ec;
}

#shops .shop-profile-health {
  display: flex;
  align-items: center;
  margin: 16px 0 7px;
  color: var(--shops-muted);
  font-size: 12px;
}

#shops .shop-profile-health strong {
  margin-left: auto;
  color: #147f53;
  font-size: 13px;
}

#shops .shop-profile-progress {
  height: 6px;
  overflow: hidden;
  background: #edf2f5;
  border-radius: 99px;
}

#shops .shop-profile-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1aa169, #35b780);
  border-radius: inherit;
}

#shops .shop-profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf1f4;
}

#shops .shop-profile-metrics span,
#shops .shop-profile-metrics strong {
  display: block;
}

#shops .shop-profile-metrics span {
  margin-bottom: 5px;
  color: #8b97a8;
  font-size: 11px;
}

#shops .shop-profile-metrics strong {
  overflow: hidden;
  color: #26354a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shops .shop-profile-foot {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

#shops .shop-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#shops .shop-card-status.ok {
  color: #14734d;
  background: #e5f5ed;
}

#shops .shop-card-status.warn {
  color: #b64738;
  background: #ffebe6;
}

#shops .shop-card-status.ready {
  color: #12697a;
  background: #e6f4f8;
}

#shops .shop-card-manage {
  margin-left: auto;
  padding: 6px 0 6px 8px;
  color: #1877aa;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

#shops .shop-card-manage:hover {
  color: #0a5f8f;
}

#shops .shops-empty-state {
  display: grid;
  min-height: 180px;
  place-content: center;
  text-align: center;
  background: #fff;
  border: 1px dashed #d7e0e7;
  border-radius: 14px;
}

#shops .shops-empty-state strong {
  color: #34445a;
}

#shops .shops-empty-state span {
  margin-top: 7px;
  color: #8a97a8;
  font-size: 12px;
}

@media (max-width: 1250px) {
  #shops .shops-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #shops .shops-hero {
    align-items: flex-start;
    padding: 18px;
  }

  #shops .shops-hero-metrics {
    display: none;
  }

  #shops .shops-toolbar {
    flex-wrap: wrap;
  }

  #shops .shops-toolbar .search-box {
    flex: 1 0 100%;
  }

  #shops .shops-toolbar select,
  #shops .shops-toolbar button {
    flex: 1;
  }

  #shops .shops-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
