﻿:root {
  --bg: #eceff3;
  --line: #d0d7e2;
  --text: #2f3f52;
  --side: #2a3d54;
  --side-2: #223447;
  --tab-active: #2379c9;
  --green: #57b839;
  --red: #d50303;
  --blue-line: #6f96e2;
  --sidebar-width: clamp(156px, 14vw, 220px);
  --right-3col-width: clamp(300px, 24vw, 420px);
  --right-1col-width: clamp(98px, 10vw, 140px);
  --right-wide-width: clamp(320px, 25vw, 430px);
  --menu-icon-gray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c6d0dc' d='M12 3a9 9 0 0 1 9 9v2.6A2.4 2.4 0 0 1 18.6 17H5.4A2.4 2.4 0 0 1 3 14.6V12a9 9 0 0 1 9-9z'/%3E%3Ccircle fill='%23576b82' cx='7.2' cy='9.3' r='1.15'/%3E%3Ccircle fill='%23576b82' cx='12' cy='7.5' r='1.05'/%3E%3Ccircle fill='%23576b82' cx='16.8' cy='9.3' r='1.15'/%3E%3Ccircle fill='%23576b82' cx='7' cy='13.1' r='1.05'/%3E%3Ccircle fill='%23576b82' cx='17' cy='13.1' r='1.05'/%3E%3Cpath fill='%23576b82' d='M12 12.1l4.9-2.6-3.5 3.7z'/%3E%3Ccircle fill='%23576b82' cx='12' cy='12.1' r='1.1'/%3E%3C/svg%3E");
  --menu-icon-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2333a7ff' d='M12 3a9 9 0 0 1 9 9v2.6A2.4 2.4 0 0 1 18.6 17H5.4A2.4 2.4 0 0 1 3 14.6V12a9 9 0 0 1 9-9z'/%3E%3Ccircle fill='%231f6fae' cx='7.2' cy='9.3' r='1.15'/%3E%3Ccircle fill='%231f6fae' cx='12' cy='7.5' r='1.05'/%3E%3Ccircle fill='%231f6fae' cx='16.8' cy='9.3' r='1.15'/%3E%3Ccircle fill='%231f6fae' cx='7' cy='13.1' r='1.05'/%3E%3Ccircle fill='%231f6fae' cx='17' cy='13.1' r='1.05'/%3E%3Cpath fill='%231f6fae' d='M12 12.1l4.9-2.6-3.5 3.7z'/%3E%3Ccircle fill='%231f6fae' cx='12' cy='12.1' r='1.1'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

.app-layout.sidebar-collapsed {
  --sidebar-width: 0px;
}

.sidebar {
  background: linear-gradient(180deg, var(--side), var(--side-2));
  color: #c8d5e3;
  overflow: hidden;
  min-width: 0;
}

.brand {
  height: 42px;
  line-height: 42px;
  padding: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid #3d536d;
  text-align: center;
}

.menu-group {
  border-bottom: 1px solid #3a4e66;
}

.menu-title {
  height: 47px;
  padding: 0 18px;
  background: #2f435a;
  font-size: 14px;
  color: #d7e3f0;
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.menu-title span:first-child::before,
.menu-item::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
  background-image: var(--menu-icon-gray);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.menu-title span:first-child::before {
  opacity: 0.95;
}

.menu-caret {
  font-size: 12px;
  color: #c8d5e3;
  transition: transform 180ms ease;
}

.menu-group.is-collapsed .menu-caret {
  transform: rotate(-90deg);
}

.menu-items {
  max-height: 320px;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.menu-group.is-collapsed .menu-items {
  max-height: 0;
}

.menu-item {
  display: block;
  color: #cad8e8;
  text-decoration: none;
  padding: 12px 0 12px 36px;
  font-size: 14px;
  line-height: 1;
}

.menu-item:hover {
  background: #355270;
}

.menu-item.active {
  background: #2b5e95;
  color: #fff;
}


.menu-item.active::before {
  background-image: var(--menu-icon-blue);
}

.content {
  min-width: 0;
}

.header {
  height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fold-icon {
  border: 1px solid #cdd5e0;
  border-radius: 4px;
  background: #f6f8fb;
  width: 28px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  color: #4e5f74;
  font-size: 14px;
  margin-right: 4px;
}

.header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.expire {
  color: #ef1f1f;
  font-size: 14px;
  font-weight: 700;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1f2d3c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.toolbar {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fb;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #2f3f52;
  font-size: 14px;
  font-weight: 700;
}

.toolbar input {
  width: 80px;
  height: 40px;
  border: 1px solid #d1d8e2;
  border-radius: 6px;
  background: #f6f8fb;
  text-align: center;
  font-size: 14px;
  color: #4f6075;
  padding: 0 8px;
}

.toolbar input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
}

.toolbar input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

.toolbar #jcSingleRebate,
.toolbar #jcComboRebate,
.toolbar #hgRebate {
  width: 98px;
}

.toolbar #jcStake {
  width: 76px;
}

.mini-step {
  display: none;
}

.btn {
  height: 34px;
  border: 1px solid #c6cfdb;
  border-radius: 5px;
  background: #f2f5f8;
  padding: 0 14px;
  color: #43566d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn.active {
  background: var(--tab-active);
  border-color: var(--tab-active);
  color: #fff;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn-green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.range,
.auto-refresh {
  display: inline-flex;
  gap: 0;
  align-items: center;
}

.range span,
.auto-refresh span {
  margin-right: 8px;
}

.range .btn {
  min-width: 58px;
  border-radius: 0;
}

.range .btn + .btn {
  margin-left: -1px;
}

.range .btn[data-range="all"] {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.range .btn[data-range="tomorrow"] {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.switch {
  width: 52px;
  height: 28px;
  border: 1px solid #c3ccd8;
  border-radius: 999px;
  background: #d4dce6;
  position: relative;
  cursor: pointer;
}

.switch::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  top: 2px;
  transition: transform 180ms ease;
}

.switch.on {
  background: #20b660;
}

.switch.on::after {
  transform: translateX(23px);
}

.notice {
  border-top: 1px solid #d6e9cb;
  border-bottom: 1px solid #d6e9cb;
  background: #e7f6de;
  color: #62a74a;
  height: 42px;
  line-height: 42px;
  padding: 0 24px 0 12px;
  font-size: 14px;
  position: relative;
}

.notice::after {
  content: "×";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #c2d2bd;
  font-size: 14px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-wide-width);
  gap: clamp(8px, 0.8vw, 12px);
  padding: 10px 10px 12px;
  align-items: start;
}

.sheet-wrap {
  background: #fff;
  border: 1px solid var(--blue-line);
  overflow: auto;
  max-height: calc(100vh - 147px);
  min-width: 0;
}

.sheet {
  min-width: 1080px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sheet th,
.sheet td {
  border: 1px solid var(--blue-line);
}

.sheet th {
  background: #fafcff;
  text-align: center;
  height: 58px;
  font-size: 14px;
  color: #2f4358;
}

.sheet td {
  padding: 8px;
  vertical-align: top;
  text-align: center;
  font-size: 14px;
}

.th-id {
  width: 48px;
}

.th-profit,
.th-rate {
  width: 130px;
}

.id-col {
  text-align: center;
  padding: 0;
  vertical-align: middle;
}

.id-wrap {
  min-height: 225px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
}

.id-num {
  font-size: 14px;
  color: #4a5d73;
  margin-bottom: 4px;
  font-weight: 600;
}

.status-vertical {
  display: grid;
  gap: 2px;
  justify-items: center;
  font-size: 14px;
  color: #546980;
}

.flag-stack {
  margin-top: 4px;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.flag {
  width: 16px;
  height: 16px;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  font-size: 11px;
  line-height: 14px;
}

.event-box {
  border: 1px solid #f3d4d4;
  text-align: center;
  padding: 8px 6px;
  line-height: 1.45;
  font-size: 14px;
  min-height: 225px;
  height: 100%;
}

.event-code {
  color: #f14d2f;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.event-time {
  color: #5f6f82;
  margin-bottom: 2px;
}

.event-label {
  color: #586d86;
  font-weight: 700;
  margin-top: 3px;
}

.league-line {
  color: #4a607d;
}

.league-inline {
  color: #4a607d;
  font-weight: 600;
  margin-right: 3px;
}

.league-team-line {
  color: #4a607d;
  line-height: 1.35;
  margin-bottom: 1px;
}

.league-team-line .team-vs {
  color: #445b77;
}

.team-line {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.team-home {
  color: #dd3b2c;
}

.team-vs {
  color: #445b77;
}

.team-away {
  color: #2a4f86;
}

.event-update {
  margin-top: 4px;
  color: #6b7c90;
}

.event-sep {
  width: calc(100% + 12px);
  height: 1px;
  background: #f3d4d4;
  margin: 6px 0 4px;
  margin-left: -6px;
  margin-right: -6px;
}

.market-grid {
  --odds-gap: 5px;
  display: grid;
  grid-template-columns: 132px repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: var(--odds-gap);
  font-size: 14px;
  margin-bottom: 5px;
  text-align: center;
}

.market-grid.five {
  grid-template-columns: 132px repeat(3, minmax(0, 1fr));
}

.market-grid b {
  color: #49617a;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  justify-self: center;
}

.jc-col {
  text-align: center;
  vertical-align: middle;
}

.jc-wrap {
  min-height: 225px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jc-col .market-grid {
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}

.hg-col {
  text-align: center;
  vertical-align: middle;
}

.hg-wrap {
  min-height: 225px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hg-col .market-grid {
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}

.odd {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 2px 3px;
  width: 100%;
}

.odd.hot {
  background: #d48b38;
  color: #fff;
  width: 100%;
  min-width: 52px;
  padding: 2px 8px;
  box-sizing: border-box;
  justify-self: stretch;
}

.odd.blue {
  background: #76c4f2;
  color: #fff;
  width: 100%;
  min-width: 52px;
  padding: 2px 8px;
  box-sizing: border-box;
  justify-self: stretch;
}

.market-grid .odd.blue + .odd.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.td-profit,
.td-rate {
  vertical-align: middle;
  text-align: center;
}

.profit-value {
  min-height: 225px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #6a5e4d;
  font-weight: 700;
}

.rate-wrap {
  width: 100%;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rate-value {
  font-size: 14px;
  color: #5f738a;
  font-weight: 700;
}

.mini-calc {
  border: none;
  border-radius: 3px;
  background: #5fc539;
  color: #fff;
  width: 58px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
}

.side-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  align-content: start;
  align-items: start;
  position: relative;
}

.side-col {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.panel {
  background: #e8e8e8;
  border: 0;
  align-self: start;
}

.side-col.dragging {
  z-index: 20;
  opacity: 0.9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.panel-title {
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  cursor: grab;
  user-select: none;
}

.side-col.dragging .panel-title {
  cursor: grabbing;
}

.panel-title.red {
  background: #d60202;
}

.match-toolbar {
  display: grid;
  gap: 2px;
  padding: 3px 4px 4px;
  border-bottom: 1px solid #8f8f8f;
}

.exclude-label {
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.exclude-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.exclude-state {
  color: #3297ff;
  font-weight: 700;
  font-size: 13px;
}

.exclude-side {
  color: #5f6774;
  font-weight: 700;
  font-size: 13px;
}

.exclude-side.active {
  color: #319bff;
}

.tiny-switch {
  width: 44px;
  height: 22px;
  border: 1px solid #b9c3cf;
  border-radius: 999px;
  background: #d4d9e2;
  position: relative;
  cursor: pointer;
}

.tiny-switch::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 160ms ease;
}

.tiny-switch.on {
  background: #49b35a;
}

.tiny-switch.on::after {
  transform: translateX(22px);
}

.match-list,
.plan-list,
.half-list {
  margin: 0;
  padding: 2px;
  list-style: none;
}

.match-list {
  max-height: 320px;
  overflow: hidden;
}

.match-list li {
  border: 0;
  background: #dfdfdf;
  margin-bottom: 2px;
  cursor: pointer;
}

.match-list li.active {
  background: #d7dce4;
}

.side-time {
  background: #020202;
  color: #fff;
  height: 25px;
  line-height: 25px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.side-row {
  padding: 2px 4px;
  text-align: center;
  line-height: 1.15;
}

.side-code {
  color: #36485c;
  font-weight: 700;
  font-size: 14px;
}

.match-rate {
  font-weight: 700;
  font-size: 14px;
}

.match-rate.red {
  color: #ef2020;
}

.match-rate.green {
  color: #2c9d4e;
}

.half-title {
  margin: 3px 4px;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 14px;
}

.half-block {
  border: 0;
  background: transparent;
}

.half-block.hidden {
  display: none;
}

.half-list li {
  border: 0;
  background: #d7d7d7;
  margin: 0 2px 2px;
  padding: 4px;
  text-align: center;
}

.mini-tools {
  padding: 3px;
}

.multi-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 0 2px;
  background: #e1e1e1;
  border: 0;
  padding: 2px 5px;
}

.multi-label {
  font-weight: 700;
}

.multi-input-wrap {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.mini-tools input {
  width: 74px;
  height: 24px;
  text-align: center;
  border: 0;
  background: #fff;
}

.spin-box {
  margin-left: 2px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 16px;
  height: 24px;
  border: 0;
  background: #f2f5f9;
}

.spin-box button {
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 10px;
  cursor: pointer;
  background: transparent;
}

.spin-box button:first-child {
  border-bottom: 0;
}

.full {
  width: 100%;
  margin-bottom: 2px;
}

.select-btn {
  background: #d7dce3;
  border: 0;
  color: #8d96a3;
}

.empty {
  height: 30px;
  border: 0;
  background: #e2e2e2;
  display: grid;
  place-items: center;
  color: #444;
  font-size: 13px;
}

.plan-list {
  max-height: 162px;
  overflow: hidden;
  padding-top: 3px;
}

.plan-list li {
  border: 0;
  background: #d9d9d9;
  margin-bottom: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 5px;
  font-size: 13px;
  position: relative;
}

.plan-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
  width: 100%;
}

.plan-list b {
  color: #24374f;
}

.plan-list button {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: #ff5f5f;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.side-panels.drag-active {
  user-select: none;
}

.history-tab {
  width: 100%;
  height: 31px;
  border: 0;
  background: #d50303;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: clamp(145px, 18vw, 200px);
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .side-panels {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    grid-template-rows: auto;
  }

  .sheet-wrap {
    max-height: 620px;
  }

  .sheet {
    min-width: 980px;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(78vw, 280px);
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: 10px 0 30px rgba(20, 30, 50, 0.3);
  }

  .app-layout.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .toolbar {
    font-size: 14px;
  }

  .sheet th {
    font-size: 14px;
  }

  .event-code {
    font-size: 14px;
  }

  .profit-value,
  .rate-value,
  .rate-wrap {
    min-height: 140px;
  }

  .id-wrap,
  .jc-wrap {
    min-height: 140px;
  }

  .sheet {
    min-width: 900px;
  }

  .expire {
    font-size: 14px;
  }

  .main-grid {
    padding: 8px;
  }

  .side-panels {
    grid-template-columns: 1fr;
  }
}

/* total-goals page */
.goal-gray-btn {
  background: #8f949c;
  border-color: #8f949c;
  color: #fff;
}

.goals-main-grid {
  grid-template-columns: minmax(0, 1fr) var(--right-1col-width);
  gap: 8px;
}

.goals-sheet-wrap {
  max-height: calc(100vh - 147px);
}

.goals-sheet {
  min-width: 968px;
}

.goal-id-cell {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.sheet td.goal-id-cell {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.goal-id-wrap {
  min-height: 138px;
  display: grid;
  place-items: center;
  color: #4b5f77;
  font-size: 14px;
  line-height: 1;
}

.goal-jc-cell {
  vertical-align: middle;
}

.goals-jc-wrap {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.goals-jc-row {
  --odds-gap: 3px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: var(--odds-gap);
}

.goals-jc-odds {
  --odds-gap: 0px;
}

.goals-jc-head span {
  color: #4d6078;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.goal-odd {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  line-height: 1;
  color: #4f6078;
  padding: 3px 2px;
}

.goal-odd.hot {
  background: #cd8436;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.goal-odd.blue {
  background: #7bc4ed;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.goals-jc-odds .goal-odd.hot + .goal-odd.hot,
.goals-jc-odds .goal-odd.blue + .goal-odd.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.goals-hg-row .goal-odd.blue + .goal-odd.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.goals-hg-wrap {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.goals-hg-row {
  --odds-gap: 3px;
  display: grid;
  grid-template-columns: 78px 1fr 1fr;
  align-items: center;
  text-align: center;
  gap: var(--odds-gap);
  color: #4f6078;
  font-size: 14px;
  line-height: 1;
}

.goals-hg-row b {
  color: #4a6078;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}

.goal-side-panel {
  background: #d7d7d7;
  border: 1px solid #7f7f7f;
  min-width: 0;
  align-self: start;
  padding-bottom: 4px;
}

.goal-panel-title {
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.goal-panel-title.red {
  background: #d60202;
}

.goal-match-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 512px;
  overflow-y: auto;
  background: #d7d7d7;
}

.goal-match-list li {
  background: #d7d7d7;
  margin: 0;
  border-bottom: 1px solid #8a8a8a;
  cursor: pointer;
}

.goal-match-list li.active {
  background: #d2d8df;
}

.goal-side-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 1px;
}

.goal-side-panel .side-time {
  height: 26px;
  line-height: 26px;
  font-size: 13px;
}

.goal-side-panel .side-code {
  font-size: 14px;
}

.goal-side-panel .match-rate {
  line-height: 1.2;
  margin-bottom: 3px;
}

.goal-tag {
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #ff6666;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.goal-football,
.goal-basketball {
  margin-top: 10px;
}

.goal-football.hidden,
.goal-basketball.hidden {
  display: none;
}

.goal-football-title,
.goal-basketball-title {
  font-size: 14px;
  line-height: 1;
  color: #1f1f1f;
  margin: 0 0 4px 2px;
}

.goal-football-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #888;
  background: #d7d7d7;
}

.goal-football-list li {
  padding: 5px 4px;
  text-align: center;
  border-bottom: 1px solid #9a9a9a;
}

.goal-football-list li:last-child {
  border-bottom: 0;
}

.goal-basket-card {
  border: 1px solid #888;
  background: #d7d7d7;
  padding: 5px;
  text-align: center;
}

.goal-basket-code {
  font-size: 14px;
  line-height: 1;
  color: #24374f;
}

.goal-basket-rate {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.goal-basket-rate.red {
  color: #ef2020;
}

@media (max-width: 1200px) {
  .goals-main-grid {
    grid-template-columns: 1fr;
  }

  .goal-side-panel {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .goal-id-wrap,
  .goals-jc-wrap,
  .goals-hg-wrap,
  .profit-value,
  .rate-wrap {
    min-height: 130px;
  }
}

/* football-package page */
.package-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
}

.package-filter-tag {
  border: none;
  border-radius: 4px;
  background: #9ea3aa;
  color: #fff;
  height: 31px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.package-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f4358;
  font-size: 14px;
  font-weight: 700;
}

.package-select {
  width: 220px;
  height: 38px;
  border: 1px solid #d1d8e1;
  border-radius: 6px;
  background: #f0f2f5;
  padding: 0 10px;
  color: #9ea5b0;
  font-size: 14px;
}

.package-action {
  height: 42px;
  min-width: 76px;
  border: none;
  border-radius: 6px;
  background: #3f94e7;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.package-main-grid {
  grid-template-columns: minmax(0, 1fr) clamp(108px, 10vw, 150px);
  gap: 10px;
}

.package-sheet-wrap {
  max-height: calc(100vh - 194px);
}

.package-sheet {
  min-width: 1840px;
}

.package-event-box {
  min-height: 270px;
}

.package-hg-label {
  margin-top: 4px;
}

.package-jc-wrap {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.package-jc-group {
  display: grid;
  gap: 2px;
}

.package-jc-title {
  text-align: center;
  color: #4a6079;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.package-jc-row {
  --odds-gap: 2px;
  display: grid;
  grid-template-columns: 108px repeat(3, 1fr);
  gap: var(--odds-gap);
  align-items: center;
}

.package-cell {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  color: #4b5f77;
  padding: 2px 3px;
}

.package-cell.blue {
  background: #7ac3ee;
  color: #fff;
}

.package-cell.hot {
  background: #cf8433;
  color: #fff;
}

.package-jc-row .package-cell.blue + .package-cell.hot,
.package-platform-row .package-cell.blue + .package-cell.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.package-platform-wrap {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.package-platform-row {
  --odds-gap: 2px;
  display: grid;
  grid-template-columns: 108px repeat(3, 1fr);
  gap: var(--odds-gap);
  align-items: center;
}

.package-platform-head b {
  color: #4a6079;
  text-align: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.package-side-panel {
  background: #d7d7d7;
  border: 1px solid #7f7f7f;
  min-width: 0;
  align-self: start;
}

.package-match-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 670px;
  overflow-y: auto;
  background: #d7d7d7;
}

.package-match-list li {
  background: #d7d7d7;
  border-bottom: 1px solid #838383;
  cursor: pointer;
}

.package-match-list li.active {
  background: #d2d7de;
}

.package-return {
  text-align: center;
  color: #2a9f49;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 3px;
}

@media (max-width: 1200px) {
  .package-main-grid {
    grid-template-columns: 1fr;
  }

  .package-side-panel {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .package-filter {
    flex-wrap: wrap;
  }

  .package-select {
    width: 180px;
  }

  .package-action {
    font-size: 18px;
    height: 34px;
    min-width: 64px;
  }

  .package-jc-wrap,
  .package-platform-wrap,
  .package-event-box,
  .goal-id-wrap {
    min-height: 150px;
  }
}

/* half-full page */
.half-main-grid {
  grid-template-columns: minmax(0, 1fr) var(--right-1col-width);
  gap: 10px;
}

.half-sheet-wrap {
  max-height: calc(100vh - 147px);
}

.half-sheet {
  min-width: 1774px;
}

.half-event-box {
  min-height: 240px;
}

.half-jc-wrap {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.half-jc-row {
  display: grid;
  gap: 2px;
}

.half-jc-label-row,
.half-jc-value-row {
  --odds-gap: 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--odds-gap);
  align-items: center;
}

.half-jc-label-row b {
  text-align: center;
  color: #4a6079;
  font-size: 14px;
  font-weight: 600;
}

.half-cell {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  color: #4b5f77;
  padding: 2px 3px;
}

.half-cell.blue {
  background: #7ac3ee;
  color: #fff;
}

.half-cell.hot {
  background: #cf8433;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.half-jc-value-row .half-cell.hot + .half-cell.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.half-platform-row .half-cell.blue + .half-cell.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.half-platform-wrap {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.half-platform-row {
  --odds-gap: 2px;
  display: grid;
  grid-template-columns: 124px repeat(3, minmax(0, 1fr));
  gap: var(--odds-gap);
  align-items: center;
}

.half-platform-head b {
  text-align: center;
  color: #4a6079;
  font-size: 14px;
  font-weight: 600;
}

.half-side-panel {
  background: transparent;
  border: 0;
  min-width: 0;
  align-self: start;
  padding-bottom: 0;
}

.half-all-panel {
  background: #d7d7d7;
  border: 1px solid #7f7f7f;
}

.half-match-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 500px;
  overflow-y: auto;
  background: #d7d7d7;
}

.half-match-list li {
  background: #d7d7d7;
  border-bottom: 1px solid #838383;
  cursor: pointer;
}

.half-match-list li.active {
  background: #d2d7de;
}

.half-side-panel .side-time {
  height: 26px;
  line-height: 26px;
  font-size: 13px;
}

.half-side-panel .side-code {
  font-size: 14px;
}

.half-side-panel .match-rate {
  line-height: 1.2;
  margin-bottom: 3px;
}

.half-sub-section {
  margin-top: 10px;
}

.half-sub-section.hidden {
  display: none;
}

.half-sub-title {
  margin: 0 0 4px 2px;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.half-sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #888;
  background: #d7d7d7;
}

.half-sub-list li {
  padding: 4px 3px;
  text-align: center;
  border-bottom: 1px solid #9a9a9a;
}

.half-sub-list li:last-child {
  border-bottom: 0;
}

.half-sub-code {
  font-size: 14px;
  color: #24374f;
  line-height: 1.1;
}

.half-sub-rate {
  font-size: 14px;
  line-height: 1.2;
  color: #ef2020;
  font-weight: 700;
}

.half-combo-legs {
  display: grid;
  gap: 1px;
  justify-items: center;
  color: #24374f;
  font-size: 14px;
  line-height: 1.1;
}

@media (max-width: 1200px) {
  .half-main-grid {
    grid-template-columns: 1fr;
  }

  .half-side-panel {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .half-jc-wrap,
  .half-platform-wrap,
  .half-event-box {
    min-height: 140px;
  }
}

/* basketball-combo page */
.basket-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
}

.basket-filter-tag {
  border: none;
  border-radius: 4px;
  background: #9ea3aa;
  color: #fff;
  height: 31px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.basket-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f4358;
  font-size: 14px;
  font-weight: 700;
}

.basket-select {
  width: 220px;
  height: 38px;
  border: 1px solid #d1d8e1;
  border-radius: 6px;
  background: #f0f2f5;
  padding: 0 10px;
  color: #9ea5b0;
  font-size: 14px;
}

.basket-action {
  height: 42px;
  min-width: 76px;
  border: none;
  border-radius: 6px;
  background: #3f94e7;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.basket-main-grid {
  grid-template-columns: minmax(0, 1fr) var(--right-1col-width);
  gap: 10px;
}

.basket-sheet-wrap {
  max-height: calc(100vh - 194px);
}

.basket-sheet {
  min-width: 1844px;
}

.basket-jc-row {
  grid-template-columns: 104px repeat(2, 1fr);
}

.basket-platform-row {
  grid-template-columns: 102px repeat(3, 1fr);
}

.basket-side-panel {
  background: transparent;
  min-width: 0;
  align-self: start;
}

.basket-side-panel .side-time {
  height: 26px;
  line-height: 26px;
  font-size: 13px;
}

.basket-side-panel .side-code {
  font-size: 14px;
}

.basket-side-panel .match-rate {
  line-height: 1.2;
  margin-bottom: 3px;
}

@media (max-width: 1200px) {
  .basket-main-grid {
    grid-template-columns: 1fr;
  }

  .basket-side-panel {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .basket-filter {
    flex-wrap: wrap;
  }

  .basket-select {
    width: 180px;
  }

  .basket-action {
    font-size: 12px;
    height: 34px;
    min-width: 64px;
  }
}

/* basketball-combo v2 */
.basketv2-main-grid {
  grid-template-columns: minmax(0, 1fr) var(--right-wide-width);
  gap: 8px;
}

.basketv2-sheet-wrap {
  max-height: calc(100vh - 147px);
}

.basketv2-sheet {
  min-width: 1454px;
}

.basketv2-event-box {
  min-height: 224px;
}

.basketv2-market-wrap {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.basketv2-market-row {
  --odds-gap: 3px;
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  align-items: stretch;
  gap: var(--odds-gap);
}

.basketv2-label {
  color: #4a6078;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 3px;
}

.basketv2-label.blue {
  background: #7ac3ee;
  color: #fff;
}

.basketv2-odd {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #4a6078;
  text-align: center;
  font-size: 14px;
  padding: 2px 3px;
}

.basketv2-odd.hot {
  background: #cf8433;
  color: #fff;
}

.basketv2-market-row .basketv2-label.blue + .basketv2-odd.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.basketv2-right {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.basketv2-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.basketv2-panel {
  background: #d7d7d7;
  border: 1px solid #828282;
}

.basketv2-match-scroll {
  max-height: 612px;
  overflow-y: auto;
  background: #d7d7d7;
}

.basketv2-time {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  height: 26px;
}

.basketv2-match-item {
  border-bottom: 1px solid #888;
  background: #d7d7d7;
  text-align: center;
  padding: 3px 2px 4px;
}

.basketv2-match-code {
  color: #24374f;
  font-size: 14px;
  line-height: 1.1;
}

.basketv2-code-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.basketv2-badge {
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 4px;
  background: #ff6e73;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.basketv2-match-rate {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.basketv2-match-rate.red {
  color: #e61d1d;
}

.basketv2-match-rate.green {
  color: #1f9c3e;
}

.basketv2-tools {
  padding: 3px 4px;
  --tool-field-width: 100%;
}

.basketv2-multi-label {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.basketv2-multi-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: var(--tool-field-width);
  height: 34px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6px;
  border: 1px solid #cbd1da;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.basketv2-multi-input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  border-right: 1px solid #d6dbe2;
  background: #fff;
  text-align: center;
  font-size: 14px;
  color: #5a6678;
  padding: 0 6px;
}

.basketv2-spin-box {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 0;
  background: #f2f4f8;
  overflow: hidden;
}

.basketv2-spin-box button {
  border: 0;
  border-bottom: 1px solid #d6dbe2;
  background: transparent;
  padding: 0;
  font-size: 9px;
  cursor: pointer;
  color: #8f98a7;
}

.basketv2-spin-box button:last-child {
  border-bottom: 0;
}

.basketv2-picker {
  position: relative;
  width: var(--tool-field-width);
  min-height: 54px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6px;
  border: 1px solid #b6bec8;
  border-radius: 6px;
  background: #edf1f5;
  color: #8c95a2;
  font-size: 14px;
  padding: 6px 34px 6px 8px;
  cursor: pointer;
}

.basketv2-picker.is-open {
  border-color: #6fb0ef;
  background: #f8fbff;
}

.basketv2-picker.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.basketv2-picker-placeholder {
  color: #b1b8c3;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basketv2-picker-caret {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8bfca;
  font-size: 12px;
  pointer-events: none;
}

.basketv2-picker.is-open .basketv2-picker-caret {
  transform: translateY(-50%) rotate(180deg);
}

.basketv2-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 40px;
}

.basketv2-chip {
  height: 26px;
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  background: #f4f6f9;
  color: #8a95a2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  white-space: nowrap;
  line-height: 24px;
}

.basketv2-chip-remove {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9cfd7;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
}

.basketv2-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  width: 100%;
  max-height: 284px;
  overflow-y: auto;
  border: 1px solid #e2e5ea;
  border-radius: 4px;
  background: #f4f6f8;
  box-shadow: 0 6px 14px rgba(45, 58, 76, 0.18);
  z-index: 18;
}

.basketv2-option {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #6a7685;
  font-size: 14px;
}

.basketv2-option:hover {
  background: #e8edf3;
}

.basketv2-option.is-active {
  color: #4f5f74;
}

.basketv2-empty {
  border: 1px solid #8f8f8f;
  background: #d5d5d5;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #2f2f2f;
}

.combo-result-list {
  display: grid;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 4px;
}

.combo-result-item {
  display: block;
  width: 100%;
  border: 1px solid #7f7f7f;
  background: #cdced1;
  padding: 0;
  text-align: center;
  cursor: pointer;
  color: #24374f;
  font: inherit;
}

.combo-result-item.active {
  outline: 1px solid #6ea8ea;
}

.combo-result-head {
  height: 26px;
  line-height: 26px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.combo-result-body {
  padding: 4px 2px 6px;
}

.combo-result-line {
  color: #253951;
  font-size: 14px;
  line-height: 1.2;
}

.combo-result-rate {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.combo-result-rate.red {
  color: #ef2020;
}

.combo-result-rate.green {
  color: #259d49;
}

.basketv2-save-wrap {
  padding: 4px;
}

.basketv2-save-card {
  min-height: 120px;
  border: 1px solid #838383;
  background: #d0d0d0;
  text-align: center;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.basketv2-save-lines {
  line-height: 1.18;
  font-size: 14px;
  color: #1d2f47;
}

.basketv2-save-delete {
  margin-top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #ff6666;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.basketv2-history {
  width: 100%;
  height: 40px;
  border: none;
  background: #d50303;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.basketv2-foot-stack {
  display: grid;
  gap: 6px;
}

.basketv2-foot-single {
  margin-top: 0;
}

.basketv2-foot-title {
  margin: 0 0 4px 2px;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
}

.basketv2-foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  border: 1px solid #888;
  background: #d7d7d7;
}

.basketv2-foot-list li {
  width: 112px;
  flex: 0 0 112px;
  border-right: 1px solid #8f8f8f;
  text-align: center;
  padding: 3px 2px;
}

.basketv2-foot-list li:last-child {
  border-right: 0;
}

.basketv2-foot-list-vertical {
  display: inline-block;
}

.basketv2-foot-list-vertical li {
  border-right: 0;
  border-bottom: 1px solid #8f8f8f;
}

.basketv2-foot-list-vertical li:last-child {
  border-bottom: 0;
}

.basketv2-foot-code {
  color: #24374f;
  font-size: 14px;
  line-height: 1.1;
}

.basketv2-foot-rate {
  color: #ef2020;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .basketv2-main-grid {
    grid-template-columns: 1fr;
  }

  .basketv2-right {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .basketv2-panels {
    grid-template-columns: 1fr;
  }
}

/* basketball-package page */
.basketpkg-main-grid {
  grid-template-columns: minmax(0, 1fr) var(--right-1col-width);
  gap: 8px;
}

.basketpkg-sheet-wrap {
  max-height: calc(100vh - 147px);
}

.basketpkg-sheet {
  min-width: 1704px;
}

.basketpkg-event-box {
  min-height: 306px;
}

.basketpkg-jc-wrap {
  min-height: 306px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.basketpkg-jc-group {
  display: grid;
  gap: 3px;
}

.basketpkg-jc-title {
  text-align: center;
  color: #4a6079;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.basketpkg-jc-row {
  --odds-gap: 3px;
  display: grid;
  grid-template-columns: 112px repeat(2, minmax(0, 1fr));
  gap: var(--odds-gap);
  align-items: center;
}

.basketpkg-platform-wrap {
  min-height: 306px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.basketpkg-platform-row {
  --odds-gap: 3px;
  display: grid;
  grid-template-columns: 112px repeat(2, minmax(0, 1fr));
  gap: var(--odds-gap);
  align-items: center;
}

.basketpkg-platform-head b {
  color: #4a6079;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.basketpkg-cell {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  color: #4b5f77;
  padding: 2px 3px;
}

.basketpkg-cell.blue {
  background: #7ac3ee;
  color: #fff;
}

.basketpkg-cell.hot {
  background: #cf8433;
  color: #fff;
}

.basketpkg-jc-row .basketpkg-cell.blue + .basketpkg-cell.hot,
.basketpkg-platform-row .basketpkg-cell.blue + .basketpkg-cell.hot {
  margin-left: calc(var(--odds-gap) * -1);
}

.basketpkg-right {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.basketpkg-match-scroll {
  max-height: 518px;
}

.basketpkg-foot-single {
  margin-top: 2px;
}

.basketpkg-foot-title {
  margin: 0 0 4px 2px;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
}

.basketpkg-foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #888;
  background: #d7d7d7;
}

.basketpkg-foot-list li {
  padding: 5px 4px;
  text-align: center;
  border-bottom: 1px solid #9a9a9a;
}

.basketpkg-foot-list li:last-child {
  border-bottom: 0;
}

.basketpkg-foot-code {
  color: #24374f;
  font-size: 14px;
  line-height: 1.1;
}

.basketpkg-foot-rate {
  color: #ef2020;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .basketpkg-main-grid {
    grid-template-columns: 1fr;
  }

  .basketpkg-right {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .basketpkg-event-box,
  .basketpkg-jc-wrap,
  .basketpkg-platform-wrap {
    min-height: 190px;
  }

  .basketpkg-jc-title {
    font-size: 14px;
  }
}

/* jc-hg-adapter page */
.adapter-note {
  height: 40px;
  line-height: 40px;
  padding: 0 24px 0 12px;
  color: #98a0ad;
  border-bottom: 1px solid #e2e6ec;
  background: #f3f5f8;
  font-size: 14px;
  position: relative;
}

.adapter-note::after {
  content: "×";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ced3dc;
  font-size: 14px;
}

.adapter-passbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 6px;
}

.adapter-tag {
  height: 34px;
  min-width: 92px;
  border: 1px solid #b6bcc6;
  border-radius: 6px;
  background: #9ca2ab;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: default;
}

.adapter-pass-select {
  width: 252px;
  height: 42px;
  border: 1px solid #96c3ef;
  border-radius: 6px;
  background: #f2f4f7;
  color: #6e7784;
  padding: 0 16px;
  font-size: 14px;
}

.adapter-wrap {
  padding: 48px 10px 16px;
}

.adapter-card {
  width: min(910px, 100%);
  margin: 0 auto;
  border: 1px solid #e0e2e7;
  border-radius: 4px;
  background: #f8f9fb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 20px 22px 24px;
}

.adapter-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f7f9fb;
}

.adapter-table th,
.adapter-table td {
  border: 1px solid #a2c2f0;
  text-align: center;
  font-size: 14px;
  color: #2f4358;
  padding: 10px 8px;
}

.adapter-table thead th {
  font-size: 14px;
  font-weight: 700;
  background: #f6f8fb;
}

.adapter-table tbody > tr > th {
  width: 157px;
  font-weight: 700;
  font-size: 14px;
}

.adapter-field-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.adapter-field-row label {
  font-size: 14px;
  font-weight: 700;
  color: #2f4358;
}

.adapter-field-row input {
  width: 150px;
  height: 34px;
  border: 1px solid #d4dce6;
  border-radius: 6px;
  background: #eef2f7;
  text-align: center;
  color: #667488;
  font-size: 14px;
}

.adapter-odds-cell {
  min-height: 46px;
}

.adapter-odd-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.adapter-mul {
  color: #2f4358;
  font-size: 14px;
  font-weight: 700;
}

.adapter-odd-step {
  display: grid;
  grid-template-columns: 36px 58px 36px;
  align-items: center;
}

.adapter-odd-step button {
  width: 36px;
  height: 34px;
  border: 1px solid #d6dce5;
  background: #eef2f7;
  color: #8f9aab;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.adapter-odd-step input {
  width: 58px;
  height: 34px;
  border: 1px solid #d6dce5;
  border-left: 0;
  border-right: 0;
  background: #f5f7fa;
  text-align: center;
  font-size: 14px;
  color: #667488;
}

.adapter-bet-row th,
.adapter-bet-row td {
  background: #d3deeb;
}

.adapter-bet-label {
  color: #ff1f1f !important;
}

.adapter-bet-input {
  width: 150px;
  height: 34px;
  border: 1px solid #d4dce6;
  border-radius: 6px;
  background: #f6f8fb;
  text-align: center;
  color: #667488;
  font-size: 14px;
}

.adapter-red {
  color: #ff1f1f;
  font-weight: 700;
}

.adapter-table #profitValue,
.adapter-table #jcRebateAmount,
.adapter-table #hgRebateAmount,
.adapter-table #jcWinAmount,
.adapter-table #hgWinAmount {
  font-weight: 700;
  color: #24374f;
}

.adapter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.adapter-calc-btn {
  width: 78px;
  height: 42px;
  border: none;
  border-radius: 6px;
  background: #3f94e7;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .adapter-note {
    font-size: 13px;
  }

  .adapter-pass-select {
    width: 220px;
    font-size: 14px;
  }

  .adapter-wrap {
    padding-top: 14px;
  }

  .adapter-card {
    padding: 10px;
  }

  .adapter-table th,
  .adapter-table td {
    padding: 6px 4px;
    font-size: 13px;
  }

  .adapter-table thead th {
    font-size: 18px;
  }
}

/* sound settings modal */
body.sound-modal-open {
  overflow: hidden;
}

.sound-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}

.sound-modal-backdrop[hidden] {
  display: none !important;
}

.sound-modal {
  width: min(1400px, calc(100vw - 24px));
  max-height: calc(100vh - 20px);
  background: #f7f8fa;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sound-modal-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.sound-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #2f2f2f;
}

.sound-modal-close {
  border: none;
  background: transparent;
  color: #8f95a0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.sound-modal-body {
  padding: 0 22px;
  overflow: auto;
}

.sound-modal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f7f8fa;
}

.sound-modal-table th,
.sound-modal-table td {
  border: 1px solid #6f96e2;
  text-align: center;
  padding: 10px 8px;
  color: #4a4f57;
  font-size: 14px;
}

.sound-modal-table thead th {
  font-size: 14px;
  font-weight: 600;
}

.sound-game-name {
  font-size: 14px;
  color: #4a4f57;
}

.sound-toggle {
  width: 72px;
  height: 38px;
  border: 1px solid #c3ccd8;
  border-radius: 999px;
  background: #d4dce6;
  position: relative;
  cursor: pointer;
}

.sound-toggle::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  top: 3px;
  transition: transform 160ms ease;
}

.sound-toggle.on {
  background: #1ac65f;
  border-color: #1ac65f;
}

.sound-toggle.on::after {
  transform: translateX(33px);
}

.sound-options-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sound-opt {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 0;
}

.sound-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #c8ced8;
  background: #f7f8fa;
  position: relative;
}

.sound-radio.on {
  border-color: #3f94e7;
  background: #3f94e7;
}

.sound-radio.on::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sound-chip {
  min-width: 104px;
  height: 38px;
  border-radius: 6px;
  background: #8f949c;
  color: #fff;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.sound-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 22px 18px;
}

.sound-save-btn,
.sound-cancel-btn {
  width: 124px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.sound-save-btn {
  border: none;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

.sound-cancel-btn {
  border: 1px solid #c9ced7;
  background: #f3f4f6;
  color: #565f6c;
}

@media (max-width: 900px) {
  .sound-modal {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
  }

  .sound-modal-header {
    height: 54px;
    padding: 0 12px;
  }

  .sound-modal-header h3 {
    font-size: 22px;
  }

  .sound-modal-close {
    font-size: 28px;
  }

  .sound-modal-body {
    padding: 0 10px;
  }

  .sound-modal-table th,
  .sound-modal-table td {
    padding: 8px 6px;
  }

.sound-modal-table thead th,
.sound-game-name {
    font-size: 18px;
  }

  .sound-options-row {
    gap: 8px;
  }

  .sound-chip {
    min-width: 92px;
    height: 34px;
    font-size: 12px;
    padding: 0 8px;
  }

  .sound-radio {
    width: 18px;
    height: 18px;
  }
}

/* single calculator modal */
body.single-calc-open {
  overflow: hidden;
}

.single-calc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.single-calc-backdrop[hidden] {
  display: none !important;
}

.single-calc-panel {
  width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 34px);
  background: #f5f6f8;
  border: 1px solid #d6dbe4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  border-radius: 2px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.single-calc-header {
  height: 54px;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.single-calc-header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  color: #343c47;
  font-weight: 700;
}

.single-calc-close {
  border: none;
  background: transparent;
  color: #8b94a2;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.single-calc-body {
  padding: 0 14px;
  overflow: auto;
}

.single-calc-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f7f8fa;
}

.single-calc-table td,
.single-calc-table th {
  border: 1px solid #8eb6ef;
  padding: 8px 6px;
  text-align: center;
  color: #4b5564;
  font-size: 13px;
}

.single-calc-table td:first-child {
  font-weight: 700;
}

#singleCalcMatchInfo {
  font-size: 14px;
  font-weight: 600;
  color: #5b6370;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#singleCalcMatchInfo .home {
  color: #0f45d7;
}

#singleCalcMatchInfo .away {
  color: #eb2f2f;
}

.single-calc-method {
  width: 100%;
  height: 40px;
  border: 1px solid #d3dae5;
  border-radius: 6px;
  background: #f4f6f9;
  font-size: 13px;
  color: #606b7c;
  padding: 0 10px;
}

.single-calc-shot {
  margin-left: 10px;
  height: 30px;
  border: none;
  border-radius: 5px;
  background: #3f94e7;
  color: #fff;
  font-size: 13px;
  padding: 0 12px;
  cursor: pointer;
}

.single-calc-odd-label {
  color: #08a977;
  font-weight: 700;
  margin-bottom: 6px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-calc-stepper {
  display: inline-grid;
  grid-template-columns: 34px minmax(64px, 1fr) 34px;
  align-items: stretch;
  width: min(170px, 100%);
}

.single-calc-stepper button {
  border: 1px solid #d4dae3;
  background: #eceff4;
  color: #6d7889;
  font-size: 15px;
  cursor: pointer;
}

.single-calc-stepper input {
  border: 1px solid #d4dae3;
  border-left: 0;
  border-right: 0;
  background: #f6f8fb;
  height: 36px;
  text-align: center;
  color: #5f6979;
  font-size: 13px;
}

.single-calc-stake-row {
  background: #dce7f6;
}

.single-calc-stake-row td {
  color: #ff1f1f;
  font-weight: 700;
}

.single-calc-stake-row td input {
  width: min(136px, 100%);
  height: 38px;
  border: 1px solid #d2d9e3;
  border-radius: 6px;
  background: #f9fafc;
  text-align: center;
  font-size: 13px;
  color: #5a6677;
}

#singleCalcProfit {
  font-size: 16px;
  color: #4f5c6f;
  font-weight: 700;
}

.single-calc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px 16px;
}

.single-calc-btn {
  min-width: 100px;
  height: 40px;
  border: 1px solid #cfd6e1;
  border-radius: 6px;
  background: #f3f5f8;
  color: #5a6472;
  font-size: 13px;
  cursor: pointer;
}

.single-calc-btn.primary {
  border: none;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .single-calc-panel {
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
  }

  .single-calc-header {
    height: 46px;
    padding: 0 12px;
  }

  .single-calc-header h3 {
    font-size: 15px;
  }

  .single-calc-body {
    padding: 0 8px;
  }

  .single-calc-table td,
  .single-calc-table th {
    padding: 6px 4px;
    font-size: 12px;
  }

  .single-calc-table {
    min-width: 860px;
  }
}

/* combo calculator modal */
body.combo-calc-open {
  overflow: auto;
}

.combo-calc-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2160;
  pointer-events: none;
}

.combo-calc-backdrop[hidden] {
  display: none !important;
}

.combo-calc-panel {
  width: 100%;
  height: 306px;
  background: #f5f6f8;
  border-top: 1px solid #d5dbe4;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.combo-calc-header {
  height: 44px;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce2ec;
  background: #f6f8fb;
}

.combo-calc-header h3 {
  margin: 0;
  font-size: 14px;
  color: #313a46;
  font-weight: 700;
}

.combo-calc-close {
  border: none;
  background: transparent;
  color: #8e97a3;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.combo-calc-body {
  overflow: hidden;
  padding: 0 7px 7px;
}

.combo-calc-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 8px;
  align-items: stretch;
}

.combo-calc-left {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  padding-top: 6px;
  height: 100%;
}

.combo-calc-left-table {
  border: 1px solid #8eb6ef;
  background: #f8f9fb;
  overflow: auto;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.combo-left-row {
  display: grid;
  grid-template-columns: minmax(162px, 36%) minmax(160px, 32%) minmax(170px, 32%);
  min-height: 72px;
  flex: 1 1 0;
  border-bottom: 1px solid #8eb6ef;
}

.combo-left-row:last-child {
  border-bottom: 0;
}

.combo-left-event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  border-right: 1px solid #8eb6ef;
  text-align: center;
  color: #4e5c71;
  font-size: 12px;
  line-height: 1.18;
}

.combo-left-code {
  color: #ea3d09;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.combo-left-time {
  margin-bottom: 3px;
}

.combo-left-league {
  margin-bottom: 2px;
  color: #607089;
}

.combo-left-teams {
  margin-bottom: 3px;
}

.combo-left-teams .home {
  color: #ef2f2f;
  font-weight: 700;
}

.combo-left-teams .away {
  color: #1e47d7;
  font-weight: 700;
}

.combo-left-jc,
.combo-left-hg {
  border-right: 1px solid #8eb6ef;
  padding: 4px 5px 2px;
}

.combo-left-hg {
  border-right: 0;
}

.combo-left-jc .market-grid,
.combo-left-hg .market-grid {
  --odds-gap: 4px;
  grid-template-columns: 46px repeat(3, minmax(0, 1fr));
  margin-bottom: 3px;
  gap: var(--odds-gap);
  font-size: 11px;
}

.combo-left-jc .market-grid b,
.combo-left-hg .market-grid b {
  font-size: 11px;
  font-weight: 700;
  color: #5d6f88;
}

.combo-left-jc .odd,
.combo-left-hg .odd {
  min-height: 18px;
  padding: 1px 2px;
  font-size: 11px;
}

.combo-calc-left-actions {
  display: flex;
  justify-content: flex-start;
}

.combo-calc-left-refresh {
  height: 22px;
  min-width: 44px;
  border: 0;
  border-radius: 2px;
  background: #3f94e7;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.combo-calc-right {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding-top: 6px;
  min-width: 0;
  overflow: auto;
}

.combo-calc-table {
  width: 100%;
  min-width: 778px;
  height: auto;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f8f9fb;
}

.combo-calc-table td {
  border: 1px solid #8eb6ef;
  text-align: center;
  vertical-align: middle;
  color: #4f5c6e;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 3px;
}

.combo-calc-plan-id {
  flex: 1 1 auto;
  min-width: 0;
  color: #56647a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-calc-shot {
  height: 24px;
  width: 46px;
  min-width: 46px;
  border: 0;
  border-radius: 2px;
  background: #3f94e7;
  color: #fff;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.combo-calc-title-row td {
  padding: 0;
}

.combo-calc-title-wrap {
  padding: 0 !important;
}

.combo-calc-title-grid {
  display: grid;
  grid-template-columns: 300px 239px 239px;
  align-items: center;
}

.combo-calc-title-block {
  min-height: 30px;
  padding: 3px 8px;
  border-right: 1px solid #8eb6ef;
}

.combo-calc-title-block:last-child {
  border-right: 0;
}

.combo-calc-title-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.combo-calc-title-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3b4658;
  font-weight: 700;
}

.combo-calc-title-type span {
  white-space: nowrap;
}

.combo-calc-title-type select {
  width: 128px;
  height: 24px;
  border: 1px solid #d4dae3;
  border-radius: 2px;
  background: #f4f6f9;
  color: #8d97a8;
  font-size: 11px;
  padding: 0 4px;
}

.combo-calc-point-row td {
  padding: 3px 4px;
  color: #4f5968;
  font-weight: 700;
}

.combo-calc-point-stepper {
  display: inline-grid;
  grid-template-columns: minmax(90px, 1fr) 34px;
  width: 142px;
  height: 30px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid #d4dae3;
  border-radius: 7px;
  background: #f6f8fb;
  overflow: hidden;
}

.combo-calc-point-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f8fb;
  color: #5f6979;
  text-align: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  appearance: textfield;
}

.combo-calc-point-input::-webkit-inner-spin-button,
.combo-calc-point-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.combo-calc-point-spin {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid #d4dae3;
  background: #f0f3f7;
}

.combo-calc-point-spin button {
  border: 0;
  border-bottom: 1px solid #d4dae3;
  background: transparent;
  color: #9aa4b2;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.combo-calc-point-spin button:last-child {
  border-bottom: 0;
}

.combo-calc-point-spin button:hover {
  background: #e8edf3;
}

.combo-calc-cross {
  display: inline-block;
  margin: 0 6px;
  color: #1c1f26;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}

.combo-calc-jc-odds-cell {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.combo-calc-jc-odds-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.combo-calc-jc-odds-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.combo-calc-table tr:nth-child(3) td {
  padding-top: 3px;
  padding-bottom: 3px;
}

.combo-calc-row-head {
  color: #4f5968;
  font-weight: 700;
  white-space: nowrap;
}

.combo-calc-odd-label {
  color: #08a677;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
  min-height: 15px;
  line-height: 1.2;
  white-space: nowrap;
  display: none;
}

.combo-calc-stepper {
  display: inline-grid;
  grid-template-columns: 24px minmax(40px, 1fr) 24px;
  width: min(106px, 100%);
}

.combo-calc-stepper button {
  border: 1px solid #d4dae3;
  background: #eceff4;
  color: #657185;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.combo-calc-stepper input {
  height: 22px;
  border: 1px solid #d4dae3;
  border-left: 0;
  border-right: 0;
  background: #f6f8fb;
  color: #5f6979;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.combo-calc-stepper input::-webkit-inner-spin-button,
.combo-calc-stepper input::-webkit-outer-spin-button {
  opacity: 0;
}

.combo-calc-stake-row {
  background: #dce7f6;
}

.combo-calc-stake-row .combo-calc-row-head {
  color: #ff1a1a;
}

.combo-calc-stake-row td {
  color: #ff1f1f;
  font-weight: 700;
}

.combo-calc-table tr:nth-child(5) td {
  color: #7a7d85;
}

.combo-calc-table tr:nth-child(6) td {
  color: #2e3644;
  font-weight: 700;
}

.combo-calc-stake-row input {
  width: min(160px, 100%);
  height: 22px;
  border: 1px solid #d2d9e3;
  border-radius: 4px;
  background: #f9fafc;
  text-align: center;
  color: #5a6578;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#comboCalcProfitJc,
#comboCalcProfitHg1,
#comboCalcProfitHg2 {
  font-size: 13px;
  font-weight: 700;
  color: #505d70;
}

.combo-calc-star {
  margin-left: 2px;
  color: #3e4a5a;
  font-size: 14px;
  line-height: 1;
}

.combo-calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  flex-wrap: wrap;
  border: 1px solid #8eb6ef;
  border-top: 0;
  background: #f8f9fb;
}

.combo-calc-profit-mode {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: #4f5d72;
  font-size: 12px;
  font-weight: 700;
}

.combo-calc-profit-mode input[type="number"],
.combo-calc-profit-mode input[type="text"] {
  height: 26px;
  border: 1px solid #cfd6e1;
  border-radius: 5px;
  background: #f5f7fa;
  color: #5d6a7d;
  padding: 0 8px;
  font-size: 12px;
}

#comboCalcCustomRate {
  width: 78px;
  text-align: center;
  font-size: 12px;
}

#comboCalcRemark {
  width: 150px;
  font-size: 12px;
}

.combo-calc-avg-switch {
  width: 44px;
  height: 24px;
  border: 1px solid #c8d4df;
  border-radius: 999px;
  background: #d4dee8;
  position: relative;
  cursor: pointer;
}

.combo-calc-avg-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.combo-calc-avg-switch.on {
  background: #22be63;
  border-color: #22be63;
}

.combo-calc-avg-switch.on::after {
  transform: translateX(19px);
}

.combo-calc-custom-stepper {
  display: inline-grid;
  grid-template-columns: 28px 1fr 28px;
  height: 26px;
  border: 1px solid #cfd6e1;
  border-radius: 5px;
  overflow: hidden;
}

.combo-calc-custom-stepper button {
  border: 0;
  background: #eef2f7;
  color: #707c8d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.combo-calc-custom-stepper #comboCalcCustomRate {
  border: 0;
  border-left: 1px solid #d7dde7;
  border-right: 1px solid #d7dde7;
  border-radius: 0;
  height: 100%;
  width: 78px;
  padding: 0;
  background: #f5f7fa;
  appearance: textfield;
}

.combo-calc-custom-stepper #comboCalcCustomRate::-webkit-inner-spin-button,
.combo-calc-custom-stepper #comboCalcCustomRate::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.combo-calc-footer-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.combo-calc-btn {
  min-width: 78px;
  height: 30px;
  border: 1px solid #cfd6e1;
  border-radius: 5px;
  background: #f3f5f8;
  color: #5b6574;
  font-size: 12px;
  cursor: pointer;
}

.combo-calc-btn.primary {
  border: none;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

.combo-calc-btn.save {
  border: none;
  background: #5ab53e;
  color: #fff;
  font-weight: 700;
}

.combo-calc-btn.close {
  border: none;
  background: #f05b5b;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .combo-calc-backdrop {
    left: 0;
  }

  .combo-calc-panel {
    height: 420px;
  }

  .combo-calc-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 45%) minmax(0, 1fr);
  }

  .combo-calc-table {
    min-width: 778px;
  }

  .combo-calc-left-table {
    max-height: 200px;
  }

  .combo-calc-title-grid {
    grid-template-columns: 300px 239px 239px;
  }

  .combo-calc-title-type select {
    width: 128px;
  }
}

/* total-goals calculator modal */
body.goal-calc-open {
  overflow: hidden;
}

.goal-calc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2150;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}

.goal-calc-backdrop[hidden] {
  display: none !important;
}

.goal-calc-panel {
  width: min(1880px, calc(100vw - 18px));
  max-height: calc(100vh - 16px);
  background: #f5f6f8;
  border: 1px solid #d6dbe4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.goal-calc-header {
  height: 64px;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-calc-header h3 {
  margin: 0;
  font-size: 18px;
  color: #313a46;
  font-weight: 700;
}

.goal-calc-close {
  border: 0;
  background: transparent;
  color: #8c95a3;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.goal-calc-body {
  padding: 0 18px;
  overflow: auto;
}

.goal-calc-table {
  width: 100%;
  min-width: 1560px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f8f9fb;
}

.goal-calc-table td {
  border: 1px solid #8eb6ef;
  text-align: center;
  color: #4d596a;
  font-size: 14px;
  padding: 10px 6px;
}

#goalCalcMatchInfo {
  font-size: 22px;
  font-size: clamp(14px, 1.2vw, 22px);
  font-weight: 700;
  color: #5a6370;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#goalCalcMatchInfo .home {
  color: #0d47d8;
  font-size: inherit;
  font-weight: inherit;
}

#goalCalcMatchInfo .away {
  color: #ef2d2d;
  font-size: inherit;
  font-weight: inherit;
}

#goalCalcMatchInfo .league {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.goal-calc-section-title {
  font-size: 20px;
  font-size: clamp(14px, 1.1vw, 20px);
  color: #4e5a6e;
  font-weight: 700;
  line-height: 1.05;
}

.goal-calc-top-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.goal-calc-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #586271;
  font-weight: 700;
  white-space: nowrap;
}

.goal-calc-inline > input {
  width: 136px;
  height: 40px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #f4f6f9;
  text-align: center;
  font-size: 14px;
  color: #596476;
}

.goal-calc-inline-hg {
  justify-content: center;
}

.goal-calc-copy-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.goal-calc-copy-tools button,
.goal-calc-odd-tools button {
  height: 28px;
  min-width: 30px;
  border: 1px solid #95b37d;
  border-radius: 6px;
  background: #f8faf6;
  color: #62a73e;
  font-size: 14px;
  font-size: clamp(11px, 0.7vw, 14px);
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
}

#goalCopyStake,
.goal-calc-odd-tools button[data-goal-odd-copy] {
  border-color: #dfa6a6;
  color: #d67272;
}

.goal-calc-odd-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.goal-calc-odd-title {
  font-size: 20px;
  font-size: clamp(14px, 1.2vw, 20px);
  color: #08a677;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 4px;
  min-height: 1.1em;
}

.goal-calc-stepper {
  display: inline-grid;
  grid-template-columns: 34px minmax(54px, 1fr) 34px;
  width: min(180px, 100%);
}

.goal-calc-stepper button {
  border: 1px solid #d4dae3;
  background: #eceff4;
  color: #657185;
  font-size: 16px;
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1;
  cursor: pointer;
}

.goal-calc-stepper input {
  height: 40px;
  border: 1px solid #d4dae3;
  border-left: 0;
  border-right: 0;
  background: #f6f8fb;
  color: #5f6979;
  text-align: center;
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

.goal-calc-row-head {
  font-size: 20px;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  color: #4f5968;
  line-height: 1.1;
}

.goal-calc-stake-row {
  background: #dce7f6;
}

.goal-calc-stake-row .goal-calc-row-head {
  color: #ff1a1a;
}

.goal-calc-stake-row input {
  width: min(160px, 100%);
  height: 40px;
  border: 1px solid #d2d9e3;
  border-radius: 8px;
  background: #f9fafc;
  text-align: center;
  color: #5a6578;
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

.goal-calc-table span {
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

#goalCalcProfit {
  font-size: 22px;
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 700;
  color: #505d70;
}

.goal-calc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 18px 18px;
}

.goal-calc-btn {
  min-width: 106px;
  height: 42px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #f3f5f8;
  color: #5b6574;
  font-size: 14px;
  cursor: pointer;
}

.goal-calc-btn.primary {
  border: 0;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .goal-calc-panel {
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
  }

  .goal-calc-body {
    padding: 0 8px;
  }

  .goal-calc-table {
    min-width: 1280px;
  }
}

/* half-full calculator modal */
body.half-calc-open {
  overflow: hidden;
}

.half-calc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2160;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}

.half-calc-backdrop[hidden] {
  display: none !important;
}

.half-calc-panel {
  width: min(1780px, calc(100vw - 18px));
  max-height: calc(100vh - 20px);
  background: #f5f6f8;
  border: 1px solid #d6dbe4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.half-calc-header {
  height: 58px;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.half-calc-header h3 {
  margin: 0;
  font-size: 18px;
  color: #313a46;
  font-weight: 700;
}

.half-calc-close {
  border: 0;
  background: transparent;
  color: #8c95a3;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.half-calc-body {
  padding: 0 14px;
  overflow: auto;
}

.half-calc-table {
  width: 100%;
  min-width: 1550px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f8f9fb;
}

.half-calc-table td {
  border: 1px solid #8eb6ef;
  text-align: center;
  color: #4d596a;
  font-size: 14px;
  padding: 8px 5px;
}

#halfCalcMatchInfo {
  font-size: 22px;
  font-size: clamp(14px, 1.2vw, 22px);
  font-weight: 700;
  color: #5a6370;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#halfCalcMatchInfo .home {
  color: #0d47d8;
  font-size: inherit;
  font-weight: inherit;
}

#halfCalcMatchInfo .away {
  color: #ef2d2d;
  font-size: inherit;
  font-weight: inherit;
}

