/* css/modules/acompanhamento.css */

/* Estilos gerais para o módulo */
#module-acompanhamento {
  /* padding: 1rem; */ /* Exemplo: Adicionar padding geral se necessário */
}

/* Tabs do Acompanhamento */
.acompanhamento-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
  color: rgb(156, 163, 175);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.acompanhamento-tab:hover {
  color: rgb(203, 213, 225);
  border-bottom-color: rgb(71, 85, 105);
}

.acompanhamento-tab.active {
  color: rgb(96, 165, 250);
  border-bottom-color: rgb(96, 165, 250);
}

/* Força exibição do conteúdo das abas quando não estão ocultas */
#acompanhamento-tab-contents .acompanhamento-tab-content {
  display: block !important;
  animation: fadeIn 0.3s ease-in;
}

/* Oculta quando tem a classe hidden */
#acompanhamento-tab-contents .acompanhamento-tab-content.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Seletor de Disciplina */
#acompanhamento-discipline-select {
  margin-bottom: 1.5rem; /* Espaço abaixo do seletor */
}

/* Container de Detalhes */
#acompanhamento-details-container {
  /* Visibilidade controlada pelo JS */
}

/* Card de Resumo - Estilos dos novos cards individuais (KPI style) */
/* Reutiliza estilos de .kpi-card, .kpi-card-icon, etc., definidos em progresso.css ou base.css */
/* Adaptações específicas se necessário: */
#module-acompanhamento .kpi-card .widget-body {
  padding: 1rem !important; /* Ajusta padding interno se necessário */
}
#module-acompanhamento .kpi-card .kpi-card-value {
  font-size: 1.15rem; /* Ajusta tamanho da fonte do valor principal */
  line-height: 1.4;
}
#module-acompanhamento .kpi-card .kpi-card-icon {
  width: 36px; /* Ajusta tamanho do ícone */
  height: 36px;
}
#module-acompanhamento .kpi-card .kpi-card-icon span[data-lucide] {
  width: 1.1em; /* Ajusta tamanho do ícone lucide */
  height: 1.1em;
}

/* --- Container da Tabela de Histórico com Scroll --- */
.acompanhamento-history-table-container {
  max-height: 45vh; /* Altura máxima ajustada */
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 0.25rem;
  background-color: var(--card-bg); /* Fundo para tabela */
}

/* Tabelas no módulo de Acompanhamento */
#module-acompanhamento #acompanhamento-log-history-table,
#module-acompanhamento #acompanhamento-task-list-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

/* Cabeçalho Fixo (Sticky) para a Tabela de Histórico */
#module-acompanhamento #acompanhamento-log-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--input-bg); /* Fundo para cobrir conteúdo ao rolar */
  white-space: nowrap;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}

/* Cabeçalho Fixo (Sticky) para a Tabela de Tópicos */
#module-acompanhamento #acompanhamento-task-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--input-bg); /* Fundo para cobrir conteúdo ao rolar */
  white-space: nowrap;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}

/* Cabeçalhos das Tabelas (Geral) */
#module-acompanhamento #acompanhamento-log-history-table th,
#module-acompanhamento #acompanhamento-task-list-table th {
  background-color: var(--input-bg);
  white-space: nowrap;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  /* border-top: 1px solid var(--card-border); REMOVIDO para não duplicar com sticky */
}

