/* ============================================================================
   Operator panel design tokens — applied across every /operator/* page.
   Originally authored for /operator/dashboard, now reused everywhere.
   Naming: tb-* (TurboBoard) — generic admin component prefix.
   ============================================================================ */

/* Page header */
.tb-page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 1rem; flex-wrap: wrap; }
/* h1 = Tailwind text-lg + font-bold (1.125rem / 1.75rem line-height) — exact betav2 spec */
.tb-title-block h1 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: #262626; letter-spacing: -0.005em; margin: 0 0 4px; }
.tb-title-block .tb-subtitle { font-size: 14px; font-weight: 400; color: #737373; }

/* Date picker / filter pill */
.tb-date-picker { display: inline-flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #E7E5E4; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: #262626; cursor: pointer; text-decoration: none; }
.tb-date-picker i { color: #737373; font-size: 13px; }
.tb-date-picker:hover { border-color: #D6D3D1; }

/* Tabs */
.tb-tabs { display: inline-flex; background: transparent; border: 0; padding: 0; gap: 6px; margin-bottom: 24px; }
.tb-tabs a { padding: 8px 18px; font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 8px; transition: background 180ms ease, color 180ms; color: #737373; background: transparent; }
.tb-tabs a.active { background: #262626; color: #FFFFFF; }
.tb-tabs a:not(.active):hover { color: #262626; background: #F5F5F4; }

/* Card primitive — subtle border, no shadow (matches betav2).
 * 2026-05-19: coexists with `main .tb-card` in admin-design-system.css.
 * On admin shell the scoped (main ...) rule has higher specificity so it
 * wins for background/border-color/border-radius/box-shadow/color, but
 * this rule still supplies `padding`, `position:relative` and `transition`
 * which the admin-DS rule does not define. Do NOT delete. */
.tb-card { background: #FFFFFF; border-radius: 12px; padding: 20px 22px 18px; position: relative; border: 1px solid #E7E5E4; box-shadow: none; transition: border-color 180ms ease; }
.tb-card.tb-card-hover:hover { border-color: #D6D3D1; }
.tb-card .tb-card-dots { position: absolute; right: 14px; top: 14px; color: #9CA3AF; font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: background 150ms; line-height: 1; }
.tb-card .tb-card-dots:hover { background: #F4F4F5; }

/* Stat-style card variant — calibrated against betav2 markup
   betav2 uses: <p class="text-2xl font-bold"> = 24px / 700, line-height: 2rem (32px) */
.tb-card.tb-card-stat { min-height: 148px; display: flex; flex-direction: column; }
.tb-card .tb-card-label { font-size: 13px; font-weight: 400; color: #737373; margin-bottom: 6px; padding-right: 24px; line-height: 1.35; min-height: 17px; }
.tb-card .tb-card-value { font-size: 24px; font-weight: 700; color: #262626; letter-spacing: -0.015em; line-height: 2rem; margin-bottom: auto; font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.tb-card .tb-card-subs { display: flex; gap: 14px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #F5F5F4; }
.tb-card .tb-card-sub { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tb-card .tb-card-sub-label { font-size: 11px; color: #A3A3A3; font-weight: 400; text-transform: capitalize; }
.tb-card .tb-card-sub-value { font-size: 13px; color: #262626; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Section heading inside a card */
.tb-card-heading { font-size: 16px; font-weight: 700; color: #0A0A0A; margin: 0 0 16px; letter-spacing: -0.01em; }
.tb-card-subheading { font-size: 13px; color: #71717A; margin: 0 0 16px; }

/* Stat grids */
.tb-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 18px; }
.tb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.tb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.tb-grid-2-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }
@media (max-width: 1100px) { .tb-grid-5 { grid-template-columns: repeat(4, 1fr); } .tb-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .tb-grid-5 { grid-template-columns: repeat(3, 1fr); } .tb-grid-4 { grid-template-columns: repeat(2, 1fr); } .tb-grid-3 { grid-template-columns: repeat(2, 1fr); } .tb-grid-2-wide { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .tb-grid-5, .tb-grid-4 { grid-template-columns: repeat(2, 1fr); } .tb-grid-3 { grid-template-columns: 1fr; } .tb-card .tb-card-value { font-size: 28px; } }

/* Buttons — flat solid black, no shadow (matches betav2) */
.tb-btn-primary { background: #262626; color: #FFFFFF; font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 8px; border: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: none; transition: background 180ms ease; cursor: pointer; }
.tb-btn-primary:hover { background: #171717; color: #FFFFFF; }
.tb-btn-primary:active { background: #000000; }
.tb-btn-ghost { background: transparent; color: #262626; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 8px; border: 1px solid #E7E5E4; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 180ms, border-color 180ms; cursor: pointer; }
.tb-btn-ghost:hover { background: #F5F5F4; border-color: #D6D3D1; color: #262626; }
.tb-btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* Inputs */
.tb-input, .tb-select { background: #FFFFFF; border: 1px solid #E7E5E4; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 400; color: #262626; outline: none; transition: border-color 150ms, box-shadow 150ms; min-height: 38px; box-sizing: border-box; }
.tb-input:focus, .tb-select:focus { border-color: #339AF0; box-shadow: 0 0 0 2px rgba(51,154,240,.15); }
.tb-input::placeholder { color: #A8A29E; }
.tb-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tb-form-label { font-size: 11px; font-weight: 600; color: #737373; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: block; }

/* Tables — flat with 1px stone borders, no shadow */
.tb-table-wrap { background: #FFFFFF; border-radius: 12px; border: 1px solid #E7E5E4; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb-table thead th { background: #FAFAF9; padding: 11px 16px; font-size: 11px; font-weight: 600; color: #737373; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; border-bottom: 1px solid #E7E5E4; }
.tb-table thead th:first-child { padding-left: 20px; }
.tb-table thead th:last-child  { padding-right: 20px; }
.tb-table tbody td { padding: 12px 16px; border-bottom: 1px solid #F5F5F4; color: #262626; vertical-align: middle; }
.tb-table tbody td:first-child { padding-left: 20px; }
.tb-table tbody td:last-child  { padding-right: 20px; }
.tb-table tbody tr:hover td { background: #FAFAF9; }
.tb-table tbody tr:last-child td { border-bottom: 0; }

/* Status pills */
.tb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tb-pill-active   { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.tb-pill-pending  { background: #FEF3C7; color: #B45309; border: 1px solid #FCD34D; }
.tb-pill-rejected { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.tb-pill-mute     { background: #F4F4F5; color: #52525B; border: 1px solid #E4E4E7; }
/* 2026-05-19 cleanup: `.tb-pill-info` removed — superseded by the version in
 * admin/assets/css/royals-tokens.css which loads after this file on the admin
 * shell. `-active/-pending/-rejected/-mute` are NOT defined in tokens.css and
 * MUST stay here (used by sports/betlist + payments/destinations + players/show). */

/* Empty state */
.tb-empty { padding: 48px 24px; text-align: center; color: #71717A; font-size: 14px; }
.tb-empty i { font-size: 32px; color: #D4D4D8; margin-bottom: 12px; display: block; }

/* Centered CTA row */
.tb-cta-row { display: flex; justify-content: center; margin-top: 8px; }

/* Floating expand fab */
.tb-expand-fab { position: fixed; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E7E5E4; display: inline-flex; align-items: center; justify-content: center; color: #737373; cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; z-index: 40; text-decoration: none; }
.tb-expand-fab:hover { background: #262626; color: #FFFFFF; border-color: #262626; }
.tb-expand-fab i { font-size: 13px; }
