﻿:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --text: #e5edf9;
  --muted: #93a4bf;
  --line: #1f2d49;
  --primary: #3b82f6;
  --primary-soft: #1d4ed8;
  --shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
  --font-ui: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ops: 'SUIT', 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-docs: 'IBM Plex Sans KR', 'Noto Sans KR', 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  font-family: var(--font-ui);
}

body[data-page='users'],
body[data-page='remote-control'],
body[data-page='agent-transactions'],
body[data-page='user-transactions'],
body[data-page='report-game-history'],
body[data-page='total-balance-burn'] {
  font-family: var(--font-ops);
}

body[data-page='docs'],
body[data-page='system-logs-server'],
body[data-page='system-logs-traffic'],
body[data-page='system-logs-api'] {
  font-family: var(--font-docs);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.theme-toggle-btn {
  min-width: 112px;
  gap: 6px;
}

.theme-toggle-current {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sidebar-theme-dock {
  margin-top: auto;
  padding: 8px 8px 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.theme-switch {
  width: 94px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #365278;
  background: linear-gradient(180deg, #15223a, #0f1a2d);
  color: #d6e4f8;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
}

.theme-switch-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fa8c8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-switch-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch-track {
  width: 32px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #3d5a81;
  background: #172740;
  position: relative;
  flex: 0 0 32px;
}

.theme-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  transition: transform 0.22s ease;
}

.theme-switch.is-light .theme-switch-thumb {
  transform: translateX(16px);
}

.theme-switch.is-light .theme-switch-icon.sun {
  color: #d97706;
  opacity: 1;
}

.theme-switch.is-light .theme-switch-icon.moon {
  color: #6b7280;
  opacity: 0.65;
}

.theme-switch:not(.is-light) .theme-switch-icon.sun {
  color: #64748b;
  opacity: 0.65;
}

.theme-switch:not(.is-light) .theme-switch-icon.moon {
  color: #93c5fd;
  opacity: 1;
}

.topbar-right .logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: #3a4b66;
  background: linear-gradient(180deg, #1f2b3f, #162236);
  color: #dbeafe;
}

.topbar-right .logout-btn:hover {
  border-color: #4e6587;
  background: linear-gradient(180deg, #26364f, #1d2b42);
}

.logout-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9dc2ff;
}

.logout-icon i {
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}

.page-transition-loader {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: none;
  align-items: center;
  justify-content: center;
}

.page-transition-loader.active {
  display: flex;
}

.page-transition-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(59, 130, 246, 0.16), rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.9) 100%);
  backdrop-filter: blur(4px);
}

.page-transition-card {
  position: relative;
  z-index: 1;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.88));
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.48);
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.page-transition-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(147, 197, 253, 0.35);
  border-top-color: #93c5fd;
  animation: pageSpin 0.8s linear infinite;
}

.page-transition-text-wrap {
  display: grid;
  gap: 2px;
}

.page-transition-text-wrap strong {
  font-size: 13px;
  color: #e8f1ff;
  letter-spacing: 0.01em;
}

.page-transition-text-wrap span {
  font-size: 12px;
  color: #a9bddc;
}

@keyframes pageSpin {
  to { transform: rotate(360deg); }
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at -8% -12%, rgba(82, 144, 244, 0.44), rgba(82, 144, 244, 0) 60%),
    radial-gradient(900px 540px at 110% 105%, rgba(57, 198, 210, 0.26), rgba(57, 198, 210, 0) 58%),
    linear-gradient(145deg, #0a1224 0%, #0a152a 40%, #060b16 100%);
  position: relative;
  overflow: hidden;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
}

.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
}

.login-orb-a {
  width: 320px;
  height: 320px;
  left: max(-100px, -8vw);
  top: max(-90px, -7vw);
  background: radial-gradient(circle at 35% 35%, rgba(150, 200, 255, 0.88), rgba(69, 118, 210, 0.2) 65%, rgba(69, 118, 210, 0));
  animation: loginFloatA 13s ease-in-out infinite;
}

.login-orb-b {
  width: 260px;
  height: 260px;
  right: max(-70px, -4vw);
  bottom: max(-70px, -4vw);
  background: radial-gradient(circle at 35% 35%, rgba(145, 244, 255, 0.56), rgba(41, 146, 177, 0.22) 68%, rgba(41, 146, 177, 0));
  animation: loginFloatB 11s ease-in-out infinite;
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.login-card {
  width: 100%;
  max-width: 432px;
  background: linear-gradient(180deg, rgba(15, 26, 44, 0.9), rgba(10, 18, 33, 0.95));
  border: 1px solid rgba(124, 153, 197, 0.34);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 8, 21, 0.42), inset 0 1px 0 rgba(216, 231, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 22px;
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.login-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.login-brand .brand-title {
  font-size: 18px;
}

.login-brand .brand-subtitle {
  font-size: 10px;
}

.login-intro {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #d8e8ff;
  font-size: 13px;
}

.login-form input {
  height: 44px;
  border: 1px solid rgba(124, 154, 198, 0.42);
  border-radius: 10px;
  padding: 0 13px;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.92), rgba(10, 19, 35, 0.92));
  color: #eef4ff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form input:focus {
  outline: 0;
  border-color: rgba(145, 186, 242, 0.95);
  box-shadow: 0 0 0 3px rgba(120, 167, 234, 0.22);
  transform: translateY(-1px);
}

.login-form input::placeholder {
  color: #8fa9cc;
}

.login-card .login-form button[type='submit'] {
  width: 100%;
  height: 45px;
  border-radius: 10px;
  border-color: rgba(149, 185, 238, 0.48);
  background: linear-gradient(135deg, #2d67bf 0%, #3f81d4 48%, #5e9ae0 100%);
  color: #f2f7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 24px rgba(27, 69, 132, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-top: 16px;
}

.login-card .login-form button[type='submit']:hover {
  border-color: rgba(166, 198, 245, 0.6);
  background: linear-gradient(135deg, #316dc9 0%, #438ce0 48%, #69a9ee 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(27, 69, 132, 0.4);
}

.login-card .login-form button[type='submit']:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.login-captcha-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 42px minmax(108px, 0.82fr);
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.login-captcha-image {
  height: 44px;
  border: 1px dashed rgba(150, 182, 226, 0.55);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: #d4e5ff;
  background: rgba(13, 24, 42, 0.55);
}

.login-captcha-image svg {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.login-captcha-refresh {
  width: 42px;
  height: 44px;
  border: 1px solid rgba(132, 168, 219, 0.52);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(25, 42, 70, 0.95), rgba(16, 30, 51, 0.95));
  color: #c9deff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.login-captcha-refresh i {
  font-size: 16px;
}

.login-captcha-refresh:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(160, 195, 242, 0.72);
  background: linear-gradient(180deg, rgba(32, 53, 86, 0.95), rgba(23, 40, 67, 0.95));
}

.login-captcha-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}

.login-captcha-answer {
  height: 44px !important;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  padding: 0 10px !important;
}

.login-form button:not(.login-captcha-refresh),
.toolbar button,
.ghost-btn,
.link-btn {
  height: 34px;
  border: 1px solid #3a465d;
  border-radius: 8px;
  padding: 0 12px;
  background: #1d2738;
  color: #d7e1f3;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.switch-card[hidden] {
  display: none !important;
}
.login-error {
  min-height: 20px;
  color: #fda4af;
  font-size: 14px;
}

.login-footnote {
  margin: 14px 0 0;
  font-size: 11px;
  color: #8fa7c7;
  line-height: 1.4;
}

@keyframes loginFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 16px) scale(1.04); }
}

@keyframes loginFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, -12px) scale(1.06); }
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  position: relative;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  background: linear-gradient(180deg, #0a1020 0%, #0b1428 100%);
  color: #fff;
  border-right: 1px solid #1a2742;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 160, 204, 0.72) rgba(8, 14, 28, 0.5);
}

.sidebar::-webkit-scrollbar {
  width: 9px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(8, 14, 28, 0.5);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150, 184, 232, 0.9) 0%, rgba(98, 138, 191, 0.9) 100%);
  border-radius: 999px;
  border: 2px solid rgba(8, 14, 28, 0.55);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(179, 208, 247, 0.95) 0%, rgba(117, 159, 214, 0.95) 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 145, 197, 0.34);
  background: linear-gradient(160deg, rgba(160, 194, 241, 0.2) 0%, rgba(85, 122, 176, 0.18) 100%);
  color: #a9c6ef;
  box-shadow: inset 0 1px 0 rgba(233, 244, 255, 0.14), 0 6px 16px rgba(6, 12, 24, 0.32);
}

.brand-mark::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  top: 6px;
  right: 6px;
  background: rgba(210, 230, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(90, 134, 194, 0.2);
}

.brand-mark.has-logo::after {
  display: none;
}

