/* Korre · clientes */
.barra-filtros { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.barra-filtros .abas { margin: 0; }
.busca-campo { flex: 1; min-width: 260px; max-width: 520px; }
.busca-campo input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9488' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .8rem center / 17px; padding-left: 2.4rem; }
.linha-link td a.pessoa { color: var(--tinta); text-decoration: none; }
.linha-link td a.pessoa:hover strong { color: var(--azul); }
.avatar.grande { width: 52px; height: 52px; font-size: 1.05rem; background: var(--azul-claro); color: var(--azul); }
.cliente-titulo { display: flex; gap: .9rem; align-items: center; }
.ficha dd.pre { white-space: pre-line; }

/* formulário */
.grade-cliente { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grade-cliente > .bloco { margin-bottom: 0; }
.form-cliente .form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; }
.form-cliente .form { display: flex; flex-direction: column; gap: .85rem; }
.linha-3 { grid-template-columns: 110px 1fr 1fr !important; }
.linha-cep { grid-template-columns: 150px 1fr !important; }
.linha-cidade { grid-template-columns: 1fr 90px !important; }
.linha-apelido { grid-template-columns: 160px 1fr !important; }
.tipo-pessoa { display: inline-flex; background: #ece8e1; border-radius: 10px; padding: 3px; gap: 2px; align-self: flex-start; }
.tipo-op { flex-direction: row !important; cursor: pointer; }
.tipo-op { position: relative; }
.tipo-op input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; padding: 0; margin: 0; border: 0; }
.tipo-op span { padding: .45rem 1rem; border-radius: 8px; font-size: .88rem; font-weight: 600; color: #57534e; }
.tipo-op input:checked + span { background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.tipo-op input:focus-visible + span { box-shadow: 0 0 0 3px var(--azul-claro); }
.campo-acao { display: flex; gap: .4rem; }
.campo-acao input { flex: 1; }
.botao.mini { padding: .5rem .8rem; font-size: .85rem; white-space: nowrap; }
.dica { font-size: .78rem; font-weight: 500; color: var(--sutil); min-height: 1em; }
.dica.ok { color: var(--verde); }
.dica.ruim { color: var(--vermelho); }
.barra-salvar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 0; margin-top: 1rem;
  background: linear-gradient(to top, var(--fundo) 70%, transparent); }
[hidden] { display: none !important; }

/* endereços salvos */
.enderecos { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.enderecos li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--linha); border-radius: var(--raio-p); }
.endereco-novo { border-top: 1px solid var(--linha); padding-top: 1rem; }

/* nova entrega */
.linha-cliente { grid-template-columns: 1fr auto !important; align-items: end; }
.link-novo-cliente { padding-bottom: .65rem; white-space: nowrap; font-weight: 500; }

@media (max-width: 1100px) { .grade-cliente { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .linha-3, .linha-cep, .linha-cidade, .linha-apelido, .linha-cliente { grid-template-columns: 1fr !important; }
}
