/* Chamados (web/chamados.js) e a abertura guiada (web/abertura-de-chamado.js).
   Tudo sob #chamadosPanel ou #reportFeedbackModal: nada aqui mexe em outra
   tela. Paleta azul padrão do painel.

   control-standard.css pinta TODO botão do painel como botão de ação, com
   quatro #dashboardView e !important. As peças que não são ação (linha da
   lista, barra de formatação, voltar, remover print) usam cinco IDs para
   manter o próprio desenho — o mesmo recurso do filtro de contratos
   (demanda-ciclo.css). As abas usam role="tab", que o padrão já respeita. */

/* ================= Tela de chamados ================= */

#chamadosPanel .chamados-resumo {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

#chamadosPanel .chamados-abas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 12px;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamados-aba {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #334a66 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  cursor: pointer;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamados-aba span {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334a66;
  font-size: 12px;
  text-align: center;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamados-aba[aria-selected="true"] {
  border-color: #143454 !important;
  background: #143454 !important;
  color: #ffffff !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamados-aba[aria-selected="true"] span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ---- Caixa de entrada: lista + chamado aberto ---- */
#chamadosPanel .chamados-colunas {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#chamadosPanel .chamados-lista-coluna {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: calc(100vh - 230px);
  overflow: auto;
  position: sticky;
  top: 12px;
  padding: 2px 4px 2px 2px;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-linha {
  display: grid !important;
  gap: 5px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #10233f !important;
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  cursor: pointer;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-linha:hover {
  border-color: #9fb3c8 !important;
  background: #f8fafc !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-linha[aria-current="true"] {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 #1d4ed8 !important;
}

#chamadosPanel .chamado-linha-topo,
#chamadosPanel .chamado-linha-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#chamadosPanel .chamado-linha-titulo {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#chamadosPanel .chamado-linha-meta,
#chamadosPanel .chamado-quando {
  color: #5b6b82;
  font-size: 12px;
}

#chamadosPanel .chamado-quando { margin-left: auto; }

#chamadosPanel .chamado-codigo {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5b6b82;
}

#chamadosPanel .chamado-tipo,
#chamadosPanel .chamado-prioridade,
#chamadosPanel .chamado-com-voce {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

#chamadosPanel .chamado-tipo { background: #eef2f7; color: #334a66; }
#chamadosPanel .chamado-tipo[data-tipo="Bug"] { background: #fff1f0; color: #b42318; }
#chamadosPanel .chamado-tipo[data-tipo="Melhoria"] { background: #ecfdf5; color: #1b6b3a; }
#chamadosPanel .chamado-prioridade[data-prioridade="urgente"] { background: #b42318; color: #ffffff; }
#chamadosPanel .chamado-com-voce { background: #1d4ed8; color: #ffffff; }

#chamadosPanel .chamado-status {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

#chamadosPanel .chamado-status[data-status="aberto"] { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
#chamadosPanel .chamado-status[data-status="em_desenvolvimento"] { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
#chamadosPanel .chamado-status[data-status="aguardando_validacao"] { background: #1d4ed8; color: #fff; }
#chamadosPanel .chamado-status[data-status="concluido"] { background: #ecfdf5; color: #2e7d32; border-color: #bbf7d0; }

/* ---- O chamado aberto ---- */
#chamadosPanel .chamado-detalhe { min-width: 0; }

#chamadosPanel .chamado-detalhe-vazio,
#chamadosPanel .chamado-vazio {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: #5b6b82;
  background: #ffffff;
  border: 1px dashed #d8e0ea;
  border-radius: 4px;
}

#chamadosPanel .chamado-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--vc-standard-line, #d8e0ea);
  border-radius: var(--vc-standard-radius, 4px);
  min-width: 0;
}

#chamadosPanel .chamado-card.aguardando-voce {
  border-color: #1d4ed8;
  box-shadow: inset 3px 0 0 #1d4ed8;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-voltar {
  display: none !important;
  align-self: flex-start !important;
  min-height: 32px !important;
  padding: 4px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d4ed8 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

#chamadosPanel .chamado-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#chamadosPanel .chamado-cabecalho .chamado-codigo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#chamadosPanel .chamado-cabecalho h3 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Etapas: onde o chamado está no caminho até a validação. */
#chamadosPanel .chamado-etapas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etapa;
}

