:root {
  --brand-primary: #2d6cdf;
  --brand-secondary: #5b7cfa;
  --brand-dark: #151c2b;
  --brand-muted: #7a8599;
  --surface-light: #f4f6fb;
  --surface-dark: #0f172a;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Staff chrome — overridden by [data-brand] (domain auto-theme) */
  --vrx-chrome: #ff141f;
  --vrx-chrome-dark: #c62828;
  --vrx-chrome-text: #ffffff;
  --vrx-chrome-soft: rgba(255, 255, 255, 0.2);
  --vrx-chrome-hover: rgba(0, 0, 0, 0.12);
  --vrx-table-head-bg: #334155;
  --vrx-table-head-bg-2: #1e293b;
  --vrx-table-head-text: #f8fafc;
  --vrx-table-head-border: #475569;
  --vrx-table-accent: var(--vrx-chrome);
  --vrx-row-hover: #f1f5f9;
  --brand-login-bg: url("/images/login-bg.jpg");
}

/* Domain themes (from connected brand repos .navbar-bet99) */
[data-brand="royal777"] {
  --vrx-chrome: #ff141f;
  --vrx-chrome-dark: #c62828;
  --vrx-chrome-text: #ffffff;
  --vrx-table-accent: #ff141f;
  --brand-login-bg: url("/images/login-bg.jpg");
}

[data-brand="lakshy21"] {
  --vrx-chrome: #17423c;
  --vrx-chrome-dark: #0f2e2a;
  --vrx-chrome-text: #ffffff;
  --vrx-table-accent: #2a6b5f;
  --brand-login-bg: url("/images/brands/lakshy21/login-bg.jpg");
}

[data-brand="bethub24"] {
  --vrx-chrome: #113a7c;
  --vrx-chrome-dark: #0c2a5c;
  --vrx-chrome-text: #ffffff;
  --vrx-table-accent: #ff4b91;
  --brand-login-bg: url("/images/brands/bethub24/login-bg.png");
}

[data-brand="bet99ex"] {
  --vrx-chrome: #ffc000;
  --vrx-chrome-dark: #e0a800;
  --vrx-chrome-text: #1a1a1a;
  --vrx-chrome-soft: rgba(0, 0, 0, 0.12);
  --vrx-chrome-hover: rgba(0, 0, 0, 0.1);
  --vrx-table-accent: #ffc000;
  --brand-login-bg: url("/images/brands/bet99ex/login-bg.png");
}

[data-brand="bet29"] {
  --vrx-chrome: #548cff;
  --vrx-chrome-dark: #3a6fd9;
  --vrx-chrome-text: #ffffff;
  --vrx-table-accent: #548cff;
  --brand-login-bg: url("/images/brands/bet29/login-bg.jpg");
}

[data-brand="greenexh"] {
  --vrx-chrome: #126e51;
  --vrx-chrome-dark: #0d5240;
  --vrx-chrome-text: #ffffff;
  --vrx-table-accent: #18a078;
  --brand-login-bg: url("/images/brands/greenexh/login-bg.jpg");
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
}

.auth-page:not(.client-login-page):not(.client-royal-login):not(.staff-royal-login) {
  background: linear-gradient(135deg, #eef2ff 0%, #f7f9ff 50%, #eef7ff 100%);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.1fr);
  gap: 0;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-width: 880px;
  width: 100%;
}

.auth-card-left {
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-left h2 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.auth-card-left p {
  color: rgba(255, 255, 255, 0.85);
}

.auth-card-left ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.auth-card-left li {
  margin-bottom: 0.5rem;
}

.auth-card-right {
  padding: 2.5rem;
}

.auth-card-right .form-control,
.admin-form .form-control,
.admin-form .form-select {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.9rem;
}

.auth-card-right .form-control:focus,
.admin-form .form-control:focus,
.admin-form .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}

.auth-card-right .btn {
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
}

.auth-card-right .btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.client-auth-page {
  background: linear-gradient(180deg, #142d61 0%, #0d2a5b 100%);
}

.client-login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  gap: 1.5rem;
  background: url("/images/login-bg.jpg") center/cover no-repeat;
}

.client-login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1.75rem;
  /*overflow: hidden;*/
  background: #13346f;
  box-shadow: 0 30px 70px rgba(5, 15, 40, 0.45);
  position: absolute;
}

.client-logo-badge {
  position: absolute;
  right: 1.5rem;
  top: -2.5rem;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  color: #0f2f6b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid #ff4d91;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(10, 20, 40, 0.35);
}

.client-logo-badge img{
  width: 4.9rem;
}

.client-logo-badge strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.client-login-body {
  padding: 3.25rem 2rem 2rem;
  color: #fff;
}

