/* Коровка CRM v75: compact mobile route. Visual-only adjustments.
   Old buttons, route filters, actions, results and customer status signals stay interactive. */
@media (max-width:760px) {
  /* Smaller outer rhythm; don't change the content of non-route sections. */
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .workspace {
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .page-heading.compact-page-heading {
    padding:1px 0 6px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .page-heading .k63-direct-date {
    font-size:12px!important;
    gap:8px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .page-heading .k63-direct-date input.k63-date {
    min-height:38px!important;
    height:38px!important;
    border-radius:10px!important;
    padding:4px 9px!important;
    font-size:14px!important;
  }
  /* Same six destinations as before, but no tall tiles. */
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-strip {
    margin-bottom:8px!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-strip .week-tabs:has(#k67-season-tab) {
    gap:6px!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs [data-slot="tabs-trigger"] {
    min-height:49px!important;
    padding:5px 5px!important;
    gap:2px!important;
    border-radius:10px!important;
    justify-content:center!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs [data-route-day] > svg,
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs .all-base-tab > svg {
    display:none!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs [data-slot="tabs-trigger"] > span {
    text-align:center!important;
    font-size:14px!important;
    line-height:1.1!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs [data-slot="tabs-trigger"] small {
    margin-top:3px!important;
    font-size:11px!important;
    line-height:1.1!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs .all-base-tab,
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .week-tabs #k67-season-tab {
    min-height:50px!important;
    height:50px!important;
    padding:5px 7px!important;
    gap:6px!important;
    border-radius:10px!important;
    align-items:center!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) #k67-season-tab .k67-icon {
    font-size:15px!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) #k67-season-tab b {
    font-size:12px!important;
    line-height:1.1!important;
  }
  body:not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) #k67-season-tab small {
    font-size:10px!important;
    margin-top:2px!important;
  }
  /* A compact "synced" confirmation only. Pending/offline/error messaging is untouched. */
  .device-outbox-banner.k75-synced {
    min-height:0!important;
    padding:7px 11px!important;
    margin:7px 0!important;
    gap:8px!important;
    border-radius:10px!important;
    flex-wrap:nowrap!important;
  }
  .device-outbox-banner.k75-synced > svg {
    width:17px!important;
    height:17px!important;
  }
  .device-outbox-banner.k75-synced > div {
    flex:1 1 auto!important;
    min-width:0!important;
  }
  .device-outbox-banner.k75-synced b {
    font-size:12px!important;
    line-height:1.25!important;
  }
  .device-outbox-banner.k75-synced p {
    display:none!important;
  }
  /* Route surface: small heading and condensed summary. */
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-route {
    border-radius:13px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-route > .surface-header,
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-route .surface-header {
    padding:9px 12px!important;
    gap:6px!important;
    min-height:44px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .surface-header .surface-title h2 {
    font-size:17px!important;
    line-height:1.2!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .surface-header .count {
    font-size:11px!important;
    padding:2px 6px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    padding:9px 12px!important;
    gap:8px!important;
  }
  /* This is a duplicate picker. The working calendar is still in the page heading. */
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-day-bar .mono-date {
    display:none!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-progress.route-progress-chart {
    display:flex!important;
    align-items:center!important;
    gap:11px!important;
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-ring {
    flex:0 0 54px!important;
    width:54px!important;
    height:54px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-ring > div {
    width:43px!important;
    height:43px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-ring strong {
    font-size:17px!important;
    line-height:1.15!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-ring span {
    font-size:8px!important;
    margin-top:0!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-details {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:center!important;
    gap:3px 9px!important;
    flex:1 1 auto!important;
    min-width:0!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-details > b {
    grid-column:1/-1!important;
    font-size:13px!important;
    margin:0!important;
    line-height:1.25!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-stat {
    min-height:29px!important;
    padding:3px 0!important;
    width:100%!important;
    font-size:11px!important;
    line-height:1.15!important;
    gap:4px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-stat i {
    width:7px!important;
    height:7px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .route-progress-stat strong {
    margin-left:auto!important;
    font-size:13px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-work-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    justify-content:stretch!important;
    align-items:stretch!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-work-actions > button {
    width:100%!important;
    height:38px!important;
    min-height:38px!important;
    padding:5px 8px!important;
    margin:0!important;
    justify-content:center!important;
    white-space:nowrap!important;
    font-size:12px!important;
    border-radius:9px!important;
    gap:5px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-work-actions > button svg {
    width:15px!important;
    height:15px!important;
  }
  /* Filter counters and planning status remain clickable, but become short chips. */
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mono-route .filters {
    padding:9px 11px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .quick-task-tabs {
    gap:5px!important;
    margin-bottom:9px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .quick-task-tabs button {
    min-height:37px!important;
    padding:5px 3px!important;
    font-size:12px!important;
    line-height:1.15!important;
    border-radius:9px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-planning {
    margin-bottom:9px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .planning-heading {
    margin-bottom:5px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .planning-status-tabs {
    gap:5px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .planning-status-tabs > button {
    display:flex!important;
    flex-direction:row!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:42px!important;
    gap:5px!important;
    padding:5px 4px!important;
    line-height:1.15!important;
    font-size:11px!important;
    border-radius:9px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .planning-status-tabs > button b {
    font-size:14px!important;
    line-height:1!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .search-filter-row {
    gap:6px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .search-filter-row input,
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .search-filter-row .filters-toggle {
    height:42px!important;
    min-height:42px!important;
    border-radius:9px!important;
    font-size:12px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .search-filter-row .filters-toggle {
    padding:5px 8px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .mobile-point {
    padding:11px 12px!important;
  }
  /* Keep focus indicators clear despite reduced chrome. */
  .week-tabs button:focus-visible,.day-work-actions button:focus-visible,
  .planning-status-tabs button:focus-visible,.quick-task-tabs button:focus-visible {
    outline:2px solid #2764d2!important;
    outline-offset:2px!important;
  }
}
@media (max-width:360px) {
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .day-work-actions > button {
    font-size:11px!important;
    padding-inline:4px!important;
  }
  body:not(.k67-mode):not(.k68-goods-mode):not(.k71-map-view) .planning-status-tabs > button {
    font-size:10px!important;
    gap:2px!important;
  }
}