/* Ajustes de Largura TH - Histórico (Mantidos) */
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(1) {
  width: 80px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(2) {
  width: 100px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(3) {
  width: 90px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(4) {
  width: 70px;
  text-align: center;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(5) {
  width: 20%;
  min-width: 180px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(6) {
  width: 15%;
  min-width: 120px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(7),
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(8) {
  width: 60px;
  text-align: center;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(9) {
  width: 90px;
  text-align: center;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(10) {
  width: 25%;
  min-width: 200px;
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table th:nth-child(11) {
  width: 60px;
  text-align: center;
}

/* Ajustes de Largura TH - Tópicos (Mantidos) */
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(1) {
  text-align: left;
  width: 40px;
  padding: 0.6rem 0.4rem;
}
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(2) {
  text-align: center;
  width: 50px;
}
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(3) {
  text-align: left;
  width: auto;
}
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(4),
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(5),
#module-acompanhamento #acompanhamento-task-list-table th:nth-child(6) {
  text-align: center;
  width: 90px;
}

/* Células das Tabelas (Geral) */
#module-acompanhamento #acompanhamento-log-history-table td,
#module-acompanhamento #acompanhamento-task-list-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
  font-size: 0.8rem;
  white-space: normal;
  word-break: break-word;
}
#module-acompanhamento #acompanhamento-log-history-tbody tr:last-child td,
#module-acompanhamento #acompanhamento-task-list-table tbody tr:last-child td {
  border-bottom: none; /* Remove borda da última linha */
}

/* Ajustes de alinhamento TD - Histórico (Mantidos) */
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(4),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(7),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(8),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(9),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(11) {
  text-align: center;
}
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(1),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(2),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(3),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(5),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(6),
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(10) {
  text-align: left;
}
#module-acompanhamento #acompanhamento-log-history-table td:nth-child(10) {
  word-break: break-word;
  white-space: normal;
}

/* Estilos de Hierarquia e Expansão - Tabela Tópicos (Mantidos) */
#module-acompanhamento #acompanhamento-task-list-table td {
  font-size: 0.8rem;
  vertical-align: middle;
  padding: 0.6rem 0.5rem;
}
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(1) {
  padding: 0.6rem 0.4rem;
  text-align: left;
}
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(2) {
  text-align: center;
  color: var(--text-secondary);
}
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(3) {
  text-align: left;
}
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(4),
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(5),
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(6) {
  text-align: center;
}
#module-acompanhamento #acompanhamento-task-list-table td:nth-child(6) {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.acompanhamento-expand-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.acompanhamento-expand-toggle:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
}
.acompanhamento-expand-toggle span[data-lucide] {
  width: 0.9em;
  height: 0.9em;
  margin: 0 !important;
  display: block;
  transition: transform 0.2s ease;
}
.acompanhamento-expand-toggle.expanded span[data-lucide] {
  transform: rotate(90deg);
}
.acompanhamento-topic-row {
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.02);
}
.acompanhamento-subtask-row {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.acompanhamento-subtask-row
  + .acompanhamento-subtask-row[data-parent-id]:not(.hidden)
  td {
  border-top: 1px dashed var(--card-border);
}
.acompanhamento-topic-row + .acompanhamento-subtask-row:not(.hidden) td {
  border-top: none;
}
.acompanhamento-task-row.status-concluido {
  color: var(--text-secondary) !important;
  opacity: 0.7;
}
.acompanhamento-task-row.status-concluido td {
  color: inherit !important;
}
.acompanhamento-task-row.status-concluido td:nth-child(4) {
  opacity: 0.9;
}

/* Estilos Botões Editar/Excluir Histórico (Mantidos) */
#module-acompanhamento .acompanhamento-edit-log-btn,
#module-acompanhamento .acompanhamento-delete-log-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#module-acompanhamento .acompanhamento-edit-log-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
}
#module-acompanhamento .acompanhamento-delete-log-btn:hover {
  color: var(--btn-danger-bg);
  background-color: rgba(220, 53, 69, 0.1);
}
#module-acompanhamento .acompanhamento-edit-log-btn span[data-lucide],
#module-acompanhamento .acompanhamento-delete-log-btn span[data-lucide] {
  width: 0.9em;
  height: 0.9em;
  margin: 0 !important;
  display: block;
}

/* Hover Linhas Tabela (Mantido) */
#module-acompanhamento #acompanhamento-log-history-table tbody tr:hover,
#module-acompanhamento #acompanhamento-task-list-table tbody tr:hover {
  background-color: rgba(108, 117, 125, 0.1);
}

/* Mensagem "Nenhum registro/tarefa" (Mantido) */
#module-acompanhamento #acompanhamento-log-history-tbody td[colspan="11"],
#module-acompanhamento #acompanhamento-task-list-tbody td[colspan="6"] {
  text-align: center;
}

