/* VIPBET user/account tools only — Jilbet-aligned presentation layer. */
.bb-account-menu-tools-wrap,
.bb-account-menu-tools-grid {
  background: #ebeded;
}

.bb-account-menu-tool {
  background: #ebeded;
}

.bb-account-menu-tool.is-active {
  background: #fff;
}

.bb-account-menu-tool span {
  line-height: 1.2;
}

#bbBetsByDatePage .bb-transfer-main > h2 {
  display: none;
}

.bb-jilbet-more-filters {
  display: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--shop-theme-color, #126e51);
  font: inherit;
  font-size: 16px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1023px) {
  #bbBetsByDatePage .bb-jilbet-more-filters {
    display: block;
  }

  #bbBetsByDatePage:not(.is-jilbet-filters-open) .bb-bets-status-wrap,
  #bbBetsByDatePage:not(.is-jilbet-filters-open) .bb-bets-id-wrap,
  #bbBetsByDatePage:not(.is-jilbet-filters-open) .bb-bets-wide-filter,
  #bbBetsByDatePage:not(.is-jilbet-filters-open) .bb-bets-small-filter {
    display: none;
  }

  #bbBetsByDatePage .bb-transfer-search-btn {
    align-self: flex-start;
    width: 100px;
  }

  #bbTransferPage .bb-transfer-action-wrap {
    align-self: flex-start;
    width: 176px;
    max-width: 100%;
  }

  .bb-transfer-shell .bb-account-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 10px;
  }

  .bb-transfer-shell .bb-account-field {
    min-height: 72px;
    width: 100%;
  }

  .bb-transfer-shell .bb-account-input {
    width: 100%;
    height: 41px;
    border: 1px solid #cfcfcf;
    background: rgba(239, 239, 239, .3);
    padding: 10px 5px;
  }

  .bb-security-col-title {
    justify-content: center;
    margin-left: 0;
    text-align: center;
  }

  .bb-security-col-title svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .bb-security-col-inner {
    padding-left: 8px;
    padding-right: 8px;
  }

  .bb-security-col-twofa .bb-security-twofa-btn-wrap {
    width: 150px;
  }
}

@media (max-width: 360px) {
  .bb-transfer-shell .bb-account-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Account popup hotfix: player tools only; original actions and local SVGs retained. */
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) { max-height: 100dvh !important; overflow-y: auto !important; overflow-x: hidden !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tools-tab { min-height: 39px !important; border-top-color: rgba(197,197,197,.36) !important; border-bottom-color: rgba(197,197,197,.68) !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tools-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,calc(33.3% - 5px))) !important; gap: 5px !important; padding: 10px 0 !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tool { width: auto !important; min-width: 0 !important; min-height: 55px !important; height: auto !important; padding: 6.5px 0 !important; gap: 0 !important; justify-content: flex-start !important; align-items: center !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tool > span { max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere !important; word-break: normal !important; text-align: center !important; font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Tahoma,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Open Sans",sans-serif !important; font-size: 13px !important; font-weight: 500 !important; line-height: 17px !important; color: #7b7b7b !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tool > svg { width: 25px !important; height: 25px !important; flex: 0 0 25px !important; color: #5e6361 !important; opacity: 1 !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-tool > svg [stroke] { stroke: #5e6361 !important; stroke-width: 1.75px !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-footer { gap: 0 !important; padding: 10px !important; justify-content: flex-end !important; align-items: flex-end !important; border-top: 1px solid rgba(197,197,197,.68) !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-footer-spacer { min-width: 0 !important; flex: 1 1 0 !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-logout { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 1.5px !important; min-width: 86px !important; max-width: 100% !important; min-height: 40.5px !important; height: auto !important; padding: 0 !important; color: #000 !important; font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Tahoma,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Open Sans",sans-serif !important; font-size: 14px !important; font-weight: 400 !important; line-height: 19px !important; text-align: start !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-logout > span { order: 0 !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere !important; line-height: 19px !important; }
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-logout > svg { order: 1 !important; display: block !important; width: 20px !important; height: 20px !important; flex: 0 0 20px !important; margin: 0 !important; color: #000 !important; }

/* Keep the footer anchored to the physical right in every writing direction. */
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-footer{direction:ltr!important;}
html body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-logout{unicode-bidi:plaintext!important;}
html[dir="rtl"] body.has-bb-header .bb-top [data-account-menu] .bb-account-menu-panel:has([data-bb-menu-tool="bets_bydate"][href="/user/bets-bydate"]) .bb-account-menu-logout{direction:rtl!important;}