#chamadosPanel .chamado-etapas li {
  position: relative;
  padding-top: 8px;
  border-top: 4px solid #e2e8f0;
  color: #8a99ad;
  font-size: 12px;
  font-weight: 650;
}

#chamadosPanel .chamado-etapas li[data-estado="feito"] { border-top-color: #93c5fd; color: #334a66; }
#chamadosPanel .chamado-etapas li[data-estado="atual"] { border-top-color: #1d4ed8; color: #1d4ed8; }
#chamadosPanel .chamado-card[data-status="concluido"] .chamado-etapas li { border-top-color: #2e7d32; color: #2e7d32; }

#chamadosPanel .chamado-atributos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--vc-standard-line, #d8e0ea);
  border-bottom: 1px solid var(--vc-standard-line, #d8e0ea);
}

#chamadosPanel .chamado-atributos dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5b6b82;
}

#chamadosPanel .chamado-atributos dd {
  margin: 2px 0 0;
  font-weight: 600;
}

#chamadosPanel .chamado-relato {
  display: grid;
  gap: 12px;
}

#chamadosPanel .chamado-relato h4,
#chamadosPanel .chamado-conversa h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b6b82;
}

#chamadosPanel .chamado-conversa h4 span { text-transform: none; font-weight: 600; }

#chamadosPanel .chamado-descricao {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

#chamadosPanel .chamado-destaque,
#chamadosPanel .chamado-aviso {
  margin: 0;
  padding: 9px 12px;
  border-left: 3px solid #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
  overflow-wrap: anywhere;
}

#chamadosPanel .chamado-aviso.tom-sucesso { border-left-color: #2e7d32; background: #ecfdf5; color: #1b5e20; }
#chamadosPanel .chamado-aviso.tom-alerta { border-left-color: #c2410c; background: #fff7ed; color: #9a3412; }
#chamadosPanel .chamado-aviso.tom-erro { border-left-color: #b42318; background: #fff4f3; color: #b42318; }

#chamadosPanel .chamado-anexos,
#chamadosPanel .chamado-opcional,
#chamadosPanel .chamado-form-dica,
#chamadosPanel .chamado-contador,
#chamadosPanel .chamado-atalho {
  color: #5b6b82;
  font-size: 12.5px;
  margin: 0;
}

#chamadosPanel .chamado-tecnicos summary {
  cursor: pointer;
  font-weight: 600;
  color: #1d4ed8;
  font-size: 13px;
}

#chamadosPanel .chamado-tecnicos pre {
  margin: 6px 0 0;
  padding: 8px;
  background: #f5f7fa;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- Conversa ---- */
#chamadosPanel .chamado-conversa ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#chamadosPanel .chamado-msg {
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-left: 3px solid #143454;
  border-radius: 4px;
  background: #f5f8fc;
  margin-right: 8%;
}

#chamadosPanel .chamado-msg[data-lado="empresa"] {
  margin-right: 0;
  margin-left: 8%;
  border-left-color: #24726c;
  background: #f6fbfa;
}

#chamadosPanel .chamado-msg[data-tipo="reprovar"] { border-left-color: #b42318; background: #fff8f7; }
#chamadosPanel .chamado-msg[data-tipo="solicitar_validacao"] { border-left-color: #1d4ed8; background: #eff6ff; }
#chamadosPanel .chamado-msg[data-interno="true"] {
  border-style: dashed;
  border-left: 3px solid #b45309;
  background: #fffbeb;
}

#chamadosPanel .chamado-msg-cabeca {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 12.5px;
}

#chamadosPanel .chamado-msg-lado,
#chamadosPanel .chamado-msg-cabeca time { color: #5b6b82; }
#chamadosPanel .chamado-msg-cabeca time { margin-left: auto; font-size: 12px; }

#chamadosPanel .chamado-msg-rotulo {
  padding: 0 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334a66;
  font-size: 11px;
  font-weight: 700;
}

#chamadosPanel .chamado-msg[data-interno="true"] .chamado-msg-rotulo { background: #fde68a; color: #78350f; }

#chamadosPanel .chamado-msg-texto {
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

#chamadosPanel .chamado-msg-texto a,
#chamadosPanel .chamado-descricao a { color: #1d4ed8; text-decoration: underline; }

#chamadosPanel .chamado-msg-marca {
  margin: 6px 0 0;
  color: #9a3412;
  font-size: 12px;
  font-weight: 650;
}

#chamadosPanel .chamado-evento {
  padding: 2px 0 2px 14px;
  position: relative;
  color: #5b6b82;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

