/* AK LEADS Connect — Buying tools (Emergency stop page, outside-tool menu link).
   Loads after admin.css and reuses its tree picker (.tp-*), menus.css (.fbar, .picked-bar, .pick-tools) and the dashboard table. Tokens only. */

/* sidebar: outside tool (opens in a new tab) */
a.nav-item.nav-ext { text-decoration: none; color: inherit; }
.nav-out { flex: none; margin-left: auto; color: var(--muted); font-size: 12px; line-height: 1; }
a.nav-item.nav-ext:hover .nav-out { color: var(--text); }

/* emergency stop: account rows carry today's spend / profit */
.es-acc { padding-left: 62px; }
.es-num { flex: none; display: grid; justify-items: end; min-width: 6.5em; line-height: 1.25; }
.es-num .num { font-size: var(--fs-sm); }
.es-num small { font-size: var(--fs-xs); }
.es-tree { max-height: 560px; }
.es-bar .btn.danger svg { margin-right: 4px; }
.es-sc.losing, .es-sc.everything { border-color: color-mix(in oklch, var(--neg) 45%, var(--line)); }
.es-sc.guard { border-color: color-mix(in oklch, var(--warn-c) 50%, var(--line)); }
.es-h td .cr-v { white-space: normal; max-width: 34ch; }
.es-hl { margin: 0; }
.es-hl .row { gap: 10px; }

@media (max-width: 760px) {
  .es-acc { padding-left: 16px; flex-wrap: nowrap; }
  .es-num { min-width: 5.2em; }
  .es-bar .pb-a { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .es-bar .pb-a .btn { flex: 1 1 140px; min-height: 44px; justify-content: center; }
  .es-hl .row { flex-wrap: wrap; }
  .es-hl .row .btn { min-height: 40px; }
  .es-h td .cr-v { max-width: 24ch; }
}
