/* ==========================================================================
   trxsys modern theme (2026-11-16)
   Loaded after build/css/custom.min.css on every page. It only restyles the
   existing Gentelella / Bootstrap 3 markup, so removing the <link> to this
   file restores the old look exactly.
   ========================================================================== */

:root {
  --bg:            #f3f5f9;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e4e8ef;
  --border-strong: #cfd6e1;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-faint:    #94a3b8;

  --sidebar:       #111827;
  --sidebar-2:     #1f2937;
  --sidebar-text:  #cbd5e1;
  --sidebar-dim:   #8b97a8;

  --primary:       #4f46e5;
  --primary-600:   #4338ca;
  --primary-soft:  #eef2ff;
  --success:       #059669;
  --success-soft:  #ecfdf5;
  --danger:        #dc2626;
  --danger-soft:   #fef2f2;
  --warning:       #d97706;
  --warning-soft:  #fffbeb;
  --info:          #0284c7;
  --info-soft:     #f0f9ff;

  --radius:        10px;
  --radius-sm:     7px;
  --shadow:        0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg:     0 10px 30px rgba(16, 24, 40, .12);
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
html, body { -webkit-font-smoothing: antialiased; }
body,
body.nav-md, body.nav-sm {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text);
  background: var(--sidebar);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--font); color: var(--text); }
a { color: var(--primary); }
a:hover, a:focus { color: var(--primary-600); }
::selection { background: var(--primary-soft); }

/* Main content area */
.right_col {
  background: var(--bg) !important;
  padding: 22px 24px 40px !important;
  height: auto !important;
  min-height: 100vh;
}
.main_container .right_col { min-height: 100vh; }
.animated.flipInY { animation: none !important; }   /* drop the slow card flip */

