/* Админ-панель Bet X Run Club — компактный sidebar */
:root {
  --adm-bg: #07080d;
  --adm-surface: #12151f;
  --adm-border: rgba(226, 232, 240, 0.12);
  --adm-text: #f1f5f9;
  --adm-muted: #94a3b8;
  --adm-gold: #fde047;
  --adm-green: #34d399;
  --adm-red: #f43f5e;
  --adm-radius: 12px;
  --adm-sidebar-w: 220px;
}

* { box-sizing: border-box; }

body.adm-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--adm-bg);
  color: var(--adm-text);
  line-height: 1.45;
  font-size: 14px;
}

.adm-hidden { display: none !important; }

.adm-x { color: #e2e8f0; }

/* Login */
.adm-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.adm-login-brand { margin-bottom: 20px; }
.adm-login-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.adm-login-brand p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-muted);
}

.adm-login-max {
  width: 100%;
  max-width: 380px;
}

/* App shell */
.adm-app {
  display: flex;
  min-height: 100vh;
}

.adm-sidebar {
  width: var(--adm-sidebar-w);
  flex-shrink: 0;
  background: #0c0e14;
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.2s ease;
}

.adm-sidebar-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--adm-border);
}

.adm-sidebar-logo {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.adm-sidebar-sub {
  font-size: 11px;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.adm-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--adm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.adm-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--adm-text);
}

.adm-nav-item.is-active {
  background: rgba(52, 211, 153, 0.12);
  color: var(--adm-green);
}

.adm-curtain-wrap {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-nav-curtain-toggle {
  justify-content: flex-start;
}

.adm-nav-curtain-label { flex: 1; }

.adm-curtain-chevron {
  font-size: 11px;
  color: var(--adm-muted);
  transition: transform 0.2s ease;
}

.adm-curtain-wrap.is-open .adm-curtain-chevron {
  transform: rotate(90deg);
}

.adm-curtain-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px 8px;
  margin-left: 6px;
  border-left: 2px solid rgba(52, 211, 153, 0.2);
}

.adm-curtain-panel[hidden] { display: none !important; }

.adm-nav-sub {
  padding: 7px 10px 7px 8px;
  font-size: 12px;
  font-weight: 600;
}

.adm-nav-sub .adm-nav-icon {
  font-size: 12px;
  width: 16px;
}

.adm-nav-sub.is-active {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.adm-curtain-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(6px);
}

.adm-curtain-gate-card {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: linear-gradient(145deg, rgba(28, 34, 50, 0.98), rgba(14, 16, 24, 0.99));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.adm-curtain-gate-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.adm-main.is-settings-view .adm-content {
  border-left: 3px solid rgba(52, 211, 153, 0.35);
}

.adm-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.adm-sidebar-foot {
  padding: 10px 10px 14px;
  border-top: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-sidebar-link {
  font-size: 12px;
  color: var(--adm-muted);
  text-decoration: none;
  text-align: center;
}

.adm-sidebar-link:hover { color: var(--adm-green); }

.adm-main {
  flex: 1;
  margin-left: var(--adm-sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(7, 8, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--adm-border);
}

.adm-topbar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.adm-status-line {
  margin: 0;
  font-size: 12px;
  color: #a7f3d0;
  max-width: 40ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-monitor-banner {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.adm-monitor-banner.is-warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.35);
  color: #fde68a;
}

.adm-monitor-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.adm-sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  background: var(--adm-surface);
  color: var(--adm-text);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.adm-content {
  padding: 14px 16px 24px;
  flex: 1;
}

.adm-view { display: none; }
.adm-view.is-active { display: block; }

/* Cards */
.adm-card {
  background: linear-gradient(145deg, rgba(28, 34, 50, 0.95), rgba(14, 16, 24, 0.98));
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.adm-card-compact { padding: 14px; }

.adm-card h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.adm-card-head h2 { margin: 0; }

.adm-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--adm-muted);
}

.adm-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-stat {
  flex: 1 1 140px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.25);
}

.adm-stat-label {
  display: block;
  font-size: 11px;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.adm-stat strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--adm-green);
}

/* Forms */
.adm-form-grid {
  display: grid;
  gap: 12px;
}

.adm-form-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.adm-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.adm-field input[type="password"],
.adm-field input[type="text"],
.adm-field input[type="number"],
.adm-field textarea,
.adm-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--adm-text);
  font-size: 13px;
  font-family: inherit;
}

.adm-field textarea { min-height: 56px; resize: vertical; }

.adm-field-wide { grid-column: 1 / -1; }

.adm-field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-field-inline label { margin: 0; white-space: nowrap; }
.adm-field-inline input { max-width: 100px; }

.adm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.adm-row:last-child { border-bottom: none; padding-bottom: 0; }