#halfCalcMatchInfo .league {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.half-calc-section-title {
  font-size: 20px;
  font-size: clamp(14px, 1.1vw, 20px);
  color: #4e5a6e;
  font-weight: 700;
  line-height: 1.05;
}

.half-calc-top-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.half-calc-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #586271;
  font-weight: 700;
  white-space: nowrap;
}

.half-calc-inline > input {
  width: 124px;
  height: 36px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #f4f6f9;
  text-align: center;
  font-size: 14px;
  color: #596476;
}

.half-calc-inline-hg {
  justify-content: center;
}

.half-calc-copy-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.half-calc-copy-tools button,
.half-calc-odd-tools button {
  height: 26px;
  min-width: 28px;
  border: 1px solid #95b37d;
  border-radius: 6px;
  background: #f8faf6;
  color: #62a73e;
  font-size: 14px;
  font-size: clamp(11px, 0.7vw, 14px);
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
}

#halfCopyStake,
.half-calc-odd-tools button[data-half-odd-copy] {
  border-color: #dfa6a6;
  color: #d67272;
}

.half-calc-odd-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.half-calc-odd-title {
  font-size: 20px;
  font-size: clamp(14px, 1.2vw, 20px);
  color: #08a677;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 4px;
  min-height: 1.1em;
  white-space: nowrap;
}

