﻿/* ============================================================
   portal-v2-cards.css — Cards de processo, badges, paginação
   Template 4 — Área pública WBC7
   ============================================================ */

/* --- Grid de cards ----------------------------------------- */
.wbc-v2 .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Cards "novos" (design home) */
.wbc-v2 .cards-grid-d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Card pcard (legado mural) ----------------------------- */
.wbc-v2 .pcard {
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wbc-v2 .pcard:hover {
  box-shadow: 0 4px 18px rgba(26,63,168,0.1);
  border-color: #a0b0e0;
}

.wbc-v2 .pcard-body {
  padding: 13px 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wbc-v2 .pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.wbc-v2 .pcard-num-lbl { font-size: 12px; color: var(--gray-txt); font-weight: 500; }
.wbc-v2 .pcard-num { font-size: 15px; font-weight: 700; color: var(--blue); }
.wbc-v2 .pcard-obj { font-size: 14.5px; color: var(--text); line-height: 1.35; font-weight: 500; flex: 1; }

.wbc-v2 .pcard-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.wbc-v2 .pmeta-row { display: flex; gap: 6px; align-items: center; }
.wbc-v2 .pmeta-lbl { font-size: 12px; color: #9aa2be; font-weight: 500; min-width: 60px; }
.wbc-v2 .pmeta-val { font-size: 12px; color: var(--gray-txt); }
.wbc-v2 .pmeta-val.fase-val { color: var(--blue); font-weight: 600; }

.wbc-v2 .pcard-footer {
  border-top: 0.5px solid #f0f2f8;
  padding: 8px 14px;
}

.wbc-v2 .btn-acesso {
  background: none;
  border: 0.5px solid #c5cef0;
  border-radius: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background 0.12s;
}

.wbc-v2 .btn-acesso:hover { background: #e8eeff; border-color: var(--blue); }

/* --- Card "novo" (card-d) ----------------------------------- */
.wbc-v2 .card-d {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  cursor: pointer;
  border: 1px solid #e7ebf2;
  box-shadow: 0 1px 2px rgba(28,63,102,.05);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.wbc-v2 .card-d:hover { box-shadow: 0 4px 18px rgba(28,63,102,.12); }

.wbc-v2 .card-d-top { display: flex; justify-content: space-between; align-items: center; }
.wbc-v2 .card-d-top-estatistico {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #1f5bb5;
    letter-spacing: .02em;
}

.wbc-v2 .stat-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wbc-v2 .stat-dot-bullet {
  display: none;
}

.wbc-v2 .stat-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.wbc-v2 .scr-tipo { font-size: 12px; font-weight: 700; border-radius: 5px; padding: 2px 8px; }
/* Mesmas cores das tags ITEM/LOTE do Mural.aspx */
.wbc-v2 .scr-tipo.item { background: #edf5ff; color: #0f58b8; }
.wbc-v2 .scr-tipo.lote { background: #fdf0db; color: #9a5b00; }

.wbc-v2 .card-d-num { font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }

.wbc-v2 .card-d-obj {
  font-size: 15px;
  line-height: 1.34;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wbc-v2 .card-tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wbc-v2 .ctag-mod { font-size: 12px; font-weight: 600; border-radius: 5px; padding: 3px 8px; background: #eaf3ff; border: 1px solid #91c0f8; color: #1a5fbf; white-space: nowrap; }
.wbc-v2 .ctag-uni { font-size: 12px; font-weight: 600; border-radius: 5px; padding: 3px 8px; background: transparent; border: 1px solid #d0d7e3; color: #65718a; white-space: nowrap; }

.wbc-v2 .card-d-infobox {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  background: #f7f9fc;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  padding: 10px 13px;
}

.wbc-v2 .card-d-iblbl { font-size: 11px; color: var(--faint); font-weight: 600; }
.wbc-v2 .card-d-ibval { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }

.wbc-v2 .card-d-iblbl.icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wbc-v2 .card-d-iblbl.icon svg {
  color: #8fa1bf;
}

.wbc-v2 .card-d-footer {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wbc-v2 .card-d-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
  margin-right: auto;
}

.wbc-v2 .card-d-dl svg {
  color: #7a8aa7;
}

.wbc-v2 .card-d-acessar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.wbc-v2 .card-d-acessar svg {
  color: var(--brand);
}

.wbc-v2 .card-d-acessar:hover { text-decoration: underline; }

/* --- Load more --------------------------------------------- */
.wbc-v2 .home-load-more {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.wbc-v2 .home-load-info {
  font-size: 12px;
  color: #7b88a3;
}

.wbc-v2 .home-load-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 34px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.wbc-v2 .home-load-btn:hover { opacity: .9; }

/* --- Mural detalhes ---------------------------------------- */
.wbc-v2 .mural-det-page .painel {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,63,102,.05);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.wbc-v2 .mural-det-page .painel > h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wbc-v2 .mural-det-page .painel > hr {
  display: none;
}

.wbc-v2 .mural-det-summary-card {
  padding: 16px 18px;
}

.wbc-v2 .mural-det-summary-card > h1 {
  align-items: flex-start;
}

.wbc-v2 .mural-det-summary-card #lblMuralDetalheTitulo {
  display: none;
}

.wbc-v2 .mural-det-summary-card #lblMuralDetalheTitulo {
  display: none !important;
}

.wbc-v2 .mural-det-summary-card .areaClique {
  gap: 6px;
  align-items: center;
}

.wbc-v2 .mural-det-summary-card .acoes-detalhes-mural {
  display: none !important;
}

.wbc-v2 .mural-det-summary-card .editalSimplificadoBotoes {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand) !important;
}

.wbc-v2 .mural-det-summary-card #grupoResumo {
  display: block;
}

/* ===== RESUMO DO PROCESSO — CARD HEADER ===== */

.wbc-v2 .mural-det-resumo-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Topbar: número • modalidade + chip LOTE/ITEM --- */
.wbc-v2 .mural-det-resumo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.wbc-v2 .mural-det-resumo-topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.wbc-v2 .mural-det-resumo-ico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #8a95b0;
}

.wbc-v2 .mural-det-resumo-topbar-left > .mural-det-resumo-ico {
  color: var(--brand);
}

.wbc-v2 .mural-det-resumo-num-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.wbc-v2 .mural-det-resumo-topbar-sep {
  font-size: 14px;
  color: #a0aac0;
  font-weight: 400;
  flex-shrink: 0;
}

.wbc-v2 .mural-det-resumo-modalidade {
  font-size: 14px;
  font-weight: 700;
  color: #1f2f4f;
  text-transform: uppercase;
  letter-spacing: .03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbc-v2 .mural-det-resumo-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wbc-v2 .mural-det-resumo-chip.tipo-item {
  background: #e8f4ff;
  color: #185fa5;
}

.wbc-v2 .mural-det-resumo-chip.tipo-lote {
  background: #fff3e6;
  color: #884000;
}

/* --- Objeto / Título --- */
.wbc-v2 .mural-det-resumo-objeto {
  margin: 0;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 700;
  color: #1a2340;
}

/* --- Badges: situação + tipo de julgamento --- */
.wbc-v2 .mural-det-resumo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wbc-v2 .mural-det-resumo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #d6e4fb;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 700;
  color: #2f5ea8;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wbc-v2 .mural-det-resumo-badge.is-modalidade {
  color: #0f58b8;
  background: #edf5ff;
  border-color: #84b4f1;
}

.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-andamento,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-processamento,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-disputa {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}

.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-aprovado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-encerrado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-homologado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-ativo {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}

.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-cancelado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-fracassado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-anulado,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-revogado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}

.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-pendente,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-aguardando,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-suspenso,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-analise {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}

/* --- Estilos para Fase (badge colorida) --- */
.wbc-v2 .mural-det-resumo-badge.is-fase {
  white-space: normal;
  display: inline-flex;
  align-items: center;
  text-align: center;
  overflow: visible;
  line-height: 1.3;
}
.wbc-v2 .mural-det-resumo-badge.is-fase.sit-disputa,
.wbc-v2 .mural-det-resumo-badge.is-fase.sit-andamento {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}

.wbc-v2 .mural-det-resumo-badge.is-fase.sit-homologado,
.wbc-v2 .mural-det-resumo-badge.is-fase.sit-encerrado,
.wbc-v2 .mural-det-resumo-badge.is-fase.sit-aprovado {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}

.wbc-v2 .mural-det-resumo-badge.is-fase.sit-pendente {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}

.wbc-v2 .mural-det-resumo-badge.is-fase.sit-cancelado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}

.wbc-v2 .mural-det-resumo-badge.is-fase.sit-neutro {
  background: #eef0f5;
  border-color: #dfe3ec;
  color: #5a6480;
}

/* --- Divisor entre corpo e rodapé do card --- */
.wbc-v2 .mural-det-resumo-hr {
  display: block;
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid #e4e9f1;
  margin: 6px 0 2px;
}

/* --- Grid de informações horizontal (sem borda nos itens) --- */
.wbc-v2 .mural-det-resumo-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  padding-top: 4px;
}

.wbc-v2 .mural-det-resumo-meta-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 18px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
}

.wbc-v2 .mural-det-resumo-meta-item:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.wbc-v2 .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
  padding-left: 18px;
  border-left: 1px solid var(--line, #e4e9f1);
}

.wbc-v2 .mural-det-resumo-meta-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.wbc-v2 .mural-det-resumo-meta-label {
  font-size: 10px;
  font-weight: 700;
  color: #8a95b0;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wbc-v2 .mural-det-resumo-meta-value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2f4f;
  word-break: break-word;
  margin-top: 0 !important;
}

/* Responsivo: tablet — permite wrap com 2 colunas */
@media (max-width: 900px) {
  .wbc-v2 .mural-det-resumo-objeto {
    font-size: 17px;
  }

  .wbc-v2 .mural-det-resumo-meta {
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .wbc-v2 .mural-det-resumo-meta-item {
    flex: 1 1 45%;
    min-width: 140px;
    padding: 0 12px 0 0 !important;
  }

  .wbc-v2 .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
    padding-left: 0;
    border-left: 0;
  }
}

/* Responsivo: mobile — lista vertical plena */
@media (max-width: 640px) {
  .wbc-v2 .mural-det-resumo-topbar-left {
    flex-wrap: wrap;
  }

  .wbc-v2 .mural-det-resumo-modalidade {
    white-space: normal;
  }

  .wbc-v2 .mural-det-resumo-objeto {
    font-size: 16px;
  }

  .wbc-v2 .mural-det-resumo-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .wbc-v2 .mural-det-resumo-meta-item {
    flex: none;
    width: 100%;
    padding: 0 !important;
  }

  .wbc-v2 .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
    border-left: 0;
    padding-left: 0 !important;
  }

  .wbc-v2 .mural-det-side-actions {
    display: none;
  }
}

.wbc-v2 .mural-det-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 641px) {
  .wbc-v2 .mural-det-side-actions {
    display: flex !important;
  }
}

.wbc-v2 .mural-det-action-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(28,63,102,.08);
}

.wbc-v2 .mural-det-action-btn:hover {
  background: var(--brand-dk);
}

.wbc-v2 .mural-det-aside-slot > .row-fluid,
.wbc-v2 .mural-det-aside-slot > .span4,
.wbc-v2 .mural-det-aside-slot > .span8,
.wbc-v2 .mural-det-aside-slot > div {
  width: 100%;
}

.wbc-v2 .mural-det-aside .painel {
  padding: 14px 16px;
}

.wbc-v2 .mural-det-aside .painel > h1 {
  font-size: 11px;
  margin-bottom: 10px;
}

.wbc-v2 .mural-det-aside-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wbc-v2 .mural-det-aside .painel {
  border-radius: 14px;
}

.wbc-v2 .mural-det-aside .painel > h1 {
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: .03em;
  color: #425171;
  text-transform: uppercase;
}

.wbc-v2 .mural-det-aside .k-grid .k-grid-header,
.wbc-v2 .mural-det-aside .k-grid .k-grid-toolbar,
.wbc-v2 .mural-det-aside .k-grid .k-pager-wrap {
  display: none;
}

.wbc-v2 .mural-det-aside .k-grid td {
  border: 0;
  border-bottom: 1px solid #edf1f7;
  padding: 10px 0;
}

.wbc-v2 .mural-det-aside .k-grid tr:last-child td {
  border-bottom: 0;
}

.wbc-v2 .mural-det-aside .k-grid-content {
  max-height: 360px;
}

.wbc-v2 .mural-det-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wbc-v2 .mural-det-side-item {
  border-bottom: 1px solid #edf1f7;
  padding: 10px 0;
}

.wbc-v2 .mural-det-side-item:last-child {
  border-bottom: 0;
}

.wbc-v2 .mural-det-side-item-date {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ebf1ff;
  color: #31589b;
  font-size: 11px;
  font-weight: 700;
}

.wbc-v2 .mural-det-side-item-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #2c4f90;
  text-decoration: none;
  word-break: break-word;
}

.wbc-v2 .mural-det-side-item-icon {
  flex: 0 0 auto;
  opacity: .9;
}

.wbc-v2 .mural-det-side-item-text {
  display: inline;
}

.wbc-v2 .mural-det-side-item-link:hover {
  text-decoration: underline;
}

.wbc-v2 .mural-det-side-empty {
  color: #6f7f9f;
  font-size: 14px;
  line-height: 1.45;
  padding: 6px 0;
}

.wbc-v2 .mural-det-aside-slot .painel-funcionalidades-anexo,
.wbc-v2 .mural-det-aside-slot .span4,
.wbc-v2 .mural-det-aside-slot .span8,
.wbc-v2 .mural-det-aside-slot .row-fluid {
  margin: 0;
  float: none;
}

.wbc-v2 .mural-det-aside .painel-funcionalidades-anexo,
.wbc-v2 .mural-det-aside .painel-funcionalidades-relhis,
.wbc-v2 .mural-det-aside #wrapRelatorio {
  min-height: 0 !important;
  height: auto !important;
}

.wbc-v2 .mural-det-aside #gridAnexo,
.wbc-v2 .mural-det-aside #gridRelatorio {
  display: none !important;
}

.wbc-v2 .mural-det-main .painel-funcionalidades-relhis,
.wbc-v2 .mural-det-main .painel-funcionalidades-chat,
.wbc-v2 .mural-det-main .painel-funcionalidades-forum,
.wbc-v2 .mural-det-main .painel-funcionalidades-impugnacao,
.wbc-v2 .mural-det-main .painel-funcionalidades-anexo,
.wbc-v2 .mural-det-main .painel-funcionalidades-fornecedor,
.wbc-v2 .mural-det-main > .row-fluid,
.wbc-v2 .mural-det-main > .painel {
  margin-bottom: 12px;
}

.wbc-v2 .mural-det-main .painel .row-fluid,
.wbc-v2 .mural-det-aside .painel .row-fluid {
  margin-bottom: 0;
}

.wbc-v2 .mural-det-main .painel .span12,
.wbc-v2 .mural-det-aside .painel .span12 {
  width: 100%;
  margin-left: 0;
}

.wbc-v2 .mural-det-main .grade-item,
.wbc-v2 .mural-det-main .grade-produto-lote {
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}

.wbc-v2 .mural-det-main [data-grid-host='true'] {
  min-height: 80px;
  height: auto !important;
}

.wbc-v2 .mural-det-main [data-grid-host='true'] > h1 {
  min-height: 28px;
  margin-bottom: 16px;
}

.wbc-v2 .mural-det-main [data-grid-host='true'] > h1 span:first-child,
.wbc-v2 .mural-det-main .painel > h1 span:first-child {
  color: var(--muted);
}

.wbc-v2 .mural-det-main [data-grid-host='true'] .grade-produto-lote {
  margin-top: 0px;
}

.wbc-v2 .mural-det-main #HeadDetalhesDoProcesso span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wbc-v2 .mural-det-main [data-grid-host='true'] .ico-voltar-azul-25 {
  opacity: .9;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] #gridItem,
.wbc-v2 .mural-det-main [data-role='resultado-card'] #gridProdutosLote,
#areaConteudo .mural-det-main [data-role='resultado-card'] #gridItem,
#areaConteudo .mural-det-main [data-role='resultado-card'] #gridProdutosLote {
  background: #fff;
  /* header (~40px) + ~50 linhas (~43px cada) */
  max-height: 2190px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid-header,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid-header {
  border: 0 !important;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid-header-wrap,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid-header-wrap {
  border: 0 !important;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid-header th,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid-header th {
  border: 0 !important;
  border-bottom: 1px solid #e9edf5 !important;
  background: transparent;
  color: #4d5f82;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
  padding: 8px 10px;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid-header th .k-link,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid-header th .k-link {
  line-height: 1.3;
  padding: 0;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-grid-content,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-grid-content {
  border: 0 !important;
  background: #fff;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] td,
#areaConteudo .mural-det-main [data-role='resultado-card'] td {
  border: 0 !important;
  padding: 12px 12px;
  font-size: 15px;
  color: #324366;
  line-height: 1.4;
}

.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-alt,
.wbc-v2 .mural-det-main [data-role='resultado-card'] .k-alt td,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-alt,
#areaConteudo .mural-det-main [data-role='resultado-card'] .k-alt td {
  background: #fff;
}

.wbc-v2 .mural-det-section .painel {
  position: relative;
}

.wbc-v2 .mural-det-section .painel > h1 {
  padding-bottom: 0;
  border-bottom: 0;
}

#areaConteudo .mural-det-section .painel > h1 {
  padding-bottom: 0;
  border-bottom: 0;
}

.wbc-v2 .mural-det-section-chat .painel,
.wbc-v2 .mural-det-section-descricao .painel,
.wbc-v2 .mural-det-section-linha .painel,
.wbc-v2 .mural-det-section-fornecedor .painel,
.wbc-v2 .mural-det-section-impugnacao .painel,
.wbc-v2 .mural-det-section-forum .painel,
.wbc-v2 .mural-det-section-notas .painel {
  padding-top: 16px;
}

.wbc-v2 .mural-det-section .carregandoDados {
  min-height: 48px;
}

.wbc-v2 .mural-det-section-linha #treeview-kendo,
.wbc-v2 .mural-det-section-descricao .span12,
.wbc-v2 .mural-det-section-forum .span12,
.wbc-v2 .mural-det-section-chat .span12,
.wbc-v2 .mural-det-section-impugnacao .span12,
.wbc-v2 .mural-det-section-notas .span12 {
  padding-top: 2px;
}

.wbc-v2 .mural-det-section-impugnacao #gridImpugnacao,
#areaConteudo .mural-det-section-impugnacao #gridImpugnacao {
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* template2.css forca min-height:240px !important no wrapper .painel-funcionalidades-chat;
   sem o mesmo min-height aqui, o card branco (#divChat) fica mais baixo que o wrapper reservado,
   sobrando um vazio entre o card e a proxima secao. */
.wbc-v2 .mural-det-section-chat #divChat,
#areaConteudo .mural-det-section-chat #divChat {
  min-height: 240px;
}

.wbc-v2 .mural-det-section-chat .mural-det-chat-last-update,
#areaConteudo .mural-det-section-chat .mural-det-chat-last-update {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

    .wbc-v2 .mural-det-section-chat .mural-det-chat-last-update label,
    #areaConteudo .mural-det-section-chat .mural-det-chat-last-update label {
        margin: 0 0 10px;
        font-size: 14px;
        font-weight: 700;
        color: var(--muted);
    }

.wbc-v2 .mural-det-section-chat #gridChat,
#areaConteudo .mural-det-section-chat #gridChat {
  border: 0;
  border-radius: 0;
  background: transparent;
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* --- Chat: layout de cards exclusivo para #gridChat --- */
.mural-det-section-chat #gridChat .pbs-chat-list,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.mural-det-section-chat #gridChat .pbs-chat-card,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-card {
  width: 100%;
  box-sizing: border-box;
  background: #f4f6fb;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
}

