/* Estilos para o componente AssetPreloader */

.asset-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.asset-preloader__content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

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

.asset-preloader__content h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.5rem;
}

.asset-preloader__content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.progress-container {
  margin: 1.5rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  border-radius: 4px;
  transition: width 0.3s ease;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.progress-text {
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}

.current-asset {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
  min-height: 1.2rem;
}

.asset-preloader__content small {
  color: #888;
  font-size: 0.8rem;
}

/* Botões */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
}

.btn-outline:hover {
  background: #f8f9fa;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Status do cache */
.cache-status {
  margin: 1rem 0;
  text-align: left;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
}

.cache-status h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.cache-item {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.cache-item .status {
  margin-right: 0.5rem;
  width: 20px;
}

.cache-item .path {
  flex: 1 1;
  color: #333;
}

.cache-item .size {
  color: #666;
  font-size: 0.8rem;
}

.status.cached {
  color: #28a745;
}

.status.missing {
  color: #dc3545;
}

/* Ações de erro */
.error-actions {
  margin-top: 1rem;
}

/* Componente de status compacto */
.asset-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-text {
  color: #666;
}

/* Responsivo */
@media (max-width: 600px) {
  .asset-preloader__content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .asset-preloader__content {
    background: #2d3748;
    color: white;
  }
  
  .asset-preloader__content h3 {
    color: white;
  }
  
  .asset-preloader__content p {
    color: #cbd5e0;
  }
  
  .progress-bar {
    background: #4a5568;
  }
  
  .cache-status {
    background: #1a202c;
  }
  
  .asset-status {
    background: #2d3748;
  }

/* Estilos para GlobalAssetIndicator */
.global-asset-indicator {
  font-family: 'Ubuntu', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  z-index: 10000; /* Acima dos snackbars */
}

/* Variante Compact */
.global-asset-indicator.compact {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 60px;
  justify-content: center;
}

/* Variante Detailed */
.global-asset-indicator.detailed {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  min-width: 250px;
  max-width: 300px;
}

.asset-indicator-detailed .status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.asset-indicator-detailed .close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-indicator-detailed .progress-section {
  margin: 0.5rem 0;
}

.asset-indicator-detailed .progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.asset-indicator-detailed .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.asset-indicator-detailed .current-asset {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

.asset-indicator-detailed .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.asset-indicator-detailed .btn-start,
.asset-indicator-detailed .btn-clear {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.asset-indicator-detailed .btn-start:hover {
  background: #f0f0f0;
}

/* Variante Toast */
.global-asset-indicator.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 280px;
  max-width: 350px;
}

.asset-indicator-toast .toast-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.asset-indicator-toast .toast-icon {
  font-size: 1.5rem;
}

.asset-indicator-toast .toast-text {
  flex: 1 1;
}

.asset-indicator-toast .toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.asset-indicator-toast .toast-subtitle {
  font-size: 0.75rem;
  color: #666;
}

.asset-indicator-toast .toast-progress {
  height: 3px;
  background: #e0e0e0;
}

.asset-indicator-toast .toast-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
}

/* Header Asset Status */
.header-asset-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 4px;
  font-size: 1rem;
}

.header-asset-status.ready {
  color: #28a745;
}

.header-asset-status.downloading {
  color: #007bff;
  animation: pulse 2s infinite;
}

.header-asset-status.partial {
  color: #ffc107;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Dark mode para indicadores */
@media (prefers-color-scheme: dark) {
  .global-asset-indicator.detailed,
  .global-asset-indicator.toast {
    background: #2d3748;
    color: white;
    border-color: #4a5568;
  }

  .asset-indicator-detailed .close-btn {
    color: #cbd5e0;
  }

  .asset-indicator-detailed .current-asset {
    color: #a0aec0;
  }

  .asset-indicator-toast .toast-title {
    color: white;
  }

  .asset-indicator-toast .toast-subtitle {
    color: #a0aec0;
  }
}
}

/* ---- Keepit Overview Cards ---- */
.keepit-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 16px;
    gap: 16px;
    padding: 16px 0;
}

.keepit-overview-card {
    background: #fff;
    background: var(--color-content-bg, #fff);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.keepit-overview-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.keepit-overview-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
    letter-spacing: 0.5px;
}

.keepit-overview-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
}

.keepit-overview-card-sub {
    font-size: 12px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
}

/* ---- Keepit Status Badge ---- */
.keepit-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    width: fit-content;
}

