/* De dónde llegan, por anuncio (05/10). Usa las tarjetas, cifras y tablas de «Fallos del bot» (admin-fallos.css). */
.sources .ads-table td[data-label='Anuncio'] { min-width: 280px; }
.sources .ads-table td[data-label='Anuncio'] b { display: block; font-size: 14px; }
.sources .ads-table .admin-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sources .ads-table td { vertical-align: top; }
.sources .ads-table td small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.sources .ads-table tr.is-terminado td, .sources .ads-table tr.is-pausado td { color: var(--text-2); }
.sources .ads-table tfoot td { padding-top: 14px; font-weight: 800; border-top: 1.5px solid var(--line-2); }
.sources .ads-table tfoot small { font-weight: 600; }
.ad-fresh { margin-top: 0; }
.ad-fresh.is-stale { color: var(--o700, #A84708); font-weight: 700; }

.ad-paths { margin-top: 8px; font-size: 12.5px; }
.ad-paths summary { cursor: pointer; font-weight: 700; color: var(--text-2); }
.ad-paths ul { display: grid; gap: 6px; margin: 8px 0 2px; padding: 0; list-style: none; }
.ad-paths li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name num' 'sub sub'; column-gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.ad-paths li > span { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.ad-paths li > b { grid-area: num; font-variant-numeric: tabular-nums; }
.ad-paths li > small { grid-area: sub; }
.sources .ads-table .ad-paths li span small { display: inline; margin: 0 0 0 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }

/* Saldo para anuncios (05/10): lo que queda en Meta y para cuántos días alcanza. */
.ad-funds { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; margin: 18px 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-left: 6px solid var(--line-2); }
.ad-funds p { margin: 0; }
.ad-funds-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ad-funds-value { margin: 2px 0 4px !important; font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.ad-funds-days { font-size: 14px; font-weight: 700; color: var(--text-2); }
.ad-funds-side { display: grid; justify-items: end; gap: 8px; max-width: 340px; text-align: right; }
.ad-funds-notice { font-size: 15px; font-weight: 800; }
.ad-funds-detail { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.ad-funds.is-ok { border-left-color: var(--pos); }
.ad-funds.is-ok .ad-funds-notice { color: var(--pos); }
.ad-funds.is-soon { border-left-color: var(--a600); }
.ad-funds.is-soon .ad-funds-notice { color: var(--a600); }
.ad-funds.is-now, .ad-funds.is-out { border-left-color: var(--r600); background: var(--r100); }
.ad-funds.is-now .ad-funds-notice, .ad-funds.is-out .ad-funds-notice { color: var(--r600); }
.ad-funds.is-stale .ad-funds-detail b { color: var(--o700, #A84708); }
.ad-funds-card.is-ok .ad-funds-notice { color: var(--pos); }
.ad-funds-card.is-soon .ad-funds-notice { color: var(--a600); }
.ad-funds-card.is-now, .ad-funds-card.is-out { box-shadow: inset 4px 0 0 var(--r600); }
.ad-funds-card.is-now .ad-funds-notice, .ad-funds-card.is-out .ad-funds-notice { color: var(--r600); }
.ad-funds-card a.admin-small-btn, .ad-funds a.admin-small-btn { display: inline-block; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) {
  .ad-funds { grid-template-columns: 1fr; }
  .ad-funds-side { justify-items: start; max-width: none; text-align: left; }
  .ad-funds-value { font-size: 34px; }
}
