/* beatbetgames backoffice — loads AFTER bbg.css (the BeatBetGames Panel
   stylesheet, unchanged). The shell (sidebar, topbar, sign-in) already uses
   the panel's own markup and classes. This file maps the class names the
   page screens use (page-header, stat-card, data-table, badge-green,
   modal-header, ...) onto the same BeatBetGames Panel rules, value for value. */

/* The page screens were built on a zero-margin reset; keep it, at zero
   specificity so every bbg.css rule still wins. */
:where(*, *::before, *::after) { margin: 0; padding: 0; }
p { margin: 0; }

/* Inline styles in the page screens still name the old fonts — render them
   in the BeatBetGames Panel faces instead. */
@font-face { font-family: 'Sora'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('./fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; src: local('SFMono-Regular'), local('Menlo'), local('Consolas'), local('Liberation Mono'), local('DejaVu Sans Mono'); }

/* Old design tokens the page screens reference inline, pointed at the
   BeatBetGames palette. */
:root {
  --primary: var(--pink); --primary-dim: rgba(255, 79, 216, 0.12); --primary-glow: rgba(255, 79, 216, 0.45);
  --secondary: var(--red); --warn: var(--amber); --warn-dim: var(--amber-bg);
  --purple: var(--violet-2); --purple-dim: rgba(138, 75, 255, 0.14); --blue-dim: var(--blue-bg);
  --orange: #ff9a5c; --orange-dim: rgba(255, 154, 92, 0.13);
  --bg: #0e0722; --bg-2: #130a29; --bg-3: #1b0f38; --card: var(--solid);
  --border: var(--line); --border-hover: var(--line-2);
  --sidebar-w: var(--side-w);
}

/* ---------- shell extras (sidebar / topbar) ---------- */
a.nav-item, a.nav-item:hover { text-decoration: none; }
.nav-item .nav-count { margin-left: auto; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; background: var(--red-bg); color: var(--red); border: 1px solid rgba(255, 107, 139, 0.32); }
.side-brand b { white-space: nowrap; }
.topbar .lang-btn.on { color: var(--pink-2); }
.nav-icon { width: 16px; height: 16px; flex: none; }

/* ---------- sign-in screens ---------- */
.auth-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; text-align: center; }
.auth-card .alert { margin-bottom: 0; }

/* ---------- page head (= .page-head) ---------- */
.page-header { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header > div:first-child { flex: 1; min-width: 220px; }
.page-title { font-family: var(--display); font-size: 34px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; display: inline-block; transform: skewX(-8deg); transform-origin: left bottom; }
.page-subtitle { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }

/* ---------- stats (= .stats / .stat) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(138, 75, 255, 0.22), transparent 70%); pointer-events: none; }
.stat-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(138, 75, 255, 0.16); }
.stat-card:first-child { background: linear-gradient(180deg, rgba(138, 75, 255, 0.42), rgba(90, 30, 200, 0.24)); border-color: rgba(185, 140, 255, 0.4); box-shadow: 0 0 40px rgba(138, 75, 255, 0.28), inset 0 0 30px rgba(255, 255, 255, 0.05); }
.stat-card:first-child .stat-label { color: rgba(236, 226, 255, 0.82); }

/* ---------- buttons (= .btn.primary / .danger / .sm) ---------- */
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 0 22px rgba(255, 79, 216, 0.45); }
.btn-primary:hover { background: #ff6be0; border-color: var(--pink); box-shadow: 0 0 34px rgba(255, 79, 216, 0.6); }
/* Some screens tint their main button inline (orange / purple / blue panels):
   in the BeatBetGames look the main action is always pink, and the red ones
   (disable / blacklist) are the panel's danger button. */
.btn-primary[style*='background'] { background: var(--pink) !important; border-color: var(--pink) !important; color: #fff !important; }
.btn-primary[style*='background']:hover { background: #ff6be0 !important; }
.btn-primary[style*='var(--secondary)'], .btn-primary[style*='var(--red)'] { background: var(--red-bg) !important; border-color: rgba(255, 107, 139, 0.4) !important; color: #ffb3c3 !important; box-shadow: none; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.btn-primary[style*='var(--secondary)']:hover, .btn-primary[style*='var(--red)']:hover { background: rgba(255, 107, 139, 0.22) !important; }
.btn-danger { background: var(--red-bg); border-color: rgba(255, 107, 139, 0.4); color: #ffb3c3; }
.btn-danger:hover { background: rgba(255, 107, 139, 0.22); border-color: rgba(255, 107, 139, 0.6); color: #ffb3c3; }
.btn-sm { height: 31px; padding: 0 13px; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- forms (= .field / .select / .textarea) ---------- */
.form-group { margin-bottom: 16px; min-width: 0; }
.form-row, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-label { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.input-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--lav) 50%), linear-gradient(135deg, var(--lav) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: #160c2e; color: #fff; }
textarea.input { height: auto; min-height: 100px; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.input[type='checkbox'], .input[type='radio'] { width: 16px; height: 16px; accent-color: var(--pink); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--pink); }
.search-bar { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: flex; }
.search-bar .input { padding-left: 38px; }
.range-wrap { position: relative; }
.range-pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--text-3); font-family: var(--mono); pointer-events: none; }
.range-wrap .input { padding-left: 28px; }

/* ---------- table (= .table) ---------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { position: sticky; top: 0; text-align: left; background: rgba(16, 8, 35, 0.96); padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.card > .scroll-x:first-child .data-table th:first-child, .card > .data-table:first-child th:first-child { border-top-left-radius: var(--radius); }
.card > .scroll-x:first-child .data-table th:last-child, .card > .data-table:first-child th:last-child { border-top-right-radius: var(--radius); }
.card .card-head h3 { font-size: 17px; }
.data-table td { padding: 13px 18px; border-bottom: 1px solid rgba(205, 182, 255, 0.08); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.2s var(--ease); }
.data-table tbody tr:hover td { background: rgba(138, 75, 255, 0.08); }

/* pager under a table (= .table-foot + .pager) */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.pagination .pg-info:last-child { order: -1; margin-right: auto; padding: 0; }
.pg-info { padding: 0 4px; }
.pagination button { display: inline-flex; align-items: center; justify-content: center; height: 31px; min-width: 31px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.pagination button:hover:not(:disabled) { background: rgba(138, 75, 255, 0.2); border-color: rgba(185, 140, 255, 0.5); }
.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination button.active { background: var(--violet); border-color: var(--violet); box-shadow: 0 4px 14px rgba(138, 75, 255, 0.4); }

/* ---------- badges (= .badge.green / .red / .amber / .blue / .pink) ---------- */
.badge-green { background: var(--green-bg); color: var(--green); border-color: rgba(62, 224, 161, 0.3); }
.badge-red { background: var(--red-bg); color: var(--red); border-color: rgba(255, 107, 139, 0.32); }
.badge-yellow { background: var(--amber-bg); color: var(--amber); border-color: rgba(255, 196, 92, 0.3); }
.badge-orange { background: rgba(255, 154, 92, 0.13); color: #ff9a5c; border-color: rgba(255, 154, 92, 0.32); }
.badge-blue, .badge-purple { background: var(--blue-bg); color: var(--violet-2); border-color: rgba(185, 140, 255, 0.35); }
.badge-pink { background: rgba(255, 79, 216, 0.14); color: var(--pink-2); border-color: rgba(255, 79, 216, 0.35); }
.cpill { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); background: rgba(205, 182, 255, 0.1); color: var(--text-2); }
.cpill-eur { background: var(--green-bg); color: var(--green); border-color: rgba(62, 224, 161, 0.3); }
.cpill-try { background: var(--amber-bg); color: var(--amber); border-color: rgba(255, 196, 92, 0.3); }
.cpill-multi { background: var(--blue-bg); color: var(--violet-2); border-color: rgba(185, 140, 255, 0.35); }
.ghost-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; margin-left: 5px; vertical-align: middle; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(255, 196, 92, 0.3); }

/* row action pills (won / lost / refund) */
.action-won, .action-win, .action-lost, .action-refund { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.action-won, .action-win { background: var(--green-bg); color: var(--green); border-color: rgba(62, 224, 161, 0.3); }
.action-won:hover, .action-win:hover { background: rgba(62, 224, 161, 0.22); }
.action-lost { background: var(--red-bg); color: var(--red); border-color: rgba(255, 107, 139, 0.32); }
.action-lost:hover { background: rgba(255, 107, 139, 0.22); }
.action-refund { background: var(--amber-bg); color: var(--amber); border-color: rgba(255, 196, 92, 0.3); }
.action-refund:hover { background: rgba(255, 196, 92, 0.22); }

/* ---------- filter pills (= .chips / .chip) ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 100%; }
.filter-pill:hover { border-color: rgba(205, 182, 255, 0.4); color: #fff; }
.active-all, .active-won, .active-lost, .active-open, .active-cancelled, .active-refunded, .active-cashedout { background: linear-gradient(135deg, rgba(255, 91, 217, 0.22), rgba(138, 75, 255, 0.3)) !important; border-color: rgba(255, 79, 216, 0.55) !important; color: #fff !important; }
.pill-count { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 10.5px; font-weight: 800; }

/* ---------- tabs inside modals (= .tabs / .tab) ---------- */
.modal-tabs { display: flex; gap: 6px; margin: 18px 24px 0; overflow-x: auto; scrollbar-width: none; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); width: fit-content; max-width: calc(100% - 48px); }
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.25s var(--ease), color 0.2s var(--ease); }
.modal-tab:hover { color: #fff; background: rgba(138, 75, 255, 0.12); }
.modal-tab.active { color: #fff !important; background: linear-gradient(180deg, rgba(138, 75, 255, 0.65), rgba(90, 30, 200, 0.5)); box-shadow: 0 4px 18px rgba(138, 75, 255, 0.35); }

/* ---------- modals (= .overlay / .modal-head) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 2, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: fade 0.2s var(--ease); }
.modal-header { display: flex; align-items: center; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.modal-close { margin-left: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: background 0.25s var(--ease), color 0.2s var(--ease); }
.modal-close:hover { background: rgba(138, 75, 255, 0.14); color: #fff; }

/* ---------- cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.brand-card { position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.brand-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(138, 75, 255, 0.22), transparent 70%); pointer-events: none; }
.brand-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(138, 75, 255, 0.16); }
.limit-item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.limit-item:hover { border-color: var(--line-2); }

/* ---------- alerts / info boxes (= .alert.*) ---------- */
.alert-success { background: var(--green-bg); border-color: rgba(62, 224, 161, 0.3); color: #b4f5da; }
.alert-error { background: var(--red-bg); border-color: rgba(255, 107, 139, 0.3); color: #ffc7d3; }
.info-box { border: 1px solid rgba(185, 140, 255, 0.28); background: rgba(138, 75, 255, 0.12); color: var(--text-2); border-radius: var(--radius-sm); padding: 13px 18px; font-size: 13px; line-height: 1.5; }
.info-box.primary { border-color: rgba(255, 79, 216, 0.32); background: rgba(255, 79, 216, 0.1); color: #ffc9f2; }
.info-box.warn, .info-box.orange { border-color: rgba(255, 196, 92, 0.3); background: var(--amber-bg); color: #ffe1a8; }
.info-box.purple, .info-box.blue { border-color: rgba(185, 140, 255, 0.28); background: rgba(138, 75, 255, 0.12); color: var(--text-2); }

/* ---------- states (= .empty / .spin) ---------- */
.empty-state { padding: 48px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty-title { display: block; color: var(--text-2); font-family: var(--display); font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.empty-desc { font-size: 12.5px; line-height: 1.5; max-width: 340px; margin: 0 auto; }
.flag-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 40px; gap: 18px; }
.flag-icon-wrap { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--red-bg); border: 1px solid rgba(255, 107, 139, 0.3); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--pink); border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none; vertical-align: middle; }
.btn .spinner { border-color: currentColor; border-right-color: transparent; }
.fade-up { animation: rise 0.55s var(--ease); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- code (= .pre) ---------- */
.code-block { background: rgba(5, 2, 12, 0.7); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 8px; overflow-x: auto; }
.code-block pre { margin: 0; font: 12px/1.55 var(--mono); color: #e3d7ff; white-space: pre; }

/* ---------- docs ---------- */
.docs-nav { min-width: 0; }
.docs-nav-item { display: block; width: 100%; margin: 2px 0; padding: 7px 12px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: background 0.25s var(--ease), color 0.2s var(--ease); }
.docs-nav-item:hover { background: rgba(138, 75, 255, 0.12); color: #fff; }
.docs-nav-item.active { background: linear-gradient(90deg, rgba(138, 75, 255, 0.5), rgba(138, 75, 255, 0.14)); border-color: rgba(185, 140, 255, 0.35); color: #fff; box-shadow: 0 6px 24px rgba(138, 75, 255, 0.28); }

/* ---------- pickers ---------- */
.event-picker { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 2, 12, 0.4); }
.event-option { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 13px; transition: background 0.15s var(--ease); }
.event-option:last-child { border-bottom: none; }
.event-option:hover { background: rgba(138, 75, 255, 0.12); }
.event-option.selected { background: linear-gradient(135deg, rgba(255, 91, 217, 0.18), rgba(138, 75, 255, 0.24)); }

/* ---------- account page ---------- */
.account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.account-key-docs-layout { display: flex; gap: 18px; align-items: flex-start; }
.account-key-docs-nav { width: 160px; flex-shrink: 0; position: sticky; top: 84px; }
@media (max-width: 1200px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .account-key-docs-layout { flex-direction: column; }
  .account-key-docs-nav { width: 100%; position: static; }
}
@media (max-width: 640px) {
  .page-title { font-size: 27px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 14px; border-radius: 18px; }
  .form-row, .two-col { grid-template-columns: minmax(0, 1fr); }
  .data-table th, .data-table td { padding: 11px 12px; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal-backdrop .modal { max-width: none !important; min-height: 100%; border-radius: 0; border: 0; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Arabic (RTL) ---------- */
html[dir='rtl'] body { font-family: 'Cairo', 'Tajawal', var(--font); }
html[dir='rtl'] .side { inset: 12px 12px 12px auto; }
html[dir='rtl'] .main { margin-left: 0; margin-right: calc(var(--side-w) + 12px); }
html[dir='rtl'] .nav-item, html[dir='rtl'] .docs-nav-item, html[dir='rtl'] .palette-item { text-align: right; }
html[dir='rtl'] .nav-item .nav-count, html[dir='rtl'] .side-search kbd, html[dir='rtl'] .palette-item span { margin-left: 0; margin-right: auto; }
html[dir='rtl'] .topbar .right { margin-left: 0; margin-right: auto; }
html[dir='rtl'] .topbar .crumbs svg { transform: scaleX(-1); }
html[dir='rtl'] .side-brand b, html[dir='rtl'] .page-title, html[dir='rtl'] .stat-value, html[dir='rtl'] .auth-card h1 { transform: none; letter-spacing: 0; }
html[dir='rtl'] .nav-label, html[dir='rtl'] .stat-label, html[dir='rtl'] .input-label, html[dir='rtl'] .field > label, html[dir='rtl'] .data-table th, html[dir='rtl'] .table th, html[dir='rtl'] .topbar .crumbs, html[dir='rtl'] .side-brand span { letter-spacing: 0; }
html[dir='rtl'] .data-table th, html[dir='rtl'] .data-table td, html[dir='rtl'] .table th, html[dir='rtl'] .table td { text-align: right; }
html[dir='rtl'] .stat-card::after, html[dir='rtl'] .stat::after, html[dir='rtl'] .brand-card::after { right: auto; left: -40px; }
html[dir='rtl'] .search-icon { left: auto; right: 14px; }
html[dir='rtl'] .search-bar .input { padding-left: 14px; padding-right: 38px; }
html[dir='rtl'] .range-pre { left: auto; right: 14px; }
html[dir='rtl'] .range-wrap .input { padding-left: 14px; padding-right: 28px; }
html[dir='rtl'] .modal-close { margin-left: 0; margin-right: auto; }
html[dir='rtl'] .pagination .pg-info:last-child { margin-right: 0; margin-left: auto; }
html[dir='rtl'] select.input { padding-right: 14px; padding-left: 32px; background-position: 17px 52%, 12px 52%; }
html[dir='rtl'] .alert, html[dir='rtl'] .info-box, html[dir='rtl'] .input-hint { text-align: right; }
@media (max-width: 960px) {
  html[dir='rtl'] .side { inset: 0 0 0 auto; border-radius: 26px 0 0 26px; transform: translateX(104%); }
  html[dir='rtl'] .side.open { transform: none; }
  html[dir='rtl'] .main { margin-right: 0; }
}
