/* Painel do administrador e Central de suporte (15/11). */
body[data-screen="admin"] #admin-area { display: block; padding: 0; }
#admin-area > * { max-width: none; }
#mainnav [data-go="admin"][hidden], .top-short[hidden] { display: none !important; }
.top-short.is-admin { background: linear-gradient(150deg, #2b3440, #111b21); }
.top-short.is-support { background: linear-gradient(150deg, #12b5cb, #0b7f91); }
.support-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e2544e; color: #fff; font-size: .72rem; font-weight: 800; margin-left: 4px; }
.support-count[hidden] { display: none; }

.adm-root { max-width: 1400px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; background: linear-gradient(120deg, #111b21, #2b3440); color: #fff; border-radius: 16px; padding: 20px 22px; }
.adm-head h1 { margin: 2px 0 0; font-size: 1.7rem; }
.adm-kicker { margin: 0; opacity: .75; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.adm-head .adm-btn.is-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tabs button { display: inline-flex; gap: 6px; align-items: center; border: 0; background: #fff; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; color: #54656f; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.adm-tabs button[aria-selected="true"] { background: #111b21; color: #fff; }
.adm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e2544e; color: #fff; font-size: .72rem; font-weight: 800; }
.adm-toast:empty { display: none; }
.adm-toast { margin: 0; background: #e3f3ed; color: #00745b; font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.adm-toast.is-bad { background: #fde2e1; color: #a8241f; }
.adm-body { display: grid; gap: 14px; }
.adm-loading, .adm-denied { background: #fff; border-radius: 14px; padding: 30px; text-align: center; }
.adm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-kpi { display: grid; gap: 2px; text-align: left; border: 0; border-radius: 14px; padding: 16px; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.adm-kpi span { font-size: .85rem; opacity: .92; } .adm-kpi strong { font-size: 1.55rem; } .adm-kpi small { opacity: .85; font-size: .78rem; }
.adm-kpi.is-blue { background: linear-gradient(150deg, #4f6bed, #0e7c63); } .adm-kpi.is-green { background: linear-gradient(150deg, #38b48b, #1f7a5b); }
.adm-kpi.is-teal { background: linear-gradient(150deg, #12b5cb, #0b7f91); } .adm-kpi.is-red { background: linear-gradient(150deg, #e2544e, #a8241f); }
.adm-kpi.is-purple { background: linear-gradient(150deg, #9b6bdc, #6534b0); } .adm-kpi.is-slate { background: linear-gradient(150deg, #54656f, #2b3440); }
.adm-kpi.is-amber { background: linear-gradient(150deg, #f2b632, #c78400); }
.adm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(11,20,26,.12); display: grid; gap: 12px; align-content: start; }
.adm-card h2 { margin: 0; font-size: 1.05rem; }
.adm-list { display: grid; gap: 6px; }
.adm-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #eef1f3; border-radius: 10px; background: #fff; text-align: left; font: inherit; }
.adm-li small { display: block; color: #667781; }
.adm-li.is-btn { cursor: pointer; } .adm-li.is-btn:hover { background: #f5f6f7; }
.adm-red { color: #c0392b; }
.adm-empty { color: #667781; text-align: center; padding: 14px; margin: 0; }
.adm-hint { color: #667781; font-size: .82rem; margin: 0; }
.adm-note { background: #fff7e0; border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: #6b4a00; }
.adm-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.adm-toolbar input[type=search] { flex: 1; min-width: 240px; }
.adm-toolbar input, .adm-toolbar select { min-height: 38px; border: 1px solid #d1d7db; border-radius: 8px; padding: 0 10px; font: inherit; }
.adm-toolbar-end { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-btn { border: 1px solid #111b21; background: #111b21; color: #fff; border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.adm-btn:disabled { opacity: .6; }
.adm-btn.is-ghost { background: #fff; color: #111b21; border-color: #d1d7db; }
.adm-btn.is-danger { background: #fff; color: #c0392b; border-color: #f1b9b4; }
.adm-btn.is-small { padding: 5px 10px; font-size: .8rem; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th { text-align: left; background: #f5f6f7; padding: 9px 8px; border-bottom: 1px solid #e1e5e8; white-space: nowrap; }
.adm-table td { padding: 9px 8px; border-bottom: 1px solid #eef1f3; vertical-align: top; }
.adm-table td small { display: block; color: #667781; }
.adm-table select { min-height: 32px; border: 1px solid #d1d7db; border-radius: 6px; font: inherit; max-width: 180px; }
.adm-row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f3; color: #54656f; white-space: nowrap; }
.adm-chip.is-ativa, .adm-chip.is-ok, .adm-chip.is-paga { background: #e3f3ed; color: #00745b; }
.adm-chip.is-teste, .adm-chip.is-pendente, .adm-chip.is-info { background: #e8f0fe; color: #1f4fbf; }
.adm-chip.is-suspensa, .adm-chip.is-alerta { background: #fff1d6; color: #9a6400; }
.adm-chip.is-cancelada { background: #eef1f3; color: #667781; }
.adm-chip.is-late, .adm-chip.is-atrasada, .adm-chip.is-urgente { background: #fde2e1; color: #a8241f; }
.adm-chip.is-online { background: #12b5cb; color: #fff; }
.adm-chip.is-t-aberto { background: #fff1d6; color: #9a6400; } .adm-chip.is-t-respondido { background: #e8f0fe; color: #1f4fbf; } .adm-chip.is-t-resolvido { background: #e3f3ed; color: #00745b; }
.adm-table tr.is-atrasada td { background: #fff7f6; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-fchip { border: 1px solid #dfe5e8; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.adm-fchip[aria-pressed="true"] { background: #111b21; color: #fff; border-color: #111b21; }
.adm-overlay { position: fixed; inset: 0; z-index: 2200; background: rgba(11,20,26,.5); display: grid; place-items: start center; overflow-y: auto; padding: 40px 12px; }
.adm-modal { width: min(560px, 100%); background: #fff; border-radius: 14px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.adm-modal.is-wide { width: min(880px, 100%); }
.adm-modal h2 { margin: 0; } .adm-modal h3 { margin: 0 0 4px; font-size: .92rem; }
.adm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-field { display: grid; gap: 4px; }
.adm-field.is-wide { grid-column: 1 / -1; }
.adm-field > span { font-size: .8rem; font-weight: 700; color: #3b4a54; }
.adm-field input, .adm-field select, .adm-field textarea { min-height: 38px; border: 1px solid #d1d7db; border-radius: 8px; padding: 6px 10px; font: inherit; width: 100%; box-sizing: border-box; }
.adm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.adm-actions.is-left { justify-content: flex-start; }
.adm-err { color: #a8241f; font-weight: 700; margin: 0; } .adm-err:empty { display: none; }
.adm-acc-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid #eef1f3; padding-top: 12px; }
.adm-acc-extra > .adm-actions { grid-column: 1 / -1; }
.adm-secret { display: block; text-align: center; font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; background: #111b21; color: #25d366; padding: 14px; border-radius: 10px; user-select: all; }
.adm-notices { display: grid; gap: 10px; }
.adm-notice { border: 1px solid #e9edef; border-left: 5px solid #4f6bed; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.adm-notice.is-alerta { border-left-color: #f2b632; } .adm-notice.is-urgente { border-left-color: #e2544e; }
.adm-notice p { margin: 0; white-space: pre-wrap; }
.adm-notice-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-notice-head small { color: #667781; }
.adm-support { grid-template-columns: 340px minmax(0, 1fr); align-items: stretch; min-height: 520px; padding: 0; overflow: hidden; gap: 0; }
.adm-support-side { border-right: 1px solid #e9edef; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px; background: #f7f8fa; }
.adm-tickets { display: grid; gap: 6px; align-content: start; overflow-y: auto; max-height: 600px; }
.adm-ticket { display: grid; gap: 3px; text-align: left; border: 1px solid #e9edef; background: #fff; border-radius: 10px; padding: 9px 10px; font: inherit; cursor: pointer; }
.adm-ticket.is-active { border-color: #111b21; box-shadow: 0 0 0 2px #111b21 inset; }
.adm-ticket.is-unread { background: #f1fbf8; }
.adm-ticket-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.adm-ticket-top small { color: #667781; }
.adm-ticket-sub { font-size: .82rem; font-weight: 600; color: #3b4a54; }
.adm-ticket-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.adm-chat { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 520px; background: #efeae2; }
.adm-chat-empty { grid-row: 1 / -1; display: grid; place-content: center; gap: 4px; text-align: center; color: #54656f; }
.adm-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #f0f2f5; border-bottom: 1px solid #e1e5e8; }
.adm-chat-head small { display: block; color: #667781; }
.adm-chat-head select { min-height: 34px; border: 1px solid #d1d7db; border-radius: 8px; font: inherit; }
.adm-msgs { overflow-y: auto; max-height: 460px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.adm-msg { max-width: 75%; padding: 6px 10px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.adm-msg.is-suporte { justify-self: end; background: #e3f3ed; }
.adm-msg small { color: #667781; font-size: .72rem; } .adm-msg p { margin: 2px 0 0; white-space: pre-wrap; }
.adm-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px; }
.adm-reply { display: flex; gap: 8px; padding: 10px 12px; background: #f0f2f5; }
.adm-reply textarea { flex: 1; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; resize: none; }

/* Central de suporte (usuário) */
.notice-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 16px; background: #fff1d6; color: #6b4a00; font-size: .9rem; }
.notice-banner.is-urgente { background: #fde2e1; color: #8a1d18; }
.notice-banner span { flex: 1; min-width: 200px; }
.notice-banner button { border: 0; border-radius: 8px; padding: 5px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.notice-ok { background: #111b21; color: #fff; } .notice-more { background: rgba(0,0,0,.08); }
.support-panel { position: fixed; z-index: 2150; right: 16px; top: 70px; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 90px); background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(11,20,26,.3); display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.support-panel[hidden] { display: none; }
.support-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: linear-gradient(120deg, #0b7f91, #12b5cb); color: #fff; }
.support-close { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.support-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e9edef; }
.support-tabs button { border: 0; background: #fff; padding: 10px; font: inherit; font-weight: 700; color: #54656f; cursor: pointer; border-bottom: 3px solid transparent; }
.support-tabs button[aria-selected="true"] { color: #0b7f91; border-bottom-color: #12b5cb; }
.support-body { overflow-y: auto; display: grid; align-content: start; min-height: 320px; }
.support-empty { color: #667781; text-align: center; padding: 16px; margin: 0; }
.support-notice { margin: 10px 12px 0; border: 1px solid #e9edef; border-left: 5px solid #4f6bed; border-radius: 10px; padding: 10px; display: grid; gap: 4px; }
.support-notice.is-alerta { border-left-color: #f2b632; } .support-notice.is-urgente { border-left-color: #e2544e; }
.support-notice.is-unread { background: #f5f8ff; }
.support-notice p { margin: 0; white-space: pre-wrap; font-size: .9rem; }
.support-notice-head { display: flex; justify-content: space-between; }
.support-level { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: #1f4fbf; }
.support-level.is-alerta { color: #9a6400; } .support-level.is-urgente { color: #a8241f; }
.support-msgs { background: #efeae2; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 260px; max-height: 50vh; overflow-y: auto; }
.support-msg { max-width: 82%; background: #fff; border-radius: 8px; padding: 6px 10px 8px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.support-msg.is-cliente { justify-self: end; background: #e3f3ed; }
.support-msg small { color: #667781; font-size: .7rem; } .support-msg p { margin: 2px 0 0; white-space: pre-wrap; }
.support-form { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.support-form textarea { flex: 1; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; resize: none; }
.support-send { border: 0; background: #0e7c63; color: #fff; border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .adm-kpis, .adm-split, .adm-acc-extra { grid-template-columns: 1fr; }
  .adm-kpis.is-3 { grid-template-columns: 1fr; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-support { grid-template-columns: 1fr; }
  .adm-support-side { border-right: 0; border-bottom: 1px solid #e9edef; }
  .adm-tickets { max-height: 260px; }
}

/* ===== Página separada do gestor (/admin) ===== */
body.gestor { margin: 0; min-height: 100vh; background: #eef1f4; color: #111b21; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.gestor * { box-sizing: border-box; }
body.gestor button, body.gestor input, body.gestor select, body.gestor textarea { font: inherit; }
.gestor-login { max-width: 420px; margin: 8vh auto; background: #fff; border-radius: 18px; padding: 28px 26px; box-shadow: 0 20px 50px rgba(11,20,26,.15); display: grid; gap: 12px; }
.gestor-login h1 { margin: 6px 0 0; font-size: 1.4rem; } .gestor-login > p { margin: 0; color: #54656f; }
.gestor-brand { display: flex; align-items: center; gap: 10px; }
.gestor-brand strong { display: block; font-size: 1.05rem; } .gestor-brand small { color: #667781; }
.gestor-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(150deg, #0e7c63, #0b4f5c); color: #fff; font-weight: 800; letter-spacing: .02em; }
.gestor-form { display: grid; gap: 12px; }
.gestor-submit { width: 100%; padding: 12px; font-size: 1rem; }
.gestor-foot { font-size: .78rem; color: #8696a0 !important; text-align: center; }
.gp { min-height: 100vh; }
.gp-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: #111b21; color: #fff; }
.gp-top .gestor-brand small { color: #8696a0; }
.gp-user { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-name { font-weight: 700; }
.gp-out { border: 1px solid #fff; background: #fff; color: #111b21; border-radius: 9px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.gp-out.is-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.gp-burger { display: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.gp-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
.gp-nav { position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; background: #fff; border-right: 1px solid #e1e5e8; padding: 12px 10px; display: grid; gap: 14px; align-content: start; }
.gp-nav-group p { margin: 0 0 4px 8px; font-size: .7rem; font-weight: 800; color: #8696a0; text-transform: uppercase; letter-spacing: .05em; }
.gp-nav-group button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: #3b4a54; font-weight: 600; }
.gp-nav-group button:hover { background: #f0f2f5; }
.gp-nav-group button[aria-current="page"] { background: #111b21; color: #fff; }
.gp-main { padding: 18px 20px 40px; display: grid; gap: 14px; min-width: 0; }
.gp-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gp-title h1 { margin: 0; font-size: 1.5rem; }
.adm-kpis.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-kpi.is-indigo { background: linear-gradient(150deg, #5b5fe0, #3a3da8); }
.adm-btn.is-ok { background: #fff; color: #00745b; border-color: #9fe3d3; }
a.adm-btn { text-decoration: none; display: inline-block; }
.adm-chip.is-lead { background: #f0eafc; color: #6534b0; }
.adm-table tr.is-blocked td { background: #fafafa; color: #8696a0; }
.adm-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.adm-tag { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #eef1f3; color: #3b4a54; }
.adm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-timeline { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 8px; }
.adm-timeline > div { border-left: 3px solid #25c7a5; padding: 2px 8px; }
.adm-timeline p { margin: 2px 0 0; white-space: pre-wrap; } .adm-timeline small { color: #667781; }
.adm-acc-extra textarea { width: 100%; border: 1px solid #d1d7db; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; }
.adm-kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 10px; overflow-x: auto; }
.adm-col { background: #f7f8fa; border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 240px; border-top: 4px solid #8696a0; }
.adm-col.is-lead { border-top-color: #9b6bdc; } .adm-col.is-teste { border-top-color: #4f6bed; } .adm-col.is-ativa { border-top-color: #38b48b; } .adm-col.is-suspensa { border-top-color: #f2b632; } .adm-col.is-cancelada { border-top-color: #e2544e; }
.adm-col h3 { margin: 0; display: flex; justify-content: space-between; font-size: .95rem; }
.adm-count { background: #e1e5e8; border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.adm-col-sum { color: #00745b; font-weight: 700; }
.adm-kcard { background: #fff; border-radius: 10px; padding: 10px; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.adm-kname { border: 0; background: none; padding: 0; text-align: left; font-weight: 800; cursor: pointer; color: #111b21; }
.adm-kname:hover { text-decoration: underline; }
.adm-kcard small { color: #667781; }
.adm-kfoot { display: flex; justify-content: flex-end; gap: 6px; }
.adm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.adm-plan { border: 1px solid #e1e5e8; border-radius: 14px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.adm-plan h3 { margin: 0; } .adm-plan strong { font-size: 1.3rem; color: #00745b; } .adm-plan p { margin: 0; color: #54656f; white-space: pre-wrap; } .adm-plan small { color: #667781; }
.adm-plan.is-off { opacity: .6; }
.adm-check { display: flex; gap: 8px; align-items: center; }
.adm-warn { border-left: 5px solid #e2544e; }
.adm-tasks { display: grid; gap: 6px; }
.adm-task { display: flex; align-items: center; gap: 10px; border: 1px solid #e9edef; border-left: 5px solid #8696a0; border-radius: 10px; padding: 9px 10px; }
.adm-task.is-alta { border-left-color: #e2544e; } .adm-task.is-normal { border-left-color: #4f6bed; } .adm-task.is-baixa { border-left-color: #8696a0; }
.adm-task.is-late { background: #fff7f6; } .adm-task.is-done { opacity: .55; } .adm-task.is-done strong { text-decoration: line-through; }
.adm-task input { width: 20px; height: 20px; accent-color: #0e7c63; }
.adm-task-body { flex: 1; min-width: 0; } .adm-task-body small { display: block; color: #667781; }
.adm-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 230px; align-items: end; border-bottom: 1px solid #e1e5e8; }
.adm-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 3px; min-width: 0; }
.adm-bar small { font-size: .62rem; color: #54656f; white-space: nowrap; }
.adm-bar-track { width: 100%; display: flex; align-items: flex-end; gap: 2px; }
.adm-bar-track i { flex: 1; border-radius: 5px 5px 0 0; background: #4f6bed; }
.adm-bars.is-green .adm-bar-track i { background: linear-gradient(180deg, #8fe3cf, #38b48b); }
.adm-bars.is-blue .adm-bar-track i { background: linear-gradient(180deg, #a9b8f5, #4f6bed); }
.adm-bar-track i.is-new { background: #38b48b; } .adm-bar-track i.is-cancel { background: #e2544e; }
.adm-bar > span { font-size: .7rem; color: #667781; padding-bottom: 4px; }
.adm-ul { margin: 0; padding-left: 18px; color: #3b4a54; }
@media (max-width: 1100px) { .adm-kpis.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .gp-burger { display: grid; place-items: center; }
  .gp-body { grid-template-columns: 1fr; }
  .gp-nav { display: none; position: fixed; z-index: 60; top: 58px; left: 0; width: 260px; box-shadow: 8px 0 24px rgba(0,0,0,.15); }
  .gp.nav-open .gp-nav { display: grid; }
  .gp-name, .gp-out.is-ghost { display: none; }
  .gp-main { padding: 12px 12px 30px; }
  .adm-kpis.is-4, .adm-grid { grid-template-columns: 1fr; }
  .adm-bars { gap: 3px; height: 180px; } .adm-bar small { display: none; }
  .gp-top .gestor-brand small { display: none; }
}

/* ===================================================================================
   Painel do gestor — redesenho (16/11, pedido do Lucas: "mais profissional").
   Ideia: um console de operação calmo. Verde-floresta da marca no topo e nos estados
   ativos; o laranja aparece em UM lugar só (a ação principal da tela). Botões com
   hierarquia clara: primário cheio, secundário contornado, perigo só texto vermelho.
   =================================================================================== */
body.gestor {
  --g-ink: #17302a; --g-muted: #5d716b; --g-line: #e3e9e6; --g-paper: #f4f7f5; --g-card: #fff;
  --g-brand: #0b6b55; --g-brand-2: #064d3d; --g-brand-soft: #e5f2ed; --g-accent: #e8571a; --g-danger: #b42318;
  background: var(--g-paper); color: var(--g-ink);
  font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
}
/* topo */
body.gestor .gp-top { background: var(--g-brand-2); border-bottom: 1px solid #043a2e; box-shadow: none; }
body.gestor .gestor-logo { width: 40px; height: 40px; border-radius: 11px; background: #fff url("feirafacil.ico") center/cover no-repeat; color: transparent; }
body.gestor .gp-top .gestor-brand strong { color: #fff; font-weight: 700; letter-spacing: -.01em; }
body.gestor .gp-top .gestor-brand small { color: #a9cbbf; }
body.gestor .gp-top .gp-name { color: #fff; font-weight: 600; }
body.gestor .gp-top .adm-btn, body.gestor .gp-top button:not(.gp-burger) { background: transparent; color: #e6f3ee; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 7px 14px; font-weight: 600; }
body.gestor .gp-top .adm-btn:hover, body.gestor .gp-top button:not(.gp-burger):hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
/* menu lateral: grupo em texto normal (sem caixa alta), item ativo com barra verde */
body.gestor .gp-nav { background: var(--g-card); border-right: 1px solid var(--g-line); padding: 18px 12px; gap: 18px; }
body.gestor .gp-nav-group p { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: #8a9b95; margin: 0 0 6px 12px; }
body.gestor .gp-nav-group button { position: relative; padding: 9px 12px; border-radius: 8px; color: #33493f; font-weight: 500; }
body.gestor .gp-nav-group button:hover { background: var(--g-paper); color: var(--g-ink); }
body.gestor .gp-nav-group button[aria-current="page"] { background: var(--g-brand-soft); color: var(--g-brand-2); font-weight: 700; }
body.gestor .gp-nav-group button[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g-brand); }
/* botões */
body.gestor .adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--g-brand); background: var(--g-brand); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
body.gestor .adm-btn:hover { background: var(--g-brand-2); border-color: var(--g-brand-2); }
body.gestor .adm-btn.is-ghost { background: #fff; color: var(--g-ink); border-color: #cfd9d4; }
body.gestor .adm-btn.is-ghost:hover { border-color: var(--g-brand); color: var(--g-brand-2); background: #fbfdfc; }
body.gestor .adm-btn.is-danger { background: transparent; border-color: transparent; color: var(--g-danger); padding: 0 10px; }
body.gestor .adm-btn.is-danger:hover { background: #fdecea; }
body.gestor .adm-btn.is-small { min-height: 32px; padding: 0 12px; font-size: .84rem; }
body.gestor .adm-btn.is-danger.is-small { padding: 0 8px; }
/* a ação principal da tela (ex.: "+ Nova conta") é a única em laranja */
body.gestor .adm-toolbar-end > .adm-btn:not(.is-ghost):not(.is-danger):last-child { background: var(--g-accent); border-color: var(--g-accent); }
body.gestor .adm-toolbar-end > .adm-btn:not(.is-ghost):not(.is-danger):last-child:hover { background: #c9470f; border-color: #c9470f; }
body.gestor .adm-btn:focus-visible, body.gestor .gp-nav button:focus-visible, body.gestor .adm-fchip:focus-visible { outline: 3px solid #8fd3bd; outline-offset: 2px; }
/* barra de busca e filtros */
body.gestor .adm-toolbar input, body.gestor .adm-toolbar select, body.gestor .adm-field input, body.gestor .adm-field select, body.gestor .adm-field textarea {
  min-height: 40px; border: 1px solid #cfd9d4; border-radius: 8px; background: #fff; color: var(--g-ink); }
body.gestor .adm-toolbar input:focus, body.gestor .adm-toolbar select:focus, body.gestor .adm-field :is(input, select, textarea):focus { outline: none; border-color: var(--g-brand); box-shadow: 0 0 0 3px #cdeae0; }
body.gestor .adm-toolbar input[type=search] { padding-left: 14px; }
/* cartões e tabela */
body.gestor .adm-card { border-radius: 12px; box-shadow: none; border: 1px solid var(--g-line); padding: 18px 20px; }
body.gestor .adm-card h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
body.gestor .adm-table { font-size: .92rem; }
body.gestor .adm-table th { background: transparent; color: var(--g-muted); font-weight: 600; font-size: .8rem; padding: 10px 12px; border-bottom: 1px solid var(--g-line); }
body.gestor .adm-table td { padding: 14px 12px; border-bottom: 1px solid #eef2f0; vertical-align: middle; }
body.gestor .adm-table tbody tr:hover td { background: #f8fbf9; }
body.gestor .adm-table td:first-child strong { font-weight: 650; }
body.gestor .adm-table td small { color: #7b8d87; font-size: .8rem; }
body.gestor .adm-row-actions { gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
/* selos de situação com ponto colorido */
body.gestor .adm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 8px; }
body.gestor .adm-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
body.gestor .adm-chip.is-ativa, body.gestor .adm-chip.is-ok, body.gestor .adm-chip.is-paga { background: #e5f2ed; color: #0b6b55; }
/* chips de filtro */
body.gestor .adm-fchip { border-color: #cfd9d4; color: #33493f; font-weight: 500; padding: 6px 14px; }
body.gestor .adm-fchip[aria-pressed="true"] { background: var(--g-brand-soft); color: var(--g-brand-2); border-color: #a9d6c5; font-weight: 700; }
/* abas internas e números do resumo: menos arco-íris, mais leitura */
body.gestor .adm-tabs button[aria-selected="true"] { background: var(--g-brand); }
body.gestor .adm-kpi { background: #fff !important; color: var(--g-ink); border: 1px solid var(--g-line); box-shadow: none; border-top: 4px solid var(--g-brand); }
body.gestor .adm-kpi span, body.gestor .adm-kpi small { color: var(--g-muted); opacity: 1; }
body.gestor .adm-kpi strong { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
body.gestor .adm-kpi.is-red { border-top-color: var(--g-danger); } body.gestor .adm-kpi.is-amber { border-top-color: #d99a00; }
body.gestor .adm-kpi.is-teal, body.gestor .adm-kpi.is-blue { border-top-color: #2f7f9e; } body.gestor .adm-kpi.is-purple { border-top-color: #7a52b3; }
body.gestor .adm-kpi.is-slate { border-top-color: #5d716b; } body.gestor .adm-kpi:hover { border-color: #c5d6cf; }
/* entrada do gestor */
body.gestor .gestor-login { border: 1px solid var(--g-line); box-shadow: 0 24px 60px rgba(6,77,61,.12); }
body.gestor .gestor-submit { background: var(--g-brand); border-color: var(--g-brand); min-height: 46px; }
@media (prefers-reduced-motion: reduce) { body.gestor .adm-btn { transition: none; } }

.adm-email-compose { display:grid;gap:18px;max-width:1000px; }
.adm-email-recipients { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;max-height:320px;overflow:auto; }
.adm-email-recipient { display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #d8e5df;border-radius:10px; }
.adm-email-recipient input { width:18px;height:18px;flex:none;accent-color:#087d65; }
.adm-email-recipient span { display:grid;gap:5px;min-width:0;overflow-wrap:anywhere; }
.adm-email-recipient small,.adm-email-history small { color:#5c6e67; }
.adm-email-preview { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6; }
.adm-email-history { display:grid;gap:6px;padding:18px 0;border-bottom:1px solid #d8e5df; }
