/* HVSZ_H120_MOBILE_SIDEBAR_FINISH
 * A H119 háromsoros rácsa megmarad.
 * Ez az asset:
 * - a mobil agent oldalsáv alját biztosan a viewporton belül tartja;
 * - az alsó öt ikongomb valamennyi képes ikonját középre igazítja.
 */

@media (max-width: 1100px) {
  /* Ne számított magasságból induljunk: a meglévő top érték és ez a bottom
     együtt mindig a valódi, látható viewporton belül tartja az oldalsávot. */
  body.ui-v2-shell:not(.customer-v2-portal) .topbar {
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-inner {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    gap: 6px !important;
    padding-bottom: 6px !important;
    box-sizing: border-box !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-right {
    box-sizing: border-box !important;
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    padding: 4px 0 0 !important;
    gap: 4px !important;
    align-items: center !important;
    align-self: end !important;
    overflow: visible !important;
  }

  /* A notification wrapper korábban block volt, ezért a benne lévő gomb
     optikailag balra/lefelé csúszhatott. */
  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right > *,
  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .notification-bell-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon > .topbar-icon-wrap,
  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon .topbar-icon-wrap {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 100% !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  /* A témaváltó képe közvetlenül a button gyereke, a többi kép wrapperben van. */
  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon .topbar-img,
  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon > img.topbar-img {
    display: block !important;
    flex: 0 0 auto !important;
    width: 19px !important;
    height: 19px !important;
    margin: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    translate: none !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon .topbar-icon-fallback {
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
    line-height: 1 !important;
    text-align: center !important;
  }
}

/* Nagyon alacsony kijelzőn még két pixellel kompaktabb ikonsor. */
@media (max-width: 1100px) and (max-height: 720px) {
  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-inner {
    padding-bottom: 4px !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-right {
    min-height: 35px !important;
    height: 35px !important;
    max-height: 35px !important;
    padding-top: 3px !important;
  }

  body.ui-v2-shell:not(.customer-v2-portal)
  .topbar .topbar-right .topbar-icon {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
  }
}
