/* ═══════════════════════════════════════════════════════════
   ALFA CENTER CHAMADOS — Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand:        #1a3c6e;
  --brand-dark:   #122d54;
  --brand-light:  #2554a0;
  --accent:       #e8921a;
  --accent-light: #fdf3e5;
  --success:      #16a34a;
  --danger:       #dc2626;
  --warning:      #d97706;
  --info:         #0891b2;

  --bg:           #f3f6fb;
  --surface:      #ffffff;
  --border:       #e5eaf3;
  --border-soft:  rgba(0,0,0,0.06);

  --text-main:    #1e2d42;
  --text-sub:     #5a6a7e;
  --text-muted:   #8fa3b1;

  --navbar-h:     64px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --trans:        0.18s ease;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  font-size: 0.9375rem;
  line-height: 1.55;
  min-height: 100vh;
}

/* ── PWA Safe Area (notch / home indicator) ───────────────── */
body {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  height: var(--navbar-h);
  background: var(--brand) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(10,25,50,0.25);
  padding: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.navbar .container { height: 100%; }

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  gap: 8px;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* Nav links */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: background var(--trans), color var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
.nav-link.active {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

/* Notification bell */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  transition: background var(--trans);
  cursor: pointer;
}
.notif-bell:hover { background: rgba(255,255,255,0.18); color: #fff; }
.notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--brand);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Avatar with initials */
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2554a0, #1a3c6e);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Dropdown menu */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  padding: 8px 12px;
  transition: background var(--trans);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-divider { margin: 4px 0; }

/* ── Main content area ────────────────────────────────────── */
main {
  padding: 28px 0 48px;
  /* Espaço extra para home indicator no Android/iOS em modo PWA */
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-title h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header-title p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--surface);
  transition: box-shadow var(--trans);
}
.card:hover { box-shadow: var(--shadow) !important; }

.card-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 20px !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── KPI Cards ────────────────────────────────────────────── */
.kpi-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--trans), transform var(--trans);
  cursor: default;
}
.kpi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.kpi-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.kpi-icon.blue   { background: #eff6ff; color: #2563eb; }
.kpi-icon.amber  { background: #fffbeb; color: #d97706; }
.kpi-icon.gray   { background: #f8fafc; color: #64748b; }
.kpi-icon.green  { background: #f0fdf4; color: #16a34a; }
.kpi-icon.red    { background: #fef2f2; color: #dc2626; }
.kpi-icon.purple { background: #faf5ff; color: #7c3aed; }

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}
.kpi-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 2px;
  font-weight: 500;
}
.kpi-card.kpi-alert {
  border-color: #fca5a5;
  background: #fff5f5;
}
.kpi-card.kpi-alert .kpi-value { color: var(--danger); }
.kpi-card.kpi-alert:hover { box-shadow: 0 4px 20px rgba(220,38,38,0.15); }

/* ── Tables ───────────────────────────────────────────────── */
.table {
  font-size: 0.875rem;
  color: var(--text-main);
  margin: 0;
}
.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 16px;
  white-space: nowrap;
  background: #fafbfd;
}
.table tbody tr {
  transition: background var(--trans);
}
.table tbody tr:hover td { background: #f8fbff; }
.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}
.table tbody tr:last-child td { border-bottom: none; }

/* Priority row tints */
.row-urgente td { background: rgba(220,38,38,0.03) !important; }
.row-urgente:hover td { background: rgba(220,38,38,0.06) !important; }
.row-alta td { background: rgba(217,119,6,0.03) !important; }
.row-alta:hover td { background: rgba(217,119,6,0.06) !important; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

/* ── Status Badges (soft) ─────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-aberto    { background: #eff6ff; color: #2563eb; }
.status-aberto::before    { background: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.3); }
.status-andamento { background: #fffbeb; color: #d97706; }
.status-andamento::before { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.3); }
.status-aguardando { background: #f8fafc; color: #64748b; }
.status-aguardando::before { background: #94a3b8; }
.status-resolvido { background: #f0fdf4; color: #16a34a; }
.status-resolvido::before { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.3); }
.status-cancelado { background: #fdf2f8; color: #9333ea; }
.status-cancelado::before { background: #a855f7; }

/* ── Search bar ───────────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 320px;
  flex: 1;
}
.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-input {
  padding-left: 36px;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.search-input:focus {
  background: var(--surface);
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(37,84,160,0.1);
  outline: none;
}

/* ── Filter tabs ──────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filter-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  text-decoration: none;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-tab:hover {
  background: var(--bg);
  border-color: var(--brand-light);
  color: var(--brand);
}
.filter-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.filter-tab .tab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.7rem;
}
.filter-tab:not(.active) .tab-count {
  background: var(--border);
  color: var(--text-muted);
}

/* ── Timeline / Chat ──────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-bubble {
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.msg-bubble.msg-admin {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-bubble.msg-user {
  align-self: flex-start;
}

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg-avatar.av-admin { background: linear-gradient(135deg, #1a3c6e, #2554a0); }
.msg-avatar.av-user  { background: linear-gradient(135deg, #374151, #6b7280); }

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-bubble.msg-admin .msg-body { align-items: flex-end; }

.msg-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-meta .msg-name { font-weight: 600; color: var(--text-sub); }
.msg-bubble.msg-admin .msg-meta { flex-direction: row-reverse; }

.msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-bubble.msg-admin .msg-content {
  background: linear-gradient(135deg, #1a3c6e, #2554a0);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.msg-bubble.msg-user .msg-content {
  background: #f1f5f9;
  color: var(--text-main);
  border-radius: 4px 14px 14px 14px;
}

.msg-suporte-badge {
  font-size: 0.62rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* System event in timeline */
.timeline-event {
  text-align: center;
  position: relative;
}
.timeline-event span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ── Status Steps ─────────────────────────────────────────── */
.status-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow-x: auto;
}
.status-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 90px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  flex-shrink: 0;
  transition: all var(--trans);
  font-weight: 700;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--trans);
}
.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 4px;
  font-weight: 500;
}
.status-step.done .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.status-step.done .step-line { background: var(--success); }
.status-step.current .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(26,60,110,0.2);
}
.status-step.current .step-label { color: var(--brand); font-weight: 700; }

