/* ../../libs/frontend/src/styles/base.css */
:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    "Noto Sans",
    Arial,
    sans-serif;
  color: #faf7f1;
  background: #000;
  color-scheme: dark;
  --amber: #f9b54b;
  --muted: #bdbab4;
  --surface: oklch(25.4% 0 96.2);
  --line: #3f3e3b;
  --hairline: #262522;
  --ctl: #77746d;
  --text: #faf7f1;
  --attention: #ffd9a0;
  --canvas: #000;
  --surface-1: #111110;
  --surface-2: #161513;
  --well: #0b0b0a;
  --selected-ink: #1b160d;
  --row-hover: rgba(250, 247, 241, .06);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --r-ctl: 12px;
  --r-card: 20px;
  --r-pill: 999px;
  --fs-caption: .75rem;
  --fs-foot: .875rem;
  --fs-body: 1.0625rem;
  --fs-callout: 1.125rem;
  --fs-t3: 1.375rem;
  --fs-t2: 1.75rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 280px;
  background: var(--canvas);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.55;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
code {
  font-size: .9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
main:focus,
h1:focus,
.alerta:focus,
.resumo-erros:focus {
  outline: none;
}
.alerta:focus-visible,
.resumo-erros:focus-visible,
h1:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.botao {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-foot);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition:
    background-color 160ms,
    border-color 160ms,
    color 160ms,
    filter 160ms;
}
.botao-cheio {
  width: 100%;
}
.botao-primario {
  background: var(--amber);
  color: var(--canvas);
}
.botao-primario:hover {
  filter: brightness(1.1);
}
.botao-primario:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 2px var(--canvas);
}
.botao-contorno {
  background: transparent;
  border-color: var(--ctl);
  color: var(--text);
}
.botao-contorno:hover {
  background: var(--row-hover);
  border-color: var(--text);
}
.botao[aria-disabled=true] {
  cursor: not-allowed;
}
.botao-primario[aria-disabled=true] {
  opacity: .7;
}
.botao-primario[aria-disabled=true]:hover {
  filter: none;
  background: var(--amber);
}
.botao-contorno[aria-disabled=true],
.botao-contorno[aria-disabled=true]:hover {
  background: transparent;
  border-color: var(--ctl);
  color: var(--muted);
}
.botao-texto {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 44px;
  padding: 0 var(--s-2);
  border: 0;
  background: none;
  color: var(--text);
  font-size: var(--fs-foot);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.botao-texto:hover {
  color: var(--amber);
}
.botao-icone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ctl);
  border-radius: var(--r-pill);
  background: transparent;
}
.botao-icone:hover {
  background: var(--row-hover);
}
.girando {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: girar .8s linear infinite;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
.entrada {
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: var(--s-5) var(--s-4);
}
@media (min-width: 640px) {
  .entrada {
    place-items: center;
    padding: var(--s-6);
  }
}
.cartao-entrada {
  width: 100%;
  max-width: 440px;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.entrada-logo {
  width: 96px;
  height: auto;
}
.entrada-titulo {
  font-size: var(--fs-t2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.entrada-texto {
  color: var(--muted);
}
.botao-voltar {
  justify-self: start;
  margin-left: calc(var(--s-2) * -1);
}
.reenvio .botao {
  width: 100%;
}
.campo {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.campo-rotulo {
  font-weight: 600;
}
.campo-ajuda {
  color: var(--muted);
  font-size: var(--fs-foot);
}
.campo-erro {
  color: var(--attention);
  font-size: var(--fs-foot);
  font-weight: 600;
}
.entrada-campo {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--ctl);
  border-radius: var(--r-ctl);
  background: var(--well);
  color: var(--text);
  font-size: var(--fs-body);
}
.entrada-campo:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.entrada-campo[aria-invalid=true] {
  border: 2px dashed var(--amber);
}
.campo-com-botao {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.campo-com-botao .entrada-campo {
  flex: 1;
  min-width: 0;
}
.resumo-erros {
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--attention);
  border-radius: var(--r-ctl);
  color: var(--attention);
}
.resumo-titulo {
  font-weight: 700;
}
.resumo-erros ul {
  margin-top: var(--s-1);
  padding-left: var(--s-4);
  list-style: disc;
}
.resumo-erros a {
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  min-height: 24px;
}
.alerta {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: var(--fs-foot);
}
.alerta-lista {
  margin-top: var(--s-2);
  padding-left: var(--s-4);
  list-style: disc;
}
.alerta .botao-texto {
  color: inherit;
  min-height: 44px;
}
.selo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 28px;
  padding: 0 var(--s-3);
  border: 1px solid var(--ctl);
  border-radius: var(--r-pill);
  font-size: var(--fs-foot);
  font-weight: 600;
  white-space: nowrap;
}
.conteudo {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  padding: var(--s-5) var(--s-4);
}
@media (min-width: 640px) {
  .conteudo {
    padding-inline: var(--s-5);
  }
}
@media (min-width: 1024px) {
  .conteudo {
    padding-inline: var(--s-6);
    padding-block: var(--s-6);
  }
}
.vazio {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  max-width: 560px;
  padding: var(--s-6) 0;
  color: var(--muted);
}
.vazio-titulo {
  color: var(--text);
  font-size: var(--fs-t3);
  font-weight: 600;
}
.vazio-texto {
  color: var(--muted);
}
.vazio-texto strong {
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: #77746d;
    --hairline: #77746d;
  }
  .botao-contorno {
    border-color: var(--amber);
  }
}
@media (forced-colors: active) {
  .botao,
  .botao-icone,
  .entrada-campo,
  .selo,
  .alerta {
    border: 1px solid CanvasText;
  }
  .botao[aria-disabled=true] {
    color: GrayText;
    border-color: GrayText;
  }
  :focus-visible {
    outline-color: Highlight;
  }
}
.dialogo {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-1);
  color: var(--text);
}
.dialogo::backdrop {
  background: rgba(0, 0, 0, .6);
}
.dialogo-titulo {
  margin-bottom: var(--s-4);
  font-size: var(--fs-t3);
  font-weight: 600;
  line-height: 1.25;
}
.dialogo-botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.dialogo app-alerta {
  display: block;
  margin-bottom: var(--s-4);
}
.logo {
  mix-blend-mode: lighten;
}
.foto-removida,
.foto-removida-lista {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
}
.foto-removida .bloco,
.foto-removida-lista .bloco {
  display: block;
}

/* src/styles.css */
.painel {
  padding: var(--s-5);
  margin-bottom: var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.painel h2 {
  margin-bottom: var(--s-3);
  font-size: var(--fs-t3);
  font-weight: 600;
}
.painel p {
  color: var(--muted);
}
.painel .valor {
  color: var(--amber);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.saudacao {
  margin-bottom: var(--s-4);
  font-size: var(--fs-body);
}
.cartoes-resumo {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .cartoes-resumo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cartoes-resumo .painel {
  margin: 0;
}
.esqueleto {
  height: 48px;
  margin-bottom: var(--s-2);
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  animation: pulso 1.6s ease-in-out infinite;
}
@keyframes pulso {
  50% {
    opacity: .55;
  }
}
.selo-pessoa-conta {
  overflow-wrap: anywhere;
}
.segmentos {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: var(--s-1);
  margin-bottom: var(--s-4);
  border: 1px solid var(--ctl);
  border-radius: var(--r-pill);
}
.segmento {
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-foot);
  font-weight: 600;
}
.segmento:hover {
  background: var(--row-hover);
  color: var(--text);
}
.segmento[aria-pressed=true] {
  background: var(--selected-ink);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--amber);
}
@media (max-width: 639px) {
  .segmentos {
    max-width: 100%;
    border-radius: var(--r-ctl);
  }
  .segmento {
    flex: 1 1 auto;
    padding-inline: var(--s-3);
  }
}
.barra-ferramentas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.barra-ferramentas .segmentos {
  margin-bottom: 0;
}
.grupo-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-foot);
}
.tabela th,
.tabela td {
  padding: var(--s-3);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hairline);
  overflow-wrap: break-word;
}
.tabela .nao-quebra {
  white-space: nowrap;
}
.tabela thead th {
  position: sticky;
  top: 0;
  background: var(--surface-1);
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tabela tbody tr:hover {
  background: var(--row-hover);
}
.tabela tbody th {
  font-weight: 600;
}
@media (max-width: 1023px) {
  .tabela,
  .tabela tbody,
  .tabela tr,
  .tabela th,
  .tabela td {
    display: block;
  }
  .tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tabela tbody tr {
    margin-bottom: var(--s-3);
    padding: var(--s-3);
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r-ctl);
  }
  .tabela th,
  .tabela td {
    padding: var(--s-1) 0;
    border: 0;
  }
  .tabela .nao-quebra {
    white-space: normal;
  }
  .tabela td[data-rotulo]::before {
    content: attr(data-rotulo) ": ";
    color: var(--muted);
  }
  .tabela tbody th {
    font-size: var(--fs-body);
  }
  .tabela tbody tr:hover {
    background: var(--surface-1);
  }
}
.selo-pequeno {
  margin-left: var(--s-2);
  min-height: 24px;
  padding: 0 var(--s-2);
  font-size: var(--fs-caption);
}
.selo-tracejado {
  border-style: dashed;
}
.selo-atencao {
  border-color: var(--attention);
  color: var(--attention);
}
.selo-apagado {
  border-color: transparent;
  background: var(--surface);
  color: var(--muted);
}
.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-2);
}
.acoes .botao-texto {
  padding: 0 6px;
  font-size: var(--fs-foot);
  white-space: nowrap;
}
.botao-texto[aria-disabled=true] {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}
.sem-quebra {
  white-space: nowrap;
}
.nota {
  color: var(--muted);
  font-size: var(--fs-foot);
}
.nota-linha {
  display: block;
}
.nota-pre {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.link-voltar {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.toast {
  position: fixed;
  z-index: 50;
  right: var(--s-4);
  bottom: var(--s-4);
  left: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--ctl);
  border-radius: var(--r-ctl);
  font-size: var(--fs-foot);
}
@media (min-width: 640px) {
  .toast {
    left: auto;
    max-width: 420px;
  }
}
.campo-dupla {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 480px) {
  .campo-dupla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ajuda-dialogo {
  margin-bottom: var(--s-3);
  color: var(--muted);
  font-size: var(--fs-foot);
}
.detalhes {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  margin: 0 0 var(--s-3);
  font-size: var(--fs-foot);
}
.detalhes dt {
  color: var(--muted);
}
.detalhes dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 479px) {
  .detalhes {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .detalhes dd {
    margin-bottom: var(--s-2);
  }
}
.miniaturas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
}
.miniatura {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.miniatura:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.miniatura .foto-quadro {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #161513;
  display: grid;
  place-items: center;
}
.foto-quadro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1023px) {
  .miniatura,
  .miniatura .foto-quadro {
    width: 64px;
    height: 64px;
  }
}

/* angular:styles/global:styles */
