/* V1504 — Fornecedores › Avaliação de Fornecimento */
.fav-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fav-acoes button, .fav-botoes button, .fav-rodape-acoes button, .fav-sec-topo button { min-height: 38px; }
.fav-muted { color: var(--text-muted, var(--tq-texto-3)); font-size: 12.5px; }
.fav-erro { color: var(--tq-vermelho); font-weight: 600; }
.fav-txt-alerta { color: #9a3412; font-weight: 600; }
.fav-perigo { color: var(--tq-vermelho) !important; }
.fav-link { background: none; border: 0; padding: 0; color: var(--tq-azul-600); cursor: pointer; font: inherit; font-size: 12.5px; text-decoration: underline; }
.fav-link:disabled { color: #a7b1be; cursor: default; text-decoration: none; }
.fav-tag { display: inline-block; padding: 1px 7px; border-radius: 9px; background: #eef2f7; color: var(--tq-texto); font-size: 11px; font-weight: 600; }
.fav-alerta { border: 1px solid #f3c9a8; background: #fff6ef; color: #6b3410; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.fav-alerta p { margin: 3px 0; } .fav-alerta ul { margin: 4px 0 0; padding-left: 18px; }
.fav-sem-padding { padding: 0 !important; overflow: hidden; }
.fav-sec-tit { margin: 0; padding: 12px 14px 4px; font-size: 15px; }
.fav-sec-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.fav-sec-topo h3 { margin: 0; }

/* selos e faixas */
.fav-selo { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: #eef2f7; color: var(--tq-texto); white-space: nowrap; }
.fav-selo--concluida, .fav-selo--concluido { background: #e5f4ea; color: var(--tq-verde); }
.fav-selo--em_andamento, .fav-selo--aberto { background: var(--tq-azul-100); color: var(--tq-azul-600); }
.fav-selo--atrasada { background: #fdecea; color: #9f2a20; }
.fav-selo--cancelada, .fav-selo--cancelado { background: #f1f3f6; color: var(--tq-texto-3); text-decoration: line-through; }
.fav-faixa { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--fav-cor) 14%, #fff); color: color-mix(in srgb, var(--fav-cor) 80%, #000); white-space: nowrap; }
.fav-faixa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fav-cor); }

/* indicadores e grade */
.fav-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fav-kpi { background: #fff; border: 1px solid var(--tq-borda); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; }
button.fav-kpi { cursor: pointer; } button.fav-kpi:hover { border-color: #9fb3cf; }
.fav-kpi span { font-size: 12px; font-weight: 600; color: var(--tq-texto-2); text-transform: uppercase; letter-spacing: .02em; }
.fav-kpi strong { font-size: 24px; color: var(--tq-azul-800); font-variant-numeric: tabular-nums; }
.fav-kpi--destaque { background: var(--tq-azul-800); border-color: var(--tq-azul-800); } .fav-kpi--destaque span { color: #c9d4e3; } .fav-kpi--destaque strong { color: #fff; }
.fav-grade2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.fav-grade2--1-2 { grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr); }
@media (max-width: 900px) { .fav-grade2--1-2 { grid-template-columns: 1fr; } }
.fav-progresso { height: 8px; border-radius: 4px; background: #eef1f5; overflow: hidden; min-width: 80px; }
.fav-progresso i { display: block; height: 100%; background: var(--tq-azul-600); border-radius: 4px; }
.fav-ciclo-linha { display: grid; grid-template-columns: 1fr 140px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eef1f5; }
.fav-ciclo-linha small { display: block; color: var(--tq-texto-2); font-size: 12px; margin-top: 2px; }

/* tabelas */
.fav-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.fav-tabela th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--tq-texto-2); padding: 9px 12px; border-bottom: 1px solid var(--tq-borda); background: #f7f9fc; white-space: nowrap; }
.fav-tabela td { padding: 9px 12px; border-top: 1px solid #eef1f5; vertical-align: middle; }
.fav-tabela tr[data-abrir], .fav-tabela tr[data-ciclo], .fav-tabela tr[data-modelo], .fav-tabela tr[data-tipo], .fav-tabela tr[data-perg] { cursor: pointer; }
.fav-tabela tbody tr:hover td { background: #f7faff; }
.fav-tabela tr.is-incluido td { background: #f4fbf6; }
.fav-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fav-tabela input[type=text], .fav-tabela input[type=number], .fav-tabela select { width: 100%; min-height: 32px; box-sizing: border-box; }
.fav-rolagem { max-height: 520px; overflow: auto; border: 1px solid #eef1f5; border-radius: 8px; }

/* filtros e formulários */
.fav-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 16px; margin-bottom: 12px; }
.fav-filtros--inline { padding: 0; margin-bottom: 8px; } .fav-filtros--inline input[type=search] { min-height: 36px; flex: 1 1 220px; }
.fav-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 0; margin: 0; padding: 0; }
.fav-campo > span, .fav-campo > legend { font-size: 12px; font-weight: 600; color: var(--tq-texto-2); padding: 0; }
.fav-campo input, .fav-campo select, .fav-campo textarea { min-height: 38px; box-sizing: border-box; width: 100%; font: inherit; }
.fav-campo--check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fav-form-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fav-col2 { grid-column: 1 / -1; }
.fav-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.fav-checks label { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .fav-form-grade { grid-template-columns: 1fr; } }

/* abas */
.fav-abas { display: inline-flex; border: 1px solid var(--tq-borda-forte); border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.fav-aba { border: 0; background: transparent; padding: 9px 18px; font: inherit; font-weight: 600; color: var(--tq-texto); cursor: pointer; }
.fav-aba + .fav-aba { border-left: 1px solid var(--tq-borda-forte); } .fav-aba.is-on { background: var(--tq-azul-800); color: #fff; }
.fav-lista-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fav-lista-itens button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--tq-borda); border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.fav-lista-itens button.is-on { border-color: var(--tq-azul-600); background: var(--tq-azul-100); } .fav-lista-itens small { color: var(--tq-texto-2); white-space: nowrap; }

/* preenchimento */
.fav-av { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .fav-av { grid-template-columns: 1fr; } }
.fav-av-principal { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fav-av-lateral { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fav-cab { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.fav-cab > div span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--tq-texto-2); letter-spacing: .02em; }
.fav-cab > div strong { font-size: 13.5px; }
.fav-cab-aviso { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
.fav-item-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fav-item-topo h3 { margin: 0; }
.fav-pergunta { padding: 10px 0; border-top: 1px solid #eef1f5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.fav-pergunta.is-pendente .fav-pergunta-texto::before { content: "●"; color: #d97706; margin-right: 6px; font-size: 10px; }
.fav-pergunta-texto { font-size: 13.5px; } .fav-pergunta-texto small { display: block; color: var(--tq-texto-2); font-size: 12px; margin-top: 2px; }
.fav-respostas { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
.fav-op { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--tq-borda-forte); border-radius: 6px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #33445c; cursor: pointer; }
.fav-respostas--sn .fav-op { min-width: 56px; }
.fav-op:hover:not(:disabled) { border-color: var(--tq-azul-600); }
.fav-op.is-on { background: var(--tq-azul-600); border-color: var(--tq-azul-600); color: #fff; }
.fav-op--na.is-on { background: var(--tq-texto-2); border-color: var(--tq-texto-2); }
.fav-op:disabled { cursor: default; opacity: .85; }
.fav-pergunta-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.fav-coment { flex: 1 1 260px; min-height: 32px; font-size: 12.5px; }
.fav-anexos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.fav-upload { cursor: pointer; }
@media (max-width: 760px) { .fav-pergunta { grid-template-columns: 1fr; } .fav-respostas { justify-content: flex-start; } }
.fav-resumo h3 { margin: 0 0 8px; }
.fav-res-item { margin-bottom: 9px; } .fav-res-item > div:first-child { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.fav-nota { display: flex; flex-direction: column; align-items: center; padding: 12px 0 6px; border-top: 1px solid #eef1f5; margin-top: 6px; }
.fav-nota span { font-size: 12px; font-weight: 600; color: var(--tq-texto-2); text-transform: uppercase; }
.fav-nota strong { font-size: 40px; line-height: 1.1; color: var(--tq-azul-800); font-variant-numeric: tabular-nums; }
.fav-nota small { color: var(--tq-texto-2); }
.fav-res-faixa { display: flex; justify-content: center; margin-bottom: 6px; }
.fav-botoes { display: flex; flex-direction: column; gap: 8px; }

/* modelo */
.fav-editor { display: flex; flex-direction: column; gap: 12px; }
.fav-m-item { border: 1px solid var(--tq-borda); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fbfcfe; }
.fav-m-item-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fav-m-item-topo strong { flex: 1 1 200px; }
.fav-peso { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tq-texto-2); }
.fav-peso input { width: 80px; min-height: 32px; }
.fav-m-pergs { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; }
.fav-m-pergs label { display: flex; gap: 8px; align-items: flex-start; }
.fav-regua { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 10px; border: 1px solid var(--tq-borda); }
.fav-regua i { display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.fav-regua-lacuna { background: repeating-linear-gradient(45deg, #f3c9a8, #f3c9a8 6px, #fff6ef 6px, #fff6ef 12px) !important; color: #9a3412 !important; }
.fav-rodape-acoes { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 12px; background: #fff; border: 1px solid var(--tq-borda); border-radius: 10px; box-shadow: 0 -4px 14px rgba(15, 30, 55, .06); }

/* gráfico */
.fav-grafico svg { width: 100%; max-width: 760px; height: auto; display: block; }
.fav-g-linha { stroke: var(--tq-borda); stroke-width: 1; } .fav-g-txt { fill: var(--tq-texto-2); font-size: 11px; }
.fav-g-serie { fill: none; stroke: var(--tq-azul-600); stroke-width: 2.5; }

/* modal */
.fav-modal-fundo { position: fixed; inset: 0; background: rgba(15, 25, 45, .45); display: flex; align-items: center; justify-content: center; z-index: 3000; padding: 12px; }
.fav-modal { width: min(var(--fav-modal-w, 640px), calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(10, 20, 40, .3); overflow: hidden; }
.fav-modal-topo { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eef1f5; }
.fav-modal-topo h3 { margin: 0; font-size: 17px; color: var(--tq-azul-800); }
.fav-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--tq-texto-2); cursor: pointer; }
.fav-modal-corpo { padding: 14px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.fav-modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #eef1f5; }
.fav-modal-rodape button { min-height: 38px; min-width: 110px; }
/* V1547: histórico da avaliação em linha do tempo, com eventos legíveis e detalhes contextualizados. */
.fav-hist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.fav-modal:has(.fav-hist-painel) { --fav-modal-w: 720px; }
.fav-modal:has(.fav-hist-painel) .fav-modal-corpo { gap: 12px; padding: 16px 20px; background: #fbfcfe; }
.fav-modal:has(.fav-hist-painel) .fav-modal-rodape { background: #fff; }
.fav-hist-painel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fav-hist-resumo { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #dce6f3; border-radius: 12px; background: linear-gradient(110deg, var(--tq-azul-100), #fff); }
.fav-hist-resumo-icone { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: #e1edff; color: var(--tq-azul-600); font-size: 23px; font-weight: 700; }
.fav-hist-resumo > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fav-hist-resumo > div strong { font-size: 13px; color: var(--tq-azul-800); }
.fav-hist-resumo > div small { color: var(--tq-texto-2); font-size: 12px; line-height: 1.4; }
.fav-hist-contagem { margin-left: auto; flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e8eef7; color: #35506f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fav-hist-timeline { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 1px 0 1px 2px; }
.fav-hist-evento { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: stretch; gap: 10px; min-width: 0; }
.fav-hist-evento:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 15px; top: 32px; bottom: -14px; width: 2px; background: #dce5f1; }
.fav-hist-marcador { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #d5e3f5; border-radius: 50%; background: #edf4ff; color: var(--tq-azul-600); font-size: 17px; font-weight: 800; box-sizing: border-box; }
.fav-hist-evento--sucesso .fav-hist-marcador { color: #16804b; border-color: #b5e2c7; background: #e8f7ee; }
.fav-hist-evento--alerta .fav-hist-marcador { color: #a65d00; border-color: #f2d49e; background: #fff5df; }
.fav-hist-evento--perigo .fav-hist-marcador { color: #bd302c; border-color: #f2c2bf; background: #fff0ef; }
.fav-hist-evento--informativo .fav-hist-marcador { color: var(--tq-azul-600); border-color: #c9ddfb; background: var(--tq-azul-100); }
.fav-hist-cartao { min-width: 0; border: 1px solid #e0e7f0; border-radius: 11px; background: #fff; overflow: hidden; box-shadow: 0 2px 5px rgba(20, 45, 75, .035); }
.fav-hist-evento-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 14px 10px; }
.fav-hist-evento-topo > div { min-width: 0; }
.fav-hist-evento-topo h4 { margin: 0; color: var(--tq-azul-800); font-size: 13px; font-weight: 750; line-height: 1.35; }
.fav-hist-evento-topo p { margin: 4px 0 0; color: #65758b; font-size: 12px; line-height: 1.45; }
.fav-hist-evento-topo time { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; gap: 3px; color: #52667f; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fav-hist-evento-topo time strong { color: #233d5e; font-size: 11px; }
.fav-hist-evento-topo time span { color: var(--tq-texto-3); }
.fav-hist-detalhes { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; column-gap: 10px; row-gap: 5px; padding: 10px 14px; border-top: 1px solid #eef2f7; background: #fbfcff; font-size: 12px; overflow-wrap: anywhere; }
.fav-hist-detail-label { color: #7a889b; font-size: 11px; }
.fav-hist-detalhes > span:not(.fav-hist-detail-label), .fav-hist-detalhes > strong:not(.fav-hist-detail-label) { color: #334b67; }
.fav-hist-score { color: #173e6e !important; font-size: 15px; }
.fav-hist-score small { color: var(--tq-texto-3); font-size: 11px; font-weight: 500; }
.fav-hist-motivo { margin: 0 14px 10px; padding: 9px 11px; border-left: 3px solid #e2a23a; border-radius: 0 7px 7px 0; background: #fff8e9; }
.fav-hist-motivo strong { display: block; margin-bottom: 3px; color: #8a5a12; font-size: 11px; }
.fav-hist-motivo p { margin: 0; color: #5e4a2c; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fav-hist-ator { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 14px; border-top: 1px solid #eef2f7; color: var(--tq-texto-3); font-size: 11px; overflow-wrap: anywhere; }
.fav-hist-ator > span:first-child { color: #8a9ab0; font-size: 9px; }
.fav-hist-ator strong { color: #53677f; font-weight: 600; }
.fav-hist-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px; border: 1px dashed #cbd7e6; border-radius: 12px; background: #fff; }
.fav-hist-vazio > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: #eef4fc; color: #50709b; font-size: 26px; }
.fav-hist-vazio strong { color: #253f60; font-size: 14px; }
.fav-hist-vazio p { margin: 5px 0 0; max-width: 350px; color: #73839a; font-size: 12px; line-height: 1.5; }
@media (max-width: 560px) {
  .fav-modal:has(.fav-hist-painel) { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .fav-modal:has(.fav-hist-painel) .fav-modal-corpo { padding: 12px; }
  .fav-hist-resumo { align-items: flex-start; padding: 10px; gap: 8px; }
  .fav-hist-resumo-icone { flex-basis: 32px; width: 32px; height: 32px; }
  .fav-hist-resumo > div small { font-size: 11px; }
  .fav-hist-contagem { padding: 4px 7px; font-size: 10px; }
  .fav-hist-evento { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; }
  .fav-hist-evento:not(:last-child)::after { left: 13px; top: 28px; }
  .fav-hist-marcador { width: 28px; height: 28px; }
  .fav-hist-evento-topo { flex-direction: column; gap: 7px; padding: 10px; }
  .fav-hist-evento-topo time { flex-direction: row; align-items: center; gap: 7px; white-space: normal; }
  .fav-hist-detalhes { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 9px 10px; }
  .fav-hist-detail-label:not(:first-child) { margin-top: 4px; }
  .fav-hist-motivo { margin: 0 10px 9px; }
  .fav-hist-ator { padding: 8px 10px; }
}


/* V1506: caixas de seleção alinhadas à esquerda (o padrão global esticava o checkbox) e opções em cartões */
.fav-modal input[type=checkbox], .fav-checks input[type=checkbox], .fav-m-pergs input[type=checkbox], .fav-campo--check input[type=checkbox], .fav-tabela input[type=checkbox] {
  width: 18px !important; height: 18px !important; min-width: 18px; min-height: 0 !important; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--tq-azul-600); cursor: pointer; }
.fav-campo--check { justify-content: flex-start; text-align: left; }
.fav-form-grade--3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr); }
.fav-regras { border: 0; }
.fav-regras-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fav-opcao { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fbfcfe; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.fav-opcao:hover { border-color: #9fb3cf; }
.fav-opcao:has(input:checked) { border-color: var(--tq-azul-600); background: #eef4fd; }
.fav-opcao input[type=checkbox] { margin-top: 2px; }
.fav-opcao span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fav-opcao b { font-size: 13px; color: var(--tq-azul-800); font-weight: 600; }
.fav-opcao small { font-size: 12px; color: var(--tq-texto-3); line-height: 1.35; }
.fav-opcao--base { align-self: end; min-height: 38px; }
/* perguntas dentro do modelo: caixa, texto e tipo alinhados */
.fav-m-pergs { gap: 2px; }
.fav-m-pergs label { display: grid !important; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 6px 8px; border-radius: 6px; text-align: left !important; cursor: pointer; }
.fav-m-pergs label:hover { background: var(--tq-azul-100); }
.fav-m-pergs label small { white-space: nowrap; padding: 1px 8px; border-radius: 9px; background: #eef2f7; font-size: 11px; font-weight: 600; }
@media (max-width: 640px) { .fav-form-grade--3, .fav-regras-grade { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- V1507 — Itens e perguntas: excluir e visual */
.fav-cont { display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 4px; border-radius: 10px; background: #eef2f7; color: var(--tq-texto); font-size: 12px; font-weight: 700; text-align: center; vertical-align: middle; }
.fav-alerta { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fff6e5; border: 1px solid #f3d9a4; color: #8a5a00; font-size: 12.5px; }
.fav-filtro-inat { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12.5px; color: var(--tq-texto-2); }
.fav-lista-itens button { min-height: 46px; transition: border-color .15s, background .15s; }
.fav-lista-itens button:hover { border-color: #b9c8de; background: #f7f9fc; }
.fav-lista-itens button.is-on { box-shadow: inset 3px 0 0 var(--tq-azul-600); }
.fav-li-nome { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font-weight: 600; color: var(--tq-texto); }
.fav-li-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fav-lista-itens li.is-inativo .fav-li-nome { color: var(--tq-texto-3); font-weight: 500; }
.fav-lista-itens small.fav-zero { color: var(--tq-amarelo); }
.fav-tag--aviso { background: #fff1d8; color: #9b6816; }
.fav-tag--uso { background: var(--tq-azul-100); color: var(--tq-azul-600); }
.fav-orientacao { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--tq-azul-600); background: #f5f8fd; border-radius: 0 8px 8px 0; color: var(--tq-texto); font-size: 13px; }
.fav-tabela-pergs tbody tr[data-perg] { cursor: pointer; }
.fav-tabela-pergs tbody tr[data-perg]:hover td { background: #f7f9fc; }
.fav-tabela-pergs tr.is-inativo td { color: var(--tq-texto-3); }
.fav-col-acoes { width: 84px; text-align: right; white-space: nowrap; }
.fav-ico { width: 32px; height: 32px; min-height: 32px !important; padding: 0; margin-left: 4px; border: 1px solid var(--tq-borda); border-radius: 8px; background: #fff; color: var(--tq-texto); font-size: 15px; line-height: 1; cursor: pointer; }
.fav-ico:hover { border-color: var(--tq-azul-600); color: var(--tq-azul-600); background: var(--tq-azul-100); }
.fav-ico--del:hover { border-color: var(--tq-vermelho); color: var(--tq-vermelho); background: #fff3f2; }
.fav-ico:disabled { opacity: .35; cursor: not-allowed; }
.fav-vazio { padding: 26px 10px !important; text-align: center; color: var(--tq-texto-2); }
.fav-vazio button { margin-top: 10px; }
.fav-modal-rodape .danger-ghost { margin-right: auto; }

/* ---------------------------------------------------------------- V1508 — confirmação no padrão do sistema e tipos de fornecedor */
.fav-confirma p { margin: 0 0 10px; color: var(--tq-texto); font-size: 14px; line-height: 1.5; }
.fav-confirma p:last-child { margin-bottom: 0; color: var(--tq-texto-2); font-size: 13px; }
.fav-confirma--perigo p:first-child { font-weight: 600; }
.fav-modal .fav-modal-rodape button.danger { min-height: 38px; padding: 0 18px; border: 1px solid var(--tq-vermelho) !important; border-radius: 8px; background: var(--tq-vermelho) !important; color: #fff !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.fav-modal .fav-modal-rodape button.danger:hover { background: #bf2f28 !important; border-color: #bf2f28 !important; }
.fav-nota { margin: -4px 0 10px; color: var(--tq-texto-2); font-size: 12.5px; }

/* ---------------------------------------------------------------- V1509 — tipos do modelo, visualizar e publicar */
.fav-tipos-modelo { gap: 8px; }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border: 1px solid var(--tq-borda); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.fav-chip:hover { border-color: #9fb6d6; }
.fav-chip span { font-weight: 600; color: var(--tq-texto); font-size: 13.5px; }
.fav-chip small { color: var(--tq-texto-2); font-size: 11.5px; }
.fav-chip:has(input:checked) { border-color: var(--tq-azul-600); background: var(--tq-azul-100); box-shadow: inset 0 0 0 1px var(--tq-azul-600); }
.fav-chip.is-off { cursor: not-allowed; background: #f6f7f9; }
.fav-chip.is-off span { color: var(--tq-texto-3); }
.fav-modal-rodape .fav-btn-esq { margin-right: auto; }
.fav-pub-resumo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--tq-borda); border-radius: 10px; background: #f8fafc; }
.fav-pub-resumo span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--tq-texto-2); }
.fav-pub-resumo strong { display: block; color: var(--tq-texto); font-size: 14px; }
.fav-pub-resumo small { color: var(--tq-texto-2); }
.fav-pub-faixas { grid-column: 1 / -1; }
.fav-pub-faixas > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fav-pub-aviso { margin: 0; }
.fav-prev-faixa { padding: 8px 12px; border-radius: 8px; background: var(--tq-azul-100); color: var(--tq-azul-600); font-size: 13px; font-weight: 600; }
.fav-prev { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.fav-prev-principal { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fav-prev-principal .card, .fav-prev-lateral .card { margin: 0; }
.fav-prev-lateral { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.fav-prev-nota { font-size: 38px; font-weight: 800; color: var(--tq-azul-800); line-height: 1.1; margin: 4px 0 8px; }
.fav-prev-nota small { font-size: 15px; font-weight: 600; color: var(--tq-texto-3); margin-left: 4px; }
.fav-prev-regua h4 { margin: 0 0 8px; font-size: 13px; color: var(--tq-azul-800); }
.fav-prev-regua > div { margin-bottom: 6px; }
@media (max-width: 820px) { .fav-prev { grid-template-columns: 1fr; } .fav-prev-lateral { position: static; } .fav-pub-resumo { grid-template-columns: 1fr; } }
.fav-chip input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--tq-azul-600); }

/* V1517 — Visualizar formulário ocupa toda a área de conteúdo (da borda do menu lateral até a direita) */
.fav-modal-fundo--painel { left: var(--fav-esq, 0px); padding: 0; align-items: stretch; justify-content: stretch; }
.fav-modal-fundo--painel .fav-modal { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; box-shadow: -12px 0 32px rgba(10, 20, 40, .25); animation: favPainelEntra .18s ease-out; }
.fav-modal-fundo--painel .fav-modal-corpo { flex: 1 1 auto; }
.fav-modal-fundo--painel .fav-prev { grid-template-columns: minmax(0, 1fr) 320px; }
@keyframes favPainelEntra { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fav-modal-fundo--painel .fav-modal { animation: none; } }
.fav-cab .fav-nao-vinc { color: var(--tq-amarelo); }

/* V1518 — escalas compactas no editor do modelo */
.fav-escalas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.fav-escala-grupo { display: flex; flex-direction: column; gap: 5px; }
.fav-escala-tit { font-size: 12.5px; font-weight: 600; color: var(--tq-texto); }
.fav-escala-linha { display: flex; align-items: center; gap: 8px; }
.fav-escala-linha label { display: flex; align-items: center; gap: 6px; margin: 0; }
.fav-escala-linha small { color: var(--tq-texto-2); font-size: 11.5px; }
.fav-escala-linha b { color: var(--tq-texto-3); font-weight: 600; font-size: 12.5px; }
.fav-escala-linha input[type=number] { width: 72px !important; min-width: 0; text-align: center; }
.fav-escala-linha select { width: 110px !important; min-width: 0; }
.fav-escala-ajuda { flex: 1 1 260px; padding-bottom: 9px; }

/* V1519 — RNC aberta automaticamente pela faixa */
.fav-rnc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #f3c7c3; border-left: 4px solid var(--tq-vermelho); border-radius: 10px; background: #fff5f4; }
.fav-rnc > span { font-size: 20px; color: var(--tq-vermelho); }
.fav-rnc > div { flex: 1; min-width: 0; }
.fav-rnc strong { display: block; color: #8f1f17; }
.fav-rnc small { color: #6b4a47; }

/* V1520 — ciclo de avaliação em painel lateral */
.fav-cf { width: 100%; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.fav-cf-sec { padding: 14px 0 16px; border-bottom: 1px dashed #dfe5ee; display: flex; flex-direction: column; gap: 10px; }
.fav-cf-sec:last-child { border-bottom: 0; }
.fav-cf-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--tq-azul-800); }
.fav-cf-sec h4 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tq-azul-800); color: #fff; font-size: 11.5px; }
.fav-cf-grade { display: grid; gap: 10px 14px; }
.fav-cf-grade--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fav-cf-grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fav-cf-grade--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fav-cf-limpo { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fav-cf-atalhos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fav-cf-atalhos small { color: var(--tq-texto-2); margin-right: 2px; }
.fav-cf-atalho { min-height: 30px !important; padding: 0 12px; border: 1px solid #c9d6ea; border-radius: 999px; background: #f4f8fe; color: var(--tq-azul-600); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fav-cf-atalho:hover { background: var(--tq-azul-100); border-color: var(--tq-azul-600); }
.fav-chip--alerta small { color: var(--tq-amarelo); }
.fav-cf-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--tq-borda); border-radius: 10px; overflow: hidden; align-self: flex-start; }
.fav-cf-seg label { display: flex; align-items: center; gap: 0; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--tq-texto); cursor: pointer; border-right: 1px solid var(--tq-borda); background: #fff; }
.fav-cf-seg label:last-child { border-right: 0; }
.fav-cf-seg label.is-on { background: var(--tq-azul-800); color: #fff; }
.fav-cf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fav-cf-resumo { padding: 10px 12px; border-radius: 8px; background: #f3f7fd; border: 1px solid #dbe6f6; color: #29405e; font-size: 13px; }
.fav-cf-sem-modelo { margin: 0; }
@media (max-width: 900px) { .fav-cf-grade--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fav-cf-grade--3, .fav-cf-grade--2-1 { grid-template-columns: 1fr; } }

/* V1521 — seleção dos fornecedores do ciclo */
.fav-sel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.fav-sel-kpi { padding: 12px 14px; border: 1px solid var(--tq-borda); border-left: 4px solid var(--tq-azul-600); border-radius: 10px; background: #fff; }
.fav-sel-kpi strong { display: block; font-size: 22px; line-height: 1.15; color: var(--tq-azul-800); }
.fav-sel-kpi strong small { font-size: 13px; color: var(--tq-texto-3); font-weight: 600; }
.fav-sel-kpi span { font-size: 12px; color: var(--tq-texto-2); }
.fav-sel-kpi--forte { border-left-color: var(--tq-laranja); background: #fffaf4; }
.fav-sel-kpi--alerta { border-left-color: var(--tq-amarelo); }
.fav-sel-regra { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; background: #f3f7fd; border: 1px solid #dbe6f6; color: #29405e; font-size: 12.5px; }
.fav-sel-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.fav-sel-filtros input[type=search] { flex: 1 1 280px; max-width: 420px; }
.fav-sel-tipo { padding: 0 !important; overflow: hidden; margin-bottom: 12px; }
.fav-sel-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--tq-borda); background: #f8fafd; }
.fav-sel-cab h3 { margin: 0; font-size: 16px; color: var(--tq-azul-800); }
.fav-sel-toggle { width: 28px; height: 28px; min-height: 28px !important; padding: 0; border: 1px solid var(--tq-borda); border-radius: 6px; background: #fff; color: var(--tq-texto); cursor: pointer; }
.fav-sel-acoes { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.fav-sel-rol { overflow-x: auto; }
.fav-sel-tab { table-layout: fixed; min-width: 860px; }
.fav-sel-tab td { vertical-align: middle; }
.fav-sel-tab tr.is-incluido td { background: #f6faff; }
.fav-sel-tab tr.is-alterado td:first-child { box-shadow: inset 3px 0 0 var(--tq-laranja); }
.fav-sel-vol { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.fav-sel-vol small { color: var(--tq-texto-3); }
.fav-sel-barra { height: 5px; margin-top: 4px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.fav-sel-barra i { display: block; height: 100%; background: var(--tq-azul-600); border-radius: 3px; }
.fav-sel-cad { font-size: 12px; font-weight: 600; color: #1f7a3d; white-space: nowrap; }
.fav-sel-cad--inc { color: var(--tq-amarelo); cursor: help; }
.fav-sel-tab input[type=text] { width: 100%; }
.fav-sel-mot-pend { border-color: var(--tq-amarelo) !important; background: #fffaf0 !important; }
.fav-sel-rodape { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 16px; border: 1px solid #dbe3ee; border-radius: 12px; background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 18px rgba(22, 48, 79, .08); }

/* V1523 — vincular contas a pagar sem fornecedor */
.fav-vf-tab { table-layout: fixed; min-width: 820px; }
.fav-vf-tab td { vertical-align: middle; }
.fav-vf-acao { display: flex; gap: 8px; }
.fav-vf-acao select { flex: 1; min-width: 0; }
.fav-vf-acao button { min-height: 36px; white-space: nowrap; }
.fav-alerta .fav-link { margin-left: 6px; font-weight: 700; }

/* V1524 — "Ver os demais" na seleção do ciclo */
.fav-sel-mais td { text-align: center; padding: 10px !important; background: #fbfcfe; }
.fav-sel-mais .fav-link { font-weight: 700; }

/* V1525 — botão "Visualizar mais" com texto */
.fav-sel-btn-mais { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border: 1px solid #bcd0ee; border-radius: 999px; background: #fff; color: var(--tq-azul-600); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fav-sel-btn-mais:hover { background: var(--tq-azul-100); border-color: var(--tq-azul-600); }

/* V1527 — Sim / Não do mesmo tamanho; "Não" marcado fica vermelho (preenchimento e simulação). */
.fav-respostas .fav-op { box-sizing: border-box !important; height: 32px !important; min-height: 32px !important; margin: 0 !important;
  padding: 0 6px !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-size: 12.5px !important; font-weight: 600 !important; border-radius: 6px !important; box-shadow: none !important; }
.fav-respostas--sn .fav-op { width: 64px !important; min-width: 64px !important; max-width: 64px !important; }
.fav-respostas--sn .fav-op--na { width: 52px !important; min-width: 52px !important; max-width: 52px !important; }
.fav-respostas .fav-op:not(.is-on) { background: #fff !important; border: 1px solid var(--tq-borda-forte) !important; color: #33445c !important; }
.fav-respostas .fav-op.is-on { background: var(--tq-azul-600) !important; border-color: var(--tq-azul-600) !important; color: #fff !important; }
.fav-respostas .fav-op[data-v="nao"].is-on { background: var(--tq-vermelho) !important; border-color: var(--tq-vermelho) !important; color: #fff !important; }
.fav-respostas .fav-op--na.is-on { background: var(--tq-texto-2) !important; border-color: var(--tq-texto-2) !important; color: #fff !important; }
.fav-respostas .fav-op[data-v="nao"]:hover:not(:disabled):not(.is-on) { border-color: var(--tq-vermelho) !important; color: #9f2a20 !important; }

/* V1528 — régua do critério de classificação (faixas) com marcador da nota */
.fav-regua2 { position: relative; padding-top: 18px; margin: 6px 0 2px; }
.fav-regua2-barra { display: flex; height: 14px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fav-regua2-barra i { display: block; height: 100%; }
.fav-regua2-marca { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 1; }
.fav-regua2-marca span { font-size: 11px; font-weight: 700; color: var(--tq-azul-800); line-height: 1; margin-bottom: 1px; }
.fav-regua2-marca::after { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--tq-azul-800); }
.fav-regua2-escala { position: relative; height: 14px; margin-top: 2px; }
.fav-regua2-escala b { position: absolute; transform: translateX(-50%); font-size: 10px; font-weight: 500; color: var(--tq-texto-3); }
.fav-regua2-chaves { display: flex; margin-top: 2px; }
.fav-regua2-chaves > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 0 2px; }
.fav-regua2-chave { width: calc(100% - 6px); height: 6px; border: 1.5px solid var(--fav-cor); border-top: 0; border-radius: 0 0 5px 5px; margin-bottom: 3px; }
.fav-regua2-chaves strong { font-size: 11px; color: var(--fav-cor); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.fav-regua2-chaves small { font-size: 10px; color: var(--tq-texto-3); white-space: nowrap; }
.fav-res-regua { margin: 6px 0 4px; }

/* V1529 — régua do editor de faixas um pouco mais alta */
.fav-regua { height: 38px !important; margin-top: 14px; border-radius: 8px; }
.fav-regua i { font-size: 13px !important; letter-spacing: .01em; }

/* V1530 — régua do critério: chaves só com o colchete; rótulos e intervalos numa legenda abaixo (sem sobreposição) */
.fav-regua2-chaves > div { padding: 0 1px; }
.fav-regua2-chave { width: calc(100% - 2px); margin-bottom: 0; }
.fav-regua2-legenda { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.fav-regua2-legenda li { display: grid; grid-template-columns: 10px auto 1fr; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.3; }
.fav-regua2-legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--fav-cor); align-self: center; }
.fav-regua2-legenda strong { color: var(--fav-cor); font-weight: 700; white-space: nowrap; }
.fav-regua2-legenda small { color: var(--tq-texto-3); font-size: 11.5px; }
.fav-regua2-legenda li.is-atual { background: color-mix(in srgb, var(--fav-cor) 10%, #fff); border-radius: 6px; margin: 0 -6px; padding: 2px 6px; }
.fav-regua2-legenda li.is-atual small::after { content: "  ← nota atual"; color: var(--tq-azul-800); font-weight: 600; }


/* V1534 — Identificação da avaliação: hierarquia visual e campos alinhados */
.fav-cab--v1534 {
  display: flex; flex-direction: column; gap: 16px; padding: 18px 20px !important;
  border: 1px solid #d7e1ed; border-radius: 14px; box-shadow: 0 4px 14px rgba(22,48,79,.045);
  min-width: 0;
}
.fav-cab--v1534 .fav-cab-identidade {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(190px, .9fr);
  gap: 18px 26px; align-items: center; min-width: 0; padding-bottom: 14px;
  border-bottom: 1px solid var(--tq-borda);
}
.fav-cab--v1534 .fav-cab-fornecedor,
.fav-cab--v1534 .fav-cab-identidade-lateral,
.fav-cab--v1534 .fav-cab-info { min-width: 0; }
.fav-cab--v1534 .fav-cab-fornecedor > span,
.fav-cab--v1534 .fav-cab-identidade-lateral > div > span,
.fav-cab--v1534 .fav-cab-info > span {
  display: block; margin: 0 0 5px; color: #617087; font-size: 11px; line-height: 1.25;
  font-weight: 700; text-transform: uppercase; letter-spacing: .055em;
}
.fav-cab--v1534 .fav-cab-fornecedor > strong {
  display: block; color: #152f4c; font-size: 16px; line-height: 1.4; font-weight: 750;
  overflow-wrap: anywhere;
}
.fav-cab--v1534 .fav-cab-identidade-lateral { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.fav-cab--v1534 .fav-cab-identidade-lateral > div > strong,
.fav-cab--v1534 .fav-cab-info > strong {
  display: block; min-width: 0; color: #223750; font-size: 13.5px; line-height: 1.4;
  font-weight: 650; overflow-wrap: anywhere;
}
.fav-cab--v1534 .fav-cab-tipo > strong {
  display: inline-flex; align-items: center; max-width: 100%; width: fit-content;
  padding: 4px 10px; border: 1px solid #d8e5f5; border-radius: 7px;
  background: var(--tq-azul-100); color: #244e7e; font-size: 12.5px; font-weight: 700;
}
.fav-cab--v1534 .fav-cab-dados {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr) minmax(190px,1fr);
  gap: 14px 18px; align-items: center;
}
.fav-cab--v1534 .fav-cab-status { display: flex !important; align-items: center; min-height: 36px; }
.fav-cab--v1534 .fav-cab-status .fav-selo { padding: 5px 11px; border: 1px solid #e1e7ef; font-size: 11px; letter-spacing: .015em; }
.fav-cab--v1534 .fav-campo { min-width: 0; gap: 5px; }
.fav-cab--v1534 .fav-campo > span { color: #617087; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.fav-cab--v1534 .fav-campo input { min-height: 40px; padding: 0 11px; border: 1px solid #cbd7e5; border-radius: 8px; background: #fff; color: var(--tq-texto); box-shadow: none; }
.fav-cab--v1534 .fav-campo input:focus { outline: none; border-color: #2874c7; box-shadow: 0 0 0 3px rgba(40,116,199,.13); }
.fav-cab--v1534 .fav-campo input:disabled { background: #f5f7fa; color: #5c6879; cursor: not-allowed; }
.fav-cab--v1534 .fav-cab-responsavel {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(220px,1.1fr);
  gap: 14px 18px; align-items: end; padding-top: 14px; border-top: 1px solid var(--tq-borda);
}
.fav-cab--v1534 .fav-cab-avaliador { padding-bottom: 8px; }
.fav-cab--v1534 .fav-cab-avaliador > strong { font-size: 14px; color: #1a3554; }
.fav-cab--v1534 .fav-cab-aviso { padding: 9px 11px; border-radius: 8px; background: #fff8eb; border: 1px solid #f2dfb8; }
@media (max-width: 760px) {
  .fav-cab--v1534 { padding: 15px !important; gap: 13px; }
  .fav-cab--v1534 .fav-cab-identidade { grid-template-columns: minmax(0,1fr); gap: 13px; align-items: start; }
  .fav-cab--v1534 .fav-cab-identidade-lateral { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .fav-cab--v1534 .fav-cab-dados { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .fav-cab--v1534 .fav-cab-data { grid-column: 1 / -1; }
  .fav-cab--v1534 .fav-cab-responsavel { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (max-width: 440px) {
  .fav-cab--v1534 .fav-cab-identidade-lateral, .fav-cab--v1534 .fav-cab-dados { grid-template-columns: minmax(0,1fr); }
  .fav-cab--v1534 .fav-cab-data { grid-column: auto; }
}


/* V1535 — Lista e ficha: nome do fornecedor limitado a duas linhas visuais com tooltip completo. */
.fav-cab--v1534 .fav-cab-identidade { grid-template-columns: minmax(0, 1.8fr) minmax(220px, .8fr); }
.fav-cab--v1534 .fav-cab-fornecedor > strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; font-size: 15.5px; line-height: 1.35; letter-spacing: .005em;
}
.fav-cab--v1534 .fav-cab-status .fav-selo--pendente { background: #fff4db; color: #80540b; border-color: #f0dfb4; }
.fav-cab--v1534 .fav-cab-status .fav-selo--em_andamento { background: var(--tq-azul-100); color: #1c559a; border-color: #d4e4fb; }
.fav-cab--v1534 .fav-cab-status .fav-selo--atrasada { background: #fdebea; color: #a02c26; border-color: #f4d1ce; }

/* V1535 — Lista de avaliações: filtros alinhados e tabela dimensionada por conteúdo.
   Escopo restrito ao módulo de Avaliação de Fornecimento. */
.fav-filtros--avaliacoes {
  display: grid; grid-template-columns: minmax(155px, 210px) minmax(220px, 330px) auto;
  align-items: end; gap: 12px 14px; padding: 14px 16px; min-height: 82px;
  border: 1px solid var(--tq-borda); border-radius: 12px; box-shadow: 0 3px 12px rgba(22, 48, 79, .045);
}
.fav-filtros--avaliacoes .fav-campo { min-width: 0; }
.fav-filtros--avaliacoes .fav-campo > span { color: var(--tq-texto-2); }
.fav-filtros--avaliacoes .fav-campo select { min-height: 38px; border: 1px solid #cbd7e5; border-radius: 8px; background-color: #fff; }
.fav-filtros--avaliacoes .fav-campo--check {
  flex-direction: row; align-items: center; align-self: end; gap: 9px; min-height: 38px;
  margin: 0 0 0 2px; white-space: nowrap; cursor: pointer;
}
.fav-filtros--avaliacoes .fav-campo--check input[type="checkbox"] {
  width: 17px !important; height: 17px !important; min-width: 17px; min-height: 17px !important;
  flex: 0 0 17px; margin: 0; accent-color: var(--tq-azul-600);
}
.fav-filtros--avaliacoes .fav-check-caption {
  display: inline-block; margin: 0; color: #334b67; font-size: 13px; font-weight: 600;
  line-height: 1.25; text-transform: none; letter-spacing: 0;
}
.fav-lista-avaliacoes {
  padding: 0 !important; overflow: hidden; border: 1px solid var(--tq-borda); border-radius: 12px;
  box-shadow: 0 3px 14px rgba(22, 48, 79, .05);
}
.fav-lista-avaliacoes-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.fav-tabela-avaliacoes {
  width: 100%; min-width: 1050px; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  font-size: 12.5px; color: #203650;
}
.fav-tabela-avaliacoes th {
  height: 39px; padding: 10px 12px; background: #f4f7fb; color: var(--tq-texto-2);
  border-bottom: 1px solid var(--tq-borda); font-size: 10.8px; font-weight: 750;
  letter-spacing: .035em; text-transform: uppercase;
}
.fav-tabela-avaliacoes td {
  padding: 11px 12px; border-top: 0; border-bottom: 1px solid #edf1f6;
  vertical-align: middle; line-height: 1.35; min-width: 0;
}
.fav-tabela-avaliacoes tbody tr:last-child td { border-bottom: 0; }
.fav-tabela-avaliacoes tbody tr:nth-child(even) td { background: #f8fafd; }
.fav-tabela-avaliacoes tbody tr[data-abrir] { cursor: pointer; outline: none; transition: background-color .12s ease; }
.fav-tabela-avaliacoes tbody tr[data-abrir]:hover td { background: var(--tq-azul-100); }
.fav-tabela-avaliacoes tbody tr[data-abrir]:focus-visible td { background: var(--tq-azul-100); box-shadow: inset 0 2px var(--tq-azul-600), inset 0 -2px var(--tq-azul-600); }
.fav-tabela-avaliacoes .fav-lista-fornecedor {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; color: var(--tq-azul-800); font-size: 12.5px; font-weight: 700; line-height: 1.38;
  overflow-wrap: anywhere;
}
.fav-tabela-avaliacoes .fav-lista-tipo,
.fav-tabela-avaliacoes .fav-lista-prazo,
.fav-tabela-avaliacoes .fav-lista-situacao,
.fav-tabela-avaliacoes .fav-lista-nota,
.fav-tabela-avaliacoes .fav-lista-faixa { white-space: nowrap; }
.fav-tabela-avaliacoes .fav-lista-tipo { overflow: hidden; text-overflow: ellipsis; }
.fav-tabela-avaliacoes .fav-lista-ciclo { overflow-wrap: anywhere; }
.fav-tabela-avaliacoes .fav-lista-avaliador {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #244363; font-weight: 600;
}
.fav-tabela-avaliacoes .fav-lista-prazo { font-variant-numeric: tabular-nums; color: #3c526c; }
.fav-tabela-avaliacoes .fav-lista-situacao .fav-selo {
  max-width: 100%; padding: 4px 9px; border: 1px solid transparent; font-size: 11px;
  line-height: 1.2; letter-spacing: .005em;
}
.fav-tabela-avaliacoes .fav-lista-situacao .fav-selo--pendente {
  background: #fff4db; color: #80540b; border-color: #f0dfb4;
}
.fav-tabela-avaliacoes .fav-lista-situacao .fav-selo--em_andamento {
  background: var(--tq-azul-100); color: #1c559a; border-color: #d4e4fb;
}
.fav-tabela-avaliacoes .fav-lista-situacao .fav-selo--atrasada {
  background: #fdebea; color: #a02c26; border-color: #f4d1ce;
}
.fav-tabela-avaliacoes .fav-lista-nota { color: #243e5b; font-weight: 650; }
.fav-tabela-avaliacoes .fav-lista-faixa { overflow: hidden; }
.fav-tabela-avaliacoes .fav-lista-faixa .fav-faixa { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.fav-lista-vazia { padding: 20px 18px; border: 1px dashed #ccd8e6; border-radius: 10px; background: #fbfcfe; color: #5b6d82; }
@media (max-width: 760px) {
  .fav-filtros--avaliacoes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; padding: 12px; gap: 12px; }
  .fav-filtros--avaliacoes .fav-campo--check { grid-column: 1 / -1; align-self: start; min-height: 28px; margin: 0; }
  .fav-tabela-avaliacoes { min-width: 1020px; }
}
@media (max-width: 440px) {
  .fav-filtros--avaliacoes { grid-template-columns: minmax(0, 1fr); }
  .fav-filtros--avaliacoes .fav-campo--check { grid-column: auto; }
}


/* V1536 — Responsável em evidência e cargo carregado do cadastro de Colaboradores. */
.fav-cab--v1534 .fav-cab-responsavel--destacado {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 1fr); gap: 14px;
  align-items: stretch; padding: 13px; border: 1px solid #cfdef0; border-left: 4px solid #e87924;
  border-radius: 12px; background: linear-gradient(105deg, var(--tq-azul-100) 0%, #fbfdff 58%, #fffaf4 100%);
}
.fav-cab--v1534 .fav-cab-avaliador-destaque {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 5px 8px 5px 4px;
}
.fav-cab--v1534 .fav-cab-avatar {
  display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid #c5d8f0; border-radius: 12px; background: #e2edfb; color: #1d5795;
  font-size: 19px; line-height: 1; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.fav-cab--v1534 .fav-cab-avaliador-texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fav-cab--v1534 .fav-cab-label {
  display: block; color: #526982; font-size: 10.5px; line-height: 1.25; font-weight: 800;
  text-transform: uppercase; letter-spacing: .065em;
}
.fav-cab--v1534 .fav-cab-avaliador-texto > strong {
  display: block; color: #173a61; font-size: 16px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere;
}
.fav-cab--v1534 .fav-cab-avaliador-texto > small {
  display: flex; align-items: center; gap: 6px; color: #54708d; font-size: 11px; line-height: 1.3;
}
.fav-cab--v1534 .fav-cab-avaliador-texto > small i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #26835a; box-shadow: 0 0 0 3px rgba(38,131,90,.11); }
.fav-cab--v1534 .fav-cab-cargo-destaque {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 11px 14px;
  border: 1px solid var(--tq-borda); border-radius: 9px; background: rgba(255,255,255,.92);
}
.fav-cab--v1534 .fav-cab-cargo-destaque.is-preenchido { border-color: #c9e4d6; background: #f6fcf8; }
.fav-cab--v1534 .fav-cab-cargo-destaque.is-pendente { border-color: #efd8ad; background: #fffaf0; }
.fav-cab--v1534 .fav-cab-cargo-destaque > strong {
  display: block; color: #1c3552; font-size: 15px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere;
}
.fav-cab--v1534 .fav-cab-cargo-destaque.is-pendente > strong { color: #8b5b12; }
.fav-cab--v1534 .fav-cab-cargo-destaque > small { color: #60738a; font-size: 11px; line-height: 1.35; }
@media (max-width: 760px) {
  .fav-cab--v1534 .fav-cab-responsavel--destacado { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 10px; }
  .fav-cab--v1534 .fav-cab-cargo-destaque { margin-left: 0; }
}


/* V1541 — Cards do ciclo mais legíveis e filtros rápidos por situação. */
.fav-kpis--ciclo {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.fav-kpi--ciclo {
  --kpi-cor: #2d6db4;
  --kpi-fundo: var(--tq-azul-100);
  position: relative;
  min-width: 0;
  min-height: 124px;
  padding: 14px 15px 13px 16px;
  gap: 8px;
  border: 1px solid var(--tq-borda);
  border-left: 4px solid var(--kpi-cor);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #fbfdff 100%);
  color: #203650;
  text-align: left;
  box-shadow: 0 3px 10px rgba(22, 48, 79, .035);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
}
.fav-kpi--ciclo:hover {
  border-color: color-mix(in srgb, var(--kpi-cor) 48%, var(--tq-borda));
  border-left-color: var(--kpi-cor);
  background: linear-gradient(145deg, #fff 0%, var(--kpi-fundo) 100%);
  box-shadow: 0 5px 16px rgba(22, 48, 79, .09);
}
.fav-kpi--ciclo:focus-visible { outline: 3px solid color-mix(in srgb, var(--kpi-cor) 36%, transparent); outline-offset: 2px; }
.fav-kpi--ciclo.is-active {
  border-color: var(--kpi-cor);
  border-left-color: var(--kpi-cor);
  background: linear-gradient(145deg, var(--kpi-fundo) 0%, #fff 100%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--kpi-cor) 17%, transparent), 0 5px 15px rgba(22, 48, 79, .07);
}
.fav-kpi--ciclo.is-active::after {
  content: ""; position: absolute; right: 13px; bottom: 0; width: 30px; height: 3px;
  background: var(--kpi-cor); border-radius: 3px 3px 0 0;
}
.fav-kpi--total { --kpi-cor: var(--tq-azul-600); --kpi-fundo: var(--tq-azul-100); }
.fav-kpi--pendente { --kpi-cor: #c17a06; --kpi-fundo: #fff7e8; }
.fav-kpi--em_andamento { --kpi-cor: #3b72bd; --kpi-fundo: var(--tq-azul-100); }
.fav-kpi--atrasada { --kpi-cor: #c83d36; --kpi-fundo: #fff0ef; }
.fav-kpi--concluida { --kpi-cor: #21804e; --kpi-fundo: #edf9f1; }
.fav-kpi--cancelada { --kpi-cor: #69788b; --kpi-fundo: #f2f5f8; }
.fav-kpi--ciclo .fav-kpi-cab { display: flex; flex-direction: row; align-items: center; gap: 9px; min-width: 0; }
.fav-kpi--ciclo .fav-kpi-icone { display: inline-flex; flex: 0 0 31px; align-items: center; justify-content: center; width: 31px; height: 31px;
  border-radius: 9px; background: var(--kpi-fundo); color: var(--kpi-cor); }
.fav-kpi--ciclo .fav-kpi-icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fav-kpi--ciclo .fav-kpi-titulo { min-width: 0; color: #52657c; font-size: 11.5px; line-height: 1.3; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; overflow-wrap: anywhere; }
.fav-kpi--ciclo strong { display: block; padding-left: 2px; color: var(--tq-azul-800); font-size: 29px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.fav-kpi--pendente strong { color: #9b6105; }
.fav-kpi--em_andamento strong { color: var(--tq-azul-600); }
.fav-kpi--atrasada strong { color: #b52d28; }
.fav-kpi--concluida strong { color: #1a7143; }
.fav-kpi--cancelada strong { color: #5f6d7d; }
.fav-kpi--ciclo .fav-kpi-descricao { display: block; margin-top: auto; color: #738298; font-size: 11px; line-height: 1.3; font-weight: 500; text-transform: none; letter-spacing: 0; }
.fav-ciclo-lista-topo { margin: 0 0 10px; }
.fav-ciclo-lista-resumo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-ciclo-lista-resumo h3 { margin: 0; color: #203b5b; font-size: 15px; line-height: 1.3; }
.fav-ciclo-lista-resumo p { margin: 4px 0 0; color: #758397; font-size: 12px; line-height: 1.4; }
.fav-ciclo-lista-resumo p strong { color: #314e6e; font-weight: 800; }
.fav-ciclo-lista-resumo p span { color: #536e8c; }
.fav-ciclo-limpar-filtro { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 34px; padding: 0 13px;
  border: 1px solid #cbd9e9; border-radius: 8px; background: #fff; color: #245e9f; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fav-ciclo-limpar-filtro:hover { border-color: #7da5d3; background: #f4f8fd; }
.fav-ciclo-tabela-wrap { border: 1px solid var(--tq-borda); border-radius: 11px; box-shadow: 0 3px 12px rgba(22, 48, 79, .04); }
.fav-ciclo-tabela-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.fav-tabela-ciclo { min-width: 850px; table-layout: fixed; }
.fav-tabela-ciclo th { background: #f4f7fb; color: var(--tq-texto-2); font-size: 10.8px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.fav-tabela-ciclo th:first-child { width: 30%; }
.fav-tabela-ciclo th:nth-child(2) { width: 12%; }
.fav-tabela-ciclo th:nth-child(3) { width: 17%; }
.fav-tabela-ciclo th:nth-child(4) { width: 15%; }
.fav-tabela-ciclo th:nth-child(5) { width: 9%; }
.fav-tabela-ciclo th:nth-child(6) { width: 17%; }
.fav-tabela-ciclo td { line-height: 1.35; }
.fav-tabela-ciclo tr[data-abrir] { cursor: pointer; outline: none; }
.fav-tabela-ciclo tr[data-abrir]:hover td { background: var(--tq-azul-100); }
.fav-tabela-ciclo tr[data-abrir]:focus-visible td { box-shadow: inset 0 2px var(--tq-azul-600), inset 0 -2px var(--tq-azul-600); }
.fav-tabela-ciclo .fav-ciclo-fornecedor { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--tq-azul-800); line-height: 1.38; overflow-wrap: anywhere; }
.fav-tabela-ciclo .fav-ciclo-avaliador { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #284967; font-weight: 600; }
.fav-tabela-ciclo td:nth-child(4), .fav-tabela-ciclo td:nth-child(6) { white-space: nowrap; overflow: hidden; }
.fav-tabela-ciclo .fav-faixa { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.fav-ciclo-sem-resultados { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 150px; padding: 22px; border: 1px dashed #d2deeb; border-radius: 11px; background: #fbfdff; text-align: center; color: #516980; }
.fav-ciclo-sem-icone { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf2fb; color: #4773a3; font-size: 20px; }
.fav-ciclo-sem-resultados strong { color: #284967; font-size: 13px; }
.fav-ciclo-sem-resultados small { color: #7b899a; font-size: 12px; }
@media (max-width: 1100px) { .fav-kpis--ciclo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fav-kpis--ciclo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .fav-kpi--ciclo { min-height: 115px; padding: 12px; } .fav-ciclo-lista-resumo { align-items: flex-start; } }
@media (max-width: 420px) { .fav-kpis--ciclo { grid-template-columns: minmax(0, 1fr); } .fav-kpi--ciclo { min-height: 100px; } .fav-ciclo-lista-resumo { flex-direction: column; } }


/* V1543 — configuração sem edição duplicada de fornecedor; regularização antiga em fluxo separado */
.fav-config-tipos { max-width: 1180px; }
.fav-config-tipos-topo { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid #e6ebf2; }
.fav-config-tipos-topo h3 { margin: 0; color: var(--tq-azul-800); }
.fav-config-tipos-topo p { margin: 5px 0 0; max-width: 760px; color: var(--tq-texto-2); font-size: 13px; }
.fav-config-centralizado { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 16px; padding: 13px 15px; border: 1px solid #cfe0f6; border-left: 4px solid var(--tq-azul-600); border-radius: 10px; background: #f5f9ff; color: var(--tq-azul-800); }
.fav-config-centralizado-icone { flex: 0 0 25px; display: inline-flex; width: 25px; height: 25px; border-radius: 50%; align-items: center; justify-content: center; background: #dbeafe; color: var(--tq-azul-600); font-weight: 800; }
.fav-config-centralizado strong { display: block; font-size: 13px; margin-bottom: 3px; }
.fav-config-centralizado p { margin: 0; color: var(--tq-texto-2); font-size: 12.5px; line-height: 1.5; }
.fav-config-tipos-tabela { width: 100%; overflow-x: auto; border: 1px solid #e5eaf1; border-radius: 10px; }
.fav-config-tipos-tabela .fav-tabela { min-width: 680px; }
.fav-config-tipos-tabela .fav-tabela tbody tr[data-tipo] { cursor: pointer; }
.fav-config-tipos-tabela .fav-tabela tbody tr[data-tipo]:focus-visible { outline: 2px solid var(--tq-azul-600); outline-offset: -2px; }
.fav-config-descricao { display: block; margin-top: 4px; color: var(--tq-texto-3); font-size: 12px; }
.fav-config-sem-modelo { color: #9a6700; font-size: 12.5px; font-weight: 600; }
.fav-config-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 11.5px; font-weight: 700; }
.fav-config-status.is-ativo { background: #e8f6ed; color: #187344; }
.fav-config-status.is-inativo { background: #eef1f5; color: #667085; }
.fav-config-editar { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.fav-config-rodape { margin: 12px 0 0; color: var(--tq-texto-3); font-size: 12px; }
.fav-regularizacao { max-width: 1180px; }
.fav-regularizacao-resumo { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e6ebf2; margin-bottom: 14px; }
.fav-regularizacao-icone { flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #fff2d8; color: #9a5b00; font-size: 19px; font-weight: 800; }
.fav-regularizacao-resumo h3 { margin: 0; color: var(--tq-azul-800); }
.fav-regularizacao-resumo p { margin: 5px 0 0; color: var(--tq-texto-2); font-size: 12.5px; line-height: 1.5; }
.fav-regularizacao-filtros { margin: 8px 0 10px; align-items: center; }
.fav-regularizacao-filtros input[type=search] { flex: 1 1 280px; min-height: 38px; }
.fav-regularizacao-filtros .fav-muted { white-space: nowrap; }
.fav-regularizacao-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; }
.fav-regularizacao-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 16px; color: #475569; }
.fav-regularizacao-vazio > span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: #e8f6ed; color: #187344; font-size: 25px; font-weight: 800; }
.fav-regularizacao-vazio strong { color: var(--tq-azul-800); }
.fav-regularizacao-vazio p { margin: 6px 0 14px; color: var(--tq-texto-2); font-size: 13px; }
@media (max-width: 720px) {
  .fav-config-tipos-topo { flex-direction: column; }
  .fav-config-centralizado { padding: 11px; }
  .fav-regularizacao-rodape { align-items: stretch; flex-direction: column; }
  .fav-regularizacao-rodape button { width: 100%; }
}


/* V1544 — fluxo da configuração da avaliação: modelo primeiro, estrutura no contexto, tipos por último. */
/* V1546 — itens/perguntas como snapshots no modelo, sem vínculo vivo com a biblioteca. */
.fav-config-etapas { display:flex; align-items:center; gap:8px; margin: 0 0 12px; padding: 10px 14px; border:1px solid var(--tq-borda); border-radius:11px; background:linear-gradient(135deg,#fff 0%,#f7faff 100%); }
.fav-config-etapa { display:flex; align-items:center; gap:9px; flex:1 1 0; min-width:0; padding:6px 8px; border-radius:9px; color:var(--tq-texto-3); }
.fav-config-etapa-num { display:inline-flex; flex:0 0 29px; align-items:center; justify-content:center; width:29px; height:29px; border-radius:50%; background:#eef2f7; color:var(--tq-texto-2); font-size:12px; font-weight:800; }
.fav-config-etapa-texto { display:flex; flex-direction:column; gap:2px; min-width:0; }
.fav-config-etapa-texto strong { font-size:12px; line-height:1.25; color:var(--tq-texto-2); }
.fav-config-etapa-texto small { color:#8794a5; font-size:10.5px; line-height:1.25; }
.fav-config-etapa.is-current { background:#eaf3ff; box-shadow:inset 0 0 0 1px #c5dcfb; }
.fav-config-etapa.is-current .fav-config-etapa-num { background:var(--tq-azul-600); color:#fff; }
.fav-config-etapa.is-current .fav-config-etapa-texto strong { color:#174b88; }
.fav-config-etapa.is-complete .fav-config-etapa-num { background:#e5f6eb; color:#187344; }
.fav-config-etapa.is-complete .fav-config-etapa-texto strong { color:#416e59; }
.fav-config-etapa-seta { color:#a3afbf; font-size:21px; line-height:1; }
.fav-config-modelos .fav-sec-topo { align-items:flex-start; }
.fav-config-ajuda { margin:5px 0 0; max-width:720px; color:#65758b; font-size:12.5px; line-height:1.45; }
.fav-config-primeiro-modelo { display:flex; align-items:center; gap:14px; margin-top:16px; padding:18px; border:1px dashed #c8d8ec; border-radius:10px; background:#f8fbff; }
.fav-config-primeiro-icone { display:inline-flex; flex:0 0 38px; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px; background:#e2efff; color:var(--tq-azul-600); font-size:17px; font-weight:800; }
.fav-config-primeiro-modelo strong { color:var(--tq-azul-800); font-size:14px; }
.fav-config-primeiro-modelo p { margin:4px 0 0; color:var(--tq-texto-2); font-size:12.5px; line-height:1.5; }
.fav-config-primeiro-modelo button { flex:0 0 auto; }
.fav-config-modal-etapa { margin-bottom:15px; padding:12px 14px; border:1px solid #d3e4fa; border-left:4px solid var(--tq-azul-600); border-radius:9px; background:#f5f9ff; }
.fav-config-modal-etapa > span { display:block; margin-bottom:4px; color:var(--tq-azul-600); font-size:10px; font-weight:800; letter-spacing:.07em; }
.fav-config-modal-etapa > strong { display:block; color:var(--tq-azul-800); font-size:14px; }
.fav-config-modal-etapa p { margin:4px 0 0; color:var(--tq-texto-2); font-size:12px; line-height:1.45; }
.fav-editor-secao-titulo { display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; }
.fav-editor-secao-titulo > span { display:inline-flex; flex:0 0 30px; align-items:center; justify-content:center; width:30px; height:30px; border-radius:9px; background:#eaf3ff; color:var(--tq-azul-600); font-size:13px; font-weight:800; }
.fav-editor-secao-titulo h3 { margin:0; color:var(--tq-azul-800); }
.fav-editor-secao-titulo p { margin:4px 0 0; color:var(--tq-texto-3); font-size:12px; line-height:1.45; }
.fav-modelo-adicionar-item { justify-content:flex-end; margin:0 0 12px; }
.fav-modelo-adicionar-item .fav-acoes { width:100%; justify-content:flex-end; align-items:flex-end; flex-wrap:wrap; }
.fav-modelo-select-item { flex:1 1 280px; max-width:420px; margin:0; }
.fav-modelo-select-item select { width:100%; }
.fav-modal-subtitulo { margin:14px 0 9px; padding-bottom:7px; border-bottom:1px solid #e7edf4; color:var(--tq-azul-800); font-size:13px; }
.fav-editor-vinculo .fav-tipos-modelo { margin:0; border:0; padding:0; }
.fav-editor-vinculo .fav-tipos-modelo legend { margin-bottom:9px; color:#405a76; font-size:12px; font-weight:700; }
.fav-config-modelos tbody tr[data-modelo] { cursor:pointer; }
.fav-config-modelos tbody tr[data-modelo]:hover td { background:#f1f7ff; }
.fav-config-modelos tbody tr[data-modelo]:focus-visible { outline:2px solid var(--tq-azul-600); outline-offset:-2px; }
@media (max-width:760px) {
  .fav-config-etapas { align-items:stretch; flex-direction:column; gap:4px; }
  .fav-config-etapa { flex:1 1 auto; }
  .fav-config-etapa-seta { display:none; }
  .fav-config-primeiro-modelo { align-items:flex-start; flex-wrap:wrap; }
  .fav-config-primeiro-modelo > div { flex:1 1 calc(100% - 55px); }
  .fav-config-primeiro-modelo button { width:100%; }
  .fav-modelo-adicionar-item .fav-acoes { align-items:stretch; flex-direction:column; }
  .fav-modelo-select-item { max-width:none; flex-basis:auto; }
}


/* V1546 — composição de itens e perguntas isolada por modelo; a biblioteca só fornece cópias. */
.fav-biblioteca-card .fav-config-ajuda { max-width:760px; }
.fav-editor .fav-m-item--snapshot { padding:0; overflow:hidden; background:#fff; border-color:#d8e3f0; }
.fav-m-item--snapshot .fav-m-item-topo { padding:14px 15px; gap:10px 12px; background:#f8fbff; border-bottom:1px solid #e5edf6; }
.fav-m-item-ident { display:flex; flex:1 1 260px; min-width:200px; flex-direction:column; gap:5px; }
.fav-m-item-ident > strong { flex:0 1 auto; color:#183958; font-size:14px; line-height:1.35; }
.fav-m-item-ident > small { color:#6e7f93; font-size:11.5px; line-height:1.4; }
.fav-tag--modelo { width:max-content; color:var(--tq-azul-600) !important; background:var(--tq-azul-100) !important; }
.fav-m-percentual { color:#4f6681; font-size:11.5px; font-weight:700; white-space:nowrap; }
.fav-m-item-acoes { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.fav-m-item-acoes .fav-link { min-height:29px; padding:4px 7px; border:1px solid #dbe5f1; border-radius:6px; background:#fff; font-size:11px; text-decoration:none; }
.fav-m-item-acoes .fav-perigo { color:#bf3b3b; border-color:#f2d4d4; }
.fav-m-pergs-snapshot { display:flex; flex-direction:column; padding:5px 14px; }
.fav-m-pergunta-row { display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:start; gap:10px; padding:12px 2px; border-bottom:1px solid #e9eef5; }
.fav-m-pergunta-row:last-child { border-bottom:0; }
.fav-m-pergunta-num { display:inline-flex; width:23px; height:23px; align-items:center; justify-content:center; border-radius:50%; background:#edf3fb; color:#405b7a; font-size:11px; font-weight:700; }
.fav-m-pergunta-texto { display:flex; min-width:0; flex-direction:column; gap:6px; }
.fav-m-pergunta-texto > strong { color:#203a56; font-size:12.5px; font-weight:600; line-height:1.45; }
.fav-m-pergunta-texto > small { color:#77869a; font-size:11px; line-height:1.4; }
.fav-m-pergunta-tags { display:flex; flex-wrap:wrap; gap:5px; }
.fav-m-pergunta-tags span { padding:2px 7px; border-radius:99px; background:#eff3f8; color:#63748b; font-size:10px; font-weight:600; }
.fav-m-pergunta-acoes { display:flex; gap:5px; }
.fav-m-pergunta-acoes .fav-ico { width:29px; height:29px; }
.fav-m-item-rodape { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 15px; border-top:1px solid #e5edf6; background:#fbfcfe; }
.fav-m-item-rodape > span { color:#73839a; font-size:11.5px; }
.fav-m-item-rodape .secondary { min-height:32px; padding:6px 11px; font-size:11.5px; }
.fav-config-primeiro-item { margin-top:6px; }
@media (max-width:760px) {
 .fav-m-item--snapshot .fav-m-item-topo { align-items:flex-start; }
 .fav-m-item-ident { flex-basis:100%; min-width:0; }
 .fav-m-item-acoes { flex-basis:100%; }
 .fav-m-pergunta-row { grid-template-columns:24px minmax(0,1fr); }
 .fav-m-pergunta-acoes { grid-column:2; }
 .fav-m-item-rodape { align-items:flex-start; flex-direction:column; }
 .fav-m-item-rodape button { width:100%; }
}


/* V1548 — composição de perguntas dentro do modelo; biblioteca somente como origem de cópia. */
.fav-composicao-nota { display:flex; align-items:flex-start; gap:11px; margin:0 0 15px; padding:12px 14px; border:1px solid #cfe0f6; border-left:4px solid var(--tq-azul-600); border-radius:10px; background:#f5f9ff; }
.fav-composicao-nota-icone { display:inline-flex; flex:0 0 25px; width:25px; height:25px; align-items:center; justify-content:center; border-radius:50%; background:#dcecff; color:var(--tq-azul-600); font-size:14px; font-weight:800; }
.fav-composicao-nota strong { display:block; margin:0 0 3px; color:#163b67; font-size:13px; }
.fav-composicao-nota p { margin:0; color:var(--tq-texto-2); font-size:12px; line-height:1.45; }
.fav-modelo-composicao .fav-editor-secao-titulo p { max-width:780px; }
@media (max-width:720px) { .fav-composicao-nota { padding:10px; } }