.adm-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.adm-toggle input { opacity: 0; width: 0; height: 0; }

.adm-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #334155;
  cursor: pointer;
  transition: background 0.2s;
}

.adm-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #f1f5f9;
  border-radius: 50%;
  transition: transform 0.2s;
}

.adm-toggle input:checked + .adm-toggle-slider {
  background: linear-gradient(90deg, #059669, var(--adm-green));
}

.adm-toggle input:checked + .adm-toggle-slider::before {
  transform: translateX(20px);
}

.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.adm-actions-compact { margin-top: 8px; }

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.adm-btn-sm { padding: 6px 10px; font-size: 12px; }
.adm-btn-block { width: 100%; }

.adm-btn-primary {
  background: linear-gradient(180deg, #6ee7b7 0%, var(--adm-green) 45%, #059669 100%);
  color: #022c22;
}

.adm-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--adm-border);
}

.adm-btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.adm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.adm-err { color: #fecdd3; font-size: 13px; margin-top: 8px; }

.adm-subh {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.adm-diag {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #fde68a;
  background: rgba(253, 224, 71, 0.08);
  border: 1px solid rgba(253, 224, 71, 0.22);
  border-radius: 8px;
}

.adm-diag-sm { font-size: 11px; }

.adm-muted-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--adm-muted);
}

/* Tables */
.adm-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-table-compact th,
.adm-table-compact td {
  padding: 7px 10px;
}

.adm-table th,
.adm-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.adm-table th {
  color: var(--adm-muted);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
}

.adm-table tbody tr:last-child td { border-bottom: none; }

.adm-table-actions {
  text-align: right;
  white-space: nowrap;
}

.adm-bal-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

.adm-bal-input {
  width: 90px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--adm-text);
  font-size: 13px;
  font-family: inherit;
}

.adm-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.adm-inline-form-compact .adm-field { flex: 1 1 120px; min-width: 100px; margin: 0; }

.adm-user-bar {
  font-size: 12px;
  color: var(--adm-muted);
  text-align: center;
  line-height: 1.35;
}

.adm-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--adm-border);
}

.adm-role-admin { color: #fde68a; border-color: rgba(253, 224, 71, 0.35); background: rgba(253, 224, 71, 0.08); }
.adm-role-operator { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); background: rgba(59, 130, 246, 0.1); }
.adm-role-agent { color: #86efac; border-color: rgba(134, 239, 172, 0.35); background: rgba(34, 197, 94, 0.08); }
.adm-role-referral { color: #f9a8d4; border-color: rgba(249, 168, 212, 0.35); background: rgba(236, 72, 153, 0.08); }

.adm-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.adm-vip-on {
  color: #1a1200;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-color: rgba(253, 224, 71, 0.55);
}

.adm-vip-off {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
}

.adm-player-vip-block {
  margin-bottom: 14px;
}

.adm-player-vip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.adm-bxr-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #bfdbfe;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.adm-bxr-badge small {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.adm-player-bxr-block {
  margin-bottom: 14px;
}

.adm-player-wallet-adjust {
  margin-bottom: 14px;
}

.adm-player-wallet-balance {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

.adm-player-wallet-balance strong {
  color: #86efac;
  font-size: 15px;
}

.adm-player-wallet-adjust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.adm-wallet-adjust-form {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
}

.adm-wallet-adjust-sub {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.adm-btn-danger {
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.adm-btn-danger:hover {
  background: rgba(248, 113, 113, 0.12) !important;
}

.adm-player-bxr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.adm-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.adm-inline-label input {
  width: 110px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
}

.adm-pay-methods { display: flex; flex-direction: column; gap: 0; }

.adm-pay-method-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-pay-en-label,
.adm-pay-wd-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--adm-muted);
  white-space: nowrap;
}

.adm-pay-wd-label { color: #a7f3d0; }

.adm-pay-method-row input[type="text"] {
  flex: 1 1 100px;
  min-width: 80px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--adm-text);
  font-size: 12px;
}

.adm-slots-list { display: flex; flex-direction: column; gap: 8px; }

.adm-slot-row {
  display: grid;
  grid-template-columns: auto 1fr 80px 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--adm-border);
  background: rgba(7, 8, 13, 0.35);
}

.adm-slot-row label.adm-slot-en {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--adm-muted);
  margin-bottom: 4px;
}

.adm-slot-row input[type="text"],
.adm-slot-row input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  background: rgba(7, 8, 13, 0.5);
  color: var(--adm-text);
  font: inherit;
  font-size: 12px;
}

.adm-slot-row small { display: block; margin-top: 2px; font-size: 10px; color: var(--adm-muted); }

.adm-stats-row-mini {
  margin-bottom: 12px;
}

