html,
body {
    font-family: sans-serif;
    width: 100%;
}

#map {
    height: calc(100vh - 125px);
    width: 100%;
}

#logo {
    left: 5px;
    top: 5px;
    height: 50px;
}

.btn-search-crumb {
    font-size: 12px;
    padding: 10px 10px;
}

.btn-search-crumb i {
    margin-left: 5px;
}

.legend-menu {
    width: 300px !important;
}

.legend-menu .list-group {
    max-height: 500px !important;
    overflow: auto;
}

.legend-menu .legend-container {
    max-height: 400px !important;
    overflow: auto;
    font-size: 12px;
}


#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(91, 91, 91, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    color: white;
    display: none;
    /* скрыт по умолчанию */
}

.leaflet-sbs-divider {
    z-index: 990 !important;
}

.leaflet-grab {
    cursor: default;
}

#opacity-panel {
    color: black;
}

#opacity-panel .custom-panel-body {
    overflow-y: auto;
    max-height: 400px;
}

#opacity-panel img {
    padding-right: 5px;
}

#opacity-panel li.list-group-item {
    padding: 10px 10px 10px 20px;
}

#opacity-panel li.list-group-item.layer-name {
    padding: 10px 10px 10px 10px;
    /*font-size: larger;*/
    background-color: aliceblue;
    font-weight: bold;
}

#opacity-panel .range-opacity {
    display: inline-block;
    width: 200px;
    padding-top: 10px;
}

.main-opacity-menu {
    width: 200px;
    /* top: auto !important;
    bottom: 100% !important;
    margin-bottom: .125rem; */

    inset: auto 0px 0px auto !important; 
    transform: translate3d(-41.6px, -0.8px, 0px) !important;
}

#services-button-container {
    position: absolute;
    top: 80px;
    right: 15px;
    z-index: 999;
}

#btn-services {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-weight: 500;
}

#btn-services:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Стили для модального окна личного кабинета */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

/* Уменьшенные отступы для заголовка модального окна */
.modal-fullscreen .modal-header {
    padding: 10px 15px;
}

/* Панель инструментов */
.toolbar-panel {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Таблица услуг */
#servicesTable {
    font-size: 14px;
}

#servicesTable th {
    font-weight: 600;
    background-color: #343a40;
    color: white;
}

#servicesTable td {
    vertical-align: middle;
}

/* Прогресс-бар шагов */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step.active .step-number {
    background-color: #007bff;
    color: white;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

/* Стили для шагов заказа */
.step-content {
    min-height: 200px;
}

/* Стили для фильтра услуг */
#serviceFilter {
    min-width: 300px;
    flex: 1;
    max-width: none;
}

/* Стили для контейнера фильтра */
.toolbar-panel .d-flex {
    width: 100%;
}

/* Стили для контейнера фильтра в панели инструментов */
.toolbar-panel .flex-grow-1 {
    flex: 1;
    min-width: 0;
}

/* Стили для статусов */
.badge {
    font-size: 12px;
    padding: 6px 10px;
}

.badge i {
    margin-right: 4px;
}

/* Стили для ссылок документов */
#servicesTable a {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
}

#servicesTable a:hover {
    text-decoration: underline;
}

/* Стили для кнопок скачивания */
#servicesTable .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Стили для кнопок управления картой */
.map-controls {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1000;
}

.map-controls-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Центрирование иконок в кнопках управления картой */
.map-control-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Исправление для Bootstrap Icons */
.map-control-btn .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Исправление округлой правой границы для кнопок в btn-group dropstart */
.btn-group.dropstart .map-control-btn {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.map-control-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    color: #212529;
}

.map-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.map-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .map-controls {
        right: 10px;
    }

    .map-control-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .map-control-btn i {
        font-size: 16px;
    }
}

.main-opacity-container {}

.opacity-layer {
    width: 180px;
}

.side-range-opacity {
    padding-right: 10px !important;
}

#map-service {
    height: calc(100vh - 50px);
    width: 100%;
}