.feedback-error {
  padding: 10px 20px;
  background: #fdf5f5;
  border-radius: var(--ld-border-radius);
  color: #e60808;
  margin: 12px 0 12px;
  border: 1px solid #ffbfbf;
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: rgb(255, 191, 191);
  border-left: 3px solid;
}

.feedback-success {
  padding: 10px 20px;
  background: #f5fdf7;
  border-radius: var(--ld-border-radius);
  color: #1ca14a;
  margin: 12px 0 12px;
  border: 1px solid #bfffd1;
  border-left: 3px solid #1ca14a;
}

.dashicons.spin {
  animation: dashicons-spin 1s infinite;
  animation-timing-function: linear;
}

@keyframes dashicons-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chart-period-buttons {
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.chart-option {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  margin-right: 15px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.chart-option:hover {
  color: #2b45bc;
  text-decoration: none;
  border-bottom-color: #2b45bc;
}

.chart-option.active {
  color: #2b45bc;
  border-bottom: 2px solid #2b45bc;
  font-weight: 500;
}

.chart-option:disabled,
.chart-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.chart-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chart-spinner-container {
  text-align: center;
}

.chart-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3e3e3;
  border-top: 4px solid #2b45bc;
  border-radius: 50%;
  animation: chart-spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes chart-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* Estilo com dashicons spinner (WordPress nativo) */
.chart-dashicons-loader {
  font-size: 30px;
  color: #2b45bc;
  animation: dashicons-spin 1s linear infinite;
  margin: 0 auto 15px;
  display: block;
  text-align: center;
}

@keyframes dashicons-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Estilos para botões desabilitados durante loading */
.chart-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.chart-option:disabled,
.chart-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Container e responsivo */
.container {
  max-width: 1170px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
}

/* Tabela principal */
.fund-summary-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 20px 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

/* Cabeçalho da tabela */
.fund-summary-table thead th {
  padding: 20px 10px;
  background: #09132d;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
}

.fund-summary-table thead th:first-child {
  padding-left: 46px;
  text-align: left;
}

.fund-summary-table thead th:last-child {
  padding-right: 16px;
}

/* Células do corpo da tabela */
.fund-summary-table tbody td {
  padding: 20px 10px;
  color: #808080;
  font-size: 14px;
  font-weight: 200;
  text-align: center;
}

.fund-summary-table tbody td:first-child {
  position: relative;
  padding-left: 46px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.fund-summary-table tbody td:first-child::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 22px);
  height: 1px;
  background: #b6b7bb;
}

.fund-summary-table tbody td:last-child {
  position: relative;
  padding-right: 46px;
  font-weight: 600;
  color: #2b45bc;
}

.fund-summary-table tbody td:last-child::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 22px);
  height: 1px;
  background: #b6b7bb;
}

.fund-summary-table tbody td:not(:first-child):not(:last-child) {
  border-bottom: 1px solid #b6b7bb;
}

/* Classes específicas do projeto */
.fund-summary-table .js-name {
  font-weight: 600;
  color: #333;
  text-align: left;
}

.fund-summary-table .js-date-initial {
  font-weight: 500;
  color: #555;
}

.fund-summary-table .js-quota {
  font-family: monospace;
  font-size: 14px;
  color: #555;
}

.fund-summary-table .js-day,
.fund-summary-table .js-month,
.fund-summary-table .js-year,
.fund-summary-table .js-12m,
.fund-summary-table .js-initial {
  font-weight: 500;
  font-size: 15px;
}

/* Classes de cor para performance */
.fund-summary-table .positive {
  color: #28a745 !important;
  font-weight: 600;
}

.fund-summary-table .negative {
  color: #dc3545 !important;
  font-weight: 600;
}

.fund-summary-table .neutral {
  color: #6c757d !important;
}

.fund-summary-table .js-pat {
  font-weight: 600;
  color: #2b45bc;
  font-size: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
  .fund-summary-table {
    font-size: 12px;
    margin: 10px 0;
  }

  .fund-summary-table thead th,
  .fund-summary-table tbody td {
    padding: 12px 6px;
  }

  .fund-summary-table thead th:first-child,
  .fund-summary-table tbody td:first-child {
    padding-left: 20px;
  }

  .fund-summary-table thead th:last-child,
  .fund-summary-table tbody td:last-child {
    padding-right: 20px;
  }

  .fund-summary-table tbody td {
    font-size: 13px;
  }

  .fund-summary-table .js-quota {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .fund-summary-table thead th,
  .fund-summary-table tbody td {
    padding: 8px 4px;
    font-size: 11px;
  }

  .fund-summary-table thead th:first-child,
  .fund-summary-table tbody td:first-child {
    padding-left: 12px;
  }

  .fund-summary-table thead th:last-child,
  .fund-summary-table tbody td:last-child {
    padding-right: 12px;
  }

  .fund-summary-table .js-quota {
    font-size: 10px;
  }
}

.summary-loading {
  background: #f9f9f9 !important;
}

.summary-loading td {
  padding: 40px 20px !important;
  text-align: center !important;
  border-bottom: none !important;
  width: 100% !important;
  position: relative;
}

.summary-loading td::before {
  display: none !important;
}

.summary-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-height: 80px;
}

.summary-loading .chart-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e3e3e3;
  border-top: 3px solid #2b45bc;
  border-radius: 50%;
  animation: chart-spin 1s linear infinite;
  margin: 0;
}

.summary-loading .loading-text {
  color: #666;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}
.fund-summary-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 20px 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  min-width: 100%;
}

.summary-loading td[colspan="9"] {
  width: 100% !important;
  max-width: 100% !important;
}

.summary-error {
  background: #fdf5f5 !important;
}

.summary-error td {
  padding: 30px 20px !important;
  text-align: center !important;
  color: #d63638 !important;
  border-bottom: none !important;
  width: 100% !important;
}

.summary-error td::before {
  display: none !important;
}

.summary-error .dashicons {
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
