/* OLMAR 1.23q1 — ultrakompaktowe zakładki + większe logo OLMAR TRANSPORTE */
@media (min-width: 761px) {
  html body .page {
    display: block !important;
    min-height: 100vh !important;
  }

  html body .sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-right: 0 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(8,31,54,.09) !important;
  }

  html body .sidebar > .top-row,
  html body .sidebar .top-row {
    position: static !important;
    width: auto !important;
    min-width: 150px !important;
    max-width: 164px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    background: transparent !important;
    border: 0 !important;
  }

  html body .sidebar .navbar-brand {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 1.08rem !important;
    transform: scale(1.08) !important;
    transform-origin: left center !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
  }

  html body .sidebar .navbar-toggler,
  html body .sidebar input.navbar-toggler {
    display: none !important;
  }

  html body .sidebar .nav-scrollable {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 46px !important;
    max-height: 46px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    align-items: flex-end !important;
    white-space: nowrap !important;
    padding: 4px 5px 0 2px !important;
  }

  html body .sidebar .nav-scrollable > nav,
  html body .sidebar nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
  }

  /* Ukrywamy dawne śródtytuły pionowego menu, nawet jeśli nie mają osobnej klasy. */
  html body .sidebar .nav-scrollable nav > .nav-item:not(:has(a)):not(:has(.nav-link)),
  html body .sidebar .nav-scrollable nav > div:not(.nav-item):not(:has(a)):not(:has(.nav-link)) {
    display: none !important;
  }

  html body .sidebar .nav-section-title,
  html body .sidebar .nav-group-title,
  html body .sidebar .nav-caption,
  html body .sidebar .menu-section-title,
  html body .sidebar .section-label,
  html body .sidebar .nav-heading {
    display: none !important;
  }

  html body .sidebar .nav-item {
    display: flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 39px !important;
  }

  html body .sidebar .nav-item a,
  html body .sidebar .nav-item .nav-link,
  html body .sidebar a.nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    width: auto !important;
    padding: 0 8px !important;
    margin: 3px 0 0 0 !important;
    border-radius: 6px 6px 0 0 !important;
    white-space: nowrap !important;
    font-size: .79rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    letter-spacing: -.01em !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-bottom: 0 !important;
    background: rgba(255,255,255,.055) !important;
    color: #123f66 !important;
    box-shadow: none !important;
  }

  html body .sidebar .nav-item a:hover,
  html body .sidebar .nav-item .nav-link:hover,
  html body .sidebar a.nav-link:hover {
    background: rgba(255,255,255,.13) !important;
  }

  html body .sidebar .nav-item a.active,
  html body .sidebar .nav-item .nav-link.active,
  html body .sidebar a.nav-link.active {
    background: #ffffff !important;
    color: #12395f !important;
    border-color: #cbd5e1 !important;
    box-shadow: inset 0 3px 0 #2d7fbd !important;
  }

  html body .sidebar .olmar-account-tab {
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }
  html body .sidebar .olmar-account-tab a,
  html body .sidebar .olmar-account-tab .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html body main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  html body main > .top-row,
  html body .page > main > .top-row {
    display: none !important;
  }

  html body main > .content,
  html body .content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(10px, 1vw, 18px) !important;
    padding-right: clamp(10px, 1vw, 18px) !important;
    padding-top: 10px !important;
  }

  html body .today-actions a[href="/konto"] {
    display: none !important;
  }
}

/* Przy typowym laptopie chowamy ikonki i ściskamy tekst jeszcze bardziej. */
@media (max-width: 1700px) and (min-width: 761px) {
  html body .sidebar > .top-row,
  html body .sidebar .top-row {
    min-width: 138px !important;
    max-width: 148px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  html body .sidebar .navbar-brand {
    font-size: .98rem !important;
  }
  html body .sidebar .nav-item a,
  html body .sidebar .nav-item .nav-link,
  html body .sidebar a.nav-link {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: .75rem !important;
    gap: 2px !important;
  }
  html body .sidebar .nav-item a > .oi,
  html body .sidebar .nav-item a > .bi,
  html body .sidebar .nav-item a > i,
  html body .sidebar .nav-item .nav-link > .oi,
  html body .sidebar .nav-item .nav-link > .bi,
  html body .sidebar .nav-item .nav-link > i {
    display: none !important;
  }
}

@media (max-width: 1300px) and (min-width: 761px) {
  html body .sidebar > .top-row,
  html body .sidebar .top-row {
    min-width: 118px !important;
    max-width: 128px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  html body .sidebar .navbar-brand {
    font-size: .90rem !important;
  }
  html body .sidebar .nav-item a,
  html body .sidebar .nav-item .nav-link,
  html body .sidebar a.nav-link {
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: .70rem !important;
  }
}

/* Telefon pozostaje w natywnym układzie mobilnym. */
@media (max-width: 760px) {
  html body main > .content,
  html body .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

html body .sidebar .nav-item .nav-link.active {
    background: transparent !important;
    color: #123f66 !important;
    border: 0 !important;
    border-bottom: 3px solid #2d7fbd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .sidebar,
html body .sidebar > .top-row,
html body .sidebar .top-row,
html body .sidebar .nav-scrollable,
html body .sidebar nav {
    background: #ffffff !important;
}
