/* ======================================================================
   RESET / BASE
   ====================================================================== */

* {
  box-sizing: border-box;                 /* padding/borda entram no cálculo de tamanho */
}

body {
  margin: 0;                               /* remove margens padrão */
  font-family: "Segoe UI", sans-serif;     /* fonte padrão */
  background-color: #0f172a;               /* fundo dark */
  color: #e5e7eb;                          /* texto claro */
}

a {
  text-decoration: none;                   /* links sem underline */
}


/* ======================================================================
   NAVBAR
   ====================================================================== */

.navbar {
  height: 65px;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu {
  display: flex;
  gap: 10px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #9ca3af;
  transition: 0.3s;
  font-size: 14px;
}

.menu a:hover {
  background-color: #1f2937;
  color: #ffffff;
}

.menu a.active {
  background-color: #3b82f6;
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #9ca3af;
}

/* Logo */
.logo {
  color: #3b82f6;
  margin-right: 30px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}


/* ======================================================================
   BOTÕES (GERAIS)
   ====================================================================== */

.btn {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 5px;
  transition: 0.2s;
  display: inline-block;
  color: #ffffff;
}

.btn-edit { background-color: #28a745; }
.btn-edit:hover { background-color: #218838; }

.btn-delete { background-color: #dc3545; }
.btn-delete:hover { background-color: #c82333; }

/* Botão principal */
.btn-create-user {
  background: #16a34a;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 15px;
  transition: 0.3s;
  text-decoration: none;
}

.btn-create-user:hover {
  background: #15803d;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Botão secundário */
.btn-secondary {
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #374151;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-secondary:hover {
  background-color: #4b5563;
}


/* ======================================================================
   LAYOUT PRINCIPAL / CARD
   ====================================================================== */

.main-content {
  padding: 30px;
}

.container {
  width: 100%;
  background-color: #1f2937;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}


/* ======================================================================
   TABELA
   ====================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table th {
  text-align: left;
  padding: 12px;
  background-color: #111827;
  color: #3b82f6;
  font-weight: 600;
}

table td {
  padding: 14px 12px;
  border-bottom: 1px solid #374151;
}

table tbody tr:nth-child(even) { background-color: #182233; }
table tbody tr:nth-child(odd)  { background-color: #1f2937; }

table tr:hover { background-color: #111827; }


/* ======================================================================
   STATUS DE LINHAS (DOCUMENTOS)
   ====================================================================== */

.vencido {
  background-color: #7f1d1d !important;
  color: #fecaca;
  font-weight: bold;
}

.vence-breve {
  background-color: #78350f !important;
  color: #fde68a;
  font-weight: bold;
}

.regular {
  background-color: transparent;
}


/* ======================================================================
   FORM (SAAS)
   ====================================================================== */

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  margin: 0;
  font-size: 20px;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-saas {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: #9ca3af;
}


/* ======================================================================
   INPUT COM ÍCONE (PADRÃO)
   ====================================================================== */

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
}

/* Input e select padronizados */
.input-icon input,
.input-icon select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px 10px 38px;  /* espaço para o ícone */
  border-radius: 8px;
  border: 1px solid #374151;
  background-color: #111827;
  color: #e5e7eb;
  font-size: 14px;
  transition: 0.2s;
  height: 42px;
}

.input-icon input:focus,
.input-icon select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Select sem seta nativa */
.input-icon select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 38px;
}

/* Seta custom do select (FontAwesome) */
.input-icon::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  font-size: 12px;
}

/* Input readonly (ex.: ID) */
input[readonly] {
  background-color: #22c55e;
  color: #000000;
  font-weight: 700;
  border: 1px solid #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  cursor: default;
}


/* ======================================================================
   AÇÕES DO FORM
   ====================================================================== */

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}


/* ======================================================================
   BADGES (TABELAS / STATUS)
   ====================================================================== */

.badge-low {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-med {
  background: rgba(234, 179, 8, 0.15);
  color: #fde68a;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-high {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-crit {
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
  border: 1px solid rgba(185, 28, 28, 0.28);
}


/* ======================================================================
   LINKS DE DOCUMENTO
   ====================================================================== */

.doc-link {
  margin-left: 8px;
  color: #93c5fd;
}

.doc-link:hover {
  color: #ffffff;
}


/* ======================================================================
   MODAL (ÚNICO)
   ====================================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-content {
  background: #1f2937;
  padding: 30px;
  border-radius: 14px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.2s ease;
  text-align: center;
}

.modal-danger { border-top: 5px solid #dc2626; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.modal-header i {
  font-size: 22px;
  color: #dc2626;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-body p {
  margin: 8px 0;
  color: #d1d5db;
}

.warning-text {
  color: #f87171;
  font-weight: 600;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-danger {
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.delete-target {
  background-color: #111827;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 15px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ======================================================================
   HUB STATUS (Gerar / Validar / Validado)
   ====================================================================== */

.hub-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.hub-status--gerar {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.25);
}

.hub-status--validar {
  background: rgba(234, 179, 8, 0.15);
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.25);
}

.hub-status--validado {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}


/* ======================================================================
   AUDITORIA - PROGRESSO GERAL (TOPO)
   - Base (verde padrão)
   - Estados dinâmicos: .status-warning / .status-danger / .status-success
   ====================================================================== */

/* Base do bloco (verde “neutro”) */

#globalProgress.global-progress {
  margin: 14px 0 22px; /* espaço em cima e embaixo */
  padding: 14px 14px;
  border-radius: 14px;

  background: linear-gradient(180deg, rgba(20,160,90,.28), rgba(7,20,12,.35));
  border: 1px solid rgba(20,160,90,.55);
}

