/* ==========================================================================
   Reuniões de Diretores — estilos próprios desta página.
   Reaproveita as variáveis (--bni-red, --granite-grey, etc.) de styles.css,
   que é carregado antes deste arquivo.
   ========================================================================== */

.button-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--true-white);
  color: var(--power-black);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: .2s ease;
}

.button-outline-dark:hover { border-color: var(--granite-grey); }
.button-outline-dark:disabled { opacity: .6; cursor: default; }

/* ---------- Topbar / cabeçalho de conteúdo ---------- */

.rd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rd-topbar-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.rd-subtitulo { margin: 34px 0 14px; font-size: 18px; }
.rd-secao { margin: 10px 0 46px; }
.rd-sub { color: var(--granite-grey); max-width: 720px; margin: 0 0 30px; }


/* ---------- Cards (próxima reunião / alertas) ---------- */

.rd-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.rd-card-proxima {
  background: var(--bni-red);
  color: var(--true-white);
  border: none;
}

.rd-card-proxima .eyebrow.light,
.rd-card-proxima .eyebrow { color: rgba(255,255,255,.85); }
.rd-card-proxima h2 { margin: 8px 0 6px; font-size: 26px; }
.rd-card-proxima p { margin: 0 0 14px; color: rgba(255,255,255,.9); }

.rd-pauta-link {
  background: var(--true-white);
  color: var(--bni-red);
  min-height: 42px;
  padding: 0 18px;
}

.rd-card-alerta {
  background: #FFF4F1;
  border-color: #F3C7BE;
}

.rd-card-alerta .eyebrow { color: var(--bni-red); }
.rd-card-alerta ul { margin: 10px 0 0; padding-left: 20px; }
.rd-card-alerta li { margin-bottom: 6px; font-size: 14px; }

/* ---------- Filtros ---------- */

.rd-filtros {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 34px;
}

/* ---------- Matriz de presença ---------- */

.rd-matriz-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--true-white);
}

.rd-matriz {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.rd-matriz th,
.rd-matriz td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rd-matriz thead th {
  background: var(--sterling-light);
  font-size: 12px;
  color: var(--granite-grey);
  font-weight: 700;
}

.rd-matriz thead th small { font-weight: 500; }

.rd-matriz tbody th {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--true-white);
  min-width: 200px;
}

.rd-matriz tbody th strong { display: block; font-size: 14px; }
.rd-matriz tbody th small { color: var(--granite-grey); font-size: 11px; }

.rd-matriz tbody tr:nth-child(even) td,
.rd-matriz tbody tr:nth-child(even) th { background: var(--sterling-light); }

.rd-cel { font-weight: 800; font-size: 15px; }
.rd-cel-presente { color: #1E8E3E; }
.rd-cel-ausente { color: var(--bni-red); }
.rd-cel-justificado { color: var(--granite-grey); }

.rd-cel-total {
  font-weight: 700;
  background: var(--sterling-light);
}

.rd-legenda {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--granite-grey);
}

.rd-legenda span { display: inline-flex; align-items: center; gap: 6px; }

.rd-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rd-dot-presente { background: #1E8E3E; }
.rd-dot-ausente { background: var(--bni-red); }
.rd-dot-justificado { background: var(--granite-grey); }

/* ---------- Resumo por reunião ---------- */

.rd-resumo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rd-resumo-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--true-white);
}

.rd-resumo-card h3 { margin: 6px 0 10px; font-size: 19px; }
.rd-resumo-card p { margin: 0 0 6px; font-size: 13px; color: var(--granite-grey); }
.rd-resumo-justificados { font-style: italic; }

/* ---------- Ajuda ---------- */

.rd-ajuda {
  margin-top: 46px;
  padding: 20px 24px;
  border: 1px dashed var(--sterling-grey);
  border-radius: var(--radius);
}

.rd-ajuda summary { cursor: pointer; font-weight: 700; }
.rd-ajuda ol { margin: 14px 0 0; padding-left: 20px; }
.rd-ajuda li { margin-bottom: 8px; font-size: 14px; color: var(--granite-grey); }
.rd-ajuda code {
  background: var(--sterling-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .rd-resumo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 570px) {
  .rd-resumo-grid { grid-template-columns: 1fr; }
}