.mural-det-section-chat #gridChat .pbs-chat-card__time,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-card__time {
  font-size: 12px;
  color: #8496b8;
  margin-bottom: 4px;
}

.mural-det-section-chat #gridChat .pbs-chat-card__body,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-card__body {
  font-size: 14px;
  color: #324366;
  line-height: 1.5;
}

.mural-det-section-chat #gridChat .pbs-chat-card__autor,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-card__autor {
  font-weight: 700;
  color: var(--brand, #2A6496);
}

.mural-det-section-chat #gridChat .pbs-chat-empty,
#areaConteudo .mural-det-section-chat #gridChat .pbs-chat-empty {
  padding: 20px;
  text-align: center;
  color: #8496b8;
  font-size: 13px;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid,
#areaConteudo .mural-det-section-chat #gridChat .k-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-header,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-header {
  border: 0 !important;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-header-wrap,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-header-wrap {
  border: 0 !important;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-header th,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-header th {
  border: 0 !important;
  border-bottom: 1px solid #e9edf5 !important;
  background: transparent;
  color: #4d5f82;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
  padding: 8px 10px;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-header th .k-link,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-header th .k-link {
  line-height: 1.3;
  padding: 0;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-content,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-content {
  border: 0 !important;
  background: #fff;
}

.wbc-v2 .mural-det-section-chat #gridChat tr,
#areaConteudo .mural-det-section-chat #gridChat tr {
  border: 0 !important;
}

.wbc-v2 .mural-det-section-chat #gridChat td,
#areaConteudo .mural-det-section-chat #gridChat td {
  border: 0 !important;
  padding: 12px 12px;
  font-size: 15px;
  color: #324366;
  line-height: 1.4;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-alt,
.wbc-v2 .mural-det-section-chat #gridChat .k-alt td,
#areaConteudo .mural-det-section-chat #gridChat .k-alt,
#areaConteudo .mural-det-section-chat #gridChat .k-alt td {
  background: #fff;
}

/* --- MuralDetalhes: modelo padrao de tabelas (resultado, historico, chat) --- */
.wbc-v2 .mural-det-grid-standard #gridItem,
.wbc-v2 .mural-det-grid-standard #gridProdutosLote,
.wbc-v2 .mural-det-grid-standard #gridHistorico,
#areaConteudo .mural-det-grid-standard #gridItem,
#areaConteudo .mural-det-grid-standard #gridProdutosLote,
#areaConteudo .mural-det-grid-standard #gridHistorico {
  border-radius: 0;
  background: #fff;
  /* header (~34px) + ~6/7 linhas (~46px cada), padrao adotado por todas as grades do mural-det-quadro */
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-grid-standard #gridChat,
#areaConteudo .mural-det-grid-standard #gridChat {
  border: 0;
  border-radius: 0;
  background: transparent;
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-grid-standard .grade-item,
.wbc-v2 .mural-det-grid-standard .grade-produto-lote,
#areaConteudo .mural-det-grid-standard .grade-item,
#areaConteudo .mural-det-grid-standard .grade-produto-lote {
  border-radius: 0;
}

.wbc-v2 .mural-det-grid-standard .k-grid,
#areaConteudo .mural-det-grid-standard .k-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.wbc-v2 .mural-det-grid-standard .k-grid-header,
#areaConteudo .mural-det-grid-standard .k-grid-header {
  border: 0 !important;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-grid-standard .k-grid-header-wrap,
#areaConteudo .mural-det-grid-standard .k-grid-header-wrap {
  border: 0 !important;
}

.wbc-v2 .mural-det-grid-standard .k-grid-header th,
#areaConteudo .mural-det-grid-standard .k-grid-header th {
  border: 0 !important;
  border-bottom: 1px solid #e9edf5 !important;
  background: transparent;
  color: #4d5f82;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  padding: 8px 10px;
}

.wbc-v2 .mural-det-grid-standard .k-grid-header th .k-link,
#areaConteudo .mural-det-grid-standard .k-grid-header th .k-link {
  line-height: 1.3;
  padding: 0;
}

.wbc-v2 .mural-det-grid-standard .k-grid-content,
#areaConteudo .mural-det-grid-standard .k-grid-content {
  border: 0 !important;
  background: #fff;
}

.wbc-v2 .mural-det-grid-standard td,
#areaConteudo .mural-det-grid-standard td {
  border: 0 !important;
  padding: 12px 12px;
  font-size: 15px;
  color: #324366;
  line-height: 1.4;
}

/* Fallback para TODOS os grids do MuralDetalhes — cobre Forum, Notas, Esclarecimentos, etc. */
.wbc-v2 .mural-det-page .k-grid .k-grid-header th,
#areaConteudo .mural-det-page .k-grid .k-grid-header th {
  line-height: 1.3 !important;
  padding: 8px 7px !important;
}

.wbc-v2 .mural-det-page .k-grid td,
#areaConteudo .mural-det-page .k-grid td {
  padding: 10px 12px !important;
  line-height: 1.4 !important;
}

.wbc-v2 .mural-det-grid-standard .k-alt,
.wbc-v2 .mural-det-grid-standard .k-alt td,
#areaConteudo .mural-det-grid-standard .k-alt,
#areaConteudo .mural-det-grid-standard .k-alt td {
  background: #fff;
}

/* Separador entre registros: somente borda inferior em todas as tabelas do MuralDetalhes */
.wbc-v2 .mural-det-page .k-grid .k-grid-content tbody tr td,
#areaConteudo .mural-det-page .k-grid .k-grid-content tbody tr td {
  border-bottom: 1px solid #e9edf5 !important;
}

.wbc-v2 .mural-det-page .k-grid .k-grid-content tbody tr:last-child td,
#areaConteudo .mural-det-page .k-grid .k-grid-content tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Responsividade de tabelas/grids das telas de detalhes (Mural, PT e Credenciamento) */
@media (max-width: 900px) {
  #areaDetalhes .pbs-plain-table {
    width: 100%;
    table-layout: fixed;
  }

  #areaDetalhes .pbs-plain-table thead {
    display: none;
  }

  #areaDetalhes .pbs-plain-table > tbody {
    display: block;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr {
    display: block;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #e3e8f2;
    border-radius: 12px;
    background: #fff;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr > td {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border: 0 !important;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
    max-width: none !important;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr > td::before {
    content: attr(data-grid-label);
    min-width: 38%;
    color: #7f8aa3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.3;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr > td[data-grid-label='']::before,
  #areaDetalhes .pbs-plain-table > tbody > tr > td:not([data-grid-label])::before,
  #areaDetalhes .pbs-plain-table > tbody > tr > td[colspan]::before {
    content: '';
    min-width: 0;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr > td > * {
    min-width: 0;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr.pbs-row-detail > td {
    display: block;
    padding: 0;
  }

  #areaDetalhes .mural-det-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #areaDetalhes .mural-det-table-scroll > .k-grid {
    min-width: 620px;
  }

  /* ---- Ranking: mesmo formato de card (label acima do valor) usado nos demais grids ---- */
  #areaDetalhes .pt-result-ranking-table {
    width: 100%;
    table-layout: fixed;
  }

  #areaDetalhes .pt-result-ranking-table thead {
    display: none;
  }

  #areaDetalhes .pt-result-ranking-table > tbody {
    display: block;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr {
    display: block;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr:last-child {
    margin-bottom: 0;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr > td {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border: 0 !important;
    padding: 3px 0;
    text-align: left !important;
    white-space: normal;
    max-width: none !important;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr > td::before {
    content: attr(data-grid-label);
    min-width: 38%;
    color: #7f8aa3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.3;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr > td[data-grid-label='']::before,
  #areaDetalhes .pt-result-ranking-table > tbody > tr > td:not([data-grid-label])::before {
    content: '';
    min-width: 0;
  }

  #areaDetalhes .pt-result-ranking-table td.pt-result-empresa {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
  }

  /* ---- Guarda-corpo: nenhum card/container das telas de detalhes pode ultrapassar a largura da tela ---- */
  /* Sobrepoe estilo-480/640/1024.css (.painel{width:94% !important}) que deixava os cards mais estreitos que os botoes */
  #areaDetalhes .painel {
    width: 100% !important;
  }

  #areaDetalhes,
  #areaDetalhes .mural-det-page,
  #areaDetalhes .mural-det-shell,
  #areaDetalhes .mural-det-main,
  #areaDetalhes .mural-det-aside,
  #areaDetalhes .painel,
  #areaDetalhes .det-card,
  #areaDetalhes .mural-det-quadro,
  #areaDetalhes .mural-det-summary-card,
  #areaDetalhes .mural-det-resumo-header {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #areaDetalhes .mural-det-resumo-badges,
  #areaDetalhes .mural-det-resumo-topbar,
  #areaDetalhes .mural-det-resumo-topbar-left,
  #areaDetalhes .mural-det-tabs,
  #areaDetalhes .doc-tabs {
    flex-wrap: wrap;
    max-width: 100%;
  }

  /* ---- Neutraliza min-width inline do item/lote (formataItemResultado) que forcava overflow ---- */
  #areaDetalhes .pbs-plain-table .pbs-item-line {
    min-width: 0 !important;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  #areaDetalhes .pbs-plain-table .pbs-item-nome {
    white-space: normal !important;
    word-break: break-word;
    min-width: 0;
  }

  #areaDetalhes .pbs-plain-table .areaClique {
    white-space: normal !important;
  }

  /* ---- Chat: garante quebra de texto mesmo em tokens longos sem espaco ---- */
  #areaDetalhes .mural-det-section-chat #gridChat .pbs-chat-card__body,
  #areaDetalhes .mural-det-section-chat #gridChat .pbs-chat-card__autor {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ---- Aproxima a largura dos cards da largura dos botoes de acao do aside ---- */
  #areaDetalhes .mural-det-page .painel,
  #areaDetalhes .mural-det-summary-card {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  #areaDetalhes .pbs-plain-table > tbody > tr > td {
    flex-direction: column;
    gap: 2px;
  }

  #areaDetalhes .pbs-plain-table > tbody > tr > td::before {
    min-width: 0;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr > td {
    flex-direction: column;
    gap: 2px;
  }

  #areaDetalhes .pt-result-ranking-table > tbody > tr > td::before {
    min-width: 0;
  }

  #areaDetalhes .mural-det-table-scroll > .k-grid {
    min-width: 520px;
  }

  #areaDetalhes .mural-det-page .painel,
  #areaDetalhes .mural-det-summary-card {
    padding: 10px 12px;
  }
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-content tbody tr td,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-content tbody tr td {
  border-bottom: 1px solid #e9edf5 !important;
}

.wbc-v2 .mural-det-section-chat #gridChat .k-grid-content tbody tr:last-child td,
#areaConteudo .mural-det-section-chat #gridChat .k-grid-content tbody tr:last-child td {
  border-bottom: 0 !important;
}

.wbc-v2 .mural-det-section-anexo-etapa .painel {
  padding-top: 14px;
}

.wbc-v2 .mural-det-section-anexo-etapa .painel > h1 {
  border-bottom-style: dashed;
}

.wbc-v2 .mural-det-section-documentos .painel {
  padding-top: 16px;
}

.wbc-v2 .mural-det-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8eeff;
  margin-bottom: 14px;
  overflow-x: auto;
}

.wbc-v2 .mural-det-tab {
  border: none;
  background: none;
  padding: 9px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-txt);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.wbc-v2 .mural-det-tab:hover {
  color: var(--brand);
}

.wbc-v2 .mural-det-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.wbc-v2 .mural-det-tabs-body > [data-acao] {
  margin-bottom: 0;
}

.wbc-v2 .mural-det-tabs-body > [data-acao] .painel {
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}

.wbc-v2 .mural-det-section-documentos .mural-det-tabs,
.wbc-v2 .mural-det-section-documentos .mural-det-tabs-body,
#areaConteudo .mural-det-section-documentos .mural-det-tabs,
#areaConteudo .mural-det-section-documentos .mural-det-tabs-body {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.wbc-v2 .mural-det-documentos-frame,
#areaConteudo .mural-det-documentos-frame {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d9e4f4;
  border-radius: 12px;
  background: #fbfcff;
  box-shadow: 0 4px 14px rgba(31, 58, 101, .06);
  padding: 10px 14px 8px;
}

.wbc-v2 .mural-det-section-documentos .mural-det-tabs-body,
#areaConteudo .mural-det-section-documentos .mural-det-tabs-body {
  min-height: 42px;
  padding-top: 0;
}

.mural-det-t4-modal {
  border: 1px solid #d9e4f4 !important;
  border-radius: 16px !important;
  box-shadow: 0 22px 54px rgba(17, 42, 84, .24) !important;
  overflow: hidden !important;
  background: #fff !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box !important;
}

/* Tamanhos fixos por tipo de modal (padrao alinhado a modal de cadastro) */
.mural-det-t4-modal--item {
  width: 560px !important;
}

.mural-det-t4-modal--forum {
  width: 780px !important;
  max-height: min(90vh, 820px) !important;
}

.mural-det-t4-modal--visitante {
  width: 920px !important;
}

/* Garante janela no body e evita layout flex empurrar para o canto */
body > .k-window.mural-det-t4-modal,
body > .k-window.mural-det-t4-modal--item,
body > .k-window.mural-det-t4-modal--forum,
body > .k-window.mural-det-t4-modal--visitante {
  max-width: calc(100vw - 32px) !important;
}

body > .k-window.mural-det-t4-modal--item {
  width: 560px !important;
}

body > .k-window.mural-det-t4-modal--forum {
  width: 780px !important;
  max-height: min(90vh, 820px) !important;
}

/* Flex só com a janela aberta — não forçar display no wrapper (quebra o hide do Kendo) */
body > .k-window.mural-det-t4-modal--forum:not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column !important;
}

body > .k-window.mural-det-t4-modal--visitante {
  width: 920px !important;
}

.mural-det-t4-modal .k-window-titlebar {
  border: 0 !important;
  border-bottom: 1px solid #e7edf8 !important;
  background: #fff !important;
  padding: 12px 16px !important;
}

.mural-det-t4-modal .k-window-title {
  color: #1c3b67 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

.mural-det-t4-modal .k-window-content {
  background: #fff !important;
  padding: 16px 18px 18px !important;
  box-sizing: border-box !important;
  max-height: min(70vh, 620px) !important;
  overflow-y: auto !important;
}

/* Forum: content cresce e rola; botões ficam sempre visíveis (só com janela aberta) */
body > .k-window.mural-det-t4-modal--forum:not([style*="display: none"]) > .k-window-titlebar {
  flex: 0 0 auto !important;
}

body > .k-window.mural-det-t4-modal--forum:not([style*="display: none"]) > .k-window-content,
body > .k-window.mural-det-t4-modal--forum:not([style*="display: none"]) #divDetalheForumMensagem {
  flex: 1 1 auto !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 12px !important;
}

.mural-det-t4-modal .campoBotaoSemIcone {
  min-width: 110px;
  width: auto !important;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand, #2A6496);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mural-det-t4-modal--item,
  .mural-det-t4-modal--forum,
  .mural-det-t4-modal--visitante,
  body > .k-window.mural-det-t4-modal--item,
  body > .k-window.mural-det-t4-modal--forum,
  body > .k-window.mural-det-t4-modal--visitante {
    width: calc(100vw - 24px) !important;
  }
}

.mural-det-t4-modal--item #divDetalheItem .painel,
.mural-det-t4-modal--item #divDetalheItemTabstrip {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.mural-det-t4-modal--item #divDetalheItemTabstrip .k-tabstrip-items,
.mural-det-t4-modal--item #divDetalheItemTabstrip .k-tabstrip-items .k-item {
  border: 0 !important;
  background: transparent !important;
}

.mural-det-t4-modal--item #divDetalheItemTabstrip .k-tabstrip-items {
  display: none !important;
}

.mural-det-t4-modal--item #divDetalheItemTabstrip .k-content,
.mural-det-t4-modal--item #divDetalheItemTabstrip-2 {
  border: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.mural-det-t4-modal--item #divDetalheItem .row-tabstrip {
  width: 100% !important;
  margin: 0 !important;
}

.mural-det-t4-modal--item #divDetalheItem .span12 {
  width: 100% !important;
  margin-left: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #35507a !important;
  word-break: break-word;
}

.mural-det-t4-modal--item #divDetalheItem h1 {
  margin: 0 0 12px !important;
  border: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #24508f !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.mural-det-t4-modal--item #divDetalheItem .destaquePalavra {
  color: #1c3b67 !important;
  font-weight: 600 !important;
}

