/* ===== FATOR R DASHBOARD - ESTILOS CENTRALIZADOS ===== */

/* SOLUÇÃO PARA ESCONDER LOADING GLOBAL NO FATOR R */
/* Esconder o loading global especificamente na tela do Fator R */
body:has(.fator-r-dashboard-page) .loading-block,
body:has(.fator-r-dashboard-page) .loading-block-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Fallback para navegadores que não suportam :has() */
.fator-r-dashboard-page ~ .loading-block,
.fator-r-dashboard-page ~ .loading-block-overlay,
.fator-r-dashboard-page .loading-block,
.fator-r-dashboard-page .loading-block-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Esconder loading global quando estiver na rota do Fator R */
[ng-view] .fator-r-dashboard-page ~ .loading-block,
[ng-view] .fator-r-dashboard-page ~ .loading-block-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Indicador de Progresso Sutil */
.fator-r-dashboard .dashboard-progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9ecef;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.fator-r-dashboard .progress-bar {
  width: 200px;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.fator-r-dashboard .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5c2d91, #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.fator-r-dashboard .progress-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
}

/* Classe pai para escopo específico */
.fator-r-dashboard {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Aplicar Inter para todos os elementos da página Fator R, exceto ícones Font Awesome */
.fator-r-dashboard *:not([class*="fa-"]):not(.fa) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Garantir que ícones Font Awesome usem sua fonte correta */
.fator-r-dashboard .fa,
.fator-r-dashboard [class*="fa-"],
.fator-r-dashboard .fa::before,
.fator-r-dashboard [class*="fa-"]::before {
  font-family: 'FontAwesome' !important;
}

/* ===== LAYOUT PRINCIPAL ===== */
.fator-r-dashboard .dashboard-content {
  padding: 24px;
  display: flex;
  flex-direction: row; /* ← Adicionado para forçar layout horizontal */
  gap: 24px;
  align-items: flex-start;
}

/* Coluna 1: Resumo + Cálculo Automático (40%) */
.fator-r-dashboard .dashboard-col-1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 0 0 40%;
  min-width: 0;
}

/* Coluna 2: Memória de Cálculo (60%) */
.fator-r-dashboard .dashboard-col-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fator-r-dashboard .dashboard-widget {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ===== HEADER WIDGET ===== */
.fator-r-dashboard .fator-r-header-widget {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Seção do botão voltar (fora do painel) */
.fator-r-dashboard .back-button-section {
  margin-left: 26px;
}

/* Botão Voltar - Figma specs */
.fator-r-dashboard .btn-voltar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #483F59;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.fator-r-dashboard .btn-voltar:hover {
  color: #2A2630;
}

.fator-r-dashboard .btn-voltar i {
  font-size: 12px;
}

/* Painel Principal */
.fator-r-dashboard .main-panel {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin: 0 24px;
  overflow: visible;
}

/* Panel Body - usando flexbox */
.fator-r-dashboard .panel-body {
  padding: 15px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
}

/* Lado Esquerdo: Fator R + Dados da Empresa */
.fator-r-dashboard .left-side {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

/* Título Fator R */
.fator-r-dashboard .panel-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  font-style: normal;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0%;
  color: #2A2630;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Informações da empresa */
.fator-r-dashboard .company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nome da empresa - Figma specs */
.fator-r-dashboard .company-name {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #2A2630;
  margin: 0;
}

/* CNPJ - Figma specs */
.fator-r-dashboard .cnpj {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #483F59;
}

/* Vencimento DAS - Figma specs */
.fator-r-dashboard .das-deadline {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483F59;
}

/* Seção de Vencimento */
.fator-r-dashboard .vencimento-section {
  display: flex;
  align-items: center;
}

/* Label do vencimento */
.fator-r-dashboard .vencimento-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #483F59;
}

/* Data do vencimento */
.fator-r-dashboard .vencimento-date {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #483F59;
}

/* Lado Direito: Competência + Vencimento */
.fator-r-dashboard .right-side {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* Seção de Competência */
.fator-r-dashboard .competencia-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Label Competência do DAS - Figma specs */
.fator-r-dashboard .competencia-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #2A2630;
}

.fator-r-dashboard .competencia-picker {
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
}

/* Loading state para competência */
.fator-r-dashboard .competencia-picker.loading-competencia {
  opacity: 0.7;
  pointer-events: none;
}

.fator-r-dashboard .competencia-loading {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: #5c2d91;
  font-size: 16px;
}

/* Customização do month picker para seguir Figma */
.fator-r-dashboard .competencia-picker .month-picker-container {
  font-family: 'Inter', sans-serif !important;
}

/* ===== RESUMO WIDGET ===== */
.fator-r-dashboard .fator-r-resumo-widget {
  background: white;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}

/* Título interno do widget */
.fator-r-dashboard .widget-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #2a2630;
  margin: 0 0 20px 0 !important;
}

