/* Escritório MedOne: azul-marinho e verde-água do logo, fundo claro, fonte Outfit. Sobrepõe styles.css. */
:root {
  --bg: #f3f6f8;
  --card: #ffffff;
  --card-2: #eef3f5;
  --text: #0b1b3f;
  --muted: #5f6b7d;
  --line: #e1e8ec;
  --navy: #001342;
  --navy-2: #0c2459;
  --teal: #00c3a5;
  --teal-txt: #00876f;
  --accent: #00c3a5;
  --accent-txt: #00876f;
  --ok: #129a6d;
  --ok-bg: #e2f5ee;
  --bad: #d4483b;
  --bad-bg: #fbe6e3;
  --warn: #c98612;
  --warn-bg: #fdf1dc;
  --sel: #001342;
  --sel-txt: #ffffff;
  --topo-bg: rgba(255, 255, 255, .94);
  --topo-txt: #001342;
  --shadow: 0 1px 2px rgba(0, 19, 66, .05), 0 8px 24px rgba(0, 19, 66, .06);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #070f22; --card: #0e1a33; --card-2: #15243f; --text: #e8eef6; --muted: #98a6ba; --line: #1f3050;
    --navy: #070f22; --teal: #22d3b4; --teal-txt: #38dcbf; --accent: #22d3b4; --accent-txt: #38dcbf;
    --ok: #3ccf96; --ok-bg: #10301f; --bad: #ff7b6e; --bad-bg: #3a1714; --warn: #f0b04a; --warn-bg: #3a2a10;
    --sel: #e8eef6; --sel-txt: #070f22; --topo-bg: rgba(7, 15, 34, .94); --topo-txt: #e8eef6; --shadow: none;
  }
}
:root[data-tema="escuro"] {
  --bg: #070f22; --card: #0e1a33; --card-2: #15243f; --text: #e8eef6; --muted: #98a6ba; --line: #1f3050;
  --navy: #070f22; --teal: #22d3b4; --teal-txt: #38dcbf; --accent: #22d3b4; --accent-txt: #38dcbf;
  --ok: #3ccf96; --ok-bg: #10301f; --bad: #ff7b6e; --bad-bg: #3a1714; --warn: #f0b04a; --warn-bg: #3a2a10;
  --sel: #e8eef6; --sel-txt: #070f22; --topo-bg: rgba(7, 15, 34, .94); --topo-txt: #e8eef6; --shadow: none;
}

body { font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; }
.carregando { background: #f3f6f8; }

/* Marca */
.simbolo { width: 32px; height: 32px; flex: none; display: block; }
.nome-marca { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--topo-txt); white-space: nowrap; }
.nome-marca small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-top: -2px; }