.mural-det-t4-modal--item #divDetalheItem .k-auto-scrollable {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.mural-det-t4-modal--item #divDetalheItem > div[style*="text-align: right"] {
  margin-top: 8px;
  padding-top: 12px !important;
  border-top: 1px solid #e7edf8;
  text-align: right !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .painel,
.mural-det-t4-modal--forum #divDetalheForumMensagem .row-fluid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-painel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .painel {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem #painelForumMensagem {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem #divAnexoEsclarecimento {
  margin-top: 4px;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento {
  overflow-x: hidden;
  overflow-y: visible;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento .pbs-plain-table {
  width: 100%;
  table-layout: fixed;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-titulo {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #1c3b67 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .01em !important;
  line-height: 1.3 !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-topico {
  margin-bottom: 14px;
  color: #35507a;
  font-size: 13px;
  line-height: 1.45;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .row-fluid {
  margin-left: 0 !important;
  width: 100% !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .row-fluid .span12 {
  width: 100% !important;
  margin-left: 0 !important;
  margin-bottom: 12px;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem label.destaquePalavra {
  display: inline-block;
  margin-bottom: 4px;
  color: #35507a;
  font-size: 12px;
  font-weight: 600;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem input[type="text"],
.mural-det-t4-modal--forum #divDetalheForumMensagem textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem textarea {
  resize: vertical;
  min-height: 120px !important;
  height: 120px !important;
  max-height: 220px !important;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7edf8;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .areaBotao2 {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao,
.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.desativado {
  width: auto !important;
  min-width: 100px;
  height: auto !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.mural-det-t4-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.desativado {
  background: #868883 !important;
  cursor: default;
}

.mural-det-t4-modal--visitante .k-window-content {
  max-height: min(70vh, 620px) !important;
  overflow-y: auto !important;
  background: #fff !important;
  padding: 16px 18px 18px !important;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel {
  display: block !important;
  opacity: 1 !important;
  width: 100%;
  box-sizing: border-box;
}

.mural-det-t4-modal--visitante .cadastro-visitante-intro {
  margin-bottom: 10px;
  color: #35507a;
  font-size: 13px;
  line-height: 1.45;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid {
  margin-left: 0 !important;
  width: 100% !important;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid [class*="span"] {
  margin-left: 0 !important;
  margin-right: 10px !important;
  margin-bottom: 10px;
  float: left;
  box-sizing: border-box;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span2 {
  width: calc(16.666% - 10px) !important;
  min-width: 120px;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span3 {
  width: calc(25% - 10px) !important;
  min-width: 150px;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span4 {
  width: calc(33.333% - 10px) !important;
  min-width: 170px;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span5 {
  width: calc(41.666% - 10px) !important;
  min-width: 180px;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span6 {
  width: calc(50% - 10px) !important;
  min-width: 200px;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span10,
.mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid .span12 {
  width: 100% !important;
  margin-right: 0 !important;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel label {
  display: inline-block;
  margin-bottom: 4px;
  color: #35507a;
  font-size: 12px;
  font-weight: 600;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel input[type="text"],
.mural-det-t4-modal--visitante .cadastro-visitante-painel select {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.mural-det-t4-modal--visitante .cadastro-visitante-painel .selector,
.mural-det-t4-modal--visitante .cadastro-visitante-painel .selector span {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.mural-det-t4-modal--visitante .cadastro-visitante-acoes {
  margin-top: 8px;
  padding-top: 4px;
  text-align: left;
}

.mural-det-t4-modal--visitante .cadastro-visitante-acoes .areaBotao2 {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  margin: 0 8px 4px 0;
  vertical-align: middle;
}

.mural-det-t4-modal--visitante .cadastro-visitante-acoes .areaBotao2 .ico-botao {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.mural-det-t4-modal--visitante .cadastro-visitante-acoes .campoBotao,
.mural-det-t4-modal--visitante .cadastro-visitante-acoes .campoBotao.desativado {
  width: auto !important;
  min-width: 120px;
  height: auto !important;
  padding: 8px 16px 8px 45px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.mural-det-t4-modal--visitante .cadastro-visitante-acoes .campoBotao.desativado {
  background: #868883 !important;
  cursor: default;
}

@media (max-width: 900px) {
  .mural-det-t4-modal--visitante .cadastro-visitante-painel .row-fluid [class*="span"] {
    width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    float: none;
  }
}

.wbc-v2 .mural-det-item-window,
#areaConteudo .mural-det-item-window {
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(16, 40, 78, .2);
  overflow: hidden;
}

.mural-det-item-window {
  border: 1px solid #dbe4f2 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(16, 40, 78, .2) !important;
  overflow: hidden !important;
  background: #fff !important;
}

.wbc-v2 .mural-det-item-window .k-window-titlebar,
#areaConteudo .mural-det-item-window .k-window-titlebar {
  border: 0;
  border-bottom: 1px solid #e8eef8;
  background: #fff;
  padding: 12px 14px;
}

.mural-det-item-window .k-window-titlebar {
  border: 0 !important;
  border-bottom: 1px solid #e8eef8 !important;
  background: #fff !important;
  padding: 12px 14px !important;
}

.wbc-v2 .mural-det-item-window .k-window-title,
#areaConteudo .mural-det-item-window .k-window-title {
  color: #1a355f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}

.mural-det-item-window .k-window-title {
  color: #1a355f !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

.wbc-v2 .mural-det-item-window .k-window-content,
#areaConteudo .mural-det-item-window .k-window-content {
  background: #f7f9fd;
  padding: 14px;
}

.mural-det-item-window .k-window-content {
  background: #f7f9fd !important;
  padding: 14px !important;
}

.wbc-v2 .mural-det-item-window #divDetalheItem .painel,
#areaConteudo .mural-det-item-window #divDetalheItem .painel {
  border: 0;
  box-shadow: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

.wbc-v2 .mural-det-item-window #divDetalheItemTabstrip,
#areaConteudo .mural-det-item-window #divDetalheItemTabstrip {
  border: 1px solid #dce6f3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.mural-det-item-window #divDetalheItemTabstrip {
  border: 1px solid #dce6f3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

.wbc-v2 .mural-det-item-window #divDetalheItemTabstrip .k-tabstrip-items,
#areaConteudo .mural-det-item-window #divDetalheItemTabstrip .k-tabstrip-items {
  border-bottom: 1px solid #e8eef8;
  background: #f8fbff;
}

.mural-det-item-window #divDetalheItemTabstrip .k-tabstrip-items {
  border-bottom: 1px solid #e8eef8 !important;
  background: #f8fbff !important;
}

.wbc-v2 .mural-det-item-window #divDetalheItemTabstrip .k-content,
#areaConteudo .mural-det-item-window #divDetalheItemTabstrip .k-content {
  border: 0;
  background: #fff;
  padding: 14px;
}

.mural-det-item-window #divDetalheItemTabstrip .k-content {
  border: 0 !important;
  background: #fff !important;
  padding: 14px !important;
}

.wbc-v2 .mural-det-item-window #divDetalheItem .row-tabstrip,
#areaConteudo .mural-det-item-window #divDetalheItem .row-tabstrip {
  width: 100% !important;
  margin: 0;
}

.wbc-v2 .mural-det-item-window #divDetalheItem .span12,
#areaConteudo .mural-det-item-window #divDetalheItem .span12 {
  width: 100%;
  margin-left: 0;
}

.wbc-v2 .mural-det-item-window #divDetalheItem .k-auto-scrollable,
#areaConteudo .mural-det-item-window #divDetalheItem .k-auto-scrollable {
  height: auto !important;
  max-height: 330px;
}

.wbc-v2 .mural-det-item-window #divDetalheItem .campoBotaoSemIcone,
#areaConteudo .mural-det-item-window #divDetalheItem .campoBotaoSemIcone {
  min-width: 150px;
  width: auto !important;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.wbc-v2 .mural-det-section-forum #gridForum,
.wbc-v2 .mural-det-section-forum #gridForumAnexo,
.wbc-v2 .mural-det-section-notas #gridNota,
.wbc-v2 .mural-det-section-notas #gridNotaAnexo,
.wbc-v2 .mural-det-section-notas #gridChat,
#areaConteudo .mural-det-section-forum #gridForum,
#areaConteudo .mural-det-section-forum #gridForumAnexo,
#areaConteudo .mural-det-section-notas #gridNota,
#areaConteudo .mural-det-section-notas #gridChat,
#areaConteudo .mural-det-section-notas #gridNotaAnexo {
    background: #fff;
    overflow: hidden;
}

/* Notas (PbsTable): remove gap superior e limita altura a ~5 linhas */
.wbc-v2 .mural-det-section-notas .painel > h1,
#areaConteudo .mural-det-section-notas .painel > h1 {
  margin-bottom: 8px;
}

.wbc-v2 .mural-det-section-notas .painel > .row-fluid,
#areaConteudo .mural-det-section-notas .painel > .row-fluid {
  margin: 0 !important;
  color: inherit;
}

.wbc-v2 .mural-det-section-notas .painel > .row-fluid > .span12,
#areaConteudo .mural-det-section-notas .painel > .row-fluid > .span12 {
  padding-top: 0;
}

.wbc-v2 .mural-det-section-notas #gridNota,
#areaConteudo .mural-det-section-notas #gridNota {
  /* header (~34px) + 5 linhas (~46px cada) */
  max-height: 264px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-section-notas #gridNota .pbs-plain-table thead th,
#areaConteudo .mural-det-section-notas #gridNota .pbs-plain-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-section-notas #gridNotaAnexo,
#areaConteudo .mural-det-section-notas #gridNotaAnexo {
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 8px;
}

.wbc-v2 .mural-det-section-forum #gridForum,
#areaConteudo .mural-det-section-forum #gridForum {
  margin-bottom: 10px;
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-section-forum #gridForumAnexo,
#areaConteudo .mural-det-section-forum #gridForumAnexo {
  margin-top: 0;
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-v2 .mural-det-section-forum .k-grid,
.wbc-v2 .mural-det-section-notas .k-grid,
#areaConteudo .mural-det-section-forum .k-grid,
#areaConteudo .mural-det-section-notas .k-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.wbc-v2 .mural-det-section-forum .k-grid-header,
.wbc-v2 .mural-det-section-notas .k-grid-header,
#areaConteudo .mural-det-section-forum .k-grid-header,
#areaConteudo .mural-det-section-notas .k-grid-header {
  border: 0 !important;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-section-forum .k-grid-header th,
.wbc-v2 .mural-det-section-notas .k-grid-header th,
#areaConteudo .mural-det-section-forum .k-grid-header th,
#areaConteudo .mural-det-section-notas .k-grid-header th {
  border: 0 !important;
  border-bottom: 1px solid #e9edf5 !important;
  background: transparent;
  color: #4d5f82;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
  padding: 0px 5px;
}

.wbc-v2 .mural-det-section-forum td,
.wbc-v2 .mural-det-section-notas td,
#areaConteudo .mural-det-section-forum td,
#areaConteudo .mural-det-section-notas td {
  border: 0 !important;
  padding: 9px 10px;
  font-size: 14px;
  color: #324366;
  line-height: 1.35;
}

.wbc-v2 .mural-det-section-forum .k-alt,
.wbc-v2 .mural-det-section-forum .k-alt td,
.wbc-v2 .mural-det-section-notas .k-alt,
.wbc-v2 .mural-det-section-notas .k-alt td,
#areaConteudo .mural-det-section-forum .k-alt,
#areaConteudo .mural-det-section-forum .k-alt td,
#areaConteudo .mural-det-section-notas .k-alt,
#areaConteudo .mural-det-section-notas .k-alt td {
  background: #fff;
}

.wbc-v2 .mural-det-section-forum .k-grid-content,
.wbc-v2 .mural-det-section-notas .k-grid-content,
#areaConteudo .mural-det-section-forum .k-grid-content,
#areaConteudo .mural-det-section-notas .k-grid-content {
  border: 0 !important;
}

.wbc-v2 .mural-det-section-forum .k-grid-norecords,
.wbc-v2 .mural-det-section-notas .k-grid-norecords,
#areaConteudo .mural-det-section-forum .k-grid-norecords,
#areaConteudo .mural-det-section-notas .k-grid-norecords {
  color: #6d7d9c;
  font-size: 14px;
  padding: 18px;
}

/* Fallback: aplica o visual de cards do detalhe também fora do escopo .wbc-v2 */
#areaConteudo .mural-det-page .painel {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,63,102,.05);
  padding: 18px 20px;
  margin-bottom: 12px;
}

#areaConteudo .mural-det-page .painel > h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#areaConteudo .mural-det-page .painel > hr {
  display: none;
}

#areaConteudo .mural-det-summary-card .acoes-detalhes-mural {
  display: none !important;
}

#areaConteudo .mural-det-summary-card {
  padding: 16px 18px;
}

#areaConteudo .mural-det-summary-card > h1 {
  align-items: flex-start;
}

#areaConteudo .mural-det-summary-card #lblMuralDetalheTitulo {
  display: none;
}

#areaConteudo .mural-det-summary-card #lblMuralDetalheTitulo {
  display: none !important;
}

#areaConteudo .mural-det-summary-card #grupoResumo {
  display: block;
}

/* Espelha o layout .wbc-v2 do resumo para contextos legados #areaConteudo */
#areaConteudo .mural-det-resumo-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: static;
}

#areaConteudo .mural-det-resumo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

#areaConteudo .mural-det-resumo-topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

#areaConteudo .mural-det-resumo-ico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #8a95b0;
}

#areaConteudo .mural-det-resumo-topbar-left > .mural-det-resumo-ico {
  color: var(--brand);
}

#areaConteudo .mural-det-resumo-chip {
  position: static;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#areaConteudo .mural-det-resumo-chip.tipo-item {
  background: #e8f4ff;
  color: #185fa5;
}

#areaConteudo .mural-det-resumo-chip.tipo-lote {
  background: #fff3e6;
  color: #884000;
}

#areaConteudo .mural-det-resumo-num-value {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

#areaConteudo .mural-det-resumo-topbar-sep {
  font-size: 14px;
  color: #a0aac0;
  font-weight: 400;
  flex-shrink: 0;
}

#areaConteudo .mural-det-resumo-modalidade {
  font-size: 13px;
  font-weight: 700;
  color: #1f2f4f;
  text-transform: uppercase;
  letter-spacing: .03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#areaConteudo .mural-det-resumo-objeto {
  margin: 0;
  font-size: 18px;
  line-height: 1.24;
  font-weight: 700;
  color: #1a2340;
}

#areaConteudo .mural-det-resumo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#areaConteudo .mural-det-resumo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #d6e4fb;
  background: #eef4ff;
  font-size: 11px;
  font-weight: 700;
  color: #2f5ea8;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#areaConteudo .mural-det-resumo-badge.is-modalidade {
  color: #0f58b8;
  background: #edf5ff;
  border-color: #84b4f1;
}

#areaConteudo .mural-det-resumo-badge.is-situacao.sit-andamento,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-processamento,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-disputa {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}

#areaConteudo .mural-det-resumo-badge.is-situacao.sit-aprovado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-encerrado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-homologado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-ativo {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}

#areaConteudo .mural-det-resumo-badge.is-situacao.sit-cancelado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-fracassado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-anulado,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-revogado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}

#areaConteudo .mural-det-resumo-badge.is-situacao.sit-pendente,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-aguardando,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-suspenso,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-analise {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}

/* --- Estilos para Fase (badge colorida) --- */
#areaConteudo .mural-det-resumo-badge.is-fase {
  white-space: normal;
  display: inline-flex;
  align-items: center;
  text-align: center;
  overflow: visible;
  line-height: 1.3;
}
#areaConteudo .mural-det-resumo-badge.is-fase.sit-disputa,
#areaConteudo .mural-det-resumo-badge.is-fase.sit-andamento {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}

#areaConteudo .mural-det-resumo-badge.is-fase.sit-homologado,
#areaConteudo .mural-det-resumo-badge.is-fase.sit-encerrado,
#areaConteudo .mural-det-resumo-badge.is-fase.sit-aprovado {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}

#areaConteudo .mural-det-resumo-badge.is-fase.sit-pendente {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}

#areaConteudo .mural-det-resumo-badge.is-fase.sit-cancelado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}

#areaConteudo .mural-det-resumo-badge.is-fase.sit-neutro {
  background: #eef0f5;
  border-color: #dfe3ec;
  color: #5a6480;
}

#areaConteudo .mural-det-resumo-hr {
  display: block;
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid #e4e9f1;
  margin: 6px 0 2px;
}

#areaConteudo .mural-det-resumo-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  padding-top: 4px;
}

#areaConteudo .mural-det-resumo-meta-item {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 2px 18px 2px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #1f2f4f;
  align-self: stretch;
  flex: 1 1 0;
  max-width: none !important;
  min-width: 0;
}

#areaConteudo .mural-det-resumo-meta-item:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#areaConteudo .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
  padding-left: 18px !important;
  border-left: 1px solid var(--line, #e4e9f1) !important;
}

#areaConteudo .mural-det-resumo-meta-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#areaConteudo .mural-det-resumo-meta-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #8a95b0 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#areaConteudo .mural-det-resumo-meta-value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2f4f !important;
    margin-top: 0 !important;
    word-break: break-word;
    text-align: left;
}

@media (max-width: 900px) {
  #areaConteudo .mural-det-resumo-objeto {
    font-size: 17px;
  }

  #areaConteudo .mural-det-resumo-meta {
    flex-wrap: wrap;
    gap: 12px 0;
  }

  #areaConteudo .mural-det-resumo-meta-item {
    flex: 1 1 45%;
    min-width: 140px;
    padding: 0 12px 0 0 !important;
  }

  #areaConteudo .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 640px) {
  #areaConteudo .mural-det-resumo-topbar-left {
    flex-wrap: wrap;
  }

  #areaConteudo .mural-det-resumo-modalidade {
    white-space: normal;
  }

  #areaConteudo .mural-det-resumo-num-value {
    font-size: 14px;
  }

  #areaConteudo .mural-det-resumo-objeto {
    font-size: 16px;
  }

  #areaConteudo .mural-det-resumo-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  #areaConteudo .mural-det-resumo-meta-item {
    flex: none;
    width: 100%;
    padding: 0 !important;
  }

  #areaConteudo .mural-det-resumo-meta-item + .mural-det-resumo-meta-item {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  #areaConteudo .mural-det-side-actions {
    display: none !important;
  }
}

