/* =========================================================
   Painel de leads (admin.html) — usa as variáveis e fontes do style.css
   ========================================================= */
body.adm { font-size: 15px; line-height: 1.5; }
body.adm::after { display: none; } /* sem o grão de papel: deixa o painel mais leve */
.adm [hidden] { display: none !important; }
.adm svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.adm h1, .adm h2, .adm h3 { line-height: 1.15; }
.adm-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.adm-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.adm-muted { color: var(--ink-soft); margin: 6px 0 0; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }

/* ---------- botões ---------- */
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 100px; font-weight: 700; font-size: 14px;
  background: var(--ink); color: var(--paper); transition: background .2s, color .2s, box-shadow .2s;
}
.adm-btn--sm { padding: 9px 14px; font-size: 13px; }
.adm-btn--primary { background: var(--coral); color: var(--white); width: 100%; }
.adm-btn--primary:hover { background: #c94a3e; }
.adm-btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.adm-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.adm-btn--quiet { background: transparent; color: var(--ink-soft); }
.adm-btn--quiet:hover { color: var(--coral); }
.adm-btn--google { width: 100%; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.adm-btn--google:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.adm-btn--google svg { width: 18px; height: 18px; stroke: none; }
.adm-btn--wa { width: 100%; background: #1F9E55; color: var(--white); }
.adm-btn--wa:hover { background: #18843f; }
.adm-link { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.adm-link:hover { color: var(--coral); }
.adm-icon {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  color: var(--ink-faint); transition: background .2s, color .2s;
}
.adm-icon:hover { background: var(--paper-2); color: var(--ink); }
.adm-icon[data-del]:hover { color: var(--coral); }
.adm-icon:disabled { opacity: .3; pointer-events: none; }
.adm-icon--wa { color: #1F9E55; }
.adm :focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- login ---------- */
.adm-login { min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; }
.adm-login__card {
  width: 100%; max-width: 420px; background: var(--white); border-radius: 28px;
  padding: clamp(28px, 6vw, 44px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(31,42,36,.25);
  text-align: center;
}
.adm-login__logo { width: 150px; height: auto; margin: 0 auto 22px; }
.adm-login__title { font-size: 36px; }
.adm-alert { margin: 20px 0 0; padding: 12px 14px; border-radius: 14px; background: #FCEBE8; color: #9B2C21; font-size: 13.5px; text-align: left; }
.adm-alert--ok { background: #E4F2EC; color: var(--green-deep); }
#login-forms { margin-top: 24px; }
.adm-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-faint); font-size: 12px; }
.adm-or::before, .adm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.adm-form { display: grid; gap: 12px; text-align: left; }
.adm-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.adm-form input {
  font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
}
.adm-form input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.adm-setup { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--paper); font-size: 14px; text-align: left; display: grid; gap: 14px; }
.adm-setup p { margin: 0; }
.adm-setup code { font-size: 12px; background: var(--white); padding: 1px 5px; border-radius: 5px; }
.adm-back { display: inline-block; margin-top: 22px; font-size: 13px; color: var(--ink-faint); }
.adm-back:hover { color: var(--ink); }

/* ---------- topo ---------- */
.adm-top { position: sticky; top: 0; z-index: 20; background: rgba(245,242,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.adm-top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.adm-top__brand img { width: 110px; height: auto; }
.adm-top__who { flex: 1; font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top__actions { display: flex; gap: 6px; }
.adm-demo { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: #FFF3D6; color: #6B4A00; font-size: 14px; }
.adm-demo a { text-decoration: underline; font-weight: 700; }

.adm-main { padding-bottom: 60px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 22px; }
.adm-h1 { font-size: clamp(30px, 4vw, 46px); }
.adm-views { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.adm-views button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.adm-views button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* ---------- métricas ---------- */
.adm-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.adm-metric { background: var(--white); border-radius: 18px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.adm-metric span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.adm-metric b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }

/* ---------- filtros ---------- */
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.adm-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-faint); }
.adm-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); padding: 12px 0; outline: none; }
.adm-filters select, .adm select {
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer;
}
.adm-filters select { flex: 0 1 220px; }
.adm-state { padding: 60px 20px; text-align: center; color: var(--ink-soft); background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- kanban ---------- */
.adm-board { display: grid; grid-template-columns: repeat(5, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.adm-col { background: var(--paper-2); border-radius: 20px; border-top: 4px solid var(--stage); min-height: 420px; transition: box-shadow .15s, background .15s; }
.adm-col.is-over { background: #E4DED0; box-shadow: inset 0 0 0 2px var(--stage); }
.adm-col__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.adm-col__head h2 { flex: 1; font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.adm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stage); }
.adm-count { min-width: 26px; padding: 2px 8px; border-radius: 100px; background: var(--white); font-size: 12px; font-weight: 800; text-align: center; }
.adm-col__body { display: grid; gap: 10px; padding: 0 10px 12px; }
.adm-empty { margin: 0; padding: 30px 10px; border: 1.5px dashed var(--line); border-radius: 14px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

.adm-card { background: var(--white); border-radius: 16px; padding: 14px; box-shadow: 0 1px 2px rgba(31,42,36,.08); cursor: grab; transition: box-shadow .2s, opacity .2s, transform .2s; }
.adm-card:hover { box-shadow: 0 8px 24px -10px rgba(31,42,36,.3); }
.adm-card.is-dragging { opacity: .4; transform: scale(.97); }
.adm-card__top { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 6px 0; }
.adm-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); background: #FCEFDF; padding: 3px 9px; border-radius: 100px; }
.adm-card h3 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.adm-card__mat { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--green); }
.adm-card__info { list-style: none; margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 12.5px; color: var(--ink-soft); display: grid; gap: 2px; }
.adm-card__info li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-card__move { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.adm-card__move select { flex: 1; min-width: 0; padding: 7px 8px; font-size: 12.5px; }
.adm-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-faint); }
.adm-src { font-weight: 700; color: var(--lilac); }

/* ---------- lista ---------- */
.adm-list__count { margin: 0 0 10px; font-size: 13px; color: var(--ink-faint); }
.adm-table-wrap { overflow-x: auto; background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.adm-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #FBFAF6; }
.adm-table small { display: block; color: var(--ink-faint); font-size: 12.5px; }
.adm-table select { padding: 7px 10px; font-size: 13px; }

/* ---------- aviso flutuante ---------- */
.adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

@media (max-width: 860px) {
  .adm-metrics { grid-template-columns: repeat(2, 1fr); }
  .adm-board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; }
  .adm-col { scroll-snap-align: start; }
  .adm-top__who { display: none; }
  .adm-top__in { justify-content: space-between; }
}
@media (max-width: 520px) {
  .adm-btn--ghost.adm-btn--sm { padding: 9px 11px; }
  .adm-filters select { flex: 1 1 100%; }
  .adm-metric b { font-size: 28px; }
}