.adm-stats-row-mini .adm-stat {
  flex: 1 1 120px;
  padding: 10px 12px;
}

.adm-stats-row-mini .adm-stat strong {
  font-size: 1rem;
}

.adm-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.adm-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adm-dash-period {
  margin: 0;
  font-size: 13px;
  color: var(--adm-muted);
}

.adm-audience-section {
  margin-bottom: 14px;
}

.adm-audience-title {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-kpi-audience {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(129, 140, 248, 0.08);
}

.adm-kpi-audience .adm-kpi-value { color: #a5b4fc; }

.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.adm-telegram-kpis {
  margin-bottom: 8px;
}

.adm-kpi {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.28);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-kpi-balance {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.adm-kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-muted);
  line-height: 1.3;
}

.adm-kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-kpi-balance .adm-kpi-value { color: var(--adm-green); }

.adm-kpi-ps {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.adm-kpi-ps .adm-kpi-value { color: #7dd3fc; }

.adm-kpi-expense {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

.adm-kpi-expense .adm-kpi-value { color: #fda4af; }

.adm-kpi-hint {
  font-size: 11px;
  color: var(--adm-muted);
  margin-top: auto;
}

.adm-daily-report-text {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}

.adm-report-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.35);
}

.adm-report-pdf-root {
  position: fixed;
  left: 0;
  top: 0;
  width: 794px;
  max-width: 100vw;
  padding: 28px 32px;
  background: #ffffff !important;
  color: #111827 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px;
  line-height: 1.45;
  z-index: 2147483647;
  box-sizing: border-box;
}

.adm-report-pdf-root,
.adm-report-pdf-root * {
  color: #111827 !important;
  box-sizing: border-box;
}

.adm-report-pdf-root h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.adm-report-pdf-root .adm-report-pdf-sub {
  margin: 0 0 18px;
  color: #6b7280 !important;
  font-size: 11px;
}

.adm-report-pdf-root h2 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.adm-report-pdf-root table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 11px;
  background: #ffffff !important;
}

.adm-report-pdf-root th,
.adm-report-pdf-root td {
  border: 1px solid #d1d5db !important;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  background: #ffffff !important;
}

.adm-report-pdf-root th {
  background: #f3f4f6 !important;
  font-weight: 700;
}

.adm-report-pdf-root .adm-report-pdf-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  color: #374151 !important;
}

.adm-report-pdf-capture {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: #ffffff;
  pointer-events: none;
}

.adm-expense-form {
  margin-top: 4px;
}

.adm-card-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-date-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.22);
}

.adm-date-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-muted);
  white-space: nowrap;
}

.adm-date-input {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--adm-text);
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
  max-width: 150px;
}

.adm-date-input:focus {
  outline: 2px solid rgba(52, 211, 153, 0.45);
  outline-offset: 1px;
}

