/* Korovka v71: the Map screen shows only the OSM map and the short remaining-stops list.
   All normal route cards, statuses and visit controls remain intact in the Route screen. */
body.k71-map-view .page-heading,
body.k71-map-view .week-strip{display:none!important}
.territory.k64-map-active > .surface-header,
.territory.k64-map-active > .mono-day-bar,
.territory.k64-map-active > .filters,
.territory.k64-map-active > .route-visibility,
.territory.k64-map-active > .current-stop,
.territory.k64-map-active > .route-overview-tools,
.territory.k64-map-active > .map-shell,
.territory.k64-map-active > .map-caption,
.territory.k64-map-active > .nearby-list,
.territory.k64-map-active > .route-navigator-sheet,
.territory.k64-map-active > .day-list-wrap,
.territory.k64-map-active > .list-scroll,
.territory.k64-map-active > .loading,
.territory.k64-map-active .nearby-list,
.territory.k64-map-active .current-stop-map{display:none!important}
/* No second refresh control: the one in the upper toolbar updates the whole CRM. */
.topbar .top-actions button[aria-label="Обновить базу"],
#k63-main .k63-main-summary button[data-k63-action="reload"],
#k63-main .k63-main-summary button[data-k63-action="expand"],
#k66-day-report .k66-refresh,
#k67-main [data-k67-refresh],
#k67-main [data-k68-refresh]{display:none!important}
/* Only the remaining stops, not a second report with refusals/shipments. */
.territory.k64-map-active #k63-main .k63-mini-tabs{display:none!important}
.territory.k64-map-active #k63-main .k63-main-summary b:not(:first-child){display:none!important}
.territory.k64-map-active #k63-main{margin:8px 10px 16px;scroll-margin-top:12px;min-width:0}
.territory.k64-map-active #k63-main .k63-panel-body{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.territory.k64-map-active #k63-main .k63-map-frame{border-right:0;border-bottom:1px solid #e3e9f5}
.territory.k64-map-active #k63-main .k63-map-scroll{max-height:260px;overscroll-behavior:contain}
.territory.k64-map-active #k63-main .k63-map-side{padding:8px 12px}
.territory.k64-map-active #k63-main .k63-map-item{min-height:34px;gap:8px;padding:7px 2px}
.territory.k64-map-active #k63-main .k63-map-frame small{line-height:1.3}
@media(min-width:1000px){.territory.k64-map-active #k63-main{max-width:1120px;margin-inline:auto;width:calc(100% - 24px)}}
@media(max-width:760px){
  body.k71-map-view .working-grid{display:block;min-width:0}
  .territory.k64-map-active{padding-top:0!important;min-width:0;overflow:visible}
  .territory.k64-map-active #k63-main{margin:4px 5px 82px;border-radius:11px}
  .territory.k64-map-active #k63-main .k63-main-top{padding:9px 10px}
  .territory.k64-map-active #k63-main .k63-main-name strong{font-size:14px}
  .territory.k64-map-active #k63-main .k63-map-frame{padding:6px 6px 8px}
  .territory.k64-map-active #k63-main .k64-map-stage{height:min(56dvh,440px);min-height:290px}
  .territory.k64-map-active #k63-main .k63-map-side{padding:3px 10px 8px}
  .territory.k64-map-active #k63-main .k63-map-scroll{max-height:220px}
  .territory.k64-map-active #k63-main .k63-map-item strong{font-size:12px}
  .territory.k64-map-active #k63-main .k63-map-item small{font-size:10px}
}