/* Estilos Modal Edição de Log (Mantidos) */
#acompanhamento-edit-log-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0s linear 0.2s;
}
#acompanhamento-edit-log-modal-backdrop.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-out;
}
#acompanhamento-edit-log-modal-content {
  width: 100%;
  max-width: 36rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  margin: 1rem;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
#acompanhamento-edit-log-modal-backdrop.visible
  #acompanhamento-edit-log-modal-content {
  transform: scale(1);
  opacity: 1;
}
#acompanhamento-edit-log-modal-content .widget-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
#acompanhamento-edit-log-modal-content .widget-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}
#acompanhamento-edit-log-modal-content .widget-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--card-border);
  background-color: var(--input-bg);
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  flex-shrink: 0;
}
#acompanhamento-edit-log-modal-content .input-form {
  font-size: 0.9rem;
}
#acompanhamento-edit-log-modal-content textarea.input-form {
  min-height: 80px;
}

/* Responsividade (Mantida, mas verificar se colunas ocultas ainda fazem sentido) */
@media (max-width: 992px) {
  #module-acompanhamento #acompanhamento-log-history-table th,
  #module-acompanhamento #acompanhamento-log-history-table td {
    font-size: 0.78rem;
    padding: 0.5rem 0.4rem;
  }
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(6),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(6),
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(7),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(7),
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(8),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(8) {
    display: none;
  }
}

@media (max-width: 768px) {
  #module-acompanhamento #acompanhamento-log-history-table th,
  #module-acompanhamento #acompanhamento-log-history-table td {
    font-size: 0.75rem;
  }
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(2),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(2),
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(3),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(3),
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(9),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(9) {
    display: none;
  }
  #module-acompanhamento #acompanhamento-task-list-table {
    font-size: 0.75rem;
  }
  #module-acompanhamento #acompanhamento-task-list-table th:nth-child(5),
  #module-acompanhamento #acompanhamento-task-list-table td:nth-child(5),
  #module-acompanhamento #acompanhamento-task-list-table th:nth-child(6),
  #module-acompanhamento #acompanhamento-task-list-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  #module-acompanhamento #acompanhamento-log-history-table th:nth-child(4),
  #module-acompanhamento #acompanhamento-log-history-table td:nth-child(4) {
    display: none;
  }
}

/* *NOVO* Estilos para containers de gráficos e placeholders */
#module-acompanhamento section:has(canvas[id^="acompanhamento-"]) .widget-body {
  position: relative; /* Necessário para o canvas absoluto */
  min-height: 250px; /* Garante altura mínima */
  display: flex; /* Para centralizar placeholder */
  align-items: center;
  justify-content: center;
}

#module-acompanhamento canvas[id^="acompanhamento-"] {
  /* O Chart.js geralmente controla o estilo do canvas, mas pode adicionar fallbacks */
  display: block; /* Remove espaço extra abaixo */
  max-width: 100%;
}

/* Estilo para o parágrafo placeholder dentro do widget-body dos gráficos */
#module-acompanhamento p[id$="-placeholder"] {
  text-align: center;
  font-style: italic;
  position: absolute; /* Centraliza sobre o container */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-secondary);
  background-color: var(
    --card-bg
  ); /* Garante que cubra o canvas se ele renderizar parcialmente */
  border: 1px dashed var(--card-border);
  border-radius: 0.25rem;
  margin: 1.25rem; /* Igual ao padding do widget-body */
}

#module-acompanhamento p[id$="-placeholder"].hidden {
  display: none;
}

/* Ajuste para responsividade dos gráficos */
@media (max-width: 768px) {
  #module-acompanhamento
    section:has(canvas[id^="acompanhamento-"])
    .widget-body {
    min-height: 200px; /* Altura menor em telas pequenas */
  }
  #module-acompanhamento p[id$="-placeholder"] {
    min-height: 200px;
  }
}
/* *FIM* Novos Estilos Gráficos */

/* ===== MODAL DE REVISÃO SRS APRIMORADO ===== */

