/* ============================================================
   Stamina Digital — global.css
   Design system v0.1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;700&display=swap');

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Cor — marca */
  --stage:       #141522;
  --stage-2:     #1e2030;
  --stage-line:  #2c2e42;
  --mist:        #eef0f7;
  --paper:       #f4f6fb;
  --structure:   #6d4bff;
  --struct-luz:  #8265ff;
  --struct-prof: #2b00e5;
  --signal:      #06eccb;
  --signal-esc:  #037c6a;
  --structure-soft: rgba(109, 75, 255, 0.08);

  /* Cor — texto e bordas */
  --ink:          #161827;
  --ink-soft:     #565b73;
  --ink-faint:    #9398b0;
  --rule:         #e3e6f1;
  --rule-strong:  #cdd2e6;

  /* Cor — sistema */
  --success:      #2aab62;
  --error:        #d94444;
  --error-light:  #ff5470;
  --warning:      #ffc24b;

  /* Espaçamento */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   12px;
  --space-base: 16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  72px;

  /* Radius */
  --radius-input:    4px;
  --radius-card-sm:  10px;
  --radius-card:     14px;
  --radius-pill:     100px;

  /* Sombras */
  --shadow-1: 0 1px 3px rgba(20, 21, 34, 0.06);
  --shadow-2: 0 2px 8px rgba(20, 21, 34, 0.08);
  --shadow-3: 0 8px 24px rgba(20, 21, 34, 0.12);
  --shadow-4: 0 24px 48px rgba(20, 21, 34, 0.18);

  /* Glass — modo escuro sobre luz violeta */
  --glass-bg:     rgba(22, 24, 39, 0.55);
  --glass-border: rgba(109, 75, 255, 0.08);
  --glass-2-bg:   rgba(30, 32, 48, 0.6);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background-color: var(--stage);
  color: var(--mist);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}



/* ── Animações globais ──────────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; }                            to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown{ from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(0.96); }    to { opacity: 1; transform: scale(1); } }
@keyframes shimmer  { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Pulso — animação de status ao vivo */
@keyframes pulse-core { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.78); opacity: 0.7; } }
@keyframes pulse-ring  { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* Fundo ambiental */
@keyframes pulsar { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.75; } }

/* ── Fundo de partículas ────────────────────────────────────── */
.particulas {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(109, 75, 255, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(109, 75, 255, 0.14) 0%, transparent 32%),
    var(--stage);
  animation: pulsar 9s ease-in-out infinite;
}

/* ── Pulso ──────────────────────────────────────────────────── */
.pulse {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-core 2.4s ease-in-out infinite;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--signal);
  animation: pulse-ring 2.4s ease-out infinite;
}

