/* GERADO por scripts/estilo-classico.py — nao edite a mao.
   Estilo de hoje (producao) + pecas novas. O estilo novo fica em novo.css. */
/* ==========================================================================
   WhatsApp Studio — visual APVS (mesmo sistema do SGR: royal + dourado)
   Sidebar royal em gradiente com acento dourado, topbar de vidro branco,
   conteudo claro. Tokens copiados do saas/app/globals.css e sidebar.module.css.
   ========================================================================== */
:root {
  /* superficies (conteudo claro) */
  --bg: #f4f6fa;
  --bg-2: #f1f5f9; /* painel "embutido" (listas, blocos internos) */
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e6ebf3;
  --line: rgba(15, 23, 42, 0.1);
  --line-soft: rgba(15, 23, 42, 0.06);

  /* texto */
  --text: #17223b;
  --text-2: #56709c;
  --text-3: #94a3b8;

  /* marca APVS */
  --royal: #1b4fa2;
  --royal-deep: #0c2454;
  --royal-bright: #3b6fe0;
  --royal-soft: #dbe6fb;
  --royal-950: #0a1029;
  --accent-rgb: 212, 160, 23;
  --accent3-rgb: 232, 185, 35;
  --accent: #e8b923;
  --accent-deep: #b8860b;
  --accent-alt: #e8bd3f;
  --accent-deep2: #a87c0e;
  --accent-bright: #f2ce55;

  /* semanticas (status) — versao clara */
  --green: #059669;
  --green-2: #047857;
  --green-dark: #065f46;
  --blue: #2563eb;
  --amber: #b45309;
  --red: #dc2626;
  --purple: #7c3aed;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(12, 36, 84, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --font: var(--font-inter), 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-playfair), 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #cfd8e6;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8c4d8;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------------------------------------------------------------- shell -- */
.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar: vidro sobre gradiente royal (igual ao SGR) */
.sidebar {
  --ink: #e8eef9;
  --ink-soft: #c8d2e6;
  --muted: #97a3bd;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 10px 12px;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #0a1029 0%, #172554 50%, #1e2f6f 100%);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 65%);
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 8px 14px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(8, 15, 33, 0.28));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--ink);
}
.brand-sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
  margin-top: 3px;
}
.nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(var(--accent3-rgb), 0.62);
  padding: 12px 12px 6px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 12px;
  border-radius: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(59, 111, 224, 0.24), rgba(59, 111, 224, 0.05) 92%);
  color: #fff;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
}
.nav-item .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-item .ico svg {
  width: 17px;
  height: 17px;
}
.nav-item:hover .ico {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--accent3-rgb), 0.35);
  color: var(--accent-bright);
}
.nav-item.active .ico {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-deep2));
  border-color: var(--accent);
  color: #1a1300;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #1a1300;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--muted);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sidebar-user .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-deep2));
  color: #1a1300;
}
.sidebar-user b {
  color: var(--ink);
  font-size: 13px;
}
.sidebar .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
.sidebar .btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.main {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(820px 560px at 10% -10%, rgba(59, 111, 224, 0.08), transparent 60%),
    radial-gradient(680px 480px at 100% 0%, rgba(var(--accent-rgb), 0.07), transparent 55%),
    var(--bg);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}
.topbar .sub {
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.page {
  padding: 22px 24px 60px;
  flex: 1;
}

/* --------------------------------------------------------------- pieces -- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card.pad0 {
  padding: 0;
  overflow: hidden;
}
.card .card {
  box-shadow: none;
  border-color: var(--line);
}
.card-title {
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--royal-deep);
}
.grid {
  display: grid;
  gap: 14px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.wrap {
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 12px;
}
.tiny {
  font-size: 11px;
}
.mono {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

.kpi {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-bright), var(--accent));
  opacity: 0.8;
}
.kpi .label {
  font-size: 10.5px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.kpi .value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.5px;
  color: var(--royal-deep);
}
.kpi .foot {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: rgba(27, 79, 162, 0.25);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.primary {
  background: linear-gradient(135deg, var(--royal-bright), var(--royal));
  border-color: var(--royal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 79, 162, 0.25);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4a7ce8, var(--royal-deep));
  border-color: var(--royal-deep);
}
.btn.gold {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-deep2));
  border-color: var(--accent-deep);
  color: #1a1300;
}
.btn.danger {
  color: var(--red);
  border-color: #fecaca;
}
.btn.danger:hover:not(:disabled) {
  background: #fef2f2;
}
.btn.ghost {
  background: transparent;
}
.btn.sm {
  padding: 5px 9px;
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  outline: none;
  transition: 0.12s;
  color: var(--text);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--royal-bright);
  box-shadow: 0 0 0 3px rgba(59, 111, 224, 0.14);
}
.textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.field > label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.hint {
  font-size: 11px;
  color: var(--text-2);
  opacity: 0.85;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.chip.dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.green {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.chip.blue {
  color: var(--royal);
  border-color: #bfd3f7;
  background: #eef4ff;
}
.chip.amber {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}
.chip.red {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.chip.purple {
  color: #6d28d9;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.chip.gray {
  color: var(--text-2);
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
}
table.tbl th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: var(--text-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  position: sticky;
  top: 0;
}
table.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.tbl tr:hover td {
  background: #f8fbff;
}
table.tbl tr:last-child td {
  border-bottom: none;
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-2);
}
.empty .big {
  font-size: 34px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 41, 0.45);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: min(680px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide {
  width: min(940px, 100%);
}
.modal-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--royal-deep);
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
}
.modal-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #f8fafc;
}
.x {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  background: none;
  border: none;
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--royal-bright);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  box-shadow: var(--shadow);
  max-width: 380px;
  animation: slidein 0.18s ease;
  font-weight: 600;
}
.toast.error {
  border-left-color: var(--red);
}
@keyframes slidein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tab {
  padding: 9px 14px;
  cursor: pointer;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 13px;
}
.tab.active {
  color: var(--royal);
  border-bottom-color: var(--accent);
}

.bar {
  height: 7px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--royal-bright), var(--royal));
}

/* ---------------------------------------------------------------- inbox -- */
.inbox {
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  height: calc(100vh - 61px);
  overflow: hidden;
}
@media (max-width: 1250px) {
  .inbox {
    grid-template-columns: 300px 1fr;
  }
  .inbox .panel-right {
    display: none;
  }
}
.conv-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  background: var(--surface);
}
.conv {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  display: flex;
  gap: 11px;
}
.conv:hover {
  background: #f8fbff;
}
.conv.active {
  background: linear-gradient(90deg, rgba(59, 111, 224, 0.1), rgba(59, 111, 224, 0.02));
}
.conv.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3ebfb, #cbd9f5);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--royal);
}
.chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #eef2f9;
  background-image: radial-gradient(rgba(27, 79, 162, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.chat-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 11px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bubble {
  max-width: 64%;
  padding: 7px 11px 6px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 1.5px rgba(15, 23, 42, 0.08);
}
.bubble.in {
  background: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 3px;
}
.bubble.out {
  background: var(--royal-soft);
  align-self: flex-end;
  border-top-right-radius: 3px;
}
.bubble .meta {
  font-size: 10px;
  color: #7187ad;
  text-align: right;
  margin-top: 3px;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.bubble .src {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.chat-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 11px 14px;
}
.panel-right {
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
}

/* -------------------------------------------------------------- builder -- */
.builder {
  display: grid;
  grid-template-columns: 190px 1fr 300px;
  height: calc(100vh - 61px);
  overflow: hidden;
}
.palette {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  overflow-y: auto;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 7px;
  cursor: grab;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
  box-shadow: var(--shadow-sm);
}
.palette-item:active {
  cursor: grabbing;
}
.palette-item:hover {
  background: #f8fbff;
  border-color: rgba(59, 111, 224, 0.35);
}
.canvas-wrap {
  position: relative;
  overflow: hidden;
  background: #eef2f9;
  background-image: radial-gradient(rgba(27, 79, 162, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}
.canvas {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.fnode {
  position: absolute;
  width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(12, 36, 84, 0.1);
  user-select: none;
  cursor: grab;
}
.fnode.sel {
  border-color: var(--royal-bright);
  box-shadow: 0 0 0 3px rgba(59, 111, 224, 0.22), 0 6px 18px rgba(12, 36, 84, 0.12);
}
.fnode-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px 12px 0 0;
}
.fnode-body {
  padding: 9px 10px;
  font-size: 11.5px;
  color: var(--text-2);
  min-height: 30px;
  line-height: 1.4;
  word-break: break-word;
}
.port {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid #b8c4d8;
  cursor: crosshair;
  z-index: 3;
}
.port:hover {
  background: var(--accent);
  border-color: var(--accent-deep);
}
.port.in {
  left: -7px;
  top: 16px;
}
.port-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 3px 12px 3px 10px;
  font-size: 10.5px;
  color: var(--text-2);
  position: relative;
  min-height: 20px;
}
.port-row .port {
  right: -7px;
  top: 4px;
}
.inspector {
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
  padding: 14px;
}
.canvas-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.hintbar {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- login -- */
/* tela de login: sem sidebar, a coluna principal ocupa tudo */
.shell:not(:has(.sidebar)) {
  grid-template-columns: 1fr;
}
.login-wall {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(820px 560px at 10% 6%, rgba(59, 111, 224, 0.3), transparent 60%),
    radial-gradient(680px 480px at 94% 14%, rgba(var(--accent-rgb), 0.2), transparent 55%),
    radial-gradient(900px 760px at 82% 102%, rgba(30, 58, 138, 0.34), transparent 62%),
    linear-gradient(135deg, #dbe4fb 0%, #eef2fb 46%, #e6ecfc 100%);
}
.login-card {
  width: 100%;
  max-width: 380px;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.login-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.login-brand .brand-name {
  color: var(--royal-deep);
}
.login-brand .brand-sub {
  color: var(--text-2);
}

/* envio manual pelo WhatsApp Web aguardando o echo da Meta */
.bubble.ghost {
  opacity: 0.8;
  border: 1px dashed #9fb3d6;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.bubble.ghost.expired {
  border-color: var(--red);
}
.bubble .who {
  font-size: 10.5px;
  opacity: 0.85;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--royal);
}
.bubble.in .who {
  color: var(--text-2);
}

/* ------------------------------------------------ paginas legais (publicas) -- */
.legal-wall {
  min-height: 100vh;
  overflow-y: auto;
  padding: 32px 16px 60px;
  background:
    radial-gradient(820px 560px at 10% 6%, rgba(59, 111, 224, 0.2), transparent 60%),
    radial-gradient(680px 480px at 94% 14%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    linear-gradient(135deg, #e3eafb 0%, #f1f4fb 46%, #eaeffc 100%);
}
.legal-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 30px 30px;
  border-top: 3px solid var(--accent);
  line-height: 1.65;
  font-size: 14.5px;
}
.legal-card h1 {
  font-size: 24px;
  color: var(--royal-deep);
  margin: 6px 0 4px;
}
.legal-card h2 {
  font-size: 15.5px;
  color: var(--royal);
  margin: 22px 0 6px;
}
.legal-card a {
  color: var(--royal);
  text-decoration: underline;
}
.legal-card ul,
.legal-card ol {
  padding-left: 20px;
}
@media (max-width: 600px) {
  .legal-card {
    padding: 22px 18px;
  }
}

/* mensagem apagada/editada no WhatsApp: marca, mas o conteudo continua visivel */
.bubble .mut {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.bubble .mut .chip {
  font-size: 10px;
}
.bubble .mut-old {
  font-size: 11px;
  color: var(--text-2);
  border-left: 2px solid #d6dfef;
  padding-left: 6px;
  text-decoration: line-through;
  text-decoration-color: rgba(86, 112, 156, 0.4);
}

/* ======================================================= login (SGR) ===== */
/* fixed + inset 0: a tela ocupa a janela toda, independente do grid do .shell */
.lg-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg);
  overflow-y: auto;
}
.lg-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  color: #e8eef9;
  background: linear-gradient(160deg, #0a1029 0%, #172554 52%, #1e2f6f 100%);
}
.lg-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at 85% 8%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(620px 520px at 0% 100%, rgba(59, 111, 224, 0.35), transparent 62%);
}
.lg-hero > * {
  position: relative;
}
.lg-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lg-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}
.lg-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
}
.lg-brand-sub {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(var(--accent3-rgb), 0.85);
}
.lg-hero-body {
  margin: auto 0;
  max-width: 470px;
}
.lg-hero-body h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  color: #fff;
}
.lg-hero-body h1 span {
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-hero-body p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #c8d2e6;
}
.lg-hero-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.lg-hero-body li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
}
.lg-hero-body li i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a1300;
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-deep2));
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}
.lg-hero-foot {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a97b3;
}
.lg-panel {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(59, 111, 224, 0.1), transparent 60%),
    var(--bg);
}
.lg-card {
  width: 100%;
  max-width: 400px;
}
.lg-mobile-brand {
  display: none;
}
.lg-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--royal-deep);
}
.lg-sub {
  margin: 6px 0 26px;
  color: var(--text-2);
  font-size: 14px;
}
.lg-erro {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.lg-sgr {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(135deg, #3b6fe0 0%, #1b4fa2 55%, #0c2454 100%);
  box-shadow: 0 12px 28px rgba(27, 79, 162, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lg-sgr:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(27, 79, 162, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lg-sgr img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 3px;
}
.lg-sgr span {
  flex: 1;
}
.lg-sgr em {
  font-style: normal;
  font-size: 18px;
  color: var(--accent-bright);
}
.lg-toggle {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lg-btn {
  width: 100%;
  justify-content: center;
  padding: 11px;
}
.lg-legal {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.lg-legal a {
  color: var(--text-2);
}
@media (max-width: 860px) {
  .lg-shell {
    grid-template-columns: 1fr;
  }
  .lg-hero {
    display: none;
  }
  .lg-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--royal-deep);
  }
  .lg-mobile-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
}

/* seletor de empresa na sidebar (o "workspace" do BotConversa) */
.co-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 6px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--accent3-rgb), 0.28);
  cursor: pointer;
}
.co-switch:hover {
  background: rgba(255, 255, 255, 0.11);
}
.co-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.co-switch select {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.co-switch select option {
  color: #17223b;
}
.co-switch::after {
  content: '▾';
  color: var(--accent);
  font-size: 12px;
}
.co-empty {
  font-size: 11.5px;
  color: #c8d2e6;
  cursor: default;
}
.co-empty::after {
  content: '';
}

/* ===================== seletor de COMPANHIA (igual BotConversa) ===================== */
.cs {
  position: relative;
  z-index: 50; /* acima dos itens do menu (que tambem tem z-index) */
  margin: 0 0 10px;
}
.cs-del:hover {
  background: #fef2f2;
  color: var(--red);
}
.cs-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--accent3-rgb), 0.28);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.cs-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}
.cs-btn em {
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
}
.cs-loading {
  height: 52px;
  cursor: default;
}
.cs-empty {
  font-size: 11.5px;
  color: #c8d2e6;
  cursor: default;
}
.cs-av {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--royal);
  background: linear-gradient(135deg, #eef3ff, #d6e2fb);
}
.cs-all {
  width: 34px;
  height: 34px;
  color: #1a1300;
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-deep2));
}
.cs-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #94a3b8;
}
.cs-dot.ok {
  background: #22c55e;
}
.cs-dot.off {
  background: #ef4444;
}
.cs-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.cs-txt b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-txt small {
  font-size: 11px;
  opacity: 0.7;
}
.cs-pop {
  position: fixed; /* fora do corte da sidebar; top/left vem do botao */
  z-index: 300;
  width: 290px;
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(10, 16, 41, 0.35);
  overflow: hidden;
}
.cs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text-2);
}
.cs-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--text);
}
.cs-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 0 6px 6px;
}
.cs-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.cs-item:hover {
  background: #f4f7fd;
}
.cs-item.sel {
  background: #e8f0ff;
}
.cs-item .cs-av {
  width: 34px;
  height: 34px;
}
.cs-item .cs-txt small {
  color: var(--text-2);
  opacity: 1;
}
.cs-nada {
  padding: 14px;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}
.cs-add {
  display: block;
  width: calc(100% - 20px);
  margin: 6px 10px 10px;
  padding: 11px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--royal-bright), var(--royal));
}
.cs-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.cs-opt span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.cs-opt small {
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.45;
}
.cs-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #c8d2e6;
}
.cs-status .cs-dot {
  position: static;
  border-color: rgba(255, 255, 255, 0.3);
}