/* Topo e navegação */
.topo { background: var(--topo-bg); color: var(--topo-txt); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.topo h1 { font-weight: 600; letter-spacing: .02em; font-size: 16px; text-transform: none; }
.topo h1 button { color: var(--muted); }
.topo .esq .nome-marca { display: none; }
@media (min-width: 520px) { .topo .esq .nome-marca { display: block; } }
.pilula, .redondo { background: transparent; border: 1px solid var(--line); color: var(--topo-txt); font-weight: 500; }
.redondo.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tabs button { font-weight: 500; font-size: 9px; min-width: 0; padding: 0; letter-spacing: -.02em; }
.tabs button span { white-space: nowrap; }
.tabs button.ativo { color: var(--teal-txt); background: var(--card-2); }
@media (min-width: 900px) {
  .tabs { grid-template-columns: 1fr; background: var(--card); border-radius: 0; box-shadow: none; }
  .tabs .marca { padding: 24px 8px 26px; }
  .tabs .marca img { width: 38px; height: 38px; background: none; padding: 0; }
  .tabs .marca .nome-marca { color: var(--text); }
  .tabs button { font-size: 14.5px; }
  .tabs button.ativo { box-shadow: inset 3px 0 0 var(--teal); }
  .topo .esq .simbolo, .topo .esq .nome-marca { display: none; }
}

/* Botões e destaques */
.btn-salvar { background: var(--navy); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .btn-salvar { background: var(--teal); color: #04121f; } }
:root[data-tema="escuro"] .btn-salvar { background: var(--teal); color: #04121f; }
.btn-sec { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; }
.btn-teal { border: 0; background: var(--teal); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.filtros button.on, .tipos input:checked + span, .chips-pct button.on, .check.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.eyebrow { color: var(--teal-txt); font-weight: 600; letter-spacing: .14em; }
.cab-grupo { color: var(--teal-txt); font-weight: 600; }
.card h2 { font-weight: 600; font-size: 16px; }
.kpi b { font-weight: 600; letter-spacing: -.01em; }
.kpi small { font-weight: 600; }
.pill { font-weight: 600; border-radius: 999px; font-size: 11px; }
.pill.aviso-pill { background: var(--warn); color: #fff; }
@media (max-width: 520px) { .kpi b { font-size: 19px; } .kpi { padding: 12px 14px; } }

/* Escritório (página inicial) */
.saudacao { margin: 4px 2px 16px; }
.saudacao h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.saudacao p { margin: 4px 0 0; color: var(--muted); }
.salas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sala { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 16px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.sala .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--teal-txt); }
.sala .ic svg { width: 22px; height: 22px; }
.sala b { font-size: 16px; font-weight: 600; }
.sala small { color: var(--muted); font-size: 13px; margin-top: -6px; }
.pend { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.pend:last-child { border-bottom: 0; }
.pend .bola { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.pend .bola.bad { background: var(--bad); } .pend .bola.warn { background: var(--warn); } .pend .bola.ok { background: var(--ok); } .pend .bola.info { background: var(--teal); }
.pend b { display: block; font-weight: 600; font-size: 15px; }
.pend span { display: block; color: var(--muted); font-size: 13.5px; }

/* Patrimônio */
.equip { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; }
.equip:last-child { border-bottom: 0; }
.equip .faixa { align-self: stretch; border-radius: 4px; min-height: 40px; }
.equip .tit { font-weight: 600; font-size: 15.5px; }
.equip .sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equip .dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.equip .patr { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.situ { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.situ.em_uso { background: var(--ok-bg); color: var(--ok); }
.situ.estoque { background: var(--card-2); color: var(--muted); }
.situ.manutencao { background: var(--warn-bg); color: var(--warn); }
.situ.baixado { background: var(--bad-bg); color: var(--bad); }
.comp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comp:last-child { border-bottom: 0; }
.comp b { font-weight: 500; font-size: 14.5px; }
.comp small { display: block; color: var(--muted); font-size: 12.5px; }
.comp .num-pat { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); background: var(--card-2); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.comp button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 2px 6px; }

/* Financeiro */
.lanc { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lanc:last-child { border-bottom: 0; }
.lanc .chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 13px; background: none; padding: 0; }
.lanc .chk.on { background: var(--ok); border-color: var(--ok); }
.lanc .txt { background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.lanc .txt b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lanc .txt span { display: block; font-size: 12.5px; color: var(--muted); }
.lanc .val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lanc.feito .val { color: var(--ok); }
.grupo-tit { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.resumo-linha { display: flex; justify-content: space-between; padding: 8px 0; font-variant-numeric: tabular-nums; }
.resumo-linha span { color: var(--muted); }
.resumo-linha.total { border-top: 2px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 19px; font-weight: 600; }
.resumo-linha.total span { color: var(--text); }
.tabela .ok { color: var(--ok); } .tabela .falta { color: var(--bad); }
.tabela-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabela th { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela th:first-child, .tabela td:first-child { text-align: left; padding-left: 0; }
.tabela td { text-align: right; padding: 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tfoot td { font-weight: 600; border-top: 2px solid var(--line); }

/* Arquivo */
.arq { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.arq:last-child { border-bottom: 0; }
.arq .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; color: var(--teal-txt); font-size: 11px; font-weight: 700; }
.arq .txt { background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.arq .txt b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arq .txt span { display: block; font-size: 12.5px; color: var(--muted); }
.arq .acoes { display: flex; gap: 4px; align-items: center; }
.arq .acoes button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px 6px; }
.val-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.val-badge.ok { background: var(--ok-bg); color: var(--ok); }
.val-badge.warn { background: var(--warn-bg); color: var(--warn); }
.val-badge.bad { background: var(--bad-bg); color: var(--bad); }
.checklist .item-check { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.checklist .item-check:last-child { border-bottom: 0; }
.envio { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); position: relative; }
.envio input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.envio b { color: var(--teal-txt); }

/* Documentos */
.doc-cliente { margin-bottom: 14px; }
.doc-cliente .cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.doc-cliente .cab b { font-size: 17px; font-weight: 600; }
.contr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.contr:last-child { border-bottom: 0; }
.contr input { width: 20px; height: 20px; accent-color: var(--teal); }
.contr label { flex: 1; display: flex; justify-content: space-between; gap: 10px; }
.contr label span { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.emitido { font-size: 12.5px; color: var(--ok); font-weight: 600; }
.prop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prop:last-child { border-bottom: 0; }
.prop b { font-weight: 600; }
.prop span { display: block; color: var(--muted); font-size: 13px; }

/* Login */
.login { background: radial-gradient(ellipse at top, #ffffff 0%, #eef3f6 60%, #e2ebf0 100%); color: var(--text); }
.login .logo-login { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.login .logo-login svg { width: 64px; height: 64px; }
.login .logo-login b { font-size: 40px; font-weight: 700; color: #001342; letter-spacing: -.02em; line-height: 1; }
.login .logo-login small { display: block; font-size: 13px; color: #5f6b7d; font-weight: 400; margin-top: 4px; }
.login .esp { color: #00876f; margin: 10px 0 26px; }
.login form { border: 1px solid #e1e8ec; box-shadow: 0 20px 50px rgba(0, 19, 66, .08); background: #fff; color: #0b1b3f; }
.login input { background: #f3f6f8; border-color: #e1e8ec; color: #0b1b3f; }
.login .btn-salvar { background: #001342; color: #fff; }
.login .link { background: none; border: 0; color: #00876f; font-weight: 600; margin-top: 12px; width: 100%; font-size: 14px; }
.ok-msg { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.tabs .marca svg { width: 38px; height: 38px; flex: none; }
.folha.doc { max-width: 980px; height: 100%; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 8px) 0 0; }
@media (min-width: 700px) { .folha.doc { height: 94vh; max-height: 94vh; padding-top: 0; overflow: hidden; } }
.doc-topo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.doc-topo b { flex: 1; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-acoes { display: flex; gap: 8px; }
@media (max-width: 600px) { .doc-acoes .btn-sec { display: none; } }
#doc-frame { flex: 1; width: 100%; border: 0; background: #e9edf0; min-height: 60vh; }
.arq .val-txt { display: none; font-weight: 600; }
.arq .val-txt.ok { color: var(--ok); } .arq .val-txt.warn { color: var(--warn); } .arq .val-txt.bad { color: var(--bad); }
@media (max-width: 600px) { .arq .acoes .val-badge { display: none; } .arq .val-txt { display: block; } }

/* ---------- Quadro "Hoje" ---------- */
.quadro-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.quadro-cab h2 { margin: 0; }
.quadro-cab .eyebrow { margin: 0 0 4px; }
.quadro-prog { text-align: right; }
.quadro-prog b { display: block; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.quadro-prog span { font-size: 12px; color: var(--muted); }
.quadro-barra { height: 6px; border-radius: 3px; background: var(--card-2); margin: 12px 0 4px; overflow: hidden; }
.quadro-barra i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.tarefa { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tarefa:last-child { border-bottom: 0; }
.tarefa-check { width: 28px; height: 28px; margin-top: 1px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: none; color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.tarefa.alta .tarefa-check { border-color: var(--accent); }
.tarefa-check.on { background: var(--ok); border-color: var(--ok); }
.tarefa-tit { font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.tarefa-det { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.tarefa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.tarefa-cat { color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tarefa-urg { color: var(--bad); font-weight: 600; }
.tarefa-ir, .tarefa-x { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--accent-txt); text-decoration: none; cursor: pointer; }
.tarefa-x { color: var(--muted); }
.tarefa.feita .tarefa-tit { text-decoration: line-through; color: var(--muted); }
.tarefa.feita .tarefa-det { display: none; }
.quadro-dir { display: flex; align-items: center; gap: 12px; }
.tarefa-nova { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-size: 20px; line-height: 1; padding: 0; display: grid; place-items: center; cursor: pointer; }
.quadro-antigas { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }

/* ---------- Notas emitidas e cobranças ---------- */
.nota-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nota-item:last-child { border-bottom: 0; }
.nota-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.nota-cab b { font-weight: 600; font-size: 15.5px; }
.nota-cab span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.nota-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nota-status { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.nota-status b { color: var(--bad); font-weight: 600; }
.nota-hist { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); font-size: 12.5px; color: var(--muted); }
.nota-hist div { display: flex; gap: 10px; padding: 2px 0; }
.nota-hist div span:first-child { flex: none; color: var(--text); font-variant-numeric: tabular-nums; }
.nota-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.nota-botoes .link-x { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.nota-item.recebida { opacity: .75; }
.chk-cel { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.chk-cel input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }

/* ---------- WhatsApp ---------- */
.tabs button { position: relative; }
.wa-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #1f9d55; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.wa-badge.tab { position: absolute; top: 4px; right: calc(50% - 22px); }
@media (min-width: 900px) { .wa-badge.tab { position: static; margin-left: auto; } }
.wa-grade { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .wa-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.wa-conv { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; border-radius: 10px; }
.wa-conv:last-child { border-bottom: 0; }
.wa-conv.on { background: var(--card-2); }
.wa-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e3f6ec; color: #1f7a45; font-weight: 700; }
.wa-conv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-conv-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-conv-meta { display: flex; gap: 6px; }
.wa-conv-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; }
.wa-selo { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.wa-selo.cliente { background: #e6f0ff; color: #2a5bc0; } .wa-selo.socio { background: #f1e9ff; color: #6d3fd1; }
.wa-selo.fornecedor { background: #fff1e4; color: #b35a12; } .wa-selo.tecnico { background: #e3f6f3; color: #0f7f72; }
.wa-selo.humano { background: #fde9e9; color: #b23a3a; }
.local-item .wa-selo { margin-left: auto; }
.wa-modo { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card-2); border-radius: 12px; padding: 8px 12px; margin: 8px 0 10px; font-size: 13.5px; }
.wa-modo button, .wa-midia { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.wa-msgs { display: flex; flex-direction: column; gap: 6px; max-height: 58vh; overflow-y: auto; padding: 10px; border-radius: 12px; background: #efeae2; }
.wa-msg { max-width: 82%; padding: 7px 10px 4px; border-radius: 10px; background: #fff; color: #111b21; font-size: 14.5px; line-height: 1.4; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.wa-msg.saida { align-self: flex-end; background: #d9fdd3; }
.wa-msg.sistema { background: #fff6d6; }
.wa-autor { display: block; font-size: 11.5px; font-weight: 700; color: #1f7a45; margin-bottom: 2px; }
.wa-hora { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.wa-midia { display: inline-block; margin-bottom: 4px; }
.wa-enviar { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.wa-enviar textarea, .wa-teste textarea, .wa-teste select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); font-size: 15px; resize: vertical; }
.wa-teste { display: flex; flex-direction: column; gap: 8px; }
.wa-msgs-teste { margin-top: 12px; max-height: 40vh; }
.wa-antigos summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 2px; }
:root[data-tema="escuro"] .wa-msgs { background: #0b141a; }
:root[data-tema="escuro"] .wa-msg { background: #202c33; color: #e9edef; }
:root[data-tema="escuro"] .wa-msg.saida { background: #005c4b; }
:root[data-tema="escuro"] .wa-msg.sistema { background: #3a3417; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .wa-msgs { background: #0b141a; }
  :root:not([data-tema="claro"]) .wa-msg { background: #202c33; color: #e9edef; }
  :root:not([data-tema="claro"]) .wa-msg.saida { background: #005c4b; }
  :root:not([data-tema="claro"]) .wa-msg.sistema { background: #3a3417; }
}
.botoes-linha button.btn-salvar { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .botoes-linha button.btn-salvar { background: var(--teal); border-color: var(--teal); color: #04121f; } }
:root[data-tema="escuro"] .botoes-linha button.btn-salvar { background: var(--teal); border-color: var(--teal); color: #04121f; }
.wa-perfis { margin: 0 0 10px; }
.wa-sim-dados { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-sim-dados input, .wa-sim-dados select { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); color: var(--text); font-size: 15px; }
.wa-sim .wa-msgs-teste { margin-top: 0; min-height: 160px; }
.wa-sim .wa-enviar { margin-top: 0; }
.wa-enviar .btn-salvar { flex: none; }

/* Aba Site: pedidos do site e visitas */
.site-filtro { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.site-filtro button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.site-filtro button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.site-barras { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin: 8px 0 10px; }
.site-barra { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.site-barra i { display: block; width: 100%; min-height: 2px; background: var(--teal); border-radius: 3px 3px 0 0; }
.site-barra small { font-size: 9px; color: var(--muted); margin-top: 3px; }
.site-barra:nth-child(even) small { visibility: hidden; }
.botoes-linha .botao-link { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 700; text-decoration: none; color: inherit; }
