/* Area creators: quello che si aggiunge allo stile dell'area agency (base.css, lo stesso file). */

/* Pannello del login: le schede senza logo di un servizio hanno un'icona in un cerchio di vetro. */
.art-glass {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.art-glass svg {
  width: 20px;
  height: 20px;
}

/* Home: accanto alla scheda "Available" ci sono due stadi, non tre. Si dividono l'altezza a metà, con l'importo più
   grande. L'icona dello stadio è un disegno, non un logo. */
.stages-two {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.stages-two .stage {
  justify-content: center;
  gap: 10px;
  padding: 22px 24px;
}

.stages-two .stage-amount {
  font-size: 30px;
}

.stages-two .stage-step {
  width: 26px;
  height: 26px;
}

.stages-two .stage-step svg {
  width: 14px;
  height: 14px;
}

.stages-two .stage-main .stage-amount,
.stages-two .stage-main .stage-label {
  color: var(--blue);
}

.stages-two .stage-main {
  background: var(--blue-bg);
  border-color: transparent;
}

.stages-two .stage-main .stage-step {
  border: 1px solid currentColor;
}

/* Insights con tre numeri. */
.stat-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Un payout in trasferimento: importo azzurro (in attesa è giallo, disponibile è verde, come nell'area agency). */
.mov-transfer {
  color: var(--blue);
}

/* Dettaglio di un payout: i tre passaggi, uno sotto l'altro, uniti da una linea. Fatto = pallino pieno verde; in
   corso = anello azzurro; da fare = pallino vuoto. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding-bottom: 20px;
  color: var(--faint);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: -2px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.steps li:last-child::before {
  display: none;
}

.step-dot {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
}

.steps .is-done {
  color: var(--text);
}

.steps .is-done .step-dot {
  border-color: var(--green);
  background: var(--green);
}

.steps .is-done::before {
  background: var(--green);
}

.steps .is-current .step-dot {
  box-shadow: 0 0 0 4px var(--green-bg);
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.step-text strong {
  font-size: 14px;
  font-weight: 600;
}

.step-text small {
  font-size: 12px;
  color: var(--muted);
}

.steps li:not(.is-done) .step-text small {
  color: var(--faint);
}

.step-when {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Activity: i filtri stanno in cima al riquadro. */
#activity-filters {
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  /* Tre voci nella barra in basso, non sei. */
  .tabbar-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stages-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .stages-two .stage {
    padding: 16px 18px;
  }

  .stages-two .stage-amount {
    font-size: 22px;
  }

  /* Tre numeri su uno schermo stretto: riquadri più compatti, così "$4,056.50" ci sta. */
  .stat-row-three {
    gap: 8px;
  }

  .stat-row-three .stat {
    padding: 12px;
  }

  .stat-row-three .stat strong {
    font-size: 15px;
  }
}
