/* JapanTrak + XTM — wspolne oznaczenia aplikacji, wersja 2.6.1 */

.login-brand-panel .xtm-login-logo {
  width: min(220px, 56%);
  height: 84px;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 20px;
}

.brand {
  min-height: 188px;
  gap: 4px;
  margin-bottom: 12px;
  overflow: visible;
}

.brand > img:first-of-type {
  flex: none;
  width: 146px;
  height: 110px;
  object-fit: contain;
}

.brand .xtm-sidebar-logo {
  display: block;
  flex: none;
  width: 118px;
  max-width: calc(100% - 24px);
  height: 46px;
  object-fit: contain;
  margin: 0;
}

.brand .xtm-sidebar-logo + span {
  margin-top: 2px;
}

.mobile-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.mobile-header .mobile-brands img:first-child {
  width: 74px;
  height: 42px;
  object-fit: contain;
}

.mobile-header .mobile-brands img:last-child {
  width: 60px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .login-brand-panel .xtm-login-logo {
    width: min(170px, 52%);
    height: 66px;
    margin-top: 0;
    margin-bottom: 12px;
  }
}

@media (max-width: 430px) {
  .mobile-brands {
    gap: 5px;
  }

  .mobile-header .mobile-brands img:first-child {
    width: 61px;
  }

  .mobile-header .mobile-brands img:last-child {
    width: 48px;
  }
}

@media print {
  .print-route-sheet::after {
    content: "";
    visibility: visible !important;
    position: absolute;
    top: 0;
    right: 0;
    width: 105px;
    height: 41px;
    background: url("/xtm-logo.png") center / contain no-repeat;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .route-detail-head {
    padding-right: 120px !important;
  }
}
