.points-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    user-select: none;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    color: #535c69;
    font-size: 12px;
    gap: 8px;
    width: 90%;
}

.points-list-item.alert {
    border-color: red;
}

.points-list-item.dragging {
    cursor: grabbing;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #c5e7f4;
    border-color: #aee0f2;
}

.points-list-item__number {
    flex: 0 0 auto;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    font-size: 11px;
    color: #444;
}

.points-list-item__text {
    flex: 1 1 auto;
    font-size: 12px;
    color: #333;
    /* Чтобы текст не уходил на новую строку */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 85%;
}

.points-list-item__icon__container {
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.points-list-item:hover .points-list-item__icon__container {
    opacity: 1;
}

.points-list-item__icon__img {
    width: 0.9rem;
    height: 0.9rem;
}

/* Стилизуем метку с номером точки */
.route-waypoint-icon-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 6px;
    min-width: 20px;
    min-height: 20px;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    margin-right: 6px;
}

.route-waypoint-icon-view::before {
    content: attr(data-icon);
    position: absolute;
    font-size: 12px;
}

div.crm-block {
    background-color: #f0f8ff; /* светло-голубой фон */
    border: 1px solid #87ceeb; /* голубая рамка */
    padding: 15px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    color: #004c99; /* темно-голубой текст */
    box-sizing: border-box;
}

