.dsp-peak-contact-workspace {
  margin: 0 0 14px;
  border: 1px solid #cfe2d7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.dsp-peak-contact-workspace > summary {
  min-height: 82px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  background: #f7fbf9;
}

.dsp-peak-contact-workspace > summary::-webkit-details-marker {
  display: none;
}

.dsp-peak-contact-workspace > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.dsp-peak-contact-workspace > summary strong {
  color: #133a2f;
  font-size: 18px;
  font-weight: 600;
}

.dsp-peak-contact-workspace > summary small,
.dsp-peak-contact-workspace > summary em,
.dsp-peak-contact-body > p {
  color: #688078;
  font-style: normal;
  font-size: 12px;
}

.dsp-peak-contact-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.dsp-peak-contact-summary b {
  color: #087d59;
  font-size: 13px;
}

.dsp-peak-contact-summary em {
  padding: 8px 11px;
  border: 1px solid #c8ded4;
  border-radius: 6px;
  color: #087d59 !important;
}

.dsp-peak-contact-body {
  padding: 16px 18px 18px;
  border-top: 1px solid #dceae3;
}

.dsp-peak-contact-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.dsp-peak-contact-overview > span {
  min-height: 65px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid #e0ebe5;
  border-radius: 6px;
  background: #fbfdfc;
}

.dsp-peak-contact-overview small {
  color: #74877f;
  font-size: 11px;
}

.dsp-peak-contact-overview b {
  color: #173f33;
  font-size: 16px;
  font-weight: 600;
}

.dsp-peak-contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.dsp-peak-contact-form label {
  display: grid;
  gap: 6px;
  color: #425c53;
  font-size: 12px;
}

.dsp-peak-contact-form input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #c9dbd2;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}

.dsp-peak-contact-form .dsp-primary-button {
  min-height: 42px;
  padding: 0 17px;
}

.dsp-hs-map-section {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.dsp-hs-map-heading {
  align-items: flex-start !important;
}

.dsp-hs-map-heading h2 {
  margin-bottom: 2px !important;
}

.dsp-hs-map-heading small {
  color: #6c8179;
  font-size: 12px;
}

.dsp-hs-map-kpis {
  display: flex;
  gap: 8px;
}

.dsp-hs-map-kpis span {
  min-width: 118px;
  padding: 8px 10px;
  border: 1px solid #dce9e3;
  border-radius: 6px;
  background: #f8fbf9;
  color: #61776f;
  font-size: 11px;
  text-align: right;
}

.dsp-hs-map-kpis b {
  display: block;
  color: #087c58;
  font-size: 17px;
  font-weight: 600;
}

.dsp-hs-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .72fr);
  align-items: start;
  gap: 12px;
}

.dsp-hs-map-canvas {
  position: relative;
  height: 450px;
  border: 1px solid #d6e5dd;
  border-radius: 8px;
  background-color: #f4f8f5;
  background-image:
    linear-gradient(rgba(37, 91, 70, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 91, 70, .035) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.dsp-hs-map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dsp-map-regions path {
  stroke: #fff;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transition: fill .18s ease, stroke .18s ease, filter .18s ease;
  fill-rule: evenodd;
}

.dsp-map-regions path:hover,
.dsp-map-regions path:focus,
.dsp-map-regions path.is-active {
  stroke: #143d31;
  stroke-width: 2.4;
  filter: brightness(1.03);
}

.dsp-map-labels {
  pointer-events: none;
}

.dsp-map-labels text {
  fill: #274a3f;
  font-family: Prompt, sans-serif;
  font-size: 8.2px;
  font-weight: 500;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .88);
  stroke-width: 2.3px;
  stroke-linejoin: round;
}

.dsp-map-markers circle {
  fill: #139a68;
  stroke: #fff;
  stroke-width: 2.2px;
  cursor: pointer;
  outline: none;
  filter: drop-shadow(0 2px 2px rgba(17, 50, 40, .2));
  transition: r .16s ease, fill .16s ease;
}

.dsp-map-markers circle.is-idle {
  fill: #aab9b3;
}

.dsp-map-markers circle.is-member {
  stroke: #ffcf45;
  stroke-width: 2.8px;
}

.dsp-map-markers circle:hover,
.dsp-map-markers circle:focus {
  r: 7px;
  fill: #202f2a;
}

.dsp-hs-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #587168;
  font-size: 13px;
  background: #f4f8f5;
}

.dsp-hs-map-loading[hidden] {
  display: none;
}

.dsp-hs-map-legend {
  position: absolute;
  left: 12px;
  bottom: 11px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto 82px auto auto;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(194, 216, 205, .9);
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #667c74;
  font-size: 9px;
}

.dsp-hs-map-legend i {
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e7f0eb, #14a553);
}

.dsp-hs-map-insight {
  height: 450px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6e5dd;
  border-radius: 8px;
  background: #fbfdfc;
}

.dsp-hs-map-insight-top {
  flex: 0 0 auto;
}

.dsp-hs-map-salespeople {
  min-height: 42px;
  margin: 0 0 9px;
  display: grid;
  gap: 5px;
}

.dsp-hs-map-salespeople > small {
  color: #789087;
  font-size: 9px;
  font-weight: 500;
}

.dsp-hs-map-salespeople > span {
  color: #82928c;
  font-size: 10px;
}

.dsp-hs-map-salespeople > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dsp-hs-map-salespeople > div > span {
  min-width: 0;
  padding: 3px 7px 3px 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce9e3;
  border-radius: 999px;
  background: #fff;
}