/* Título */
#globalProgress .global-title {
  color: #d8ffe8;
  font-weight: 700;
}

/* Pílulas internas */
#globalProgress .metric-pill {
  background: rgba(20,160,90,.18);
  border: 1px solid rgba(20,160,90,.35);
  color: #e5e7eb; /* evita depender de var(--txt) */
}

/* Mensagem dentro da pílula (texto) */
#gpLockMsg {
  background: rgba(230,160,40,.15);     /* padrão (incompleto) */
  border-color: rgba(230,160,40,.35);
}

/* Barra geral */
.global-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  border: 1px solid rgba(33,50,82,.65);
}

.global-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(20,160,90,.95);     /* barra verde como base */
  transition: width .18s ease;
}

/* Estados dinâmicos (o JS adiciona essas classes) */
#globalProgress.status-warning {
  background: linear-gradient(180deg, rgba(230,160,40,.28), rgba(25,18,5,.35)) !important;
  border: 1px solid rgba(230,160,40,.55) !important;
}

#globalProgress.status-danger {
  background: linear-gradient(180deg, rgba(200,60,60,.28), rgba(25,5,5,.35)) !important;
  border: 1px solid rgba(200,60,60,.55) !important;
}

#globalProgress.status-success {
  background: linear-gradient(180deg, rgba(20,160,90,.35), rgba(7,20,12,.35)) !important;
  border: 1px solid rgba(20,160,90,.65) !important;
}

/* Barra acompanha o status */
#globalProgress.status-warning .global-bar > span { background: rgba(230,160,40,.85) !important; }
#globalProgress.status-danger  .global-bar > span { background: rgba(200,60,60,.90) !important; }
#globalProgress.status-success .global-bar > span { background: rgba(20,160,90,.95) !important; }


/* ======================================================================
   AUDITORIA - PROGRESSO POR ÁREA (CHECKLIST)
   ====================================================================== */

.area-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.area-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.95;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.area-count,
.area-nc {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.area-nc {
  background: rgba(230,160,40,.18);
  border-color: rgba(230,160,40,.35);
}

.area-progress {
  width: 160px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.area-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.85);
  transition: width .18s ease;
}

@media (max-width: 600px) {
  .area-progress { width: 110px; }
}


/* ======================================================================
   FADE IN GLOBAL
   ====================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInSmooth 0.5s ease forwards;
}

@keyframes fadeInSmooth {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ======================================================================
   FOOTER
   ====================================================================== */

.app-footer {
  margin-top: 30px;
  padding: 12px 20px;
  border-top: 1px solid #1f2937;
  background-color: #0f172a;
  color: #6b7280;
  font-size: 11px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Badges do footer */
.badge-version {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.25);
}

.badge-env-prod {
  background: rgba(34,197,94,0.12);
  color: #86efac;
  border-color: rgba(34,197,94,0.25);
}

.badge-env-dev {
  background: rgba(234,179,8,0.12);
  color: #fde68a;
  border-color: rgba(234,179,8,0.25);
}


