/* Plataforma de resultados: login, cadastro, estrutura após o login (barra, menu lateral, início) e administração.
   Visual da "Plataforma de resultados" (protótipo do squad): azul-marinho, Encode Sans, cantos retos.
   Tema: segue o sistema; a escolha manual (claro ou escuro) fica em data-theme no <html> (tema.js). */

@font-face { font-family: "Encode Sans"; font-weight: 400; font-display: swap; src: url(fonts/encode-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Encode Sans"; font-weight: 500; font-display: swap; src: url(fonts/encode-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Encode Sans"; font-weight: 600; font-display: swap; src: url(fonts/encode-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 400; font-display: swap; src: url(fonts/encode-sans-condensed-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 500; font-display: swap; src: url(fonts/encode-sans-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 600; font-display: swap; src: url(fonts/encode-sans-condensed-latin-600-normal.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --brand: #243882; --brand-ink: #1a2651; --deep: #14215A; --glow: #8fb0ff;
  --bg: #ffffff; --mist: #f0f1f5; --mist-2: #e4e7f0; --ink: #1d2230; --body: #4a5063; --link: #243882; --line: rgba(20, 33, 90, .14);
  --ok: #0e6900; --ok-soft: #e3f3e5; --warn: #8a5a00; --warn-soft: #fff3d1; --bad: #a3261a; --bad-soft: #fdeceb; --run: #2F4BB8; --run-soft: #e6ecfd;
  --f-head: "Encode Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --f-body: "Encode Sans Condensed", "Encode Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --bar-h: 64px; --drawer: 264px;
  accent-color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1426; --mist: #171e38; --mist-2: #212a4d; --ink: #eef0f8; --body: #c0c6da; --link: #a9bbff; --line: rgba(255, 255, 255, .14);
    --ok: #6fd35f; --ok-soft: #173a1d; --warn: #f0c060; --warn-soft: #3b3112; --bad: #ff8f80; --bad-soft: #3d1c18; --run: #8fa6ff; --run-soft: #1b2760;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1426; --mist: #171e38; --mist-2: #212a4d; --ink: #eef0f8; --body: #c0c6da; --link: #a9bbff; --line: rgba(255, 255, 255, .14);
  --ok: #6fd35f; --ok-soft: #173a1d; --warn: #f0c060; --warn-soft: #3b3112; --bad: #ff8f80; --bad-soft: #3d1c18; --run: #8fa6ff; --run-soft: #1b2760;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--body); font-family: var(--f-body); font-size: 16.5px; line-height: 25px; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); font-weight: 500; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--body); }
.small { font-size: 14.5px; line-height: 20px; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-svg { display: block; fill: currentColor; }
/* nome no lugar do logo (o logo de terceiro está suspenso) */
.marca-texto { display: block; font-family: var(--f-head); font-weight: 600; letter-spacing: .02em; color: var(--link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .logo .marca-texto { font-size: 22px; line-height: 30px; white-space: normal; }
.appbar .logo .marca-texto { font-size: 17px; line-height: 24px; }

/* ---------- botões e campos ---------- */
.btn, .btn-primario { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; background: var(--brand); color: #fff; font-family: var(--f-head); font-size: 15px; font-weight: 500; line-height: 22px; border: 1px solid var(--brand); text-decoration: none; white-space: nowrap; text-align: center; }
.btn:hover, .btn-primario:hover { background: var(--brand-ink); }
.btn-primario:disabled { opacity: .65; cursor: progress; }
.btn.sec { background: var(--bg); color: var(--link); border-color: var(--link); }
.btn.sec:hover { background: var(--mist); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.ib { flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); position: relative; }
.ib:hover { background: var(--mist); }
.ib[aria-expanded="true"] { background: var(--mist-2); }
.campo { display: grid; gap: 6px; }
.campo label { font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--ink); }
.inp, .campo input { width: 100%; min-height: 46px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-bottom: 2px solid var(--body); border-radius: 0; color: var(--ink); font-size: 16px; }
.inp:focus, .campo input:focus { outline: none; border-bottom-color: var(--link); box-shadow: 0 2px 0 0 var(--link); }
.campo input:user-invalid, .campo input[aria-invalid="true"] { border-bottom-color: var(--bad); }
.senha { position: relative; }
.senha input { padding-right: 52px; }
.btn-icone { position: absolute; right: 2px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--body); }
.btn-icone svg { width: 20px; height: 20px; }
.btn-icone .olho-fechado { display: none; }
.btn-icone[aria-pressed="true"] .olho { display: none; }
.btn-icone[aria-pressed="true"] .olho-fechado { display: block; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; min-width: 210px; }
.mensagem { min-height: 1.5em; font-size: 15px; line-height: 21px; }
.mensagem.erro, .erro-texto { color: var(--bad) !important; }
.mensagem.erro::before, .erro-texto:not(:empty)::before { content: "⚠ " / ""; }
.mensagem.ok { color: var(--ok); }

/* ---------- login e cadastro ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #0b1233 url(img/cover.webp) center / cover no-repeat; position: relative; }
.login::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11, 18, 51, .72), rgba(20, 33, 90, .55) 55%, rgba(11, 18, 51, .85)); }
.lcard { position: relative; width: min(440px, 100%); background: var(--bg); padding: 36px 32px 28px; display: grid; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lcard .logo { color: var(--link); margin-bottom: 6px; }
.lcard .logo .logo-svg { width: 190px; height: 73px; }
.lcard h1 { font-size: 24px; line-height: 31px; }
.lcard .sub { margin-top: -10px; }
.lcard form { display: grid; gap: 18px; }
.lnote { font-size: 14px; line-height: 20px; color: var(--body); border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }

/* ---------- barra superior e menu lateral ---------- */
.appbar { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: var(--bar-h); padding: 0 12px 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.appbar .logo { display: flex; align-items: center; min-width: 0; color: var(--link); text-decoration: none; padding: 8px 10px; margin-right: auto; }
.appbar .logo .logo-svg { width: 150px; height: 58px; }
.user { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 4px; margin-right: 2px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-size: 14px; font-weight: 600; flex: 0 0 36px; }
.uname { font-family: var(--f-head); font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.drawer { position: fixed; left: 0; top: var(--bar-h); bottom: 0; width: var(--drawer); z-index: 40; background: var(--mist); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 10px 24px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.drawer.closed { transform: translateX(-100%); visibility: hidden; box-shadow: none !important; transition: transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s .25s; }
.dnav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dnav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; color: var(--body); text-decoration: none; font-family: var(--f-head); font-size: 14.5px; line-height: 19px; border-left: 3px solid transparent; }
.dnav a:hover { background: var(--bg); color: var(--link); }
.dnav a[aria-current="page"] { background: var(--bg); color: var(--link); border-left-color: var(--link); font-weight: 600; }
.dnav .tl { width: 28px; height: 28px; flex: 0 0 28px; }
.dhead { font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--ink); margin: 18px 10px 6px; }
.scrim { position: fixed; inset: var(--bar-h) 0 0; background: rgba(10, 15, 40, .45); z-index: 35; display: none; }
.content { padding-top: var(--bar-h); margin-left: var(--drawer); transition: margin-left .25s cubic-bezier(.2, .7, .2, 1); min-height: 100vh; display: flex; flex-direction: column; }
.content.wide { margin-left: 0; }
.content > main { flex: 1; }
.page { flex: 1; padding: 32px clamp(16px, 3.5vw, 48px) 64px; width: 100%; max-width: 1280px; }
.ft { padding: 20px clamp(16px, 3.5vw, 48px); background: var(--deep); color: #dfe5fb; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.ft img { display: block; height: 50px; width: auto; }
.ft b { display: block; font-family: var(--f-head); font-size: 15.5px; line-height: 22px; font-weight: 500; color: #fff; }
.ft span { display: block; font-size: 14px; line-height: 20px; }

/* ---------- menu de configurações ---------- */
.pop { position: fixed; z-index: 60; top: calc(var(--bar-h) - 4px); right: 12px; width: min(320px, calc(100vw - 24px)); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(10, 20, 60, .22); animation: pop .16s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pop-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.pop-h h2 { font-size: 16px; line-height: 22px; }
.menu { list-style: none; margin: 0; padding: 6px 0; }
.menu .mh { font-family: var(--f-head); font-size: 12.5px; font-weight: 600; color: var(--body); padding: 10px 16px 4px; }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 8px 16px; font-size: 15px; color: var(--ink); text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--mist); }
.menu small { margin-left: auto; font-size: 13px; color: var(--body); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- início ---------- */
.ph { margin-bottom: 22px; }
.ph h1 { font-size: 30px; line-height: 38px; }
.ph p { margin-top: 6px; max-width: 720px; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 280px; max-width: 440px; }
.search .ico { position: absolute; left: 13px; top: 13px; color: var(--body); }
.search .inp { padding-left: 42px; }
.sel { display: inline-flex; align-items: center; gap: 10px; }
.sel label { font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border: 1px solid var(--link); background: var(--bg); color: var(--link); font-family: var(--f-head); font-size: 15px; font-weight: 500; }
.chip .ico { width: 18px; height: 18px; }
.chip:hover { background: var(--mist); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed="true"] .ico { fill: currentColor; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--brand); min-height: 212px; transition: box-shadow .15s, border-color .15s; }
.tcard:hover { box-shadow: 0 10px 26px rgba(20, 33, 90, .14); border-color: var(--link); }
.tcard .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tlogo { width: 56px; height: 56px; flex: 0 0 56px; }
.tcard h2 { font-size: 19px; line-height: 25px; }
.tcard h2 a { color: var(--ink); text-decoration: none; }
.tcard h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tcard:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.tcard h2 a:focus-visible { outline: none; }
.tcard .star { position: relative; z-index: 2; color: var(--body); }
.tcard .star[aria-pressed="true"] { color: #c48a00; }
.tcard .star[aria-pressed="true"] .ico { fill: currentColor; }
.tcard .upd { font-size: 14px; line-height: 19px; }
.tcard .lastl { font-family: var(--f-head); font-size: 12.5px; font-weight: 600; color: var(--body); margin-top: auto; }
.tcard .last { color: var(--ink); font-size: 15.5px; line-height: 21px; }
.tcard .kind { position: relative; z-index: 2; align-self: flex-start; font-family: var(--f-head); font-size: 12px; line-height: 20px; padding: 0 8px; background: var(--mist); color: var(--body); }
.tcard.inv { background: var(--deep); border-color: var(--deep); border-top-color: var(--glow); color: #cfd7f3; }
.tcard.inv h2 a, .tcard.inv .last { color: #fff; }
.tcard.inv .upd { color: #cfd7f3; }
.tcard.inv .lastl { color: var(--glow); }
.tcard.inv .star { color: #cfd7f3; }
.tcard.inv .star:hover { background: rgba(255, 255, 255, .12); }
.tcard.inv .star[aria-pressed="true"] { color: #ffd166; }
.tcard.inv .kind { background: rgba(143, 176, 255, .18); color: #fff; }
.tcard.inv:hover { border-color: var(--glow); box-shadow: 0 12px 30px rgba(20, 33, 90, .35); }
.tcard.inv :focus-visible { outline-color: #fff; }
/* no tema escuro o cartão do relatório próprio inverte as cores, para continuar se destacando */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tcard.inv { background: #f3f5fc; border-color: #f3f5fc; border-top-color: #243882; color: #4a5063; }
  :root:not([data-theme="light"]) .tcard.inv h2 a, :root:not([data-theme="light"]) .tcard.inv .last { color: #1d2230; }
  :root:not([data-theme="light"]) .tcard.inv .upd, :root:not([data-theme="light"]) .tcard.inv .star { color: #4a5063; }
  :root:not([data-theme="light"]) .tcard.inv .lastl { color: #243882; }
  :root:not([data-theme="light"]) .tcard.inv .kind { background: #e4e7f0; color: #4a5063; }
}
:root[data-theme="dark"] .tcard.inv { background: #f3f5fc; border-color: #f3f5fc; border-top-color: #243882; color: #4a5063; }
:root[data-theme="dark"] .tcard.inv h2 a, :root[data-theme="dark"] .tcard.inv .last { color: #1d2230; }
:root[data-theme="dark"] .tcard.inv .upd, :root[data-theme="dark"] .tcard.inv .star { color: #4a5063; }
:root[data-theme="dark"] .tcard.inv .lastl { color: #243882; }
:root[data-theme="dark"] .tcard.inv .kind { background: #e4e7f0; color: #4a5063; }
:root[data-theme="dark"] .tcard.inv :focus-visible { outline-color: #243882; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tcard.inv :focus-visible { outline-color: #243882; } }
.empty { padding: 28px; background: var(--mist); border-top: 4px solid var(--brand); display: grid; gap: 12px; justify-items: start; }

/* ---------- painel aberto ---------- */
.painel-area { position: fixed; z-index: 1; top: var(--bar-h); right: 0; bottom: 0; left: var(--drawer); transition: left .25s cubic-bezier(.2, .7, .2, 1); background: var(--bg); }
.content.wide .painel-area { left: 0; }
.painel-area iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.painel-area.com-topo { display: flex; flex-direction: column; }
.painel-area.com-topo iframe { flex: 1; height: auto; min-height: 0; }

/* ---------- lista de relatórios de uma equipe (Acelerador Digital) ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.thead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.thead .tlogo { width: 52px; height: 52px; flex-basis: 52px; }
.thead h1 { font-size: 28px; line-height: 35px; }
.thead p { font-size: 14.5px; }
.count { font-family: var(--f-head); font-size: 14px; color: var(--body); margin-bottom: 12px; }
.lnk { font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--link); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.lnk .ico { width: 16px; height: 16px; }
.acel-top { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; min-height: 46px; padding: 4px 16px; background: var(--mist); border-bottom: 1px solid var(--line); font-size: 14px; flex: none; }
.acel-top > span { font-family: var(--f-head); font-weight: 500; color: var(--ink); }
.rcard { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); transition: box-shadow .15s, border-color .15s; }
.rcard:hover { box-shadow: 0 10px 26px rgba(20, 33, 90, .14); border-color: var(--link); }
.rcard:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.rc-img { position: relative; height: 118px; background: #0b1233 url(img/cover.webp) center 58% / cover no-repeat; }
.rc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 51, .1), rgba(11, 18, 51, .65)); }
.rc-img .tag, .rc-new { position: absolute; z-index: 1; top: 12px; font-family: var(--f-head); font-size: 12px; line-height: 22px; padding: 0 9px; }
.rc-img .tag { left: 12px; background: rgba(255, 255, 255, .92); color: #243882; }
.rc-new { right: 12px; background: #8fb0ff; color: #14215A; font-weight: 600; }
.rc-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.rc-b h2 { font-size: 19px; line-height: 25px; }
.rc-b h2 a { color: var(--ink); text-decoration: none; }
.rc-b h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rc-b h2 a:focus-visible { outline: none; }
.rc-b .upd { font-size: 14px; line-height: 19px; }
.rc-b .last { color: var(--ink); font-size: 15px; line-height: 21px; }
.rc-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rc-k div { display: flex; flex-direction: column; }
.rc-k dt { font-size: 12.5px; line-height: 16px; order: 2; }
.rc-k dd { margin: 0; font-family: var(--f-head); font-size: 24px; line-height: 30px; font-weight: 500; color: var(--link); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rcard.inv { background: var(--deep); border-color: var(--deep); }
.rcard.inv:hover { border-color: var(--glow); box-shadow: 0 12px 30px rgba(20, 33, 90, .35); }
.rcard.inv .rc-b h2 a, .rcard.inv .rc-b .last { color: #fff; }
.rcard.inv .rc-b .upd, .rcard.inv .rc-k dt { color: #cfd7f3; }
.rcard.inv .rc-k { border-top-color: rgba(255, 255, 255, .18); }
.rcard.inv .rc-k dd { color: #8fb0ff; }
.rcard.inv :focus-visible { outline-color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rcard.inv { background: #f3f5fc; border-color: #f3f5fc; }
  :root:not([data-theme="light"]) .rcard.inv .rc-b h2 a, :root:not([data-theme="light"]) .rcard.inv .rc-b .last { color: #1d2230; }
  :root:not([data-theme="light"]) .rcard.inv .rc-b .upd, :root:not([data-theme="light"]) .rcard.inv .rc-k dt { color: #4a5063; }
  :root:not([data-theme="light"]) .rcard.inv .rc-k dd { color: #243882; }
  :root:not([data-theme="light"]) .rcard.inv .rc-k { border-top-color: rgba(20, 33, 90, .14); }
}
:root[data-theme="dark"] .rcard.inv { background: #f3f5fc; border-color: #f3f5fc; }
:root[data-theme="dark"] .rcard.inv .rc-b h2 a, :root[data-theme="dark"] .rcard.inv .rc-b .last { color: #1d2230; }
:root[data-theme="dark"] .rcard.inv .rc-b .upd, :root[data-theme="dark"] .rcard.inv .rc-k dt { color: #4a5063; }
:root[data-theme="dark"] .rcard.inv .rc-k dd { color: #243882; }
:root[data-theme="dark"] .rcard.inv .rc-k { border-top-color: rgba(20, 33, 90, .14); }
.carregando { padding: 32px clamp(16px, 3.5vw, 48px); color: var(--body); }
.carregando.erro { color: var(--bad); }

/* ---------- administração ---------- */
.admin { display: grid; gap: 16px; }
.table-wrapper { overflow: auto; border: 1px solid var(--line); container-type: inline-size; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 21px; }
caption { text-align: start; padding: 12px; font-family: var(--f-head); font-weight: 500; color: var(--ink); }
th { text-align: left; font-family: var(--f-head); font-size: 12.5px; font-weight: 600; color: var(--link); padding: 9px 12px; border-bottom: 3px solid var(--brand); white-space: nowrap; background: var(--bg); }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody th { font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); white-space: normal; }
tbody tr:hover td, tbody tr:hover th { background: var(--mist); }
td select { min-height: 40px; border: 1px solid var(--line); border-bottom: 2px solid var(--body); border-radius: 0; background: var(--bg); padding: 4px 8px; }
td input[type=checkbox] { width: 20px; height: 20px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-salvar { min-height: 38px; padding: 6px 14px; background: var(--brand); color: #fff; border: 1px solid var(--brand); font-family: var(--f-head); font-size: 14px; font-weight: 500; }
.btn-salvar:disabled { opacity: .6; cursor: progress; }
.btn-excluir { min-height: 38px; padding: 6px 14px; background: var(--bg); color: var(--bad); border: 1px solid var(--bad); font-family: var(--f-head); font-size: 14px; font-weight: 500; }
.btn-excluir.confirmar { background: var(--bad); color: var(--bg); }
.btn-excluir:disabled { opacity: .6; cursor: progress; }
@container (inline-size < 52rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--line); margin: 12px; }
  td { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--body); }
}

/* ---------- telas menores ---------- */
@media (max-width: 1100px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .content { margin-left: 0; }
  .painel-area { left: 0; }
  .drawer { box-shadow: 12px 0 30px rgba(0, 0, 0, .18); }
  .drawer:not(.closed) ~ .scrim { display: block; }
}
@media (max-width: 760px) {
  .uname { display: none; }
  .appbar .logo .logo-svg { width: 118px; height: 46px; }
  .appbar .logo .marca-texto { font-size: 13.5px; line-height: 20px; letter-spacing: 0; }
  .grid3 { grid-template-columns: 1fr; }
  select.inp { min-width: 0; width: 100%; }
  .sel { flex: 1 1 100%; }
  .sel select { flex: 1; }
  .lcard { padding: 28px 20px 22px; }
  .pagina-admin .user { display: none; }
  .pagina-admin .appbar { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
