* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 72px 16px 32px;
}

.container { width: 90%; max-width: 900px; text-align: center; }
.container.estreito { max-width: 420px; }
.container.largo { max-width: 1080px; text-align: left; }

.logo { font-size: 34px; font-weight: 700; margin-bottom: 10px; text-align: center; }
.subtitle { color: #94a3b8; margin-bottom: 28px; font-size: 16px; text-align: center; }

.grupos { display: flex; flex-direction: column; gap: 28px; text-align: left; }
.grupo h2 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.grupo[hidden] { display: none; }
.projetos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 25px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: subir 0.45s ease both;
}

.btn:hover, .entrar:hover {
    transform: translateY(-6px);
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.btn:focus-visible, .entrar:focus-visible, .acao:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.icone { font-size: 38px; display: block; margin-bottom: 12px; }
.btn-content { display: flex; flex-direction: column; align-items: center; }
.area { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.btn:hover .area { color: #dbeafe; }
.btn { position: relative; }
.btn-aviso {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #d7bc7a;
    color: #0f2747;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    box-shadow: 0 0 0 3px rgba(215, 188, 122, .3);
    animation: aviso-pulso 2s ease-in-out infinite;
}
@keyframes aviso-pulso {
    0%, 100% { box-shadow: 0 0 0 3px rgba(215, 188, 122, .3); }
    50% { box-shadow: 0 0 0 7px rgba(215, 188, 122, .12); }
}
.aviso-modulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(248, 241, 223, .96);
    border: 1px solid #d7bc7a;
    color: #0f2747;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.aviso-modulo:hover { background: #fff; }
.aviso-modulo span:nth-child(2) { flex: 1 1 auto; font-weight: 500; }
.aviso-modulo strong { color: #1a4578; white-space: nowrap; }
.aviso-modulo-n {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #1a4578;
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
}
@media (prefers-reduced-motion: reduce) { .btn-aviso { animation: none; } }

.footer { margin-top: 40px; color: #64748b; font-size: 13px; text-align: center; }
.aviso {
    margin-top: 28px;
    color: #fcd34d;
    font-size: 13px;
    line-height: 1.45;
}

body.portal-home {
    font-family: Outfit, "Segoe UI", sans-serif;
    background:
        radial-gradient(640px 320px at 50% 36px, rgba(232, 206, 140, .14), transparent 70%),
        radial-gradient(980px 460px at 50% -140px, rgba(150, 196, 245, .22), transparent 62%),
        linear-gradient(165deg, #1a4578 0%, #25609a 48%, #173e6e 100%);
}

.abertura {
    position: relative;
    margin: 0 auto 30px;
    padding: 28px 28px 22px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03) 46%, rgba(18, 52, 96, .12));
    border: 1px solid rgba(214, 192, 138, .32);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 244, 214, .28);
}

.abertura::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0e0b4, transparent);
}

.marca { margin: 0 auto 16px; }

.marca-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 24px;
    background: #0c1428;
    object-fit: contain;
    box-shadow:
        0 0 0 2px #d7bc7a,
        0 0 0 7px #121a2e,
        0 0 0 8px rgba(215, 188, 122, .7),
        0 18px 36px rgba(0, 0, 0, .4);
}

.marca-kicker {
    margin: 0;
    color: #d7bc7a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .42em;
    text-indent: .42em;
    text-transform: uppercase;
}

.marca-anjos {
    display: block;
    margin: 2px 0 0;
    padding: 0 0 .18em;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 76px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #fffef8 8%, #f4e4bc 55%, #c6a15a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marca-fio {
    position: relative;
    width: min(240px, 68%);
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, rgba(215, 188, 122, .95), transparent);
}

.marca-fio::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: #f0e0b4;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 4px #1d4d82;
}

.frase-dia {
    margin: 16px auto 8px;
    max-width: 520px;
    color: #f3ead4;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
}

.abertura .subtitle {
    margin-bottom: 0;
    color: #b7c3d6;
    font-size: 15px;
}

.abertura .subtitle strong {
    color: #fff;
    font-weight: 600;
}