#areaConteudo .mural-det-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#areaConteudo .mural-det-side-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}

#areaConteudo .mural-det-side-item:last-child {
  border-bottom: 0;
}

#areaConteudo .mural-det-side-item-date {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ebf1ff;
    color: #31589b;
    font-size: 11px;
    font-weight: 700;
}

#areaConteudo .mural-det-side-item-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #2c4f96;
    text-decoration: none;
}

#areaConteudo .mural-det-side-item-icon {
  flex: 0 0 auto;
  opacity: .9;
}

#areaConteudo .mural-det-side-item-text {
    display: inline;
}

#areaConteudo .faq-anexo-item-text {
    display: inline;
    text-decoration: none;
    padding-left: 5px;
}
#areaConteudo .faq-anexo-item-text:hover {
    text-decoration: underline;
}

#areaConteudo .mural-det-side-item-link:hover {
    text-decoration: underline;
}

#areaConteudo .mural-det-side-empty {
  color: #6f7f9f;
  font-size: 14px;
  line-height: 1.45;
  padding: 6px 0;
}

#areaConteudo .mural-det-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 641px) {
  #areaConteudo .mural-det-side-actions {
    display: flex !important;
  }
}

#areaConteudo .mural-det-action-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(28,63,102,.08);
}

#areaConteudo .mural-det-action-btn:hover {
  background: var(--brand-dk);
}

@media (min-width: 901px) {
  #areaConteudo.mural-detalhe-ativo {
      overflow: visible;
  }

      #areaConteudo.mural-detalhe-ativo .mural-det-aside {
          width: 332px;
          flex-shrink: 0;
          align-self: flex-start;
          position: sticky;
          top: 80px;
          height: fit-content;
      }
}

#areaConteudo .mural-det-aside-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#areaConteudo .mural-det-aside-slot .painel-funcionalidades-anexo,
#areaConteudo .mural-det-aside-slot .span4,
#areaConteudo .mural-det-aside-slot .span8,
#areaConteudo .mural-det-aside-slot .row-fluid {
  margin: 0;
  float: none;
}

#areaConteudo .mural-det-aside .painel-funcionalidades-anexo,
#areaConteudo .mural-det-aside .painel-funcionalidades-relhis,
#areaConteudo .mural-det-aside #wrapRelatorio {
  min-height: 0 !important;
  height: auto !important;
}

#areaConteudo .mural-det-aside #gridAnexo,
#areaConteudo .mural-det-aside #gridRelatorio {
  display: none !important;
}

#areaConteudo .mural-det-main [data-grid-host='true'] {
  min-height: 320px;
  height: auto !important;
}

.wbc-v2 .mural-det-tabs-body > [data-acao] .painel > h1 {
  display: none;
}

/* --- Contadores da home ------------------------------------ */
.wbc-v2 .home-list-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.wbc-v2 .home-list-count { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

.wbc-v2 .home-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.wbc-v2 .home-view-btn {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6d7c97;
  cursor: pointer;
  padding: 0;
  transition: background .15s, color .15s, box-shadow .15s;
}

.wbc-v2 .home-view-btn:hover {
  color: var(--brand);
  background: rgba(31, 91, 181, 0.08);
}

.wbc-v2 .home-view-btn.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(28, 63, 102, 0.18);
}

.wbc-v2 .home-view-btn:focus-visible {
  outline: 2px solid rgba(31, 91, 181, 0.35);
  outline-offset: 1px;
}

.wbc-v2 #homeCardsGridRoot.is-list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wbc-v2 #homeCardsGridRoot.is-list-view .home-process-list-card {
  margin: 0;
}

.wbc-v2 #homeCardsGridRoot.is-list-view .card-d-obj {
  -webkit-line-clamp: 2;
  margin: 0;
  font-size: 15px;
}

.wbc-v2 #homeCardsGridRoot.is-list-view .card-d-infobox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.wbc-v2 #homeCardsGridRoot.is-list-view .mural-card-right-footer .card-d-dl {
  margin-right: auto;
}