#chamadosPanel .chamado-evento::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb3c8;
}

#chamadosPanel .chamado-evento > span:first-child { color: #334a66; font-weight: 650; }

/* ---- Botões e caixa de escrever ---- */
#chamadosPanel .chamado-acoes,
#chamadosPanel .chamado-form-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}

#chamadosPanel .chamado-compositor,
#chamadosPanel .chamado-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid var(--vc-standard-line, #d8e0ea);
  border-radius: 4px;
}

/* Um padrão global pinta todo form do painel de branco: a caixa de escrever
   precisa do próprio fundo para se separar da conversa. */
#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel :is(.chamado-compositor, .chamado-form) {
  background: #f5f7fa !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-compositor[data-modo="nota_interna"] {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
}

#chamadosPanel .chamado-compositor-titulo,
#chamadosPanel .chamado-campo-rotulo {
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
}

#chamadosPanel .chamado-modos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-modos [role="tab"] {
  min-height: 32px !important;
  padding: 5px 12px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #334a66 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  cursor: pointer;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-modos [role="tab"][aria-selected="true"] {
  border-color: #143454 !important;
  background: #143454 !important;
  color: #ffffff !important;
}

#chamadosPanel .chamado-ferramentas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#chamadosPanel .chamado-formatos {
  display: inline-flex;
  gap: 4px;
}

#chamadosPanel .chamado-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-modelos select {
  min-height: 34px !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  max-width: 260px !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-ferramenta {
  min-height: 34px !important;
  min-width: 34px !important;
  padding: 5px 10px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #143454 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-ferramenta:hover {
  background: #edf2f7 !important;
  border-color: #a8b9cd !important;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-compositor textarea,
#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-form textarea {
  width: 100% !important;
  min-height: 110px !important;
  background: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

#chamadosPanel .chamado-compositor-pe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

#chamadosPanel .chamado-depois {
  display: grid;
  gap: 3px;
  margin-right: auto;
  font-size: 12px;
  font-weight: 650;
  color: #334a66;
}

#dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-depois select {
  min-height: 38px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
}

#chamadosPanel .chamado-form-grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#chamadosPanel .chamado-campo {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

#chamadosPanel .chamado-campo textarea,
#chamadosPanel .chamado-campo input,
#chamadosPanel .chamado-campo select {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  #chamadosPanel .chamados-colunas { grid-template-columns: minmax(0, 1fr); }
  #chamadosPanel .chamados-lista-coluna { position: static; max-height: none; overflow: visible; }
  #chamadosPanel .chamados-colunas[data-com-detalhe="true"] .chamados-lista-coluna,
  #chamadosPanel .chamados-colunas[data-com-detalhe="false"] .chamado-detalhe { display: none; }
  #dashboardView#dashboardView#dashboardView#dashboardView #chamadosPanel .chamado-voltar { display: inline-flex !important; }
}

@media (max-width: 640px) {
  #chamadosPanel .chamado-card { padding: 14px; }
  #chamadosPanel .chamado-etapas li { font-size: 11px; }
  #chamadosPanel .chamado-msg,
  #chamadosPanel .chamado-msg[data-lado="empresa"] { margin-left: 0; margin-right: 0; }
  #chamadosPanel .chamado-form-grade { grid-template-columns: minmax(0, 1fr); }
  #chamadosPanel .chamado-depois { margin-right: 0; width: 100%; }
}

/* ================= Abertura guiada ================= */

/* Grades e blocos têm display próprio: sem isto, o atributo hidden não
   esconderia os campos do outro tipo nem o formulário depois do envio. */
#reportFeedbackModal [hidden] { display: none !important; }

#reportFeedbackModal .app-modal-card.abertura-chamado { width: min(720px, 100%); }

#reportFeedbackModal .abertura-corpo { gap: 14px; }

#reportFeedbackModal .abertura-bloco {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#reportFeedbackModal .abertura-bloco legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 650;
}

#reportFeedbackModal .abertura-tipos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-tipos .report-type-button {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 12px 14px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #10233f !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer;
}

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-tipos .report-type-button.active {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #1d4ed8 !important;
}

/* Ícones de linha do próprio painel (Lucide, os mesmos do menu), num quadro
   com a cor do tipo — a mesma das etiquetas Bug e Melhoria da lista. */
