/* allpanel9.global / allpanalCrick header ~65px; ALL wordmark smaller on mobile. */
/* Header stays compact; login page ALL logo larger (allpanel9 .login-box img ~90px). */
.header-top .logo-header img,
.logo-header img,
header img[src*="01_logo"],
header img[src*="logo"] {
  max-height: 48px;
  max-width: 180px;
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
  box-shadow: none !important;
}
.login-wrapper img[src*="logo"],
.main-login img[src*="logo"],
.login-page .login-box img,
.login-box img,
.logo-login img,
img.logo-login {
  max-height: 90px;
  max-width: 280px;
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .header-top .logo-header img,
  .logo-header img,
  header img[src*="01_logo"],
  header img[src*="logo"] {
    max-height: 36px !important;
    max-width: 120px !important;
  }
  .login-wrapper img[src*="logo"],
  .main-login img[src*="logo"],
  .login-page .login-box img,
  .login-box img,
  .logo-login img,
  img.logo-login {
    max-height: 72px !important;
    max-width: 240px !important;
  }
}
.header-top,
.logo-header,
.header-top .logo-header {
  overflow: visible !important;
}

/*
 * allpanalCrick parity (responsive.css):
 * mobile .header-top grows for in-header .news marquee so it sits ABOVE sports
 * highlights — not painted over match chips / category tabs.
 * Keep logo size from the rules above (36px).
 * IMPORTANT: header-top overflow must stay VISIBLE so Demo profile dropdown
 * is not clipped (Account Statement going "inside").
 */
@media (max-width: 767px) {
  .header-top {
    height: auto !important;
    min-height: 52px !important;
    max-height: none !important;
    padding: 4px 8px 6px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .header-top .news {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 4px !important;
    display: block !important;
    overflow: hidden !important;
    z-index: 1;
  }
  /* Profile / Demo menu must float above news + highlight strips. */
  .header-top .user-balance,
  .header-top .user-details,
  .header-top .dropdown {
    position: relative;
    z-index: 1100;
  }
  .header-top .dropdown-menu,
  .header-top .dropdown-menu.show {
    z-index: 1100 !important;
    position: absolute !important;
  }
  /* Mobile drawer is z-index 100 in responsive.css — our balance z-index 1100
   * was painting Balance/Exp/Demo over the open sidebar. Keep drawer on top. */
  .left-sidebar,
  .left-sidebar.visible {
    z-index: 1200 !important;
  }
  html,
  body,
  #root {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Stable login typography — avoid FOUC / zoom-looking text after sign-out refresh */
.login-page,
.login-page body,
body:has(.login-page),
body:has(.login-wrapper),
body:has(.main-login) {
  font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.login-page .login-form .login-title {
  font-size: 22px !important;
  font-weight: 700;
}
.login-page .login-form .form-control,
.login-page .login-form input {
  font-size: 14px !important;
}
.login-page .login-form .btn {
  font-size: 14px !important;
}

/* WINJET_DESKTOP_WIDTH_FIX */
@media (min-width:992px){html,body,#root,.wrapper,.main-container{width:100%!important;max-width:none!important;}}