/* ---- Keepit Service Cards Carousel ---- */
.keepit-service-cards-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.keepit-service-cards-grid {
    display: flex;
    gap: 25px;
    padding: 4px 0px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* justify-content:  fle; */
    margin: 0 20px;
}

.keepit-service-cards-grid::-webkit-scrollbar {
    display: none;
}

.keepit-service-card {
    background: #fff;
    background: var(--color-content-bg, #fff);
    border: 1px solid #e9ecef;
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    min-width: calc(25% - 20px);
    max-width: calc(25% - 20px);
    flex-shrink: 0;
}

.keepit-service-card:hover {
    box-shadow: 0 4px 16px color-mix(in srgb, #adb5bd 25%, transparent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--svc-color, #adb5bd) 25%, transparent);
    border-color: #adb5bd;
    border-color: var(--svc-color, var(--color-secondary-text, #adb5bd));
}

.keepit-service-card-warning {
    border-color: #d4a017;
}

.keepit-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    border: 1px solid var(--color-border, #dee2e6);
    background: #fff;
    background: var(--color-content-bg, #fff);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 14px;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    transition: background 0.2s;
}

.keepit-carousel-nav:hover {
    background: #f0f0f0;
    background: var(--color-hover-bg, #f0f0f0);
}

.keepit-carousel-nav-left {
    left: -4px;
}

.keepit-carousel-nav-right {
    right: -4px;
}

.keepit-service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.keepit-service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.keepit-service-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
}

.keepit-service-card-backup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
}

.keepit-service-card-backup-value {
    font-weight: 600;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    font-size: 12px;
}

.keepit-service-card-progress {
    width: 100%;
    height: 5px;
    background: #e9ecef;
    background: var(--color-border, #e9ecef);
    border-radius: 3px;
    overflow: hidden;
}

.keepit-service-card-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ---- Keepit Service Detail (focused view) ---- */
.keepit-detail-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px;
    height: 100%;
}

.keepit-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.keepit-detail-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.keepit-detail-header-right {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.keepit-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.keepit-detail-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
}

.keepit-detail-subtitle {
    font-size: 12px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
}

.keepit-detail-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Cards internos */
.keepit-detail-card {
    background: #fff;
    background: var(--color-content-bg, #fff);
    border: 1px solid #e9ecef;
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keepit-detail-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Top row: 3 colunas */
.keepit-detail-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 12px;
    gap: 12px;
}

/* Summary compacto */
.keepit-detail-summary-compact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.keepit-detail-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keepit-detail-summary-label {
    font-size: 11px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
    min-width: 75px;
}

.keepit-detail-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
}

/* Donut */
.keepit-detail-card-donut {
    min-height: 180px;
}

.keepit-detail-donut-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keepit-detail-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keepit-detail-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
}

.keepit-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.keepit-detail-dot-added { background-color: #1b873b; }
.keepit-detail-dot-removed { background-color: #dc3545; }
.keepit-detail-val-added { color: #1b873b; }
.keepit-detail-val-removed { color: #dc3545; }

/* Storage */
.keepit-detail-storage-value {
    font-size: 28px;
    font-weight: 700;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
}

/* Failure info */
.keepit-detail-fail-info {
    border-top: 1px solid #e0e0e0;
    border-top: 1px solid var(--color-border, #e0e0e0);
    padding-top: 8px;
    margin-top: 8px;
}

.keepit-detail-fail-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 4px;
}

.keepit-detail-fail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

.keepit-detail-fail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 11px;
    border-bottom: 1px solid #f0f0f0;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.keepit-detail-fail-list li:last-child {
    border-bottom: none;
}

.keepit-detail-fail-name {
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.keepit-detail-fail-count {
    color: #dc3545;
    font-weight: 500;
    white-space: nowrap;
}

.keepit-detail-fail-more {
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
    font-style: italic;
}

/* Fail list clickable rows */
.keepit-detail-fail-row-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    padding: 3px 4px !important;
}

.keepit-detail-fail-row-clickable:hover {
    background-color: rgba(0, 120, 212, 0.06);
    background-color: var(--color-hover, rgba(0, 120, 212, 0.06));
}

/* Fail detail modal */
.keepit-fail-detail-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keepit-fail-detail-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keepit-fail-detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.keepit-fail-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keepit-fail-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.keepit-fail-detail-label {
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
    min-width: 120px;
    flex-shrink: 0;
}

.keepit-fail-detail-value {
    color: #1b2a4a;
    color: var(--color-primary-text, #1b2a4a);
    word-break: break-all;
}

.keepit-fail-detail-stats {
    display: flex;
    gap: 16px;
}

.keepit-fail-detail-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1 1;
}

.keepit-fail-detail-stat-error {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.keepit-fail-detail-stat-info {
    background-color: rgba(0, 120, 212, 0.08);
    color: #0078d4;
}

.keepit-fail-detail-stat div {
    display: flex;
    flex-direction: column;
}

.keepit-fail-detail-stat-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.keepit-fail-detail-stat-label {
    font-size: 11px;
    opacity: 0.85;
}

.keepit-fail-detail-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.keepit-fail-detail-badge-ok {
    background-color: rgba(27, 135, 59, 0.1);
    color: #1b873b;
}

.keepit-fail-detail-badge-fail {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.keepit-fail-detail-mono {
    font-family: monospace;
    font-size: 12px;
    color: #6c757d;
    color: var(--color-secondary-text, #6c757d);
}

.keepit-fail-detail-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.keepit-fail-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keepit-fail-detail-badge-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.keepit-fail-detail-badge-card.ok {
    background-color: rgba(27, 135, 59, 0.08);
    color: #1b873b;
}

.keepit-fail-detail-badge-card.fail {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.keepit-fail-detail-badge-card.neutral {
    background-color: rgba(108, 117, 125, 0.08);
    color: #6c757d;
}

.keepit-detail-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    background: var(--color-border, #e9ecef);
    border-radius: 3px;
    overflow: hidden;
}

.keepit-detail-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Anomalies table card */
.keepit-detail-card-table {
    flex: 1 1;
    min-height: 0;
}

.keepit-detail-severity {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.keepit-detail-severity-critical {
    color: #dc3545;
    background-color: #f8d7da;
}

.keepit-detail-severity-warning {
    color: #d4a017;
    background-color: #fff3cd;
}

@media (max-width: 900px) {
    .keepit-detail-top-row {
        grid-template-columns: 1fr;
    }
}

/* KPI Cards */
.action-kpi-row {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: space-between;
}

.action-kpi-card {
    flex: 1 1;
    min-width: 0;
}

/* Export Dropdown */
.export-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.export-dropdown-trigger {
    background: #f5f5f5;
    background: var(--background-light, #f5f5f5);
    border: 1px solid #E2E6F3;
    border: 1px solid var(--line-default, #E2E6F3);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-primary-text);
    transition: background 0.2s;
}

.export-dropdown-trigger:hover {
    background: #E2E6F3;
    background: var(--line-default, #E2E6F3);
}

.export-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    background: var(--background-default, #fff);
    border: 1px solid #E2E6F3;
    border: 1px solid var(--line-default, #E2E6F3);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 180px;
    margin-top: 4px;
}

.export-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    color: var(--color-primary-text);
}

.export-dropdown-item:hover {
    background: #f5f5f5;
    background: var(--background-light, #f5f5f5);
}

/* Action Detail Modal */
.action-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0;
}

.action-detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-detail-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.action-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.action-detail-label {
    font-weight: 500;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    white-space: nowrap;
    min-width: 120px;
}

.action-detail-action-block {
    background: #FFF8E1;
    border-left: 4px solid #FFD54F;
    border-radius: 6px;
    padding: 16px;
}

.action-detail-action-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.action-detail-action-desc {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.action-detail-action-note {
    font-size: 12px;
    color: #6c757d;
    margin: 4px 0 0;
}

.action-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.action-detail-table th,
.action-detail-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--line-default, #E2E6F3);
    text-align: left;
}

.action-detail-table th {
    font-weight: 600;
    font-size: 11px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    text-transform: uppercase;
}

.action-detail-table td:first-child {
    font-weight: 500;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    white-space: nowrap;
    min-width: 130px;
}

/* Alert Subscribers */
.alert-subscribers-panel {
    padding: 16px 0;
}

.alert-subscribers-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.alert-subscribers-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.alert-subscribers-input {
    flex: 1 1;
    padding: 6px 10px;
    border: 1px solid #E2E6F3;
    border: 1px solid var(--line-default, #E2E6F3);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.alert-subscribers-input:focus {
    border-color: #471FCC;
    border-color: var(--color-primary-blue, #471FCC);
}

.alert-subscribers-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: #471FCC;
    background: var(--color-primary-blue, #471FCC);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.alert-subscribers-add-btn:hover {
    opacity: 0.9;
}

.alert-subscribers-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert-subscribers-error {
    color: #dc3545;
    font-size: 12px;
    margin-bottom: 8px;
}

.alert-subscribers-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-subscriber-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f5f5;
    background: var(--background-light, #f5f5f5);
}

.alert-subscriber-info {
    display: flex;
    flex-direction: column;
}

.alert-subscriber-name {
    font-size: 13px;
    font-weight: 600;
}

.alert-subscriber-email {
    font-size: 11px;
    color: #6B6F7D;
    color: var(--color-secondary-text, #6B6F7D);
}

.alert-subscriber-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc3545;
    padding: 4px;
    border-radius: 4px;
}

.alert-subscriber-remove:hover {
    background: #f8d7da;
}

/* Page header */
.acoes-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 4px;
}

.resumo_dashboardCardTitle__r\+8l- {
    padding: 10px;
}

.resumo_webSitesCard__3GLis {
    display: block;
    margin: 10px 10px;
}

.resumo_webSitesCardCMS__vEsuf {
    display: block;
    margin: 20px 0px;
}

.resumo_webSitesCardRow__cKvjp {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    padding: 5px;
    justify-content: right;
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
}

.resumo_webSitesCardRowCMS__RUzFv {
    display: grid;
    grid-template-columns: 1fr 6fr 2fr;
    padding: 2px;
    justify-content: flex-start;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    grid-gap: 4px;
    gap: 4px;
}

.resumo_webSitesCardRowLink__5z2DD {
    align-self: center;
}

    .resumo_webSitesCardRowLink__5z2DD a {
        text-decoration: none;
    }

        .resumo_webSitesCardRowLink__5z2DD a:hover {
            text-decoration: underline;
        }


.resumo_webSitesCardRowLinkCMS__rPoHf {
    align-self: center;
    max-width: 100%;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}
    .resumo_webSitesCardRowLinkCMS__rPoHf a {
        text-decoration: none;
    }

        .resumo_webSitesCardRowLinkCMS__rPoHf a:hover {
            text-decoration: underline;
        }


.resumo_webSitesStatus__VFu3v {
    text-align: center;
    align-self: center;
    font-size: 12px;
    width: 120px;
    padding: 4px;
    border-radius: 10px;
}

.resumo_webSitesStatusCMS__SptwZ {
    text-align: center;
    align-self: center;
    font-size: 10px;
    width: 60px;
    padding: 4px;
    border-radius: 10px;
}

.centroDeCusto_errorMessage__rdB2I {
    font-size: 1rem;
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    color: #8b90a3;
}

.centroDeCusto_sadDog__osemy {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  height: 15rem;
}

.centroDeCusto_errorBody__137qU {
    width: 100%;
    height: 25%;
    margin-top: '4rem';
    display: 'flex';
    justify-content: 'center'
}
.cardRow {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: white;
  box-shadow: 0.25rem 0.25rem 1.125rem rgba(58, 79, 135, 0.06);
  border-radius: 1rem;
}
/**
 * ESTILOS DO MODAL DE CONFIGURAÇÃO DE EXPORTAÇÃO
 */

.export-config-modal {
    padding: 10px 0;
}

.export-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    gap: 30px;
    margin-bottom: 20px;
}

.export-config-column {
    display: flex;
    flex-direction: column;
}

.export-config-section {
    margin-bottom: 20px;
}

.export-config-section:last-child {
    margin-bottom: 0;
}

.export-config-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2B304F;
    margin: 0 0 8px 0;
}

.export-config-description {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.export-config-checkbox {
    margin-top: 16px;
}

.export-config-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2B304F;
}

.export-config-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.export-config-checkbox span {
    -webkit-user-select: none;
    user-select: none;
}

/* Informação sobre formato selecionado */
.export-format-info {
    margin-top: 12px;
    padding: 10px 12px;
    background-color: #f0f7ff;
    border-left: 3px solid #1976d2;
    border-radius: 4px;
}

.export-format-info small {
    color: #333;
    line-height: 1.5;
    display: block;
}

.export-format-info strong {
    color: #1976d2;
}

.export-config-info {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 10px;
    border-top: 2px solid #EBEBEB;
}

.export-config-info p {
    margin: 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.export-config-info strong {
    color: #1F2937;
    font-weight: 600;
    margin-left: 4px;
}


/* Estilos para o painel de configura��o do Perspective */

.finops-perspective-dashboard .right-sidepanel {
    background: #fafafa;
    box-shadow: -10px 0 18px 0px rgba(58, 79, 135, 0.15);
    max-height: calc(100% + 1.5rem);
    grid-column-end: 13;
    grid-row-start: 1;
    grid-row-end: 1;
    z-index: 9;
    width: 25%;
    position: fixed;
    right: 0;
    padding: 1rem;
    margin-top: -0.75rem;
}

.finops-perspective-dashboard .right-sidepanel.pinned {
    position: relative;
}

.finops-perspective-dashboard .right-sidepanel.focused {
    position: fixed !important;
    top: 90px;
    width: 100%;
    left: 0;
    height: calc(100vh - 80px);
}

/* T�tulo do painel */
.finops-perspective-dashboard .right-sidepanel .title-sidebar {
    color: var(--text-dark);
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 160%;
}

/* Itens da lista de views */
.finops-perspective-dashboard .config-panel-item {
    font-size: 12px;
    height: 38px;
    width: 100%;
    padding-left: 10px;
    padding-right: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.finops-perspective-dashboard .config-panel-item:hover {
    background-color: #EBEBEB !important;
}

.finops-perspective-dashboard .config-panel-item.selected {
    border: 1px solid #FFBE15;
}

/* Bot�es de a��o nos itens */
.finops-perspective-dashboard .config-panel-item .functions {
    display: none;
    gap: 0.25rem;
}

.finops-perspective-dashboard .config-panel-item:hover .functions {
    display: flex;
}

/* Bot�o de reset */
.finops-perspective-dashboard .config-panel-reset {
    display: flex;
    font-size: 12.8px;
    font-family: "Ubuntu", sans-serif;
    color: #2E1956;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.finops-perspective-dashboard .config-panel-reset:hover {
    background-color: #EBEBEB;
}

/* Scrollbar customizada */
.finops-perspective-dashboard .scrollable-v::-webkit-scrollbar {
    width: 8px;
    height: 0;
}

.finops-perspective-dashboard .scrollable-v::-webkit-scrollbar-thumb {
    background: #cccccf;
    height: 8px;
    border-radius: 4px;
}

.finops-perspective-dashboard .scrollable-v::-webkit-scrollbar-thumb:hover {
    background: #ddd;
}

.finops-perspective-dashboard .scrollable-v::-webkit-scrollbar-track {
    border-radius: 4px;
}

/* Labels de view */
.finops-perspective-dashboard .view-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

/* Formul�rio de nova view */
.finops-perspective-dashboard .new-view-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

/* Ajustes para Material-UI components */
.finops-perspective-dashboard .MuiTextField-root {
    margin: 0 !important;
}

.finops-perspective-dashboard .MuiButton-root {
    text-transform: none;
}

/* Separadores */
.finops-perspective-dashboard hr {
    border: none;
    border-top: 1px solid #E2E6F3;
    margin: 0.5rem 0;
}
oi ja /**
 * CSS espec?fico para o FinOps Analytics Dashboard com Perspective
 */

.finops-perspective-dashboard {
    height: 100%;
    width: 100%;
}

.finops-perspective-dashboard .card-frame {
    height: 100%;
}

.finops-perspective-dashboard .card-content-body {
    height: 100%;
}

.finops-perspective-dashboard .card-content-body-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Estilo para o card de informa??es da view */
.finops-perspective-dashboard .view-info-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Estilo para a lista de views com scroll */
.view-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilo para o card principal do Perspective */
.finops-perspective-dashboard .perspective-main-card {
    height: 100%;
    overflow: hidden;
}

.finops-perspective-dashboard .perspective-main-card>div {
    height: 100%;
}

/* Garantir que o perspective-viewer ocupe toda a altura dispon?vel */
.finops-perspective-dashboard perspective-viewer {
    height: 100% !important;
    width: 100% !important;
}

/* Ajustes para o loading sobreposto */
.finops-perspective-dashboard .lc-loading-container {
    height: 100%;
}

/* Garantir que o container principal tenha posi??o relativa */
.finops-perspective-dashboard {
    position: relative;
}

/* Estilo para o loading sobreposto */
.finops-perspective-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

/* Garantir que o Perspective n?o seja afetado pelo loading */
.finops-perspective-dashboard .perspective-main-card perspective-viewer {
    pointer-events: auto;
}
/* FinOps Perspective Components Styles */

/* Container principal */
.finops-perspective-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== Z-INDEX MANAGEMENT ===== */

/* Garantir que split-panel-child sempre tenha z-index: 2 */
.split-panel-child {
  z-index: 2 !important;
}

/* Seletores específicos para diferentes contextos */
perspective-viewer .split-panel-child,
.perspective-viewer .split-panel-child,
.finops-perspective-container .split-panel-child,
.perspective-viewer-container .split-panel-child {
  z-index: 2 !important;
}

/* Elementos filhos dentro de split-panel-child */
.split-panel-child > *,
.split-panel-child .perspective-viewer,
.split-panel-child perspective-viewer {
  z-index: inherit;
}

/* Split panel principal com z-index menor */
.split-panel {
  z-index: 1 !important;
}

/* Settings panel com z-index menor */
#settings_panel {
  z-index: 1 !important;
}

/* ===== REGRAS ADICIONAIS PARA GARANTIR Z-INDEX: 2 ===== */

/* Seletores por atributo e classe */
[class*="split-panel-child"],
[class^="split-panel-child"],
[class$="split-panel-child"] {
  z-index: 2 !important;
}

/* Seletores por ID (caso existam) */
#split-panel-child,
[id*="split-panel-child"] {
  z-index: 2 !important;
}

/* Contextos específicos do Perspective FINOS */
perspective-viewer-datagrid .split-panel-child,
perspective-viewer-d3fc .split-panel-child,
perspective-viewer-openlayers .split-panel-child {
  z-index: 2 !important;
}

/* Elementos dentro de containers específicos */
.perspective-container .split-panel-child,
.pivot-container .split-panel-child,
.dashboard-container .split-panel-child {
  z-index: 2 !important;
}

/* Regra universal para qualquer elemento com split-panel-child */
*[class*="split-panel-child"] {
  z-index: 2 !important;
}

.finops-perspective-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Toolbar styles */
.perspective-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  gap: 8px;
  min-height: 40px;
}

.perspective-toolbar .toolbar-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.perspective-toolbar .toolbar-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-right: auto;
}

.perspective-toolbar .record-count {
  font-size: 12px;
  color: #666;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Perspective viewer customizations */
perspective-viewer {
  --plugin--background: #ffffff;
  --active--color: #1976d2;
  --inactive--color: #666666;
  --plugin--border: #e0e0e0;
  --select--background: #f5f5f5;
  --column--background: #fafafa;
  --row--background: #ffffff;
  --cell--background: #ffffff;
  --cell--color: #333333;
  --header--background: #f8f9fa;
  --header--color: #333333;
  --header--border: #e0e0e0;
  --button--background: #ffffff;
  --button--border: #d0d7de;
  --button--color: #24292f;
  --button--hover--background: #f3f4f6;
  --button--active--background: #e9ecef;
}

/* Tema escuro (opcional) */
perspective-viewer[theme="Pro Dark"] {
  --plugin--background: #1e1e1e;
  --active--color: #90caf9;
  --inactive--color: #999999;
  --plugin--border: #333333;
  --select--background: #2d2d2d;
  --column--background: #252525;
  --row--background: #1e1e1e;
  --cell--background: #1e1e1e;
  --cell--color: #ffffff;
  --header--background: #2d2d2d;
  --header--color: #ffffff;
  --header--border: #333333;
}

/* Configura��es espec�ficas para FinOps */
perspective-viewer .perspective-viewer-datagrid-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
}

perspective-viewer .perspective-viewer-datagrid-container th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  padding: 8px 12px;
  text-align: left;
}

perspective-viewer .perspective-viewer-datagrid-container td {
  padding: 6px 12px;
  border-bottom: 1px solid #e9ecef;
}

/* Formata��o de n�meros */
perspective-viewer .perspective-viewer-datagrid-container td[data-type="float"],
perspective-viewer .perspective-viewer-datagrid-container td[data-type="integer"] {
  text-align: right;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

/* Cores para valores negativos */
perspective-viewer .perspective-viewer-datagrid-container td[data-type="float"]:has-text("-"),
perspective-viewer .perspective-viewer-datagrid-container td[data-type="integer"]:has-text("-") {
  color: #dc3545;
}

/* Cores para valores positivos altos */
perspective-viewer .perspective-viewer-datagrid-container td[data-type="float"][data-value-high],
perspective-viewer .perspective-viewer-datagrid-container td[data-type="integer"][data-value-high] {
  color: #28a745;
  font-weight: 600;
}

/* Panel de views salvas */
.perspective-views-panel {
  position: absolute;
  top: 50px;
  right: 16px;
  width: 320px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
  z-index: 1000;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.perspective-views-panel-header {
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.perspective-views-panel-header h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #24292f;
}

.perspective-views-panel-save {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.perspective-views-panel-save input {
  flex: 1 1;
  padding: 6px 12px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.perspective-views-panel-save input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.perspective-views-panel-list {
  flex: 1 1;
  overflow-y: auto;
  padding: 8px;
}

.perspective-view-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.perspective-view-item:hover {
  background-color: #f8f9fa;
}

.perspective-view-item:last-child {
  border-bottom: none;
}

.perspective-view-item-name {
  flex: 1 1;
  font-size: 14px;
  color: #24292f;
  font-weight: 500;
}

.perspective-view-item-actions {
  display: flex;
  gap: 4px;
}

.perspective-view-item-meta {
  font-size: 12px;
  color: #656d76;
  margin-top: 4px;
}

/* Estados de loading */
.perspective-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
  font-size: 14px;
}

.perspective-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #666;
  font-size: 16px;
}

.perspective-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #dc3545;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.perspective-error button {
  margin-top: 16px;
  padding: 8px 16px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.perspective-error button:hover {
  background: #1565c0;
}

/* Responsividade */
@media (max-width: 768px) {
  .perspective-views-panel {
    width: 280px;
    right: 8px;
  }

  .perspective-toolbar {
    padding: 6px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .perspective-toolbar .toolbar-title {
    font-size: 13px;
  }

  .perspective-toolbar .record-count {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .perspective-views-panel {
    width: calc(100vw - 16px);
    right: 8px;
    left: 8px;
  }

  .finops-perspective-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Anima��es */
.perspective-views-panel {
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.perspective-view-item {
  transition: all 0.2s ease;
}

.perspective-view-item:hover {
  transform: translateX(2px);
}

/* Customiza��es para gr�ficos */
perspective-viewer[plugin="d3_bar"] .chart-container,
perspective-viewer[plugin="d3_line"] .chart-container,
perspective-viewer[plugin="d3_area"] .chart-container {
  background: #ffffff;
}

/* Scrollbars customizadas */
.perspective-views-panel-list::-webkit-scrollbar {
  width: 6px;
}

.perspective-views-panel-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.perspective-views-panel-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.perspective-views-panel-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ===== CUSTOMIZAÇÃO DO LOADING DO PERSPECTIVE PIVOT ===== */

/* Personalizar cores do loading Orbit */
.perspective-pivot-loading .container-orbit {
  --uib-color: #2563eb; /* Azul moderno */
  --uib-size: 32px; /* Tamanho maior */
  --uib-speed: 1.2s; /* Velocidade mais rápida */
}

/* Personalizar cores do loading Helix */
.perspective-pivot-loading .container-helix {
  --uib-color: #059669; /* Verde esmeralda */
  --uib-size: 50px; /* Tamanho maior */
  --uib-speed: 2s; /* Velocidade personalizada */
}

/* Estilo do overlay de loading */
.perspective-pivot-loading {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Personalizar texto do loading */
.perspective-pivot-loading .title-loading {
  color: #374151;
  font-weight: 500;
  font-size: 16px;
  margin-top: 16px;
}

/* Animação de entrada suave */
.perspective-pivot-loading {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Variações de cores por tema */
.perspective-pivot-loading.theme-financial {
  --uib-color: #dc2626; /* Vermelho financeiro */
}

.perspective-pivot-loading.theme-success {
  --uib-color: #16a34a; /* Verde sucesso */
}

.perspective-pivot-loading.theme-warning {
  --uib-color: #ea580c; /* Laranja aviso */
}

.perspective-pivot-loading.theme-info {
  --uib-color: #0ea5e9; /* Azul informação */
}

/* ===== GARANTIR QUE MENU-BAR SEMPRE SEJA OCULTO ===== */

/* Ocultar menu-bar em todos os contextos especificados */
:host #main_column #status_bar #menu-bar,
:host #main_column #status_bar.titled #menu-bar {
  display: none !important;
}

/* ===== GARANTIR Z-INDEX DO SETTINGS PANEL ===== */

/* Forçar z-index do settings panel para sempre ser 1 */
:host {
  --settings-panel-z-index: 1 !important;
}

/* ===== CORREÇÕES PARA ERROS DE SVG/D3FC ===== */

/* Ocultar elementos SVG com transformações inválidas */
perspective-viewer g[transform*="NaN"],
perspective-viewer g[transform*="translate(0, NaN)"] {
  display: none !important;
}

/* Garantir que elementos SVG tenham valores válidos */
perspective-viewer svg g {
  transform: translate(0, 0) !important;
}

/* Corrigir problemas de renderização em gráficos D3FC */
perspective-viewer d3fc-svg,
perspective-viewer d3fc-canvas {
  overflow: hidden;
}

/* Prevenir erros de coordenadas inválidas */
perspective-viewer .d3fc-axis {
  transform: translate(0, 0) !important;
}

/* Ocultar elementos com valores NaN */
perspective-viewer [transform*="NaN"] {
  visibility: hidden !important;
}
.operation-queue-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.queue-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.queue-status.processing {
    background: #EFF6FF;
    border: 1px solid #3B82F6;
    color: #1E40AF;
}

.queue-status.pending {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.queue-status.failed {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

.queue-status.success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
    animation: fadeOut 2s ease-in-out 1s forwards;
}

.queue-status .icon {
    font-size: 18px;
    flex-shrink: 0;
}

.queue-status .text {
    white-space: nowrap;
}

.queue-status.processing .icon.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}


