.system__modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.system__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 7px 1px rgba(0,0,0,.5);
    z-index: 2;
    border-radius: 10px 10px 0 0;
}

.system__modal_title {
    padding: 10px;
    background: #EDF2F7;
    border-bottom: 1px solid #BFBFBF;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px !important;
    color: #003681;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

.system__modal_body {
    padding: 10px 10px 10px 10px;
    background: white;
    max-height: 80vh;
    overflow-y: auto;
}

.system__modal_footer {
    border-top: 1px solid #BFBFBF;
    padding: 5px;
    background: #EDF2F7;
    display: flex;
    justify-content: space-between;
}

.system__modal_footer-button {
    border: 1px solid #BFBFBF;
    padding: 7px;
    text-align: center;
    min-width: 100px;
    font-weight: bold;
    background: #f1f1f1;
}

.system__modal_footer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.text-wrapper {
    max-width: 25rem; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
}
.text-wrapper .text-container {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}
.text-wrapper .more-link {
    display: none;
}
.text-wrapper .text-container.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.interactive-block .hover-effect {
    opacity: 0; /* Изначально элемент прозрачный */
    filter: blur(5px); /* Применяем размытие */
    visibility: hidden; /* Элемент невидим и не интерактивен */
    pointer-events: none; /* Отключаем взаимодействие с элементом */
    transition: opacity 0.3s ease, filter 0.3s ease, visibility 0s linear 0.3s; /* Переходы с задержкой для visibility */
}

.interactive-block:is(:hover, :focus) .hover-effect {
    opacity: 0.8; /* Частично прозрачный при наведении */
    filter: blur(0); /* Убираем размытие */
    visibility: visible; /* Делаем элемент видимым */
    pointer-events: auto; /* Включаем взаимодействие с элементом */
    transition: opacity 0.3s ease, filter 0.3s ease, visibility 0s linear; /* Переход для visibility без задержки */
}

/* По умолчанию: ширина 100% */
#srv-admin-panel {
  width: 100%;
}

/* На экранах от 768px и больше: высота 100% */
@media (min-width: 768px) {
  #srv-admin-panel {
    width: auto;
    height: 100%;
  }
}

.render-markdown-header a {
	display: none;
}

.render-markdown-header:hover a {
	display: inline;
}