/* Korovka v147: actual goods/freezer module takes visual priority over stale
   React 'Карта' state. Only active while dedicated module is open. */
@media (min-width:769px) {
  body.k68-goods-mode .rail .rail-sections > button,
  body.k67-fridge-mode .rail .rail-sections > button {
    color:#bac9dc!important;
    font-weight:620!important;
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
  }
  body.k68-goods-mode .rail .rail-sections > button[data-k147-active],
  body.k67-fridge-mode .rail .rail-sections > button[data-k147-active] {
    color:#fff!important;
    font-weight:700!important;
    background:#26549b!important;
    border-color:#4779c7!important;
    box-shadow:inset 3px 0 0 #9ac0ff!important;
  }
  body.k68-goods-mode .rail .rail-sections > button:not([data-k147-active]):hover,
  body.k67-fridge-mode .rail .rail-sections > button:not([data-k147-active]):hover {
    color:#fff!important;
    background:#1a3455!important;
  }
}
@media (max-width:768px) {
  /* 'Дата маршрута' is a React label, while other menu rows are buttons.
     Equal outer width, padding, font, and aligned date picker. */
  .mobile-more-sheet .mobile-more-body > label:has(> input[type="date"]),
  .workspace-more-sheet .mobile-more-body > label:has(> input[type="date"]) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(120px,45%)!important;
    align-items:center!important;
    column-gap:10px!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    margin:5px 0!important;
    padding:7px 13px!important;
    background:#f6f9fd!important;
    color:#233b57!important;
    border:1px solid #dce6f2!important;
    border-radius:11px!important;
    box-shadow:none!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:650!important;
    letter-spacing:0!important;
    line-height:1.35!important;
    overflow:hidden!important;
  }
  .mobile-more-sheet .mobile-more-body > label:has(> input[type="date"]) > input[type="date"],
  .workspace-more-sheet .mobile-more-body > label:has(> input[type="date"]) > input[type="date"] {
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:38px!important;
    padding:5px 6px!important;
    border:1px solid #d4e0ef!important;
    border-radius:8px!important;
    background:#fff!important;
    font-size:14px!important;
    font-weight:600!important;
  }
}