.selo {
    position: fixed;
    top: 18px;
    left: 22px;
    background: rgba(251, 191, 36, .16);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, .45);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.top-actions {
    position: fixed;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quem { text-align: right; margin-right: 6px; }
.quem strong { display: block; font-size: 14px; }
.quem span { color: #94a3b8; font-size: 12px; }

.acao {
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(15, 23, 42, .35);
}
.acao:hover { border-color: #fff; color: #fff; }
.acao-sair:hover { background: #b91c1c; border-color: #b91c1c; }

.busca { display: block; margin: 0 auto 22px; max-width: 360px; }
.busca input, .cartao input, .cartao select {
    width: 100%;
    border: 1px solid #94a3b8;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
    background: #f8fafc;
    min-height: 46px;
}
.cartao input::placeholder { color: #64748b; }
.cartao select { appearance: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.vazio, .erro, .ok, .nota {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.vazio { background: rgba(255,255,255,.08); color: #cbd5e1; }
.erro { background: #fee2e2; color: #991b1b; text-align: left; }
.ok { background: #dcfce7; color: #166534; }
.nota { color: #64748b; font-size: 13px; background: transparent; padding: 8px 0 0; margin: 0; }

.cartao {
    background: #fff;
    color: #0f172a;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: left;
}
.cartao label, .cartao legend { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.cartao input, .cartao select { margin-top: 6px; }
.cartao h2 { font-size: 18px; margin-bottom: 14px; }
.log-filtros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.log-filtros .entrar { align-self: end; }
.log-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.log-tabela th, .log-tabela td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #e2e8f0; }
.log-tabela th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.log-tabela td strong { display: block; }
.log-tabela td span { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.log-tabela td span.log-frase { color: inherit; font-size: 14px; margin-top: 0; line-height: 1.45; }
.log-tabela td span.log-detalhe { color: #334155; font-size: 13px; margin-top: 4px; line-height: 1.45; }
.log-paginas { margin-top: 16px; color: #475569; }
@media (max-width: 800px) {
    .log-filtros { grid-template-columns: 1fr; }
}
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

.entrar {
    width: 100%;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.botoes { display: flex; gap: 10px; align-items: center; }
.botoes .entrar { width: auto; padding: 0 18px; }
.botoes .acao { color: #0f172a; }

body.pagina-cadastro { align-items: flex-start; }
.niveis-box { margin-bottom: 20px; }
.niveis-grade { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 22px; align-items: start; }
.nivel-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e2e8f0; }
.nivel-flags { color: #475569; font-size: 12px; margin-top: 3px; }
.acao-excluir { background: #fff; color: #991b1b; border-color: #fecaca; cursor: pointer; font: inherit; }
.grade-admin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.lista { position: sticky; top: 72px; }
fieldset { border: 0; margin: 8px 0 0; padding: 0; }
.modulos { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; font-weight: 600; }
.chip input { position: absolute; opacity: 0; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
}
.chip input:checked + span { background: #0f172a; color: #fff; border-color: #0f172a; }
.chip input:focus-visible + span { outline: 3px solid #93c5fd; }
fieldset:disabled { opacity: .72; }

.pessoa {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}
.pessoa-topo { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pessoa strong, .pessoa small { display: block; }
.pessoa small, .pessoa-meta { color: #475569; font-size: 12px; }
.pessoa:hover strong { color: #2563eb; }
.pessoa-modulos { display: flex; flex-wrap: wrap; gap: 6px; }
.pessoa-modulos span {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
}

@keyframes subir {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { animation: none; transition: none; }
}

@media (hover: none) {
    .btn:hover, .entrar:hover { transform: none; }
}

@media (max-width: 1100px) {
    body {
        display: block;
        padding:
            max(12px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }
    .container { width: min(100%, 900px); margin: 0 auto; }
    .selo { position: static; display: inline-flex; margin: 0 0 12px; }
    .top-actions {
        position: static;
        width: 100%;
        margin: 0 0 18px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .quem { display: block; text-align: left; margin-right: auto; }
    .acao { min-height: 44px; display: inline-flex; align-items: center; }
    .projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .btn { min-height: 120px; padding: 16px; font-size: 17px; }
    .logo { font-size: 30px; }
    .grade-admin, .niveis-grade { grid-template-columns: 1fr; }
    .lista { position: static; }
    .log-tabela { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .botoes { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .grupos { gap: 18px; }
    .grupo h2 { margin-bottom: 8px; }
    .projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .btn {
        min-height: 108px;
        padding: 14px 8px;
        font-size: 14px;
        line-height: 1.2;
        border-radius: 14px;
    }
    .btn-content {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        width: 100%;
        text-align: center;
    }
    .icone { font-size: 30px; margin-bottom: 0; }
    .subtitle { font-size: 14px; line-height: 1.35; margin-bottom: 14px; }
    .abertura .subtitle { margin-bottom: 0; }
    .logo { font-size: 26px; margin-bottom: 6px; }
    .abertura { padding: 22px 16px 18px; border-radius: 22px; }
    .marca-logo { width: 78px; height: 78px; border-radius: 20px; }
    .marca-anjos { font-size: 58px; }
    .frase-dia { font-size: 22px; }
    .quem { flex: 1 1 100%; margin-right: 0; }
}

body.ficha-aberta {
    display: block;
    margin: 0;
    padding: 64px 0 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 280px at 0% -10%, rgba(180, 160, 108, .28), transparent 55%),
        #f7f3ea;
    color: #1c1915;
    font-family: Inter, "Segoe UI", sans-serif;
    align-items: stretch;
    justify-content: stretch;
}
.ficha-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px 0 18px;
    background: linear-gradient(180deg, rgba(180, 160, 108, .14) 0%, transparent 42%), linear-gradient(90deg, #212842 0%, #2c3553 100%);
    border-bottom: 2px solid #b4a06c;
    box-shadow: 0 8px 24px rgba(33, 40, 66, .22);
    color: #fff;
}
.ficha-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.ficha-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1px rgba(180, 160, 108, .45);
}
.ficha-logo img { width: 100%; height: 100%; object-fit: contain; }
.ficha-copy { display: flex; flex-direction: column; }
.ficha-title { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.15; }
.ficha-sub { font-size: 11px; color: #d4c190; text-transform: uppercase; letter-spacing: 1.6px; }
.ficha-end { display: flex; align-items: center; gap: 14px; }
.ficha-link { color: #e8e0ca; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-decoration: none; }
.ficha-link:hover { color: #fff; }
.ficha-user { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ficha-user strong { font-size: 13px; font-weight: 600; }
.ficha-user span { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #d4c190; }
.ficha-sair {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #b4a06c;
    background: rgba(180, 160, 108, .12);
    color: #e8e0ca;
    font: 600 13px/1 Inter, sans-serif;
    text-decoration: none;
}
.ficha-sair:hover { background: #b4a06c; color: #212842; }
.ficha {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}
.ficha-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 14px;
    background: #212842;
    border-right: 2px solid #b4a06c;
}
.ficha-acoes .ficha-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid rgba(232, 224, 202, .35);
    border-radius: 12px;
    background: transparent;
    color: #e8e0ca;
    font: 600 15px/1.2 Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.ficha-acoes .ficha-btn:hover { background: rgba(180, 160, 108, .16); color: #fff; }
.ficha-acoes .ficha-gravar { background: #b4a06c; color: #212842; border-color: #b4a06c; }
.ficha-acoes .ficha-gravar:hover { background: #d4c190; color: #212842; }
.painel .ficha-btn, #nivel .ficha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 16px;
    border: 1px solid rgba(33, 40, 66, .25);
    border-radius: 12px;
    background: transparent;
    color: #212842;
    font: 600 15px/1 Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.painel .ficha-gravar, #nivel .ficha-gravar { background: #212842; color: #e8e0ca; border-color: #212842; }
.painel .ficha-gravar:hover, #nivel .ficha-gravar:hover { background: #2c3553; }
.ficha-excluir {
    margin-left: 8px;
    border: 0;
    background: transparent;
    color: #991b1b;
    font: 700 15px/1 Inter, sans-serif;
    cursor: pointer;
}
.ficha-corpo { padding: 28px 28px 48px; min-width: 0; }
.ficha-corpo h1 {
    margin: 0 0 16px;
    font-family: Fraunces, Georgia, serif;
    font-size: 40px;
    font-weight: 560;
    letter-spacing: -.03em;
    color: #212842;
}
.ficha-alerta { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.ficha-erro { background: #fee2e2; color: #991b1b; }
.ficha-ok { background: rgba(180, 160, 108, .22); color: #212842; }
.ficha-cabeca {
    display: flex;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #fffdf8;
    border: 1px solid rgba(33, 40, 66, .12);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(33, 40, 66, .05);
}
.ficha-cabeca label, .painel label, #nivel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6356;
}
.ficha-cabeca input, .painel input[type="password"], .painel input[type="text"], .painel select, #nivel input, #nivel select,
.ficha-corpo input[name="nome"], .ficha-corpo input[name="login"], .ficha-corpo input[name="nome_nivel"] {
    min-height: 48px;
    min-width: 260px;
    border: 1px solid #94a3b8;
    border-radius: 12px;
    background: #f8fafc;
    color: #212842;
    padding: 0 14px;
    font: 600 18px/1.2 Inter, sans-serif;
}
.abas-topo, .abas-sub.visivel { display: flex; flex-wrap: wrap; gap: 8px; }
.abas-topo { margin-bottom: 0; }
.abas-sub { display: none; }
.ficha [hidden] { display: none !important; }
.abas-faixa {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #fffdf8;
    border: 1px solid rgba(33, 40, 66, .12);
    border-radius: 16px;
}
.abas-rotulo {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6356;
}
.abas-topo button, .abas-sub button {
    border: 1px solid rgba(33, 40, 66, .14);
    border-radius: 999px;
    background: rgba(255, 253, 248, .7);
    color: #212842;
    font: 600 15px/1 Inter, sans-serif;
    padding: 11px 16px;
    cursor: pointer;
}
.abas-sub button { font-size: 14px; padding: 8px 14px; background: transparent; }
.abas-topo button.ativa, .abas-sub button.ativa {
    background: #212842;
    color: #e8e0ca;
    border-color: #212842;
    box-shadow: inset 0 -2px 0 #b4a06c;
}
.painel {
    background: #fffdf8;
    border: 1px solid rgba(33, 40, 66, .12);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(33, 40, 66, .05);
    padding: 18px 20px 22px;
    margin-top: 12px;
}
.painel p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #5c564c; }
.ficha-aviso { color: #7c4a12; font-weight: 700; }
.ficha-check { flex-direction: row; align-items: center; text-transform: none; letter-spacing: 0; font-size: 16px; color: #212842; margin: 10px 0; }
.ficha-check input { width: auto; min-width: 0; min-height: 0; }
.painel table, #nivel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
.painel th, .painel td, #nivel th, #nivel td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(33, 40, 66, .1);
    font-weight: 700;
    color: #212842;
}
.painel th, #nivel th {
    background: #212842;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #e8e0ca;
}
.painel tbody tr:nth-child(odd) td, #nivel tbody tr:nth-child(odd) td { background: #fffdf8; }
.painel tbody tr:nth-child(even) td, #nivel tbody tr:nth-child(even) td { background: #e7dcc4; }
.painel tbody tr:hover td, #nivel tbody tr:hover td { background: #d4c190; }
.painel td:first-child, .painel th:first-child { width: 90px; text-align: center; }
.painel a, #nivel a { color: #212842; font-weight: 700; }
.ficha fieldset { border: 0; margin: 0; padding: 0; }
.ficha fieldset:disabled { opacity: .72; }
.ficha-nivel { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ficha-nivel table td:first-child, .ficha-nivel table th:first-child { width: auto; text-align: left; }
section[data-topo="consulta"] td:first-child,
section[data-topo="consulta"] th:first-child { width: auto; text-align: left; }
@media (max-width: 1100px) {
    .ficha { grid-template-columns: 1fr; }
    .ficha-acoes { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 2px solid #b4a06c; }
    .ficha-cabeca, .ficha-nivel { display: block; }
    .ficha-cabeca input,
    .painel input[type="password"],
    .painel input[type="text"],
    .painel select,
    #nivel input,
    #nivel select,
    .ficha-corpo input[name="nome"],
    .ficha-corpo input[name="login"],
    .ficha-corpo input[name="nome_nivel"] { width: 100%; min-width: 0; max-width: 100%; }
    .ficha-user { display: none; }
    body.ficha-aberta { padding-top: 0; }
    .ficha-topbar {
        position: static;
        height: auto;
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    .ficha-end { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
    .ficha-corpo { padding: 18px 14px 40px; }
    .ficha-corpo h1 { font-size: 32px; }
    .abas-faixa { flex-direction: column; align-items: stretch; }
    .painel table, #nivel table { display: block; overflow-x: auto; }
}
