/* Painel da plataforma e sistema dos campos. Sem dependencias externas. */
:root {
    --fundo: #f4f5f7; --cartao: #fff; --texto: #1d2129; --suave: #646b78; --borda: #dfe2e8;
    --destaque: #1f6feb; --destaque-texto: #fff; --ok: #1a7f37; --ok-fundo: #e6f4ea; --erro: #b42318; --erro-fundo: #fdecea;
    --raio: 8px;
}
@media (prefers-color-scheme: dark) {
    :root { --fundo: #0f1115; --cartao: #181b21; --texto: #e6e8eb; --suave: #9aa1ad; --borda: #2a2f38;
        --destaque: #4c8dff; --ok: #4ac26b; --ok-fundo: #12261a; --erro: #ff7b72; --erro-fundo: #2c1414; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
a { color: var(--destaque); }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.topo { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.25rem; background: var(--cartao); border-bottom: 1px solid var(--borda); }
.marca { font-weight: 600; color: var(--texto); text-decoration: none; }
.quem { color: var(--suave); font-size: .9rem; }
.corpo { display: flex; min-height: calc(100vh - 50px); }
.menu { width: 200px; flex-shrink: 0; padding: 1rem .5rem; border-right: 1px solid var(--borda); background: var(--cartao); }
.menu a { display: block; padding: .5rem .75rem; border-radius: var(--raio); color: var(--texto); text-decoration: none; }
.menu a.ativo, .menu a:hover { background: var(--fundo); }
main { flex: 1; padding: 1.5rem; max-width: 1100px; min-width: 0; }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.25rem; margin-bottom: 1rem; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grade > .cartao { margin-bottom: 0; }
.numero { font-size: 1.8rem; font-weight: 600; }
.rotulo, .suave { color: var(--suave); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { font-size: .85rem; color: var(--suave); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
label { display: block; margin-bottom: .9rem; font-size: .9rem; color: var(--suave); }
input[type=text], input[type=email], input[type=password], select, textarea {
    display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; font: inherit; color: var(--texto);
    background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); }
label.opcao { display: inline-flex; gap: .4rem; align-items: center; margin-right: 1rem; color: var(--texto); }
button, .botao { display: inline-block; padding: .55rem 1rem; font: inherit; font-weight: 500; color: var(--destaque-texto);
    background: var(--destaque); border: 0; border-radius: var(--raio); cursor: pointer; text-decoration: none; }
button.secundario { background: transparent; color: var(--texto); border: 1px solid var(--borda); }
.aviso { padding: .7rem 1rem; border-radius: var(--raio); }
.aviso-ok { background: var(--ok-fundo); color: var(--ok); }
.aviso-erro { background: var(--erro-fundo); color: var(--erro); }
.etiqueta { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .8rem; background: var(--fundo); border: 1px solid var(--borda); }
.etiqueta-ativo { color: var(--ok); } .etiqueta-suspenso, .etiqueta-cancelado { color: var(--erro); }
.linha { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
code { font-size: .9em; background: var(--fundo); padding: .1rem .35rem; border-radius: 4px; }
.tela-entrar { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.entrar { width: 100%; max-width: 360px; }
.entrar button { width: 100%; }
@media (max-width: 720px) {
    .corpo { flex-direction: column; }
    .menu { width: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--borda); padding: .5rem; }
    .menu a { white-space: nowrap; }
    main { padding: 1rem; }
    .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .cartao { padding: .85rem; }
    .numero { font-size: 1.4rem; }
    table { display: block; overflow-x: auto; }
}

/* Busca com lista de resultados (tela do jogo) */
.lista-busca { border: 1px solid var(--borda); border-radius: var(--raio); background: var(--cartao); margin: -.5rem 0 1rem; max-height: 280px; overflow-y: auto; }
.lista-busca button { display: block; width: 100%; text-align: left; background: none; color: var(--texto); border: 0; border-bottom: 1px solid var(--borda); border-radius: 0; padding: .6rem .75rem; font-weight: 400; }
.lista-busca button:hover { background: var(--fundo); }
.lista-busca button:last-child { border-bottom: 0; color: var(--destaque); }
input[type=date], input[type=datetime-local] { display: block; width: 100%; margin-top: .25rem; padding: .5rem .7rem; font: inherit; color: var(--texto); background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); }
form.linha label input, form.linha label select { margin-top: .15rem; }
