/* Ficha do cliente (painel da esquerda, modo suporte/admin) -- ver assets/ficha_cliente.js */

#client-panel { width: 360px; }
#client-search-bar { align-items: center; }
#btn-clear-client { display: none; background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 0.9rem; padding: 0 8px; flex-shrink: 0; }
#btn-clear-client.visible { display: block; }
#btn-clear-client:hover { color: #fff; }
.csd-item.active { background: #2d3260; }

.fc-head { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.7rem; color: #94a3b8; margin-bottom: 10px; }
.fc-badge { background: #1e3a5f; color: #93c5fd; border-radius: 4px; padding: 0 6px; font-weight: 600; }
.fc-perguntas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fc-chip { background: #1a1f3e; border: 1px solid #4a5080; color: #a5b4fc; border-radius: 999px;
    padding: 3px 10px; font-size: 0.7rem; cursor: pointer; }
.fc-chip:hover { border-color: #7f5af0; color: #fff; }

.fc-alerta { border-left: 3px solid #64748b; background: #1e2142; border-radius: 6px; padding: 6px 9px;
    margin-bottom: 5px; font-size: 0.75rem; color: #cbd5e1; }
.fc-alerta.alto { border-left-color: #f87171; background: #2a1520; color: #fecaca; }
.fc-alerta.medio { border-left-color: #f59e0b; background: #261d0c; color: #fde68a; }
.fc-alerta.info { border-left-color: #60a5fa; background: #13213a; color: #bfdbfe; }

.fc-meta { font-size: 0.68rem; color: #64748b; margin: 4px 0; }
.fc-novidades { font-size: 0.72rem; color: #64748b; margin-bottom: 6px; }
.fc-novidades.novo { color: #fbbf24; font-weight: 600; }
.fc-momento, .fc-obs { font-size: 0.8rem; color: #e2e8f0; line-height: 1.45; margin: 4px 0 8px; }
.fc-obs { color: #cbd5e1; font-size: 0.76rem; }
.fc-sub { font-size: 0.66rem; color: #818cf8; text-transform: uppercase; letter-spacing: 0.05em; margin: 8px 0 4px; }
.fc-temas { list-style: none; padding: 0; margin: 0 0 6px; }
.fc-temas li { font-size: 0.76rem; color: #cbd5e1; padding: 3px 0; border-bottom: 1px solid #1e2142; }
.fc-vezes { background: #2d3260; color: #a5b4fc; border-radius: 4px; padding: 0 5px; font-size: 0.66rem; }
.fc-fonte { background: none; border: 1px solid #3a3f6a; color: #a5b4fc; border-radius: 4px; padding: 0 5px;
    font-size: 0.64rem; cursor: pointer; margin-left: 2px; }
.fc-fonte:hover { border-color: #7f5af0; color: #fff; }

.fc-btn { width: 100%; margin-top: 6px; background: #7f5af0; border: none; color: #fff; border-radius: 8px;
    padding: 7px 10px; font-size: 0.78rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fc-btn:hover { background: #6d48de; }
.fc-btn:disabled { opacity: 0.6; cursor: default; }
.fc-gerando { font-size: 0.76rem; color: #c4b5fd; background: #1d1840; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px; }
.fc-spin { width: 12px; height: 12px; border: 2px solid #7f5af0; border-top-color: transparent; border-radius: 50%;
    display: inline-block; flex-shrink: 0; animation: fc-gira 0.8s linear infinite; }
@keyframes fc-gira { to { transform: rotate(360deg); } }

.fc-avaliar { font-size: 0.7rem; color: #64748b; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.fc-nota { background: none; border: 1px solid #3a3f6a; border-radius: 6px; cursor: pointer; padding: 0 6px; filter: grayscale(1); opacity: 0.7; }
.fc-nota.on { filter: none; opacity: 1; border-color: #22c55e; }
.fc-nota.on.neg { border-color: #f87171; }

.fc-promessa { background: #1e2142; border-left: 3px solid #7f5af0; border-radius: 6px; padding: 7px 9px; margin-bottom: 6px;
    font-size: 0.76rem; color: #e2e8f0; }
.fc-promessa.vencida { border-left-color: #f87171; }
.fc-acoes { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.fc-mini { background: #161930; border: 1px solid #3a3f6a; color: #cbd5e1; border-radius: 5px; padding: 2px 8px;
    font-size: 0.68rem; cursor: pointer; }
.fc-mini:hover { border-color: #7f5af0; color: #fff; }
.fc-mini.ok { border-color: #22c55e; color: #86efac; }
.fc-mini:disabled { opacity: 0.5; cursor: default; }

.fc-click { cursor: pointer; }
.fc-click:hover { background: #2d3260; }
.fc-parado { color: #fbbf24; }
.fc-conta { color: #64748b; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fc-linha { font-size: 0.76rem; color: #cbd5e1; margin-bottom: 3px; }
.fc-erro { font-size: 0.72rem; color: #cbd5e1; background: #1e2142; border-radius: 6px; padding: 5px 8px; margin-bottom: 4px;
    word-break: break-word; }
.fc-contato { background: #1e2142; border-radius: 6px; padding: 6px 9px; margin-bottom: 5px; font-size: 0.76rem; color: #e2e8f0;
    display: flex; flex-direction: column; gap: 1px; }
.fc-sugestao { border: 1px dashed #4a5080; }
.fc-busca input { width: 100%; background: #0c0a18; border: 1px solid #3a3f6a; color: #e2e8f0; border-radius: 6px;
    padding: 5px 9px; font-size: 0.76rem; margin-bottom: 6px; outline: none; }
.fc-busca input:focus { border-color: #7f5af0; }

/* A barra fica no rodapé: o dropdown abre para CIMA. */
#client-search-dropdown { top: auto; bottom: calc(100% + 4px); max-height: 340px; }
.fc-porque { font-size: 0.7rem; color: #94a3b8; margin: 3px 0; font-style: italic; }
