/* bills_docmerge: пиктограмма списка файлов рядом со слитой ссылкой
   в таймлайне карточки ОРВ. Нативный <details> — без JS. */

/* Ссылка + пиктограмма на одной строке (тема делает ссылки блочными). */
.bdm-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bdm-files {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.bdm-files > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.bdm-files > summary::-webkit-details-marker {
  display: none;
}

.bdm-files > summary:hover,
.bdm-files[open] > summary {
  background-color: rgba(13, 110, 253, .1);
  color: #0d6efd;
}

.bdm-files-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 300px;
  max-width: 480px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.bdm-file {
  display: block;
  padding: 10px 14px;
  color: #212529;
  text-decoration: none;
  word-break: break-word;
  line-height: 1.35;
}

.bdm-file:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  text-decoration: none;
}

/* Горизонтальный пунктир между элементами (не после последнего). */
.bdm-file + .bdm-file {
  border-top: 1px dashed #ced4da;
}