.brand-logo {
  width: 74%;
  height: 74%;
  display: none;
  object-fit: contain;
  object-position: center;
}

.brand-logo-dark {
  display: inline-block;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-monogram {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #e8f1ff;
  text-shadow: 0 1px 0 rgba(7, 14, 29, 0.28);
}

.brand-text {
  display: inline-grid;
  align-content: center;
  gap: 2px;
}

.brand-title {
  display: block;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #e8f0ff;
}

.brand-subtitle {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1;
  color: #8ea5c6;
}

.sidebar nav {
  display: grid;
  gap: 3px;
  align-content: start;
}

.nav-section {
  display: grid;
  gap: 2px;
}

.nav-section + .nav-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.nav-section-title {
  margin: 0;
  padding: 1px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7f94b2;
  text-transform: uppercase;
}

.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link > span:last-child {
  flex: 1;
  min-width: 0;
}

.nav-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9db1cf;
  flex: 0 0 18px;
}

.nav-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-ico i {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.sidebar .nav-link:hover {
  background: rgba(89, 108, 140, 0.18);
  color: #fff;
}

.sidebar .nav-link:hover .nav-ico {
  color: #dbeafe;
}

.sidebar .nav-link.active {
  color: #e9f1ff;
  border-color: rgba(127, 151, 187, 0.28);
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0.07) 56%, rgba(96, 165, 250, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 999px;
  background: rgba(186, 215, 255, 0.88);
  opacity: 0.85;
}

.sidebar .nav-link.active .nav-ico {
  color: #dbeafe;
}

.nav-item.has-active-child > .nav-parent-row > .nav-link.active {
  background: rgba(89, 108, 140, 0.1);
  border-color: rgba(127, 151, 187, 0.14);
  box-shadow: none;
}

.nav-item.has-active-child > .nav-parent-row > .nav-link.active::before {
  opacity: 0.28;
}

.nav-item.has-active-child > .nav-parent-row > .nav-link.active .nav-ico {
  color: #b8c8df;
}

.nav-item {
  display: grid;
}

.nav-parent-row {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.nav-parent-row .nav-link {
  width: 100%;
  padding-right: 36px;
}

.subnav-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #8ea5c6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subnav-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s ease;
}

.subnav-toggle i {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.24s ease;
}

.subnav-toggle:hover {
  background: rgba(96, 165, 250, 0.16);
  color: #dbeafe;
}

.nav-item.open .subnav-toggle svg {
  transform: rotate(180deg);
}

.nav-item.open .subnav-toggle i {
  transform: rotate(180deg);
}

.subnav {
  margin-left: 8px;
  margin-bottom: 2px;
  display: grid;
  gap: 2px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
}

.subnav.open {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 3px;
}

.subnav a {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #94a3b8;
  min-height: 28px;
  border-radius: 7px;
  padding-left: 8px;
}

@media (max-height: 860px) {
  .sidebar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 9px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .nav-link {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .subnav a {
    min-height: 26px;
  }
}

.subnav a.active {
  color: #fff;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(127, 151, 187, 0.25);
}

.main-area {
  padding: 10px;
  min-width: 0;
}

.topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sidebar-toggle {
  display: none;
  height: 34px;
  min-width: 34px;
  border: 1px solid #3a465d;
  border-radius: 8px;
  background: #1d2738;
  color: #d7e1f3;
  cursor: pointer;
}

.agent-summary {
  border: 1px solid var(--line);
  background: #0f172a;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.agent-identity-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-meta {
  height: 32px;
  display: grid;
  align-content: space-between;
  gap: 2px;
}
.topbar-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  font-size: 12px;
  font-weight: 700;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.topbar-avatar.has-image,
.settings-avatar.has-image {
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  height: 28px;
  border: 1px solid #3a465d;
  border-radius: 6px;
  padding: 0 9px;
  background: #1d2738;
  color: #d7e1f3;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn.danger {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
}

.badge-success,
.badge-muted {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  color: #86efac;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.4);
}

.badge-muted {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.agent-identity-row strong {
  font-size: 13px;
  color: #e8eefb;
  line-height: 1;
}

.agent-identity-row span {
  font-size: 12px;
  color: #9ab0cc;
  line-height: 1;
}

.agent-balance-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #9ab0cc;
  line-height: 1.2;
}

.agent-balance-row b {
  color: #dbeafe;
  font-variant-numeric: tabular-nums;
}

#topAgentBalanceWrap,
#topAgentRtpWrap,
#topAgentTotalBalanceWrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 5px;
}

.top-balance-refresh-btn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #405376;
  border-radius: 999px;
  background: #15233a;
  color: #9fc2f3;
  padding: 0;
  cursor: pointer;
}

.top-balance-refresh-btn:hover {
  border-color: #5f7fb4;
  color: #d7e7ff;
}

.top-balance-refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.top-balance-refresh-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ghost-btn {
  background: #1e293b;
  color: #dbeafe;
  border-color: #334155;
}

.primary-btn {
  height: 36px;
  border: 1px solid var(--primary-soft);
  border-radius: 8px;
  background: var(--primary);
  color: #eaf2ff;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.ui-toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 24px));
}

.ui-toast {
  border: 1px solid #2b3b5d;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toastIn 0.2s ease;
}

