.settings-nav-top {
    position: sticky;
    top: 0;
    background: white;
    padding: 5px 0;
    border-bottom: 2px solid #e0e0e0;
    z-index: 9;
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}
.settings-nav-bottom {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    border-top: 2px solid #e0e0e0;
    z-index: 9;
    display: flex;
    justify-content: space-around;
    margin-top: 15px; 
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.options-block {
    margin-top: 15px;
    margin-bottom: 10px;
}
.options-subblock {
    margin-top: 10px;
    margin-bottom: 8px;
}
.radio-group {
    margin-bottom: 8px;
}

.checkbox-columns {
  column-count: 2;           
  column-gap: 25px;          
  -webkit-column-count: 2;   /* для старых браузеров */
  -moz-column-count: 2;
}

.checkbox-columns label {
  display: block;            
  break-inside: avoid;       
}

@media (max-width: 719px) {
  .checkbox-columns {
    column-count: 1;
    column-gap: 0;
  }
}

/* Добавляем отступ для якорных ссылок, чтобы навигационная панель не перекрывала заголовки */
div[id] {
    scroll-margin-top: 45px;
}

.settings-string {
    cursor: pointer; 
    margin-bottom: 2px;
}
.settings-string input {
    position: relative;
    vertical-align: baseline;
    top: 2px;
    margin-top: 2px;
}
.settings-string input[type="radio"] {
    margin: 0px;
}

.settings-string select {
    position: relative;
    vertical-align: baseline;
    margin-bottom: 5px;
}

.ui-state-highlight {
    width: 185px;
    height: 60px;
    border: 2px dashed #aaa;
    margin-bottom: 5px;
}
#new_main_blocks_container {
    display: flex; 
    flex-wrap: wrap;
}
#deleted_main_blocks {
    background: #eee;
}
.connectedSortableSettings {
    width: 195px; 
    min-height: 195px; 
    margin-right: 5px; 
    padding: 4px;
    border: dotted 1px lightblue;
}
.lego-item-settings {
    width: 185px;
    height: 60px;
    border: 1px solid #999;
    margin-bottom: 5px;
    padding: 5px;
    padding-left: 90px;
    background-size: auto auto;
    color: blue;
    font-weight: bold;
    cursor: move;
}
.lego-item-settings.main-block-1 {
    background: url(/img/fl_news.svg) left center no-repeat;
    background-position: 15px 1px; 
}
.lego-item-settings.main-block-2 {
    background: url(/img/fl_pubnews.svg) left center no-repeat;
    background-position: 0px 1px; 
}
.lego-item-settings.main-block-3 {
    background: url(/img/fl_responses.svg) left center no-repeat;
    background-position: 0px 1px; 
}
.lego-item-settings.main-block-4 {
    background: url(/img/fl_forum.svg) left center no-repeat;
    background-position: 10px center; 
}
.lego-item-settings.main-block-5 {
    background: url(/img/fl_stat.svg) left center no-repeat;
    background-position: 0px 1px;
}
.lego-item-settings.main-block-6 {
    background: url(/img/fl_blog.svg) left center no-repeat;
    background-position: 15px 1px; 
}

.settings-anchor-highlight {
    outline: 3px solid orange;
    outline-offset: 4px;
    border-radius: 4px;
    transition: outline-color 1s;
}