.dsp-hs-map-salespeople img,
.dsp-hs-map-salespeople i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  border-radius: 50%;
  object-fit: cover;
  background: #dff3e9;
  color: #087d59;
  font-size: 10px;
  font-style: normal;
}

.dsp-hs-map-salespeople b {
  max-width: 130px;
  overflow: hidden;
  color: #24483b;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsp-hs-map-insight h3 {
  margin: 4px 0 2px;
  color: #123d30;
  font-size: 20px;
  font-weight: 600;
}

.dsp-hs-map-insight-top > div:last-child > p {
  min-height: 34px;
  margin: 0 0 12px;
  color: #72867e;
  font-size: 11px;
}

.dsp-hs-map-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  flex: 0 0 auto;
  margin-bottom: 9px;
}

.dsp-hs-map-insight-grid span {
  min-height: 54px;
  padding: 9px 10px;
  display: grid;
  align-content: center;
  border: 1px solid #e0ebe5;
  border-radius: 6px;
  background: #fff;
}

.dsp-hs-map-insight-grid small {
  color: #7d8f88;
  font-size: 10px;
}

.dsp-hs-map-insight-grid b {
  margin-top: 2px;
  color: #103c2f;
  font-size: 14px;
  font-weight: 600;
}

.dsp-hs-map-insight-grid .dsp-hs-map-buying-ratio {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dsp-hs-map-buying-ratio > i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(#139a68 0 var(--buying-ratio, 0deg), #dfe7e3 var(--buying-ratio, 0deg) 360deg);
  box-shadow: inset 0 0 0 8px #fff;
}

.dsp-hs-map-buying-ratio > em {
  min-width: 0;
  display: grid;
  font-style: normal;
}

.dsp-hs-map-top-shops {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dsp-hs-map-top-shops > p {
  margin: 8px 0 0;
  color: #7a8c85;
  font-size: 11px;
}

.dsp-hs-map-top-shops article {
  min-height: 49px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5eee9;
}

.dsp-hs-map-top-shops article i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f4ec;
  color: #087d59;
  font-size: 10px;
  font-style: normal;
}

.dsp-hs-map-top-shops article span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dsp-hs-map-top-shops article b {
  overflow: hidden;
  color: #263e36;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsp-hs-map-top-shops article small,
.dsp-hs-map-top-shops article em {
  color: #768a82;
  font-size: 9px;
  font-style: normal;
}

.dsp-hs-map-top-shops article > em {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e6f6ee;
  color: #087d59;
  white-space: nowrap;
}

.dsp-hs-map-top-shops article.is-idle > em {
  background: #edf1ef;
  color: #74837d;
}

.dsp-sales-district-picker {
  border: 1px solid #dce8e2;
  border-radius: 6px;
  background: #f9fbfa;
}

.dsp-sales-district-picker > summary {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.dsp-sales-district-picker > summary b {
  color: #087d59;
  font-size: 11px;
}

.dsp-sales-district-picker > div {
  max-height: 190px;
  padding: 8px 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  overflow-y: auto;
  border-top: 1px solid #e2ece7;
}

.dsp-sales-district-picker > div label {
  min-width: 0;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
  font-size: 12px;
}

.dsp-sales-district-picker input {
  margin: 0;
}

.dsp-hs-map-note,
.dsp-hs-map-source {
  display: block;
  margin: 9px 0 0;
  color: #7a8d85;
  font-size: 10px;
}

.dsp-hs-shops-table-card {
  padding: 0 !important;
  overflow: hidden;
}

.dsp-hs-shops-table-card > summary {
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

.dsp-hs-shops-table-card > summary::-webkit-details-marker {
  display: none;
}

.dsp-hs-shops-table-card > summary .dsp-section-heading {
  width: 100%;
  margin: 0 !important;
}

.dsp-hs-shops-table-card > summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #087d59;
  stroke-width: 2;
  transition: transform .18s ease;
}

.dsp-hs-shops-table-card[open] > summary svg {
  transform: rotate(180deg);
}

.dsp-hs-shops-table-card > .dsp-hs-table-wrap {
  border-top: 1px solid #dce9e3;
}

@media (max-width: 900px) {
  .dsp-hs-map-layout {
    grid-template-columns: 1fr;
  }

  .dsp-hs-map-insight {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  .dsp-peak-contact-workspace > summary,
  .dsp-peak-contact-body,
  .dsp-hs-map-section {
    padding: 13px;
  }

  .dsp-peak-contact-workspace > summary {
    align-items: flex-start;
  }

  .dsp-peak-contact-summary {
    display: grid;
    justify-items: end;
    gap: 5px;
  }

  .dsp-peak-contact-overview {
    grid-template-columns: 1fr;
  }

  .dsp-peak-contact-form {
    grid-template-columns: 1fr;
  }

  .dsp-hs-map-heading {
    display: grid !important;
    gap: 10px;
  }

  .dsp-hs-map-kpis {
    width: 100%;
  }

  .dsp-hs-map-kpis span {
    min-width: 0;
    flex: 1;
    text-align: left;
  }

  .dsp-hs-map-canvas,
  .dsp-hs-map-canvas svg {
    height: 340px;
    min-height: 0;
  }

  .dsp-map-labels text {
    font-size: 6.8px;
  }

  .dsp-hs-map-legend {
    grid-template-columns: auto 60px auto auto;
  }

  .dsp-hs-map-top-shops {
    max-height: 230px;
  }
}

@media print {
  .dsp-hs-map-section {
    display: none !important;
  }
}