/* Comparação de Cálculos - Layout horizontal com divisor */
.fator-r-dashboard .calculos-comparacao {
  display: flex;
  position: relative;
}

/* Divisor vertical no meio */
.fator-r-dashboard .divisor-vertical {
  width: 1px;
  background: #e9ecef;
  margin: 0 24px;
}

/* Seção de Cálculo */
.fator-r-dashboard .calculo-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header do Cálculo */
.fator-r-dashboard .calculo-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Título do Cálculo */
.fator-r-dashboard .calculo-titulo {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #2a2630;
  margin: 0;
}

/* Data do Cálculo */
.fator-r-dashboard .calculo-data {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483f59;
}

/* Meta do Cálculo Hoje */
.fator-r-dashboard .calculo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Avatar do usuário */
.fator-r-dashboard .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  object-fit: cover;
}

/* Dados do Cálculo */
.fator-r-dashboard .calculo-dados {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info Fator R */
.fator-r-dashboard .fator-r-info {
  display: flex;
  flex-direction: column;
}

.fator-r-dashboard .fator-r-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483f59;
}

.fator-r-dashboard .fator-r-valor {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #dc3545;
}

.fator-r-dashboard .fator-r-valor-nodata {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #2a2630;
}

/* Fator R hoje (vermelho) */
.fator-r-dashboard .fator-r-hoje {
  color: #2a2630;
}

/* Info Pró-labore */
.fator-r-dashboard .pro-labore-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fator-r-dashboard .pro-labore-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483f59;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fator-r-dashboard .pro-labore-tooltip {
  color: #6c757d;
  font-size: 12px;
}

.fator-r-dashboard .pro-labore-valor {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

/* Seção de Diferença */
.fator-r-dashboard .diferenca-section {
  background: #f8f7fb;
  border-radius: 8px;
  padding: 20px 24px;
}

.fator-r-dashboard .diferenca-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fator-r-dashboard .diferenca-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

.fator-r-dashboard .diferenca-valor {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

/* Loading state do resumo */
.fator-r-dashboard .resumo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.fator-r-dashboard .resumo-loading .fa-spinner {
  color: #5c2d91;
}

/* ===== CÁLCULO AUTOMÁTICO WIDGET ===== */
.fator-r-dashboard .fator-r-calculo-automatico-widget {
  background: white;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Widget Content */
.fator-r-dashboard .widget-content {
  display: flex;
  flex-direction: column;
}

/* Header do Widget */
.fator-r-dashboard .widget-header {
  display: flex;
  align-items: baseline;
  margin: 0 0 24px 0;
  gap: 12px;
}

/* Status Badge */
.fator-r-dashboard .status-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
}

.fator-r-dashboard .status-badge.status-ativo {
  background: #DBFFF2;
  color: #0C7952;
}

.fator-r-dashboard .status-badge.status-inativo {
  background: #FFEDDD;
  color: #8F4B0D;
}

/* Seção de Histórico */
.fator-r-dashboard .historico-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Título do Histórico */
.fator-r-dashboard .historico-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  margin: 0;
}

/* Lista do Histórico */
.fator-r-dashboard .historico-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Item do Histórico */
.fator-r-dashboard .historico-item {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #EAE6F0;
}

.fator-r-dashboard .historico-item:last-child {
  border-bottom: none;
}

/* Paginação */
.fator-r-dashboard .paginacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EAE6F0;
}

