/* Stepper persistente e integrado da Estimativa. */
.atividade-estimation .estimativa-stepper {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  min-height: 3.5rem;
  overflow: hidden;
  border: 2px solid #6366f1;
  border-radius: .875rem;
  background: #f1f5f9;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}

.dark .atividade-estimation .estimativa-stepper { background: #1e293b; }
.atividade-estimation .estimativa-stepper:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}

.atividade-estimation :is(.estimativa-decrementar, .estimativa-incrementar) {
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, .12);
  color: #4338ca;
  font-size: 1.5rem;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.dark .atividade-estimation :is(.estimativa-decrementar, .estimativa-incrementar) { color: #c7d2fe; }
.atividade-estimation :is(.estimativa-decrementar, .estimativa-incrementar):hover:not(:disabled) { background: rgba(99, 102, 241, .25); }
.atividade-estimation :is(.estimativa-decrementar, .estimativa-incrementar):focus-visible { outline: 3px solid #818cf8; outline-offset: -3px; }
.atividade-estimation :is(.estimativa-decrementar, .estimativa-incrementar):disabled { opacity: .4; cursor: not-allowed; }

.atividade-estimation .estimativa-valor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
  padding: .5rem .75rem;
  border-inline: 1px solid rgba(99, 102, 241, .3);
}

.atividade-estimation .estimativa-input {
  width: 6ch;
  max-width: 40%;
  min-width: 0;
  appearance: textfield;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4f46e5;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}
.dark .atividade-estimation .estimativa-input { color: #c7d2fe; }
.atividade-estimation .estimativa-input::-webkit-inner-spin-button,
.atividade-estimation .estimativa-input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.atividade-estimation .estimativa-unidade {
  overflow: hidden;
  color: #334155;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dark .atividade-estimation .estimativa-unidade { color: #e2e8f0; }
.atividade-estimation .estimativa-stepper[data-desabilitado="true"] { opacity: .7; }
.atividade-estimation .estimativa-input:disabled { cursor: not-allowed; }

@media (max-width: 420px) {
  .atividade-estimation .estimativa-stepper { grid-template-columns: 3rem minmax(0, 1fr) 3rem; }
  .atividade-estimation .estimativa-valor { gap: .35rem; padding-inline: .5rem; }
  .atividade-estimation .estimativa-input { width: 5ch; }
  .atividade-estimation .estimativa-unidade { font-size: .875rem; }
}