.client-login-title {
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.client-login-form .form-control,
.client-login-form .input-group-text,
.client-login-form .btn {
  border-radius: 999px;
}

.client-login-form .form-control {
  border: 0;
  padding: 0.85rem 1.1rem;
  background: #fff;
  color: #0f172a;
}

.client-login-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.client-login-form .input-group .btn {
  border: 0;
  color: #1e3a8a;
  background: #e2e8f0;
  padding: 0 1rem;
}

.client-captcha-group .input-group-text {
  background: #f8fafc;
  color: #1e3a8a;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.2em;
  min-width: 4.75rem;
  justify-content: center;
}

.client-login-btn {
  background: linear-gradient(90deg, #cf1a74 0%, #f23c93 100%);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.client-login-btn:hover {
  background: linear-gradient(90deg, #ba1467 0%, #e73388 100%);
  color: #fff;
}

.client-login-alt {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 1);
}

.client-login-alt a:hover {
  color: #000;
}

.client-login-footer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: fixed;
  bottom: 20px;
}

.client-login-footer-brand {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ---- Royal777 original login (default; works without brand JS) ---- */
.client-royal-login {
  background: url("/images/login-bg.jpg") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}

.client-royal-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.staff-royal-login {
  background: url("/images/login-bg-staff.jpg") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}

.staff-royal-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.client-royal-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
}

.client-royal-logo img {
  max-width: 75%;
  height: auto;
}

.client-royal-card {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.client-royal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.client-royal-field {
  position: relative;
}

.client-royal-field > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.client-royal-field .form-control {
  padding-left: 2.5rem;
  border-radius: 0.6rem;
}

.client-royal-field-password .form-control {
  padding-left: 0.9rem;
  padding-right: 2.75rem;
}

.client-royal-field-password > i {
  display: none !important;
}

.client-royal-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: #475569;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.client-royal-password-toggle:hover,
.client-royal-password-toggle:focus-visible {
  color: #1e293b;
  background: rgba(148, 163, 184, 0.22);
  outline: none;
}

.client-royal-password-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.client-royal-password-toggle .client-royal-password-icon.is-hide,
.client-royal-password-toggle.is-visible .client-royal-password-icon.is-show {
  display: none;
}

.client-royal-password-toggle.is-visible .client-royal-password-icon.is-hide {
  display: block;
}

.client-royal-password-toggle i {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  color: inherit !important;
  font-size: 1.15rem !important;
  pointer-events: none;
}

.client-royal-captcha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.captcha-badge {
  background: #2f3b3b;
  color: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}

.client-royal-login-btn {
  background: #e53935;
  color: #fff;
  font-weight: 700;
  border-radius: 0.6rem;
  border: 0;
}

.client-royal-login-btn:hover {
  background: #d32f2f;
  color: #fff;
}

.client-royal-footer-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #1f2937;
  background: #f8fafc;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.client-royal-powered {
  background: #f7b500;
  color: #1f2937;
  padding: 0.3rem 1rem;
  font-weight: 400;
  width: 100%;
  text-align: center;
  bottom: 0px;
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.client-royal-powered span {
  font-weight: 700;
}

.client-royal-powered-logo {
  display: inline-block;
  height: 1.15rem;
  width: auto;
  max-width: 6.5rem;
  vertical-align: middle;
  object-fit: contain;
  /* White wordmark → dark on yellow royal bar */
  filter: brightness(0);
}

/* Telegram support chat — all brands except lakshy21 (mounted via JS). */
.login-telegram-link {
  position: fixed;
  right: 1rem;
  bottom: 3.25rem;
  z-index: 40;
  width: 5.25rem;
  height: 5.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #229ed9;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-telegram-link:hover,
.login-telegram-link:focus-visible {
  background: #1b8bc0;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.34);
  outline: none;
}

.login-telegram-link .fa {
  font-size: 2.55rem;
  line-height: 1;
}

/* WhatsApp support chat — bet29.in */
.login-telegram-link.login-whatsapp-link {
  background: #25d366;
}

.login-telegram-link.login-whatsapp-link:hover,
.login-telegram-link.login-whatsapp-link:focus-visible {
  background: #1ebe57;
}

html[data-brand="lakshy21"] .login-telegram-link,
body[data-brand="lakshy21"] .login-telegram-link,
html[data-brand="royal777"] .login-telegram-link,
body[data-brand="royal777"] .login-telegram-link,
html[data-brand="bethub24"] .login-telegram-link,
body[data-brand="bethub24"] .login-telegram-link,
html[data-brand="greenexh"] .login-telegram-link,
body[data-brand="greenexh"] .login-telegram-link,
html[data-brand="bet99ex"] .login-telegram-link,
body[data-brand="bet99ex"] .login-telegram-link {
  display: none !important;
}

/* Skin hooks — hidden on royal (default) */
.client-login-badge,
.client-login-card-logo,
.client-login-heading {
  display: none;
}

/* Non-royal: brand login background via [data-brand] --brand-login-bg */
[data-client-skin="classic"].client-royal-login,
[data-client-skin="classic"].staff-royal-login,
[data-client-skin="bethub"].client-royal-login,
[data-client-skin="bethub"].staff-royal-login {
  background-image: var(--brand-login-bg) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  font-family: "Montserrat", "Open Sans", sans-serif;
}

/* Classic skin (lakshy21 / bet99ex / bet29) — greenexh uses dedicated skin */
[data-client-skin="classic"] .client-royal-logo,
[data-client-skin="classic"] .staff-royal-logo-in-card,
[data-client-skin="classic"] .client-royal-logo-above {
  display: none !important;
}

[data-client-skin="classic"] .client-login-card-logo {
  display: block;
  margin-bottom: 0.75rem;
}

[data-client-skin="classic"] .client-login-card-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

[data-client-skin="classic"] .client-royal-card {
  background: #fff !important;
  border: 0;
  border-radius: 0.35rem;
  margin-top: 8vh;
  max-width: 400px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  padding: 1rem 1rem 1.35rem;
}

[data-client-skin="classic"] .client-royal-field > i {
  left: auto;
  right: 0.85rem;
  color: var(--brand-primary);
}

[data-client-skin="classic"] .client-royal-field .form-control {
  padding-left: 0.85rem;
  padding-right: 2.4rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  height: 42px;
  border: 1px solid var(--brand-primary);
  border-radius: 3px;
  color: #000;
  background: #fff;
}

[data-client-skin="classic"] .client-royal-password-toggle {
  right: 0.35rem;
  color: var(--brand-primary);
}

[data-client-skin="classic"] .client-royal-password-toggle:hover,
[data-client-skin="classic"] .client-royal-password-toggle:focus-visible {
  color: var(--brand-primary-dark, var(--brand-primary));
  background: rgba(0, 0, 0, 0.06);
}

[data-client-skin="classic"] .client-royal-field .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: none;
}

[data-client-skin="classic"] .client-royal-login-btn {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border-radius: 3px;
  text-transform: uppercase;
  min-height: 50px;
  font-size: 1.05rem;
}

[data-client-skin="classic"] .client-royal-footer-text {
  display: none;
}

[data-client-skin="classic"] .client-royal-powered {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

[data-client-skin="classic"] .client-royal-powered-logo {
  /* Keep white wordmark on dark brand bars */
  filter: none;
}

/* Login switcher ("Are you a client/admin?") — contrast per skin */
.staff-login-client-link {
  font-size: 0.95rem;
}

.staff-login-client-label {
  color: rgba(255, 255, 255, 0.92);
}

.staff-login-client-anchor {
  color: #93c5fd;
  text-decoration: underline;
}

.staff-login-client-anchor:hover {
  color: #bfdbfe;
}

/* Royal777 client login uses a white card — dark text + brand link */
[data-client-skin="royal"].client-royal-login .staff-login-client-label {
  color: #334155;
}

[data-client-skin="royal"].client-royal-login .staff-login-client-anchor {
  color: var(--brand-primary, #ff141f);
  font-weight: 700;
}

[data-client-skin="royal"].client-royal-login .staff-login-client-anchor:hover {
  color: var(--brand-primary-dark, #c62828);
}

[data-client-skin="classic"] .staff-login-client-label {
  color: #475569;
}

[data-client-skin="classic"] .staff-login-client-anchor {
  color: var(--brand-primary, #17423c);
  font-weight: 700;
}

[data-client-skin="classic"] .staff-login-client-anchor:hover {
  color: var(--brand-primary-dark, #0f2e2a);
}

/* Bethub skin — badge anchored to the form card */
[data-client-skin="bethub"].client-royal-login,
[data-client-skin="bethub"].staff-royal-login {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

[data-client-skin="bethub"] .client-royal-wrapper {
  justify-content: flex-end;
  padding-bottom: 10vh;
  padding-top: 18vh;
}

[data-client-skin="bethub"] .client-royal-logo,
[data-client-skin="bethub"] .staff-royal-logo-in-card,
[data-client-skin="bethub"] .client-royal-logo-above,
[data-client-skin="bethub"] .client-login-card-logo {
  display: none !important;
}

[data-client-skin="bethub"] .client-royal-card {
  background: var(--brand-primary) !important;
  border-radius: 45px;
  border-top: 3px solid var(--brand-accent);
  max-width: 420px;
  padding: 2.75rem 1.25rem 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
  overflow: visible;
}

[data-client-skin="bethub"] .client-login-badge {
  display: flex;
  position: absolute;
  right: 18px;
  top: -42px;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-accent);
  box-shadow: 0 7px 9px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 3;
}

[data-client-skin="bethub"] .client-login-badge img {
  width: 71px;
  height: auto;
  object-fit: contain;
}

[data-client-skin="bethub"] .client-login-heading {
  display: block;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

[data-client-skin="bethub"] .client-royal-field > i {
  left: auto;
  right: 1.1rem;
  color: var(--brand-accent);
  font-size: 1.15rem;
}

[data-client-skin="bethub"] .client-royal-field .form-control {
  height: 50px;
  background: transparent;
  border-radius: 30px;
  border: 2px solid var(--brand-accent);
  color: #fff;
  font-size: 1.05rem;
  padding-left: 1.15rem;
  padding-right: 2.75rem;
}

[data-client-skin="bethub"] .client-royal-password-toggle {
  right: 0.55rem;
  color: var(--brand-accent);
}

[data-client-skin="bethub"] .client-royal-password-toggle:hover,
[data-client-skin="bethub"] .client-royal-password-toggle:focus-visible {
  color: var(--brand-highlight, #fff);
  background: rgba(255, 255, 255, 0.12);
}

[data-client-skin="bethub"] .client-royal-field .form-control::placeholder {
  color: #b8c4d8;
}

[data-client-skin="bethub"] .client-royal-field .form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--brand-highlight, var(--brand-accent));
  color: #fff;
  box-shadow: none;
}

[data-client-skin="bethub"] .client-royal-login-btn {
  background: var(--brand-accent);
  color: #fff;
  border-radius: 30px;
  font-size: 1.35rem;
  min-height: 50px;
}

[data-client-skin="bethub"] .client-royal-footer-text,
[data-client-skin="bethub"] .client-royal-powered {
  display: none;
}

[data-client-skin="bethub"] .staff-login-client-label {
  color: rgba(255, 255, 255, 0.9);
}

[data-client-skin="bethub"] .staff-login-client-anchor {
  color: var(--brand-highlight, #ffea20);
  font-weight: 700;
  text-decoration: underline;
}

[data-client-skin="bethub"] .staff-login-client-anchor:hover {
  color: #fff59a;
}

/* Bethub login alerts — keep readable contrast on dark card */
[data-client-skin="bethub"] .alert {
  border: 0;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
}
[data-client-skin="bethub"] .alert-success {
  background: #d1fae5;
  color: #065f46 !important;
  border: 1px solid #6ee7b7;
}
[data-client-skin="bethub"] .alert-danger {
  background: #fee2e2;
  color: #991b1b !important;
  border: 1px solid #fca5a5;
}

/* ------------------------------------------------------------------ */
/* Greenexh skin — ref hero band (sports/casino) + green bottom       */
/* Card placement like bethub; no box-shadow; large corner badge      */
/* Scoped to data-client-skin="greenexh" (greenexh.com only)          */
/* ------------------------------------------------------------------ */
.client-login-panel-tag {
  display: none;
}

[data-client-skin="greenexh"].client-royal-login,
[data-client-skin="greenexh"].staff-royal-login {
  --gx-green: #117050;
  --gx-green-deep: #0c4734;
  --gx-orange: #ff6601;
  --gx-orange-hot: #f66709;
  --gx-input: #e7f0ff;
  background-color: var(--gx-green) !important;
  background-image: none !important;
  font-family: "Montserrat", "Open Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Kill royal/staff dim overlay so the hero reads clearly */
[data-client-skin="greenexh"].staff-royal-login::after,
[data-client-skin="greenexh"].client-royal-login::after {
  display: none !important;
  content: none !important;
}

/* Top hero band — sports (desktop) / casino+sports (mobile) */
[data-client-skin="greenexh"].client-royal-login::before,
[data-client-skin="greenexh"].staff-royal-login::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  min-height: 300px;
  background-image: var(--brand-login-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Desktop: card overlaps the hero/green split (not pinned to bottom) */
[data-client-skin="greenexh"] .client-royal-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8vh 1.5rem 4.5rem !important;
  gap: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

[data-client-skin="greenexh"] .client-royal-logo,
[data-client-skin="greenexh"] .staff-royal-logo-in-card,
[data-client-skin="greenexh"] .client-royal-logo-above,
[data-client-skin="greenexh"] .client-login-card-logo,
[data-client-skin="greenexh"] .client-royal-footer-text {
  display: none !important;
}

/* Floating card — top orange rim ONLY (no vertical side borders); no shadow */
[data-client-skin="greenexh"] .client-royal-card,
[data-client-skin="greenexh"] .staff-royal-card {
  background: var(--gx-green) !important;
  /* Override inline style="border-radius: 0px" / box-shadow on staff login.html */
  border: 0 !important;
  border-radius: 42px 42px 6px 6px !important;
  border-top: 3px solid var(--gx-orange) !important;
  max-width: 415px;
  width: min(415px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.2rem !important;
  box-shadow: none !important;
  filter: none !important;
  color: #fff;
  overflow: visible !important;
  position: relative;
  box-sizing: border-box;
  transform: none;
}

/* Badge — top-right on the rounded corner */
[data-client-skin="greenexh"] .client-login-badge {
  display: flex !important;
  position: absolute;
  right: 14px;
  top: -38px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
  box-shadow: 0 7px 9px #0000004d !important;
}

[data-client-skin="greenexh"] .client-login-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-client-skin="greenexh"] .client-login-heading {
  display: block;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0.2rem 0 0.55rem;
  font-size: 1.55rem;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

/* ADMIN PANEL — rectangular orange bar */
[data-client-skin="greenexh"] .client-login-panel-tag:not(.d-none):not([hidden]) {
  display: block;
  background: var(--gx-orange);
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  padding: 0.1rem 0.6rem;
  border-radius: 0.25rem;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

[data-client-skin="greenexh"] .client-royal-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

[data-client-skin="greenexh"] .client-royal-field {
  margin-bottom: 0;
  position: relative;
}

[data-client-skin="greenexh"] .client-royal-field > i {
  display: none !important;
}

[data-client-skin="greenexh"] .client-royal-field .form-control {
  height: 45px;
  background: #fff !important;
  border: 1.5px solid var(--gx-orange) !important;
  border-radius: 999px;
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  padding: 0 0.95rem;
  box-shadow: none !important;
}

[data-client-skin="greenexh"] .client-royal-field-password .form-control {
  padding-right: 2.4rem;
}

[data-client-skin="greenexh"] .client-royal-field .form-control::placeholder {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: none;
  opacity: 1;
}

[data-client-skin="greenexh"] .client-royal-field .form-control:focus {
  background: #fff !important;
  border-color: var(--gx-orange-hot) !important;
  color: #111;
  box-shadow: 0 0 0 2px rgba(255, 102, 1, 0.18) !important;
  outline: none;
}

[data-client-skin="greenexh"] .client-royal-password-toggle {
  right: 0.4rem;
  color: #6b7280;
  width: 2rem;
  height: 2rem;
}

[data-client-skin="greenexh"] .client-royal-password-toggle:hover,
[data-client-skin="greenexh"] .client-royal-password-toggle:focus-visible {
  color: var(--gx-orange);
  background: rgba(0, 0, 0, 0.05);
}

[data-client-skin="greenexh"] .client-royal-login-btn {
  background: var(--gx-orange) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px;
  font-size: 20px;
  min-height: 40px;
  height: 45px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
  box-shadow: none !important;
  font-weight: 500;
}

[data-client-skin="greenexh"] .client-royal-login-btn:hover:not(:disabled),
[data-client-skin="greenexh"] .client-royal-login-btn:focus-visible {
  background: var(--gx-orange-hot) !important;
  color: #fff !important;
}

[data-client-skin="greenexh"] .client-royal-login-btn:disabled {
  opacity: 0.75;
}

[data-client-skin="greenexh"] .staff-login-client-link {
  display: none !important;
}

[data-client-skin="greenexh"] .client-royal-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #10664a;
  color: #fff;
  font-weight: 400;
  font-size: 0.92rem;
  padding: 0.4rem 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  text-align: center;
}

[data-client-skin="greenexh"] .client-royal-powered span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-client-skin="greenexh"] .client-royal-powered-logo {
  /* White wordmark on green bar */
  filter: none;
  height: 1.05rem;
}

[data-client-skin="greenexh"] .alert {
  border: 0;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  margin-bottom: 0.85rem;
}

[data-client-skin="greenexh"] .alert-success {
  background: #d1fae5;
  color: #065f46 !important;
}

[data-client-skin="greenexh"] .alert-danger {
  background: #fee2e2;
  color: #991b1b !important;
}

/* Mobile — full-bleed green sheet under hero (match greenprox) */
@media (max-width: 767.98px) {
  [data-client-skin="greenexh"].client-royal-login,
  [data-client-skin="greenexh"].staff-royal-login {
    --gx-hero-h: clamp(200px, 36vh, 300px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  [data-client-skin="greenexh"].client-royal-login::before,
  [data-client-skin="greenexh"].staff-royal-login::before {
    height: 48% !important;
    min-height: 0;
    max-height: none;
    background-image: var(--brand-login-bg-mobile, var(--brand-login-bg));
    background-position: center top;
    background-size: cover;
  }

  [data-client-skin="greenexh"] .client-royal-wrapper {
    justify-content: flex-start;
    align-items: stretch;
    /* Green sheet starts just under the hero (slight overlap for orange rim) */
    padding: calc(var(--gx-hero-h) - 55px) 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    min-height: 100vh;
    min-height: 100dvh;
    gap: 0 !important;
  }

  [data-client-skin="greenexh"] .client-royal-card,
  [data-client-skin="greenexh"] .staff-royal-card {
    max-width: none;
    width: calc(100% - 24px);
    margin: 0 auto;
    border: 0 !important;
    border-radius: 36px 36px 0 0 !important;
    border-top: 3px solid var(--gx-orange) !important;
    padding: 1.65rem 1.25rem 1.25rem !important;
    box-shadow: none !important;
    /* Grow to fill remaining viewport — kills the empty green void */
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  [data-client-skin="greenexh"] .client-login-badge {
    right: 14px;
    top: -40px;
    width: 84px;
    height: 84px;
  }

  [data-client-skin="greenexh"] .client-login-heading {
    font-size: 1.55rem;
    margin: 0.35rem 0 0.75rem;
    letter-spacing: 0.06em;
  }

  [data-client-skin="greenexh"] .client-login-panel-tag:not(.d-none):not([hidden]) {
    border-radius: 0.3rem;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 0.75rem;
  }

  [data-client-skin="greenexh"] .client-royal-form {
    gap: 0.85rem;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }

  [data-client-skin="greenexh"] .client-royal-field .form-control {
    height: 44px;
    font-size: 0.9rem;
    border: 1.5px solid var(--gx-orange) !important;
  }

  [data-client-skin="greenexh"] .client-royal-login-btn {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 1.05rem !important;
    margin-top: 0.2rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Powered-by docks at bottom of the green sheet (not a fixed bar) */
  [data-client-skin="greenexh"] .client-royal-powered {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 0;
    background: transparent;
    padding: 0.85rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.88rem;
    flex: 0 0 auto;
  }

  /* Keep reCAPTCHA badge from colliding with the footer on short phones */
  [data-client-skin="greenexh"].client-royal-login .grecaptcha-badge,
  [data-client-skin="greenexh"].staff-royal-login .grecaptcha-badge {
    bottom: 56px !important;
    transform: scale(0.85);
    transform-origin: right bottom;
  }
}

@media (min-width: 768px) {
  [data-client-skin="greenexh"].client-royal-login::before,
  [data-client-skin="greenexh"].staff-royal-login::before {
    height: 60%;
    min-height: 280px;
    /* Force sports desktop hero — never casino composite */
    background-image: var(--brand-login-bg);
  }

  [data-client-skin="greenexh"] .client-royal-wrapper {
    justify-content: center;
    padding: 7vh 1.5rem 3.5rem !important;
  }

  [data-client-skin="greenexh"] .client-royal-card,
  [data-client-skin="greenexh"] .staff-royal-card {
    margin-top: 0;
    border: 0 !important;
    border-top: 3px solid var(--gx-orange) !important;
  }

  [data-client-skin="greenexh"] .client-login-badge {
    right: 14px;
    top: -40px;
    width: 90px;
    height: 90px;
  }

  [data-client-skin="greenexh"] .client-login-heading {
    font-size: 1.65rem;
  }
}


.card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

#captcha-code {
  font-size: 1rem;
  letter-spacing: 0.2rem;
  border-radius: 0px;
  font-weight: 700;
  min-width: 4.75rem;
  justify-content: center;
  background: #344443;
  color: white;
}

.captcha-group .form-control {
  border-right: 0;
  border-radius: 0.75rem 0 0 0.75rem;
}

.captcha-group .input-group-text {
  border-left: 0;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.6rem 0.9rem;
}

.admin-page {
  background: var(--surface-light);
  overscroll-behavior-y: auto;
}

html:has(body.admin-page) {
  overscroll-behavior-y: auto;
}

#video-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

#staff-sidebar {
  min-width: 250px;
  max-width: 280px;
  background: var(--vrx-chrome);
  color: var(--vrx-chrome-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.staff-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.staff-sidebar-brand {
  flex-shrink: 0;
  overflow: visible;
  padding: 0.15rem 0.1rem 0.35rem;
}

.staff-sidebar-logo-plate {
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.staff-sidebar-logo {
  display: block;
  width: 100%;
  max-width: 190px;
  max-height: 42px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.staff-sidebar-role {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vrx-chrome-text);
  opacity: 0.95;
}

.sidebar-overlay {
  display: none;
}

#staff-sidebar .nav-link {
  color: var(--vrx-chrome-text);
  border-radius: 0.35rem;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

#staff-sidebar .nav-link:hover,
#staff-sidebar .nav-link:focus {
  background: var(--vrx-chrome-hover);
  color: var(--vrx-chrome-text);
}

#staff-sidebar .nav-link.text-white-50 {
  color: var(--vrx-chrome-text);
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
}

.staff-nav-icon {
  width: 1.15rem;
  text-align: center;
  opacity: 0.95;
  flex-shrink: 0;
}

.staff-nav-caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

.staff-nav-sub {
  border-left: 2px solid color-mix(in srgb, var(--vrx-chrome-text) 25%, transparent);
  padding-left: 0.35rem;
  margin-bottom: 0.35rem;
}

.dashboard-section-title {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

.dashboard-home {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem 0.8rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eef2f7;
}

.dashboard-panel-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.2;
}

.dashboard-panel-sub {
  margin: 0;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.25;
}

.dashboard-panel-limits {
  padding-top: 0.65rem;
}

.dashboard-panel-limits .dashboard-panel-head {
  border-bottom-color: color-mix(in srgb, var(--vrx-chrome, #1f2937) 18%, #e2e8f0);
}

.dashboard-limit-banner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0;
  padding: 0.55rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--vrx-chrome, #1f2937) 35%, #cbd5e1);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--vrx-chrome, #1f2937) 92%, #000) 0%,
    color-mix(in srgb, var(--vrx-chrome, #1f2937) 78%, #334155) 100%
  );
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.dashboard-limit-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.dashboard-limit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.dashboard-limit-label .fa {
  font-size: 0.7rem;
  opacity: 0.95;
}

.dashboard-limit-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.dashboard-limit-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.dashboard-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0 !important;
}

.dashboard-role-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  background: #fff;
}

.dashboard-role-card .card-header {
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.48rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2.35rem;
}

.dashboard-role-card .card-header .float-end {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.dashboard-role-card .card-header .badge {
  font-size: 0.68rem;
  padding: 0.2em 0.4em;
}

.dashboard-role-card .card-body {
  padding: 0.3rem 0.55rem !important;
  font-size: 0.72rem !important;
  background: #fff;
}

.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0 !important;
  padding: 0.15rem 0 0;
}

.dashboard-quick-btn {
  width: 100%;
  border: 1px solid #e8eef5;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.25rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-quick-btn:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.dashboard-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #17a2b8;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.dashboard-quick-btn:nth-child(1) .dashboard-quick-icon { background: #0ea5e9; }
.dashboard-quick-btn:nth-child(2) .dashboard-quick-icon { background: #0f766e; }
.dashboard-quick-btn:nth-child(3) .dashboard-quick-icon { background: #2563eb; }
.dashboard-quick-btn:nth-child(4) .dashboard-quick-icon { background: #0369a1; }

.dashboard-quick-btn .dashboard-quick-label {
  margin: 0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-matches-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.28rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
}

.dashboard-tabs-secondary {
  background: #fff;
}

.dashboard-tab {
  flex: 1 1 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.45rem 0.35rem;
  white-space: nowrap;
}

.dashboard-tab.active {
  background: var(--vrx-chrome, #1f2937);
  color: var(--vrx-chrome-text, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.dashboard-live-section,
.dashboard-upcoming-section {
  margin-bottom: 0 !important;
}

.dashboard-live-list,
.dashboard-match-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dashboard-match-block-title {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.dashboard-casino-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .dashboard-casino-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
}

.dashboard-matka-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .dashboard-matka-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-match-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 0.42rem 0.55rem;
}

.dashboard-match-card:hover {
  border-color: #adb5bd;
}

.dashboard-match-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.28rem;
  min-width: 0;
}

.dashboard-match-when {
  flex-shrink: 0;
  white-space: nowrap;
}

.dashboard-match-card .competition-row {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 0.22rem;
}

.dashboard-match-card .competition-badge {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
  background: #eef2f7;
  color: #334155;
  border: 1px solid #d8dee8;
  text-align: left;
}

.dashboard-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #dc3545;
  display: inline-block;
  flex-shrink: 0;
}

.dashboard-status-ticker {
  display: block;
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #e65100;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-status-ticker.sev-critical {
  background: #ffebee;
  color: #b71c1c;
}

.dashboard-status-ticker.sev-info {
  background: #e3f2fd;
  color: #1565c0;
}

.dashboard-status-ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: dashboardStatusTicker 11s linear infinite;
}

@keyframes dashboardStatusTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-status-ticker-track {
    animation: none;
    padding-left: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.dashboard-match-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dashboard-match-body img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 0.1rem;
  flex-shrink: 0;
}

.dashboard-match-name {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e3a8a;
}

.dashboard-match-stats {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #eef2f7;
}

.dashboard-match-stats.is-loading {
  min-height: 3.1rem;
}

.dashboard-stats-skel {
  display: inline-block;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8edf3 0%, #f5f7fa 45%, #e8edf3 90%);
  background-size: 200% 100%;
  animation: dashboard-stats-shimmer 1.1s ease-in-out infinite;
}

.dashboard-stats-skel-bets {
  width: 4.2rem;
  height: 0.72rem;
}

.dashboard-stats-skel-team {
  width: 55%;
  max-width: 7rem;
  height: 0.7rem;
}

.dashboard-stats-skel-amt {
  width: 3.6rem;
  height: 0.7rem;
}

@keyframes dashboard-stats-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.dashboard-match-bets {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.dashboard-match-bets i {
  font-size: 0.7rem;
  color: #64748b;
}

.dashboard-match-bets em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.dashboard-match-teams {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.dashboard-match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

.dashboard-match-team em {
  font-style: normal;
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dashboard-match-team strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  flex-shrink: 0;
}

.dashboard-match-team.is-win strong {
  color: #15803d;
}

.dashboard-match-team.is-loss strong {
  color: #b91c1c;
}

.dashboard-match-team.is-flat strong {
  color: #64748b;
}

.dashboard-casino-card .dashboard-match-stats {
  margin: 0;
  padding: 0.35rem 0.4rem 0.4rem;
  border-top: 1px solid #fde68a;
  background: #fffbeb;
}

.dashboard-casino-card .dashboard-match-teams {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dashboard-matka-card .dashboard-match-stats {
  text-align: center;
}

/* Casino: same yellow-border thumbs as client classic-casino-card */
.dashboard-casino-card,
.dashboard-casino-card.classic-casino-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffc107;
  border-radius: 6px;
  box-shadow: 0.5px 1.5px 5px 0 rgb(195 195 195 / 60%);
  background: #fff;
}

.dashboard-casino-thumb,
.dashboard-casino-card .casino-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8fafc;
}

/* Matka: compact iconic tiles — same text/icon scale as cricket cards */
.dashboard-matka-card {
  padding: 0.35rem 0.25rem;
  text-align: center;
}

.dashboard-matka-card .dashboard-match-top {
  justify-content: center;
  margin-bottom: 0.2rem;
}

.dashboard-matka-card .dashboard-match-top .text-muted {
  display: none;
}

.dashboard-matka-card .dashboard-match-body {
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-matka-card .dashboard-match-body img {
  width: 30px;
  height: 30px;
}

.dashboard-matka-card .dashboard-match-name {
  font-size: 0.72rem;
  text-align: center;
  color: #0f172a;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-match-top,
.dashboard-match-top .text-muted,
.dashboard-match-top .text-danger {
  font-size: 0.68rem;
}

.staff-tree-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.3rem;
  padding: 0.12rem 0.35rem;
  line-height: 1.2;
}

.staff-tree-meta > span {
  white-space: nowrap;
}

.staff-tree-user,
.staff-tree-name {
  font-size: 0.72rem;
}

#staff-user-tree .badge {
  font-size: 0.68rem;
}

@media (min-width: 576px) {
  .dashboard-role-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .dashboard-home {
    gap: 1rem;
  }

  .dashboard-panel {
    padding: 0.85rem 0.95rem 0.95rem;
    gap: 0.65rem;
  }

  .dashboard-limit-banner {
    padding: 0.65rem 0.75rem;
  }

  .dashboard-limit-value {
    font-size: 0.85rem;
  }

  .dashboard-role-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dashboard-role-card .card-header {
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
  }

  .dashboard-quick-icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.85rem;
  }

  .dashboard-quick-btn .dashboard-quick-label {
    font-size: 0.72rem;
  }

  .dashboard-match-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .dashboard-role-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-quick-links {
    max-width: 36rem;
  }
}

.staff-main {
  padding: 0 1rem 1.5rem;
}

/* Viewport-fixed ledger closing total — same idea as client P&L dock. */
.staff-ledger-total-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1025;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.78rem 1.1rem calc(0.78rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #e8eef7;
  border-top: 2px solid #c5cedc;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.16);
}

.staff-ledger-total-dock[hidden] {
  display: none !important;
}

.staff-ledger-total-dock-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
}

.staff-ledger-total-dock-value {
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.staff-ledger-total-dock-value.is-credit {
  color: #15803d;
}

.staff-ledger-total-dock-value.is-debit {
  color: #b91c1c;
}

.staff-ledger-total-dock-value.is-zero {
  color: #64748b;
}

body.admin-page.has-staff-ledger-dock .staff-main {
  padding-bottom: 5.25rem;
}

.staff-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--vrx-chrome);
  color: var(--vrx-chrome-text);
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--vrx-chrome-dark);
}

/* PHP flash_msg.php marquee — under staff topbar */
.staff-flash-msg {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  background: #dc3545;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 0.35rem 0.35rem;
}

.staff-flash-msg .marquee {
  width: 100%;
  margin: 0;
  padding: 0.4rem 0;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.staff-flash-msg .marquee span {
  display: inline-block;
  padding-left: 100%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  animation: staff-flash-marquee 14s linear infinite;
}

.staff-flash-msg .marquee span:hover {
  animation-play-state: paused;
}

.staff-home-ad-thumb {
  display: block;
  width: 160px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #111;
}

@keyframes staff-flash-marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.staff-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.staff-menu-btn {
  border: 0;
  background: var(--vrx-chrome-soft);
  color: var(--vrx-chrome-text);
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
}

.staff-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-user-pill {
  display: inline-flex;
  align-items: center;
  background: var(--vrx-chrome-dark);
  color: var(--vrx-chrome-text);
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 32px;
  line-height: 1.2;
}

.staff-topbar .btn-outline-light {
  color: var(--vrx-chrome-text);
  border-color: color-mix(in srgb, var(--vrx-chrome-text) 55%, transparent);
}

.staff-topbar .btn-outline-light:hover {
  background: var(--vrx-chrome-soft);
  color: var(--vrx-chrome-text);
  border-color: var(--vrx-chrome-text);
}

.staff-topbar-right #logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  line-height: 1.2;
  font-size: 0.85rem;
}

.staff-header {
  padding: 1rem 0 0.25rem;
}

.admin-form .form-label {
  font-weight: 600;
  color: #334155;
}

.admin-section-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
}

.report-card {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.report-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.staff-book-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.staff-book-toggle-btn {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.staff-book-toggle-btn + .staff-book-toggle-btn {
  border-left: 1px solid #cbd5e1;
}

.staff-book-toggle-btn.is-active {
  background: #1e3a5f;
  color: #fff;
}

.staff-book-toggle-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
  z-index: 1;
}

/* Book-mode hide applies only on Live Bet detail — never the Sports Betting list. */
#section-sports-betting-detail[data-book-mode="my"] .staff-book-total-only,
#section-sports-betting-detail[data-book-mode="total"] .staff-book-share-only {
  display: none !important;
}

#section-sports-betting .staff-pl-col {
  min-width: 5.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.stat-chip .label {
  color: var(--brand-muted);
  font-weight: 500;
}

.stat-chip-icon {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1;
}

.stat-chip-icon.is-credit {
  color: #16a34a;
}

.stat-chip-icon.is-debit {
  color: #dc2626;
}

.stat-chip .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stat-chip-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bet-row-declared {
  background: #ecfdf3;
}

.bet-row-declared td {
  color: #166534;
}

/* Staff live bet W/L — solid green/red like lock buttons.
   Match/toss rows with L/K side classes keep lagai/khai bg instead (below). */
.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay),
.report-table tbody tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay),
.staff-session-bet-table tbody tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay),
.table-striped > tbody > tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) {
  --bs-table-bg: #198754;
  --bs-table-striped-bg: #198754;
  --bs-table-hover-bg: #157347;
  background: #198754 !important;
}

.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.report-table tbody tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.staff-session-bet-table tbody tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.table-striped > tbody > tr.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) > * {
  background: #198754 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay),
.report-table tbody tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay),
.staff-session-bet-table tbody tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay),
.table-striped > tbody > tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) {
  --bs-table-bg: #dc3545;
  --bs-table-striped-bg: #dc3545;
  --bs-table-hover-bg: #bb2d3b;
  background: #dc3545 !important;
}

.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.report-table tbody tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.staff-session-bet-table tbody tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) > *,
.table-striped > tbody > tr.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) > * {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Staff settled: win/loss (staff book) overrides Lagai/Khai side tint. */
.bet-row-win.bet-row-side-back,
.bet-row-win.bet-row-side-lay,
.report-table tbody tr.bet-row-win.bet-row-side-back,
.report-table tbody tr.bet-row-win.bet-row-side-lay,
.table-striped > tbody > tr.bet-row-win.bet-row-side-back,
.table-striped > tbody > tr.bet-row-win.bet-row-side-lay {
  --bs-table-bg: #198754;
  --bs-table-striped-bg: #198754;
  --bs-table-hover-bg: #157347;
  background: #198754 !important;
}

.bet-row-win.bet-row-side-back > *,
.bet-row-win.bet-row-side-lay > *,
.report-table tbody tr.bet-row-win.bet-row-side-back > *,
.report-table tbody tr.bet-row-win.bet-row-side-lay > *,
.table-striped > tbody > tr.bet-row-win.bet-row-side-back > *,
.table-striped > tbody > tr.bet-row-win.bet-row-side-lay > * {
  background: #198754 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.bet-row-loss.bet-row-side-back,
.bet-row-loss.bet-row-side-lay,
.report-table tbody tr.bet-row-loss.bet-row-side-back,
.report-table tbody tr.bet-row-loss.bet-row-side-lay,
.table-striped > tbody > tr.bet-row-loss.bet-row-side-back,
.table-striped > tbody > tr.bet-row-loss.bet-row-side-lay {
  --bs-table-bg: #dc3545;
  --bs-table-striped-bg: #dc3545;
  --bs-table-hover-bg: #bb2d3b;
  background: #dc3545 !important;
}

.bet-row-loss.bet-row-side-back > *,
.bet-row-loss.bet-row-side-lay > *,
.report-table tbody tr.bet-row-loss.bet-row-side-back > *,
.report-table tbody tr.bet-row-loss.bet-row-side-lay > *,
.table-striped > tbody > tr.bet-row-loss.bet-row-side-back > *,
.table-striped > tbody > tr.bet-row-loss.bet-row-side-lay > * {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Match/toss: Lagai (L/back) + Khai (K/lay) — hover/normal swapped */
.bet-row-side-back,
.report-table tbody tr.bet-row-side-back,
.table-striped > tbody > tr.bet-row-side-back {
  --bs-table-bg: #bfdbfe;
  --bs-table-striped-bg: #bfdbfe;
  --bs-table-hover-bg: #dbeafe;
  background: #bfdbfe !important;
}

.bet-row-side-back > *,
.report-table tbody tr.bet-row-side-back > *,
.table-striped > tbody > tr.bet-row-side-back > * {
  background: #bfdbfe !important;
  color: #0f172a !important;
  border-color: #93c5fd !important;
}

.table-hover > tbody > tr.bet-row-side-back:hover > *,
.report-table.table-hover tbody tr.bet-row-side-back:hover > * {
  background: #dbeafe !important;
}

.bet-row-side-lay,
.report-table tbody tr.bet-row-side-lay,
.table-striped > tbody > tr.bet-row-side-lay {
  --bs-table-bg: #fbcfe8;
  --bs-table-striped-bg: #fbcfe8;
  --bs-table-hover-bg: #fce7f3;
  background: #fbcfe8 !important;
}

.bet-row-side-lay > *,
.report-table tbody tr.bet-row-side-lay > *,
.table-striped > tbody > tr.bet-row-side-lay > * {
  background: #fbcfe8 !important;
  color: #0f172a !important;
  border-color: #f9a8d4 !important;
}

.table-hover > tbody > tr.bet-row-side-lay:hover > *,
.report-table.table-hover tbody tr.bet-row-side-lay:hover > * {
  background: #fce7f3 !important;
}

/* Settled L/K: no red/green border outline (status chip is enough) */

.bet-row-side-back.bet-row-win .bet-col-status .bet-status-chip,
.bet-row-side-lay.bet-row-win .bet-col-status .bet-status-chip,
.bet-row-side-back.bet-row-loss .bet-col-status .bet-status-chip,
.bet-row-side-lay.bet-row-loss .bet-col-status .bet-status-chip {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.bet-row-win .staff-bet-amount,
.bet-row-loss .staff-bet-amount {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.bet-row-win .staff-bet-action,
.bet-row-loss .staff-bet-action {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.bet-row-win .staff-size-box,
.bet-row-loss .staff-size-box {
  background: #fff;
  color: #0f172a;
  border-color: #0f172a;
}

.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-eo-side-text,
.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-eo-side-text,
.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-id-box,
.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-id-box,
.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-name-box,
.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-name-box {
  color: inherit;
}

.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-id-box,
.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-id-box,
.bet-row-win:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-name-box,
.bet-row-loss:not(.bet-row-side-back):not(.bet-row-side-lay) .staff-name-box {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.bet-col-status {
  text-align: center;
  white-space: nowrap;
}

.bet-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.28rem;
  min-width: 2.7rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.bet-status-chip.bet-status-neutral {
  background: #475569;
}

.bet-status-chip.bet-status-live {
  background: #0d6efd;
}

.bet-status-chip.bet-status-win {
  background: #198754;
}

.bet-status-chip.bet-status-loss {
  background: #dc3545;
}

.report-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.report-filters .form-control-sm,
.report-filters .form-select-sm {
  border-radius: 0.65rem;
}

.report-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vrx-table-head-text);
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg) 0%,
    var(--vrx-table-head-bg-2) 100%
  );
  border: 1px solid var(--vrx-table-head-border);
  border-bottom: 2px solid var(--vrx-table-accent);
}

.report-table tbody tr:hover {
  background: var(--vrx-row-hover);
}

.client-limit-summary {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.client-limit-summary .summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.client-limit-summary .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.client-limit-summary .value {
  font-weight: 600;
  font-size: 1rem;
}

.client-dashboard-page {
  background: #f1f5f9;
}

.client-dashboard {
  min-height: 100vh;
  padding-bottom: 4.5rem;
}

.client-dashboard section {
  padding: 0 1rem 1rem;
}

.client-back-home {
  display: flex;
  justify-content: flex-end;
}

.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #4f7a92;
  color: #fff;
  padding: 0.75rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.client-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  text-align: left;
}

.client-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.client-brand-mark {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

.client-brand-mark img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

body[data-client-skin="classic"] .client-brand-mark,
body[data-client-skin="bethub"] .client-brand-mark {
  display: inline-flex;
}

body[data-client-skin="classic"].client-dashboard-page .client-topbar {
  background: var(--brand-primary, #4f7a92);
  color: var(--brand-on-primary, #fff);
}

body[data-client-skin="bethub"].client-dashboard-page .client-topbar {
  background: linear-gradient(
    120deg,
    var(--brand-primary, #113a7c),
    var(--brand-primary-dark, #0b2a5c)
  );
}

.client-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 0 1 auto;
  text-align: left;
}

.client-user-text {
  min-width: 0;
  text-align: left;
}

.client-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.client-user-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.client-user-meta {
  font-size: 0.75rem;
  color: #e2e8f0;
}

.client-balance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.balance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.balance-label {
  color: #c7d2fe;
}

.balance-value {
  font-weight: 700;
}

.client-logout-btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.client-logout-btn:hover {
  border-color: #fff;
  color: #fff;
}

.client-welcome-bar {
  margin: 0.75rem 1rem 0.5rem;
  background: #d01c6a;
  color: #fff;
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.client-dashboard #alert {
  margin: 0 1rem 0.75rem;
}

.client-section {
  padding: 0 1rem 1rem;
}

.client-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  padding: 1rem;
}

.client-home-btn {
  background: #fff;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 1rem 0.5rem;
  text-align: center;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.client-home-btn img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.client-home-btn span {
  font-size: 0.85rem;
}

.client-sport-tabs,
.client-casino-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.client-tab {
  flex: 1;
  border: 1px solid #cbd5f5;
  background: #e2e8f0;
  color: #1e3a8a;
  font-weight: 600;
  border-radius: 0.45rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
}

.client-tab.active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.client-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.client-event-item {
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.client-event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.client-event-status {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.client-event-status.upcoming {
  background: #e2e8f0;
  color: #475569;
}

.client-event-time {
  color: #ef4444;
  font-weight: 600;
}

.client-event-sport {
  background: #e2e8f0;
  color: #1e293b;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-event-name {
  margin-top: 0.35rem;
  font-weight: 600;
  color: #0f172a;
}

.client-section-title {
  margin-top: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.client-casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}

.casino-tile {
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.45);
}

.casino-tile img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.casino-tile-body {
  padding: 0.35rem 0.4rem;
  text-align: center;
  background: #1e3a8a;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #4f7a92;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0.6rem;
  gap: 0.5rem;
  z-index: 1100;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.client-bottom-nav .nav-link {
  border: 0;
  background: transparent;
  color: #c7d2fe;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}

.client-bottom-nav .nav-link.active {
  color: #fff;
}

.client-user-pill {
  background: #223f86;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-txn-link {
  color: #1e3a8a;
  font-weight: 600;
}

.client-terms-page {
  background: #e5e7eb;
}

.client-terms-header {
  background: #1aa3b8;
  color: #fff;
  text-align: center;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 0.5rem;
}

.client-terms-card {
  margin-top: 0.85rem;
  background: #fff;
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.client-terms-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f2937;
}

.client-terms-list li + li {
  margin-top: 0.5rem;
}

.client-terms-continue {
  display: block;
  margin-top: 1rem;
  background: #1aa3b8;
  color: #fff;
  text-align: center;
  padding: 0.85rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.client-welcome-modal {
  background: #4fb4dd;
  border-radius: 0.75rem;
}

.session-bets-group {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

.session-bets-title {
  color: #0f172a;
}

.txn-summary-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.txn-summary-item.txn-summary-card {
  cursor: not-allowed;
  opacity: 0.7;
}

.txn-detail-row {
  cursor: pointer;
}

.txn-summary-card {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.txn-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.txn-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.txn-detail-item {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  text-align: left;
}

.txn-detail-item:hover {
  background: #f8fafc;
}

.txn-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.txn-total-bar .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.txn-total-bar .value {
  font-weight: 600;
}

.event-card {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.bet-wait {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  color: #fff;
}

.bet-wait.is-open {
  display: flex;
}

.bet-wait-content {
  text-align: center;
  font-size: 1.25rem;
}

.bet-wait .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

.cards-result-btn {
  font-size: .6rem;
  padding: 0.5rem 0.6rem;
  border: none;
  min-width: 48px;
  min-height: 38px;
  border-radius: 0.6rem;
}

.cards-results-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.cards-results-strip::-webkit-scrollbar {
  height: 6px;
}

.cards-results-strip::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

.cards-result-btn + .cards-result-btn {
  margin-left: 0.5rem;
}

.cards-results-strip .cards-result-btn + .cards-result-btn {
  margin-left: 0;
}

.cards-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.casino-preview-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.casino-card-group {
  flex: 1 1 160px;
  min-width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
}
.casino-card-group.is-unlabeled {
  min-width: 72px;
  flex: 0 1 auto;
  background: #0f172a;
  border-color: #1e293b;
}
.cards-result-btn.is-ekcard {
  background: #111827 !important;
  padding: 0.2rem;
  min-width: 36px;
}
.cards-result-btn .staff-ekc-result-img {
  width: 22px;
  height: auto;
  display: block;
}

.casino-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.casino-card-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.casino-card-img {
  width: 28px;
  height: 40px;
  object-fit: contain;
}

.casino-card-placeholder {
  width: 28px;
  height: 40px;
  border-radius: 0.4rem;
  border: 1px dashed #cbd5f5;
  background: #fff;
}

.casino-timer {
  min-width: 48px;
  text-align: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.staff-casino-odds .ab-odds,
.staff-casino-odds .aaa-odds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-casino-odds .ab-section {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  background: #f8fafc;
}

.staff-casino-odds .ab-section-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dee2e6;
}

.staff-casino-odds .ab-main-row,
.staff-casino-odds .ab-side-row,
.staff-casino-odds .ab-parity-grid,
.staff-casino-odds .ab-suit-grid {
  display: grid;
  gap: 6px;
}

.staff-casino-odds .ab-main-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-casino-odds .ab-side-row {
  grid-template-columns: 1fr 1.2fr;
}

.staff-casino-odds .ab-parity-grid {
  grid-template-columns: 1fr 1fr;
}

.staff-casino-odds .ab-suit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-casino-odds .ab-staff-cell {
  text-align: center;
}

.staff-casino-odds .aaa-main-row,
.staff-casino-odds .aaa-side-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.staff-casino-odds .aaa-main-title,
.staff-casino-odds .aaa-side-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.staff-casino-odds .aaa-main-btns,
.staff-casino-odds .aaa-side-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-casino-odds .aaa-main-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.staff-casino-odds .aaa-side-panel {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  background: #f8fafc;
}

.staff-casino-odds .aaa-side-opt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.staff-casino-odds .aaa-rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 6px;
}

.staff-casino-odds .aaa-rate-pill.is-back {
  background: #72bbef;
  color: #0f172a;
}

.staff-casino-odds .aaa-rate-pill.is-lay {
  background: #faa9ba;
  color: #0f172a;
}

.staff-casino-odds .aaa-odds-disabled {
  background: #e9ecef;
  color: #6c757d;
}

.staff-casino-odds .aaa-suit-red {
  color: #dc2626;
  font-weight: 700;
}

.staff-casino-odds .aaa-suit-black {
  color: #0f172a;
  font-weight: 700;
}

.staff-casino-odds .aaa-suit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.staff-casino-odds .aaa-cards-block {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
}

.staff-casino-odds .aaa-cards-payout {
  text-align: center;
  color: #dc2626;
  font-weight: 800;
  margin-bottom: 6px;
}

.staff-casino-odds .aaa-cards-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.staff-casino-odds .aaa-card-btn {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  padding: 4px 2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-casino-odds .aaa-card-btn img {
  width: 100%;
  max-width: 32px;
  height: auto;
}

.staff-casino-odds .aaa-card-btn.is-disabled {
  opacity: 0.45;
}

.cards-result-btn.aaa-result-a {
  background: #15803d !important;
}

.cards-result-btn.aaa-result-b {
  background: #6b7c1c !important;
}

.cards-result-btn.aaa-result-c {
  background: #0f766e !important;
}

.cards-result-btn.card32-result-chip {
  background: #15803d !important;
  min-width: 2.25rem;
}

.cards-result-btn.dt202-result-d {
  background: #dc2626 !important;
}

.cards-result-btn.dt202-result-t {
  background: #15803d !important;
}

.cards-result-btn.dt202-result-tie {
  background: #64748b !important;
}

.staff-dt202-odds .dt202-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 320px;
}

.staff-dt202-odds .dt202-staff-main {
  text-align: center;
}

.staff-dt202-odds .aaa-rate-pill.is-dragon,
.staff-dt202-odds .dt-side-is-dragon .aaa-rate-pill.is-back {
  background: #dc2626;
  color: #fff;
}

.staff-dt202-odds .aaa-rate-pill.is-tiger,
.staff-dt202-odds .dt-side-is-tiger .aaa-rate-pill.is-back {
  background: #f59e0b;
  color: #1f1300;
}

.staff-dt202-odds .dt-side-is-dragon .small {
  color: #991b1b;
  font-weight: 700;
}

.staff-dt202-odds .dt-side-is-tiger .small {
  color: #b45309;
  font-weight: 700;
}

.staff-card32-odds .card32-odds-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-card32-odds .card32-odds-table th,
.staff-card32-odds .card32-odds-table td {
  border: 1px solid #dee2e6;
  padding: 6px;
}

/* —— Andar Bahar 20 (ab20) staff odds —— */
.staff-ab20-odds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-ab20-odds .ab20-row {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
}

.staff-ab20-odds .ab20-row.is-andar {
  background: #f5e6c8;
}

.staff-ab20-odds .ab20-row.is-bahar {
  background: #d1fae5;
}

.staff-ab20-odds .ab20-row-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.staff-ab20-odds .ab20-rank-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
}

.staff-ab20-odds .ab20-rank-cell {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  padding: 4px 2px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.staff-ab20-odds .ab20-rank-cell img {
  width: 100%;
  max-width: 28px;
  height: auto;
  display: block;
  object-fit: contain;
}

.staff-ab20-odds .ab20-rank-label {
  font-size: 10px;
  font-weight: 800;
  color: #334155;
  line-height: 1;
}

.staff-ab20-odds .ab20-rank-rate {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.staff-ab20-odds .ab20-rank-cell.is-disabled {
  opacity: 0.45;
  background: #94a3b8;
}

/* —— Lucky 7 - A staff odds —— */
.staff-l7a-odds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-l7a-odds .l7a-main-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.staff-l7a-odds .l7a-side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.staff-l7a-odds .l7a-center-card {
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-l7a-odds .l7a-center-card img {
  width: 44px;
  height: auto;
  display: block;
}

.staff-l7a-odds .aaa-side-opt {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.staff-l7a-odds .l7a-cards-block,
.staff-l7a-odds .l7a-lines-block {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.staff-l7a-odds .l7a-cards-row {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
}

.staff-l7a-odds .l7a-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  padding: 4px 2px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.staff-l7a-odds .l7a-card img {
  width: 100%;
  max-width: 28px;
  height: auto;
  display: block;
}

.staff-l7a-odds .l7a-card-rate {
  font-size: 10px;
  font-weight: 700;
}

.staff-l7a-odds .l7a-card.is-disabled {
  opacity: 0.45;
  background: #e9ecef;
}

.staff-l7a-odds .l7a-lines-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.staff-l7a-odds .l7a-line {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.staff-l7a-odds .l7a-line-cards {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.staff-l7a-odds .l7a-line-cards img {
  width: 18px;
  height: auto;
  display: block;
}

.staff-l7a-odds .l7a-line-rate {
  font-size: 12px;
  font-weight: 700;
}

.staff-l7a-odds .l7a-line.is-disabled {
  opacity: 0.45;
}

/* —— 3 Cards Judgement staff odds —— */
.staff-cardj-odds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-cardj-odds .cardj-yn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 360px;
}

.staff-cardj-odds .cardj-yn {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #72bbef;
}

.staff-cardj-odds .cardj-yn.is-yes {
  background: #86efac;
  border-color: #22c55e;
}

.staff-cardj-odds .cardj-yn.is-no {
  background: #fda4af;
  border-color: #f43f5e;
}

.staff-cardj-odds .cardj-yn.is-disabled {
  opacity: 0.5;
  background: #e9ecef;
  border-color: #ced4da;
}

/* —— Teen Patti Pro staff odds —— */
.staff-tppro-odds .tppro-group {
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(165deg, #142018 0%, #0c1511 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.staff-tppro-odds .tppro-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3e6b8;
}

.staff-tppro-odds .tppro-group-grid {
  display: grid;
  gap: 6px;
}

.staff-tppro-odds .tppro-group-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-tppro-odds .tppro-group-grid.is-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .staff-tppro-odds .tppro-group-grid.is-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.staff-tppro-odds .tppro-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 52px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #2f6fad 0%, #1d4f84 100%);
  color: #f8fbff;
}

.staff-tppro-odds .tppro-btn.is-disabled {
  opacity: 0.55;
  background: linear-gradient(180deg, #3a4654 0%, #2a333e 100%);
  color: #94a3b8;
}

.staff-tppro-odds .tppro-btn-label,
.staff-tppro-odds .tppro-btn-seat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-tppro-odds .tppro-btn-rate {
  font-size: 14px;
  font-weight: 800;
}

.staff-cardj-odds .cardj-yn-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1;
}

.staff-cardj-odds .cardj-yn-rate {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.1;
}

@media (max-width: 720px) {
  .staff-casino-odds .aaa-main-row,
  .staff-casino-odds .aaa-side-row,
  .staff-casino-odds .ab-main-row,
  .staff-casino-odds .ab-side-row {
    grid-template-columns: 1fr;
  }

  .staff-casino-odds .aaa-cards-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .staff-casino-odds .ab-suit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-ab20-odds .ab20-rank-grid,
  .staff-l7a-odds .l7a-cards-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .staff-l7a-odds .l7a-main-row,
  .staff-l7a-odds .l7a-lines-row,
  .staff-cardj-odds .cardj-yn-row {
    grid-template-columns: 1fr;
  }

  .staff-l7a-odds .l7a-center-card {
    width: 100%;
  }
}

.card-result-img {
  width: 48px;
  height: auto;
}

.card-result-img-lg {
  width: 72px;
  height: auto;
}

.bet-status-live {
  background: #f59e0b;
  color: #fff;
}

.bet-status-declared {
  background: #0ea5e9;
  color: #fff;
}

.bet-pl-win {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}

.bet-pl-loss {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  table-layout: fixed;
}

.market-table th,
.market-table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  vertical-align: middle;
  height: 64px;
}

.market-table tbody tr {
  height: 64px;
}

.market-col-name {
  width: 60%;
}

.market-col-price {
  width: 20%;
}

.market-col-card-left,
.market-col-card-right {
  width: 42%;
}

.market-col-card-center {
  width: 16%;
}

.market-minmax {
  font-weight: 600;
  color: #0f172a;
}

.market-normal {
  background: #2c6c72;
  color: #fff;
  font-weight: 600;
}

.market-banner {
  background: #2c6c72;
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  border-radius: 0.25rem;
}

.market-col-back {
  background: #7ec3f5;
  text-align: center;
  font-weight: 600;
}

.market-col-lay {
  background: #f7b0c5;
  text-align: center;
  font-weight: 600;
}

.market-col-yes {
  background: #7ec3f5;
  text-align: center;
}

.market-col-no {
  background: #f7b0c5;
  text-align: center;
}

.market-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-break: break-word;
}

.market-name-text {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-minmax {
  font-size: 0.75rem;
  color: #0f172a;
}

.market-table-session .market-name-text {
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
  max-height: 1.2em;
}

.market-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.market-table-card .market-card-cell {
  padding: 0.35rem;
}

.market-table-card .market-card-center {
  text-align: center;
  background: #f8fafc;
}

.market-card-center-img {
  width: 28px;
  height: auto;
}

.market-card-center-label {
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
}

.market-card-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 0.5rem;
  border: 1px solid #0f6b75;
  background: linear-gradient(180deg, #0f8ca0, #0b6b78);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.market-card-btn:focus,
.market-card-btn:hover {
  background: linear-gradient(180deg, #0f99ad, #0a6170);
}

.market-card-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 0.25rem;
}

.market-card-rate {
  font-weight: 700;
  font-size: 1rem;
}

.market-card-disabled {
  width: 100%;
  min-height: 56px;
  border-radius: 0.5rem;
  background: #3f4850;
  color: #ff3b30;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  text-align: center;
}

.market-card-disabled span {
  font-size: 0.65rem;
  font-weight: 600;
}

.market-card-empty {
  width: 100%;
  min-height: 56px;
}

.market-rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.market-size {
  font-size: 0.8rem;
  color: #1f2937;
}

.market-suspended {
  background: #3f4850;
  color: #ff3b30;
  text-align: center;
  font-weight: 700;
  min-height: 52px;
}

.market-running {
  background: #3f4850;
  color: #ff3b30;
  text-align: center;
  font-weight: 700;
  min-height: 52px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.score-team {
  flex: 1;
}

.score-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.score-value {
  font-size: 0.85rem;
  color: #475569;
}

.score-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.score-balls {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ball-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.ball-default {
  background: #94a3b8;
}

.ball-four {
  background: #38bdf8;
}

.ball-six {
  background: #2563eb;
}

.ball-dot {
  background: #64748b;
}

.ball-wide {
  background: #f59e0b;
}

.ball-wicket {
  background: #ef4444;
}

.score-message {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.score-alert {
  margin-top: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.ledger-amount {
  display: inline-flex;
  min-width: 90px;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.ledger-amount-positive {
  background: var(--success);
}

.ledger-amount-negative {
  background: var(--danger);
}

.hide-parent-col .parent-col {
  display: none;
}

.staff-password-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.staff-password-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.staff-password-action.btn-link {
  vertical-align: baseline;
}

.staff-password-action svg,
.staff-whatsapp-icon {
  display: block;
}

@media (max-width: 767.98px) {
  .staff-password-action .staff-whatsapp-icon,
  .staff-whatsapp-icon {
    height: 22px;
    width: 19px;
  }

  .staff-password-actions {
    gap: 0.5rem;
  }
}

.child-link {
  color: var(--brand-primary);
  text-decoration: underline;
}

.child-link:hover {
  color: #1d4ed8;
}

.password-strength {
  margin-top: 0.35rem;
}

.strength-meter {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.strength-meter-bar {
  height: 100%;
  width: 0%;
  background: #cbd5f5;
  transition: width 0.2s ease, background 0.2s ease;
}

.strength-weak {
  background: var(--danger);
}

.strength-fair {
  background: var(--warning);
}

.strength-good {
  background: #38bdf8;
}

.strength-strong {
  background: var(--success);
}

@media (max-width: 991.98px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card-left,
  .auth-card-right {
    padding: 2rem;
  }

  .auth-card-left {
    text-align: center;
  }

  .client-login-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  .client-login-card {
    max-width: 380px;
  }

  .admin-page > .d-flex {
    flex-direction: column;
  }

  .client-limit-summary {
    width: 100%;
    justify-content: center;
  }

  .report-header {
    align-items: flex-start;
  }

  .report-filters {
    width: 100%;
  }

  .report-filters > div {
    flex: 1 1 140px;
  }

  #staff-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    width: 260px;
    max-width: 80vw;
    min-width: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1040;
    overflow: hidden;
  }

  .admin-page main {
    padding: 0;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  body.sidebar-open #staff-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 575.98px) {
  .auth-wrapper {
    padding: 1.5rem 1rem;
  }

  .auth-card-left,
  .auth-card-right {
    padding: 1.5rem;
  }

  .client-login-card {
    border-radius: 1.25rem;
  }

  .client-logo-badge {
    width: 76px;
    height: 76px;
    right: 1rem;
    bottom: -1.25rem;
  }

  .client-logo-badge img{
    width: 4rem;
  }

  .client-login-body {
    padding: 2.75rem 1.5rem 1.75rem;
  }

  .client-login-title {
    font-size: 1.1rem;
  }

  .client-topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .client-balance {
    width: 100%;
    justify-content: flex-end;
    font-size: 0.75rem;
  }

  .client-user-avatar {
    width: 34px;
    height: 34px;
  }

  .client-home-grid {
    gap: 1rem 0.75rem;
    padding: 0.75rem;
  }

  .client-home-btn img {
    width: 100px;
    height: 100px;
  }

  .client-logout-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .client-sport-tabs,
  .client-casino-tabs {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .client-tab {
    flex: 0 0 auto;
    min-width: 90px;
  }

  .client-casino-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-result-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
    min-width: 32px;
    min-height: 32px;
    border-radius: 0.5rem;
  }

  .card-result-img {
    width: 36px;
  }

  .card-result-img-lg {
    width: 56px;
  }

  .market-card-btn {
    min-height: 46px;
    border-radius: 0.4rem;
  }

  .market-card-label {
    font-size: 0.75rem;
  }

  .market-card-rate {
    font-size: 0.9rem;
  }

  .market-card-center-img {
    width: 22px;
  }

  .client-ledger-table thead {
    display: none;
  }

  .client-ledger-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-ledger-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-ledger-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-ledger-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }

  .client-transactions-table thead {
    display: none;
  }

  .client-transactions-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-transactions-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-transactions-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-transactions-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }

  .client-header {
    position: relative;
    padding-top: 0.25rem;
  }

  .client-logout-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
  }

  .client-txn-detail-table thead,
  .client-txn-bets-table thead {
    display: none;
  }

  .client-txn-detail-table tbody tr,
  .client-txn-bets-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-txn-detail-table tbody td,
  .client-txn-bets-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-txn-detail-table tbody td:last-child,
  .client-txn-bets-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-txn-detail-table tbody td::before,
  .client-txn-bets-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }
}

/* ---- Staff admin dashboard polish ---- */
.staff-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.staff-list-status-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  margin-right: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.staff-list-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}

.staff-list-status-tab.active {
  background: var(--vrx-chrome, #1f2937);
  color: var(--vrx-chrome-text, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.staff-list-status-tab[data-status-tab="inactive"].active {
  background: #b91c1c;
  color: #fff;
}

.staff-list-status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.25);
  color: inherit;
}

.staff-list-status-tab.active .staff-list-status-count {
  background: rgba(255, 255, 255, 0.22);
}

.staff-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.staff-update-limits-rows .staff-ul-row:last-child {
  border-bottom: 0 !important;
}

.staff-limit-badge-input {
  position: absolute;
  top: -0.55rem;
  left: 0.55rem;
  z-index: 1;
  font-weight: 500;
  font-size: 0.65rem;
}

.staff-list-search {
  width: min(100%, 220px);
  border-color: #dbe3ee;
}

.staff-history-credit {
  --bs-table-bg: #f0fdf4;
  --bs-table-striped-bg: #ecfdf5;
  background-color: #f0fdf4 !important;
}

.staff-history-debit {
  --bs-table-bg: #fef2f2;
  --bs-table-striped-bg: #fee2e2;
  background-color: #fef2f2 !important;
}

.staff-history-credit td,
.staff-history-debit td {
  vertical-align: middle;
}

.staff-history-totals td {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.staff-history-totals .text-danger {
  color: #fca5a5 !important;
}

.staff-history-totals .text-success {
  color: #86efac !important;
}

.limit-report-panel + .limit-report-panel {
  margin-top: 1rem;
}

.limit-report-heading {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.limit-report-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.limit-report-stat {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 0.55rem 0.7rem;
  min-width: 0;
}

.limit-report-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.limit-report-stat-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.limit-report-stat-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}

.limit-report-parents th,
.limit-report-parents td {
  font-size: 0.82rem;
}

.limit-report-subhead {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.limit-report-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .limit-report-stats {
    grid-template-columns: 1fr;
  }
}

.staff-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: visible;
  background: #fff;
}

/* Keep row More menus above the table clip (Bootstrap table-responsive).
   On narrow viewports horizontal scroll is required; menus are portaled to
   body with position:fixed via initStaffRowMenus(). */
.staff-table-wrap.table-responsive {
  overflow: visible;
}

@media (max-width: 991.98px) {
  .staff-table-wrap.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
  }

  .staff-main {
    padding: 0 0.75rem 1.25rem;
  }

  .staff-header {
    padding: 0.85rem 0 0.35rem;
    margin-bottom: 0.75rem !important;
  }

  .staff-header h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .staff-topbar {
    padding: 0.55rem 0.65rem;
    gap: 0.5rem;
  }

  .staff-user-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-topbar-right #logout {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }

  .staff-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .staff-toolbar .staff-list-status-tabs {
    margin-right: 0;
    width: 100%;
  }

  .staff-toolbar .staff-list-status-tab {
    flex: 1 1 0;
    justify-content: center;
  }

  .staff-toolbar .staff-list-search {
    width: 100%;
    max-width: none;
  }

  .staff-toolbar-actions {
    width: 100%;
  }

  .staff-toolbar-actions .btn {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .staff-section .card-body {
    padding: 0.85rem;
  }
}

.staff-data-table {
  --bs-table-bg: #fff;
  margin-bottom: 0;
  border: 1px solid #cbd5e1;
  border-collapse: collapse;
}

.staff-data-table thead th {
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg) 0%,
    var(--vrx-table-head-bg-2) 100%
  );
  color: var(--vrx-table-head-text) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--vrx-table-head-border) !important;
  border-bottom: 2px solid var(--vrx-table-accent) !important;
  white-space: nowrap;
  padding: 0.7rem 0.75rem;
  vertical-align: middle;
}

.staff-data-table tbody td {
  vertical-align: middle;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b;
}

.staff-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.staff-data-table tbody tr:hover {
  background: var(--vrx-row-hover);
}

.account-list.staff-data-table thead th,
.report-table thead th {
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg) 0%,
    var(--vrx-table-head-bg-2) 100%
  );
  color: var(--vrx-table-head-text) !important;
  border: 1px solid var(--vrx-table-head-border) !important;
  border-bottom: 2px solid var(--vrx-table-accent) !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.report-table {
  --bs-table-bg: #fff;
  border: 1px solid #cbd5e1;
  border-collapse: collapse;
}

.report-table tbody td {
  border: 1px solid #e2e8f0 !important;
  vertical-align: middle;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: #1e293b;
}

.report-table thead th {
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
}

.report-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.report-table tbody tr:hover {
  background: var(--vrx-row-hover);
}

.report-card .report-table thead th,
.staff-data-table thead th {
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg) 0%,
    var(--vrx-table-head-bg-2) 100%
  );
  color: var(--vrx-table-head-text) !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--vrx-table-head-border) !important;
  border-bottom: 2px solid var(--vrx-table-accent) !important;
}

.report-card .card-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

.report-card .report-header {
  margin-bottom: 1.1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}

.stat-chip {
  border-radius: 0.45rem;
  background: #f8fafc;
}

.staff-actions-cell {
  min-width: 0;
}

.staff-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  height: 2rem;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0 0.55rem;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  border-radius: 0.35rem;
  box-sizing: border-box;
}

.staff-action-btn .fa {
  font-size: 0.78rem;
  line-height: 1;
}

.staff-action-label {
  font-size: 0.78rem;
  line-height: 1;
}

.staff-form-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
}

.staff-form-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.staff-form-card .form-control,
.staff-form-card .form-select {
  border-color: #dbe3ee;
  border-radius: 0.4rem;
}

.staff-form-card .form-control:focus,
.staff-form-card .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.staff-form-section {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 0.85rem 0.9rem;
}

.staff-form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.staff-form-section .staff-data-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  overflow: hidden;
}

.staff-sport-comm-table {
  min-width: 520px;
}

.staff-form-card input[readonly].bg-light,
.staff-form-card .staff-locked-value {
  color: #1e293b;
  cursor: default;
  background-color: #f1f5f9;
}

/* Create form field lock states — never leave label + empty hole */
.staff-create-field .staff-locked-value {
  display: none;
}
.staff-create-field.is-locked .form-select {
  display: none !important;
}
.staff-create-field.is-locked .staff-locked-value {
  display: block !important;
}
.staff-create-field.is-hidden-field {
  display: none !important;
}

/* Staff / client Add+Edit: keep mobile inputs in DOM but never show them. */
.staff-hide-mobile-field,
.staff-form-card .staff-hide-mobile-field,
.admin-form .staff-hide-mobile-field {
  display: none !important;
}


/* Game Controls icons via CSS (survives HTML SVG stripping / font CDN issues) */
.staff-sport-comm-table tbody tr[data-category] > td:first-child {
  position: relative;
  padding-left: 2.15rem !important;
  font-weight: 600;
}
.staff-sport-comm-table tbody tr[data-category] > td:first-child::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.staff-sport-comm-table tbody tr[data-category="football"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%2316a34a%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%20fill%3D%22%23fff%22/%3E%3Cpath%20d%3D%22M12%203v3M12%2018v3M3%2012h3M18%2012h3%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
}
.staff-sport-comm-table tbody tr[data-category="tennis"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%230ea5e9%22/%3E%3Cpath%20d%3D%22M7%205.5c3%202.2%203%2010.8%200%2013M17%205.5c-3%202.2-3%2010.8%200%2013%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3C/svg%3E");
}
.staff-sport-comm-table tbody tr[data-category="virtual"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%232563eb%22/%3E%3Cpath%20d%3D%22M8%2021h8M12%2017v4%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
}
.staff-sport-comm-table tbody tr[data-category="casino"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%223%22%20fill%3D%22%23dc2626%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%229%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2215%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E");
}
.staff-sport-comm-table tbody tr[data-category="winzo"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%225%22%20y%3D%223.5%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%20fill%3D%22%23d97706%22/%3E%3Cpath%20d%3D%22M9%208h6M9%2012h6M9%2016h4%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
}
.staff-sport-comm-table tbody tr[data-category="matka"] > td:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%2364748b%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223.5%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E");
}


@media (max-width: 991.98px) {
  .staff-action-btn {
    height: 2rem;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0 0.45rem;
  }
  .staff-actions-cell {
    min-width: 0;
  }
}

.staff-action-icon {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 !important;
  justify-content: center;
}

.staff-action-icon .staff-action-label {
  display: none;
}

.staff-row-menu .dropdown-toggle {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 !important;
}

.staff-row-menu .dropdown-toggle::after {
  display: none;
}

.staff-user-menu {
  min-width: 220px;
  font-size: 0.875rem;
  z-index: 2000;
  /* Fixed-position menu can be taller than a phone screen — scroll inside
     instead of pushing Deactivate off the bottom of the viewport. */
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body > .dropdown-menu.staff-user-menu {
  z-index: 2000;
}

.staff-user-menu .dropdown-item,
.staff-user-menu .dropdown-header {
  white-space: nowrap;
}

.staff-user-menu .dropdown-item {
  display: flex;
  align-items: center;
}

.staff-row-menu.show,
.staff-actions-cell:has(.dropdown-menu.show) {
  z-index: 30;
  position: relative;
}

.staff-actions-col,
.staff-actions-cell {
  width: 1%;
  min-width: 0;
  max-width: 7.5rem;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.staff-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
}

.staff-tree-gc {
  flex-shrink: 0;
}

/* DataTables (Bootstrap 5) polish */
div.dataTables_wrapper {
  width: 100%;
}

div.dataTables_wrapper .dataTables_filter {
  float: none;
  text-align: left;
  margin-bottom: 0.75rem;
}

div.dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

div.dataTables_wrapper .dataTables_filter input {
  margin-left: 0 !important;
  width: min(100%, 260px);
  border: 1px solid #dbe3ee;
  border-radius: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}

.staff-data-table.dataTable,
.report-table.dataTable,
.account-list.dataTable {
  border-collapse: collapse !important;
}

.report-table {
  --bs-table-bg: #fff;
}

.report-card .table-responsive,
.report-card .staff-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  overflow-x: auto;
  overflow-y: visible;
}

.report-card .report-table thead th,
.staff-data-table thead th,
.account-list thead th {
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg) 0%,
    var(--vrx-table-head-bg-2) 100%
  );
  color: var(--vrx-table-head-text) !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid var(--vrx-table-head-border) !important;
  border-bottom: 2px solid var(--vrx-table-accent) !important;
  padding: 0.75rem 0.85rem;
}

/* Inactive / disabled users — distinct row wash vs active striped rows */
.table-striped > tbody > tr.account-row-inactive,
.account-list tbody > tr.account-row-inactive,
.staff-data-table tbody > tr.account-row-inactive {
  --bs-table-bg: #f1f5f9;
  --bs-table-striped-bg: #e2e8f0;
  --bs-table-hover-bg: #dbe3ee;
  background-color: #ff000047 !important;
  color: #ffffff !important;
}

.table-striped > tbody > tr.account-row-inactive > *,
.account-list tbody > tr.account-row-inactive > *,
.staff-data-table tbody > tr.account-row-inactive > * {
  background-color: inherit !important;
  /*box-shadow: inset 3px 0 0 #94a3b8;*/
}

/* Informative table header icons */
.staff-th-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-th-label > i {
  opacity: 0.85;
  font-size: 0.85em;
}

/* Event Locks — high-contrast (outline-warning was hard to see) */
.btn-event-locks {
  background: #fff7ed;
  border: 1px solid #f59e0b;
  color: #9a3412;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.25);
}

.btn-event-locks:hover,
.btn-event-locks:focus {
  background: #f59e0b;
  border-color: #d97706;
  color: #1a1a1a;
}

.btn-event-locks:active {
  background: #d97706;
  border-color: #b45309;
  color: #fff;
}

/* Tabbed 3-ledger hub */
.ledger-tabs-bar {
  margin: 0 0 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.35rem 0.45rem 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ledger-tabs {
  border-bottom: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.ledger-tabs .nav-link {
  border: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  background: transparent;
}

.ledger-tabs .nav-link:hover {
  color: var(--vrx-chrome-dark);
  background: #f8fafc;
}

.ledger-tabs .nav-link.active {
  color: var(--vrx-chrome-text);
  background: var(--vrx-chrome);
}

.ledger-tabs .nav-link i {
  opacity: 0.9;
}

.settlement-tree-search {
  width: 100%;
}

.settlement-tree-search-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--vrx-chrome, #113a7c);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.settlement-tree-search-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 0;
}

.settlement-tree-search-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  color: var(--vrx-chrome-text, #fff);
  background: var(--vrx-chrome, #113a7c);
  flex: 0 0 auto;
}

.settlement-tree-search-badge i {
  font-size: 0.9rem;
}

.settlement-tree-search-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  line-height: 1.2;
}

.settlement-tree-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.settlement-tree-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.settlement-tree-search-input {
  height: 2.65rem;
  width: 100%;
  padding-left: 2.45rem !important;
  padding-right: 0.95rem;
  border: 1px solid #d0d7e2 !important;
  border-radius: 999px !important;
  font-size: 0.95rem;
  background: #f8fafc;
  box-shadow: none !important;
}

.settlement-tree-search-input:focus {
  background: #fff;
  border-color: var(--vrx-chrome, #113a7c) !important;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--vrx-chrome, #113a7c) 18%, transparent) !important;
}

.settlement-tree-search-input::placeholder {
  color: #94a3b8;
}

.settlement-tree-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: min(280px, 50vh);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.settlement-tree-search-results .list-group-item {
  border-color: #f1f5f9;
  padding: 0.7rem 0.9rem;
}

.settlement-tree-search-results .list-group-item:hover,
.settlement-tree-search-results .list-group-item:focus {
  background: #f1f5f9;
}

@media (max-width: 767.98px) {
  .settlement-tree-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 0.7rem;
  }

  .settlement-tree-search-heading {
    width: 100%;
  }

  .settlement-tree-search-title {
    font-size: 1rem;
  }

  .settlement-tree-search-input {
    height: 2.85rem;
    font-size: 1rem;
    border-radius: 0.65rem !important;
  }
}

#section-ledger-summary tr.staff-settlement-highlight > td {
  background: #fff7ed !important;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.ledger-summary-group-th i {
  margin-right: 0.35rem;
}

.report-card .report-table tbody td,
.report-card .staff-data-table tbody td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0 !important;
}

/* Deposit / Withdraw modal (PHP classic parity) */
#staff-dw-modal .modal-content.staff-dw-deposit {
  border: 2px solid #28a745;
}
#staff-dw-modal .modal-content.staff-dw-withdraw {
  border: 2px solid #dc3545;
}
#staff-dw-modal .modal-header {
  border-bottom: 0;
}
#staff-dw-modal .staff-dw-limit-badge {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}
#staff-dw-modal .staff-dw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}
#staff-dw-modal .staff-dw-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}
#staff-dw-modal .staff-dw-meta-item[hidden] {
  display: none !important;
}
#staff-dw-modal .staff-dw-meta strong {
  color: #0f172a;
}

/* Staff live bet Score/TV — mirror client-event media grid */
.staff-event-media-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: start;
}

.staff-event-media-grid > #staff-video-section {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.staff-event-media-grid > #staff-live-score-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  max-width: 100%;
}

.staff-event-media-grid > #staff-score-section {
  display: none !important;
}

.staff-event-media-grid.tv-off {
  grid-template-columns: 1fr;
}

.staff-event-media-grid.tv-off > #staff-video-section,
.staff-event-media-grid.tv-off > #staff-live-score-card,
.staff-event-media-grid.tv-off > #staff-score-section {
  grid-column: 1;
  grid-row: auto;
}

.staff-live-score-card {
  background: transparent;
  border: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  max-width: 100%;
}

.staff-live-score-card .vrx-lb {
  margin: 0;
}

.staff-live-score-card .vrx-score-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--vrx-score-embed-height, 118px);
  border: 0;
  background: #0b1016;
  overflow: hidden;
}

