/* ─── All Tickets v2 — additions on top of ticket-accept-v2.css ──────
 * Tab strip + state badges + CSV export bar.
 * Inherits all card chrome, fraud signals, clock from Accept.
 * 2026-05-12
 */

/* Tab strip across top */
.at-tab-strip {
  display: flex;
  gap: 4px;
  padding: 4px 14px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid var(--ta-line);
  border-top: 1px solid var(--ta-line);
  overflow-x: auto;
}
.at-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ta-text-3);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .12s;
  letter-spacing: .04em;
  white-space: nowrap;
}
.at-tab:hover { background: var(--ta-card-hover); color: var(--ta-text); }
.at-tab.active {
  background: var(--ta-accent);
  color: white;
  border-color: var(--ta-accent);
  box-shadow: 0 0 12px rgba(90,140,255,.35);
}
.at-tab-count {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--ta-radius-pill);
  background: var(--ta-card-elev);
  color: var(--ta-text-2);
  font-family: var(--ta-mono);
  font-weight: 700;
}
.at-tab.active .at-tab-count {
  background: rgba(255,255,255,.18);
  color: white;
}

/* Search bar + filter form */
.at-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ta-card);
  border: 1px solid var(--ta-border);
  border-radius: 8px;
  padding: 6px 12px;
}
.at-search-icon { color: var(--ta-text-3); font-size: 14px; }
.at-search-row .ta-input {
  background: transparent;
  border: none;
  padding: 6px 4px;
  font-size: 13px;
  flex: 1;
}
.at-search-row .ta-input:focus { box-shadow: none; }

.at-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.at-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.at-stake-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ta-text-3);
}
.at-stake-label {
  color: var(--ta-text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-right: 4px;
}
.at-stake-row .ta-input { width: 90px; }
.at-stake-suffix { color: var(--ta-text-dim); font-size: 11px; font-family: var(--ta-mono); }

/* State pill in card head */
.at-state-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: var(--ta-radius-pill);
  border: 1px solid transparent;
  min-height: 24px;
  box-sizing: border-box;
}
.at-state-pill.s-won      { background: var(--ta-ok);    color: white; }
.at-state-pill.s-lost     { background: var(--ta-bad);   color: white; }
.at-state-pill.s-active   { background: var(--ta-accent); color: white; }
.at-state-pill.s-pending  { background: var(--ta-card-elev); color: var(--ta-text-2); border-color: var(--ta-border); }
.at-state-pill.s-canceled { background: var(--ta-card-elev); color: var(--ta-text-dim); border-color: var(--ta-border); }
.at-state-pill.s-rejected { background: var(--ta-bad-bg); color: var(--ta-bad); border-color: var(--ta-bad-border); }
.at-state-pill.s-hold     { background: var(--ta-warn-bg); color: var(--ta-warn); border-color: var(--ta-warn-border); }
.at-state-pill.s-offer    { background: var(--ta-warn-bg); color: var(--ta-warn); border-color: var(--ta-warn-border); }
.at-state-pill.s-void     { background: var(--ta-card-elev); color: var(--ta-text-dim); border-color: var(--ta-border); }

/* Card left-stripe tint by state */
.ta-ticket-card.at-state-ok::after   { background: var(--ta-ok);   opacity: .8; }
.ta-ticket-card.at-state-bad::after  { background: var(--ta-bad);  opacity: .8; }
.ta-ticket-card.at-state-warn::after { background: var(--ta-warn); opacity: .8; }
.ta-ticket-card.at-state-info::after { background: var(--ta-accent); opacity: .7; }
.ta-ticket-card.at-state-dim::after  { background: var(--ta-text-dim); opacity: .45; }

/* Per-leg state indicator (won/lost/void icon) */
.at-leg-state {
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 22px;
  border-radius: 4px;
  justify-self: end;
}
.at-leg-state.s-won  { background: var(--ta-ok-bg);   color: var(--ta-ok);   border: 1px solid var(--ta-ok-border); }
.at-leg-state.s-lost { background: var(--ta-bad-bg);  color: var(--ta-bad);  border: 1px solid var(--ta-bad-border); }
.at-leg-state.s-void { background: var(--ta-warn-bg); color: var(--ta-warn); border: 1px solid var(--ta-warn-border); }
.at-leg-state.s-pend { background: transparent; color: var(--ta-text-dim); border: 1px dashed var(--ta-border); }

