/* Korovka CRM v125. Desktop drag performance and visible end-of-route placement.
   CSS is scoped to an active drag; non-drag UX, mobile route and plans are unchanged. */
html.v125-drag-active, html.v125-drag-active body { cursor:grabbing!important; }
/* Remove the old helper: it sat directly above the end-of-route insertion target. */
html.v125-drag-active .v124-drag-help { display:none!important; }
.v125-drop-line {
  position:fixed;z-index:3103;pointer-events:none;display:none;
  align-items:center;justify-content:center;
  height:0;border-top:4px solid #1876ed;
  filter:drop-shadow(0 2px 2px #16458e66);
}
.v125-drop-line>span {
  display:block;max-width:100%;padding:4px 10px;border-radius:8px;
  background:#125fcd;color:#fff;border:2px solid #fff;
  font:750 11px/1.3 system-ui,-apple-system,sans-serif;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transform:translateY(-2px);
}
/* Existing v124 card markers remain on iPhone, but they won't obscure the last
   boundary; the new fixed line can name the end unambiguously. */
html.v125-drag-active .mobile-day-list>[data-route-point].route-drop-after:last-child::after {content:'↓ В КОНЕЦ МАРШРУТА';}
/* Desktop uses table rows instead of .mobile-point cards, which v124 did not compact. */
@media (min-width:761px) {
  html.v125-drag-active .list-scroll {scroll-behavior:auto!important;}
  html.v125-drag-active .list-scroll table {width:100%!important;min-width:0!important;table-layout:auto!important;}
  html.v125-drag-active .list-scroll thead,
  html.v125-drag-active .list-scroll tr.district-table-row {display:none!important;}
  html.v125-drag-active .list-scroll tr[data-route-point] {height:37px!important;max-height:37px!important;}
  html.v125-drag-active .list-scroll tr[data-route-point]>td {padding:2px 7px!important;height:37px!important;vertical-align:middle!important;}
  html.v125-drag-active .list-scroll tr[data-route-point]>td:nth-child(n+3) {display:none!important;}
  html.v125-drag-active .list-scroll tr[data-route-point]>td:first-child {width:76px!important;min-width:76px!important;}
  html.v125-drag-active .list-scroll tr[data-route-point]>td:nth-child(2) {width:100%!important;}
  html.v125-drag-active .list-scroll tr[data-route-point] .drag-handle {height:32px!important;min-height:32px!important;width:34px!important;min-width:34px!important;flex-basis:34px!important;}
  html.v125-drag-active .list-scroll tr[data-route-point] .name-button {padding:1px 6px!important;min-height:29px!important;line-height:1.2!important;font-size:13px!important;text-align:left!important;}
  html.v125-drag-active .list-scroll tr[data-route-point] .name-button small,
  html.v125-drag-active .list-scroll tr[data-route-point] .table-actions,
  html.v125-drag-active .list-scroll tr[data-route-point] .activity-badge {display:none!important;}
  html.v125-drag-active .list-scroll tr[data-route-point].route-drop-before,
  html.v125-drag-active .list-scroll tr[data-route-point].route-drop-after {background:#dcecff!important;outline:2px solid #2c78e8;outline-offset:-1px;}
  /* pseudo-elements on a table-row are unreliable in Chromium, so use the
     fixed v125-drop-line rather than the v124 card ::before/::after marker. */
  html.v125-drag-active .list-scroll tr[data-route-point].route-drop-before::before,
  html.v125-drag-active .list-scroll tr[data-route-point].route-drop-after::after {display:none!important;content:none!important;}
  .v125-drop-line>span {font-size:12px;}
}
