/* 18.cash layout repair, 2026-10-21. Loaded after the existing theme. */
.cash-layout-v107 { --cash-header-space: 62px; --cash-bottom-space: 58px; }
.cash-layout-v107 .navbar.home-navbar .myData {
  min-height: 62px; height: auto; gap: 8px; padding: env(safe-area-inset-top, 0px) 12px 0;
}
.cash-layout-v107 .navbar.home-navbar .logo { margin: 0; min-width: 0; }
.cash-layout-v107 .navbar.home-navbar .logo .leftNav > i {
  padding: 0; margin-right: 7px; flex: none; font-size: 24px; line-height: 44px;
}
.cash-layout-v107 .navbar.home-navbar .logo .leftNav .img { padding-right: 0; }
.cash-layout-v107 .navbar.home-navbar .logo .leftNav .img img {
  width: 100%; max-width: 153px; height: 36px; object-fit: contain;
}
.cash-layout-v107 .navbar.home-navbar .btn { margin: 0; gap: 6px; flex: none; }
.cash-layout-v107 .navbar.home-navbar .btn button {
  min-height: 34px; height: auto; padding: 7px 9px; margin: 0; white-space: normal;
}
.cash-layout-v107 .navbar.home-navbar .btn .van-button__text {
  font-size: 12px; height: auto; line-height: 1.4;
}
.cash-layout-v107 .navbar.home-navbar .btn .message { flex: none; width: 24px; height: 24px; }
.cash-layout-v107 .home .content {
  margin-top: calc(var(--cash-header-space) + 12px);
  padding-bottom: calc(var(--cash-bottom-space) + 24px);
}
.cash-layout-v107 .home .home-categories { top: var(--cash-header-space) !important; }
.cash-layout-v107 .home .sort .swiper-slide { width: 96px !important; }
.cash-layout-v107 .home .sort .sort-item { min-height: 68px; box-sizing: border-box; }
.cash-layout-v107 .home .sort .sort-item p {
  white-space: normal; overflow: visible; text-overflow: clip;
  overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; min-height: 34px; margin: 3px 0 0;
}
.cash-layout-v107 .home .game .title {
  height: auto; min-height: 36px; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.cash-layout-v107 .home .game .title .name { min-width: 0; flex: 1 1 135px; }
.cash-layout-v107 .home .game .title .name img { flex: none; }
.cash-layout-v107 .home .game .title .p1 { line-height: 1.35; overflow-wrap: anywhere; min-width: 0; }
.cash-layout-v107 .home .game .title .btn-list { flex: none; margin-left: auto; white-space: nowrap; }
.cash-layout-v107 .home .game .title .total { line-height: 1.4; }
.cash-layout-v107 #bottomNav { height: calc(58px + env(safe-area-inset-bottom, 0px)); }
.cash-layout-v107 #bottomNav .box { min-height: 58px; height: 58px; align-items: stretch; }
.cash-layout-v107 #bottomNav .item {
  min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 5px 2px; box-sizing: border-box;
}
.cash-layout-v107 #bottomNav .item img { flex: none; margin: 0; }
.cash-layout-v107 #bottomNav .item p { line-height: 1.4; font-size: 11px; margin: 0; overflow-wrap: anywhere; }
.cash-layout-v107 .activity.fixedStyle, .cash-layout-v107 .hall {
  padding-bottom: calc(var(--cash-bottom-space) + 24px);
  scroll-padding-bottom: calc(var(--cash-bottom-space) + 24px);
}
.cash-layout-v107 .activity .van-tabs__wrap { height: auto !important; overflow: visible; }
.cash-layout-v107 .activity .van-tabs__nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0;
  height: auto; padding: 0; transform: none !important;
}
.cash-layout-v107 .activity .van-tab {
  min-width: 0; min-height: 48px; height: auto; padding: 9px 6px; position: relative; box-sizing: border-box;
}
.cash-layout-v107 .activity .van-tab__text {
  white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.4; overflow-wrap: anywhere;
}
.cash-layout-v107 .ad-van-popup .van-popup {
  padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box; height: 100dvh; overflow-y: auto; align-items: flex-start;
}
.cash-layout-v107 .ad-van-popup .ad-popup {
  height: auto; width: min(336px, calc(100vw - 32px)); gap: 12px;
  margin: auto 0; flex: none; transform: none;
}
.cash-layout-v107 .ad-van-popup .ad-popup .ad-content { width: 100%; box-sizing: border-box; }
.cash-layout-v107 .ad-van-popup .ad-popup .ad-banner { width: 100%; height: auto; }
.cash-layout-v107 .ad-van-popup .ad-popup .ad-banner > img:not(.promo-brand) { height: auto; width: 100%; }
.cash-layout-v107 .ad-van-popup .van-tabs__wrap { height: auto; }
.cash-layout-v107 .ad-van-popup .van-tabs__nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; padding: 0;
}
.cash-layout-v107 .ad-van-popup .van-tab {
  min-width: 0; min-height: 64px; height: auto; padding: 9px 6px; box-sizing: border-box;
}
.cash-layout-v107 .ad-van-popup .van-tab__text {
  white-space: normal; overflow: visible; text-overflow: clip; max-width: none;
  text-align: center; line-height: 1.45; overflow-wrap: anywhere; font-size: 12px;
}
.cash-layout-v107 .ad-van-popup .ad-popup .check-box {
  width: auto; height: auto; min-height: 40px; margin: 0; padding: 4px 12px; box-sizing: border-box;
}
.cash-layout-v107 .ad-van-popup .ad-popup .check-box p { line-height: 1.5; padding: 0 0 0 8px; }
.cash-layout-v107 .ad-van-popup .ad-popup .btn-close {
  position: static; order: -1; flex: none; width: 36px; height: 36px;
  margin: 0 0 0 auto; background: #152238;
}
.cash-layout-v107 .ad-van-popup .ad-popup .btn-close .iconfont { font-size: 16px; }
.cash-layout-v107 .dialog-card {
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
}
.cash-layout-v107 .dialog-card h2 { padding-inline: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cash-layout-v107 .dialog-card p, .cash-layout-v107 .sidebar-link { overflow-wrap: anywhere; }
.cash-layout-v107 .sidebar-layer .popup {
  width: min(280px, 84vw); max-width: none; overflow-y: auto;
  box-sizing: border-box; padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.cash-layout-v107 .sidebar-layer .popup .popupActivity {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 10px;
}
.cash-layout-v107 .sidebar-layer .popup .sidebar-link {
  width: 100%; min-width: 0; min-height: 46px; flex: none; box-sizing: border-box;
  line-height: 1.45; overflow-wrap: normal; word-break: normal;
}
.cash-layout-v107 .sidebar-layer .sidebar-link b { width: 26px; flex: none; text-align: center; }
.cash-layout-v107 .hall-head { height: auto; min-height: 58px; padding: 12px 17px; box-sizing: border-box; }
.cash-layout-v107 .hall-head h1 { color: #f3f6fc; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.cash-layout-v107 .support-channel div { min-width: 0; }
.cash-layout-v107 .account-input-remark, .cash-layout-v107 .account-remark { line-height: 1.5; }
.cash-layout-v107 .home-quick-tools {
  display: flex; align-items: stretch; gap: 10px; width: calc(100% - 34px); margin: 10px 17px 14px; box-sizing: border-box;
}
.cash-layout-v107 .home .home-quick-tools .leftBottom {
  position: static !important; flex: 1; min-width: 0; width: auto; height: auto; min-height: 72px;
  padding: 10px 8px; background: #142238; border: 1px solid #273a55; border-radius: 10px;
  display: flex; flex-direction: column; gap: 5px; touch-action: manipulation; will-change: auto;
}
.cash-layout-v107 .home .home-quick-tools .leftBottom svg { width: 28px; height: 28px; flex: none; }
.cash-layout-v107 .home .home-quick-tools .leftBottom .red { display: none; }
.cash-layout-v107 .home-quick-tools .support-caption { font-size: 12px; line-height: 1.5; text-align: center; color: #d8e8fa; }
.cash-layout-v107 .home .home-quick-tools .adRightBottom {
  position: static !important; flex: 0 0 160px; min-width: 0; width: 160px; display: flex; align-items: center;
  gap: 5px; padding: 5px 4px; box-sizing: border-box;
  background: #142238; border: 1px solid #273a55; border-radius: 10px;
  touch-action: pan-y; will-change: auto;
}
.cash-layout-v107 .home .home-quick-tools .adRightBottom > .item {
  width: 58px; height: 64px; top: auto !important; margin: 0; flex: 0 0 58px;
}
.cash-layout-v107 .home .home-quick-tools .adRightBottom .van-swipe-item { width: 58px !important; }
.cash-layout-v107 .home .home-quick-tools .adRightBottom .van-swipe__track { width: 58px !important; }
.cash-layout-v107 .home .home-quick-tools .adRightBottom .van-swipe-item:empty,
.cash-layout-v107 .home .home-quick-tools .adRightBottom .van-swipe__indicators { display: none; }
.cash-layout-v107 .home .home-quick-tools .adRightBottom .colseBtn {
  position: static; width: 20px; height: 28px; flex: 0 0 20px; order: 1; margin-left: -4px;
  display: grid; place-items: center; background: transparent;
}
.cash-layout-v107 .home .home-quick-tools .adRightBottom .colseBtn i { font-size: 14px; line-height: 28px; }
@media (max-width: 340px) {
  .cash-layout-v107 .navbar.home-navbar .myData { padding-inline: 9px; gap: 5px; }
  .cash-layout-v107 .navbar.home-navbar .btn { gap: 5px; }
  .cash-layout-v107 .navbar.home-navbar .btn button { padding-inline: 7px; }
}
