﻿/* Importar produtos (planilha + API) */
.imp-resumo { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.05rem; margin: 0; }
.imp-previa { display: flex; flex-direction: column; gap: 6px; }
.imp-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: 12px; border: 1px solid var(--linha); }
.imp-linha > span { display: flex; flex-direction: column; min-width: 0; }
.imp-linha b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-linha small { color: var(--cinza); font-size: .78rem; }
.imp-linha strong { font-family: "Montserrat", sans-serif; color: var(--cor-forte); flex: none; }
.imp-fim { text-align: center; padding: 10px 0; }
.imp-fim-ic { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; animation: surgir .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes surgir { from { transform: scale(.3); opacity: 0; } }
.imp-fim h2 { font-size: 1.3rem; margin-bottom: 6px; }
.integracao { display: flex; flex-direction: column; gap: 10px; }
.api-cartao { cursor: default; }
.api-cartao .cartao-texto b { white-space: normal; }
.imp-linha > img:first-child { flex: none; }
.imp-linha > img:first-child + span { flex: 1; }

/* Leitor de código de barras */
.leitor { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0f172a; }
.leitor-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.leitor-mira { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.leitor-mira i { width: 78%; height: 36%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.leitor-mira i::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; top: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: varrer 1.6s ease-in-out infinite alternate; }
@keyframes varrer { from { transform: translateY(-140%); } to { transform: translateY(140%); } }
.leitor.sem-camera { aspect-ratio: 4 / 1.4; }
.leitor.sem-camera .leitor-mira { display: none; }
.leitor-digitar { display: flex; gap: 8px; }
.leitor-digitar input { flex: 1; min-width: 0; }
.linha-codigo { display: flex; gap: 8px; }
.linha-codigo input { flex: 1; min-width: 0; }
.linha-codigo .btn { flex: none; }

code.chave { display: block; padding: 14px; border-radius: 12px; background: #0f172a; color: #7dd3fc; font-size: .9rem; word-break: break-all; user-select: all; }
