/* Estilos compartilhados da área de membros e do painel da Graça (usa os tokens de style.css) */
.painel-body { background: var(--bege); min-height: 100vh; }
.painel-topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--petroleo); color: var(--branco); }
.painel-topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.painel-topo .marca-nome { color: var(--branco); font-size: 1.3rem; }
.painel-topo .marca-sub { color: var(--ouro); }
.painel-topo a, .painel-topo button.link { color: #dfe9ea; font-size: .85rem; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: var(--sans); }
.painel-topo a:hover, .painel-topo button.link:hover { color: var(--ouro); }
body.painel-body::before { background: var(--petroleo); }

.aviso-demo { background: #fff4d6; color: #6b5214; font-size: .82rem; text-align: center; padding: 8px 16px; }

.abas { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--bege-esc); margin: 24px 0; scrollbar-width: none; }
.abas button { flex: 0 0 auto; font: inherit; font-size: .9rem; font-weight: 500; padding: 12px 16px; border: 0; background: none; color: var(--suave); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.abas button[aria-selected="true"] { color: var(--petroleo); border-bottom-color: var(--ouro); font-weight: 600; }
.abas button:focus-visible { outline: 2px solid var(--ouro); outline-offset: -2px; }

.painel-main { padding-block: 8px 80px; }
.painel-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .2em; }
.painel-main h2 { font-size: 1.6rem; }
.sub { color: var(--suave); margin-bottom: 0; }

.bloco { background: var(--branco); border-radius: var(--raio); padding: 24px; box-shadow: 0 8px 24px rgba(29, 74, 90, .06); min-width: 0; }
.bloco + .bloco { margin-top: 20px; }
.bloco-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bloco-cab h2, .bloco-cab h3 { margin: 0; }
.grade-blocos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grade-blocos > * { min-width: 0; }
.grade-blocos .bloco + .bloco { margin-top: 0; }

.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.numero { background: var(--branco); border-radius: var(--raio); padding: 18px 20px; box-shadow: 0 8px 24px rgba(29, 74, 90, .06); }
.numero b { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--petroleo); line-height: 1.1; font-variant-numeric: tabular-nums; }
.numero span { font-size: .8rem; color: var(--suave); }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bege-esc); flex-wrap: wrap; }
.lista li:last-child { border-bottom: 0; }
.lista .info { min-width: 0; flex: 1 1 220px; }
.lista .info strong { display: block; color: var(--petroleo); }
.lista .info small { color: var(--suave); }
.acoes { display: flex; gap: 6px; flex-wrap: wrap; }

.mini { font: inherit; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--bege-esc); background: var(--branco); color: var(--petroleo); cursor: pointer; text-decoration: none; display: inline-block; }
.mini:hover { border-color: var(--petroleo); }
.mini.ok { background: #e3f3ea; border-color: #b9dfc8; color: #1f6b44; }
.mini.perigo { color: #a33a2a; }
.mini.cheio { background: var(--petroleo); border-color: var(--petroleo); color: var(--branco); }

.estado { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.estado.pendente { background: #fff1d1; color: #7a5a10; }
.estado.confirmado { background: #e3f3ea; color: #1f6b44; }
.estado.cancelado { background: #f6e1dd; color: #8a3324; }
.estado.rascunho { background: var(--bege-esc); color: var(--suave); }
.estado.publicado { background: #e3f3ea; color: #1f6b44; }
.estado.aovivo { background: #c0392b; color: #fff; }

.vazio { text-align: center; color: var(--suave); padding: 28px 12px; }
.vazio strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--petroleo); margin-bottom: 4px; }

.campo-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.campo select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--bege-esc); border-radius: 10px; font: inherit; font-size: 1rem; background: var(--bege); color: var(--texto); }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--petroleo); }

.barra { height: 8px; border-radius: 99px; background: var(--bege-esc); overflow: hidden; margin: 8px 0 4px; }
.barra i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }

.login-caixa { max-width: 440px; margin: 48px auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--petroleo-esc); color: var(--branco); padding: 12px 20px; border-radius: 999px; font-size: .9rem; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }

.tabela-rolagem { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabela th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); padding: 8px 10px; border-bottom: 1px solid var(--bege-esc); white-space: nowrap; }
.tabela td { padding: 12px 10px; border-bottom: 1px solid var(--bege-esc); vertical-align: top; }
.tabela tr:hover td { background: #fbf7f0; }

.barras-h { display: grid; gap: 10px; }
.barras-h div { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; }
.barras-h span:first-child { color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barras-h .trilho { height: 10px; background: var(--bege-esc); border-radius: 99px; overflow: hidden; }
.barras-h .trilho i { display: block; height: 100%; background: var(--teal); }
.barras-h b { text-align: right; font-variant-numeric: tabular-nums; color: var(--petroleo); }

.grafico-dias { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.grafico-dias div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.grafico-dias i { width: 100%; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 2px; }
.grafico-dias small { font-size: .62rem; color: var(--suave); }

@media (max-width: 600px) {
  .bloco { padding: 18px; }
  .barras-h div { grid-template-columns: 90px 1fr 32px; }
}

/* Entrar / Criar conta */
.alternar { display: flex; gap: 4px; margin-top: 20px; background: var(--bege-esc); border-radius: 999px; padding: 4px; }
.alternar button { flex: 1; font: inherit; font-size: .88rem; font-weight: 600; padding: 10px; border: 0; border-radius: 999px; background: none; color: var(--suave); cursor: pointer; }
.alternar button[aria-selected="true"] { background: var(--branco); color: var(--petroleo); }