.half-calc-stepper {
  display: inline-grid;
  grid-template-columns: 30px minmax(50px, 1fr) 30px;
  width: min(162px, 100%);
}

.half-calc-stepper button {
  border: 1px solid #d4dae3;
  background: #eceff4;
  color: #657185;
  font-size: 16px;
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1;
  cursor: pointer;
}

.half-calc-stepper input {
  height: 36px;
  border: 1px solid #d4dae3;
  border-left: 0;
  border-right: 0;
  background: #f6f8fb;
  color: #5f6979;
  text-align: center;
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

.half-calc-row-head {
  font-size: 20px;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  color: #4f5968;
  line-height: 1.1;
}

.half-calc-stake-row {
  background: #dce7f6;
}

.half-calc-stake-row .half-calc-row-head {
  color: #ff1a1a;
}

.half-calc-stake-row input {
  width: min(144px, 100%);
  height: 36px;
  border: 1px solid #d2d9e3;
  border-radius: 8px;
  background: #f9fafc;
  text-align: center;
  color: #5a6578;
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

.half-calc-table span {
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

#halfCalcProfit {
  font-size: 22px;
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 700;
  color: #505d70;
}

.half-calc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 16px 14px;
}

.half-calc-btn {
  min-width: 96px;
  height: 38px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #f3f5f8;
  color: #5b6574;
  font-size: 14px;
  cursor: pointer;
}

.half-calc-btn.primary {
  border: 0;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .half-calc-panel {
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
  }

  .half-calc-body {
    padding: 0 8px;
  }

  .half-calc-table {
    min-width: 1240px;
  }
}

/* football-package calculator modal */
body.pkg-calc-open {
  overflow: hidden;
}

.pkg-calc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2170;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}

