/* Leaf Up — ambiente de gestão. Paleta petróleo aprovada em 31/10.
   Verde (#C5D200) só em botão, marca e barra: nunca texto sobre o petróleo. */
:root {
  --petroleo: #0F3D4C;
  --petroleo-fundo: #0C3240;
  --petroleo-claro: #14556B;
  --borda: #1C5064;
  --borda-forte: #27657A;
  --verde: #C5D200;
  --preto: #1A1A1A;
  --texto: #E8F2F5;
  --texto-fraco: #B9D2DB;
  --texto-rotulo: #9FC0CB;
  --texto-apagado: #8FB2BE;
  --atencao: #E8A33D;
}

* { box-sizing: border-box; }

/* vem antes de tudo: sem isto, um display: flex esconde o "esconder" */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Figtree, system-ui, -apple-system, sans-serif;
  background: var(--petroleo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; }
.marca-leaf { font-size: 26px; font-weight: 700; color: #fff; }
.marca-up { font-size: 26px; font-weight: 300; color: var(--verde); letter-spacing: 0.16em; }
.marca-pequena .marca-leaf, .marca-pequena .marca-up { font-size: 19px; }

/* ---------- entrar ---------- */
.entrar { display: flex; min-height: 100vh; flex-wrap: wrap; }

.entrar-marca {
  flex: 1 1 420px;
  max-width: 560px;
  position: relative;
  overflow: hidden;
  background: var(--petroleo-fundo);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 48px;
}
.entrar-marca::before,
.entrar-marca::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--petroleo-claro);
  pointer-events: none;
  /* os círculos são enfeite: ficam atrás do texto, nunca por cima.
     Sem isto o círculo pequeno (::after) pinta depois da frase e come a última linha. */
  z-index: 0;
}
.entrar-marca::before { left: -180px; bottom: -120px; width: 420px; height: 420px; }
.entrar-marca::after { left: 120px; bottom: 180px; width: 200px; height: 200px; }
.entrar-marca > * { position: relative; z-index: 1; }

.entrar-frase h1 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 600; color: #fff; }
.entrar-frase p { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--texto-fraco); max-width: 400px; }
.entrar-rodape { margin: 0; max-width: 150px; font-size: 12px; line-height: 1.5; color: #7FA3AF; }
/* o Arthur acena do canto, cortado na cintura pela borda do painel */
.entrar-arthur { position: absolute; right: -30px; bottom: -120px; width: 420px; height: auto; }

.entrar-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px; }
.entrar-form form { width: 100%; max-width: 360px; }
.entrar-form h2 { margin: 0; font-size: 28px; font-weight: 600; color: #fff; }
.sub { margin: 8px 0 36px; font-size: 14px; color: var(--texto-fraco); }
.nota { margin: 32px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--texto-apagado); }

.campo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.campo label { font-size: 13px; font-weight: 500; color: #D6E6EC; }
input[type="text"], input[type="password"], input[type="tel"], select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--borda-forte);
  background: var(--petroleo-fundo);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