/* ── Ticket detail sidebar ────────────────────────────────── */
.detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.detail-item:last-child { border-bottom: none; }
.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.detail-value {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm) !important;
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-primary:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  box-shadow: 0 4px 12px rgba(26,60,110,0.3) !important;
}
.btn-success:hover {
  box-shadow: 0 4px 12px rgba(22,163,74,0.3) !important;
}
.btn-sm { font-size: 0.8rem; padding: 5px 12px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(37,84,160,0.12);
}

/* Char counter */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}
.char-counter.warning { color: var(--warning); }
.char-counter.danger  { color: var(--danger); }

/* Drag & drop zone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: all var(--trans);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-light);
  background: #eff6ff;
}
.dropzone .dz-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 8px; }
.dropzone .dz-text { font-size: 0.875rem; color: var(--text-sub); }
.dropzone .dz-sub  { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-sub);
}
.file-chip .remove-file {
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 2px;
  font-size: 0.85rem;
  transition: color var(--trans);
}
.file-chip .remove-file:hover { color: var(--danger); }

/* ── Admin filter panel ───────────────────────────────────── */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}
.empty-state h5 { color: var(--text-sub); font-weight: 600; margin-bottom: 8px; }
.empty-state p  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Alert urgente ────────────────────────────────────────── */
.alert-urgente {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: #fca5a5; }
  50%       { border-color: #ef4444; }
}

/* ── Ticket ID chip ───────────────────────────────────────── */
.ticket-id {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticket-id:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Relative time ────────────────────────────────────────── */
.rel-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── User info chip ───────────────────────────────────────── */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #374151, #6b7280);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-chip-name { font-size: 0.875rem; font-weight: 500; }
.user-chip-sub  { font-size: 0.72rem; color: var(--text-muted); }

/* ── Charts container ─────────────────────────────────────── */
.chart-wrap {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Login wrapper ────────────────────────────────────────── */
.login-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  main { padding: 20px 0 40px; }
  .kpi-card { padding: 14px 16px; }
  .kpi-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .kpi-value { font-size: 1.6rem; }
  .msg-bubble { max-width: 95%; }
}
@media (max-width: 576px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .page-header { flex-direction: column; align-items: stretch; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.25s ease forwards; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d9e6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a8b5c8; }

/* ── Kanban Board ─────────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
  min-height: 70vh;
}
.kanban-col {
  flex: 0 0 260px;
  min-width: 260px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.kanban-col-header {
  padding: 12px 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.kanban-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.kanban-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans);
}
.kanban-card:hover {
  box-shadow: var(--shadow);
}
.kanban-urgente {
  border-left: 3px solid #ef4444;
  animation: pulse-border 2s infinite;
}
.kanban-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 4px 0;
}
.kanban-title:hover { color: var(--brand-light); }
.kanban-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.kanban-deadline {
  font-size: 0.7rem;
  margin-top: 4px;
}
.kanban-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 24px 0;
}
.ticket-id-sm {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Deadline row highlight ───────────────────────────────── */
.row-deadline td { background: #fff7ed !important; }

/* ── FAB — Botão flutuante Novo Chamado (mobile) ──────────── */
.fab-novo-chamado {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(232,146,26,0.45);
  text-decoration: none;
  z-index: 1050;
  transition: transform var(--trans), box-shadow var(--trans);
}
.fab-novo-chamado:hover,
.fab-novo-chamado:active {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(232,146,26,0.6);
  color: #fff;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 500;
}