/* Override leg row grid to include verdict column */
.ta-leg-headers,
.at-state-ok .ta-leg-row, .at-state-bad .ta-leg-row,
.at-state-warn .ta-leg-row, .at-state-info .ta-leg-row,
.at-state-dim .ta-leg-row {
  grid-template-columns: var(--ta-leg-grid-5);
}

.at-leg-state-hdr { text-align: right; }

/* Settled timestamp note */
.at-settled-note {
  color: var(--ta-text-dim);
  font-size: 11px;
  font-family: var(--ta-mono);
  font-style: italic;
}

/* Foot tweak — leave room for state-specific buttons */
.at-card-foot .ta-btn { font-size: 11px; padding: 6px 12px; }

.at-load-more {
  align-self: center;
  margin: 4px auto 8px;
}

.at-drawer { width: min(760px, 92vw); }
.at-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(62vh, 620px);
  overflow: auto;
}
.at-drawer-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0,0,0,.16);
  border: 1px solid var(--ta-border);
  border-radius: 7px;
  color: var(--ta-text-2);
  font-size: 12px;
}
.at-drawer-row strong { color: var(--ta-text); }
.at-drawer-muted {
  color: var(--ta-text-dim);
  font-family: var(--ta-mono);
  font-size: 11px;
}


/* ─── Phase 0 polish 2026-05-12 — live minute & live score chips on leg row */
.ta-leg-livemin {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 8px;
  font-family: var(--ta-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  background: rgba(255,88,112,.14);
  color: var(--ta-live, #ff5870);
  border: 1px solid rgba(255,88,112,.4);
  letter-spacing: .02em;
  animation: ta-livemin-pulse 2s ease-in-out infinite;
}
.ta-leg-livescore {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 8px;
  font-family: var(--ta-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  background: var(--ta-card-elev, #1a1f2e);
  color: var(--ta-text-hi, #fff);
  border: 1px solid var(--ta-border, #222);
}
@keyframes ta-livemin-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.7; }
}


/* 2026-05-13 — sticky filter bar across all ticket pages.
   Lives inside each panel's scroll container; pins to top on scroll. */
.ta-filter-form, .at-filter-form {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--ta-pane, #131722);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 0 var(--ta-line, rgba(255,255,255,.06));
}
/* ─── Powerful Ticket Drawer CSS ──────────────────────────────── */
.tdrw-root { position: fixed; inset: 0; z-index: 1100; }
.tdrw-root.hidden { display: none; }
.tdrw-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(6px);
}
.tdrw-panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px;
  background: #0c1118;
  border: 1px solid #1d2632;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: "SF Mono", ui-monospace, monospace;
  color: #cad5e2; font-size: 12px;
}
body.tdrw-open { overflow: hidden; }

/* ─── Header ─────────────────────────────────────────────────── */
.tdrw-head {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #1d2632;
  background: linear-gradient(180deg, #131a23 0%, #0c1118 100%);
}
.tdrw-close {
  background: transparent; color: #6c7d92; border: 1px solid #283549;
  border-radius: 4px; width: 28px; height: 28px;
  cursor: pointer; font-size: 14px;
}
.tdrw-close:hover { color: #fff; border-color: #4a5d7a; }
.tdrw-head-left { display: flex; flex-direction: column; gap: 4px; }
.tdrw-state {
  font-weight: 700; font-size: 10px; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 3px;
}
.tdrw-state-ok   { background: #2a4d33; color: #6efbb1; }
.tdrw-state-bad  { background: #4d2a2a; color: #ff8a8a; }
.tdrw-state-warn { background: #4d3d2a; color: #ffb866; }
.tdrw-state-info { background: #2a3a4d; color: #6ec8ff; }
.tdrw-state-dim  { background: #2d3548; color: #8fa2c7; }
.tdrw-id { font-size: 10px; color: #6c7d92; font-family: monospace; }
.tdrw-zpt { font-size: 9px; color: #ffe35a; font-weight: 700; letter-spacing: 0.05em; }

.tdrw-head-mid { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tdrw-tree {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: #e6edf6;
}
.tdrw-tree-node { color: #e6edf6; }
.tdrw-tree-d0 { color: #6efbb1; }   /* player */
.tdrw-tree-d1 { color: #ffb866; }   /* agent */
.tdrw-tree-d2 { color: #6ec8ff; }   /* manager */
.tdrw-tree-d3 { color: #ffe35a; }   /* admin */
.tdrw-tree-sep { color: #4a566a; padding: 0 6px; font-weight: 400; }

.tdrw-meta-line { font-size: 11px; color: #8fa2c7; }
.tdrw-meta-line strong { color: #e6edf6; }
.tdrw-sep { color: #4a566a; }

.tdrw-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tdrw-payout { font-size: 18px; }
.tdrw-actual-win { font-weight: 800; color: #6efbb1; font-variant-numeric: tabular-nums; }
.tdrw-created, .tdrw-settled { font-size: 10px; color: #6c7d92; }

/* ─── Tabs ───────────────────────────────────────────────────── */
.tdrw-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #1d2632;
  background: #0a0e14;
  overflow-x: auto;
}
.tdrw-tab {
  background: transparent; border: 0; cursor: pointer;
  color: #6c7d92; padding: 10px 18px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 12px;
  white-space: nowrap;
}
.tdrw-tab:hover { color: #b8c5d6; background: #131923; }
.tdrw-tab.active {
  color: #ffe35a; border-bottom-color: #ffe35a;
  background: #131923;
}
.tdrw-tab-icon { font-size: 14px; }
.tdrw-tab-count {
  background: #283549; color: #cad5e2;
  padding: 1px 6px; border-radius: 8px;
  font-size: 10px; font-weight: 600;
}

.tdrw-body { flex: 1; overflow: auto; }
.tdrw-tab-body { padding: 16px; }
.tdrw-loading { padding: 40px; text-align: center; color: #6c7d92; }
.tdrw-error   { padding: 20px; color: #ff8a8a; background: #2a1818; margin: 12px; border-radius: 4px; }
.tdrw-empty   { padding: 40px; text-align: center; color: #6c7d92; font-style: italic; }

/* ─── Cards ──────────────────────────────────────────────────── */
.tdrw-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.tdrw-card {
  background: #131923; border: 1px solid #1d2632;
  border-radius: 6px; padding: 12px 14px;
  margin-bottom: 12px;
}
.tdrw-card:last-child { margin-bottom: 0; }
.tdrw-card-title {
  font-size: 11px; color: #ffe35a; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid #1d2632;
}
.tdrw-kv { width: 100%; border-collapse: collapse; }
.tdrw-kv th, .tdrw-kv td { text-align: left; padding: 4px 6px; vertical-align: top; }
.tdrw-kv th { color: #6c7d92; font-weight: 400; width: 40%; font-size: 11px; }
.tdrw-kv td { color: #cad5e2; font-size: 11px; }
.tdrw-dim { color: #4a566a; }

.tdrw-pill {
  background: #283549; color: #cad5e2;
  padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 600;
}
.tdrw-pill-ok   { background: #2a4d33; color: #6efbb1; }
.tdrw-pill-bad  { background: #4d2a2a; color: #ff8a8a; }
.tdrw-pill-warn { background: #4d3d2a; color: #ffb866; }
.tdrw-pill-info { background: #2a3a4d; color: #6ec8ff; }
.tdrw-pill-dim  { background: #2d3548; color: #8fa2c7; }
.tdrw-pill-green { background: #2a4d33; color: #6efbb1; }
.tdrw-pill-amber { background: #4d3d2a; color: #ffb866; }
.tdrw-pill-red   { background: #4d2a2a; color: #ff8a8a; }
.tdrw-pill-stale { background: #3d2a4d; color: #c897ff; }

/* ─── Tables ──────────────────────────────────────────────────── */
.tdrw-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tdrw-table thead th {
  background: #0a0e14; color: #6c7d92;
  text-align: left; padding: 6px 8px;
  border-bottom: 1px solid #1d2632; font-weight: 600;
  position: sticky; top: 0;
}
.tdrw-table tbody td { padding: 5px 8px; border-bottom: 1px solid #131923; vertical-align: top; }
.tdrw-table tbody tr:hover { background: #131923; }
.tdrw-row-btn {
  background: #283549; color: #cad5e2; border: 0;
  border-radius: 3px; padding: 2px 8px; cursor: pointer;
  font-family: inherit; font-size: 11px;
}
.tdrw-row-btn:hover { background: #ffe35a; color: #0a0e14; }

.tdrw-team { font-weight: 600; color: #e6edf6; }
.tdrw-mid-id { font-size: 9px; color: #4a566a; font-family: monospace; }
.tdrw-amount { font-variant-numeric: tabular-nums; font-weight: 600; color: #ffe35a; }
.tdrw-code {
  background: #0a0e14; color: #8fa2c7;
  padding: 1px 4px; border-radius: 2px;
  font-size: 10px; max-width: 380px;
  display: inline-block; overflow: hidden; text-overflow: ellipsis;
}

/* ─── Smart preset bar (in filter form) ──────────────────────── */
.at-preset-section {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--ta-border, #1d2632);
  margin-top: 8px;
}
.at-preset-cat-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.at-preset-cat-label {
  font-size: 9px; color: var(--ta-dim, #6c7d92);
  font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 86px;
}
.ta-hl-chip.hl-amber  { background: rgba(255, 184, 102, 0.10); color: #ffb866; border: 1px solid rgba(255, 184, 102, 0.25); }
.ta-hl-chip.hl-blue   { background: rgba(110, 200, 255, 0.10); color: #6ec8ff; border: 1px solid rgba(110, 200, 255, 0.25); }
.ta-hl-chip.hl-purple { background: rgba(200, 151, 255, 0.10); color: #c897ff; border: 1px solid rgba(200, 151, 255, 0.25); }
.ta-hl-chip.hl-red    { background: rgba(255, 138, 138, 0.10); color: #ff8a8a; border: 1px solid rgba(255, 138, 138, 0.25); }

/* ─── Quick chips ─────────────────────────────────────────── */
.at-quick-chips {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 4px 0;
}
.at-quick-chip {
  background: #1c232e; color: #8fa2c7; border: 1px solid #283549;
  padding: 3px 9px; border-radius: 3px; font-size: 11px; cursor: pointer;
  font-family: inherit;
}
.at-quick-chip:hover { background: #283549; color: #fff; }
.at-quick-chip.active { background: #ffe35a; color: #0a0e14; border-color: #ffe35a; }

/* ─── Advanced collapsible panel ──────────────────────────── */
.at-advanced-panel {
  margin-top: 10px;
  border-top: 1px solid #1d2632;
  padding-top: 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.at-adv-section {
  background: rgba(19, 25, 35, 0.5);
  border: 1px solid #1d2632;
  border-radius: 6px;
  padding: 10px 12px;
}
.at-adv-section-title {
  font-size: 10px; color: #ffe35a;
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.at-adv-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 6px;
}
.at-stake-inline {
  display: flex; align-items: center; gap: 4px;
}
.at-toggle {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; color: #cad5e2; font-size: 11px;
}
.at-toggle input { cursor: pointer; }
/* ─── Shared "Rezultatet e Ndeshjes" table CSS ──────────────────── */
.mres-wrap {
  background: #131923; border: 1px solid #1d2632;
  border-radius: 6px; padding: 12px 14px;
  margin-bottom: 12px;
  font-family: "SF Mono", ui-monospace, monospace;
}
.mres-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #1d2632;
}
.mres-title {
  font-size: 12px; color: #ffe35a; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  flex: 1;
}
.mres-source {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.05em;
}
.mres-source-match_results { background: #2a4d33; color: #6efbb1; }
.mres-source-admin_override { background: #4d3d2a; color: #ffb866; }
.mres-settled { font-size: 10px; color: #6c7d92; }
.mres-empty { padding: 16px; text-align: center; color: #6c7d92; font-style: italic; font-size: 11px; }

.mres-primary-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 12px;
}
.mres-primary-cell {
  background: #0a0e14; border: 1px solid #283549;
  border-radius: 6px; padding: 10px 12px;
  text-align: center;
}
.mres-primary-label {
  font-size: 9px; color: #6c7d92;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.mres-primary-value {
  font-size: 22px; font-weight: 800; color: #ffe35a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mres-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.mres-table th, .mres-table td {
  padding: 5px 8px;
  border-bottom: 1px dotted #1d2632;
}
.mres-table th {
  text-align: left; color: #8fa2c7; font-weight: 400; width: 60%;
}
.mres-table td {
  text-align: right; color: #cad5e2; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mres-row-sec td { color: #ffe35a; }

/* When embedded inline in ticket drawer matches tab (compact) */
.td-mres-inline { background: #0a0e14; border-radius: 4px; padding: 8px 10px; margin: 6px 0; }
.td-mres-inline .mres-head { padding-bottom: 5px; margin-bottom: 6px; }
.td-mres-inline .mres-title { font-size: 10px; }
.td-mres-inline .mres-primary-cell { padding: 6px 8px; }
.td-mres-inline .mres-primary-value { font-size: 16px; }
.td-mres-inline .mres-table th, .td-mres-inline .mres-table td { padding: 3px 6px; font-size: 10px; }
/* ─── Real-time pulse animations ──────────────────────────────── */
.rt-pulse {
  animation: rt-pulse-anim 2.4s ease-out;
  position: relative;
}
@keyframes rt-pulse-anim {
  0%   { box-shadow: 0 0 0 0 rgba(255, 227, 90, 0.7); }
  50%  { box-shadow: 0 0 0 12px rgba(255, 227, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 227, 90, 0); }
}
.rt-pulse-end { animation: rt-pulse-end-anim 2.4s ease-out; }
@keyframes rt-pulse-end-anim {
  0% { box-shadow: 0 0 0 0 rgba(110, 251, 177, 0.8); }
  100% { box-shadow: 0 0 0 16px rgba(110, 251, 177, 0); }
}
.rt-pulse-override { animation: rt-pulse-override-anim 2.4s ease-out; }
@keyframes rt-pulse-override-anim {
  0% { box-shadow: 0 0 0 0 rgba(110, 200, 255, 0.8); }
  100% { box-shadow: 0 0 0 16px rgba(110, 200, 255, 0); }
}
.rt-pulse-settled-won { animation: rt-pulse-won-anim 2.4s ease-out; }
@keyframes rt-pulse-won-anim {
  0% { box-shadow: 0 0 0 0 rgba(110, 251, 177, 0.8); }
  100% { box-shadow: 0 0 0 16px rgba(110, 251, 177, 0); }
}
.rt-pulse-settled-lost { animation: rt-pulse-lost-anim 2.4s ease-out; }
@keyframes rt-pulse-lost-anim {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 138, 0.8); }
  100% { box-shadow: 0 0 0 16px rgba(255, 138, 138, 0); }
}

.rt-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #131923; color: #cad5e2;
  border: 1px solid #283549; border-radius: 6px;
  padding: 10px 16px; font-family: "SF Mono", monospace; font-size: 12px;
  z-index: 9999;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s, opacity 0.4s;
  animation: rt-toast-in 0.3s ease-out;
}
@keyframes rt-toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.rt-toast-out { transform: translateX(100%); opacity: 0; }
/* ─── Ticket Quick Actions CSS ────────────────────────────────── */
.tqa-actions {
  display: flex; gap: 4px;
  margin-bottom: 6px;
}
.tqa-btn {
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 3px; cursor: pointer;
  letter-spacing: 0.04em;
  border: 1px solid #283549;
  background: #1c232e; color: #cad5e2;
}
.tqa-btn-note   { color: #6ec8ff; border-color: rgba(110, 200, 255, 0.4); background: rgba(110, 200, 255, 0.08); }
.tqa-btn-reopen { color: #ffb866; border-color: rgba(255, 184, 102, 0.4); background: rgba(255, 184, 102, 0.08); }
.tqa-btn-void   { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.4); background: rgba(255, 138, 138, 0.08); }
.tqa-btn:hover { filter: brightness(1.4); }
.tqa-btn.active {
  background: currentColor; color: #0a0e14;
}

.tqa-form {
  background: linear-gradient(180deg, #1a2330 0%, #131923 100%);
  border-bottom: 1px solid #1d2632;
  padding: 14px 18px;
  font-family: "SF Mono", monospace; color: #cad5e2;
  animation: tqa-slide-down 0.2s ease-out;
}
.tqa-form-red    { border-top: 1px solid rgba(255, 138, 138, 0.4); }
.tqa-form-amber  { border-top: 1px solid rgba(255, 184, 102, 0.4); }
.tqa-form-blue   { border-top: 1px solid rgba(110, 200, 255, 0.4); }
@keyframes tqa-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tqa-form-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid #1d2632;
}
.tqa-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tqa-form-red .tqa-title    { color: #ff8a8a; }
.tqa-form-amber .tqa-title  { color: #ffb866; }
.tqa-form-blue .tqa-title   { color: #6ec8ff; }

.tqa-close {
  background: transparent; color: #6c7d92; border: 1px solid #283549;
  width: 22px; height: 22px; border-radius: 3px; cursor: pointer;
}
.tqa-close:hover { color: #fff; }

.tqa-warn {
  padding: 8px 10px;
  background: rgba(255, 184, 102, 0.08);
  border: 1px solid rgba(255, 184, 102, 0.3);
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 11px; color: #ffb866;
}
.tqa-warn strong { color: #fff; }
.tqa-warn-sub { font-size: 10px; color: #cad5e2; margin-top: 4px; }

.tqa-info {
  padding: 8px 10px;
  background: rgba(110, 200, 255, 0.05);
  border: 1px solid rgba(110, 200, 255, 0.25);
  border-radius: 4px; margin-bottom: 10px;
  font-size: 11px; color: #6ec8ff;
}

.tqa-ff { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.tqa-label { font-size: 10px; color: #8fa2c7; letter-spacing: 0.04em; }
.tqa-input {
  background: #0a0e14; color: #cad5e2;
  border: 1px solid #283549; padding: 6px 8px; border-radius: 3px;
  font-family: inherit; font-size: 12px; outline: none; width: 100%;
}
.tqa-input:focus { border-color: #ffe35a; }
.tqa-input.tqa-err { border-color: #ff5a5a; animation: tqa-shake 0.3s; }
.tqa-textarea { resize: vertical; min-height: 60px; }
@keyframes tqa-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.tqa-actions-row {
  display: flex; justify-content: flex-end; gap: 8px;
}
.tqa-cancel {
  background: transparent; color: #cad5e2;
  border: 1px solid #283549; padding: 6px 14px; border-radius: 3px;
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.tqa-cancel:hover { border-color: #4a5d7a; }
.tqa-submit {
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 3px; cursor: pointer; border: 0;
}
.tqa-submit-red    { background: #ff8a8a; color: #0a0e14; }
.tqa-submit-amber  { background: #ffb866; color: #0a0e14; }
.tqa-submit-blue   { background: #6ec8ff; color: #0a0e14; }
.tqa-submit:hover  { filter: brightness(1.1); }
.tqa-submit:disabled { opacity: 0.5; cursor: wait; }

.tqa-flash {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #131923; color: #cad5e2;
  border: 1px solid #283549; border-radius: 6px;
  padding: 10px 16px; font-family: "SF Mono", monospace; font-size: 12px;
  z-index: 99999; box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  transition: opacity 0.3s;
}
.tqa-flash-green { background: #2a4d33; color: #6efbb1; border-color: #6efbb1; }
.tqa-flash-red   { background: #4d2a2a; color: #ff8a8a; border-color: #ff8a8a; }
/* ─── Shared "Rezultatet e Ndeshjes" table CSS ──────────────────── */
.mres-wrap {
  background: #131923; border: 1px solid #1d2632;
  border-radius: 6px; padding: 12px 14px;
  margin-bottom: 12px;
  font-family: "SF Mono", ui-monospace, monospace;
}
.mres-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #1d2632;
}
.mres-title {
  font-size: 12px; color: #ffe35a; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  flex: 1;
}
.mres-source {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.05em;
}
.mres-source-match_results { background: #2a4d33; color: #6efbb1; }
.mres-source-admin_override { background: #4d3d2a; color: #ffb866; }
.mres-settled { font-size: 10px; color: #6c7d92; }
.mres-empty { padding: 16px; text-align: center; color: #6c7d92; font-style: italic; font-size: 11px; }

.mres-primary-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 12px;
}
.mres-primary-cell {
  background: #0a0e14; border: 1px solid #283549;
  border-radius: 6px; padding: 10px 12px;
  text-align: center;
}
.mres-primary-label {
  font-size: 9px; color: #6c7d92;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.mres-primary-value {
  font-size: 22px; font-weight: 800; color: #ffe35a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mres-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.mres-table th, .mres-table td {
  padding: 5px 8px;
  border-bottom: 1px dotted #1d2632;
}
.mres-table th {
  text-align: left; color: #8fa2c7; font-weight: 400; width: 60%;
}
.mres-table td {
  text-align: right; color: #cad5e2; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mres-row-sec td { color: #ffe35a; }

/* When embedded inline in ticket drawer matches tab (compact) */
.td-mres-inline { background: #0a0e14; border-radius: 4px; padding: 8px 10px; margin: 6px 0; }
.td-mres-inline .mres-head { padding-bottom: 5px; margin-bottom: 6px; }
.td-mres-inline .mres-title { font-size: 10px; }
.td-mres-inline .mres-primary-cell { padding: 6px 8px; }
.td-mres-inline .mres-primary-value { font-size: 16px; }
.td-mres-inline .mres-table th, .td-mres-inline .mres-table td { padding: 3px 6px; font-size: 10px; }

/* Timeline panel */
.mres-timeline-wrap { margin-top: 14px; padding: 10px 12px; background: #0a0e14; border: 1px solid #1d2632; border-radius: 6px; }
.mres-timeline-title { font-size: 11px; color: #ffe35a; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.mres-timeline-list { display: flex; flex-direction: column; gap: 3px; }
.mres-tl-row { display: grid; grid-template-columns: 50px 24px 1fr 1.5fr; gap: 8px; padding: 5px 8px; border-radius: 3px; font-size: 11px; align-items: center; background: #131923; }
.mres-tl-row.mres-tl-home { border-left: 3px solid #6efbb1; }
.mres-tl-row.mres-tl-away { border-left: 3px solid #ffb866; }
.mres-tl-row.mres-tl-goal { background: rgba(110, 251, 177, 0.08); }
.mres-tl-row.mres-tl-red { background: rgba(255, 138, 138, 0.10); }
.mres-tl-row.mres-tl-yellow { background: rgba(255, 227, 90, 0.06); }
.mres-tl-row.mres-tl-penalty_scored, .mres-tl-row.mres-tl-penalty_missed { background: rgba(200, 151, 255, 0.08); }
.mres-tl-minute { font-weight: 700; color: #ffe35a; font-variant-numeric: tabular-nums; font-size: 12px; }
.mres-tl-icon { font-size: 14px; text-align: center; }
.mres-tl-kind { color: #cad5e2; font-weight: 600; }
.mres-tl-player { color: #8fa2c7; }
.mres-tl-row.mres-tl-goal .mres-tl-kind { color: #6efbb1; }
.mres-tl-row.mres-tl-red .mres-tl-kind { color: #ff8a8a; }
.mres-dim { color: #4a566a; font-style: italic; }

/* ─── Page navigator (2026-05-14) ───────────────────────────────── */
.at-pagenav {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  margin-top: 12px;
  background: var(--ta-card, #131923);
  border: 1px solid var(--ta-line, #1d2632);
  border-radius: 6px;
}
.at-pagenav-info {
  font-size: 12px; color: var(--ta-text-2, #8fa2c7);
}
.at-pagenav-info strong { color: #ffe35a; font-weight: 700; }
.at-pagenav-label { font-size: 11px; color: var(--ta-text-3, #6c7d92); margin-right: 6px; }
.at-pagenav-sizes, .at-pagenav-buttons, .at-pagenav-jump {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.at-pagenav-size, .at-pagenav-btn {
  background: var(--ta-card-head, #1c232e);
  color: var(--ta-text, #cad5e2);
  border: 1px solid var(--ta-line, #283549);
  padding: 5px 10px; border-radius: 3px;
  font-family: inherit; font-size: 11px; cursor: pointer;
  min-width: 32px; text-align: center;
}
.at-pagenav-size:hover:not(:disabled),
.at-pagenav-btn:hover:not(:disabled) { background: #283549; color: #fff; }
.at-pagenav-size.active, .at-pagenav-btn.active {
  background: #ffe35a; color: #0a0e14; border-color: #ffe35a; font-weight: 700;
}
.at-pagenav-size:disabled, .at-pagenav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.at-pagenav-ellipsis { padding: 0 6px; color: var(--ta-text-3, #6c7d92); }
.at-pagenav-jump-input {
  background: #0a0e14; color: #cad5e2;
  border: 1px solid #283549; border-radius: 3px;
  padding: 4px 8px; width: 70px; font-family: inherit; font-size: 11px;
}
.at-pagenav-jump-input:focus { outline: none; border-color: #ffe35a; }

/* 2026-05-15 — Të Gjitha Biletat 3-zone card head.
 * Status pill + risk labels sit in a band that is absolutely centered to
 * the row, so they align vertically down the whole list no matter how long
 * the user-tree breadcrumb runs. Scoped to .ta-card-head--zones so the
 * shared Pranimi/Ticket-Accept chassis (.ta-card-head) is untouched. */
.ta-card-head.ta-card-head--zones {
  position: relative;
  flex-wrap: nowrap;
  gap: 10px;
}
.ta-card-head--zones .ta-ch-left {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 auto; min-width: 0; overflow: hidden;
}
.ta-card-head--zones .ta-ch-left .ta-card-tree { flex: 0 1 auto; }
.ta-card-head--zones .ta-ch-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  max-width: 56%;
  pointer-events: none;        /* clicks pass through to card; pills re-enable */
}
.ta-card-head--zones .ta-ch-center > * { pointer-events: auto; }
.ta-card-head--zones .ta-ch-center .at-state-pill {
  min-width: 88px; text-align: center; justify-content: center;
  letter-spacing: .04em; font-weight: 800;
}
.ta-card-head--zones .ta-ch-risk {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: center;
}
.ta-card-head--zones .ta-ch-right {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: auto; flex: 0 0 auto;
}
/* Narrow screens: drop absolute centering so nothing overlaps. */
@media (max-width: 1100px) {
  .ta-card-head.ta-card-head--zones { flex-wrap: wrap; }
  .ta-card-head--zones .ta-ch-center {
    position: static; transform: none; max-width: 100%;
    order: 3; width: 100%; justify-content: center; margin-top: 4px;
  }
  .ta-card-head--zones .ta-ch-right { order: 2; }
}

/* 2026-05-15 — readable captions + tightened risk band in the centered head.
 * "STATUSI:" / "RREZIK:" mini-labels make each row self-explanatory. */
.ta-card-head--zones .ta-ch-statuslbl,
.ta-card-head--zones .ta-ch-risklbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ta-text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.ta-card-head--zones .ta-ch-risklbl { margin-left: 4px; color: var(--ta-bad); opacity: .8; }
.ta-card-head--zones .ta-ch-risk {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: center;
  padding-left: 10px; margin-left: 4px;
  border-left: 1px solid var(--ta-line);
}
/* Uniform, compact risk chips so the band stays tidy at row scale. */
.ta-card-head--zones .ta-ch-risk .ta-fraud-pip,
.ta-card-head--zones .ta-ch-risk .ta-repeated-pip,
.ta-card-head--zones .ta-ch-risk .ta-alert-pip {
  font-size: 10px; font-weight: 800; line-height: 1;
  padding: 3px 8px; min-height: 22px;
  letter-spacing: .04em;
}
.ta-card-head--zones .ta-ch-risk .ta-repeated-pip strong { font-size: 11px; }
.ta-card-head--zones .ta-ch-risk .ta-alert-pip {
  width: auto; padding: 3px 8px;
}
.ta-card-head--zones .ta-ch-center { gap: 9px; }

/* 2026-05-15 — payout-status chip (Phase 4: Të Gjitha audit richness). */
.at-pay-chip{
  display:inline-flex;align-items:center;font-size:10px;font-weight:800;
  letter-spacing:.05em;padding:2px 8px;border-radius:4px;margin-left:8px;
  text-transform:uppercase;white-space:nowrap;
}
.at-pay-chip.paid  { background:rgba(74,222,128,.15); color:#4ade80; border:1px solid rgba(74,222,128,.4); }
.at-pay-chip.unpaid{ background:rgba(255,170,40,.16); color:#ffaa28; border:1px solid rgba(255,170,40,.45); }
