/* Linguagem visual no padrão dos aplicativos Samsung (título grande, grupos arredondados, chaves e pílulas)
   com a identidade Alltentico: roxo #49086b e magenta #bd0d7d. Fonte Inter (licença OFL, em fontes/). */
@font-face { font-family: Inter; src: url(fontes/inter.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: Inter; src: url(fontes/inter-ext.woff2) format("woff2"); font-weight: 100 900; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0; }
:root {
  --roxo: #49086b; --noite: #2a0540; --magenta: #bd0d7d; --rosa: #ff6fc0;
  --fundo: #f2f0f5; --cartao: #fff; --campo: #f3f1f6; --linha: #ece9f0; --texto: #17111d; --suave: #6b6275;
  --tinta-roxa: #f1e8f6; --erro: #c3262f; --ok: #0f8a5f;
  --raio: 26px; --curva: cubic-bezier(.22, 1, .36, 1);
  --sombra: 0 1px 2px rgba(23, 17, 29, .04), 0 8px 28px -18px rgba(23, 17, 29, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }
body { font: 400 14px/1.5 Inter, "Segoe UI", sans-serif; font-optical-sizing: auto; letter-spacing: -.006em; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
.arrasto { position: fixed; z-index: 20; top: 0; left: 0; right: 140px; height: 28px; -webkit-app-region: drag; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 13px; font-weight: 600; color: var(--suave); padding: 0 12px; }
p.sub { color: var(--suave); font-size: 15px; max-width: 56ch; margin-top: 8px; }
.pequeno { font-size: 12.5px; color: var(--suave); }
::selection { background: rgba(189, 13, 125, .2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: rgba(23, 17, 29, .16); border-radius: 12px; border: 4px solid transparent; background-clip: content-box; }

/* botões em pílula */
button { font: inherit; font-weight: 600; cursor: pointer; border: 0; background: none; color: inherit; transition: transform .25s var(--curva), background-color .2s, color .2s, opacity .2s; }
button:active { transform: scale(.96); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.principal, .contorno { border-radius: 99px; min-height: 44px; padding: 0 24px; white-space: nowrap; }
.principal { background: var(--roxo); color: #fff; } .principal:hover:not(:disabled) { background: #5c0d86; }
.contorno { background: var(--campo); font-size: 13px; min-height: 36px; padding: 0 16px; } .contorno:hover { background: #e9e4ef; }
.contorno[aria-pressed=true] { background: #fff0bf; }
.link { color: var(--erro); font-size: 13px; padding: 6px 10px; border-radius: 99px; } .link:hover { background: #fdecee; }

/* campos preenchidos */
label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 12.5px; color: var(--suave); }
input, textarea, select { font: inherit; font-weight: 450; font-size: 14px; color: var(--texto); background: var(--campo); border: 2px solid transparent; border-radius: 16px; padding: 11px 15px; min-height: 48px; width: 100%; outline: none; transition: border-color .2s, background-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--roxo); background: #fff; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6275' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
input[type=checkbox] { appearance: none; flex: none; width: 48px; height: 28px; min-height: 0; border-radius: 28px; border: 0; padding: 0; background: #cbc5d3; position: relative; cursor: pointer; transition: background-color .25s; }
input[type=checkbox]::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 22px; top: 3px; left: 3px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transition: transform .3s var(--curva); }
input[type=checkbox]:checked { background: var(--roxo); } input[type=checkbox]:checked::before { transform: translateX(20px); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
label.chave { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; color: var(--texto); font-size: 14px; font-weight: 550; cursor: pointer; }
label.chave small { display: block; font-weight: 400; font-size: 12.5px; color: var(--suave); margin-top: 2px; }
progress { width: 100%; height: 8px; appearance: none; border-radius: 8px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--campo); } progress::-webkit-progress-value { background: linear-gradient(90deg, var(--roxo), var(--magenta)); border-radius: 8px; }

/* estrutura */
.casca { display: grid; grid-template-columns: 252px minmax(0, 1fr); height: 100%; }
.trilho { display: flex; flex-direction: column; gap: 3px; padding: 36px 12px 14px 16px; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.marca img { width: 42px; height: 42px; }
.marca b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--roxo); }
.marca span { display: block; font-size: 12px; color: var(--suave); }
.trilho button { display: flex; align-items: center; gap: 13px; text-align: left; padding: 8px 10px; border-radius: 99px; font-weight: 550; font-size: 14px; flex: none; }
.trilho button:hover { background: rgba(255, 255, 255, .65); }
.trilho button[aria-current=page] { background: var(--cartao); font-weight: 650; box-shadow: var(--sombra); }
.trilho button > span:nth-child(2) { flex: 1; }
.icone { width: 32px; height: 32px; border-radius: 12px; display: grid; place-content: center; flex: none; color: #fff; background: var(--cor, var(--roxo)); }
.icone svg { width: 18px; height: 18px; }
.bolha-n { background: var(--magenta); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-content: center; flex: none; }
.situacao { margin-top: auto; display: flex; gap: 11px; align-items: center; background: var(--cartao); border-radius: 20px; padding: 13px 15px; font-size: 12.5px; font-weight: 550; box-shadow: var(--sombra); flex: none; }
.ponto { width: 10px; height: 10px; border-radius: 10px; background: #e79b00; flex: none; }
.ponto.ok { background: #17b37c; box-shadow: 0 0 0 4px rgba(23, 179, 124, .16); } .ponto.ruim { background: var(--erro); }
main { overflow: auto; min-width: 0; }
.pagina { max-width: 780px; margin: 0 auto; padding: 0 32px 56px; display: flex; flex-direction: column; gap: 14px; }
.pagina.nova > * { animation: sobe .55s var(--curva) backwards; }
.pagina.nova > :nth-child(2) { animation-delay: .04s; } .pagina.nova > :nth-child(3) { animation-delay: .08s; } .pagina.nova > :nth-child(n+4) { animation-delay: .12s; }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
.titulo { padding: 76px 12px 20px; }

/* grupos */
.bloco { background: var(--cartao); border-radius: var(--raio); padding: 22px 24px; display: flex; flex-direction: column; gap: 15px; box-shadow: var(--sombra); }
.bloco.grupo { gap: 0; padding: 6px 24px; }
.grupo > * { padding-block: 15px; } .grupo > * + * { border-top: 1px solid var(--linha); }
.linha { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.linha > label { flex: 1; min-width: 150px; }
.por-codigo > label { flex-basis: 250px; }
.linha > .principal { min-height: 48px; }
.lista { list-style: none; }
.lista li { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.lista li + li { border-top: 1px solid var(--linha); }
.lista li > div { flex: 1; min-width: 0; }
.lista b { font-weight: 600; overflow-wrap: anywhere; }
.lista .pequeno { overflow-wrap: anywhere; }
.vazio { color: var(--suave); padding: 6px 0; }
.aviso { background: var(--tinta-roxa); color: var(--roxo); border-radius: 18px; padding: 12px 16px; font-size: 13px; font-weight: 500; }
.aviso.erro { background: #fdecee; color: var(--erro); }

/* início */
.destaque { color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--magenta), transparent 62%), linear-gradient(135deg, #2f0647, var(--roxo)); padding: 26px; }
.destaque label.chave { color: #fff; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.destaque label.chave small { color: rgba(255, 255, 255, .78); font-size: 13.5px; letter-spacing: 0; margin-top: 5px; }
.destaque input[type=checkbox] { width: 62px; height: 36px; background: rgba(255, 255, 255, .28); }
.destaque input[type=checkbox]::before { width: 30px; height: 30px; }
.destaque input[type=checkbox]:checked { background: #17b37c; } .destaque input[type=checkbox]:checked::before { transform: translateX(26px); }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.numeros > button, .numeros > div { background: var(--cartao); border-radius: var(--raio); padding: 20px 22px; text-align: left; color: var(--suave); font-weight: 500; font-size: 12.5px; box-shadow: var(--sombra); }
.numeros b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.045em; line-height: 1.15; color: var(--texto); font-variant-numeric: tabular-nums; }
.passos button { display: flex; width: 100%; gap: 15px; align-items: center; text-align: left; font-weight: 550; }
.passos .selo { width: 26px; height: 26px; border-radius: 26px; background: var(--campo); display: grid; place-content: center; font-size: 13px; flex: none; }
.passos .feito .selo { background: var(--ok); color: #fff; } .passos .feito span:last-child { color: var(--suave); }

/* agenda */
.horario { font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--roxo); width: 62px; flex: none; font-variant-numeric: tabular-nums; }
.dias { display: flex; gap: 8px; flex-wrap: wrap; }
.dias button { width: 44px; height: 44px; border-radius: 44px; background: var(--campo); font-size: 12px; }
.dias button[aria-pressed=true] { background: var(--roxo); color: #fff; }

/* atendimento */
.chat { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 14px; height: 100%; padding: 36px 14px 14px 4px; }
.conversas { background: var(--cartao); border-radius: var(--raio); overflow: auto; list-style: none; padding: 8px; box-shadow: var(--sombra); }
.conversas header { padding: 16px 12px 14px; } .conversas h1 { font-size: 26px; }
.conversas li button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px 10px; border-radius: 18px; font-weight: 450; }
.conversas li button:hover { background: var(--campo); }
.conversas li button[aria-current=true] { background: var(--tinta-roxa); }
.avatar { width: 44px; height: 44px; border-radius: 18px; flex: none; display: grid; place-content: center; color: #fff; font-weight: 650; font-size: 14px; background: linear-gradient(40deg, var(--roxo), var(--magenta)); }
.resumo { flex: 1; min-width: 0; display: block; } .resumo b, .resumo small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resumo b { font-weight: 600; } .resumo small { color: var(--suave); font-size: 12.5px; }
.conversa { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: var(--cartao); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.conversa > header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; flex-wrap: wrap; }
.conversa > header div { flex: 1; min-width: 140px; }
.so-celular { display: none; }
.faixa { margin: 0 14px 8px; background: #fde7f4; color: #8d065c; border-radius: 16px; padding: 9px 15px; font-size: 12.5px; font-weight: 600; }
.mensagens { flex: 1; overflow: auto; margin: 0 10px; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--fundo); }
.msg { max-width: 72%; padding: 10px 15px; border-radius: 22px 22px 22px 7px; background: #fff; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.minha { align-self: flex-end; background: var(--roxo); color: #fff; border-radius: 22px 22px 7px 22px; }
.msg small { display: block; text-align: right; font-size: 10.5px; opacity: .62; margin-top: 2px; }
.msg.sugestao { align-self: flex-end; width: 72%; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--magenta); display: flex; flex-direction: column; gap: 9px; padding: 15px; }
.msg.nota { align-self: center; background: #fff0bf; color: #4a3500; border-radius: 18px; }
.escrever { display: flex; gap: 9px; align-items: center; padding: 12px; }
.escrever textarea { resize: none; border-radius: 24px; max-height: 120px; }
.escrever .principal { min-height: 48px; }
.centro { display: grid; place-content: center; text-align: center; color: var(--suave); }
main > .conversa { height: calc(100% - 50px); max-width: 780px; margin: 36px auto 14px; }

.qr { width: 280px; height: 280px; border-radius: 22px; background: #fff; border: 1px solid var(--linha); align-self: center; }

/* entrada: foto à esquerda e formulário à direita */
.entrada { display: grid; grid-template-columns: 1.1fr 1fr; height: 100%; }
.entrada aside { position: relative; overflow: hidden; background: var(--noite); color: #fff; }
.entrada aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #2a0540, rgba(42, 5, 64, .15) 55%, rgba(42, 5, 64, .6)); }
.entrada .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 20%; }
.entrada .logo { position: absolute; z-index: 1; top: 40px; left: 40px; width: 210px; }
.entrada aside p { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 44px; max-width: 15ch; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.entrada aside p span { color: var(--rosa); }
.entrada section { display: grid; place-content: center; padding: 44px 28px; overflow: auto; background: #fff; }
.entrada section > div { width: min(390px, 86vw); display: flex; flex-direction: column; gap: 15px; }
.entrada .principal { min-height: 52px; }
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--campo); border-radius: 99px; }
.abas button { min-height: 40px; border-radius: 99px; font-size: 13.5px; color: var(--suave); }
.abas button[aria-pressed=true] { background: #fff; color: var(--roxo); box-shadow: var(--sombra); }

@media (max-width: 860px) {
  .casca { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .trilho { order: 2; flex-direction: row; overflow-x: auto; padding: 8px; background: var(--cartao); }
  .marca, .situacao { display: none; }
  .trilho button { flex-direction: column; gap: 4px; font-size: 11px; padding: 6px 10px; border-radius: 16px; }
  .trilho button[aria-current=page] { background: var(--tinta-roxa); box-shadow: none; }
  .chat { grid-template-columns: minmax(0, 1fr); padding: 36px 10px 10px; }
  .chat.aberta .conversas, .chat:not(.aberta) .conversa, .chat:not(.aberta) .centro { display: none; }
  .so-celular { display: inline-block; }
  .pagina { padding: 0 14px 32px; } .titulo { padding: 52px 10px 14px; } h1 { font-size: 30px; }
  .entrada { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; } .entrada aside p { display: none; }
}
@media (max-width: 560px) { .numeros { grid-template-columns: 1fr; } }
/* Na administração os números ficam lado a lado no celular, para os cadastros aparecerem sem rolar uma tela inteira. */
@media (max-width: 560px) {
  .admin .numeros { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .admin .numeros > div { padding: 14px 10px; font-size: 11.5px; border-radius: 18px; overflow-wrap: anywhere; }
  .admin .numeros b { font-size: 21px; }
  .admin .principal, .admin .contorno { white-space: normal; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.grupo > .lista { padding-block: 1px; }
.trilho button.sair { margin-top: auto; justify-content: center; color: var(--suave); font-size: 13px; padding: 10px; }
.trilho .sair + .situacao { margin-top: 8px; }
@media (max-width: 860px) { .trilho button.sair { margin-top: 0; } }
@media (max-width: 860px) {
  .trilho button { position: relative; }
  .trilho .bolha-n { position: absolute; top: 2px; right: 6px; }
}

/* serviços e painel na web */
.nomes button { width: auto; min-width: 44px; padding: 0 18px; border-radius: 99px; }
.passo-a-passo { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.codigo { font-size: 36px; font-weight: 700; letter-spacing: .1em; text-align: center; color: var(--roxo); font-variant-numeric: tabular-nums; user-select: all; }
a.botao { display: inline-flex; align-items: center; text-decoration: none; color: var(--texto); font-weight: 600; width: fit-content; }
.revisao li .linha { flex: 1; min-width: 0; }
.revisao li .linha input { flex: 1; min-width: 120px; width: auto; }
.suporte { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: #fff0bf; color: #4a3500; padding: 8px 12px; font-size: 13px; font-weight: 600; }
#app.com-suporte { display: flex; flex-direction: column; }
#app.com-suporte .casca { flex: 1; min-height: 0; height: auto; }
html.web, html.web body, html.web #app { height: 100%; height: 100dvh; }
html.web .arrasto { display: none; }
html.web .titulo { padding-top: 34px; }
html.web .trilho { padding-top: 18px; }
html.web .chat { padding-top: 14px; }
html.web main > .conversa { margin-top: 14px; height: calc(100% - 28px); }
/* o formulário de criar conta é mais alto que a tela de um notebook: centraliza sem cortar o topo */
html.web .entrada section { display: flex; flex-direction: column; justify-content: flex-start; }
html.web .entrada section > div { margin: auto; width: min(390px, 100%); }
html.web .sem-rede { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: 8px; background: #fdecee; color: var(--erro); border-radius: 99px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }
@media (max-width: 860px) {
  input, textarea, select { font-size: 16px; }
  html.web .titulo { padding-top: 22px; }
  html.web .trilho { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
}


/* administração */
.admin .pagina.painel { max-width: 920px; }
.admin .filtros { align-items: center; }
.selo-status.pago { background: #e2f6ed; color: var(--ok); }
.selo-status.em_aberto, .selo-status.a_vencer { background: #fff0bf; color: #4a3500; }
.selo-status.vencido { background: #fdecee; color: var(--erro); }
.aviso.cobranca { background: #fff0bf; color: #4a3500; }
.admin main { height: 100%; }
.admin .ponto { display: inline-block; vertical-align: middle; }
.topo-cliente { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.selo-status { border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 700; background: var(--campo); }
.selo-status.pendente { background: #fff0bf; color: #4a3500; }
.selo-status.ativo { background: #e2f6ed; color: var(--ok); }
.selo-status.pausado, .selo-status.bloqueado { background: #fdecee; color: var(--erro); }
.admin a { color: var(--roxo); }
.admin .acessos { border-block: 1px solid var(--linha); }
.admin .acessos li { padding: 9px 0; gap: 11px; flex-wrap: wrap; }
.admin .acessos li > div { min-width: 170px; }
.admin .acessos .ponto { background: #cbc5d3; box-shadow: none; }
.admin .acessos .ponto.ok { background: #17b37c; }
.admin .acessos .ponto.ruim { background: var(--erro); }
.admin code { font: 600 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--roxo); user-select: all; overflow-wrap: anywhere; }
.admin .qr { width: 240px; height: 240px; }