.ui-toast.success { border-color: #166534; color: #bbf7d0; }
.ui-toast.error { border-color: #991b1b; color: #fecaca; }
.ui-toast.warn { border-color: #92400e; color: #fde68a; }

.ui-toast.hide {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ui-messagebox.hidden {
  display: none;
}

.ui-messagebox {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-messagebox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.ui-messagebox-card {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #13213a, #0f1b30);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.ui-messagebox-header {
  font-size: 16px;
  font-weight: 700;
  color: #eaf2ff;
}

.ui-messagebox-body {
  color: #bfd0ea;
  font-size: 13px;
  line-height: 1.45;
}

.ui-messagebox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.content-panel {
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.agent-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-toolbar-actions button i {
  font-size: 14px;
  line-height: 1;
}

.toolbar button {
  flex: 0 0 auto;
}

.control-panel {
  border: 1px solid var(--line);
  background: #0f172a;
  border-radius: 12px;
  padding: 10px;
}

.toolbar input,
.toolbar select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  min-width: 180px;
  background: #0f172a;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
}

.toolbar select,
.table-controls select,
.date-range-preset,
.modal-card select {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f172a;
  color: var(--text);
  font-size: 12px;
}

.inline-check input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.modern-inline-check {
  border-color: #284061;
  background: linear-gradient(180deg, #0f1a2f, #0d1729);
  padding-right: 12px;
}

.modern-inline-check input[type='checkbox'] {
  display: none;
}

.modern-inline-check .toggle-pill {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #314866;
  background: #1c2a44;
  position: relative;
  transition: all 0.2s ease;
}

.modern-inline-check .toggle-pill::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #c7d2e5;
  transition: transform 0.2s ease;
}

.modern-inline-check input[type='checkbox']:checked + .toggle-pill {
  background: rgba(59, 130, 246, 0.36);
  border-color: #2f72de;
}

.modern-inline-check input[type='checkbox']:checked + .toggle-pill::after {
  transform: translateX(14px);
  background: #e5efff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.settings-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.settings-card label {
  font-size: 12px;
  color: var(--muted);
}

.settings-card input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a2e;
  color: var(--text);
  padding: 0 10px;
}

.settings-inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.settings-inline-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-inline-action .ghost-btn,
.settings-inline-action .primary-btn {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.settings-actions .primary-btn,
.settings-actions .ghost-btn {
  min-height: 36px;
}

.settings-profile-card {
  gap: 10px;
  background: linear-gradient(180deg, #12203a, #0f172a);
  border-color: #2f4a6e;
}

.settings-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  color: #dbeafe;
  font-weight: 700;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.settings-profile-meta {
  display: grid;
  gap: 2px;
}

.settings-profile-meta strong {
  font-size: 15px;
  color: #e5efff;
}

.settings-profile-meta span {
  font-size: 12px;
  color: #9ec2ff;
}

.settings-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed #22314e;
  padding-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.settings-kv b {
  color: #dbeafe;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  word-break: break-all;
  text-align: right;
}

.settings-profile-card .settings-kv {
  border-top-color: #294160;
}

.settings-profile-card .badge {
  min-width: 66px;
  justify-content: center;
}

.settings-login-history-card {
  margin-top: 14px;
}

.settings-login-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-login-history-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-reset-card {
  border-color: #7f3040;
  background: linear-gradient(180deg, rgba(73, 24, 35, 0.5), rgba(32, 12, 18, 0.42));
}

.settings-reset-desc {
  margin: 0 0 4px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.4;
}

.log-summary {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.log-summary strong {
  color: var(--text);
}

.log-error-summary {
  margin: 8px 0 10px;
  border: 1px solid #7f2f3d;
  background: linear-gradient(180deg, rgba(80, 22, 31, 0.72), rgba(56, 16, 24, 0.72));
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.log-error-summary.hidden {
  display: none;
}

.log-error-summary-head {
  color: #fecaca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.log-error-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.log-error-summary-grid div,
.log-error-summary-message {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.log-error-summary-grid strong,
.log-error-summary-message strong {
  color: #fecdd3;
  font-size: 12px;
}

.log-error-summary-grid span,
.log-error-summary-message span {
  color: #ffe4e6;
  font-size: 12px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-msg-cell {
  max-width: 680px;
  white-space: normal;
  word-break: break-word;
}

.log-json-cell {
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
}

.log-json-cell-alert {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.18);
}

.log-json-cell-success {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.2);
}

.log-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.log-badge-level-info {
  background: #13263f;
  border-color: #35557a;
  color: #97c2f1;
}

.log-badge-level-debug {
  background: #21243a;
  border-color: #50557f;
  color: #c2c7f3;
}

.log-badge-level-warn,
.log-badge-level-warning {
  background: #3a2a13;
  border-color: #9f6b1f;
  color: #f3cf8d;
}

.log-badge-level-error {
  background: #3c1a1f;
  border-color: #9d3a4a;
  color: #f8bac4;
}

.log-badge-method-get {
  background: #143229;
  border-color: #2e6f5a;
  color: #9be8d1;
}

.log-badge-method-post,
.log-badge-method-put,
.log-badge-method-patch,
.log-badge-method-delete {
  background: #1b2c43;
  border-color: #3f6493;
  color: #b8d5ff;
}

.log-badge-status-ok {
  background: #173329;
  border-color: #2c7a5f;
  color: #a3f0d8;
}

.log-badge-status-warn {
  background: #3b2c16;
  border-color: #a17326;
  color: #f4d69a;
}

.log-badge-status-err {
  background: #3f1e22;
  border-color: #a04350;
  color: #f6b6bf;
}

.log-row {
  cursor: pointer;
}

.log-row-warn {
  background: rgba(245, 158, 11, 0.12);
}

.log-row-error {
  background: rgba(239, 68, 68, 0.14);
}

.log-row:hover {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.36);
}

.log-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
}

.log-detail-modal.hidden {
  display: none;
}

.log-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
}

.log-detail-card {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: min(82vh, 860px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 12px;
  border: 1px solid #425777;
  background: linear-gradient(180deg, #111f34 0%, #0d182b 100%);
  box-shadow: 0 28px 56px rgba(2, 8, 23, 0.52);
  overflow: hidden;
}

.log-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #334766;
}

.log-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.log-detail-head h3 {
  margin: 0;
  font-size: 14px;
  color: #dce8fb;
}

.log-detail-body {
  overflow: auto;
  padding: 10px 12px 14px;
}

.log-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-detail-table th,
.log-detail-table td {
  border-bottom: 1px solid #2d3f59;
  padding: 8px 10px;
  vertical-align: top;
}

.log-detail-table th {
  width: 110px;
  font-size: 12px;
  color: #a8c0e3;
  background: rgba(20, 36, 58, 0.65);
  position: static;
  top: auto;
  z-index: auto;
}

.log-detail-table td {
  width: calc(50% - 110px);
}

.log-detail-table th.log-detail-empty,
.log-detail-table td.log-detail-empty {
  background: transparent;
  border-bottom-color: transparent;
}

.log-detail-table td pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #dce6f4;
}

@media (max-width: 720px) {
  .log-detail-table,
  .log-detail-table tbody,
  .log-detail-table tr,
  .log-detail-table th,
  .log-detail-table td {
    display: block;
  }

  .log-detail-table th,
  .log-detail-table td {
    width: 100%;
  }

  .log-detail-table th.log-detail-empty,
  .log-detail-table td.log-detail-empty {
    display: none;
  }
}

.log-location-cell,
.log-error-cell {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
}

.log-location-cell {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.log-error-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-location-cell {
  color: #9ac0ee;
}

.log-error-cell {
  color: #fbc989;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dashboard-stats-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -7px;
    margin-bottom: 8px;
}
.dashboard-grid + .dashboard-panel {
  margin-top: 14px;
}

.dashboard-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 1080px) {
  .dashboard-grid,
  .dashboard-trend-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  padding: 12px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.dashboard-table-wrap {
  border: 1px solid #22314e;
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-top-winners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.winner-group {
  border: 1px solid #22314e;
  border-radius: 10px;
  padding: 10px;
  background: #0f1a2d;
}

.winner-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #c7d7ee;
}

.winner-group ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 284px;
}

.winner-group li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #9eb2cf;
}

.winner-rank {
  color: #facc15;
  font-weight: 700;
}

.winner-code {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-code-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.winner-amount {
  color: #5dd39e;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.winner-amount.is-negative {
  color: #f87171;
}

.winner-empty {
  grid-template-columns: 1fr !important;
  min-height: 284px;
  display: grid !important;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #2a3b5a;
  border-radius: 8px;
  background: rgba(15, 26, 45, 0.35);
  padding: 10px;
}

.dashboard-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-mini-table th,
.dashboard-mini-table td {
  border-bottom: 1px solid #1f2d49;
  padding: 9px 10px;
  font-size: 13px;
  text-align: left;
}

.dashboard-mini-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-mini-table tbody tr.row-urgent td {
  background: rgba(251, 191, 36, 0.12);
}

.dashboard-urgent-text {
  color: #facc15;
  font-weight: 700;
}

.dashboard-mini-table th {
  color: #9eb2cf;
  background: #111d33;
  font-weight: 650;
}

.dashboard-mini-table .th-no,
.dashboard-mini-table .cell-no {
  width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dashboard-mini-table .th-date,
.dashboard-mini-table .cell-date {
  width: 170px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dashboard-mini-table td.no-data {
  text-align: center !important;
  vertical-align: middle;
  padding: 34px 12px;
}

.dashboard-trend-chart {
  min-height: 210px;
  border: 1px solid #22314e;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  background: linear-gradient(180deg, #10192e, #0f172a);
}

.dashboard-chart-wrap {
  min-height: 240px;
  height: clamp(240px, 32vh, 320px);
  border: 1px solid #22314e;
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, #10192e, #0f172a);
  position: relative;
}

.burn-chart-wrap {
  min-height: 280px;
  height: clamp(280px, 38vh, 360px);
}

#burnTableWrap .table-wrap-inner .generic-table th,
#burnTableWrap .table-wrap-inner .generic-table td {
  text-align: center;
}

.dashboard-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-chart-wrap .no-data {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1.25;
  white-space: nowrap;
}

.notice-row-clickable {
  cursor: pointer;
}

.log-tablewrap th,
.log-tablewrap td {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  border: none;
}

.log-tablewrap th {
  padding: 6px 4px;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-per-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-range-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-range-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-range-custom.hidden {
  display: none;
}

.table-controls input,
.table-controls select,
.pager input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #0f172a;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
}

.table-controls label,
.control-right label {
  font-size: 13px;
  font-weight: 560;
  color: #cfdcf1;
}

.table-controls input::placeholder,
.toolbar input::placeholder,
#tableSearch::placeholder {
  color: #8fa2be;
  opacity: 1;
  font-weight: 500;
}

.table-controls button,
.pager button {
  height: 32px;
  border: 1px solid #3a465d;
  border-radius: 8px;
  background: #1d2738;
  color: #d7e1f3;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.login-form button:hover,
.toolbar button:hover,
.ghost-btn:hover,
.link-btn:hover,
.table-controls button:hover,
.pager button:hover {
  background: #253248;
  border-color: #4b5a75;
}

.table-controls button:disabled,
.pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-wrap-inner {
  overflow: auto;
}

.table-wrap,
.table-wrap-inner {
  scrollbar-color: #334155 #0f172a;
}

.table-wrap::-webkit-scrollbar,
.table-wrap-inner::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track,
.table-wrap-inner::-webkit-scrollbar-track {
  background: #0f172a;
}

.table-wrap::-webkit-scrollbar-thumb,
.table-wrap-inner::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

.table-wrap-inner .generic-table th,
.table-wrap-inner .generic-table td {
  white-space: normal;
  word-break: keep-all;
}

#systemLogTableWrap .table-wrap-inner .generic-table th,
#systemLogTableWrap .table-wrap-inner .generic-table td {
  width: fit-content;
}

#systemLogTableWrap .table-wrap-inner .generic-table {
  width: max-content;
  min-width: 100%;
}

#systemLogTableWrap .table-wrap-inner .generic-table th,
#systemLogTableWrap .table-wrap-inner .generic-table td {
  white-space: nowrap;
}

#systemLogTableWrap .table-wrap-inner .generic-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d7e5fb;
  background: linear-gradient(180deg, #182947 0%, #14243e 100%);
  border-bottom: 1px solid #3b4f72;
  box-shadow: inset 0 -1px 0 rgba(76, 97, 128, 0.32);
}

#systemLogTableWrap .table-wrap-inner .generic-table .log-msg-cell,
#systemLogTableWrap .table-wrap-inner .generic-table .log-json-cell {
  white-space: nowrap;
  max-width: none;
}

#systemLogTableWrap .table-wrap-inner .generic-table .th-log-message,
#systemLogTableWrap .table-wrap-inner .generic-table .log-cell-fill {
  width: 100%;
  min-width: 420px;
}

#systemLogTableWrap .table-wrap-inner .generic-table .log-msg-cell.log-cell-fill {
  white-space: normal;
  word-break: break-word;
}


.table-wrap-inner .generic-table .th-no,
.table-wrap-inner .generic-table .cell-no,
.table-wrap-inner .generic-table .cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

.table-wrap-inner .generic-table .th-no,
.table-wrap-inner .generic-table .cell-no {
  font-size: 12.5px;
  font-weight: 560;
  color: #b4c4dc;
}

.table-wrap-inner .generic-table .cell-num {
  color: #bfdbfe;
  font-size: 12.5px;
  font-weight: 620;
}

.pager .pager-jump-page, .table-top-pages .pager-jump-page {
    font-variant-numeric: tabular-nums;
    text-align: right;
    width: 64px;
    min-width: 50px;
    padding: 0 10px;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.no-data {
  min-height: 120px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

td.no-data {
  display: table-cell !important;
  width: 100%;
  text-align: center !important;
  vertical-align: middle;
  padding: 28px 12px;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pager.pager-top {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.pager.pager-bottom {
  border-top: 1px solid var(--line);
}

.pager-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.page-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pager-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pager-page-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
}

.pager-page-btn.is-active {
  background: #2f4a73;
  border-color: #5f7ca7;
  color: #f1f6ff;
}

.page-nav-controls button {
  height: 28px;
  font-size: 12px;
  padding: 0 10px;
}

.table-top-pages {
  justify-content: flex-end;
}

.action-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-code-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.provider-thumb {
    width: 161px;
    height: 30px;
    border-radius: 7px;
    object-fit: contain;
    border: 1px solid #444f61;
    background: #172845;
    padding: 1px;
}
  .game-banner-thumb {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid #576987;
    margin-right: 14px;
}

.provider-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9db1cf;
  font-size: 11px;
  font-weight: 700;
}

.provider-code-meta {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.provider-code-meta strong {
  color: #dbe7f8;
  font-size: 13px;
  font-weight: 620;
}

.provider-code-meta small {
  color: #8fa2be;
  font-size: 11px;
}

.provider-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.provider-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #d1def3;
}

.provider-online-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.provider-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.provider-online-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  animation: provider-online-pulse 1.6s ease-out infinite;
}

.provider-online-dot.checking {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

@keyframes provider-online-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(34, 197, 94, 0.26),
      0 0 0 0 rgba(34, 197, 94, 0.36);
  }

  70% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 2px rgba(34, 197, 94, 0.24),
      0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(34, 197, 94, 0.2),
      0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-online-dot.online {
    animation: none;
  }
}

.provider-online-text {
  font-size: 12px;
  font-weight: 600;
  color: #d1def3;
}

.game-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.game-toolbar-label {
  color: #d8e5fa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-toolbar-control {
  min-width: 170px;
  height: 32px;
  border: 1px solid #3b4b65;
  border-radius: 8px;
  background: #0f172a;
  color: #e7efff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 560;
}

.game-toolbar-field-user .game-toolbar-control {
  min-width: 220px;
}

.game-charge-panel {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #111b2f;
}

.game-charge-head {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.game-charge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-charge-hint {
  margin: 8px 0 0;
  color: #9fb3d1;
  font-size: 12px;
}

.provider-action-btn {
  height: 28px;
  border: 1px solid #3a465d;
  border-radius: 8px;
  background: #1b273b;
  color: #d7e1f3;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.provider-action-btn:hover {
  background: #253248;
  border-color: #4b5a75;
}

.provider-endpoint-cell {
  display: inline-block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #bfdbfe;
}

.provider-endpoint-empty,
.provider-domains-empty {
  color: var(--muted);
}

.provider-domains-cell {
  display: grid;
  gap: 2px;
}

.provider-domains-cell small {
  display: block;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b9cbe5;
  font-size: 11.5px;
  line-height: 1.35;
}

.provider-domains-modal {
  width: min(620px, calc(100% - 24px));
}

.provider-editor-modal {
  width: min(700px, calc(100% - 24px));
}

.provider-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.provider-editor-modal label {
  display: grid;
  gap: 6px;
}

.provider-editor-modal label > span {
  font-size: 12px;
  color: var(--muted);
}

.provider-domains-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #111a2e;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.45;
}

.provider-domains-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.provider-action-btn.danger {
  border-color: #6b2231;
  background: #3b1b27;
  color: #fecdd3;
}

.provider-action-btn.danger:hover {
  border-color: #9f1239;
  background: #4a1d2b;
}

.provider-menu-trigger {
  width: 28px;
  min-width: 28px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.mini-btn {
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #334155;
  color: #e2e8f0;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn.danger {
  background: #fee2e2;
  color: #991b1b;
}

.tree-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #93c5fd;
  margin-right: 6px;
  width: 16px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.tree-toggle-placeholder {
  visibility: hidden;
}

.action-menu {
  position: fixed;
  z-index: 3000;
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
  width: max-content;
  min-width: 0;
  max-width: min(190px, calc(100vw - 20px));
  padding: 6px;
}

.action-menu.hidden,
.modal-backdrop.hidden {
  display: none;
}

.action-menu button {
  width: 100%;
  min-width: max-content;
  border: none;
  background: #0f172a;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-menu button:hover {
  background: #1e293b;
}

.action-menu button.danger {
  color: #fecdd3;
}

.action-menu button.danger:hover {
  background: #4a1d2b;
}

.action-menu .menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  flex: 0 0 16px;
}

.action-menu .menu-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  background: linear-gradient(180deg, #1a2740, #142238);
  border-radius: 12px;
  border: 1px solid #5d7396;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.modal-card input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #111a2e;
  color: var(--text);
}

.modal-card select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #111a2e;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field-help {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #9fb4d1;
}

