/*
 * robomensagem — estilos do protótipo aprovado (prototipo/Main.dc.html e Login.dc.html).
 * Cada bloco reproduz os estilos inline do protótipo; o comentário indica o trecho de origem.
 * Não mude cores, tamanhos, raios ou espaçamentos sem justificar (plan.md §0.3.1).
 */

/* ---------- Base (helmet do protótipo) ---------- */
[hidden] { display: none !important; }
body { margin: 0; background: #f6f7fb; }
a { color: #6542bf; }
a:hover { color: #4f33a0; }
button { font-family: Inter, system-ui, sans-serif; }
input, select, textarea { font-family: Inter, system-ui, sans-serif; }
button:disabled { cursor: default; opacity: 0.6; }

.app { position: relative; min-height: 100vh; font-family: Inter, system-ui, sans-serif; color: #1b263c; background: #f6f7fb; }

/* ---------- Cabeçalho ---------- */
.hdr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: #ffffff; border-bottom: 1px solid #e6e8ef; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: #7047d3; color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; color: #66758a; }

/* Busca global (ligada na task 5.1) */
.gsearch { position: relative; flex: 1 1 280px; max-width: 440px; }
.gsearch-input { width: 100%; box-sizing: border-box; min-height: 42px; padding: 0 14px; border: 1px solid #d6d9e3; border-radius: 10px; font-size: 14px; background: #f6f7fb; }
.gresults { position: absolute; top: 48px; left: 0; right: 0; background: #ffffff; border: 1px solid #e0e3ec; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; z-index: 25; box-shadow: 0 12px 32px rgba(27, 38, 60, 0.16); }
.gresult { text-align: left; border: 0; border-radius: 8px; background: #ffffff; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.gresult-nome { font-weight: 600; font-size: 14px; color: #1b263c; }
.gresult-contato { font-size: 12px; color: #4b5872; }
.gresult-meta { font-size: 12px; color: #66758a; }
.gresults-empty { padding: 12px; font-size: 13px; color: #66758a; }
.gresults-more { min-height: 38px; border: 0; border-top: 1px solid #eceef4; background: #ffffff; color: #6542bf; font-weight: 600; font-size: 13px; cursor: pointer; }

.hdr-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bot-pill { font-size: 12px; padding: 6px 10px; border: 0; cursor: pointer; }
.user-label { font-size: 14px; color: #27354b; }
.logout { font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- Abas ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 32px; background: #ffffff; border-bottom: 1px solid #e6e8ef; }
.tab { min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: #27354b; }
.tab[aria-current="page"] { background: #f4f0ff; color: #4f33a0; }

.main { max-width: 1320px; margin: 0 auto; padding: 24px 32px 96px; box-sizing: border-box; }

/* ---------- Selos (função pill do protótipo) ---------- */
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill-gray { background: #eceef4; color: #3d4a61; }
.pill-blue { background: #e7f1fb; color: #1d4f91; }
.pill-green { background: #e5f4e4; color: #16632f; }
.pill-red { background: #fdecea; color: #9b1c1c; }
.pill-purple { background: #f4f0ff; color: #4f33a0; }
.pill-amber { background: #fff3d6; color: #7a4b00; }
.pill-lg { font-size: 12px; padding: 6px 10px; }

/* ---------- Comuns ---------- */
.page { display: flex; flex-direction: column; gap: 20px; }
.page-14 { gap: 14px; }
.page-16 { gap: 16px; }
.page-24 { gap: 24px; }
.page-head { display: flex; flex-direction: column; gap: 4px; }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.page-title { margin: 0; font-size: 24px; }
.page-sub { font-size: 13px; color: #66758a; }
.page-sub-14 { font-size: 14px; color: #66758a; }
.card { background: #ffffff; border: 1px solid #e6e8ef; border-radius: 14px; }
.card-title { margin: 0; font-size: 16px; }
.card-title-18 { margin: 0; font-size: 18px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 340px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.note { font-size: 12px; color: #66758a; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead tr { text-align: left; color: #66758a; font-size: 12px; }
.table-head-bg thead tr { background: #fafbfd; }
.table th { padding: 8px; }
.table td { padding: 10px 8px; }
.table tbody tr { border-top: 1px solid #eceef4; }
.td-strong { font-weight: 600; }
.td-ink { color: #27354b; }
.td-muted { color: #66758a; }
.warn-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #fff7e6; border: 1px solid #f5d38a; font-size: 14px; }

/* Botões */
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-primary { padding: 0 20px; border: 0; background: #7047d3; color: #ffffff; }
.btn-secondary { border: 1px solid #d6d9e3; background: #ffffff; color: #1b263c; }
.btn-danger-text { color: #b42318; }
.btn-dark { border: 0; background: #1b263c; color: #ffffff; }
.btn-px22 { padding: 0 22px; }
.btn-px24 { padding: 0 24px; }
.btn-block { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row-6 { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-sm { min-height: 36px; padding: 0 12px; border: 1px solid #d6d9e3; border-radius: 8px; background: #ffffff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-md { min-height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-md-primary { border: 0; background: #7047d3; color: #ffffff; }
.btn-md-secondary { border: 1px solid #d6d9e3; background: #ffffff; }
.btn-md-dark { border: 0; background: #1b263c; color: #ffffff; }
.btn-xs { min-height: 32px; padding: 0 10px; border: 1px solid #d6d9e3; border-radius: 8px; background: #ffffff; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-xs34 { min-height: 34px; padding: 0 10px; border: 1px solid #d6d9e3; border-radius: 8px; background: #ffffff; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-link { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: #6542bf; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-link-40 { min-height: 40px; }
.btn-close { width: 40px; height: 40px; border: 1px solid #d6d9e3; border-radius: 10px; background: #ffffff; cursor: pointer; font-size: 18px; }
.btn-close-44 { width: 44px; height: 44px; }

/* Campos (label + input) */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #27354b; }
.field-sm { gap: 4px; font-size: 12px; color: #4b5872; }
.input { min-height: 44px; padding: 0 12px; border: 1px solid #d6d9e3; border-radius: 8px; font-size: 14px; }
.input-40 { min-height: 40px; }
.select { min-height: 44px; padding: 0 10px; border: 1px solid #d6d9e3; border-radius: 8px; font-size: 14px; background: #ffffff; }
.select-40 { min-height: 40px; padding: 0 8px; }
.textarea { padding: 10px 12px; border: 1px solid #d6d9e3; border-radius: 8px; font-size: 14px; resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 12px; border-top: 1px solid #eceef4; }
.check { width: 18px; height: 18px; }

/* Aviso no topo (toast) */
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); background: #1b263c; color: #ffffff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 30; }

/* ---------- Início (task 5.1) ---------- */
.kpi { text-align: left; padding: 16px; border-radius: 12px; border: 1px solid #e6e8ef; background: #ffffff; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.kpi-label { font-size: 13px; color: #66758a; }
.kpi-num { font-size: 26px; font-weight: 700; }
.kpi-num-purple { color: #4f33a0; }
.kpi-num-red { color: #9b1c1c; }
.kpi-num-ink { color: #1b263c; }
.kpi-cta { font-size: 12px; color: #6542bf; font-weight: 600; }
.todo-card { padding: 18px 20px; display: flex; flex-direction: column; }
.todo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; }
.todo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #eceef4; }
.todo-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.todo-nome { font-weight: 600; font-size: 14px; }
.todo-motivo { font-size: 12px; color: #66758a; }
.todo-actions { display: flex; align-items: center; gap: 10px; }
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.side-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.side-card-6 { gap: 6px; }
.camp-mini { text-align: left; border: 1px solid #eceef4; border-radius: 10px; background: #ffffff; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.camp-mini-top { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.camp-mini-nome { font-weight: 600; font-size: 14px; color: #1b263c; }
.bar { display: block; height: 6px; border-radius: 3px; background: #eceef4; overflow: hidden; width: 100%; }
.bar-fill { display: block; height: 6px; background: #7047d3; }
.camp-mini-resumo { font-size: 12px; color: #4b5872; }
.bot-mini-label { font-size: 13px; color: #66758a; }
.bot-mini-pill { align-self: flex-start; }
.bot-mini-info { font-size: 13px; color: #27354b; }

/* ---------- Leads (task 5.1) ---------- */
.board-hint { font-size: 13px; color: #66758a; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #eceef4; }
.seg-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: #4b5872; }
.seg-btn[aria-pressed="true"] { background: #ffffff; color: #1b263c; }
.focus-card { background: #ffffff; border: 1px solid #d9ccff; border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.focus-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.focus-label { font-size: 12px; color: #66758a; }
.focus-nome { font-size: 18px; font-weight: 700; }
.focus-resumo { font-size: 13px; color: #4b5872; }
.focus-days { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-day { padding: 6px 10px; border-radius: 8px; background: #f6f7fb; font-size: 12px; color: #27354b; }
.views { display: flex; flex-wrap: wrap; gap: 6px; }
.view-chip { min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: #ffffff; color: #27354b; border: 1px solid #d6d9e3; }
.view-chip-count { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #eceef4; color: #3d4a61; }
.view-chip[aria-pressed="true"] { background: #1b263c; color: #ffffff; border: 1px solid #1b263c; }
.view-chip[aria-pressed="true"] .view-chip-count { background: #4b5872; color: #ffffff; }
.filters { background: #ffffff; border: 1px solid #e6e8ef; border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.f-q { flex: 2 1 220px; }
.f-camp { flex: 1 1 180px; }
.f-160 { flex: 1 1 160px; }
.f-140 { flex: 1 1 140px; }
.f-150 { flex: 1 1 150px; }
.date-input { min-height: 40px; padding: 0 10px; border: 1px solid #d6d9e3; border-radius: 8px; font-size: 14px; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #4b5872; }
.result-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-work { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #7047d3; color: #ffffff; font-weight: 600; font-size: 13px; cursor: pointer; }
.pager { display: flex; align-items: center; gap: 8px; }
.pager-btn { min-height: 36px; padding: 0 12px; border: 1px solid #d6d9e3; border-radius: 8px; background: #ffffff; font-size: 13px; cursor: pointer; }
.list-card { background: #ffffff; border: 1px solid #e6e8ef; border-radius: 14px; overflow-x: auto; }
.leads-table { min-width: 980px; }
.leads-table th { padding: 10px 8px; }
.leads-table th:first-child { padding: 10px 12px; width: 36px; }
.leads-table td:first-child { padding: 10px 12px; }
.lead-cell { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.lead-nome { font-weight: 600; font-size: 14px; color: #1b263c; }
.lead-tel { font-size: 12px; color: #4b5872; }
.lead-email { font-size: 12px; color: #66758a; }
.lead-last { color: #27354b; max-width: 260px; }
.lead-last-inner { display: flex; flex-direction: column; gap: 3px; }
.snippet-inline { font-size: 12px; color: #16632f; font-style: italic; }
.pill-row { display: flex; gap: 4px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; }
.empty-list { padding: 32px; text-align: center; color: #66758a; font-size: 14px; }
.prox-late { font-size: 12px; color: #9b1c1c; font-weight: 600; }
.prox-today { font-size: 12px; color: #4f33a0; font-weight: 600; }
.prox-future { font-size: 12px; color: #3d4a61; }
.prox-none { font-size: 12px; color: #66758a; }
.board-scroll { overflow-x: auto; padding-bottom: 8px; }
.board { display: flex; gap: 12px; min-width: max-content; }
.board-col { width: 240px; flex: 0 0 240px; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; box-sizing: border-box; background: #eef0f6; }
.board-col.is-over { background: #f4f0ff; outline: 2px dashed #7047d3; outline-offset: -2px; }
.board-col-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 4px 2px; }
.board-col-label { font-size: 13px; font-weight: 700; }
.board-col-meta { font-size: 11px; color: #4b5872; }
.lead-card { border: 1px solid #e0e3ec; border-radius: 10px; background: #ffffff; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.lead-card-open { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.lead-card-nome { font-weight: 600; font-size: 13px; color: #1b263c; }
.lead-card-tel { font-size: 12px; color: #27354b; }
.lead-card-email { font-size: 12px; color: #4b5872; }
.lead-card-email.is-empty { color: #8a96a8; font-style: italic; }
.snippet-card { font-size: 12px; color: #27354b; background: #e7f5ec; border-radius: 8px; padding: 6px 8px; font-style: italic; }
.lead-card-camp { font-size: 11px; color: #66758a; }
.lead-card-actions { display: flex; gap: 6px; padding-top: 6px; border-top: 1px solid #f0f1f6; }
.lead-card-btn { flex: 1; min-height: 30px; border: 1px solid #d6d9e3; border-radius: 6px; background: #ffffff; font-size: 12px; font-weight: 600; cursor: pointer; }
.lead-card-btn-muted { color: #4b5872; }
.board-empty { padding: 16px 8px; text-align: center; font-size: 12px; color: #66758a; }
.board-more { min-height: 34px; border: 0; background: transparent; color: #4f33a0; font-weight: 600; font-size: 12px; cursor: pointer; }

/* ---------- Campanhas (task 5.0) ---------- */
.camp-table { min-width: 1000px; }
.camp-table th { padding: 10px 8px; }
.camp-table th:first-child { padding: 10px 12px; }
.camp-table td { padding: 12px 8px; }
.camp-table td:first-child { padding: 12px; }
.camp-name-btn { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.camp-name { font-weight: 600; color: #1b263c; font-size: 14px; }
.camp-meta { font-size: 12px; color: #66758a; }
.camp-send { min-width: 150px; }
.camp-send-inner { display: flex; flex-direction: column; gap: 4px; }
.camp-send-bar { display: block; height: 6px; border-radius: 3px; background: #eceef4; overflow: hidden; }
.camp-send-label { font-size: 12px; color: #4b5872; }
.camp-pend { font-size: 13px; color: #9b1c1c; }
.camp-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Buscar no Maps (task 4.0) ---------- */
.search-card { padding: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.search-field { flex: 1 1 240px; }
.progress-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.progress-title { font-size: 14px; font-weight: 600; }
.progress { height: 8px; border-radius: 4px; background: #eceef4; overflow: hidden; }
.progress-fill { height: 8px; background: #7047d3; }
.progress-label { font-size: 13px; color: #66758a; }
.results-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.results-summary { font-size: 14px; color: #27354b; }
.maps-table { min-width: 760px; }
.maps-table th:first-child { width: 40px; }
.tel-type { font-size: 12px; color: #66758a; }
.imported { background: #f4f0ff; border: 1px solid #d9ccff; border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.imported-text { display: flex; flex-direction: column; gap: 4px; }
.imported-title { font-weight: 700; }
.imported-sub { font-size: 13px; color: #4b5872; }

/* ---------- Mensagens prontas (task 5.0) ---------- */
.tpl-list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tpl-item { background: #ffffff; border: 1px solid #e6e8ef; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.tpl-item-top { display: flex; justify-content: space-between; gap: 8px; }
.tpl-item-title { font-weight: 600; }
.tpl-item-owner { font-size: 12px; color: #66758a; }
.tpl-item-msg { font-size: 14px; color: #27354b; white-space: pre-line; }
.tpl-form { flex: 1 1 340px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.align-start { align-self: flex-start; }

/* ---------- Resultados (task 5.2) ---------- */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.res-kpi { padding: 16px; border-radius: 12px; border: 1px solid #e6e8ef; background: #ffffff; display: flex; flex-direction: column; gap: 6px; }
.res-kpi-label { font-size: 13px; color: #66758a; }
.res-kpi-num { font-size: 24px; font-weight: 700; color: #1b263c; }
.res-kpi-num-green { color: #16632f; }
.res-kpi-num-purple { color: #4f33a0; }
.res-kpi-sub { font-size: 12px; color: #4b5872; }
.res-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.chart-card { flex: 999 1 560px; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #4b5872; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.legend-dot-rel { background: #16a34a; }
.legend-dot-pend { background: #c4b5fd; }
.chart { display: flex; align-items: flex-end; gap: 16px; height: 220px; padding: 0 4px; border-bottom: 1px solid #e6e8ef; }
.chart-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-total { font-size: 12px; font-weight: 600; color: #1b263c; white-space: nowrap; }
.chart-stack { width: 100%; max-width: 56px; display: flex; flex-direction: column; justify-content: flex-end; }
.chart-pend { background: #c4b5fd; border-radius: 4px; }
.chart-rel { background: #16a34a; border-radius: 4px; }
.chart-stack.has-both .chart-pend { border-radius: 4px 4px 0 0; }
.chart-stack.has-both .chart-rel { border-radius: 0 0 4px 4px; }
.chart-labels { display: flex; gap: 16px; padding: 0 4px; }
.chart-label { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: #66758a; }
.chart-label.is-current { font-weight: 700; color: #1b263c; }
.rule-card { flex: 1 1 300px; background: #f4f0ff; border: 1px solid #d9ccff; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rule-list { margin: 0; padding-left: 18px; font-size: 13px; color: #27354b; line-height: 1.6; }
.rule-example { font-size: 12px; color: #4b5872; }
.sales-table { min-width: 860px; }
.sales-table th { padding: 10px 8px; }
.sales-table th:first-child, .sales-table td:first-child { padding: 10px 12px; }
.sale-com { font-weight: 600; color: #1b263c; }
.sale-com.is-refunded { color: #9b1c1c; text-decoration: line-through; }
.sale-status { display: flex; flex-direction: column; gap: 3px; }
.sale-detail { font-size: 12px; color: #66758a; }

/* ---------- Robô ---------- */
.robo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.robo-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.robo-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.robo-info { display: flex; flex-direction: column; gap: 6px; }
.robo-id { font-size: 13px; color: #66758a; }
.robo-big { font-size: 22px; font-weight: 700; color: #1b263c; }
.robo-big-green { color: #16632f; }
.robo-big-amber { color: #7a4b00; }
.robo-big-red { color: #9b1c1c; }
.robo-detail { font-size: 14px; color: #27354b; max-width: 640px; }
.robo-release { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; border-radius: 10px; background: #fff7e6; border: 1px solid #f5d38a; }
.robo-stat { padding: 16px; border-radius: 10px; background: #f6f7fb; display: flex; flex-direction: column; gap: 4px; }
.robo-stat-label { font-size: 12px; color: #66758a; }
.robo-stat-num { font-size: 22px; font-weight: 700; }
.robo-stat-text { font-size: 16px; font-weight: 600; }

/* ---------- Administração ---------- */
.admin-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.admin-card-14 { gap: 14px; }
.admin-table { min-width: 760px; }
.admin-table-640 { min-width: 640px; }
.f-180 { flex: 1 1 180px; }
.f-200 { flex: 1 1 200px; }
.f-240 { flex: 1 1 240px; }
.f-limit { flex: 0 1 140px; }
.pct-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.pct-input { width: 64px; min-height: 34px; padding: 0 6px; border: 1px solid #d6d9e3; border-radius: 6px; font-size: 13px; }
/* Desvio documentado: o protótipo mostra o vendedor como texto; a task 3.1 exige atribuir vendedor a robôs existentes. Mesmo visual do campo de comissão. */
.vendor-select { min-height: 34px; padding: 0 6px; border: 1px solid #d6d9e3; border-radius: 6px; font-size: 13px; background: #ffffff; }
.month-btns { display: flex; gap: 6px; }
.month-btn { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid #d6d9e3; background: #ffffff; color: #27354b; }
.month-btn[aria-pressed="true"] { background: #1b263c; color: #ffffff; }
.comm-value { font-weight: 700; color: #16632f; }
.comm-pend { color: #4b5872; }
.comm-total { border-top: 2px solid #e6e8ef !important; background: #fafbfd; }
.comm-total td { font-weight: 700; }

/* ---------- Barra de lote (task 5.1) ---------- */
.bulk-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 980px; box-sizing: border-box; background: #1b263c; color: #ffffff; border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; z-index: 12; }
.bulk-count { font-weight: 700; font-size: 14px; }
.bulk-field { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bulk-control { min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; font-size: 13px; }
.bulk-clear { min-height: 40px; padding: 0 12px; border: 1px solid #4b5872; border-radius: 8px; background: transparent; color: #ffffff; font-weight: 600; font-size: 13px; cursor: pointer; margin-left: auto; }

/* ---------- Modais (assistente e QR) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(27, 38, 60, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.wiz { background: #ffffff; border-radius: 16px; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; }
.wiz-head { padding: 22px 24px 16px; border-bottom: 1px solid #eceef4; display: flex; flex-direction: column; gap: 14px; }
.wiz-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wiz-title { margin: 0; font-size: 18px; }
.wiz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wiz-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 8px; background: #f6f7fb; color: #66758a; }
.wiz-step-num { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: #ffffff; color: #66758a; border: 1px solid #d6d9e3; box-sizing: border-box; }
.wiz-step.is-on { background: #f4f0ff; color: #4f33a0; }
.wiz-step.is-on .wiz-step-num { background: #7047d3; color: #ffffff; border: 0; }
.wiz-step.is-done { color: #16632f; }
.wiz-step.is-done .wiz-step-num { background: #e5f4e4; color: #16632f; border: 0; }
.wiz-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.wiz-count-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #27354b; }
.wiz-toggle-all { min-height: 34px; padding: 0 10px; border: 0; background: transparent; color: #6542bf; font-weight: 600; font-size: 13px; cursor: pointer; }
.wiz-contacts { display: flex; flex-direction: column; border: 1px solid #eceef4; border-radius: 10px; max-height: 280px; overflow-y: auto; }
.wiz-contact { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f0f1f6; font-size: 14px; cursor: pointer; }
.wiz-contact-nome { font-weight: 600; flex: 1; }
.wiz-contact-etapa { font-size: 12px; color: #66758a; }
.wiz-text { font-size: 14px; color: #27354b; }
.tpl-opt { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; cursor: pointer; background: #ffffff; border: 1px solid #e0e3ec; }
.tpl-opt[aria-pressed="true"] { border: 2px solid #7047d3; }
.tpl-opt-top { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.tpl-opt-title { font-weight: 600; }
.tpl-opt-owner { font-size: 12px; color: #66758a; }
.tpl-opt-short { font-size: 13px; color: #27354b; text-align: left; }
.btn-write { align-self: flex-start; min-height: 40px; padding: 0 14px; border: 1px dashed #b9a6f0; border-radius: 8px; background: #ffffff; color: #4f33a0; font-weight: 600; font-size: 13px; cursor: pointer; }
.write-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: #f6f7fb; }
.write-box .textarea { background: #ffffff; }
.preview-label { font-size: 13px; color: #66758a; margin-top: 4px; }
.preview { background: #e7f5ec; border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.confirm-list { display: flex; flex-direction: column; border: 1px solid #eceef4; border-radius: 10px; }
.confirm-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0f1f6; font-size: 14px; }
.confirm-row:last-child { border-bottom: 0; }
.confirm-key { color: #66758a; }
.confirm-val { font-weight: 600; }
.wiz-foot { padding: 16px 24px 22px; border-top: 1px solid #eceef4; display: flex; justify-content: space-between; gap: 12px; }

/* Modal do QR */
.qr-dialog { background: #ffffff; border-radius: 16px; padding: 28px; width: 100%; max-width: 440px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.qr-title { margin: 0; font-size: 18px; align-self: flex-start; }
.qr-box { padding: 12px; background: #ffffff; border: 1px solid #e6e8ef; border-radius: 8px; }
.qr-canvas { display: block; }
/* Enquanto o primeiro QR não chega: mesmo tamanho da grade do protótipo (25 × 9 px). */
.qr-wait { width: 225px; height: 225px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #66758a; text-align: center; }
.qr-meta { font-size: 13px; color: #66758a; }
.qr-expired { padding: 24px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: 14px; text-align: center; }
.qr-steps { margin: 0; padding-left: 20px; font-size: 14px; color: #27354b; line-height: 1.6; align-self: stretch; }
.qr-foot { display: flex; gap: 8px; align-self: stretch; justify-content: flex-end; }

/* ---------- Detalhe do lead (painel lateral, task 5.1) ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(27, 38, 60, 0.35); display: flex; justify-content: flex-end; z-index: 15; }
.drawer { width: 100%; max-width: 460px; height: 100%; overflow-y: auto; background: #ffffff; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.drawer-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f4f0ff; }
.drawer-nav-prev { min-height: 36px; padding: 0 12px; border: 1px solid #d9ccff; border-radius: 8px; background: #ffffff; color: #4f33a0; font-weight: 600; font-size: 13px; cursor: pointer; }
.drawer-nav-label { font-size: 13px; font-weight: 600; color: #4f33a0; }
.drawer-nav-next { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: #7047d3; color: #ffffff; font-weight: 600; font-size: 13px; cursor: pointer; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-title { margin: 0; font-size: 20px; }
.drawer-sub { font-size: 13px; color: #66758a; }
.drawer-camp { font-size: 13px; color: #4b5872; }
.btn-wa { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #d6d9e3; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.btn-md-muted { color: #4b5872; }
.drawer-contact { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #27354b; }
.archived-note { padding: 8px 12px; border-radius: 8px; background: #eceef4; font-size: 13px; color: #3d4a61; }
.reply-box { padding: 12px 14px; border-radius: 10px; background: #e7f5ec; display: flex; flex-direction: column; gap: 4px; }
.reply-label { font-size: 12px; color: #16632f; font-weight: 600; }
.reply-text { font-size: 14px; color: #1b263c; font-style: italic; }
.reply-note { font-size: 11px; color: #4b5872; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-tile { padding: 12px; border-radius: 10px; background: #f6f7fb; display: flex; flex-direction: column; gap: 6px; }
.info-tile-label { font-size: 12px; color: #66758a; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.notes-title { font-size: 14px; font-weight: 700; }
.btn-note { align-self: flex-start; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #1b263c; color: #ffffff; font-weight: 600; font-size: 13px; cursor: pointer; }
.note-item { padding: 10px 12px; border-radius: 10px; background: #f6f7fb; display: flex; flex-direction: column; gap: 4px; }
.note-when { font-size: 12px; color: #66758a; }
.note-text { font-size: 14px; }
.timeline { display: flex; flex-direction: column; gap: 6px; }
.timeline-item { font-size: 13px; color: #27354b; }

/* ---------- Login (Login.dc.html) ---------- */
.login-page { min-height: 100vh; font-family: Inter, system-ui, sans-serif; color: #1b263c; background: #f6f7fb; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.login-card { width: 100%; max-width: 400px; background: #ffffff; border: 1px solid #e6e8ef; border-radius: 16px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.login-card .brand-logo { width: 40px; height: 40px; font-size: 18px; }
.login-card .brand-name { font-size: 18px; }
.login-card .brand-sub { font-size: 13px; }
.login-card .input { font-family: Inter, sans-serif; }
.login-foot { font-size: 12px; color: #66758a; text-align: center; }
.login-title { margin: 0; font-size: 18px; }
/* Desvio documentado: o protótipo não tem mensagem de erro no login; usa as cores do selo vermelho. */
.login-error { padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #9b1c1c; font-size: 13px; }