/* Quick Action Buttons */
.srs-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
  color: rgb(147, 197, 253);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.srs-quick-action-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.srs-quick-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.srs-quick-action-btn [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Divider */
.srs-revision-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(71, 85, 105, 0.5), transparent);
  margin: 1rem 0;
}

/* Duration Slider */
.srs-duration-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
    rgba(139, 92, 246, 0.3) 0%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(16, 185, 129, 0.3) 100%);
  outline: none;
  cursor: pointer;
}

.srs-duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(96, 165, 250), rgb(59, 130, 246));
  border: 3px solid rgb(30, 41, 59);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
  transition: all 0.2s ease;
}

.srs-duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.7);
}

.srs-duration-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(96, 165, 250), rgb(59, 130, 246));
  border: 3px solid rgb(30, 41, 59);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
  transition: all 0.2s ease;
}

.srs-duration-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.7);
}

/* Custom Checkbox */
.srs-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 2px solid rgba(71, 85, 105, 0.5);
  background-color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.srs-checkbox:checked {
  background-color: rgb(34, 197, 94);
  border-color: rgb(34, 197, 94);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.srs-checkbox:hover {
  border-color: rgba(71, 85, 105, 0.8);
}

/* Performance Display */
#srs-revision-performance-value {
  font-size: 1.125rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .srs-quick-action-btn {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
  }

  .srs-quick-action-btn [data-lucide] {
    width: 1rem;
    height: 1rem;
  }

  #srs-revision-modal-content {
    max-width: 95vw;
  }
}

/* Animation for modal appearance */
#srs-revision-modal-backdrop.flex {
  animation: srsModalFadeIn 0.2s ease-out;
}

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

#srs-revision-modal-content {
  animation: srsModalSlideIn 0.3s ease-out;
}

@keyframes srsModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SUCCESS NOTIFICATION ===== */

.srs-success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.srs-success-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.srs-success-notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(8px);
  min-width: 300px;
}

.srs-success-notification-content [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.srs-success-notification-content p {
  margin: 0;
  color: rgb(226, 232, 240);
}

.srs-success-notification-content .font-semibold {
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .srs-success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .srs-success-notification-content {
    min-width: auto;
    padding: 0.875rem 1rem;
  }
}

/* ===== ANALISE COCKPIT OVERRIDES ===== */

#module-acompanhamento {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.analysis-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.75rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(5, 15, 35, 0.96), rgba(11, 22, 46, 0.92));
  box-shadow:
    0 28px 70px rgba(2, 8, 23, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(34, 211, 238, 0.05);
  overflow: hidden;
}

.analysis-hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -7rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 65%);
  pointer-events: none;
}

.analysis-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: rgb(110, 231, 183);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-page-title {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(1.9rem, 2.8vw, 2.55rem);
  line-height: 1.05;
}

.analysis-hero-subtitle {
  max-width: 45rem;
  color: rgb(148, 163, 184);
  font-size: 0.98rem;
  line-height: 1.7;
}

.analysis-hero-signals {
  display: grid;
  gap: 0.85rem;
  align-content: center;
  min-width: min(100%, 16rem);
}

.analysis-signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 15, 31, 0.72);
  color: rgb(226, 232, 240);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.analysis-signal-chip [data-lucide] {
  width: 1rem;
  height: 1rem;
}

.analysis-signal-chip--cyan {
  color: rgb(103, 232, 249);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 24px rgba(34, 211, 238, 0.08);
}

.analysis-signal-chip--amber {
  color: rgb(251, 191, 36);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08), 0 0 24px rgba(249, 115, 22, 0.08);
}

.analysis-tabs-shell {
  padding: 0.45rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: linear-gradient(145deg, rgba(11, 18, 35, 0.94), rgba(15, 23, 42, 0.86));
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.24);
}

.analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

#module-acompanhamento .acompanhamento-tab {
  border: none;
  border-radius: 0.95rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(22, 33, 62, 0.78));
  color: rgb(148, 163, 184);
  box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.36);
}

#module-acompanhamento .acompanhamento-tab:hover {
  color: rgb(226, 232, 240);
  border-bottom-color: transparent;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.3),
    0 12px 24px rgba(2, 8, 23, 0.2);
}

