.cdxves__form{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin-bottom:1rem}
.cdxves__form label{display:flex;flex-direction:column;font-size:.85rem;gap:.25rem}
.cdxves__scroll{overflow-x:auto}
.cdxves__table{width:100%;border-collapse:collapse;font-size:.92rem}
.cdxves__table th,.cdxves__table td{padding:.45rem .6rem;border-bottom:1px solid #e3e8e5;text-align:left;white-space:nowrap}
.cdxves__table a{text-decoration:none;border-bottom:1px dotted currentColor}
.cdxves__pager{display:flex;gap:.5rem;margin:1rem 0;flex-wrap:wrap}
.cdxves__pager button{padding:.3rem .7rem}
.cdxves__map{height:380px;border-radius:8px}
.cdxves__hint,.cdxves__note,.cdxves__status{font-size:.8rem;color:#6b7a72}
.cdxves__route{white-space:normal!important;line-height:1.9}.cdxves__chip{display:inline-block;background:#eef5f1;border-radius:12px;padding:0 .55rem;font-size:.85rem}
.cdxves__sumtable td,.cdxves__sumtable th{white-space:normal}
.cdxves__form{align-items:flex-end}.cdxves__form .ui-select,.cdxves__form .ui-input,.cdxves__go{height:42px;box-sizing:border-box}.cdxves__go{padding:0 1.4rem}.cdxves__switch{flex-direction:row!important;align-items:center;gap:.4rem!important;height:42px;color:#4b5a52}.cdxves__dates[hidden]{display:none}
.cdxves__note-upd{display:flex;gap:.75rem;align-items:center;background:#eef5f1;border-radius:8px;padding:.5rem .9rem;margin-bottom:1rem}

.cdxves__form{align-items:flex-end!important}
.cdxves__form label,.cdxves__col{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;line-height:1.2}
.cdxves__ph{display:block;font-size:.85rem;line-height:1.2}
.cdxves__form .ui-select,.cdxves__form .ui-input,.cdxves__go{height:44px!important;margin:0!important;box-sizing:border-box!important}
.cdxves__go{display:block;padding:0 1.5rem!important;line-height:44px!important}
.cdxves__col .cdxves__switch{flex-direction:row!important;align-items:center;height:44px;margin:0;gap:.4rem}
.cdxves__form>label{flex:1 1 150px;max-width:260px;min-width:0}.cdxves__form .ui-select,.cdxves__form .ui-input{width:100%}

.cdxves__right{display:flex;align-items:center;gap:1rem;margin-left:auto;align-self:flex-end;height:44px}
.cdxves__toggle{flex-direction:row!important;align-items:center;gap:.5rem!important;cursor:pointer;color:#3f4f47;font-size:.85rem;user-select:none;white-space:nowrap}
.cdxves__toggle input{position:absolute;opacity:0;width:0;height:0}
.cdxves__slider{position:relative;width:38px;height:22px;border-radius:11px;background:#c5cfca;transition:background .15s;flex:none}
.cdxves__slider:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.cdxves__toggle input:checked+.cdxves__slider{background:#1f7a4d}
.cdxves__toggle input:checked+.cdxves__slider:after{transform:translateX(16px)}
.cdxves__toggle input:focus-visible+.cdxves__slider{outline:2px solid #1f7a4d;outline-offset:2px}
.cdxves__go{border-radius:6px}

.cdxves__mapwrap{position:relative;z-index:0;isolation:isolate}
.cdxves__map{position:relative;z-index:0;isolation:isolate;height:360px}
.cdxves__routebtn{display:inline-block;padding:.22rem .7rem;font-size:.78rem;line-height:1.3;color:#1f7a4d;background:#fff;border:1px solid #1f7a4d;border-radius:6px;cursor:pointer;white-space:nowrap}
.cdxves__routebtn:hover{background:#1f7a4d;color:#fff}
.cdxves{padding-top:14px!important;padding-bottom:12px!important}
.cdxves .ui-title{margin:0 0 .6rem}
.cdxves .ui-subtitle{font-size:1rem;margin:.6rem 0 .3rem}
.cdxves__form{margin-bottom:.5rem;gap:.6rem}
.cdxves__status{margin:.1rem 0 .2rem}
.cdxves__scroll{border:1px solid #cdd6d1;border-radius:.5rem}
.cdxves__table{font-size:.78rem}
.cdxves__table th,.cdxves__table td{padding:.28rem .5rem;line-height:1.25;border-bottom:1px solid #e3e8e5}
.cdxves__table th{background:#f1f5f3;font-weight:600}
.cdxves__table tbody tr:last-child td{border-bottom:0}
.cdxves__table tbody tr:hover td{background:#f4f9f6}
.cdxves__pager{margin:.5rem 0}
.cdxves__note,.cdxves__hint{margin:.4rem 0 0}
/* выравнивание формы устойчиво к стилям шаблона (отступы у label, высота кнопки) */
.cdxves__form label,.cdxves__form .cdxves__col,.cdxves__form select,.cdxves__form input,.cdxves__form button{margin:0!important}
.cdxves__form{align-items:flex-end!important}
.cdxves__form .cdxves__go{height:44px!important;min-height:0!important;line-height:1!important;padding:0 1.6rem!important;box-sizing:border-box!important;align-self:flex-end}
.cdxves__right{align-self:flex-end;height:44px;margin-bottom:0}

.cdxves__help{margin-top:.75rem;font-size:.85rem}.cdxves__help summary{cursor:pointer;font-weight:600}.cdxves__help p{margin:.35rem 0}.cdxves__line{cursor:help;border-bottom:1px dotted currentColor}
.cdxapp__past{opacity:.55}
.cdxves__arrow span{display:block;width:22px;height:22px;line-height:22px;text-align:center;font-size:18px;color:#1f7a4d;text-shadow:0 0 3px #fff,0 0 3px #fff}
.cdxves__ad{margin-top:1rem;padding:.75rem 1rem;border:1px solid var(--tcts-border,#d9e2dc);border-radius:8px;background:var(--tcts-surface,#f5f9f6);font-size:.9rem}.cdxves__ad a{color:inherit;text-decoration:none;font-weight:600}
.cdxapp__sort th[data-k]{cursor:pointer;white-space:nowrap}.cdxapp__sort th[data-k]::after{content:' \2195';opacity:.35;font-size:.8em}.cdxapp__sort th.is-asc::after{content:' \25B2';opacity:1}.cdxapp__sort th.is-desc::after{content:' \25BC';opacity:1}.cdxapp__filters th{padding:.3rem .5rem;font-weight:400}.cdxapp__filters .ui-input,.cdxapp__filters .ui-select{width:100%;min-width:5rem;height:34px;font-size:.85rem;padding:.2rem .5rem}

/* Modal map */
.cdxves__modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto}
.cdxves__modal[hidden]{display:none}
.cdxves__modalbox{background:#fff;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.25);max-width:1180px;width:100%;padding:16px 18px 18px;position:relative;margin-top:20px}
.cdxves__modalclose{position:absolute;top:8px;right:12px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#555}
.cdxves__modalclose:hover{color:#000}
.cdxves__modal .cdxves__map{border-radius:6px;overflow:hidden}

.cdxves__svgmap{width:100%;height:auto;max-height:540px;background:#e8f4f8;border-radius:8px;display:block}
.cdxves__route{stroke-dasharray:10 5;animation:cdxves-dash 1.2s linear infinite}
@keyframes cdxves-dash{to{stroke-dashoffset:-30}}

.cdxves__mtmap{margin:24px 0 16px}
.cdxves__mtiframe{width:100%;height:480px;border:0;border-radius:8px;background:#e8f4f8}
@media (max-width:700px){.cdxves__mtiframe{height:360px}}

.cdxves__mtfilters{display:flex;gap:8px;margin:8px 0 12px;flex-wrap:wrap}
.cdxves__mtbtn{padding:6px 12px;border:1px solid #ccc;background:#fff;border-radius:6px;cursor:pointer;font-size:13px}
.cdxves__mtbtn.is-active{background:#1f7a4d;color:#fff;border-color:#1f7a4d}

.cdxves__mttrack{margin-top:16px}
.cdxves__modal .cdxves__mtiframe{width:100%;border:0;border-radius:6px;background:#e8f4f8}

/* Подходящие суда: 5-й столбец («Подход») ограничен по ширине, длинный текст переносится; кнопка не обрезается */
.cdxapp .cdxves__table th:nth-child(5),.cdxapp .cdxves__table td:nth-child(5){white-space:normal;width:190px;max-width:190px;min-width:120px}
.cdxapp .cdxves__table td:last-child{white-space:nowrap}
.cdxapp .cdxves__table .cdxves__routebtn{white-space:nowrap}

.cdxapp__dates input[type=date]{display:block;width:100%;min-width:0;margin:0 0 4px;padding:.2rem .3rem;font-size:.75rem}
.cdxapp__pagebar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:10px 0}
.cdxapp__pagebar label{display:flex;gap:6px;align-items:center;font-size:.85rem}
.cdxapp__pagebar .ui-select{width:auto}
.cdxapp__pagebar .cdxves__pager{display:flex;gap:8px;align-items:center;font-size:.85rem}

.cdxapp__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.cdxapp__top .cdxves__status{margin:0}
.cdxapp__pp{display:flex;gap:6px;align-items:center;font-size:.85rem;margin-left:auto}
.cdxapp__pp .ui-select{width:auto}
.cdxapp__sub{color:#6b7280;font-size:12px;line-height:1.3}
.cdxves__ts{display:inline-block;margin-left:.35em;padding:.05em .45em;border-radius:.6em;background:#fff3cd;color:#664d03;font-size:.8em;white-space:nowrap}
@media (prefers-color-scheme:dark){.cdxves__ts{background:#4d3b00;color:#ffe69c}}
.cdxves__tscroll{overflow-x:auto;margin:.6rem 0}
.cdxves__ttable{border-collapse:collapse;width:100%;font-size:.9rem}
.cdxves__ttable th,.cdxves__ttable td{padding:.4rem .6rem;border-bottom:1px solid rgba(0,0,0,.12);text-align:left;white-space:nowrap}
.cdxves__tmuted{opacity:.6}
.cdxves__fit{display:inline-block;padding:.05em .5em;border-radius:.6em;font-size:.85em;white-space:nowrap}
.cdxves__fit--ok{background:#d6f0e0;color:#14532d}.cdxves__fit--tight{background:#fff3cd;color:#664d03}.cdxves__fit--best{background:#1f7a4d;color:#fff}
@media (prefers-color-scheme:dark){.cdxves__fit--ok{background:#14532d;color:#d6f0e0}.cdxves__fit--tight{background:#4d3b00;color:#ffe69c}}

/* Таблица «Расписание»: липкий заголовок, прокрутка внутри блока по высоте экрана, ползунок горизонтальной прокрутки сверху */
.cdxves__scroll--sticky{overflow:auto;max-height:calc(100vh - 150px);min-height:240px}
.cdxves__scroll--sticky::-webkit-scrollbar{width:10px;height:0}
.cdxves__scroll--sticky::-webkit-scrollbar-thumb{background:#b7c4bd;border-radius:6px}
.cdxves__scroll--sticky thead th{position:sticky;top:0;z-index:3;background:#f1f5f3;box-shadow:0 1px 0 #cdd6d1}
.cdxves__topscroll{overflow-x:auto;overflow-y:hidden;height:14px;margin:0 0 2px}
.cdxves__topscroll[hidden]{display:none}
.cdxves__topscroll>div{height:1px}
.cdxves__list{width:100%;table-layout:auto}
.cdxves__list th,.cdxves__list td{white-space:normal;vertical-align:top;padding:.3rem .45rem}
.cdxves__list .cdxves__c-date,.cdxves__list .cdxves__c-line{white-space:nowrap;width:1%;padding-left:.3rem;padding-right:.3rem}
.cdxves__list .cdxves__c-act{white-space:nowrap;width:1%}
.cdxves__list .cdxves__c-act .cdxves__routebtn{display:block;width:100%;margin:0 0 3px}
.cdxves__list .cdxves__c-act .cdxves__routebtn:last-child{margin-bottom:0}
.cdxves__sub{display:block;color:#6b7a72;font-size:.92em}
.cdxves__list .cdxves__ts{display:block;width:fit-content;max-width:100%;margin:2px 0 0}
.cdxves__pagebar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:.5rem 0}
.cdxves__pagebar .cdxves__pager{margin:0;align-items:center}
.cdxves__pageno{font-size:.85rem;color:#6b7a72}
.cdxves__sizes{display:flex;align-items:center;gap:4px;margin-left:auto;font-size:.85rem;color:#6b7a72}
.cdxves__sizes span{margin-right:.2rem}
.cdxves__sizes button{min-width:2.4rem;padding:.25rem .5rem;border:1px solid #cdd6d1;background:#fff;border-radius:.4rem;cursor:pointer;font-size:.85rem}
.cdxves__sizes button.is-active{background:#1f7a4d;border-color:#1f7a4d;color:#fff}
@media (max-width:760px){.cdxves__list{min-width:720px}}
.cdxves__list .cdxves__est{display:block;margin-top:3px;color:#14532d;font-size:.95em;font-weight:600}
.cdxves__list .cdxves__est--none{color:#8a6d3b;font-weight:400}
@media (prefers-color-scheme:dark){.cdxves__list .cdxves__est{color:#9fe0b8}.cdxves__list .cdxves__est--none{color:#e0c98f}}

/* Иконка-стрелка рядом с названием судна: карточка судна на MarineTraffic в новой вкладке */
.cdxves__mtcard{display:inline-flex;align-items:center;margin-left:4px;color:#1f6fd1;opacity:.7;vertical-align:baseline;text-decoration:none}
.cdxves__mtcard:hover,.cdxves__mtcard:focus{opacity:1}
/* 0.6.77: таблица расписания помещается на экране без горизонтальной прокрутки */
.cdxves__list{font-size:.74rem;table-layout:auto}
.cdxves__list th,.cdxves__list td{padding:.25rem .35rem;white-space:normal;vertical-align:top}
.cdxves__list th:nth-child(5),.cdxves__list td:nth-child(5){width:auto;max-width:none;min-width:0}
.cdxves__list .cdxves__c-date,.cdxves__list td:nth-child(3),.cdxves__list td:nth-child(4){white-space:nowrap}
.cdxves__list td:last-child{white-space:normal;min-width:84px}
.cdxves__list .cdxves__routebtn{display:block;margin:0 0 3px;padding:.15rem .4rem;font-size:.7rem;text-align:center}
.cdxves__form>label{flex:0 0 130px;width:130px;max-width:130px}
.cdxves__form .ui-select,.cdxves__form .ui-input{width:100%;font-size:.8rem;padding-left:.5rem;padding-right:.3rem;text-overflow:ellipsis}
/* 0.6.78: вертикальный переключатель «Фильтр по датам» без подписи (подсказка при наведении) */
.cdxves__slider{width:22px;height:38px;border-radius:11px}
.cdxves__slider:after{top:3px;left:3px}
.cdxves__toggle input:checked+.cdxves__slider:after{transform:translateY(16px)}
.cdxves__abbr{text-decoration:underline dotted;cursor:help}
.leaflet-container .leaflet-tooltip{display:block!important}

/* 0.6.100: поле «Судно» — поиск с подсказками, ширина 250px */
.cdxves__form>label.cdxves__vlabel{flex:0 0 250px;width:250px;max-width:250px}
/* 0.6.101: поля «С даты» и «По дату» — 97px */
.cdxves__form>label.cdxves__dates{flex:0 0 97px;width:97px;max-width:97px}
.cdxves__form>label.cdxves__dates .ui-input{font-size:.72rem;padding-left:.3rem;padding-right:.2rem;letter-spacing:0}
