/* DocGestor: so docgestor.html (e en/docgestor.html) usa este arquivo; o resto vem de oito.css */

/* ---- raio-x ---- */
.raiox { max-width: 1100px; margin: 0 auto; border-radius: 18px; background: #0a121b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .09); overflow: hidden; text-align: left; color: #c9d6e2; font-size: .86rem; }
.rx-barra { display: flex; align-items: center; gap: 6px; padding: 11px 16px; background: #0c1f17; }
.rx-barra i { width: 9px; height: 9px; border-radius: 50%; background: #2c3b4d; }
.rx-barra span { margin-left: 10px; color: #8496a8; font-size: .74rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rx-corpo { display: grid; grid-template-columns: 218px minmax(0, 1fr) 300px; gap: 0; }
.rx-corpo > div { padding: 18px; min-width: 0; }
.rx-pastas, .rx-ficha { background: #0c1f17; }
.rx-pastas { border-right: 1px solid rgba(255, 255, 255, .06); }
.rx-ficha { border-left: 1px solid rgba(255, 255, 255, .06); }
.rx-tit { margin: 0 0 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6f8296; font-weight: 700; }
.rx-tit b { color: var(--verde-vivo); font-family: var(--titulo); letter-spacing: 0; font-size: .9rem; margin-left: 6px; }
.rx-pastas ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rx-pasta { display: block; width: 100%; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, background .25s; }
.rx-pasta:hover { border-color: rgba(34, 194, 122, .5); }
.rx-pasta small { display: block; color: #7d91a5; font-size: .68rem; line-height: 1.3; overflow-wrap: anywhere; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.rx-pasta b { display: block; margin-top: 4px; font-weight: 500; font-size: .78rem; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #dfe9f2; }
.rx-pasta.ativa { border-color: var(--ciano); background: rgba(34, 194, 122, .09); }
.rx-pasta.feita:not(.ativa) b::after { content: ' ✓'; color: var(--verde-vivo); }

.rx-cena { display: grid; align-content: start; justify-items: center; background: radial-gradient(ellipse at 50% 30%, rgba(10, 138, 87, .16), transparent 70%); }
.rx-papel { position: relative; width: min(100%, 360px); height: 250px; border-radius: 6px; overflow: hidden; background: #08202e; box-shadow: 0 0 0 1px rgba(34, 194, 122, .4), 0 0 40px -6px rgba(34, 194, 122, .35); }
.rx-folha { position: absolute; inset: 0; padding: 18px 20px; width: 100%; height: 250px; display: grid; align-content: start; gap: 9px; font-size: .78rem; line-height: 1.35; }
.rx-xray .rx-folha { color: rgba(34, 194, 122, .5); background: repeating-linear-gradient(0deg, rgba(34, 194, 122, .05) 0 2px, transparent 2px 5px); }
.rx-xray .rx-folha .barra { background: rgba(34, 194, 122, .22); }
.rx-luz { position: absolute; left: 0; right: 0; top: 0; height: 0; overflow: hidden; }
.rx-luz .rx-folha { background: #f6f9fb; color: #1c2733; }
.rx-luz .barra { background: #d3dde6; }
.rx-folha .barra { display: block; height: 7px; border-radius: 4px; }
.rx-folha .ti { font-family: var(--titulo); font-weight: 700; font-size: .86rem; letter-spacing: .02em; }
.rx-folha .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .7rem; white-space: nowrap; }
.rx-folha mark { padding: 0 3px; margin: 0 -3px; border-radius: 3px; background: transparent; color: inherit; transition: background .3s, box-shadow .3s; }
.rx-luz mark.on { background: rgba(196, 242, 122, .55); box-shadow: 0 0 0 2px rgba(166, 227, 90, .7); }
.rx-feixe { position: absolute; left: -2px; right: -2px; bottom: -1px; height: 3px; background: #c4f27a; box-shadow: 0 0 14px 3px rgba(196, 242, 122, .85), 0 -26px 34px 4px rgba(34, 194, 122, .35); opacity: 0; }
.rx-luz.varre { height: 100%; animation: rx-varre 2.6s linear both; }
.rx-luz.varre .rx-feixe { opacity: 1; animation: rx-some .2s linear 2.6s both; }
.rx-luz.pronto { height: 100%; }
.rx-luz.pronto .rx-feixe { opacity: 0; }
@keyframes rx-varre { from { height: 0; } to { height: 100%; } }
@keyframes rx-some { to { opacity: 0; } }
.rx-leg { margin: 14px 0 0; min-height: 1.4em; font-size: .8rem; color: #8fa3b6; text-align: center; }
.rx-leg::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 10px var(--ciano); vertical-align: 1px; }

.rx-ficha dl { margin: 0; display: grid; gap: 9px; }
.rx-lin { display: grid; gap: 1px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255, 255, 255, .08); opacity: .18; transform: translateX(8px); transition: opacity .35s, transform .35s; }
.rx-lin.on { opacity: 1; transform: none; }
.rx-lin dt { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #6f8296; }
.rx-lin dd { margin: 0; font-weight: 500; color: #eef4f9; font-size: .84rem; overflow-wrap: anywhere; }
.rx-lin dd em { font-style: normal; color: var(--verde-vivo); }
.rx-guardado { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(196, 242, 122, .1); border: 1px solid rgba(196, 242, 122, .35); color: #d7ffec; font-size: .78rem; line-height: 1.4; opacity: .15; transition: opacity .4s; min-height: 3.6em; }
.rx-guardado.on { opacity: 1; }
.rx-guardado.conferir { background: rgba(255, 190, 70, .1); border-color: rgba(255, 190, 70, .45); color: #ffe3b0; }
.rx-guardado b { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.rx-acervo { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .06); background: #0c1f17; }
.rx-acervo ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 52px; }
.rx-acervo li { padding: 9px 12px; border-radius: 10px; background: #0c1f17; border: 1px solid rgba(255, 255, 255, .06); font-size: .76rem; line-height: 1.35; animation: rx-entra .5s ease both; }
.rx-acervo li b { display: block; color: #eef4f9; font-weight: 600; }
.rx-acervo li span { color: #7d91a5; }
.rx-acervo li.conferir { border-color: rgba(255, 190, 70, .45); }
@keyframes rx-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rx-nota { margin: 14px 0 0; text-align: center; font-size: .82rem; color: #8fa3b6; }

/* ---- busca (heroi) ---- */
.busca { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 16px; background: #0c1f17; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; text-align: left; }
.busca-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0c1f17; }
.busca-barra i { width: 9px; height: 9px; border-radius: 50%; background: #2c3b4d; }
.busca-barra span { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #0c1f17; color: #8496a8; font-size: .72rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.busca-corpo { padding: 20px 18px 18px; background: #f4f7fa; color: var(--texto); }
.busca-campo { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--linha); font-size: .86rem; color: var(--texto); }
.busca-campo svg { width: 16px; height: 16px; flex: none; color: var(--suave); }
.busca-campo b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.busca-meta { margin: 10px 2px 8px; font-size: .72rem; color: var(--suave); }
.busca-lista { display: grid; gap: 6px; }
.busca-lista div { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; padding: 9px 11px; border-radius: 9px; background: #fff; border: 1px solid var(--linha); font-size: .76rem; }
.busca-lista b { font-weight: 700; color: var(--tinta); }
.busca-lista span { color: var(--suave); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.busca-lista em { font-style: normal; font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: rgba(79, 158, 42, .12); color: #007a58; font-weight: 700; white-space: nowrap; }
.busca-nota { text-align: center; margin: 12px 0 0; font-size: .78rem; color: #8fa3b6; }

/* ---- campos lidos (tabela) ---- */
.lidos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lidos li { padding: 18px 18px 16px; border: 1px solid var(--linha); border-radius: 14px; background: #fff; }
.lidos b { display: block; font-family: var(--titulo); margin-bottom: 4px; color: var(--tinta); }
.lidos span { font-size: .92rem; color: var(--suave); }
.tipos { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tipos li { padding: 6px 13px; border-radius: 999px; background: var(--fundo-2); border: 1px solid var(--linha); font-size: .84rem; color: var(--texto); }

/* ---- comparativo ---- */
.comparativo { overflow-x: auto; border: 1px solid var(--linha); border-radius: 14px; background: #fff; }
.comparativo table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.comparativo th, .comparativo td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--linha); }
.comparativo th:first-child, .comparativo td:first-child { text-align: left; font-weight: 600; }
.comparativo thead th { background: var(--fundo-2); font-family: var(--titulo); font-size: .82rem; }
.comparativo th.nosso, .comparativo td.nosso { background: rgba(10, 138, 87, .06); color: var(--tinta); font-weight: 700; }
.comparativo tr:last-child td { border-bottom: 0; }

@media (max-width: 1020px) {
    .rx-corpo { grid-template-columns: 1fr; }
    .rx-pastas { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .rx-pastas ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rx-ficha { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
    .lidos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .rx-pastas ul { grid-template-columns: 1fr; }
    .rx-corpo > div { padding: 14px; }
    .rx-papel, .rx-folha { height: 236px; }
    .rx-acervo ul { grid-template-columns: 1fr; }
    .lidos { grid-template-columns: 1fr; }
    .busca-lista div { grid-template-columns: 62px 1fr; }
    .busca-lista em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .rx-luz.varre, .rx-luz.varre .rx-feixe, .rx-acervo li { animation: none; }
    .rx-luz.varre { height: 100%; }
    .rx-lin, .rx-guardado, .rx-pasta, .rx-folha mark { transition: none; }
}
.rx-xray { position: absolute; inset: 0; }
.rx-lcont { position: absolute; left: 0; top: 0; width: 100%; height: 250px; }
@media (max-width: 640px) { .rx-lcont, .rx-folha { height: 236px; } }
.rx-corpo[data-sem-js] .rx-pastas ul:empty::after { content: 'JavaScript desligado: a demonstração não carrega.'; color: #8fa3b6; }
