/* NEXTGUARD_OVERVIEW_HUB_V1 */

#ngv2OverviewHub {
  width: auto;
  min-height: calc(100vh - var(--ngv2-topbar));
  margin: 0;
  padding: 22px;
  color: var(--ngv2-ink);
  background: var(--ngv2-page);
}

#ngv2OverviewHub.hidden {
  display: none !important;
}

.ngv2-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--ngv2-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 15%, rgba(24,174,240,.15), transparent 20rem),
    linear-gradient(135deg, #ffffff, #f5fbff);
  box-shadow: var(--ngv2-shadow);
}

.ngv2-overview-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--ngv2-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ngv2-overview-hero h2 {
  margin: 0 0 5px;
  color: var(--ngv2-ink);
  font-size: 26px;
}

.ngv2-overview-hero p {
  margin: 0;
  color: var(--ngv2-muted);
  font-size: 13px;
}

#ngv2OverviewRefresh {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #9ed4f2;
  border-radius: 11px;
  color: #0871ba;
  background: #eef9ff;
  font-size: 12px;
  font-weight: 850;
}

.ngv2-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ngv2-overview-card {
  display: flex;
  min-width: 0;
  min-height: 172px;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--ngv2-line);
  border-radius: 16px;
  color: var(--ngv2-text);
  background: #fff;
  box-shadow: 0 6px 20px rgba(8,46,77,.045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ngv2-overview-card:hover {
  transform: translateY(-3px);
  border-color: #8acbec;
  box-shadow: 0 14px 30px rgba(8,46,77,.11);
}

.ngv2-overview-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
}

.ngv2-overview-card-head strong {
  display: block;
  color: var(--ngv2-ink);
  font-size: 15px;
}

.ngv2-overview-card-head small {
  display: block;
  margin-top: 3px;
  color: var(--ngv2-muted);
  font-size: 11px;
}

.ngv2-overview-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg,var(--ngv2-blue),var(--ngv2-cyan));
  font-size: 20px;
  font-weight: 900;
}

.ngv2-overview-card:nth-child(3n+2) .ngv2-overview-card-icon {
  background: linear-gradient(135deg,#f97316,#f5a33b);
}

.ngv2-overview-card:nth-child(3n) .ngv2-overview-card-icon {
  background: linear-gradient(135deg,#08ad73,#25c991);
}

.ngv2-overview-arrow {
  color: var(--ngv2-blue);
  font-size: 20px;
  font-weight: 900;
}

.ngv2-overview-value {
  display: block;
  margin-top: auto;
  padding-top: 19px;
  color: var(--ngv2-ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.ngv2-overview-meta {
  display: block;
  margin-top: 4px;
  color: var(--ngv2-muted);
  font-size: 11px;
}

@media (max-width: 1150px) {
  .ngv2-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #ngv2OverviewHub {
    padding: 14px;
  }

  .ngv2-overview-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .ngv2-overview-grid {
    grid-template-columns: 1fr;
  }

  .ngv2-overview-card {
    min-height: 158px;
  }
}
/* A Visão geral é uma tela própria; as telas comerciais não ficam ativas
   por trás dela mesmo se outro evento de navegação terminar depois. */
body.ngv2-overview-open #panelScreen #commercialSection,
body.ngv2-overview-open #panelScreen #ng6CommercialRoot,
body.ngv2-overview-open #ngOsV3Root > .ng-v3-modal{
  display:none !important;
}