.fator-r-dashboard .paginacao-info {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483F59;
}

.fator-r-dashboard .paginacao-container {
  display: flex;
  align-items: center;
  border: 1px solid #EAE6F0;
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.fator-r-dashboard .btn-pagina {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  background: white;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #8A7F99;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.fator-r-dashboard .btn-pagina:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: #EAE6F0;
}

.fator-r-dashboard .btn-pagina:hover:not(:disabled) {
  background: #F8F7FB;
}

.fator-r-dashboard .btn-pagina:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fator-r-dashboard .btn-pagina-ativo {
  background: #EAE6F0;
  color: #483F59;
  font-weight: 600;
}

.fator-r-dashboard .btn-pagina-ellipsis {
  background: #F8F7FB;
  color: #8A7F99;
  cursor: default;
  font-weight: 400;
}

.fator-r-dashboard .btn-pagina-ellipsis:hover {
  background: #F8F7FB;
}

.fator-r-dashboard .btn-prev {
  border-radius: 6px 0 0 6px;
}

.fator-r-dashboard .btn-next {
  border-radius: 0 6px 6px 0;
}

/* Texto do Histórico */
.fator-r-dashboard .historico-texto {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483F59;
}

/* Estado Vazio do Histórico */
.fator-r-dashboard .historico-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  padding: 24px 0;
}

.fator-r-dashboard .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.fator-r-dashboard .empty-icon {
  width: 48px;
}

.fator-r-dashboard .empty-message {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
  margin: 0;
}

/* ===== MEMÓRIA DE CÁLCULO WIDGET ===== */
.fator-r-dashboard .fator-r-memoria-calculo-widget {
  background: white;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 100%;
}

/* Conteúdo da Memória */
.fator-r-dashboard .memoria-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Header da Memória */
.fator-r-dashboard .memoria-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fator-r-dashboard .memoria-header .widget-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #2A2630;
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  margin: 0 !important;
}

/* Período da Memória */
.fator-r-dashboard .memoria-periodo {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: #6C757D !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Navegação por Abas */
.fator-r-dashboard .memoria-tabs {
  display: flex;
  background: #F8F9FA;
  border-radius: 8px;
  padding: 4px;
  width: 100%;
}

/* Botões das Abas */
.fator-r-dashboard .tab-button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #6C757D;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  flex: 1;
  text-align: center;
}

.fator-r-dashboard .tab-button:hover {
  color: #2A2630;
  background: rgba(255, 255, 255, 0.5);
}

.fator-r-dashboard .tab-button.tab-active,
.fator-r-dashboard .tab-button.active {
  color: #2A2630;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Conteúdo das Abas */
.fator-r-dashboard .memoria-tab-content {
  padding-top: 16px;
}

/* Dados de Cálculo */
.fator-r-dashboard .memoria-tab-content .calculo-dados {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Linha de Cálculo */
.fator-r-dashboard .linha-calculo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
}


/* Info da Linha */
.fator-r-dashboard .linha-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Label da Linha */
.fator-r-dashboard .linha-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
}

/* Valor da Linha */
.fator-r-dashboard .linha-valor {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
}

/* Código da Linha (RTB12, FS12) */
.fator-r-dashboard .linha-codigo {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #7F738F;
}

/* Links das Linhas */
.fator-r-dashboard .linha-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #7537AE;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.fator-r-dashboard .linha-link:hover {
  color: #7537AE;
  background-color: rgba(117, 55, 174, 0.1);
  text-decoration: underline;
}

/* Cálculo do Fator R */
.fator-r-dashboard .fator-r-calculo {
  margin-top: 25px;
}

/* Linha do Cálculo */
.fator-r-dashboard .calculo-linha {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
}

/* Título "Fator R" */
.fator-r-dashboard .calculo-titulo {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
}