/* ── Superfícies glass ──────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
}

.glass-2 {
  background: var(--glass-2-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
}

/* ── Botões ─────────────────────────────────────────────────── */
/* Regra absoluta do sistema: botão = pill (border-radius: 100px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: opacity 0.15s ease-out, background 0.15s ease-out;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; }
.btn:active { opacity: 0.75; transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--structure); outline-offset: 3px; }
.btn:disabled { opacity: 0.38; pointer-events: none; }

.btn-lg { font-size: 15px; padding: 14px 32px; }
.btn-md { font-size: 13px; padding: 11px 24px; }
.btn-sm { font-size: 12px; padding: 8px 16px; }

.btn-primary { background: var(--structure); color: #fff; }
.btn-primary:hover { background: var(--struct-prof); opacity: 1; }

.btn-ghost-danger {
  background: transparent;
  color: var(--error-light);
  border: 1.5px solid rgba(217, 68, 68, 0.3);
}
.btn-ghost-danger:hover { border-color: var(--error); opacity: 1; }

/* ── Inputs, selects e textareas — padrão unificado ─────────── */
/* Âncora visual: radius 4px. NUNCA pill em input. */
.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
}
.campo label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.02em;
}
.campo input,
.campo textarea,
.campo select {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
.campo input::placeholder,
.campo textarea::placeholder { color: var(--ink-faint); }
.campo input:focus,
.campo textarea:focus,
.campo select:focus { border-color: var(--struct-luz); }

.filtro-item input:focus,
.filtro-item select:focus { border-color: var(--struct-luz); }

.filtro-item input.filtro-ativo,
.filtro-item select.filtro-ativo,
.select-custom-trigger.filtro-ativo {
  border-color: var(--struct-luz);
  background: rgba(130, 101, 255, 0.05); /* Um fundo super leve pra dar destaque */
}
.campo input.erro,
.campo textarea.erro { border-color: var(--error); }
.campo .dica { font-size: 11px; color: var(--ink-faint); }
.campo .dica.erro { color: var(--error-light); }
.campo textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

/* Select — chevron unificado (mesmo ícone em todos os contextos) */
.campo select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239398b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.campo select option {
  background-color: var(--stage-2);
  color: var(--mist);
}

/* ── Toggle ─────────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mist);
}
.toggle {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--stage-line);
  transition: background 0.2s ease-out;
  cursor: pointer;
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease-out;
  box-shadow: 0 1px 3px rgba(20, 21, 34, 0.25);
}
.toggle input:checked + .toggle-track { background: var(--structure); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--structure); outline-offset: 2px; }

/* ── Status dot ─────────────────────────────────────────────── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.status-dot.inativo { background: var(--error); }

/* ── Tags / chips ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.tag-struct  { background: var(--structure-soft); color: var(--struct-luz); }
.tag-outline { background: transparent; border: 1px solid var(--stage-line); color: var(--ink-faint); }

/* ── Botões de ação em tabela ───────────────────────────────── */
.acoes-cel { display: flex; gap: var(--space-sm); }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-card-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-out;
}
.btn-ver    { background: rgba(109, 75, 255, 0.12); color: var(--struct-luz); }
.btn-ver:hover { background: rgba(109, 75, 255, 0.22); }
.btn-remover { background: rgba(217, 68, 68, 0.12); color: var(--error-light); }
.btn-remover:hover { background: rgba(217, 68, 68, 0.22); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(20, 21, 34, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}
.modal-content {
  background: var(--stage-2);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
  box-shadow: var(--shadow-4);
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { 
    background: transparent; 
    margin: var(--radius-card) 0;
}
.modal-content::-webkit-scrollbar-thumb { 
    background-color: var(--stage-line); 
    border-radius: 10px; 
    border: 2px solid transparent; 
    background-clip: padding-box;
}
.modal-content::-webkit-scrollbar-thumb:hover { background-color: var(--ink-faint); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-base);
  border-bottom: 1px solid var(--stage-line);
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--mist);
}
.btn-fechar {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card-sm);
  transition: color 0.15s ease-out;
  line-height: 1;
}
.btn-fechar:hover { color: var(--mist); }

/* form-group dentro de modal — usa classe .campo acima */
/* mantendo .form-group por compatibilidade com o HTML existente */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
}
.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--struct-luz); }
.form-group textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.form-group input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.5; }

/* Select dentro de form-group: mesmo chevron, mesma lógica */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239398b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-group select option {
  background-color: var(--stage-2);
  color: var(--mist);
}

/* ── Botão salvar ───────────────────────────────────────────── */
.btn-salvar {
  width: 100%;
  padding: 13px;
  background: var(--structure);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease-out, opacity 0.15s ease-out;
  margin-top: 4px;
}
.btn-salvar:hover { background: var(--struct-prof); }
.btn-salvar:active { opacity: 0.85; }