.popup-editor-card,
.notice-editor-card {
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #4e668c;
}

.popup-image-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.popup-text-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#popupImageFile {
  padding: 8px;
  height: auto;
}

#popupImageFile::file-selector-button,
#popupImageFile::-webkit-file-upload-button {
  margin-right: 10px;
  border: 1px solid #4f6a91;
  background: linear-gradient(180deg, #21324f, #1a2942);
  color: #dbeafe;
  border-radius: 8px;
  height: 30px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
}

#popupImageFile::file-selector-button:hover,
#popupImageFile::-webkit-file-upload-button:hover {
  border-color: #678ab8;
  background: linear-gradient(180deg, #2b4164, #21324f);
}

.popup-image-preview-wrap {
  min-height: 44px;
  border: 1px dashed #476084;
  border-radius: 10px;
  padding: 8px;
  background: #10192c;
}

.popup-thumb-btn {
  border: 1px solid #425a7d;
  background: #101a2e;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
}

.popup-thumb-btn:hover {
  border-color: #5f80ad;
}

.popup-table-thumb {
  display: block;
  width: 58px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.popup-image-zoom-card {
  width: min(920px, calc(100% - 20px));
  max-height: min(90vh, 860px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.popup-image-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-image-zoom-head h3 {
  margin: 0;
}

.popup-image-zoom-body {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid #334a6d;
  border-radius: 10px;
  background: #0c1424;
  overflow: auto;
}

#popupImageZoomTarget {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
}

#popupImagePreview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 10px;
}

.badge-info {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.44);
}

.dashboard-popup-stack {
  position: relative;
  width: min(980px, calc(100% - 32px));
  height: min(86vh, 760px);
  margin: 0 auto;
}

.dashboard-popup-card {
  position: absolute;
  width: min(560px, calc(100% - 24px));
  max-height: min(74vh, 640px);
  display: grid;
  grid-template-rows: auto auto minmax(80px, 1fr) auto;
  gap: 10px;
}

.dashboard-popup-image-wrap {
  border: 1px solid #2b3d5f;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.dashboard-popup-image-wrap.fill {
  border: none;
  background: transparent;
  border-radius: 12px;
}

.dashboard-popup-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.dashboard-popup-card.image-only {
  grid-template-rows: minmax(280px, 1fr) auto;
}

.dashboard-popup-card.image-only .dashboard-popup-image {
  max-height: min(64vh, 560px);
  object-fit: contain;
}

