/* 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;
}

/**
 * Estilos do FieldSelector
 */

.FieldSelector_fieldSelectorWrapper__q15sg {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.FieldSelector_typeIcon__NcpZ2 {
  position: absolute;
  left: 8px;
  color: #687078;
  pointer-events: none;
  z-index: 1;
}

.FieldSelector_select__7BOtY {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
  background: #ffffff;
  cursor: pointer;
  height: 32px;
  transition: border-color 0.25s ease;
  outline: none;
}

.FieldSelector_selectWithIcon__Ugeeg {
  padding-left: 28px;
}

.FieldSelector_select__7BOtY:hover:not(:disabled) {
  border-color: #40a9ff;
}

.FieldSelector_select__7BOtY:focus {
  outline: none;
  border-color: #40a9ff;
}

.FieldSelector_select__7BOtY:disabled {
  background: #fafafa;
  color: #b3b3b3;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Optgroups */
.FieldSelector_select__7BOtY optgroup {
  font-weight: 600;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
  background: #f9fafb;
}

.FieldSelector_select__7BOtY option {
  padding: 4px 8px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
}

/* Responsive */
@media (max-width: 400px) {
  .FieldSelector_select__7BOtY {
    padding: 4px 6px;
  }
}

/* ═══════════ Billing Review GTM ═══════════ */

/* ── KPIs ── */
.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.kpi-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
}

/* ── Status cell ── */
.status-cell {
    display: flex;
    align-items: center;
}

/* ── Empty state ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

/* ── Detail modal ── */
.detail-modal {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-modal h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.detail-modal p {
    margin: 6px 0;
    font-size: 13px;
}

/* ── Diagnosis boxes ── */
.diagnosis-box {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
}

.diagnosis-box h4 {
    margin-bottom: 8px !important;
}

.diagnosis-box ul {
    margin: 0;
    padding-left: 20px;
}

.diagnosis-box li {
    margin-bottom: 4px;
    font-size: 13px;
}

.diagnosis-box p {
    margin: 0;
    font-size: 13px;
}

.diagnosis-warning {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
}

.diagnosis-warning h4 {
    color: #d46b08;
}

.diagnosis-error {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
}

.diagnosis-error h4 {
    color: #cf1322;
}

.diagnosis-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.diagnosis-info h4 {
    color: #0050b3;
}

.diagnosis-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
}

.diagnosis-success h4 {
    color: #389e0d;
}

/* ── Buttons ── */
.btn-primary {
    padding: 8px 16px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-default {
    padding: 8px 16px;
    background-color: #fff;
    color: #595959;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.2s;
}

.btn-default:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-default:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-action {
    padding: 8px 16px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-action:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-reprocess {
    background-color: #fa541c;
}

/* ── Form fields ── */
.field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.field-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.field-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.field-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.field-select:focus {
    outline: none;
    border-color: #1890ff;
}

/* ── File drop zone ── */
.file-drop-zone {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.file-drop-zone:hover {
    border-color: #1890ff;
}

.file-drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    color: #8c8c8c;
    font-size: 13px;
}

/* ── History table ── */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 10px 12px;
    background-color: #fafafa;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #333;
}

.history-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

.history-table tr:hover td {
    background-color: #f5f5f5;
}

/* ── Detail rate comparison table ── */
.detail-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.detail-rate-table th {
    text-align: left;
    padding: 8px 10px;
    background-color: #fafafa;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.detail-rate-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

/* ── Issue badge ── */
.issue-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.issue-badge-error {
    background-color: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.issue-badge-warning {
    background-color: #fffbe6;
    color: #ad8b00;
    border: 1px solid #ffe58f;
}

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

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

.orgchart-container {
  height: calc(100% - 120px) !important;
}

.oc-hierarchy:hover {
  cursor: pointer;
}
.analytical > .webix_ss_body > .webix_ss_center >
.webix_ss_center_scroll >.webix_last > .webix_cell:not(.r-align) {
  text-align: right;
}
.anomaly-grid-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 8px 4px 12px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.anomaly-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anomaly-toolbar-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.anomaly-toolbar-group select {
    height: 30px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 0 8px;
    background: #fff;
    font-size: 13px;
    color: #333;
}

.anomaly-refresh-btn {
    height: 30px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: #8C40E3;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.anomaly-refresh-btn:hover {
    background: #7a33cc;
}

.anomaly-detect-btn {
    height: 30px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: #2E7D32;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.anomaly-detect-btn:hover {
    background: #276b2a;
}

.anomaly-detect-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Neutraliza centralizacao/limites de altura do LCDashboard para o card da listagem,
   garantindo que o RevoGrid receba uma altura real (senao o corpo virtualizado nao pinta). */
.lcdashboard .card-frame.anomaly-list-shell {
    height: 100%;
    min-height: 0;
}

.lcdashboard .card-frame.anomaly-list-shell .card-content-body {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    overflow: hidden;
}

.lcdashboard .card-frame.anomaly-list-shell .card-content-body-content {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.anomaly-grid-wrapper {
    flex: 1 1 auto;
    min-height: 320px;
    height: auto;
}

.anomaly-grid-wrapper revo-grid {
    height: 100%;
}

/* Alinhamento a direita para colunas numericas (numeros comparaveis por ordem de grandeza). */
.anomaly-grid-wrapper revo-grid .anomaly-cell-right {
    text-align: right;
    justify-content: flex-end;
}

.anomaly-severity-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.anomaly-detail {
    padding: 4px 2px;
}

.anomaly-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.anomaly-detail-provider {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.anomaly-detail h4 {
    margin: 4px 0 14px;
    font-size: 15px;
    color: #222;
    word-break: break-all;
}

.anomaly-detail-chart {
    margin: 0 0 16px;
    padding: 10px 12px 6px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.anomaly-chart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.anomaly-chart-impact {
    font-size: 13px;
    font-weight: 700;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.anomaly-chart-caption {
    margin: 4px 0 0;
    font-size: 11px;
    color: #777;
    line-height: 1.35;
}

.anomaly-chart-caption strong {
    color: #E64646;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.anomaly-chart-points {
    margin: 2px 0 0;
    font-size: 10px;
    color: #999;
}

/* Fullscreen do SideModal de detalhe: gráfico grande à esquerda, dados à direita */
.anomaly-detail.expanded {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
        "header header"
        "title title"
        "chart facts";
    grid-column-gap: 28px;
    column-gap: 28px;
    align-items: start;
}

.anomaly-detail.expanded .anomaly-detail-header { grid-area: header; }
.anomaly-detail.expanded h4 { grid-area: title; }
.anomaly-detail.expanded .anomaly-detail-chart { grid-area: chart; }
.anomaly-detail.expanded .anomaly-detail-list,
.anomaly-detail.expanded .anomaly-detail-reason { grid-area: facts; }
.anomaly-detail.expanded .anomaly-detail-reason { grid-column: 1 / -1; }

.anomaly-detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-row-gap: 6px;
    row-gap: 6px;
    grid-column-gap: 10px;
    column-gap: 10px;
    margin: 0;
}

.anomaly-detail-list dt {
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.anomaly-detail-list dd {
    margin: 0;
    font-size: 13px;
    color: #222;
    word-break: break-word;
}

.anomaly-detail-list dd.anomaly-num {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.anomaly-detail-reason {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f6f2fc;
    border-left: 3px solid #8C40E3;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
}

.anomaly-settings-btn {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #8C40E3;
    border-radius: 6px;
    background: #fff;
    color: #8C40E3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.anomaly-settings-btn:hover {
    background: #f6f2fc;
}

.anomaly-settings {
    padding: 4px 2px 80px;
}

.anomaly-settings-section {
    margin-bottom: 20px;
}

.anomaly-settings-section h5 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.anomaly-settings-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.anomaly-sensitivity-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.anomaly-sensitivity-chip {
    flex: 1 1;
    min-width: 70px;
    padding: 8px 10px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all .15s ease;
}

.anomaly-sensitivity-chip small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    margin-top: 2px;
}

.anomaly-sensitivity-chip.active {
    border-color: #8C40E3;
    background: #f6f2fc;
    color: #8C40E3;
}

.anomaly-sensitivity-chip.active small {
    color: #8C40E3;
}

.anomaly-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8px;
    gap: 8px;
}

.anomaly-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.anomaly-toggle input {
    accent-color: #8C40E3;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.anomaly-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

.anomaly-field-row label {
    font-size: 13px;
    color: #444;
    flex: 1 1;
}

.anomaly-field-row .anomaly-level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.anomaly-field-row input[type="number"] {
    width: 90px;
    height: 30px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.anomaly-settings-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #eee;
}

.anomaly-settings-footer button {
    height: 36px;
    flex: 1 1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.anomaly-btn-save {
    background: #8C40E3;
    color: #fff;
}

.anomaly-btn-save:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.anomaly-btn-cancel {
    background: #f0f0f0;
    color: #555;
}

.anomaly-notify-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anomaly-notify-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
}

.anomaly-notify-option.active {
    border-color: #8C40E3;
    background: #f6f2fc;
}

.anomaly-notify-option input {
    accent-color: #8C40E3;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.anomaly-notify-option span {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.anomaly-notify-option span small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #999;
    margin-top: 2px;
}

.anomaly-recipients {
    margin-top: 12px;
}

.anomaly-recipient-input {
    display: flex;
    gap: 8px;
}

.anomaly-recipient-input input {
    flex: 1 1;
    height: 32px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
}

.anomaly-recipient-input button {
    height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: #8C40E3;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.anomaly-recipient-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anomaly-recipient-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f5f5f7;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.anomaly-recipient-list li button {
    border: none;
    background: transparent;
    color: #E64646;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.anomaly-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.anomaly-preview-recipients-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d0d0d8;
    background: #fff;
    color: #2e6df6;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.anomaly-preview-recipients-btn:hover {
    background: #f0f5ff;
    border-color: #2e6df6;
}

.anomaly-recipients-preview {
    padding: 4px 0;
}

.anomaly-recipients-preview-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anomaly-recipients-preview-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 8px;
}

.anomaly-recipient-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.anomaly-recipient-name {
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anomaly-recipient-email {
    font-size: 12px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anomaly-recipient-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.anomaly-recipient-source {
    font-size: 11px;
    color: #2e6df6;
    background: #e8f0ff;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* === Requisitos de coleta por provedor === */
.anomaly-requirements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.anomaly-req-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 10px;
    background: #f6f6f9;
    border-radius: 8px;
}

.anomaly-req-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.anomaly-req-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.anomaly-req-provider {
    border: 1px solid #ececf1;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anomaly-req-provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.anomaly-req-provider-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2b2b2b;
}

.anomaly-req-granularity {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    background: #f1f1f4;
    border-radius: 10px;
    padding: 3px 10px;
    white-space: nowrap;
}

.anomaly-req-metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anomaly-req-metric {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.anomaly-req-tier {
    flex: 0 0 auto;
    min-width: 76px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    padding: 3px 8px;
    margin-top: 2px;
}

.anomaly-req-metric-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anomaly-req-metric-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.anomaly-req-metric-detail {
    font-size: 12px;
    color: #555;
}

.anomaly-req-metric-need {
    font-size: 12px;
    color: #b06a00;
}

.anomaly-req-metric-fallback {
    font-size: 12px;
    color: #777;
    font-style: italic;
}

.anomaly-req-block h6 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #6b6b6b;
}

.anomaly-req-block ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.anomaly-req-block li {
    font-size: 12px;
    color: #555;
}

.anomaly-req-note {
    margin: 0;
    font-size: 12px;
    color: #777;
    background: #f6f6f9;
    border-left: 3px solid #d6d6dd;
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
}


.createForm_topMenu__EVcK8 {
    display: flex;
    flex-direction:row;
    margin-bottom: 0.5rem;
}
.createForm_severity__GMArV {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.createForm_severity__GMArV > i {
    margin-top: 1.6rem;
    font-size: 24px;
}
.createForm_colorBell-success__Fos0W {
    color: #a5bf3e;
}

.createForm_colorBell-warning__\+9q7B {
    color: #ffb800;
}

.createForm_colorBell-info__-OUL6 {
    color: #0580ce;
}

.createForm_colorBell-danger__4Pjbv {
    color: #d35555;
}
.createForm_buttons__yUpTX {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.createForm_space__t8aYf {
    margin-top: 1rem;
    margin-bottom: 3rem;
    width: 100%;
    height: 5rem;
}

.createForm_testAlertForm__ogj1Z {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.25rem;
}

.createForm_testAlertNote__Mdy1d {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.createForm_testAlertLabel__ps4So {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.createForm_testAlertInput__O66hT {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.createForm_testAlertInput__O66hT:focus {
    border-color: #0580ce;
}

.createForm_testAlertInput__O66hT:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.createForm_btnPrimary__AX255 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 6px;
    background-color: #0580ce;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.createForm_btnPrimary__AX255:hover:not(:disabled) {
    background-color: #046bac;
}

.createForm_btnPrimary__AX255:disabled {
    background-color: #9fc8e6;
    cursor: not-allowed;
}

.createForm_btnSecondary__PWKlL {
    padding: 0.55rem 1.1rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #fff;
    color: #595959;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.createForm_btnSecondary__PWKlL:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.createForm_btnSecondary__PWKlL:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.np-user-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e4ec;
    border-radius: 8px;
    padding: 4px 10px;
    background: #fff;
}

.np-user-picker__icon {
    display: inline-flex;
    align-items: center;
    color: #6b5ce7;
    color: var(--color-primary-purple, #6b5ce7);
    font-size: 18px;
}

.np-user-picker__select {
    flex: 1 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #2b2b3a;
    padding: 6px 2px;
    cursor: pointer;
}

.np-user-picker__select:disabled {
    cursor: default;
    color: #9aa0b3;
}

.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 AggregateSelector
 */

.AggregateSelector_select__FuRG- {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
  background: #ffffff;
  cursor: pointer;
  height: 32px;
  transition: border-color 0.25s ease;
  outline: none;
}

.AggregateSelector_select__FuRG-:hover:not(:disabled) {
  border-color: #40a9ff;
}

.AggregateSelector_select__FuRG-:focus {
  outline: none;
  border-color: #40a9ff;
}

.AggregateSelector_select__FuRG-:disabled {
  background: #fafafa;
  color: #b3b3b3;
  cursor: not-allowed;
  opacity: 0.6;
}

.AggregateSelector_select__FuRG- option {
  padding: 4px 8px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
}

/* Responsive */
@media (max-width: 400px) {
  .AggregateSelector_select__FuRG- {
    padding: 4px 6px;
  }
}

/**
 * Estilos do ValidationIndicator
 */

.ValidationIndicator_indicator__s1YvJ {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  border: 1px solid;
}

.ValidationIndicator_icon__2UiGO {
  font-size: 10px;
  flex-shrink: 0;
}

.ValidationIndicator_message__0SKne {
  flex: 1 1;
}

/* Status: Valid */
.ValidationIndicator_valid__bv0B5 {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.ValidationIndicator_valid__bv0B5 .ValidationIndicator_icon__2UiGO {
  color: #16a34a;
}

/* Status: Warning */
.ValidationIndicator_warning__o8BIE {
  background: #fff3e0;
  border-color: #ffd54f;
  color: #f57c00;
}

.ValidationIndicator_warning__o8BIE .ValidationIndicator_icon__2UiGO {
  color: #f57c00;
}

/* Status: Error */
.ValidationIndicator_error__QhIdK {
  background: #fee;
  border-color: #fcc;
  color: #dc2626;
}

.ValidationIndicator_error__QhIdK .ValidationIndicator_icon__2UiGO {
  color: #dc2626;
}

/* Status: Info */
.ValidationIndicator_info__cHj4u {
  background: #f0f8ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.ValidationIndicator_info__cHj4u .ValidationIndicator_icon__2UiGO {
  color: #3b82f6;
}

/* Modo compacto */
.ValidationIndicator_compact__8ukPX {
  padding: 4px 8px;
  font-size: 10px;
}

.ValidationIndicator_compact__8ukPX .ValidationIndicator_icon__2UiGO {
  font-size: 10px;
}

/* Responsive */
@media (max-width: 400px) {
  .ValidationIndicator_indicator__s1YvJ {
    padding: 6px 10px;
  }

  .ValidationIndicator_compact__8ukPX {
    padding: 3px 6px;
  }
}



/**
 * Estilos do LimitWarning
 */

.LimitWarning_warning__n04tf {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid;
}

.LimitWarning_icon__4\+MjP {
  font-size: 10px;
  flex-shrink: 0;
}

.LimitWarning_text__TCLzp {
  flex: 1 1;
  font-weight: 500;
}

.LimitWarning_text__TCLzp strong {
  font-weight: 600;
}

/* Status: Info */
.LimitWarning_info__9lVf5 {
  background: #f0f8ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.LimitWarning_info__9lVf5 .LimitWarning_icon__4\+MjP {
  color: #3b82f6;
}

/* Status: Warning */
.LimitWarning_warning__n04tf {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.LimitWarning_warning__n04tf .LimitWarning_icon__4\+MjP {
  color: #f59e0b;
}

/* Status: Limit */
.LimitWarning_limit__ZUBun {
  background: #fff3e0;
  border-color: #ffd54f;
  color: #f57c00;
}

.LimitWarning_limit__ZUBun .LimitWarning_icon__4\+MjP {
  color: #f57c00;
}

/* Responsive */
@media (max-width: 400px) {
  .LimitWarning_warning__n04tf {
    padding: 6px 10px;
  }
}

/**
 * Estilos do EmptyState
 */

.EmptyState_emptyState__z\+bK\+ {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  gap: 2px;
  text-align: center;
}

.EmptyState_icon__XY1sR {
  font-size: 10px;
  opacity: 0.5;
  margin-bottom: 2px;
}

.EmptyState_title__xMMUA {
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #444;
}

.EmptyState_description__pKfUg {
  font-size: 11px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #b3b3b3;
  max-width: 400px;
}

.EmptyState_action__NHDwu {
  margin-top: 4px;
}

/* Modo compacto */
.EmptyState_compact__4pwpt {
  padding: 8px 12px;
  gap: 2px;
}

.EmptyState_compact__4pwpt .EmptyState_icon__XY1sR {
  font-size: 10px;
  margin-bottom: 1px;
}

.EmptyState_compact__4pwpt .EmptyState_title__xMMUA {
  font-size: 11px;
}

.EmptyState_compact__4pwpt .EmptyState_description__pKfUg {
  font-size: 11px;
}

.EmptyState_compact__4pwpt .EmptyState_action__NHDwu {
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .EmptyState_emptyState__z\+bK\+ {
    padding: 24px 16px;
  }

  .EmptyState_icon__XY1sR {
    font-size: 10px;
  }

  .EmptyState_title__xMMUA {
    font-size: 11px;
  }

  .EmptyState_description__pKfUg {
    font-size: 11px;
  }

  .EmptyState_compact__4pwpt {
    padding: 16px 12px;
  }

  .EmptyState_compact__4pwpt .EmptyState_icon__XY1sR {
    font-size: 10px;
  }

  .EmptyState_compact__4pwpt .EmptyState_title__xMMUA {
    font-size: 11px;
  }

  .EmptyState_compact__4pwpt .EmptyState_description__pKfUg {
    font-size: 11px;
  }
}

/* ASSISTENTE DA PIVOT — estilos (prefixo pa-)
   Visual alinhado ao painel de IA do Dashboard Builder / "Meu Dashboard"
   (AIChatPanel.css) — QuickSight-inspired clean design: fundo branco,
   tipografia Ubuntu, paleta neutra navy/cinza, sem gradientes/roxo. */

.pa-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* O painel lateral do LCDashboard fica com `height:auto` quando fixado
     (pinned), entao `height:100%` aqui resolve para a altura do CONTEUDO e nada
     limita a coluna — o chat cresce e vaza no fim da tela. Este teto por
     viewport garante que .pa-root NUNCA ultrapasse a area visivel; combinado
     com o flex de .pa-messages (flex:1 1 auto; min-height:0; overflow-y:auto),
     a lista de mensagens passa a rolar dentro do espaco disponivel.
     O offset (~170px) cobre o header do portal + barra de titulo + paddings. */
  max-height: calc(100vh - 170px);
  overflow: hidden;
  background: #fff;
  font-family: "Ubuntu", sans-serif;
  color: #232f3e;
}

/* Cabecalho: linha slim so com a acao de limpar (o titulo "Assistente da
   Pivot" ja vem da barra do painel lateral do LCDashboard — nao repetir). */
.pa-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px;
  border-bottom: 1px solid #e9ebed;
  background: #fff;
}
.pa-header-clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #545b64;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pa-header-clear:hover:not(:disabled) {
  background: #f2f3f3;
  color: #232f3e;
}
.pa-header-clear:disabled { cursor: not-allowed; opacity: 0.35; }

/* Lista de mensagens */
.pa-messages {
  flex: 1 1 auto;
  /* min-height:0 e necessario para que o flex item ENCOLHA e o overflow-y
     funcione — sem isso a lista cresce com o conteudo e empurra a barra de
     entrada para fora da tela. */
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pa-messages::-webkit-scrollbar { width: 4px; }
.pa-messages::-webkit-scrollbar-track { background: transparent; }
.pa-messages::-webkit-scrollbar-thumb { background: #d5d9d9; border-radius: 4px; }

.pa-empty {
  margin: 12px 0 0;
  text-align: center;
  color: #687078;
  padding: 20px 8px;
}
.pa-empty-title {
  font-weight: 600;
  color: #232f3e;
  margin: 0 0 6px;
}
.pa-empty-hint {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.pa-msg {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.pa-msg-user { align-items: flex-end; }
.pa-msg-assistant { align-items: flex-start; }

.pa-bubble {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 92%;
}
.pa-msg-user .pa-bubble {
  background: #f2f3f3;
  color: #232f3e;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e9ebed;
}
.pa-msg-assistant .pa-bubble {
  background: transparent;
  color: #232f3e;
  padding: 4px 0;
}

/* Indicador "pensando" */
.pa-thinking {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #687078;
}
.pa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aab7b8;
  animation: pa-blink 1.2s infinite ease-in-out both;
}
.pa-dot:nth-child(2) { animation-delay: 0.2s; }
.pa-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pa-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Progresso ao vivo dos agentes (varios niveis de LLM) */
.pa-thinking { flex-direction: column; align-items: stretch; }
.pa-agent-boot { display: inline-flex; gap: 4px; align-items: center; }
.pa-agents {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 180px;
}
.pa-agent {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #687078;
  transition: color 0.2s ease;
}
.pa-agent-start { color: #232f3e; font-weight: 600; }
.pa-agent-done { color: #545b64; }
.pa-agent-skipped { opacity: 0.55; }
.pa-agent-error { color: #d13212; }
.pa-agent-ico {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #545b64;
}
.pa-agent-done .pa-agent-ico { color: #16a34a; }
.pa-agent-spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #e9ebed;
  border-top-color: #232f3e;
  animation: pa-spin 0.7s linear infinite;
}
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-agent-llm {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
  background: #232f3e;
}

/* Previa da sugestao */
.pa-preview {
  margin-top: 8px;
  width: 92%;
  border: 1px solid #e9ebed;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.pa-preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pa-preview-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #687078;
  background: #f2f3f3;
  border-radius: 4px;
  padding: 2px 6px;
}
.pa-preview-ai {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #232f3e;
  border-radius: 4px;
  padding: 2px 6px;
}
.pa-preview-warn {
  font-size: 11px;
  color: #92580a;
  background: #fdf1d6;
  border-radius: 4px;
  padding: 2px 6px;
}
.pa-preview-status {
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
}
.pa-preview-status-applied {
  color: #0d7a4f;
  background: #dff5ea;
}
.pa-preview-status-dismissed {
  color: #687078;
  background: #f2f3f3;
}
/* Previa ja resolvida (aplicada/descartada): permanece visivel no historico,
   levemente atenuada para diferenciar de uma decisao ainda pendente. */
.pa-preview-done {
  opacity: 0.82;
}
.pa-preview-done:hover {
  opacity: 1;
}

.pa-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.pa-preview-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.pa-preview-label {
  flex: 0 0 58px;
  font-size: 11px;
  font-weight: 600;
  color: #687078;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pa-preview-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pa-tag {
  font-size: 12px;
  background: #fff;
  border: 1px solid #e9ebed;
  border-radius: 4px;
  padding: 2px 7px;
  color: #232f3e;
}

.pa-preview-actions {
  display: flex;
  gap: 8px;
}
.pa-btn {
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Ubuntu", sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pa-btn-apply {
  background: #232f3e;
  color: #fff;
}
.pa-btn-apply:hover { background: #37475a; }
.pa-btn-ghost {
  background: transparent;
  color: #545b64;
  border: 1px solid #d5d9d9;
}
.pa-btn-ghost:hover { background: #f2f3f3; color: #232f3e; }

/* Sugestoes rapidas */
.pa-suggestions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  max-height: 84px;
  overflow-y: auto;
  border-top: 1px solid #e9ebed;
}
.pa-chip {
  font-size: 12px;
  background: #fff;
  border: 1px solid #d5d9d9;
  color: #545b64;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: "Ubuntu", sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pa-chip:hover:not(:disabled) { background: #f2f3f3; border-color: #aab7b8; color: #232f3e; }
.pa-chip:disabled { opacity: 0.5; cursor: default; }

/* Undo */
.pa-undo-bar {
  flex: 0 0 auto;
  padding: 6px 16px;
  border-top: 1px solid #e9ebed;
}
.pa-undo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: transparent;
  border: none;
  color: #232f3e;
  cursor: pointer;
  padding: 2px 0;
}
.pa-undo-btn:hover { text-decoration: underline; }

/* Entrada (QuickSight style: label + textarea + footer com botao a direita) */
.pa-input-area {
  flex: 0 0 auto;
  padding: 16px;
  border-top: 1px solid #e9ebed;
  background: #fff;
}
.pa-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #232f3e;
  margin-bottom: 8px;
}
.pa-input-wrapper {
  border: 1px solid #aab7b8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.pa-input-wrapper:focus-within { border-color: #232f3e; }
.pa-input {
  display: block;
  width: 100%;
  resize: none;
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  font-family: "Ubuntu", sans-serif;
  outline: none;
  background: transparent;
  color: #232f3e;
  line-height: 1.5;
  box-sizing: border-box;
}
.pa-input::placeholder { color: #aab7b8; }
.pa-input:disabled { background: #f5f5f5; }
.pa-input-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.pa-send {
  background: #232f3e;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Ubuntu", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.pa-send:hover:not(:disabled) { background: #37475a; }
.pa-send:disabled {
  background: #d5d9d9;
  color: #aab7b8;
  cursor: not-allowed;
}
.pa-icon-spin {
  animation: pa-icon-spin-rotate 0.8s linear infinite;
}
@keyframes pa-icon-spin-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.view-sharing-info {
    padding: 8px 0;
}

.sharing-section {
    padding: 16px;
    margin-bottom: 12px;
    background-color: #F5F5F5;
    background-color: var(--background-light, #F5F5F5);
    border-radius: 8px;
    border: 1px solid #E2E6F3;
    border: 1px solid var(--line-default, #E2E6F3);
}

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

.sharing-section.sharing-public {
    background-color: #e6f7ff;
    border-color: #91d5ff;
}

.sharing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sharing-icon {
    font-size: 18px;
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.sharing-public .sharing-icon {
    color: #1890ff;
}

.sharing-title {
    font-weight: 600;
    font-size: 14px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.sharing-description {
    margin: 0;
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
    font-size: 13px;
}

.sharing-list {
    background: transparent;
}

.sharing-list .ant-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--line-default, #E2E6F3);
}

.sharing-list .ant-list-item:last-child {
    border-bottom: none;
}

.sharing-list .ant-list-item-meta-title {
    font-size: 13px;
    font-weight: 500;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    margin-bottom: 2px;
}

.sharing-list .ant-list-item-meta-description {
    font-size: 12px;
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
}

.sharing-list-item {
    display: flex;
    align-items: center;
}

.sharing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sharing-tags .ant-tag {
    margin: 0;
    font-size: 12px;
}


.view-manager-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    gap: 16px;
}

.view-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.view-manager-header .ppdropdown {
    flex: 1 1;
    margin-bottom: 0;
}

.view-manager-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
}

/* Formulário de criação/edição */
.view-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #f5f5f5;
    background-color: var(--color-background-secondary, #f5f5f5);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border: 1px solid var(--color-border, #e0e0e0);
}

/* Reduz altura dos inputs no formulário de criação */
.view-form input {
    height: 28px !important;
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.view-form label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

.view-form-header h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.view-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.view-form-actions button {
    flex: 1 1;
    height: 28px !important;
    min-width: 80px !important;
    padding: 0.25rem 0.8rem !important;
    font-size: 12px !important;
}

/* Lista de views */
.view-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1 1;
    max-height: calc(100vh - 280px);
}

/* Quando o formulário de criação está aberto, reduz a altura da lista */
.view-list.view-list-with-form {
    max-height: calc(100vh - 550px);
}

.view-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    color: #666;
    color: var(--color-text-secondary, #666);
}

.view-empty-state p {
    margin: 4px 0;
}

.view-empty-hint {
    font-size: 12px;
    color: #999;
    color: var(--color-text-tertiary, #999);
}

/* Item de view */
.view-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: #fff;
    background-color: var(--color-background, #fff);
    border: 1px solid #e0e0e0;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-item:hover {
    border-color: #1976d2;
    border-color: var(--color-primary, #1976d2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-item.active {
    border-color: #6B6F7D;
    border-color: var(--color-secondary-lime, #6B6F7D);
    background-color: #f0f9ff;
    background-color: var(--color-background-active, #f0f9ff);
}

.view-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1;
}

.view-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.view-item-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
    flex: 1 1;
}

.view-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #6B6F7D;
    background-color: var(--color-secondary-lime, #6B6F7D);
    color: #333;
    color: var(--color-text-primary, #333);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.view-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    color: var(--color-text-secondary, #666);
    line-height: 1.4;
}

.view-metadata {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
    color: var(--color-text-tertiary, #999);
}

.view-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-config-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background-color: #f5f5f5;
    background-color: var(--color-background-secondary, #f5f5f5);
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    color: var(--color-text-secondary, #666);
}

.view-config-summary span {
    display: block;
}

/* Toggle de auto-salvar */
.view-autosave-toggle {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.view-autosave-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    color: var(--color-text-secondary, #666);
    -webkit-user-select: none;
            user-select: none;
}

.view-autosave-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6B6F7D;
    accent-color: var(--color-secondary-lime, #6B6F7D);
}

.view-autosave-text {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.view-item-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    border-top: 1px solid var(--color-border, #e0e0e0);
    margin-top: 8px;
}

/* Formulário de edição inline */
.view-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

/* Reduz altura dos inputs no formulário de edição */
.view-edit-form input {
    height: 28px !important;
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.view-edit-form label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

.view-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Botões do formulário de edição */
.view-edit-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: "Ubuntu", "Segoe UI", sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.view-edit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.view-edit-btn-primary {
    background-color: #471FCC;
    background-color: var(--color-primary-blue, #471FCC);
    color: white;
    border-color: #471FCC;
    border-color: var(--color-primary-blue, #471FCC);
}

.view-edit-btn-primary:hover:not(:disabled) {
    background-color: #3a18a8;
    border-color: #3a18a8;
}

.view-edit-btn-secondary {
    background-color: transparent;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    border-color: #E2E6F3;
    border-color: var(--line-default, #E2E6F3);
}

.view-edit-btn-secondary:hover:not(:disabled) {
    background-color: #F5F5F5;
    background-color: var(--background-light, #F5F5F5);
    border-color: #8B90A3;
    border-color: var(--text-light, #8B90A3);
}

/* Fix para tooltip nao ser cortado pelo overflow da sidebar */
.view-item-actions .lc-iconlink > .tooltip {
    z-index: 10001;
}

/* Ajusta o tooltip inline-left para aparecer mais a esquerda */
.view-item-actions .lc-iconlink > .tooltip > .body.inline-left {
    transform: translate(-100%, -50%) translateX(-10px);
}

.view-item-actions .lc-iconlink > .tooltip > .body.inline-left > .arrow {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .view-manager-panel {
        padding: 12px;
    }

    .view-item {
        padding: 10px;
    }

    .view-item-header h4 {
        font-size: 13px;
    }

    .view-description {
        font-size: 11px;
    }
}