/* ── Estado vazio ───────────────────────────────────────────── */
.estado-vazio {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ── Números com alinhamento tabular ────────────────────────── */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── Select Customizado (Design System Component) ───────────── */
.select-custom-wrapper {
  position: relative;
  width: 100%;
}
.select-custom-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease-out;
  width: 100%;
  text-align: left;
}
.select-custom-wrapper.open .select-custom-trigger,
.select-custom-trigger:focus {
  border-color: var(--struct-luz);
}
.select-custom-trigger::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239398b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}
.select-custom-wrapper.open .select-custom-trigger::after {
  transform: rotate(180deg);
}

.select-custom-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--stage-2);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-card-sm); /* 10px */
  box-shadow: var(--shadow-3);
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
  animation: fadeIn 0.15s ease forwards;
}
.select-custom-wrapper.open .select-custom-dropdown {
  display: block;
}
.select-custom-dropdown::-webkit-scrollbar {
  width: 4px;
}
.select-custom-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.select-custom-dropdown::-webkit-scrollbar-thumb {
  background: var(--stage-line);
  border-radius: 10px;
}

.select-custom-option {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--mist);
  border-radius: var(--radius-input); /* 4px */
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.select-custom-option:hover {
  background: var(--structure-soft);
  color: var(--struct-luz);
}
.select-custom-option.selected {
  background: var(--structure-soft);
  color: var(--struct-luz);
  font-weight: 500;
}

select.select-custom-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  visibility: hidden !important;
}