/* Fórmula do Cálculo com Background */
.fator-r-dashboard .calculo-formula {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 10px;
  color: #2A2630;
  background: #F8F9FA;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Resultado do Fator R */
.fator-r-dashboard .fator-r-resultado {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

/* Ícone de Informação */
.fator-r-dashboard .fator-r-info-icon {
  color: #7F738F;
  font-size: 14px;
  width: 16px;
  height: 16px;
}

/* Ícone de Informação Bold */
.fator-r-dashboard .fator-r-info-bold-icon {
  color: #7F738F;
  font-size: 14px;
  width: 20px;
  height: 20px;
}

/* Tooltip personalizado para o Fator R */
.fator-r-dashboard .apuration-update-icon-tooltip {
  opacity: 1 !important;
}

.fator-r-dashboard .apuration-update-icon-tooltip-inner {
  background-color: #2A2630 !important;
  color: white !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  max-width: 200px !important;
}

.fator-r-dashboard .apuration-update-icon-tooltip-arrow {
  border-top-color: #2A2630 !important;
}

/* Estado sem dados para Memória de Cálculo */
.fator-r-dashboard .memoria-no-data {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 40px 20px;
}

.fator-r-dashboard .no-data-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.fator-r-dashboard .no-data-icon {
  font-size: 48px;
  color: #9CA3AF;
  opacity: 0.6;
}

.fator-r-dashboard .no-data-message {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  margin: 0;
  line-height: 20px;
}

/* ===== LOADING STATES GERAIS ===== */
.fator-r-dashboard .widget-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.fator-r-dashboard .widget-loading .fa-spinner {
  color: #5c2d91;
}

/* ===== ERROR STATES GERAIS ===== */
.fator-r-dashboard .widget-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #dc3545;
  font-size: 14px;
}

.fator-r-dashboard .widget-error .fa-exclamation-triangle {
  color: #dc3545;
}

/* ===== PAGINAÇÃO DAS ALTERAÇÕES ===== */
.fator-r-dashboard .alteracoes-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
}

.fator-r-dashboard .pagination-info {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6c757d;
}

.fator-r-dashboard .pagination-controls {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 2px;
}

.fator-r-dashboard .pagination-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fator-r-dashboard .pagination-btn:hover:not(:disabled) {
  background: rgba(92, 45, 145, 0.1);
  color: #2A2630;
}

.fator-r-dashboard .pagination-btn.active {
  background: #EAE6F0;
  color: #2A2630;
  font-weight: 500;
}

.fator-r-dashboard .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fator-r-dashboard .pagination-btn.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== CONTEÚDO DAS ALTERAÇÕES ===== */
.fator-r-dashboard .alteracoes-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fator-r-dashboard .alteracoes-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.fator-r-dashboard .alteracoes-legend-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fator-r-dashboard .alteracoes-vertical-line {
  width: 3px;
  height: 24px;
  background: #EAE6F0;
  border-radius: 2px;
}

.fator-r-dashboard .alteracoes-status {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
  margin: 0;
}

/* ===== ACCORDEONS ===== */
.fator-r-dashboard .accordion-item {
  border: none;
  border-radius: 0;
  margin-bottom: 16px;
  overflow: visible;
}

.fator-r-dashboard .accordion-header {
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: none;
}

.fator-r-dashboard .accordion-header:hover {
  background: transparent;
}

.fator-r-dashboard .accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #2a2630;
  flex: 1;
}

.fator-r-dashboard .accordion-title i {
  color: #6c757d;
  font-size: 16px;
}

