:root {
  color-scheme: light;
  --fundo: #f8f7f4;
  --branco: #fff;
  --texto: #252d28;
  --suave: #565f58;
  --verde: #245747;
  --verde-escuro: #193f33;
  --verde-claro: #e7f1eb;
  --borda: #dedfd8;
  --fonte-titulos: 'Arial Black', Arial, sans-serif;
  font-family: Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; text-transform: uppercase; }
a { color: var(--verde); }
button, input { font: inherit; text-transform: inherit; }
:focus-visible { outline: 3px solid #40866c; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--fonte-titulos); font-weight: 900; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3.25rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.65rem); letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
.suave { color: var(--suave); }
.largura { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.conteudo { padding-block: clamp(2rem, 6vw, 4.25rem) 4rem; }
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: 1.15rem; }

.barra { background: var(--branco); border-bottom: 1px solid var(--borda); }
.barra-conteudo { min-height: 4.85rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.marca { display: inline-flex; align-items: center; gap: .6rem; color: var(--texto); font-family: var(--fonte-titulos); font-size: clamp(.85rem, 3.3vw, 1.2rem); font-weight: 900; text-decoration: none; }
.selo { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--verde); color: white; flex: none; }
.selo-grande { width: 3.25rem; height: 3.25rem; border-radius: 1rem; font-size: 1.65rem; }

.botao { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .65rem; color: inherit; font-size: .94rem; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.25; }
.botao span { font-size: 1.25rem; line-height: 1; }
.primario { color: white; background: var(--verde); }
.primario:hover { background: var(--verde-escuro); }
.discreto { color: var(--verde); background: var(--branco); border-color: var(--borda); }
.discreto:hover { background: var(--verde-claro); }
.excluir { color: #852e26; }
.excluir:hover { background: #fff1ed; }
.perigo { color: white; background: #852e26; }
.perigo:hover { background: #6f241e; }
.voltar { display: inline-flex; align-items: center; min-height: 2.75rem; margin: -.5rem 0 .6rem; font-size: .94rem; font-weight: 650; text-underline-offset: .2em; }

.login { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 1rem; background: radial-gradient(ellipse at 50% 20%, #e1eee5, transparent 67%), var(--fundo); }
.login-cartao { width: min(100%, 28rem); padding: clamp(1.4rem, 7vw, 2.75rem); box-shadow: 0 1.4rem 4rem #243d2c13; }
.login-cartao h1 { margin: 1.1rem 0 .5rem; }
.login-cartao .formulario { margin-top: 1.5rem; }
.login-cartao .formulario button { margin-top: .3rem; }
.login-cartao .erro { margin-block: 1rem 0; }

.boas-vindas { margin-bottom: 1.8rem; }
.atalhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.atalho { display: block; min-height: 12rem; padding: 1.5rem; text-decoration: none; color: var(--texto); }
.atalho:hover { border-color: #81a494; background: #fcfefc; }
.atalho h2 { margin: .95rem 0 .4rem; }
.icone { display: grid; place-items: center; width: 3.05rem; height: 3.05rem; border-radius: .85rem; }
.icone-pagamentos { color: var(--verde); background: var(--verde-claro); font-weight: 700; }
.icone-convidados { color: #7b4a31; background: #f7eade; }
.icone-convidados span { position: relative; display: block; width: 1.45rem; height: .65rem; margin-top: .65rem; border: 2px solid currentColor; border-radius: 60% 60% 30% 30%; }
.icone-convidados span::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: .5rem; height: .5rem; margin-bottom: .12rem; border: 2px solid currentColor; border-radius: 50%; transform: translateX(-50%); }

.titulo-acoes { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; }
.painel, .lista { margin-top: 1.25rem; }
.painel { padding: clamp(1rem, 4vw, 1.55rem); }
.painel > .formulario { margin-top: 1.2rem; }
.vazio { padding: 2.3rem 1.25rem; color: var(--suave); text-align: center; }
.conteudo > h1 + .vazio { margin-top: 1.25rem; }
.formulario, .formulario label { display: grid; gap: .5rem; }
.formulario { gap: 1rem; }
.formulario label { align-content: start; font-size: .94rem; font-weight: 650; }
.formulario input:not([type=hidden]) { display: block; width: 100%; min-width: 0; height: 2.85rem; padding: .6rem .75rem; color: var(--texto); font-size: 1rem; font-weight: 400; border: 1px solid #c8cdc5; border-radius: .6rem; background: var(--branco); }
.campo-moeda { position: relative; }
.campo-moeda > span { position: absolute; top: 50%; left: .75rem; transform: translateY(-50%); color: var(--suave); pointer-events: none; }
.campo-moeda input:not([type=hidden]) { padding-left: 2.4rem; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.campos-contrato { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.acoes { display: flex; flex-wrap: wrap; gap: .55rem; }
.erro { margin-top: .75rem; padding: .6rem .85rem; color: #852e26; background: #fff1ed; border-radius: .55rem; }

.lista { overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f0f3ee; color: var(--suave); }
td, th { padding: .95rem 1.15rem; }
thead th { font-size: .9rem; }
tbody tr { border-top: 1px solid var(--borda); }
tbody td, tfoot td { font-variant-numeric: tabular-nums; }
.contratos th[scope=row] { width: 34%; }
.contratos th[scope=row] a { color: var(--texto); text-underline-offset: .17em; overflow-wrap: anywhere; }
.contratos tr[data-destino] { cursor: pointer; }
.contratos tr[data-destino]:hover, .contratos tr[data-destino]:focus-within { background: #f4f8f5; }
.contratos tfoot { border-top: 1px solid var(--borda); background: #e7f1eb; font-weight: 700; }
.pago { color: var(--verde); font-weight: 650; }
.resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.3rem 0 0; }
.resumo div { padding: .9rem 1rem; }
.resumo dt { color: var(--suave); font-size: .9rem; }
.resumo dd { margin: .22rem 0 0; font-size: clamp(1rem, 2.7vw, 1.4rem); font-weight: 650; overflow-wrap: anywhere; }
.historico table { margin-top: 1rem; }
.historico-vazio { margin-top: 1rem; }
.novo-pagamento { padding: 1rem; margin-top: 1rem; background: #f2f6f2; border-radius: .75rem; }
.novo-pagamento .formulario { margin-top: .7rem; }
.confirmar-exclusao { background: #fff1ed; }
.confirmar-exclusao p { margin-block: .6rem .8rem; }

@media (max-width: 42rem) {
  .atalhos { grid-template-columns: 1fr; }
  .atalho { min-height: auto; }
}

@media (max-width: 50rem) {
  .contratos, .contratos tbody, .contratos tfoot { display: block; }
  .contratos thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .contratos :is(tbody, tfoot) tr { display: grid; padding: .85rem 1rem; }
  .contratos tbody tr:first-child { border-top: 0; }
  .contratos th[scope=row] { width: auto; padding: 0 0 .45rem; }
  .contratos td[data-rotulo] { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; }
  .contratos td[data-rotulo]::before { content: attr(data-rotulo); color: var(--suave); font-size: .9rem; font-weight: 400; }
  .contratos-acoes { padding: .6rem 0 0; }
  .contratos tfoot td:empty { display: none; }
}

@media (max-width: 30rem) {
  .barra-conteudo > form .botao { padding-inline: .55rem; font-size: .8rem; }
  .campos { grid-template-columns: 1fr; }
  .resumo { grid-template-columns: 1fr; gap: .5rem; }
  .resumo div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
  .resumo dd { margin: 0; text-align: right; }
  .historico :is(th, td) { padding: .55rem .3rem; }
  .historico-acoes .botao { padding-inline: .45rem; font-size: .8rem; }
}
