.dropdown-menu {
  z-index: 3000 !important; /* 高于固定表头 */
}

.dropdown-item {
  font-size: smaller;
}

.btn-close-s {
  width: 0.75rem; /* 调整宽度 */
  height: 0.75rem; /* 调整高度 */
  padding: 0; /* 去掉内边距 */
  font-size: 0.6rem; /* 调整图标大小 */
}
.gfm-dropdown-menu-responsive {
  min-width: max-content; 
  padding-right: 0.5rem;
}

.gfm-dropdown-item-icon {
  width: 10px;
  text-align: end;
}

.gfm-dropdown-item-text {
  text-align: start;
  padding-left: 1rem;
}

.hm-fixed-fill {
  min-height: 500px;
  max-height: calc(100vh - 50px);
  overflow-x: hidden;
  position: relative;
}

.hm-left-block,
.hm-mid-block,
.hm-right-block {
  height: calc(100vh - 100px);
  overflow-y: auto;
  word-wrap: normal;
  position: relative; /* 为伪元素定位做准备 */
}

.hm-left-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 10px; /* 分隔线高度，可根据需要调整 */
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.03));
  z-index: 10; /* 确保在内容之上 */
}
.hm-left-block {
  min-width: 150px;
}

.hm-right-block {
  min-width: 200px;
}

[data-hm-toggle-block].active {
  color: white;
  background-color: black; /* Bootstrap主色调 */
}

textarea {
  white-space: pre-wrap;
}

.icon-wrapper {
  display: inline-flex;
  width: 1em;
  justify-content: center;
  margin-right: 0.2em;
}

.collapse-toggle .icon-plus,
.collapse-toggle .icon-minus {
  display: inline-flex;
  justify-content: left;
  align-items: center;
  margin: 0;
}
.collapse-toggle .icon-minus { display: none; }
.collapse-toggle:not(.collapsed) .icon-plus { display: none; }
.collapse-toggle:not(.collapsed) .icon-minus { display: inline-flex; }

.hm-paragraph {
  text-indent: 2em;
  margin-bottom: 1em;
  text-align: justify;  /* 添加两端对齐 */
}

@media (max-width: 576px) {
  .gfm-fixed-fill {
    min-height: 300px;
    max-height: calc(100vh - 250px);
  }
  .gfm-independent-scroll {
    height: calc(100vh - 300px);
  }
}

@media (max-width: 991.98px) {
  .modal-dialog.modal-fullscreen-lg-down {
    margin: 0;
    height: 100vh;
  }

  .modal-dialog.modal-fullscreen-lg-down .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bs-modal-bg);
  }

  .modal-dialog.modal-fullscreen-lg-down .modal-content > form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: var(--bs-modal-bg);
  }

  .modal-dialog.modal-fullscreen-lg-down .modal-footer {
    flex-shrink: 0;
    background-color: var(--bs-modal-bg);
  }
}