.fator-r-dashboard .accordion-badge {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.fator-r-dashboard .accordion-arrow {
  color: #6c757d;
  font-size: 14px;
  transition: transform 0.2s;
}

.fator-r-dashboard .accordion-arrow.rotated {
  transform: rotate(180deg);
}

.fator-r-dashboard .accordion-content {
  background: transparent;
  padding: 16px 0 0 24px;
}

.fator-r-dashboard .alteracoes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fator-r-dashboard .alteracao-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fator-r-dashboard .alteracao-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .alteracao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fator-r-dashboard .alteracao-competencia {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

.fator-r-dashboard .alteracao-diferenca {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  padding: 4px 4px;
  border-radius: 4px;
}

.fator-r-dashboard .alteracao-diferenca.positiva {
  background: #d4edda;
  color: #155724;
}

.fator-r-dashboard .alteracao-diferenca.negativa {
  background: #f8d7da;
  color: #721c24;
}

.fator-r-dashboard .alteracao-valores {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

.fator-r-dashboard .valor-original {
  font-weight: 400;
}

.fator-r-dashboard .valor-alterado {
  font-weight: 500;
}

.fator-r-dashboard .arrow-right-icon {
  width: 16px;
  height: 16px;
  margin: 0 8px;
  filter: invert(1);
}

.fator-r-dashboard .no-alteracoes {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 14px;
}

/* ===== FATOR R MONTH PICKER ===== */
.fator-r-dashboard .fator-r-month-picker {
  position: relative;
  display: inline-block;
}

.fator-r-dashboard .month-picker-container {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 5px 7px;
  min-width: 200px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.fator-r-dashboard .month-picker-container:hover {
  border-color: #D1D5DB;
}

.fator-r-dashboard .month-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.fator-r-dashboard .month-arrow:hover {
  opacity: 0.7;
}

.fator-r-dashboard .month-arrow img {
  width: 16px;
  height: 16px;
}

.fator-r-dashboard .calendar-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.fator-r-dashboard .calendar-button:hover {
  opacity: 0.7;
}

.fator-r-dashboard .calendar-button img {
  width: 16px;
  height: 16px;
}

.fator-r-dashboard .month-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  cursor: pointer;
}

.fator-r-dashboard .month-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  font-family: 'Inter', sans-serif;
}

/* Modal do calendário */
.fator-r-dashboard .calendar-modal {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  margin-top: 4px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.fator-r-dashboard .calendar-content {
  padding: 16px;
}

.fator-r-dashboard .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.fator-r-dashboard .year-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.fator-r-dashboard .year-arrow:hover {
  opacity: 0.7;
}

.fator-r-dashboard .year-arrow img {
  width: 16px;
  height: 16px;
}

.fator-r-dashboard .year-text {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  font-family: 'Inter', sans-serif;
}

.fator-r-dashboard .months-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fator-r-dashboard .month-row {
  display: flex;
  gap: 8px;
}

.fator-r-dashboard .month-item {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  font-family: 'Inter', sans-serif;
}

.fator-r-dashboard .month-item:hover {
  background-color: #F3F4F6;
  color: #374151;
}

.fator-r-dashboard .month-item.active {
  background-color: #3B82F6;
  color: white;
}

.fator-r-dashboard .month-item.active:hover {
  background-color: #2563EB;
}

.fator-r-dashboard .month-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  /* Layout principal */
  .fator-r-dashboard .dashboard-content {
    padding: 16px;
    gap: 16px;
    flex-direction: column;
  }
  
  /* Colunas em mobile: stack vertical */
  .fator-r-dashboard .dashboard-col-1,
  .fator-r-dashboard .dashboard-col-2 {
    flex: 1;
    width: 100%;
    gap: 16px;
  }
  
  /* Header widget */
  .fator-r-dashboard .back-button-section {
    padding: 16px;
  }
  
  .fator-r-dashboard .main-panel {
    margin: 0 16px;
  }
  
  .fator-r-dashboard .panel-header,
  .fator-r-dashboard .panel-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .fator-r-dashboard .panel-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
/*   
  .fator-r-dashboard .left-side {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  } */
  
  .fator-r-dashboard .right-side {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .fator-r-dashboard .competencia-section {
    width: 100%;
    align-items: flex-start;
  }
  
  .fator-r-dashboard .vencimento-section {
    width: 100%;
  }
      
  .fator-r-dashboard .panel-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .fator-r-dashboard .btn-voltar {
    font-size: 11px;
    line-height: 16px;
  }
  


  /* Resumo widget */
  .fator-r-dashboard .fator-r-resumo-widget {
    padding: 16px;
  }

  .fator-r-dashboard .calculos-comparacao {
    flex-direction: column;
    gap: 20px;
  }

  .fator-r-dashboard .divisor-vertical {
    display: none;
  }

  .fator-r-dashboard .diferenca-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Cálculo automático widget */
  .fator-r-dashboard .fator-r-calculo-automatico-widget {
    padding: 16px;
  }
  
  .fator-r-dashboard .widget-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fator-r-dashboard .widget-header > :first-child {
    margin: 0 0 15px 0 !important;
  }
  
  .fator-r-dashboard .historico-section {
    gap: 12px;
  }

  /* Paginação em mobile */
  .fator-r-dashboard .paginacao {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .fator-r-dashboard .paginacao-container {
    justify-content: center;
  }

  .fator-r-dashboard .memoria-content {
    gap: 12px;
  }

  .fator-r-dashboard .memoria-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .fator-r-dashboard .linha-info {
    width: 100%;
  }

  /* Header da memória em mobile */
  .fator-r-dashboard .memoria-header {
    padding: 20px 16px 20px 16px;
    gap: 10px;
  }

  /* Abas em mobile */
  .fator-r-dashboard .memoria-tabs {
    margin: 0 16px 20px 16px;
    padding: 3px;
  }

  .fator-r-dashboard .tab-button {
    padding: 10px 12px;
    font-size: 13px;
  }
}

.fator-r-dashboard .information-tabs-section {
  background: #f8f7fb;
  border-radius: 8px;
  padding: 16px;
}

.fator-r-dashboard .information-tabs-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .information-tabs-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2a2630;
}

.fator-r-dashboard .linha-calculo-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.fator-r-dashboard .linha-horizontal-icon {
  width: 100%;
  height: 100% !important;
  height: 1px;
}

.fator-r-dashboard .alteracoes-badge-red {
  background-color: #DA3232;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.fator-r-dashboard .alteracoes-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.fator-r-dashboard .alteracoes-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.fator-r-dashboard .alteracoes-legend {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #2a2630;
  margin: 0;
}

.fator-r-dashboard .alteracoes-legend-number {
  font-weight: 600;
}


.fator-r-dashboard .alteracao-header {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #483F59;
}

.fator-r-dashboard .alteracao-acao {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
}

/* ===== DRAWER DE DETALHES ===== */
.fator-r-dashboard .fator-r-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.fator-r-dashboard .fator-r-drawer {
  width: 600px;
  max-width: 90vw;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.fator-r-dashboard .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0 24px;
  background: white;
}

.fator-r-dashboard .drawer-left-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fator-r-dashboard .drawer-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  color: #2A2630;
  margin: 0;
  letter-spacing: 0%;
}

.fator-r-dashboard .drawer-subtitle-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.fator-r-dashboard .drawer-period-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.fator-r-dashboard .drawer-period-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  white-space: nowrap;
  flex-shrink: 0;
}

.fator-r-dashboard .drawer-period-dates {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  white-space: nowrap;
  flex-shrink: 0;
}

.fator-r-dashboard .drawer-tipo-calculo {
  display: flex;
  padding: 2px 8px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: #F5ECFE;
  color: #7537AE;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  flex-shrink: 0;
}

/* ===== WIDGET PRÓ-LABORE ===== */
.fator-r-dashboard .fator-r-prolabore-widget {
  background: #ffffff;
  border: 1px solid #EAE6F0;
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-header {
  margin-bottom: 24px;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #2A2630;
  margin: 0;
}

/* Abas do Pró-labore */
.fator-r-dashboard .prolabore-tabs {
  background: #F8F7FB;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
}

.fator-r-dashboard .prolabore-tabs .tab-button {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #483F59;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.fator-r-dashboard .prolabore-tabs .tab-button.active {
  background: #ffffff;
  color: #2A2630;
  font-weight: 500;
  box-shadow: 0px 0px 12px -2px rgba(0,0,0,0.12);
}

.fator-r-dashboard .prolabore-tabs .tab-button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

/* Informação do Cálculo */
.fator-r-dashboard .prolabore-info-section {
  margin-bottom: 24px;
}

.fator-r-dashboard .prolabore-calculation-info {
  background: #F8F7FB;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .prolabore-calculation-info i {
  color: #7F738F;
  font-size: 16px;
  flex-shrink: 0;
}

.fator-r-dashboard .prolabore-calculation-info span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
}

/* Seção de Dados */
.fator-r-dashboard .prolabore-data-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Total */
.fator-r-dashboard .prolabore-total-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fator-r-dashboard .prolabore-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .prolabore-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  flex: 1;
}