.pkg-calc-backdrop[hidden] {
  display: none !important;
}

.pkg-calc-panel {
  width: min(1800px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  background: #f5f6f8;
  border: 1px solid #d6dbe4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.pkg-calc-header {
  height: 64px;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pkg-calc-header h3 {
  margin: 0;
  font-size: 18px;
  color: #313a46;
  font-weight: 700;
}

.pkg-calc-close {
  border: 0;
  background: transparent;
  color: #8c95a3;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.pkg-calc-body {
  padding: 0 18px;
  overflow: auto;
}

.pkg-calc-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f8f9fb;
}

.pkg-calc-table td {
  border: 1px solid #8eb6ef;
  text-align: center;
  color: #4d596a;
  font-size: 14px;
  padding: 10px 6px;
}

#pkgCalcMatchInfo {
  font-size: 15px;
  font-weight: 700;
  color: #5a6370;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pkgCalcMatchInfo .home {
  color: #0d47d8;
  font-size: inherit;
  font-weight: inherit;
}

#pkgCalcMatchInfo .away {
  color: #ef2d2d;
  font-size: inherit;
  font-weight: inherit;
}

#pkgCalcMatchInfo .league {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.pkg-calc-type {
  width: min(360px, 100%);
  height: 42px;
  border: 1px solid #d3dae5;
  border-radius: 8px;
  background: #f4f6f9;
  font-size: 14px;
  color: #606b7c;
  padding: 0 12px;
}

