/* Base mínima do portal — identidade visual entra depois. */

:root {
    --cor-texto: #1f2328;
    --cor-fundo: #f6f5f2;
    --cor-destaque: #6b5b45;
    --largura-max: 40rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--cor-texto);
    background: var(--cor-fundo);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cabecalho,
.conteudo,
.rodape {
    width: 100%;
    max-width: var(--largura-max);
    margin: 0 auto;
    padding: 1rem;
}

.cabecalho h1 {
    margin-bottom: 0;
}

.cabecalho p {
    margin-top: 0;
    color: var(--cor-destaque);
}

.conteudo {
    flex: 1;
}

.consulta-cnpj form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.consulta-cnpj input {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #c8c4bc;
    border-radius: 4px;
}

.consulta-cnpj button {
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background: var(--cor-destaque);
    color: #fff;
    cursor: pointer;
}

.aviso {
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    background: #fbeae5;
    border: 1px solid #e0b4a6;
    color: #7a2e1a;
}

.lista-unidades {
    padding-left: 1.2rem;
}

/* Painel da unidade */

.sessao-aviso {
    font-size: 0.9rem;
    color: #6e6a63;
}

.unidade {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd9d1;
}

.linha-do-tempo {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.etapa {
    flex: 1 1 8rem;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #c8c4bc;
    background: #efece6;
    color: #6e6a63;
}

.etapa--concluido {
    background: #e3efe3;
    border-color: #a9cfa9;
    color: #2f6b2f;
}

.etapa--atual {
    background: var(--cor-destaque);
    border-color: var(--cor-destaque);
    color: #fff;
    font-weight: 600;
}

.botao-checklist {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    background: var(--cor-destaque);
    color: #fff;
    text-decoration: none;
}

.documentos h3 {
    margin-bottom: 0.5rem;
}

.aviso--vencimento {
    background: #fdf3e0;
    border-color: #e6c48a;
    color: #7a5a1a;
}

.lista-documentos {
    list-style: none;
    padding: 0;
}

.documento {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-top: 1px solid #ece9e2;
}

.documento-validade {
    font-size: 0.85rem;
    color: #6e6a63;
}

.documento-estado--vencido {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a2e1a;
    text-transform: uppercase;
}

.documento-estado--bloqueado {
    font-size: 0.8rem;
    color: #6e6a63;
}

.rodape {
    font-size: 0.85rem;
    color: #6e6a63;
}