#reportFeedbackModal [data-icon="lightbulb"] { --icon-url: url("./assets/icons/lightbulb.svg"); }
#reportFeedbackModal [data-icon="image-plus"] { --icon-url: url("./assets/icons/image-plus.svg"); }

#reportFeedbackModal .abertura-tipo-icone {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #fff1f0;
  color: #b42318;
  font-size: 20px;
}

#reportFeedbackModal [data-report-type="Melhoria"] .abertura-tipo-icone {
  background: #ecfdf5;
  color: #1b6b3a;
}
#reportFeedbackModal .abertura-tipo-texto strong { display: block; font-size: 14.5px; }
#reportFeedbackModal .abertura-tipo-texto small { display: block; margin-top: 2px; color: #5b6b82; font-size: 12.5px; }

#reportFeedbackModal .abertura-grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

/* Prioridade: duas opções lado a lado; urgente marcada fica vermelha. */
#reportFeedbackModal .abertura-prioridade-opcoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  gap: 8px;
}

/* O padrão dos modais deixa todo rótulo com 11 px e cor apagada, com
   !important: aqui a opção precisa ler como um botão de escolha. */
#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-prioridade-opcao {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #ffffff;
  color: #10233f !important;
  cursor: pointer;
}

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-prioridade-opcao span {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#reportFeedbackModal .abertura-prioridade-opcao input { margin: 0; flex: none; }
#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-prioridade-opcao:has(input:checked) { border-color: #1d4ed8 !important; background: #eff6ff; }
#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-prioridade-opcao[data-prioridade="urgente"]:has(input:checked) { border-color: #b42318 !important; background: #fff4f3; color: #b42318 !important; }
#reportFeedbackModal .abertura-prioridade.has-error .abertura-prioridade-opcao { border-color: #e5b5b1; }
#reportFeedbackModal .abertura-onde { max-width: 340px; }

#reportFeedbackModal .abertura-opcional { color: #5b6b82; font-weight: 400; }

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal :is(#reportFeedbackExpectedInput, #reportFeedbackStepsInput, #reportFeedbackBenefitInput) {
  min-height: 84px !important;
}

#reportFeedbackModal .abertura-prints {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed #9fb3c8;
  border-radius: 4px;
  background: #f8fafc;
}

#reportFeedbackModal .abertura-prints.arrastando { border-color: #1d4ed8; background: #eff6ff; }
#reportFeedbackModal .abertura-prints-icone {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #eef2f7;
  color: #334a66;
  font-size: 18px;
}
#reportFeedbackModal .abertura-prints-texto strong { display: block; font-size: 13.5px; }
#reportFeedbackModal .abertura-prints-texto small { color: #5b6b82; font-size: 12.5px; }

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-link {
  display: inline !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d4ed8 !important;
  font-size: inherit !important;
  font-weight: 650 !important;
  text-decoration: underline !important;
  cursor: pointer;
}

#reportFeedbackModal .abertura-miniaturas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#reportFeedbackModal .abertura-miniaturas:empty { display: none; }

#reportFeedbackModal .abertura-miniatura {
  position: relative;
  width: 112px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  background: #ffffff;
}

#reportFeedbackModal .abertura-miniatura img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

#reportFeedbackModal .abertura-miniatura figcaption {
  padding: 3px 6px;
  overflow: hidden;
  color: #334a66;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#dashboardView#dashboardView#dashboardView#dashboardView #reportFeedbackModal .abertura-remover {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 22px !important;
  min-width: 0 !important;
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(16, 35, 63, 0.82) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 22px !important;
}

#reportFeedbackModal .abertura-tecnicos summary {
  cursor: pointer;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

#reportFeedbackModal .abertura-tecnicos pre {
  margin: 6px 0 0;
  padding: 8px;
  background: #f5f7fa;
  font-size: 11.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#reportFeedbackModal .abertura-sucesso {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 8px 8px;
  text-align: center;
}

#reportFeedbackModal .abertura-sucesso h4 { margin: 4px 0 0; font-size: 20px; }
#reportFeedbackModal .abertura-sucesso p { margin: 0; max-width: 460px; color: #5b6b82; }

#reportFeedbackModal .abertura-sucesso-icone {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #2e7d32;
  font-size: 28px;
}

#reportFeedbackModal .abertura-sucesso-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  #reportFeedbackModal .abertura-tipos,
  #reportFeedbackModal .abertura-grade,
  #reportFeedbackModal .abertura-prioridade-opcoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
