/* The setup pages (income types, programs, decision reasons, threshold versions, program settings).
   They share the cards, buttons and form fields of the application page (application-workspace.css) and add the frame, the switches and the choice tiles. */

.asap-st { display: flex; flex-direction: column; gap: 14px; color: var(--ws-ink); padding: 4px 2px 24px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.asap-st__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 16px 20px;
    border: 1px solid var(--ws-line);
    border-left: 5px solid var(--ws-accent);
    border-radius: 10px;
    background: #fff;
}
.asap-st__title { flex: 1 1 280px; min-width: 0; }
.asap-st__title h2 { margin: 0; font-size: 1.35rem; font-weight: 700; color: #0a3d4c; }
.asap-st__title p { margin: 4px 0 0; color: var(--ws-muted); font-size: 0.92rem; }
.asap-st__state { display: flex; flex-wrap: wrap; gap: 8px; }
.asap-st__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.asap-st__errors ul { margin: 6px 0 0; padding-left: 20px; }
.asap-alert--info { background: var(--ws-accent-soft); color: #0a3d4c; }
.asap-st__body { display: block; }

/* ── Card bodies ─────────────────────────────────────────────────────────── */
.asap-card__pad { padding: 16px; }
.asap-stack { display: flex; flex-direction: column; gap: 14px; }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.asap-field__unit { margin-left: 4px; font-style: normal; font-weight: 400; color: var(--ws-muted); }
.asap-field__help { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; color: var(--ws-muted); }
.asap-field--top { margin-top: 14px; }
.asap-input--num { max-width: 180px; }
.asap-money { display: flex; align-items: center; gap: 6px; }
.asap-money > span { color: var(--ws-muted); font-weight: 600; }
.asap-table--form td { vertical-align: middle; }

/* ── Switches ────────────────────────────────────────────────────────────── */
.asap-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.asap-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.asap-toggle__track { position: relative; flex: none; width: 42px; height: 24px; margin-top: 1px; border-radius: 999px; background: #b9c8cf; transition: background 0.15s; }
.asap-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.asap-toggle input:checked + .asap-toggle__track { background: var(--ws-accent); }
.asap-toggle input:checked + .asap-toggle__track .asap-toggle__thumb { transform: translateX(18px); }
.asap-toggle input:focus-visible + .asap-toggle__track { outline: 3px solid #e6b64a; outline-offset: 2px; }
.asap-toggle__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asap-toggle__text span { font-size: 0.85rem; color: var(--ws-muted); }

/* ── Choice tiles (one of several, each with its meaning written on it) ──── */
.asap-pick { display: grid; gap: 8px; margin-bottom: 14px; }
.asap-pick__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    border: 2px solid var(--ws-line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.asap-pick__item:hover { border-color: #9fbac4; }
.asap-pick__item--on { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.asap-pick__item span { font-size: 0.85rem; color: var(--ws-muted); }

.asap-subhead { margin: 18px 0 8px; font-weight: 700; color: #0a3d4c; }

/* ── A list you can add to, change and remove from ───────────────────────── */
.asap-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.asap-list__label { font-size: 0.85rem; font-weight: 600; color: var(--ws-muted); }
.asap-list__label small { margin-left: 4px; font-weight: 400; }
.asap-list__empty { padding: 10px 12px; border: 1px dashed #b9c8cf; border-radius: 8px; color: var(--ws-muted); font-size: 0.9rem; }
.asap-list__row { display: flex; align-items: center; gap: 10px; }
.asap-list__row .asap-input { flex: 1 1 auto; }
.asap-list__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ws-accent); }
.asap-list__add { display: flex; gap: 8px; margin-top: 2px; }
.asap-list__add .asap-input { flex: 1 1 auto; border-style: dashed; }

/* ── What the applicant will see ─────────────────────────────────────────── */
.asap-preview { margin-top: 6px; padding: 12px 14px; border: 1px dashed #9fbac4; border-radius: 10px; background: #f6fafb; }
.asap-preview__label { margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ws-muted); }
.asap-preview p { margin: 4px 0; }
.asap-preview ul { margin: 4px 0 0; padding-left: 20px; }

/* ── Income limits ───────────────────────────────────────────────────────── */
.asap-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.asap-limits .asap-field { margin-bottom: 8px; }
.asap-limits__extra { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--ws-line); }
.asap-limits__extra .asap-money { max-width: 260px; }
@media (max-width: 560px) { .asap-limits { grid-template-columns: minmax(0, 1fr); } }
.asap-pick--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asap-pick--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .asap-pick--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