.wbc-v2 .home-sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wbc-v2 .home-sort-sel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 28px 8px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #f7f9fc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365718a' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* --- Badges de situação (sbadge) --------------------------- */
.wbc-v2 .sbadge { font-size: 12px; border-radius: 4px; padding: 2px 7px; font-weight: 600; white-space: nowrap; }
.wbc-v2 .sb-ag  { background: #e8f4ff; color: #185FA5; }
.wbc-v2 .sb-and { background: #fff3e6; color: #7a3a00; }
.wbc-v2 .sb-hom { background: #e6f4ee; color: #0e7c3a; }
.wbc-v2 .sb-can { background: #fde8e8; color: #8b1a1a; }
.wbc-v2 .sb-sus { background: #fdf5e0; color: #7a5500; }
.wbc-v2 .sb-des { background: #f5f0ff; color: #4a2090; }
.wbc-v2 .sb-fra { background: #fde8e8; color: #8b1a1a; }

.wbc-v2 .mbadge { font-size: 12px; background: #f0f2f8; color: var(--gray-txt); border-radius: 4px; padding: 2px 6px; font-weight: 500; white-space: nowrap; }

/* Tipo item/lote */
.wbc-v2 .tipo-icon { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; margin-top: 2px; }
.wbc-v2 .ti-item { background: #e8f4ff; color: #185FA5; }
.wbc-v2 .ti-lote { background: #fff3e6; color: #884000; }

.wbc-v2 .mod-sit-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wbc-v2 .fase-badge { font-size: 12px; background: #f0f2f8; color: var(--blue); border-radius: 4px; padding: 2px 7px; font-weight: 600; }

/* --- Date tags --------------------------------------------- */
.wbc-v2 .date-tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

.wbc-v2 .dtag {
  display: inline-flex;
  flex-direction: column;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 12px;
  border: 0.5px solid;
}

.wbc-v2 .dtag-lbl { font-weight: 500; font-size: 11px; margin-bottom: 1px; opacity: 0.75; }
.wbc-v2 .dtag-val { font-weight: 600; }
.wbc-v2 .dtag-ag { background: #fff; border-color: #a0b0e0; color: #1a3fa8; }
.wbc-v2 .dtag-ag .dtag-lbl { color: #1a3fa8; }
.wbc-v2 .dtag-future { background: #fff; border-color: #5cb97a; color: #0e7c3a; }
.wbc-v2 .dtag-future .dtag-lbl { color: #0e7c3a; }
.wbc-v2 .dtag-past { background: #fff; border-color: #c8cdd8; color: #6b7899; }
.wbc-v2 .dtag-past .dtag-lbl { color: #6b7899; }

/* --- Mural cards (mural-proc-card) ------------------------- */
.wbc-v2 .mural-proc-card {
  --mural-proc-right-width: clamp(330px, 38vw, 430px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7ebf2;
  box-shadow: 0 1px 3px rgba(28,63,102,.05);
  padding: 14px 22px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
}

.wbc-v2 .mural-proc-card:hover { border-color: #bfcfe6; box-shadow: 0 4px 20px rgba(28,63,102,.10); }

.wbc-v2 .mural-card-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 28px;
}

.wbc-v2 .mural-card-right {
  width: var(--mural-proc-right-width);
  min-width: var(--mural-proc-right-width);
  max-width: var(--mural-proc-right-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.wbc-v2 .mural-proc-num-lbl { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.wbc-v2 .mural-proc-num { font-size: 16px; font-weight: 700; color: var(--brand); letter-spacing: .01em; }
.wbc-v2 .mural-proc-obj { font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }

/* --- Datebox no mural -------------------------------------- */
.wbc-v2 .mural-datebox { border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px; flex-shrink: 0; }
.wbc-v2 .mural-datebox-lbl { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.wbc-v2 .mural-datebox-val { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Mural sort/resultados --------------------------------- */
.wbc-v2 .mural-results-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.wbc-v2 .mural-sort-sel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 28px 8px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #f7f9fc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365718a' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* --- Mural card (legado) ----------------------------------- */
.wbc-v2 .mural-card {
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.wbc-v2 .mural-card:hover { border-color: #a0b0e0; box-shadow: 0 2px 10px rgba(26,63,168,0.08); }
.wbc-v2 .mural-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.wbc-v2 .mural-num-wrap { display: flex; flex-direction: column; gap: 1px; }
.wbc-v2 .mural-num { font-size: 16px; font-weight: 700; color: var(--blue); }
.wbc-v2 .mural-num-lbl { font-size: 11px; color: #9aa2be; text-transform: uppercase; letter-spacing: 0.05em; }
.wbc-v2 .mural-obj { font-size: 15px; color: var(--text); line-height: 1.4; font-weight: 500; margin-bottom: 8px; }
.wbc-v2 .mural-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.wbc-v2 .mural-dates { display: flex; flex-wrap: wrap; gap: 5px; }

/* --- Paginação --------------------------------------------- */
.wbc-v2 .pag-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.wbc-v2 .pag-btn { background: #fff; border: 0.5px solid var(--gray-mid); border-radius: 5px; padding: 5px 11px; font-size: 14px; color: var(--blue); cursor: pointer; font-family: inherit; }
.wbc-v2 .pag-btn:hover { background: #e8eeff; }
.wbc-v2 .pag-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.wbc-v2 .pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wbc-v2 .pag-info { font-size: 13px; color: var(--gray-txt); }

/* --- Avisos (cards) ---------------------------------------- */
.wbc-v2 .avisos-card {
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.wbc-v2 .avisos-card:hover { border-color: #a0b0e0; box-shadow: 0 2px 10px rgba(26,63,168,0.08); }
.wbc-v2 .avisos-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wbc-v2 .avisos-card-titulo { font-size: 15px; font-weight: 700; color: var(--brand); line-height: 1.35; flex: 1; }
.wbc-v2 .avisos-card-meta { margin-bottom: 10px; }
.wbc-v2 .avisos-card-btn { flex-shrink: 0; }
.wbc-v2 .avisos-card-preview { font-size: 13px; color: var(--gray-txt); line-height: 1.65; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wbc-v2 .avisos-card-footer { display: flex; align-items: center; justify-content: flex-end; }
.wbc-v2 .btn-ler { background: var(--blue); color: #fff; border: none; border-radius: 6px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.wbc-v2 .btn-ler:hover { background: var(--blue-dk); }

@media (max-width: 768px) {
  .wbc-v2 .avisos-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wbc-v2 .avisos-card-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }
}

/* --- Catalogo de Produtos (cards inline) ------------------ */
.wbc-v2 .catalogo-search-wrap {
  margin-bottom: 10px;
}

.wbc-v2 .catalogo-filter-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wbc-v2 .catalogo-filter-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wbc-v2 .catalogo-filter-field {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    background: #fff;
    border: 1px solid #d5deec;
    border-radius: 10px;
    padding: 3px 10px;
    gap: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
}

.wbc-v2 .catalogo-filter-field.catalogo-dd-wrap {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
}

.wbc-v2 .catalogo-native-select,
.wbc-v2 .catalogo-dd-wrap .selector,
.wbc-v2 .catalogo-dd-wrap div.selector,
.wbc-v2 .catalogo-dd-wrap > .selector,
.wbc-v2 .catalogo-dd-wrap > div.selector,
.wbc-v2 .catalogo-dd-wrap > span,
.wbc-v2 .catalogo-dd-wrap .selector span,
.wbc-v2 .catalogo-dd-wrap > *:not(.catalogo-dd) {
  display: none !important;
}

.wbc-v2 .catalogo-dd {
  position: relative;
}

.wbc-v2 .new-hero-search .catalogo-dd-wrap {
  position: relative;
  z-index: 20;
}

.wbc-v2 .new-hero-search .catalogo-dd {
  z-index: 21;
}

.wbc-v2 .new-hero-search .catalogo-dd.catalogo-open {
  z-index: 260;
}

/* Cada wrap cria contexto de empilhamento (z-index 20): sem subir o wrap do dropdown aberto,
   o popup fica por baixo do campo seguinte quando os filtros empilham no mobile. */
.wbc-v2 .new-hero-search .catalogo-dd-wrap:has(> .catalogo-dd.catalogo-open) {
  z-index: 262;
}

.wbc-v2 .catalogo-dd-btn,
.wbc-v2 .mural-dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  min-width: 160px;
  padding: 8px 12px;
  background: #f5f7fb;
  border: 1px solid #d5deec;
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.wbc-v2 .catalogo-sort-wrap .catalogo-dd-btn {
  min-width: 220px;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13.5px;
}

.wbc-v2 .home-dd-wrap .catalogo-dd-btn {
  min-width: 210px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
}

.wbc-v2 .home-sort-wrap .home-dd-wrap .catalogo-dd-btn {
  min-width: 230px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
}

.wbc-v2 .catalogo-dd-btn-text,
.wbc-v2 .mural-dd-btn-text {
  white-space: nowrap;
  color: #8b96ad;
}

.wbc-v2 .catalogo-dd.catalogo-dd-has-value .catalogo-dd-btn-text,
.wbc-v2 .mural-dd.mural-dd-has-value .mural-dd-btn-text {
  color: var(--ink);
}

.wbc-v2 .catalogo-dd-btn-caret,
.wbc-v2 .mural-dd-btn-caret {
  color: var(--muted);
  font-size: 11px;
}

.wbc-v2 .catalogo-dd-pop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #f8f9fb;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(24, 53, 98, 0.16);
  z-index: 80;
  padding: 10px 10px 8px;
}

.wbc-v2 .new-hero-search .catalogo-dd.catalogo-open .catalogo-dd-pop {
  z-index: 261;
}

.wbc-v2 .catalogo-sort-wrap .catalogo-dd-pop,
.wbc-v2 .home-sort-wrap .catalogo-dd-pop {
  right: 0;
  left: auto;
}

.wbc-v2 .catalogo-dd.catalogo-open .catalogo-dd-pop {
  display: block;
}

.wbc-v2 .catalogo-dd-pop-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
  padding: 4px 6px 8px;
}

.wbc-v2 .catalogo-dd-pop__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
  padding: 8px 6px 2px;
  border-top: 1px solid #e7edf8;
}

.wbc-v2 .catalogo-dd-pop__action {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #8b97ab;
  cursor: pointer;
}

.wbc-v2 .catalogo-dd-pop__action:hover {
  color: var(--brand, #2d5f9c);
}

.wbc-v2 .catalogo-dd-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-template4 .wbc-v2 .catalogo-dd-list,
.portal-template4 .wbc-v2 .mural-dd-list {
  max-height: 176px;
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-template4 .k-list-container .k-list,
.portal-template4 .k-animation-container .k-list,
.portal-template4 .k-popup .k-list,
.portal-template4 .k-list-scroller {
  max-height: 176px !important;
  overflow-y: auto !important;
}

.wbc-v2 .catalogo-dd-item {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 6px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.wbc-v2 .catalogo-dd-item:hover {
  background: #eef2f9;
}

.wbc-v2 .catalogo-dd-item-check {
  width: 14px;
  height: 14px;
  border: 1px solid #b9c5d8;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
}

.wbc-v2 .catalogo-dd-item.is-active .catalogo-dd-item-check {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.wbc-v2 .catalogo-filter-field select,
.wbc-v2 .catalogo-filter-field input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  min-width: 120px;
}


.wbc-v2 .catalogo-filter-categoria {
  min-width: 220px !important;
}

.wbc-v2 .catalogo-filter-categoria::placeholder {
  color: #8b96ad;
  opacity: 1;
}

.wbc-v2 .catalogo-filter-field select {
  min-width: 120px;
}

.wbc-v2 .catalogo-filter-field .selector,
.wbc-v2 .catalogo-filter-field .selector span {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
}

.wbc-v2 .catalogo-filter-field .selector span {
  padding-right: 16px !important;
}

.wbc-v2 .catalogo-filter-field .catalogo-kendo-autocomplete,
.wbc-v2 .catalogo-filter-field .k-autocomplete,
.wbc-v2 .catalogo-filter-field .k-autocomplete.k-state-default,
.wbc-v2 .catalogo-filter-field .k-autocomplete.k-state-focused {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

    .wbc-v2 .catalogo-filter-field .k-autocomplete .k-input {
        min-height: 28px;
        height: 28px;
        line-height: 28px;
        padding: 0;
        font-weight: 600;
    }

.wbc-v2 .catalogo-filter-field .k-clear-value,
.wbc-v2 .catalogo-filter-field .k-i-close,
.wbc-v2 .catalogo-filter-field .k-icon.k-i-close,
.wbc-v2 .catalogo-filter-field .k-autocomplete .k-select {
  display: none !important;
}

.wbc-v2 .catalogo-results-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wbc-v2 .catalogo-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.wbc-v2 .catalogo-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.wbc-v2 .catalogo-sort-select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 28px 8px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #f7f9fc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365718a' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.wbc-v2 .catalogo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wbc-v2 .catalogo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(28, 63, 102, .05);
  transition: box-shadow .18s, border-color .18s;
}

.wbc-v2 .catalogo-card:hover {
  border-color: #bfcfe6;
  box-shadow: 0 4px 20px rgba(28, 63, 102, .1);
  cursor: pointer;
}

.wbc-v2 .catalogo-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.wbc-v2 .catalogo-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f4f6fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9d7be8;
  font-size: 22px;
}

.wbc-v2 .catalogo-card-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dce3ef;
  background: #fff;
}

.wbc-v2 .catalogo-card-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(120px, .5fr) minmax(140px, .7fr);
  gap: 12px;
  align-items: center;
}

.wbc-v2 .catalogo-card-codigo {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 4px;
}

.wbc-v2 .catalogo-card-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
}

.wbc-v2 .catalogo-col-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wbc-v2 .catalogo-col-val {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.wbc-v2 .catalogo-card-btn {
  flex-shrink: 0;
}

.wbc-v2 .catalogo-card-detail {
  display: none;
  border-top: none;
  padding: 8px 16px 16px;
}

.wbc-v2 .catalogo-card.catalogo-open .catalogo-card-detail {
  display: block;
}

.wbc-v2 .catalogo-detail-wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.wbc-v2 .catalogo-detail-img {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.wbc-v2 .catalogo-detail-info {
  flex: 1;
  min-width: 260px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.wbc-v2 .catalogo-detail-info b {
  color: var(--muted);
  font-weight: 700;
}

.wbc-v2 .catalogo-empty,
.wbc-v2 .catalogo-end {
  border: 1px dashed #cad4ea;
  border-radius: 12px;
  background: #fff;
  color: #5a6480;
  text-align: center;
  padding: 20px 16px;
  font-size: 14px;
}

/* --- Tags genéricas ---------------------------------------- */
.wbc-v2 .tag-date { font-size: 12px; background: #e8f0ff; color: #1a3fa8; border-radius: 4px; padding: 1px 6px; font-weight: 500; }
.wbc-v2 .tag-novo { font-size: 12px; background: #e6f4ee; color: #0e7c3a; border-radius: 4px; padding: 1px 6px; font-weight: 700; }

/* --- Avisos item (side) ------------------------------------ */
.wbc-v2 .aviso-item { padding: 7px 0; border-bottom: 0.5px solid #f0f2f8; display: flex; flex-direction: column; gap: 3px; }
.wbc-v2 .aviso-item:last-child { border-bottom: none; }
.wbc-v2 .aviso-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wbc-v2 .aviso-date { font-size: 12px; color: #9aa2be; }
.wbc-v2 .aviso-titulo { font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; line-height: 1.35; }
.wbc-v2 .aviso-titulo:hover { text-decoration: underline; }
.wbc-v2 .aviso-full-card { background: #fff; border: 0.5px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 20px 24px; }
.wbc-v2 .aviso-full-date { font-size: 13px; color: #9aa2be; margin-bottom: 6px; }
.wbc-v2 .aviso-full-titulo { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 14px; line-height: 1.4; }
.wbc-v2 .aviso-full-body { font-size: 15px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

/* --- Normas ------------------------------------------------ */
.wbc-v2 .normas-search { background: #fff; border: 0.5px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.wbc-v2 .normas-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.wbc-v2 .normas-field label { font-size: 13px; font-weight: 600; color: var(--gray-txt); }
.wbc-v2 .normas-field input, .wbc-v2 .normas-field select { border: 0.5px solid var(--gray-mid); border-radius: 5px; padding: 6px 10px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; outline: none; }
.wbc-v2 .normas-field input:focus, .wbc-v2 .normas-field select:focus { border-color: var(--blue); }
.wbc-v2 .normas-grupo { background: #fff; border: 0.5px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 14px; }
.wbc-v2 .normas-grupo-titulo { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); display: flex; align-items: center; gap: 8px; }
.wbc-v2 .normas-grupo-titulo::before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--blue); border-radius: 2px; }
.wbc-v2 .norma-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 0.5px solid #f0f2f8; cursor: pointer; transition: background 0.12s; border-radius: 4px; }
.wbc-v2 .norma-item:last-child { border-bottom: none; }
.wbc-v2 .norma-item:hover { background: #f5f7ff; }
.wbc-v2 .norma-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f0f2f8; border-radius: 5px; }
.wbc-v2 .norma-icon svg { width: 15px; height: 15px; color: #6b7899; }
.wbc-v2 .norma-arrow { font-size: 14px; color: #9aa2be; margin: 0 2px; }
.wbc-v2 .norma-nome { font-size: 14.5px; color: var(--blue); font-weight: 500; flex: 1; line-height: 1.3; }
.wbc-v2 .norma-nome:hover { text-decoration: underline; }
.wbc-v2 .norma-tag { font-size: 12px; background: #f0f2f8; color: var(--gray-txt); border-radius: 3px; padding: 2px 6px; white-space: nowrap; }

/* --- News ticker ------------------------------------------- */
.wbc-v2 .ticker-wrap { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(28,63,102,.05); }
.wbc-v2 .ticker-tag { background: var(--teal); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 15px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; }
.wbc-v2 .ticker-tag svg { color: #fff; }
.wbc-v2 .ticker-feed { flex: 1; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbc-v2 .ticker-feed-icon { display: inline-flex; vertical-align: middle; margin-right: 6px; color: #7d8eaa; }
.wbc-v2 .ticker-dots { display: flex; gap: 5px; flex-shrink: 0; }
.wbc-v2 .ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s; }
.wbc-v2 .ticker-dot.active { background: var(--brand); }
.wbc-v2 .ticker-all { font-size: 13px; font-weight: 700; color: var(--brand); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.wbc-v2 .ticker-all:hover { text-decoration: underline; }

/* --- Urgente strip ----------------------------------------- */
.wbc-v2 .urgent-strip { display: flex; align-items: stretch; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px 8px 14px; box-shadow: 0 1px 2px rgba(28,63,102,.04); }
.wbc-v2 .urgent-label { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-right: 14px; border-right: 1px solid var(--line); }
.wbc-v2 .urgent-label svg { color: #7b8dab; }
.wbc-v2 .urgent-ttl { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); line-height: 1.2; }
.wbc-v2 .urgent-sub { font-size: 11.5px; color: var(--muted); }
.wbc-v2 .urgent-scroll { display: flex; gap: 0; overflow-x: auto; flex: 1; align-items: center; }
.wbc-v2 .urgent-pill { display: flex; align-items: center; gap: 9px; flex-shrink: 0; cursor: pointer; padding: 6px 16px; border-right: 1px solid #f0f3f8; }
.wbc-v2 .urgent-pill:last-child { border-right: none; }
.wbc-v2 .urgent-pill:hover { background: #f7f9fc; }
.wbc-v2 .urgent-badge { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.wbc-v2 .urgent-num { font-size: 12px; font-weight: 700; color: var(--brand); line-height: 1.25; }
.wbc-v2 .urgent-obj { font-size: 12px; color: var(--muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.wbc-v2 .urgent-arrows { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding-left: 6px; border-left: 1px solid var(--line); }
.wbc-v2 .urgent-arr { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.wbc-v2 .urgent-arr:hover { background: #f0f4ff; }

/* --- Responsivo Mural Detalhes ----------------------------- */
@media (max-width: 900px) {
  .wbc-v2 .mural-det-page,
  #areaConteudo .mural-det-page {
    padding: 12px 0 0;
  }

  .wbc-v2 .mural-det-backbar,
  #areaConteudo .mural-det-backbar {
    padding: 0 4px;
  }

  .wbc-v2 .mural-det-page .painel,
  #areaConteudo .mural-det-page .painel {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .wbc-v2 .mural-det-summary-card,
  #areaConteudo .mural-det-summary-card {
    padding: 14px 16px;
  }

  .wbc-v2 .mural-det-summary-card > h1,
  #areaConteudo .mural-det-summary-card > h1 {
    flex-wrap: wrap;
  }

  .wbc-v2 .mural-det-resumo-header,
  #areaConteudo .mural-det-resumo-header {
    gap: 10px;
  }

  .wbc-v2 .mural-det-resumo-num-value,
  #areaConteudo .mural-det-resumo-num-value {
    font-size: 14px;
  }

  .wbc-v2 .mural-det-resumo-objeto,
  #areaConteudo .mural-det-resumo-objeto {
    font-size: 17px;
  }

  .wbc-v2 .mural-det-resumo-badges,
  #areaConteudo .mural-det-resumo-badges {
    gap: 6px;
  }

  .wbc-v2 .mural-det-resumo-badge,
  #areaConteudo .mural-det-resumo-badge {
    font-size: 12px;
    min-height: 26px;
  }

  .wbc-v2 .mural-det-resumo-meta,
  #areaConteudo .mural-det-resumo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .wbc-v2 .mural-det-resumo-meta-item,
  #areaConteudo .mural-det-resumo-meta-item {
    flex: 1 1 45%;
    width: auto;
    max-width: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .wbc-v2 .mural-det-main [data-grid-host='true'],
  #areaConteudo .mural-det-main [data-grid-host='true'] {
    min-height: 240px;
  }

  .wbc-v2 .mural-det-page .painel > h1,
  #areaConteudo .mural-det-page .painel > h1 {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .wbc-v2 .mural-det-page .painel,
  #areaConteudo .mural-det-page .painel {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .wbc-v2 .mural-det-summary-card,
  #areaConteudo .mural-det-summary-card {
    padding: 12px 14px;
  }

  .wbc-v2 .mural-det-resumo-chip,
  #areaConteudo .mural-det-resumo-chip {
    position: static;
    align-self: flex-start;
    order: -1;
  }

  .wbc-v2 .mural-det-resumo-num-value,
  #areaConteudo .mural-det-resumo-num-value {
    font-size: 18px;
  }

  .wbc-v2 .mural-det-resumo-objeto,
  #areaConteudo .mural-det-resumo-objeto {
    font-size: 16px;
  }

  .wbc-v2 .mural-det-resumo-badge,
  #areaConteudo .mural-det-resumo-badge {
    width: 100%;
    justify-content: center;
    font-size: 11px;
  }

  .wbc-v2 .mural-det-resumo-meta-label,
  #areaConteudo .mural-det-resumo-meta-label {
    font-size: 10px;
  }

  .wbc-v2 .mural-det-resumo-meta-value,
  #areaConteudo .mural-det-resumo-meta-value {
    font-size: 13px;
  }
}


/* --- Responsivo cards -------------------------------------- */
@media (max-width: 900px) {
  .wbc-v2 .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .wbc-v2 .cards-grid-d { grid-template-columns: 1fr; }
  .wbc-v2 .catalogo-card-main { grid-template-columns: 1fr; gap: 8px; }
  .wbc-v2 .catalogo-card-head { align-items: flex-start; flex-wrap: wrap; }
  .wbc-v2 #homeCardsGridRoot.is-list-view .card-d-infobox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wbc-v2 #homeCardsGridRoot.is-list-view .card-d-infobox { grid-template-columns: minmax(0, 1fr); }
  .wbc-v2 .home-list-hdr { align-items: center; }
  .wbc-v2 .mural-card { padding: 12px 14px; }
  /* — catalogo-filter-row (CatalogoProdutos, FAQ): coluna e largura total — */
  .wbc-v2 .catalogo-filter-row { flex-direction: column; align-items: stretch; }
  .wbc-v2 .catalogo-filter-field { width: 100%; box-sizing: border-box; }
  .wbc-v2 .catalogo-filter-field input,
  .wbc-v2 .catalogo-filter-field select { width: 100%; }
  .wbc-v2 .catalogo-filter-field .catalogo-dd { width: 100%; }
  .wbc-v2 .catalogo-filter-field .catalogo-dd-btn { width: 100%; min-width: 0; box-sizing: border-box; }
}

@media (max-width: 600px) {
  .wbc-v2 .cards-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .wbc-v2 .catalogo-filter-field,
  .wbc-v2 .catalogo-filter-field input,
  .wbc-v2 .catalogo-filter-field select {
    width: 100%;
  }

  .wbc-v2 .catalogo-filter-row {
    align-items: stretch;
  }

  .wbc-v2 .catalogo-card-btn {
    width: 100%;
  }

  .wbc-v2 .catalogo-card-btn .scr-btn-solid {
    width: 100%;
  }
}

/* ================================================================
/* ================================================================
   COMPONENTE: mural-det-quadro
   Visual padronizado para todos os paineis de lista do mural
   (Forum/Esclarecimentos, Impugnacoes, Notas, etc.).
   Adicione a classe .mural-det-quadro ao .painel que envolve o grid.
   ================================================================ */

/* ---- Altura maxima padrao (~6/7 linhas visiveis) com scroll, fallback para qualquer grade do
   componente que nao tenha uma regra mais especifica por secao (ex.: gridHabilitacao,
   gridClassificacao e as variantes de drill-down item/lote). Evita que o card cresca sem limite
   conforme a quantidade de resultados. gridItem/gridHistorico/gridChat/gridNota/gridForum/
   gridImpugnacao ja tem essa mesma altura definida em regras dedicadas por secao. */
.wbc-v2 .mural-det-quadro [id^="grid"],
#areaConteudo .mural-det-quadro [id^="grid"] {
  max-height: 340px;
  overflow-y: auto;
}

.wbc-v2 .mural-det-quadro .k-grid,
#areaConteudo .mural-det-quadro .k-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.wbc-v2 .mural-det-quadro .k-grid-header,
#areaConteudo .mural-det-quadro .k-grid-header {
  border: 0 !important;
  background: #f7f9fd;
}

.wbc-v2 .mural-det-quadro .k-grid-header-wrap,
#areaConteudo .mural-det-quadro .k-grid-header-wrap {
  border: 0 !important;
}

.wbc-v2 .mural-det-quadro .k-grid-header th,
#areaConteudo .mural-det-quadro .k-grid-header th {
  border: 0 !important;
  border-bottom: 1px solid #e9edf5 !important;
  background: transparent;
  color: #4d5f82;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  padding: 8px 10px;
}

.wbc-v2 .mural-det-quadro .k-grid-header th .k-link,
#areaConteudo .mural-det-quadro .k-grid-header th .k-link {
  line-height: 1.3;
  padding: 0;
}

.wbc-v2 .mural-det-quadro .k-grid-content,
#areaConteudo .mural-det-quadro .k-grid-content {
  border: 0 !important;
  background: #fff;
}

.wbc-v2 .mural-det-quadro .k-grid td,
#areaConteudo .mural-det-quadro .k-grid td {
  border: 0 !important;
  padding: 11px 12px !important;
  font-size: 13px;
  color: #324366;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

.wbc-v2 .mural-det-quadro .k-grid .k-alt,
.wbc-v2 .mural-det-quadro .k-grid .k-alt td,
#areaConteudo .mural-det-quadro .k-grid .k-alt,
#areaConteudo .mural-det-quadro .k-grid .k-alt td {
  background: #fff !important;
}

.wbc-v2 .mural-det-quadro .k-grid-content tbody tr td,
#areaConteudo .mural-det-quadro .k-grid-content tbody tr td {
  border-bottom: 1px solid #edf0f7 !important;
}

.wbc-v2 .mural-det-quadro .k-grid-content tbody tr:last-child td,
#areaConteudo .mural-det-quadro .k-grid-content tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Linhas de detalhe expansivel (respostas/pareceres) */
.wbc-v2 .mural-det-quadro .k-detail-row > td,
#areaConteudo .mural-det-quadro .k-detail-row > td {
  border-bottom: 0 !important;
  background: #f9fafd !important;
  padding: 10px 14px !important;
}

.wbc-v2 .mural-det-quadro .k-detail-row .k-grid-header,
#areaConteudo .mural-det-quadro .k-detail-row .k-grid-header {
  background: #f0f2f8;
}

/* --- Badges de situacao (mural-badge) ---------------------- */
.mural-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  vertical-align: middle;
}

.mural-badge--success {
  background: #e6f9ef;
  color: #0d6e35;
}

.mural-badge--danger {
  background: #fdecea;
  color: #b91c1c;
}

.mural-badge--warning {
  background: #fff3cd;
  color: #8a5a00;
}

.mural-badge--info {
  background: #e8eeff;
  color: #1a3fa8;
}

.mural-badge--neutral {
  background: #f0f2f8;
  color: #4d5f82;
}

/* PbsTable: tabela HTML pura substituta do Kendo Grid */
.mural-det-quadro .pbs-plain-table,
.mural-det-section-forum .pbs-plain-table,
.pbs-modal .pbs-plain-table,
#areaConteudo .mural-det-quadro .pbs-plain-table,
#areaConteudo .mural-det-section-forum .pbs-plain-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}

.mural-det-quadro .pbs-plain-table th,
.mural-det-section-forum .pbs-plain-table th,
.pbs-modal .pbs-plain-table th,
#areaConteudo .mural-det-quadro .pbs-plain-table th,
#areaConteudo .mural-det-section-forum .pbs-plain-table th {
  background: #f7f9fd;
  border-bottom: 1px solid #e9edf5;
  color: #4d5f82;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  padding: 8px 10px;
  text-align: left;
}

.mural-det-quadro .pbs-plain-table td,
.mural-det-section-forum .pbs-plain-table td,
.pbs-modal .pbs-plain-table td,
#areaConteudo .mural-det-quadro .pbs-plain-table td,
#areaConteudo .mural-det-section-forum .pbs-plain-table td {
  padding: 11px 12px;
  font-size: 13px;
  color: #324366;
  line-height: 1.4;
  word-break: break-word;
  vertical-align: top;
}

.mural-det-quadro .pbs-plain-table tbody tr:not(:last-child) td,
.mural-det-section-forum .pbs-plain-table tbody tr:not(:last-child) td,
.pbs-modal .pbs-plain-table tbody tr:not(:last-child) td,
#areaConteudo .mural-det-quadro .pbs-plain-table tbody tr:not(:last-child) td,
#areaConteudo .mural-det-section-forum .pbs-plain-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #edf0f7;
}

.mural-det-quadro .pbs-plain-table tr.pbs-row-selected td,
.mural-det-section-forum .pbs-plain-table tr.pbs-row-selected td,
.pbs-modal .pbs-plain-table tr.pbs-row-selected td,
#areaConteudo .mural-det-quadro .pbs-plain-table tr.pbs-row-selected td,
#areaConteudo .mural-det-section-forum .pbs-plain-table tr.pbs-row-selected td {
  background: #eef4ff;
}

/* PbsTable: expand/collapse no grid de resultado do processo */
.mural-det-quadro .pbs-plain-table tr.pbs-row-master,
#areaConteudo .mural-det-quadro .pbs-plain-table tr.pbs-row-master {
  cursor: pointer;
}
.mural-det-quadro .pbs-plain-table tr.pbs-row-master:hover td,
#areaConteudo .mural-det-quadro .pbs-plain-table tr.pbs-row-master:hover td {
  background: #f5f8ff;
}
.mural-det-quadro .pbs-plain-table tr.pbs-row-detail > td,
#areaConteudo .mural-det-quadro .pbs-plain-table tr.pbs-row-detail > td {
  background: #f9fafc;
  padding: 0;
  border-bottom: 1px solid #e4e9f1;
}
.pbs-detail-wrap { padding: 10px 14px 14px 36px; }
.pbs-detail-msg { font-size: 12.5px; color: #8a95b0; font-style: italic; padding: 8px 2px; }
.pbs-detail-msg .pbs-empty-state { padding: 8px 16px; gap: 4px; }
.pbs-detail-msg .pbs-empty-state svg { display: none; }
.pbs-expand-ico { color: #9aabca; margin-right: 5px; display: inline-block; flex-shrink: 0; transition: transform .15s; line-height: 1.3; }
.pbs-row-expanded .pbs-expand-ico { transform: rotate(90deg); color: #2A6496; }
.pbs-item-line { display: inline-flex; align-items: flex-start; gap: 2px; max-width: 100%; }
.pbs-item-nome,
.mural-det-quadro .pbs-plain-table .pbs-item-nome,
#areaConteudo .mural-det-quadro .pbs-plain-table .pbs-item-nome {
  display: inline;
  color: #2A6496;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.35;
}
.mural-det-quadro .pbs-plain-table .pbs-item-nome:hover,
#areaConteudo .mural-det-quadro .pbs-plain-table .pbs-item-nome:hover {
  text-decoration: underline;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao {
  min-height: 22px;
  padding: 2px 9px;
  font-size: 11px;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  flex-shrink: 0;
  line-height: 1.3;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-neutro,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-neutro,
.wbc-v2 .mural-det-resumo-badge.is-situacao.sit-neutro,
#areaConteudo .mural-det-resumo-badge.is-situacao.sit-neutro {
  background: #eef0f5;
  border-color: #dfe3ec;
  color: #5a6480;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-disputa,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-disputa {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-homologado,
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-encerrado,
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-aprovado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-homologado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-encerrado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-aprovado {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-pendente,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-pendente {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-cancelado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-situacao.sit-cancelado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}

/* --- Estilos para Fase (badge colorida) na tabela de resultado --- */
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase {
  min-height: 22px;
  padding: 2px 9px;
  font-size: 11px;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  flex-shrink: 0;
  line-height: 1.3;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-disputa,
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-andamento,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-disputa,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-andamento {
  background: #e4eefb;
  border-color: #c6dbf7;
  color: #1e50a8;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-homologado,
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-encerrado,
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-aprovado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-homologado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-encerrado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-aprovado {
  background: #def3ea;
  border-color: #bfe8d6;
  color: #0f7a57;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-pendente,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-pendente {
  background: #fcefd6;
  border-color: #f7deaf;
  color: #c97a09;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-cancelado,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-cancelado {
  background: #fbe3e4;
  border-color: #f6c9cb;
  color: #c32a35;
}
.mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-neutro,
#areaConteudo .mural-det-quadro .pbs-plain-table .mural-det-resumo-badge.is-fase.sit-neutro {
  background: #eef0f5;
  border-color: #dfe3ec;
  color: #5a6480;
}

/* ================================================================
   PbsModal — modal HTML pura (substituto do kendoWindow)
   ================================================================ */
body.pbs-modal-open {
  overflow: hidden;
}

.pbs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(17, 42, 84, 0.45);
}

.pbs-modal {
  display: flex;
  flex-direction: column;
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 820px);
  background: #fff;
  border: 1px solid #d9e4f4;
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(17, 42, 84, 0.24);
  overflow: hidden;
  box-sizing: border-box;
}

.pbs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid #e7edf8;
  background: #fff;
}

.pbs-modal__title {
  margin: 0;
  color: #1c3b67;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.pbs-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4d5f82;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.pbs-modal__close:hover {
  background: #f0f4ff;
  color: #1c3b67;
}

.pbs-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 12px;
  box-sizing: border-box;
  background: #fff;
}

.pbs-modal--forum {
  width: 780px;
  height: auto;
  max-height: min(68vh, 620px) !important;
  min-height: 0;
}

.pbs-modal--forum .pbs-modal__body {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 0 1 auto;
}

.pbs-modal--forum #divDetalheForumMensagem {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-painel {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pbs-modal--forum #divDetalheForumMensagem .painel,
.pbs-modal--forum #divDetalheForumMensagem .row-fluid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.pbs-modal--forum #divDetalheForumMensagem .painel {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0;
}

.pbs-modal--forum #divDetalheForumMensagem #painelForumMensagem {
  flex: 0 1 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-right: 4px;
}

.pbs-modal--forum #divDetalheForumMensagem #divAnexoEsclarecimento {
  margin-top: 4px;
}

.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento {
  overflow-x: hidden;
  overflow-y: visible;
}

.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento .pbs-plain-table {
  width: 100%;
  table-layout: fixed;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-titulo {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #1c3b67 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em !important;
  line-height: 1.3 !important;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-topico {
  margin-bottom: 14px;
  color: #35507a;
  font-size: 13px;
  line-height: 1.45;
}

.pbs-modal--forum #divDetalheForumMensagem .row-fluid {
  margin-left: 0 !important;
  width: 100% !important;
}

.pbs-modal--forum #divDetalheForumMensagem .row-fluid .span12 {
  width: 100% !important;
  margin-left: 0 !important;
  margin-bottom: 12px;
}

.pbs-modal--forum #divDetalheForumMensagem label.destaquePalavra {
  display: inline-block;
  margin-bottom: 4px;
  color: #35507a;
  font-size: 12px;
  font-weight: 600;
}

.pbs-modal--forum #divDetalheForumMensagem input[type="text"],
.pbs-modal--forum #divDetalheForumMensagem textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
}

.pbs-modal--forum #divDetalheForumMensagem textarea {
  resize: vertical;
  min-height: 120px !important;
  height: 120px !important;
  max-height: 220px !important;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7edf8;
  background: #fff;
  position: static;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .areaBotao2 {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao,
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.desativado {
  width: auto !important;
  min-width: 100px;
  height: auto !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.desativado {
  background: #868883 !important;
  cursor: default;
}

@media (max-width: 640px) {
  .pbs-modal,
  .pbs-modal--forum {
    width: calc(100vw - 24px) !important;
  }
}

/* ================================================================
   PbsModal — visual system (padrão para todas as modais PbsModal)
   ================================================================ */

/* --- Cabeçalho de seção (ícone + título) --- */
.pbs-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.pbs-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e8f0fe;
  border-radius: 10px;
  flex-shrink: 0;
}

.pbs-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #1c3b67;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* h1 com ícone de seção */
.pbs-modal--forum .forum-mensagem-titulo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 16px !important;
}

/* --- Marcador de campo obrigatório --- */
.pbs-campo-req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 1px;
}

/* --- Input / textarea com visual aprimorado --- */
.pbs-modal--forum #divDetalheForumMensagem .pbs-input {
  border: 1.5px solid #d1d9e8 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: #1c3b67 !important;
  transition: border-color 0.15s;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-input:focus {
  border-color: var(--brand, #2A6496) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42, 100, 150, 0.1) !important;
}

/* --- Textarea com contador de caracteres --- */
.pbs-textarea-wrap {
  position: relative;
  display: block;
}

.pbs-textarea-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  color: #8a9bbf;
  pointer-events: none;
  line-height: 1;
  background: transparent;
}

/* --- Botões variantes --- */

/* Outline (Fechar/Cancelar) */
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--outline,
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--outline.desativado {
  background: transparent !important;
  color: var(--brand, #2A6496) !important;
  border: 1.5px solid var(--brand, #2A6496) !important;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--outline:hover {
  background: #f0f6ff !important;
}

/* Danger outline (Excluir) */
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--danger-outline {
  background: transparent !important;
  color: #dc2626 !important;
  border: 1.5px solid #dc2626 !important;
}

.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--danger-outline.desativado {
  background: transparent !important;
  color: #d1a0a0 !important;
  border: 1.5px solid #d1a0a0 !important;
  cursor: default !important;
}

/* --- Layout do rodapé: Excluir (esq) + ações (dir) --- */
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes {
  justify-content: flex-start !important;
}

.pbs-modal--forum #divDetalheForumMensagem #painelForumVisualizacao {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 2px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card {
  border: 1px solid #d9e8ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card.pbs-esc-card--parecer {
  border-color: #d8ece0;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__head-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand, #2A6496);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexo-btn:hover,
.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexo-btn.is-open {
  background: rgba(42, 100, 150, 0.1);
  color: var(--brand-dk, #24507e);
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexo-btn i {
  font-size: 15px;
  line-height: 1;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos {
  margin-top: 12px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  /* header (~34px) + 2 linhas (~40px) */
  max-height: 114px;
  overflow-x: hidden;
  overflow-y: auto;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .pbs-plain-table {
  margin: 0;
  width: 100%;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .pbs-plain-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fd;
  color: #4d5f82;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e9edf5;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .pbs-plain-table tbody td {
  padding: 8px 10px;
  color: #324366;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid #f0f3f8;
  vertical-align: middle;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .pbs-plain-table tbody tr:last-child td {
  border-bottom: 0;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .areaClique {
  color: var(--brand, #2A6496);
  font-weight: 600;
  cursor: pointer;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__anexos .areaClique:hover {
  text-decoration: underline;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__titulo {
  color: #1f60c4;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card--parecer .pbs-esc-card__titulo {
  color: #2b8d55;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__meta {
  color: #4f6489;
  font-size: 12px;
  line-height: 1.4;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__linha {
  height: 1px;
  background: #c9dcff;
  margin: 10px 0 12px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card--parecer .pbs-esc-card__linha {
  background: #c6e6d2;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__topico {
  color: #1f2f4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: break-word;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__mensagem {
  color: #2f4268;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  max-height: 115px;
  overflow-y: auto;
  padding-right: 8px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__mensagem p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.45;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__mensagem p:last-child {
  margin-bottom: 0;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__rodape {
  margin-top: 10px;
  color: #5f7397;
  font-size: 12px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-card__rodape .fa-regular {
  margin-right: 6px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e2f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  padding: 10px 12px;
  margin-top: 4px;
  color: #2c61ba;
  font-size: 12px;
  line-height: 1.4;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-esc-info .fa-circle-info {
  font-size: 14px;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-section-icon--parecer {
  background: #eaf7ef;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-section-icon--parecer .fa-regular {
  color: #2b8d55;
}

.pbs-modal--forum #divDetalheForumMensagem #painelForumVisualizacao .pbs-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pbs-modal--forum #divDetalheForumMensagem #painelForumVisualizacao .pbs-section-icon .fa-regular,
.pbs-modal--forum #divDetalheForumMensagem #painelForumVisualizacao .pbs-section-icon .fa-solid {
  font-size: 15px;
}

.forum-mensagem-acoes-dir {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-mensagem-acoes-esq {
  display: flex;
  align-items: center;
}

/* Ícone FA dentro do badge de seção */
.pbs-section-icon .fa-solid,
.pbs-section-icon .fa-regular,
.pbs-section-icon .fa {
  color: var(--brand, #2A6496);
  font-size: 15px;
  line-height: 1;
}

/* Botão upload nativo (sem Kendo) */
.pbs-modal--forum #divDetalheForumMensagem .pbs-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 16px;
  border: 1.5px solid var(--brand, #2A6496);
  border-radius: 8px;
  background: transparent;
  color: var(--brand, #2A6496);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-btn-upload:hover {
  background: #f0f6ff;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-btn-upload:disabled {
  opacity: 0.55;
  cursor: default;
}

.pbs-modal--forum #divDetalheForumMensagem .pbs-btn-upload .fa-solid {
  font-size: 12px;
}

/* Excluir com ícone */
.pbs-modal--forum #divDetalheForumMensagem .forum-mensagem-acoes .campoBotao.pbs-btn--danger-outline {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-width: 100px;
  height: auto !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento {
  border: 1px solid #e7edf8;
  border-radius: 10px;
  overflow-x: hidden;
  overflow-y: visible;
}

.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento .pbs-plain-table th:last-child,
.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento .pbs-plain-table td:last-child {
  width: 48px;
  text-align: center;
  vertical-align: middle;
}

.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento input[type="checkbox"].pbs-check-anexo,
.pbs-modal--forum #divDetalheForumMensagem #gridAnexoEsclarecimento input[type="checkbox"].pbs-check-all-anexo {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  cursor: pointer !important;
  accent-color: var(--brand, #2A6496) !important;
}

/* ================================================================
   PbsAlert — aviso/sucesso via PbsModal (sem Kendo)
   ================================================================ */
.pbs-modal-overlay.pbs-modal-overlay--alert {
  z-index: 10200;
  background: rgba(17, 42, 84, 0.5);
}

.pbs-modal.pbs-modal--alert {
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 420px);
  border-radius: 14px;
}

.pbs-modal--alert .pbs-modal__header {
  padding: 14px 16px;
}

.pbs-modal--alert .pbs-modal__title {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.pbs-modal--alert .pbs-modal__body {
  padding: 0;
  overflow: visible;
}

.pbs-alert {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 14px;
}

.pbs-alert__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 8px;
}

.pbs-alert__accent {
  flex: 0 0 auto;
  width: 4px;
  min-height: 28px;
  margin-top: 2px;
  border-radius: 4px;
  background: var(--brand, #2A6496);
}

.pbs-alert__message {
  flex: 1 1 auto;
  color: #324366;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.pbs-alert__actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 18px 0;
}

.pbs-alert__ok {
  min-width: 88px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand, #2A6496);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pbs-alert__ok:hover {
  filter: brightness(0.95);
}

/* ================================================================
   PbsModal — Cadastro Visitante (sem Kendo)
   ================================================================ */
.pbs-modal.pbs-modal--visitante {
  width: 1100px;
  max-width: calc(100vw - 32px);
  max-height: min(92vh, 760px);
}

.pbs-modal--visitante .pbs-modal__body {
  overflow: hidden;
  padding: 14px 18px 12px;
}

.cadastro-visitante-painel {
  display: none !important;
}

.pbs-modal--visitante .cadastro-visitante-painel {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 1 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.pbs-modal--visitante .cadastro-visitante-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.pbs-modal--visitante .cadastro-visitante-intro,
.pbs-modal--visitante .pbs-esc-info.cadastro-visitante-intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #d6e2f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  padding: 10px 12px;
  color: #2c61ba;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.pbs-modal--visitante .cadastro-visitante-intro .fa-circle-info {
  font-size: 14px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.pbs-modal--visitante .cadastro-visitante-interesse {
  margin-bottom: 12px;
}

.pbs-modal--visitante .pbs-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.pbs-modal--visitante .pbs-radio-group--inline {
  gap: 12px 16px;
  margin-top: 4px;
}

.pbs-modal--visitante .pbs-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #35507a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.pbs-modal--visitante .pbs-radio input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
}

.pbs-modal--visitante .pbs-field-label,
.pbs-modal--visitante .cadastro-visitante-painel label.pbs-field-label {
  display: block;
  margin: 0 0 4px;
  color: #35507a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.pbs-modal--visitante .cadastro-visitante-row {
  margin-left: 0 !important;
  width: 100% !important;
  margin-bottom: 4px;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid [class*="span"] {
  float: left;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 12px !important;
  margin-bottom: 12px;
  min-width: 0;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span1 {
  width: calc(12.5% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span2 {
  width: calc(16.666% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span3 {
  width: calc(25% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span4 {
  width: calc(33.333% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span5 {
  width: calc(41.666% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span6 {
  width: calc(50% - 12px) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span10,
.pbs-modal--visitante .cadastro-visitante-painel .row-fluid .span12 {
  width: 100% !important;
  margin-right: 0 !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .row-fluid [class*="span"]:last-child {
  margin-right: 0 !important;
}

/* Linha Tipo/CPF/RG/Nome/E-mail/Telefone: flex para caber na mesma linha */
.pbs-modal--visitante .cadastro-visitante-row--docs {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  width: 100% !important;
}

.pbs-modal--visitante .cadastro-visitante-row--docs > [class*="span"] {
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 12px;
  min-width: 0;
}

.pbs-modal--visitante .cadastro-visitante-row--docs > .span1 {
  flex: 0 0 120px;
  width: 120px !important;
  max-width: 120px;
}

.pbs-modal--visitante .cadastro-visitante-row--docs > .span2 {
  flex: 1 1 0;
  width: auto !important;
  max-width: none;
}

.pbs-modal--visitante .cadastro-visitante-row--docs > .span2.cadastro-visitante-tipo {
  flex: 0 0 140px;
  width: 140px !important;
  max-width: 140px;
}

.pbs-modal--visitante .cadastro-visitante-row--docs > .span3 {
  flex: 1.4 1 0;
  width: auto !important;
  max-width: none;
}

.pbs-modal--visitante .cadastro-visitante-painel input[type="text"],
.pbs-modal--visitante .cadastro-visitante-painel select,
.pbs-modal--visitante .cadastro-visitante-painel .pbs-input {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d1d9e8 !important;
  border-radius: 5px !important;
  padding: 8px 10px !important;
  background: #fff !important;
  color: #1c3b67 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  height: auto !important;
  min-height: 34px;
  transition: border-color 0.15s;
}

.pbs-modal--visitante .cadastro-visitante-painel input[type="text"]:focus,
.pbs-modal--visitante .cadastro-visitante-painel select:focus,
.pbs-modal--visitante .cadastro-visitante-painel .pbs-input:focus {
  border-color: var(--brand, #2A6496) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42, 100, 150, 0.1) !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .selector,
.pbs-modal--visitante .cadastro-visitante-painel .selector span {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  height: auto !important;
  min-height: 34px;
  border-radius: 8px !important;
}

.pbs-modal--visitante .cadastro-visitante-painel .selector span {
  padding: 8px 28px 8px 10px !important;
  line-height: 1.35 !important;
  font-size: 12px !important;
  color: #1c3b67 !important;
}

.pbs-modal--visitante .cadastro-visitante-check,
.pbs-modal--visitante .cadastro-visitante-lgpd {
  margin: 4px 0 10px;
  color: #35507a;
  font-size: 12px;
  line-height: 1.4;
}

.pbs-modal--visitante .cadastro-visitante-lgpd label {
  margin-left: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #35507a;
}

.pbs-modal--visitante .cadastro-visitante-lgpd-erro {
  color: #dc2626;
  font-size: 11px;
  margin-top: 5px;
}

.pbs-modal--visitante .cadastro-visitante-painel label.error {
  display: block;
  color: #dc2626;
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}

.pbs-modal--visitante .cadastro-visitante-acoes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e7edf8;
  background: #fff;
}

.pbs-modal--visitante .cadastro-visitante-acoes .areaBotao2 {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
}

.pbs-modal--visitante .cadastro-visitante-acoes .campoBotao,
.pbs-modal--visitante .cadastro-visitante-acoes .campoBotao.desativado {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 120px;
  height: auto !important;
  padding: 8px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.pbs-modal--visitante .cadastro-visitante-acoes .campoBotao i {
  font-size: 13px;
  line-height: 1;
}

.pbs-modal--visitante .cadastro-visitante-acoes .campoBotao.desativado {
  background: #868883 !important;
  cursor: default;
}

@media (max-width: 900px) {
  .pbs-modal.pbs-modal--visitante {
    width: calc(100vw - 24px);
  }

  .pbs-modal--visitante .cadastro-visitante-painel .row-fluid [class*="span"] {
    width: 100% !important;
    margin-right: 0 !important;
    float: none;
  }
}

/* ================================================================
   Impugnação — form template 4 (#divImpugnar / #painelImpugnar)
   ================================================================ */
.wbc-v2 #divImpugnar,
.wbc-v2 #divImpugnar #painelImpugnar,
.wbc-v2 #divImpugnar #uc_MuralDetalheImpugnar,
#areaConteudo #divImpugnar,
#areaConteudo #divImpugnar #painelImpugnar {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink, #1d2a3a);
  font-size: 12px;
  line-height: 1.4;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-form,
#areaConteudo #divImpugnar .mural-det-impugnar-form {
  padding: 4px 2px 8px;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-subtitle,
#areaConteudo #divImpugnar .mural-det-impugnar-subtitle,
.wbc-v2 #divImpugnar #painelImpugnar h3,
#areaConteudo #divImpugnar #painelImpugnar h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--ink, #1d2a3a);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-help,
#areaConteudo #divImpugnar .mural-det-impugnar-help {
  margin: 0 0 14px;
  color: var(--muted, #65718a);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-field,
#areaConteudo #divImpugnar .mural-det-impugnar-field {
  margin-bottom: 12px;
}

.wbc-v2 #divImpugnar .pbs-field-label,
.wbc-v2 #divImpugnar label.destaquePalavra,
.wbc-v2 #divImpugnar #painelImpugnar label,
#areaConteudo #divImpugnar .pbs-field-label,
#areaConteudo #divImpugnar label.destaquePalavra,
#areaConteudo #divImpugnar #painelImpugnar label {
  display: block;
  margin: 0 0 4px;
  color: #35507a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-doc-tipo,
#areaConteudo #divImpugnar .mural-det-impugnar-doc-tipo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-doc-tipo label,
#areaConteudo #divImpugnar .mural-det-impugnar-doc-tipo label {
  display: inline;
  margin: 0;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-protocolo,
#areaConteudo #divImpugnar .mural-det-impugnar-protocolo,
.wbc-v2 #divImpugnar #tbImpuganacaoProtocolo,
#areaConteudo #divImpugnar #tbImpuganacaoProtocolo {
  min-height: 22px;
  color: var(--brand, #2d5f9c);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.wbc-v2 #divImpugnar #painelImpugnar input[type="text"],
.wbc-v2 #divImpugnar #painelImpugnar textarea,
.wbc-v2 #divImpugnar #tbImpugnacaoDescricao,
.wbc-v2 #divImpugnar .pbs-input,
#areaConteudo #divImpugnar #painelImpugnar input[type="text"],
#areaConteudo #divImpugnar #painelImpugnar textarea,
#areaConteudo #divImpugnar #tbImpugnacaoDescricao,
#areaConteudo #divImpugnar .pbs-input {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  border: 1.5px solid #d1d9e8 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  background: #fff !important;
  color: #1c3b67 !important;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 34px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wbc-v2 #divImpugnar #tbImpugnacaoDescricao,
.wbc-v2 #divImpugnar .mural-det-impugnar-textarea,
#areaConteudo #divImpugnar #tbImpugnacaoDescricao,
#areaConteudo #divImpugnar .mural-det-impugnar-textarea {
  min-height: 160px;
  max-height: 280px;
  margin-bottom: 4px;
}

.wbc-v2 #divImpugnar #painelImpugnar input[type="text"]:focus,
.wbc-v2 #divImpugnar #painelImpugnar textarea:focus,
.wbc-v2 #divImpugnar #tbImpugnacaoDescricao:focus,
#areaConteudo #divImpugnar #painelImpugnar input[type="text"]:focus,
#areaConteudo #divImpugnar #painelImpugnar textarea:focus,
#areaConteudo #divImpugnar #tbImpugnacaoDescricao:focus {
  border-color: var(--brand, #2A6496) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42, 100, 150, 0.1) !important;
}

.wbc-v2 #divImpugnar #painelImpugnar label.error,
#areaConteudo #divImpugnar #painelImpugnar label.error {
  display: block;
  margin: -4px 0 8px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 500;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .areaBotao2,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .areaBotao2 {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .areaBotao2 .ico-botao,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .areaBotao2 .ico-botao {
  display: none !important;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .campoBotao,
.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .campoBotao.desativado,
.wbc-v2 #divImpugnar #btImpugnarSalvar,
.wbc-v2 #divImpugnar #btImpugnarImprimir,
.wbc-v2 #divImpugnar #btImpugnarExcluir,
.wbc-v2 #divImpugnar #btImpugnarFinalizar,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .campoBotao,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .campoBotao.desativado,
#areaConteudo #divImpugnar #btImpugnarSalvar,
#areaConteudo #divImpugnar #btImpugnarImprimir,
#areaConteudo #divImpugnar #btImpugnarExcluir,
#areaConteudo #divImpugnar #btImpugnarFinalizar {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 120px;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  text-shadow: none !important;
  box-shadow: none !important;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .campoBotao i,
.wbc-v2 #divImpugnar #btImpugnarSalvar i,
.wbc-v2 #divImpugnar #btImpugnarImprimir i,
.wbc-v2 #divImpugnar #btImpugnarExcluir i,
.wbc-v2 #divImpugnar #btImpugnarFinalizar i,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .campoBotao i,
#areaConteudo #divImpugnar #btImpugnarSalvar i,
#areaConteudo #divImpugnar #btImpugnarImprimir i,
#areaConteudo #divImpugnar #btImpugnarExcluir i,
#areaConteudo #divImpugnar #btImpugnarFinalizar i {
  font-size: 13px;
  line-height: 1;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-acoes .campoBotao.desativado,
.wbc-v2 #divImpugnar #btImpugnarExcluir.desativado,
.wbc-v2 #divImpugnar #btImpugnarFinalizar.desativado,
#areaConteudo #divImpugnar .mural-det-impugnar-acoes .campoBotao.desativado,
#areaConteudo #divImpugnar #btImpugnarExcluir.desativado,
#areaConteudo #divImpugnar #btImpugnarFinalizar.desativado {
  background: #868883 !important;
  color: #fff !important;
  cursor: default;
  opacity: 0.85;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-anexo,
#areaConteudo #divImpugnar .mural-det-impugnar-anexo {
  padding-left: 8px;
}

.wbc-v2 #divImpugnar .mural-det-impugnar-anexo #gridAnexoImpugnacao,
#areaConteudo #divImpugnar .mural-det-impugnar-anexo #gridAnexoImpugnacao {
  margin: 10px 0 12px;
}

@media (max-width: 900px) {
  .wbc-v2 #divImpugnar .mural-det-impugnar-anexo,
  #areaConteudo #divImpugnar .mural-det-impugnar-anexo {
    padding-left: 0;
    margin-top: 16px;
  }
}

/* ================================================================
   Modal de detalhes da impugnação (pbs-modal--impugnacao)
   ================================================================ */
.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__topico {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #1d2a3a);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7edf8;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__topico .pbs-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__topico .pbs-section-icon i {
  font-size: 15px;
  color: var(--brand, #2A6496);
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card {
  border: 1px solid #d9e8ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  padding: 14px 16px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card--parecer {
  border-color: #d8ece0;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__head-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__titulo {
  color: #1f60c4;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card--parecer .pbs-esc-card__titulo {
  color: #2b8d55;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__meta {
  color: #4f6489;
  font-size: 12px;
  line-height: 1.4;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__linha {
  height: 1px;
  background: #c9dcff;
  margin: 10px 0 12px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card--parecer .pbs-esc-card__linha {
  background: #c6e6d2;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__topico {
  color: #1f2f4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: break-word;
  white-space: pre-line;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__mensagem {
  color: #2f4268;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-line;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__rodape {
  margin-top: 10px;
  color: #5f7397;
  font-size: 12px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__rodape .fa-regular {
  margin-right: 6px;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand, #2A6496);
  cursor: pointer;
  transition: background-color 0.15s;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexo-btn:hover,
.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexo-btn.is-open {
  background: rgba(42, 100, 150, 0.1);
  color: var(--brand-dk, #24507e);
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexo-btn i {
  font-size: 15px;
  line-height: 1;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos {
  margin-top: 12px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  max-height: 114px;
  overflow-x: hidden;
  overflow-y: auto;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .pbs-plain-table {
  margin: 0;
  width: 100%;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .pbs-plain-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fd;
  color: #4d5f82;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #e9edf5;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .pbs-plain-table tbody td {
  padding: 8px 10px;
  color: #324366;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid #f0f3f8;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .pbs-plain-table tbody tr:last-child td {
  border-bottom: 0;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .areaClique {
  color: var(--brand, #2A6496);
  font-weight: 600;
  cursor: pointer;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-card__anexos .areaClique:hover {
  text-decoration: underline;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e2f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  padding: 10px 12px;
  color: #2c61ba;
  font-size: 12px;
  line-height: 1.4;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-esc-info .fa-circle-info {
  font-size: 14px;
  flex: 0 0 auto;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7edf8;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__footer .campoBotao {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 100px;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.pbs-modal--impugnacao #divDetalheImpugnacao .pbs-imp-det__footer .campoBotao span {
  display: inline;
  width: auto !important;
}

.pbs-modal--impugnacao #divDetalheImpugnacao #painelForumVisualizacao {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
/* ================================================================
   PbsAnexos — layout de badges agrupados por empresa
   Escopo: .pbs-anexos-* (não afeta outros componentes)
   ================================================================ */
.pbs-anexos-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0;
}

.pbs-anexos-grupo + .pbs-anexos-grupo {
  border-top: 1px solid #e7edf8;
  padding-top: 16px;
}

.pbs-anexos-grupo__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.pbs-anexos-grupo__empresa {
  font-size: 14px;
  font-weight: 700;
  color: #324366;
}

.pbs-anexos-grupo__cnpj {
  font-size: 12px;
  color: #8496b8;
  background: #eef2fb;
  border-radius: 5px;
  padding: 2px 10px;
}

.pbs-anexos-grupo__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pbs-anexo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: #f8f9fc;
    border: 0.5px solid #e8eaf2;
    border-radius: 6px;
    font-size: 13px;
    color: var(--brand, #2A6496);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    max-width: 260px;
    word-break: break-word;
}

.pbs-anexo-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbs-anexo-badge i {
  font-size: 14px;
  flex: 0 0 auto;
  color: #8496b8;
}

.pbs-anexo-badge:hover {
  background: #eef4ff;
  border-color: var(--brand, #2A6496);
}

.pbs-anexo-badge:hover i {
  color: var(--brand, #2A6496);
}

.pbs-anexos-empty {
  padding: 20px;
  text-align: center;
  color: #8496b8;
  font-size: 13px;
}

/* ---- Estado vazio padronizado (PbsTable / PbsAnexos) ---- */
.pbs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 16px;
  gap: 12px;
}

.pbs-empty-state svg {
  display: block;
  opacity: 0.6;
}

.pbs-empty-state__text {
  color: var(--muted, #65718a);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  text-align: center;
}

/* ================================================================
   Modal detalhes do item (pbs-modal--item)
   ================================================================ */
.pbs-modal--item {
  width: 640px;
}

.pbs-modal--item .pbs-modal__body {
  overflow: auto;
  padding: 16px 18px 14px;
}

.pbs-modal--item .pbs-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pbs-modal--item .pbs-modal__title::before {
  content: "\f02b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: var(--brand, #2A6496);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef4ff;
  flex: 0 0 auto;
}

.pbs-modal--item #divDetalheItem {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.pbs-modal--item #divDetalheItem > .carregandoDados {
  align-self: center;
  margin: 24px auto;
}

.pbs-modal--item #divDetalheItem .mural-det-item-dinamico {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.pbs-modal--item #divDetalheItem .pbs-item-det {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1 1 auto;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__topico {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  border: 1px solid #dce8fb;
  color: #1c3b67;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__topico .pbs-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7e4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__topico .pbs-section-icon i {
  font-size: 16px;
  color: var(--brand, #2A6496);
}

.pbs-modal--item #divDetalheItem .pbs-item-det__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__row {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  gap: 12px 18px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid #e7edf8;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__row:last-child {
  border-bottom: 0;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c3b67;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* ================================================================
   Card Valores Resumo — padrão do protótipo aprovado (valores-list)
   ================================================================ */
[data-role="valores-card"] .valores-list { display:flex; flex-direction:column; gap:10px; }
[data-role="valores-card"] .valor-emp { border:1px solid #e4e9f1; border-radius:10px; padding:10px 12px; background:#fff; }
[data-role="valores-card"] .valor-emp-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; flex-wrap:wrap; gap:6px; }
[data-role="valores-card"] .valor-emp-nome { font-size:13px; font-weight:700; color:#1a2340; }
[data-role="valores-card"] .valor-emp-item { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:12px; color:#5a6480; padding:4px 0; border-top:1px dashed #eef0f6; }
[data-role="valores-card"] .valor-emp-item:first-of-type { border-top:0; }
[data-role="valores-card"] .valor-emp-item b { color:#1a2340; white-space:nowrap; }
[data-role="valores-card"] .valores-total { display:flex; justify-content:space-between; align-items:center; font-size:13px; font-weight:700; margin-top:10px; padding-top:10px; border-top:2px solid #e4e9f1; color:#1a2340; }
[data-role="valores-card"] .valores-empty { font-size:12.5px; color:#8a95b0; font-style:italic; padding:10px 2px; }

/* ================================================================
   Modal acompanhamento disputa (pbs-modal--acompanhamento)
   ================================================================ */
.pbs-modal--acompanhamento { width: min(1280px, 95vw); min-height: 500px; max-height: 90vh; display: flex; flex-direction: column; }
.pbs-modal--acompanhamento .pbs-modal__body { padding: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; width: 100%; }
/* O container e a form do UserControl precisam propagar o flex até o layout */
.pbs-modal--acompanhamento .pbs-modal__body > div,
.pbs-modal--acompanhamento .pbs-modal__body > div > form { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; width: 100%; }

/* ================================================================
   Modal resumo edital (pbs-modal--resumo-edital)
   ================================================================ */
.pbs-modal--resumo-edital {
  width: min(800px, 96vw);
}

.pbs-modal--resumo-edital .pbs-modal__body {
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  display: block !important;
  min-height: auto !important;
}

#divResumoEdital {
  width: 100% !important;
  display: block !important;
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#divResumoEdital > div:not(#carregandoResumoEdital):not(.pbs-resumo-edital__footer) {
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
}

/* O atributo width="800px" do iframe estoura a modal no mobile (corpo tem overflow-x: hidden e corta o conteúdo). */
#divResumoEdital #frameResumoEdital {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

@media (max-width: 640px) {
  /* Aproveita a altura da modal no mobile (maxHeight da PbsModal = min(90vh, 720px), descontando header e rodapé). */
  #divResumoEdital #frameResumoEdital {
    height: calc(min(90vh, 720px) - 140px);
  }
}

#divResumoEdital .mural-det-resumo-header {
  display: block !important;
  min-height: auto !important;
  visibility: visible !important;
}

/* Rodapé (Imprimir/Detalhes dos itens/Fechar) no padrão visual das demais modais PbsModal */
.pbs-modal--resumo-edital #divResumoEdital .pbs-resumo-edital__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e7edf8;
  background: #fff;
}

.pbs-modal--resumo-edital #divResumoEdital .pbs-resumo-edital__footer .campoBotao {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 100px;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.pbs-modal--resumo-edital #divResumoEdital .pbs-resumo-edital__footer .campoBotao.pbs-btn--outline {
  background: transparent !important;
  color: var(--brand, #2A6496) !important;
  border: 1.5px solid var(--brand, #2A6496) !important;
}

.pbs-modal--resumo-edital #divResumoEdital .pbs-resumo-edital__footer .campoBotao.pbs-btn--outline:hover {
  background: #f0f6ff !important;
}

/* Header da modal: linha única com título à esq e infos à dir */
.pbs-modal--acompanhamento .pbs-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 0;
  background: var(--brand, #2d5f9c);
  color: white;
  border-bottom: none;
}

.pbs-modal--acompanhamento .pbs-modal__title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.pbs-modal--acompanhamento .acomp-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pbs-modal--acompanhamento .acomp-title-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.pbs-modal--acompanhamento .acomp-nr-processo {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.pbs-modal--acompanhamento .acomp-header-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Layout 2 colunas: lances à esquerda, chat à direita */
.pbs-modal--acompanhamento .acomp-lance-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: 1fr;
  gap: 0 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px 0;
}

.pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-sem-chat {
  grid-template-columns: 1fr;
}

.pbs-modal--acompanhamento .acomp-lance-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.pbs-modal--acompanhamento .acomp-lance-right {
    height: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid #e7ebf2;
    padding-left: 12px;
    padding-right: 0;
}

/* Badge "Atualiza em Ns" */
.pbs-modal--acompanhamento .acomp-badge-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pbs-modal--acompanhamento .acomp-spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pbs-modal--acompanhamento .acomp-spinner-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(#57d6a8 20%, rgba(255, 255, 255, 0.22) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pbs-modal--acompanhamento .acomp-spinner-circle::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-700, #1c3b67);
  position: absolute;
}

.pbs-modal--acompanhamento .acomp-spinner-text {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  color: white;
}

@keyframes acomp-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Botão toggle chat */
.pbs-modal--acompanhamento .acomp-btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.pbs-modal--acompanhamento .acomp-btn-chat:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.pbs-modal--acompanhamento .pbs-modal__close {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 8px;
  border: none;
}

.pbs-modal--acompanhamento .pbs-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Filtro multi-seleção — primeira linha + chips segunda linha */
.pbs-modal--acompanhamento #geralFiltroWrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 0;
    flex-shrink: 0;
    width: 100%;
    align-items: stretch !important;
}

.pbs-modal--acompanhamento .acomp-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.pbs-modal--acompanhamento #geralGridWrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  width: 100%;
}

.pbs-modal--acompanhamento .acomp-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #65718a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pbs-modal--acompanhamento .acomp-filter-row .acomp-mselect-wrap {
  flex: 0 0 auto;
  position: relative;
}

.pbs-modal--acompanhamento .acomp-filter-row .acomp-btn-so-melhores {
  flex: 0 0 auto;
}

.pbs-modal--acompanhamento .acomp-filter-row .acomp-lance-total {
  font-size: 12px;
  color: var(--muted, #65718a);
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.pbs-modal--acompanhamento .acomp-mselect-wrap {
  position: relative;
}

.pbs-modal--acompanhamento .acomp-mselect-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #c9d3e6;
  background: #f0f4ff;
  color: var(--ink, #1d2a3a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s;
  white-space: nowrap;
}

.pbs-modal--acompanhamento .acomp-mselect-trigger:hover {
  border-color: var(--brand, #2d5f9c);
}

.pbs-modal--acompanhamento .acomp-mselect-chevron {
  font-size: 11px;
  transition: transform .2s;
}

.pbs-modal--acompanhamento .acomp-mselect-chevron--open {
  transform: rotate(180deg);
}

/* Remover ícone de filtro */
.pbs-modal--acompanhamento .acomp-mselect-trigger .fa-filter {
  display: none;
}

.pbs-modal--acompanhamento .acomp-mselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 320px;
  max-width: 420px;
  background: white;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9000;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 380px;
}

.pbs-modal--acompanhamento .acomp-mselect-search {
  flex-shrink: 0;
  padding: 8px 16px;
  border-bottom: 1px solid #e4e9f1;
}

.pbs-modal--acompanhamento .acomp-mselect-search input {
  width: 94%;
  padding: 7px 10px;
  border: 1px solid #d4dce8;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .15s;
}

.pbs-modal--acompanhamento .acomp-mselect-search input::placeholder {
  color: #99a1b3;
}

.pbs-modal--acompanhamento .acomp-mselect-search input:focus {
  outline: none;
  border-color: var(--brand, #2d5f9c);
  box-shadow: 0 0 0 3px rgba(45, 95, 156, 0.1);
}

.pbs-modal--acompanhamento .acomp-mselect-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.pbs-modal--acompanhamento .acomp-mselect-footer {
  flex-shrink: 0;
  padding: 8px 16px;
  border-top: 1px solid #e4e9f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fbfd;
  font-size: 12px;
  color: var(--muted, #65718a);
}

.pbs-modal--acompanhamento .acomp-mselect-count {
  font-weight: 600;
  color: var(--ink, #1d2a3a);
}

.pbs-modal--acompanhamento .acomp-mselect-clear-btn {
  background: none;
  border: none;
  color: var(--muted, #65718a);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .12s, color .12s;
  font-family: inherit;
}

.pbs-modal--acompanhamento .acomp-mselect-clear-btn:hover {
  background: #e7ebf2;
  color: var(--ink, #1d2a3a);
}

.pbs-modal--acompanhamento .acomp-mselect-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .12s;
}

.pbs-modal--acompanhamento .acomp-mselect-opt:hover {
  background: #f0f4ff;
}

/* Override jquery.uniform: forçar checkboxes do dropdown a aparecer */
.pbs-modal--acompanhamento .acomp-mselect-opt input[type="checkbox"].acomp-mselect-chk {
  width: 15px !important;
  height: 15px !important;
  position: static !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  display: inline-block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  accent-color: var(--brand, #2d5f9c) !important;
}
/* Ocultar wrapper do jquery.uniform se envolveu nosso checkbox */
.pbs-modal--acompanhamento .acomp-mselect-opt .checker { display: none !important; }

.pbs-modal--acompanhamento .acomp-mselect-opt-txt {
  font-size: 12.5px;
  color: var(--ink, #1d2a3a);
  line-height: 1.4;
  word-break: break-word;
}

/* Chips de itens selecionados — segunda linha; display:none por padrão, .css('display','flex') pelo JS */
.pbs-modal--acompanhamento .acomp-chips-wrap {
    display: flex;
    align-items: center;
    /*    align-self: flex-start;*/
    gap: 6px;
    padding: 6px 0 0px;
    margin: 0;
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    width: 100%;
    flex-shrink: 0;
    /*clear: both;
    flex-basis: 100%;*/
}

/* Forçar chips a aparecer em linha separada quando visível */
.pbs-modal--acompanhamento #geralFiltroWrap > .acomp-chips-wrap[style*="display: flex"] {
  display: flex !important;
}

.pbs-modal--acompanhamento .acomp-chips-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #65718a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pbs-modal--acompanhamento .acomp-chips-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pbs-modal--acompanhamento .acomp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: 20px;
  background: #dce8ff;
  border: 1px solid #b3caec;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #2d5f9c);
}

.pbs-modal--acompanhamento .acomp-chip-x {
  background: none;
  border: none;
  color: var(--brand, #2d5f9c);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 1px;
  font-family: inherit;
  opacity: .7;
  transition: opacity .12s;
}

.pbs-modal--acompanhamento .acomp-chip-x:hover {
  opacity: 1;
}

.pbs-modal--acompanhamento .acomp-chips-limpar {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #65718a);
  cursor: pointer;
  padding: 2px 6px;
  font-family: inherit;
  border-radius: 6px;
  transition: background .12s;
  white-space: nowrap;
  margin-left: auto;
}

.pbs-modal--acompanhamento .acomp-chips-limpar:hover {
  background: #f0f4ff;
  color: var(--ink, #1d2a3a);
}

/* Botão "Só melhores lances" */
.pbs-modal--acompanhamento .acomp-btn-so-melhores {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #c9d3e6;
  background: #f0f4ff;
  color: var(--ink, #1d2a3a);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

/* Ícone de troféu: só aparece na versão ícone-only do mobile (o desktop mantém o texto) */
.pbs-modal--acompanhamento .acomp-btn-so-melhores > i {
  display: none;
}

.pbs-modal--acompanhamento .acomp-btn-so-melhores:hover {
  border-color: var(--brand, #2d5f9c);
  background: #e7eeff;
}

.pbs-modal--acompanhamento .acomp-btn-so-melhores--ativo {
  background: var(--brand, #2d5f9c);
  border-color: var(--brand, #2d5f9c);
  color: #fff;
}

.pbs-modal--acompanhamento .acomp-btn-so-melhores--ativo:hover {
  background: var(--brand-dk, #24507e);
  border-color: var(--brand-dk, #24507e);
  color: #fff;
}

/* Grid unificado de lances */
.pbs-modal--acompanhamento .acomp-grid-unificado {
  width: 100%;
}

.pbs-modal--acompanhamento .acomp-grid-unificado th,
.pbs-modal--acompanhamento .acomp-grid-unificado td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.pbs-modal--acompanhamento .acomp-grid-unificado .acomp-col-hora {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--muted, #65718a);
  white-space: nowrap;
  width: 155px;
}

.pbs-modal--acompanhamento .acomp-grid-unificado .acomp-col-item {
  width: 56px;
}

.pbs-modal--acompanhamento .acomp-grid-unificado .acomp-col-ranking {
  width: 76px;
}

/* Badge do item sequencial */
.pbs-modal--acompanhamento .acomp-item-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef4ff;
  border: 1px solid #c9d8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand, #2d5f9c);
  font-variant-numeric: tabular-nums;
}

/* Ícone de troféu */
.pbs-modal--acompanhamento .acomp-trophy {
  color: #c8960c;
  font-size: 12px;
}

/* Linha do vencedor */
.pbs-modal--acompanhamento .acomp-grid-unificado tr.acomp-row-vencedor {
  background: #fffbea;
}

.pbs-modal--acompanhamento .acomp-grid-unificado tr.acomp-row-vencedor td {
  border-bottom-color: #f0e6a0;
}

.pbs-modal--acompanhamento .acomp-empresa-venc {
  font-weight: 700;
  color: var(--ink, #1d2a3a);
}

.pbs-modal--acompanhamento .acomp-lance-venc {
  color: #b07000;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Mobile: grid com scroll horizontal, ocultar colunas menos prioritárias */
@media (max-width: 600px) {
  .pbs-modal--acompanhamento .acomp-lance-left {
    overflow-x: auto;
  }
  .pbs-modal--acompanhamento .acomp-grid-unificado .acomp-col-item,
  .pbs-modal--acompanhamento .acomp-grid-unificado .acomp-col-hora {
    font-size: 11.5px;
  }
}

/* Suprimir pipe azul legado do template2.css no h1 dentro do modal */
.pbs-modal--acompanhamento .painel > h1 {
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 0 !important;
  border-left: none !important;
}

/* Botão X do header: fundo cinza com borda arredondada */
.pbs-modal--acompanhamento .pbs-modal__close {
  background: #f0f4ff;
  color: #4d5f82;
  border-radius: 8px;
}

.pbs-modal--acompanhamento .pbs-modal__close:hover {
  background: #e7ebf2;
  color: #1c3b67;
}

/* Rodapé fixo com botão Fechar */
.pbs-modal--acompanhamento .acomp-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  background: white;
  padding: 10px 16px;
  border-top: 1px solid #e4e9f1;
  width: 100%;
  box-sizing: border-box;
}

.pbs-modal--acompanhamento .acomp-footer #btFecharAcompanhamentoLance {
  width: auto;
  min-width: 90px;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand, #2A6496);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.pbs-modal--acompanhamento .acomp-footer #btFecharAcompanhamentoLance:hover {
  background: var(--brand-700, #1c3b67);
  color: #fff;
  border-color: transparent;
}

/* Sem scroll horizontal no chat */
.pbs-modal--acompanhamento .acomp-lance-right {
  overflow-x: hidden;
}

/* Margem superior para a modal não grudar no topo da viewport */
.pbs-modal--acompanhamento.pbs-modal {
  margin-top: max(24px, 3vh);
}

/* Chat no modal: remover card wrapper, mostrar apenas o conteúdo */
.pbs-modal--acompanhamento .acomp-lance-right .painel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  margin-top: 1%;
}

/* Cards de chat dentro do modal */
.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .pbs-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .pbs-chat-card {
  background: #f4f6fb;
  border-radius: 10px;
  padding: 10px 14px;
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .pbs-chat-card__time {
  font-size: 12px;
  color: #8496b8;
  margin-bottom: 4px;
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .pbs-chat-card__body {
  font-size: 13px;
  color: #324366;
  line-height: 1.5;
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .pbs-chat-card__autor {
  font-weight: 700;
  color: var(--brand, #2A6496);
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .mural-det-chat-last-update {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
  display: block;
}

.pbs-modal--acompanhamento #divAnexoChatAcompanhamentoLanceLote .mural-det-chat-last-update label {
  font-weight: 600;
  color: var(--muted);
}

.pbs-modal--item #divDetalheItem .pbs-item-det__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--brand, #2A6496);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__icon i {
  font-size: 14px;
  line-height: 1;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__value {
  color: #324366;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  word-break: break-word;
  padding-top: 6px;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__anexos {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e7edf8;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__anexos-titulo {
  color: #1c3b67;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #e7edf8;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__footer .campoBotao {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 100px;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand, #2A6496) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.pbs-modal--item #divDetalheItem .pbs-item-det__footer .campoBotao span {
  display: inline;
  width: auto !important;
}

/* ================================================================
   Media Queries: Modal acompanhamento (pbs-modal--acompanhamento)
   ================================================================ */

/* Tablet e mobile: ajustar altura, grid, e espaçamento */
@media (max-width: 1024px) {
  .pbs-modal--acompanhamento {
    width: min(95vw, 100%);
    min-height: 450px;
    max-height: 85vh;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout {
    grid-template-columns: 1fr 320px;
    gap: 0 12px;
    padding: 0 12px;
  }

  .pbs-modal--acompanhamento .acomp-lance-right {
    max-height: 320px;
    padding-left: 8px;
  }
}

/* Cabeçalho "LANCES" e cabeçalho do overlay de chat: só existem no layout mobile */
.pbs-modal--acompanhamento .acomp-lances-section-label,
.pbs-modal--acompanhamento .acomp-chat-overlay-header {
  display: none;
}

/* Mobile: tela cheia, chat troca de tela com o grid (não fica lado a lado), lances em cards */
@media (max-width: 768px) {
  .pbs-modal--acompanhamento.pbs-modal {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    margin: 0;
    margin-top: 0;
    border-radius: 0;
  }

  .pbs-modal--acompanhamento .pbs-modal__header {
    padding: 10px 12px;
    gap: 8px;
  }

  .pbs-modal--acompanhamento .acomp-title-badge,
  .pbs-modal--acompanhamento .acomp-nr-processo {
    font-size: 12px;
  }

  .pbs-modal--acompanhamento .acomp-header-extra {
    gap: 6px;
  }

  /* "Atualiza em Ns" vira só o círculo (sem pílula e sem o texto) pra caber no cabeçalho */
  .pbs-modal--acompanhamento .acomp-badge-update {
    padding: 0;
    background: transparent;
    border: none;
  }

  .pbs-modal--acompanhamento .acomp-spinner-text {
    display: none;
  }

  /* Botão de chat e "só melhores" viram ícone-only (circulares) pra economizar espaço */
  .pbs-modal--acompanhamento .acomp-btn-chat-label,
  .pbs-modal--acompanhamento .acomp-btn-so-melhores-label {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-btn-chat {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .pbs-modal--acompanhamento .acomp-filter-row .acomp-btn-so-melhores {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .pbs-modal--acompanhamento .acomp-btn-so-melhores > i {
    display: inline-block;
  }

  .pbs-modal--acompanhamento #geralFiltroWrap {
    padding: 8px 0 0;
    gap: 3px;
  }

  .pbs-modal--acompanhamento .acomp-filter-row {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .pbs-modal--acompanhamento .acomp-filter-row .acomp-mselect-wrap {
    flex: 1;
    min-width: 0;
  }

  .pbs-modal--acompanhamento .acomp-mselect-trigger {
    width: 100%;
  }

  /* Contagem de lances some da linha do filtro — vira o cabeçalho "LANCES" abaixo */
  .pbs-modal--acompanhamento .acomp-lance-total {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-lances-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted, #65718a);
    text-transform: uppercase;
  }

  /* Layout: chat some por padrão; quando aberto (.acomp-lance-chat-mobile), ocupa o lugar do grid */
  .pbs-modal--acompanhamento .acomp-lance-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 12px;
  }

  .pbs-modal--acompanhamento .acomp-lance-right {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-chat-mobile .acomp-lance-left {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-chat-mobile {
    padding: 0;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-chat-mobile .acomp-lance-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    border-left: 0;
    border-top: 0;
    padding: 0;
    margin: 0;
  }

  .pbs-modal--acompanhamento .acomp-chat-overlay-header {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-chat-mobile .acomp-chat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin: 8px 0 0;
    padding: 12px 16px;
    background: var(--brand, #2d5f9c);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
  }

  .pbs-modal--acompanhamento .acomp-chat-overlay-header span i {
    margin-right: 6px;
  }

  .pbs-modal--acompanhamento .acomp-chat-overlay-header button {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .pbs-modal--acompanhamento .acomp-chat-overlay-header button i {
    margin: 0;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout.acomp-lance-chat-mobile #divAnexoChatAcompanhamentoLanceLote {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    margin: 0;
  }

  .pbs-modal--acompanhamento #geralGridWrap {
    padding: 0;
  }

  .pbs-modal--acompanhamento .acomp-footer {
    padding: 10px 12px;
  }

  .pbs-modal--acompanhamento .acomp-footer #btFecharAcompanhamentoLance {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 10px;
    background: var(--brand, #2d5f9c);
    color: #fff;
    border-color: transparent;
    display: block;
    box-sizing: border-box;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
  }

  .pbs-modal--acompanhamento .acomp-footer #btFecharAcompanhamentoLance:hover {
    background: var(--brand-700, #1c3b67);
    color: #fff;
  }

  /* Chips também devem quebrar em mobile */
  .pbs-modal--acompanhamento .acomp-chips-wrap {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pbs-modal--acompanhamento .acomp-chip {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Grid de lances vira lista de cards (uma linha "item/ranking .. hora", outra "empresa .. valor") */
  .pbs-modal--acompanhamento .acomp-grid-unificado thead {
    display: none;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado,
  .pbs-modal--acompanhamento .acomp-grid-unificado tbody {
    display: block;
    width: 100%;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 8px;
    row-gap: 4px;
    padding: 10px 4px;
    border-bottom: 1px solid #edf0f7;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    width: auto !important;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td.acomp-col-hora {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    font-weight: 700;
  }

  .pbs-modal--acompanhamento .acomp-grid-unificado td[colspan] {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    padding: 16px 0 !important;
  }
}

/* Pequenos dispositivos: ajustes finais */
@media (max-width: 480px) {
  .pbs-modal--acompanhamento {
    width: 100vw;
    min-height: 0;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .pbs-modal--acompanhamento .pbs-modal__header {
    padding: 8px 10px;
    gap: 6px;
  }

  .pbs-modal--acompanhamento .acomp-title-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .pbs-modal--acompanhamento .acomp-nr-processo {
    font-size: 11px;
  }

  .pbs-modal--acompanhamento .acomp-filter-row {
    gap: 6px;
  }

  .pbs-modal--acompanhamento .acomp-filter-row .acomp-mselect-wrap,
  .pbs-modal--acompanhamento .acomp-filter-row .acomp-btn-so-melhores {
    min-width: auto;
  }

  .pbs-modal--acompanhamento .acomp-lance-layout {
    padding: 0 4px;
  }

  .pbs-modal--acompanhamento #geralFiltroWrap {
    padding: 6px 0;
  }

  .pbs-modal--acompanhamento .acomp-footer {
    padding: 8px 6px;
  }
}

@media (max-width: 640px) {
  .pbs-modal--item {
    width: calc(100vw - 24px) !important;
  }

  .pbs-modal--item #divDetalheItem .pbs-item-det__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pbs-modal--item #divDetalheItem .pbs-item-det__value {
    padding-top: 0;
    padding-left: 42px;
  }
}
