/* System brand logo: height-based, fluid, and aligned in each header. */

body .top-logo .container > .row > .col-md-12 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body .top-logo .main-menu {
  float: none;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

body .top-logo .wed-logo {
  float: none;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: min(260px, 28%);
  min-height: 72px;
}

body .top-logo .wed-logo a {
  display: flex;
  align-items: center;
  line-height: 0;
  max-width: 100%;
}

body .top-logo .wed-logo a img {
  display: block;
  width: auto;
  height: clamp(52px, 5.2vw, 68px);
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  padding: 0;
}

body .top-logo.affix .wed-logo {
  min-height: 0;
  height: 75px;
}

body .top-logo.affix .wed-logo a img {
  height: 46px;
}

@media (max-width: 1024px) {
  body .ed-mob-menu .ed-mm-right {
    display: flex;
    align-items: center;
    height: 80px;
  }

  body .ed-mob-menu .wed-logo {
    float: none;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 80px;
  }

  body .ed-mob-menu .wed-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
    max-width: 100%;
  }

  body .ed-mob-menu .wed-logo a img {
    display: block;
    width: auto;
    height: clamp(40px, 10vw, 52px);
    max-width: 100%;
    min-width: 0;
    object-fit: contain;
    padding: 0;
  }
}

/* Dashboard top bar */
.sb1 a.logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 0;
}

.sb1 a.logo img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  padding: 6px 0;
}

@media (max-width: 992px) {
  .sb1 a.logo img {
    height: 34px;
    max-width: 110px;
  }
}

/* Login screens. Loaded after each page's own rules. */
.blog-login-in img {
  display: block !important;
  width: auto !important;
  max-width: min(260px, 80%) !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain;
}

/* Account button and sidebar avatar: keep the logo above the Materialize ripple. */
a.waves-effect.top-user-pro > img,
.sb2-12 ul li img {
  position: relative;
  z-index: 2;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
}

/* CACO_ICON_FONT_FIX â keep FA/Glyphicons/micon working under RTL Arabic body font */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.fa:before,
.fas:before,
.far:before,
.fab:before,
.fal:before,
.fad:before,
[clast^="fa-"]:before,
[class*=" fa-"]:before {
  font-family: FontAwesome !important;
  font-style: normal !important;
  font-weight: normal !important;
  unicode-bidi: isolate !important;
  direction: ltr !important;
}

.glyphicon,
.glyphicon:before {
  font-family: "Glyphicons Halflings" !important;
  unicode-bidi: isolate !important;
  direction: ltr !important;
}

.micon,
[class^="mi-"],
[class*=" mi-"],
.micon:before,
[class^="mi-"]:before {
  font-family: "micon" !important;
  unicode-bidi: isolate !important;
  direction: ltr !important;
}