/* ---------- Sidebar ---------- */
.left_col,
.nav-md .container.body .col-md-3.left_col,
.nav-sm .container.body .col-md-3.left_col { background: var(--sidebar) !important; }
.nav_title { background: var(--sidebar) !important; border-bottom: 1px solid rgba(255,255,255,.06); height: 58px; }
.site_title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .2px;
  height: 58px;
  line-height: 58px;
  color: #fff !important;
}
.site_title i {
  border: 0 !important;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  width: 30px; height: 30px;
  line-height: 30px !important;
  font-size: 15px !important;
  padding: 0 !important;
  text-align: center;
  margin-right: 4px;
}
.profile { padding: 14px 0 6px; }
.profile_pic .profile_img {
  width: 44px; height: 44px;
  margin: 6px 0 0 14px;
  border: 2px solid rgba(255,255,255,.15);
  background: #fff;
}
.profile_info { padding: 14px 10px 10px 2px; }
.profile_info span { color: var(--sidebar-dim); font-size: 12px; }
.profile_info h2 { color: #fff; font-size: 14px; font-weight: 600; margin: 2px 0 0; }

.main_menu .menu_section { margin-bottom: 20px; }
.nav.side-menu > li { margin: 2px 10px; }
.nav.side-menu > li > a {
  color: var(--sidebar-text) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 12px !important;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  transition: background .15s, color .15s;
}
.nav.side-menu > li > a:hover { background: var(--sidebar-2) !important; color: #fff !important; }
.nav.side-menu > li > a > .fa {
  width: 22px !important;
  font-size: 15px !important;
  opacity: .85;
  margin-right: 8px;
}
.nav.side-menu > li > a .fa-chevron-down { opacity: .5; font-size: 10px !important; margin-top: 6px; }
.nav.side-menu > li.active,
.nav.side-menu > li.current-page {
  border-right: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav.side-menu > li.active > a,
.nav.side-menu > li.current-page > a {
  background: var(--primary) !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.nav.side-menu > li.active > a .fa,
.nav.side-menu > li.current-page > a .fa { opacity: 1; }

/* Sub-menus */
.nav.child_menu { margin: 4px 0 6px !important; }
.nav-md ul.nav.child_menu li:before,
.nav-md ul.nav.child_menu li:after { display: none !important; }
.nav-md ul.nav.child_menu li { padding-left: 34px !important; }
.nav.child_menu li a,
.nav.child_menu > li > a {
  color: var(--sidebar-dim) !important;
  font-size: 13px;
  padding: 7px 10px !important;
  border-radius: 6px;
}
.nav.child_menu li a:hover { color: #fff !important; background: rgba(255,255,255,.04) !important; }
.nav.child_menu li.current-page a,
.nav.child_menu li.active a {
  color: #fff !important;
  font-weight: 600;
  background: rgba(255,255,255,.06) !important;
}
.nav.child_menu .label { float: right; }
.nav.side-menu > li.active > ul.child_menu { background: transparent !important; }

/* Collapsed (icon-only) sidebar */
.nav-sm .nav.side-menu > li { margin: 2px 6px; }
.nav-sm .nav.side-menu > li > a { text-align: center !important; padding: 12px 6px !important; }
.nav-sm .nav.side-menu > li > a > .fa { margin: 0 !important; }
.nav-sm ul.nav.child_menu { background: var(--sidebar-2) !important; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.nav-sm ul.nav.child_menu li { padding-left: 0 !important; }

/* Custom scrollbar in the sidebar */
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: rgba(255,255,255,.18) !important; }

/* ---------- Top bar ---------- */
.top_nav .nav_menu,
.nav_menu {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 0 !important;
  height: 58px;
  box-shadow: var(--shadow);
}
.nav.toggle { padding-top: 14px; }
.toggle a { padding: 6px 8px !important; border-radius: var(--radius-sm); }
.toggle a:hover { background: var(--surface-2); }
.toggle a i { font-size: 22px !important; color: var(--text-muted) !important; }
.nav.navbar-nav > li > a { color: var(--text) !important; }
.top_nav .navbar-right { margin-right: 6px; }
.top_nav .nav > li > a.user-profile {
  padding: 13px 14px 13px 8px !important;
  font-weight: 500;
}
.user-profile img { width: 30px !important; height: 30px; border-radius: 50%; margin-right: 8px; border: 1px solid var(--border); }
.dropdown-menu {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 6px !important;
}
.dropdown-menu > li > a { border-radius: 6px; padding: 8px 12px !important; color: var(--text) !important; }
.dropdown-menu > li > a:hover { background: var(--surface-2) !important; }

/* ---------- Page header ---------- */
.page-title { padding: 6px 0 14px; height: auto !important; }
.page-title .title_left { width: 100%; }
.page-title .title_left h3,
.page-title h3 {
  font-size: 21px;
  font-weight: 650;
  margin: 0;
  color: var(--text);
  letter-spacing: -.2px;
}

/* ---------- Panels / cards ---------- */
.x_panel {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.x_title {
  border-bottom: 1px solid var(--border) !important;
  padding: 0 0 12px !important;
  margin-bottom: 14px !important;
}
.x_title h2 {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--text) !important;
  margin: 4px 0 0 !important;
}
.x_title h2 small { color: var(--text-muted); font-size: 12px; }
.panel_toolbox > li > a { color: var(--text-faint) !important; }
.x_content { color: var(--text); }

/* ---------- Stat tiles (dashboard) ---------- */
.tile-stats {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  padding: 14px 16px 12px !important;
  margin-bottom: 16px !important;
  min-height: 0 !important;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.tile-stats:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.tile-stats .icon,
.tile-stats .icon-moto {
  right: 14px !important;
  top: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.tile-stats .icon i,
.tile-stats .icon-moto i {
  font-size: 18px !important;
  color: var(--primary) !important;
  margin: 0 !important;
  top: 0 !important;
  line-height: 1 !important;
}
.tile-stats .count {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--text) !important;
  margin: 26px 0 2px !important;
  padding: 0 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  order: 2;
}
.tile-stats h3 {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 60px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted) !important;
  line-height: 1.3 !important;
}
.tile-stats p {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
}
.tile-stats { position: relative; }
/* Withdrawal tiles get a red accent, member tiles green */
.tile-stats .icon .fa-users,
.tile-stats .icon .fa-user { color: var(--success) !important; }
.tile-stats .icon:has(.fa-users),
.tile-stats .icon:has(.fa-user) { background: var(--success-soft); }
.tile-stats .icon:has(.fa-bar-chart),
.tile-stats .icon:has(.fa-line-chart) { background: var(--info-soft); }
.tile-stats .icon .fa-bar-chart,
.tile-stats .icon .fa-line-chart { color: var(--info) !important; }

/* ---------- Tables ---------- */
.table { color: var(--text); margin-bottom: 12px; }
.table > thead > tr > th,
table.jambo_table thead tr th,
.table thead th {
  background: var(--surface-2) !important;
  color: var(--text-muted) !important;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border) !important;
  border-top: 0 !important;
  padding: 10px 10px !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
table.jambo_table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
table.jambo_table thead { background: transparent !important; color: inherit !important; }
.table > tbody > tr > td,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
  border-top: 1px solid var(--border) !important;
  padding: 9px 10px !important;
  vertical-align: middle !important;
  font-size: 13px;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcfe !important; }
.table-hover > tbody > tr:hover,
table.jambo_table tbody tr:hover td,
.table > tbody > tr:hover { background: var(--primary-soft) !important; }
table.jambo_table tbody tr.selected { background: var(--primary-soft) !important; }
.table > tfoot > tr > th, .table > tfoot > tr > td { background: var(--surface-2); font-weight: 600; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--border) !important; }
.table td .btn-xs { margin: 1px 2px 1px 0; }
.clickable-row { cursor: pointer; }

/* DataTables */
.dataTables_wrapper { font-size: 13px; }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  height: 34px;
  padding: 4px 10px;
  background: var(--surface);
  outline: none;
}
.dataTables_wrapper .dataTables_filter input { min-width: 220px; margin-left: 6px; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.dataTables_wrapper .dataTables_info { color: var(--text-muted); padding-top: 14px !important; }
.dataTables_wrapper .dt-buttons .btn,
.dt-buttons .btn { margin-right: 6px; }
div.dataTables_wrapper div.dataTables_paginate { margin-top: 10px; }

/* Pagination */
.pagination > li > a,
.pagination > li > span {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  margin-left: 4px;
  border-radius: var(--radius-sm) !important;
  min-width: 34px;
  text-align: center;
  padding: 6px 10px;
}
.pagination > li > a:hover { background: var(--surface-2) !important; }
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.pagination > .disabled > a { color: var(--text-faint) !important; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 14px;
  border-width: 1px;
  box-shadow: none !important;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:focus, .btn:active:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(79,70,229,.2) !important; }
.btn-xs { padding: 3px 8px !important; font-size: 12px !important; border-radius: 6px !important; }
.btn-sm { padding: 5px 11px !important; font-size: 12.5px !important; }
.btn-lg { padding: 10px 20px !important; font-size: 15px !important; }
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-600) !important; border-color: var(--primary-600) !important; }
.btn-success { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
.btn-success:hover { background: #047857 !important; border-color: #047857 !important; }
.btn-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.btn-danger:hover { background: #b91c1c !important; border-color: #b91c1c !important; }
.btn-warning { background: var(--warning) !important; border-color: var(--warning) !important; color: #fff !important; }
.btn-info { background: var(--info) !important; border-color: var(--info) !important; color: #fff !important; }
.btn-dark { background: #334155 !important; border-color: #334155 !important; color: #fff !important; }
.btn-default {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
}
.btn-default:hover { background: var(--surface-2) !important; }
.btn .fa, .btn li.fa { margin-right: 3px; }
.btn li.fa { list-style: none; display: inline-block; }

/* ---------- Forms ---------- */
.form-control {
  height: 36px;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  color: var(--text);
  font-size: 13.5px;
  padding: 6px 11px;
  background-color: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { height: auto; min-height: 80px; }
select.form-control { padding-right: 28px; }
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important;
}
.form-control[readonly], .form-control[disabled] { background: var(--surface-2) !important; color: var(--text-muted); }
.form-control::placeholder { color: var(--text-faint); }
label, .control-label { font-weight: 600; font-size: 12.5px; color: var(--text); margin-bottom: 5px; }
.form-group { margin-bottom: 14px; }
.form-horizontal .control-label { padding-top: 9px; }
.input-group-addon {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.ln_solid { border-top: 1px solid var(--border) !important; margin: 18px 0; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  min-height: 36px;
}

/* ---------- Labels / badges ---------- */
.label {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.4;
}
.lb-lg { font-size: 11.5px !important; padding: 3px 10px !important; }
.label-success { background: var(--success-soft) !important; color: var(--success) !important; }
.label-danger  { background: var(--danger-soft)  !important; color: var(--danger)  !important; }
.label-warning { background: var(--warning-soft) !important; color: var(--warning) !important; }
.label-info    { background: var(--info-soft)    !important; color: var(--info)    !important; }
.label-primary { background: var(--primary-soft) !important; color: var(--primary) !important; }
.label-default { background: #f1f5f9 !important; color: #475569 !important; }
.badge { background: var(--primary); border-radius: 999px; font-weight: 600; }

/* ---------- Alerts / modals ---------- */
.alert { border-radius: var(--radius); border: 1px solid transparent; box-shadow: none; }
.alert-success { background: var(--success-soft); border-color: #a7f3d0; color: #065f46; }
.alert-danger  { background: var(--danger-soft);  border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #92400e; }
.alert-info    { background: var(--info-soft);    border-color: #bae6fd; color: #075985; }
.modal-content { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 14px 20px; }
.modal-footer { border-top: 1px solid var(--border); padding: 12px 20px; }
.modal-title { font-weight: 600; }

/* ---------- Date range picker ---------- */
.daterangepicker { border-radius: var(--radius) !important; border-color: var(--border) !important; box-shadow: var(--shadow-lg); font-family: var(--font); }
.daterangepicker td.active, .daterangepicker td.active:hover { background: var(--primary) !important; }
.daterangepicker .ranges li.active { background: var(--primary) !important; }

/* ---------- Footer ---------- */
footer { background: transparent !important; border-top: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Login page ---------- */
body.login {
  background: radial-gradient(1200px 600px at 10% -10%, #e0e7ff 0%, transparent 60%),
              radial-gradient(1000px 500px at 110% 110%, #dcfce7 0%, transparent 55%),
              var(--bg) !important;
  min-height: 100vh;
}
.login_wrapper { max-width: 400px !important; margin-top: 9vh !important; padding: 0 16px; }
.login_form, .login_content { animation: none !important; }
.login_content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 18px !important;
  text-shadow: none !important;
}
.login_content h1 {
  font-family: var(--font) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -.2px !important;
  color: var(--text) !important;
  line-height: 1.35;
  margin: 4px 0 22px !important;
}
.login_content h1:before, .login_content h1:after { display: none !important; }
.login_content form input[type=text],
.login_content form input[type=password],
.login_content form input[type=email] {
  height: 42px;
  margin-bottom: 14px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
}
.login_content form div a { font-size: 12.5px; margin: 10px 0 0; }
.login_content form input[type=submit],
.login_content .btn.submit {
  width: 100%;
  height: 42px;
  margin: 4px 0 6px !important;
  float: none !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}
.login_content .separator { border-top: 1px solid var(--border) !important; margin-top: 16px; padding-top: 12px; }
.login_content .separator p, .login_content p { color: var(--text-muted); font-size: 12px; }
.login_content div .reset_pass { margin-top: 12px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .right_col { padding: 16px 14px 32px !important; }
  .x_panel { padding: 14px; }
  .tile-stats .count { font-size: 22px !important; }
}
@media (max-width: 767px) {
  .x_content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; margin-left: 0; }
  .dataTables_wrapper .dataTables_filter label { width: 100%; }
  .page-title .title_left h3 { font-size: 18px; }
  .top_nav .nav_menu { height: 54px; }
}

/* ---------- Print ---------- */
@media print {
  .left_col, .top_nav, .dt-buttons, .dataTables_filter, .dataTables_length, .dataTables_paginate { display: none !important; }
  .right_col { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .x_panel, .tile-stats { box-shadow: none !important; }
}

/* ---------- Dashboard ---------- */
.page-subtitle { color: var(--text-muted); margin: 4px 0 0; font-size: 13px; }
.page-subtitle b { color: var(--text); font-weight: 600; }
.dash-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 6px 0;
  margin: 0 0 22px;
}
.dash-filter .form-group { margin-bottom: 14px; }
.dash-filter .btn { width: 100%; height: 36px; }
.dash-section { margin-bottom: 8px; }
.dash-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dash-section-title span { font-size: 12px; font-weight: 500; color: var(--text-faint); }
.dash-section-title:after { content: ""; flex: 1; height: 1px; background: var(--border); align-self: center; }

.tile-deposit  { border-left: 3px solid var(--success) !important; }
.tile-withdraw { border-left: 3px solid var(--danger) !important; }
.tile-neutral  { border-left: 3px solid var(--primary) !important; }
.tile-bonus    { border-left: 3px solid var(--warning) !important; }
.tile-member   { border-left: 3px solid var(--info) !important; }
.tile-muted    { border-left: 3px solid var(--border-strong) !important; }
.tile-deposit  .icon { background: var(--success-soft) !important; }
.tile-deposit  .icon i { color: var(--success) !important; }
.tile-withdraw .icon { background: var(--danger-soft) !important; }
.tile-withdraw .icon i { color: var(--danger) !important; }
.tile-bonus    .icon { background: var(--warning-soft) !important; }
.tile-bonus    .icon i { color: var(--warning) !important; }
.tile-member   .icon { background: var(--info-soft) !important; }
.tile-member   .icon i { color: var(--info) !important; }
.tile-muted    .icon { background: #f1f5f9 !important; }
.tile-muted    .icon i { color: #64748b !important; }
/* Stack label -> number -> note so long labels never overlap the number */
.tile-stats { display: flex !important; flex-direction: column; }
.tile-stats h3 { position: static !important; order: 1; margin: 0 52px 0 0 !important; min-height: 32px; display: flex; align-items: flex-start; }
.tile-stats .count { order: 2; margin: 6px 0 2px !important; }
.tile-stats p { order: 3; }
.tile-stats .icon { position: absolute !important; }
.tile-stats .count:empty:before { content: "\2014"; color: var(--text-faint); }

/* ---------- Wide tables scroll inside their card ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 6px 0 10px;
}
.table-scroll > table.table { margin: 0 !important; border: 0 !important; border-radius: 0; width: 100% !important; }
.table-scroll > table.jambo_table { border-collapse: collapse; }
.right_col table.jambo_table td { min-width: 92px; }
.right_col table.jambo_table td:last-child { white-space: nowrap; }
.right_col table.jambo_table td small { color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
@media (min-width: 768px) {
  .dataTables_wrapper .row:first-child { display: flex; align-items: center; }
}
.dataTables_wrapper > .row { margin-left: 0 !important; margin-right: 0 !important; overflow: visible !important; }
.dataTables_wrapper > .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
/* Let the browser size columns by their content (DataTables' fixed widths squeeze some columns) */
.table-scroll > table.dataTable { table-layout: auto; }
.table-scroll > table.dataTable > thead > tr > th { width: auto !important; }
.right_col table.jambo_table td b { white-space: nowrap; }
.nav.child_menu .label { background: transparent !important; color: var(--sidebar-dim) !important; padding: 0 !important; margin-top: 2px; font-size: 12px; }
.nav.child_menu li a:hover .label { color: #fff !important; }
.login_wrapper .login_form { position: relative !important; width: 100% !important; left: 0 !important; }
.login_wrapper { box-sizing: border-box; }
@media (max-width: 767px) {
  .dash-filter .form-group { width: 50% !important; float: left; }
  .dash-filter .form-group:nth-of-type(n+3) { width: 100% !important; }
  .dash-section .row > [class*="col-"] { width: 50%; float: left; padding-left: 6px; padding-right: 6px; }
  .dash-section .row { margin-left: -6px; margin-right: -6px; }
  .tile-stats { padding: 12px !important; margin-bottom: 12px !important; }
  .tile-stats h3 { font-size: 10.5px !important; margin-right: 34px !important; min-height: 28px; }
  .tile-stats .count { font-size: 18px !important; letter-spacing: -.3px; }
  .tile-stats p { font-size: 11px !important; }
  .tile-stats .icon { width: 28px !important; height: 28px !important; right: 10px !important; top: 10px !important; border-radius: 8px; }
  .tile-stats .icon i { font-size: 13px !important; }
}
@media (max-width: 767px) {
  .x_content:has(.table-scroll) { overflow-x: visible; }
}

/* ---------- Filter bar (Customer Service) ---------- */
.cs-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 14px;
}
.cs-filter-field { display: flex; flex-direction: column; min-width: 190px; }
.cs-filter-field label { margin-bottom: 5px; font-size: 12px; color: var(--text-muted); }
.cs-filter-field .form-control { min-width: 190px; }
.cs-filter-actions { display: flex; gap: 8px; }
.cs-filter-actions .btn { height: 36px; }
.cs-filter-count { margin-left: auto; color: var(--text-muted); font-size: 13px; align-self: center; }
.cs-filter-count b { color: var(--text); font-size: 15px; }
@media (max-width: 767px) {
  .cs-filter-field, .cs-filter-field .form-control { min-width: 0; width: 100%; flex: 1 1 100%; }
  .cs-filter-actions { flex: 1 1 100%; }
  .cs-filter-actions .btn { flex: 1; }
  .cs-filter-count { margin-left: 0; }
}
/* Content area always fills the window (the theme's JS sets a shorter inline min-height) */
.right_col { min-height: calc(100vh - 58px) !important; }
body.nav-md, body.nav-sm { background: var(--bg); }
.nav-md .container.body .col-md-3.left_col { min-height: 100vh; }
@media (max-width: 1199px) {
  .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 170px; }
}
.dataTables_wrapper .dataTables_filter { width: auto !important; max-width: 100%; }
.dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%; }
.dataTables_wrapper .dataTables_filter input { margin-left: 0 !important; max-width: 100%; }

/* ---------- Month comparison ---------- */
.cmp-filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 18px;
}
.cmp-field { display: flex; flex-direction: column; min-width: 150px; }
.cmp-field label { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.cmp-field .btn { height: 36px; }
.cmp-vs {
  align-self: flex-end; height: 36px; line-height: 36px; padding: 0 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; text-transform: uppercase;
}
.cmp-empty {
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.cmp-empty-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cmp-empty h4 { color: var(--text); font-weight: 650; margin: 0 0 6px; }
.cmp-table { margin: 0; }
.cmp-table > tbody > tr > td { padding: 12px 14px !important; vertical-align: middle; }
.cmp-table > thead > tr > th { padding: 10px 14px !important; }
.cmp-num { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; min-width: 140px; }
.cmp-bar { height: 5px; background: #eef1f6; border-radius: 99px; margin-top: 6px; overflow: hidden; display: flex; justify-content: flex-end; }
.cmp-bar span { display: block; height: 100%; border-radius: 99px; }
.cmp-bar-a { background: #94a3b8; }
.cmp-bar-b { background: var(--primary); }
.cmp-tag { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.cmp-tag-a { background: #e2e8f0; color: #475569; }
.cmp-tag-b { background: var(--primary-soft); color: var(--primary); }
.cmp-chg { display: inline-block; font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-chg i { font-size: 11px; }
.cmp-good { background: var(--success-soft); color: var(--success); }
.cmp-bad  { background: var(--danger-soft);  color: var(--danger); }
.cmp-flat { background: #f1f5f9; color: #64748b; }
.cmp-chg-pct { display: block; color: var(--text-muted); margin-top: 3px; font-size: 11.5px; }
.cmp-hl td { min-width: 200px; }
.cmp-hl-icon { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-right: 6px; }
.cmp-hl-name { font-weight: 600; color: var(--text); }
.cmp-hl-amt { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; color: var(--text); margin: 2px 0; }
/* jQuery UI month picker */
.ui-datepicker { border-radius: var(--radius) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-lg); padding: 8px !important; font-family: var(--font); }
.ui-datepicker .ui-datepicker-header { background: var(--surface-2); border: 0; border-radius: var(--radius-sm); }
.ui-datepicker select { border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 4px; }
.ui-datepicker .ui-datepicker-buttonpane button { border-radius: 6px !important; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-priority-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 767px) {
  .cmp-field { flex: 1 1 100%; min-width: 0; }
  .cmp-vs { align-self: center; }
  .cmp-num { min-width: 110px; }
}
.cmp-hl { table-layout: fixed; width: 100%; }
.cmp-hl th:first-child { width: 24%; }
.cmp-hl th:nth-child(2), .cmp-hl th:nth-child(3) { width: 38%; }
.cmp-hl td { min-width: 0; word-break: break-word; }
@media (max-width: 767px) { .cmp-hl { table-layout: auto; min-width: 640px; } }
