/* 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, #6b7686); font-size: 12.5px; }
.fav-erro { color: #b4321f; font-weight: 600; }
.fav-txt-alerta { color: #9a3412; font-weight: 600; }
.fav-perigo { color: #b4321f !important; }
.fav-link { background: none; border: 0; padding: 0; color: #1d5fbf; 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: #3b4757; 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: #3b4757; white-space: nowrap; }
.fav-selo--concluida, .fav-selo--concluido { background: #e5f4ea; color: #1e6b40; }
.fav-selo--em_andamento, .fav-selo--aberto { background: #e8f0fc; color: #1d4f9c; }
.fav-selo--atrasada { background: #fdecea; color: #9f2a20; }
.fav-selo--cancelada, .fav-selo--cancelado { background: #f1f3f6; color: #6b7686; 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 #dce2ea; 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: #5b6676; text-transform: uppercase; letter-spacing: .02em; }
.fav-kpi strong { font-size: 24px; color: #16304f; font-variant-numeric: tabular-nums; }
.fav-kpi--destaque { background: #16304f; border-color: #16304f; } .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: #1d5fbf; 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: #5b6676; 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: #5b6676; padding: 9px 12px; border-bottom: 1px solid #e3e8ef; 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: #5b6676; 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 #cfd8e3; 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: #3b4757; cursor: pointer; }
.fav-aba + .fav-aba { border-left: 1px solid #cfd8e3; } .fav-aba.is-on { background: #16304f; 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 #e3e8ef; border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.fav-lista-itens button.is-on { border-color: #1d5fbf; background: #eef3fd; } .fav-lista-itens small { color: #5b6676; 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: #5b6676; 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: #5b6676; 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 #c8d2df; 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: #1d5fbf; }
.fav-op.is-on { background: #1d5fbf; border-color: #1d5fbf; color: #fff; }
.fav-op--na.is-on { background: #5b6676; border-color: #5b6676; }
.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: #5b6676; text-transform: uppercase; }
.fav-nota strong { font-size: 40px; line-height: 1.1; color: #16304f; font-variant-numeric: tabular-nums; }
.fav-nota small { color: #5b6676; }
.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 #e3e8ef; 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: #5b6676; }
.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 #e3e8ef; }
.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 #dce2ea; 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: #e3e8ef; stroke-width: 1; } .fav-g-txt { fill: #5b6676; font-size: 11px; }
.fav-g-serie { fill: none; stroke: #1d5fbf; 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: #16304f; }
.fav-x { border: 0; background: none; font-size: 24px; line-height: 1; color: #5b6676; 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; }
.fav-hist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