/* ======================================================================
   RESPONSIVO (SEM DUPLICAR)
   ====================================================================== */

@media (max-width: 1400px) {
  .form-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu { flex-wrap: wrap; }

  .navbar {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .form-row { grid-template-columns: 1fr; }
}

/* Pergunta com coluna lateral */
.question{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
}

/* Coluna do skip */
.q-skip{ display:flex; justify-content:center; padding-top: 4px; }

.skip-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  cursor: pointer;
  user-select:none;
}

.skip-box input{ display:none; }

.skip-ui{
  font-size: 16px;
  opacity: .9;
}

/* Marcado = “inativado” */
.skip-box input:checked + .skip-ui{
  opacity: 1;
}

/* Visual de pergunta desativada */
.question.q-disabled{
  opacity: .55;
  filter: grayscale(0.25);
}

.question.q-disabled .q-title{
  text-decoration: line-through;
  opacity: .85;
}

/* Upload */
.q-upload{
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
}

.q-upload-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(229,231,235,.92);
}

.file-ul{
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: rgba(229,231,235,.85);
}

/* Mobile: manter toque confortável */
@media (max-width: 520px){
  .question{
    grid-template-columns: 48px 1fr;
  }
  .skip-box{
    width: 42px;
    height: 42px;
  }
}

.table-wrap { overflow-x: visible; border-radius:12px; } /* remove necessidade de scroll horizontal */
.table-ti { width:100%; border-collapse:collapse; min-width:0; } /* min-width 0 pra não forçar largura */
.inp-text { min-width: 0; } /* não force largura mínima */
.inp-date, .inp-text { max-width: 100%; }

/* Ajuste de layout no desktop pra caber melhor */
.table-ti th:nth-child(6),
.table-ti td:nth-child(6),
.table-ti th:nth-child(7),
.table-ti td:nth-child(7){
  width: 260px;              /* comentários */
}
.table-ti th:nth-child(4),
.table-ti td:nth-child(4),
.table-ti th:nth-child(5),
.table-ti td:nth-child(5){
  width: 170px;              /* datas */
}

/* =========================
   MOBILE: tabela vira cards (sem rolagem horizontal)
========================= */
@media (max-width: 900px){
  .table-wrap{ overflow-x: visible; }
  .table-ti{ display:block; }
  .table-ti thead{ display:none; } /* esconde cabeçalho */
  .table-ti tbody{ display:block; }
  .table-ti tr{
    display:block;
    border:1px solid #1f2937;
    border-radius:12px;
    margin:10px 0;
    padding:10px;
    background:#111827;
  }
  .table-ti td{
    display:flex;
    gap:10px;
    align-items:flex-start;
    justify-content:space-between;
    border-bottom:1px solid #1f2937;
    padding:10px 6px;
  }
  .table-ti td:last-child{ border-bottom:none; }

  /* label na esquerda (vem do data-label) */
  .table-ti td::before{
    content: attr(data-label);
    flex: 0 0 120px;
    color:#93c5fd;
    font-weight:900;
    font-size:12px;
    line-height:1.2;
    padding-top:6px;
  }

  /* campo na direita ocupa o restante */
  .table-ti td > *{
    flex: 1 1 auto;
  }

  /* inputs mais confortáveis no mobile */
  .inp-date, .inp-text{
    width:100%;
    min-width:0;
  }

  /* Nome/Colaborador podem quebrar linha sem estourar */
  .cell-text{
    word-break: break-word;
  }
}

/* destaque para comentários (vermelho legível no tema escuro) */
.note-bad{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(248,113,113,.35);   /* vermelho claro */
  background:rgba(248,113,113,.12);
  color:#fecaca;                             /* texto vermelho claro */
  font-weight:900;
  line-height:1.25;
  max-width:420px;
  word-break:break-word;
}

/* quando não tem comentário */
.note-empty{
  color:#9ca3af;
  font-weight:800;
}

.text-red{
  color:#fecaca;     /* vermelho claro legível */
  font-weight:900;
  word-break:break-word;
}

/* Força o vermelho mesmo se o index.css estiver sobrescrevendo */
.table-ti td.text-red,
.table-ti td .text-red{
  color:#fecaca !important;     /* vermelho claro legível */
  font-weight:900 !important;
}