.pkg-calc-section-title {
  font-size: 16px;
  color: #4e5a6e;
  font-weight: 700;
  line-height: 1.05;
}

.pkg-calc-shot {
  margin-left: 8px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #3f94e7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.pkg-calc-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #586271;
  font-weight: 700;
  white-space: nowrap;
}

.pkg-calc-inline-hg {
  justify-content: center;
}

.pkg-calc-row-head {
  font-size: 16px;
  font-weight: 700;
  color: #4f5968;
  line-height: 1.1;
}

.pkg-calc-odd-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

.pkg-calc-odd-label {
  color: #08a677;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.pkg-calc-x {
  font-size: 18px;
  line-height: 1;
  color: #5f6774;
}

.pkg-calc-odd-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
  justify-items: center;
}

.pkg-calc-odd-label-left {
  grid-column: 1;
  grid-row: 1;
}

.pkg-calc-odd-label-right {
  grid-column: 3;
  grid-row: 1;
}

.pkg-calc-stepper-left {
  grid-column: 1;
  grid-row: 2;
}

.pkg-calc-stepper-right {
  grid-column: 3;
  grid-row: 2;
}

.pkg-calc-x-top {
  grid-column: 2;
  grid-row: 1;
}

.pkg-calc-x-bottom {
  grid-column: 2;
  grid-row: 2;
}