.adm-shift-panel {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.adm-badge-warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.adm-wdr-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.adm-wdr-status-pending { color: #fde68a; background: rgba(245, 158, 11, 0.12); }
.adm-wdr-status-processing { color: #93c5fd; background: rgba(59, 130, 246, 0.12); }
.adm-wdr-status-approved,
.adm-wdr-status-completed,
.adm-wdr-status-demo_completed { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.adm-wdr-status-cancelled,
.adm-wdr-status-rejected { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }

.adm-wdr-details-cell {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}

.adm-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.adm-dep-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.adm-dep-status-pending { color: #fde68a; background: rgba(245, 158, 11, 0.12); }
.adm-dep-status-demo_completed,
.adm-dep-status-completed { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.adm-dep-status-failed,
.adm-dep-status-cancelled,
.adm-dep-status-rejected { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }

.adm-game-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.adm-game-type-bet { color: #fde68a; background: rgba(245, 158, 11, 0.12); }
.adm-game-type-win { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.adm-game-type-session_start,
.adm-game-type-session_end { color: #93c5fd; background: rgba(59, 130, 246, 0.12); }
.adm-game-type-cancel { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }

.adm-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(2, 6, 23, 0.72);
  overflow-y: auto;
}

.adm-player-modal-card {
  width: min(980px, 100%);
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.adm-player-modal-card-wide {
  width: min(1100px, 100%);
}

.adm-card-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adm-player-modal-email {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 13px;
  word-break: break-all;
}

.adm-player-personal {
  margin-bottom: 16px;
}

.adm-player-personal-card {
  margin-bottom: 0;
}

.adm-player-personal-form .adm-field input {
  width: 100%;
}

.adm-player-personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.adm-player-personal-grid div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-player-personal-grid span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.adm-player-personal-grid strong {
  font-size: 14px;
  color: #e2e8f0;
  word-break: break-word;
}

.adm-player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.adm-player-stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-player-stat-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.adm-player-stat-value {
  font-size: 14px;
  color: #e2e8f0;
}

.adm-player-log-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #e2e8f0;
}

.adm-wdr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adm-card-head .adm-btn-sm {
  margin-left: auto;
}

.adm-muted-inline {
  color: var(--adm-muted);
  font-size: 11px;
}

.adm-home-games-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.adm-home-games-toolbar input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
}

.adm-home-games-count {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.adm-home-games-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.adm-home-games-col {
  min-width: 0;
}

.adm-home-games-catalog {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.adm-home-game-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
}

.adm-home-game-pick:hover:not(:disabled) {
  border-color: rgba(253, 224, 71, 0.35);
  background: rgba(253, 224, 71, 0.06);
}

.adm-home-game-pick.is-selected {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.adm-home-game-pick.is-disabled:not(.is-selected) {
  opacity: 0.45;
  cursor: not-allowed;
}

.adm-home-game-pick img,
.adm-home-game-thumb {
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #1e293b;
}

.adm-home-game-thumb-ph {
  display: inline-block;
  width: 56px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.adm-home-game-pick span strong {
  display: block;
  font-size: 13px;
}

.adm-home-game-pick-mark {
  margin-left: auto;
  font-size: 14px;
  color: #fde047;
}

.adm-home-games-selected {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.adm-home-game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.adm-home-game-order {
  width: 22px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.adm-home-game-meta {
  flex: 1;
  min-width: 0;
}

.adm-home-game-meta strong {
  display: block;
  font-size: 13px;
}

.adm-home-game-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.adm-home-games-actions {
  margin-top: 8px;
}

.adm-gow-selected {
  margin-top: 12px;
}

.adm-gow-selected-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.adm-gow-selected-card img,
.adm-gow-selected-card .adm-home-game-thumb-ph {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.adm-gow-selected-card strong {
  display: block;
  color: #e2e8f0;
}

.adm-form-grid .adm-field-full {
  grid-column: 1 / -1;
}

.adm-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  min-height: 420px;
}

.adm-view[data-view="playermap"] .adm-players-map {
  height: min(68vh, 640px);
}

.adm-view[data-view="playermap"] .adm-map-sidebar {
  max-height: min(68vh, 640px);
}

.adm-players-map {
  min-height: 420px;
  height: min(55vh, 520px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
}

.adm-map-sidebar {
  max-height: min(55vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.adm-map-player-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-map-player-list li {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.adm-map-player-list li:hover {
  border-color: rgba(52, 211, 153, 0.35);
}

.adm-map-player-list li strong {
  display: block;
  font-size: 12px;
  word-break: break-all;
}

.adm-map-player-list li span {
  color: #94a3b8;
  font-size: 11px;
}

.adm-map-no-geo-title {
  margin-top: 4px;
}

.adm-map-no-geo li {
  cursor: default;
  opacity: 0.75;
}

.adm-map-player-list li.adm-map-empty {
  cursor: default;
  opacity: 0.7;
}

.adm-view[data-view="playermap"] .adm-players-map {
  height: min(68vh, 640px);
}

.adm-view[data-view="playermap"] .adm-map-sidebar {
  max-height: min(68vh, 640px);
}

@media (max-width: 900px) {
  .adm-home-games-layout {
    grid-template-columns: 1fr;
  }
  .adm-map-layout {
    grid-template-columns: 1fr;
  }
  .adm-map-sidebar {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-kpi-value { font-size: 1rem; }
  .adm-sidebar {
    transform: translateX(-100%);
  }
  .adm-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .adm-main { margin-left: 0; }
  .adm-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .adm-slot-row { grid-template-columns: 1fr; }
}

.adm-chat-profile-form .adm-chat-op-photo-preview {
  display: block;
  width: 72px;
  height: 72px;
  margin-top: 8px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(226, 232, 240, 0.16);
}

.adm-chat-modal-card {
  max-width: 720px;
}

.adm-chat-log {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px 12px;
  margin-bottom: 10px;
}

.adm-chat-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.adm-chat-msg.is-player {
  align-self: flex-start;
}

.adm-chat-msg.is-staff {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.adm-chat-avatar,
.adm-chat-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 34px;
}

.adm-chat-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ecfdf5;
  background: linear-gradient(180deg, #34d399, #059669);
}

.adm-chat-avatar-player {
  background: linear-gradient(180deg, #64748b, #334155);
}

.adm-chat-bubble {
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.1);
}

.adm-chat-msg.is-staff .adm-chat-bubble {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.28);
}

.adm-chat-meta {
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
}

.adm-chat-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.adm-chat-compose textarea {
  flex: 1;
  min-height: 72px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  padding: 8px 10px;
  font-family: inherit;
}

.adm-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
}

.adm-check-label input {
  accent-color: #6366f1;
}