.note-bad{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(248,113,113,.35);
  background:rgba(248,113,113,.12);
  color:#fecaca !important;
  font-weight:900;
  line-height:1.25;
  word-break:break-word;
}
/* ======================================================================
   ANIMAÇÕES (MODAL)
   ====================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ==============================
   AUDITORIA - PAINEL STICKY (TOP)
   Compatível com seu HTML:
   #globalProgress.audit-sticky
   .sticky-top / .sticky-metrics / .sticky-bar / .sticky-summary
============================== */

.audit-card #globalProgress.audit-sticky{
  background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96)) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  padding: 12px !important;
  margin-bottom: 14px !important;
  backdrop-filter: blur(6px);
}

/* Topo (título + botão áreas) */
.audit-card #globalProgress .sticky-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.audit-card #globalProgress .sticky-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
}

.audit-card #globalProgress .sticky-title .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,.18);
}

/* Botão Áreas dentro do painel */
.audit-card #globalProgress .sticky-actions .btn.btn-ghost{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #e5e7eb !important;
  border-radius: 12px !important;
}
.audit-card #globalProgress .sticky-actions .btn.btn-ghost:hover{
  background: rgba(255,255,255,.10) !important;
}

/* Métricas (pills) */
.audit-card #globalProgress .sticky-metrics{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}

.audit-card #globalProgress .pill{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #e5e7eb !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  line-height: 1.1;
  font-weight: 700;
}

/* Mensagem de status */
.audit-card #globalProgress #gpLockMsg{
  flex: 1 1 auto;
  text-align:center;
  font-weight: 800;
}

/* Variações do status que seu JS já usa */
.audit-card #globalProgress .pill-warn{
  background: rgba(245,158,11,.14) !important;
  border-color: rgba(245,158,11,.28) !important;
  color: #fde68a !important;
}
.audit-card #globalProgress .pill-danger{
  background: rgba(239,68,68,.14) !important;
  border-color: rgba(239,68,68,.28) !important;
  color: #fecaca !important;
}
.audit-card #globalProgress .pill-ok{
  background: rgba(34,197,94,.14) !important;
  border-color: rgba(34,197,94,.28) !important;
  color: #bbf7d0 !important;
}

/* Barra de progresso */
.audit-card #globalProgress .sticky-bar{
  height: 10px;
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.audit-card #globalProgress .sticky-bar #gpBar{
  display:block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #22c55e) !important;
  transition: width .25s ease;
}

/* Resumo (linha de baixo) */
.audit-card #globalProgress .sticky-summary{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.audit-card #globalProgress .sticky-summary .sum{
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #d1d5db !important;
  font-weight: 700;
}

/* =========================================================
   RESUMO / INDICADORES (EDIT MODE) - FORÇAR DARK
   (ind-wrap, sum-grid, sum-box, comments, badges)
========================================================= */

/* Container do resumo */
.audit-card .ind-wrap { background: #0b1220; border: 1px solid rgba(255,255,255,.10); color:#e5e7eb; }

/* Títulos e textos */
.audit-card .ind-wrap b,
.audit-card .ind-wrap .ind-top span,
.audit-card .ind-wrap .ind-title,
.audit-card .ind-wrap .ind-list,
.audit-card .ind-wrap small{
  color: #e5e7eb !important;
}
.audit-card .ind-wrap small{
  opacity: .8 !important;
}

/* Grid de resumo (os 4 cards) */
.audit-card .sum-box{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #e5e7eb !important;
}

/* Comentários (details) */
.audit-card .sum-comments details{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #e5e7eb !important;
}
.audit-card .sum-comments summary{
  color: #e5e7eb !important;
}

/* Itens de comentário */
.audit-card .comment-item{
  border-top: 1px dashed rgba(255,255,255,.12) !important;
}
.audit-card .comment-item .carea{
  color: rgba(229,231,235,.75) !important;
}
.audit-card .comment-item .cdesc{
  color: rgba(229,231,235,.92) !important;
}

/* Lista de indicadores */
.audit-card .ind-bar{
  background: rgba(255,255,255,.10) !important;
}
.audit-card .ind-bar > span{
  background: #3b82f6 !important;
}

/* Badge (Total / Pontos) - caso index.css esteja clareando */
.audit-card .badge{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #e5e7eb !important;
}