.pkg-calc-odd-pair .pkg-calc-stepper {
  width: min(146px, 100%);
}

.pkg-calc-stepper {
  display: inline-grid;
  grid-template-columns: 30px minmax(56px, 1fr) 30px;
  width: min(146px, 100%);
}

.pkg-calc-stepper button {
  border: 1px solid #d4dae3;
  background: #eceff4;
  color: #657185;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pkg-calc-stepper input {
  height: 34px;
  border: 1px solid #d4dae3;
  border-left: 0;
  border-right: 0;
  background: #f6f8fb;
  color: #5f6979;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pkg-calc-stake-row {
  background: #dce7f6;
}

.pkg-calc-stake-row .pkg-calc-row-head {
  color: #ff1a1a;
}

.pkg-calc-stake-row td {
  color: #ff1f1f;
  font-weight: 700;
}

.pkg-calc-stake-row td input {
  width: min(152px, 100%);
  height: 38px;
  border: 1px solid #d2d9e3;
  border-radius: 8px;
  background: #f9fafc;
  text-align: center;
  color: #5a6578;
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

.pkg-calc-table span {
  font-size: 14px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-variant-numeric: tabular-nums;
}

#pkgCalcProfit {
  font-size: 18px;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 700;
  color: #505d70;
}

.pkg-calc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 18px 18px;
}