.fator-r-dashboard .prolabore-value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  text-align: right;
  min-width: 120px;
}

/* Por Sócio */
.fator-r-dashboard .prolabore-socios-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fator-r-dashboard .prolabore-socios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fator-r-dashboard .prolabore-socios-list {
  border-left: 2px solid #EAE6F0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fator-r-dashboard .prolabore-socio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .socio-nome {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  flex: 1;
}

.fator-r-dashboard .socio-valor {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  text-align: right;
  min-width: 120px;
}

/* Estados de Loading, Error e No Data */
.fator-r-dashboard .fator-r-prolabore-widget .widget-loading,
.fator-r-dashboard .fator-r-prolabore-widget .widget-error,
.fator-r-dashboard .fator-r-prolabore-widget .widget-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-loading i {
  font-size: 24px;
  color: #7F738F;
  margin-bottom: 16px;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-loading span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #483F59;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-error i {
  font-size: 24px;
  color: #DA3232;
  margin-bottom: 16px;
}

.fator-r-dashboard .fator-r-prolabore-widget .widget-error span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #DA3232;
}

.fator-r-dashboard .fator-r-prolabore-widget .no-data-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.fator-r-dashboard .fator-r-prolabore-widget .no-data-message {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #483F59;
  margin: 0;
}

/* Estado de Cálculo Futuro */
.fator-r-dashboard .fator-r-prolabore-widget .prolabore-future-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.fator-r-dashboard .fator-r-prolabore-widget.future-calculation {
  height: 290px; /* Altura fixa quando for cálculo futuro */
}

