/* Korovka CRM v76: one route summary, large chart, no repeated statistics.
   All original React controls stay mounted and work through their native handlers.
   Expanded route filters expose additional list and planning controls on demand. */

/* Only the normal route. Keep seasonal, map, goods and refrigeration screens untouched. */
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:12px!important;
  padding:15px 20px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .mono-progress.route-progress-chart {
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  max-width:570px!important;
  min-width:0!important;
  flex:initial!important;
  gap:20px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring {
  flex:0 0 112px!important;
  width:112px!important;
  height:112px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring > div {
  width:89px!important;
  height:89px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring strong {
  font-size:27px!important;
  font-weight:800!important;
  line-height:1.1!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring span {
  font-size:11px!important;
  margin-top:4px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-details {
  flex:1 1 0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
  align-content:center!important;
}
/* The two clickable numbers already exist. The redundant title is the third copy of the same data. */
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-chart.k76-has-points .route-progress-details > b {
  display:none!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat {
  min-height:34px!important;
  padding:4px 0!important;
  width:100%!important;
  font-size:14px!important;
  gap:9px!important;
  line-height:1.3!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat i {
  height:9px!important;
  width:9px!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat strong {
  margin-left:auto!important;
  font-size:19px!important;
  font-variant-numeric:tabular-nums!important;
}
/* One action row inside the same summary; redundant "Итог дня" is still mounted but hidden. */
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,174px))!important;
  width:100%!important;
  gap:8px!important;
  justify-content:start!important;
  align-items:stretch!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions > button {
  width:100%!important;
  min-width:0!important;
  min-height:39px!important;
  height:39px!important;
  padding:5px 10px!important;
  font-size:13px!important;
  white-space:nowrap!important;
  gap:6px!important;
  justify-content:center!important;
  border-radius:10px!important;
}
body .mono-day-bar .day-work-actions > button.k76-redundant {
  display:none!important;
}
/* React's quick tabs and planning controls stay available INSIDE expanded Filters.
   When Filters is collapsed they don't consume screen real estate. */
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters:not(.k76-expanded) > .quick-task-tabs,
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters:not(.k76-expanded) > .day-planning {
  display:none!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded > .quick-task-tabs,
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded > .day-planning {
  display:flex!important;
  flex-direction:column;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded > .quick-task-tabs {
  flex-direction:row!important;
  flex-wrap:wrap!important;
}
body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters {
  padding-top:11px!important;
}

@media(max-width:760px) {
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar {
    padding:12px!important;
    gap:11px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-chart {
    max-width:none!important;
    gap:14px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring {
    width:114px!important;
    height:114px!important;
    flex-basis:114px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring > div {
    width:90px!important;
    height:90px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-details {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;
    flex:1 1 0!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat {
    min-height:36px!important;
    padding:5px 0!important;
    font-size:13px!important;
    width:100%!important;
    gap:6px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat strong {
    font-size:18px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions > button {
    min-height:40px!important;
    height:40px!important;
    padding:5px 7px!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions > button.k76-call {
    grid-column:1/-1!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters {
    padding:10px 11px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded > .quick-task-tabs {
    gap:6px!important;
    margin-bottom:9px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded > .day-planning {
    margin-bottom:9px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .filters.k76-expanded .day-planning .planning-status-tabs {
    display:grid!important;
  }
}
@media(max-width:355px) {
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring {
    width:106px!important;height:106px!important;flex-basis:106px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-ring > div {
    width:84px!important;height:84px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .route-progress-stat {
    font-size:12px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .day-work-actions > button {
    padding-inline:3px!important;
    font-size:11px!important;
  }
}