input:focus-visible, select:focus-visible, button:focus-visible, .link:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.botao-verde {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: var(--verde);
  color: var(--preto);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.botao-verde:disabled { opacity: 0.6; cursor: progress; }
.botao-verde.pequeno { width: auto; height: 36px; padding: 0 16px; margin: 0; font-size: 13.5px; }

.botao-vazado {
  height: 40px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid var(--borda-forte);
  background: transparent;
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.botao-vazado:disabled { opacity: 0.5; cursor: progress; }

.erro { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: #5A2A14; color: #FFE4CC; font-size: 13.5px; }

/* ---------- topo ---------- */
.topo {
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topo-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.link {
  border: none;
  background: none;
  padding: 0;
  color: #D6E6EC;
  font-size: 13px;
  cursor: pointer;
}
.link:hover { color: #fff; }
.link[aria-current="page"] { color: #fff; font-weight: 600; }
.divisor { width: 1px; height: 18px; background: var(--borda); }
.quem { font-size: 13px; color: var(--texto-fraco); }

/* ---------- conteúdo ---------- */
.conteudo { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 22px; }
.carregando { color: var(--texto-fraco); font-size: 14px; }
.voltar { align-self: flex-start; }
.titulo-pagina { margin: 10px 0 0; font-size: 30px; font-weight: 600; color: #fff; }

.cartao { padding: 22px 24px; border-radius: 14px; background: var(--petroleo-fundo); border: 1px solid var(--borda); }
.cartao h2 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.cartao .explica { margin: 6px 0 16px; font-size: 13px; line-height: 1.55; color: var(--texto-fraco); }

.colunas { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tres { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pilha { display: flex; flex-direction: column; gap: 20px; }

.rotulo { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--texto-rotulo); text-transform: uppercase; letter-spacing: 0.08em; }
.numerao { margin: 10px 0 0; font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.abaixo { margin: 8px 0 0; font-size: 13px; color: var(--texto-fraco); }

.barra { margin-top: 10px; height: 7px; border-radius: 4px; background: var(--borda); overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--verde); }
.barra.estourou > span { background: var(--atencao); }

.situacao { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); flex-shrink: 0; }
.ponto.parado { background: var(--atencao); }
.situacao-texto { display: flex; align-items: center; gap: 14px; }
.situacao-texto strong { font-size: 17px; font-weight: 600; color: #fff; display: block; }
.situacao-texto span { font-size: 13px; color: var(--texto-fraco); }

/* ---------- tabela ---------- */
.rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 500; color: var(--texto-rotulo); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
td { padding: 16px; color: #D6E6EC; }
tbody tr { border-top: 1px solid #16465A; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; text-align: right; }
.nome-empresa { color: #fff; font-weight: 500; background: none; border: none; padding: 0; font-size: 14px; cursor: pointer; text-align: left; }
.nome-empresa:hover { text-decoration: underline; }

.selo { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--borda); color: var(--texto); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.selo.atencao { background: var(--atencao); color: var(--preto); }
.selo.verde { background: var(--verde); color: var(--preto); }
.selo.suspensa { background: #7A3A1C; color: #FFE4CC; }
td .selo + .secundaria { margin: 6px 0 0; }

input[type="date"] {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--borda-forte);
  background: var(--petroleo-fundo); color: #fff;
  font-family: inherit; font-size: 15px;
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.6); cursor: pointer; }

.cabeca-cartao { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--borda); margin-bottom: 4px; }
.cartao.sem-respiro { padding: 22px 0 0; }
.cartao.sem-respiro .cabeca-cartao { padding: 0 24px 18px; }

/* ---------- listas ---------- */
.lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lista > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--petroleo); }
.lista .principal { margin: 0; font-size: 14px; font-weight: 500; color: #fff; }
.lista .secundaria { margin: 2px 0 0; font-size: 12.5px; color: var(--texto-rotulo); }

.entre { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.entre .forte { color: #fff; font-weight: 500; }

.linhas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.linhas > li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.linhas .quando { color: var(--texto-apagado); flex-shrink: 0; }

.recado { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: #15455A; font-size: 13px; line-height: 1.55; color: var(--texto); }

/* ---------- interruptor ---------- */
.interruptor { flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; border: none; background: var(--borda-forte); position: relative; cursor: pointer; padding: 0; }
.interruptor[aria-checked="true"] { background: var(--verde); }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--petroleo-fundo); transition: left 0.15s; }
.interruptor[aria-checked="true"]::after { left: 23px; }
.interruptor:disabled { opacity: 0.5; cursor: progress; }

/* ---------- escolhas (cérebro) ---------- */
.escolhas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.escolha {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 50px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--borda-forte);
  background: transparent; color: #D6E6EC; font-size: 14px; cursor: pointer; text-align: left;
}
.escolha[aria-pressed="true"] { border: 2px solid var(--verde); background: #15455A; color: #fff; font-weight: 600; }
.escolha:disabled { opacity: 0.5; cursor: progress; }

/* ---------- aviso flutuante ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px; border-radius: 12px;
  background: #15455A; border: 1px solid var(--borda-forte);
  color: var(--texto); font-size: 14px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.aviso.ruim { background: #5A2A14; border-color: #7A3A1C; color: #FFE4CC; }

@media (max-width: 760px) {
  /* no celular o Arthur e os círculos ficariam maiores que o bloco: só a frase fica */
  .entrar-arthur,
  .entrar-marca::before,
  .entrar-marca::after { display: none; }
  .entrar-frase h1 { font-size: 34px; }
  .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
  .topo { height: auto; padding-top: 14px; padding-bottom: 14px; }
}