.dashboard-popup-body {
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.dashboard-popup-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-popup-hide-row {
  align-self: flex-end;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.popup-editor-card textarea,
.notice-editor-card textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #3f5678;
  border-radius: 10px;
  padding: 10px 12px;
  background: #10192c;
  color: #dbe8fb;
  line-height: 1.5;
  resize: vertical;
}

.popup-editor-card textarea:focus,
.notice-editor-card textarea:focus {
  outline: none;
  border-color: #6da0df;
  box-shadow: 0 0 0 3px rgba(86, 137, 210, 0.2);
}

@media (max-width: 900px) {
  .dashboard-popup-card {
    left: 12px !important;
    top: 12px !important;
    width: calc(100% - 24px);

  .dashboard-top-winners {
    grid-template-columns: 1fr;
  }
  }
}

.modal-actions .primary-btn,
.modal-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  font-size: 13px;
}

.modal-actions .primary-btn:active,
.modal-actions .ghost-btn:active {
  transform: translateY(1px);
}

.modal-actions .primary-btn:disabled,
.modal-actions .ghost-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.agent-parent-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-modal-divider {
  height: 1px;
  background: #c7d7ec;
  margin: 2px 0;
}

.transfer-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-amount-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-amount-btn {
  height: 32px;
  border: 1px solid #385071;
  border-radius: 999px;
  padding: 0 12px;
  background: #16243b;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-amount-btn:hover {
  border-color: #4d78ad;
  background: #1d2f4c;
}

.docsx-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.docsx-page,
.docsx-page * {
  scrollbar-width: thin;
  scrollbar-color: #36506f #0f172a;
}

.docsx-page *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.docsx-page *::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 999px;
}

.docsx-page *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #425f82, #2a3f5a);
  border: 2px solid #0f172a;
  border-radius: 999px;
}

.docsx-page *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #527298, #345272);
}

.docsx-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f172a;
  padding: 14px;
  min-width: 0;
}

.docsx-hero h2,
.docsx-head-row h3,
.docsx-mode-guide h3 {
  margin: 0;
}

.docsx-eyebrow {
  margin: 0 0 6px;
  color: #7dd3fc;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.docsx-desc,
.docsx-muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.docsx-head-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.docsx-pill {
  font-size: 11px;
  font-weight: 700;
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
}

.docsx-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.docsx-row input,
.docsx-row button,
.docsx-auth-grid input,
.docsx-form-grid input,
.docsx-form-grid select,
#endpointSearch,
#reqBody {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111a2e;
  color: var(--text);
  padding: 0 11px;
  font-size: 13px;
}

.docsx-row input,
.docsx-form-grid input,
#endpointSearch {
  width: 80%;
}

.docsx-path-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.docsx-path-line input {
  flex: 1;
  min-width: 0;
}

.docsx-page .docsx-btn {
  border: 1px solid #3c5d84;
  background: #1f3a5a;
  color: #dbeafe;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.docsx-page .docsx-btn:hover {
  border-color: #4c6f99;
  background: #27476e;
}

.docsx-page .docsx-btn:active {
  transform: translateY(1px);
}

.docsx-page .docsx-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

#execLaunchBtn[hidden] {
  display: none !important;
}

.docsx-page .docsx-btn.docsx-btn-primary {
  border-color: #5074a3;
  background: #2d4f78;
  color: #e6f0ff;
}

.docsx-page .docsx-btn.docsx-btn-primary:hover {
  border-color: #6286b7;
  background: #37608f;
}

.docsx-page .docsx-btn.docsx-btn-secondary {
  border-color: #425b7a;
  background: #1b2f49;
  color: #d3e3f8;
}

.docsx-page .docsx-btn.docsx-btn-secondary:hover {
  border-color: #56759b;
  background: #233d5c;
}

.docsx-actions button {
  height: 36px;
  min-width: 106px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.docsx-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 12px;
}

.docsx-left-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

.docsx-endpoints,
.docsx-tester {
  min-width: 0;
}

.docsx-endpoints {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: calc(100vh - 210px);
  min-height: 0;
  overflow: hidden;
}

.docsx-config {
  padding: 10px 12px;
}

.docsx-config .docsx-head-row {
  margin-bottom: 4px;
}

.docsx-config .docsx-auth-grid {
  margin-top: 4px;
  gap: 5px 8px;
}

.docsx-config .docsx-auth-grid input {
  height: 30px;
  font-size: 12px;
}

.docsx-config .docsx-auth-grid label {
  font-size: 12px;
}

.docsx-config .docsx-muted {
  margin-top: 4px;
  font-size: 11px;
}

.docsx-endpoint-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.docsx-endpoint-card {
  width: 100%;
  border: 1px solid #2d506f;
  background: linear-gradient(180deg, #112f4b, #102a42);
  border-radius: 10px;
  color: #e8f1ff;
  padding: 9px 10px;
  text-align: left;
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.docsx-endpoint-card.active {
  border-color: #86cbff;
  box-shadow: 0 0 0 2px rgba(126, 200, 255, 0.14) inset;
}

.docsx-endpoint-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.docsx-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #a4f8c2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.docsx-path {
  flex: 1;
  min-width: 0;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docsx-title {
  color: #d9ebff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docsx-summary {
  display: block;
  color: #a5b9d5;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.docsx-modes {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.docsx-mode-tag {
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
  border: 1px solid transparent;
}

.docsx-mode-tag.seamless {
  color: #9ee6ff;
  background: rgba(48, 207, 208, 0.15);
  border-color: rgba(48, 207, 208, 0.4);
}

.docsx-mode-tag.transfer {
  color: #cfd8ff;
  background: rgba(74, 124, 240, 0.16);
  border-color: rgba(74, 124, 240, 0.45);
}

.docsx-mode-tag.call {
  color: #fce5c0;
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.5);
}

.docsx-owner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.docsx-owner-tag.agent {
  color: #fcd6a0;
  background: rgba(180, 83, 9, 0.22);
  border-color: rgba(251, 146, 60, 0.4);
}

.docsx-endpoint-card-agent {
  border-color: #8a5e26;
  background: linear-gradient(180deg, #33250f, #2a1f0d);
}

.docsx-endpoint-card-agent .docsx-title {
  color: #ffe2bc;
}

.docsx-endpoint-card-agent .docsx-summary {
  color: #e4c89e;
}

.docsx-mode-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.docsx-mode-grid article {
  border: 1px solid #2e516f;
  border-radius: 10px;
  padding: 10px;
  background: #132c47;
}

.docsx-mode-grid p {
  margin: 5px 0 0;
  color: #a4bad4;
  font-size: 12px;
}

.docsx-auth-grid,
.docsx-form-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.docsx-try-top {
  display: grid;
  gap: 10px;
}

.docsx-method-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.docsx-method-line #reqMethod {
  min-width: 110px;
}

.docsx-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.docsx-mini-btn {
  height: 38px;
  min-width: 62px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}

.docsx-filter-tabs {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.docsx-filter-tabs .docsx-btn {
  height: 32px;
  min-width: 68px;
  padding: 0 10px;
  border: 1px solid #3b6488;
  border-radius: 8px;
  background: linear-gradient(180deg, #1b3753, #172f47);
  color: #d2e4f8;
  font-size: 12px;
  font-weight: 600;
}

.docsx-filter-tabs .docsx-btn.is-active {
  border-color: #73ace2;
  background: linear-gradient(180deg, #3872a6, #2b5f8d);
  color: #f4f9ff;
}

.docsx-io-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.docsx-io-col {
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.docsx-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.docsx-io-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.docsx-io-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.docsx-request-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  flex: 1;
}

.docsx-response-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  flex: 1;
}

.docsx-pre-tools {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.docsx-pre-tools .docsx-mini-btn {
  height: 26px;
  min-width: 50px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 7px;
}

#reqBody {
  min-height: 0;
  height: 100%;
  flex: 1;
  width: 100%;
  padding: 10px 10px 10px;
  line-height: 1.45;
  resize: none;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  tab-size: 2;
}

#reqBody::selection {
  background: rgba(125, 211, 252, 0.28);
}

#reqBody:focus,
#reqBody:focus-visible {
  outline: none;
  border-color: #6ea9dd;
  box-shadow: 0 0 0 2px rgba(110, 169, 221, 0.22);
}
#resBody{
  max-height: 350px;
}

