/* ═══════════════════════════════════════════════════════════════
   TkT Support  ·  Main Stylesheet
   Aesthetic: Industrial precision – warm slate, amber accent
   Fonts: Syne (display) + DM Sans (body) + DM Mono (data)
═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #2c3140;
  --bg-2:        #343b4d;
  --bg-3:        #3d4558;
  --border:      #4a5368;
  --border-2:    #5c6880;
  --text:        #eef1f6;
  --text-2:      #b0baca;
  --text-3:      #8492a8;
  --accent:      #f59e0b;
  --accent-dim:  #92400e;
  --accent-glow: rgba(245,158,11,.18);
  --green:       #10b981;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --orange:      #f97316;
  --purple:      #a855f7;
  --radius:      6px;
  --radius-lg:   12px;
  --sidebar-w:   240px;
  --topbar-h:    56px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --shadow:       0 1px 3px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.15);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */

body:not(.auth-page) { display: flex; }

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s ease;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform .25s ease;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 16px 20px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: all .15s;
}

.nav-item svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text);
  background: var(--bg-3);
  border-left-color: var(--border-2);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
  font-weight: 500;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; min-width: 0; }

.user-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.logout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  color: var(--text-3);
  text-decoration: none;
  transition: all .15s;
  flex-shrink: 0;
}

.logout-btn:hover { color: var(--red); background: rgba(239,68,68,.1); }
.logout-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── TOPBAR ──────────────────────────────────────────────────── */

.topbar {
  height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.topbar-actions { display: flex; gap: 8px; }

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.sidebar-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all .2s;
}

/* ── CONTENT ─────────────────────────────────────────────────── */

.content { flex: 1; padding: 28px 32px; max-width: 1400px; }

/* ── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: #fbbf24; border-color: #fbbf24; }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-2); background: var(--bg-3); }

.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover { background: rgba(239,68,68,.1); }

.btn-success {
  background: var(--green);
  color: #fff;
}
.btn-success:hover { opacity: .9; }

.btn-sm { padding: 5px 10px; font-size: .8rem; }
.btn-icon { padding: 6px; border-radius: var(--radius); }

/* ── CARDS ───────────────────────────────────────────────────── */

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ── STAT GRID ───────────────────────────────────────────────── */

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

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-card.green::before  { background: var(--green); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.red::before    { background: var(--red); }
.stat-card.red .stat-value { color: var(--red); }
.stat-card.blue::before   { background: var(--blue); }
.stat-card.blue .stat-value { color: var(--blue); }

/* ── TABLES ──────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead th {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

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

tbody tr:hover td { background: var(--bg-3); color: var(--text); }

/* ── FORMS ───────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-control {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: .875rem;
  width: 100%;
  transition: border-color .15s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-3); }

textarea.form-control { resize: vertical; min-height: 90px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

.form-check { display: flex; align-items: center; gap: 8px; }

.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
}

.field-error {
  font-size: .75rem;
  color: var(--red);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── BADGES ──────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid;
}

.badge-open        { color: var(--blue);   border-color: var(--blue);   background: rgba(59,130,246,.1); }
.badge-assigned    { color: var(--orange); border-color: var(--orange); background: rgba(249,115,22,.1); }
.badge-in_progress { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.badge-waiting     { color: var(--purple); border-color: var(--purple); background: rgba(168,85,247,.1); }
.badge-pending     { color: var(--red);    border-color: var(--red);    background: rgba(239,68,68,.1); }
.badge-solved      { color: var(--green);  border-color: var(--green);  background: rgba(16,185,129,.1); }
.badge-closed      { color: var(--text-3); border-color: var(--border); background: transparent; }

.badge-urgent  { color: var(--red);    border-color: var(--red);    background: rgba(239,68,68,.1); }
.badge-quick   { color: var(--orange); border-color: var(--orange); background: rgba(249,115,22,.1); }
.badge-normal  { color: var(--text-3); border-color: var(--border); background: transparent; }

.badge-master     { color: var(--accent);  border-color: var(--accent);  background: var(--accent-glow); }
.badge-admin      { color: var(--blue);    border-color: var(--blue);    background: rgba(59,130,246,.1); }
.badge-technician { color: var(--green);   border-color: var(--green);   background: rgba(16,185,129,.1); }
.badge-customer   { color: var(--text-2);  border-color: var(--border);  background: transparent; }

.badge-active    { color: var(--green); border-color: var(--green);  background: rgba(16,185,129,.1); }
.badge-pending   { color: var(--orange);border-color: var(--orange); background: rgba(249,115,22,.1); }
.badge-suspended { color: var(--red);   border-color: var(--red);    background: rgba(239,68,68,.1); }

/* ── ALERTS ──────────────────────────────────────────────────── */

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 12px;
  font-size: .875rem;
  transition: opacity .4s;
}

.alert-success { color: var(--green);  border-color: var(--green);  background: rgba(16,185,129,.08); }
.alert-danger  { color: var(--red);    border-color: var(--red);    background: rgba(239,68,68,.08); }
.alert-warning { color: var(--orange); border-color: var(--orange); background: rgba(249,115,22,.08); }
.alert-info    { color: var(--blue);   border-color: var(--blue);   background: rgba(59,130,246,.08); }