/* renomear companhia direto no seletor */
.cs-pen {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.cs-item:hover .cs-pen,
.cs-editing .cs-pen {
  opacity: 1;
}
.cs-pen:hover {
  background: #dbe6fb;
  color: var(--royal);
}
.cs-edit {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--royal-bright);
  outline: none;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* ---------------------------------------------------- arquivos no chat --- */
.att-img { display: block; margin: -2px 0 6px; }
.att-img img { display: block; max-width: 280px; max-height: 320px; border-radius: var(--radius-sm); object-fit: cover; }
.att-video { display: block; max-width: 300px; max-height: 320px; border-radius: var(--radius-sm); margin-bottom: 6px; background: #000; }
.att-audio { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.att-audio audio { height: 36px; max-width: 260px; }
.att-doc {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px;
  min-width: 220px; max-width: 300px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.att-doc:hover { border-color: var(--royal-bright); }
.att-doc-ic {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  background: var(--royal-soft); color: var(--royal-deep); font-size: 11px; font-weight: 800;
}
.att-doc-txt { display: flex; flex-direction: column; min-width: 0; }
.att-doc-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-doc-txt small { color: var(--text-2); font-size: 11px; }
.att-missing { font-size: 12px; color: var(--text-2); font-style: italic; margin-bottom: 4px; }
.att-pending {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 7px;
  border-radius: var(--radius-sm); background: var(--royal-soft); color: var(--royal-deep); font-size: 13px;
}
.att-pending b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.att-pending small { flex: 1; color: var(--text-2); }
.att-rec { align-items: center; gap: 10px; padding: 6px 4px; }
.att-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: att-pulse 1s infinite; }
@keyframes att-pulse { 50% { opacity: 0.25; } }

/* ------------------------------------------------ compositor (estilo BotConversa) --- */
.cmp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp:focus-within { border-color: var(--royal-bright); box-shadow: 0 0 0 3px var(--royal-soft); }
.cmp .att-pending { margin: 8px 8px 0; }
.cmp-input {
  display: block; width: 100%; min-height: 46px; max-height: 45vh; resize: none;
  border: 0; outline: 0; background: transparent; padding: 11px 13px 4px;
  font: inherit; font-size: 14px; color: var(--text);
}
.cmp-input::placeholder { color: var(--muted); }
.cmp-bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.cmp-bar .spacer { flex: 1; }
.cmp-bar .btn { padding: 7px 14px; }
.cmp-ic {
  width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.cmp-ic:hover:not(:disabled), .cmp-ic.on { background: var(--surface-2); color: var(--royal-deep); }
.cmp-ic:disabled { opacity: 0.45; cursor: default; }
.cmp .att-rec { display: flex; align-items: center; gap: 10px; padding: 14px 13px 6px; color: var(--text); }
.mm { position: relative; }
.mm-pop {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
.mm-side { bottom: auto; top: -6px; left: calc(100% + 4px); max-height: 280px; overflow-y: auto; }
.mm-sub-wrap { position: relative; }
.mm-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.mm-item:hover { background: var(--surface-2); }
.mm-item svg { color: var(--text-2); flex: none; }
.mm-item small { margin-left: auto; color: var(--muted); font-size: 11px; }
.mm-arrow { margin-left: auto; display: grid; }
.mm-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.att-rec-time { font-variant-numeric: tabular-nums; min-width: 34px; }
.att-wave { flex: 1; height: 30px; min-width: 0; color: var(--royal-bright); }

/* ------------------------------------------------ player de audio (estilo WhatsApp) --- */
.bubble:has(.ap) { width: min(320px, 64%); }
.ap { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 0 4px; }
.ap-play {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.ap-play:hover { background: rgba(15, 23, 42, 0.06); color: var(--royal-deep); }
.ap-mid { flex: 1; min-width: 0; }
.ap-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.ap-wave i { flex: 1; min-height: 3px; border-radius: 2px; background: rgba(86, 112, 156, 0.38); transition: background 0.15s; }
.ap-wave i.on { background: var(--royal-bright); }
.ap-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--royal-bright); box-shadow: 0 0 0 2px var(--surface); pointer-events: none;
}
.ap-dot.novo { background: #22c55e; }
.ap-info { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ap-vel {
  border: 0; border-radius: 10px; padding: 1px 8px; background: var(--royal-deep); color: #fff;
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.ap-av {
  position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); color: #fff; font-weight: 800; font-size: 14px;
}
.ap-mic { position: absolute; left: -4px; bottom: -2px; color: #22c55e; filter: drop-shadow(0 0 1px #fff); }

/* ------------------------------------------------ painel do Pipeline do SGR --- */
.sgr { margin-bottom: 12px; }
.sgr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sgr-head .card-title { flex: 1; }
.sgr-open { font-size: 12px; font-weight: 700; color: var(--royal-bright); text-decoration: none; white-space: nowrap; }
.sgr-open:hover { text-decoration: underline; }
.sgr-msg { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 8px; }
.sgr-msg.err { color: var(--red); }
.sgr-irmaos { margin-bottom: 8px; font-size: 12px; }
.sgr-lead b { font-size: 15px; color: var(--text); }
.sgr-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
.sgr-etapa { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, 0.35); }
.sgr-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -2px 10px; }
.sgr-tabs button {
  flex: 1; border: 0; background: transparent; padding: 7px 2px; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sgr-tabs button.on { color: var(--royal-deep); border-bottom-color: var(--royal-bright); }
.sgr-body { display: flex; flex-direction: column; gap: 7px; }
.sgr-kv { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; }
.sgr-kv span { color: var(--text-2); min-width: 92px; }
.sgr-kv b { font-weight: 600; color: var(--text); word-break: break-word; }
.sgr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sgr-steps { display: flex; flex-direction: column; gap: 4px; }
.sgr-step {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer;
}
.sgr-step i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sgr-step:hover:not(:disabled) { border-color: var(--royal-bright); }
.sgr-step.on { background: var(--royal-soft); border-color: var(--royal-bright); font-weight: 700; cursor: default; }
.sgr-box { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 10px; background: var(--surface-2); }
.sgr-task { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 4px 0; }
.sgr-task span { flex: 1; display: flex; flex-direction: column; }
.sgr-task small { color: var(--text-2); font-size: 11px; }
.sgr-task.done span { text-decoration: line-through; color: var(--muted); }
.sgr-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; }
.sgr-x:hover { color: var(--red); }
.sgr-hist { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.sgr-h { font-size: 12.5px; line-height: 1.45; padding-left: 9px; border-left: 2px solid var(--line); }
.sgr-h small { color: var(--muted); font-size: 11px; }
.sgr-nota { color: var(--text-2); white-space: pre-wrap; }

/* ------------------------------------------------ faixa de aviso (numero caiu / 14 dias) --- */
.alertbar { display: flex; flex-direction: column; }
.alertbar-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; line-height: 1.45;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.alertbar-item.red { background: #fdecec; color: #8f1d24; }
.alertbar-item.amber { background: #fdf3d8; color: #7a4d06; }
.alertbar-item b { font-weight: 800; }
.alertbar-item .spacer { flex: 1; }
.alertbar-item a, .alertbar-item button {
  border: 0; background: rgba(255, 255, 255, 0.7); color: inherit; font: inherit; font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.alertbar-item a:hover, .alertbar-item button:hover { background: #fff; }
.alertbar-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: currentColor; }
.alertbar-item.red .alertbar-dot { animation: att-pulse 1.2s infinite; }

.sgr-k { font-size: 12px; color: var(--text-2); font-weight: 600; }
.sgr-etapa-sel { position: relative; }
.sgr-etapa-sel i { position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; pointer-events: none; }
.sgr-etapa-sel .select { padding-left: 28px; }

/* ------------------------------------------------ painel da extensao embutido --- */
.ext-wrap { margin-bottom: 12px; }
.ext-wrap #bc-crm-sidebar {
  position: static !important; height: auto !important; width: 100% !important; max-width: none !important;
  transform: none !important; z-index: auto !important; box-shadow: none !important;
  border: 1px solid var(--line) !important; border-radius: var(--radius); overflow: hidden;
}
.ext-wrap .bc-crm-sb-toggle, .ext-wrap .bc-crm-sb-mode, .ext-wrap .bc-crm-sb-filtro { display: none !important; }
.ext-wrap .bc-crm-sb-body { overflow: visible !important; }
.inbox .panel-right:has(.ext-wrap) { padding: 10px; }
.ext-wrap .bc-crm-sb-head { background: var(--surface) !important; border-bottom: 1px solid var(--line); }
.ext-wrap .bc-crm-sb-title { color: var(--text) !important; }
.ext-wrap .bc-crm-sb-ver { color: var(--muted) !important; }
.ext-wrap .bc-crm-sb-refresh { background: var(--surface-2) !important; color: var(--text-2) !important; }

/* ------------------------------------------------ responder citando (igual WhatsApp) --- */
.bubble { position: relative; }
.bubble-reply {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--text-2); font-size: 13px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18); cursor: pointer; opacity: 0; transition: opacity 0.12s;
}
.bubble:hover .bubble-reply { opacity: 1; }
.bubble-reply:hover { color: var(--royal-deep); }
.quote {
  display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; padding: 6px 9px; border-radius: 8px;
  border-left: 3px solid var(--royal-bright); background: rgba(15, 23, 42, 0.05); font-size: 12.5px; line-height: 1.35;
}
.quote b { color: var(--royal-deep); font-size: 12px; }
.quote span { color: var(--text-2); white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quote.link { cursor: pointer; }
.quote.link:hover { background: rgba(15, 23, 42, 0.08); }
.cmp-quote { display: flex; align-items: flex-start; gap: 6px; padding: 8px 8px 0; }
.cmp-quote .quote { flex: 1; margin: 0; }
.bubble.flash { animation: flash-msg 1.2s ease; }
@keyframes flash-msg { 30% { box-shadow: 0 0 0 3px var(--royal-soft); } }

.wa-link { color: #1b6fd1; text-decoration: underline; word-break: break-all; }
.wa-link:hover { color: var(--royal-deep); }

/* ------------------------------------------------ painel do Pipeline (itens da extensao, visual do Atendimento) --- */
.pp { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.pp-top { display: flex; align-items: center; gap: 8px; }
.pp-top .card-title { flex: 1; }
.pp-link { font-size: 12px; font-weight: 700; color: var(--royal-bright); text-decoration: none; white-space: nowrap; }
.pp-link:hover { text-decoration: underline; }
.pp-ic { border: 0; background: var(--surface-2); color: var(--text-2); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; font-size: 14px; flex: none; }
.pp-ic.sm { width: 24px; height: 24px; font-size: 12px; }
.pp-ic:hover { color: var(--royal-deep); background: var(--royal-soft); }
.pp-aviso { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pp-aviso.err, .pp-errt { color: var(--red); }
.pp-okt { color: #0f8a6a; font-weight: 600; }
.pp-msg { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); line-height: 1.4; }
.pp-msg.ok { background: #e7f6ef; color: #0b7a55; }
.pp-msg.error { background: #fdecec; color: #b42318; }
.pp-msg.pend { background: #fff6e0; color: #8a5a00; border: 1px solid #f3d38a; }
.pp-head { display: flex; flex-direction: column; gap: 7px; }
.pp-nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-nome > b { font-size: 16px; color: var(--text); }
.pp-fone { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.pp-linha { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.pp-etapa { position: relative; display: inline-flex; align-items: center; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; padding: 0 12px; height: 28px; text-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }
.pp-etapa select { appearance: none; border: 0; background: transparent; color: #fff; font: inherit; padding-right: 16px; cursor: pointer; outline: 0; }
.pp-etapa select option { color: var(--text); }
.pp-etapa::after { content: "\25BE"; position: absolute; right: 10px; font-size: 10px; pointer-events: none; }
.pp-dono { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.pp-av.rosa { background: linear-gradient(135deg, #f472b6, #be185d); }
.pp-av.ouro { background: linear-gradient(135deg, #c9902f, #8a5f18); width: 46px; height: 46px; font-size: 18px; }
.pp-tabs { display: flex; border-bottom: 1px solid var(--line); }
.pp-tabs button { flex: 1; border: 0; background: transparent; padding: 8px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pp-tabs button.on { color: var(--royal-deep); border-bottom-color: var(--royal-bright); }
.pp-body { display: flex; flex-direction: column; gap: 10px; }
.pp-sec { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; position: relative; }
.pp-k { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pp-lb { font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.pp-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; min-height: 26px; }
.pp-kv > span { color: var(--text-2); font-size: 12px; flex: none; }
.pp-kv > b { font-weight: 600; color: var(--text); text-align: right; word-break: break-word; }
.pp-kv.col { flex-direction: column; align-items: stretch; gap: 5px; }
.pp-in { max-width: 170px; text-align: right; padding: 5px 9px !important; font-size: 13px; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pp-x { border: 0; background: transparent; color: inherit; cursor: pointer; margin-left: 3px; padding: 0 2px; font-size: 13px; opacity: 0.6; }
.pp-x:hover { opacity: 1; color: var(--red); }
.pp-card { cursor: pointer; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12px; }
.pp-card:hover:not(:disabled) { border-color: var(--royal-bright); }
.pp-card.on { background: #f6e7c4; border-color: #d9a441; color: #6b4a10; font-weight: 700; }
.pp-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pp-vp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* tornar frio / reativar / assumir: o MESMO quadrado do venda/perda, a linha inteira */
.pp-status > .pp-btn { flex: 1; }
.pp-btn.frio { border: 1px solid #d3e2fb; background: #f2f7ff; color: #2b5598; }
.pp-btn.frio:hover { background: #e4eeff; border-color: #b7cff6; }
.pp-btn.reativar {
  border: 0; color: #fff; background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pp-btn.reativar:hover { box-shadow: 0 9px 22px rgba(234, 88, 12, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.pp-btn.assumir {
  border: 0; color: #fff; background: linear-gradient(135deg, var(--royal-bright), var(--royal));
  box-shadow: 0 6px 16px rgba(27, 79, 162, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pp-btn.assumir:hover { box-shadow: 0 9px 22px rgba(27, 79, 162, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
/* marcar venda / perda */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 10px;
  border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.pp-btn svg { flex: none; }
.pp-btn:hover { transform: translateY(-1px); }
.pp-btn:active { transform: translateY(0); }
.pp-btn.venda {
  border: 0; color: #fff; background: linear-gradient(135deg, #12b886, #047857);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pp-btn.venda:hover { box-shadow: 0 9px 22px rgba(4, 120, 87, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.pp-btn.perda { border: 1px solid #fecdd3; background: #fff5f6; color: #dc2626; }
.pp-btn.perda:hover { background: #ffe8eb; border-color: #fda4af; }
.pp-btn.perda.on { border-color: #dc2626; background: #dc2626; color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.24); }
.pp-fechado { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
/* o motivo da venda/perda vem junto no chip e pode ser comprido: quebra a linha em vez de cortar (19/10) */
.pp-fechado .chip { white-space: normal; max-width: 100%; height: auto; line-height: 1.35; padding-top: 4px; padding-bottom: 4px; overflow-wrap: anywhere; text-align: left; }
.pp-box { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.pp-box.ouro { background: #fdf3d8; color: #7a4d06; }
.pp-task { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; padding: 3px 0; }
.pp-task > span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pp-task small { color: var(--text-2); font-size: 11px; }
.pp-task i.chip { font-style: normal; font-size: 10.5px; padding: 0 6px; }
.pp-task.done > span { text-decoration: line-through; color: var(--muted); }
.pp-mini { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pp-hist { display: flex; flex-direction: column; gap: 9px; max-height: 420px; overflow-y: auto; }
.pp-h { font-size: 12.5px; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--royal-soft); }
.pp-h small { color: var(--muted); font-size: 11px; }
.pp-nota { color: var(--text-2); white-space: pre-wrap; background: var(--surface-2); border-radius: 7px; padding: 4px 8px; margin: 2px 0; }
.pp-travado { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 4px; }
.pp-travado p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pp-novo { display: flex; flex-direction: column; gap: 2px; }
.pp-novo b { font-size: 15px; }
.pp-novo small { color: var(--text-2); }
.pp-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.pp-seg button { flex: 1; min-width: 60px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.pp-seg button.on { background: var(--royal-soft); border-color: var(--royal-bright); color: var(--royal-deep); font-weight: 700; }
.pp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.pp-ouro { background: linear-gradient(135deg, #e0b64a, #c9902f) !important; color: #3a2606 !important; border-color: #c9902f !important; font-weight: 700; }
.pp-drop.on { outline: 2px dashed var(--royal-bright); outline-offset: 4px; border-radius: 8px; }
.pp-drophint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(219, 230, 251, 0.85); color: var(--royal-deep); font-weight: 800; border-radius: 8px; z-index: 2; }
.pp-anexo { display: flex; align-items: center; gap: 8px; }
.pp-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--royal-soft); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; color: var(--royal-deep); font-size: 10.5px; font-weight: 800; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-anexo-nome { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text); display: flex; flex-direction: column; overflow: hidden; }
.pp-anexo-nome small { color: var(--muted); font-size: 11px; }
.pp-cola { border: 1px dashed var(--line); border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; color: var(--text-2); cursor: text; }
.pp-cola:focus { outline: 0; border-color: var(--royal-bright); color: var(--royal-deep); }
.pp-atend { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .pp-atend { grid-template-columns: 1fr; }
}
.pp-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pp-col-tight { display: flex; flex-direction: column; gap: 5px; }
.pp-perg { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.pp-perg-t { font-size: 13px; font-weight: 600; color: var(--text); }
.pp-opcoes { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.pp-opcao { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.pp-opcao:hover { border-color: var(--royal-bright); background: var(--royal-soft); }
.pp-opcao small { color: var(--text-2); }
.pp-result { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pp-result > small { color: var(--text-2); text-transform: capitalize; }
.pp-mens { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fdf3d8; border: 1px solid #ecd28f; }
.pp-mens span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6b12; }
.pp-mens b { font-size: 19px; color: #6b4a10; }
.pp-orc img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.pp-task i.chip { align-self: flex-start; }

.pp-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .pp-doc { grid-template-columns: 1fr; }
}
.pp-doc-campo { display: flex; flex-direction: column; gap: 4px; }
.pp-doc-campo .pp-lb { display: flex; align-items: center; gap: 6px; text-transform: capitalize; }
.pp-doc-campo .pp-lb small { text-transform: none; flex: 1; }
.pp-papel { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-papel img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.pp-doc-campo input[readonly] { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }

.nova-versao { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-radius: 12px; background: var(--royal-deep); color: #fff; font-size: 13.5px; box-shadow: 0 10px 30px rgba(12, 36, 84, 0.35); }
.nova-versao button { border: 0; border-radius: 8px; padding: 7px 12px; background: #e0b64a; color: #3a2606; font: inherit; font-weight: 800; cursor: pointer; }

.sys-note { align-self: center; max-width: 80%; margin: 6px auto; padding: 6px 12px; border-radius: 999px; background: var(--royal-soft); color: var(--royal-deep); font-size: 12.5px; text-align: center; }
/* audio que NOS mandamos: a foto vai pro outro lado (igual o WhatsApp) */
.bubble.out .ap-av { order: -1; }
.bubble.out .ap-mic { left: auto; right: -4px; }
/* lapis de editar o contato, no topo da conversa */
.ch-edit {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ch-edit:hover { background: var(--royal-soft); color: var(--royal-deep); border-color: rgba(27, 79, 162, 0.2); }
/* "visto pelo comercial" no balao do cliente — so o admin ve */
.bubble .meta .visto { margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(5, 150, 105, 0.1); color: #047857; font-weight: 600; }
.bubble .meta .visto.nao { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
/* lista de conversas: Todas | Nao lidas */
.lidas-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.lidas-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lidas-tabs button:hover { color: var(--royal-deep); }
.lidas-tabs button.on { background: var(--surface); color: var(--royal-deep); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.lidas-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #1a1300; font-size: 11px; display: inline-grid; place-items: center; }
/* abas de situacao com o numero em cima (Todas / Em atendimento / Encerradas) */
.st-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.st-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.st-tabs button b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.st-tabs button span { font-size: 11px; font-weight: 600; white-space: nowrap; }
.st-tabs button:hover { border-color: rgba(27, 79, 162, 0.3); }
.st-tabs button.on { background: var(--royal-soft); border-color: rgba(27, 79, 162, 0.35); color: var(--royal-deep); }
.st-tabs button.on b { color: var(--royal-deep); }
/* lista: hora em destaque quando tem nao lida; trecho achado na busca */
.conv-hora-nova { color: #b7791f; font-weight: 700; }
.busca-mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.conv.menu { background: var(--surface-2); }
/* menu do botao direito */
.ctx-back { position: fixed; inset: 0; z-index: 90; }
.ctx-menu {
  position: fixed; min-width: 210px; padding: 5px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.ctx-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.ctx-menu button:hover { background: var(--royal-soft); color: var(--royal-deep); }
.ctx-ic { width: 16px; display: inline-grid; place-items: center; font-weight: 800; color: var(--green); }
.ctx-ic.dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
/* separador de data entre as mensagens (igual o WhatsApp) */
.dia-sep { display: flex; justify-content: center; margin: 10px 0 4px; }
.dia-sep span {
  padding: 4px 12px; border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 11.5px; font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
/* respostas rapidas */
.cmp { position: relative; }
.cmp-ic.on { background: var(--royal-soft); color: var(--royal-deep); }
.rr-pop {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
.rr-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-2); }
.rr-head button, .rr-vazio button { border: 0; background: transparent; color: var(--royal-bright); font: inherit; font-weight: 700; cursor: pointer; }
.rr-vazio { padding: 12px; font-size: 13px; color: var(--muted); }
.rr-item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.rr-item b { flex: none; color: var(--royal-deep); font-size: 13px; }
.rr-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12.5px; }
.rr-item small { flex: none; font-size: 10px; font-weight: 700; color: var(--royal-bright); text-transform: uppercase; }
.rr-item.on { background: var(--royal-soft); }
.rr-dica { padding: 6px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.rr-ger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rr-lista { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.rr-linha { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rr-linha.on { border-color: var(--royal-bright); background: var(--royal-soft); }
.rr-prev { margin-top: 3px; font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .rr-ger { grid-template-columns: 1fr; } }
/* topo da conversa: nome numa linha so (corta com "…"), telefone sem quebrar */
.ch-nome { min-width: 110px; flex: 0 1 auto; }
.ch-nome > b, .ch-nome > div { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head > .select, .chat-head > .btn, .chat-head > .chip, .chat-head > .ch-edit { flex: none; }
/* foto aberta grande por cima da conversa (sem aba nova) */
.att-img { cursor: zoom-in; }
.foto-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 60px 24px 24px; background: rgba(8, 12, 24, 0.88); cursor: zoom-out; }
.foto-grande { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default; }
.foto-bar { position: absolute; top: 14px; right: 18px; display: flex; gap: 8px; }
.foto-bt {
  padding: 7px 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.foto-bt:hover { background: rgba(255, 255, 255, 0.2); }
/* PDF: cartao com abrir + baixar, e o leitor grande por cima da conversa */
.att-pdf { display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.att-pdf-abrir { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 10px; color: inherit; text-decoration: none; }
.att-pdf .att-doc-ic { background: #fee2e2; color: #b91c1c; }
.att-pdf-baixar { display: grid; place-items: center; width: 40px; flex: none; border-left: 1px solid var(--line); color: var(--text-2); }
.att-pdf-baixar:hover, .att-pdf-abrir:hover { background: rgba(27, 79, 162, 0.06); color: var(--royal-deep); }
.pdf-frame { width: min(1100px, 100%); height: calc(100vh - 90px); border: 0; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default; }
.foto-nome { align-self: center; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 600; margin-right: 6px; }
/* contato compartilhado (vCard) no balao */
.ct-lista { display: flex; flex-direction: column; gap: 6px; min-width: 230px; }
.ct-card { padding: 9px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ct-topo { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.ct-topo b { font-size: 13.5px; }
.ct-av { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--royal-soft); color: var(--royal-deep); font-size: 12px; font-weight: 800; }
.ct-tel { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ct-tel .mono { flex: 1; }
.ct-sem { font-size: 12px; color: var(--muted); }
.ct-bt { border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ct-bt:hover { border-color: var(--royal-bright); color: var(--royal-deep); }
.ct-bt.forte { border-color: transparent; background: var(--royal-bright); color: #fff; }
.ct-bt.forte:hover { background: var(--royal); color: #fff; }
/* ligacao registrada na conversa (numero nao oficial) */
.bubble.ligacao { background: #fff7ed; border: 1px solid #fed7aa; }
.bubble.ligacao.perdida { background: #fef2f2; border-color: #fecaca; }
/* quem mandou (mensagem sem assinatura) */
.quem-mandou { font-size: 11px; font-weight: 700; color: var(--royal-deep); opacity: 0.75; margin-bottom: 2px; }
/* "fulano esta respondendo..." */
.digitando { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--royal-deep); }
.digitando-pts { display: inline-flex; gap: 3px; }
.digitando-pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--royal-bright); animation: digit 1.2s infinite ease-in-out; }
.digitando-pts i:nth-child(2) { animation-delay: 0.15s; }
.digitando-pts i:nth-child(3) { animation-delay: 0.3s; }
@keyframes digit { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* chat da equipe com mensagem nova que eu nao vi: fixado no topo */
.conv.fixada { background: #fffbeb; box-shadow: inset 3px 0 0 #f59e0b; }
.conv.fixada.active { background: #fef3c7; }
/* gravacao de audio: pausar / continuar (o mesmo botao) */
.att-rec.pausado .att-rec-dot { background: var(--muted); animation: none; }
.att-rec-pausa { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.att-pausa {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.att-pausa:hover { border-color: var(--royal-bright); color: var(--royal-deep); }
.att-pausa.continuar { border-color: transparent; background: var(--red); color: #fff; }
.att-pausa.continuar:hover { background: #b91c1c; color: #fff; }
/* ------------------------------------------------ TRAVA DE RESPOSTA --- */
.conv-list { position: relative; }
.trava-back { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(12, 24, 54, 0.6); backdrop-filter: blur(2px); }
.trava-card { width: min(480px, 100%); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.trava-topo { padding: 16px 20px; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.trava-topo small { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; }
.trava-topo b { display: block; margin-top: 4px; font-size: 19px; }
.trava-corpo { padding: 16px 20px 18px; }
.trava-ult { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; white-space: pre-wrap; max-height: 120px; overflow: auto; }
.trava-ult span { display: block; margin-bottom: 3px; font-size: 11px; color: var(--text-2); }
.trava-fila { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-2); }
.trava-fila ul { margin: 6px 0 0; padding-left: 18px; }
.trava-lista { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 30px; background: rgba(255, 255, 255, 0.85); color: #b91c1c; font-weight: 800; text-align: center; }
.trava-barra { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: #b91c1c; color: #fff; font-size: 13px; }
.trava-barra > span:first-child { flex: 1; }
.trava-barra small { opacity: 0.85; }
.trava-barra button { border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 8px; padding: 5px 10px; background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.trava-barra button:hover { background: rgba(255, 255, 255, 0.25); }
.trava-disp { display: inline-flex; gap: 6px; align-items: center; }
.trava-disp select { border-radius: 8px; border: 0; padding: 5px 8px; font: inherit; font-size: 12px; }
.trava-aviso { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid #fcd34d; background: #fffbeb; color: #78350f; font-size: 13px; }
.trava-aviso button { border: 0; background: none; color: #b45309; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
/* configuracao da trava */
.tv-liga { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; background: var(--surface-2); font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.tv-liga span { width: 30px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background 0.15s; }
.tv-liga span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.tv-liga.on { color: #166534; background: #dcfce7; border-color: #86efac; }
.tv-liga.on span { background: #16a34a; }
.tv-liga.on span::after { left: 14px; }
.tv-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-grade label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.tv-k { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: var(--text-2); }
.tv-dias { display: grid; gap: 5px; }
.tv-dia { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 6px; align-items: center; }
.tv-dia.off { opacity: 0.55; }
.tv-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.tv-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.tv-tab th, .tv-tab td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tv-log { max-height: 220px; overflow: auto; font-size: 12px; color: var(--text-2); }
.tv-log div { padding: 4px 0; border-bottom: 1px dashed var(--line); }
/* ------------------------------------------------ JANELA SOLTA (07/10) --- */
.js-casca { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg, #f4f6fb); }
.js-topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); border-top: 3px solid var(--accent); color: var(--royal-deep); }
.js-aviso { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.js-aviso.ok { background: #dcfce7; color: #166534; }
.js-aviso.error { background: #fee2e2; color: #991b1b; }
.js-corpo { flex: 1; padding: 18px; background: var(--surface); }
/* ------------------------------------------------ REGUA NO PAINEL (07/10) --- */
.pp-regua { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 9px; padding: 7px 10px; border-radius: 10px; border: 1px solid #c7d7fe; background: #eef4ff; color: #1e3a8a; font-size: 12.5px; line-height: 1.35; }
.pp-regua.parada { border-color: var(--line); background: var(--surface-2); color: var(--text-2); }
.pp-regua small { font-weight: 500; opacity: 0.85; }
.pp-regua-ult { flex-basis: 100%; padding-left: 21px; color: var(--text-2); font-size: 11.5px; }
/* grupo liberado: nome de quem escreveu na bolha (13/10) */
.quem-mandou.grupo { color: var(--royal, #1e40af); }
/* ------------------------------------- PROPOSTA NA APVS no painel (14/10) --- */
.pp-prop { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid #d9a441; border-radius: 10px; background: var(--surface); }
.pp-prop.feita { border-left-color: var(--green); }
.pp-prop.vazio { border-left-color: var(--line); background: var(--surface-2); gap: 7px; }
.pp-prop-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 13.5px; line-height: 1.3; }
.pp-prop-topo .chip { flex: none; }
.pp-prop-id { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; margin-bottom: 2px; }
.pp-prop-id b { color: var(--text); font-weight: 600; }
.pp-prop .pp-prop-ok { color: var(--green-2); }
.pp-prop .pp-prop-pend { color: var(--amber); }
.pp-prop a.btn { margin-top: 6px; text-align: center; text-decoration: none; justify-content: center; }
/* botao "Continuar proposta na APVS" + pop-up de escolha (14/10) */
.pp-continuar { width: 100%; justify-content: center; text-align: center; text-decoration: none; font-size: 14px; padding: 10px 12px; }
.pp-cot-linha { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.pp-cot-linha .chip { flex: none; }
.pp-busca { display: flex; flex-direction: column; gap: 7px; }
.pp-escolha { display: flex; flex-direction: column; gap: 10px; }
.pp-escolha-item { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border: 1px solid var(--line); border-left: 3px solid #d9a441; border-radius: 10px; }
.pp-escolha-item.feita { border-left-color: var(--green); }
.pp-escolha-item .pp-cot-linha { font-size: 13px; color: var(--text); }
.pp-escolha-item a.btn { align-self: flex-start; text-decoration: none; }
/* proposta concluida na APVS: botao verde em vez do dourado de "continuar" (19/10) */
.pp-concluida { background: linear-gradient(135deg, #10b981, #047857) !important; color: #fff !important; border-color: #047857 !important; font-weight: 700; }


/* ---- pecas novas (so classes que o estilo de hoje nao tem) ---- */
:root {
  --side: #ffffff;
  --card: #ffffff;
  --card2: #f3f5f9;
  --line2: #d7dde7;
  --ink2: #334155;
  --prata: #94a3b8;
  --chat: #eef1f6;
  --bout: #dcf5e6;
  --bin: #ffffff;
  --pont: #cbd3df;
  --ac: #1f6bff;
  --acs: #eaf1ff;
  --aci: #1a56db;
  --acg: rgba(31, 107, 255, 0.28);
  --on-accent: #ffffff;
  --gr: #16a34a;
  --gri: #15803d;
  --grs: #e7f7ee;
  --rd: #dc2626;
  --rdi: #b91c1c;
  --rds: #fdecec;
  --am: #d97706;
  --ami: #b45309;
  --ams: #fef3e2;
  --pu: #7c3aed;
  --pui: #6d28d9;
  --pus: #f1ecfe;
  --te: #0d9488;
  --tei: #0f766e;
  --tes: #e6f6f4;
  --rdl: #fecaca;
  --grl: #a7f3d0;
  --aml: #fde68a;
  --pul: #ddd6fe;
  --acl: #bfd3f7;
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --scroll: #cfd8e6;
  --scroll-hover: #b8c4d8;
}
:root[data-tema='escuro'] {
  --side: #0b111e;
  --card: #0f1626;
  --card2: #141c2e;
  --line2: #26324a;
  --ink2: #c7cfdd;
  --prata: #a7b0c2;
  --chat: #0a101c;
  --bout: #123a30;
  --bin: #151d30;
  --pont: #1c2639;
  --acs: rgba(31, 107, 255, 0.16);
  --aci: #86aeff;
  --acg: rgba(31, 107, 255, 0.4);
  --gr: #22c55e;
  --gri: #4ade80;
  --grs: rgba(34, 197, 94, 0.14);
  --rd: #ef4444;
  --rdi: #f87171;
  --rds: rgba(239, 68, 68, 0.14);
  --am: #f59e0b;
  --ami: #fbbf24;
  --ams: rgba(245, 158, 11, 0.14);
  --pu: #8b5cf6;
  --pui: #a78bfa;
  --pus: rgba(139, 92, 246, 0.16);
  --te: #14b8a6;
  --tei: #2dd4bf;
  --tes: rgba(20, 184, 166, 0.14);
  --rdl: rgba(239, 68, 68, 0.35);
  --grl: rgba(34, 197, 94, 0.32);
  --aml: rgba(245, 158, 11, 0.32);
  --pul: rgba(139, 92, 246, 0.34);
  --acl: rgba(31, 107, 255, 0.36);
  --topbar-bg: rgba(7, 11, 20, 0.82);
  --scroll: #26324a;
  --scroll-hover: #33415e;
}
@media (prefers-color-scheme: dark) {
:root:not([data-tema]) {
  --side: #0b111e;
  --card: #0f1626;
  --card2: #141c2e;
  --line2: #26324a;
  --ink2: #c7cfdd;
  --prata: #a7b0c2;
  --chat: #0a101c;
  --bout: #123a30;
  --bin: #151d30;
  --pont: #1c2639;
  --acs: rgba(31, 107, 255, 0.16);
  --aci: #86aeff;
  --acg: rgba(31, 107, 255, 0.4);
  --gr: #22c55e;
  --gri: #4ade80;
  --grs: rgba(34, 197, 94, 0.14);
  --rd: #ef4444;
  --rdi: #f87171;
  --rds: rgba(239, 68, 68, 0.14);
  --am: #f59e0b;
  --ami: #fbbf24;
  --ams: rgba(245, 158, 11, 0.14);
  --pu: #8b5cf6;
  --pui: #a78bfa;
  --pus: rgba(139, 92, 246, 0.16);
  --te: #14b8a6;
  --tei: #2dd4bf;
  --tes: rgba(20, 184, 166, 0.14);
  --rdl: rgba(239, 68, 68, 0.35);
  --grl: rgba(34, 197, 94, 0.32);
  --aml: rgba(245, 158, 11, 0.32);
  --pul: rgba(139, 92, 246, 0.34);
  --acl: rgba(31, 107, 255, 0.36);
  --topbar-bg: rgba(7, 11, 20, 0.82);
  --scroll: #26324a;
  --scroll-hover: #33415e;
}
}
.sb-top {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.sb-toggle {
  width: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sb-toggle:hover {
  color: var(--ink);
  border-color: var(--line2);
}
.sb-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.sb-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 22px;
  padding-left: 10px;
  border-left: 1px solid var(--line2);
}
.sb-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.sb-sub a:hover {
  background: var(--card2);
  color: var(--ink);
}
.sb-user {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.sb-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-av {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--acs);
  color: var(--aci);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-av i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gr);
  box-shadow: 0 0 0 3px var(--card);
}
.sb-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-who b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-who small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.sb-tema {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.sb-tema button {
  width: 26px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}
.sb-tema button[aria-checked='true'] {
  background: var(--ac);
  color: var(--on-accent);
}
.sb-icon-btn {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card2);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sb-icon-btn:hover {
  color: var(--rdi);
  border-color: var(--line2);
}
.sb-sys {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.bola {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: 0;
  background: var(--text-3);
}
.bola.vermelha {
  background: var(--rd);
}
.bola.verde {
  background: var(--gr);
}
svg.ic {
  display: inline-block;
  flex: none;
  vertical-align: -0.15em;
}
.tab-n {
  margin-left: 4px;
  font-weight: 500;
  opacity: 0.75;
}
.resumo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.resumo > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.resumo > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.resumo b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.resumo span {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) {
.resumo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
.resumo > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
.sec-topo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.sec-topo h2 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.sec-topo > span {
  font-size: 12px;
  color: var(--muted);
}
.legenda {
  display: inline-flex;
  align-items: center;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--muted);
}
.legenda i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: -6px;
}
.barras {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.barras > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.barras > div > div {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 180px;
}
.barras span {
  display: block;
  width: 10px;
  min-height: 2px;
  border-radius: 6px;
}
.barras small {
  font-size: 11px;
  color: var(--muted);
}
.lista-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.busca {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--card2);
  border-radius: 10px;
  color: var(--muted);
}
.busca input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}
.busca:focus-within {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--acs);
}
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.linha-ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink2);
}
.linha-ic.az {
  background: var(--acs);
  color: var(--aci);
}
.linha-ic.rx {
  background: var(--pus);
  color: var(--pui);
}
.linha-ic.vd {
  background: var(--grs);
  color: var(--gri);
}
.linha-ic.am {
  background: var(--ams);
  color: var(--ami);
}
.linha-ic.te {
  background: var(--tes);
  color: var(--tei);
}
.linha-nome {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.linha-nome:hover {
  color: var(--aci);
}
.pilula {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
}
.ed-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.ed-voltar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
}
.ed-nome {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ed-nome > div {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ed-nome h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.ed-nome > span {
  font-size: 12px;
  color: var(--muted);
}
.ed-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-acoes button,
.ed-acoes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ed-acoes button:hover,
.ed-acoes a:hover {
  border-color: var(--line2);
}
.ed-acoes .ed-publicar {
  padding: 0 14px;
  border: 0;
  background: var(--ac);
  color: var(--on-accent);
  box-shadow: 0 6px 16px var(--acg);
}
.ed-busca {
  flex: none;
  height: 36px;
}
.ed-grupo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ed-grupo > span {
  padding: 0 4px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bloco-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fnode-parede {
  padding: 8px;
  background: var(--chat);
  display: flex;
  flex-direction: column;
}
.fnode-bolha {
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 0 6px 6px 6px;
  background: var(--bin);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  word-break: break-word;
}
.fnode-bolha.ini {
  border-radius: 6px;
  color: var(--ink2);
}
.fnode-botao {
  margin-top: 4px;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--bin);
  color: var(--aci);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.fnode-img {
  margin-bottom: 4px;
  border-radius: 8px;
  background: var(--line2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
}
.fnode-img span {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fnode-arq {
  margin-bottom: 4px;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--bin);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}
.fnode-arq-tile {
  width: 28px;
  height: 34px;
  flex: none;
  border-radius: 3px;
  background: #c2361f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fnode-arq-tile.audio {
  background: var(--te);
}
.fnode-arq > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fnode-arq b,
.fnode-arq small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fnode-arq b {
  font-size: 11px;
  color: var(--ink);
}
.fnode-arq small {
  font-size: 10px;
  color: var(--muted);
}
.fnode-pill {
  padding: 2px 8px;
  border-radius: 999px;
}
.fnode-pill.p0 {
  background: var(--grs);
  color: var(--gri);
}
.fnode-pill.p1 {
  background: var(--ams);
  color: var(--ami);
}
.fnode-pill.p2 {
  background: var(--card2);
  color: var(--ink2);
}
.fnode-saida {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px 0 10px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
}
.fnode-saida:last-child {
  border-radius: 0 0 8px 8px;
}
.ed-dica {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 40px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ed-zoom {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.ed-zoom button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.ed-zoom .ajustar {
  width: auto;
  padding: 0 10px;
  background: var(--card2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.ed-zoom span {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.pa {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pa-abas {
  display: flex;
  gap: 4px;
  margin: 12px 16px 0;
  padding: 4px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.pa-abas button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pa-corpo {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pa-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.pa-vazio b {
  color: var(--ink);
  font-size: 13px;
}
.pa-demo {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ams);
  color: var(--ami);
  font-size: 11px;
  font-weight: 600;
}
.pa-veiculo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pa-veiculo > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pa-veiculo b {
  font-size: 14px;
}
.pa-veiculo small {
  font-size: 12px;
  color: var(--muted);
}
.placa {
  display: inline-flex;
  flex-direction: column;
  min-width: 128px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}
.placa i {
  background: #1f6bff;
  color: #ffffff;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 2px 0;
}
.placa b {
  padding: 2px 10px;
  font-family: 'Courier New', monospace;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #0b1220;
}
.pa-bloco {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pa-rot {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pa-sit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.pa-sit span {
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--card2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.pa-alerta {
  font-size: 12px;
  font-weight: 600;
  color: var(--rdi);
}
.pa-boleto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.pa-boleto-topo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.pa-boleto-topo > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pa-boleto-topo small {
  font-size: 12px;
  color: var(--muted);
}
.pa-boleto-topo > div b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pa-boleto-topo > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.pa-boleto-topo > span small {
  font-size: 11px;
}
.pa-boleto-topo > span b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ami);
}
.pa-enviar {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--ac);
  color: var(--on-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px var(--acg);
  cursor: pointer;
}
.pa-acoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pa-acoes button {
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.pa-acoes button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pa-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--aci);
}
.pa-ficha {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pa-ficha > div {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.pa-ficha > div:first-child {
  border-top: 0;
}
.pa-ficha dt {
  flex: 0 0 104px;
  color: var(--muted);
}
.pa-ficha dd {
  margin: 0;
  flex: 1;
  color: var(--ink);
  font-weight: 600;
}
.rel-topo {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rel-topo > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rel-topo h1 {
  flex: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.rel-topo > div > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.rel-sec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px 6px;
  border-top: 1px solid var(--line);
}
.rel-sec b {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}
.rel-sec span {
  font-size: 11px;
  color: var(--muted);
}
.rel-item {
  display: flex;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rel-item:hover {
  background: var(--card2);
}
.rel-av {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.rel-av.t0 {
  background: var(--acs);
  color: var(--aci);
}
.rel-av.t1 {
  background: var(--pus);
  color: var(--pui);
}
.rel-av.t2 {
  background: var(--grs);
  color: var(--gri);
}
.rel-av.t3 {
  background: var(--ams);
  color: var(--ami);
}
.rel-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rel-l1 {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rel-l1 b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-l1 small,
.rel-l2 small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-l2 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rel-placa {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line2);
  background: var(--card2);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.rel-l3 {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-n {
  align-self: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gr);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rel-topo .busca {
  flex: none;
}
.ch-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.rel-atalhos button {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.rel-atalhos button:hover:not(:disabled) {
  border-color: var(--acg);
  background: var(--acs);
  color: var(--aci);
}
.rel-atalhos button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ag {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: 310px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(3, 8, 20, 0.3);
}
.ag-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.ag-topo b {
  flex: 1;
  font-size: 14px;
}
.ag-topo span {
  font-size: 11px;
  color: var(--muted);
}
.ag-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
}
.ag-lista {
  flex: 1;
  overflow: auto;
}
.ag-vazio {
  padding: 18px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.ag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.ag-play {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card2);
  color: var(--gri);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ag-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ag-txt b {
  font-size: 13px;
  font-weight: 600;
}
.ag-txt small {
  font-size: 11px;
  color: var(--muted);
}
.ag-enviar {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--ac);
  color: var(--on-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ag-enviar:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ag-gravar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 0;
  background: var(--card2);
  color: var(--rdi);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ag-bola {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.ag-gravando,
.ag-salvar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card2);
}
.ag-salvar {
  flex-direction: column;
  align-items: stretch;
}
.insp-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.insp-topo > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.insp-topo b {
  font-size: 15px;
  font-weight: 700;
}
.insp-topo small {
  font-size: 12px;
  color: var(--muted);
}
.bloco-ic.lg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.insp-apagar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--rdi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.insp-abas {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.insp-abas button {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.insp-texto {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
}
.insp-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--card2);
}
.insp-vars button {
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--acg);
  background: var(--acs);
  color: var(--aci);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.insp-texto textarea {
  min-height: 96px;
  padding: 12px;
  border: 0;
  outline: none;
  resize: vertical;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.insp-cont {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
  color: var(--muted);
}
.insp-reserva {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.insp-reserva > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.insp-reserva b {
  font-size: 13px;
}
.insp-reserva small {
  font-size: 12px;
  color: var(--muted);
}
.insp-reserva-k {
  flex: 0 0 96px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aci);
  overflow: hidden;
  text-overflow: ellipsis;
}
.insp-previa {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.insp-previa b {
  font-size: 13px;
}
.insp-previa small {
  font-size: 11px;
  color: var(--muted);
}
.insp-chat {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 14px;
  background: var(--chat);
}
.insp-midia {
  width: 94%;
  height: 70px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--bin);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.insp-bolha {
  max-width: 94%;
  align-self: flex-start;
  padding: 8px 10px 6px;
  border-radius: 0 10px 10px 10px;
  background: var(--bin);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.insp-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.insp-item > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insp-item-n {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--pus);
  color: var(--pui);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.insp-anexar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.insp-seg {
  width: 100%;
}
.insp-audios {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insp-audios button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.insp-audios button span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.insp-audios button small {
  color: var(--muted);
}
.insp-botao {
  width: 94%;
  height: 36px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--bin);
  color: var(--aci);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 28px 40px;
  min-height: 100%;
  box-sizing: border-box;
}
.ts-config {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ts-topo,
.ex-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ts-topo > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ts-topo h1,
.ex-topo h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.ex-topo h1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-topo h1 > svg {
  color: var(--muted);
}
.ex-trilha {
  color: var(--muted);
  font-weight: 600;
}
.ts-topo span,
.ex-topo > div > span {
  font-size: 13px;
  color: var(--muted);
}
.ts-card,
.ex-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ts-modos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.ts-modos label {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  cursor: pointer;
}
.ts-modos input {
  accent-color: var(--ac);
  margin-top: 2px;
}
.ts-modos span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ts-modos b {
  font-size: 14px;
}
.ts-modos small {
  font-size: 12px;
  color: var(--muted);
}
.ts-campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-campo > label,
.ts-campo > span {
  font-size: 13px;
  font-weight: 600;
}
.ts-dados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.ts-dados > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card2);
  font-size: 13px;
}
.ts-dados > div span:first-child {
  color: var(--aci);
  font-weight: 600;
}
.ts-dados > div.falta span:last-child {
  color: var(--ami);
  font-style: italic;
}
.ts-caminho {
  gap: 12px;
}
.ts-caminho ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ts-caminho li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.ts-caminho li > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ts-caminho li b {
  font-size: 14px;
}
.ts-caminho li small {
  font-size: 12px;
  color: var(--muted);
}
.ts-caminho time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ts-dot {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  box-sizing: border-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gr);
  color: #fff;
}
.ts-dot.espera {
  background: var(--ac);
}
.ts-dot.aviso {
  background: var(--am);
}
.ts-dot.fim {
  background: transparent;
  border: 2px solid var(--prata);
  color: var(--prata);
}
.ts-cel-col {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ts-cel {
  width: 380px;
  max-width: 100%;
  height: 790px;
  max-height: calc(100vh - 110px);
  min-height: 560px;
  box-sizing: border-box;
  border-radius: 44px;
  background: #10151f;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(15, 30, 61, 0.25);
}
.ts-tela {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #efeae2;
  display: flex;
  flex-direction: column;
}
.ts-wa-topo {
  height: 64px;
  flex: none;
  margin-top: 22px;
  padding: 0 14px;
  background: #0f5f54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ts-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f1e3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ts-wa-topo > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ts-wa-topo b {
  font-size: 15px;
  font-weight: 600;
}
.ts-wa-topo small {
  font-size: 11px;
  opacity: 0.85;
}
.ts-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #111827;
}
.ts-dia {
  align-self: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  color: #5b6474;
}
.ts-bolha {
  max-width: 82%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ts-bolha.robo {
  align-self: flex-start;
  background: #fff;
  border-radius: 0 10px 10px 10px;
}
.ts-bolha.cli {
  align-self: flex-end;
  max-width: 75%;
  background: #d9fdd3;
  border-radius: 10px 0 10px 10px;
}
.ts-bolha.com-botoes {
  width: 82%;
  padding-bottom: 0;
}
.ts-txt {
  white-space: pre-wrap;
  word-break: break-word;
}
.ts-bolha time {
  align-self: flex-end;
  font-size: 10px;
  color: #6b7280;
}
.ts-botao {
  margin: 0 -10px;
  padding: 10px;
  border: 0;
  border-top: 1px solid #eef0f3;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0b7fb3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.ts-botao:disabled {
  cursor: default;
}
.ts-lista {
  display: flex;
  flex-direction: column;
}
.ts-lista button {
  margin: 0 -10px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid #eef0f3;
  background: #f7f8fa;
  font: inherit;
  font-size: 13px;
  color: #111827;
  text-align: left;
  cursor: pointer;
}
.ts-lista button:disabled {
  cursor: default;
}
.ts-arq {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin: -2px -4px 2px;
  border-radius: 8px;
  background: #f4f5f7;
}
.ts-arq > span {
  width: 34px;
  height: 40px;
  flex: none;
  border-radius: 4px;
  background: #dce3ec;
  color: #5b6474;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ts-arq.pdf > span {
  background: #c2361f;
  color: #fff;
}
.ts-arq b {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-nota {
  align-self: center;
  max-width: 90%;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fdf0dc;
  color: #8a4b05;
  font-size: 12px;
  text-align: center;
}
.ts-acoes-arq {
  align-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 90%;
}
.ts-acoes-arq button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #c9cfd9;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.ts-compor {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 18px;
}
.ts-compor label {
  flex: 1;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: #fff;
}
.ts-compor input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: #111827;
}
.ts-compor button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #0f5f54;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ex {
  padding: 28px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}
.ex-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.ex-card {
  padding: 18px 20px;
  gap: 12px;
}
.ex-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.ex-funil {
  flex: 999 1 560px;
  min-width: 0;
}
.ex-barra {
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr) 110px;
  align-items: center;
  gap: 14px;
}
.ex-barra > span:first-child {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-trilho {
  position: relative;
  display: block;
  height: 26px;
  border-radius: 7px;
  background: var(--card2);
  overflow: hidden;
}
.ex-trilho span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 7px;
}
.ex-barra b {
  font-size: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ex-barra b small {
  font-weight: 500;
  color: var(--muted);
}
.ex-falhas {
  flex: 1 1 320px;
}
.ex-falhas-topo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ex-falhas-topo h2 {
  flex: 1;
}
.ex-falhas-topo > b {
  font-size: 20px;
  color: var(--rdi);
}
.ex-falhas-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--rds);
  color: var(--rdi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ex-falha {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card2);
}
.ex-falha > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.ex-falha small {
  font-size: 12px;
  color: var(--muted);
}
.ex-pessoas {
  padding: 0;
  gap: 0;
}
.ex-pessoas-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ex-pessoas-topo h2 {
  flex: 1 1 200px;
}
.ex-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ex-filtros button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
}
.ex-parar {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rds);
  border-radius: 9px;
  background: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rdi);
  cursor: pointer;
}
.ex-tabela {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
}
.ex-tabela th {
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ex-tabela td {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
}
.ex-tabela th:first-child,
.ex-tabela td:first-child {
  padding-left: 18px;
}
.ex-tabela th:last-child,
.ex-tabela td:last-child {
  padding-right: 18px;
}
.ex-contato {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ex-contato > span:first-child {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ex-contato > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ex-contato b {
  color: var(--ink);
}
.ex-contato small {
  font-size: 12px;
  color: var(--muted);
}
.ex-st {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.ex-st.az {
  background: var(--acs);
  color: var(--aci);
}
.ex-st.vd {
  background: var(--grs);
  color: var(--gri);
}
.ex-st.am {
  background: var(--ams);
  color: var(--ami);
}
.ex-st.vm {
  background: var(--rds);
  color: var(--rdi);
}
.ex-st.cz {
  background: var(--card2);
  color: var(--ink2);
}
.ex-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--aci);
  cursor: pointer;
}
.at {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  background: var(--bg);
}
.at-fila {
  flex: 0 0 360px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
}
.at-fila-topo {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.at-fila-topo h1 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.at-zd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gri);
}
.at-zd > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.at-filas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--card2);
}
.at-filas button {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
}
.at-filas button b {
  font-size: 15px;
  font-weight: 700;
}
.at-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.at-cats button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.at-lista {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.at-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.at-item:hover {
  background: var(--card2);
}
.at-item > b {
  font-size: 14px;
  font-weight: 700;
}
.at-item > small {
  font-size: 12px;
  color: var(--ink2);
}
.at-item-l1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.at-ticket-topo .at-num {
  font-size: 13px;
}
.at-cat {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.at-cat.az {
  background: var(--acs);
  color: var(--aci);
}
.at-cat.am {
  background: var(--ams);
  color: var(--ami);
}
.at-cat.vm {
  background: var(--rds);
  color: var(--rdi);
}
.at-cat.te {
  background: var(--tes);
  color: var(--tei);
}
.at-cat.ro {
  background: var(--pus);
  color: var(--pui);
}
.at-cat.cz {
  background: var(--card2);
  color: var(--ink2);
}
.at-prio {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.at-prio.urgente {
  color: var(--rdi);
}
.at-prio.alta {
  color: var(--ami);
}
.at-sla {
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-sla > span:first-child {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--card2);
  overflow: hidden;
}
.at-sla > span:first-child > span {
  display: block;
  height: 100%;
  background: var(--gr);
}
.at-sla > span:first-child > span.meio {
  background: var(--am);
}
.at-sla > span:first-child > span.tarde {
  background: var(--rd);
}
.at-sla > span:last-child {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}
.at-sla > span:last-child.tarde {
  color: var(--rdi);
}
.at-vazio {
  padding: 24px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.at-vazio.grande {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.at-ticket {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
.at-ticket-topo {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.at-ticket-topo h2 {
  flex: 1 1 240px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.at-resolver {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--gr);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.at-campos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.at-campos > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
  font-size: 12px;
  color: var(--muted);
}
.at-campos b {
  color: var(--ink);
}
.at-campos b.az {
  color: var(--aci);
}
.at-campos b.am {
  color: var(--ami);
}
.at-campos b.vm,
.at-campos b.p-urgente {
  color: var(--rdi);
}
.at-campos b.p-alta {
  color: var(--ami);
}
.at-campos b.cz {
  color: var(--muted);
}
.at-linha {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.at-ev {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.at-ev > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.at-ev > div {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.at-ev.cli {
  align-self: flex-start;
}
.at-ev.cli > div {
  border-radius: 0 10px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.at-ev.eq,
.at-ev.nota {
  align-self: flex-end;
  align-items: flex-end;
}
.at-ev.eq > div {
  border-radius: 10px 0 10px 10px;
  background: var(--bout);
  color: var(--ink);
}
.at-ev.nota > div {
  border-radius: 10px;
  background: #fff6dd;
  border: 1px solid #f2d68a;
  color: #5c4204;
  font-size: 13px;
}
.at-ev.sis {
  align-self: center;
  max-width: 80%;
  align-items: center;
}
.at-ev.sis > div {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--card2);
  color: var(--ink2);
  font-size: 12px;
  text-align: center;
}
.at-compor {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.at-modos {
  display: flex;
  align-items: center;
  gap: 4px;
}
.at-modos > button[role='tab'] {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.at-mini {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.at-caixa {
  align-items: flex-end;
  gap: 8px;
}
.at-caixa label {
  flex: 1;
  display: flex;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--card);
}
.at-caixa label.nota {
  background: #fffbea;
  border-color: #f2d68a;
}
.at-caixa textarea {
  flex: 1;
  border: 0;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}
.at-enviar {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--gr);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.at-enviar.nota {
  background: #b7791f;
}
.at-enviar:disabled {
  opacity: 0.55;
  cursor: default;
}
.at-transf {
  position: relative;
}
.at-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 220px;
  max-width: 360px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 30, 61, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.at-pop.cima {
  top: auto;
  bottom: calc(100% + 6px);
}
.at-pop button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.at-pop button:hover {
  background: var(--card2);
}
.at-lado {
  flex: 0 0 340px;
  min-height: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card2);
  border-left: 1px solid var(--line);
}
.at-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.at-box > b {
  font-size: 13px;
  font-weight: 700;
}
.at-box > small {
  font-size: 12px;
  color: var(--muted);
}
.at-fotos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.at-fotos img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line2);
  display: block;
}
.at-outro {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.at-outro small {
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 1200px) {
.at-lado {
    display: none;
  }
}
.at-sat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.at-sat > b {
  font-size: 26px;
  font-weight: 700;
  color: var(--muted);
}
.at-sat > b.vd {
  color: var(--gri);
}
.at-sat > b.am {
  color: var(--ami);
}
.at-sat > b.vm {
  color: var(--rdi);
}
.at-sat > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.at-sat > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.at-sat > div > span > span:first-child {
  width: 8px;
}
.at-sat > div > span > span:last-child {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--card2);
  overflow: hidden;
}
.at-sat > div > span > span:last-child > span {
  display: block;
  height: 100%;
}
.at-sat > div span.vd {
  background: var(--gr);
}
.at-sat > div span.am {
  background: var(--am);
}
.at-sat > div span.vm {
  background: var(--rd);
}
.at-nota {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--grs);
  color: var(--gri);
}
.at-nota.n3 {
  background: var(--ams);
  color: var(--ami);
}
.at-nota.n1,
.at-nota.n2 {
  background: var(--rds);
  color: var(--rdi);
}
.sv {
  --prata: #94a3b8;
  padding: 18px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
:root[data-tema='escuro'] .sv {
  --prata: #a7b0c2;
}
.sv-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.sv-trilha {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.sv-trilha b {
  color: var(--ink);
  font-weight: 700;
}
.sv-aovivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grs);
  color: var(--gri);
  font-size: 11.5px;
  font-weight: 600;
}
.sv-vivo {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gr);
  animation: sv-pulso 1.6s ease-in-out infinite;
}
@keyframes sv-pulso {
  50% {
    opacity: 0.35;
  }
}
.sv-periodos {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.sv-periodos button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.sv-card-topo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.sv-card-topo h1 {
  margin: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 700;
}
.sv-card-topo > small {
  color: var(--muted);
  font-size: 12px;
}
.sv-titulo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv-titulo > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.sv-titulo > span + span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-titulo > span + span b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sv-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
  min-width: 0;
}
.sv-kpis > div:first-child {
  padding-left: 0;
}
.sv-kpis > div + div {
  border-left: 1px solid var(--line);
}
.sv-kpis > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-kpis b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sv-kpis small {
  font-size: 12.5px;
  color: var(--muted);
}
.sv-delta {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.sv-delta.bom {
  background: var(--grs);
  color: var(--gri);
}
.sv-delta.ruim {
  background: var(--rds);
  color: var(--rdi);
}
.sv-grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sv-dois {
  grid-column: span 2;
}
.sv-legenda {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.sv-legenda > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sv-legenda i,
.sv-aneis-leg i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sv-legenda i.az,
.sv-aneis-leg i.az {
  background: var(--ac);
}
.sv-legenda i.pr,
.sv-aneis-leg i.pr {
  background: var(--prata);
}
.sv-aneis-leg i.vd {
  background: var(--gr);
}
.sv-graf {
  position: relative;
}
.sv-graf svg {
  display: block;
  width: 100%;
  height: auto;
}
.sv-g-linha {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.sv-g-txt {
  fill: var(--muted);
  font-size: 11px;
}
.sv-g-a {
  stroke: var(--ac);
  stroke-width: 2.5;
}
.sv-g-b {
  stroke: var(--prata);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.sv-g-pico {
  fill: var(--card);
  stroke: var(--ac);
  stroke-width: 3;
}
.sv-dica {
  position: absolute;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line2);
  box-shadow: 0 8px 20px rgba(3, 8, 20, 0.18);
  pointer-events: none;
}
.sv-dica b {
  font-size: 16px;
}
.sv-dica small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.sv-aneis {
  position: relative;
  align-self: center;
  width: 200px;
  height: 200px;
}
.sv-aneis svg {
  width: 100%;
  height: 100%;
}
.sv-anel-fundo {
  fill: none;
  stroke: var(--card2);
  stroke-width: 12;
}
.sv-anel-v {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.sv-anel-v.az {
  stroke: var(--ac);
}
.sv-anel-v.pr {
  stroke: var(--prata);
}
.sv-anel-v.vd {
  stroke: var(--gr);
}
.sv-aneis > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sv-aneis > span b {
  font-size: 24px;
  font-weight: 700;
}
.sv-aneis > span small,
.sv-aneis-leg small {
  font-size: 11px;
  color: var(--muted);
}
.sv-aneis-leg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}
.sv-aneis-leg > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv-aneis-leg small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sv-fila {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv-fila > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.sv-fila > span:first-child b {
  font-size: 14px;
}
.sv-fila small {
  font-size: 11px;
  color: var(--muted);
}
.sv-fila small.vm {
  color: var(--rdi);
}
.sv-trilho {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--card2);
  overflow: hidden;
}
.sv-trilho > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.sv-trilho .az {
  background: var(--ac);
}
.sv-trilho .vm {
  background: var(--rd);
}
.sv-trilho .cz {
  background: var(--prata);
}
.sv-semana {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 200px;
}
.sv-semana > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.sv-semana > div > div {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 180px;
}
.sv-semana span {
  display: block;
  width: 10px;
  border-radius: 6px;
}
.sv-semana .az {
  background: var(--ac);
}
.sv-semana .pr {
  background: var(--prata);
}
.sv-semana small {
  font-size: 11px;
  color: var(--muted);
}
.sv-pessoas {
  gap: 4px;
}
.sv-pessoas .sv-card-topo {
  margin-bottom: 6px;
}
.sv-pessoa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.sv-av {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.sv-av > span {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card);
}
.sv-av .vd {
  background: var(--gr);
}
.sv-av .az {
  background: var(--ac);
}
.sv-av .am {
  background: var(--am);
}
.sv-av .cz {
  background: var(--prata);
}
.sv-pessoa > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sv-pessoa b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-pessoa small {
  font-size: 11px;
  color: var(--muted);
}
.sv-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--card2);
  color: var(--ink2);
}
.sv-alerta {
  padding: 16px 20px;
  gap: 10px;
}
.sv-alerta .sv-card-topo {
  align-items: center;
  gap: 8px;
}
.sv-alerta .sv-card-topo > svg {
  color: var(--rd);
}
.sv-alerta .sv-titulo > span:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.sv-np {
  color: var(--muted);
  font-size: 12px;
}
.sv-tabela {
  overflow-x: auto;
}
.sv-tabela table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 13px;
}
.sv-tabela th {
  padding: 0 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.sv-tabela th:last-child,
.sv-tabela td:last-child {
  text-align: right;
}
.sv-tabela td {
  padding: 10px 12px;
  background: var(--card2);
}
.sv-tabela td:first-child {
  border-radius: 10px 0 0 10px;
}
.sv-tabela td:last-child {
  border-radius: 0 10px 10px 0;
}
.sv-tabela .at-transf {
  display: inline-block;
  text-align: left;
}
.sv-atraso {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rds);
  color: var(--rdi);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 1100px) {
.sv-grade {
    grid-template-columns: minmax(0, 1fr);
  }
.sv-dois {
    grid-column: auto;
  }
.sv-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }
.sv-kpis > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
:root[data-tema='escuro'] .sv-alerta {
  border-color: #6b2a35;
}
.bu-fundo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 16px 16px;
  background: rgba(15, 30, 61, 0.55);
}
.bu {
  width: 760px;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(15, 30, 61, 0.35);
}
.bu-campo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  flex: none;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.bu-campo input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
}
.bu-campo > span:last-child {
  font-size: 12px;
  white-space: nowrap;
}
.bu-corpo {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.bu-vazio {
  padding: 24px 20px;
  font-size: 13px;
  color: var(--muted);
}
.bu-grupo {
  display: block;
  padding: 14px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bu-assoc {
  margin: 0 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--acs);
  border: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bu-av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--aci);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bu-nome {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.bu-nome b {
  font-size: 14px;
  font-weight: 600;
}
.bu-assoc .bu-nome b {
  font-size: 15px;
  font-weight: 700;
}
.bu-nome small {
  font-size: 12px;
  color: var(--muted);
}
.bu-sit {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.bu-sit.vm {
  background: var(--rdi);
}
.bu-sit.vd {
  background: var(--gri);
}
.bu-sit.am {
  background: var(--ami);
}
.bu-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bu-acoes button,
.bu-acoes a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.bu-tile {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card2);
  color: var(--ink2);
}
.bu-tile.vd {
  background: var(--grs);
  color: var(--gri);
}
.bu-tile.vm {
  background: var(--rds);
  color: var(--rdi);
}
.bu-tile.am {
  background: var(--ams);
  color: var(--ami);
}
.bu-tile.az {
  background: var(--acs);
  color: var(--aci);
}
.bu-tile.te {
  background: var(--tes);
  color: var(--tei);
}
.bu-tile.ro {
  background: var(--pus);
  color: var(--pui);
}
.bu-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--card2);
  color: var(--ink2);
}
.bu-chip.vd {
  background: var(--grs);
  color: var(--gri);
}
.bu-chip.vm {
  background: var(--rds);
  color: var(--rdi);
}
.bu-chip.am {
  background: var(--ams);
  color: var(--ami);
}
.bu-chip.az {
  background: var(--acs);
  color: var(--aci);
}
.bu-rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  flex: none;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--card2);
  font-size: 12px;
  color: var(--muted);
}
.bu-rodape b {
  color: var(--ink2);
}
.np-chave {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
}
.pa-corpo .np-chave {
  margin-top: 4px;
}
.np-chave input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.np-trilho {
  position: relative;
  width: 36px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: var(--gr);
}
.np-trilho > span {
  position: absolute;
  top: 3px;
  left: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.np-chave input:focus-visible + .np-trilho {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.np-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.np-texto b {
  font-size: 13px;
  font-weight: 700;
}
.np-texto small {
  font-size: 11px;
  color: var(--muted);
}
.sb-voltar {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sb-voltar:hover {
  color: var(--aci);
}
.sb-disparos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 4px 8px 40px;
}
.sb-disparo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 2px 5px;
  border-radius: 10px;
  color: var(--ink2);
  text-decoration: none;
}
.sb-disparo:hover {
  background: var(--card2);
}
.sb-disparo > span:first-child {
  position: relative;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink2);
  border: 2.5px solid var(--line2);
}
.sb-disparo.esperando > span:first-child {
  border-color: #f59e0b;
}
.sb-disparo.enviando > span:first-child {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}
.sb-disparo.enviado > span:first-child {
  border-color: #34d399;
}
.sb-disparo b {
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-disparo small {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}
.sb-disparos.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
}
.sb-disparos.mini .sb-disparo {
  padding: 0;
}
.sb-disparos.mini .sb-disparo > span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border-width: 2px;
}
.sb-disparo-n {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.mg-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ams);
  color: var(--ami);
  font-size: 12.5px;
  line-height: 1.45;
}
.mg-aviso svg {
  flex: none;
  margin-top: 1px;
}
.mg-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.mg-busca {
  flex: 1 1 220px;
}
.mg-n {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--card2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.mg-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 2px;
}
.mg-cartao {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mg-previa {
  display: block;
  height: 190px;
  overflow: hidden;
  padding: 12px;
  background: #efeae2;
  pointer-events: none;
}
.mg-previa > * {
  transform: scale(0.82);
  transform-origin: top left;
  width: 122%;
}
.mg-pe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.mg-pe b {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg-pe > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mg-pe small {
  font-size: 12px;
  color: var(--muted);
}
.mg-cat {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--card2);
  color: var(--ink2);
  font-size: 11px;
  font-weight: 700;
}
.mg-st {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.mg-st.vd {
  background: var(--grs);
  color: var(--gri);
}
.mg-st.am {
  background: var(--ams);
  color: var(--ami);
}
.mg-st.vm {
  background: var(--rds);
  color: var(--rdi);
}
.mg-st.cz {
  background: var(--card2);
  color: var(--muted);
}
.mg-grade.fluxos .mg-cartao {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: default;
}
.mg-grade.fluxos .mg-pe {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
}
.mg-fluxo-ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--pus);
  color: var(--pui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mg-vazio {
  padding: 30px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.mg-envio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.mg-campos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mg-campos .mg-cat {
  align-self: flex-start;
}
.mg-celular {
  padding: 14px;
  border-radius: 16px;
  background: #efeae2;
}
@media (max-width: 760px) {
.mg-envio {
    grid-template-columns: 1fr;
  }
}
.jf-aviso {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--ams);
  background: linear-gradient(90deg, var(--ams), var(--card));
  animation: jf-entra 0.25s ease;
}
@keyframes jf-entra {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.jf-ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--am);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jf-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jf-txt b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.jf-txt small {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.4;
}
.jf-x {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.jf-x:hover {
  background: var(--card2);
}
.sb-acoes {
  display: flex;
  gap: 6px;
}
.sb-busca {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.sb-busca:hover {
  border-color: var(--line2);
  color: var(--ink);
}
.sb-busca > span {
  flex: 1;
}
.sb-acoes kbd,
.sb-criar kbd {
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line2);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.sb-novo {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: var(--ac);
  color: var(--on-accent, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--acg);
}
.sb-criar-fundo {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.sb-criar {
  position: fixed;
  left: 216px;
  top: 112px;
  z-index: 61;
  width: 300px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #101b44;
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(3, 8, 20, 0.35);
  animation: sb-criar-in 0.14s ease-out;
}
:root[data-tema='escuro'] .sb-criar {
  background: #0a1330;
}
@keyframes sb-criar-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.sb-criar-t {
  padding: 6px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sb-criar > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sb-criar > button:hover,
.sb-criar > button:focus-visible {
  background: var(--card2);
}
.sb-criar-ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-criar-ic.gr { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.sb-criar-ic.am { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.sb-criar-ic.ac { background: rgba(232, 185, 35, 0.16); color: #f2ce55; }
.sb-criar-ic.pu { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.sb-criar-ic.rd { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.sb-criar-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sb-criar-tx b {
  font-size: 13.5px;
  font-weight: 600;
}
.sb-criar-tx small {
  font-size: 11.5px;
  color: var(--muted);
}
.gt-fundo {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 18, 32, 0.45);
}
:root[data-tema='escuro'] .gt-fundo {
  background: rgba(2, 4, 10, 0.72);
}
.gt {
  width: 760px;
  max-width: 100%;
  max-height: min(840px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.4);
}
.gt-topo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 16px;
}
.gt-ic {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--ac);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--acg);
}
.gt-topo > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gt-topo h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.gt-topo > div > span {
  font-size: 13px;
  color: var(--muted);
}
.gt-x {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gt-corpo {
  flex: 1;
  overflow: auto;
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gt-origens {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gt-origens legend {
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.gt-origens label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.gt-origens label:focus-within {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.gt-origens input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.gt-tile {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gt-origens label > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gt-origens b {
  font-size: 13px;
  font-weight: 700;
}
.gt-origens small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.gt-caixa {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.gt-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gt-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gt-campo > span,
.gt-campo > label {
  font-size: 13px;
  font-weight: 600;
}
.gt-campo > small {
  font-size: 11.5px;
  color: var(--muted);
}
.gt-campo select,
.gt-campo input {
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.gt-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.gt-seg button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gt-frase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink2);
}
.gt-frase input {
  width: 64px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.gt-dias {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gt-dias button {
  width: 48px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gt-regras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gt-regras label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.gt-regras input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ac);
}
.gt-regras label > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gt-regras b {
  font-weight: 600;
}
.gt-regras small {
  font-size: 12px;
  color: var(--muted);
}
.gt-previa {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--acs);
  box-shadow: inset 0 0 0 1px var(--acg);
  color: var(--aci);
}
.gt-previa > svg {
  flex: none;
}
.gt-previa span {
  font-size: 14px;
  color: var(--ink);
}
.gt-pe {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
.gt-origens,
.gt-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sb-busca.campo {
  cursor: text;
}
.sb-busca.campo > span.so-leitor {
  flex: none;
}
.sb-busca.campo input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.sb-busca.campo input::placeholder {
  color: var(--muted);
}
.sb-busca.campo:focus-within {
  border-color: var(--ac);
}
.lc-topo {
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-titulo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lc-titulo h1 {
  margin: 0;
  flex: 1;
  font-size: 19px;
  font-weight: 700;
}
.lc-titulo span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.lc-adm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.lc-adm-l {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lc-adm-l span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-adm-l b {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--aci);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-avs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 8px 2px 2px;
  margin: -4px -4px 0 0;
  scrollbar-width: thin;
}
.lc-avs > button {
  flex: none;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.lc-avs small {
  max-width: 44px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-av {
  position: relative;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: box-shadow 0.15s;
}
.lc-av.todos {
  background: var(--ac);
  color: #fff;
}
.lc-av.balcao {
  background: var(--card);
  color: var(--ink2);
  border: 1.5px dashed var(--line2);
}
.lc-av.az,
.lc-iav.az {
  background: var(--acs);
  color: var(--aci);
}
.lc-av.rx,
.lc-iav.rx {
  background: var(--pus);
  color: var(--pui);
}
.lc-av.vd,
.lc-iav.vd {
  background: var(--grs);
  color: var(--gri);
}
.lc-av.te,
.lc-iav.te {
  background: var(--tes, var(--grs));
  color: var(--tei, var(--gri));
}
.lc-st {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card2);
}
.lc-st.online {
  background: var(--gr);
}
.lc-st.almoco {
  background: var(--am);
}
.lc-st.ausente {
  background: #94a3b8;
}
.lc-n {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 17px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--card2);
  background: var(--ink);
  color: var(--card);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lc-data {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lc-data > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lc-data small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-data b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-abas {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.lc-abas button {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 4px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.lc-abas button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-abas button > svg {
  flex: none;
}
.lc-abas i {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--card2);
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lc-donos {
  display: flex;
  gap: 6px;
}
.lc-donos button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lc-lista {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.lc-buscando {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--acs);
  color: var(--aci);
  font-size: 12px;
  font-weight: 600;
}
.lc-buscando button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
}
.lc-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 5px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
}
.lc-sec.rx {
  color: var(--pui);
}
.lc-sec b {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}
.lc-sec small {
  font-size: 11px;
  color: var(--muted);
}
.lc-item {
  display: flex;
  gap: 10px;
  margin: 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lc-item:hover {
  background: var(--card2);
}
.lc-item.fechada {
  opacity: 0.72;
}
.lc-iav {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.lc-itx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lc-l1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-l1 > svg {
  flex: none;
  color: var(--muted);
}
.lc-l1 b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-l1 small {
  font-size: 11px;
  color: var(--muted);
}
.lc-l1 small.nova {
  color: var(--gri);
  font-weight: 700;
}
.lc-l2 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lc-l2 small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-etapa {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--card2);
  color: var(--ink2);
  font-size: 10px;
  font-weight: 700;
}
.lc-etapa.e-az {
  background: var(--acs);
  color: var(--aci);
}
.lc-etapa.e-rx {
  background: var(--pus);
  color: var(--pui);
}
.lc-etapa.e-vd {
  background: var(--grs);
  color: var(--gri);
}
.lc-etapa.e-vm {
  background: var(--rds);
  color: var(--rdi);
}
.lc-etapa.e-am {
  background: var(--ams);
  color: var(--ami);
}
.lc-etapa.e-te {
  background: var(--tes, var(--grs));
  color: var(--tei, var(--gri));
}
.lc-l3 {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-nl {
  align-self: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--gr);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lc-dica {
  padding: 10px 16px 0;
  font-size: 11px;
  color: var(--muted);
}
.lc-cal-fundo {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 11, 20, 0.45);
}
.lc-cal {
  width: 620px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.4);
}
.lc-cal > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.lc-cal-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lc-cal > header > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lc-cal h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.lc-cal header small {
  font-size: 12px;
  color: var(--muted);
}
.lc-cal header > button,
.lc-cal-nav button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lc-cal-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
.lc-cal-corpo {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}
.lc-cal-atalhos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: var(--card2);
}
.lc-cal-atalhos button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lc-cal-mes {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lc-cal-nav b {
  flex: 1;
  text-align: center;
  font-size: 14px;
}
.lc-cal-sem,
.lc-cal-dias {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.lc-cal-sem span {
  padding: 2px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.lc-cal-dias button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lc-cal-dias button:hover:not(:disabled) {
  background: var(--card2);
}
.lc-cal-dias button.hoje {
  box-shadow: inset 0 0 0 1.5px var(--ac);
}
.lc-cal-dias button.meio {
  background: var(--acs);
  color: var(--aci);
  border-radius: 0;
}
.lc-cal-dias button.ponta {
  background: var(--ac);
  color: #fff;
}
.lc-cal-dias button:disabled {
  color: var(--muted);
  opacity: 0.4;
  cursor: default;
}
.lc-cal-dica {
  font-size: 11px;
  color: var(--muted);
}
.lc-cal > footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--card2);
}
.lc-cal > footer > span {
  flex: 1;
}
.fl {
  padding: 18px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.fl-topo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fl-topo > div {
  flex: 1;
  min-width: 0;
}
.fl-trilha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.fl-trilha b {
  color: var(--ink);
  font-size: 15px;
}
.fl-topo p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.fl-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.fl-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
  min-width: 0;
}
.fl-kpis > div:first-child {
  padding-left: 0;
}
.fl-kpis > div + div {
  border-left: 1px solid var(--line);
}
.fl-kpis > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fl-kpis b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fl-kpis small {
  font-size: 12.5px;
  color: var(--muted);
}
.fl-lista {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.fl-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.fl-barra .busca {
  flex: 1 1 260px;
  max-width: 420px;
}
.fl-abas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card2);
}
.fl-abas button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fl-abas button span {
  font-weight: 500;
  opacity: 0.75;
}
.fl-tabela {
  overflow-x: auto;
}
.fl-tabela table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}
.fl-tabela th {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.fl-tabela td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.fl-tabela tr:last-child td {
  border-bottom: 0;
}
.fl-tabela tbody tr:hover td {
  background: var(--card2);
}
.fl-tabela .num {
  text-align: right;
  white-space: nowrap;
}
.fl-nome {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fl-nome > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fl-nome a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.fl-nome a:hover {
  color: var(--aci);
}
.fl-nome small {
  font-size: 12px;
  color: var(--muted);
}
.fl-quando {
  color: var(--ink2);
  white-space: nowrap;
}
.fl-chave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.fl-chave input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fl-chave > span {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: var(--line2);
  transition: background 0.15s;
}
.fl-chave > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: left 0.15s;
}
.fl-chave input:focus-visible + span {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.fl-chave b {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.fl-acoes {
  position: relative;
  display: inline-block;
}
.fl-acoes > button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fl-acoes-fundo {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.fl-acoes-pop {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 41;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 36px rgba(3, 8, 20, 0.22);
  text-align: left;
}
.fl-acoes-pop a,
.fl-acoes-pop button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.fl-acoes-pop a:hover,
.fl-acoes-pop button:hover {
  background: var(--card2);
}
@media (max-width: 1000px) {
.fl-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }
.fl-kpis > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
.ed-painel-abas {
  display: flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--card2);
}
.ed-painel-abas button {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.ed-painel-abas button span {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--acs);
  color: var(--aci);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-banco {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--acg);
  background: var(--acs);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ed-banco > span:first-child {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--ac);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-banco > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ed-banco b {
  font-size: 12.5px;
}
.ed-banco small {
  font-size: 11px;
  color: var(--muted);
}
.ed-dados-txt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.ed-novo {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--grs);
  color: var(--gri);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ed-rodape {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(3, 8, 20, 0.1);
  font-size: 12px;
}
.ed-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--card2);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ed-check.aviso {
  background: var(--ams);
  color: var(--ami);
}
.ed-check.erro {
  background: var(--rds);
  color: var(--rdi);
}
.ed-agora {
  color: var(--muted);
}
.ed-pausa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  cursor: pointer;
}
.ed-pausa input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ed-pausa > span {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: var(--line2);
  transition: background 0.15s;
}
.ed-pausa > span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.ed-pausa input:checked + span {
  background: var(--ac);
}
.ed-pausa input:checked + span::after {
  left: 16px;
}
.ed-pausa input:focus-visible + span {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.ed-pausa b {
  font-weight: 600;
  color: var(--ink2);
}
.insp-cab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.insp-cab > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.insp-seg2 {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--card2);
}
.insp-seg2 button {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.insp-ferr {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--card2);
}
.insp-ferr > span {
  flex: 1;
}
.insp-ferr > button {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.insp-ferr > button:nth-child(2) {
  font-style: italic;
}
.insp-ferr > button:nth-child(3) {
  text-decoration: line-through;
}
.insp-ferr > button:nth-child(4) {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.insp-ferr > button:hover {
  background: var(--card);
}
.insp-ferr + label + textarea,
.insp-ferr ~ textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.insp-addvar {
  position: relative;
}
.insp-addvar > button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: var(--acs);
  color: var(--aci);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.insp-addvar-pop {
  position: absolute;
  right: 0;
  top: 32px;
  z-index: 20;
  min-width: 170px;
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(3, 8, 20, 0.2);
}
.insp-addvar-pop button {
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.insp-addvar-pop button:hover {
  background: var(--card2);
}
.insp-rodape {
  margin-top: 6px;
}
.insp-varsq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.insp-varsq > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.insp-varsq > div:first-child b {
  flex: 1;
  font-size: 12px;
}
.insp-varsq > div:first-child small {
  font-size: 11px;
  color: var(--muted);
}
.insp-varsg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insp-varsg > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.insp-varsg > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.insp-varsg button {
  padding: 3px 8px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink2);
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  cursor: pointer;
}
.insp-varsg button:hover {
  border-color: var(--ac);
  color: var(--aci);
}
.insp-botoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.insp-botoes > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.insp-botoes > div:first-child b {
  flex: 1;
  font-size: 12px;
}
.insp-botoes > div:first-child small {
  font-size: 11px;
  color: var(--muted);
}
.insp-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.insp-btn > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.insp-btn > div > small {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.insp-btn-x {
  width: 26px;
  height: 26px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.insp-btn-x:hover {
  background: var(--rds);
  color: var(--rdi);
}
.insp-vai {
  padding-left: 28px;
  font-size: 11px;
  color: var(--muted);
}
.insp-vai b {
  color: var(--aci);
  font-weight: 600;
}
.insp-bolha-pe {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.pp-top-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-quem {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-quem > span:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-quem b {
  font-size: 15px;
  font-weight: 700;
}
.pp-funil {
  display: grid;
  gap: 3px;
}
.pp-funil span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line2);
}
.pp-funil span.atual {
  background: var(--ac);
}
.pp-funil span.perdido {
  background: var(--rds);
}
.ct-head {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-head-ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--ams);
  color: var(--ami);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-head > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-head b {
  font-size: 18px;
}
.ct-head small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.ct-qual {
  border-right: 1px solid var(--line);
  background: var(--card2);
  padding: 18px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ct-titulo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ct-titulo h2,
.ct-cot h2 {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}
.ct-titulo small {
  font-size: 11px;
  color: var(--muted);
}
.ct-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ct-campo > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.ct-campo > span small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.ct-usos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ct-usos button {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ct-uso-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--card2);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-usos b {
  font-size: 13px;
  line-height: 1.2;
}
.ct-usos small {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--muted);
}
.ct-cidade {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
}
.ct-cidade input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.ct-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
}
.ct-seg button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.ct-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ct-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ct-entra {
  animation: ct-entra 0.2s ease;
}
@keyframes ct-entra {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.ct-salvar {
  height: 40px;
  font-weight: 700;
}
.ct-cot {
  padding: 18px 22px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ct-linha1 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 90px minmax(0, 1.3fr);
  gap: 12px;
}
.ct-linha2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
}
.ct-placa {
  max-width: 220px;
}
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ct-chips button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.ct-prot-t {
  justify-content: space-between;
}
.ct-prots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ct-prot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 11px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s;
}
.ct-prot-topo {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ct-prot-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--card2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-prot-topo > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ct-prot-topo b {
  font-size: 13px;
}
.ct-prot-topo small,
.ct-prot-trava {
  font-size: 11px;
  color: var(--muted);
}
.ct-prot-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.ct-regua {
  position: relative;
  display: grid;
}
.ct-regua-linha,
.ct-regua-fill {
  position: absolute;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--line2);
}
.ct-regua-fill {
  background: var(--ac);
  transition: width 0.25s ease;
}
.ct-regua button {
  position: relative;
  min-width: 0;
  padding: 0 1px 1px;
  border: 0;
  background: none;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ct-regua button > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  background: var(--card);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ct-regua button.cheio > span {
  border-color: var(--ac);
  background: var(--ac);
}
.ct-regua button.atual > span {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--acs);
}
.ct-regua button small {
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-regua button.atual small {
  font-weight: 800;
  color: var(--ink);
}
.ct-checks {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink2);
}
.ct-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ct-cotar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}
.ct-cotar button {
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 12px;
  background: var(--ac);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px var(--acg);
  cursor: pointer;
  animation: ct-pulso 2.4s ease-in-out infinite;
}
.ct-cotar small {
  font-size: 12px;
  color: var(--muted);
}
@keyframes ct-pulso {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 107, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(31, 107, 255, 0);
  }
}
.ct-cotando {
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  animation: ct-entra 0.25s ease;
}
.ct-estrada {
  position: relative;
  width: min(420px, 100%);
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--acs);
}
.ct-faixa {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 4px;
  background-image: linear-gradient(90deg, var(--ac) 0 32px, transparent 32px 64px);
  background-size: 64px 4px;
  opacity: 0.55;
  animation: ct-estrada 0.45s linear infinite;
}
.ct-carro {
  position: absolute;
  left: 50%;
  bottom: 30px;
  margin-left: -28px;
  color: var(--aci);
  animation: ct-carro 0.5s ease-in-out infinite;
}
@keyframes ct-estrada {
  to {
    background-position: -64px 0;
  }
}
@keyframes ct-carro {
  50% {
    transform: translateY(-3px);
  }
}
.ct-cotando-t {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ct-cotando-t b {
  font-size: 18px;
}
.ct-cotando-t small,
.ct-cotando-dica {
  font-size: 13px;
  color: var(--muted);
}
.ct-passos {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-passos li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  animation: ct-entra 0.25s ease both;
}
.ct-passos li > span {
  width: 22px;
  height: 22px;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--line2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-passos li.feito {
  color: var(--ink);
  font-weight: 600;
}
.ct-passos li.feito > span {
  border: 0;
  background: var(--gr);
  color: #fff;
}
.ct-passos li.agora {
  color: var(--aci);
  font-weight: 700;
}
.ct-passos li.agora > span,
.ct-giro {
  border: 3px solid var(--acs);
  border-top-color: var(--ac);
  animation: ct-giro 0.8s linear infinite;
}
.ct-giro {
  display: inline-block;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
}
@keyframes ct-giro {
  to {
    transform: rotate(360deg);
  }
}
.ct-res {
  padding: 18px 22px;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-content: start;
  animation: ct-entra 0.35s ease;
}
.ct-res-esq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ct-res-t {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-res-t > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gr);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-res-t h2 {
  margin: 0;
  font-size: 16px;
}
.ct-res-aviso {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ams);
  color: var(--ami);
  font-size: 12px;
  font-weight: 600;
}
.ct-res-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ct-res-dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.ct-res-dl dt {
  font-size: 11px;
  color: var(--muted);
}
.ct-res-dl dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.ct-res-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ct-mandar {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--gr);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ct-mandar:disabled {
  opacity: 0.6;
  cursor: default;
}
.ct-res-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ct-res-img {
  min-height: 440px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-res-img img {
  display: block;
  width: 100%;
  height: auto;
}
.ct-res-gerando {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.ct-res-fig figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.ct-res-fig figcaption a,
.ct-res-fig figcaption button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--aci);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
@media (max-width: 1100px) {
.ct-res {
    grid-template-columns: minmax(0, 1fr);
  }
}
.jf-iniciar {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--ac);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--acg);
  transition: transform 0.12s, box-shadow 0.12s;
}
.jf-iniciar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px var(--acg);
}
.jf-iniciar > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
}
.jf-iniciar span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.jf-iniciar b {
  font-size: 13px;
}
.jf-iniciar small {
  font-size: 11px;
  opacity: 0.85;
}
.pp-et {
  position: relative;
}
.pp-et-btn {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pu), var(--ac));
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--acg);
}
.pp-et-btn > span {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}
.pp-et-btn > small {
  font-size: 11px;
  opacity: 0.8;
}
.pp-et-fundo {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.pp-et-lista {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  z-index: 41;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(3, 8, 20, 0.3);
  animation: ct-entra 0.15s ease;
}
.pp-et-lista button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.pp-et-lista button:hover {
  background: var(--card2);
}
.pp-et-lista button.passou {
  color: var(--muted);
}
.pp-et-lista i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}
.pp-et-lista button > span {
  flex: 1;
}
.pp-relbtn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.pp-doc-msg {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-giro {
  width: 14px;
  height: 14px;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(31, 107, 255, 0.25);
  border-top-color: #1f6bff;
  animation: pp-giro 0.8s linear infinite;
}
@keyframes pp-giro {
  to {
    transform: rotate(360deg);
  }
}
.pp-doc-esqueleto {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-doc-esqueleto span {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.12));
  background-size: 200% 100%;
  animation: pp-brilho 1.2s ease-in-out infinite;
}
@keyframes pp-brilho {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.pp-papel-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b1220;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(3, 8, 20, 0.3);
}
.lc-filtros {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lc-etapas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.lc-etapas-t {
  display: flex;
  align-items: center;
}
.lc-etapas-t small {
  flex: 1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-etapas-t button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--aci);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.lc-etapas-l {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lc-etapas-l button {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.lc-quando {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--card);
}
.lc-quando button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
@keyframes modal-fundo {
  from {
    opacity: 0;
  }
}
@keyframes modal-entra {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.lc-filtros {
  flex-direction: row;
  gap: 6px;
}
.lc-filtros > .lc-data,
.lc-etapa-f {
  flex: 1 1 0;
  min-width: 0;
}
.lc-etapa-f {
  position: relative;
}
.lc-etapa-f > .lc-data {
  width: 100%;
}
.lc-pop-fundo {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.lc-etapa-f .lc-etapas {
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 41;
  width: 260px;
  padding: 10px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(3, 8, 20, 0.35);
  animation: ct-entra 0.15s ease;
}
.lc-etapa-f .lc-etapas-l {
  flex-direction: column;
  gap: 2px;
}
.lc-etapa-f .lc-etapas-l label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
}
.lc-etapa-f .lc-etapas-l label:hover {
  background: var(--card2);
}
.lc-etapa-f .lc-etapas-l input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.lc-etapa-f .lc-etapas-l i {
  width: 16px;
  height: 16px;
  flex: none;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1.5px solid var(--line2);
}
.lc-etapa-f .lc-etapas-l input:focus-visible + i {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.lc-etapas-dica {
  font-size: 11px;
  color: var(--muted);
}
.ct-linha1 {
  grid-template-columns: minmax(0, 1fr) 200px;
}
.ct-veic {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--grs);
  color: var(--gri);
  font-size: 12.5px;
  font-weight: 600;
}
.ct-veic small {
  font-weight: 500;
  opacity: 0.85;
}
.ct-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink2);
}
.ct-local.falta {
  color: var(--ami);
}
.ct-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.ct-auto.indo {
  color: var(--aci);
}
.ct-combo {
  position: relative;
}
.ct-combo-campo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
}
.ct-combo-campo:focus-within {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--acs);
}
.ct-combo-campo input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.ct-combo-lista {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(3, 8, 20, 0.3);
}
.ct-combo-lista button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ct-combo-lista button.ativo,
.ct-combo-lista button:hover {
  background: var(--card2);
}
.ct-combo-lista button > span {
  flex: 1;
}
.ct-combo-lista small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.vd-head,
.lk-head {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.vd-head-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--grs);
  color: var(--gri);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vd-head > span:last-child,
.lk-head > span:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vd-head b,
.lk-head b {
  font-size: 18px;
  line-height: 1.25;
}
.vd-head small,
.lk-head small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
.vd {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vd-feitos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vd-feitos span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--grs);
  color: var(--gri);
  font-size: 12px;
  font-weight: 600;
}
.vd-grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vd-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vd-campo.largo {
  grid-column: 1 / -1;
}
.vd-campo > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.vd-placa {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vd-seg {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.vd-seg button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.vd-arquivo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--card2);
  cursor: pointer;
}
.vd-arquivo:hover {
  border-color: var(--ac);
}
.vd-arquivo-ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vd-arquivo > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vd-arquivo b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-arquivo small {
  font-size: 11px;
  color: var(--muted);
}
.vd-arquivo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.vd-aviso {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ams);
  color: var(--ami);
  font-size: 12px;
  line-height: 1.45;
}
.vd-aviso > svg {
  flex: none;
  margin-top: 1px;
}
.lk-head-ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--acs);
  color: var(--aci);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.lk-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lk-lido {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--grs);
  color: var(--gri);
  font-size: 12px;
  font-weight: 600;
}
.lk-lido.erro {
  background: var(--rds);
  color: var(--rdi);
}
.lk-gerar {
  align-self: flex-start;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ac);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px var(--acg);
  cursor: pointer;
}
.lk-gerar:disabled {
  opacity: 0.75;
  cursor: default;
}
.lk-gerar .pp-giro {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
.lk-pronto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.lk-pronto > span {
  font-size: 13px;
}
.lk-pronto > span small {
  color: var(--muted);
}
.lk-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lk-acoes .ct-mandar {
  height: 40px;
  border-radius: 10px;
}
.lk-doc {
  position: relative;
  margin: 0;
  height: 420px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lk-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.lk-gerando {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink2);
}
.lk-giro {
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid var(--acs);
  border-top-color: var(--ac);
  animation: pp-giro 0.8s linear infinite;
}
.lk-barra {
  position: relative;
  width: 160px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line2);
}
.lk-barra span {
  position: absolute;
  inset: 0;
  background: var(--ac);
  animation: lk-barra 1s ease-in-out infinite;
}
@keyframes lk-barra {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.lk-img {
  position: absolute;
  inset: 0;
  display: block;
  overflow: auto;
  animation: ct-entra 0.35s ease;
}
.lk-img img {
  display: block;
  width: 100%;
  height: auto;
}
.lk-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  pointer-events: none;
  animation: lk-flash 0.6s ease forwards;
}
@keyframes lk-flash {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0;
  }
}
@media (max-width: 860px) {
.lk {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dc-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dc-head b {
  font-size: 18px;
}
.dc-head small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.dc {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
}
.dc-esq {
  padding: 18px 22px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dc-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-sec h2 {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}
.dc-sec-t {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ams);
  color: var(--ami);
  font-size: 11px;
  font-weight: 700;
}
.dc-cobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dc-cobs label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.dc-cobs label.oculta {
  border-style: dashed;
  border-color: var(--line2);
  background: var(--card2);
  color: var(--muted);
}
.dc-cobs input,
.dc-outros input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ac);
}
.dc-cobs label > span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.dc-cobs small {
  font-size: 11px;
  color: var(--muted);
}
.dc-terc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dc-terc > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.dc-terc .ct-seg {
  flex: 1;
  max-width: 380px;
}
.dc-prot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dc-orig {
  padding-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ami);
}
.dc-dica {
  font-size: 11.5px;
  color: var(--ami);
}
.dc-campos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dc-campo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.dc-campo > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.dc-campo > span > span {
  flex: 1;
}
.dc-campo small {
  font-size: 11px;
  color: var(--muted);
}
.dc-olho {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dc-trav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px dashed var(--line2);
  background: var(--card2);
  font-size: 13px;
  color: var(--ink2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dc-outros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink2);
}
.dc-outros > span {
  flex-basis: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-outros label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-transform: capitalize;
}
.dc-outros small {
  text-transform: none;
  color: var(--muted);
}
.dc-papel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--card2);
}
.dc-papel-t {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-papel-img {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(3, 8, 20, 0.14);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.dc-papel-img img {
  display: block;
  width: 100%;
  height: auto;
}
.dc-papel-img.atualizando img {
  opacity: 0.55;
}
.dc-papel-img .lk-gerando {
  margin: auto;
  color: #334155;
}
@media (max-width: 1100px) {
.dc {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }
.dc-papel {
    min-height: 480px;
  }
}
.ag-ic {
  width: 26px;
  height: 26px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ag-ic:hover {
  background: var(--card2);
  color: var(--ink);
}
.ag-renomear {
  flex: 1;
  min-width: 0;
  height: 32px;
}
.ag-enviar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ct-previa {
  position: relative;
  align-self: stretch;
  width: 100%;
  margin: 14px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  color: #0b1220;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 6px 18px rgba(3, 8, 20, 0.12);
  animation: ct-entra 0.3s ease;
}
.ct-previa-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1a56db;
  font-size: 10.5px;
  font-weight: 700;
}
.ct-previa-tag button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.ct-previa-tag .ct-giro {
  width: 11px;
  height: 11px;
  border-width: 2px;
}
.ct-previa-marca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ct-previa-marca > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1f6bff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ct-previa-marca b {
  font-size: 14px;
}
.ct-previa > small {
  font-size: 12px;
  color: #64748b;
}
.ct-previa > i {
  display: block;
  height: 1px;
  background: #e5e9f0;
}
.ct-previa-l {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.ct-previa-l > span {
  color: #64748b;
}
.ct-previa-mens {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ct-previa-mens b {
  font-size: 26px;
}
.ct-previa-mens small {
  font-size: 12px;
  color: #64748b;
}
.ct-res-oficial {
  display: block;
  width: 100%;
  animation: ct-entra 0.35s ease;
}
.ct-res-img:has(.ct-previa) {
  align-items: stretch;
}
.pa-cartao {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
}
.pa-topo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-placa {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #0b1220;
  border-radius: 5px;
  background: #fff;
}
.pa-placa small {
  padding: 1px 0;
  background: #1f6bff;
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}
.pa-placa b {
  padding: 1px 7px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #0b1220;
}
.pa-veic {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pa-veic b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pa-veic small {
  font-size: 11px;
  color: var(--muted);
}
.pa-st {
  flex: none;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ams);
  color: var(--ami);
  font-size: 11px;
  font-weight: 700;
}
.pa-st.cz {
  background: var(--card2);
  color: var(--muted);
}
.pa-selos {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pa-selos span {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--acs);
  color: var(--aci);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.pa-mens {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pa-mens b {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.pa-mens small {
  font-size: 12px;
  color: var(--muted);
}
.pa-refeita {
  font-size: 11px;
  color: var(--muted);
}

/* foto de perfil (numeros QR) por cima das iniciais, 10/11/2026 */
.avatar, .lc-iav, .rel-av { position: relative; overflow: hidden; }
.foto-contato { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---- Reativacao Central (companhia Reativacao): PainelReativacao ---- */
.ra .pa-abas button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; font-size: 12px; }
.ra-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rd); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ra-aviso { padding: 8px 10px; border-radius: 8px; background: var(--ams); color: var(--ami); font-size: 12px; line-height: 1.4; }
.ra-aviso a { color: inherit; font-weight: 700; }
.ra-linha { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--ink2); }
.ra-linha small, .ra-lista small { color: var(--muted); font-size: 11px; }
.ra-chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.ra-chip.em_dia { background: var(--grs); color: var(--gri); border-color: transparent; }
.ra-chip.inadimplente { background: var(--rds); color: var(--rdi); border-color: transparent; }
.ra-chip.reativacao { background: var(--tes); color: var(--tei); border-color: transparent; }
.ra-chip.recuperacao { background: var(--ams); color: var(--ami); border-color: transparent; }
.ra-regua { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ra-regua li { padding: 6px 0 0; border-top: 4px solid var(--line); font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-regua li.feito { border-top-color: var(--te); }
.ra-regua li.on { border-top-color: var(--te); color: var(--tei); font-weight: 800; }
.ra-prox { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--tes); color: var(--tei); font-size: 12px; line-height: 1.4; }
.ra-prox b { font-size: 13px; }
.ra-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ra-lista > li { color: var(--ink2); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); }
.ra-lista > li.nota { border-left: 3px solid var(--te); }
.ra-lista > li.feito { opacity: 0.6; }
.ra-ult { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ra-ult small { display: block; margin-bottom: 2px; }
.ra-url { font-size: 12px !important; overflow-wrap: anywhere; }
.ra-previa { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12px; }
.ra-previa p { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px dashed var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.ra-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ra-form { display: flex; flex-direction: column; gap: 8px; }
.ra-form label { display: flex; flex-direction: column; gap: 4px; }
.ra-form label small { color: var(--muted); font-size: 11px; font-weight: 600; }
.ra-form textarea { resize: vertical; min-height: 64px; }
.ra-form .row > .input { flex: 1; min-width: 0; }

/* Reativacao · aba Zendesk: resumo clicavel, assuntos prontos, chamados com a conversa */
.zd-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.zd-resumo button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; text-align: left; }
.zd-resumo button b { font-size: 18px; line-height: 1.1; }
.zd-resumo button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.zd-resumo button.on { border-color: var(--te); box-shadow: inset 0 0 0 1px var(--te); }
.zd-resumo button.alerta b { color: var(--rd); }
.zd-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.zd-presets button { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; text-align: left; }
.zd-presets button:hover { border-color: var(--te); background: var(--tes); color: var(--tei); }
.zd-presets button span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zd-presets button b { font-size: 12px; line-height: 1.25; }
.zd-presets button small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.zd-ch { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.zd-ch.novo { border-color: var(--rd); }
.zd-ch.on { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); }
.zd-cab { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; text-align: left; }
.zd-cab > small { font-size: 11px; color: var(--muted); }
.zd-prev { font-size: 12px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zd-prev i { font-style: normal; font-weight: 700; }
.zd-conversa { display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 10px; border-top: 1px solid var(--line); background: var(--card2); }
.zd-msg { align-self: flex-end; max-width: 92%; display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.zd-msg.matriz { align-self: flex-start; }
.zd-msg small { font-size: 10.5px; color: var(--muted); }
.zd-msg p { margin: 0; padding: 7px 9px; border-radius: 10px; background: var(--tes); color: var(--tei); font-size: 12px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.zd-msg.matriz p { background: var(--card); color: var(--ink2); border: 1px solid var(--line); }
.zd-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zd-previa { flex-basis: 100%; margin: 0; padding: 7px 9px; border-radius: 8px; border: 1px dashed var(--line); background: var(--card); color: var(--ink2); font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.zd-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Reativacao no setor Relacionamento: filtro pela coluna do quadro da Central */
.rel-reat { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px 4px; }
.rel-reat button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.rel-reat button small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.rel-reat button.on { background: var(--tes); color: var(--tei); border-color: var(--te); }
.rel-reat button.on small { color: inherit; }
.rel-reat button.limpar { border-style: dashed; color: var(--muted); }
.rel-reat-et { padding: 1px 7px; border-radius: 999px; background: var(--tes); color: var(--tei); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ra-via { padding: 7px 10px; border-radius: 8px; background: var(--card2); color: var(--ink2); font-size: 11.5px; line-height: 1.4; border: 1px dashed var(--line); }

/* Reativacao: as 5 colunas do quadro da Central na lista, cada uma abre e fecha */
.rf { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 4px; }
.rf-aviso { margin: 8px 10px 0; padding: 7px 10px; border-radius: 8px; background: var(--ams); color: var(--ami); font-size: 12px; }
.rf-col { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.rf-col::before { content: ''; display: block; height: 3px; background: var(--te); }
.rf-col.c-tentando_contato::before { background: var(--ac, var(--te)); }
.rf-col.c-interesse::before { background: var(--am); }
.rf-col.c-zendesk_andamento::before { background: var(--pu, var(--te)); }
.rf-col.c-boleto_disponivel::before { background: var(--gr); }
.rf-col.c-pendente_vistoria::before { background: var(--te); }
.rf-cab { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; text-align: left; font-size: 13px; }
.rf-cab b { flex: 1; min-width: 0; }
.rf-seta { font-size: 11px; color: var(--muted); transition: transform 0.15s; }
.rf-col.on .rf-seta { transform: rotate(90deg); }
.rf-qtd { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--card2); color: var(--ink2); font-size: 11px; font-weight: 700; text-align: center; }
.rf-sem { font-size: 10.5px; font-weight: 700; color: var(--rd); white-space: nowrap; }
.rf-lista { list-style: none; margin: 0; padding: 0 4px 6px; max-height: 280px; overflow-y: auto; border-top: 1px solid var(--line); }
.rf-vazio { padding: 8px 8px 2px; font-size: 12px; color: var(--muted); }
.rf-p { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 7px 8px; margin-top: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink2); cursor: pointer; text-align: left; }
.rf-p:hover { background: var(--card2); }
.rf-p.on { background: var(--tes); color: var(--tei); }
.rf-nome { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rf-info small { font-size: 10.5px; color: var(--muted); }
.rf-info small.rf-nova { color: var(--rd); font-weight: 700; }

/* Reativacao · blocos em sanfona: um aberto por vez, animado, com icone */
.rf { padding-bottom: 10px; }
.rf-col { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.rf-col.on { border-color: var(--line2, var(--line)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07); }
.rf-cab { padding: 9px 10px; gap: 9px; }
.rf-cab:hover .rf-ic { transform: scale(1.06); }
.rf-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tes); color: var(--tei); transition: transform 0.2s ease; }
.rf-col.c-tentando_contato .rf-ic { background: var(--acs, var(--tes)); color: var(--aci, var(--tei)); }
.rf-col.c-interesse .rf-ic { background: var(--ams); color: var(--ami); }
.rf-col.c-zendesk_andamento .rf-ic { background: var(--pus, var(--tes)); color: var(--pui, var(--tei)); }
.rf-col.c-boleto_disponivel .rf-ic { background: var(--grs); color: var(--gri); }
.rf-col.c-pendente_vistoria .rf-ic { background: var(--tes); color: var(--tei); }
.rf-col.c-outras::before { background: var(--line2, var(--line)); }
.rf-col.c-outras .rf-ic { background: var(--card2); color: var(--ink2); }
.rf-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rf-tit b { font-size: 13px; }
.rf-tit small { font-size: 10.5px; color: var(--muted); }
.rf-nl-t { color: var(--gr); font-weight: 700; }
.rf-seta { display: grid; place-items: center; color: var(--muted); transition: transform 0.28s ease; }
.rf-col.on .rf-seta { transform: rotate(180deg); }
.rf-corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.rf-col.on .rf-corpo { grid-template-rows: 1fr; }
.rf-corpo > .rf-lista { min-height: 0; overflow: hidden; border-top: 0; max-height: none; padding: 0 4px; opacity: 0; transform: translateY(-4px); transition: opacity 0.22s ease, transform 0.25s ease, padding 0.3s ease; }
.rf-col.on .rf-corpo > .rf-lista { overflow-y: auto; max-height: 420px; padding: 2px 4px 6px; opacity: 1; transform: none; border-top: 1px solid var(--line); }
.rf-p { position: relative; padding-right: 30px; }
.rf-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rf-l1 .rf-nome { flex: 1; min-width: 0; }
.rf-hora { flex: none; font-size: 10.5px; color: var(--muted); }
.rf-hora.nova { color: var(--gr); font-weight: 700; }
.rf-ult { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-nl { position: absolute; right: 8px; bottom: 9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gr); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) {
  .rf-corpo, .rf-corpo > .rf-lista, .rf-seta, .rf-ic, .rf-col { transition: none; }
}

/* Reativacao · blocos: foto de perfil (ou iniciais) ao lado de cada pessoa */
.rf-p { flex-direction: row; align-items: center; gap: 9px; }
.rf-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rf-av { position: relative; overflow: hidden; flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; background: var(--acs); color: var(--aci); }
.rf-av.t1 { background: var(--pus); color: var(--pui); }
.rf-av.t2 { background: var(--grs); color: var(--gri); }
.rf-av.t3 { background: var(--ams); color: var(--ami); }

/* Reativacao · regua do quadro (6 colunas) e a coluna de agora */
.ra-regua.q { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ra-chip.col-tentando_contato, .ra-chip.col-contato_feito { background: var(--acs, var(--tes)); color: var(--aci, var(--tei)); border-color: transparent; }
.ra-chip.col-interesse, .ra-chip.col-lembretes { background: var(--ams); color: var(--ami); border-color: transparent; }
.ra-chip.col-zendesk_andamento { background: var(--pus, var(--tes)); color: var(--pui, var(--tei)); border-color: transparent; }
.ra-chip.col-boleto_disponivel, .ra-chip.col-reativados { background: var(--grs); color: var(--gri); border-color: transparent; }
.ra-chip.col-pendente_vistoria { background: var(--tes); color: var(--tei); border-color: transparent; }
.ra-chip.col-sem_interesse { background: var(--rds); color: var(--rdi); border-color: transparent; }

/* Reativacao · lista: quando o quadro foi lido + atualizar; retorno marcado */
.rf-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.rf-topo small { font-size: 10.5px; color: var(--muted); }
.rf-topo button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 11px; font-weight: 600; cursor: pointer; }
.rf-topo button:disabled { opacity: 0.6; cursor: progress; }
.rf-ret { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; background: var(--acs, var(--card2)); color: var(--aci, var(--ink2)); font-size: 10px; font-weight: 700; }
.rf-ret.atrasado { background: var(--rds); color: var(--rdi); }

/* Reativacao · follow-up */
.fu-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fu-r { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s; }
.fu-r:hover { background: var(--card2); }
.fu-r.on { border-color: var(--te); background: var(--tes); color: var(--tei); }
.fu-r.r-sem_interesse.on { border-color: var(--rd); background: var(--rds); color: var(--rdi); }
.fu-r.r-interesse.on, .fu-r.r-lembretes.on { border-color: var(--am); background: var(--ams); color: var(--ami); }
.fu-form { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--card2); }
.fu-atalhos { display: flex; flex-wrap: wrap; gap: 5px; }
.fu-atalhos button { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 11px; font-weight: 600; cursor: pointer; }
.fu-atalhos button.on { border-color: var(--te); background: var(--tes); color: var(--tei); }
.fu-prox { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--tes); color: var(--tei); }
.fu-prox span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fu-prox small { font-size: 11px; opacity: 0.85; }
.fu-prox.atrasado { background: var(--rds); color: var(--rdi); }
.fu-lemb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ink2); }
.fu-hist { display: flex; flex-direction: column; gap: 10px; }
.fu-dia-t { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.fu-dia ul { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fu-h { display: flex; gap: 8px; align-items: flex-start; margin-left: -13px; }
.fu-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--ink2); border: 2px solid var(--card); }
.fu-h.nota .fu-ic { background: var(--ams); color: var(--ami); }
.fu-h.lembrete .fu-ic { background: var(--acs, var(--tes)); color: var(--aci, var(--tei)); }
.fu-h p { margin: 0; font-size: 12px; color: var(--ink2); line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.fu-h small { font-size: 10.5px; color: var(--muted); }

/* Reativacao · fila do dia (bloco "Hoje") e motivos */
.rf-col.c-hoje::before { background: var(--rd); }
.rf-col.c-hoje .rf-ic { background: var(--rds); color: var(--rdi); }
.rf-mot { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px; background: var(--card2); color: var(--ink2); font-size: 10px; font-weight: 700; }
.rf-mot.urg { background: var(--rds); color: var(--rdi); }

/* Reativacao · bloco Reativacao fria (cadencia: 3 dias sem resposta) */
.rf-col.c-fria::before { background: var(--muted); }
.rf-col.c-fria .rf-ic { background: var(--card2); color: var(--muted); }

/* IA da Reativacao · o robo que anda pela conversa e a sugestao em cima da caixa */
.iar { position: relative; margin-bottom: 8px; }
.iar-palco { position: absolute; left: 0; right: 0; bottom: calc(100% + 18px); height: 120px; pointer-events: none; z-index: 5; }
.iar-ator { position: absolute; bottom: 0; left: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: left 0.6s ease; }
.iar-palco.andando .iar-ator { animation: iar-anda 9s ease-in-out infinite; }
.iar-palco:not(.andando) .iar-ator { left: calc(100% - 120px); }
@keyframes iar-anda {
  0% { left: 8px; }
  45% { left: calc(100% - 130px); }
  50% { left: calc(100% - 130px); }
  95% { left: 8px; }
  100% { left: 8px; }
}
.iar-robo { width: 54px; height: 61px; overflow: visible; filter: drop-shadow(0 4px 6px rgba(15, 29, 58, 0.25)); }
.iar-cabeca, .iar-corpo { fill: #1b4fa2; }
.iar-visor { fill: #0f1d3a; }
.iar-olhos circle { fill: #7ef9ff; transform-origin: center; transform-box: fill-box; animation: iar-pisca 3.4s infinite; }
.iar-antena { stroke: #1b4fa2; stroke-width: 3; stroke-linecap: round; }
.iar-luz { fill: #ffd23f; }
.iar-braco, .iar-perna { fill: #2f6fd6; transform-box: fill-box; }
.iar-braco.e { transform-origin: right center; }
.iar-braco.d { transform-origin: left center; }
.iar-perna { transform-origin: top center; }
@keyframes iar-pisca { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
/* andando: balanca, mexe bracos e pernas, a antena pisca */
.iar-palco.andando .iar-robo { animation: iar-balanca 0.5s ease-in-out infinite alternate; }
.iar-palco.andando .iar-braco.e { animation: iar-braco 0.5s ease-in-out infinite alternate; }
.iar-palco.andando .iar-braco.d { animation: iar-braco 0.5s ease-in-out infinite alternate-reverse; }
.iar-palco.andando .iar-perna.e { animation: iar-perna 0.5s ease-in-out infinite alternate; }
.iar-palco.andando .iar-perna.d { animation: iar-perna 0.5s ease-in-out infinite alternate-reverse; }
.iar-palco.andando .iar-luz { animation: iar-luz 0.8s steps(2) infinite; }
@keyframes iar-balanca { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5px) rotate(3deg); } }
@keyframes iar-braco { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
@keyframes iar-perna { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes iar-luz { 0% { fill: #ffd23f; } 100% { fill: #ff7a59; } }
/* escrevendo: o visor "digita" */
.iar-robo.e-escrevendo .iar-visor { animation: iar-visor 0.7s ease-in-out infinite alternate; }
@keyframes iar-visor { from { fill: #0f1d3a; } to { fill: #1d3d7a; } }
/* pronto: pula de alegria; erro: treme */
.iar-robo.e-pronto { animation: iar-pula 0.6s ease-out 3; }
.iar-robo.e-pronto .iar-braco.e { transform: rotate(-60deg); }
.iar-robo.e-pronto .iar-braco.d { transform: rotate(60deg); }
.iar-robo.e-erro { animation: iar-treme 0.4s ease-in-out 3; }
.iar-robo.e-erro .iar-olhos circle { fill: #ff8a8a; }
@keyframes iar-pula { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }
@keyframes iar-treme { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* o balao do que ela esta fazendo */
.iar-fala { max-width: 240px; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--card); color: var(--ink2); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.iar-fala.erro { white-space: normal; background: var(--rds); color: var(--rdi); border-color: transparent; }
.iar-pontos { display: inline-flex; gap: 3px; }
.iar-pontos i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: iar-ponto 1s infinite; }
.iar-pontos i:nth-child(2) { animation-delay: 0.15s; }
.iar-pontos i:nth-child(3) { animation-delay: 0.3s; }
@keyframes iar-ponto { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
/* sugestao */
.iar-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.iar-mini .iar-robo { width: 20px; height: 23px; filter: none; }
.iar-pedir { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px dashed var(--line); background: var(--card); color: var(--ink2); font-size: 12px; font-weight: 600; cursor: pointer; }
.iar-pedir:hover { border-color: #1b4fa2; color: #1b4fa2; }
.iar-pedir:disabled { opacity: 0.7; cursor: progress; }
.iar-card { padding: 9px 11px; border-radius: 12px; border: 1px solid #b9cdf0; background: linear-gradient(180deg, rgba(27, 79, 162, 0.07), transparent), var(--card); animation: iar-entra 0.35s ease-out; }
.iar-card-t { display: flex; align-items: center; gap: 6px; }
.iar-card-t b { font-size: 12.5px; color: var(--ink2); }
.iar-card-t small { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.iar-card p { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; }
.iar-porque { display: block; font-size: 11px; color: var(--muted); font-style: italic; }
.iar-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
@keyframes iar-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .iar-palco.andando .iar-ator, .iar-robo, .iar-braco, .iar-perna, .iar-luz, .iar-olhos circle, .iar-card { animation: none !important; }
}

/* IA · o que ela fez e quanto custou */
.iau { display: flex; flex-direction: column; gap: 12px; }
.iau-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.iau-tot .card { display: flex; flex-direction: column; gap: 3px; }
.iau-tot small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.iau-tot b { font-size: 22px; color: var(--ink2); }
.iau-tot span { font-size: 11.5px; color: var(--muted); }
.iau-meio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 900px) { .iau-meio { grid-template-columns: 1fr; } }
.iau-horas { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 130px; margin-top: 10px; align-items: end; }
.iau-horas div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.iau-horas i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #1b4fa2; min-height: 0; }
.iau-horas small { font-size: 9.5px; color: var(--muted); height: 12px; }
.iau-tab { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.iau-tab td, .iau-tab th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink2); }
.iau-tab th { font-size: 11px; color: var(--muted); font-weight: 700; }
.iau-tab td:last-child, .iau-tab th:last-child { text-align: right; white-space: nowrap; }
.iau-lista tr.erro td { background: var(--rds); }
.iau-erro { display: block; color: var(--rdi); font-size: 11px; }
.iau > .card:last-child { overflow-x: auto; }

/* Trava anti-ban · cronometro dos 45 s entre contatos novos */
.ab-relogio { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); }
.ab-relogio.conv { margin-bottom: 8px; }
.ab-relogio.conta { border-color: var(--am); background: var(--ams); color: var(--ami); }
.ab-relogio.cheio { border-color: var(--rd); background: var(--rds); color: var(--rdi); }
.ab-relogio.livre { border-color: transparent; background: var(--grs); color: var(--gri); }
.ab-anel { --p: 0%; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(currentColor var(--p), rgba(0, 0, 0, 0.08) 0); transition: background 0.9s linear; }
.ab-anel b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: inherit; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ab-relogio.conta .ab-anel b { animation: ab-tique 1s steps(1) infinite; }
@keyframes ab-tique { 50% { transform: scale(1.06); } }
.ab-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ab-txt b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ab-txt small { font-size: 10.5px; opacity: 0.8; }
.rf > .ab-relogio { margin: 0 0 2px; }
@media (prefers-reduced-motion: reduce) { .ab-anel, .ab-relogio.conta .ab-anel b { transition: none; animation: none; } }

/* Reativacao · pessoa com mais de uma placa: uma secao por placa, cada uma com as suas abas */
.rp-aviso { padding: 7px 10px; border-radius: 8px; background: var(--acs, var(--tes)); color: var(--aci, var(--tei)); font-size: 12px; font-weight: 600; }
.rp-placa { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.rp-placa.on { border-color: #b9cdf0; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06); }
.rp-cab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; text-align: left; }
.rp-cab .rp-pl { transform: scale(0.82); transform-origin: left center; margin-right: -14px; }
.rp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rp-info b { font-size: 12.5px; }
.rp-info small { font-size: 11px; color: var(--muted); }
.rp-seta { color: var(--muted); transition: transform 0.25s ease; }
.rp-placa.on .rp-seta { transform: rotate(180deg); }
.rp-corpo { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 10px; border-top: 1px solid var(--line); }
.rp-corpo > .pa-abas { margin: 0 -10px; }

/* Reativacao · pendencia na vistoria (e-mail da revistoria) */
.ra-pend { padding: 10px; border-radius: 10px; border: 1px solid var(--rd); background: var(--rds); }
.ra-pend .pa-rot { color: var(--rdi); display: inline-flex; align-items: center; gap: 5px; }
.ra-pend-o { margin: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--rdi); line-height: 1.4; }
.rf-col.c-pendencia::before { background: var(--rd); }
.rf-col.c-pendencia .rf-ic { background: var(--rds); color: var(--rdi); }

/* rolagem da ficha (12/11/2026, PKK7E33 "nao tem rolagem e fica travado"): filho de coluna flex com
   overflow:hidden encolhia ate caber e cortava o resto; nao encolhe, quem rola e o .pa-corpo */
.pa-corpo > * { flex-shrink: 0; }
.ra .pa-corpo { min-height: 0; overscroll-behavior: contain; }

/* lembrete de retorno chamativo (AlarmeRetornos) e chance de responder (12/11/2026) */
.ar { display: flex; gap: 10px; align-items: flex-start; margin: 6px 10px; padding: 9px 11px; border-radius: 12px; border: 1px solid; cursor: default; }
.ar.atrasado { background: var(--rds, #fde8e8); color: var(--rdi, #9b1c1c); border-color: var(--rd, #e02424); animation: ar-pulsa 1.6s ease-in-out infinite; }
.ar.logo { background: var(--ams, #fdf6b2); color: var(--ami, #8e4b10); border-color: var(--am, #e3a008); }
.ar-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ar-ic svg { color: var(--card, #fff); }
.ar.atrasado .ar-ic { animation: ar-sino 1.6s ease-in-out infinite; }
.ar-tx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ar-tx b { font-size: 12.5px; }
.ar-lista { display: flex; flex-wrap: wrap; gap: 5px; }
.ar-lista button { border: 1px solid currentColor; background: var(--card, #fff); color: inherit; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ar-lista button small { font-weight: 600; opacity: 0.8; }
@keyframes ar-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 36, 36, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(224, 36, 36, 0); } }
@keyframes ar-sino { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .ar.atrasado, .ar.atrasado .ar-ic { animation: none; } }
.rf-chance { display: inline-flex; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--card2); color: var(--muted); }
.rf-chance.alta { background: var(--tes); color: var(--tei); }
.rf-chance.media { background: var(--ams, var(--card2)); color: var(--ami, var(--ink2)); }

/* CARTAO DO LEAD NO GRUPO COTACAO (12/11/2026): "*Lead novo* ..." desenhado como cartao */
.cartao-lead { display: flex; flex-direction: column; gap: 4px; min-width: 270px; max-width: 360px; padding: 10px 12px; margin: 2px 0; border: 1px solid var(--line); border-left: 4px solid var(--ac); border-radius: 10px; background: var(--surface); color: var(--text); }
.cartao-lead .cl-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; }
.cartao-lead .cl-selo { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ac); }
.cartao-lead .cl-entrada { color: var(--muted); }
.cartao-lead .cl-crono { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--acs, rgba(37, 99, 235, .1)); color: var(--aci, var(--ac)); }
.cartao-lead .cl-crono.ok { background: var(--grs, rgba(22, 163, 74, .12)); color: var(--gri, var(--gr, #15803d)); }
.cartao-lead .cl-crono.alerta { background: var(--ams, rgba(217, 119, 6, .14)); color: var(--ami, #b45309); }
.cartao-lead .cl-crono.atraso { background: var(--rds, rgba(220, 38, 38, .12)); color: var(--rdi, #b91c1c); }
.cartao-lead .cl-nome { font-size: 15px; font-weight: 700; line-height: 1.25; }
.cartao-lead .cl-fone { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cartao-lead .cl-dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px 10px; margin: 6px 0 2px; }
.cartao-lead .cl-dados dt { font-size: 10px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--muted); }
.cartao-lead .cl-dados dd { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.cartao-lead .cl-dados dd.falta { font-weight: 500; font-style: italic; color: var(--muted); }
.cartao-lead .cl-iniciar { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--ac); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cartao-lead .cl-iniciar:hover { filter: brightness(1.08); }
@media (max-width: 520px) { .cartao-lead { min-width: 0; } .cartao-lead .cl-dados { grid-template-columns: 1fr 1fr; } }
/* METRICAS DO COMERCIAL POR NUMERO DE ENTRADA (painel, 12/11/2026) */
.mc-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mc-filtros .select, .mc-filtros .input { width: auto; min-width: 150px; }
.mc-aviso { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; font-size: 12px; background: var(--ams, rgba(217, 119, 6, .12)); color: var(--ami, #92400e); }
.mc-aviso.erro { background: var(--rds, rgba(220, 38, 38, .1)); color: var(--rdi, #b91c1c); }
.mc-num { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.mc-num:not(:disabled):hover { color: var(--ac); text-decoration: underline; text-underline-offset: 3px; }
.mc-num:disabled { cursor: default; }
.mc-num small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mc-resumo .mc-num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.mc-resumo span .mc-num { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.mc-tbl { margin-top: 18px; }
.mc-tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); text-align: left; }
.mc-tbl td .mc-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-cor { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--line); }
.mc-acomp td { opacity: .85; }
.mc-dias-topo { margin-top: 20px; }
.mc-dias { display: grid; gap: 4px; align-items: end; }
.mc-dia { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.mc-dia:disabled { cursor: default; }
.mc-dia > div { display: flex; flex-direction: column-reverse; justify-content: flex-start; width: 100%; max-width: 18px; height: 120px; }
.mc-dia span { display: block; width: 100%; min-height: 2px; }
.mc-dia span:last-child { border-radius: 4px 4px 0 0; }
.mc-dia b { font-size: 11px; min-height: 14px; }
.mc-dia small { font-size: 10px; color: var(--muted); }
.mc-lista td { vertical-align: top; }
.mc-lista .chip { margin-left: 6px; }
.mc-esperando { color: var(--rdi, #b91c1c); }
@media (max-width: 700px) { .mc-tbl { display: block; overflow-x: auto; } }

/* REATIVADOS DO MES (12/11/2026): placar por atendente no topo do bloco */
.rf-placar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 4px; }
.rf-placar span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--card2, #f1f5f9); color: var(--ink2, #334155); font-size: 11px; font-weight: 600; }
.rf-placar span b { color: var(--ink, #0f172a); }
.rf-placar span.top { background: #fef3c7; color: #92400e; }
.rf-placar span.top b { color: #78350f; }
.c-reativados .rf-mot.urg { background: #dcfce7; color: #166534; }

/* botao direito: separador e nota (acoes da Reativacao, 13/11/2026) */
.ctx-menu .ctx-sep { height: 1px; margin: 4px 6px; background: var(--line, #e2e8f0); }
.ctx-menu .ctx-nota { display: block; padding: 6px 12px; color: var(--muted, #64748b); font-size: 12px; }