#module-acompanhamento .acompanhamento-tab.active {
  color: rgb(240, 249, 255);
  border-bottom-color: transparent;
  background:
    linear-gradient(145deg, rgba(9, 22, 45, 0.98), rgba(14, 40, 74, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 30px rgba(34, 211, 238, 0.12);
}

#module-acompanhamento .widget-card,
#module-acompanhamento .srs-summary-card,
#module-acompanhamento .srs-stat-card,
#module-acompanhamento .srs-revision-card,
#module-acompanhamento .heatmap-section,
#module-acompanhamento .insights-section {
  border-radius: 1.15rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(10, 18, 34, 0.96), rgba(17, 28, 52, 0.9));
  box-shadow:
    0 24px 54px rgba(2, 8, 23, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

#module-acompanhamento .widget-header {
  border-bottom: 1px solid rgba(71, 85, 105, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

#module-acompanhamento .widget-title,
#module-acompanhamento .widget-title [data-lucide],
#module-acompanhamento .widget-title i {
  color: rgb(226, 232, 240);
}

#module-acompanhamento .kpi-card {
  overflow: hidden;
  box-shadow:
    0 16px 34px rgba(2, 8, 23, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#module-acompanhamento .kpi-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 40px rgba(2, 8, 23, 0.3),
    0 0 28px rgba(34, 211, 238, 0.08);
}

.analysis-filter-panel,
.analysis-table-shell {
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.35);
  background: rgba(8, 15, 31, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

#history-general-table {
  width: 100%;
  table-layout: fixed;
}

#history-general-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 31, 57, 0.98), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(71, 85, 105, 0.55);
  color: rgb(148, 163, 184);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#history-general-table th:nth-child(1) { width: 7.5rem; }
#history-general-table th:nth-child(2) { width: 12rem; }
#history-general-table th:nth-child(3) { width: 15rem; }
#history-general-table th:nth-child(4) { width: 7.5rem; }
#history-general-table th:nth-child(5) { width: 8rem; }
#history-general-table th:nth-child(6) { width: 6.5rem; }
#history-general-table th:nth-child(8) { width: 6.5rem; }

#acompanhamento-view-missions table th:last-child,
#acompanhamento-view-missions table td:last-child {
  width: 10.5rem;
  min-width: 10.5rem;
}

#history-general-table th:nth-child(3),
#history-general-table td:nth-child(3) {
  min-width: 13rem;
}

#history-general-table th:last-child,
#history-general-table td:last-child {
  width: 6.5rem;
  min-width: 6.5rem;
}

#history-general-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#history-general-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.06);
}

.analysis-table-row td {
  border-bottom: 1px solid rgba(71, 85, 105, 0.28);
}

.analysis-topic-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.analysis-topic-title {
  color: rgb(241, 245, 249);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-topic-parent {
  color: rgb(103, 232, 249);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-icon-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.analysis-icon-btn:hover {
  transform: translateY(-1px);
}

.analysis-icon-btn--edit {
  color: rgb(56, 189, 248);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.analysis-icon-btn--edit:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.analysis-icon-btn--delete {
  color: rgb(248, 113, 113);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.analysis-icon-btn--delete:hover {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.12);
}

.analysis-icon-btn svg,
.analysis-action-pill svg {
  width: 1rem;
  height: 1rem;
  display: block;
  stroke-width: 2.1;
  flex-shrink: 0;
}

.analysis-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 9.5rem;
}

.analysis-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.5);
  background:
    linear-gradient(145deg, rgba(8, 15, 31, 0.96), rgba(18, 31, 58, 0.82));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.analysis-action-pill:hover {
  transform: translateY(-1px);
}

.analysis-action-pill--primary {
  color: rgb(103, 232, 249);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.08);
}

.analysis-action-pill--primary:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.14);
}

.analysis-action-pill--danger {
  color: rgb(248, 113, 113);
  border-color: rgba(248, 113, 113, 0.26);
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.08);
}