/* Seção de Diferença */
.fator-r-dashboard .prolabore-diferenca-section {
  border-left: 2px solid #EAE6F0;
  padding-left: 16px;
  margin-bottom: 24px;
}

.fator-r-dashboard .prolabore-diferenca-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .prolabore-diferenca-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  flex: 1;
}

.fator-r-dashboard .prolabore-diferenca-value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  text-align: right;
  min-width: 120px;
}

/* Ajustes no Layout das Colunas */
.fator-r-dashboard .dashboard-col-1 {
  width: 36.3%;
  gap: 24px;
}

.fator-r-dashboard .dashboard-col-2 {
  width: 61.9%;
  gap: 24px;
}

.fator-r-dashboard .drawer-close-btn {
  background: #FFFFFF;
  border: 1px solid #EAE6F0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.fator-r-dashboard .drawer-close-btn:hover {
  background-color: #F8F7FB;
  border-color: #D1D5DB;
}

/* X customizado do botão fechar */
.fator-r-dashboard .drawer-close-btn::before,
.fator-r-dashboard .drawer-close-btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #342D42;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fator-r-dashboard .drawer-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fator-r-dashboard .drawer-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fator-r-dashboard .drawer-loading,
.fator-r-dashboard .drawer-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
  color: #6C757D;
  font-size: 14px;
}

.fator-r-dashboard .drawer-error {
  color: #DC3545;
}

.fator-r-dashboard .drawer-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* Resumo do Período */
.fator-r-dashboard .periodo-resumo {
  margin-bottom: 32px;
  padding: 16px;
  border-radius: 8px;
  background: #F8F7FB;
  width: 100%;
  box-sizing: border-box;
}

.fator-r-dashboard .resumo-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fator-r-dashboard .resumo-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .resumo-valor {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

/* Detalhamento por Mês */
.fator-r-dashboard .detalhamento-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fator-r-dashboard .detalhamento-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #2A2630;
  margin: 0;
  letter-spacing: 0%;
}

