/* Super App V1.23 — custom FD tenure months + mobile place suggestion layout fix */

.v15-version-pill::after,
.v15-settings-row[data-v15-me-open="about"] .v15-settings-status::after,
.v15-about-card h3::after{content:attr(data-app-version)!important}

/* Custom FD tenure is entered as months; maturity stays system-calculated. */
.v23-custom-tenure{min-width:0}
.v23-custom-tenure small,
.v23-maturity-note{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.35;
}
.v23-calculated-maturity{
  background:var(--surface-2)!important;
  color:var(--green)!important;
  font-weight:700!important;
}

/* V1.21 used a broad .v21-city-row button rule for the remove-city control.
   These higher-specificity rules keep autocomplete options full-width instead of 42px. */
.v21-city-row .v22-place-field .v22-place-results .v22-place-option,
.v21-city-row .v22-place-field .v23-place-option{
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:56px!important;
  padding:11px 12px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--green)!important;
  font-size:inherit!important;
  line-height:1.2!important;
  text-align:left!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  align-items:center!important;
  justify-items:stretch!important;
  overflow:visible!important;
}
.v21-city-row .v22-place-field .v22-place-results .v22-place-option:last-of-type,
.v21-city-row .v22-place-field .v23-place-option:last-of-type{border-bottom:0!important}
.v21-city-row .v22-place-field .v22-place-option strong,
.v21-city-row .v22-place-field .v23-place-option strong{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.v21-city-row .v22-place-field .v22-place-option small,
.v21-city-row .v22-place-field .v23-place-option small{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
}
.v22-place-results.v23-place-results{
  width:100%!important;
  max-width:100%!important;
  max-height:min(300px,38vh)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

@media(max-width:520px){
  .v22-place-results.v23-place-results{max-height:min(250px,34vh)!important}
  .v21-city-row .v22-place-field .v22-place-results .v22-place-option,
  .v21-city-row .v22-place-field .v23-place-option{min-height:58px!important;padding:12px!important}
}