/* ── Status Chip — chip clicável que abre o mini-modal ───────── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  border: 1.5px solid transparent;
  user-select: none;
}
.status-chip:hover { opacity: 0.85; transform: scale(0.98); }
.status-chip .chip-arrow {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}

/* Variantes de status de cliente */
.status-chip.ativo       { background: rgba(6, 236, 203, 0.12);  color: var(--signal);     border-color: rgba(6, 236, 203, 0.2); }
.status-chip.pausado     { background: rgba(255, 194, 75, 0.12); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.status-chip.inativo     { background: rgba(255, 84, 112, 0.12); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.status-chip.teste       { background: rgba(130, 101, 255, 0.12);color: var(--struct-luz); border-color: rgba(130, 101, 255, 0.2); }

/* Variantes de sentimento */
.status-chip.otimo       { background: rgba(6, 236, 203, 0.12);  color: rgba(6, 236, 203, 0.9);    border-color: rgba(6, 236, 203, 0.2); }
.status-chip.satisfeito  { background: rgba(109, 75, 255, 0.12); color: var(--struct-luz); border-color: rgba(109, 75, 255, 0.2); }
.status-chip.regular     { background: rgba(255, 194, 75, 0.12); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.status-chip.insatisfeito{ background: rgba(255, 84, 112, 0.12); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.status-chip.nao-definido{ background: transparent;              color: var(--ink-faint);  border-color: var(--stage-line); }

/* Variantes de status de account */
.status-chip.disponivel  { background: rgba(42, 171, 98, 0.12);  color: var(--success);    border-color: rgba(42, 171, 98, 0.2); }
.status-chip.ferias      { background: rgba(255, 194, 75, 0.12); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }

/* ── Mini-modal de seleção de status ─────────────────────────── */
.mini-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 21, 34, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.mini-modal-overlay.show { display: flex; align-items: center; justify-content: center; }

.mini-modal {
  background: var(--stage-2);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  min-width: 260px;
  max-width: 320px;
  box-shadow: var(--shadow-4);
  animation: scaleIn 0.2s ease;
}
.mini-modal-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-base);
}
.mini-modal-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mini-modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-card-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s ease-out;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Manrope', sans-serif;
}
.mini-modal-option:hover { opacity: 0.8; }
.mini-modal-option.active { opacity: 1 !important; }
.mini-modal-option .opt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Opções de status do cliente */
.mini-modal-option.opt-ativo       { background: rgba(6, 236, 203, 0.08);  color: var(--signal);     border-color: rgba(6, 236, 203, 0.2); }
.mini-modal-option.opt-ativo .opt-dot      { background: var(--signal); }
.mini-modal-option.opt-pausado     { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-pausado .opt-dot    { background: var(--warning); }
.mini-modal-option.opt-inativo     { background: rgba(255, 84, 112, 0.08); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.mini-modal-option.opt-inativo .opt-dot    { background: var(--error-light); }
.mini-modal-option.opt-teste       { background: rgba(130, 101, 255, 0.08);color: var(--struct-luz); border-color: rgba(130, 101, 255, 0.2); }
.mini-modal-option.opt-teste .opt-dot      { background: var(--struct-luz); }

/* Opções de sentimento */
.mini-modal-option.opt-otimo       { background: rgba(42, 171, 98, 0.08);  color: var(--success);    border-color: rgba(42, 171, 98, 0.2); }
.mini-modal-option.opt-otimo .opt-dot      { background: var(--success); }
.mini-modal-option.opt-satisfeito  { background: rgba(109, 75, 255, 0.08); color: var(--struct-luz); border-color: rgba(109, 75, 255, 0.2); }
.mini-modal-option.opt-satisfeito .opt-dot { background: var(--struct-luz); }
.mini-modal-option.opt-regular     { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-regular .opt-dot    { background: var(--warning); }
.mini-modal-option.opt-insatisfeito{ background: rgba(255, 84, 112, 0.08); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.mini-modal-option.opt-insatisfeito .opt-dot { background: var(--error-light); }
.mini-modal-option.opt-nao-definido{ background: transparent;              color: var(--ink-faint);  border-color: var(--stage-line); }
.mini-modal-option.opt-nao-definido .opt-dot { background: var(--ink-faint); }

/* Opções de status de account */
.mini-modal-option.opt-disponivel  { background: rgba(42, 171, 98, 0.08);  color: var(--success);    border-color: rgba(42, 171, 98, 0.2); }
.mini-modal-option.opt-disponivel .opt-dot { background: var(--success); }
.mini-modal-option.opt-ferias      { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-ferias .opt-dot     { background: var(--warning); }

.mini-modal-cancel {
  width: 100%;
  margin-top: var(--space-md);
  padding: 9px;
  background: transparent;
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.mini-modal-cancel:hover { color: var(--mist); border-color: var(--ink-faint); }

/* ── Estilos de serviço no modal de detalhes ─────────────────── */
#detalhesConteudo .campo input,
#detalhesConteudo .campo select,
#detalhesConteudo .campo textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
#detalhesConteudo .campo input:focus,
#detalhesConteudo .campo select:focus,
#detalhesConteudo .campo textarea:focus { border-color: var(--struct-luz); }
#detalhesConteudo .campo textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

/* Caixas de serviço dentro do modal de detalhes */
#servicosLista .servico-box {
  background: var(--stage);
  padding: 16px;
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-card-sm);
  margin-bottom: 12px;
  transition: border-color 0.15s ease-out;
}
#servicosLista .servico-box:hover { border-color: rgba(109, 75, 255, 0.25); }
#servicosLista .servico-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
#servicosLista .servico-box select,
#servicosLista .servico-box textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
#servicosLista .servico-box select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239398b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  flex: 1;
}
#servicosLista .servico-box select:focus,
#servicosLista .servico-box textarea:focus { border-color: var(--struct-luz); }
#servicosLista .servico-box select option { background-color: var(--stage-2); color: var(--mist); }
#servicosLista .servico-box textarea {
  min-height: 60px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ── Links Úteis ─────────────────────────────────────────────── */
.link-card {
  background: var(--stage-2);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-card-sm);
  padding: var(--space-base);
  display: flex;
  align-items: center;
  gap: var(--space-base);
  transition: border-color 0.2s ease-out;
}
.link-card:hover { border-color: rgba(109, 75, 255, 0.3); }
.link-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-card-sm);
  background: var(--structure-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--struct-luz);
  font-size: 18px;
}
.link-info { flex: 1; min-width: 0; }
.link-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-url {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-categoria {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
}
.mini-modal-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-base);
}
.mini-modal-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mini-modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-card-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s ease-out;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Manrope', sans-serif;
}
.mini-modal-option:hover { opacity: 0.8; }
.mini-modal-option.active { opacity: 1 !important; }
.mini-modal-option .opt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Opções de status do cliente */
.mini-modal-option.opt-ativo       { background: rgba(6, 236, 203, 0.08);  color: var(--signal);     border-color: rgba(6, 236, 203, 0.2); }
.mini-modal-option.opt-ativo .opt-dot      { background: var(--signal); }
.mini-modal-option.opt-pausado     { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-pausado .opt-dot    { background: var(--warning); }
.mini-modal-option.opt-inativo     { background: rgba(255, 84, 112, 0.08); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.mini-modal-option.opt-inativo .opt-dot    { background: var(--error-light); }
.mini-modal-option.opt-teste       { background: rgba(130, 101, 255, 0.08);color: var(--struct-luz); border-color: rgba(130, 101, 255, 0.2); }
.mini-modal-option.opt-teste .opt-dot      { background: var(--struct-luz); }

/* Opções de sentimento */
.mini-modal-option.opt-otimo       { background: rgba(42, 171, 98, 0.08);  color: var(--success);    border-color: rgba(42, 171, 98, 0.2); }
.mini-modal-option.opt-otimo .opt-dot      { background: var(--success); }
.mini-modal-option.opt-satisfeito  { background: rgba(109, 75, 255, 0.08); color: var(--struct-luz); border-color: rgba(109, 75, 255, 0.2); }
.mini-modal-option.opt-satisfeito .opt-dot { background: var(--struct-luz); }
.mini-modal-option.opt-regular     { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-regular .opt-dot    { background: var(--warning); }
.mini-modal-option.opt-insatisfeito{ background: rgba(255, 84, 112, 0.08); color: var(--error-light);border-color: rgba(255, 84, 112, 0.2); }
.mini-modal-option.opt-insatisfeito .opt-dot { background: var(--error-light); }
.mini-modal-option.opt-nao-definido{ background: transparent;              color: var(--ink-faint);  border-color: var(--stage-line); }
.mini-modal-option.opt-nao-definido .opt-dot { background: var(--ink-faint); }

/* Opções de sentimento na tabela */
.sentimento-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 85px; /* Tamanho padronizado */
  opacity: 0.9; /* Reduz a vibração das cores */
}
.sentimento-otimo { background: rgba(6, 236, 203, 0.08); color: rgba(6, 236, 203, 0.9); }
.sentimento-satisfeito { background: rgba(109, 75, 255, 0.08); color: rgba(130, 101, 255, 0.9); }
.sentimento-regular { background: rgba(255, 194, 75, 0.08); color: rgba(255, 194, 75, 0.9); }
.sentimento-insatisfeito { background: rgba(255, 84, 112, 0.08); color: rgba(255, 84, 112, 0.9); }
.sentimento-nao-definido { background: transparent; color: var(--ink-faint); border: 1px solid var(--stage-line); }

.sentimento-ativo { background: rgba(6, 236, 203, 0.08); color: rgba(6, 236, 203, 0.9); }
.sentimento-pausado { background: rgba(255, 194, 75, 0.08); color: rgba(255, 194, 75, 0.9); }
.sentimento-inativo { background: rgba(255, 84, 112, 0.08); color: rgba(255, 84, 112, 0.9); }
.sentimento-teste { background: rgba(130, 101, 255, 0.08); color: rgba(130, 101, 255, 0.9); }

/* --- TIMELINE DE HISTÓRICO --- */
#timelineContainer::-webkit-scrollbar { width: 5px; }
#timelineContainer::-webkit-scrollbar-track { background: transparent; }
#timelineContainer::-webkit-scrollbar-thumb { background: var(--stage-line); border-radius: 10px; }
#timelineContainer::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

.timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 16px;
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 20px;
    bottom: -24px;
    width: 2px;
    background: var(--stage-line);
    z-index: 1;
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--ink-faint);
    z-index: 2;
}
.timeline-dot.otimo { border-color: var(--success); }
.timeline-dot.satisfeito { border-color: var(--struct-luz); }
.timeline-dot.regular { border-color: var(--warning); }
.timeline-dot.insatisfeito { border-color: var(--error-light); }
.timeline-dot.nao-definido { border-color: var(--ink-faint); }
.timeline-dot.ativo { border-color: var(--signal); }
.timeline-dot.pausado { border-color: var(--warning); }
.timeline-dot.inativo { border-color: var(--error-light); }
.timeline-dot.teste { border-color: var(--struct-luz); }