.alert-close {
  background: none; border: none; cursor: pointer;
  color: inherit; font-size: 1.1rem; opacity: .6;
  padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

/* ── AUTH PAGES ──────────────────────────────────────────────── */

body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(245,158,11,.06) 0%, transparent 60%),
    var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
}

.auth-logo .logo-tagline {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-3);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.auth-card .form-group { margin-bottom: 16px; }

.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-3);
}

.auth-link a { color: var(--accent); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

.auth-alert { max-width: 420px; margin: 0 auto 12px; }

/* ── TICKET VIEW ─────────────────────────────────────────────── */

.ticket-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ticket-id {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .06em;
}

.ticket-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.meta-item { display: flex; flex-direction: column; gap: 4px; }

.meta-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meta-value { font-size: .875rem; color: var(--text); font-weight: 500; }

.ticket-body { margin-bottom: 28px; }

.ticket-body p {
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-wrap;
}

.ticket-timeline { border-left: 2px solid var(--border); padding-left: 20px; }

.tl-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -25px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: 2px solid var(--bg-2);
}

.tl-item.action-create::before   { background: var(--green); }
.tl-item.action-assign::before   { background: var(--blue); }
.tl-item.action-reassign::before { background: var(--red); }
.tl-item.action-solved::before  { background: var(--accent); }
.tl-item.action-closed::before  { background: var(--text-3); }

.tl-meta {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-3);
  margin-bottom: 4px;
  letter-spacing: .04em;
}

.tl-body { font-size: .875rem; color: var(--text-2); }

.tl-internal {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--purple);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
}

/* ── FILTERS ─────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select, .filter-bar input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  font-size: .85rem;
  cursor: pointer;
}

.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── PAGINATION ──────────────────────────────────────────────── */

.pagination {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  justify-content: center;
}

.page-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}

.page-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.page-btn:hover:not(.active) { border-color: var(--border-2); color: var(--text); }

/* ── EMPTY STATE ─────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}

.empty-state svg {
  width: 40px; height: 40px;
  stroke: var(--border-2);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Sidebar: slide off-screen, overlay when open */
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
  }
  .sidebar-overlay.open { display: block; }

  /* Main layout */
  .main-wrap { margin-left: 0; }
  .sidebar-toggle { display: flex; }

  /* Topbar: shrink title font, keep actions visible */
  .topbar { padding: 0 14px; gap: 10px; }
  .page-title { font-size: .875rem; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding: 5px 10px; font-size: .78rem; }

  /* Content area */
  .content { padding: 16px 14px; }

  /* Stats grid: 2 columns on mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 1.5rem; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }
  .form-control { font-size: 1rem; padding: 10px 12px; } /* bigger tap target */
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }

  /* Cards */
  .card { padding: 16px; }
  .card-header { margin-bottom: 14px; padding-bottom: 12px; }

  /* Filter bar: stack on very small screens */
  .filter-bar { gap: 8px; }
  .filter-bar select,
  .filter-bar input[type="date"] { width: 100%; }

  /* Tables: horizontal scroll on mobile */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* Ticket list: hide less critical columns on mobile */
  .ticket-col-category,
  .ticket-col-updated { display: none; }

  /* Ticket view: stack timeline + actions vertically */
  .ticket-view-grid {
    grid-template-columns: 1fr !important;
  }

  /* Ticket meta: 2 cols on mobile */
  .ticket-meta {
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px;
    gap: 10px;
  }

  /* Ticket title */
  .ticket-title { font-size: 1.15rem; }

  /* Buttons */
  .btn { font-size: .82rem; }
  .btn-sm { padding: 6px 10px; font-size: .78rem; }

  /* Queue page cards */
  .queue-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* Auth page */
  .auth-box { padding: 16px; }
  .auth-card { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ticket-meta { grid-template-columns: 1fr; }
  .topbar-actions .endpoint-badge { display: none; } /* hide on very small */
}
/* ── Internal ticket log notes ───────────────────────────────────────────────
   Append these rules to the end of app/static/css/main.css
   ─────────────────────────────────────────────────────────────────────────── */

/* Internal note row: muted left border + slightly dimmed background */
.tl-internal {
  border-left-color: var(--border-2) !important; /* override any action-* color */
  opacity: 0.82;
  background: rgba(255, 255, 255, 0.04);
}

/* "internal" badge shown in the meta line */
.badge-internal {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.12);
  border: 1px solid rgba(156, 163, 175, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Endpoint badge (topbar function indicator) ──────────────────────────── */
.endpoint-badge {
  display: inline-block;
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.68rem;
  color: var(--text-3, #6b7280);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.75;
  margin-left: 8px;
}

/* ── User list selection ─────────────────────────────────────────────────── */
.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}
.bulk-action-bar .btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.selection-count {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.78rem;
  color: var(--text-3, #6b7280);
  margin-left: 4px;
}
.row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #6366f1);
  cursor: pointer;
}
