/* 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: 'Inter', 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;
  }
}
}

.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: "Inter", sans-serif;
    font-size: 14px;
}

.resumo_webSitesCardRowCMS__RUzFv {
    display: grid;
    grid-template-columns: 1fr 6fr 2fr;
    padding: 2px;
    justify-content: flex-start;
    font-family: "Inter", 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;
}

/* Service Detail (Operations · Serviço) — recursos reais de uma categoria de serviço */
.ops-svd {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ops-svd__breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #8684A8; color: var(--text-light, #8684A8); }
.ops-svd__crumb { cursor: pointer; color: #471FCC; color: var(--color-primary-blue, #471FCC); font-weight: 600; }
.ops-svd__crumb:hover { text-decoration: underline; }
.ops-svd__breadcrumb strong { color: #2E1956; color: var(--text-default, #2E1956); }

.ops-svd__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ops-svd__head h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; font-weight: 700; color: #2E1956; color: var(--text-default, #2E1956); }
.ops-svd__head p { margin: 4px 0 0; font-size: 0.82rem; color: #8684A8; color: var(--text-light, #8684A8); }

.ops-svd__refresh, .ops-svd__back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 8px; border: 1px solid #E8E5F1; border: 1px solid var(--border-color, #E8E5F1);
    background: #fff; color: #2E1956; color: var(--text-default, #2E1956); font-size: 0.8rem; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.ops-svd__refresh:hover:not(:disabled), .ops-svd__back:hover { border-color: #471FCC; border-color: var(--color-primary-blue, #471FCC); background: #F7F6FB; background: var(--background-neutral, #F7F6FB); }
.ops-svd__refresh:disabled { opacity: .6; cursor: default; }
.ops-svd__back { align-self: flex-start; margin-top: 8px; }
.is-spinning { animation: ops-svd-spin 1s linear infinite; }
@keyframes ops-svd-spin { to { transform: rotate(360deg); } }

/* KPIs */
.ops-svd__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); grid-gap: 10px; gap: 10px; }
.ops-svd__kpi { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 10px; border: 1px solid #E8E5F1; border: 1px solid var(--border-color, #E8E5F1); background: #fff; }
.ops-svd__kpi-value { font-size: 1.3rem; font-weight: 700; color: #2E1956; color: var(--text-default, #2E1956); line-height: 1.1; }
.ops-svd__kpi-clouds { display: inline-flex; gap: 6px; align-items: center; min-height: 1.4rem; }
.ops-svd__kpi-label { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: #8684A8; color: var(--text-light, #8684A8); }

/* Types */
.ops-svd__types { display: flex; flex-direction: column; gap: 6px; }
.ops-svd__types-h { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .03em; color: #8684A8; color: var(--text-light, #8684A8); font-weight: 700; }
.ops-svd__types-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ops-svd__types-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-svd__type-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.74rem; padding: 3px 9px; border-radius: 999px;
    background: #F1EFF8;
    background: var(--background-neutral, #F1EFF8); color: #6B6890; color: var(--text-light, #6B6890);
}
.ops-svd__types-chips.is-collapsed {
    flex-wrap: nowrap;
    overflow: hidden;
}
.ops-svd__types-chips.is-collapsed .ops-svd__type-chip {
    flex: 0 0 auto;
}
.ops-svd__types-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    background: #fff;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    flex-shrink: 0;
}
.ops-svd__types-toggle:hover {
    background: #F7F6FB;
    background: var(--background-neutral, #F7F6FB);
    border-color: #471FCC;
    border-color: var(--color-primary-blue, #471FCC);
}
.ops-svd__type-name { color: #2E1956; color: var(--text-default, #2E1956); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.ops-svd__type-count { font-weight: 700; color: #2E1956; color: var(--text-default, #2E1956); }

/* Seleções hierárquicas */
.ops-svd__scope-section,
.ops-svd__resources-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ops-svd__resources-section {
    flex: 1 1 auto;
    min-height: 0;
}

.ops-svd__scope-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.ops-svd__scope-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ops-svd__scope-heading strong {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 0.78rem;
    font-weight: 700;
}

.ops-svd__scope-heading span {
    overflow: hidden;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-svd__scope-heading > b {
    flex: 0 0 auto;
    min-width: 24px;
    color: #6B6890;
    color: var(--text-light, #6B6890);
    font-size: 0.78rem;
    text-align: right;
}

.ops-svd__scope-list {
    display: flex;
    flex-direction: column;
    max-height: clamp(240px, 48vh, 520px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    border-radius: 10px;
    background: #fff;
}

.ops-svd__scope-list::-webkit-scrollbar {
    width: 7px;
}

.ops-svd__scope-list::-webkit-scrollbar-track {
    background: #F7F6FB;
    background: var(--background-neutral, #F7F6FB);
    border-radius: 10px;
}

.ops-svd__scope-list::-webkit-scrollbar-thumb {
    background: #D8D4E7;
    background: var(--border-color, #D8D4E7);
    border-radius: 10px;
}

.ops-svd__scope-list::-webkit-scrollbar-thumb:hover {
    background: #471FCC;
    background: var(--color-primary-blue, #471FCC);
}

.ops-svd__scope-loading {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    border-radius: 10px;
    background: #fff;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    font-size: 0.78rem;
}

.ops-svd__scope-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(70px, auto) 20px;
    align-items: center;
    grid-gap: 10px;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px 13px;
    border: 0;
    border-top: 1px solid #EFEDF6;
    border-top: 1px solid var(--border-color, #EFEDF6);
    background: #fff;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    text-align: left;
    transition: background .12s, border-color .12s;
}

.ops-svd__scope-row:first-child { border-top: 0; }
.ops-svd__scope-row:hover { background: #F7F6FB; background: var(--background-neutral, #F7F6FB); }
.ops-svd__scope-row.is-active { background: color-mix(in srgb, #471FCC 6%, #fff); background: color-mix(in srgb, var(--color-primary-blue, #471FCC) 6%, #fff); }

.ops-svd__scope-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border-radius: 8px;
    background: #F1EFF8;
    background: var(--background-neutral, #F1EFF8);
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.ops-svd__scope-row.is-active .ops-svd__scope-icon {
    background: color-mix(in srgb, #471FCC 12%, #fff);
    background: color-mix(in srgb, var(--color-primary-blue, #471FCC) 12%, #fff);
}

.ops-svd__scope-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ops-svd__scope-copy strong {
    overflow: hidden;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 0.8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-svd__scope-copy small {
    overflow: hidden;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-svd__scope-count {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 0.78rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ops-svd__scope-go {
    flex: 0 0 auto;
    color: #B6B3CC;
    color: var(--text-light, #B6B3CC);
}

.ops-svd__resource-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ops-svd__resource-toolbar .ops-svd__scope-heading { flex: 1 1 auto; }

/* Toolbar */
.ops-svd__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ops-svd__providers { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-svd__prov {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 999px; border: 1px solid #E8E5F1; border: 1px solid var(--border-color, #E8E5F1);
    background: #fff; color: #2E1956; color: var(--text-default, #2E1956); font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ops-svd__prov:hover { background: #F7F6FB; background: var(--background-neutral, #F7F6FB); }
.ops-svd__prov.is-active { border-color: #471FCC; border-color: var(--color-primary-blue, #471FCC); background: color-mix(in srgb, #471FCC 8%, #fff); background: color-mix(in srgb, var(--color-primary-blue, #471FCC) 8%, #fff); }

.ops-svd__search { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; border: 1px solid #E8E5F1; border: 1px solid var(--border-color, #E8E5F1); color: #8684A8; color: var(--text-light, #8684A8); min-width: 240px; }
.ops-svd__search input { border: 0; outline: 0; background: transparent; font-size: 0.8rem; color: #2E1956; color: var(--text-default, #2E1956); width: 100%; }

.ops-svd__accounts { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-svd__acc {
    display: inline-flex; align-items: center; gap: 5px; max-width: 260px;
    padding: 5px 10px; border-radius: 7px; border: 1px solid #E8E5F1; border: 1px solid var(--border-color, #E8E5F1);
    background: #fff; color: #6B6890; color: var(--text-light, #6B6890); font-size: 0.74rem; font-weight: 600; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-svd__acc.is-active { border-color: #471FCC; border-color: var(--color-primary-blue, #471FCC); color: #2E1956; color: var(--text-default, #2E1956); background: color-mix(in srgb, #471FCC 6%, #fff); background: color-mix(in srgb, var(--color-primary-blue, #471FCC) 6%, #fff); }

/* RevoGrid de recursos */
.ops-svd__table--revo {
    flex: 1 1 auto;
    height: auto;
    min-height: 220px;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.ops-svd__table--revo revo-grid {
    display: block;
    width: 100%;
    height: 100%;
}

/* Cabeçalho RevoGrid no padrão visual das tabelas do sistema. */
.ops-svd__table--revo revo-grid .header-rgRow,
.ops-svd__table--revo revo-grid .rgHeaderCell {
    background-color: #fff !important;
    background-color: var(--background-white, #fff) !important;
    border-bottom: 1px solid #E2E6F3 !important;
    border-bottom: 1px solid var(--line-default, #E2E6F3) !important;
    min-height: 30px;
}

.ops-svd__table--revo revo-grid .rgHeaderCell {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: none !important;
    box-shadow: none !important;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-transform: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ops-svd__table--revo revo-grid .rgHeaderCell::before,
.ops-svd__table--revo revo-grid .rgHeaderCell::after,
.ops-svd__table--revo revo-grid .rgHeaderCell .resizable-r,
.ops-svd__table--revo revo-grid .header-rgRow .resizable-r,
.ops-svd__table--revo revo-grid .header-rgRow .resize-r {
    border: none !important;
    background: transparent !important;
}

.ops-svd__table--revo revo-grid revogr-header,
.ops-svd__table--revo revo-grid revogr-header .rgHeaderCell,
.ops-svd__table--revo revo-grid revogr-viewport-scroll.colPinStart revogr-header,
.ops-svd__table--revo revo-grid revogr-viewport-scroll.colPinStart revogr-header .rgHeaderCell,
.ops-svd__table--revo revo-grid revogr-viewport-scroll.colPinEnd revogr-header,
.ops-svd__table--revo revo-grid revogr-viewport-scroll.colPinEnd revogr-header .rgHeaderCell {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

.ops-svd__table--revo revo-grid .rgHeaderCell:hover,
.ops-svd__table--revo revo-grid .rgHeaderCell.sort-asc,
.ops-svd__table--revo revo-grid .rgHeaderCell.sort-desc {
    background-color: #FAFBFD !important;
    background-color: var(--background-lightest, #FAFBFD) !important;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.ops-svd__table--revo revo-grid .rgHeaderCell.sortable {
    cursor: pointer;
}

.ops-svd__table--revo revo-grid .rgHeaderCell .sort-icon,
.ops-svd__table--revo revo-grid .rgHeaderCell.sort-asc::after,
.ops-svd__table--revo revo-grid .rgHeaderCell.sort-desc::after {
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
    font-size: 0.65rem;
}

.ops-svd__table--revo revo-grid .rgCell {
    box-sizing: border-box;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-right: none !important;
}

.ops-svd__table--revo revo-grid .rgRow {
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--line-default, #E2E6F3);
}

.ops-svd__table--revo revo-grid .rgRow:hover {
    background-color: #FAFBFD;
    background-color: var(--background-lightest, #FAFBFD);
}

.ops-svd__table--revo revo-grid .revo-cell--right {
    justify-content: flex-end;
    text-align: right;
}

.ops-svd__table--revo revo-grid .revo-cell--center {
    justify-content: center;
    text-align: center;
}

.ops-svd__grid-status {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}
.ops-svd__grid-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}
.ops-svd__status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: capitalize; }
.ops-svd__status--ok { background: color-mix(in srgb, #34C38F 16%, #fff); background: color-mix(in srgb, var(--color-secondary-green-light, #34C38F) 16%, #fff); color: #1B8A63; }
.ops-svd__status--danger { background: color-mix(in srgb, #DC291E 12%, #fff); background: color-mix(in srgb, var(--status-red, #DC291E) 12%, #fff); color: #DC291E; color: var(--status-red, #DC291E); }
.ops-svd__status--muted { background: #F1EFF8; background: var(--background-neutral, #F1EFF8); color: #8B90A3; }

@media (max-width: 620px) {
    .ops-svd__resource-toolbar { align-items: stretch; flex-direction: column; }
    .ops-svd__resource-toolbar .ops-svd__search { min-width: 0; width: 100%; }
    .ops-svd__scope-row { grid-template-columns: 36px minmax(0, 1fr) minmax(58px, auto) 18px; gap: 8px; padding-inline: 9px; }
}

/* O Serviço embutido no ResumeCMS usa cards menores que a página standalone.
   Os ajustes ficam escopados a .cms-svc e preservam as contagens alinhadas à
   direita. */
.cms-svc .ops-svd {
    min-width: 0;
    gap: clamp(6px, 0.8vw, 12px);
}

.cms-svc .ops-svd__breadcrumb {
    min-width: 0;
    gap: clamp(4px, 0.45vw, 7px);
    overflow: hidden;
    font-size: clamp(0.62rem, 0.68vw, 0.8rem);
    white-space: nowrap;
}

.cms-svc .ops-svd__breadcrumb strong,
.cms-svc .ops-svd__crumb {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-svc .ops-svd__head {
    min-width: 0;
    gap: clamp(8px, 1vw, 16px);
}

.cms-svc .ops-svd__head > div {
    min-width: 0;
}

.cms-svc .ops-svd__head h1 {
    min-width: 0;
    gap: clamp(5px, 0.55vw, 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.82rem, 1vw, 1.15rem);
}

.cms-svc .ops-svd__head p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.62rem, 0.7vw, 0.82rem);
}

.cms-svc .ops-svd__refresh,
.cms-svc .ops-svd__back {
    gap: clamp(4px, 0.45vw, 6px);
    padding: clamp(5px, 0.5vw, 7px) clamp(8px, 0.8vw, 12px);
    font-size: clamp(0.62rem, 0.68vw, 0.8rem);
}

.cms-svc .ops-svd__kpis {
    min-width: 0;
    gap: clamp(6px, 0.65vw, 10px);
}

.cms-svc .ops-svd__kpi {
    min-width: 0;
    padding: clamp(8px, 0.7vw, 11px) clamp(9px, 0.85vw, 14px);
}

.cms-svc .ops-svd__kpi-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
}

.cms-svc .ops-svd__kpi-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.58rem, 0.64vw, 0.72rem);
}

.cms-svc .ops-svd__types-h,
.cms-svc .ops-svd__scope-heading strong {
    font-size: clamp(0.62rem, 0.68vw, 0.78rem);
}

.cms-svc .ops-svd__type-chip,
.cms-svc .ops-svd__type-name {
    font-size: clamp(0.6rem, 0.66vw, 0.74rem);
}

.cms-svc .ops-svd__scope-heading {
    gap: clamp(7px, 0.8vw, 12px);
}

.cms-svc .ops-svd__scope-heading > div {
    min-width: 0;
}

.cms-svc .ops-svd__scope-heading span {
    font-size: clamp(0.58rem, 0.62vw, 0.7rem);
}

.cms-svc .ops-svd__scope-heading > b,
.cms-svc .ops-svd__scope-count {
    font-size: clamp(0.64rem, 0.7vw, 0.78rem);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.cms-svc .ops-svd__scope-row {
    grid-template-columns: clamp(32px, 3vw, 40px) minmax(0, 1fr) minmax(58px, auto) clamp(18px, 1.5vw, 20px);
    gap: clamp(6px, 0.65vw, 10px);
    padding: clamp(7px, 0.65vw, 10px) clamp(9px, 0.8vw, 13px);
}

.cms-svc .ops-svd__scope-list {
    max-height: clamp(190px, 42vh, 360px);
}

.cms-svc .ops-svd__scope-icon {
    width: clamp(29px, 2.6vw, 34px);
    height: clamp(27px, 2.3vw, 30px);
}

.cms-svc .ops-svd__scope-copy strong {
    font-size: clamp(0.66rem, 0.72vw, 0.8rem);
}

.cms-svc .ops-svd__scope-copy small {
    font-size: clamp(0.56rem, 0.6vw, 0.68rem);
}

.cms-svc .ops-svd__resource-toolbar,
.cms-svc .ops-svd__toolbar {
    min-width: 0;
    gap: clamp(7px, 0.8vw, 12px);
}

.cms-svc .ops-svd__resource-toolbar .ops-svd__scope-heading {
    min-width: 0;
}

.cms-svc .ops-svd__search {
    min-width: clamp(160px, 20vw, 240px);
    padding: clamp(5px, 0.45vw, 6px) clamp(8px, 0.7vw, 11px);
}

.cms-svc .ops-svd__search input,
.cms-svc .ops-svd__prov,
.cms-svc .ops-svd__acc {
    font-size: clamp(0.62rem, 0.68vw, 0.8rem);
}

.cms-svc .ops-svd__prov {
    padding: clamp(5px, 0.55vw, 7px) clamp(9px, 0.85vw, 13px);
}

.cms-svc .ops-svd__acc {
    max-width: 100%;
    padding: clamp(4px, 0.4vw, 5px) clamp(8px, 0.65vw, 10px);
}

.cms-svc .ops-svd__table {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.cms-svc .ops-svd__table--revo {
    height: clamp(190px, 28vh, 340px);
    min-height: 190px;
}

.cms-svc .ops-svd__status {
    padding-inline: clamp(6px, 0.6vw, 9px);
    font-size: clamp(0.58rem, 0.64vw, 0.72rem);
}

.service-health-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    color: var(--text-default);
}

.service-health-services__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-health-services__toolbar h1 {
    margin: 0;
    font-size: 18px;
}

.service-health-services__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line-default);
    border-radius: 8px;
    background: var(--background-white);
}

.service-health-services__filter {
    display: flex;
    min-width: 160px;
    flex: 1 1 160px;
    flex-direction: column;
    gap: 5px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.service-health-services__filter input,
.service-health-services__filter select {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid var(--line-default);
    border-radius: 5px;
    background: var(--background-white);
    color: var(--text-default);
    font: inherit;
}

.service-health-services__refresh,
.service-health-services__button,
.service-health-services__link {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--color-primary-purple);
    border-radius: 5px;
    background: var(--background-white);
    color: var(--color-primary-purple);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.service-health-services__refresh:hover,
.service-health-services__button:hover,
.service-health-services__link:hover {
    background: var(--background-lightest);
}

.service-health-services__refresh:disabled,
.service-health-services__button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.service-health-services__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    grid-gap: 12px;
    gap: 12px;
}

.service-health-services__kpi {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--line-default);
    border-radius: 8px;
    background: var(--background-white);
}

.service-health-services__kpi-label {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.service-health-services__kpi-value {
    color: var(--text-default);
    font-size: 24px;
    font-weight: 700;
}

.service-health-services__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-default);
    border-radius: 8px;
    background: var(--background-white);
}

.service-health-services__status-label {
    font-size: 14px;
    font-weight: 700;
}

.service-health-services__status--degraded {
    border-color: var(--status-yellow);
}

.service-health-services__status--critical,
.service-health-services__status--unavailable {
    border-color: var(--status-red);
}

.service-health-services__table {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-default);
    border-radius: 8px;
    background: var(--background-white);
}

.service-health-services__table > .lc-datatableinfinite {
    min-width: 0;
    overflow-x: auto;
}

.service-health-services__table > .lc-datatableinfinite > .header,
.service-health-services__table > .lc-datatableinfinite > .body {
    min-width: 720px;
}

.service-health-services__table-title,
.service-health-services__trend-title {
    margin: 0;
    padding: 14px 16px 8px;
    color: var(--text-default);
    font-size: 16px;
    font-weight: 700;
}

.service-health-services__table-caption {
    margin: 0;
    padding: 0 16px 12px;
    color: var(--text-light);
    font-size: 12px;
}

.service-health-services__muted {
    color: var(--text-light);
}

.service-health-services__provenance {
    display: block;
    margin-top: 2px;
    color: var(--text-light);
    font-size: 11px;
}

.service-health-services__trend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    border: 1px solid var(--line-default);
    border-radius: 8px;
    background: var(--background-white);
}

.service-health-services__trend-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 12px;
    gap: 12px;
    padding: 0 16px;
}

.service-health-services__trend-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line-default);
    border-radius: 6px;
}

.service-health-services__trend-name {
    font-size: 12px;
    font-weight: 700;
}

.service-health-services__trend-chart {
    display: block;
    width: 100%;
    height: 52px;
}

.service-health-services__trend-line {
    fill: none;
    stroke-width: 2.5;
}

.service-health-services__trend-line--Saudavel {
    stroke: var(--status-green);
}

.service-health-services__trend-line--EmDegradacao,
.service-health-services__trend-line--Desconhecido {
    stroke: var(--status-yellow);
}

.service-health-services__trend-line--Critico,
.service-health-services__trend-line--Indisponivel {
    stroke: var(--status-red);
}

.service-health-services__drawer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 20px;
}

.service-health-services__drawer-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 10px;
    gap: 10px;
}

.service-health-services__drawer-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line-default);
    border-radius: 6px;
}

.service-health-services__drawer-summary-item strong {
    color: var(--text-light);
    font-size: 11px;
}

.service-health-services__drawer-summary-item span {
    font-size: 13px;
    font-weight: 600;
}

.service-health-services__drawer-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-default);
}

.service-health-services__drawer-tab {
    padding: 8px 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.service-health-services__drawer-tab--active {
    border-bottom-color: var(--color-primary-purple);
    color: var(--color-primary-purple);
}

.service-health-services__drawer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-health-services__drawer-section h3 {
    margin: 0;
    font-size: 14px;
}

.service-health-services__drawer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-health-services__drawer-list li {
    padding: 10px;
    border: 1px solid var(--line-default);
    border-radius: 6px;
}

.service-health-services__drawer-list strong,
.service-health-services__drawer-list span {
    display: block;
}

.service-health-services__drawer-list span {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 12px;
}

.service-health-services__drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.service-health-services__drawer-warning {
    color: var(--text-light);
    font-size: 12px;
}

@media (max-width: 720px) {
    .service-health-services__filters {
        align-items: stretch;
    }

    .service-health-services__drawer-summary {
        grid-template-columns: 1fr;
    }

    .service-health-services__table {
        overflow: visible;
    }

    .service-health-services__table > .lc-datatableinfinite {
        padding-bottom: 4px;
    }
}

.lcdashboard.service-health-page-host {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.service-health-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    gap: var(--space-4, 16px);
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    color: var(--text-default);
    padding: 20px 22px;
    background: #fbfdff;
    box-sizing: border-box;
    overflow: hidden;
}

.service-health-page__content {
    width: 100%;
    min-width: 0;
    flex: 1 1;
    min-height: 0;
    overflow: auto;
    container-type: size;
}

.service-health-page > :not(.service-health-page__content):not(.service-health-overview) {
    flex: 0 0 auto;
}

.service-health-page-host .service-health-workspace-card > .card-content-body {
    flex: 1 1;
    min-height: 0;
    max-height: 100%;
}

.service-health-page-host .service-health-overview {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.service-health-page__content :is(.service-health-incidents, .service-health-services, .service-health-compliance, .premium-follow-up) {
    height: 100%;
    min-height: 0;
}

.service-health-page__content :is(.service-health-incidents, .service-health-services, .service-health-compliance, .premium-follow-up) > * {
    flex: 0 0 auto;
}

.service-health-page__content :is(.service-health-services__table, .premium-follow-up__queue) {
    display: flex;
    flex-direction: column;
    flex: 1 0 min(260px, 100cqh);
    min-height: 0;
}

.service-health-page__content .service-health-compliance__workspace {
    flex: 1 0 min(300px, 100cqh);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
}

.service-health-page__content .service-health-compliance__table {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.service-health-page__content .service-health-compliance__side {
    min-height: 0;
    overflow-y: auto;
}

.service-health-page__content .service-health-grid-section {
    display: flex;
    flex-direction: column;
    height: 100cqh;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.service-health-page__content .service-health-grid-space {
    display: flex;
    flex-direction: column;
    flex: 1 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.service-health-page__content .service-health-grid-space > .revo-grid-table {
    flex: 1 1;
    min-height: 0;
    overflow: hidden;
}

.service-health-page__content .service-health-grid-space .revo-grid-table__grid {
    flex: 1 1;
    height: 100% !important;
    min-height: 0;
    overflow: hidden;
}

.service-health-page__content .service-health-grid-space revo-grid {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.service-health-page__content .service-health-incidents__content {
    flex: 1 0 min(260px, 100cqh);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
}

.service-health-page__content .service-health-incidents__detail {
    min-height: 0;
    overflow-y: auto;
}

.service-health-page__content .service-health-incidents__queue {
    height: auto;
}

.service-health-page .lct-tab { font-size: 11px !important; }
.service-health-page .lct-tab--active { color: #0866ff; border-bottom-color: #0866ff; }
.service-health-page .lct-tab--active .lct-tab-badge { background: #0866ff; }
.service-health-page .lct-tab-badge { font-size: 9px; }
.service-health-page .lct-tab:last-child .lct-tab-badge { color: #b97900; background: #fff4d4; }
.service-health-page-host .lcdashboard-cards-panel-body { padding: 0 !important; }
@media (max-width: 1080px) {
    .service-health-page__content .service-health-incidents__content {
        flex: 0 0 auto;
        grid-template-rows: minmax(0, 70cqh) auto;
    }
}

@media (max-width: 800px) {
    .service-health-page__content .service-health-compliance__workspace {
        flex: 0 0 auto;
        grid-template-rows: minmax(0, 100cqh) auto;
    }

    .service-health-page__content .service-health-compliance__side {
        overflow: visible;
    }
}
@media (max-width: 650px) { .service-health-page { padding: 16px 12px; } }