.docsx-meta {
  margin-bottom: 8px;
  border: 1px dashed #35638a;
  border-radius: 10px;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.docsx-meta strong {
  display: block;
  color: #9fb4d0;
  font-size: 12px;
  margin-bottom: 3px;
}

.docsx-meta span {
  font-size: 13px;
  font-weight: 650;
}

.docsx-response {
  margin: 0;
  min-height: 0;
  height: 100%;
  flex: 1;
  overflow: auto;
  border: 1px solid #2b4d6c;
  border-radius: 10px;
  background: #081723;
  padding: 40px 10px 10px;
  color: #d7eaff;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  tab-size: 2;
}

.docsx-response.hljs {
  background: #081723;
}

.docsx-response .hljs-attr {
  color: #86efac;
}

.docsx-response .hljs-string {
  color: #86efac;
}

.docsx-response .hljs-number {
  color: #fca5a5;
}

.docsx-response .hljs-literal {
  color: #c4b5fd;
}

.docsx-spec {
  margin-top: 8px;
  border: 1px solid #2b4d6c;
  border-radius: 10px;
  background: #0b182a;
  padding: 10px;
  min-width: 0;
}

.docsx-spec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.docsx-spec-head code {
  color: #c8dcf8;
}

.docsx-spec-summary {
  margin: 8px 0;
  color: #a5b9d5;
  font-size: 12px;
}

.docsx-impl-note {
  margin: 0 0 10px;
  border: 1px solid #7b5a24;
  background: rgba(120, 76, 17, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fed7aa;
  font-size: 12px;
  line-height: 1.4;
}

.docsx-spec-table-wrap {
  overflow-x: auto;
}

.docsx-spec-response {
  margin-top: 10px;
  border: 1px dashed #456384;
  border-radius: 8px;
  padding: 8px 10px;
  background: #0d2137;
}

.docsx-spec-response h5 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #c7dbf6;
}

.docsx-spec-response pre {
  margin: 0;
  color: #d6e7ff;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.docsx-spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.docsx-spec-table th,
.docsx-spec-table td {
  border: 1px solid #2f4f74;
  padding: 8px;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.docsx-spec-table th {
  color: #d6e7ff;
  background: #122741;
  font-weight: 700;
}

.docsx-spec-table td {
  color: #c7d8ef;
  background: #0d2138;
}

.docsx-spec-empty {
  color: #9fb4d0;
  text-align: center;
}

.docsx-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #9fb4d0;
  border: 1px dashed #2f5a7d;
  border-radius: 10px;
}

@media (max-width: 1040px) {
  .docsx-grid,
  .docsx-left-stack,
  .docsx-mode-grid,
  .docsx-io-grid {
    grid-template-columns: 1fr;
  }

  .docsx-endpoint-list {
    max-height: none;
    overflow: visible;
  }

  .docsx-endpoints {
    max-height: none;
    overflow: visible;
  }

  .docsx-io-col {
    min-height: 360px;
  }

  .docsx-method-line {
    align-items: stretch;
  }

  .docsx-method-line #reqMethod {
    width: 100%;
  }

  .docsx-method-line .docsx-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .docsx-actions button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .docsx-head-row,
  .docsx-row,
  .docsx-auth-grid,
  .docsx-form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .docsx-actions button {
    width: 100%;
  }

  .docsx-card {
    padding: 12px;
  }

  .docsx-method-line .docsx-actions {
    grid-template-columns: 1fr;
  }

  .docsx-meta {
    grid-template-columns: 1fr;
  }

  .docsx-io-col {
    min-height: auto;
  }

  .docsx-filter-tabs {
    flex-wrap: wrap;
  }

  .docsx-filter-tabs .docsx-btn {
    flex: 1;
  }

  .docsx-endpoint-top {
    flex-wrap: wrap;
  }

  .docsx-modes {
    margin-left: 0;
  }

  .docsx-method-line {
    align-items: stretch;
  }

  .docsx-method-line #reqMethod,
  .docsx-method-line .docsx-actions {
    width: 100%;
  }

  .docsx-path-line {
    flex-wrap: wrap;
  }

  .docsx-path-line .docsx-mini-btn {
    width: 100%;
  }

  .docsx-io-head {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .docsx-io-actions {
    width: 100%;
  }

  .docsx-io-actions .docsx-mini-btn {
    flex: 1;
  }

  .docsx-pre-tools {
    top: 6px;
    right: 6px;
  }

  #reqBody,
  .docsx-response {
    min-height: 280px;
    flex: none;
    height: auto;
  }
}

.quick-amount-btn.danger {
  border-color: #7f1d1d;
  background: #3b1111;
  color: #fecaca;
}

.quick-amount-btn.danger:hover {
  border-color: #b91c1c;
  background: #5b1a1a;
}

.agent-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-field {
  display: grid;
  gap: 6px;
}

.modal-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.agent-modal-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f172a, #101b31);
  border-radius: 12px;
  padding: 10px 12px;
  color: #dbeafe;
}

.switch-meta {
  display: grid;
  gap: 2px;
}

.switch-meta strong {
  font-size: 12px;
  color: #dbeafe;
}

.switch-meta small {
  font-size: 11px;
  color: var(--muted);
}

.switch-ui {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-flex;
  align-items: center;
}

.switch-ui input[type='checkbox'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.switch-slider {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #1f2b45;
  border: 1px solid #334155;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #cbd5e1;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch-ui input[type='checkbox']:checked + .switch-slider {
  background: rgba(59, 130, 246, 0.35);
  border-color: #2563eb;
}

.switch-ui input[type='checkbox']:checked + .switch-slider::after {
  transform: translateX(18px);
  background: #e0ecff;
}

.modal-actions .primary-btn {
  height: 36px;
  border: 1px solid var(--primary-soft);
  border-radius: 8px;
  background: var(--primary);
  color: #eaf2ff;
  padding: 0 14px;
  font-weight: 700;
}

.modal-actions .primary-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th
{
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  line-height: 1.45;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 4px 10px;
  text-align: left;
  white-space: nowrap;
  line-height: 1.45;
}

div[data-page='agents'] .table-wrap-inner table th.th-right {
  text-align: right;
}

div[data-page='providers']  td {
  padding: 2px 10px;
  line-height: 1;
}

th {
  font-size: 12.5px;
  font-weight: 620;
  color: #c9d7ee;
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #13203a 0%, #111c31 100%);
  /* box-shadow: inset 0 -1px 0 rgba(58, 74, 102, 0.6), 0 2px 6px rgba(2, 8, 20, 0.18); */
}

td {
  font-size: 13px;
  font-weight: 520;
  color: #dbe7f8;
}

tbody tr:hover {
  background: rgba(148, 163, 184, 0.1);
}

tbody tr.agent-row.selected {
  background: rgba(56, 189, 248, 0.16);
}

tbody tr.agent-row.depth-0 { background: rgba(59, 130, 246, 0.06); }
tbody tr.agent-row.depth-1 { background: rgba(16, 185, 129, 0.08); }
tbody tr.agent-row.depth-2 { background: rgba(245, 158, 11, 0.09); }
tbody tr.agent-row.depth-3 { background: rgba(236, 72, 153, 0.09); }
tbody tr.agent-row.depth-4 { background: rgba(168, 85, 247, 0.1); }
tbody tr.agent-row.depth-5 { background: rgba(14, 165, 233, 0.1); }
tbody tr.agent-row.depth-6 { background: rgba(239, 68, 68, 0.11); }

th {
  background: #0f172a;
  color: #a9b8d0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

#dashboardStats.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.report-game-summary {
  margin: 10px 0 12px;
}

.report-game-summary .metric-card h3 {
  letter-spacing: 0.02em;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #111a2e, #0f172a);
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-card h3 {
  margin: 8px 0 0;
  font-size: 24px;
}

.metric-card-note {
    display: block;
    margin-top: 3px;
    color: #8fa2be;
    font-size: 11px;
    line-height: 1.35;
}

.metric-value.amount-balance {
  color: #8cc5ff;
}

.metric-value.amount-positive,
.cell-num.amount-positive {
  color: #5dd39e;
}

.metric-value.amount-negative,
.cell-num.amount-negative {
  color: #ff9a9a;
}

.metric-value.amount-neutral,
.cell-num.amount-neutral {
  color: #c6d4ea;
}

.metric-card--balance {
  background: linear-gradient(180deg, #13203a, #0f1b33);
}

.metric-card--money-in {
  background: linear-gradient(180deg, rgba(22, 73, 58, 0.92), rgba(15, 38, 33, 0.96));
}

.metric-card--money-out {
  background: linear-gradient(180deg, rgba(78, 32, 39, 0.9), rgba(45, 22, 27, 0.95));
}

.metric-card--money-net {
  background: linear-gradient(180deg, rgba(48, 56, 84, 0.92), rgba(25, 32, 51, 0.96));
}

.metric-card--count {
  background: linear-gradient(180deg, rgba(34, 53, 84, 0.92), rgba(20, 31, 51, 0.96));
}

.agent-code-label {
  color: #dbeafe;
  font-weight: 600;
}

.name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 180px;
}

.name-main {
  color: #e5edf9;
  font-weight: 600;
}

.row-actions {
  height: 24px;
  min-width: 24px;
  border: 1px solid #455673;
  border-radius: 7px;
  background: #202c40;
  color: #d7e1f3;
  cursor: pointer;
  line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.badge-reseller { background: #1f3a24; color: #86efac; border-color: #166534; }
.badge-operator { background: #3f1d24; color: #fda4af; border-color: #9f1239; }
.badge-affiliate { background: #2a2145; color: #c4b5fd; border-color: #6d28d9; }
.badge-seamless { background: #1f2937; color: #93c5fd; border-color: #1d4ed8; }
.badge-transfer { background: #3a2a16; color: #fcd34d; border-color: #b45309; }
.badge-live { background: #163026; color: #6ee7b7; border-color: #047857; }
.badge-stop { background: #3a1f1f; color: #fca5a5; border-color: #b91c1c; }
.badge-deleted { background: #374151; color: #d1d5db; border-color: #4b5563; }
.badge-allow { background: #153447; color: #7dd3fc; border-color: #0369a1; }
.badge-deny { background: #3b2235; color: #f9a8d4; border-color: #a21caf; }
.badge-charge { background: #153447; color: #7dd3fc; border-color: #0369a1; }
.badge-exchange { background: #3a2a16; color: #fcd34d; border-color: #b45309; }
.badge-grant { background: #2a2145; color: #c4b5fd; border-color: #6d28d9; }
.badge-flag-on { background: #132e24; color: #86efac; border-color: #15803d; }
.badge-flag-off { background: #2d3748; color: #cbd5e1; border-color: #475569; }
.badge-finished { background: #1f2937; color: #c4b5fd; border-color: #7c3aed; }
.badge-pending { background: #3b2f18; color: #fde68a; border-color: #b45309; }

.value-percent {
  color: #bae6fd;
  font-weight: 600;
}

.value-percent.strong {
  color: #fef08a;
  font-weight: 700;
}

.value-percent.rtp-good {
  color: #86efac;
}

.value-percent.rtp-mid {
  color: #fde68a;
}

.value-percent.rtp-low {
  color: #fca5a5;
}

.value-money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #bfdbfe;
  text-align: right;
}

.game-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: #dbeafe;
}

.game-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
}

.game-code-provider-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.game-code-banner-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: none;
  background: #0f172a;
}

.game-code-banner-fallback {
  width: 42px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.game-code-meta {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.game-code-meta strong {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.game-code-meta small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.remote-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.88), rgba(15, 23, 42, 0.92));
  padding: 12px;
}

.remote-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.remote-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.remote-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.remote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0 10px;
}

.remote-badge.is-ready {
  color: #fef3c7;
  background: rgba(217, 119, 6, 0.25);
  border-color: rgba(217, 119, 6, 0.48);
}

.remote-badge.is-running {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.32);
  border-color: rgba(59, 130, 246, 0.55);
}

.remote-badge.is-done {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.24);
  border-color: rgba(34, 197, 94, 0.48);
}

.remote-state-badge {
  min-width: 58px;
  height: 20px;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 0.01em;
}

.remote-call-badge {
  min-width: 62px;
  height: 20px;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 0.01em;
}

.remote-badge.is-applied {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(59, 130, 246, 0.54);
}

.remote-badge.is-curse {
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.24);
  border-color: rgba(248, 113, 113, 0.52);
}

.remote-row-state-bless td {
  background: rgba(22, 163, 74, 0.08);
}

.remote-row-state-curse td {
  background: rgba(220, 38, 38, 0.08);
}

.remote-row-state-applied td {
  background: rgba(37, 99, 235, 0.08);
}

.remote-rtp-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 62px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.remote-rtp-value.is-high {
  color: #fecaca;
}

.remote-rtp-value.is-low {
  color: #bbf7d0;
}

.remote-rtp-value.is-near {
  color: #bfdbfe;
}

.remote-rtp-target {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.remote-money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.remote-money-bet {
  color: #fecaca;
}

.remote-money-win {
  color: #bbf7d0;
}

.remote-players-pager {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.remote-pager-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #475569;
  background: rgba(15, 23, 42, 0.9);
  color: #dbe4f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.remote-pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.remote-pager-page-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.remote-pager-page-select {
  height: 26px;
  min-width: 96px;
  border: 1px solid #475569;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  padding: 0 8px;
  font-size: 11px;
}

.remote-pager-info {
  font-size: 11px;
  color: #94a3b8;
}

.remote-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.remote-mode-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.remote-actions-buttons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.remote-actions-buttons.is-hidden {
  display: none;
}

.remote-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #475569;
  background: rgba(15, 23, 42, 0.92);
  color: #dbe4f0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.remote-action-btn:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: #64748b;
  color: #f8fafc;
}

.remote-action-btn:active {
  transform: translateY(1px);
}

.remote-action-btn.is-bless {
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.remote-action-btn.is-bless:hover {
  background: rgba(20, 83, 45, 0.9);
  border-color: rgba(34, 197, 94, 0.7);
}

.remote-action-btn.is-curse {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.remote-action-btn.is-curse:hover {
  background: rgba(120, 53, 15, 0.88);
  border-color: rgba(245, 158, 11, 0.68);
}

.remote-flag-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.remote-flag-check input[type='radio'] {
  margin: 0;
  width: 14px;
  height: 14px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(2, 6, 23, 0.45);
  position: relative;
  outline: none;
}

.remote-flag-check.is-bless {
  background: rgba(22, 163, 74, 0.16);
  color: #dcfce7;
}

.remote-flag-check.is-curse {
  background: rgba(220, 38, 38, 0.16);
  color: #fee2e2;
}

.remote-flag-check.is-rtp {
  background: rgba(37, 99, 235, 0.16);
  color: #dbeafe;
}

.remote-flag-check.is-bless input[type='radio']:checked {
  background: rgba(34, 197, 94, 0.88);
  border-color: rgba(134, 239, 172, 0.95);
}

.remote-flag-check.is-curse input[type='radio']:checked {
  background: rgba(239, 68, 68, 0.88);
  border-color: rgba(254, 202, 202, 0.95);
}

.remote-flag-check.is-rtp input[type='radio']:checked {
  background: rgba(59, 130, 246, 0.9);
  border-color: rgba(147, 197, 253, 0.95);
}

.remote-flag-check input[type='radio']:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.remote-input-card {
  width: min(420px, calc(100vw - 24px));
}

.remote-input-field {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1324;
  color: #e2e8f0;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.remote-input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

@media (max-width: 1480px) {
  .remote-actions {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .remote-mode-group,
  .remote-actions-buttons {
    flex-wrap: wrap;
  }
}

div[data-page='users'] .users-usercode-emphasis {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(8),
div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(9),
div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(10),
div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(11),
div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(8),
div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(9),
div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(10),
div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(11) {
  text-align: right;
}

div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(6),
div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(6) {
  text-align: left;
}

div[data-page='users'] .users-rtp-mode-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

div[data-page='users'] .users-rtp-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  font-size: 11px;
  font-weight: 800;
}

div[data-page='users'] .users-menu-trigger {
  width: 30px;
  min-width: 30px;
  padding: 0;
}

div[data-page='users'] .users-menu-trigger i {
  font-size: 14px;
  line-height: 1;
}

div[data-page='users'] .users-rtp-edit-btn i {
  font-size: 12px;
  line-height: 1;
}

div[data-page='agent-transactions'] #txSearchBtn .btn-text {
  display: inline;
}

div[data-page='users'] .users-game-status {
  color: #94a3b8;
}

div[data-page='agent-transactions'] .table-wrap-inner .generic-table th:nth-child(6),
div[data-page='agent-transactions'] .table-wrap-inner .generic-table td:nth-child(6) {
  text-align: right;
}

div[data-page='user-transactions'] .table-wrap-inner .generic-table th:nth-child(7),
div[data-page='user-transactions'] .table-wrap-inner .generic-table td:nth-child(7) {
  text-align: right;
}

div[data-page='users'] .users-rtp-value,
div[data-page='users'] .users-rtp-target {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

div[data-page='users'] .users-rtp-value.is-high {
  color: #fecaca;
}

div[data-page='users'] .users-rtp-value.is-low {
  color: #bbf7d0;
}

div[data-page='users'] .users-rtp-value.is-near {
  color: #bfdbfe;
}

div[data-page='users'] .users-rtp-value.is-neutral {
  color: #cbd5e1;
}

div[data-page='users'] .users-rtp-target {
  color: #94a3b8;
}

div[data-page='users'] .users-seamless-notice {
  margin: 10px 0 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #d97706;
  background: linear-gradient(180deg, #4a2607 0%, #3a1f07 100%);
  color: #ffd9a8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}

div[data-page='users'] .users-seamless-notice-link {
  border: 0;
  background: transparent;
  color: #ffd166;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

div[data-page='users'] .users-seamless-modal-text {
  margin: 6px 0 0;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 13px;
}

.signed-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.amount-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.amount-subtime {
  color: #7b8ca8;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.value-minus {
  color: #fca5a5;
}

.value-plus {
  color: #86efac;
}

.inline-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    padding: 0px 8px;
    border-radius: 999px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-debit {
  background: #3a1f1f;
  border-color: #b91c1c;
  color: #fca5a5;
}

.tag-credit {
  background: #163026;
  border-color: #047857;
  color: #6ee7b7;
}

.tag-game-type {
  background: #1b2640;
  border-color: #3b82f6;
  color: #bfdbfe;
}

.inline-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #dbeafe;
  letter-spacing: 0.01em;
}

.pair-stack {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.pair-stack-right {
  justify-items: end;
  text-align: right;
}

.pair-top,
.pair-bottom {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
}

.pair-top {
  color: #dbeafe;
}

.pair-bottom {
  color: #94a3b8;
}

.pair-stack .value-minus {
  color: #fca5a5;
}

.pair-stack .value-plus {
  color: #86efac;
}

.value-end-strong {
  /* color: #fef3c7; */
  font-size: 13px;
  font-weight: 600;
}

.value-start-soft {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
}

.value-balance {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.pair-id .pair-top,
.pair-id .pair-bottom {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.th-stack {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.th-stack-right {
  justify-items: end;
  text-align: right;
}

.th-stack span {
  display: block;
}

.flag-round {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.flag-round-on {
  background: #153226;
  color: #86efac;
  border-color: #15803d;
}

.flag-round-off {
  background: #2d3748;
  color: #cbd5e1;
  border-color: #475569;
}

.flag-round-finished {
  background: #1f2937;
  color: #c4b5fd;
  border-color: #7c3aed;
}

.flag-round-pending {
  background: #3b2f18;
  color: #fde68a;
  border-color: #b45309;
}

.table-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 2px 0;
}

.modal-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.modal-actions-center {
  width: 100%;
  justify-content: center;
}

.table-mini-btn {
  border: 1px solid #4b5563;
  background: #1f2937;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

a.table-mini-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.table-mini-btn.danger {
  border-color: #8c2f42;
  background: #4b1f2b;
  color: #ffd5df;
}

.table-mini-btn.danger:hover {
  border-color: #b4445f;
  background: #5c2434;
}

.table-mini-btn-lg {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 22px;
}

.cell-actions {
  position: relative;
}

.cell-actions .table-row-actions {
  position: relative;
  z-index: 1;
}

.report-action-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.report-action-modal.hidden {
  display: none;
}

.report-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.64);
}

.report-action-dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  height: min(82vh, 760px);
  margin: 48px auto;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0f172a;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.report-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #334155;
  background: #111827;
}

.report-action-body {
  padding: 12px;
  overflow: auto;
}

.report-action-body.inquiry-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  overflow: hidden;
}

.inquiry-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.inquiry-panels > div {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
}

.report-detail-frame {
  width: 100%;
  height: 99%;
  min-height: 560px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #020617;
}

.report-detail-empty {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.report-help-text {
  color: #cbd5e1;
  font-size: 12px;
  margin: 0 0 10px;
}

.report-note-label {
  margin: 0;
}

.report-shortcut-wrap {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.report-shortcut-wrap span {
  color: #93c5fd;
  font-size: 11px;
}

.report-shortcut-wrap a {
  color: #bfdbfe;
  font-size: 12px;
  text-decoration: underline;
  word-break: break-all;
}

.report-inquiry-text {
  width: 100%;
  min-height: 100%;
  resize: vertical;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #020617;
  color: #e2e8f0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.report-inquiry-note {
  width: 100%;
  min-height: 100%;
  resize: vertical;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #020617;
  color: #e2e8f0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

.row-highlight {
  box-shadow: inset 0 0 0 1px #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.tag-game-free {
  background: #1f2937;
  border-color: #06b6d4;
  color: #67e8f9;
}

.tag-game-base {
  background: #3b2f18;
  border-color: #f59e0b;
  color: #fde68a;
}

.is-hidden {
  display: none !important;
}

.status-inline-check {
  gap: 6px;
  padding: 0 2px;
  white-space: nowrap;
}

.status-inline-check > span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.notice-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.notice-urgent-field {
    align-self: center;
    padding-bottom: 7px;
}
.notice-row-actions,
.popup-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-stack {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.date-stack small {
  color: #8ea5c6;
  font-size: 11px;
}

/* Light theme final overrides for late dark-mode rules */

@media (max-width: 1080px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-top-winners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 236px;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .admin-layout.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-layout.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 1100;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-area {
    padding: 14px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .agent-summary {
    flex: 1;
    min-width: 0;
  }

  div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(6),
  div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(6) {
    min-width: 350px;
    width: 350px;
    white-space: nowrap;
  }

  div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(13),
  div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(13) {
    min-width: 190px;
    width: 190px;
    white-space: nowrap;
  }

  div[data-page='users'] .provider-code-meta small {
    white-space: nowrap;
  }

  div[data-page='users'] .users-rtp-mode-group {
    flex-wrap: nowrap;
    gap: 3px;
    white-space: nowrap;
  }

  div[data-page='users'] .users-rtp-mode-group .remote-flag-check,
  div[data-page='users'] .users-rtp-mode-group .remote-action-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .dashboard-stats-head {
    margin-top: 0;
  }

  .dashboard-top-winners {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .winner-group {
    padding: 9px;
  }

  .winner-group h4 {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .winner-group ol,
  .winner-empty {
    min-height: 0;
  }

  .winner-group li {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 11px;
  }

  .winner-code {
    gap: 6px;
    min-width: 0;
  }

  .winner-count-badge {
    min-width: 20px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
  }

  .dashboard-panel {
    padding: 10px;
  }

  .dashboard-panel-head {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }

  .dashboard-panel-head .link-btn,
  .dashboard-panel-head .table-mini-btn {
    margin-left: auto;
  }

  .dashboard-table-wrap {
    overflow-x: auto;
  }

  .dashboard-mini-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-mini-table th,
  .dashboard-mini-table td {
    padding: 8px;
    font-size: 12px;
  }

  .dashboard-mini-table .th-no,
  .dashboard-mini-table .cell-no {
    width: 56px;
  }

  .dashboard-mini-table .th-date,
  .dashboard-mini-table .cell-date {
    width: 120px;
    white-space: nowrap;
  }

  .agent-parent-summary,
  .agent-modal-grid {
    grid-template-columns: 1fr;
  }

  .agent-modal-switches {
    grid-template-columns: 1fr;
  }

  .topbar-right {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  .agent-summary {
    width: 100%;
  }

  .agent-meta {
    width: 100%;
    min-width: 0;
    height: auto;
    gap: 4px;
  }

  .agent-balance-row {
    gap: 6px 10px;
    font-size: 11px;
  }

  .topbar-right .logout-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 10px;
    padding: 12px;
  }

  .ui-messagebox {
    padding: 10px;
    place-items: start center;
  }

  .ui-messagebox-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 10px;
    padding: 12px;
  }

  .ui-messagebox-actions,
  .modal-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .toolbar button {
    min-width: 70px;
  }

  .ui-messagebox-actions button,
  .modal-actions button,
  .modal-actions .primary-btn,
  .modal-actions .ghost-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .settings-kv {
    gap: 6px;
    padding-top: 6px;
  }

  .settings-kv span {
    font-size: 11px;
    white-space: nowrap;
  }

  .settings-kv b {
    margin-left: auto;
    font-size: 11px;
    max-width: 100%;
  }

  .report-action-dialog {
    width: calc(100vw - 20px);
    height: auto;
    min-height: 320px;
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
  }

  .report-action-body.inquiry-body {
    overflow: auto;
  }

  .inquiry-panels {
    grid-template-columns: 1fr;
  }

  div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(6),
  div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(6) {
    min-width: 340px;
    width: 340px;
    white-space: nowrap;
  }

  div[data-page='users'] .table-wrap-inner .generic-table th:nth-child(13),
  div[data-page='users'] .table-wrap-inner .generic-table td:nth-child(13) {
    min-width: 180px;
    width: 180px;
    white-space: nowrap;
  }

  div[data-page='users'] .users-rtp-mode-group {
    flex-wrap: nowrap;
    gap: 3px;
    white-space: nowrap;
  }

  div[data-page='users'] .users-rtp-mode-group .remote-flag-check {
    flex: 0 0 auto;
    padding: 0 6px;
  }

  div[data-page='users'] .users-rtp-mode-group .remote-action-btn {
    flex: 0 0 auto;
    padding: 0 7px;
  }

  div[data-page='users'] .users-rtp-mode-group {
    gap: 3px;
  }

  div[data-page='users'] .users-rtp-mode-group .remote-flag-check {
    padding: 0 6px;
  }

  div[data-page='users'] .users-rtp-mode-text,
  div[data-page='users'] .users-rtp-edit-text,
  div[data-page='agent-transactions'] #txSearchBtn .btn-text {
    display: none;
  }

  div[data-page='users'] .users-rtp-edit-btn,
  div[data-page='agent-transactions'] #txSearchBtn {
    min-width: 30px;
    width: 30px;
    padding: 0;
  }
}


