/* Overview: component styles. Shared layout and tokens live in style.css. */
.overview-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 12px;
  border-color: var(--line, #e4e4e7);
  background: var(--surface);
}

.overview-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: var(--focus-ring);
}

.overview-hero h2 {
  margin: 7px 0 6px;
  font-size: 24px;
  letter-spacing: -.6px;
}

.overview-hero p {
  color: var(--muted, #646469);
  font-size: 13px;
}

.overview-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-period {
  padding: 7px 10px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
  border-color: var(--line-strong);
  color: var(--focus-ring);
}

.overview-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-kpi {
  display: grid;
  gap: 7px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}

.overview-kpi:hover {
  border-color: var(--line-hover);
  background: var(--surface);
}

.overview-kpi>span {
  font-size: 12px;
  color: var(--muted, #646469);
}

.overview-kpi strong {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.overview-kpi small {
  font-size: 12px;
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.overview-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.overview-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.overview-panel-title h3 {
  margin-top: 4px;
  font-size: 16px;
}

.overview-panel-title .table-action {
  white-space: nowrap;
}

.overview-attention #overview-alerts {
  display: grid;
  gap: 8px;
}

.overview-action {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 8px;
  background: var(--surface-muted);
  text-align: left;
  color: var(--text);
}

.overview-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.overview-action>.delivery-icon {
  width: 17px;
  height: 17px;
  color: var(--focus-ring);
}

.overview-action>span {
  display: grid;
  gap: 2px;
}

.overview-action strong {
  font-size: 13px;
}

.overview-action small {
  font-size: 12px;
  line-height: 1.45;
}

.overview-action>svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--faint, #6e6e76);
}

.overview-integrations {
  display: grid;
  gap: 2px;
}

.overview-integration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft, #efeff2);
}

.overview-integration:last-child {
  border-bottom: 0;
}

.overview-integration .card-identity>div {
  display: grid;
}

.overview-integration strong {
  font-size: 13px;
}

.overview-integration small {
  font-size: 12px;
}

.overview-integration-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: var(--muted, #646469);
}

.overview-integration-mark .provider-logo:not(.wide) { width: 100%; height: 100%; }

/* Ícone genérico (sem logo): esse sim mantém o fundo, para não flutuar solto. */
.overview-integration-mark:has(> svg) { background: var(--surface-hover); }

.overview-integration-mark:has(.provider-logo.wide) {
  width: auto;
  min-width: 30px;
  padding-inline: 7px;
}

.overview-integration-mark img {
  width: 17px;
  height: 17px;
}

.overview-integration-mark svg {
  width: 17px;
  height: 17px;
}

.overview-products {
  margin-top: 18px;
}

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

.overview-product {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  color: var(--text);
}

.overview-product:hover {
  background: var(--surface-muted);
  border-color: var(--line-hover);
}

.overview-product>span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.overview-product strong {
  font-size: 13px;
}

.overview-product small {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-product-count {
  font-size: 12px;
  color: var(--muted, #646469);
}

.overview-product>svg {
  width: 14px;
  height: 14px;
  color: var(--faint, #6e6e76);
}

.overview-shortcuts {
  margin-bottom: 8px;
}

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

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

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

  .overview-product-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .overview-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}
@media (max-width:600px) {
  .overview-hero {
    padding: 20px;
    flex-direction: column;
  }

  .overview-hero h2 {
    font-size: 21px;
  }

  .overview-kpis {
    gap: 8px;
  }

  .overview-kpi {
    padding: 15px;
  }

  .overview-kpi strong {
    font-size: 23px;
  }

  .overview-layout {
    gap: 0;
  }

  .overview-panel {
    padding: 17px;
  }

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

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

  .overview-panel-title {
    align-items: flex-start;
  }

  .overview-panel-title .table-action {
    white-space: normal;
    text-align: right;
  }

  .overview-period {
    order: -1;
  }

  .overview-action {
    min-height: 62px;
  }

}

/* ==========================================================================
   Visão geral sem cartões: a página é uma sequência de seções com divisória, como na Stripe.
   Vem depois das regras antigas de propósito (mesma especificidade, a última vence).
   ========================================================================== */
.overview-kicker { display: none; }
.overview-hero { margin-bottom: 0; padding: 0; border: 0; border-radius: 0; background: transparent; align-items: center; }
.overview-hero p { font-size: var(--fs-base, 14px); }
.overview-period { padding: 0; border: 0; background: transparent; color: var(--muted, #646469); font-size: 13px; }

/* as métricas viram uma faixa única entre dois fios */
.overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 20px 0 0; border-block: 1px solid var(--line, #e4e4e7); }
.overview-kpi { padding: 20px 24px 20px 0; border: 0; border-radius: 0; background: transparent; }
.overview-kpi + .overview-kpi { padding-left: 24px; border-left: 1px solid var(--line, #e4e4e7); }
.overview-kpi:hover { border-color: var(--line, #e4e4e7); background: var(--surface-subtle, #fafafa); }
.overview-kpi > span, .overview-kpi small { font-size: 13px; }

.overview-layout { gap: 56px; }
.overview-panel { margin-top: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.overview-panel-title { align-items: center; margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e4e4e7); }
.overview-panel-title h3 { margin-top: 0; font-size: var(--fs-lg, 16px); }

/* linhas: divisória fina no lugar de caixas */
.overview-attention #overview-alerts { gap: 0; }
.overview-action, .overview-product { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line-soft, #efeff2); border-radius: 0; background: transparent; }
.overview-action:hover, .overview-product:hover { border-color: var(--line-soft, #efeff2); background: var(--surface-subtle, #fafafa); }
.overview-integration { padding: 12px 0; }
.overview-action strong, .overview-integration strong, .overview-product strong { font-size: 14px; }
.overview-action small, .overview-integration small, .overview-product small, .overview-product-count { font-size: 13px; }
.overview-product-list { grid-template-columns: 1fr; gap: 0; }
.overview-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.overview-products, .overview-shortcuts { margin-top: 36px; }

@media (max-width: 1000px) {
  .overview-kpis { grid-template-columns: 1fr; }
  .overview-kpi { padding: 16px 0; }
  .overview-kpi + .overview-kpi { padding-left: 0; border-left: 0; border-top: 1px solid var(--line, #e4e4e7); }
  .overview-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .overview-hero { padding: 0; }
  .overview-panel { padding: 0; }
}
.overview-panel-title { min-height: 40px; }
