/* ============================================================
   FILA FÁCIL - Stylesheet Principal
   ============================================================ */

:root {
  --primary: #1e3a5f;
  --primary-dark: #152a47;
  --primary-light: #2563eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;

  --p1-color: #dc2626;   /* Prioridade 1 - Idoso/PNE */
  --p2-color: #d97706;   /* Prioridade 2 - Gestante */
  --p3-color: #059669;   /* Normal */

  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #1e3a5f;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

/* ============================================================
   LAYOUT ADMIN / ATENDENTE
   ============================================================ */
.app-wrapper { display:flex; min-height:100vh; }

/* SIDEBAR */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}
.sidebar-logo span { color: var(--accent); }
.sidebar-local {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-nav { padding: .75rem 0; flex:1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--accent);
}
.sidebar-nav .nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.3);
  padding: 1rem 1.25rem .4rem;
}
.sidebar-nav .icon { width:18px; text-align:center; font-size:16px; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.sidebar-footer strong { color: rgba(255,255,255,.7); }

/* MAIN CONTENT */
.main-content { flex:1; display:flex; flex-direction:column; overflow:hidden; }

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.topbar-actions { display:flex; align-items:center; gap:.75rem; }

.content { padding: 1.5rem; flex:1; overflow-y:auto; }

/* ============================================================
   COMPONENTES GENÉRICOS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display:flex; align-items:center; gap:.5rem;
}
.card-body { padding: 1.25rem; }

/* GRID */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }

/* STAT CARDS */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  font-size: 22px;
}
.stat-icon.blue  { background:#dbeafe; }
.stat-icon.green { background:#d1fae5; }
.stat-icon.amber { background:#fef3c7; }
.stat-icon.red   { background:#fee2e2; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--primary); line-height:1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary   { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-hover); }
.btn-success   { background:var(--success); color:#fff; }
.btn-success:hover { background:#047857; }
.btn-danger    { background:var(--danger); color:#fff; }
.btn-danger:hover { background:#b91c1c; }
.btn-warning   { background:var(--warning); color:#fff; }
.btn-warning:hover { background:#b45309; }
.btn-outline   { background:transparent; border:1.5px solid var(--border); color:var(--text); }
.btn-outline:hover { border-color:#94a3b8; background:var(--bg); }
.btn-ghost     { background:transparent; color:var(--text-muted); }
.btn-ghost:hover { background:var(--bg); }
.btn-sm { padding: .3rem .7rem; font-size:12px; }
.btn-lg { padding: .75rem 1.5rem; font-size:16px; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

/* FORMS */
.form-group { margin-bottom: 1rem; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:.35rem; }
.form-control, .form-select {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-hint { font-size:11.5px; color:var(--text-muted); margin-top:.3rem; }
.form-row { display:grid; gap:.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-success { background:#d1fae5; color:#065f46; }
.badge-danger  { background:#fee2e2; color:#991b1b; }
.badge-warning { background:#fef3c7; color:#92400e; }
.badge-info    { background:#dbeafe; color:#1e40af; }
.badge-p1      { background:#fee2e2; color:#991b1b; }
.badge-p2      { background:#fef3c7; color:#92400e; }
.badge-p3      { background:#d1fae5; color:#065f46; }

/* TABLE */
.table-wrapper { overflow-x:auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
}
table.data-table th {
  background: var(--bg);
  padding: .65rem 1rem;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
table.data-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(241,245,249,.7); }

/* ALERT */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 1rem;
  display:flex; align-items:flex-start; gap:.6rem;
}
.alert-success { background:#d1fae5; color:#065f46; border-left:4px solid var(--success); }
.alert-danger  { background:#fee2e2; color:#991b1b; border-left:4px solid var(--danger); }
.alert-warning { background:#fef3c7; color:#92400e; border-left:4px solid var(--warning); }
.alert-info    { background:#dbeafe; color:#1e40af; border-left:4px solid var(--info); }

/* MODAL */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  display:flex; align-items:center; justify-content:center;
  z-index:1000; padding:1rem;
}
.modal-overlay.hidden { display:none; }
.modal {
  background:var(--bg-card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%; max-width:520px;
  max-height:90vh; overflow-y:auto;
}
.modal-header {
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.modal-title { font-size:16px; font-weight:700; color:var(--primary); }
.modal-close { background:none; border:none; font-size:20px; cursor:pointer; color:var(--text-muted); line-height:1; }
.modal-body { padding:1.25rem; }
.modal-footer { padding:1rem 1.25rem; border-top:1px solid var(--border); display:flex; gap:.75rem; justify-content:flex-end; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}
.login-logo { text-align:center; margin-bottom:2rem; }
.login-logo h1 { font-size:28px; font-weight:800; color:var(--primary); }
.login-logo h1 span { color:var(--accent); }
.login-logo p { font-size:12px; color:var(--text-muted); margin-top:.25rem; }

/* ============================================================
   PAINEL DE ATENDIMENTO (tela do atendente)
   ============================================================ */
.atendente-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0f172a;
  color: #f1f5f9;
}

.atendente-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atendente-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 13px;
}
.info-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  padding: .3rem .75rem;
}
.info-chip strong { color:#fff; }

.atendente-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

/* Número atual exibido na tela do atendente */
.current-ticket-display {
  text-align: center;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 2.5rem 4rem;
  min-width: 400px;
}
.current-ticket-setor {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .25rem;
}
.current-ticket-tipo {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.current-ticket-tipo.p1 { color: var(--p1-color); }
.current-ticket-tipo.p2 { color: var(--p2-color); }
.current-ticket-tipo.p3 { color: var(--p3-color); }
.current-ticket-num {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 4px;
}
.current-ticket-idle {
  font-size: 32px;
  color: #475569;
  font-weight: 300;
  letter-spacing: 2px;
}

/* Botões de ação do atendente */
.action-buttons {
  display: flex;
  gap: 1rem;
}
.action-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 140px;
}
.action-btn .btn-icon { font-size: 28px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action-btn:active { transform: translateY(0); }
.action-btn-call   { background: #16a34a; color:#fff; }
.action-btn-repeat { background: #2563eb; color:#fff; }
.action-btn-prev   { background: #7c3aed; color:#fff; }
.action-btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }

/* Fila de espera visível ao atendente */
.queue-preview {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  min-width: 360px;
}
.queue-preview h3 { font-size:12px; text-transform:uppercase; letter-spacing:1px; color:#64748b; margin-bottom:.75rem; }
.queue-item {
  display:flex; align-items:center; gap:.75rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.queue-item:last-child { border:none; }
.queue-item-code { font-size:18px; font-weight:800; color:#fff; min-width:70px; }
.queue-item-info { font-size:12px; color:#94a3b8; }
.queue-dot {
  width:10px; height:10px; border-radius:50%; flex-shrink:0;
}
.queue-dot.p1 { background:var(--p1-color); }
.queue-dot.p2 { background:var(--p2-color); }
.queue-dot.p3 { background:var(--p3-color); }

/* ============================================================
   PAINEL PÚBLICO (TV)
   ============================================================ */
.painel-page {
  min-height: 100vh;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.painel-header {
  background: var(--primary-dark);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
}
.painel-logo { font-size: 20px; font-weight: 800; color: #fff; }
.painel-logo span { color: #60a5fa; }
.painel-local { font-size: 15px; font-weight: 600; }
.painel-clock { font-size: 20px; font-weight: 700; color: #93c5fd; font-variant-numeric: tabular-nums; }

.painel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
}

/* CENTRO - número chamado */
.painel-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  background: var(--primary);
  border-right: 2px solid rgba(255,255,255,.1);
}

.painel-calling-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}

.painel-setor-badge {
  background: var(--accent);
  color: #fff;
  padding: .3rem 1.2rem;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.painel-tipo-badge {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: .75rem;
  padding: .2rem .8rem;
  border-radius: 50px;
}
.painel-tipo-badge.p1 { background: rgba(220,38,38,.2); color:#fca5a5; }
.painel-tipo-badge.p2 { background: rgba(217,119,6,.2);  color:#fcd34d; }
.painel-tipo-badge.p3 { background: rgba(5,150,105,.2);  color:#6ee7b7; }

.painel-number {
  font-size: clamp(100px, 16vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 0 60px rgba(96,165,250,.4);
  animation: popIn .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes popIn {
  from { transform: scale(.6); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}

.painel-guiche {
  margin-top: 1rem;
  font-size: 16px;
  color: rgba(255,255,255,.6);
}
.painel-guiche strong { color: #93c5fd; }

.painel-idle-text {
  font-size: 80px;
  font-weight: 200;
  color: rgba(255,255,255,.15);
  letter-spacing: 4px;
}

/* LADO DIREITO - últimos e próximos */
.painel-right {
  display: flex;
  flex-direction: column;
  background: #152a47;
}

.painel-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow: hidden;
}
.painel-section:first-child {
  border-bottom: 2px solid rgba(255,255,255,.1);
}

.painel-section-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.painel-list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.painel-list-item:last-child { border:none; }
.painel-list-code {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  min-width: 80px;
  letter-spacing: 1px;
}
.painel-list-info { flex:1; }
.painel-list-setor { font-size: 12px; color: #93c5fd; font-weight: 600; }
.painel-list-tipo  { font-size: 11px; color: rgba(255,255,255,.4); }
.painel-list-time  { font-size: 11px; color: rgba(255,255,255,.35); text-align:right; }

.painel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.painel-dot.p1 { background: #f87171; }
.painel-dot.p2 { background: #fbbf24; }
.painel-dot.p3 { background: #34d399; }

.painel-empty {
  font-size: 13px;
  color: rgba(255,255,255,.25);
  text-align: center;
  padding: 1rem 0;
}

/* TICKER */
.painel-ticker {
  background: var(--primary-dark);
  border-top: 3px solid var(--accent);
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-content {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 15px;
  color: rgba(255,255,255,.75);
  padding-left: 100%;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-icon { color: #60a5fa; margin-right:.5rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   TOTEM DE EMISSÃO DE SENHAS
   ============================================================ */
.totem-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  color: #fff;
}
.totem-header { text-align:center; margin-bottom: 2.5rem; }
.totem-logo { font-size: 30px; font-weight: 900; }
.totem-logo span { color: #60a5fa; }
.totem-local { font-size: 14px; color: rgba(255,255,255,.5); margin-top: .25rem; letter-spacing:.5px; }

.totem-setores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.totem-setor-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
}
.totem-setor-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: .25rem;
}
.totem-setor-sigla {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.totem-tipo-btn {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: .6rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: all .15s;
}
.totem-tipo-btn:hover { background: rgba(255,255,255,.12); border-color:rgba(255,255,255,.25); }
.totem-tipo-btn .tipo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tipo-dot.p1 { background: #f87171; }
.tipo-dot.p2 { background: #fbbf24; }
.tipo-dot.p3 { background: #34d399; }

/* Ticket impresso após emissão */
.totem-ticket {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.totem-ticket.hidden { display:none; }
.ticket-paper {
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.ticket-org { font-size: 11px; text-transform:uppercase; letter-spacing:1px; color:#64748b; margin-bottom: .5rem; }
.ticket-setor { font-size: 16px; font-weight: 700; color:var(--primary); margin-bottom: 1rem; }
.ticket-code { font-size: 72px; font-weight: 900; color: var(--primary); line-height:1; margin-bottom: .5rem; letter-spacing:3px; }
.ticket-tipo { font-size: 13px; font-weight: 600; margin-bottom: 1.5rem; }
.ticket-tipo.p1 { color:var(--danger); }
.ticket-tipo.p2 { color:var(--warning); }
.ticket-tipo.p3 { color:var(--success); }
.ticket-info { font-size:12px; color:#94a3b8; margin-bottom:1.5rem; }
.ticket-msg  { font-size:11.5px; color:#64748b; border-top:1px dashed #e2e8f0; padding-top:1rem; }

/* ============================================================
   SESSÃO DE ATENDENTE - escolha de guichê/setor
   ============================================================ */
.session-setup {
  min-height: 100vh;
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.session-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
}
.session-card h2 { font-size:22px; font-weight:800; margin-bottom:.5rem; }
.session-card p  { font-size:13px; color:#94a3b8; margin-bottom:1.75rem; }

.checkbox-group { display:flex; flex-direction:column; gap:.5rem; }
.checkbox-item {
  display:flex; align-items:center; gap:.75rem;
  padding:.65rem 1rem;
  border:1.5px solid #334155;
  border-radius:8px;
  cursor:pointer;
  transition: all .15s;
}
.checkbox-item:hover { border-color:#3b82f6; background:rgba(59,130,246,.05); }
.checkbox-item input[type=checkbox] { width:16px; height:16px; accent-color:#3b82f6; }
.checkbox-item.checked { border-color:#3b82f6; background:rgba(59,130,246,.08); }
.checkbox-item label { cursor:pointer; flex:1; }
.checkbox-sigla {
  background:#1e40af; color:#bfdbfe;
  padding:.15rem .6rem;
  border-radius:50px;
  font-size:11px; font-weight:700;
}

/* Spinner */
.spinner {
  width:20px; height:20px;
  border:2px solid rgba(255,255,255,.3);
  border-top-color:#fff;
  border-radius:50%;
  animation: spin .6s linear infinite;
  display:inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Flash de chamada */
@keyframes flashCall {
  0%,100% { opacity:1; }
  50% { opacity:.5; }
}
.flash-call { animation: flashCall .5s 3; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display:none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .painel-body { grid-template-columns: 1fr; }
  .painel-right { flex-direction: row; }
  .atendente-main { padding: 1rem; gap: 1rem; }
  .current-ticket-display { min-width:unset; padding:1.5rem 2rem; }
  .current-ticket-num { font-size:60px; }
  .action-btn { min-width:100px; padding:.75rem 1rem; font-size:14px; }
}
