/* escritorio.css — linguagem visual comum do escritório virtual da Alger Intelligence.
   Leve e funcional: branco, cinza quente, marrom do logotipo no texto e oliva do monograma nos
   destaques. Sem quadros nem filetes: a separação vem do espaço em branco e do contraste entre o nome, escuro,
   e o detalhe, em cinza. Nas listas, um fundo claro só na linha sob o mouse (decisão do titular, 30/09/2026). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fontes/inter-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fontes/inter-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --tinta: #3A322D; --marca: #4B413A; --oliva: #545F49; --oliva-esc: #48523E; --suave: #8A817A; --tenue: #B9B2AB;
        --linha: #EDEAE6; --fundo: #FFFFFF; --realce: #F7F6F3; --erro: #9B2C2C; --largura: 1040px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.6 Inter, system-ui, "Segoe UI", sans-serif; color: var(--tinta); background: var(--fundo);
       -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--oliva); outline-offset: 3px; border-radius: 3px; }

/* ---------- cabeçalho comum ---------- */
#topo { display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 max(24px, calc((100% - var(--largura)) / 2 + 24px)); }
#topo .logo img { height: 36px; display: block; }
#topo nav { display: flex; gap: 22px; }
#topo nav a { font-size: 13.5px; font-weight: 350; color: var(--suave); padding: 4px 0; border-bottom: 1px solid transparent; }
#topo nav a:hover { color: var(--tinta); }
#topo nav a[aria-current] { color: var(--tinta); border-bottom-color: var(--oliva); }
#topo .esp { flex: 1; }
#topo .quem { color: var(--suave); font-size: 13.5px; font-weight: 350; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--suave); cursor: pointer; font-weight: 350; }
.link:hover { color: var(--tinta); }

/* ---------- conteúdo ---------- */
main { max-width: var(--largura); margin: 0 auto; padding: 56px 24px 80px; }
.abertura h1, h1.titulo { margin: 0; font-size: 30px; font-weight: 250; letter-spacing: -0.015em; color: var(--marca); }
.abertura p, p.sub { margin: 6px 0 0; color: var(--suave); font-weight: 300; font-size: 14px; }
.trilha { font-size: 13px; font-weight: 300; color: var(--suave); margin: 0 0 10px; }
.trilha a:hover { color: var(--tinta); }
.rotulo { margin: 0 0 8px;
          font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--oliva); }
.bloco { margin-top: 48px; }
.suave { color: var(--suave); } .tenue { color: var(--tenue); }
.vazio { color: var(--tenue); font-size: 13px; font-weight: 300; margin: 10px 0 0; }
.aviso { color: var(--erro); font-size: 13px; }

/* lista: título, detalhe em cinza e situação à direita; fundo claro só na linha sob o mouse */
.linhas { margin: 0 -12px; }
.linhas > a, .linhas > .lin { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: baseline;
  padding: 10px 12px; border-radius: 6px; transition: background .12s; }
.linhas > a:hover, .linhas > .lin:hover { background: var(--realce); }
.linhas > p { margin-left: 12px; margin-right: 12px; }
/* ações de cada linha (editar, remover): aparecem sob o mouse; em tela de toque, sempre */
.lin .acoes-lin { grid-column: 2; display: flex; gap: 14px; justify-content: flex-end; white-space: nowrap; opacity: 0; transition: opacity .12s; }
.lin:hover .acoes-lin, .lin:focus-within .acoes-lin { opacity: 1; }
@media (hover: none) { .lin .acoes-lin { opacity: 1; } }
.linhas .t { font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linhas .d { grid-column: 1; font-size: 12.5px; font-weight: 300; color: var(--suave); font-variant-numeric: tabular-nums; }
.linhas .x { grid-column: 2; grid-row: 1 / span 2; font-size: 12.5px; font-weight: 350; color: var(--suave); text-align: right; white-space: nowrap; }
.linhas > a:hover .t { color: var(--oliva); }

/* ferramenta: nome e descrição, seta discreta ao passar o mouse */
.ferr { display: block; padding: 9px 0; }
.ferr .n { display: block; font-weight: 420; color: var(--tinta); transition: color .15s; }
.ferr .d { display: block; font-size: 13px; font-weight: 300; color: var(--suave); line-height: 1.5; }
.ferr:hover .n { color: var(--oliva); }
.ferr .n::after { content: "→"; margin-left: 8px; color: var(--oliva); opacity: 0; transition: opacity .15s; font-weight: 300; }
.ferr:hover .n::after { opacity: 1; }

/* ---------- formulários ---------- */
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; margin-top: 18px; }
.campos .largo { grid-column: 1 / -1; }
label.c { display: grid; gap: 6px; font-size: 12.5px; color: var(--suave); font-weight: 350; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--linha); border-radius: 6px; font: inherit; color: var(--tinta); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--oliva); outline: none; }
input[readonly] { background: var(--realce); color: var(--suave); }
textarea { min-height: 70px; resize: vertical; }
.bt { padding: 9px 16px; border: 1px solid var(--oliva); border-radius: 6px; background: var(--oliva); color: #fff; font: inherit; font-weight: 450; cursor: pointer; }
.bt:hover { background: var(--oliva-esc); }
.bt.sec { background: #fff; color: var(--oliva); }
.bt.sec:hover { background: var(--realce); }
.bt:disabled { opacity: .5; cursor: default; }
.acoes { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.estado { font-size: 13px; font-weight: 300; color: var(--suave); }

/* ---------- login ---------- */
#entrada { max-width: 340px; margin: 14vh auto 0; padding: 0 24px; display: grid; gap: 14px; }
#entrada h1 { margin: 0; font-size: 24px; font-weight: 250; color: var(--marca); }
#entrada > p { margin: -6px 0 8px; color: var(--suave); font-size: 13.5px; font-weight: 300; }
#entrada .bt { margin-top: 6px; padding: 10px 14px; }
#entrada .msg { color: var(--erro); min-height: 20px; font-size: 13px; }

/* aviso passageiro */
#recado { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--marca); color: #fff; font-size: 13.5px;
          padding: 10px 18px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
#recado.ver { opacity: 1; } #recado.erro { background: var(--erro); }

@media (max-width: 640px) {
  #topo { padding: 0 16px; height: 64px; gap: 18px; } #topo .logo img { height: 28px; } #topo .quem { display: none; }
  #topo nav { gap: 16px; }
  main { padding: 32px 16px 64px; } .abertura h1, h1.titulo { font-size: 26px; }
}
