.apdhp-dm-sm-wrap { font-family: inherit; margin: 0 0 1.5rem; }
.apdhp-dm-sm-controls {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem;
  background: #f7f8fa; padding: .75rem; border: 1px solid #e5e7eb; border-radius: 8px;
}
.apdhp-dm-sm-controls select {
  flex: 1 1 260px; min-width: 200px; padding: .55rem .75rem;
  border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px; background: #fff;
}
.apdhp-dm-sm-controls select:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.apdhp-dm-sm-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 12px;
}
.apdhp-dm-sm-map {
  width: 100%; min-height: 400px;
  border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb;
}
.apdhp-dm-sm-sidebar {
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.apdhp-dm-sm-sidebar-head {
  padding: .6rem .75rem; background: #f7f8fa; border-bottom: 1px solid #e5e7eb;
  font-weight: 700; color: #111827; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.apdhp-dm-sm-count {
  background: #2563eb; color: #fff; border-radius: 999px;
  padding: 2px 8px; font-size: 12px; font-weight: 600;
}
.apdhp-dm-sm-list {
  list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1;
}
.apdhp-dm-sm-item {
  padding: .6rem .75rem; border-bottom: 1px solid #f1f3f5; cursor: pointer;
  transition: background .12s;
}
.apdhp-dm-sm-item:hover { background: #f3f6ff; }
.apdhp-dm-sm-item.is-active { background: #e0edff; border-left: 3px solid #2563eb; padding-left: calc(.75rem - 3px); }
.apdhp-dm-sm-item-name { font-weight: 700; color: #111827; font-size: 14px; line-height: 1.35; }
.apdhp-dm-sm-item-meta { color: #6b7280; font-size: 12px; margin-top: 2px; }
.apdhp-dm-sm-empty { padding: 1rem; text-align: center; color: #6b7280; }

.apdhp-dm-sm-popup { min-width: 240px; font-size: 14px; line-height: 1.55; }
.apdhp-dm-sm-popup h4 { margin: 0 0 .4rem; font-size: 15px; color: #111827; font-weight: 700; }
.apdhp-dm-sm-popup p { margin: .15rem 0; color: #374151; font-weight: 400; }
.apdhp-dm-sm-popup p .lbl { font-weight: 400; color: #6b7280; }
.apdhp-dm-sm-popup .apdhp-dm-sm-dir {
  display: inline-block; margin-top: .6rem; padding: .4rem .8rem;
  background: #2563eb; color: #fff !important; text-decoration: none;
  border-radius: 5px; font-weight: 600; font-size: 13px;
}
.apdhp-dm-sm-popup .apdhp-dm-sm-dir:hover { background: #1d4ed8; }
.apdhp-dm-sm-icon {
  background: #2563eb; border: 2px solid #fff; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); color: #fff;
}
optgroup { font-style: normal; font-weight: 700; color: #1f2937; }

@media (max-width: 820px) {
  .apdhp-dm-sm-layout { grid-template-columns: 1fr; }
  .apdhp-dm-sm-sidebar { max-height: 340px; }
}
@media (max-width: 600px) {
  .apdhp-dm-sm-controls { flex-direction: column; }
  .apdhp-dm-sm-controls select { flex: 1 1 100%; }
}
