[hidden] { display: none !important; }
/* AF3 Soluções — visual inspirado em quadros (listas e cartões). Marca: preto, branco e vermelho #cd241f. */
:root {
  --bg: #f1f2f4; --card: #fff; --ink: #172b4d; --muted: #626f86; --line: #dcdfe4;
  --brand: #cd241f; --brand-dk: #a51c18; --brand-2: #fdecea; --top: #0b0b0b;
  --link: #0c66e4; --list: #f1f2f4; --list-ink: #44546f;
  --red: #c9372c; --red-bg: #ffeceb; --amber: #7f5f01; --amber-bg: #fff7d6; --amber-solid: #f5cd47;
  --green: #216e4e; --green-bg: #dcfff1; --violet: #5e4db2; --violet-bg: #f3f0ff; --blue: #0055cc; --blue-bg: #e9f2ff;
  --aged: #f6ecd6;
  --shadow: 0 1px 1px #091e4240, 0 0 1px #091e424f;
  --shadow-lg: 0 8px 12px #091e4226, 0 0 1px #091e424f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif; font-size: 14px; line-height: 1.43;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.3rem; font-weight: 700; margin: .2rem 0 .8rem; } h2 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; } h3 { font-size: .95rem; margin: .9rem 0 .4rem; }
.muted { color: var(--muted); } .pad { padding: 1rem; } .small { font-size: .82rem; } .right { float: right; }

/* ---------- barra superior ---------- */
header#top { display: flex; align-items: center; gap: .6rem; background: var(--top); color: #fff; padding: 0 .8rem; height: 48px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff14; }
header .brand { display: flex; align-items: center; height: 100%; padding-right: .4rem; }
header .brand img { height: 22px; display: block; }
header .brand:hover { text-decoration: none; opacity: .85; }
header nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
header nav::-webkit-scrollbar { display: none; }
header nav a { color: #c7d1db; padding: .35rem .6rem; border-radius: 4px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
header nav a:hover { background: #ffffff1f; color: #fff; text-decoration: none; }
header nav a.active { background: #ffffff29; color: #fff; box-shadow: inset 0 -2px 0 var(--brand); }
header .who { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: #c7d1db; white-space: nowrap; }
header .link { color: #c7d1db; }
.badge { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 .4rem; font-size: .72rem; margin-left: .3rem; font-weight: 700; }
#menuBtn { display: none; color: #fff; font-size: 1.2rem; }

main { padding: 1.2rem 1.4rem; max-width: 1400px; margin: 0 auto; }
body.board-mode main { max-width: none; padding: 0; }

/* ---------- botões e campos ---------- */
button, .btn { font: inherit; font-weight: 500; border: 0; background: #091e420f; color: var(--ink); padding: .38rem .75rem; border-radius: 4px; cursor: pointer; display: inline-block; line-height: 1.4; }
button:hover, .btn:hover { background: #091e4224; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand-dk); }
.btn.big { padding: .6rem 1.4rem; font-size: 1rem; }
button.danger { color: var(--red); background: var(--red-bg); }
button.link { background: none; padding: 0; text-decoration: underline; color: inherit; }
button.icon { background: none; font-size: 1.05rem; padding: .2rem .45rem; }
button.icon:hover { background: #091e4224; }
button.ghost { background: #ffffff33; color: #fff; }
button.ghost:hover { background: #ffffff4d; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid #8590a2; border-radius: 3px; background: #fff; color: var(--ink); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #388bff; outline-offset: -1px; border-color: transparent; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin: .6rem 0 .2rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.panel { background: var(--card); border-radius: 8px; padding: 1rem; box-shadow: var(--shadow); }
.pagehead { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pagehead h1 { flex: 1; margin: 0; }
h2.sect { font-size: 1rem; color: var(--ink); margin: 1.6rem 0 .7rem; }

/* ---------- contadores ---------- */
.counters { display: flex; gap: .7rem; flex-wrap: wrap; margin: .4rem 0 .5rem; }
.counter { background: #fff; border-radius: 8px; padding: .7rem 1rem; min-width: 170px; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 4px solid var(--line); }
.counter b { font-size: 1.8rem; line-height: 1.1; }
.counter span { font-size: .85rem; color: var(--muted); }
.counter.red { border-left-color: var(--red); } .counter.red b { color: var(--red); }
.counter.amber { border-left-color: var(--amber-solid); } .counter.amber b { color: var(--amber); }
.counter.violet b { color: var(--violet); }
.counter:hover { box-shadow: var(--shadow-lg); text-decoration: none; }

/* ---------- quadros (projetos) como blocos ---------- */
.tiles { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { position: relative; min-height: 112px; border-radius: 8px; padding: .65rem .75rem; color: #fff; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--shadow); overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0; background: #00000000; transition: background .15s; }
.tile:hover { text-decoration: none; } .tile:hover::after { background: #00000026; }
.tile-t { font-weight: 700; font-size: 1rem; text-shadow: 0 1px 2px #0005; }
.tile-m { font-size: .78rem; opacity: .9; }
.tile-c { margin-top: auto; display: flex; gap: .35rem; flex-wrap: wrap; padding-top: .4rem; }
.tile-c span { background: #ffffff2e; border-radius: 3px; padding: 0 .4rem; font-size: .75rem; font-weight: 600; }
.tile-c span.o { background: #ffffffe6; color: var(--red); }
.tile-a { font-size: .74rem; background: #00000040; border-radius: 3px; padding: .1rem .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.new { background: #091e420f; color: var(--list-ink); align-items: center; justify-content: center; font-weight: 500; border: 0; }
.tile.new:hover { background: #091e4224; }

/* ---------- página do quadro ---------- */
.boardpage { min-height: calc(100vh - 48px); padding: 0 0 1rem; }
.bhead { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: .55rem 1rem; background: #0000003d; color: #fff; backdrop-filter: blur(4px); }
.bhead h1 { margin: 0; font-size: 1.15rem; color: #fff; }
.bhead .spacer { flex: 1; }
.bhead select { padding: .25rem .4rem; font-size: .85rem; border: 0; }
.bhead .bowner { display: flex; align-items: center; gap: .35rem; font-size: .85rem; opacity: .95; }
.btabs { display: flex; gap: .3rem; flex-wrap: wrap; padding: .55rem 1rem 0; }
.btabs a { color: #fff; background: #ffffff29; padding: .28rem .7rem; border-radius: 4px; font-size: .85rem; font-weight: 500; }
.btabs a:hover { background: #ffffff47; text-decoration: none; }
.btabs a.active { background: #fff; color: var(--ink); }
.bdesc { color: #fff; opacity: .9; margin: .5rem 1rem 0; font-size: .88rem; }
.boardpage > .box { margin: .6rem 1rem; }
.boardpage .sheet { background: #fff; margin: .7rem 1rem; padding: 1rem; border-radius: 8px; box-shadow: var(--shadow-lg); }
.fdrop { margin: .6rem 1rem 0; }
.sheet .fdrop { margin: 0 0 .6rem; }
.fdrop summary { display: inline-block; cursor: pointer; list-style: none; background: #ffffff33; color: #fff; padding: .28rem .7rem; border-radius: 4px; font-size: .85rem; font-weight: 500; }
.sheet .fdrop summary { background: #091e420f; color: var(--ink); }
.fdrop summary::-webkit-details-marker { display: none; }
.fdrop[open] summary { margin-bottom: .4rem; }
.bhint { color: #ffffffd9; font-size: .78rem; margin: .4rem 1rem 0; }

/* ---------- listas e cartões ---------- */
.board { display: flex; align-items: flex-start; gap: .75rem; overflow-x: auto; padding: .75rem 1rem .5rem; }
.col { flex: 0 0 272px; background: var(--list); border-radius: 12px; padding: .5rem .5rem .35rem; max-height: calc(100vh - 190px); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.col.over { outline: 2px solid #388bff; }
.col-h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; color: var(--ink); padding: .25rem .45rem .5rem; }
.col-h .cnt { font-weight: 500; font-size: .78rem; color: var(--list-ink); background: #091e420f; border-radius: 10px; padding: 0 .45rem; }
.col-h.limit .cnt { background: var(--red-bg); color: var(--red); }
.col-b { overflow-y: auto; min-height: 8px; padding: 0 .05rem; display: flex; flex-direction: column; gap: .5rem; }
.kcard { background: #fff; border-radius: 8px; padding: .45rem .65rem .4rem; cursor: pointer; box-shadow: var(--shadow); border: 2px solid transparent; }
.kcard:hover { border-color: #388bff; }
.kcard.done .t { color: var(--muted); }
.kcard .lbls { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .3rem; }
.kcard .lbl { display: inline-block; min-width: 40px; max-width: 100%; height: 16px; line-height: 16px; padding: 0 .4rem; border-radius: 4px; font-size: .68rem; font-weight: 600; color: #172b4d; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kcard .t { font-size: .9rem; color: var(--ink); word-wrap: break-word; margin-bottom: .25rem; }
.kfoot { display: flex; align-items: flex-end; gap: .3rem; }
.bdgs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.bdg { font-size: .72rem; color: var(--list-ink); border-radius: 3px; padding: 0 .3rem; line-height: 20px; white-space: nowrap; }
.bdg.muted { color: #8590a2; }
.bdg.due-over { background: var(--red); color: #fff; }
.bdg.due-soon { background: var(--amber-solid); color: #533f04; }
.bdg.due-done { background: #1f845a; color: #fff; }
.bdg.ms { background: var(--violet-bg); color: var(--violet); font-weight: 600; }
.bdg.blk { background: var(--red-bg); color: var(--red); font-weight: 600; }
.bdg.rev { background: var(--blue-bg); color: var(--blue); }
.bdg.aged-b { background: #e9dcc0; color: #5c4210; font-weight: 600; }
.ppl { display: flex; }
.ppl .avatar.co { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.kcard .role { font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.qadd { padding-top: .4rem; }
.qadd-btn { width: 100%; text-align: left; background: none; color: var(--list-ink); border-radius: 8px; padding: .4rem .5rem; }
.qadd-btn:hover { background: #091e4224; }
.qadd-in { min-height: 56px; border: 0; box-shadow: var(--shadow); border-radius: 8px; margin-bottom: .4rem; }
/* envelhecimento: textura envelhecida, contraste preservado */
.aged { background-color: var(--aged) !important; background-image: repeating-linear-gradient(135deg, rgba(120,90,40,.07) 0 6px, transparent 6px 12px) !important; }
.kcard.aged { border-color: #d9c49a; }
.kcard.aged:hover { border-color: #388bff; }
.aged-tag { color: #6b4e16; font-weight: 600; }

/* ---------- avatares ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .64rem; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar.me { width: 28px; height: 28px; font-size: .72rem; }

/* ---------- etiquetas genéricas ---------- */
.pill { display: inline-block; border-radius: 3px; padding: 0 .45rem; font-size: .74rem; font-weight: 600; line-height: 20px; background: #091e420f; color: var(--list-ink); white-space: nowrap; }
.pill.red { background: var(--red-bg); color: var(--red); } .pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); } .pill.gray { color: var(--muted); }
.bhead .pill { background: #ffffffe6; }
.alerts { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .82rem; color: var(--red); }

/* ---------- abas e filtros (demais páginas) ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin: .5rem 0 1rem; flex-wrap: wrap; }
.tabs a { padding: .45rem .8rem; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; background: #fff; padding: .5rem; border-radius: 8px; box-shadow: var(--shadow); }
.filters select, .filters input { font-size: .84rem; padding: .28rem .4rem; }

/* ---------- tabela ---------- */
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: .86rem; box-shadow: var(--shadow); }
table.t th, table.t td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: #f7f8f9; cursor: pointer; white-space: nowrap; font-weight: 600; color: var(--list-ink); font-size: .8rem; }
table.t tr:hover td { background: #f7f8f9; }
.scroll { overflow-x: auto; }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal .d { background: #fff; min-height: 95px; padding: .25rem; font-size: .8rem; }
.cal .d.other { background: #f7f8f9; color: #a5adba; } .cal .d.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .h { background: #f7f8f9; font-weight: 600; text-align: center; padding: .35rem; font-size: .78rem; color: var(--list-ink); }
.cal .ev { display: block; border-radius: 3px; padding: .1rem .3rem; margin-top: 2px; background: var(--blue-bg); color: var(--blue); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.cal .ev:hover { text-decoration: none; filter: brightness(.95); }
.cal .ev.ms { background: var(--violet-bg); color: var(--violet); font-weight: 600; } .cal .ev.od { background: var(--red-bg); color: var(--red); } .cal .ev.fu { background: var(--amber-bg); color: var(--amber); }

/* ---------- gráficos ---------- */
.bars .bar { display: flex; align-items: center; gap: .5rem; margin: .3rem 0; cursor: pointer; font-size: .86rem; border-radius: 4px; padding: .1rem .2rem; }
.bars .bar:hover { background: #f7f8f9; }
.bars .bar span.l { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bar i { display: block; height: 18px; background: var(--brand); border-radius: 3px; min-width: 2px; }
.bars .bar:hover i { background: var(--brand-dk); } .bars .bar b { min-width: 2rem; }

/* ---------- cronograma ---------- */
.gantt { position: relative; font-size: .8rem; }
.gantt .gr { display: flex; align-items: center; border-bottom: 1px solid var(--line); height: 32px; }
.gantt .gl { width: 230px; flex: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: .5rem; cursor: pointer; }
.gantt .gt { position: relative; flex: 1; height: 100%; }
.gantt .gb { position: absolute; top: 8px; height: 16px; background: var(--link); border-radius: 4px; opacity: .85; }
.gantt .gp { position: absolute; top: 9px; width: 14px; height: 14px; transform: translateX(-7px) rotate(45deg); background: var(--violet); }
.gantt .gp.task { background: var(--link); border-radius: 50%; transform: translateX(-7px); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); }

/* ---------- janela do cartão ---------- */
.modal { position: fixed; inset: 0; background: #091e427a; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 50; overflow-y: auto; }
.modal-box { background: var(--bg); border-radius: 12px; width: min(960px, 100%); padding: 1.2rem 1.4rem; position: relative; box-shadow: var(--shadow-lg); }
.modal .close { position: absolute; right: .6rem; top: .5rem; border-radius: 50%; width: 34px; height: 34px; }
.modal h2 { font-size: 1.25rem; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.4rem; margin-top: .6rem; }
.cols2 > div { min-width: 0; }
.cols2 > div:last-child h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 1rem 0 .35rem; }
.cols2 > div:last-child button:not(.link):not(.icon) { display: block; width: 100%; text-align: left; margin: 0 0 .35rem; }
.cols2 > div:last-child button.primary { text-align: center; }
.cols2 > div:last-child .row { flex-wrap: wrap; gap: .35rem; }
.cols2 > div:last-child .row input { flex: 1; min-width: 0; }
.cols2 > div:first-child h3 { display: flex; align-items: center; gap: .4rem; }
.hist { font-size: .8rem; border-left: 2px solid var(--line); padding-left: .7rem; max-height: 340px; overflow-y: auto; }
.hist div { margin-bottom: .45rem; }
.box { border-radius: 8px; padding: .65rem .8rem; margin: .5rem 0; background: #fff; box-shadow: var(--shadow); }
.box.warn { background: var(--amber-bg); box-shadow: none; border-left: 4px solid var(--amber-solid); }
.box.err { background: var(--red-bg); box-shadow: none; border-left: 4px solid var(--red); }
.modal.dlg { z-index: 70; align-items: flex-start; padding-top: 14vh; }
.dlg-box { width: min(460px, 100%); background: #fff; }
.dlg-box h2 { margin-top: 0; font-size: 1.1rem; }
.dlg-actions { justify-content: flex-end; margin-top: 1rem; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: #172b4d; color: #fff; padding: .65rem 1.1rem; border-radius: 6px; z-index: 99; max-width: 90vw; box-shadow: var(--shadow-lg); }
.toast.err { background: var(--red); }
.checklist label { display: flex; gap: .45rem; align-items: center; color: var(--ink); font-size: .9rem; font-weight: 400; margin: .2rem 0; }

/* ---------- login ---------- */
body.login-mode { background: radial-gradient(circle at 20% 0%, #3a0f0d 0%, #0b0b0b 55%); min-height: 100vh; }
.login { max-width: 420px; margin: 12vh auto; text-align: center; }
.login .login-logo { width: 300px; max-width: 80%; margin-bottom: 1.4rem; }
.login .panel { padding: 1.6rem 1.4rem; }
.login h1 { font-size: 1.2rem; }

/* ---------- reuniões, pauta, relatório ---------- */
.sug { border-radius: 8px; padding: .65rem .8rem; margin: .45rem 0; background: #fff; box-shadow: var(--shadow); }
.sug.done { opacity: .6; }
.evidence { font-style: italic; color: #44546f; border-left: 3px solid var(--line); padding-left: .5rem; margin: .3rem 0; font-size: .86rem; }
.agenda td.n { text-align: center; cursor: pointer; } .agenda td.n b { display: inline-block; min-width: 1.6rem; border-radius: 4px; background: var(--blue-bg); color: var(--blue); }
.agenda td.n b.hi { background: var(--red-bg); color: var(--red); }
pre.report { white-space: pre-wrap; background: #fff; padding: 1rem; border-radius: 8px; font-family: inherit; box-shadow: var(--shadow); }

/* ---------- celular ---------- */
@media (max-width: 800px) {
  #menuBtn { display: block; }
  header#top { flex-wrap: wrap; height: auto; min-height: 48px; padding: .3rem .6rem; }
  header .brand img { height: 18px; }
  header .brand { flex: 1; }
  header nav { display: none; order: 3; flex: 0 0 100%; flex-direction: column; padding: .3rem 0 .5rem; border-top: 1px solid #ffffff1f; max-height: 70vh; overflow-y: auto; }
  header nav.open { display: flex; }
  header nav a { padding: .55rem .6rem; font-size: .95rem; }
  header .who #whoName { display: none; }
  main { padding: .8rem; }
  .col { flex-basis: 85vw; max-height: none; }
  .board { scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; }
  .cols2 { grid-template-columns: 1fr; }
  .counter { min-width: calc(50% - .4rem); }
  .gantt .gl { width: 120px; }
  .cal .d { min-height: 60px; font-size: .7rem; }
  .bhead { padding: .5rem .7rem; } .bhead .spacer { display: none; }
}

/* Seletor de pessoas (chips) */
.picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.picker .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 2px solid #dfe1e6; background: #fff; color: #172b4d; cursor: pointer; font-size: .85rem; width: auto; }
.picker .chip .ck { display: none; color: #fff; background: #1f845a; border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; align-items: center; justify-content: center; }
.picker .chip.on { border-color: #1f845a; background: #dcfff1; font-weight: 600; }
.picker .chip.on .ck { display: inline-flex; }
.picker .chip:disabled { opacity: .6; cursor: default; }

/* Arquivados */
.arch { display: flex; flex-direction: column; gap: 6px; }
.arch-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #dfe1e6; border-radius: 8px; padding: 8px 12px; }
.arch-row a { font-weight: 600; }
.arch-row .muted { flex: 1; }

/* Listas personalizadas */
.col-h .col-menu { background: transparent; color: inherit; padding: 0 6px; font-size: 1rem; line-height: 1; width: auto; }
.col-h .col-menu:hover { background: rgba(9,30,66,.12); }
.col.addlist { background: rgba(255,255,255,.24); align-self: flex-start; }
.addlist-btn { width: 100%; text-align: left; background: transparent; color: #fff; font-weight: 600; padding: 10px 12px; }
.addlist-btn:hover { background: rgba(255,255,255,.2); }
.col.addlist:has(.addlist-form) { background: #f1f2f4; }
.addlist-form { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.addlist-form input, .addlist-form select { width: 100%; }
.col-h { gap: 6px; }
.col-h > span:first-child { flex: 1; }

/* Ajuda */
.help { max-width: 860px; }
.help-idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 1rem 0 2rem; }
.help-idx a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #dfe1e6; color: inherit; text-decoration: none; }
.help-idx a:hover, .help-idx a.on { border-color: #cd241f; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.help-idx span { font-size: .82rem; color: #626f86; }
.help-sec { background: #fff; border: 1px solid #dfe1e6; border-radius: 10px; padding: 4px 18px 8px; margin-bottom: 12px; scroll-margin-top: 70px; }
.help-sec li { margin: .45rem 0; line-height: 1.45; }
.helplink { font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* A17: foco visível para quem navega pelo teclado */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible,
[data-act][role="button"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
th .th-sort { all: unset; cursor: pointer; font: inherit; font-weight: inherit; }
th .th-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gantt a.gl { display: block; color: inherit; text-decoration: none; }
/* A18: campos editáveis na tabela */
table.t td input[data-cfcell], table.t td select[data-cfcell] { min-width: 7rem; padding: .15rem .3rem; font-size: .85rem; }
