:root {
    color-scheme: light;
    --fundo: #f3f5f8;
    --branco: #fff;
    --titulo: #172237;
    --texto: #26364c;
    --secundario: #4e5e73;
    --linha: #d8dfe8;
    --lateral: #141e2e;
    --lateral-texto: #cfdaea;
    --lateral-ativa: #25354b;
    --azul: #234eb2;
    --azul-forte: #183f98;
    --azul-suave: #eaf0fe;
    --verde: #175c45;
    --verde-suave: #e0f4e9;
    --vermelho: #8f302d;
    --vermelho-suave: #ffefeb;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 100%;
    line-height: 1.55;
    color: var(--texto);
    background: var(--fundo);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--titulo); line-height: 1.22; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.045em; }
h2 { font-size: 1.24rem; letter-spacing: -.02em; }
h3 { font-size: .95rem; }
p { color: var(--secundario); }
a { color: var(--azul-forte); text-underline-offset: .2em; }
a:hover { color: var(--azul); }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6f96ff; outline-offset: 3px; }
.sr, .pular:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.pular:focus { position: fixed; z-index: 1; top: 1rem; left: 1rem; background: var(--branco); padding: .5rem 1rem; }
.painel { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.lateral { display: flex; flex-direction: column; gap: 2.6rem; padding: 2.15rem 1rem 1.2rem; background: var(--lateral); align-self: start; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: .75rem; padding: 0 .55rem; color: var(--branco); font-size: 1.15rem; text-decoration: none; white-space: nowrap; letter-spacing: -.025em; }
.marca:hover { color: var(--branco); }
.simbolo { flex: 0 0 2.1rem; height: 2.1rem; display: grid; place-items: center; background: #2a57bf; color: var(--branco); border-radius: 8px; }
.simbolo::before { content: ""; width: 14px; height: 16px; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) center / 6px 2px no-repeat, linear-gradient(currentColor, currentColor) center 69% / 6px 2px no-repeat; }
.nav { display: grid; gap: .3rem; }
.nav a, .nav-conta { display: flex; align-items: center; gap: .8rem; border-radius: 7px; padding: .65rem .73rem; color: var(--lateral-texto); font-size: .94rem; font-weight: 550; text-decoration: none; }
.nav a:hover, .nav a[aria-current], .nav-conta:hover, .nav-conta[aria-current], .perfil:hover, .perfil[aria-current] { background: var(--lateral-ativa); color: var(--branco); }
.nav a[aria-current] { box-shadow: inset 3px 0 #8eacfc; }
.icone { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; }
.icone.arquivo { width: 14px; height: 15px; margin-inline: 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.icone.arquivo::after, .icone.lista::after { content: ""; position: absolute; top: 4px; left: 3px; width: 5px; border-top: 1px solid currentColor; box-shadow: 0 4px currentColor; }
.icone.lista { border: 1.5px solid currentColor; border-radius: 3px; }
.icone.lista::after { width: 7px; }
.icone.lupa::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1.7px solid currentColor; border-radius: 50%; }
.icone.lupa::after { content: ""; position: absolute; width: 6px; height: 1.7px; background: currentColor; transform: rotate(46deg); top: 12px; left: 10px; }
.controles { display: grid; margin-top: auto; }
.nav-conta { margin-bottom: .65rem; }
.perfil { display: flex; padding: .65rem; align-items: center; gap: .65rem; color: var(--branco); text-decoration: none; border-radius: 7px; }
.avatar { display: grid; place-items: center; flex: 0 0 2.05rem; height: 2.05rem; border-radius: 8px; font-weight: 650; background: #31455f; }
.identidade { min-width: 0; }
.identidade strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.identidade small { display: block; color: var(--lateral-texto); font-size: .81rem; }
.sair { width: 100%; padding: .55rem .73rem; text-align: left; background: transparent; border: 0; border-radius: 7px; color: var(--lateral-texto); cursor: pointer; font-size: .9rem; }
.sair:hover { background: var(--lateral-ativa); color: var(--branco); }
.conteudo { width: 100%; max-width: 1540px; padding: clamp(1.3rem, 4vw, 3.15rem); min-width: 0; }
.cabecalho { margin-bottom: 1.8rem; }
.cabecalho p { margin-top: .5rem; }
.com-acao { display: flex; align-items: flex-end; gap: 1rem; justify-content: space-between; }
.resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.45rem; }
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: 12px; }
.resumo-item { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.2rem .95rem; color: var(--secundario); text-decoration: none; min-width: 0; }
.resumo-item strong { color: var(--titulo); font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.resumo-item span { font-size: .9rem; font-weight: 600; }
a.resumo-item:hover, a.resumo-item[aria-current] { border-color: #7290d5; background: #f4f7ff; color: var(--azul-forte); }
a.resumo-item[aria-current] { box-shadow: inset 0 2px #4068c7; }
.dados { min-width: 0; }
.barra-tabela { padding: 1rem 1.15rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 100%; }
.filtros input { max-width: 100%; width: 14rem; }
.rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: .85rem 1.15rem; vertical-align: top; }
th { font-weight: 640; color: var(--secundario); background: #f7f9fc; white-space: nowrap; }
thead, tbody tr { border-top: 1px solid var(--linha); }
tbody tr:hover { background: #fafbfe; }
td small { display: block; margin-top: .28rem; font-size: .82rem; color: var(--secundario); }
.id { font-variant-numeric: tabular-nums; white-space: nowrap; }
details p { margin-top: .45rem; max-width: 30rem; font-size: .9rem; }
details summary { cursor: pointer; color: var(--azul-forte); width: fit-content; font-size: .9rem; }
.revisar { min-width: 12rem; }
.revisar > a { display: block; margin: .55rem 0; }
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .8rem 1.15rem; border-top: 1px solid var(--linha); color: var(--secundario); font-size: .9rem; }
.paginacao nav { display: flex; gap: .55rem; align-items: center; }
.vazio, .instrucao { padding: 1rem 1.15rem; border-top: 1px solid var(--linha); }
.colunas { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.formulario { padding: 1.2rem; max-width: 41rem; }
.formulario h2 { margin-bottom: .85rem; }
.formulario p + form { margin-top: .85rem; }
.campos { display: grid; gap: .9rem; }
.campos button { justify-self: start; }
label { display: grid; gap: .32rem; font-weight: 620; font-size: .9rem; }
label small, .secundario { font-weight: 400; font-size: .85rem; color: var(--secundario); }
input, select { width: 100%; min-width: 0; min-height: 2.55rem; padding: .45rem .63rem; color: var(--texto); background: var(--branco); border: 1px solid #aebccc; border-radius: 7px; font-weight: 400; }
select { appearance: none; padding-right: 1.8rem; background: linear-gradient(45deg, transparent 50%, #506083 50%) right 14px center / 5px 5px no-repeat, linear-gradient(135deg, #506083 50%, transparent 50%) right 9px center / 5px 5px no-repeat, var(--branco); }
.filtros select { width: auto; max-width: 100%; }
.check { display: flex; align-items: flex-start; gap: .55rem; }
.check input { flex: none; width: 1.1rem; min-height: 0; height: 1.1rem; margin: .21rem 0 0; accent-color: var(--azul); }
.check small { display: block; margin-top: .22rem; }
.datas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .42rem .8rem; border-radius: 7px; border: 1px solid #b6c2d3; background: var(--branco); color: var(--texto); font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.botao:hover { border-color: #8496b3; background: #f3f6fa; color: var(--titulo); }
.botao.principal { background: var(--azul); border-color: var(--azul); color: var(--branco); padding-inline: .96rem; }
.botao.principal:hover { background: var(--azul-forte); border-color: var(--azul-forte); color: var(--branco); }
.botao:disabled { cursor: not-allowed; background: #dbe3ee; border-color: #dbe3ee; color: #47556b; }
.etiqueta { display: inline-block; background: var(--azul-suave); color: var(--azul-forte); padding: .17rem .55rem; border-radius: 5px; font-size: .82rem; font-weight: 620; white-space: nowrap; }
.etiqueta.concluido { background: var(--verde-suave); color: var(--verde); }
.etiqueta.interrompido { background: var(--vermelho-suave); color: var(--vermelho); }
.etiqueta.pendente { background: #edf1f6; color: #46536a; }
.acompanhamento > p + p { margin-top: .45rem; }
progress { display: block; width: 100%; height: .7rem; margin: .65rem 0; appearance: none; accent-color: var(--azul); }
progress::-webkit-progress-bar { background: #e6edf6; border-radius: 6px; }
progress::-webkit-progress-value { background: var(--azul); border-radius: 6px; }
.criterios { border-top: 1px solid var(--linha); margin-top: 1rem; padding-top: .85rem; }
.criterios p { margin: .35rem 0 .5rem; }
.historico { margin-top: 1.35rem; }
.pessoa { padding: .65rem 0; border-top: 1px solid var(--linha); overflow-wrap: anywhere; }
.pessoa .etiqueta { margin-left: .45rem; }
.pessoa small { display: block; color: var(--secundario); }
.pessoa form { margin-top: .75rem; }
.aviso { display: block; margin-bottom: 1rem; padding: .7rem .8rem; border: 1px solid; border-radius: 7px; font-size: .94rem; }
.aviso.erro { background: var(--vermelho-suave); border-color: #eec6bd; color: var(--vermelho); }
.aviso.sucesso { background: var(--verde-suave); border-color: #b5dfcc; color: var(--verde); }
.tela-login { min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; background: linear-gradient(145deg, #e6edf9, #f5f7fa 61%); }
.login { width: min(100%, 26.5rem); background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: clamp(1.25rem, 5.5vw, 2.25rem); box-shadow: 0 16px 48px #212c4914; }
.marca-login { color: var(--titulo); padding: 0; margin-bottom: 1.65rem; }
.login h1 { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 1.15rem; }
.login p + .botao, .formulario p + .botao { margin-top: .85rem; }
.login .campos button { justify-self: stretch; margin-top: .35rem; }
@media (max-width: 990px) {
    .painel { grid-template-columns: 200px minmax(0, 1fr); }
    .conteudo { padding: 1.55rem; }
    .colunas { grid-template-columns: minmax(0, 1fr); }
    .formulario { max-width: none; }
}
@media (max-width: 700px) {
    .painel { display: block; }
    .lateral { position: static; height: auto; padding: .85rem .7rem .6rem; gap: .55rem; }
    .nav { display: flex; flex-wrap: wrap; }
    .nav a { font-size: .86rem; padding: .45rem .5rem; gap: .4rem; }
    .controles { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
    .controles .nav-conta { margin: 0; }
    .controles .perfil { padding: .35rem .5rem; }
    .conteudo { padding: 1.05rem .75rem; }
    .com-acao { align-items: start; flex-wrap: wrap; }
    .resumo { gap: .4rem; }
    .resumo-item { padding: .62rem .45rem; }
    .resumo-item span { font-size: .83rem; }
    .resumo-item strong { font-size: 1.55rem; }
    th, td { padding-inline: .7rem; }
}
