/* ===========================================
   Superadmin test tools (projects/_test_tools.html, projects/test_tools.html).
   Buttons, badges, menus and the dialog are the global ones; this is layout only.
   =========================================== */

/* The member page's menu: the regular-member row keeps its chips on one line. */
.dt-page .page-head .tt-menu > .popover { min-width: 360px; }
.tt-menu .tt-regular { white-space: nowrap; }

/* Reset dialog: the choices, what is wiped, the Telegram-admin note, the bots' results. */
.tt-dialog .dialog { width: min(560px, calc(100vw - 32px)); }
.tt-checks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.tt-checks label { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.tt-checks label > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-checks b { color: var(--label-1); font-size: 13.5px; font-weight: 500; }
.tt-checks small { color: var(--label-3); font-size: 12px; overflow-wrap: anywhere; }
.tt-wipe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; margin: 0 0 0 28px; font-size: 12.5px; }
.tt-wipe dt { color: var(--label-2); font-weight: 400; }
.tt-wipe dd { margin: 0; text-align: right; color: var(--label-1); font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-warn { margin: 0 0 14px; padding: 8px 10px; border-radius: var(--r-md); background: var(--amber-tint); color: var(--label-1); font-size: 12.5px; }
.tt-result { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.tt-job { display: flex; flex-direction: column; gap: 8px; }
.tt-res-row { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--label-1); }
.tt-res-row .state { flex-shrink: 0; width: 104px; }
.tt-link { display: flex; align-items: center; gap: 8px; }
.tt-link code { flex: 1 1 auto; min-width: 0; padding: 6px 10px; overflow: hidden; border-radius: var(--r-md); background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tt-link .btn { flex-shrink: 0; }

/* Members selection bar: the staff button sits with the batch actions. */
.tt-bulk { display: inline-flex; }

@media (max-width: 640px) {
    .dt-page .page-head .tt-menu > .popover { min-width: min(340px, calc(100vw - 32px)); }
    .tt-menu .tt-regular { white-space: normal; flex-wrap: wrap; }
    .tt-res-row { flex-wrap: wrap; }
}