.pkg-calc-btn {
  min-width: 106px;
  height: 42px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #f3f5f8;
  color: #5b6574;
  font-size: 14px;
  cursor: pointer;
}

.pkg-calc-btn.primary {
  border: 0;
  background: #3f94e7;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .pkg-calc-panel {
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
  }

  .pkg-calc-body {
    padding: 0 8px;
  }

  .pkg-calc-table {
    min-width: 1170px;
  }
}

/* login page */
body.login-page {
  min-height: 100vh;
  margin: 0;
  background: #2e3f57;
  color: #e5edf7;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(100%, 540px);
}

.login-card h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 18px;
  line-height: 1.1;
  color: #eef3fb;
  font-weight: 700;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  border: 1px solid #364b66;
  border-radius: 7px;
  background: #2b3d54;
  padding: 0 14px;
  margin-bottom: 12px;
}

.login-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.8;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
}

.login-icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238ea0b8' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
}

.login-icon-pass {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238ea0b8' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zm-7-2a2 2 0 0 1 4 0v2h-4z'/%3E%3C/svg%3E");
}

.login-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #c7d2e2;
  font-size: 14px;
  line-height: 1;
}

.login-field input::placeholder {
  color: #8d9db2;
}

.login-eye {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238ea0b8' d='M12 5c-5 0-9 4.5-10 7 1 2.5 5 7 10 7s9-4.5 10-7c-1-2.5-5-7-10-7zm0 11a4 4 0 1 1 4-4 4 4 0 0 1-4 4z'/%3E%3Ccircle fill='%238ea0b8' cx='12' cy='12' r='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center;
}

.login-eye.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238ea0b8' d='M12 5c-5 0-9 4.5-10 7 1 2.5 5 7 10 7a9.8 9.8 0 0 0 5.2-1.6l1.8 1.8 1.4-1.4L4.4 2.6 3 4l3 3A17.8 17.8 0 0 0 2 12c1 2.5 5 7 10 7a11.7 11.7 0 0 0 3.8-.7l-2.1-2.1a4 4 0 0 1-5.2-5.2l-2-2A9.5 9.5 0 0 1 12 7c3.8 0 6.9 3.1 8 5a14.6 14.6 0 0 1-2.1 2.9l1.4 1.4A16.5 16.5 0 0 0 22 12c-1-2.5-5-7-10-7z'/%3E%3C/svg%3E");
}

.login-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: #3f95e8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.login-error {
  margin: 0 0 10px;
  color: #ff8f8f;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .login-card {
    width: min(100%, 520px);
  }

  .login-card h1 {
    font-size: 16px;
  }

  .login-field input {
    font-size: 14px;
  }

  .login-submit {
    font-size: 15px;
  }

  .login-error {
    font-size: 13px;
  }
}