/* Accordion de Períodos */
.fator-r-dashboard .periodos-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #EAE6F0;
  border-radius: 8px;
  overflow: hidden;
}

.fator-r-dashboard .periodo-accordion-item {
  border-bottom: 1px solid #EAE6F0;
}

.fator-r-dashboard .periodo-accordion-item:last-child {
  border-bottom: none;
}

.fator-r-dashboard .periodo-accordion-header {
  cursor: pointer;
  padding: 16px 24px;
  transition: all 0.2s ease;
}

.fator-r-dashboard .periodo-accordion-header:hover {
  background-color: #F8F7FB;
}

.fator-r-dashboard .periodo-accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fator-r-dashboard .periodo-accordion-title .accordion-arrow {
  font-size: 12px;
  color: #6C757D;
  transition: transform 0.2s ease;
  width: 16px;
  text-align: center;
}

.fator-r-dashboard .periodo-accordion-title .accordion-arrow.rotated {
  transform: rotate(180deg);
}

.fator-r-dashboard .periodo-accordion-title .periodo-mes {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  text-transform: capitalize;
  letter-spacing: 0%;
}

.fator-r-dashboard .periodo-accordion-title .periodo-valor {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #625873;
  text-align: right;
  letter-spacing: 0%;
}

/* Conteúdo do Accordion */
.fator-r-dashboard .periodo-accordion-content {
  padding: 16px 24px 16px 48px;
  border-top: 1px solid #EAE6F0;
}

.fator-r-dashboard .periodo-detalhes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fator-r-dashboard .periodo-detalhes .detalhe-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fator-r-dashboard .periodo-detalhes .detalhe-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6C757D;
  letter-spacing: 0%;
}

.fator-r-dashboard .periodo-detalhes .detalhe-valor {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

/* ===== RESUMO DRAWER FIGMA STYLE ===== */
.fator-r-dashboard .periodo-resumo-figma {
  background: #F8F7FB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.fator-r-dashboard .resumo-header-figma {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.fator-r-dashboard .resumo-label-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .resumo-valor-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .resumo-divider-figma {
  width: 100%;
  height: 1px;
  background: #EAE6F0;
  margin: 0;
}

.fator-r-dashboard .resumo-detalhamento-figma {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fator-r-dashboard .detalhe-linha-figma {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fator-r-dashboard .detalhe-label-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .detalhe-valor-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .periodo-detalhes-figma {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== ACCORDION CONTENT FIGMA STYLE ===== */
.fator-r-dashboard .periodo-accordion-content-figma {
  padding: 16px 16px 16px 16px;
  border-top: 1px solid #EAE6F0;
}

.fator-r-dashboard .periodo-detalhes-container-figma {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 9px; /* Offset para a borda esquerda */
}

.fator-r-dashboard .periodo-detalhes-with-border-figma {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  position: relative;
}

/* Borda esquerda conforme Figma */
.fator-r-dashboard .periodo-detalhes-with-border-figma::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #EAE6F0;
}

/* Ajuste nos valores para seguir exatamente as cores do Figma */
.fator-r-dashboard .periodo-detalhes-with-border-figma .detalhe-valor-figma {
  color: #625873; /* Cor específica do Figma para valores */
}

/* Seções de pró-labore por sócio (para uso futuro) */
.fator-r-dashboard .prolabore-socios-section-figma {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fator-r-dashboard .prolabore-socios-title-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  margin: 0;
  letter-spacing: 0%;
}

.fator-r-dashboard .prolabore-socios-container-figma {
  border: 1px solid #EAE6F0;
  border-radius: 8px;
  padding: 12px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fator-r-dashboard .socio-item-figma {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fator-r-dashboard .socio-nome-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2A2630;
  letter-spacing: 0%;
}

.fator-r-dashboard .socio-valor-figma {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #625873;
  letter-spacing: 0%;
}

.fator-r-dashboard .socio-divider-figma {
  width: 100%;
  height: 1px;
  background: #EAE6F0;
}