* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f8; color: #303133; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
.admin-layout { min-height: 100vh; display: flex; background: #f3f5f8; }
.sidebar { width: 224px; flex-shrink: 0; background: #fff; border-right: 1px solid #e8edf3; box-shadow: none; position: sticky; top: 0; z-index: 30; height: 100vh; overflow-y: auto; overflow-x: hidden; transition: width .18s ease; }
.logo { height: 66px; display: flex; align-items: center; gap: 8px; padding: 0 28px; border-bottom: 1px solid #f1f3f7; font-weight: 700; letter-spacing: .4px; white-space: nowrap; transition: padding .18s ease; }
.logo-mark { color: #d89218; font-size: 18px; font-style: italic; }
.logo-text { color: #22314a; font-size: 14px; }
.menu { padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 8px; transition: padding .18s ease; }
.menu-item, .submenu-title, .submenu-item { min-height: 44px; display: flex; align-items: center; border-radius: 8px; color: #30343b; font-size: 15px; transition: color .15s ease, background-color .15s ease; }
.menu-item, .submenu-title { width: 100%; padding: 0 12px 0 16px; justify-content: space-between; border: 1px solid transparent; appearance: none; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.menu-item:hover, .submenu-title:hover { color: #0b6fe8; background: #f6f7f9; }
.menu-item.active { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.menu-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #30343b; }
.menu-icon svg { width: 22px; height: 22px; display: block; }
.menu-item:hover .menu-icon, .submenu-title:hover .menu-icon, .menu-item.active .menu-icon { color: #0b6fe8; }
.chevron { margin-left: auto; color: #30343b; font-size: 16px; font-weight: 700; line-height: 1; transition: color .15s ease, transform .15s ease; }
.submenu.is-collapsed .chevron { transform: rotate(-90deg); }
.submenu { margin: 0; }
.submenu-title { color: #30343b; font-weight: 600; }
.submenu-title.active, .submenu.has-active-child > .submenu-title, .submenu:has(.submenu-item.active) > .submenu-title { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.submenu-title.active .menu-icon, .submenu-title.active .chevron, .submenu.has-active-child > .submenu-title .menu-icon, .submenu.has-active-child > .submenu-title .chevron, .submenu:has(.submenu-item.active) > .submenu-title .menu-icon, .submenu:has(.submenu-item.active) > .submenu-title .chevron, .menu-item.active .chevron { color: #0b6fe8; }
.submenu-list { padding: 4px 0 2px 50px; display: flex; flex-direction: column; gap: 4px; }
.submenu.is-collapsed .submenu-list { display: none; }
.submenu-item { position: relative; min-height: 38px; padding: 0 10px 0 18px; color: #30343b; border: 1px solid transparent; background: transparent; font-size: 14px; font-weight: 500; }
.submenu-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 8px; border: 2px solid currentColor; border-radius: 2px; transform: translateY(-50%); opacity: .72; }
.submenu-item::after { content: ""; position: absolute; left: 3px; top: calc(50% + 6px); width: 5px; height: 2px; border-radius: 999px; background: currentColor; opacity: .72; }
.submenu-item:hover { color: #0b6fe8; background: #f6f7f9; }
.submenu-item.active { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.admin-layout.sidebar-collapsed .sidebar { width: 72px; }
.admin-layout.sidebar-collapsed .logo { justify-content: center; padding: 0; }
.admin-layout.sidebar-collapsed .logo-text { display: none; }
.admin-layout.sidebar-collapsed .menu { padding: 16px 10px; }
.admin-layout.sidebar-collapsed .menu-item, .admin-layout.sidebar-collapsed .submenu-title { justify-content: center; padding: 0; }
.admin-layout.sidebar-collapsed .menu-left { justify-content: center; gap: 0; }
.admin-layout.sidebar-collapsed .menu-left { font-size: 0; }
.admin-layout.sidebar-collapsed .menu-icon { color: inherit; }
.admin-layout.sidebar-collapsed .chevron, .admin-layout.sidebar-collapsed .submenu-list { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e8edf3; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 14px; position: sticky; top: 0; z-index: 25; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.collapse-btn { width: 32px; height: 32px; border: 1px solid #e4e7ed; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #606266; background: #fff; cursor: pointer; user-select: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.collapse-btn:hover, .collapse-btn.is-collapsed { color: #0b6fe8; border-color: #bcd7ff; background: #f4f8ff; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #909399; font-size: 13px; min-width: 0; flex-wrap: wrap; }
.breadcrumb strong { color: #303133; font-weight: 500; }
.top-icon { color: #5f6b7a; font-size: 14px; }
.time { color: #1fc98f; font-size: 13px; white-space: nowrap; }
.timezone { width: 98px; }
.account { color: #4f5d70; font-size: 13px; }
.content { flex: 1; min-height: 0; padding: 22px 24px 32px; overflow: auto; }
.game-control-page, .player-account-page, .player-profit-page, .stats-page, .report-data-page, .merchant-report-page { min-height: calc(100vh - 58px); display: flex; flex-direction: column; }
#app .main > .content:not(.game-control-page) { min-height: calc(100vh - 58px); display: flex; flex-direction: column; }
#app .main > .content:not(.game-control-page) > .card { width: 100%; max-width: none; flex: 1 1 auto; }
.page-title { margin: 0; font-size: 20px; font-weight: 600; color: #202b3c; }
.page-subtitle { margin: 6px 0 16px; color: #909399; font-size: 13px; }
.card { max-width: 960px; background: #fff; border-radius: 8px; border: 1px solid #ebeef5; box-shadow: 0 1px 6px rgba(31, 45, 61, .05); padding: 24px 32px 30px; }
.card-title { font-size: 17px; font-weight: 600; color: #303133; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
.form-row { display: flex; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #ebeef5; gap: 16px; }
.form-row:last-of-type { border-bottom: none; }
.form-label { width: 128px; flex-shrink: 0; text-align: right; line-height: 32px; color: #606266; font-size: 14px; }
.form-label .req { color: #f56c6c; margin-right: 4px; }
.form-body { flex: 1; min-width: 0; }
.hint { color: #909399; font-size: 12px; margin-top: 6px; }
.rtp-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rtp-gear-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rtp-gear-row .el-input-number { width: 180px; }
.rounds-extra { color: #909399; font-size: 12px; margin-left: 8px; white-space: nowrap; }
.footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #ebeef5; }
.game-control-page { padding: 0 24px 32px; }
.game-control-page .page-title { font-size: 22px; }
.game-control-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; }
.control-card-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px 16px; border-bottom: 1px solid #ebeef5; background: #fff; }
.control-card-head > div { min-width: 0; flex: 1; }
.control-card-head .card-title { margin: 0; padding: 0; border-bottom: 0; font-size: 17px; }
.control-card-desc { margin: 6px 0 0; color: #909399; font-size: 12px; line-height: 1.5; max-width: 62ch; }
.control-form { --control-label-width: 96px; --control-field-height: 36px; --control-field-radius: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; padding: 18px 20px 20px; color: rgba(17, 85, 223, 1); }
.control-form.control-form--weighted { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1fr); }
.control-form.control-form--focused { grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr) minmax(360px, 1.15fr); align-items: start; color: inherit; }
.form-section { border: 1px solid #ebeef5; border-radius: 10px; background: #fff; margin-bottom: 18px; overflow: hidden; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #f8fafc; border-bottom: 1px solid #ebeef5; }
.form-section-head > div { min-width: 0; flex: 1; }
.form-section-title { margin: 0; color: #202b3c; font-size: 15px; font-weight: 600; }
.form-section-desc { margin-top: 4px; color: #909399; font-size: 12px; }
.game-control-card .form-row { padding: 12px 14px; border-bottom: 1px solid #edf1f6; display: grid; grid-template-columns: var(--control-label-width) minmax(0, 1fr); gap: 12px; align-items: start; }
.game-control-card .form-row:last-child { border-bottom: none; }
.game-control-card .form-label { width: var(--control-label-width); color: #4f5d70; font-size: 13px; font-weight: 600; line-height: var(--control-field-height); text-align: right; white-space: nowrap; }
.control-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.control-stack { display: flex; flex-direction: column; gap: 10px; }
.control-hint { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: var(--control-field-radius); background: #f7f9fc; color: #7a8699; font-size: 12px; line-height: 1.4; }
.control-hint.warning { color: #b26a00; background: #fff7e8; border: 1px solid #ffe2b8; }
.control-hint.info { color: #3f6f9f; background: #eef6ff; border: 1px solid #d9ecff; }
.control-textarea { width: 100%; max-width: none; }
.control-textarea .el-textarea__inner { min-height: 56px !important; border-radius: var(--control-field-radius); font-size: 13px; }
.control-select { width: 100%; max-width: none; }
.brand-check-trigger { width: 100%; min-height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: var(--control-field-radius); padding: 3px 32px 3px 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 6px; position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.brand-check-trigger:hover, .brand-check-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.brand-check-tags { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.brand-check-tag { height: 24px; padding: 0 9px; border: 1px solid #cfe2ff; border-radius: 999px; background: #f2f7ff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.brand-check-placeholder { color: #a8b1c0; font-size: 13px; }
.brand-check-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #8a93a3; font-size: 12px; }
.brand-check-panel { padding: 2px 0; }
.brand-check-title { margin-bottom: 8px; color: #4f5d70; font-size: 13px; font-weight: 700; }
.brand-check-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-check-group .el-checkbox { height: 34px; margin-right: 0; padding: 0 10px; border: 1px solid #e3e9f2; border-radius: 6px; background: #fbfdff; display: flex; align-items: center; transition: border-color .15s ease, background-color .15s ease; }
.brand-check-group .el-checkbox.is-checked { border-color: #409eff; background: #eef6ff; }
.brand-check-group .el-checkbox__label { color: #4f5d70; font-size: 13px; font-weight: 700; }
.brand-check-group .el-checkbox.is-checked .el-checkbox__label { color: #1677ff; }
.control-game-trigger { width: 100%; min-height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: var(--control-field-radius); padding: 3px 32px 3px 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.control-game-trigger:hover, .control-game-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.control-game-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3f4b5b; font-size: 13px; font-weight: 600; }
.control-game-popper { max-width: calc(100vw - 320px); }
.control-game-panel { padding: 2px 0 0; }
.control-game-panel .game-brand-tabs { margin-bottom: 10px; }
.control-game-panel .game-search { height: 36px; border-radius: 6px; }
.control-game-options { min-height: 224px; }
.control-game-panel .game-option { height: 96px; }
.control-form-section { height: auto; min-height: 100%; }
.control-game-selector { min-height: var(--control-field-height); }
.control-brand-tabs .game-brand-tab { cursor: pointer; }
.control-game-modal-mask { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 23, 42, .36); }
.control-game-modal { width: min(780px, calc(100vw - 56px)); max-height: min(720px, calc(100vh - 56px)); overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); display: flex; flex-direction: column; }
.control-game-modal-head { min-height: 66px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e6ebf3; }
.control-game-modal-head h3 { margin: 0; color: #202b3c; font-size: 18px; font-weight: 800; }
.control-game-modal-head p { margin: 6px 0 0; color: #7a8494; font-size: 12px; }
.control-game-modal-close { width: 32px; height: 32px; border: 1px solid #d9e1ec; border-radius: 6px; background: #fff; color: #667085; font-size: 22px; line-height: 1; cursor: pointer; }
.control-game-modal-close:hover { color: #1677ff; border-color: #b9d8ff; background: #f3f8ff; }
.control-game-modal-body { padding: 14px 16px 16px; overflow: auto; }
.control-modal-game-options { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 76px; min-height: 248px; max-height: 248px; overflow: hidden; }
.control-modal-game-option { position: relative; height: 76px; min-height: 76px; border-radius: 7px; }
.control-modal-game-option.active::before { content: ""; position: absolute; right: 6px; top: 6px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #1677ff; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.control-modal-game-option.active::after { content: ""; position: absolute; right: 12px; top: 9px; z-index: 3; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.segmented-control { display: inline-flex; align-items: center; gap: 0; min-height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: 7px; overflow: hidden; background: #fff; }
.segmented-control button { min-width: 70px; height: var(--control-field-height); border: 0; border-right: 1px solid #d9dee8; background: #fff; color: #4f5d70; font-size: 13px; font-weight: 800; cursor: pointer; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button.active { color: #fff; background: #1677ff; }
.rtp-speed-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.rtp-speed-group button { min-height: 58px; border: 1px solid #d9e4f2; border-radius: 8px; background: #fff; color: #4f5d70; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; }
.rtp-speed-group button strong { color: #202b3c; font-size: 18px; line-height: 1; }
.rtp-speed-group button.active { border-color: #1677ff; background: #eef6ff; color: #1677ff; box-shadow: 0 0 0 2px rgba(22, 119, 255, .1); }
.rtp-speed-group button.active strong { color: #1677ff; }
.control-mini-label { color: #4f5d70; font-size: 13px; font-weight: 800; white-space: nowrap; }
.control-native-number { width: 118px; height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: 7px; padding: 0 10px; color: #344054; font-size: 13px; outline: none; }
.control-native-number-wide { width: 180px; }
.control-native-number:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.amount-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.amount-chip { min-height: 30px; padding: 0 8px 0 11px; border: 1px solid #cfe2ff; border-radius: 999px; background: #f2f7ff; color: #1677ff; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; cursor: pointer; }
.amount-chip i { width: 16px; height: 16px; border-radius: 50%; background: #dcecff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
.amount-chip:hover { background: #e8f2ff; border-color: #9fcbff; }
.amount-chip.add { border-style: dashed; background: #fff; color: #4f5d70; }
.amount-custom { display: inline-flex; align-items: center; gap: 6px; }
.amount-custom input { width: 120px; height: 30px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 9px; color: #344054; outline: none; }
.amount-custom button { height: 30px; border: 1px solid #1677ff; border-radius: 6px; background: #1677ff; color: #fff; padding: 0 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.time-button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.time-button-group button { min-width: 62px; height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: 7px; background: #fff; color: #4f5d70; font-size: 13px; font-weight: 800; cursor: pointer; }
.time-button-group button.active { color: #fff; border-color: #1677ff; background: #1677ff; }
.control-action-btn { min-width: 112px; height: 36px; border: 1px solid #d9dee8; border-radius: 7px; background: #fff; color: #4f5d70; font-size: 14px; font-weight: 800; cursor: pointer; }
.control-action-btn.primary { color: #fff; border-color: #1677ff; background: #1677ff; }
.game-control-card .el-input__wrapper, .game-control-card .el-select .el-input__wrapper { min-height: var(--control-field-height); border-radius: var(--control-field-radius); }
.game-control-card .el-input__inner { height: var(--control-field-height); font-size: 13px; }
.game-control-card .el-radio { height: var(--control-field-height); margin-right: 18px; color: #4f5d70; }
.game-control-card .el-radio__label { font-size: 13px; }
.game-control-card .el-radio-button__inner { min-width: 64px; height: var(--control-field-height); padding: 0 14px; line-height: calc(var(--control-field-height) - 2px); font-size: 13px; }
.rtp-gear-row .el-button { height: var(--control-field-height); padding: 0 14px; border-radius: var(--control-field-radius); font-size: 13px; }
.control-number, .control-number-wide { width: 180px; max-width: 180px; height: var(--control-field-height); }
.control-number .el-input__wrapper, .control-number-wide .el-input__wrapper { height: var(--control-field-height); }
.control-radio-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; width: auto; min-height: var(--control-field-height); }
.game-control-card .rtp-wrap { gap: 12px; }
.rtp-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border: 1px solid #e5ebf3; border-radius: 8px; background: #fbfdff; width: 100%; }
.rtp-limit-note { margin-top: 0; }
.release-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: var(--control-field-height); }
.footer.control-footer { grid-column: 1 / -1; position: static; margin: -4px 0 0; padding: 0 0 10px; background: #fff; border-top: 0; box-shadow: none; flex-wrap: wrap; justify-content: center; }
.footer.control-footer .el-button { min-width: 112px; }
.control-player-report { grid-column: 1 / -1; margin: -2px -20px -20px; border-top: 0; background: #fff; }
.control-report-head { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 8px 20px 12px; }
.control-report-head h3 { margin: 0; color: #202b3c; font-size: 15px; font-weight: 700; }
.control-report-head p { margin: 4px 0 0; color: #7a8494; font-size: 12px; }
.control-report-table-wrap { padding: 0 20px 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; scrollbar-gutter: stable; }
.control-report-table-wrap::-webkit-scrollbar { height: 12px; }
.control-report-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.control-report-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.control-report-table { width: 100%; min-width: 1580px; border: 1px solid #e4ebf5; border-radius: 8px; overflow: hidden; }
.control-report-row { display: grid; grid-template-columns: minmax(160px, 1.05fr) minmax(150px, .95fr) minmax(90px, .58fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(110px, .68fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(100px, .66fr) minmax(90px, .58fr); align-items: center; min-height: 48px; color: #4f5d70; font-size: 13px; border-bottom: 1px solid #edf1f6; }
.control-report-row:last-child { border-bottom: 0; }
.control-report-row.header { min-height: 42px; background: #f7f9fc; color: #4c5a6f; font-weight: 700; }
.control-report-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.control-report-id { color: #1677ff; font-weight: 700; }
.control-report-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.control-report-status { color: #1677ff; background: #eef6ff; border: 1px solid #d7eaff; }
.control-report-actions { gap: 8px; }
.control-report-actions button { height: 28px; min-width: 48px; padding: 0 10px; border: 1px solid #cfe2ff; border-radius: 6px; background: #f4f8ff; color: #1677ff; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.control-report-actions button:hover { color: #fff; border-color: #1677ff; background: #1677ff; }
.control-report-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px 14px; color: #6c7482; font-size: 13px; flex-wrap: wrap; }
.control-report-pagination select { height: 32px; min-width: 86px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 8px; background: #fff; color: #495566; }
.control-report-pagination button { width: 32px; height: 32px; border: 1px solid #e0e5ef; background: #fff; color: #5a6472; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.control-report-pagination button.active { background: #409eff; color: #fff; border-color: #409eff; }
.control-report-pagination button:disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; cursor: not-allowed; }
.controlled-player-card { flex: 1 1 auto; }
.controlled-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.controlled-summary span { min-height: 30px; padding: 0 10px; border: 1px solid #e3eaf5; border-radius: 6px; background: #fbfdff; color: #667085; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.controlled-summary strong { color: #202b3c; font-size: 14px; }
.controlled-summary strong.pos { color: #20c467; }
.controlled-summary strong.neg { color: #ff4d4f; }
.controlled-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #e8edf5; background: #fbfcff; }
.controlled-filter { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #5f6b7a; font-size: 14px; font-weight: 800; }
.controlled-filter.grow { flex: 1 1 260px; }
.controlled-filter.grow .account-input { width: min(260px, 100%); }
.controlled-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.controlled-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; }
.controlled-table-wrap::-webkit-scrollbar { height: 12px; }
.controlled-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.controlled-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.controlled-table { width: 100%; min-width: 1040px; }
.controlled-row { display: grid; grid-template-columns: minmax(92px, .72fr) minmax(104px, .78fr) minmax(150px, 1.05fr) minmax(118px, .84fr) minmax(118px, .84fr) minmax(78px, .58fr) minmax(116px, .84fr) minmax(108px, .72fr); align-items: center; min-height: 58px; border-bottom: 1px solid #e8edf5; color: #596273; font-size: 14px; }
.controlled-row.header { min-height: 46px; background: #f6f8fb; color: #4c5a6f; font-weight: 800; }
.controlled-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.controlled-row:not(.header):hover { background: #fbfdff; }
.control-state { min-width: 62px; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.control-state.loss { color: #b54708; background: #fffaeb; border: 1px solid #fedf89; }
.control-state.win { color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; }
.control-state.pending { color: #667085; background: #f2f4f7; border: 1px solid #e4e7ec; }
.rtp-value { min-width: 58px; color: #1677ff; font-weight: 900; }
.rtp-value.high { color: #20c467; }
.rtp-value.low { color: #ff4d4f; }
.controlled-row-actions { flex-wrap: wrap; }
.controlled-row-actions button { min-height: 28px; padding: 0 8px; border: 1px solid #cfe2ff; border-radius: 6px; background: #f4f8ff; color: #1677ff; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.controlled-row-actions button:hover { color: #fff; border-color: #1677ff; background: #1677ff; }
.controlled-empty { min-height: 180px; display: flex; align-items: center; justify-content: center; color: #8a93a3; font-size: 14px; border-bottom: 1px solid #e8edf5; }
.controlled-pagination { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid #edf1f6; background: #fff; color: #6c7482; font-size: 13px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.controlled-pagination select { height: 32px; min-width: 92px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 8px; background: #fff; color: #495566; }
.controlled-pagination button { width: 32px; height: 32px; border: 1px solid #e0e5ef; background: #fff; color: #5a6472; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.controlled-pagination button.active { background: #409eff; color: #fff; border-color: #409eff; }
.controlled-pagination button:disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; cursor: not-allowed; }
.form-block { min-width: 0; height: 100%; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(31, 45, 61, .03); }
.form-block + .form-block { margin-top: 0; padding-top: 0; border-top: 0; }
.form-block-head { display: flex; flex-direction: column; gap: 4px; min-height: 66px; margin-bottom: 0; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e7edf5; }
.form-block-title { margin: 0; color: #202b3c; font-size: 14px; font-weight: 700; }
.form-block-desc { color: #8a94a6; font-size: 12px; line-height: 1.5; }
.form-block .form-row { padding: 12px 14px; }
.form-block:first-child .form-row:first-of-type { padding-top: 12px; }
.player-account-page { padding: 0 24px 32px; }
.account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.account-stat { min-height: 92px; padding: 16px 18px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(31, 45, 61, .04); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.account-stat span { color: #667085; font-size: 13px; font-weight: 600; }
.account-stat strong { color: #202b3c; font-size: 26px; line-height: 1; }
.account-stat em { color: #8a93a3; font-size: 12px; font-style: normal; }
.account-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.account-toolbar { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 16px; border-bottom: 1px solid #e8edf5; background: #fff; }
.account-filters { flex: 1; min-width: 0; display: grid; grid-template-columns: 240px 240px 240px 240px minmax(440px, 1fr); gap: 14px 18px; align-items: center; }
.account-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-filter span, .account-date-filter > span { color: #5f6b7a; font-size: 14px; font-weight: 700; white-space: nowrap; }
.account-input { width: 160px; height: 38px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 12px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.account-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.account-select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 10px) 16px; background-size: 6px 6px; background-repeat: no-repeat; }
.account-date-filter { display: grid; grid-template-columns: auto minmax(142px, 1fr) 20px minmax(142px, 1fr); align-items: center; gap: 8px; min-width: 0; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 0; }
.account-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.account-table { width: 100%; min-width: 1420px; }
.account-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(200px, 1.45fr) minmax(130px, .95fr) minmax(90px, .65fr) minmax(130px, .95fr) minmax(130px, .95fr) minmax(120px, .85fr) minmax(110px, .8fr) minmax(150px, 1.1fr) minmax(150px, 1.1fr); align-items: center; min-height: 62px; border-bottom: 1px solid #e8edf5; color: #596273; font-size: 14px; }
.account-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 700; }
.account-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.account-row:not(.header):hover { background: #fbfdff; }
.account-status { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.account-status.online { color: #389e0d; background: #f0f9e8; border: 1px solid #d7efc5; }
.account-status.offline { color: #667085; background: #f2f4f7; border: 1px solid #e4e7ec; }
.account-status.risk { color: #b45309; background: #fff7e8; border: 1px solid #ffe2b8; }
.account-status.locked { color: #d92d20; background: #fff1f0; border: 1px solid #ffd5d2; }
.account-table .profit-player { cursor: pointer; }
.account-table .profit-player:hover { color: #1677ff; text-decoration: underline; text-underline-offset: 3px; }
.modal-open { overflow: hidden; }
.account-detail-mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 23, 42, .38); }
.account-detail-mask[hidden] { display: none; }
.account-detail-dialog { width: min(980px, calc(100vw - 56px)); max-height: min(820px, calc(100vh - 56px)); overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); display: flex; flex-direction: column; }
.account-detail-head { min-height: 66px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e6ebf3; background: #fff; }
.account-detail-head h3 { margin: 0; color: #202b3c; font-size: 18px; font-weight: 800; }
.account-detail-head h3 span { margin-left: 6px; color: #7a8494; font-size: 13px; font-weight: 700; }
.account-detail-head p { margin: 6px 0 0; color: #7a8494; font-size: 12px; }
.account-detail-head-actions { display: flex; align-items: center; gap: 10px; }
.detail-expand-btn { min-height: 32px; padding: 0 12px; border: 1px solid #d9e1ec; border-radius: 6px; background: #fff; color: #667085; font-size: 12px; font-weight: 800; cursor: pointer; }
.detail-expand-btn:hover { color: #1677ff; border-color: #b9d8ff; background: #f3f8ff; }
.account-detail-close { width: 32px; height: 32px; border: 1px solid #d9e1ec; border-radius: 6px; background: #fff; color: #667085; font-size: 22px; line-height: 1; cursor: pointer; }
.account-detail-close:hover { color: #1677ff; border-color: #b9d8ff; background: #f3f8ff; }
.account-detail-body { padding: 14px 16px 16px; overflow: auto; background: #fff; }
.account-detail-dialog.is-fullscreen { width: min(1480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.account-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #e0e5ee; border-radius: 8px; overflow: visible; }
.account-detail-cell { min-height: 52px; display: grid; grid-template-columns: 112px minmax(0, 1fr); border-right: 1px solid #e0e5ee; border-bottom: 1px solid #e0e5ee; background: #fff; }
.account-detail-cell:nth-child(3n) { border-right: 0; }
.account-detail-cell:nth-last-child(-n+3) { border-bottom: 0; }
.account-detail-cell span { display: flex; align-items: center; padding: 0 12px; background: #f7f8fb; color: #202b3c; font-size: 13px; font-weight: 800; }
.account-detail-cell strong { min-width: 0; display: flex; align-items: center; padding: 0 12px; color: #344054; font-size: 13px; font-weight: 600; word-break: break-word; }
.detail-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; line-height: 1.45; }
.detail-stack i { font-style: normal; color: #667085; }
.detail-link-btn { padding: 0; border: 0; background: transparent; color: #1677ff; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.detail-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-hover-group { position: relative; display: inline-flex; align-items: center; }
.detail-hover-trigger { white-space: nowrap; }
.detail-hover-panel { position: absolute; left: 0; bottom: calc(100% + 10px); min-width: 220px; max-width: 280px; padding: 10px; border: 1px solid #d7dfeb; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(15, 23, 42, .16); display: none; flex-direction: column; gap: 8px; z-index: 8; }
.detail-hover-panel::after { content: ""; position: absolute; left: 18px; top: 100%; width: 10px; height: 10px; border-left: 1px solid #d7dfeb; border-bottom: 1px solid #d7dfeb; background: #fff; transform: rotate(-45deg); }
.detail-hover-group:hover .detail-hover-panel { display: flex; }
.detail-hover-item { min-width: 0; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.detail-hover-item i { font-style: normal; color: #344054; line-height: 1.4; word-break: break-all; }
.detail-hover-item .profit-copy { flex: 0 0 auto; }
.detail-status-control { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-ban-btn { min-height: 26px; padding: 0 9px; border: 1px solid #f2b8b5; border-radius: 6px; background: #fff5f5; color: #d92d20; font-size: 12px; font-weight: 800; cursor: pointer; }
.detail-ban-btn:hover { border-color: #d92d20; background: #d92d20; color: #fff; }
.account-status.banned { color: #d92d20; background: #fff1f0; border-color: #ffc9c4; }
.control-status { min-height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.control-status.active { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; }
.control-status.normal { color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; }
.account-detail-tabs { display: flex; align-items: center; margin-top: 12px; border: 1px solid #e0e5ee; border-bottom: 0; background: #f7f8fb; }
.account-detail-tabs button { height: 38px; min-width: 124px; padding: 0 18px; border: 0; border-right: 1px solid #e0e5ee; background: transparent; color: #8a93a3; font-size: 13px; font-weight: 800; cursor: pointer; }
.account-detail-tabs button.active { color: #1677ff; background: #fff; }
.account-detail-panel { display: none; border: 1px solid #e0e5ee; background: #fff; }
.account-detail-panel.active { display: block; }
.account-detail-filter { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 8px solid #f0f3f8; }
.account-detail-filter label { display: inline-flex; align-items: center; gap: 10px; color: #4f5d70; font-size: 13px; font-weight: 800; }
.account-detail-filter select { width: 220px; height: 34px; border: 1px solid #d9dee8; border-radius: 7px; padding: 0 12px; color: #3f4b5b; background: #fff; }
.account-detail-filter > div { display: flex; align-items: center; gap: 10px; }
.account-detail-table-wrap { padding: 10px 14px 14px; overflow-x: auto; }
.account-detail-table { min-width: 860px; border: 1px solid #e4eaf3; border-radius: 6px; overflow: hidden; }
.account-detail-summary { padding: 0 14px 14px; color: #6c7482; font-size: 13px; font-weight: 700; }
.account-bet-table-wrap { padding-top: 10px; }
.account-bet-table { min-width: 1900px; }
.bet-record-filter { flex-wrap: wrap; }
.bet-record-filter > label { min-width: 180px; }
.bet-record-filter > div { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account-detail-game-row { display: grid; grid-template-columns: 70px 110px minmax(140px, 1fr) minmax(150px, 1fr) minmax(130px, .9fr) 100px minmax(130px, .9fr) 100px; align-items: center; min-height: 42px; border-bottom: 1px solid #edf1f6; color: #4f5d70; font-size: 13px; }
.account-detail-game-row:last-child { border-bottom: 0; }
.account-detail-game-row.header { min-height: 40px; background: #f7f8fb; color: #4c5a6f; font-weight: 800; }
.account-detail-game-row > div { min-width: 0; padding: 8px 10px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.daily-data-filter { flex-wrap: wrap; }
.daily-data-filter > label { min-width: 190px; }
.daily-data-filter > div { margin-left: auto; }
.daily-data-table { min-width: 980px; max-height: 360px; overflow: auto; }
.daily-data-row { display: grid; grid-template-columns: minmax(116px, .92fr) repeat(3, minmax(128px, 1fr)) minmax(90px, .72fr) minmax(128px, 1fr) minmax(112px, .86fr) minmax(86px, .68fr); align-items: center; min-height: 42px; border-bottom: 1px solid #edf1f6; color: #4f5d70; font-size: 13px; }
.daily-data-row:last-child { border-bottom: 0; }
.daily-data-row.header { position: sticky; top: 0; z-index: 1; min-height: 40px; background: #f7f8fb; color: #4c5a6f; font-weight: 800; }
.daily-data-row > div { min-width: 0; padding: 8px 10px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.same-device-table { min-width: 980px; }
.same-device-row { display: grid; grid-template-columns: minmax(160px, 1.08fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(140px, .92fr) minmax(140px, .92fr) minmax(140px, .92fr); align-items: center; min-height: 42px; border-bottom: 1px solid #edf1f6; color: #4f5d70; font-size: 13px; }
.same-device-row:last-child { border-bottom: 0; }
.same-device-row.header { min-height: 40px; background: #f7f8fb; color: #4c5a6f; font-weight: 800; }
.same-device-row > div { min-width: 0; padding: 8px 10px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.same-device-row > div:first-child { justify-content: flex-start; text-align: left; }
.detail-brand { min-width: 34px; height: 22px; padding: 0 8px; border-radius: 5px; background: #eef6ff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.account-detail-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; color: #98a2b3; font-size: 13px; font-weight: 700; }
.player-profit-page { padding: 0 24px 32px; }
.player-profit-tabs { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px; flex-wrap: wrap; background: #edf3ff; border-radius: 12px; border: 1px solid #dde8ff; width: fit-content; }
.profit-tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 1px solid #d2def8; border-radius: 10px; background: #fff; color: #5f6b7a; font-size: 14px; font-weight: 500; transition: all .18s ease; }
.profit-tab:hover { border-color: #b7cbf7; color: #3f567a; }
.profit-tab.active { color: #fff; background: linear-gradient(135deg, #4f9eff, #2f7df5); border-color: #2f7df5; box-shadow: 0 5px 12px rgba(47, 125, 245, .25); }
.profit-tab .dot { font-size: 10px; line-height: 1; }
.profit-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.profit-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e8edf5; background: #fff; }
.profit-filters { flex: 1 1 auto; display: grid; grid-template-columns: 210px 240px minmax(350px, 390px); align-items: center; gap: 12px; min-width: 0; }
.profit-filter { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profit-filter.date-filter { min-width: 0; }
.profit-label { color: #6b7280; font-size: 14px; font-weight: 600; white-space: nowrap; }
.profit-input { width: 150px; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.profit-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.profit-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.game-picker { position: relative; width: 160px; }
.game-picker-trigger { width: 100%; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 28px 0 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.game-picker-trigger:hover, .game-picker-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.game-picker-arrow { position: absolute; right: 10px; color: #8a93a3; }
.game-picker-panel { position: fixed; width: min(760px, calc(100vw - 280px)); max-height: min(560px, calc(100vh - 120px)); overflow: auto; padding: 14px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(31, 45, 61, .18); z-index: 24; }
.game-brand-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.game-brand-tab { height: 32px; min-width: 72px; padding: 0 12px 0 10px; border: 1px solid #d8e2f0; border-radius: 6px; background: #f8fafc; color: #516174; font-size: 12px; font-weight: 700; cursor: default; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.game-brand-tab:first-child { min-width: 92px; }
.game-brand-tab:hover { border-color: #9cc7ff; color: #1677ff; background: #f3f8ff; }
.game-brand-tab.active { border-color: #1677ff; color: #1677ff; background: #eef6ff; box-shadow: 0 4px 10px rgba(22, 119, 255, .12); }
.game-brand-tab-check { width: 14px; height: 14px; border: 1.5px solid #c2cedd; border-radius: 4px; background: #fff; box-sizing: border-box; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.game-brand-tab:hover .game-brand-tab-check { border-color: #9cc7ff; }
.game-brand-tab.active .game-brand-tab-check { border-color: #1677ff; background: #1677ff; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.game-brand-tab.active .game-brand-tab-check::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.game-brand-tab-label { line-height: 1; user-select: none; }
.game-all-check { display: none; }
.game-search { width: 100%; height: 34px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; outline: none; color: #3f4b5b; }
.game-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; min-height: 260px; }
.game-option { height: 102px; border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; color: #3f4b5b; display: flex; align-items: stretch; padding: 0; overflow: hidden; cursor: pointer; }
.game-option.active, .game-option:hover { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64, 158, 255, .12); }
.game-choice-icon { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 11px; font-weight: 700; background: #64748b; }
.game-thumb { position: relative; width: 100%; min-height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px 8px; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: linear-gradient(135deg, #64748b, #93a4b8); }
.game-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(to top, rgba(0, 104, 171, .78), rgba(0, 104, 171, 0)); }
.game-thumb span { position: relative; z-index: 1; }
.game-thumb.all { background: linear-gradient(135deg, #526173, #9aa8b8); }
.game-thumb.kraken { background: radial-gradient(circle at 65% 22%, #ff7a45 0 9%, transparent 10%), linear-gradient(135deg, #14213d 0%, #1e5aa8 46%, #18a0fb 100%); }
.game-thumb.ek { background: radial-gradient(circle at 62% 32%, #ff3b30 0 13%, transparent 14%), linear-gradient(135deg, #1c2744, #2f80ed 48%, #8e44ad); }
.game-thumb.gems { background: radial-gradient(circle at 50% 30%, #ffd166 0 14%, transparent 15%), linear-gradient(135deg, #7f1d1d, #d97706 50%, #7c3aed); }
.game-thumb.palace { background: radial-gradient(circle at 48% 18%, #fff7ad 0 12%, transparent 13%), linear-gradient(135deg, #45210d, #f59e0b 55%, #0369a1); }
.game-thumb.pharaoh { background: radial-gradient(circle at 55% 32%, #facc15 0 12%, transparent 13%), linear-gradient(135deg, #172554, #2563eb 45%, #7c3aed); }
.game-thumb.bowling { background: radial-gradient(circle at 54% 38%, #ef4444 0 16%, transparent 17%), linear-gradient(135deg, #581c87, #fb7185 52%, #f97316); }
.game-thumb.balloon { background: radial-gradient(circle at 52% 28%, #fecdd3 0 18%, transparent 19%), linear-gradient(135deg, #312e81, #8b5cf6 45%, #f9a8d4); }
.game-thumb.sesame { background: radial-gradient(circle at 45% 42%, #fde68a 0 15%, transparent 16%), linear-gradient(135deg, #3b2516, #92400e 48%, #f59e0b); }
.game-thumb.monster { background: radial-gradient(circle at 58% 33%, #ef4444 0 10%, transparent 11%), linear-gradient(135deg, #0f172a, #0f766e 48%, #fb923c); }
.game-thumb.maya { background: radial-gradient(circle at 50% 25%, #fbbf24 0 14%, transparent 15%), linear-gradient(135deg, #164e63, #14b8a6 45%, #7c2d12); }
.game-thumb.crown { background: radial-gradient(circle at 54% 30%, #facc15 0 16%, transparent 17%), linear-gradient(135deg, #7f1d1d, #dc2626 50%, #581c87); }
.game-thumb.dragon { background: radial-gradient(circle at 55% 36%, #fb923c 0 15%, transparent 16%), linear-gradient(135deg, #14532d, #15803d 45%, #0f172a); }
.game-thumb.candy { background: radial-gradient(circle at 50% 30%, #f9a8d4 0 16%, transparent 17%), linear-gradient(135deg, #be123c, #f97316 46%, #facc15); }
.game-thumb.star { background: radial-gradient(circle at 50% 25%, #fde047 0 12%, transparent 13%), linear-gradient(135deg, #1e1b4b, #4f46e5 50%, #0ea5e9); }
.game-thumb.train { background: radial-gradient(circle at 52% 35%, #fde68a 0 14%, transparent 15%), linear-gradient(135deg, #451a03, #ca8a04 48%, #111827); }
.game-picker-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.game-page-btn { width: 30px; height: 30px; border: 1px solid #d9dee8; border-radius: 4px; background: #fff; color: #4b5563; cursor: pointer; }
.game-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.game-page-info { min-width: 54px; text-align: center; color: #667085; font-size: 13px; }
.profit-date-control { display: grid; grid-template-columns: minmax(142px, 1fr) 20px minmax(142px, 1fr); align-items: center; gap: 6px; width: 100%; min-width: 0; }
.date-field { height: 36px; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 8px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.date-field:focus-within { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.date-field-label { color: #8a93a3; font-size: 12px; font-weight: 600; white-space: nowrap; }
.profit-input.date { width: 100%; border: 0; height: 34px; padding: 0; cursor: pointer; min-width: 0; color: #344054; font-size: 13px; font-weight: 600; background: transparent; box-shadow: none; }
.profit-input.date:focus { box-shadow: none; }
.profit-input.date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .72; filter: invert(42%) sepia(10%) saturate(621%) hue-rotate(177deg) brightness(89%) contrast(87%); }
.profit-date-range-sep { width: 20px; color: #8a93a3; font-size: 13px; text-align: center; }
.profit-input::placeholder { color: #b0b6c2; }
.profit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.profit-btn { height: 38px; min-width: 88px; padding: 0 16px; border-radius: 6px; border: 1px solid #cfd7e6; background: #fff; color: #5e6470; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.profit-btn:hover { border-color: #409eff; color: #409eff; }
.profit-btn.primary { border-color: #409eff; background: #409eff; color: #fff; }
.profit-btn.primary:hover { box-shadow: 0 6px 14px rgba(64, 158, 255, .24); }
.profit-btn.create { border-color: #20c467; background: #20c467; color: #fff; }
.profit-btn.create:hover { border-color: #16a85a; background: #16a85a; color: #fff; box-shadow: 0 6px 14px rgba(32, 196, 103, .22); }
.profit-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.profit-table { width: 100%; min-width: 1360px; border-top: 0; }
.profit-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.35fr) minmax(120px, .85fr) minmax(96px, .7fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.05fr) minmax(140px, .95fr); align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #505a69; font-size: 14px; }
.profit-row.header { background: #f6f8fb; color: #4c5a6f; font-weight: 600; }
.profit-cell { padding: 10px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; display: flex; align-items: center; justify-content: center; }
.profit-row.header .profit-cell { white-space: nowrap; }
.profit-player { color: #3f8efc; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.profit-copy { position: relative; display: inline-flex; width: 22px; height: 22px; border: 1px solid #bcd7ff; border-radius: 5px; align-items: center; justify-content: center; color: #2f80ed; background: #f4f8ff; cursor: pointer; }
.profit-copy::before, .profit-copy::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; background: #f4f8ff; }
.profit-copy::before { transform: translate(-2px, 2px); opacity: .7; }
.profit-copy::after { transform: translate(2px, -2px); }
.profit-copy.copied { color: #10b981; border-color: #a7f3d0; background: #ecfdf5; }
.profit-copy.copied::before, .profit-copy.copied::after { background: #ecfdf5; }
.profit-date { line-height: 1.45; color: #5d6676; white-space: nowrap; }
.profit-num { font-weight: 600; color: #646b77; white-space: nowrap; }
.profit-num.neg { color: #ff4d4f; }
.profit-num.pos { color: #20c467; }
.player-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-low { color: #64748b; background: #f1f5f9; }
.tag-mid { color: #2563eb; background: #dbeafe; }
.tag-premium { color: #047857; background: #d1fae5; }
.tag-risk { color: #b45309; background: #fef3c7; }
.profit-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 8px 20px 16px; color: #6c7482; font-size: 14px; flex-wrap: wrap; }
.account-card > .profit-pagination, .profit-card > .profit-pagination { margin-top: auto; padding: 16px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; }
.profit-page-size { display: inline-flex; align-items: center; gap: 8px; }
.profit-size-select { height: 34px; min-width: 80px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; background: #fff; color: #495566; }
.profit-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profit-page-btn { width: 38px; height: 38px; border: 1px solid #e0e5ef; background: #fff; color: #5a6472; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.profit-page-btn.active { background: #409eff; color: #fff; border-color: #409eff; }
.profit-page-btn.ellipsis { border-color: transparent; background: transparent; }
.profit-page-jump { display: flex; align-items: center; gap: 10px; }
.profit-page-input { width: 72px; height: 38px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; text-align: center; }
.today-profit-table { min-width: 1580px; }
.today-profit-table .profit-row { grid-template-columns: minmax(120px, .85fr) minmax(190px, 1.25fr) minmax(96px, .68fr) minmax(128px, .9fr) minmax(128px, .9fr) minmax(128px, .9fr) minmax(136px, .94fr) minmax(120px, .82fr) minmax(96px, .68fr) minmax(112px, .78fr) minmax(92px, .62fr); }
.profit-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.profit-status.normal { color: #389e0d; background: #f0f9e8; border: 1px solid #d7efc5; }
.profit-status.loss { color: #b45309; background: #fff7e8; border: 1px solid #ffe2b8; }
.profit-status.win { color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; }
.profit-op-btn { height: 30px; min-width: 54px; padding: 0 12px; border: 1px solid #cfe2ff; border-radius: 6px; background: #f4f8ff; color: #1677ff; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.profit-op-btn:hover { color: #fff; border-color: #1677ff; background: #1677ff; }
.profit-empty { min-height: 180px; display: flex; align-items: center; justify-content: center; color: #8a93a3; border-bottom: 1px solid #e8edf5; }
.profit-page-btn { cursor: pointer; }
.profit-page-btn:disabled, .profit-page-btn.disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; cursor: not-allowed; }
.profit-control-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 23, 42, .38); }
.profit-control-modal { width: min(960px, calc(100vw - 56px)); max-height: min(760px, calc(100vh - 56px)); overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .24); }
.profit-control-head { position: sticky; top: 0; z-index: 2; min-height: 70px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e6ebf3; background: #fff; }
.profit-control-head h2 { margin: 0; color: #202b3c; font-size: 19px; font-weight: 800; }
.profit-control-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.profit-control-head button, .profit-control-footer button { height: 36px; min-width: 86px; border: 1px solid #d9e1ec; border-radius: 7px; background: #fff; color: #536071; font-weight: 800; cursor: pointer; }
.profit-control-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.profit-control-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: visible; background: #fff; }
.profit-control-card-head { padding: 13px 16px; background: #f8fafc; border-bottom: 1px solid #e7edf5; }
.profit-control-card-head h3 { margin: 0; color: #202b3c; font-size: 15px; font-weight: 800; }
.profit-control-card-head p { margin: 5px 0 0; color: #8a94a6; font-size: 12px; }
.profit-control-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #edf1f6; }
.profit-control-row:last-child { border-bottom: 0; }
.profit-control-label { color: #4f5d70; font-size: 13px; font-weight: 800; text-align: right; white-space: nowrap; }
.profit-control-label.required::before { content: "*"; color: #f56c6c; margin-right: 4px; }
.profit-control-inline, .profit-control-segment, .profit-control-time-options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.profit-control-segment { border: 1px solid #d9dee8; border-radius: 7px; overflow: hidden; width: fit-content; gap: 0; background: #fff; }
.profit-control-segment button { min-width: 72px; height: 36px; border: 0; border-right: 1px solid #d9dee8; background: #fff; color: #4f5d70; font-size: 13px; font-weight: 800; cursor: pointer; }
.profit-control-segment button:last-child { border-right: 0; }
.profit-control-segment button.active { color: #fff; background: #1677ff; }
.profit-control-row input { height: 36px; border: 1px solid #d9dee8; border-radius: 7px; padding: 0 10px; color: #344054; outline: none; }
.profit-control-row input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.profit-control-hint { min-height: 28px; padding: 5px 10px; border-radius: 6px; background: #f7f9fc; color: #7a8699; display: inline-flex; align-items: center; font-size: 12px; line-height: 1.4; }
.profit-control-hint.warning { color: #b26a00; background: #fff7e8; border: 1px solid #ffe2b8; }
.profit-control-game-picker { width: min(580px, 100%); position: relative; }
.profit-control-game-trigger { width: 100%; min-height: 36px; border: 1px solid #d9dee8; border-radius: 7px; padding: 4px 34px 4px 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; }
.profit-control-game-trigger > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profit-control-game-trigger:hover { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.profit-control-game-panel { margin-top: 10px; padding: 12px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(31, 45, 61, .14); }
.profit-control-game-panel .game-options { grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 178px; }
.profit-control-game-panel .game-option { position: relative; height: 78px; min-height: 78px; }
.profit-control-game-panel .game-option.checked::before { content: ""; position: absolute; right: 6px; top: 6px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #1677ff; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.profit-control-game-panel .game-option.checked::after { content: ""; position: absolute; right: 12px; top: 9px; z-index: 3; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.profit-control-amount-chip-wrap { display: inline-flex; align-items: center; }
.profit-control-amount-chip, .profit-control-amount-create, .profit-control-amount-save, .profit-control-time-options button { min-height: 30px; border: 1px solid #cfe2ff; border-radius: 999px; background: #f2f7ff; color: #1677ff; padding: 0 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.profit-control-amount-remove { width: 22px; height: 22px; margin-right: -8px; z-index: 1; border: 1px solid #ffc9c9; border-radius: 50%; background: #fff1f0; color: #ff4d4f; cursor: pointer; }
.profit-control-amount-editor { display: inline-flex; align-items: center; gap: 6px; }
.profit-control-amount-editor input { width: 120px; height: 30px; }
.profit-control-time-options button { border-radius: 7px; background: #fff; color: #4f5d70; border-color: #d9dee8; }
.profit-control-time-options button.active { color: #fff; border-color: #1677ff; background: #1677ff; }
.profit-control-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid #e6ebf3; background: #fff; }
.profit-control-footer button.primary { border-color: #1677ff; background: #1677ff; color: #fff; }
.toast-host { position: fixed; right: 24px; top: 78px; z-index: 120; display: grid; gap: 10px; pointer-events: none; }
.toast-item { min-width: 180px; padding: 10px 14px; border-radius: 8px; background: rgba(17, 24, 39, .92); color: #fff; font-size: 13px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }
.toast-item.visible { opacity: 1; transform: translateY(0); }
.stats-page { padding: 0 24px 32px; }
.stats-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.stats-toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #e8edf5; background: #fff; }
.stats-filter { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.stats-filter span { color: #5f6b7a; font-size: 14px; font-weight: 700; white-space: nowrap; }
.stats-input { width: 170px; height: 38px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 12px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.stats-game-picker { width: 240px; }
.stats-game-picker .game-picker-trigger { height: 38px; }
.stats-game-options .game-option.active { border-color: #1677ff; box-shadow: inset 0 0 0 2px rgba(22, 119, 255, .28), 0 0 0 2px rgba(22, 119, 255, .12); }
select.stats-input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 10px) 16px; background-size: 6px 6px; background-repeat: no-repeat; }
.stats-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.stats-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.stats-card > .profit-pagination { margin-top: auto; padding: 16px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; }
.stats-table { width: 100%; border-top: 0; }
.stats-table.site { min-width: 1580px; }
.stats-table.retention { min-width: 1440px; }
.stats-table.retention-player { min-width: 1280px; }
.stats-row { display: grid; align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #505a69; font-size: 14px; }
.stats-table.site .stats-row { grid-template-columns: minmax(70px, .55fr) minmax(90px, .7fr) minmax(180px, 1.4fr) minmax(150px, 1.15fr) minmax(150px, 1.15fr) minmax(130px, 1fr) minmax(150px, 1.15fr) minmax(110px, .85fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(110px, .85fr) minmax(120px, .9fr); }
.stats-table.site.hide-game-name { min-width: 1420px; }
.stats-table.site.hide-game-name .stats-row { grid-template-columns: minmax(70px, .55fr) minmax(90px, .7fr) minmax(150px, 1.2fr) minmax(150px, 1.2fr) minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(110px, .85fr) minmax(90px, .7fr) minmax(120px, .95fr) minmax(110px, .85fr) minmax(120px, .95fr); }
.stats-table.retention .stats-row { grid-template-columns: minmax(180px, 1.25fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr); }
.stats-table.retention-player .stats-row { grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(170px, 1.05fr) minmax(170px, 1.05fr) minmax(170px, 1.05fr) minmax(180px, 1.15fr) minmax(180px, 1.15fr); }
.stats-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 700; }
.stats-row > div { min-width: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.stats-row:not(.header):hover { background: #fbfdff; }
.game-name-cell { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; color: #344054; font-weight: 700; }
.game-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .6); background: radial-gradient(circle at 62% 30%, #ff4d4f 0 18%, transparent 19%), linear-gradient(135deg, #111827 0%, #25324a 45%, #d92d20 100%); box-shadow: 0 6px 14px rgba(29, 41, 57, .14); }
.api-access-page { padding: 0 24px 34px; background: #f5f7fb; }
.api-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; }
.api-page-head .page-title { margin-bottom: 6px; }
.api-doc-link, .api-text-btn, .api-link-btn { border: 0; background: transparent; color: #1677ff; font-size: 14px; font-weight: 700; cursor: pointer; }
.api-doc-link { height: 38px; padding: 0 14px; border-radius: 8px; background: #eef6ff; }
.api-doc-link:hover, .api-text-btn:hover, .api-link-btn:hover { color: #0958d9; }
.api-card { width: 100%; margin: 0 0 16px; padding: 22px 24px; border: 1px solid #e7eef8; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(31, 45, 61, .06); }
.api-overview-card { padding: 18px 24px; }
.api-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.api-card-head h2 { margin: 0; color: #1f2d3d; font-size: 18px; line-height: 1.3; }
.api-card-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.api-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.api-overview-item { min-height: 86px; padding: 15px 16px; border: 1px solid #e8f0fb; border-radius: 12px; background: linear-gradient(180deg, #fbfdff, #f6f9ff); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.api-overview-item span { color: #7a8494; font-size: 13px; font-weight: 700; }
.api-overview-item strong { color: #213149; font-size: 20px; line-height: 1; }
.api-pill { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 58px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-style: normal; font-weight: 800; }
.api-pill.green { color: #389e0d; background: #f0f9e8; border: 1px solid #d7efc5; }
.api-pill.gray { color: #667085; background: #f2f4f7; border: 1px solid #e4e7ec; }
.api-form, .api-sign-tool { display: grid; gap: 14px; }
.api-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: stretch; }
.api-config-section { min-width: 0; padding: 14px; border: 1px solid #e8f0fb; border-radius: 12px; background: #fbfdff; }
.api-config-basic { display: grid; gap: 16px; align-content: start; }
.api-config-callbacks { display: grid; gap: 12px; align-content: start; }
.api-config-basic .api-field { grid-template-columns: 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e8f0fb; }
.api-config-basic .api-field:last-child { padding-bottom: 0; border-bottom: 0; }
.api-config-basic .api-control-group { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.api-config-basic .api-field > span { font-size: 15px; justify-self: start; text-align: left; }
.api-field { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 18px; margin: 0; }
.api-field > span { color: #4b5565; font-size: 14px; font-weight: 800; text-align: left; }
.api-control-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.api-basic-field .api-control-group { width: 100%; max-width: 100%; }
.api-basic-mode { gap: 6px; }
.api-basic-mode > span { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 2px; color: #344054; }
.api-basic-mode > span::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #1677ff; box-shadow: 0 0 0 4px rgba(22, 119, 255, .12); }
.api-basic-mode .api-control-group { grid-template-columns: minmax(0, 1fr) 76px 76px; max-width: 520px; }
.api-basic-mode .api-input, .api-basic-merchant .api-input { width: 100%; max-width: 100%; }
.api-basic-key .api-input { width: 100%; min-width: 0; }
.api-config-basic .api-basic-field .api-control-group { justify-self: center; width: min(100%, 430px); }
.api-config-basic .api-basic-mode .api-control-group { justify-self: start; width: min(100%, 520px); }
.api-config-basic .api-basic-mode .api-input { grid-column: 1 / 3; }
.api-config-basic .api-basic-merchant .api-control-group,
.api-config-basic .api-basic-key .api-control-group { width: min(100%, 520px); }
.api-config-basic .api-basic-merchant .api-input { grid-column: 1 / 3; }
.api-config-basic .api-basic-merchant .api-btn { grid-column: 3; }
.api-config-basic .api-basic-field .api-control-group { justify-self: start; width: min(100%, 520px); }
.api-config-basic .api-basic-field .api-input { grid-column: 1; }
.api-config-basic .api-basic-mode .api-input,
.api-config-basic .api-basic-merchant .api-input,
.api-config-basic .api-basic-key .api-input { width: 100%; }
.api-input { width: 100%; height: 40px; border: 1px solid #d8e0ec; border-radius: 8px; padding: 0 13px; color: #344054; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.api-input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.api-input[readonly] { background: #f7f9fc; color: #5d6677; }
.api-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.api-btn { height: 40px; min-width: 76px; padding: 0 15px; border: 1px solid #d8e0ec; border-radius: 8px; background: #fff; color: #536071; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.api-btn:hover { border-color: #1677ff; color: #1677ff; }
.api-btn.primary { border-color: #1677ff; background: #1677ff; color: #fff; }
.api-btn.primary:hover { background: #0958d9; box-shadow: 0 7px 16px rgba(22, 119, 255, .2); }
.api-btn.warning { border-color: #faad43; background: #fa8c16; color: #fff; }
.api-btn.warning:hover { border-color: #d46b08; background: #d46b08; color: #fff; }
.api-btn.ghost { color: #1677ff; background: #eef6ff; border-color: #bad9ff; }
.api-btn.copied, .api-url.copied { color: #389e0d; border-color: #b7eb8f; background: #f6ffed; }
.api-doc-row { min-height: 0; }
.api-config-basic .api-doc-row { gap: 12px; justify-items: center; text-align: center; }
.api-config-basic .api-doc-row > span { justify-self: center; }
.api-doc-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; width: 100%; }
.api-config-callbacks .api-callback-field { grid-template-columns: 1fr; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e8f0fb; }
.api-config-callbacks .api-callback-field:last-child { padding-bottom: 0; border-bottom: 0; }
.api-config-callbacks .api-callback-field > span { line-height: 1.35; }
.api-config-callbacks .api-control-group { display: grid; grid-template-columns: minmax(220px, 1fr) 76px 76px 76px; align-items: center; gap: 8px; }
.api-callback-field { grid-template-columns: 168px minmax(0, 1fr); }
.api-callback-field .api-control-group { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px minmax(150px, 190px); align-items: center; }
.api-config-callbacks .api-callback-field .api-control-group { grid-template-columns: minmax(220px, 1fr) 76px 76px 76px; }
.api-field-note { color: #697386; font-size: 13px; font-style: normal; white-space: normal; line-height: 1.35; }
.api-overview-item em { font-style: normal; }
.api-callback-status { display: grid; gap: 8px; margin-top: 2px; }
.api-callback-status-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 72px; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 1px solid #e8f0fb; border-radius: 8px; background: #fff; }
.api-callback-status-row span { color: #536071; font-size: 12px; font-weight: 800; }
.api-callback-status-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.api-callback-status-row em { justify-self: end; min-width: 62px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 800; }
.api-callback-status-row em.ok { color: #389e0d; background: #f6ffed; border: 1px solid #d9f7be; }
.api-callback-status-row em.testing { color: #1677ff; background: #eef6ff; border: 1px solid #bad9ff; }
.api-callback-status-row em.warn, .api-callback-status-row em.fail { color: #d46b08; background: #fff7e8; border: 1px solid #ffe2b8; }
.return-url-field { margin-top: 0; padding-top: 0; border-top: 0; }
.api-accordion { display: grid; gap: 10px; }
.api-group { border: 1px solid #e7eef8; border-radius: 12px; background: #fff; overflow: hidden; }
.api-group summary { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #2d3748; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; background: #f8fbff; }
.api-group summary::-webkit-details-marker { display: none; }
.api-group summary::after { content: "⌄"; color: #7a8494; transition: transform .15s ease; }
.api-group[open] summary::after { transform: rotate(180deg); }
.api-group summary em { margin-left: auto; color: #8a93a3; font-size: 12px; font-style: normal; font-weight: 700; }
.api-endpoints { display: grid; }
.api-endpoint { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border-top: 1px solid #eef2f7; }
.api-endpoint > div { min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-endpoint strong { color: #4b5565; font-size: 14px; }
.api-endpoint > span { justify-self: end; min-width: 58px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fa8c16; background: #fff7e8; border: 1px solid #ffe2b8; font-size: 12px; font-weight: 800; }
.api-url { max-width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 5px 8px; color: #1677ff; background: #f3f8ff; font-size: 13px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-url:hover { border-color: #bad9ff; background: #eaf4ff; }
.api-textarea { min-height: 78px; padding-top: 10px; resize: vertical; line-height: 1.5; }
.api-sign-tool .api-control-group { align-items: stretch; }
.api-sign-tool .api-control-group .api-btn { height: auto; min-height: 78px; }
.api-textarea.output { min-height: 72px; }
.report-data-page { padding: 0 24px 32px; }
.report-card { width: 100%; max-width: none; flex: 1 1 auto; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.report-toolbar { padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid #edf1f6; }
.report-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 0; background: #fff; }
.report-headline h1 { margin: 0; color: #202b3c; font-size: 20px; line-height: 1.3; font-weight: 800; }
.report-headline p { margin: 6px 0 0; color: #7a8494; font-size: 13px; line-height: 1.5; }
.report-summary { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; padding: 16px 20px 0; background: #fff; }
.report-summary-card { min-width: 0; min-height: 86px; padding: 14px 16px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fbfdff; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.report-summary-card span { color: #667085; font-size: 12px; font-weight: 800; }
.report-summary-card strong { min-width: 0; color: #202b3c; font-size: 22px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-summary-card strong.pos { color: #20c467; }
.report-summary-card strong.neg { color: #ff4d4f; }
.report-summary-card em { color: #8a93a3; font-size: 12px; font-style: normal; }
.report-toolbar-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.report-toolbar-stacked { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-report-toolbar { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 16px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border-bottom: 1px solid #edf1f6; }
.report-filter-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; min-width: 0; }
.report-filter-grid { display: grid; gap: 14px 22px; align-items: center; width: 100%; }
.platform-profit-filters { grid-template-columns: 420px 420px 420px; }
.platform-profit-filters .report-date-filter { grid-column: 1 / 3; }
.platform-profit-filters .report-actions { grid-column: 3 / 4; }
.daily-report-filters { grid-template-columns: minmax(230px, 280px) minmax(380px, 430px) minmax(280px, 1fr); gap: 14px 18px; width: 100%; flex: 1 1 auto; }
.daily-report-periods { grid-column: 1 / 3; display: inline-flex; align-items: center; gap: 10px; padding-top: 2px; }
.daily-report-actions { grid-column: 3 / 4; justify-content: flex-end; }
.daily-report-actions .profit-btn { min-width: 84px; }
.report-filter { display: flex; align-items: center; gap: 10px; min-width: 0; color: #5f646f; font-size: 14px; font-weight: 700; }
.report-filter > span:first-child { flex-shrink: 0; white-space: nowrap; }
.report-date-filter { min-width: 0; }
.report-control { width: 240px; height: 38px; border: 1px solid #d9dee8; border-radius: 5px; padding: 0 12px; color: #5f646f; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
select.report-control { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #a4acb9 50%), linear-gradient(135deg, #a4acb9 50%, transparent 50%); background-position: calc(100% - 20px) 16px, calc(100% - 13px) 16px; background-size: 7px 7px; background-repeat: no-repeat; }
.report-control:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.report-control::placeholder { color: #b4bac6; }
.report-date-range { position: relative; width: 420px; max-width: 100%; height: 38px; border: 1px solid #d9dee8; border-radius: 8px; display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; padding: 0 12px 0 42px; background: #fff; color: #60656f; font-weight: 500; }
.report-date-range::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 15px; border: 1.5px solid #a8b0bd; border-radius: 2px; transform: translateY(-50%); }
.report-date-range::after { content: ""; position: absolute; left: 18px; top: calc(50% - 4px); width: 16px; height: 1.5px; background: #a8b0bd; box-shadow: 3px -5px 0 -1px #a8b0bd, 11px -5px 0 -1px #a8b0bd; }
.report-date-range input { min-width: 0; width: 100%; height: 36px; border: 0; color: #60656f; font: inherit; text-align: center; background: transparent; outline: none; }
.report-date-range em { color: #30343b; font-style: normal; text-align: center; }
.report-actions, .report-periods { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.report-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.report-search-icon { position: relative; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.report-search-icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 8px; height: 2px; border-radius: 999px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.report-export-btn { min-width: 88px; flex: 0 0 auto; }
.daily-report-filters .profit-btn { min-width: 72px; padding: 0 14px; }
.report-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px; overflow-x: auto; }
.report-table { width: 100%; min-width: 1200px; }
.report-empty-state { min-height: 178px; border-top: 1px solid #e7edf7; background: linear-gradient(180deg, #fff 0%, #f9fbff 100%); color: #8a96a8; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; font-weight: 800; }
.report-export-status { min-height: 48px; margin: 12px 20px 0; padding: 10px 12px; border: 1px solid #d8e7ff; border-radius: 8px; background: #f7fbff; color: #33526f; display: flex; align-items: center; gap: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.78); }
.merchant-table-section > .report-export-status { margin: 0 0 14px; }
.merchant-detail-dialog > .report-export-status { margin: 0 20px 14px; }
.report-export-status[hidden] { display: none; }
.report-export-status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #1677ff; box-shadow: 0 0 0 4px rgba(22, 119, 255, .12); }
.report-export-status-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.report-export-status-copy strong { color: #1f3f63; font-size: 13px; font-weight: 900; line-height: 1.25; }
.report-export-status-copy span { color: #6c7c90; font-size: 12px; font-weight: 700; line-height: 1.35; }
.report-export-status .profit-btn { width: auto; min-width: 72px; height: 32px; flex: 0 0 auto; padding: 0 12px; border-color: #cfe2ff; background: #fff; color: #1677ff; }
.report-export-status.ready { border-color: #b7ebc6; background: #f2fff6; color: #1f6f3e; }
.report-export-status.ready .report-export-status-dot { background: #20c467; box-shadow: 0 0 0 4px rgba(32, 196, 103, .14); }
.report-export-status.ready .report-export-status-copy strong { color: #166534; }
.report-export-status.ready .report-export-status-copy span { color: #4f7d61; }
.report-export-status.ready .profit-btn { border-color: #20c467; color: #15803d; background: #fff; }
.game-data-table { min-width: 1460px; }
.game-report-picker { width: 240px; }
.game-report-picker .game-picker-trigger { height: 38px; }
.platform-profit-table { min-width: 1820px; }
.daily-report-table { min-width: 1740px; border: 1px solid #e7edf7; border-radius: 12px; overflow: hidden; background: #fff; }
.retention-report-table { min-width: 1520px; border: 1px solid #e7edf7; border-radius: 12px; overflow: hidden; background: #fff; }
.player-retention-report-table { min-width: 1320px; border: 1px solid #e7edf7; border-radius: 12px; overflow: hidden; background: #fff; }
.report-row { display: grid; align-items: center; min-height: 82px; border-bottom: 1px solid #e8edf5; color: #5d626c; font-size: 15px; }
.game-data-table .report-row { grid-template-columns: minmax(240px, 1.42fr) minmax(120px, .82fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(120px, .76fr) minmax(120px, .76fr) minmax(140px, .88fr); }
.platform-profit-table .report-row { grid-template-columns: minmax(230px, 1.45fr) minmax(165px, 1fr) minmax(165px, 1fr) minmax(155px, .95fr) minmax(185px, 1.15fr) minmax(145px, .9fr) minmax(140px, .85fr) minmax(190px, 1.2fr) minmax(120px, .75fr) minmax(145px, .9fr); }
.daily-report-table .report-row { grid-template-columns: minmax(56px, .36fr) minmax(224px, 1.38fr) minmax(150px, .95fr) minmax(165px, 1.05fr) minmax(165px, 1.05fr) minmax(150px, .95fr) minmax(145px, .9fr) minmax(170px, 1.08fr) minmax(145px, .9fr) minmax(145px, .9fr) minmax(130px, .82fr); min-height: 76px; }
.retention-report-table .report-row { grid-template-columns: minmax(240px, 1.35fr) minmax(140px, .9fr) minmax(130px, .85fr) minmax(145px, .92fr) minmax(135px, .86fr) minmax(135px, .86fr) minmax(135px, .86fr) minmax(145px, .92fr) minmax(145px, .92fr); min-height: 74px; }
.player-retention-report-table .report-row { grid-template-columns: minmax(150px, 1fr) minmax(130px, .85fr) minmax(145px, .92fr) minmax(135px, .86fr) minmax(135px, .86fr) minmax(135px, .86fr) minmax(145px, .92fr) minmax(145px, .92fr); min-height: 74px; }
.daily-report-table .report-row.header { min-height: 62px; background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%); }
.retention-report-table .report-row.header,
.player-retention-report-table .report-row.header { min-height: 62px; background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%); }
.daily-report-table .report-row:not(.header):nth-child(odd) { background: #fcfdff; }
.retention-report-table .report-row:not(.header):nth-child(odd),
.player-retention-report-table .report-row:not(.header):nth-child(odd) { background: #fcfdff; }
.daily-report-table .report-row > div { font-variant-numeric: tabular-nums; }
.retention-report-table .report-row > div,
.player-retention-report-table .report-row > div { font-variant-numeric: tabular-nums; }
.daily-report-table .report-game-cell { gap: 12px; font-weight: 600; color: #42506a; }
.retention-report-table .report-game-cell { gap: 12px; font-weight: 600; color: #42506a; }
.daily-report-table .report-expand { font-size: 18px; color: #9aa5b4; }
.daily-report-table .help-dot { background: #b6cffc; }
.retention-report-table .help-dot,
.player-retention-report-table .help-dot { background: #b6cffc; }
.retention-rate { min-width: 68px; height: 26px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; font-size: 12px; font-weight: 900; }
.retention-rate.warn { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.report-row.header { min-height: 68px; background: #f7f8fa; color: #4f5a70; font-weight: 700; }
.report-row > div { min-width: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.report-row:not(.header):hover { background: #fbfdff; }
.report-game-cell { justify-content: flex-start !important; text-align: left !important; color: #5f646f; font-weight: 500; white-space: nowrap; }
.report-game-cell span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.report-game-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 1px; border: 1px solid rgba(255,255,255,.85); background: radial-gradient(circle at 20% 80%, rgba(239, 68, 68, .9) 0 3px, transparent 4px), radial-gradient(circle at 58% 22%, rgba(244, 63, 94, .95) 0 7px, transparent 8px), linear-gradient(154deg, #05070b 0 42%, #151923 43% 62%, #e91e4f 63% 68%, #0b0d12 69% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.help-dot { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: #a8c8fb; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.report-expand { color: #8a93a3; font-size: 22px; }
.report-pagination { margin-top: auto; padding: 16px 20px; border-top: 1px solid #edf1f6; }
.report-pagination .profit-page-btn.disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; }
.merchant-report-page { padding: 0 24px 32px; color: #333; }
.merchant-report-card { width: 100%; max-width: none; min-height: calc(100vh - 116px); padding: 0; overflow: hidden; display: flex; flex-direction: column; border-color: #e8edf5; }
.merchant-report-page .profit-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.merchant-report-page .profit-btn.primary:hover { background: #0958d9; border-color: #0958d9; box-shadow: 0 7px 16px rgba(22, 119, 255, .18); }
.merchant-toolbar { padding: 18px 20px 16px; background: #fff; border-bottom: 1px solid #edf1f6; }
.merchant-filter-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(188px, 1fr); gap: 14px 18px; align-items: center; }
.merchant-date-filter { min-width: 0; }
.merchant-month-control { position: relative; width: 100%; height: 40px; border: 1px solid #d9dee8; border-radius: 8px; display: flex; align-items: center; padding: 0 12px 0 42px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.merchant-month-control::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 15px; border: 1.5px solid #a8b0bd; border-radius: 2px; transform: translateY(-50%); }
.merchant-month-control::after { content: ""; position: absolute; left: 16px; top: calc(50% - 4px); width: 16px; height: 1.5px; background: #a8b0bd; box-shadow: 3px -5px 0 -1px #a8b0bd, 11px -5px 0 -1px #a8b0bd; }
.merchant-month-control:focus-within { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.merchant-month-control input { width: 100%; height: 38px; border: 0; outline: none; background: transparent; color: #4f5d70; font-size: 15px; font-weight: 700; }
.merchant-month-control input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .72; }
.merchant-search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.merchant-reset-btn { color: #fff; background: #8c919b; border-color: #8c919b; }
.merchant-reset-btn:hover { color: #fff; background: #7f848e; border-color: #7f848e; }
.merchant-periods { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-left: 52px; }
.merchant-period-btn { height: 32px; min-width: 68px; padding: 0 13px; border: 1px solid #d8e7ff; border-radius: 7px; background: #f4f8ff; color: #1677ff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.merchant-period-btn:hover, .merchant-period-btn.active { color: #fff; background: #1677ff; border-color: #1677ff; box-shadow: 0 6px 14px rgba(22, 119, 255, .18); }
.merchant-table-section { padding: 0 20px 0; background: #fff; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.merchant-table-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 12px; }
.merchant-table-head h2 { margin: 0; color: #333; font-size: 16px; font-weight: 700; }
.merchant-table-head p { margin: 5px 0 0; color: #666; font-size: 13px; }
.merchant-tool-row { display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.merchant-export-btn { position: relative; width: 38px; height: 38px; border: 1px solid #cfe2ff; border-radius: 8px; background: #f4f8ff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(22, 119, 255, .08); transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.merchant-export-btn::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 8px; border-radius: 5px; background: rgba(31, 45, 61, .92); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.merchant-export-btn:hover { color: #fff; border-color: #1677ff; background: #1677ff; box-shadow: 0 8px 16px rgba(22, 119, 255, .2); transform: translateY(-1px); }
.merchant-export-btn:hover::after { opacity: 1; }
.merchant-export-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.merchant-table-wrap { flex: 1 1 auto; min-height: 0; overflow-x: auto; }
.merchant-table { width: 100%; min-width: 1160px; min-height: 430px; border: 1px solid #e2e7ef; border-radius: 8px; overflow: hidden; background: #fff; }
.merchant-row { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(150px, .9fr) minmax(150px, .9fr) minmax(200px, 1.2fr) minmax(210px, 1.25fr) minmax(180px, 1.05fr) minmax(160px, .95fr); align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #333; font-size: 15px; }
.merchant-row.header { min-height: 54px; background: #f6f7f9; color: #333; font-weight: 700; }
.merchant-row > div { min-width: 0; padding: 11px 14px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.merchant-row:not(.header):nth-child(odd) { background: #fbfcff; }
.merchant-row:not(.header):hover { background: #eef6ff; }
.merchant-row > .merchant-money { justify-content: center; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.merchant-row > .merchant-money.pos { color: #52c41a; }
.merchant-row > .merchant-money.fee { color: #1677ff; }
.merchant-date-text { white-space: nowrap; }
.merchant-detail-btn { min-width: 104px; border-radius: 8px; }
.merchant-pagination { padding: 14px 20px 18px; border-top: 1px solid #edf1f6; justify-content: space-between; }
.merchant-pagination .profit-page-btn.disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; }
.admin-toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 4200; display: grid; gap: 10px; pointer-events: none; }
.admin-toast { min-width: 180px; max-width: min(360px, calc(100vw - 48px)); padding: 11px 14px; border: 1px solid #b7d7ff; border-radius: 8px; background: #f5faff; color: #234c7a; box-shadow: 0 14px 32px rgba(31, 45, 61, .16); font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.admin-toast.show { opacity: 1; transform: translateY(0); }
.profit-btn.is-feedback, .merchant-export-btn.is-feedback { border-color: #20c467 !important; background: #f0fdf4 !important; color: #15803d !important; box-shadow: 0 8px 18px rgba(32, 196, 103, .16) !important; }
.modal-open { overflow: hidden; }
.merchant-detail-backdrop { position: fixed; inset: 0; z-index: 2200; padding: 24px; background: rgba(15, 23, 42, .38); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.merchant-detail-backdrop[hidden] { display: none; }
.merchant-detail-dialog { width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); border: 1px solid #dbe5f1; border-radius: 10px; background: #fff; box-shadow: 0 26px 78px rgba(15, 23, 42, .24); display: flex; flex-direction: column; overflow: hidden; }
.merchant-detail-head { padding: 18px 20px 16px; border-bottom: 1px solid #edf1f6; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; background: #fff; }
.merchant-detail-head h2 { margin: 0; color: #202b3c; font-size: 18px; font-weight: 800; }
.merchant-detail-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.merchant-detail-close { width: 34px; height: 34px; border: 1px solid #d9dee8; border-radius: 7px; background: #fff; color: #5c6675; font-size: 22px; line-height: 1; cursor: pointer; }
.merchant-detail-close:hover { border-color: #1677ff; color: #1677ff; background: #f4f8ff; }
.merchant-detail-body { min-height: 0; padding: 18px 20px 20px; overflow: auto; background: #f7f9fc; display: grid; gap: 16px; }
.merchant-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.merchant-detail-metric { min-width: 0; min-height: 86px; padding: 14px; border: 1px solid #e2e9f3; border-radius: 8px; background: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.merchant-detail-metric span { color: #7a8494; font-size: 12px; font-weight: 800; }
.merchant-detail-metric strong { color: #202b3c; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.merchant-detail-table { border: 1px solid #e2e9f3; border-radius: 8px; background: #fff; overflow: hidden; }
.merchant-detail-row { min-height: 58px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(120px, .8fr) minmax(120px, .8fr); border-bottom: 1px solid #edf1f6; align-items: center; color: #4f5d70; font-size: 14px; }
.merchant-detail-row:last-child { border-bottom: 0; }
.merchant-detail-row.header { min-height: 48px; background: #f5f8fc; color: #202b3c; font-weight: 900; }
.merchant-detail-row > div { min-width: 0; padding: 11px 14px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.merchant-detail-status { min-width: 62px; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; white-space: nowrap; }
.merchant-detail-status.good { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.merchant-detail-status.review { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; }
.merchant-detail-footer { padding: 14px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.account-table-wrap, .profit-table-wrap, .stats-table-wrap, .report-table-wrap, .merchant-table-wrap { scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; }
.account-table-wrap::-webkit-scrollbar, .profit-table-wrap::-webkit-scrollbar, .stats-table-wrap::-webkit-scrollbar, .report-table-wrap::-webkit-scrollbar, .merchant-table-wrap::-webkit-scrollbar { height: 12px; }
.account-table-wrap::-webkit-scrollbar-track, .profit-table-wrap::-webkit-scrollbar-track, .stats-table-wrap::-webkit-scrollbar-track, .report-table-wrap::-webkit-scrollbar-track, .merchant-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.account-table-wrap::-webkit-scrollbar-thumb, .profit-table-wrap::-webkit-scrollbar-thumb, .stats-table-wrap::-webkit-scrollbar-thumb, .report-table-wrap::-webkit-scrollbar-thumb, .merchant-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.account-table-wrap::-webkit-scrollbar-thumb:hover, .profit-table-wrap::-webkit-scrollbar-thumb:hover, .stats-table-wrap::-webkit-scrollbar-thumb:hover, .report-table-wrap::-webkit-scrollbar-thumb:hover, .merchant-table-wrap::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #8195af, #61758f); }
.game-record-filters { grid-template-columns: 220px 240px minmax(420px, 1fr); }
.game-record-picker { width: 190px; }
.game-record-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; }
.game-record-table-wrap::-webkit-scrollbar { height: 12px; }
.game-record-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.game-record-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.game-record-table { width: 100%; min-width: 2020px; }
.game-record-row { display: grid; grid-template-columns: minmax(62px, .42fr) minmax(140px, .96fr) minmax(170px, 1.14fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(170px, 1.12fr) minmax(110px, .78fr) minmax(86px, .58fr) minmax(104px, .72fr) minmax(124px, .84fr) minmax(124px, .84fr) minmax(136px, .9fr) minmax(136px, .9fr) minmax(168px, 1.08fr); align-items: center; min-height: 58px; border-bottom: 1px solid #e8edf5; color: #596273; font-size: 13px; }
.game-record-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 800; }
.game-record-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.game-record-row:not(.header):hover { background: #fbfdff; }
.record-player-id { color: #202b3c; font-weight: 800; font-variant-numeric: tabular-nums; }
.record-copy-value { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: #344054; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-record-table .profit-player { cursor: pointer; }
.game-record-table .profit-player:hover { color: #1677ff; text-decoration: underline; text-underline-offset: 3px; }
.record-multiple { color: #1677ff; font-weight: 800; font-variant-numeric: tabular-nums; }
.record-multiple.muted { color: #8a93a3; }
.game-record-pagination { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid #edf1f6; background: #fff; }
.placeholder-card { max-width: 1180px; min-height: 420px; }
.placeholder-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { border: 1px solid #ebeef5; border-radius: 8px; padding: 18px; background: #fafcff; }
.metric-label { color: #909399; font-size: 13px; }
.metric-value { margin-top: 10px; color: #202b3c; font-size: 24px; font-weight: 600; }
.table-mock { margin-top: 20px; border: 1px solid #ebeef5; border-radius: 8px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; border-bottom: 1px solid #ebeef5; min-height: 44px; align-items: center; padding: 0 16px; color: #606266; font-size: 13px; }
.table-row:last-child { border-bottom: none; }
.table-row.header { background: #f7f9fc; color: #303133; font-weight: 500; }
.dashboard-page { min-height: calc(100vh - 58px); display: flex; flex-direction: column; padding: 0 24px 32px; }
.dashboard-card { width: 100%; flex: 1 1 auto; min-height: 0; border: 1px solid #e7eef8; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(31, 45, 61, .05); overflow: hidden; display: flex; flex-direction: column; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #e8edf5; background: #fff; }
.dashboard-head h1 { margin: 0; color: #202b3c; font-size: 20px; line-height: 1.3; }
.dashboard-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.dashboard-date-filter { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; padding: 20px 20px 14px; }
.dashboard-metric { min-height: 128px; padding: 18px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fbfdff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dashboard-metric span { color: #667085; font-size: 13px; font-weight: 800; }
.dashboard-metric strong { color: #202b3c; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-metric strong.neg { color: #d92d20; }
.dashboard-metric em { color: #8a93a3; font-size: 12px; font-style: normal; }
.dashboard-metric b, .dashboard-compare-row span { font-weight: 900; }
.dashboard-metric .up, .dashboard-compare-row .up { color: #16a34a; }
.dashboard-metric .down, .dashboard-compare-row .down { color: #d92d20; }
.dashboard-metric.online { border-color: #bad9ff; background: linear-gradient(180deg, #f7fbff, #eef6ff); }
.dashboard-metric.winloss { background: #fffafa; }
.dashboard-analysis-grid { flex: 1 1 auto; min-height: 0; padding: 0 20px 20px; display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(360px, .95fr); gap: 14px; align-content: start; }
.dashboard-panel { min-width: 0; border: 1px solid #e4ebf5; border-radius: 8px; background: #fff; overflow: hidden; }
.dashboard-wide-panel { grid-column: 1 / 2; }
.dashboard-panel-head { min-height: 54px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1f6; background: #f8fafc; }
.dashboard-panel-head h2 { margin: 0; color: #202b3c; font-size: 15px; font-weight: 900; }
.dashboard-panel-head span { color: #7a8494; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dashboard-compare-note { padding: 10px 16px; border-bottom: 1px solid #edf1f6; background: #fbfdff; color: #667085; font-size: 12px; line-height: 1.5; }
.dashboard-compare-table { width: 100%; }
.dashboard-compare-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(120px, 1.05fr) minmax(120px, 1.05fr) minmax(86px, .75fr); align-items: center; min-height: 42px; border-bottom: 1px solid #edf1f6; color: #4f5d70; font-size: 13px; }
.dashboard-compare-row:last-child { border-bottom: 0; }
.dashboard-compare-row.header { min-height: 38px; background: #fbfdff; color: #4c5a6f; font-weight: 900; }
.dashboard-compare-row > div { min-width: 0; padding: 8px 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-compare-row > div:first-child { justify-content: flex-start; text-align: left; font-weight: 800; color: #202b3c; }
.online-breakdown { padding: 16px; display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.4fr); gap: 14px; align-items: stretch; }
.online-main { min-height: 142px; padding: 16px; border-radius: 8px; border: 1px solid #cfe2ff; background: #f4f8ff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.online-main span { color: #667085; font-size: 13px; font-weight: 900; }
.online-main strong { color: #1677ff; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.online-main em { color: #667085; font-size: 12px; font-style: normal; }
.online-bars, .trend-bars { padding: 2px 0; display: flex; flex-direction: column; gap: 12px; }
.online-bar-row, .trend-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 44px; align-items: center; gap: 10px; color: #4f5d70; font-size: 13px; font-weight: 800; }
.online-bar-row div, .trend-row div { height: 10px; border-radius: 999px; background: #eef4fb; overflow: hidden; }
.online-bar-row i, .trend-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #409eff, #16a34a); }
.online-bar-row b, .trend-row b { color: #1677ff; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.trend-bars { padding: 16px; }
.trend-row { grid-template-columns: 58px minmax(0, 1fr) 44px; }
.dashboard-insights { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.dashboard-insights div { min-height: 54px; padding: 12px; border: 1px solid #edf1f6; border-radius: 8px; background: #fbfdff; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: center; }
.dashboard-insights strong { color: #202b3c; font-size: 13px; font-weight: 900; }
.dashboard-insights span { color: #667085; font-size: 12px; line-height: 1.5; }
.system-page { min-height: calc(100vh - 58px); display: flex; flex-direction: column; padding: 0 24px 32px; }
.system-tabs { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px; flex-wrap: wrap; background: #edf3ff; border: 1px solid #dde8ff; border-radius: 12px; width: fit-content; }
.system-tab { min-height: 34px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #4f5d70; font-size: 14px; font-weight: 800; }
.system-tab:hover, .system-tab.active { color: #1677ff; background: #fff; box-shadow: 0 4px 10px rgba(22, 119, 255, .12); }
.system-card { width: 100%; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e7eef8; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(31, 45, 61, .05); }
.system-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #e8edf5; }
.system-card-head h2 { margin: 0; color: #202b3c; font-size: 18px; line-height: 1.3; }
.system-card-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.system-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #e8edf5; background: #fbfcff; }
.system-filter { display: inline-flex; align-items: center; gap: 10px; color: #5f6b7a; font-size: 14px; font-weight: 800; }
.system-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.system-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; }
.system-table-wrap::-webkit-scrollbar { height: 12px; }
.system-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.system-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.system-account-table { width: 100%; min-width: 1120px; }
.system-row { display: grid; align-items: center; min-height: 58px; border-bottom: 1px solid #e8edf5; color: #596273; font-size: 14px; }
.system-row.account { grid-template-columns: minmax(150px, 1fr) minmax(110px, .75fr) minmax(140px, .9fr) minmax(260px, 1.6fr) minmax(90px, .65fr) minmax(170px, 1.1fr) minmax(230px, 1.4fr); }
.operation-log-toolbar .log-date-filter { flex-wrap: wrap; }
.operation-log-toolbar .profit-input.date { width: 150px; }
.operation-log-table { width: 100%; min-width: 1720px; }
.system-row.operation-log { grid-template-columns: minmax(150px, .95fr) minmax(130px, .8fr) minmax(96px, .62fr) minmax(120px, .76fr) minmax(190px, 1.1fr) minmax(360px, 2fr) minmax(138px, .84fr) minmax(138px, .84fr) minmax(160px, .95fr) minmax(86px, .56fr); }
.system-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 800; }
.system-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.system-row.operation-log > div:first-child { flex-direction: column; gap: 2px; }
.system-row.operation-log > div:first-child span { color: #8a93a3; font-size: 12px; }
.operation-change { justify-content: flex-start !important; text-align: left !important; white-space: normal; line-height: 1.45; }
.system-row:not(.header):hover { background: #fbfdff; }
.system-row strong { color: #202b3c; font-weight: 800; }
.system-role-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; font-size: 12px; font-weight: 800; }
.operation-type, .operation-result { min-height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.operation-type.info { color: #1677ff; background: #eef6ff; border: 1px solid #cfe2ff; }
.operation-type.success, .operation-result.success { color: #079455; background: #ecfdf3; border: 1px solid #abefc6; }
.operation-type.warning { color: #b54708; background: #fffaeb; border: 1px solid #fedf89; }
.operation-type.danger, .operation-result.fail { color: #d92d20; background: #fff1f0; border: 1px solid #ffc9c4; }
.system-row-actions { flex-wrap: wrap; }
.system-row-actions button { min-height: 28px; padding: 0 10px; border: 1px solid #cfe2ff; border-radius: 6px; background: #f4f8ff; color: #1677ff; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.system-row-actions button:hover { color: #fff; border-color: #1677ff; background: #1677ff; }
.system-pagination { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid #edf1f6; background: #fff; }
.system-modal-mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 23, 42, .38); }
.system-modal-mask[hidden] { display: none; }
.system-modal { width: min(680px, calc(100vw - 56px)); max-height: min(720px, calc(100vh - 56px)); overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); display: flex; flex-direction: column; }
.system-modal-head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e6ebf3; }
.system-modal-head h3 { margin: 0; color: #202b3c; font-size: 18px; font-weight: 800; }
.system-modal-head p { margin: 6px 0 0; color: #7a8494; font-size: 12px; }
.system-modal-body { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; overflow: auto; }
.system-form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #4f5d70; font-size: 13px; font-weight: 800; }
.system-form-field .account-input { width: 100%; }
.system-form-field.full { grid-column: 1 / -1; }
.system-form-field.compact { flex: 1 1 220px; }
.system-textarea { width: 100%; min-height: 86px; resize: vertical; border: 1px solid #d9dee8; border-radius: 6px; padding: 10px 12px; color: #3f4b5b; font: inherit; outline: none; }
.system-textarea:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.system-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid #edf1f6; }
.role-card { min-height: 650px; }
.role-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.role-list { padding: 14px; border-right: 1px solid #e8edf5; background: #fbfcff; overflow: auto; }
.role-item { width: 100%; min-height: 92px; margin: 0 0 10px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.role-item:hover, .role-item.active { border-color: #9fcbff; background: #f5f9ff; box-shadow: 0 8px 18px rgba(22, 119, 255, .09); }
.role-item strong { color: #202b3c; font-size: 15px; }
.role-item span { color: #667085; font-size: 12px; line-height: 1.45; }
.role-item em { color: #1677ff; font-size: 12px; font-style: normal; font-weight: 800; }
.permission-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.permission-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e8edf5; }
.permission-head > div:first-child { flex: 1; min-width: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.permission-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.permission-groups { flex: 1 1 auto; min-height: 0; padding: 18px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.permission-group { min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid #e1e8f2; border-radius: 8px; background: #fff; }
.permission-group legend { padding: 0 6px; color: #202b3c; font-size: 14px; font-weight: 800; }
.permission-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.permission-option { min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid #e5ebf3; border-radius: 6px; display: flex; align-items: center; gap: 8px; color: #4f5d70; background: #fbfdff; font-size: 13px; font-weight: 700; cursor: pointer; }
.permission-option:hover { border-color: #bad9ff; background: #f4f8ff; }
.permission-option input { width: 15px; height: 15px; accent-color: #1677ff; }
.permission-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-setting-page { padding: 0 24px 0; background: #fff; }
.game-setting-shell { width: 100%; min-height: calc(100vh - 58px); display: flex; flex-direction: column; background: #fff; }
.game-setting-tabs { display: flex; align-items: stretch; min-height: 48px; border-bottom: 1px solid #dfe5ee; overflow-x: auto; }
.game-setting-tab { min-width: 68px; height: 36px; padding: 0 18px; border: 1px solid #dfe5ee; border-left: 0; border-bottom: 0; background: #fff; color: #1f2937; font-size: 14px; cursor: pointer; }
.game-setting-tab:first-child { border-left: 1px solid #dfe5ee; }
.game-setting-tab.active { color: #1677ff; background: #fbfdff; }
.game-setting-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0 8px; }
.game-setting-filter { display: inline-flex; align-items: center; gap: 10px; color: #344054; font-size: 14px; font-weight: 700; }
.game-setting-select { width: 170px; height: 28px; border: 1px solid #d9e1ec; border-radius: 4px; padding: 0 30px 0 10px; color: #8a93a3; background: #fff; font-size: 13px; }
.game-setting-game-picker { width: 170px; }
.game-setting-game-picker .game-picker-trigger { height: 28px; border-radius: 4px; font-size: 13px; }
.game-setting-game-picker [data-game-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-setting-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-setting-btn { height: 28px; min-width: 54px; padding: 0 14px; border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.game-setting-btn.query { background: #2f91f6; border-color: #2f91f6; }
.game-setting-btn.reset { color: #303133; background: #fff; border-color: #d7dce5; }
.game-setting-btn.open-all { background: #66c936; border-color: #66c936; }
.game-setting-btn.maintain-all { background: #ff6f72; border-color: #ff6f72; }
.game-setting-btn.batch-rtp { background: #2f91f6; border-color: #2f91f6; }
.game-setting-btn.view { background: #2f91f6; border-color: #2f91f6; }
.game-setting-btn.edit { background: #e69a2e; border-color: #e69a2e; }
.game-setting-btn.is-feedback { border-color: #20c467 !important; background: #20c467 !important; color: #fff !important; box-shadow: 0 8px 18px rgba(32, 196, 103, .16); }
.game-setting-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 0 8px; }
.game-setting-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 0 0 12px; }
.game-setting-summary article { min-width: 0; min-height: 68px; padding: 12px 14px; border: 1px solid #e6edf6; border-radius: 8px; background: #fbfdff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.game-setting-summary span { color: #667085; font-size: 12px; font-weight: 800; }
.game-setting-summary strong { min-width: 0; color: #202b3c; font-size: 20px; line-height: 1; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-setting-table-wrap { flex: 1 1 auto; min-height: 0; overflow-x: auto; border-top: 1px solid #f0f2f6; }
.game-setting-table { min-width: 1120px; width: 100%; }
.game-setting-row { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(210px, 1.2fr) minmax(210px, 1.2fr) minmax(120px, .85fr) minmax(110px, .7fr) minmax(120px, .85fr) minmax(150px, .95fr); align-items: center; min-height: 52px; border-bottom: 1px solid #e9edf4; color: #344054; font-size: 14px; }
.game-setting-row.header { min-height: 36px; background: #f6f7f9; color: #314054; font-size: 13px; font-weight: 800; }
.game-setting-row > div { min-width: 0; padding: 8px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.game-setting-row:not(.header):hover { background: #fbfdff; }
.game-setting-help { width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: #a8c4f7; color: #fff; font-size: 9px; line-height: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.game-setting-status.maintenance { color: #ff4d4f; }
.game-setting-status.normal { color: #52c41a; }
.game-toggle { position: relative; min-width: 70px; height: 22px; padding: 0 9px 0 26px; border: 0; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.game-toggle::before { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.game-toggle.open { padding-left: 9px; padding-right: 24px; background: #10c56b; }
.game-toggle.open::before { left: auto; right: 2px; }
.game-toggle.closed { background: #ff858a; }
.game-setting-row-actions { gap: 12px; }
.game-setting-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 14px; color: #344054; font-size: 14px; flex-wrap: wrap; border-top: 1px solid #f0f2f6; }
.game-setting-page-size, .game-setting-jump { height: 28px; border: 1px solid #d9e1ec; border-radius: 4px; background: #fff; color: #344054; font-size: 13px; }
.game-setting-page-size { width: 116px; padding: 0 28px 0 10px; }
.game-setting-jump { width: 52px; padding: 0 8px; text-align: center; }
.game-setting-page-btn { width: 30px; height: 28px; border: 1px solid #e3e8f0; border-radius: 4px; background: #fff; color: #7a8494; cursor: pointer; }
.game-setting-page-btn.active { color: #fff; border-color: #409eff; background: #409eff; font-weight: 800; }
.game-setting-page-btn:disabled { color: #c6cbd4; background: #f4f6f9; cursor: not-allowed; }
.rtp-modal-mask { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .36); }
.rtp-modal-mask[hidden] { display: none; }
.rtp-modal { width: min(760px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); display: flex; flex-direction: column; }
.rtp-modal-head { min-height: 66px; padding: 16px 20px; border-bottom: 1px solid #e8edf5; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rtp-modal-head h3 { margin: 0; color: #202b3c; font-size: 18px; font-weight: 800; }
.rtp-modal-head p { margin: 6px 0 0; color: #7a8494; font-size: 12px; }
.rtp-modal-close { width: 32px; height: 32px; border: 1px solid #d9e1ec; border-radius: 6px; background: #fff; color: #667085; font-size: 22px; line-height: 1; cursor: pointer; }
.rtp-modal-close:hover { color: #1677ff; border-color: #b9d8ff; background: #f3f8ff; }
.rtp-modal-body { padding: 24px 28px 22px; overflow: auto; display: flex; flex-direction: column; gap: 22px; }
.rtp-form-row { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 10px 14px; color: #202b3c; font-size: 14px; font-weight: 800; }
.rtp-form-label { text-align: right; white-space: nowrap; }
.rtp-form-control { width: 100%; height: 34px; border: 1px solid #d9dee8; border-radius: 7px; padding: 0 12px; color: #344054; background: #fff; font: inherit; font-weight: 500; outline: none; }
.rtp-form-control:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.rtp-form-row em { grid-column: 2; margin-top: -2px; color: #ff2f4f; font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.4; }
.rtp-modal-actions { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 2px; }
.rtp-modal-btn { min-width: 60px; height: 34px; border: 0; border-radius: 8px; padding: 0 16px; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.rtp-modal-btn.reset { background: #a1a5ad; }
.rtp-modal-btn.confirm { background: #1677ff; }
.rtp-modal-btn:hover { filter: brightness(.97); }
@media (max-width: 1400px) {
  .control-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-profit-filters, .daily-report-filters { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
  .platform-profit-filters .report-date-filter, .platform-profit-filters .report-actions, .daily-report-filters .report-date-filter, .daily-report-filters .report-periods, .daily-report-filters .report-actions { grid-column: auto; }
  .report-filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .report-control, .report-date-range { width: 100%; }
  .merchant-date-filter { align-items: center; flex-direction: row; gap: 14px; }
}
@media (max-width: 960px) {
  .sidebar { width: 190px; }
  .topbar { padding-right: 12px; }
  .topbar-right { gap: 8px; }
  .card { max-width: none; padding: 20px; }
  .report-card { padding: 0; }
  .game-control-page { padding: 0 16px 24px; }
  .game-control-page .card { padding: 0; }
  .player-account-page { padding: 0 16px 24px; }
  .account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-toolbar { flex-direction: column; }
  .account-filters { width: 100%; grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .game-record-filters { width: 100%; grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .account-date-filter { grid-column: 1 / -1; }
  .account-actions { width: 100%; justify-content: flex-end; }
  .account-table-wrap { padding: 0 16px 12px; }
  .game-record-table-wrap { padding: 0 16px 12px; }
  .player-profit-page { padding: 0 16px 24px; }
  .stats-page { padding: 0 16px 24px; }
  .api-access-page { padding: 0 16px 24px; }
  .api-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-data-page { padding: 0 16px 24px; }
  .merchant-report-page { padding: 0 16px 24px; }
  .dashboard-page { padding: 0 16px 24px; }
  .dashboard-summary { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .dashboard-analysis-grid { grid-template-columns: 1fr; }
  .dashboard-wide-panel { grid-column: auto; }
  .system-page { padding: 0 16px 24px; }
  .role-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .permission-groups { grid-template-columns: 1fr; }
  .profit-toolbar { padding: 16px 16px 12px; align-items: stretch; }
  .profit-table-wrap { padding: 0 16px 12px; }
  .stats-toolbar { padding: 16px; flex-wrap: wrap; }
  .stats-table-wrap { padding: 0 16px 12px; }
  .report-toolbar { padding: 16px; }
  .report-toolbar-stacked { align-items: stretch; flex-direction: column; }
  .report-table-wrap { padding: 0 16px; }
  .merchant-toolbar, .merchant-table-section { padding-left: 16px; padding-right: 16px; }
  .merchant-table-wrap { padding: 0; }
  .merchant-pagination { padding: 14px 16px; }
  .profit-pagination { padding: 6px 16px 14px; justify-content: center; }
  .report-pagination { padding: 14px 16px; }
  .game-picker-panel { width: min(760px, calc(100vw - 64px)); }
  .placeholder-body { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .api-config-grid { grid-template-columns: 1fr; }
  .api-config-callbacks .api-control-group, .api-config-callbacks .api-callback-field .api-control-group { grid-template-columns: minmax(0, 1fr) 76px 76px 76px; }
  .game-setting-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profit-toolbar { align-items: stretch; }
  .profit-filters { flex-basis: 100%; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr); }
  .profit-filter.date-filter { grid-column: 1 / -1; }
  .profit-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 820px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #e8edf3; box-shadow: none; }
  .admin-layout.sidebar-collapsed .sidebar { width: 100%; }
  .admin-layout.sidebar-collapsed .logo-text, .admin-layout.sidebar-collapsed .chevron { display: initial; }
  .admin-layout.sidebar-collapsed .submenu-list { display: flex; }
  .admin-layout.sidebar-collapsed .logo { justify-content: flex-start; padding: 0 16px; }
  .admin-layout.sidebar-collapsed .menu { padding: 12px; }
  .admin-layout.sidebar-collapsed .menu-item, .admin-layout.sidebar-collapsed .submenu-title { justify-content: space-between; padding: 0 12px 0 16px; }
  .admin-layout.sidebar-collapsed .menu-left { justify-content: flex-start; gap: 14px; font-size: inherit; }
  .menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .menu-item, .submenu-title { flex: 1 1 180px; }
  .submenu { margin: 0; flex: 1 1 180px; }
  .submenu-list { padding: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
  .submenu-item { flex: 1 1 160px; }
  .main { min-height: 0; }
  .topbar { height: auto; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .topbar-left, .topbar-right { flex-wrap: wrap; row-gap: 8px; }
  .content { padding: 16px; }
  .card { padding: 18px 18px 20px; }
  .report-card { padding: 0; }
  .control-card-head, .form-section-head { align-items: flex-start; flex-direction: column; }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .dashboard-date-filter { justify-content: flex-start; }
  .online-breakdown { grid-template-columns: 1fr; }
  .dashboard-insights div { grid-template-columns: 1fr; gap: 4px; }
  .control-card-head { gap: 12px; padding: 18px 18px 16px; }
  .control-form { grid-template-columns: 1fr; padding: 18px; }
  .game-control-card .form-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .game-control-card .form-label { width: auto; text-align: left; line-height: 1.4; }
  .footer.control-footer { margin: 0; padding: 0; }
  .control-player-report { margin: 0 -18px -18px; }
  .control-report-head { align-items: flex-start; flex-direction: column; }
  .footer.control-footer .el-button { flex: 1 1 140px; }
  .form-block + .form-block { margin-top: 0; padding-top: 0; }
  .account-summary { grid-template-columns: 1fr; }
  .account-filters { grid-template-columns: 1fr; gap: 14px; }
  .game-record-filters { grid-template-columns: 1fr; gap: 14px; }
  .account-filter { width: 100%; }
  .account-input { width: 100%; }
  .account-date-filter { grid-template-columns: 1fr; }
  .account-date-filter > span, .account-date-filter .profit-date-range-sep { width: 100%; }
  .account-actions { width: 100%; }
  .account-actions .profit-btn { flex: 1 1 120px; }
  .profit-filters { grid-template-columns: 1fr; gap: 14px; width: 100%; }
  .profit-input, .profit-input.date, .profit-select { width: 100%; }
  .profit-date-control { width: 100%; grid-template-columns: 1fr; }
  .profit-date-range-sep { width: 100%; }
  .game-picker { width: 100%; }
  .game-picker-panel { width: calc(100vw - 32px); }
  .game-setting-summary { grid-template-columns: 1fr; }
  .game-options { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 320px; }
  .profit-filter { width: 100%; }
  .profit-actions { width: 100%; }
  .profit-btn { flex: 1 1 120px; }
  .stats-toolbar { align-items: stretch; }
  .stats-filter { width: 100%; }
  .stats-input { width: 100%; }
  .stats-toolbar .profit-btn { flex: 1 1 120px; }
  .api-page-head, .api-card-head { flex-direction: column; align-items: stretch; }
  .api-doc-link { width: 100%; }
  .api-card { padding: 18px; border-radius: 12px; }
  .api-overview-grid { grid-template-columns: 1fr; }
  .api-field { grid-template-columns: 1fr; gap: 8px; }
  .api-control-group { flex-direction: column; align-items: stretch; }
  .api-basic-field .api-control-group { width: 100%; }
  .api-basic-mode .api-input, .api-basic-merchant .api-input, .api-basic-key .api-input { width: 100%; max-width: none; }
  .api-callback-field .api-control-group { display: flex; grid-template-columns: none; }
  .api-callback-status-row { grid-template-columns: 1fr; align-items: stretch; }
  .api-callback-status-row em { justify-self: start; }
  .api-field-note { white-space: normal; }
  .api-btn, .api-sign-tool .api-control-group .api-btn { width: 100%; height: 40px; min-height: 40px; }
  .api-endpoint { grid-template-columns: 1fr; gap: 8px; }
  .api-endpoint > span { justify-self: start; }
  .api-url { width: 100%; }
  .report-toolbar-inline, .report-toolbar-stacked { flex-direction: column; }
  .report-filter-line, .report-actions, .report-periods { width: 100%; }
  .platform-profit-filters, .daily-report-filters { grid-template-columns: 1fr; }
  .report-export-btn { width: 100%; }
  .merchant-filter-grid { grid-template-columns: 1fr; }
  .merchant-date-filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .merchant-search-actions, .merchant-periods { width: 100%; }
  .merchant-periods { padding-left: 0; }
  .merchant-search-actions .profit-btn, .merchant-periods .profit-btn { flex: 1 1 120px; }
  .report-export-status { margin-left: 16px; margin-right: 16px; align-items: flex-start; flex-wrap: wrap; }
  .merchant-table-section > .report-export-status { margin-left: 0; margin-right: 0; }
  .merchant-detail-dialog > .report-export-status { margin-left: 16px; margin-right: 16px; }
  .report-export-status .profit-btn { width: 100%; min-width: 0; }
  .admin-toast-stack { right: 16px; bottom: 16px; left: 16px; }
  .admin-toast { max-width: none; }
  .merchant-detail-backdrop { padding: 12px; align-items: stretch; }
  .merchant-detail-dialog { width: 100%; max-height: calc(100vh - 24px); }
  .merchant-detail-head { padding: 15px 16px; }
  .merchant-detail-body { padding: 14px; }
  .merchant-detail-summary { grid-template-columns: 1fr; }
  .merchant-detail-table { overflow-x: auto; }
  .merchant-detail-row { min-width: 640px; }
  .merchant-detail-footer { padding: 12px 16px 14px; }
  .merchant-detail-footer .profit-btn { flex: 1 1 120px; }
  .system-card-head, .permission-head { align-items: stretch; flex-direction: column; }
  .system-toolbar { align-items: stretch; flex-direction: column; }
  .system-filter, .system-actions { width: 100%; }
  .system-filter { align-items: flex-start; flex-direction: column; }
  .system-actions { margin-left: 0; }
  .system-actions .profit-btn, .permission-actions .profit-btn { flex: 1 1 120px; }
  .system-modal-body { grid-template-columns: 1fr; }
  .role-layout { grid-template-columns: 1fr; }
  .role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-right: 0; border-bottom: 1px solid #e8edf5; }
  .role-item { margin: 0; }
  .permission-options { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo { padding: 0 16px; }
  .menu { padding: 10px 8px; }
  .menu-item, .submenu-title, .submenu-item { height: 40px; }
  .page-title { font-size: 18px; }
  .game-control-page .page-title { font-size: 20px; }
  .game-control-card .form-row { padding: 14px 16px; }
  .rtp-panel, .release-field { align-items: stretch; }
  .control-textarea, .control-select, .control-number, .control-number-wide { width: 100%; max-width: none; }
  .rtp-gear-row { width: 100%; }
  .rtp-gear-row .control-number { width: 100%; max-width: none; }
  .rounds-extra { margin-left: 0; white-space: normal; }
  .footer.control-footer { margin: 0; padding: 0; }
  .control-player-report { margin: 0 -16px -16px; }
  .footer.control-footer .el-button { width: 100%; }
  .time { white-space: normal; }
  .dashboard-summary { grid-template-columns: 1fr; padding: 16px; }
  .dashboard-analysis-grid { padding: 0 16px 16px; }
  .dashboard-panel-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dashboard-compare-row { grid-template-columns: minmax(90px, .9fr) minmax(94px, 1fr) minmax(94px, 1fr) minmax(70px, .72fr); font-size: 12px; }
  .dashboard-compare-row > div { padding: 8px 6px; }
  .dashboard-date-filter .date-field, .dashboard-date-filter .profit-input.date, .dashboard-date-filter .profit-btn { width: 100%; }
  .form-block + .form-block { margin-top: 0; padding-top: 0; }
  .player-profit-tabs { margin-bottom: 10px; }
  .profit-tab { flex: 1 1 140px; justify-content: center; }
  .game-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profit-btn { width: 100%; }
  .profit-page-btn { width: 34px; height: 34px; }
  .system-tabs { width: 100%; }
  .system-tab { flex: 1 1 130px; }
  .role-list { grid-template-columns: 1fr; }
  .permission-head > div:first-child { flex-direction: column; }
}

/* Management today-player-profit port */
.page-frame { display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - 102px); }
.page-heading { display: flex; flex-direction: column; gap: 4px; }
.page-description { margin: 0; color: #7a8597; font-size: 13px; line-height: 1.5; }
.admin-player-profit-page { padding-bottom: 32px; }
.admin-profit-tabs { width: fit-content; margin: 0 0 12px; padding: 8px; border: 1px solid #dde8ff; border-radius: 12px; background: #edf3ff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-profit-tab { height: 38px; padding: 0 18px; border: 1px solid #d2def8; border-radius: 10px; background: #fff; color: #5f6b7a; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.admin-profit-tab.active { border-color: #2f7df5; background: linear-gradient(135deg, #4f9eff, #2f7df5); color: #fff; box-shadow: 0 5px 12px rgba(47, 125, 245, .25); }
.admin-profit-tab .dot { font-size: 10px; }
.admin-profit-card { width: 100%; max-width: none; padding: 0; overflow: visible; }
.admin-profit-toolbar { padding: 16px 20px; border-bottom: 1px solid #e8edf5; background: #fff; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-profit-filters { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 220px 250px minmax(360px, 420px); align-items: center; gap: 12px; }
.admin-profit-filter { min-width: 0; display: flex; align-items: center; gap: 8px; }
.admin-profit-filter > span { color: #6b7280; font-size: 14px; font-weight: 700; white-space: nowrap; }
.admin-profit-input { width: 150px; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; background: #fff; color: #3f4b5b; font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-profit-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.admin-profit-date-control { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(142px, 1fr) 20px minmax(142px, 1fr); align-items: center; gap: 6px; }
.admin-profit-date-control .date { width: 100%; }
.admin-profit-date-control em { color: #8a93a3; font-size: 13px; font-style: normal; text-align: center; }
.admin-profit-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-profit-btn { min-width: 88px; height: 38px; padding: 0 16px; border: 1px solid #cfd7e6; border-radius: 6px; background: #fff; color: #5e6470; font-size: 14px; font-weight: 700; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.admin-profit-btn:hover { border-color: #409eff; color: #409eff; }
.admin-profit-btn.primary { border-color: #409eff; background: #409eff; color: #fff; }
.admin-profit-game-picker { position: relative; width: 170px; }
.admin-profit-game-trigger { position: relative; width: 100%; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 28px 0 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.admin-profit-game-choice { width: 26px; height: 26px; border-radius: 6px; background: #64748b; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 800; }
.admin-profit-game-arrow { position: absolute; right: 10px; color: #8a93a3; }
.admin-profit-game-panel { position: absolute; left: 0; top: 44px; z-index: 30; width: min(760px, calc(100vw - 320px)); max-height: min(560px, calc(100vh - 160px)); overflow: auto; padding: 14px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(31, 45, 61, .18); }
.admin-profit-brand-tabs { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-profit-brand-tab { min-width: 72px; height: 32px; padding: 0 12px; border: 1px solid #d8e2f0; border-radius: 6px; background: #f8fafc; color: #516174; font-size: 12px; font-weight: 800; cursor: pointer; }
.admin-profit-brand-tab.active { border-color: #1677ff; background: #eef6ff; color: #1677ff; box-shadow: 0 4px 10px rgba(22, 119, 255, .12); }
.admin-profit-game-search { width: 100%; height: 34px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; outline: none; color: #3f4b5b; }
.admin-profit-game-options { min-height: 260px; margin-top: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.admin-profit-game-option { position: relative; height: 102px; border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; display: flex; align-items: stretch; padding: 0; overflow: hidden; cursor: pointer; }
.admin-profit-game-option.active, .admin-profit-game-option:hover { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64, 158, 255, .12); }
.admin-profit-game-checkmark { position: absolute; top: 5px; right: 5px; z-index: 3; width: 16px; height: 16px; border-radius: 999px; background: #1677ff; box-shadow: 0 5px 10px rgba(22, 119, 255, .28); display: none; }
.admin-profit-game-checkmark::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.admin-profit-game-option.checked .admin-profit-game-checkmark { display: block; }
.admin-profit-game-thumb { position: relative; width: 100%; min-height: 100%; padding: 0 8px 8px; color: #fff; display: flex; align-items: flex-end; justify-content: center; font-size: 13px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: linear-gradient(135deg, #64748b, #93a4b8); }
.admin-profit-game-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(to top, rgba(0, 104, 171, .78), rgba(0, 104, 171, 0)); }
.admin-profit-game-thumb span { position: relative; z-index: 1; }
.admin-profit-game-thumb.all { background: linear-gradient(135deg, #526173, #9aa8b8); }
.admin-profit-game-thumb.kraken { background: radial-gradient(circle at 65% 22%, #ff7a45 0 9%, transparent 10%), linear-gradient(135deg, #14213d 0%, #1e5aa8 46%, #18a0fb 100%); }
.admin-profit-game-thumb.ek { background: radial-gradient(circle at 62% 32%, #ff3b30 0 13%, transparent 14%), linear-gradient(135deg, #1c2744, #2f80ed 48%, #8e44ad); }
.admin-profit-game-thumb.gems { background: radial-gradient(circle at 50% 30%, #ffd166 0 14%, transparent 15%), linear-gradient(135deg, #7f1d1d, #d97706 50%, #7c3aed); }
.admin-profit-game-thumb.palace { background: radial-gradient(circle at 48% 18%, #fff7ad 0 12%, transparent 13%), linear-gradient(135deg, #45210d, #f59e0b 55%, #0369a1); }
.admin-profit-game-thumb.pharaoh { background: radial-gradient(circle at 55% 32%, #facc15 0 12%, transparent 13%), linear-gradient(135deg, #172554, #2563eb 45%, #7c3aed); }
.admin-profit-game-thumb.bowling { background: radial-gradient(circle at 54% 38%, #ef4444 0 16%, transparent 17%), linear-gradient(135deg, #581c87, #fb7185 52%, #f97316); }
.admin-profit-game-thumb.balloon { background: radial-gradient(circle at 52% 28%, #fecdd3 0 18%, transparent 19%), linear-gradient(135deg, #312e81, #8b5cf6 45%, #f9a8d4); }
.admin-profit-game-thumb.sesame { background: radial-gradient(circle at 45% 42%, #fde68a 0 15%, transparent 16%), linear-gradient(135deg, #3b2516, #92400e 48%, #f59e0b); }
.admin-profit-game-thumb.monster { background: radial-gradient(circle at 58% 33%, #ef4444 0 10%, transparent 11%), linear-gradient(135deg, #0f172a, #0f766e 48%, #fb923c); }
.admin-profit-game-thumb.maya { background: radial-gradient(circle at 50% 25%, #fbbf24 0 14%, transparent 15%), linear-gradient(135deg, #164e63, #14b8a6 45%, #7c2d12); }
.admin-profit-game-thumb.crown { background: radial-gradient(circle at 54% 30%, #facc15 0 16%, transparent 17%), linear-gradient(135deg, #7f1d1d, #dc2626 50%, #581c87); }
.admin-profit-game-thumb.dragon { background: radial-gradient(circle at 55% 36%, #fb923c 0 15%, transparent 16%), linear-gradient(135deg, #14532d, #15803d 45%, #0f172a); }
.admin-profit-game-thumb.candy { background: radial-gradient(circle at 50% 30%, #f9a8d4 0 16%, transparent 17%), linear-gradient(135deg, #be123c, #f97316 46%, #facc15); }
.admin-profit-game-thumb.star { background: radial-gradient(circle at 50% 25%, #fde047 0 12%, transparent 13%), linear-gradient(135deg, #1e1b4b, #4f46e5 50%, #0ea5e9); }
.admin-profit-game-thumb.train { background: radial-gradient(circle at 52% 35%, #fde68a 0 14%, transparent 15%), linear-gradient(135deg, #451a03, #ca8a04 48%, #111827); }
.admin-profit-game-pager { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #667085; font-size: 13px; }
.admin-profit-game-page { width: 30px; height: 30px; border: 1px solid #d9dee8; border-radius: 4px; background: #fff; color: #4b5563; }
.admin-profit-table-wrap { padding: 0 20px 18px; overflow-x: auto; }
.admin-profit-table { width: 100%; min-width: 1580px; }
.admin-profit-row { min-height: 64px; border-bottom: 1px solid #e8edf5; color: #505a69; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.35fr) minmax(96px, .7fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.05fr) minmax(140px, .95fr) minmax(100px, .72fr) minmax(120px, .85fr) minmax(96px, .7fr); align-items: center; font-size: 14px; }
.admin-profit-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 800; }
.admin-profit-row > div { min-width: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.admin-profit-player { color: #3f8efc; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.admin-profit-copy { position: relative; width: 22px; height: 22px; border: 1px solid #bcd7ff; border-radius: 5px; background: #f4f8ff; color: #2f80ed; cursor: pointer; }
.admin-profit-copy::before, .admin-profit-copy::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; background: #f4f8ff; }
.admin-profit-copy::before { left: 5px; top: 8px; opacity: .7; }
.admin-profit-copy::after { left: 9px; top: 4px; }
.admin-profit-num { color: #646b77; font-weight: 700; white-space: nowrap; }
.admin-profit-num.neg { color: #ff4d4f; }
.admin-profit-num.pos { color: #20c467; }
.admin-profit-op-btn { height: 30px; min-width: 58px; padding: 0 12px; border: 1px solid #bcd7ff; border-radius: 6px; background: #f4f8ff; color: #2f80ed; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.admin-profit-op-btn:hover { border-color: #409eff; background: #eef6ff; color: #1677ff; }
.admin-profit-status { min-width: 58px; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-profit-status.normal { border: 1px solid #d7eaff; background: #eef6ff; color: #1677ff; }
.admin-profit-status.loss { border: 1px solid #fed7aa; background: #fff7ed; color: #b45309; }
.admin-profit-status.win { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }
.admin-player-tag { min-width: 72px; height: 24px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-player-tag.tag-low { color: #64748b; background: #f1f5f9; }
.admin-player-tag.tag-mid { color: #2563eb; background: #dbeafe; }
.admin-player-tag.tag-premium { color: #047857; background: #d1fae5; }
.admin-player-tag.tag-risk { color: #b45309; background: #fef3c7; }
.admin-profit-empty { min-height: 180px; color: #98a2b3; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.admin-profit-pagination { margin-top: auto; padding: 16px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; color: #6c7482; display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.admin-profit-page-size, .admin-profit-pages, .admin-profit-page-jump { display: inline-flex; align-items: center; gap: 8px; }
.admin-profit-size-select { min-width: 80px; height: 34px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; background: #fff; color: #495566; }
.admin-profit-page-btn { width: 38px; height: 38px; border: 1px solid #e0e5ef; border-radius: 4px; background: #fff; color: #5a6472; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.admin-profit-page-btn.active { border-color: #409eff; background: #409eff; color: #fff; }
.admin-profit-page-btn.ellipsis { border-color: transparent; background: transparent; cursor: default; }
.admin-profit-page-input { width: 72px; height: 38px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; text-align: center; }
.admin-control-backdrop { position: fixed; inset: 0; z-index: 150; padding: 22px; background: rgba(15, 23, 42, .38); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.admin-control-modal { width: min(760px, calc(100vw - 44px)); max-height: calc(100vh - 44px); border: 1px solid #dbe5f1; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .22); display: flex; flex-direction: column; overflow: hidden; }
.admin-control-head { padding: 16px 20px 14px; border-bottom: 1px solid #ebeef5; background: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-control-head h2 { margin: 0; color: #202b3c; font-size: 17px; }
.admin-control-head p { margin: 6px 0 0; color: #909399; font-size: 12px; line-height: 1.5; }
.admin-control-head button, .admin-control-footer button { height: 36px; min-width: 82px; padding: 0 14px; border: 1px solid #d9dee8; border-radius: 7px; background: #fff; color: #4f5d70; font-size: 13px; font-weight: 700; cursor: pointer; }
.admin-control-body { min-height: 0; padding: 14px 16px 16px; background: #f6f8fb; overflow: auto; display: grid; grid-template-columns: 1fr; align-items: start; gap: 10px; }
.admin-control-card { min-height: 0; border: 1px solid #e4ebf5; border-radius: 12px; background: #fff; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 18px rgba(31, 45, 61, .05); }
.admin-control-basic-card { overflow: visible; }
.admin-control-card-head { min-height: 0; padding: 12px 14px; border-bottom: 1px solid #edf1f6; background: #f9fbfe; flex-shrink: 0; }
.admin-control-card-head h3 { margin: 0; color: #202b3c; font-size: 14px; }
.admin-control-card-head p { margin: 4px 0 0; color: #7a8494; font-size: 11px; }
.admin-control-form-row { flex: 0 0 auto; min-height: 54px; padding: 10px 14px; border-bottom: 1px solid #edf1f6; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; }
.admin-control-form-row:last-child { border-bottom: 0; }
.admin-control-form-row label { grid-column: 1 / -1; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.admin-control-form-row label span, .admin-control-label { color: #4f5d70; font-size: 12px; font-weight: 700; line-height: 34px; text-align: right; white-space: nowrap; }
.admin-control-label.required::before { content: "*"; margin-right: 4px; color: #f56c6c; font-weight: 800; }
.admin-control-select-row { align-items: start; }
.admin-control-select-row:has(.admin-control-game-picker-field) { grid-template-columns: 1fr; gap: 8px; }
.admin-control-select-row:has(.admin-control-game-picker-field) .admin-control-label { line-height: 1.2; text-align: left; }
.admin-control-game-picker-field { min-width: 0; }
.admin-control-game-picker-field .admin-profit-game-picker { width: 100%; position: relative; }
.admin-control-game-picker-field .admin-profit-game-trigger { height: 36px; border-radius: 6px; }
.admin-control-game-picker-field .admin-profit-game-trigger > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-control-game-picker-field .admin-control-profit-game-panel { position: static; left: auto; top: auto; z-index: auto; width: 100%; max-width: 100%; max-height: none; margin-top: 8px; overflow: hidden; padding: 10px; box-sizing: border-box; box-shadow: 0 8px 22px rgba(31, 45, 61, .12); }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-options { min-height: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 54px; justify-content: start; gap: 8px; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-option { width: 100%; height: 54px; aspect-ratio: 1 / 1; border-radius: 8px; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-thumb { padding: 0; align-items: center; font-size: 11px; text-align: center; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-thumb::after { height: 100%; background: linear-gradient(to top, rgba(0, 70, 140, .34), rgba(0, 70, 140, 0)); }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-brand-tabs { gap: 6px; margin-bottom: 8px; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-brand-tab { min-width: 0; height: 28px; padding: 0 9px; font-size: 11px; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-search { height: 32px; }
.admin-control-game-picker-field .admin-control-profit-game-panel .admin-profit-game-pager { margin-top: 8px; }
.admin-control-segment, .admin-control-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-control-segment button, .admin-control-inline button { min-height: 32px; padding: 0 12px; border: 1px solid #d8e2f0; border-radius: 7px; background: #fff; color: #4f5d70; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-control-segment button.active { border-color: #1677ff; background: #eef6ff; color: #1677ff; }
.admin-control-inline input { flex: 1 1 150px; min-width: 150px; max-width: 240px; }
.admin-control-form-row input { width: 100%; min-height: 34px; border: 1px solid #d9dee8; border-radius: 6px; padding: 8px 10px; background: #fff; color: #3f4b5b; font: inherit; outline: none; }
.admin-control-form-row input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.admin-control-amount-chip-wrap { position: relative; display: inline-flex; align-items: center; padding-top: 4px; }
.admin-control-amount-chip { min-width: 82px !important; height: 32px; padding: 0 12px !important; border-color: #b7d7ff !important; background: #f6faff !important; color: #31507a !important; font-variant-numeric: tabular-nums; }
.admin-control-amount-remove { position: absolute; top: -4px; right: -5px; z-index: 2; width: 16px; min-width: 16px !important; height: 16px; min-height: 16px !important; padding: 0 !important; border: 1px solid #f1b8b8 !important; border-radius: 999px !important; background: #fff5f5 !important; color: #d92d20 !important; font-size: 12px !important; line-height: 14px; font-weight: 900 !important; }
.admin-control-amount-create { min-width: 104px !important; border-color: #b7d7ff !important; background: #eef6ff !important; color: #1677ff !important; }
.admin-control-amount-editor { display: inline-flex; align-items: center; gap: 6px; }
.admin-control-amount-editor input { flex: 0 0 110px; min-width: 110px; max-width: 110px; }
.admin-control-amount-save { min-width: 54px !important; border-color: #1677ff !important; background: #1677ff !important; color: #fff !important; }
.admin-control-time-options { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #d7e3f5; border-radius: 7px; background: #fff; }
.admin-control-time-options button { min-width: 64px; height: 36px; padding: 0 14px; border: 0; border-right: 1px solid #d7e3f5; border-radius: 0; background: #fff; color: #344054; font-size: 13px; font-weight: 700; }
.admin-control-time-options button:last-child { border-right: 0; }
.admin-control-time-options button.active { background: #409eff; color: #fff; }
.admin-control-hint { min-height: 26px; padding: 4px 9px; border-radius: 6px; background: #f7f9fc; color: #7a8699; display: inline-flex; align-items: center; font-size: 11px; line-height: 1.4; }
.admin-control-hint.warning { border: 1px solid #ffe2b8; background: #fff7e8; color: #b26a00; }
.admin-control-footer { padding: 12px 20px 16px; border-top: 1px solid #edf1f6; background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; }
.admin-control-footer button.primary { border-color: #409eff; background: #409eff; color: #fff; }
@media (max-width: 1280px) {
  .admin-profit-filters { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .admin-profit-date-filter { grid-column: 1 / -1; }
  .admin-profit-game-panel { width: min(680px, calc(100vw - 260px)); }
}
@media (max-width: 820px) {
  .admin-profit-tabs { width: 100%; }
  .admin-profit-tab { flex: 1 1 140px; justify-content: center; }
  .admin-profit-filters { grid-template-columns: 1fr; }
  .admin-profit-filter { align-items: stretch; flex-direction: column; }
  .admin-profit-input, .admin-profit-game-picker, .admin-profit-actions, .admin-profit-btn { width: 100%; }
  .admin-profit-date-control { grid-template-columns: 1fr; }
  .admin-profit-game-panel { width: calc(100vw - 48px); }
  .admin-profit-game-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-control-backdrop { padding: 12px; }
  .admin-control-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .admin-control-form-row, .admin-control-form-row label { grid-template-columns: 1fr; }
  .admin-control-label, .admin-control-form-row label span { text-align: left; line-height: 1.4; }
}