.analysis-action-pill--danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 28px rgba(248, 113, 113, 0.14);
}

.analysis-mission-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.analysis-mission-date-main {
  color: rgb(241, 245, 249);
  font-weight: 700;
}

.analysis-mission-date-sub {
  color: rgb(103, 232, 249);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.analysis-mission-discipline {
  font-weight: 700;
  color: rgb(226, 232, 240);
}

.analysis-mission-progress,
.analysis-mission-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(71, 85, 105, 0.35);
  font-weight: 700;
}

.analysis-mission-progress {
  color: rgb(226, 232, 240);
}

.analysis-mission-time {
  color: rgb(125, 211, 252);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.08);
}

#acompanhamento-view-missions .widget-card:first-of-type .kpi-card:nth-child(1) {
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.24),
    0 0 26px rgba(34, 211, 238, 0.08);
}

#acompanhamento-view-missions .widget-card:first-of-type .kpi-card:nth-child(2) {
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.24),
    0 0 26px rgba(250, 204, 21, 0.08);
}

#acompanhamento-view-missions .widget-card:first-of-type .kpi-card:nth-child(3) {
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.24),
    0 0 26px rgba(168, 85, 247, 0.08);
}

#acompanhamento-view-missions .widget-card:first-of-type .kpi-card:nth-child(4) {
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.24),
    0 0 26px rgba(59, 130, 246, 0.08);
}

#acompanhamento-view-missions .input-form,
#acompanhamento-view-history .input-form,
#acompanhamento-view-discipline .input-form,
#acompanhamento-view-srs .srs-filter-select {
  border-radius: 0.95rem;
  border-color: rgba(71, 85, 105, 0.55);
  background: linear-gradient(145deg, rgba(10, 18, 34, 0.95), rgba(18, 31, 58, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

#acompanhamento-view-missions .input-form:focus,
#acompanhamento-view-history .input-form:focus,
#acompanhamento-view-discipline .input-form:focus,
#acompanhamento-view-srs .srs-filter-select:focus {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.08),
    0 0 28px rgba(34, 211, 238, 0.08);
}

#acompanhamento-view-missions table thead th,
#acompanhamento-view-history table thead th,
#acompanhamento-view-discipline table thead th {
  background: linear-gradient(180deg, rgba(26, 39, 69, 0.96), rgba(18, 31, 58, 0.94));
}

#module-acompanhamento .srs-revision-actions {
  flex-wrap: wrap;
}

#module-acompanhamento .srs-btn {
  min-height: 2.8rem;
  gap: 0.55rem;
  background: rgba(10, 20, 38, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#module-acompanhamento .srs-btn i,
#module-acompanhamento .srs-btn [data-lucide] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

#module-acompanhamento .srs-timer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: rgb(125, 211, 252);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.1);
}

#module-acompanhamento .srs-timer-icon [data-lucide] {
  width: 1rem;
  height: 1rem;
}

#module-acompanhamento .heatmap-section,
#module-acompanhamento #acompanhamento-view-missions .widget-card,
#module-acompanhamento #acompanhamento-view-insights .insights-section {
  overflow: hidden;
}

#module-acompanhamento .widget-card {
  box-shadow:
    0 18px 48px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(56, 189, 248, 0.05);
}

#module-acompanhamento .kpi-card {
  position: relative;
  overflow: hidden;
}

#module-acompanhamento .kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -55% auto;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
  pointer-events: none;
}

#module-acompanhamento .widget-header {
  border-bottom: 1px solid rgba(71, 85, 105, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.52));
}

@media (max-width: 960px) {
  .analysis-hero {
    flex-direction: column;
  }

  .analysis-hero-signals {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }

  #history-general-table {
    min-width: 56rem;
  }
}

@media (max-width: 640px) {
  .analysis-hero {
    padding: 1.25rem;
  }

  .analysis-tabs {
    gap: 0.55rem;
  }

  #module-acompanhamento .acompanhamento-tab {
    width: 100%;
    justify-content: center;
  }

  #module-acompanhamento .srs-btn {
    width: 100%;
    justify-content: center;
  }
}