.timeline-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--stage-line);
    border-radius: 12px;
    padding: 16px;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.timeline-date {
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.timeline-body p {
    font-size: 13px;
    color: var(--ink-faint);
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.timeline-body p:last-child {
    margin: 0;
}
.timeline-body strong {
    color: var(--mist);
    font-weight: 500;
}

/* Opções de status de account */
.mini-modal-option.opt-disponivel  { background: rgba(42, 171, 98, 0.08);  color: var(--success);    border-color: rgba(42, 171, 98, 0.2); }
.mini-modal-option.opt-disponivel .opt-dot { background: var(--success); }
.mini-modal-option.opt-ferias      { background: rgba(255, 194, 75, 0.08); color: var(--warning);    border-color: rgba(255, 194, 75, 0.2); }
.mini-modal-option.opt-ferias .opt-dot     { background: var(--warning); }

.mini-modal-cancel {
  width: 100%;
  margin-top: var(--space-md);
  padding: 9px;
  background: transparent;
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.mini-modal-cancel:hover { color: var(--mist); border-color: var(--ink-faint); }

/* ── Estilos de serviço no modal de detalhes ─────────────────── */
#detalhesConteudo .campo input,
#detalhesConteudo .campo select,
#detalhesConteudo .campo textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
#detalhesConteudo .campo input:focus,
#detalhesConteudo .campo select:focus,
#detalhesConteudo .campo textarea:focus { border-color: var(--struct-luz); }
#detalhesConteudo .campo textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

/* Caixas de serviço dentro do modal de detalhes */
#servicosLista .servico-box {
  background: var(--stage);
  padding: 16px;
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-card-sm);
  margin-bottom: 12px;
  transition: border-color 0.15s ease-out;
}
#servicosLista .servico-box:hover { border-color: rgba(109, 75, 255, 0.25); }
#servicosLista .servico-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
#servicosLista .servico-box select,
#servicosLista .servico-box textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--mist);
  background: var(--stage-2);
  border: 1.5px solid var(--stage-line);
  border-radius: var(--radius-input);
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease-out;
  -webkit-appearance: none;
}
#servicosLista .servico-box select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239398b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  flex: 1;
}
#servicosLista .servico-box select:focus,
#servicosLista .servico-box textarea:focus { border-color: var(--struct-luz); }
#servicosLista .servico-box select option { background-color: var(--stage-2); color: var(--mist); }
#servicosLista .servico-box textarea {
  min-height: 60px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ── Links Úteis ─────────────────────────────────────────────── */
.link-card {
  background: var(--stage-2);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-card-sm);
  padding: var(--space-base);
  display: flex;
  align-items: center;
  gap: var(--space-base);
  transition: border-color 0.2s ease-out;
}
.link-card:hover { border-color: rgba(109, 75, 255, 0.3); }
.link-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-card-sm);
  background: var(--structure-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--struct-luz);
  font-size: 18px;
}
.link-info { flex: 1; min-width: 0; }
.link-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-url {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-categoria {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  background: var(--structure-soft);
  color: var(--struct-luz);
  flex-shrink: 0;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-base);
  margin-top: var(--space-lg);
}