div.crm-block input[type="number"] {
    background-color: #e6f7ff; /* более светлый голубой фон для инпута */
    border: 1px solid #add8e6; /* светло-голубая рамка */
    padding: 5px 8px;
    border-radius: 3px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #004c99;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

div.crm-block input[type="number"]:focus {
    outline: none;
    border-color: #00bfff; /* ярко-голубая рамка при фокусе */
    box-shadow: 0 0 6px #00bfff;
}

div.crm-block br + div {
    margin-top: 10px; /* отступ перед инпутом */
}

.ymap-pointslist_container {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.item-object {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.item-object-select-all {
    padding-top: 10px;
    padding-bottom: 10px;
}

.checkbox-input {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #2fc6f6f2;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;

}

/* Оформление состояния checked */
.checkbox-input:checked {
    background-color: #2fc6f6f2;
    border-color: #2fc6f6f2;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.checkbox-input:disabled {
    border-color: #b6b6b6f2;
}.marker-container {
    display: flex;
    flex-direction: column;
}

.canvas {
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    display: none;
}

.addPointsButton {
    height: 3rem;
    width: 10rem;
    border-radius: 8px;
    background-color: #19f536;
    cursor: pointer;
    box-shadow: 0px 2px 4px 0px #5f698333;
    border: unset;
    color: white;
    font-weight: bold;
    font-size: large;
}

.addPointsButton.active,
.addPointsButton:hover {
    background-color: white;
    color: #535c69;
}

.deletePointsButton {
    height: 3rem;
    width: 10rem;
    border-radius: 8px;
    background-color: #f54819;
    cursor: pointer;
    box-shadow: 0px 2px 4px 0px #5f698333;
    border: unset;
    color: white;
    font-weight: bold;
    font-size: large;
}

.draw-button {
    color: white;
    height: 3rem;
    width: 10rem;
    border-radius: 8px;
    background: rgba(47, 198, 246, 0.95);
    cursor: pointer;
    box-shadow: 0px 2px 4px 0px #5f698333;
    border: unset;
    font-weight: bold;
    font-size: large;
}
.draw-button.active,
.draw-button:hover {
    background-color: #122db2;

}
.deletePointsButton.active,
.deletePointsButton:hover {
    background-color: white;
    color: #535c69;
}

.custom-marker {
    display: flex;
    flex-direction: column;
    text-align: center;
    transform: translateY(-100%); /* чтобы иконка смотрелась как маркер */
    cursor: pointer;
}

.svg-picture {

}

.marker-label {
}

.number-label{
    cursor: default;
    background: black;
    color: white;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20%;
    border: 3px solid white;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.custom-marker-grey > .text-label {
    position: absolute;
    max-width: 250px;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 0.4rem 0.7rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    /*white-space: nowrap;*/
}

.custom-marker-grey:hover > .text-label {
    opacity: 1;
    visibility: visible;
}

.custom-marker:hover > .text-label {
    opacity: 1;
    visibility: visible;
}

.custom-marker > .text-label {
    width: 100px;
    position: absolute;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.4rem 0.7rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /*white-space: nowrap;*/
}

.svg-picture:hover .text-label {
    opacity: 1;
    visibility: visible;
}


.ymap-container-controll_center {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 38rem; /* чуть уже для удобства */
    max-height: 40rem;
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* позиционирование убрал, если надо вернуть - скажи */
}

/* Кастомный скроллбар с закруглениями */
.ymap-container-controll_center::-webkit-scrollbar {
    width: 8px;
}

.ymap-container-controll_center::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.ymap-container-controll_center::-webkit-scrollbar-thumb {
    background: #87ceeb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.ymap-container-controll_center::-webkit-scrollbar-thumb:hover {
    background: #00bfff;
}

/* Для Firefox */
.ymap-container-controll_center {
    scrollbar-width: thin;
    scrollbar-color: #87ceeb #f1f1f1;
}

.ymaps3x0--controls_right {
  align-items: flex-end;
  right: 0;
}

.points-list .ymap-container-controll_center {
    width: 400px;
}


/*.marker-container::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: -10px; !* Расположение треугольника под маркером *!*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 0;*/
/*    height: 0;*/
/*    border-left: 10px solid transparent;*/
/*    border-right: 10px solid transparent;*/
/*    border-top: 10px solid #ff6347; !* Цвет треугольника, совпадающий с фоном маркера *!*/
/*}*/

.ymap-inputfield_container {
    display: flex;
    flex-direction: row;
    height: var(--ui-field-size);
}

.ymap-inputfield_input {
    border-spacing: 0;
    overflow: hidden;
    box-sizing: border-box;
    flex: 7;
    outline: none;
    border: 1px solid rgb(var(--ui-field-color-border-default));
    border-radius: var(--ui-border-radius-2xs);
    background-color: var(--ui-color-palette-white-base);
    color: var(--ui-color-palette-black-base);
    height: 100%;
    vertical-align: middle;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 400 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    transition: border .3s ease, background-color .3s ease, color .3s ease, padding .3s ease;

}

.ymap-inputfield_input:focus {
    outline: none;
    border-color: var(--ui-field-color-primary);
    color: #535c69;
}

.ymap-inputfield_clear {
    min-width: 2.5rem;
    max-width: 7rem;
    border: 1px solid rgb(var(--ui-field-color-border-default));
    /*border-left: 0;*/
    border-top-right-radius: var(--ui-border-radius-2xs);
    border-bottom-right-radius: var(--ui-border-radius-2xs);
    background-color: var(--ui-color-palette-white-base);
    color: var(--ui-color-palette-black-base);
    vertical-align: middle;
    align-content: center;
    text-align: center;
    font: 400 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    cursor: pointer;
}

.ymap-inputfield_clear:hover {
    background-color: var(--ui-field-color-primary-light);
}

.ymap-inputfield_container:hover .ymap-inputfield_input,
.ymap-inputfield_container:hover .ymap-inputfield_clear {
    border-color: var(--ui-field-color-primary);
}

.ymap-buttonspanel_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}.ymap-selector_container{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ymap-selector_container-selected{
    flex: 2
}

.ymap-selector_container-change {
    height: 100%;
    width: 100%;
    display: flex;
    /* text-align: center; */
    align-items: center;
    /* vertical-align: middle; */
    text-decoration: underline dotted;
    justify-content: flex-start;
    cursor: pointer;
    flex: 1;
}

.ymap-search_data{
    display: flex;
    gap: 0.1rem;
    flex-direction: column;
}

.points-list-item.ymap-search_data-item {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: var(--ui-field-size);
    background-color: white;
    padding: 0px 8px;
}

.ymap-selector_container-change {
    cursor: pointer; /* Добавляем указатель мыши для интерактивности */
    padding: 8px 12px; /* Внутренний отступ */
    border-radius: 4px; /* Скругленные углы */
}

.ymap-popup_container {
    position: absolute;
    padding: 1rem;
    left: 0;
    top: 3rem;
    border: 1px solid #ccc;
    background-color: white;
    width: calc(100% - 35.5px);
    max-width: calc(100% - 35.5px);
    max-height: 20rem;
    z-index: 1000;
}

.ymap-popup_content {
    max-height: calc(20rem - 1rem);
    overflow-y: auto;
}
input[type="text"],
input[type="datetime-local"],
input[type="number"],
input[type="time"] {
    width: 95%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.result-section {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.result-item {
    margin-bottom: 5px;
    font-size: 12px;
    color: #333;
}

.container {
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 5px;
}

.ymap-container-controll_bottom {
    z-index: 9999;    
}.ymap-cycle_selector-change {
    display: flex;
    align-items: center; /* Выравнивание по центру вертикально */
    margin-bottom: 2%;
    justify-content: space-between;
}

.ymap-cycle-change {
    display: flex;
    align-items: center; /* Выравнивание чекбокса и текста по центру */
}

.ymap-cycle-change input[type="checkbox"] {
    margin-right: 8px; /* Отступ между чекбоксом и текстом */
}

.text-strikethrough {
    text-decoration: line-through; /* Зачёркиваем текст */
    color: #ccc; /* Необязательно: делаем текст серым, чтобы показать неактивность */
}
.flipButton {
    height: 2rem;
    width: 7rem;
    background: rgba(47, 198, 246, 0.95);
    border-radius: 10px;
    color: white;
    font-weight: bolder;
}/* Контейнер внутри сайд-панели (в Bitrix24, например) */
/*.side-panel-content-container {*/
/*    overflow: hidden;*/
/*}*/

body {
    padding: 0;
    margin: 0;
}

/* Основной контейнер — на всю ширину и высоту */
.ymap-container-main {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
}

/* Карта */
/*.ymap-container-map {*/
/*    width: 70%;*/
/*    height: 100%;*/
/*    padding: 0.5rem;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 5px;*/
/*    box-sizing: border-box;*/
/*}*/

/* Правая панель */
.ymap-container-controll {
    /*width: 30%;
    height: 100%;*/
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    box-shadow: -1px -1px 5px 0 black;
    overflow: hidden;
    box-sizing: border-box;
    position: absolute;
    right: 15px;
    bottom: 35px;    
}

/* Верхняя часть правой панели — скроллируемая */
.ymap-container-controll_top {
    /*display: flex;
    flex-direction: column;*/
    overflow-y: auto;
    gap: 0.5rem;
    display: none;
}

/* Метки (labels) */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}
.ymap-container-controll_bottom {
    flex: 0 0 auto;
    padding: 10px;
    border: 1px solid #80868e;
    background-color: #f8f9f9;
    border-radius: 4px;
    box-sizing: border-box;
    width: 410px;
}


.ymap-container-main h1,h2,h3,h4,h5,h6{
    margin: 1rem 0rem 0rem 0rem;
}

.result-item span {
    font-weight: bold;
}

/* Общие стили для внутренних компонентов */
/*.ymap-inputspanel_container {*/
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/
/*.ymap-buttonspanel_container {*/
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 0.5rem;*/
/*}*/

/*.ymap-pointslist_container {*/
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 0.5rem;*/
/*    overflow-y: auto;*/
/*}*/


/* UI-кнопки — сброс левого отступа */
.ui-btn + .ui-btn {
    margin-left: 0;
}

/*!* Пустой результат *!*/
/*.ymap-notfound_container {*/
/*    padding: 0.5rem 1rem 1rem 0.5rem;*/
/*}*/

/* Инфо-секция (если есть) */
/*.ymap-container-controll_info {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 0.5rem;*/
/*    font-weight: bold;*/
/*    color: #535c69;*/
/*}*/