.staff-odds-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem;
}

/* Live bet workspace — side-by-side odds + bet lists (less vertical scroll) */
.staff-live-bet-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.staff-live-panel-head {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.staff-live-odds-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  align-items: stretch;
}

.staff-live-odds-row .staff-odds-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.staff-live-scroll {
  max-height: min(38vh, 360px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-live-odds-session .staff-live-scroll {
  max-height: min(42vh, 420px);
}

.staff-live-odds-session .staff-session-group {
  margin-bottom: 0.5rem;
}

.staff-live-odds-session .staff-session-group-body:not(.staff-session-odds-table) {
  grid-template-columns: 1fr;
}

.staff-live-odds-session .staff-session-row {
  grid-template-columns: 1.2fr 1fr;
  border-right: 0;
  padding: 0.4rem 0.5rem;
}

.staff-live-odds-session .staff-session-odds.is-compact-table {
  max-height: min(48vh, 520px);
}

.staff-live-bets-tabs {
  display: none;
  gap: 0.35rem;
}

.staff-live-bets-tab {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
}

.staff-live-bets-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.staff-live-bets-tab-pm {
  display: none;
}

.staff-live-tab-label-full {
  display: none;
}

.staff-live-tab-label-short {
  display: inline;
}

.staff-live-bets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.staff-live-toss-under-match {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.55rem;
  margin-top: 0.35rem;
}

.staff-live-prematch-under-match {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.55rem;
  margin-top: 0.35rem;
}

.staff-live-toss-under-match .staff-live-panel-head,
.staff-live-toss-under-match .staff-bet-accordion-toggle,
.staff-live-prematch-under-match .staff-live-panel-head,
.staff-live-prematch-under-match .staff-bet-accordion-toggle {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.staff-bet-accordion {
  min-width: 0;
}

.staff-bet-accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.1rem 0.4rem;
  text-align: left;
  cursor: pointer;
}

.staff-bet-accordion-toggle.staff-live-panel-head {
  margin-bottom: 0.35rem;
}

.staff-bet-accordion-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-weight: 800;
  color: #0f172a;
}

.staff-bet-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.staff-bet-accordion-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.staff-bet-accordion-chevron {
  color: #64748b;
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.staff-bet-accordion.is-open .staff-bet-accordion-chevron {
  transform: rotate(180deg);
}

.staff-bet-accordion-body.collapse:not(.show) {
  display: none;
}

.staff-live-bets-pane {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.staff-live-bets-pane .staff-live-scroll {
  max-height: min(46vh, 480px);
}

.staff-live-bets-session .staff-session-bet-card {
  margin-bottom: 0.55rem;
}

.staff-live-bets-session .staff-session-bet-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .staff-live-odds-row,
  .staff-live-bets-row {
    grid-template-columns: 1fr;
  }

  .staff-live-scroll,
  .staff-live-odds-session .staff-live-scroll,
  .staff-live-bets-pane .staff-live-scroll {
    max-height: none;
  }

  /* Match / toss / premarket lists stay a short scroll box. */
  .staff-live-bets-pane .staff-live-scroll {
    max-height: min(52vh, 480px);
  }

  /* Session bets: grow with cards — page scroll, not a nested box. */
  .staff-live-bets-session.staff-live-bets-pane .staff-live-scroll,
  #sports-betting-detail-session-markets.staff-live-scroll {
    max-height: none;
    overflow: visible;
  }

  .staff-session-bet-scroll {
    max-height: none;
    overflow-y: visible;
  }

  .staff-live-bets-tabs {
    display: flex;
  }

  .staff-live-bets-pane {
    display: none;
  }

  .staff-live-bets-pane.is-active {
    display: flex;
  }

  /*
   * Lakshy21 mobile — PHP live_bet style: full-width black stacked tabs
   * (Display Match Bet / Display Session Bet / Match & Session Plus Minus).
   * Active tab uses brand chrome + flash so the selection is obvious.
   */
  html[data-brand="lakshy21"] .staff-live-bets-tabs,
  body[data-brand="lakshy21"] .staff-live-bets-tabs {
    flex-direction: column;
    gap: 3px;
    margin-bottom: 0.65rem;
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab,
  body[data-brand="lakshy21"] .staff-live-bets-tab {
    display: block;
    position: relative;
    width: 100%;
    flex: none;
    background: #111;
    border: 2px solid #e5e7eb;
    border-radius: 0.2rem;
    color: #fff;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.28);
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease,
      filter 0.2s ease;
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab:not(.is-active),
  body[data-brand="lakshy21"] .staff-live-bets-tab:not(.is-active) {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.88);
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab:not(.is-active):active,
  body[data-brand="lakshy21"] .staff-live-bets-tab:not(.is-active):active {
    transform: scale(0.995);
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab.is-active,
  body[data-brand="lakshy21"] .staff-live-bets-tab.is-active {
    background: var(--vrx-chrome, #17423c);
    border-color: #fff;
    color: #fff;
    box-shadow:
      0 0 0 2px rgba(42, 107, 95, 0.4),
      0 8px 18px -8px rgba(15, 46, 42, 0.55);
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab.is-active::before,
  body[data-brand="lakshy21"] .staff-live-bets-tab.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7dd3c0;
    border-radius: 0.15rem 0 0 0.15rem;
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab.is-tab-flash,
  body[data-brand="lakshy21"] .staff-live-bets-tab.is-tab-flash {
    animation: staff-live-tab-flash 0.55s ease;
  }

  @keyframes staff-live-tab-flash {
    0% {
      transform: scale(1);
      filter: brightness(1);
    }
    40% {
      transform: scale(1.012);
      filter: brightness(1.22);
    }
    100% {
      transform: scale(1);
      filter: brightness(1);
    }
  }

  html[data-brand="lakshy21"] .staff-live-bets-tab-pm,
  body[data-brand="lakshy21"] .staff-live-bets-tab-pm {
    display: block;
  }

  html[data-brand="lakshy21"] .staff-live-tab-label-short,
  body[data-brand="lakshy21"] .staff-live-tab-label-short {
    display: none;
  }

  html[data-brand="lakshy21"] .staff-live-tab-label-full,
  body[data-brand="lakshy21"] .staff-live-tab-label-full {
    display: inline;
  }

  html[data-brand="lakshy21"]
    #section-sports-betting-detail:not([data-live-bet-view="pm"])
    .staff-live-pm-wrap,
  body[data-brand="lakshy21"]
    #section-sports-betting-detail:not([data-live-bet-view="pm"])
    .staff-live-pm-wrap {
    display: none !important;
  }

  html[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-bets-row,
  body[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-bets-row {
    display: none !important;
  }

  html[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-pm-wrap,
  body[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-pm-wrap {
    display: block !important;
    margin-top: 0;
    padding-top: 0.35rem;
    border-top: 0;
    animation: staff-live-pm-reveal 0.28s ease;
  }

  html[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-pm-wrap
    .report-stats,
  body[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-live-pm-wrap
    .report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  html[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-event-final-report
    .staff-final-totals-row,
  body[data-brand="lakshy21"]
    #section-sports-betting-detail[data-live-bet-view="pm"]
    .staff-event-final-report
    .staff-final-totals-row {
    background: #e2e8f0 !important;
    font-weight: 900;
  }

  @keyframes staff-live-pm-reveal {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.staff-settings-banner {
  background: #facc15;
  color: #111;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 2px;
}

.staff-market-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}

.staff-market-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.staff-market-card-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.staff-market-card.is-toss-market .staff-market-card-title {
  color: #0f172a;
}

.staff-market-card.is-pre-match-market .staff-market-card-title {
  color: #334155;
}

.staff-odds-group-accordion {
  margin-bottom: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  overflow: hidden;
}

.staff-odds-accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  border: 0;
  background: #0f172a;
  color: #fff;
  padding: 0.4rem 0.55rem;
  text-align: left;
  cursor: pointer;
}

.staff-odds-group-accordion[data-odds-accordion="toss"] .staff-odds-accordion-toggle {
  background: #1e293b;
}

.staff-odds-group-accordion[data-odds-accordion="prematch"] .staff-odds-accordion-toggle {
  background: #334155;
}

.staff-odds-accordion-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.staff-odds-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-odds-accordion-count {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 700;
}

.staff-odds-accordion-chevron {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.staff-odds-group-accordion.is-open .staff-odds-accordion-chevron {
  transform: rotate(180deg);
}

.staff-odds-accordion-body {
  padding: 0.4rem 0.4rem 0.15rem;
}

.staff-odds-accordion-body .staff-market-card {
  margin-bottom: 0.45rem;
}

.winner-with-trophy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

.winner-with-trophy .fa-trophy {
  color: #ca8a04;
}

.winner-with-trophy.is-cancelled .fa-times {
  color: #b45309;
}

.staff-toss-winner-chip {
  font-size: 0.78rem;
}

.bet-row-declared.is-toss-winner td {
  background: rgba(250, 204, 21, 0.12);
}

.staff-session-group.is-even-odd-market > .staff-session-group-head {
  background: #0f172a;
  color: #fff;
}

.staff-edit-minmax-btn {
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.staff-market-limits {
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-odds-suspended {
  color: #dc2626;
  font-weight: 800;
  font-size: 0.72rem;
}

.staff-session-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #fff;
}

.staff-session-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #facc15;
  color: #111;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.staff-session-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Non-root compact PHP-style session tables */
.staff-session-odds.is-compact-table .staff-session-group {
  margin-bottom: 0.45rem;
}

.staff-session-odds-table {
  width: 100%;
  margin: 0;
}

.staff-session-odds-table thead th {
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.4rem;
  border: 0;
  white-space: nowrap;
}

.staff-session-odds-table tbody td {
  padding: 0.28rem 0.4rem;
  vertical-align: middle;
  border-color: #e2e8f0;
  font-size: 0.78rem;
}

.staff-session-table-name {
  text-align: left;
  min-width: 0;
}

.staff-session-table-name-main {
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.25;
  color: #0b1220;
  letter-spacing: 0.01em;
}

.staff-session-table-name .staff-odds-exposure {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.staff-session-table-odds {
  width: 3.6rem;
  text-align: center !important;
  font-weight: 800;
  line-height: 1.1;
}

.staff-session-table-input {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.staff-session-table-vol {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}

.staff-session-table-row.is-suspended .staff-session-table-name-main {
  color: #64748b;
}

.staff-session-odds-table .staff-odds-lay {
  background: #ffe4ec;
}

.staff-session-odds-table .staff-odds-back {
  background: #e3f3ff;
}

.staff-session-odds-table thead th.staff-odds-lay {
  background: #be185d;
  color: #fff;
}

.staff-session-odds-table thead th.staff-odds-back {
  background: #1d4ed8;
  color: #fff;
}

.staff-live-odds-session .staff-session-odds.is-compact-table .staff-session-group-body {
  display: block;
}

.staff-session-group-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.staff-session-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.staff-session-name-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.staff-session-name {
  font-weight: 700;
  font-size: 0.78rem;
}

.staff-session-odds-box {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.staff-session-odds-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding: 0.15rem 0;
}

/* Min/Max belongs under Edit MinMax (.staff-market-limits), not over Yes/No. */
.staff-session-odds-head em {
  display: none;
}

.staff-session-odds-vals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 2.4rem;
  position: relative;
}

.staff-session-odds-vals > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.25rem;
}

.staff-session-odds-vals small {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.75;
}

.staff-session-odds-vals.is-suspended .staff-odds-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #dc2626;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .staff-session-group-body {
    grid-template-columns: 1fr;
  }
  .staff-session-row {
    grid-template-columns: 1fr;
    border-right: 0;
  }
}

.staff-odds-table th,
.staff-odds-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.staff-odds-runner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-odds-runner-name {
  font-weight: 700;
  color: #0f172a;
}

.staff-odds-exposure {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.92rem;
}

.staff-odds-exposure.text-success,
.staff-odds-exposure.is-win {
  color: #15803d !important;
}

.staff-odds-exposure.text-danger,
.staff-odds-exposure.is-loss {
  color: #b91c1c !important;
}

.staff-odds-back {
  background: #bfe3ff !important;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
}

.staff-odds-lay {
  background: #ffd3de !important;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
}

.staff-odds-rate {
  display: inline-block;
  min-width: 2.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.staff-session-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0;
}

.staff-session-exposure-foot {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem 0.55rem;
  padding: 0.4rem 0.5rem 0.45rem;
  border-top: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.staff-session-chips-foot {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.2rem;
}

.staff-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border-radius: 0.3rem;
  padding: 0.12rem 0.28rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.staff-session-chip.text-success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.staff-session-chip.text-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.staff-session-chip-rate {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 800;
  min-width: 1.15rem;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  padding: 0.06rem 0.28rem;
  background: #1e293b;
  line-height: 1.1;
  color: #fff;
}

.staff-session-chip-amt {
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.15;
}

.staff-session-bet-card {
  overflow: hidden;
  background: #fff;
  border-color: #cbd5e1;
}

.staff-session-bet-card.mb-3 {
  margin-bottom: 0.55rem !important;
}

.staff-session-bet-toggle {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-left: 3px solid #0284c7;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  text-align: left;
  cursor: pointer;
}

.staff-session-bet-toggle:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.staff-session-bet-head {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-session-bet-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45rem 0.65rem;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.3;
  width: 100%;
}

.staff-session-bet-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #0b1220;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.staff-eo-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.38rem;
  border-radius: 0.25rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  line-height: 1.1;
}

.staff-session-bet-section {
  margin: 0.55rem 0 0.25rem;
}

.staff-session-bet-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
}

.staff-session-bet-card.is-even-odd-market {
  border-color: rgba(15, 23, 42, 0.18);
}

.staff-session-bet-metrics {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.staff-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

.staff-metric-badge i {
  font-size: 0.58rem;
  opacity: 0.95;
}

.staff-metric-badge em {
  font-style: normal;
}

.staff-metric-badge.is-result {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.staff-metric-badge.is-result.is-declared {
  background: #ffedd5;
  color: #7c2d12;
  border-color: #f97316;
}

.staff-metric-badge.is-pl.is-win {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}

.staff-metric-badge.is-pl.is-loss {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fca5a5;
}

.staff-metric-badge.is-pl.is-flat {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.staff-session-bet-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.staff-session-bet-count {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.staff-session-bet-count i {
  font-size: 0.7rem;
  color: #475569;
}

.staff-session-bet-count em {
  font-style: normal;
}

.staff-session-bet-chevron {
  font-size: 0.78rem;
  color: #475569;
  transition: transform 0.15s ease;
}

.staff-session-bet-card.is-open .staff-session-bet-chevron {
  transform: rotate(180deg);
}

.staff-session-bet-card.is-declared .staff-session-bet-toggle {
  border-left-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom-color: #f6de9c;
}

.staff-session-bet-card.is-declared .staff-session-bet-name {
  color: #78350f;
}

.staff-session-bet-card.is-live .staff-session-bet-toggle {
  border-left-color: #0284c7;
}

.staff-session-bet-card.is-live .staff-session-bet-name {
  color: #0b1220;
}

.staff-session-pl-badge {
  font-variant-numeric: tabular-nums;
}

.staff-session-bet-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(42vh, 420px);
  overflow-y: auto;
}

.staff-session-bet-table {
  width: 100%;
  margin-bottom: 0;
}

.staff-session-bet-table th,
.staff-session-bet-table td {
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  vertical-align: middle;
  white-space: nowrap;
}

#section-sports-betting-detail .staff-col-client,
.staff-session-bet-table .staff-col-client {
  max-width: 14.5rem;
  min-width: 9.5rem;
  white-space: normal;
  line-height: 1.15;
  font-size: 0.72rem;
  vertical-align: middle;
}

.staff-client-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
}

.staff-bet-tree {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  max-width: 100%;
}

.staff-bet-tree-sep {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1;
  user-select: none;
}

.staff-bet-tree-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 6.5rem;
  padding: 0.08rem 0.28rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.28rem;
  background: #f8fafc;
  color: #0f172a;
  overflow: hidden;
}

.staff-bet-tree-chip.is-client {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.staff-bet-tree-role {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  text-transform: uppercase;
}

.staff-bet-tree-user {
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-bet-tree-more.is-quiet {
  opacity: 0.55;
}

.staff-livebet-tree-filter {
  /* reuse settlement-tree-search look; keep spacing on live-bet page */
}

.staff-livebet-tree-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.staff-livebet-tree-chip-label {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid #64748b;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.staff-team-badge.is-dragon {
  border-color: #b91c1c;
  background: #fee2e2;
  color: #7f1d1d;
}

.staff-team-badge.is-tiger {
  border-color: #15803d;
  background: #dcfce7;
  color: #14532d;
}

.staff-team-badge.is-tie {
  border-color: #a16207;
  background: #fef3c7;
  color: #713f12;
}

.staff-team-badge.is-andar,
.staff-team-badge.is-amar,
.staff-team-badge.is-yes,
.staff-team-badge.is-low,
.staff-team-badge.is-red {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
}

.staff-team-badge.is-bahar,
.staff-team-badge.is-anthony,
.staff-team-badge.is-no,
.staff-team-badge.is-high,
.staff-team-badge.is-black {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #4c1d95;
}

.staff-team-badge.is-akbar,
.staff-team-badge.is-even,
.staff-team-badge.is-odd,
.staff-team-badge.is-neutral {
  border-color: #475569;
  background: #e2e8f0;
  color: #0f172a;
}

.staff-identity-boxes {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
}

.staff-id-box,
.staff-name-box {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.1rem 0.35rem;
  border: 1.5px solid #334155;
  border-radius: 0.28rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-id-box {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
}

.staff-name-box {
  border-color: #64748b;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.staff-settlement-drill .staff-identity-boxes {
  pointer-events: none;
}

.staff-settlement-drill:hover .staff-id-box,
.staff-settlement-drill:hover .staff-name-box {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.15);
}

.staff-client-username {
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-client-tree-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.staff-client-tree-btn:hover,
.staff-client-tree-btn:focus,
.staff-client-tree-btn.is-open {
  color: #1d4ed8;
  background: #eff6ff;
}

.staff-client-tree-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.staff-client-tree-popover {
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-client-tree-popover li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.staff-client-tree-popover .tree-role {
  min-width: 1.6rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}

.staff-client-tree-popover .tree-name {
  font-weight: 700;
  color: #0f172a;
}

/* Sticky upline panel (body-level; JS anchors to the … trigger). */
.staff-client-tree-panel {
  position: fixed;
  z-index: 1090;
  left: 0;
  top: 0;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: min(50vh, 22rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.staff-client-tree-panel.d-none {
  display: none !important;
}

.staff-client-tree-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.staff-client-tree-panel-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-client-tree-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.staff-client-tree-panel-close:hover,
.staff-client-tree-panel-close:focus {
  color: #0f172a;
  background: #e2e8f0;
}

.staff-client-tree-panel-body {
  padding: 0.55rem 0.75rem 0.7rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-rate-with-size {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.staff-session-bet-table .staff-bet-rate {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #0f172a;
}

.staff-size-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.08rem 0.3rem;
  border: 1.5px solid #334155;
  border-radius: 0.28rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.staff-session-bet-table .staff-bet-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #0f172a;
}

@media (max-width: 991.98px) {
  .staff-session-bet-toggle {
    padding: 0.65rem 0.7rem;
  }

  .staff-session-bet-table th,
  .staff-session-bet-table td {
    padding: 0.45rem 0.42rem;
    font-size: 0.84rem;
    color: #0f172a;
  }

  .staff-session-bet-table thead th {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--vrx-table-head-text, #f8fafc) !important;
    background: linear-gradient(
      180deg,
      var(--vrx-table-head-bg, #1e293b) 0%,
      var(--vrx-table-head-bg-2, #0f172a) 100%
    ) !important;
    border: 1px solid var(--vrx-table-head-border, #334155) !important;
    border-bottom: 2px solid var(--vrx-table-accent, #94a3b8) !important;
    padding: 0.55rem 0.42rem;
  }

  .staff-session-bet-table .staff-col-client {
    max-width: 8.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .staff-session-bet-name {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: normal;
    color: #0b1220;
  }

  .staff-session-bet-title {
    gap: 0.4rem 0.55rem;
  }

  .staff-session-bet-toggle {
    padding: 0.65rem 0.75rem;
  }

  .staff-metric-badge {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
  }

  .staff-metric-badge i {
    font-size: 0.74rem;
  }

  .staff-session-bet-count {
    font-size: 0.8rem;
    color: #1e293b;
  }

  .staff-session-chips {
    gap: 0.28rem;
    margin-top: 0 !important;
  }

  .staff-session-exposure-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.55rem 0.55rem 0.6rem;
    border-top: 1px solid #94a3b8;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  }

  .staff-session-chips-foot {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.15rem, 1fr));
    gap: 0.22rem;
  }

  .staff-session-chip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.12rem;
    min-height: 2.2rem;
    padding: 0.2rem 0.22rem;
    border-radius: 0.36rem;
    font-size: 0.7rem;
    border-width: 1px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  .staff-session-chip-rate {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 0.62rem;
    padding: 0.08rem 0.16rem;
    border-radius: 0.24rem;
    text-align: center;
  }

  .staff-session-chip-amt {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .staff-session-table-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .staff-session-table-name-main {
    font-size: 0.84rem;
  }

  .staff-session-table-name .staff-odds-exposure {
    margin-top: 0;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.12rem 0.35rem;
    border-radius: 0.3rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
  }

  .staff-session-table-name .staff-odds-exposure.text-success,
  .staff-session-table-name .staff-odds-exposure.is-win {
    background: #dcfce7;
    border-color: #86efac;
  }

  .staff-session-table-name .staff-odds-exposure.text-danger,
  .staff-session-table-name .staff-odds-exposure.is-loss {
    background: #fee2e2;
    border-color: #fca5a5;
  }

  .staff-session-bet-table .staff-col-created {
    max-width: 5.25rem;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.72rem;
    color: #475569;
    font-weight: 600;
  }

  .staff-session-bet-table .staff-bet-rate,
  .staff-session-bet-table .staff-bet-amount {
    font-size: 0.92rem;
    font-weight: 900;
  }

  .staff-bet-action {
    min-width: 2.5rem;
    font-size: 0.78rem;
    padding: 0.18rem 0.4rem;
  }

  .staff-id-box,
  .staff-name-box {
    font-size: 0.78rem;
    padding: 0.16rem 0.4rem;
  }

  .bet-status-chip {
    min-width: 3rem;
    padding: 0.18rem 0.45rem;
    font-size: 0.72rem;
  }

  /* Match/toss/session live bet lists — readable on phones */
  #section-sports-betting-detail .report-table th,
  #section-sports-betting-detail .report-table td {
    padding: 0.48rem 0.45rem;
    font-size: 0.84rem;
  }

  #section-sports-betting-detail .report-table tbody td {
    color: #0f172a;
  }

  #section-sports-betting-detail .report-table thead th,
  #section-sports-betting-detail .staff-data-table thead th {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--vrx-table-head-text, #f8fafc) !important;
    background: linear-gradient(
      180deg,
      var(--vrx-table-head-bg, #1e293b) 0%,
      var(--vrx-table-head-bg-2, #0f172a) 100%
    ) !important;
    border: 1px solid var(--vrx-table-head-border, #334155) !important;
    border-bottom: 2px solid var(--vrx-table-accent, #94a3b8) !important;
    white-space: nowrap;
    padding: 0.55rem 0.45rem;
  }

  #section-sports-betting-detail .staff-bet-amount,
  #section-sports-betting-detail .report-table .staff-bet-amount,
  #section-sports-betting-detail .report-table td:nth-child(2),
  #section-sports-betting-detail .report-table td:nth-child(3) {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  #section-sports-betting-detail .report-stats .stat-chip {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 0.5rem;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
  }

  #section-sports-betting-detail .report-stats .stat-chip .text-success,
  #section-sports-betting-detail .report-stats .stat-chip.text-success,
  #section-sports-betting-detail .stat-chip .text-success {
    color: #15803d !important;
    font-weight: 900;
  }

  #section-sports-betting-detail .report-stats .stat-chip .text-danger,
  #section-sports-betting-detail .report-stats .stat-chip.text-danger,
  #section-sports-betting-detail .stat-chip .text-danger {
    color: #b91c1c !important;
    font-weight: 900;
  }

  #section-sports-betting-detail .stat-chip-label {
    display: inline;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  /* Match & Session +/- report at page end */
  #section-sports-betting-detail .staff-live-pm-wrap {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 2px solid #cbd5e1;
  }

  #section-sports-betting-detail .staff-live-pm-wrap .report-stats {
    gap: 0.5rem;
    margin-bottom: 0.85rem !important;
  }

  #section-sports-betting-detail .staff-event-final-report {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.7rem 0.55rem 0.55rem;
  }

  #section-sports-betting-detail .staff-event-final-report > h6 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem !important;
    letter-spacing: 0.01em;
  }

  #section-sports-betting-detail .staff-event-final-report .report-table th,
  #section-sports-betting-detail .staff-event-final-report .report-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  #section-sports-betting-detail .staff-event-final-report .report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--vrx-table-head-text, #f8fafc) !important;
    background: linear-gradient(
      180deg,
      var(--vrx-table-head-bg, #1e293b) 0%,
      var(--vrx-table-head-bg-2, #0f172a) 100%
    ) !important;
    border: 1px solid var(--vrx-table-head-border, #334155) !important;
    border-bottom: 2px solid var(--vrx-table-accent, #94a3b8) !important;
  }

  #section-sports-betting-detail .staff-event-final-report .report-table tbody td:first-child,
  #section-sports-betting-detail .staff-event-final-report .report-table tfoot td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    font-weight: 800;
    color: #0f172a;
    max-width: 7.5rem;
    white-space: normal;
    line-height: 1.25;
    box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.18);
  }

  #section-sports-betting-detail .staff-event-final-report .report-table tfoot td {
    background: #e2e8f0;
    font-weight: 900;
    border-top: 2px solid #94a3b8;
  }

  #section-sports-betting-detail .staff-event-final-report .report-table tfoot td:first-child {
    background: #e2e8f0;
  }

  #section-sports-betting-detail .staff-event-final-report .text-success {
    color: #15803d !important;
    font-weight: 900;
  }

  #section-sports-betting-detail .staff-event-final-report .text-danger {
    color: #b91c1c !important;
    font-weight: 900;
  }

  #section-sports-betting-detail .staff-live-bets-pane {
    padding: 0.65rem 0.55rem;
    border-color: #cbd5e1;
    background: #fff;
  }

  #section-sports-betting-detail .staff-live-bets-tab {
    font-size: 0.84rem;
    padding: 0.55rem 0.5rem;
  }

  #section-sports-betting-detail .staff-session-bet-card {
    border-width: 1.5px;
    border-color: #94a3b8;
  }

  #section-sports-betting-detail .staff-session-bet-toggle {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  }

  #section-sports-betting-detail .staff-session-bet-card.is-declared .staff-session-bet-toggle {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  }

  #section-sports-betting-detail .staff-session-bet-name {
    font-size: 0.98rem;
    color: #0b1220;
  }

  #section-sports-betting-detail .staff-session-bet-card.is-declared .staff-session-bet-name {
    color: #78350f;
  }

  #section-sports-betting-detail .staff-session-pl-badge.is-win,
  #section-sports-betting-detail .staff-metric-badge.is-pl.is-win {
    background: #bbf7d0;
    color: #14532d;
    border-color: #4ade80;
  }

  #section-sports-betting-detail .staff-session-pl-badge.is-loss,
  #section-sports-betting-detail .staff-metric-badge.is-pl.is-loss {
    background: #fecaca;
    color: #7f1d1d;
    border-color: #f87171;
  }
}

/* Live-bet end report: readable +/- amounts on all viewports */
#section-sports-betting-detail .staff-live-pm-wrap .stat-chip .text-success,
#section-sports-betting-detail .staff-event-final-report .text-success {
  color: #15803d !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#section-sports-betting-detail .staff-live-pm-wrap .stat-chip .text-danger,
#section-sports-betting-detail .staff-event-final-report .text-danger {
  color: #b91c1c !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.staff-final-report-panel {
  position: relative;
}

.staff-final-report-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-final-end-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.staff-final-totals-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-top: 2px solid #94a3b8;
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.35);
  padding: 0;
}

body.has-final-totals-fixed {
  padding-bottom: 5.5rem;
}

@media (min-width: 992px) {
  body:not(.staff-sidebar-collapsed) .staff-final-totals-sticky {
    left: var(--staff-sidebar-width, 250px);
  }
}

.staff-final-sticky-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding: 0 0.75rem;
}

.staff-final-totals-sticky .staff-final-sticky-table {
  margin: 0;
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.staff-final-totals-sticky .staff-final-sticky-table thead th {
  position: static;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--vrx-table-head-text, #f8fafc) !important;
  background: linear-gradient(
    180deg,
    var(--vrx-table-head-bg, #1e293b) 0%,
    var(--vrx-table-head-bg-2, #0f172a) 100%
  ) !important;
  border: 1px solid var(--vrx-table-head-border, #334155) !important;
  border-bottom: 2px solid var(--vrx-table-accent, #94a3b8) !important;
  padding: 0.45rem 0.4rem;
}

.staff-final-totals-sticky .staff-final-sticky-table tfoot td {
  background: #e2e8f0;
  font-weight: 900;
  padding: 0.45rem 0.4rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-top: 2px solid #94a3b8;
}

/* Hide in-table TOTAL while the fixed clone is shown — keep layout height so
   the page does not jump under the pinned bar. */
#staff-final-report-panel
  #sports-betting-detail-final-foot.is-foot-hidden-while-fixed {
  visibility: hidden;
  pointer-events: none;
}

#staff-final-report-panel
  #sports-betting-detail-final-foot.is-foot-hidden-while-fixed
  td {
  visibility: hidden;
  border-color: transparent !important;
  color: transparent !important;
  background: transparent !important;
}

.staff-bet-action {
  display: inline-block;
  min-width: 2.6rem;
  text-align: center;
  border-radius: 0.35rem;
  padding: 0.15rem 0.4rem;
  font-weight: 800;
  font-size: 0.75rem;
}

.staff-action-yes {
  background: #1d4ed8;
  color: #fff;
}

.staff-action-no {
  background: #be185d;
  color: #fff;
}

/* EO action — text accent next to boxed rate (parity with client live view) */
.staff-eo-side-text {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: none;
}

.staff-eo-side-text.is-even {
  color: #1d4ed8;
}

.staff-eo-side-text.is-odd {
  color: #be185d;
}

.staff-session-odds-vals .staff-odds-back,
.staff-session-odds-vals .staff-odds-lay {
  font-size: 1rem;
}

.staff-media-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.staff-video-wrap {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 16 / 9;
}

.staff-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.staff-score-board {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0;
  background: #2f6b2f;
  color: #fff;
  min-height: 0;
  overflow: hidden;
}

.staff-score-board .text-muted {
  color: #94a3b8 !important;
  padding: 0.75rem;
}

.score-ref-card {
  border-radius: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.score-ref-card--pitch {
  position: relative;
  background-color: #2f6b2f;
  background-image: linear-gradient(180deg, #3a7a36 0%, #2f6b2f 50%, #276027 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.score-ref-card--pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--score-pitch-overlay, none);
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: min(100%, 420px) 40px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.score-ref-card--pitch > * {
  position: relative;
  z-index: 1;
}

.score-ref-sides {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 2px;
  background: rgba(8, 14, 8, 0.55);
}

.score-ref-side {
  flex: 1 1 50%;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #f5f5f5;
  min-width: 0;
}

.score-ref-side-left {
  justify-content: flex-start;
  text-align: left;
}

.score-ref-side-right {
  justify-content: flex-end;
  text-align: right;
}

.score-ref-team {
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.score-ref-side-score {
  font-weight: 700;
  font-size: 13px;
  color: #e8f0d8;
}

.score-ref-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 6px;
  background: rgba(8, 14, 8, 0.55);
}

.score-ref-crr {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 11px;
}

.score-ref-bowler {
  color: #cbd5e1;
  font-size: 11px;
}

.score-ref-bowler strong {
  color: #fff;
  font-weight: 700;
}

.score-ref-foot {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid rgba(191, 219, 254, 0.12);
}

.score-ref-balls-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: rgba(12, 18, 12, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.score-ref-overs {
  display: none;
}

.score-ref-balls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.score-ref-over-balls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.score-ref-over-sep {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  color: rgba(248, 250, 252, 0.7);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.score-ball {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #0f172a;
  background: #d1d5db;
  text-transform: uppercase;
  box-sizing: border-box;
}

.score-ball-dot {
  min-width: 22px;
  width: auto;
  height: 22px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #64748b;
  color: #f8fafc;
  font-size: 11px;
}

.score-ball-pending {
  min-width: 14px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1.5px dashed rgba(148, 163, 184, 0.75);
  background: transparent;
  color: transparent;
  font-size: 0;
}

.score-ball-four {
  background: #2563eb;
  color: #fff;
  border-color: rgba(191, 219, 254, 0.65);
}

.score-ball-six {
  background: #7c3aed;
  color: #fff;
  border-color: rgba(221, 214, 254, 0.65);
}

.score-ball-wicket {
  background: #f8fafc;
  color: #b91c1c;
  border-color: #fecaca;
}

.score-ball-double-wicket {
  background: #b91c1c;
  color: #fff;
  border-color: #fecaca;
}

.score-ball-wide,
.score-ball-noball {
  background: #f59e0b;
  color: #111827;
  border-color: rgba(253, 230, 138, 0.8);
}

.score-ball-default {
  background: #e2e8f0;
  color: #0f172a;
}

.score-ref-pitch {
  display: none;
}

.score-ref-pitch::before {
  display: none;
}

.score-ref-pitch-overlay {
  display: none;
}

.score-ref-batters-wrap {
  margin: 0;
  padding: 2px 8px 2px;
  background: rgba(8, 14, 8, 0.28);
}

.score-ref-batters {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 12px;
  margin: 0;
}

.score-ref-batters th,
.score-ref-batters td {
  padding: 1px 6px;
  text-align: right;
  font-weight: 700;
  line-height: 1.2;
}

.score-ref-batters th:first-child,
.score-ref-batters td:first-child {
  text-align: left;
}

.score-ref-batters thead th {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.score-ref-batter-name {
  font-weight: 700;
  color: #fff;
}

.score-ref-bat-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: #f8fafc;
  vertical-align: -1px;
}

.score-ref-onstrike {
  margin-left: 2px;
  color: #fff;
  font-weight: 900;
}

.score-ref-message {
  margin: 0;
  padding: 6px 10px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 600;
  background: rgba(8, 14, 8, 0.55);
}

/* PitchWire rain / delay / break — inside staff live scorebox.
   Static (no marquee): score WS re-renders ~1s and would reset animation. */
.score-status-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  background: #fff4e5;
  color: #c2410c;
  border-top: 1px solid rgba(234, 88, 12, 0.35);
  border-bottom: 1px solid rgba(234, 88, 12, 0.35);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  min-width: 0;
}

.score-status-alert.sev-critical {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.35);
}

.score-status-alert.sev-info {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
}

.score-status-alert-label {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.score-status-alert.sev-critical .score-status-alert-label {
  background: #7f1d1d;
}

.score-status-alert.sev-info .score-status-alert-label {
  background: #1e3a8a;
}

.score-status-alert-msg {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .staff-event-media-grid {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .staff-event-media-grid > #staff-video-section,
  .staff-event-media-grid > #staff-live-score-card,
  .staff-event-media-grid > #staff-score-section {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    min-width: 0;
  }

  .score-ref-team {
    font-size: 16px;
  }

  .score-ref-side-score {
    font-size: 13px;
  }

  .score-ball {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .score-ball-dot {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .score-ball-pending {
    min-width: 12px;
    width: 12px;
    height: 12px;
  }
}

/* Login Report — active sessions (PHP parity) */
#login-report-table thead th {
  white-space: nowrap;
  font-size: 0.8rem;
}

#login-report-table thead th .fa {
  opacity: 0.75;
}

#login-report-table tbody tr.login-report-active-row,
#login-report-table tbody tr.login-report-active-row > td {
  background-color: rgba(25, 135, 84, 0.12) !important;
}

#login-report-table tbody tr.login-report-active-row:hover > td {
  background-color: rgba(25, 135, 84, 0.18) !important;
}

/* M.COM column — casino / matka badges beside match % */
.staff-comm-match {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-right: 0.25rem;
}

.staff-comm-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  vertical-align: middle;
}

.staff-comm-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.staff-comm-badge-casino {
  color: #0f4c81;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
}

.staff-comm-badge-matka {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

/* Parent share / commission caps on create & edit forms */
.staff-parent-cap {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.staff-parent-cap-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.staff-parent-cap-empty {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.staff-parent-cap-limit {
  color: #334155;
  background: #e2e8f0;
  border: 1px solid #94a3b8;
}

.staff-parent-cap-share {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.staff-parent-cap-match {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.staff-parent-cap-session {
  color: #6d28d9;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
}

.staff-parent-cap-casino {
  color: #0f4c81;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
}

.staff-parent-cap-matka {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

/* Game Control modal — status toggles (label = current state + icon) */
.staff-gc-table {
  margin-bottom: 0;
}

.staff-gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 7.25rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 0.35rem;
  background: #1f2a37;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.staff-gc-btn i {
  font-size: 0.9rem;
  line-height: 1;
}

.staff-gc-btn:hover {
  color: #fff;
}

.staff-gc-btn:active {
  transform: scale(0.98);
}

.staff-gc-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Access: Enabled (green) / Disabled (red) */
.staff-gc-btn.js-gc-disable.is-off,
.staff-gc-btn.js-gc-disable:not(.is-active) {
  background: #15803d;
}
.staff-gc-btn.js-gc-disable.is-off:hover,
.staff-gc-btn.js-gc-disable:not(.is-active):hover {
  background: #166534;
}
.staff-gc-btn.is-active.js-gc-disable {
  background: #b91c1c;
}
.staff-gc-btn.is-active.js-gc-disable:hover {
  background: #991b1b;
}

/* Bet lock: Unlocked (slate) / Locked (amber) */
.staff-gc-btn.js-gc-lock.is-off,
.staff-gc-btn.js-gc-lock:not(.is-active) {
  background: #334155;
}
.staff-gc-btn.js-gc-lock.is-off:hover,
.staff-gc-btn.js-gc-lock:not(.is-active):hover {
  background: #1e293b;
}
.staff-gc-btn.is-active.js-gc-lock {
  background: #b45309;
}
.staff-gc-btn.is-active.js-gc-lock:hover {
  background: #92400e;
}

/* Engaged bets modal (client list exposure click) */
.staff-engaged-modal {
  border: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

/* Client list: free / current limit below zero */
.table-striped > tbody > tr.vrx-neg-limit > *,
.staff-data-table tbody > tr.vrx-neg-limit > *,
tr.vrx-neg-limit > td {
  background: #f8d7da !important;
}
.table-striped > tbody > tr.vrx-neg-limit:hover > *,
.staff-data-table tbody > tr.vrx-neg-limit:hover > *,
tr.vrx-neg-limit:hover > td {
  background: #f1c0c4 !important;
}

/* Client list: Engaged 0 but undeclared/cutting bets still open */
.staff-row-pending-zero-engaged > td {
  background: rgba(245, 158, 11, 0.14) !important;
}
.staff-row-pending-zero-engaged:hover > td {
  background: rgba(245, 158, 11, 0.22) !important;
}
.staff-engaged-zero-pending {
  color: #b45309 !important;
}
.staff-pending-bet-badge {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  background: #f59e0b;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.staff-list-book-filters {
  margin-right: 0;
}

.staff-list-book-filters .staff-list-status-tab.active[data-book-filter="exposure"] {
  background: #b45309;
  color: #fff;
}

.staff-list-book-filters .staff-list-status-tab.active[data-book-filter="declared-pending"] {
  background: #9a3412;
  color: #fff;
}

.staff-declared-pending-mark {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  background: #c2410c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.staff-row-declared-pending > td {
  box-shadow: inset 3px 0 0 #c2410c;
}

.staff-engaged-modal-header {
  background: #0f172a;
  color: #fff;
  border-bottom: 0;
  padding: 0.85rem 1.1rem;
}

.staff-engaged-modal-header .modal-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.staff-engaged-modal-header .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.85;
}

.staff-engaged-modal-body {
  padding: 0;
  background: #f8fafc;
}

.staff-engaged-table {
  margin: 0;
  background: #fff;
}

.staff-engaged-table thead th {
  background: #1e293b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.staff-engaged-table tbody td {
  padding: 0.55rem 0.85rem;
  border-color: #e2e8f0;
  font-size: 0.86rem;
  vertical-align: middle;
}

.staff-engaged-event-row td {
  padding: 0 !important;
  border-top: 0;
  background: #e2e8f0;
}

.staff-engaged-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, #334155 0%, #475569 100%);
  color: #fff;
}

.staff-engaged-event-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.staff-engaged-event-time {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.staff-engaged-event-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  max-width: 55%;
}

.staff-engaged-market-badge {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.01em;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.staff-engaged-split td {
  padding: 0.35rem !important;
  background: #cbd5e1;
  border: 0;
}

.staff-engaged-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.staff-engaged-rate {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.staff-engaged-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.staff-engaged-action .staff-bet-action {
  min-width: 2.8rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.staff-engaged-side {
  display: inline-flex;
  align-items: center;
  max-width: 12rem;
  padding: 0.22rem 0.5rem;
  border-radius: 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-engaged-date {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}

.staff-engaged-modal-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.65rem 1rem;
}
