/* ============================================================================
   CLIENTES
   Extraído de css/estilos-gerais.css para organizar por módulo.
   ============================================================================ */

.cliente-cabecalho .cliente-info .cliente-nome {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

.cliente-cabecalho .cliente-info .cliente-codigo {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.cliente-cabecalho {
  margin: 15px 0;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  border-left: 4px solid #c21a26;
  margin-bottom: 15px;
}

.cliente-cabecalho+.enviar-anotacao-container {
  margin-top: 0;
}

.dados-cliente .info-box,
.financeiro-table .info-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dados-cliente .info-row,
.financeiro-table .info-row {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #c21a26;
  break-inside: avoid;
}

.dados-cliente .info-label,
.financeiro-table .info-label {
  font-weight: 600;
  color: #2c3338;
  margin-bottom: 5px;
  font-size: .95em;
}

.dados-cliente .info-value,
.financeiro-table .info-value {
  color: #c21a26;
  word-wrap: break-word;
  line-height: 1.4;
}

.financeiro-table .negative-credit {
  border-left: 4px solid #e74c3c;
}

.financeiro-table .negative-credit .info-value {
  color: #e74c3c;
}

.financeiro-summary {
  margin-bottom: 20px;
}

.anotacao-copy-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  position: absolute;
  right: 0;
  top: 0;
}

.anotacao-copy-btn:hover {
  background-color: #f0f0f0;
  color: #c21a26;
}

.anotacao-copy-btn:active {
  transform: scale(.95);
}

.anotacao-copy-btn.copied {
  color: #28a745;
  background-color: #e7f5eb;
}

/* Estilos para sugestão do último cliente */
.ultimo-cliente-sugestao {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: vitrolaSlideDown 0.3s ease-out;
}

@keyframes vitrolaSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sugestao-header {
  background: #e9ecef;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.sugestao-titulo {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.fechar-sugestao {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.fechar-sugestao:hover {
  background: #dee2e6;
  color: #495057;
}

.sugestao-cliente {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sugestao-cliente:hover {
  background: #e9ecef;
}

.sugestao-cliente strong {
  color: #c21a26;
}

.usar-cliente-btn {
  background: #c21a26;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.usar-cliente-btn:hover {
  background: #a50d17;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.usar-cliente-btn:active {
  transform: translateY(0);
}