/* RochaOps · Gestão — o que não existia no CSS original (estilo.css, intocado).
   Só o formulário de login, que substitui o botão "Entrar com ChatGPT". */
.entry-login { display: grid; gap: 12px; width: 100%; }
.entry-login label { display: grid; gap: 6px; text-align: left; }
.entry-login label > span { font-size: 12px; font-weight: 600; color: var(--muted, #65738a); letter-spacing: .02em; }
.entry-login input[type="email"], .entry-login input[type="password"] {
  height: 46px; padding: 0 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px;
  background: #fff; color: var(--ink, #15233b); font: inherit; font-size: 15px;
}
.entry-login input:focus { outline: 2px solid var(--gold, #d5ad5a); outline-offset: 1px; border-color: transparent; }
.entry-login .entry-keep { display: flex; align-items: center; gap: 8px; }
.entry-login .entry-keep > span { font-weight: 500; letter-spacing: 0; }
.entry-login button.entry-signin { border: 0; cursor: pointer; font: inherit; width: 100%; }
.entry-login button.entry-signin:disabled { opacity: .7; cursor: progress; }
.entry-error { margin: 0; color: #b42318; font-size: 13px; text-align: left; }
.entry-access-content .entry-sent { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #eef3f8; color: #1d3550; font-size: 14px; line-height: 1.55; }
button.entry-switch-account { background: none; border: 0; cursor: pointer; font: inherit; }
a.entry-new-link { box-sizing: border-box; text-decoration: none; font-size: 13px; min-height: 46px; }
.entry-access-content .entry-link-dead { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fbf1e3; color: #6b4310; font-size: 14px; line-height: 1.55; }
button.entry-resend { width: 100%; margin-top: 16px; font-size: 13px; color: var(--teal, #214775); text-decoration: underline; text-underline-offset: 3px; }

/* Datas: a primeira letra sai maiúscula no JS (capitalizeFirst); o capitalize do
   CSS original punha maiúscula também em "De" ("30 De Outubro"). */
.hero-focus-head > span:first-child, .calendar-date-label { text-transform: none; }

/* Status da consulta (03/11): o fundo do card é a cor do status; a faixa à esquerda continua sendo
   a cor do profissional. Paleta própria, a partir do navy/dourado da marca. */
[data-status="scheduled"] { --status-color: #4f78a8; }
[data-status="confirmed"] { --status-color: #2f8a74; }
[data-status="arrived"] { --status-color: #c39234; }
[data-status="in_progress"] { --status-color: #7a5ea0; }
[data-status="completed"] { --status-color: #7b8796; }
[data-status="cancelled"], [data-status="no_show"] { --status-color: #b4554f; }
.schedule-appointment[data-status] {
  background: color-mix(in srgb, var(--status-color) 17%, white);
  border-color: color-mix(in srgb, var(--status-color) 38%, white);
  border-left: 3px solid var(--professional-color);
}
.schedule-appointment[data-status]::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-color);
}
.status-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 11px; color: #4a6074; }
.status-legend li { display: inline-flex; align-items: center; gap: 6px; }
.status-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--status-color) 30%, white); border: 1px solid var(--status-color); }

.appointment-history ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.appointment-history li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line, #e0e5ed); }
.appointment-history li:last-child { border-bottom: 0; }
.appointment-history small { color: var(--muted, #65738a); }

/* Popover do card da agenda (E2, 03/11). No celular vira folha presa ao rodapé. */
.appt-popover {
  position: fixed; z-index: 70; display: grid; gap: 12px; padding: 14px;
  background: #fff; border: 1px solid var(--line, #e0e5ed); border-top: 3px solid var(--status-color, #4f78a8);
  border-radius: 14px; box-shadow: 0 14px 40px #0b1d3333; color: var(--ink, #15233b);
}
.appt-popover header { display: grid; gap: 2px; }
.appt-popover header strong { font-size: 14px; }
.appt-popover header small { color: var(--muted, #65738a); font-size: 11px; }
.appt-popover-status { display: grid; gap: 4px; }
.appt-popover-status > span { font-size: 11px; font-weight: 600; color: var(--muted, #65738a); }
.appt-popover-status select { min-height: 40px; border-left: 4px solid var(--status-color, #4f78a8); }
.appt-popover-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.appt-popover-origin > span { width: 100%; }
.appt-popover-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.appt-popover-actions > a, .appt-popover-actions > button {
  display: grid; justify-items: center; gap: 4px; padding: 8px 2px; min-height: 52px; border-radius: 10px;
  background: #f4f6fa; color: #24405f; font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.appt-popover-actions > a:hover, .appt-popover-actions > button:hover:not(:disabled) { background: #e9eef6; }
.appt-popover-actions > button:disabled { opacity: .45; cursor: not-allowed; }
.appt-popover-backdrop { display: none; }
@media (max-width: 600px) {
  .appt-popover-backdrop { display: block; position: fixed; inset: 0; z-index: 69; background: #0b1d3366; }
  .appt-popover {
    top: auto !important; left: 0 !important; right: 0; bottom: 0 !important; width: auto !important;
    border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .appt-popover-actions > a, .appt-popover-actions > button { min-height: 60px; font-size: 12px; }
}

/* Clínicas da plataforma (P1, 03/11) */
.clinic-demo-toggle { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.clinic-demo-toggle input { width: auto; min-height: 0; margin-top: 2px; }
.clinic-invite-link { display: grid; gap: 8px; padding: 14px; border: 1px solid #f0dfb9; background: #fff8e8; border-radius: 12px; }
.clinic-invite-link code { display: block; padding: 10px; background: #fff; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; user-select: all; }
.clinic-invite-link small { color: var(--muted, #65738a); }

/* Folha timbrada (P2, 03/11): prévia na tela e impressão em A4. Tipografia sóbria, sem cores de tela. */
.letterhead { background: #fff; color: #1d2633; font-size: 13px; line-height: 1.6; display: grid; gap: 14px; }
.letterhead header { display: grid; gap: 2px; text-align: center; padding-bottom: 12px; border-bottom: 1px solid #c9ced6; }
.letterhead header strong { font-size: 18px; letter-spacing: .01em; }
.letterhead header small { color: #55606f; font-size: 11px; }
.letterhead h2 { margin: 6px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.letterhead-patient { margin: 0; }
.letterhead-patient span { display: inline-block; margin-right: 8px; font-size: 11px; color: #55606f; text-transform: uppercase; letter-spacing: .06em; }
.letterhead-body { white-space: pre-wrap; min-height: 160px; }
.letterhead footer { display: grid; gap: 34px; margin-top: 18px; }
.letterhead-date { margin: 0; text-align: right; }
.letterhead-sign { display: grid; justify-items: center; gap: 2px; text-align: center; }
.letterhead-sign i { display: block; width: min(280px, 80%); border-top: 1px solid #1d2633; margin-bottom: 6px; }
.letterhead-sign small { color: #55606f; font-size: 11px; }
.letterhead-preview { margin-top: 16px; padding: 22px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fff; box-shadow: 0 4px 18px #152b4910; }
@page { size: A4; margin: 16mm 18mm; }
@media print {
  .print-sheet.print-bare { padding: 0; font-size: 12pt; }
  .print-bare .letterhead { font-size: 12pt; }
  .print-bare .letterhead header strong { font-size: 18pt; }
  .print-bare .letterhead-body { min-height: 120mm; }
}

@media print { .print-sheet.print-bare { position: static; } }

/* Cópia externa (03/11) */
.external-copy { border-top: 1px solid var(--line, #e0e5ed); }
.external-copy h3 { margin: 0; }
.external-copy-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.external-copy-steps code { font-size: 12px; }

/* Senha (03/11) */
.entry-login .entry-forgot { justify-self: center; font-size: 13px; color: var(--teal, #214775); text-decoration: underline; text-underline-offset: 3px; }
.clinic-owner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.clinic-owner .link-button { font-size: 11px; }

/* Olhinho de mostrar a senha (03/11) */
.password-field { position: relative; display: block; }
.password-field > input { width: 100%; padding-right: 46px !important; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6b7c92; cursor: pointer;
}
.password-toggle:hover { background: #eef2f7; color: #214775; }
.password-toggle:focus-visible { outline: 2px solid var(--gold, #d5ad5a); outline-offset: 1px; }

/* Entrada sem rolagem (03/11): o lado do acesso cabe na altura da tela. Em telas baixas o espaço
   entre os blocos encolhe; o conteúdo não muda. */
@media (min-width: 661px) {
  .entry-screen { min-height: 100dvh; }
  .entry-access { padding-top: 30px; padding-bottom: 22px; }
  .entry-access-content { padding: 24px 0; }
}
@media (min-width: 661px) and (max-height: 960px) {
  .entry-access-content { padding: 10px 0; }
  .entry-access-mark { width: 42px; height: 42px; margin-bottom: 14px; }
  .entry-access h2 { font-size: clamp(30px, 4.6vh, 42px); margin: 8px 0 10px; }
  .entry-access-content > p { margin-bottom: 16px; line-height: 1.65; }
  .entry-login { gap: 9px; }
  .entry-login input[type="email"], .entry-login input[type="password"], .entry-login input[type="text"], .entry-login input:not([type]) { height: 42px; }
  .entry-signin { min-height: 46px; padding: 12px 18px; }
  .entry-auth-detail { margin-top: 9px; }
  .entry-plans-link { margin-top: 16px; padding-top: 14px; gap: 4px; }
  .entry-story-copy { padding: 30px 0; }
}
@media (min-width: 661px) and (max-height: 760px) {
  .entry-access-mark { display: none; }
  .entry-access h2 { font-size: clamp(28px, 4.4vh, 34px); }
  .entry-access-content > p { display: none; }
}
/* Celular: o bloco escuro vira uma faixa curta e o formulário aparece sem rolar. */
@media (max-width: 660px) {
  .entry-story { min-height: 0; padding: 22px 22px 20px; }
  .entry-story-copy { padding: 18px 0 0; margin: 0; }
  .entry-story-copy h1 { font-size: 30px; letter-spacing: -1px; }
  .entry-story-copy > p, .entry-pillars, .entry-story-footer, .entry-eyebrow { display: none; }
  .entry-access { min-height: 0; padding-top: 18px; }
  .entry-access-nav { display: none; }
  .entry-access-content { padding: 4px 0 16px; }
  .entry-access-mark { display: none; }
  .entry-access h2 { font-size: 28px; margin: 6px 0 8px; }
  .entry-access h2 > br { display: initial; } /* o CSS original junta as duas frases no celular e quebra no meio */
  .entry-access-content > p { margin-bottom: 14px; }
  .entry-login { gap: 9px; }
}
.external-copy-check { margin: 8px 0 0; padding-left: 18px; font-size: 12px; }
/* Mudança do banco para São Paulo (06/11) */
.database-move-hosts { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.database-move .row { flex-wrap: wrap; }
.database-move .external-copy-check code { font-size: 11px; overflow-wrap: anywhere; }
/* E3 (04/11): tipo de atendimento com cor, cadastro rápido, retornos */
.appt-type-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; flex: none; box-shadow: 0 0 0 1.5px #fff; }
.appt-type-select { position: relative; display: block; }
.appt-type-select > i { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; pointer-events: none; }
.appt-type-select > select { width: 100%; padding-left: 30px; }
.quick-patient-toggle { margin-top: -6px; }
.quick-patient-toggle .link-button { font-size: 12px; }
.calendar-returns em { font-style: normal; font-size: 12px; font-weight: 600; color: #2d6a62; white-space: nowrap; }
.calendar-returns em.late { color: #b42318; }
/* Agendamento online (04/11) */
.appt-popover-type { display: flex; align-items: center; gap: 8px; }
.appt-online-tag { padding: 1px 7px; border-radius: 99px; background: #fbf1e3; color: #8a5a12; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.appt-online-mark { position: absolute; right: 6px; bottom: 3px; font-style: normal; font-size: 9px; font-weight: 700; color: #8a5a12; text-transform: uppercase; letter-spacing: .05em; }
.booking-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.booking-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.booking-weekdays label { min-width: 52px; }
.online-booking h3 { margin: 0; }
/* Bloqueios de agenda (05/11) */
.schedule-block { position: absolute; left: 2px; right: 3px; z-index: 2; padding: 3px 6px; border: 1px dashed #b9c2cf; border-radius: 6px; background: repeating-linear-gradient(135deg, #eef1f5 0 6px, #f7f8fa 6px 12px); color: #5c6a7c; font: inherit; font-size: 10px; font-weight: 600; text-align: left; overflow: hidden; cursor: pointer; }
.schedule-block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-block:hover { border-color: #8a97a8; }
.calendar-block-button { display: block; width: 100%; margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.block-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.block-kinds button { padding: 8px 12px; border: 1px solid var(--line, #e0e5ed); border-radius: 99px; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.block-kinds button.on { border-color: #173a60; background: #173a60; color: #fff; }
.block-allday { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.field-label-inline { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #65738a); }
.block-hint { margin: 0; font-size: 12px; }
/* Aviso de agendamento online (05/11) */
.notification-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #b42318; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.notification-anchor .icon-btn { position: relative; }
.notification-menu .notification-booking { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 6px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.notification-menu .notification-booking:hover { background: #f4f6fa; }
.notification-menu .notification-booking.new span { font-weight: 700; }
.notification-menu .notification-booking small { display: block; font-weight: 400; color: var(--muted, #65738a); }
/* Recepção / sala de espera (E4, 05/11) */
.reception { display: grid; gap: 16px; }
.reception .page-actions select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.reception-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fff; font-size: 13px; color: var(--muted, #65738a); }
.reception-counts b { margin-right: 4px; font-size: 20px; color: #173a60; }
.reception-clock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.reception-list { margin: 0; padding: 0; list-style: none; }
.reception-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line, #eef1f5); }
.reception-row:first-child { border-top: 0; }
.reception-who strong { display: block; font-size: 14px; }
.reception-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted, #65738a); font-size: 12px; }
.reception-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: #2d4a68; }
.reception-meta em.late, .reception-meta .late { font-style: normal; font-weight: 600; color: #b42318; }
.reception-pos { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 99px; background: #fbf1e3; color: #8a5a12; font-size: 11px; }
.reception-actions { display: flex; align-items: center; gap: 6px; }
.reception-agenda, .reception-wa { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; color: #2d4a68; cursor: pointer; }
.reception-wa { color: #1c7c4a; }
.reception-empty { margin: 0; padding: 14px 16px; }
@media (max-width: 660px) {
  .reception-row { grid-template-columns: auto 1fr; }
  .reception-actions { grid-column: 2; }
  .reception-clock { margin-left: 0; width: 100%; }
}

/* ---------- E11 equipe e acessos · E12 auditoria antes/depois (06/11) ---------- */
.team-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.team-roles > div { border: 1px solid var(--line, #e3e7ee); border-radius: 10px; padding: 10px 12px; background: #fff; }
.team-roles strong { display: block; font-size: 13px; }
.team-roles small { color: #6b7686; font-size: 12px; line-height: 1.35; }
.team-admin td .badge { margin-left: 6px; }
.team-admin td select { max-width: 100%; margin: 2px 0; }
.team-admin .team-actions { gap: 12px; flex-wrap: wrap; }
.team-inactive td { opacity: .6; }
.audit-changes { margin-top: 6px; font-size: 12px; }
.audit-changes summary { cursor: pointer; color: #2f6fb0; }
.audit-changes ul { margin: 6px 0 0; padding-left: 16px; }
.audit-changes li { margin: 2px 0; overflow-wrap: anywhere; }
.audit-changes s { color: #8a93a2; }
.entry-google { margin-top: 14px; display: grid; gap: 10px; justify-items: center; }
.entry-or { font-size: 12px; color: #8a93a2; letter-spacing: .08em; text-transform: uppercase; }
.entry-google-button { width: 100%; display: flex; justify-content: center; min-height: 44px; }

/* ---------- Atalhos (06/11): botão sempre à mão + folha com as tarefas do dia ---------- */
.shortcuts-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: #132b46; color: #f3dfb1; font: 600 14px/1 inherit; box-shadow: 0 10px 26px rgba(19, 43, 70, .28); cursor: pointer; }
.shortcuts-fab:hover { background: #1b3a5d; }
.shortcuts-fab:focus-visible { outline: 3px solid #d5ab55; outline-offset: 2px; }
.shortcuts-backdrop { align-items: flex-end; justify-content: flex-end; }
.shortcuts-sheet { width: min(460px, 100vw); max-height: min(640px, calc(100vh - 32px)); margin: 16px; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 20, 35, .3); }
.shortcuts-sheet > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 18px; background: #fff; border-bottom: 1px solid #eef1f5; color: #132b46; }
.shortcuts-sheet > header h2 { flex: 1; margin: 0; font-size: 16px; }
.shortcuts-groups { padding: 6px 14px 14px; }
.shortcuts-group h3 { margin: 12px 4px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a93a2; }
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shortcut { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 58px; padding: 10px; text-align: left; background: #f7f8fb; border: 1px solid #eceff4; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; }
.shortcut:hover, .shortcut:focus-visible { border-color: #d5ab55; background: #fffaf0; }
.shortcut strong { display: block; font-size: 13px; line-height: 1.25; }
.shortcut small { display: block; font-size: 11.5px; color: #6b7686; margin-top: 2px; }
.shortcut-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #132b46; color: #f3dfb1; }
.shortcut-count { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c0392b; color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.shortcuts-hint { margin: 14px 4px 0; font-size: 12px; }
.shortcut-list { padding: 8px 14px 16px; display: grid; gap: 8px; }
.shortcut-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid #eceff4; border-radius: 12px; }
.shortcut-row > span { flex: 1 1 180px; min-width: 0; }
.shortcut-row strong { display: block; font-size: 13.5px; }
.shortcut-row small { display: block; font-size: 12px; color: #6b7686; }
.shortcut-row .late { color: #c0392b; font-style: normal; }
.shortcut-row a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .shortcuts-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .shortcuts-fab span { display: none; }
  .shortcuts-sheet { width: 100vw; margin: 0; border-radius: 16px 16px 0 0; max-height: 86vh; }
  .shortcuts-grid { grid-template-columns: 1fr; }
}
@media print { .shortcuts-fab { display: none; } }
/* O botão de atalhos fica por cima do fim da página: sobra espaço para a última linha não ficar escondida. */
/* O cristal do assistente fica em cima dele (06/11): a sobra cobre os dois. */
.app-main { padding-bottom: 150px; }
/* Baixa automática de estoque e respostas prontas do WhatsApp (06/11) */
/* Estoque: avisos no topo, selos da linha, movimento automático */
.notice.red { color: #8f2f2b; background: #fdf0ef; border-color: #f1d2cf; }
.stock-alerts .notice ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.stock-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.stock-move-reason { white-space: normal; min-width: 220px; max-width: 360px; }
.stock-move-reason .stock-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.stock-move-reason small, .stock-reverse-reason { display: block; margin-top: 2px; font-size: 10px; }
.materials-editor { display: grid; gap: 8px; }
.materials-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto auto; align-items: center; gap: 6px; }
.materials-row select, .materials-row input { min-width: 0; width: 100%; }
.materials-unit { min-width: 32px; font-size: 11px; color: var(--muted, #65738a); }
.materials-editor > .btn { justify-self: start; }
.materials-editor > small { font-size: 11px; }
.stock-alerts-card { margin-bottom: 20px; }
.stock-alert-list { margin: 0; padding: 0 20px 16px; list-style: none; display: grid; gap: 6px; font-size: 12px; color: #6b4310; }
.stock-alert-list li { display: flex; align-items: center; gap: 8px; }
.stock-alert-list li svg { flex: none; color: #c39234; }
.stock-alert-list li.negative, .stock-alert-list li.expired { color: #8f2f2b; }
.stock-alert-list li.negative svg, .stock-alert-list li.expired svg { color: #b42318; }
.notification-dot.stock { background: #b42318; }
.notification-menu .notification-stock span { font-size: 11px; }
.notification-menu .notification-stock.negative span, .notification-menu .notification-stock.expired span { color: #8f2f2b; }
.notification-menu .notification-stock-more span { font-size: 11px; color: var(--muted, #65738a); }
.appt-popover-stock { color: #6b4310 !important; }
.reception-stock { display: block; width: 100%; font-size: 11px; color: #6b4310; }
/* Botão das respostas prontas: ícone (recepção, retornos, contas a receber) e linha (popover da agenda) */
.quick-reply-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; color: #1c7c4a; cursor: pointer; }
.quick-reply-icon:hover:not(:disabled) { background: #eef8f2; }
.quick-reply-icon:disabled { color: #a8b3c2; cursor: not-allowed; }
.quick-reply-row-button {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border: 1px solid #cfe6d8; border-radius: 10px; background: #f1f9f4; color: #1c5b3a; font: inherit; text-align: left; cursor: pointer;
}
.quick-reply-row-button strong { display: block; font-size: 12px; }
.quick-reply-row-button small { display: block; font-size: 11px; color: #4a7a5e; }
.quick-reply-row-button:hover:not(:disabled) { background: #e5f4ea; }
.quick-reply-row-button:disabled { opacity: .55; cursor: not-allowed; }
/* Retornos para marcar: a linha ganhou o botão do WhatsApp ao lado */
.calendar-other-records .calendar-return-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid #e2e7ef; }
.calendar-other-records .calendar-return-row > button:first-child { flex: 1; min-width: 0; border-top: 0; }
.calendar-other-records .calendar-return-row > .quick-reply-icon { width: 30px; height: 30px; padding: 0; border-top: 1px solid var(--line, #e0e5ed); justify-content: center; }
/* A folha da mensagem */
.quick-reply-modal { width: 560px; }
.quick-reply-body { display: grid; gap: 12px; }
.quick-reply-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-reply-choices button { padding: 7px 11px; border: 1px solid var(--line, #e0e5ed); border-radius: 99px; background: #fff; color: #24405f; font: inherit; font-size: 12px; cursor: pointer; }
.quick-reply-choices button.on { border-color: #1c7c4a; background: #1c7c4a; color: #fff; }
.quick-reply-choices button.more { border-style: dashed; color: var(--muted, #65738a); }
.quick-reply-text { display: grid; gap: 6px; }
.quick-reply-text > span { font-size: 12px; font-weight: 600; color: var(--muted, #65738a); }
.quick-reply-text textarea { width: 100%; min-height: 150px; padding: 10px 12px; border: 1px solid var(--line, #e0e5ed); border-radius: 10px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.quick-reply-missing { margin: 0; font-size: 11px; color: #8a5a12; }
.quick-reply-footer { flex-wrap: wrap; }
a.btn { text-decoration: none; }
/* Configurações → Respostas prontas */
.quick-replies-settings .row { flex-wrap: wrap; gap: 8px; }
.quick-reply-group h4 { margin: 4px 0 0; font-size: 12px; color: #4a6074; text-transform: uppercase; letter-spacing: .05em; }
.quick-reply-group .catalog-list { padding: 0; }
.quick-reply-item p { margin: 4px 0 0; font-size: 12px; color: #4a6074; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quick-reply-contexts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.quick-reply-contexts legend { width: 100%; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #65738a); }
.quick-reply-contexts label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.quick-reply-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-reply-chips button { padding: 5px 10px; border: 1px dashed #b9c6d6; border-radius: 99px; background: #f6f8fb; color: #24405f; font: inherit; font-size: 11px; cursor: pointer; }
.quick-reply-chips button:hover { background: #e9eef6; }
.quick-reply-editor textarea { width: 100%; font: inherit; font-size: 13px; line-height: 1.5; }
.quick-reply-preview { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #eef8f2; border: 1px solid #cfe6d8; }
.quick-reply-preview > span { font-size: 11px; font-weight: 700; color: #1c5b3a; text-transform: uppercase; letter-spacing: .05em; }
.quick-reply-preview p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: #173a2a; overflow-wrap: anywhere; }
.quick-reply-preview small { font-size: 11px; color: #8a5a12; }
.quick-reply-editor .modal-footer { margin-top: 16px; padding-left: 0; padding-right: 0; background: none; flex-wrap: wrap; }
@media (max-width: 600px) {
  .quick-reply-modal { width: 100%; }
  .quick-reply-footer > * { flex: 1 1 auto; justify-content: center; }
  .materials-row { grid-template-columns: minmax(0, 1fr) 70px auto; }
  .materials-row .materials-unit { display: none; }
}
/* Prontuário em abas (E7), cadastro completo (E6) e odontograma (E5), 06/11 */
.clinical-panel { min-width: 0; }
.patient-context .context-detail { min-width: 0; }
.allergy-pill { display: inline-block; max-width: 100%; margin-top: 5px; padding: 2px 9px; border-radius: 99px; background: #fdecea; color: #a3261b; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.clinical-overview { display: grid; gap: 14px; }
.clinical-alerts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.clinical-alert { min-width: 0; padding: 12px 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 10px; background: #fff; }
.clinical-alert h4, .clinical-notes-strip h4, .clinical-card h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #5d6f88; }
.clinical-alert p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; color: #22344f; }
.clinical-alert.empty p { font-size: 12px; color: var(--muted, #65738a); }
.clinical-alert.allergy { border-color: #f1b7b1; background: #fff4f2; }
.clinical-alert.allergy h4, .clinical-alert.allergy p { color: #a3261b; }
.clinical-alert.allergy p { font-weight: 600; }
.clinical-notes-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.clinical-notes-strip p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 12px; color: #354f71; }
.clinical-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clinical-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 10px; background: #fff; }
.clinical-card strong { font-size: 14px; color: #173a60; }
.clinical-card p { margin: 0; font-size: 12px; color: #354f71; }
.clinical-excerpt { white-space: pre-line; overflow-wrap: anywhere; }
.clinical-pending { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.clinical-pending li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 7px 10px; border-left: 3px solid #9aa5b4; border-radius: 6px; background: #f4f6fa; font-size: 12px; color: #22344f; }
.clinical-pending li[data-tone=red] { border-left-color: #b42318; background: #fff4f2; }
.clinical-pending li[data-tone=amber] { border-left-color: #c27c0e; background: #fdf6ea; }
.clinical-pending li[data-tone=blue] { border-left-color: #2f6fb0; background: #eef4fb; }
.clinical-pending .link-button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.clinical-tab-head { flex-wrap: wrap; margin-bottom: 12px; }
.clinical-tab-head h3 { margin: 0; }
.timeline-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.timeline-filter button { padding: 5px 11px; border: 1px solid var(--line, #e0e5ed); border-radius: 99px; background: #fff; font: inherit; font-size: 12px; color: #354f71; cursor: pointer; }
.timeline-filter button.on { border-color: #173a60; background: #173a60; color: #fff; }
.timeline-filter button span { margin-left: 3px; font-size: 11px; opacity: .7; }
.clinical-timeline { margin: 0 0 0 6px; padding: 0; list-style: none; border-left: 2px solid #e0e6ef; }
.clinical-timeline li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: start; gap: 2px 12px; padding: 9px 0 9px 16px; }
.clinical-timeline li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 8px; height: 8px; border: 2px solid #9aa5b4; border-radius: 50%; background: #fff; }
.clinical-timeline li[data-kind=consulta]::before { border-color: #2f6fb0; }
.clinical-timeline li[data-kind=evolucao]::before { border-color: #2d8b82; }
.clinical-timeline li[data-kind=documento]::before { border-color: #8a6e2f; }
.clinical-timeline li[data-kind=exame]::before { border-color: #7a4fb5; }
.clinical-timeline li[data-kind=odonto]::before { border-color: #b0306a; }
.clinical-timeline time { font-size: 12px; color: #354f71; }
.clinical-timeline time small { display: block; font-size: 11px; color: var(--muted, #65738a); }
.clinical-timeline strong { display: block; overflow-wrap: anywhere; font-size: 13px; color: #173a60; }
.clinical-timeline div > small { display: block; font-size: 11px; }
.clinical-timeline-kind { display: block; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #6d7d94; }
@media (max-width: 660px) {
  .clinical-alerts, .clinical-overview-grid { grid-template-columns: 1fr; }
  .clinical-timeline li { grid-template-columns: minmax(0, 1fr) auto; }
  .clinical-timeline time { grid-column: 1 / -1; }
  /* O nome e a alergia ganham a linha inteira ao lado da foto; os botões descem. */
  .patient-context .context-detail { flex: 1 1 calc(100% - 60px); }
}
/* Cadastro do paciente em seções (E6) */
.form-section { min-width: 0; border: 1px solid var(--line, #e0e6ef); border-radius: 10px; background: #fff; }
.form-section > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; font-size: 12px; font-weight: 650; color: #223e66; cursor: pointer; list-style: none; }
.form-section > summary::-webkit-details-marker { display: none; }
.form-section > summary::before { content: "›"; display: inline-block; width: 10px; font-size: 17px; line-height: 1; color: #8a6e2f; transition: transform .15s; }
.form-section[open] > summary::before { transform: rotate(90deg); }
.form-section > summary small { font-size: 11px; font-weight: 400; color: var(--muted, #65738a); }
.form-section-count { margin-left: auto; }
.form-section > .form-grid { padding: 4px 14px 16px; }
.patient-details .wide { grid-column: 1 / -1; }
.patient-details dd { white-space: pre-line; overflow-wrap: anywhere; }
/* Odontograma (E5) */
.odonto { display: grid; gap: 16px; }
.odonto-head { flex-wrap: wrap; padding-bottom: 0; }
.odonto-head h3, .odonto-plan-head h3 { margin: 0; }
.odonto-chart { display: grid; gap: 10px; min-width: 0; padding: 14px 8px; border: 1px solid var(--line, #e0e6ef); border-radius: 12px; background: #fbfcfe; }
.odonto-arch { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.odonto-half { display: grid; grid-template-columns: repeat(var(--teeth), minmax(24px, 46px)); gap: 3px; min-width: 0; }
.odonto-midline { height: 1px; margin: 2px 8%; background: #d9dfe9; }
.odonto-tooth { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.odonto-arch.lower .odonto-tooth { flex-direction: column-reverse; }
.odonto-num { position: relative; padding: 1px 3px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 10px; font-weight: 650; color: #5d6f88; cursor: pointer; }
.odonto-num i { position: absolute; top: 0; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: #c27c0e; }
.odonto-tooth.selected .odonto-num { background: #173a60; color: #fff; }
.odonto-box { display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; outline: 2px solid transparent; outline-offset: 1px; }
.odonto-box svg { display: block; width: 100%; height: 100%; }
.odonto-box path { stroke: #8796ab; stroke-width: 1; cursor: pointer; }
.odonto-box path:hover, .odonto-box path:focus-visible { outline: none; stroke: #173a60; stroke-width: 1.8; filter: brightness(.94); }
.odonto-box path.on { stroke: #173a60; stroke-width: 2.6; }
.odonto-tooth.mark-pending .odonto-box { outline: 2px dashed #c27c0e; }
.odonto-tooth.mark-done .odonto-box { outline: 2px solid #1c7c4a; }
.odonto-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 11px; color: #354f71; }
.odonto-legend li { display: inline-flex; align-items: center; gap: 5px; }
.odonto-legend i { width: 12px; height: 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; }
.odonto-legend i.mark { box-sizing: border-box; background: #fff; }
.odonto-legend i.mark.pending { border: 2px dashed #c27c0e; }
.odonto-legend i.mark.done { border: 2px solid #1c7c4a; }
.odonto-menu { display: grid; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #c9d3e2; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(23, 58, 96, .08); }
.odonto-menu header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.odonto-menu header strong { display: block; font-size: 15px; color: #173a60; }
.odonto-menu header small { font-size: 12px; color: var(--muted, #65738a); }
.odonto-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.odonto-chips-label { width: 100%; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #5d6f88; }
.odonto-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line, #e0e5ed); border-radius: 99px; background: #fff; font: inherit; font-size: 12px; color: #22344f; cursor: pointer; }
.odonto-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--chip); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.odonto-chip.on { border-color: var(--chip); box-shadow: inset 0 0 0 1px var(--chip); font-weight: 650; }
.odonto-chip.clear { color: #b42318; }
.odonto-chip:disabled { cursor: wait; opacity: .6; }
.odonto-menu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.odonto-plan { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line, #e0e6ef); }
.odonto-plan-head { flex-wrap: wrap; align-items: flex-start; padding-bottom: 0; }
.odonto-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.odonto-totals dt { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #6d7d94; }
.odonto-totals dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #173a60; }
.odonto-plan-form { padding: 12px; border: 1px dashed #c9d3e2; border-radius: 10px; background: #fbfcfe; }
.odonto-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.odonto-faces legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 10px; font-weight: 550; color: #738671; }
.odonto-faces label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.odonto-faces:disabled { opacity: .45; }
.odonto-plan-submit { display: flex; justify-content: flex-end; }
.odonto-plan-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line, #e0e6ef); border-radius: 10px; overflow: hidden; }
.odonto-plan-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line, #eef1f5); background: #fff; }
.odonto-plan-list li:first-child { border-top: 0; }
.odonto-plan-list li.on { background: #f3f6fb; }
.odonto-plan-list li[data-status=cancelled] .odonto-plan-what { text-decoration: line-through; opacity: .6; }
.odonto-plan-check input { width: 16px; height: 16px; }
.odonto-plan-what strong { display: block; font-size: 13px; color: #173a60; }
.odonto-plan-what span { display: block; overflow-wrap: anywhere; font-size: 13px; color: #22344f; }
.odonto-plan-what small { display: block; font-size: 11px; color: var(--muted, #65738a); }
.odonto-plan-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.odonto-plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.odonto-plan-bar select { width: auto; max-width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; }
.odonto-history summary { font-size: 12px; font-weight: 650; color: #223e66; cursor: pointer; }
.odonto-history ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; }
.odonto-history small { display: block; color: var(--muted, #65738a); }
/* App do paciente, lado da clínica (06/11): link na ficha, confirmação (E10), formulários (E8), check-ins */
.portal-link-card { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fbfcfd; }
.portal-link-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-link-card p { margin: 0; font-size: 12px; line-height: 1.5; }
.portal-link-url { display: block; padding: 6px 8px; border-radius: 6px; background: #eef2f6; font-size: 11px; overflow-wrap: anywhere; user-select: all; }
.portal-link-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.confirm-request-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; color: #1c7c4a; cursor: pointer; }
.confirm-request-icon:disabled { color: #a8b2bf; cursor: default; }
.appt-portal { display: grid; gap: 6px; padding: 8px 0 2px; border-top: 1px solid var(--line, #eef1f5); font-size: 12px; }
.appt-portal-note { display: flex; align-items: center; gap: 5px; margin: 0; color: #2d6a62; font-weight: 600; }
.appt-portal-note.late { color: #b42318; }
.appt-portal-request { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #fbf1e3; color: #7a4a0c; }
.appt-portal-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.appt-portal-confirm small { color: var(--muted, #65738a); font-size: 11px; }
.calendar-confirm { border-bottom: 1px solid #dce3ec; margin-top: 15px; }
.calendar-confirm > summary { display: flex; align-items: center; gap: 6px; padding: 11px 2px; color: #77869a; font-size: 10px; cursor: pointer; list-style: none; }
.calendar-confirm > summary::-webkit-details-marker { display: none; }
.calendar-confirm > summary > span { flex-shrink: 0; padding: 1px 5px; border-radius: 4px; background: #e9edf3; font-size: 9px; }
.calendar-confirm > summary > svg:last-child { margin-left: auto; }
.calendar-portal-requests > summary > span { background: #fbf1e3; color: #8a5a12; }
.calendar-confirm ul { margin: 0; padding: 5px 10px 12px; list-style: none; }
.calendar-confirm li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e2e7ef; }
.calendar-confirm li > span:first-child { min-width: 0; }
.calendar-confirm strong { display: block; font-size: 11px; font-weight: 500; }
.calendar-confirm small { display: block; margin-top: 3px; color: #8390a3; font-size: 9px; overflow-wrap: anywhere; }
.calendar-confirm-actions { display: flex; gap: 10px; flex: none; }
.calendar-confirm .link-button { font-size: 11px; }
.portal-forms { display: grid; gap: 10px; margin-bottom: 8px; }
.portal-forms h3, .portal-followup h3 { margin: 0; }
.portal-forms-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.portal-forms-send { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.portal-forms-send select { min-height: 34px; max-width: 100%; padding: 0 8px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; }
.portal-forms-hint { margin: 0; font-size: 12px; }
.portal-forms-pending, .portal-docs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-forms-pending li, .portal-docs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line, #eef1f5); }
.portal-forms-pending strong, .portal-docs strong { display: block; font-size: 13px; }
.portal-forms-pending small, .portal-docs small { display: block; color: var(--muted, #65738a); font-size: 11px; }
.portal-form-response { border: 1px solid var(--line, #e0e5ed); border-radius: 10px; background: #fff; }
.portal-form-response > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.portal-form-response > summary::-webkit-details-marker { display: none; }
.portal-form-response > summary small { color: var(--muted, #65738a); font-size: 11px; }
.portal-form-response > summary svg { margin-left: auto; }
.portal-form-response dl { display: grid; gap: 8px; margin: 0; padding: 4px 12px 12px; }
.portal-form-response dt { font-size: 11px; font-weight: 600; color: var(--muted, #65738a); }
.portal-form-response dd { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-followup { display: grid; gap: 26px; }
.portal-followup section { display: grid; gap: 10px; min-width: 0; }
.portal-followup .provider-note { margin: 0; }
.portal-followup .measure-charts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.portal-symptoms { max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
.patient-portal-settings h3 { margin: 0; }
.patient-portal-settings .booking-checks { flex-direction: column; align-items: flex-start; }
/* Documentos e contratos com aceite por link (E9, 06/11) */
.letterhead-signs { display: grid; gap: 34px; }
.letterhead-signs.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px 24px; }
.letterhead-body { overflow-wrap: anywhere; } /* e-mail ou endereço comprido não estica a folha no celular */
.letterhead-footnote { margin: 0; padding-top: 10px; border-top: 1px solid #c9ced6; color: #3b4656; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.notice.red { color: #8f2a1f; background: #fdf1ef; border-color: #f2cfc8; }
.variable-chips { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line, #e0e5ed); border-radius: 9px; background: #fafbfd; font-size: 11px; }
.variable-chips summary { cursor: pointer; font-weight: 600; color: #2e527d; }
.variable-chips > p { margin: 8px 0; color: var(--muted, #65738a); }
/* o rótulo do grupo fica numa coluna à esquerda: os chips que quebram linha continuam alinhados */
.variable-group { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; padding-left: 92px; }
.variable-group > span { position: absolute; left: 0; top: 6px; color: var(--muted, #65738a); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.variable-chip { padding: 4px 9px; border: 1px solid #cfd9e7; border-radius: 99px; background: #fff; color: #23476f; font: inherit; font-size: 11px; cursor: pointer; }
.variable-chip:hover, .variable-chip:focus-visible { border-color: #173a60; background: #eef3fa; }
.template-review { display: block; margin: -4px 0 6px; color: #8d682e; font-size: 10px; font-weight: 600; }
.contracts .section-toolbar .btn { margin-left: auto; }
.contracts-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 20px 0; font-size: 12px; }
.contract-detail-line { display: block; margin-top: 3px; color: var(--muted, #65738a); font-size: 11px; }
.contract-head p .contract-detail-line { display: inline; margin-left: 4px; }
.contracts-legal { display: flex; gap: 10px; align-items: flex-start; margin: 16px 20px 20px; padding: 12px 14px; border: 1px solid #dce5f1; border-radius: 9px; background: #f3f7fc; color: #3e5e84; font-size: 11px; line-height: 1.6; }
.contracts-legal svg { flex: none; margin-top: 2px; }
.contracts-legal p { margin: 0; }
.contract-editor, .contract-view { padding: 18px 20px 4px; min-width: 0; }
.contract-head { display: grid; gap: 4px; margin-bottom: 14px; }
.contract-head h3 { margin: 4px 0 0; font-size: 17px; color: #173a60; overflow-wrap: anywhere; }
.contract-head p { margin: 0; font-size: 12px; color: #3e5e84; }
.contract-head .link-button { justify-self: start; font-size: 12px; }
.contract-editor textarea.contract-body { width: 100%; min-height: 300px; border-radius: 0 0 9px 9px; font-size: 12px; line-height: 1.8; color: #2c486a; }
.contract-editor .document-actions { margin-top: 14px; }
.contract-error { margin: 10px 0; color: #b42318; font-size: 13px; }
.contract-send { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #dce5f1; border-radius: 12px; background: #fafbfd; }
.contract-send h4, .contract-history h4 { margin: 0 0 4px; font-size: 14px; color: #173a60; }
.contract-send > p { margin: 0 0 10px; font-size: 12px; color: #3e5e84; }
.contract-send-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.contract-link { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid #f0dfb9; border-radius: 10px; background: #fff8e8; }
.contract-link small { color: #6b5a33; }
.contract-link code { display: block; padding: 9px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; background: #fff; font-size: 12px; overflow-wrap: anywhere; user-select: all; }
.contract-link > div { display: flex; flex-wrap: wrap; gap: 8px; }
.contract-link a.btn { text-decoration: none; }
.contract-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.contract-cancel { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px; border: 1px solid #f2cfc8; border-radius: 10px; background: #fdf6f5; }
.contract-cancel > div { display: flex; flex-wrap: wrap; gap: 8px; }
.contract-accepted { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #cfe5df; border-radius: 12px; background: #eef7f4; color: #24584f; }
.contract-accepted svg { flex: none; margin-top: 2px; }
.contract-accepted strong { display: block; font-size: 14px; }
.contract-accepted p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.contract-history { margin: 0 0 6px; }
.contract-history ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; color: #3e5e84; }
.contract-history time { color: var(--muted, #65738a); font-variant-numeric: tabular-nums; margin-right: 6px; }
.patient-contracts { margin: 0 20px 4px; padding: 12px 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 10px; }
.patient-contracts h3 { margin: 0 0 8px; font-size: 12px; color: #173a60; }
.patient-contracts ul { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.patient-contracts li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.patient-contracts li small { grid-column: 1 / -1; color: var(--muted, #65738a); font-size: 11px; }
.patient-contracts .link-button { font-size: 11px; }
@media print {
  .print-bare .letterhead-footnote { font-size: 9pt; }
}
@media (max-width: 660px) {
  .contract-editor, .contract-view { padding: 14px 14px 4px; }
  .contracts-legal { margin: 14px; }
  .contracts .section-toolbar .btn { margin-left: 0; width: 100%; justify-content: center; }
  .variable-group { padding-left: 0; }
  .variable-group > span { position: static; width: 100%; }
}

/* IA (06/11): "Gravar consulta" no editor da evolução e o assistente "Pergunte ao RochaOps" (gestao/src/ia.jsx) */
.ia-gravar { display: grid; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px dashed #c9d4e3; border-radius: 10px; background: #f8fafd; font-size: 12px; color: #45536a; }
.ia-gravar.fase-gravando, .ia-gravar.fase-pausado { border-style: solid; border-color: #e7c0bb; background: #fff8f7; }
.ia-gravar-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ia-gravar-linha > small { flex: 1 1 220px; min-width: 0; color: var(--muted, #65738a); font-size: 11px; }
.ia-gravar-autorizacao { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; cursor: pointer; }
.ia-gravar-autorizacao input { width: 16px; min-height: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.ia-gravar-tempo { display: inline-flex; align-items: center; gap: 7px; min-width: 120px; font-weight: 600; font-variant-numeric: tabular-nums; color: #8a2b20; }
.ia-gravar-tempo i { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b6; }
.ia-gravar-tempo.ao-vivo i { background: #c4321f; animation: ia-pulso 1.2s ease-in-out infinite; }
@keyframes ia-pulso { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ia-gravar-tempo.ao-vivo i { animation: none; } }
.ia-gravar .notice { margin: 0; }
.ia-gravar-transcricao summary { cursor: pointer; font-weight: 600; font-size: 12px; }
.ia-gravar-transcricao p { max-height: 180px; margin: 6px 0 0; padding: 8px 10px; overflow: auto; border-radius: 8px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.ia-gravar-erro { display: grid; gap: 6px; color: #b42318; font-size: 12px; }
.ia-gravar-dica { color: var(--muted, #65738a); font-size: 11px; }
.ia-camada { position: fixed; inset: 0; z-index: 110; background: #07182d40; animation: rocha-backdrop .2s; }
.ia-painel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(430px, 100vw); background: #fff; border-left: 1px solid #dbe2ec; box-shadow: -12px 0 40px #07182d22; }
.ia-cabeca { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid #eef1f5; }
.ia-cabeca > div { flex: 1; min-width: 0; }
.ia-cabeca h2 { margin: 0; font-size: 16px; }
.ia-cabeca small { display: block; color: var(--muted, #65738a); font-size: 11px; }
.ia-marca { display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.ia-nova { flex: none; padding: 4px 8px; border-radius: 8px; color: #31577f; font-size: 11px; font-weight: 600; }
.ia-nova:hover { background: #eef3f9; }
.ia-aviso { margin: 0; padding: 8px 18px; background: #fbf6ea; color: #7a5a1c; font-size: 11px; }
.ia-conversa { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.ia-sugestoes { display: grid; gap: 7px; }
.ia-sugestoes small { color: var(--muted, #65738a); }
.ia-sugestoes button { padding: 9px 12px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f8fafd; color: #21344f; font-size: 12px; text-align: left; }
.ia-sugestoes button:hover { border-color: #c1a268; background: #fff; }
.ia-msg { max-width: 92%; min-width: 0; }
.ia-msg p { margin: 0; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.55; }
.ia-msg.user { align-self: flex-end; }
.ia-msg.user p { background: #173a60; color: #fff; border-bottom-right-radius: 4px; }
.ia-msg.assistant { align-self: flex-start; display: grid; gap: 8px; }
.ia-msg.assistant p { background: #f2f5f9; color: #1b2d49; border-bottom-left-radius: 4px; }
.ia-pensando { display: inline-flex; align-items: center; gap: 7px; color: var(--muted, #65738a); font-size: 12px; }
.ia-proposta { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #d9c49a; border-radius: 12px; background: #fffbf2; }
.ia-proposta > small { color: #8a5a12; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ia-proposta strong { font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ia-proposta-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-proposta-fim { font-size: 12px; font-weight: 600; color: #2d6a62; }
.ia-proposta.descartada { opacity: .6; border-color: #dbe2ec; background: #f8fafd; }
.ia-proposta.descartada .ia-proposta-fim { color: #65738a; }
.ia-erro { margin: 0; color: #b42318; font-size: 12px; }
.ia-entrada { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef1f5; }
.ia-entrada textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: vertical; font-size: 13px; }
.ia-enviar { flex: none; width: 42px; min-height: 42px; padding: 0; }
@media (max-width: 660px) {
  .ia-painel { width: 100vw; border-left: 0; }
  .ia-cabeca h2 { font-size: 15px; }
  .ia-cabeca small { display: none; }
  .ia-entrada textarea { font-size: 16px; } /* menos de 16 px faz o iPhone dar zoom ao tocar */
}

/* Ícone do assistente (06/11). Dois desenhos, escolhidos pelo ICONE do gestao/src/ia.jsx:
   - .ia-cristal: octaedro dourado em CSS 3D, flutuando num disco azul-marinho com borda dourada (o disco
     é o que faz ele aparecer em qualquer fundo). Gira de um lado para o outro, acena e inclina; a luz de
     cada face acompanha (regras geradas, mais abaixo). Passar o mouse dá uma volta inteira; pensando, gira.
   - .ia-anel: o núcleo azul-marinho com um anel dourado em volta, que bamboleia e passa por trás dele.
   --t é o tamanho. Sem imagem, sem biblioteca. Quem pediu menos movimento no aparelho vê tudo parado. */
.ia-cristal, .ia-anel { --t: 64px; position: relative; display: block; width: var(--t); height: var(--t); pointer-events: none; }
.ia-disco { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #2a527e 0%, #183a5f 42%, #0c2039 74%, #07142a 100%);
  box-shadow: inset 0 0 0 1.5px #dcb664, inset 0 3px 7px #ffffff1f, inset 0 -9px 16px #00000073, 0 0 0 2px #ffffffb3, 0 10px 24px #07182d5c; }
.ia-disco::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 60% 34% at 50% 14%, #ffffff2e, transparent 70%); }
.ia-cristal-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, #f6d98f66 0, #f1d69326 42%, transparent 70%); animation: ia-halo 2.6s ease-in-out infinite; }
.ia-cristal { perspective: calc(var(--t) * 4); }
.ia-cristal-sobe, .ia-cristal-giro, .ia-cristal-gema { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ia-cristal-giro { left: 0; top: 0; }
.ia-cristal-gema { --a: calc(var(--t) * .56); left: 0; top: 0; }
.ia-cristal-sobe { top: 52%; animation: ia-sobe 2.8s ease-in-out infinite; }
/* Cada face: ouro polido, uma sombra e um claro que mudam conforme ela vira, e um reflexo nítido do
   ambiente que corre por ela; a aresta é um fio claro. */
.ia-face { position: absolute; display: block; left: calc(var(--a) / -2); width: var(--a); height: calc(var(--a) * .866); backface-visibility: hidden; overflow: hidden; isolation: isolate;
  background: linear-gradient(172deg, #fff1c6 0%, #f4ce79 22%, #d8a446 50%, #a87429 78%, #6f4b15 100%); }
.ia-face.cima { top: calc(var(--a) * -.866); transform-origin: 50% 100%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ia-face.baixo { top: 0; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(8deg, #5d3e12 0%, #9c6c25 42%, #d5a34d 82%, #f2cb74 100%); }
.ia-sombra, .ia-claro { position: absolute; inset: 0; opacity: 0; }
.ia-sombra { background: #1d1204; }
.ia-claro { background: linear-gradient(160deg, #fffbe9, #ffe7a8); }
.ia-reflexo { position: absolute; left: 0; right: 0; top: 0; height: 300%; transform: translateY(-33%);
  background: linear-gradient(var(--ang, 155deg), transparent 0 41%, #fff2cc00 42%, #fff6dfd9 47%, #fffef8 49.2%, #ffe9aeb8 51.5%, transparent 57%); }
.ia-face.baixo .ia-reflexo { background: linear-gradient(var(--ang, 25deg), transparent 0 42%, #ffe9b000 43%, #ffefc4b3 48%, #fff8e2 49.5%, #f3cf7f8c 52%, transparent 58%); }
.ia-face:nth-child(2n) { --ang: 205deg; }
.ia-face:nth-child(3n) { --ang: 130deg; }
.ia-face svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ia-face polygon { fill: none; stroke: #fff3d0; stroke-opacity: .62; stroke-width: 3.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* a aurora correndo por dentro das faces */
.ia-face::before { content: ""; position: absolute; inset: -80%; background: conic-gradient(from 0deg, transparent 0 12%, #fff8e49c 20%, transparent 30% 55%, #ffe39a73 64%, transparent 76%); mix-blend-mode: screen; animation: ia-aurora 3.6s linear infinite; }
.ia-face:nth-child(2n)::before { animation-delay: -.9s; }
.ia-face:nth-child(3n)::before { animation-delay: -1.8s; }
.ia-face.baixo::before { animation-direction: reverse; }
.ia-cristal-lampejo { position: absolute; left: 50%; top: calc(52% - var(--t) * .38); width: calc(var(--t) * .6); height: calc(var(--t) * .6); margin: calc(var(--t) * -.3) 0 0 calc(var(--t) * -.3); opacity: 0;
  background: radial-gradient(circle, #fff 0, #ffffffcc 5%, #fff1c855 13%, transparent 34%); animation: ia-lampejo 3.4s ease-in-out infinite; }
.ia-cristal-lampejo::before, .ia-cristal-lampejo::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: linear-gradient(90deg, transparent, #fffbeecc 35%, #fff 50%, #fffbeecc 65%, transparent); }
.ia-cristal-lampejo::after { transform: rotate(90deg) scaleX(.7); }
.ia-estrela { position: absolute; width: calc(var(--t) * .14); height: calc(var(--t) * .14); color: #fff3cc; filter: drop-shadow(0 0 calc(var(--t) * .04) #f1d693); opacity: 0; animation: ia-piscar 2.4s ease-in-out infinite; }
.ia-estrela svg { display: block; width: 100%; height: 100%; }
.ia-estrela.e1 { right: 13%; top: 15%; }
.ia-estrela.e2 { left: 15%; bottom: 20%; width: calc(var(--t) * .1); height: calc(var(--t) * .1); animation-delay: -1.2s; }
.ia-botao:hover .ia-cristal-giro, .ia-botao:focus-visible .ia-cristal-giro { animation: ia-giro .95s cubic-bezier(.3, .7, .2, 1) 1; }
.ia-cristal.pensando .ia-cristal-giro { animation: ia-giro 1.15s linear infinite; }
.ia-cristal.pensando .ia-face::before { animation-duration: 1.2s; }
.ia-cristal.pensando .ia-estrela { animation-duration: 1.1s; }
.ia-cristal.pensando .ia-cristal-halo { animation-duration: 1.1s; }

/* O anel: núcleo azul-marinho com o brilho do assistente e um anel dourado que bamboleia em volta,
   passando por trás dele (o anel e o núcleo dividem o mesmo espaço 3D). */
.ia-anel { perspective: calc(var(--t) * 5); }
.ia-anel-cena { position: absolute; inset: 0; transform-style: preserve-3d; }
.ia-anel-nucleo { position: absolute; inset: 15%; display: grid; place-items: center; border-radius: 50%; color: #f8e6b8;
  background: radial-gradient(circle at 36% 28%, #3d6b9c 0%, #1a3a5f 40%, #0b1d33 78%, #050f1c 100%);
  box-shadow: inset 0 0 0 1.5px #dcb664, inset calc(var(--t) * -.05) calc(var(--t) * -.07) calc(var(--t) * .14) #000a, 0 0 0 2px #ffffffb3, 0 calc(var(--t) * .14) calc(var(--t) * .32) #07182d5c; }
.ia-anel-nucleo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 22%, #ffffffa6 0, #ffffff1a 17%, transparent 34%); }
.ia-anel-nucleo svg { width: 46%; height: 46%; animation: ia-respirar 2.6s ease-in-out infinite; }
.ia-anel-orbita { position: absolute; inset: -6%; transform-style: preserve-3d; animation: ia-bambolear 4.4s ease-in-out infinite; }
.ia-anel-aro { position: absolute; inset: 0; border-radius: 50%; animation: ia-aro 2.4s linear infinite;
  background: conic-gradient(from 0deg, #8a5c1c, #f2d38e 10%, #fffaf0 14%, #ecc06a 19%, #9a6a24 36%, #c99539 56%, #fbe6ad 72%, #a8762c 88%, #8a5c1c);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--t) * .1), #000 calc(100% - var(--t) * .1 + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--t) * .1), #000 calc(100% - var(--t) * .1 + 1px)); }
.ia-botao:hover .ia-anel-aro { animation-duration: .7s; }
.ia-anel.pensando .ia-anel-aro { animation-duration: .6s; }
.ia-anel.pensando .ia-anel-orbita { animation-duration: 1.4s; }

@keyframes ia-halo { 50% { transform: scale(1.14); opacity: .6; } }
@keyframes ia-sobe { 50% { transform: translateY(calc(var(--t) * -.07)); } }
@keyframes ia-giro { from { transform: rotateY(0); } to { transform: rotateY(-360deg); } }
@keyframes ia-aurora { to { transform: rotate(360deg); } }
@keyframes ia-lampejo { 0%, 64%, 100% { opacity: 0; transform: rotate(18deg) scale(.35); } 74% { opacity: 1; transform: rotate(34deg) scale(1); } 84% { opacity: 0; transform: rotate(48deg) scale(.5); } }
@keyframes ia-piscar { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 45% { transform: scale(1) rotate(45deg); opacity: 1; } 70% { transform: scale(.3) rotate(80deg); opacity: 0; } }
@keyframes ia-respirar { 50% { transform: scale(.86); opacity: .85; } }
@keyframes ia-bambolear { 0%, 100% { transform: rotateZ(-24deg) rotateX(70deg); } 25% { transform: rotateZ(6deg) rotateX(80deg); } 50% { transform: rotateZ(26deg) rotateX(64deg); } 75% { transform: rotateZ(-2deg) rotateX(54deg); } }
@keyframes ia-aro { to { transform: rotateZ(360deg); } }
/* cristal-gerado: início. Não edite à mão: rode `python3 ferramentas/gerar-cristal.py` (balanço do cristal
   e a luz de cada face; ver gestao/README.md, "Ícone do assistente"). */
.ia-cristal-gema { animation: ia-balanco 4.2s linear infinite; }
@keyframes ia-balanco { 0% { transform: rotateZ(7.00deg) rotateX(-18.95deg) rotateY(-28.00deg); } 3.125% { transform: rotateZ(6.87deg) rotateX(-20.86deg) rotateY(-19.42deg); } 6.25% { transform: rotateZ(6.47deg) rotateX(-21.88deg) rotateY(-11.16deg); } 9.375% { transform: rotateZ(5.82deg) rotateX(-21.85deg) rotateY(-3.55deg); } 12.5% { transform: rotateZ(4.95deg) rotateX(-20.78deg) rotateY(3.11deg); } 15.625% { transform: rotateZ(3.89deg) rotateX(-18.83deg) rotateY(8.58deg); } 18.75% { transform: rotateZ(2.68deg) rotateX(-16.29deg) rotateY(12.65deg); } 21.875% { transform: rotateZ(1.37deg) rotateX(-13.56deg) rotateY(15.15deg); } 25% { transform: rotateZ(0.00deg) rotateX(-11.05deg) rotateY(16.00deg); } 28.125% { transform: rotateZ(-1.37deg) rotateX(-9.14deg) rotateY(15.15deg); } 31.25% { transform: rotateZ(-2.68deg) rotateX(-8.12deg) rotateY(12.65deg); } 34.375% { transform: rotateZ(-3.89deg) rotateX(-8.15deg) rotateY(8.58deg); } 37.5% { transform: rotateZ(-4.95deg) rotateX(-9.22deg) rotateY(3.11deg); } 40.625% { transform: rotateZ(-5.82deg) rotateX(-11.17deg) rotateY(-3.55deg); } 43.75% { transform: rotateZ(-6.47deg) rotateX(-13.71deg) rotateY(-11.16deg); } 46.875% { transform: rotateZ(-6.87deg) rotateX(-16.44deg) rotateY(-19.42deg); } 50% { transform: rotateZ(-7.00deg) rotateX(-18.95deg) rotateY(-28.00deg); } 53.125% { transform: rotateZ(-6.87deg) rotateX(-20.86deg) rotateY(-36.58deg); } 56.25% { transform: rotateZ(-6.47deg) rotateX(-21.88deg) rotateY(-44.84deg); } 59.375% { transform: rotateZ(-5.82deg) rotateX(-21.85deg) rotateY(-52.45deg); } 62.5% { transform: rotateZ(-4.95deg) rotateX(-20.78deg) rotateY(-59.11deg); } 65.625% { transform: rotateZ(-3.89deg) rotateX(-18.83deg) rotateY(-64.58deg); } 68.75% { transform: rotateZ(-2.68deg) rotateX(-16.29deg) rotateY(-68.65deg); } 71.875% { transform: rotateZ(-1.37deg) rotateX(-13.56deg) rotateY(-71.15deg); } 75% { transform: rotateZ(-0.00deg) rotateX(-11.05deg) rotateY(-72.00deg); } 78.125% { transform: rotateZ(1.37deg) rotateX(-9.14deg) rotateY(-71.15deg); } 81.25% { transform: rotateZ(2.68deg) rotateX(-8.12deg) rotateY(-68.65deg); } 84.375% { transform: rotateZ(3.89deg) rotateX(-8.15deg) rotateY(-64.58deg); } 87.5% { transform: rotateZ(4.95deg) rotateX(-9.22deg) rotateY(-59.11deg); } 90.625% { transform: rotateZ(5.82deg) rotateX(-11.17deg) rotateY(-52.45deg); } 93.75% { transform: rotateZ(6.47deg) rotateX(-13.71deg) rotateY(-44.84deg); } 96.875% { transform: rotateZ(6.87deg) rotateX(-16.44deg) rotateY(-36.58deg); } 100% { transform: rotateZ(7.00deg) rotateX(-18.95deg) rotateY(-28.00deg); } }
.ia-cristal .f1 { transform: rotateY(0deg) translateZ(calc(var(--a) / 2)) rotateX(35.26deg); }
.ia-cristal .f1 .ia-sombra { animation: ia-sombra-f1 4.2s linear infinite; } .ia-cristal .f1 .ia-claro { animation: ia-claro-f1 4.2s linear infinite; } .ia-cristal .f1 .ia-reflexo { animation: ia-reflexo-f1 4.2s linear infinite; }
@keyframes ia-sombra-f1 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.004; } 21.875% { opacity: 0.012; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-claro-f1 { 0% { opacity: 0.600; } 3.125% { opacity: 0.600; } 6.25% { opacity: 0.454; } 9.375% { opacity: 0.254; } 12.5% { opacity: 0.114; } 15.625% { opacity: 0.033; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.001; } 28.125% { opacity: 0.037; } 31.25% { opacity: 0.101; } 34.375% { opacity: 0.207; } 37.5% { opacity: 0.367; } 40.625% { opacity: 0.559; } 43.75% { opacity: 0.600; } 46.875% { opacity: 0.600; } 50% { opacity: 0.567; } 53.125% { opacity: 0.404; } 56.25% { opacity: 0.282; } 59.375% { opacity: 0.211; } 62.5% { opacity: 0.178; } 65.625% { opacity: 0.164; } 68.75% { opacity: 0.160; } 71.875% { opacity: 0.160; } 75% { opacity: 0.162; } 78.125% { opacity: 0.169; } 81.25% { opacity: 0.181; } 84.375% { opacity: 0.201; } 87.5% { opacity: 0.233; } 90.625% { opacity: 0.303; } 93.75% { opacity: 0.450; } 96.875% { opacity: 0.600; } 100% { opacity: 0.600; } }
@keyframes ia-reflexo-f1 { 0% { transform: translateY(-45.21%); } 3.125% { transform: translateY(-41.58%); } 6.25% { transform: translateY(-37.85%); } 9.375% { transform: translateY(-34.26%); } 12.5% { transform: translateY(-31.05%); } 15.625% { transform: translateY(-28.45%); } 18.75% { transform: translateY(-26.61%); } 21.875% { transform: translateY(-25.62%); } 25% { transform: translateY(-25.53%); } 28.125% { transform: translateY(-26.30%); } 31.25% { transform: translateY(-27.88%); } 34.375% { transform: translateY(-30.19%); } 37.5% { transform: translateY(-33.12%); } 40.625% { transform: translateY(-36.52%); } 43.75% { transform: translateY(-40.23%); } 46.875% { transform: translateY(-44.07%); } 50% { transform: translateY(-47.84%); } 53.125% { transform: translateY(-51.35%); } 56.25% { transform: translateY(-54.41%); } 59.375% { transform: translateY(-56.89%); } 62.5% { transform: translateY(-58.70%); } 65.625% { transform: translateY(-59.86%); } 68.75% { transform: translateY(-60.43%); } 71.875% { transform: translateY(-60.53%); } 75% { transform: translateY(-60.25%); } 78.125% { transform: translateY(-59.68%); } 81.25% { transform: translateY(-58.81%); } 84.375% { transform: translateY(-57.61%); } 87.5% { transform: translateY(-56.03%); } 90.625% { transform: translateY(-54.01%); } 93.75% { transform: translateY(-51.51%); } 96.875% { transform: translateY(-48.56%); } 100% { transform: translateY(-45.21%); } }
.ia-cristal .f2 { transform: rotateY(90deg) translateZ(calc(var(--a) / 2)) rotateX(35.26deg); }
.ia-cristal .f2 .ia-sombra { animation: ia-sombra-f2 4.2s linear infinite; } .ia-cristal .f2 .ia-claro { animation: ia-claro-f2 4.2s linear infinite; } .ia-cristal .f2 .ia-reflexo { animation: ia-reflexo-f2 4.2s linear infinite; }
@keyframes ia-sombra-f2 { 0% { opacity: 0.422; } 3.125% { opacity: 0.467; } 6.25% { opacity: 0.499; } 9.375% { opacity: 0.519; } 12.5% { opacity: 0.531; } 15.625% { opacity: 0.538; } 18.75% { opacity: 0.540; } 21.875% { opacity: 0.540; } 25% { opacity: 0.540; } 28.125% { opacity: 0.540; } 31.25% { opacity: 0.524; } 34.375% { opacity: 0.496; } 37.5% { opacity: 0.458; } 40.625% { opacity: 0.415; } 43.75% { opacity: 0.371; } 46.875% { opacity: 0.331; } 50% { opacity: 0.295; } 53.125% { opacity: 0.264; } 56.25% { opacity: 0.234; } 59.375% { opacity: 0.201; } 62.5% { opacity: 0.162; } 65.625% { opacity: 0.118; } 68.75% { opacity: 0.072; } 71.875% { opacity: 0.038; } 75% { opacity: 0.025; } 78.125% { opacity: 0.038; } 81.25% { opacity: 0.071; } 84.375% { opacity: 0.117; } 87.5% { opacity: 0.171; } 90.625% { opacity: 0.233; } 93.75% { opacity: 0.300; } 96.875% { opacity: 0.365; } 100% { opacity: 0.422; } }
@keyframes ia-claro-f2 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f2 { 0% { transform: translateY(-6.75%); } 3.125% { transform: translateY(-4.99%); } 6.25% { transform: translateY(-3.88%); } 9.375% { transform: translateY(-3.41%); } 12.5% { transform: translateY(-3.51%); } 15.625% { transform: translateY(-4.03%); } 18.75% { transform: translateY(-4.77%); } 21.875% { transform: translateY(-5.52%); } 25% { transform: translateY(-6.12%); } 28.125% { transform: translateY(-6.52%); } 31.25% { transform: translateY(-6.71%); } 34.375% { transform: translateY(-6.79%); } 37.5% { transform: translateY(-6.90%); } 40.625% { transform: translateY(-7.18%); } 43.75% { transform: translateY(-7.78%); } 46.875% { transform: translateY(-8.81%); } 50% { transform: translateY(-10.31%); } 53.125% { transform: translateY(-12.29%); } 56.25% { transform: translateY(-14.64%); } 59.375% { transform: translateY(-17.21%); } 62.5% { transform: translateY(-19.73%); } 65.625% { transform: translateY(-21.94%); } 68.75% { transform: translateY(-23.59%); } 71.875% { transform: translateY(-24.51%); } 75% { transform: translateY(-24.59%); } 78.125% { transform: translateY(-23.82%); } 81.25% { transform: translateY(-22.29%); } 84.375% { transform: translateY(-20.12%); } 87.5% { transform: translateY(-17.49%); } 90.625% { transform: translateY(-14.62%); } 93.75% { transform: translateY(-11.73%); } 96.875% { transform: translateY(-9.04%); } 100% { transform: translateY(-6.75%); } }
.ia-cristal .f3 { transform: rotateY(180deg) translateZ(calc(var(--a) / 2)) rotateX(35.26deg); }
.ia-cristal .f3 .ia-sombra { animation: ia-sombra-f3 4.2s linear infinite; } .ia-cristal .f3 .ia-claro { animation: ia-claro-f3 4.2s linear infinite; } .ia-cristal .f3 .ia-reflexo { animation: ia-reflexo-f3 4.2s linear infinite; }
@keyframes ia-sombra-f3 { 0% { opacity: 0.531; } 3.125% { opacity: 0.476; } 6.25% { opacity: 0.422; } 9.375% { opacity: 0.377; } 12.5% { opacity: 0.345; } 15.625% { opacity: 0.329; } 18.75% { opacity: 0.326; } 21.875% { opacity: 0.336; } 25% { opacity: 0.355; } 28.125% { opacity: 0.378; } 31.25% { opacity: 0.400; } 34.375% { opacity: 0.419; } 37.5% { opacity: 0.430; } 40.625% { opacity: 0.433; } 43.75% { opacity: 0.429; } 46.875% { opacity: 0.421; } 50% { opacity: 0.416; } 53.125% { opacity: 0.416; } 56.25% { opacity: 0.423; } 59.375% { opacity: 0.438; } 62.5% { opacity: 0.457; } 65.625% { opacity: 0.478; } 68.75% { opacity: 0.501; } 71.875% { opacity: 0.526; } 75% { opacity: 0.540; } 78.125% { opacity: 0.540; } 81.25% { opacity: 0.540; } 84.375% { opacity: 0.540; } 87.5% { opacity: 0.540; } 90.625% { opacity: 0.540; } 93.75% { opacity: 0.540; } 96.875% { opacity: 0.540; } 100% { opacity: 0.531; } }
@keyframes ia-claro-f3 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f3 { 0% { transform: translateY(-16.85%); } 3.125% { transform: translateY(-20.62%); } 6.25% { transform: translateY(-24.63%); } 9.375% { transform: translateY(-28.64%); } 12.5% { transform: translateY(-32.38%); } 15.625% { transform: translateY(-35.65%); } 18.75% { transform: translateY(-38.27%); } 21.875% { transform: translateY(-40.11%); } 25% { transform: translateY(-41.14%); } 28.125% { transform: translateY(-41.31%); } 31.25% { transform: translateY(-40.63%); } 34.375% { transform: translateY(-39.16%); } 37.5% { transform: translateY(-36.96%); } 40.625% { transform: translateY(-34.13%); } 43.75% { transform: translateY(-30.82%); } 46.875% { transform: translateY(-27.19%); } 50% { transform: translateY(-23.44%); } 53.125% { transform: translateY(-19.79%); } 56.25% { transform: translateY(-16.44%); } 59.375% { transform: translateY(-13.54%); } 62.5% { transform: translateY(-11.19%); } 65.625% { transform: translateY(-9.38%); } 68.75% { transform: translateY(-8.03%); } 71.875% { transform: translateY(-7.07%); } 75% { transform: translateY(-6.41%); } 78.125% { transform: translateY(-6.05%); } 81.25% { transform: translateY(-6.01%); } 84.375% { transform: translateY(-6.37%); } 87.5% { transform: translateY(-7.23%); } 90.625% { transform: translateY(-8.68%); } 93.75% { transform: translateY(-10.78%); } 96.875% { transform: translateY(-13.52%); } 100% { transform: translateY(-16.85%); } }
.ia-cristal .f4 { transform: rotateY(270deg) translateZ(calc(var(--a) / 2)) rotateX(35.26deg); }
.ia-cristal .f4 .ia-sombra { animation: ia-sombra-f4 4.2s linear infinite; } .ia-cristal .f4 .ia-claro { animation: ia-claro-f4 4.2s linear infinite; } .ia-cristal .f4 .ia-reflexo { animation: ia-reflexo-f4 4.2s linear infinite; }
@keyframes ia-sombra-f4 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.007; } 50% { opacity: 0.031; } 53.125% { opacity: 0.056; } 56.25% { opacity: 0.084; } 59.375% { opacity: 0.120; } 62.5% { opacity: 0.163; } 65.625% { opacity: 0.211; } 68.75% { opacity: 0.262; } 71.875% { opacity: 0.308; } 75% { opacity: 0.343; } 78.125% { opacity: 0.361; } 81.25% { opacity: 0.358; } 84.375% { opacity: 0.332; } 87.5% { opacity: 0.284; } 90.625% { opacity: 0.219; } 93.75% { opacity: 0.143; } 96.875% { opacity: 0.067; } 100% { opacity: 0.000; } }
@keyframes ia-claro-f4 { 0% { opacity: 0.001; } 3.125% { opacity: 0.062; } 6.25% { opacity: 0.106; } 9.375% { opacity: 0.133; } 12.5% { opacity: 0.149; } 15.625% { opacity: 0.158; } 18.75% { opacity: 0.161; } 21.875% { opacity: 0.161; } 25% { opacity: 0.156; } 28.125% { opacity: 0.144; } 31.25% { opacity: 0.128; } 34.375% { opacity: 0.106; } 37.5% { opacity: 0.078; } 40.625% { opacity: 0.049; } 43.75% { opacity: 0.020; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.001; } }
@keyframes ia-reflexo-f4 { 0% { transform: translateY(-55.31%); } 3.125% { transform: translateY(-57.20%); } 6.25% { transform: translateY(-58.60%); } 9.375% { transform: translateY(-59.49%); } 12.5% { transform: translateY(-59.92%); } 15.625% { transform: translateY(-60.06%); } 18.75% { transform: translateY(-60.10%); } 21.875% { transform: translateY(-60.22%); } 25% { transform: translateY(-60.54%); } 28.125% { transform: translateY(-61.09%); } 31.25% { transform: translateY(-61.81%); } 34.375% { transform: translateY(-62.56%); } 37.5% { transform: translateY(-63.17%); } 40.625% { transform: translateY(-63.46%); } 43.75% { transform: translateY(-63.26%); } 46.875% { transform: translateY(-62.45%); } 50% { transform: translateY(-60.97%); } 53.125% { transform: translateY(-58.85%); } 56.25% { transform: translateY(-56.21%); } 59.375% { transform: translateY(-53.23%); } 62.5% { transform: translateY(-50.17%); } 65.625% { transform: translateY(-47.30%); } 68.75% { transform: translateY(-44.87%); } 71.875% { transform: translateY(-43.09%); } 75% { transform: translateY(-42.08%); } 78.125% { transform: translateY(-41.90%); } 81.25% { transform: translateY(-42.53%); } 84.375% { transform: translateY(-43.86%); } 87.5% { transform: translateY(-45.77%); } 90.625% { transform: translateY(-48.06%); } 93.75% { transform: translateY(-50.55%); } 96.875% { transform: translateY(-53.03%); } 100% { transform: translateY(-55.31%); } }
.ia-cristal .f5 { transform: rotateY(0deg) translateZ(calc(var(--a) / 2)) rotateX(-35.26deg); }
.ia-cristal .f5 .ia-sombra { animation: ia-sombra-f5 4.2s linear infinite; } .ia-cristal .f5 .ia-claro { animation: ia-claro-f5 4.2s linear infinite; } .ia-cristal .f5 .ia-reflexo { animation: ia-reflexo-f5 4.2s linear infinite; }
@keyframes ia-sombra-f5 { 0% { opacity: 0.540; } 3.125% { opacity: 0.540; } 6.25% { opacity: 0.540; } 9.375% { opacity: 0.540; } 12.5% { opacity: 0.540; } 15.625% { opacity: 0.540; } 18.75% { opacity: 0.540; } 21.875% { opacity: 0.540; } 25% { opacity: 0.540; } 28.125% { opacity: 0.540; } 31.25% { opacity: 0.540; } 34.375% { opacity: 0.540; } 37.5% { opacity: 0.540; } 40.625% { opacity: 0.540; } 43.75% { opacity: 0.540; } 46.875% { opacity: 0.540; } 50% { opacity: 0.540; } 53.125% { opacity: 0.540; } 56.25% { opacity: 0.540; } 59.375% { opacity: 0.540; } 62.5% { opacity: 0.540; } 65.625% { opacity: 0.540; } 68.75% { opacity: 0.540; } 71.875% { opacity: 0.540; } 75% { opacity: 0.527; } 78.125% { opacity: 0.500; } 81.25% { opacity: 0.473; } 84.375% { opacity: 0.452; } 87.5% { opacity: 0.441; } 90.625% { opacity: 0.444; } 93.75% { opacity: 0.464; } 96.875% { opacity: 0.500; } 100% { opacity: 0.540; } }
@keyframes ia-claro-f5 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f5 { 0% { transform: translateY(-49.82%); } 3.125% { transform: translateY(-46.05%); } 6.25% { transform: translateY(-42.04%); } 9.375% { transform: translateY(-38.03%); } 12.5% { transform: translateY(-34.28%); } 15.625% { transform: translateY(-31.02%); } 18.75% { transform: translateY(-28.40%); } 21.875% { transform: translateY(-26.55%); } 25% { transform: translateY(-25.53%); } 28.125% { transform: translateY(-25.36%); } 31.25% { transform: translateY(-26.03%); } 34.375% { transform: translateY(-27.51%); } 37.5% { transform: translateY(-29.71%); } 40.625% { transform: translateY(-32.53%); } 43.75% { transform: translateY(-35.85%); } 46.875% { transform: translateY(-39.48%); } 50% { transform: translateY(-43.23%); } 53.125% { transform: translateY(-46.88%); } 56.25% { transform: translateY(-50.23%); } 59.375% { transform: translateY(-53.12%); } 62.5% { transform: translateY(-55.47%); } 65.625% { transform: translateY(-57.29%); } 68.75% { transform: translateY(-58.63%); } 71.875% { transform: translateY(-59.60%); } 75% { transform: translateY(-60.25%); } 78.125% { transform: translateY(-60.62%); } 81.25% { transform: translateY(-60.66%); } 84.375% { transform: translateY(-60.30%); } 87.5% { transform: translateY(-59.44%); } 90.625% { transform: translateY(-57.99%); } 93.75% { transform: translateY(-55.89%); } 96.875% { transform: translateY(-53.15%); } 100% { transform: translateY(-49.82%); } }
.ia-cristal .f6 { transform: rotateY(90deg) translateZ(calc(var(--a) / 2)) rotateX(-35.26deg); }
.ia-cristal .f6 .ia-sombra { animation: ia-sombra-f6 4.2s linear infinite; } .ia-cristal .f6 .ia-claro { animation: ia-claro-f6 4.2s linear infinite; } .ia-cristal .f6 .ia-reflexo { animation: ia-reflexo-f6 4.2s linear infinite; }
@keyframes ia-sombra-f6 { 0% { opacity: 0.540; } 3.125% { opacity: 0.540; } 6.25% { opacity: 0.540; } 9.375% { opacity: 0.540; } 12.5% { opacity: 0.540; } 15.625% { opacity: 0.540; } 18.75% { opacity: 0.540; } 21.875% { opacity: 0.540; } 25% { opacity: 0.540; } 28.125% { opacity: 0.540; } 31.25% { opacity: 0.540; } 34.375% { opacity: 0.540; } 37.5% { opacity: 0.540; } 40.625% { opacity: 0.540; } 43.75% { opacity: 0.540; } 46.875% { opacity: 0.540; } 50% { opacity: 0.540; } 53.125% { opacity: 0.540; } 56.25% { opacity: 0.540; } 59.375% { opacity: 0.540; } 62.5% { opacity: 0.540; } 65.625% { opacity: 0.540; } 68.75% { opacity: 0.540; } 71.875% { opacity: 0.540; } 75% { opacity: 0.540; } 78.125% { opacity: 0.540; } 81.25% { opacity: 0.540; } 84.375% { opacity: 0.540; } 87.5% { opacity: 0.540; } 90.625% { opacity: 0.540; } 93.75% { opacity: 0.540; } 96.875% { opacity: 0.540; } 100% { opacity: 0.540; } }
@keyframes ia-claro-f6 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f6 { 0% { transform: translateY(-11.36%); } 3.125% { transform: translateY(-9.47%); } 6.25% { transform: translateY(-8.06%); } 9.375% { transform: translateY(-7.18%); } 12.5% { transform: translateY(-6.74%); } 15.625% { transform: translateY(-6.60%); } 18.75% { transform: translateY(-6.56%); } 21.875% { transform: translateY(-6.44%); } 25% { transform: translateY(-6.12%); } 28.125% { transform: translateY(-5.58%); } 31.25% { transform: translateY(-4.86%); } 34.375% { transform: translateY(-4.11%); } 37.5% { transform: translateY(-3.49%); } 40.625% { transform: translateY(-3.20%); } 43.75% { transform: translateY(-3.40%); } 46.875% { transform: translateY(-4.22%); } 50% { transform: translateY(-5.69%); } 53.125% { transform: translateY(-7.81%); } 56.25% { transform: translateY(-10.46%); } 59.375% { transform: translateY(-13.44%); } 62.5% { transform: translateY(-16.50%); } 65.625% { transform: translateY(-19.37%); } 68.75% { transform: translateY(-21.80%); } 71.875% { transform: translateY(-23.58%); } 75% { transform: translateY(-24.59%); } 78.125% { transform: translateY(-24.77%); } 81.25% { transform: translateY(-24.14%); } 84.375% { transform: translateY(-22.80%); } 87.5% { transform: translateY(-20.90%); } 90.625% { transform: translateY(-18.60%); } 93.75% { transform: translateY(-16.11%); } 96.875% { transform: translateY(-13.63%); } 100% { transform: translateY(-11.36%); } }
.ia-cristal .f7 { transform: rotateY(180deg) translateZ(calc(var(--a) / 2)) rotateX(-35.26deg); }
.ia-cristal .f7 .ia-sombra { animation: ia-sombra-f7 4.2s linear infinite; } .ia-cristal .f7 .ia-claro { animation: ia-claro-f7 4.2s linear infinite; } .ia-cristal .f7 .ia-reflexo { animation: ia-reflexo-f7 4.2s linear infinite; }
@keyframes ia-sombra-f7 { 0% { opacity: 0.540; } 3.125% { opacity: 0.540; } 6.25% { opacity: 0.540; } 9.375% { opacity: 0.540; } 12.5% { opacity: 0.540; } 15.625% { opacity: 0.540; } 18.75% { opacity: 0.540; } 21.875% { opacity: 0.540; } 25% { opacity: 0.540; } 28.125% { opacity: 0.540; } 31.25% { opacity: 0.540; } 34.375% { opacity: 0.540; } 37.5% { opacity: 0.540; } 40.625% { opacity: 0.540; } 43.75% { opacity: 0.540; } 46.875% { opacity: 0.540; } 50% { opacity: 0.540; } 53.125% { opacity: 0.540; } 56.25% { opacity: 0.540; } 59.375% { opacity: 0.540; } 62.5% { opacity: 0.540; } 65.625% { opacity: 0.540; } 68.75% { opacity: 0.540; } 71.875% { opacity: 0.540; } 75% { opacity: 0.540; } 78.125% { opacity: 0.540; } 81.25% { opacity: 0.540; } 84.375% { opacity: 0.540; } 87.5% { opacity: 0.540; } 90.625% { opacity: 0.540; } 93.75% { opacity: 0.540; } 96.875% { opacity: 0.540; } 100% { opacity: 0.540; } }
@keyframes ia-claro-f7 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f7 { 0% { transform: translateY(-21.46%); } 3.125% { transform: translateY(-25.09%); } 6.25% { transform: translateY(-28.82%); } 9.375% { transform: translateY(-32.40%); } 12.5% { transform: translateY(-35.61%); } 15.625% { transform: translateY(-38.22%); } 18.75% { transform: translateY(-40.06%); } 21.875% { transform: translateY(-41.04%); } 25% { transform: translateY(-41.14%); } 28.125% { transform: translateY(-40.36%); } 31.25% { transform: translateY(-38.78%); } 34.375% { transform: translateY(-36.47%); } 37.5% { transform: translateY(-33.55%); } 40.625% { transform: translateY(-30.15%); } 43.75% { transform: translateY(-26.44%); } 46.875% { transform: translateY(-22.60%); } 50% { transform: translateY(-18.83%); } 53.125% { transform: translateY(-15.32%); } 56.25% { transform: translateY(-12.25%); } 59.375% { transform: translateY(-9.78%); } 62.5% { transform: translateY(-7.96%); } 65.625% { transform: translateY(-6.81%); } 68.75% { transform: translateY(-6.24%); } 71.875% { transform: translateY(-6.14%); } 75% { transform: translateY(-6.41%); } 78.125% { transform: translateY(-6.99%); } 81.25% { transform: translateY(-7.86%); } 84.375% { transform: translateY(-9.05%); } 87.5% { transform: translateY(-10.64%); } 90.625% { transform: translateY(-12.66%); } 93.75% { transform: translateY(-15.16%); } 96.875% { transform: translateY(-18.11%); } 100% { transform: translateY(-21.46%); } }
.ia-cristal .f8 { transform: rotateY(270deg) translateZ(calc(var(--a) / 2)) rotateX(-35.26deg); }
.ia-cristal .f8 .ia-sombra { animation: ia-sombra-f8 4.2s linear infinite; } .ia-cristal .f8 .ia-claro { animation: ia-claro-f8 4.2s linear infinite; } .ia-cristal .f8 .ia-reflexo { animation: ia-reflexo-f8 4.2s linear infinite; }
@keyframes ia-sombra-f8 { 0% { opacity: 0.540; } 3.125% { opacity: 0.540; } 6.25% { opacity: 0.540; } 9.375% { opacity: 0.540; } 12.5% { opacity: 0.540; } 15.625% { opacity: 0.540; } 18.75% { opacity: 0.536; } 21.875% { opacity: 0.532; } 25% { opacity: 0.532; } 28.125% { opacity: 0.539; } 31.25% { opacity: 0.540; } 34.375% { opacity: 0.540; } 37.5% { opacity: 0.540; } 40.625% { opacity: 0.540; } 43.75% { opacity: 0.540; } 46.875% { opacity: 0.540; } 50% { opacity: 0.540; } 53.125% { opacity: 0.540; } 56.25% { opacity: 0.540; } 59.375% { opacity: 0.540; } 62.5% { opacity: 0.540; } 65.625% { opacity: 0.540; } 68.75% { opacity: 0.540; } 71.875% { opacity: 0.540; } 75% { opacity: 0.540; } 78.125% { opacity: 0.540; } 81.25% { opacity: 0.540; } 84.375% { opacity: 0.540; } 87.5% { opacity: 0.540; } 90.625% { opacity: 0.540; } 93.75% { opacity: 0.540; } 96.875% { opacity: 0.540; } 100% { opacity: 0.540; } }
@keyframes ia-claro-f8 { 0% { opacity: 0.000; } 3.125% { opacity: 0.000; } 6.25% { opacity: 0.000; } 9.375% { opacity: 0.000; } 12.5% { opacity: 0.000; } 15.625% { opacity: 0.000; } 18.75% { opacity: 0.000; } 21.875% { opacity: 0.000; } 25% { opacity: 0.000; } 28.125% { opacity: 0.000; } 31.25% { opacity: 0.000; } 34.375% { opacity: 0.000; } 37.5% { opacity: 0.000; } 40.625% { opacity: 0.000; } 43.75% { opacity: 0.000; } 46.875% { opacity: 0.000; } 50% { opacity: 0.000; } 53.125% { opacity: 0.000; } 56.25% { opacity: 0.000; } 59.375% { opacity: 0.000; } 62.5% { opacity: 0.000; } 65.625% { opacity: 0.000; } 68.75% { opacity: 0.000; } 71.875% { opacity: 0.000; } 75% { opacity: 0.000; } 78.125% { opacity: 0.000; } 81.25% { opacity: 0.000; } 84.375% { opacity: 0.000; } 87.5% { opacity: 0.000; } 90.625% { opacity: 0.000; } 93.75% { opacity: 0.000; } 96.875% { opacity: 0.000; } 100% { opacity: 0.000; } }
@keyframes ia-reflexo-f8 { 0% { transform: translateY(-59.92%); } 3.125% { transform: translateY(-61.67%); } 6.25% { transform: translateY(-62.79%); } 9.375% { transform: translateY(-63.26%); } 12.5% { transform: translateY(-63.15%); } 15.625% { transform: translateY(-62.63%); } 18.75% { transform: translateY(-61.90%); } 21.875% { transform: translateY(-61.15%); } 25% { transform: translateY(-60.54%); } 28.125% { transform: translateY(-60.15%); } 31.25% { transform: translateY(-59.95%); } 34.375% { transform: translateY(-59.87%); } 37.5% { transform: translateY(-59.77%); } 40.625% { transform: translateY(-59.48%); } 43.75% { transform: translateY(-58.88%); } 46.875% { transform: translateY(-57.86%); } 50% { transform: translateY(-56.36%); } 53.125% { transform: translateY(-54.38%); } 56.25% { transform: translateY(-52.02%); } 59.375% { transform: translateY(-49.46%); } 62.5% { transform: translateY(-46.94%); } 65.625% { transform: translateY(-44.73%); } 68.75% { transform: translateY(-43.07%); } 71.875% { transform: translateY(-42.16%); } 75% { transform: translateY(-42.08%); } 78.125% { transform: translateY(-42.84%); } 81.25% { transform: translateY(-44.38%); } 84.375% { transform: translateY(-46.55%); } 87.5% { transform: translateY(-49.18%); } 90.625% { transform: translateY(-52.05%); } 93.75% { transform: translateY(-54.93%); } 96.875% { transform: translateY(-57.62%); } 100% { transform: translateY(-59.92%); } }
/* cristal-gerado: fim */
/* O botão do assistente: o ícone flutuando no canto, logo acima do botão de Atalhos (antes era um botão
   "Assistente" no topo). Sem a chave da IA ele fica sem cor, e o painel explica o que falta. */
.ia-flutuante { position: fixed; right: 22px; bottom: 78px; z-index: 61; width: 64px; height: 64px; animation: ia-flutuar 3.2s ease-in-out infinite; }
/* com o mouse em cima ele para de subir e descer: fica fácil de acertar */
.ia-flutuante:hover, .ia-flutuante:focus-within { animation-play-state: paused; }
.ia-flutuante .ia-botao { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1.3); }
.ia-flutuante .ia-botao:hover, .ia-flutuante .ia-botao:focus-visible { transform: scale(1.08); }
.ia-flutuante .ia-botao:focus-visible { outline: 3px solid #d5ab55; outline-offset: 3px; }
.ia-flutuante .ia-cristal, .ia-flutuante .ia-anel { --t: 64px; }
/* Sem a chave da IA o ícone continua colorido (o Matheus só liga a IA quando houver cliente); quem abre
   o painel lê o que falta. */
/* sombra no chão, com um pouco do dourado refletido: encolhe quando o ícone sobe */
.ia-chao { position: absolute; left: 18%; right: 18%; bottom: -15%; height: 12%; border-radius: 50%; background: radial-gradient(#07182d59 0, #c995402b 45%, transparent 72%); animation: ia-chao 3.2s ease-in-out infinite; pointer-events: none; }
.ia-rotulo { position: absolute; right: calc(100% + 10px); top: 50%; padding: 7px 13px; border-radius: 999px; background: #132b46; color: #f3dfb1; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 22px #07182d33; opacity: 0; transform: translate(8px, -50%); transition: .2s; pointer-events: none; }
.ia-flutuante:hover .ia-rotulo, .ia-flutuante:focus-within .ia-rotulo { opacity: 1; transform: translate(0, -50%); }
@keyframes ia-flutuar { 50% { transform: translateY(-8px); } }
@keyframes ia-chao { 50% { transform: scaleX(.76); opacity: .5; } }
@media (max-width: 720px) {
  .ia-flutuante { right: 12px; bottom: 74px; width: 56px; height: 56px; }
  .ia-flutuante .ia-cristal, .ia-flutuante .ia-anel { --t: 56px; }
  .ia-rotulo { display: none; }
}
@media print { .ia-flutuante { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ia-flutuante, .ia-chao, .ia-cristal *, .ia-cristal *::before, .ia-anel *, .ia-botao:hover .ia-cristal-giro { animation: none !important; }
  .ia-cristal-gema { transform: rotateX(-15deg) rotateY(-30deg); }
  .ia-anel-orbita { transform: rotateZ(-14deg) rotateX(70deg); }
  .ia-estrela, .ia-cristal-lampejo { display: none; }
}

/* Nota fiscal de serviço (NFS-e, 06/11): selo no pagamento, janela de emitir, lista e configuração */
.nfse-tag { display: block; width: max-content; max-width: 100%; margin-top: 4px; font-size: 10.5px; font-weight: 600; white-space: normal; color: #65738a; }
.nfse-tag.teal { color: #1f7a6e; }
.nfse-tag.amber { color: #9a6b12; }
.nfse-tag.red { color: #b42318; }
.nfse-emit { white-space: nowrap; }
.nfse-modal { max-width: 620px; }
.nfse-taker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.nfse-taker > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line, #e0e5ed); border-radius: 8px; }
.nfse-taker small { display: block; font-size: 10px; color: #8a93a2; }
.nfse-taker strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.nfse-taker em { display: block; font-style: normal; font-size: 11px; color: #65738a; }
.nfse-taker .nfse-taker-wide { grid-column: 1 / -1; }
.nfse-modal .link-button, .nfse-list .link-button, .fiscal-settings .link-button { display: inline; padding: 0; border: 0; background: none; color: #1d5fa8; font: inherit; text-decoration: underline; cursor: pointer; }
.nfse-sub { display: block; margin-top: 3px; font-size: 10.5px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.nfse-test { color: #9a6b12; }
.nfse-actions { flex-wrap: wrap; }
.nfse-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.nfse-list .toolbar-group input[type=month] { flex: 0 0 150px; width: 150px; min-width: 130px; min-height: 31px; padding: 4px 8px; font-size: 11px; }
.nfse-invoice { margin-top: 18px; }
.fiscal-settings .fiscal-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.fiscal-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.fiscal-checks label { display: inline-flex; align-items: center; gap: 6px; }
.fiscal-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.fiscal-token { display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fbfcfe; min-width: 0; }
.fiscal-token .row { flex-wrap: wrap; gap: 6px; }
.fiscal-token-row { display: flex; gap: 8px; }
.fiscal-token-row input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .nfse-taker { grid-template-columns: 1fr; }
  .fiscal-tokens { grid-template-columns: 1fr; }
  .fiscal-token-row { flex-wrap: wrap; }
}
/* Com o assistente aberto, o botão de atalhos ficaria em cima do "Enviar" dele. */
body:has(.ia-painel) .shortcuts-fab { display: none; }
/* Atendente de IA no WhatsApp (06/11): caixa de entrada (gestao/src/whatsapp.jsx) e Configurações → WhatsApp */
.wa-inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); min-height: 520px; border: 1px solid var(--line, #e0e5ed); border-radius: 14px; background: #fff; overflow: hidden; }
.wa-list { min-width: 0; border-right: 1px solid #eef1f5; overflow-y: auto; max-height: 72vh; }
.wa-list ul { margin: 0; padding: 0; list-style: none; }
.wa-list-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eef1f5; background: #fff; font-size: 13px; }
.wa-item { display: flex; gap: 10px; width: 100%; min-width: 0; padding: 11px 14px; border: 0; border-bottom: 1px solid #f1f4f8; background: none; font: inherit; text-align: left; cursor: pointer; }
.wa-item:hover { background: #f7f9fc; }
.wa-item.active { background: #eef3f9; }
.wa-item.needs { box-shadow: inset 3px 0 0 #c98a1a; }
.wa-item-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.wa-item-top { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.wa-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wa-item-top small { flex: none; color: var(--muted, #65738a); font-size: 11px; }
.wa-item-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #45536a; font-size: 12px; }
.wa-item-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.wa-item-tags small { color: var(--muted, #65738a); font-size: 11px; }
.wa-unread { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: 99px; background: #1c7c4a; color: #fff; font-size: 10px; }
.wa-thread { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; }
.wa-thread > .empty { margin: auto; }
.wa-thread-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 10px; border-bottom: 1px solid #eef1f5; }
.wa-who { flex: 1; min-width: 0; }
.wa-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wa-who small { display: block; color: var(--muted, #65738a); font-size: 12px; overflow-wrap: anywhere; }
.wa-who .link-button, .wa-settings .link-button { display: inline; padding: 0; border: 0; background: none; color: #1d5fa8; font: inherit; text-decoration: underline; cursor: pointer; }
.wa-back { display: none; }
.wa-thread .notice { margin: 0; }
.wa-messages { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 220px; max-height: 52vh; margin: 0; padding: 4px 2px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.wa-msg { max-width: 82%; min-width: 0; }
.wa-msg p { margin: 0; padding: 8px 11px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.wa-msg small { display: block; margin-top: 3px; color: #8a93a2; font-size: 10.5px; }
.wa-msg.in { align-self: flex-start; }
.wa-msg.in p { background: #f2f5f9; color: #1b2d49; border-bottom-left-radius: 4px; }
.wa-msg.out { align-self: flex-end; text-align: right; }
.wa-msg.out p { text-align: left; border-bottom-right-radius: 4px; }
.wa-msg.out.agent p { background: #e7f5ec; color: #173a2a; }
.wa-msg.out.staff p { background: #173a60; color: #fff; }
.wa-msg.failed p { opacity: .6; outline: 1px dashed #b42318; }
.wa-note { align-self: center; max-width: 92%; padding: 4px 10px; border-radius: 99px; background: #fbf6ea; color: #7a5a1c; font-size: 11px; text-align: center; }
.wa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wa-reply { display: flex; align-items: flex-end; gap: 8px; }
.wa-reply textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; resize: vertical; font-size: 13px; }
.wa-send { flex: none; }
.wa-footnote { font-size: 11px; }
.wa-off h3, .wa-settings h3 { margin: 0; }
.wa-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
.wa-connection { display: grid; gap: 14px; min-width: 0; }
.wa-connection code { overflow-wrap: anywhere; }
.wa-secrets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.wa-secret { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fbfcfe; }
.wa-secret .row { flex-wrap: wrap; gap: 6px; }
.wa-secret-row { display: flex; gap: 8px; }
.wa-secret-row input { flex: 1; min-width: 0; }
.wa-test { flex-wrap: wrap; }
.wa-checks { display: grid; gap: 8px; font-size: 13px; }
.wa-checks label { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.wa-save { flex-wrap: wrap; }
.notification-count.urgent { background: #b42318; animation: none; }
.notification-menu .notification-wa.urgent small { color: #b42318; font-weight: 600; }
/* WhatsApp oficial (06/11): modelos da Meta nas configurações, confirmação e lembrete pelo número da clínica */
.wa-templates { display: grid; gap: 12px; min-width: 0; }
.wa-templates > p { margin: 0; }
.wa-template-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.wa-template { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fbfcfe; }
.wa-template header { flex-wrap: wrap; gap: 6px; }
.wa-template .notice { margin: 0; }
.wa-template-preview { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #e7f5ec; color: #173a2a; font-size: 12.5px; line-height: 1.5; }
.wa-template-preview p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-template-buttons { display: grid; gap: 4px; margin-top: 8px; }
.wa-template-buttons span { padding: 6px; border-radius: 8px; background: #fff; color: #1d6fa8; font-weight: 600; text-align: center; }
.wa-template-name { overflow-wrap: anywhere; font-size: 11px; }
.wa-template-actions { flex-wrap: wrap; align-items: center; gap: 8px; }
.wa-template-ready { display: inline-flex; align-items: center; gap: 4px; color: #1f8a4c; font-size: 12px; font-weight: 600; }
.wa-official { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex-basis: 100%; }
.wa-official-note { display: inline-flex; align-items: center; gap: 4px; color: #1f8a4c; font-size: 11px; }
.wa-official-note.off { color: var(--muted, #65738a); }
.wa-bulk { display: grid; gap: 8px; min-width: 0; }
.calendar-confirm .wa-bulk { padding: 8px 10px 0; }
.wa-bulk-check { display: grid; gap: 8px; padding: 12px; border: 1px solid #cfe5d7; border-radius: 12px; background: #f4fbf6; font-size: 12.5px; }
.wa-bulk-check ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.wa-bulk-check .row { flex-wrap: wrap; gap: 8px; }
.wa-bulk-skipped summary { cursor: pointer; color: #7a5a1c; }
.wa-bulk-skipped ul { margin-top: 6px; }
.wa-bulk-skipped em { font-style: normal; color: #7a5a1c; }
.wa-bulk .notice { margin: 0; }
.appointment-history li.appointment-history-wa > span { color: #1f6b40; }
@media (max-width: 760px) {
  .wa-inbox { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wa-list { max-height: none; border-right: 0; }
  .wa-inbox.has-open .wa-list { display: none; }
  .wa-inbox:not(.has-open) .wa-thread { display: none; }
  .wa-back { display: inline-grid; flex: none; }
  .wa-thread { padding: 12px; }
  .wa-messages { max-height: 58vh; }
  .wa-msg { max-width: 90%; }
  .wa-reply textarea { font-size: 16px; } /* menos de 16 px faz o iPhone dar zoom ao tocar */
}
@media (max-width: 480px) {
  .wa-secrets { grid-template-columns: 1fr; }
  .wa-secret-row { flex-wrap: wrap; }
  .wa-thread-head .badge { display: none; }
}

/* Cadastre-se (06/11): da entrada para os planos; o checkout automático vem depois (BACKLOG). */
.entry-signup { margin: 12px 0 0; text-align: center; font-size: 13px; color: #6b7686; }
.entry-signup a { font-weight: 600; color: #b5862f; text-decoration: underline; }
/* Politica de privacidade no rodape da entrada e dos planos (06/11): o Google pede o link na
   pagina inicial do app antes de publicar o "Entrar com Google". */
.entry-access-footer a, .plans-page-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.entry-access-footer a:hover, .plans-page-footer a:hover { color: #b5862f; }

/* Materiais padrão do estoque (06/11) */
.default-materials-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.default-materials-groups label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e3e7ee; border-radius: 12px; background: #fff; cursor: pointer; }
.default-materials-groups label.done { opacity: .6; cursor: default; }
.default-materials-groups input { width: auto; min-height: 0; margin-top: 3px; }
.default-materials-groups strong { display: block; font-size: 13.5px; }
.default-materials-groups small { display: block; color: #6b7686; font-size: 12px; line-height: 1.4; }

/* App do paciente (06/11): liberar exame, anexo e documento */
.lab-share, .file-share { white-space: nowrap; font-size: 12px; }
.lab-share.on, .file-share.on { color: #1f8a4c; font-weight: 600; }
.file-row .file-share { margin-left: auto; }
.doc-share.on { color: #1f8a4c; }

/* Visualizador de modelo 3D e tomografia (07/11): tela cheia sobre o sistema, aberto pela aba Anexos.
   A tela de desenho é escura (como nos visualizadores de imagem), a moldura segue o sistema. */
.patient-files-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-view3d { white-space: nowrap; font-size: 12px; font-weight: 600; color: #173a60; }
.file-row .file-view3d { margin-left: auto; }
.file-row .file-share + .file-view3d { margin-left: 0; }
.visor3d-fundo { z-index: 90; padding: 16px; }
.visor3d { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: min(1320px, 100%); height: calc(100dvh - 32px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 30px 90px rgba(7, 24, 45, .45); }
.visor3d-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid #edf1f6; }
.visor3d-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #a67a26; background: #fbf1da; }
.visor3d-titulo { flex: 1; min-width: 180px; }
.visor3d-titulo strong { display: block; font-size: 15px; color: #13243d; }
.visor3d-titulo small { display: block; overflow: hidden; font-size: 12px; color: #607694; white-space: nowrap; text-overflow: ellipsis; }
.visor3d-abrir { display: flex; gap: 8px; }
.visor3d-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 16px; border-bottom: 1px solid #edf1f6; background: #fafbfd; }
.visor3d-grupo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.visor3d-grupo small { margin-right: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a96a8; }
.visor3d-grupo button { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 9px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #55657b; cursor: pointer; }
.visor3d-grupo button:hover { background: #eef2f7; color: #13243d; }
.visor3d-grupo button[aria-pressed="true"] { border-color: #d4b370; background: #fff; color: #13243d; box-shadow: 0 2px 8px -4px rgba(199, 155, 69, .55); }
.visor3d-grupo button i { width: 10px; height: 10px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 50%; }
.visor3d-tela { position: relative; min-height: 0; background: #07182d; }
.visor3d-tela canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.visor3d-tela.soltando::after { content: ""; position: absolute; inset: 12px; border: 2px dashed #e8c57e; border-radius: 14px; pointer-events: none; }
.visor3d-solte { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; color: #c6d3e4; pointer-events: none; }
.visor3d-solte strong { font-size: 18px; color: #fff; }
.visor3d-solte span { max-width: 420px; font-size: 13.5px; line-height: 1.55; }
.visor3d-progresso { position: absolute; left: 50%; top: 50%; width: min(360px, 84%); padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transform: translate(-50%, -50%); }
.visor3d-progresso span { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: #13243d; }
.visor3d-progresso div { height: 6px; overflow: hidden; border-radius: 6px; background: #eef2f7; }
.visor3d-progresso i { display: block; height: 100%; background: linear-gradient(90deg, #d4a84c, #f3d890); transform-origin: left; transition: transform .3s; }
.visor3d-erro { position: absolute; left: 50%; bottom: 18px; max-width: min(520px, 90%); padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #8a1c13; background: #fdecea; transform: translateX(-50%); }
.visor3d-pe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 16px; border-top: 1px solid #edf1f6; font-size: 11.5px; color: #607694; }
.visor3d-pe span:first-child { font-variant-numeric: tabular-nums; }
.visor3d-pe a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.visor3d-carregando { padding: 16px 20px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #13243d; background: #fff; }
@media (max-width: 720px) {
  .visor3d-fundo { padding: 0; }
  .visor3d { width: 100%; height: 100dvh; border-radius: 0; }
  .visor3d-topo { padding: 10px 12px; }
  .visor3d-abrir { order: 3; width: 100%; }
  .visor3d-abrir .btn { flex: 1; justify-content: center; }
  .visor3d-barra { gap: 4px 10px; padding: 6px 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .visor3d-grupo { flex-wrap: nowrap; flex: none; }
  .visor3d-grupo button { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .visor3d-pe { padding: 6px 12px; font-size: 10.5px; }
}
/* A foto da tela vai para os anexos do paciente (07/11): o aviso fica na própria barra do visualizador. */
.visor3d-foto { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #55657b; background: #eef2f7; }
.visor3d-foto[data-estado="salva"] { color: #1d6b4f; background: #e3f3ec; }
.visor3d-foto[data-estado="erro"] { color: #8a1c13; background: #fdecea; }
/* A parte do visualizador não chegou (deploy com a aba aberta, rede caiu): aviso no lugar da tela em branco. */
.visor3d-falhou { max-width: 440px; font-weight: 500; line-height: 1.5; }
.visor3d-falhou p { margin: 0 0 8px; }
.visor3d-falhou-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
/* Pedido de exclusão do paciente (LGPD, 08/11) */
.modal.exclusao { width: min(560px, calc(100vw - 24px)); }
.modal.exclusao .modal-body { display: grid; gap: 12px; }
.exclusao-nota, .exclusao-carregando { font-size: 12.5px; line-height: 1.5; color: #55657b; }
.modal.exclusao .field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.modal.exclusao .field input { padding: 10px 12px; border-radius: 10px; border: 1px solid #d5dce6; font: inherit; font-weight: 500; }
.drawer-lgpd { padding-top: 0; }
/* ---------- Leads, o CRM simples (08/11) ---------- */
.nav-link .nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; text-align: center; color: #07182d; background: #d5ad5a; }
.leads .lead-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 12px; margin-bottom: 16px; }
.leads .lead-kpis > div { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #e0e5ed; }
.leads .lead-kpis small { font-size: 11px; color: #65738a; font-weight: 500; }
.leads .lead-kpis b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.02em; color: #15233b; }
.leads .lead-kpis b span { font-size: 13px; color: #65738a; font-weight: 600; }
.lead-barra { display: flex; height: 7px; margin-top: 10px; border-radius: 4px; overflow: hidden; background: #eef1f5; }
.lead-barra i { display: block; background: #98a3b5; } .lead-barra i.wa { background: #1f7a5c; } .lead-barra i.ig { background: #6b4fb5; } .lead-barra i.ag { background: #214775; } .lead-barra i.ind { background: #b37f31; } .lead-barra i.go { background: #c2652a; }
.lead-origens p { margin-top: 6px; font-size: 10.5px; color: #65738a; }
.lead-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.lead-filtros > button { padding: 7px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 500; color: #65738a; background: #fff; border: 1px solid #e0e5ed; }
.lead-filtros > button.on { color: #fff; background: #0e2440; border-color: #0e2440; }
.lead-busca { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(260px, 100%); padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid #e0e5ed; color: #98a3b5; }
.lead-busca input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: 0; font: inherit; font-size: 12.5px; background: transparent; color: #15233b; }
.lead-abas { display: none; }
.lead-quadro { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lead-col { min-height: 420px; padding: 10px; border-radius: 14px; background: #e9ecf1; }
.lead-col.perdido { background: #eef0f3; }
.lead-col h2 { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; font-size: 12.5px; color: #15233b; }
.lead-col h2 > i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #98a3b5; }
.lead-col.conversa h2 > i { background: #d5ad5a; } .lead-col.agendado h2 > i { background: #214775; } .lead-col.paciente h2 > i { background: #1f7a5c; } .lead-col.perdido h2 > i { background: #b42318; }
.lead-col h2 small { display: block; font-size: 10px; font-weight: 500; color: #65738a; }
.lead-col h2 > span { margin-left: auto; padding: 1px 8px; border-radius: 99px; font-size: 11px; color: #65738a; background: #fff; }
.lead-auto { padding: 0 4px 8px; font-size: 9.5px; line-height: 1.4; color: #65738a; }
.lead-auto::before { content: "⚡ "; color: #b8913f; }
.lead-vazio { padding: 14px 6px; font-size: 11px; color: #8a96a8; text-align: center; }
.lead-card { margin-bottom: 8px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid #e0e5ed; box-shadow: 0 2px 6px -4px #0b1d3330; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.lead-card:hover, .lead-card:focus-visible { border-color: #c9d3e0; outline: 0; }
.lead-card.ativo { border-color: #d5ad5a; box-shadow: 0 0 0 3px #d5ad5a33; }
.lead-l1 { display: flex; align-items: center; gap: 8px; }
.lead-l1 b { display: block; font-size: 12.5px; line-height: 1.25; color: #15233b; }
.lead-l1 small { font-size: 10.5px; color: #65738a; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lead-tag { padding: 2px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 600; color: #65738a; background: #f1f3f6; }
.lead-tag.wa { color: #1f7a5c; background: #e3f3ec; } .lead-tag.ig { color: #6b4fb5; background: #efeafa; } .lead-tag.ag { color: #214775; background: #eaf0f8; } .lead-tag.ind { color: #946b21; background: #fbf1da; } .lead-tag.go { color: #a3501b; background: #fdeee5; } .lead-tag.falta { color: #b42318; background: #fdecea; }
.lead-pe { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0e5ed; font-size: 10.5px; color: #65738a; }
.lead-pe b { color: #15233b; font-weight: 600; }
.lead-wa { flex: none; font-weight: 700; color: #1f7a5c; text-decoration: none; }
.lead-atrasado { color: #b42318 !important; font-weight: 600; } .lead-hoje { color: #946b21 !important; font-weight: 600; } .lead-ok { font-style: normal; color: #1f7a5c; font-weight: 600; }
.lead-painel { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); overflow-y: auto; padding: 22px; background: #fff; border-left: 1px solid #e0e5ed; box-shadow: -30px 0 60px -30px #0b1d3355; }
.lead-painel header { display: flex; align-items: center; gap: 12px; }
.lead-painel header > div { flex: 1; min-width: 0; }
.lead-painel h2 { font-size: 18px; letter-spacing: -.02em; color: #15233b; }
.lead-painel header small { font-size: 11.5px; color: #65738a; }
.lead-etapas { display: flex; gap: 4px; margin: 16px 0 12px; }
.lead-etapas button { flex: 1; padding: 7px 2px; border-radius: 7px; font-size: 10px; font-weight: 600; color: #65738a; background: #f1f3f6; }
.lead-etapas button.feita { color: #214775; background: #eaf0f8; } .lead-etapas button.agora { color: #fff; background: #0e2440; }
.lead-etapas button:not(:disabled):hover { background: #e3e8ef; }
.lead-perdido-aviso { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; color: #8a1c13; background: #fdecea; }
.lead-perdido-aviso button { margin-left: 6px; font-weight: 700; color: #0e2440; text-decoration: underline; }
.lead-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 0; border-top: 1px solid #e0e5ed; border-bottom: 1px solid #e0e5ed; font-size: 12px; }
.lead-dados dt { font-size: 10.5px; color: #65738a; } .lead-dados dd { margin: 0; font-weight: 600; color: #15233b; }
.lead-painel h3 { margin: 16px 0 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #65738a; }
.lead-hist { list-style: none; margin: 0; padding: 0; }
.lead-hist li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding-bottom: 9px; font-size: 12px; color: #15233b; }
.lead-hist li > i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #d5ad5a; }
.lead-hist small { display: block; font-size: 10.5px; color: #65738a; }
.lead-nota { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #d5dce6; font: inherit; font-size: 12.5px; resize: vertical; }
.lead-acoes { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.lead-perder { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.lead-perder > button { font-size: 12px; font-weight: 600; color: #b42318; }
.lead-perder select { padding: 8px; border-radius: 8px; border: 1px solid #d5dce6; font: inherit; font-size: 12px; }
.modal.lead-modal { width: min(620px, calc(100vw - 24px)); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .lead-form-largo { grid-column: 1 / -1; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d5dce6; font: inherit; font-size: 13px; background: #fff; }
@media (max-width: 1180px) { .lead-quadro { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; } }
@media (max-width: 720px) {
  .leads .lead-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .leads .lead-kpis > div { padding: 10px; } .leads .lead-kpis b { font-size: 18px; } .leads .lead-kpis small { font-size: 10px; }
  .leads .lead-kpis .lead-origens { grid-column: 1 / -1; }
  .lead-filtros { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .lead-filtros > button { flex: none; } .lead-busca { display: none; }
  .lead-abas { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .lead-abas button { flex: none; padding: 8px 11px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: #65738a; background: #fff; border: 1px solid #e0e5ed; }
  .lead-abas button.on { color: #fff; background: #0e2440; border-color: #0e2440; }
  .lead-abas em { font-style: normal; opacity: .7; margin-left: 3px; }
  .lead-quadro { display: block; overflow: visible; }
  .lead-col { display: none; min-height: 0; padding: 0; background: transparent; } .lead-col.mostra { display: block; }
  .lead-form { grid-template-columns: 1fr; }
}
.lead-etapas button:disabled { opacity: 1; cursor: default; }
.lead-etapas button.agora:disabled { color: #fff; background: #0e2440; }
@media (max-width: 720px) { .leads { padding-bottom: 72px; } } /* o último cartão sobe acima dos botões flutuantes */

/* ---------- Leads: Hoje (a fila), Chamar de volta e Receber de fora (13/11) ---------- */
.lead-vistas { display: inline-flex; gap: 4px; max-width: 100%; margin: 0 0 18px; padding: 4px; border-radius: 12px; background: #e6eaf0; }
.lead-vistas button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: #55657b; }
.lead-vistas button.on { color: #0e2440; background: #fff; box-shadow: 0 1px 3px #0b1d3326; }
.lead-vistas em { min-width: 20px; padding: 1px 6px; border-radius: 99px; font-style: normal; font-size: 10.5px; font-weight: 700; text-align: center; color: #07182d; background: #d5ad5a; }
.fila, .volta { max-width: 1000px; }
.fila { display: grid; gap: 20px; }
.fila-grupo { margin: 0; padding: 0; list-style: none; }
.fila-grupo ul { margin: 0; padding: 0; list-style: none; }
.fila-grupo h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 9px; font-size: 13.5px; color: #15233b; }
.fila-grupo h2 > i { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #98a3b5; }
.fila-grupo.responder h2 > i { background: #b42318; } .fila-grupo.pedido h2 > i { background: #214775; } .fila-grupo.faltou h2 > i { background: #c2652a; } .fila-grupo.retomar h2 > i { background: #d5ad5a; }
.fila-grupo h2 span { padding: 1px 8px; border-radius: 99px; font-size: 11px; color: #55657b; background: #e6eaf0; }
.fila-grupo h2 small { font-size: 11.5px; font-weight: 500; color: #65738a; }
.fila-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e0e5ed; box-shadow: 0 2px 6px -4px #0b1d3330; }
.fila-item.aberta { border-color: #c9d3e0; box-shadow: 0 6px 16px -10px #0b1d3355; }
.fila-quem { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; border-radius: 10px; }
.fila-quem > span:last-child { display: grid; gap: 1px; min-width: 0; }
.fila-quem b { overflow: hidden; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; color: #15233b; }
.fila-quem:hover b { text-decoration: underline; text-decoration-color: #c9d3e0; text-underline-offset: 3px; }
.fila-motivo { font-size: 12px; font-weight: 600; color: #55657b; }
.fila-motivo.agora, .fila-motivo.atrasado { color: #b42318; } .fila-motivo.hoje { color: #946b21; }
.fila-detalhe { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; color: #65738a; }
.fila-acoes { display: flex; align-items: center; gap: 6px; }
.fila-acoes .btn { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 12px; }
.fila-acoes .btn.on { background: #e9eef5; border-color: #c9d3e0; }
.fila-perder { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #8a96a8; }
.fila-perder:hover, .fila-perder.on { color: #b42318; background: #fdecea; }
.fila-faixa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 11px; border-top: 1px dashed #e0e5ed; }
.fila-faixa > span { margin-right: 2px; font-size: 11.5px; font-weight: 600; color: #65738a; }
.fila-faixa button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 13px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #214775; background: #eaf0f8; }
.fila-faixa button:hover { background: #dbe6f4; }
.fila-faixa.perder button { color: #8a1c13; background: #fdecea; } .fila-faixa.perder button:hover { background: #f9d9d5; }
.fila-faixa .fila-fone { margin-left: auto; color: #55657b; background: #f1f3f6; } .fila-faixa .fila-fone:hover { background: #e6eaf0; }
.fila-vazia { display: grid; justify-items: center; gap: 4px; max-width: 1000px; padding: 34px 20px; border-radius: 14px; text-align: center; color: #1f7a5c; background: #fff; border: 1px dashed #c9d3e0; }
.fila-vazia b { font-size: 15px; color: #15233b; } .fila-vazia p { max-width: 460px; font-size: 12.5px; line-height: 1.5; color: #65738a; }
.fila-em-dia { margin-top: 2px; font-size: 12px; color: #65738a; }
.fila-em-dia button { font-weight: 600; color: #214775; text-decoration: underline; text-underline-offset: 3px; }
.lead-resumo-linha { max-width: 1000px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e0e5ed; font-size: 12.5px; line-height: 1.6; color: #55657b; }
.lead-resumo-linha b { color: #15233b; }
.lead-resumo-linha button { margin-left: 10px; font-weight: 600; color: #214775; text-decoration: underline; text-underline-offset: 3px; }
.lead-extra { margin-top: 6px; font-size: 10.5px; color: #65738a; }
.lead-tag.fb { color: #1d4f9c; background: #e6eefb; } .lead-barra i.fb { background: #2f6fb0; }
.lead-lembrar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0 0; }
.lead-lembrar span { margin-right: 2px; font-size: 11px; font-weight: 600; color: #65738a; }
.lead-lembrar button { padding: 6px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: #214775; background: #eaf0f8; } .lead-lembrar button:hover { background: #dbe6f4; }
.volta-explica { max-width: 760px; margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: #55657b; }
.volta-mais { display: block; margin: 4px 0 10px; padding: 9px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #214775; background: #eaf0f8; }
.volta-fora { max-width: 560px; margin: 8px 0 0; padding: 0; list-style: none; }
.volta-fora li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e0e5ed; font-size: 12.5px; color: #15233b; }
.volta-fora button { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #214775; }
.modal.lead-entrada { width: min(640px, calc(100vw - 24px)); }
.lead-entrada .modal-body { display: grid; gap: 14px; }
.lead-entrada-url { display: grid; gap: 6px; }
.lead-entrada-url > span { font-size: 12px; font-weight: 600; color: #15233b; }
.lead-entrada-url > div { display: flex; gap: 8px; }
.lead-entrada-url input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #d5dce6; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #15233b; background: #f7f9fb; }
.lead-entrada-url small, .lead-entrada-nota { font-size: 11.5px; line-height: 1.5; color: #65738a; }
.lead-entrada-abas { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #eef1f5; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lead-entrada-abas button { flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #55657b; }
.lead-entrada-abas button.on { color: #0e2440; background: #fff; box-shadow: 0 1px 3px #0b1d3322; }
.lead-entrada-painel { display: grid; gap: 10px; justify-items: start; font-size: 12.5px; line-height: 1.55; color: #33435a; }
.lead-entrada-painel pre { width: 100%; margin: 0; padding: 12px; border-radius: 10px; overflow-x: auto; font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #dfe7f2; background: #0e2440; }
.lead-entrada-painel ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.lead-entrada-painel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lead-entrada-painel th, .lead-entrada-painel td { padding: 7px 8px; border-bottom: 1px solid #e0e5ed; text-align: left; vertical-align: top; }
.lead-entrada-painel th { width: 46%; font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #15233b; } .lead-entrada-painel td { color: #65738a; }
@media (max-width: 720px) {
  .lead-vistas { display: flex; margin-bottom: 14px; }
  .lead-vistas button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 12px; }
  .fila-item { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  /* os quatro numa linha só: o WhatsApp maior, os outros sem ícone (medido em 390 px) */
  .fila-acoes .btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 7px 6px; font-size: 12.5px; }
  .fila-acoes .btn.primary { flex: 1.5 1 0; }
  .fila-acoes .btn.secondary svg { display: none; }
  .fila-perder { width: 42px; height: 42px; background: #f1f3f6; }
  .fila-faixa button { min-height: 40px; }
  .fila-faixa .fila-fone { margin-left: 0; }
  .fila-grupo h2 small { flex-basis: 100%; padding-left: 16px; }
  .lead-resumo-linha button { display: block; margin: 6px 0 0; }
  .lead-entrada-url > div { flex-direction: column; }
}

/* Sessões e pacotes (08/11): "4 de 10 sessões" e "6 restantes" lado a lado (o CSS do original mirava um <p>
   que a tela não tem, e os dois textos saíam colados: "sessões6 restantes") */
.package-progress { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 20px 0 8px; font-size: 11px; color: #657c9b; }
.package-progress strong { font-weight: 600; color: #15233b; }
/* Equipe e acessos (08/11): perfil e agenda do profissional um embaixo do outro (o segundo invadia a
   coluna "Último acesso") */
.team-role-cell select { display: block; width: 100%; max-width: 240px; }
.team-role-cell select + select { margin-top: 6px; }

/* Corvaris (12/11): o logo horizontal entra no lugar do monograma MR + "RochaOps / GESTÃO INTEGRADA". */
.boot > img.boot-logo { width: auto; height: 46px; }
.brand img.brand-logo { width: auto; height: 30px; max-width: 100%; object-fit: contain; filter: none; }
.entry-wordmark > img.entry-logo { width: auto; height: 40px; }
@media (max-width: 720px) { .entry-wordmark > img.entry-logo { height: 32px; } }

/* Desenho do dente no odontograma (12/11), o mesmo da página de vendas: de lado, em cima do quadrado das
   faces. Os da esquerda do paciente ficam espelhados (a mesial sempre para a linha do meio) e os de baixo de
   ponta-cabeça (a coroa para o meio da boca). As cores das camadas vêm destas variáveis. */
.odonto-chart {
  --odon-bone: #fbf1dc; --odon-gum: #f3aaa5; --odon-tooth-body: #efefed; --odon-tooth-outline: #bfc3c7; --odon-pulp-healthy: #f9c6bd;
  --odon-caries: #b3261e; --odon-caries-outline: #7a1712; --odon-caries-highlight: #ffd9d2;
  --odon-fill-composite: #2f6db5; --odon-fill-composite-outline: #22558f; --odon-fissure-sealing: #2a8f86;
  --odon-fracture: #e08a2e; --odon-fracture-alt: #e08a2e;
}
.odonto-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.odonto-figura { position: relative; display: block; width: 100%; aspect-ratio: 43 / 71; cursor: pointer; }
.odonto-desenho { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: opacity .2s, filter .2s; }
.odonto-desenho.esq { transform: scaleX(-1); }
.odonto-desenho.inf { transform: scaleY(-1); }
.odonto-desenho.esq.inf { transform: scale(-1, -1); }
.odonto-tooth:hover .odonto-desenho { filter: brightness(.97) drop-shadow(0 1px 2px rgba(23, 58, 96, .18)); }
.odonto-tooth.selected .odonto-figura { border-radius: 6px; background: #eef3fa; box-shadow: 0 0 0 1.5px #173a60; }
.odonto-tooth[data-state="ausente"] .odonto-desenho { opacity: .18; }
.odonto-tooth[data-state="extracao"] .odonto-figura::after,
.odonto-tooth[data-state="resto"] .odonto-figura::after {
  content: ""; position: absolute; inset: 18% 8%;
  background: linear-gradient(45deg, transparent 46%, var(--x, #7f1d1d) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--x, #7f1d1d) 46% 54%, transparent 54%);
}
.odonto-tooth[data-state="resto"] .odonto-figura::after { --x: #7a5a2e; }
.odonto-tooth[data-state="implante"] .odonto-desenho { filter: hue-rotate(220deg) saturate(.6); }
.odonto-tooth[data-state="coroa"] .odonto-desenho { filter: sepia(.55) saturate(1.6); }
.odonto-tooth[data-state="canal"] .odonto-desenho { filter: hue-rotate(290deg) saturate(1.4); }
.odonto-half { grid-template-columns: repeat(var(--teeth), minmax(24px, 44px)); gap: 4px; }
.odonto-box { width: 74%; }

/* Estilo das faces (12/11): rosa redonda (padrão), quadrado com letras, ou só pelo painel. */
.odonto-opcoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.odonto-estilo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #354f71; }
.odonto-estilo select { padding: 5px 28px 5px 10px; border: 1px solid #c9d3e2; border-radius: 8px; background-color: #fff; font: inherit; font-weight: 500; color: #173a60; }
.odonto-box.rosa path { stroke: #b6c1d1; }
.odonto-box.rosa { border-radius: 50%; }
.odonto-letra { font-size: 7.4px; font-weight: 700; fill: #7b8ba1; }
.odonto-letra.cheia { fill: #fff; }
.odonto-box.quadrado .odonto-letra { font-size: 8px; }
.odonto-dots { display: flex; justify-content: center; gap: 3px; min-height: 10px; padding-top: 2px; }
.odonto-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.odonto-cruz { display: grid; grid-template-columns: repeat(3, minmax(84px, 120px)); gap: 6px; justify-content: start; }
.odonto-cruz > span { display: block; }
.odonto-cruz-face { display: grid; gap: 1px; justify-items: center; padding: 8px 6px; border: 1px solid #c9d3e2; border-left: 4px solid var(--chip, #c9d3e2); border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #173a60; cursor: pointer; }
.odonto-cruz-face small { font-size: 10.5px; font-weight: 500; color: #5d6f88; }
.odonto-cruz-face:hover { background: #f3f7fc; }
.odonto-cruz-face.on { background: #173a60; border-color: #173a60; border-left-color: var(--chip, #173a60); color: #fff; }
.odonto-cruz-face.on small { color: #dbe6f3; }
.odonto-escolha { width: min(780px, calc(100vw - 32px)); }
.odonto-escolha-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.odonto-escolha-op { display: grid; align-content: start; gap: 6px; padding: 14px; border: 1.5px solid #dfe5ee; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: #173a60; cursor: pointer; }
.odonto-escolha-op:hover { border-color: #b9c6d8; }
.odonto-escolha-op.on { border-color: #173a60; box-shadow: 0 0 0 3px #173a6022; }
.odonto-escolha-op strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.odonto-escolha-op strong em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: #f6efdc; color: #8a6a2c; }
.odonto-escolha-op small { font-size: 12px; line-height: 1.45; color: #55657b; }
.odonto-escolha-previa { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 150px; border-radius: 10px; background: #fbfcfe; pointer-events: none; }
.odonto-chart.mini { display: block; width: 58px; padding: 6px; border: 0; background: none; }
.odonto-escolha-previa .odonto-cruz { grid-template-columns: repeat(3, 52px); gap: 3px; }
.odonto-escolha-previa .odonto-cruz-face { padding: 4px 2px; font-size: 9px; border-left-width: 3px; }
.odonto-escolha-previa .odonto-cruz-face small { display: none; }
@media (max-width: 720px) { .odonto-escolha-grade { grid-template-columns: minmax(0, 1fr); } .odonto-escolha-previa { min-height: 110px; } }
.odonto-box svg { overflow: visible; }
.odonto-box path:focus { outline: none; }
.odonto-box path.on, .odonto-box.rosa path.on { stroke: #173a60; stroke-width: 2.2; }
.odonto-box path.on[fill="#ffffff"] { fill: #d9e6f7; }
.odonto-escolha-previa .odonto-cruz { grid-template-columns: repeat(3, 42px); }
.odonto-escolha-previa .odonto-cruz-face { padding: 3px 1px; font-size: 7.5px; }

/* ---------- Conexões por fornecedor (13/11): Integrações → visão geral ---------- */
.conexoes { margin: 26px 0 8px; }
.conexoes-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.conexao { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e0e5ed; box-shadow: 0 2px 6px -4px #0b1d3330; }
.conexao.pronta { border-color: #cfe5db; }
.conexao .connection-action-icon { margin-bottom: 4px; }
.conexao-categoria { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a96a8; }
.conexao h4 { margin: 0; font-size: 14.5px; color: #15233b; }
.conexao p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #55657b; }
.conexao-ultimo { font-size: 11px; color: #65738a; }
.modal.conexao-modal { width: min(560px, calc(100vw - 24px)); }
.conexao-modal .modal-body { display: grid; gap: 16px; }
.campo-segredo { display: grid; gap: 7px; }
.campo-segredo-topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12.5px; font-weight: 600; color: #15233b; }
.campo-segredo-topo small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: #1f7a5c; }
.campo-segredo-topo small.vazio { color: #8a96a8; }
.campo-segredo-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.campo-segredo-linha input { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #d5dce6; font: inherit; font-size: 13px; }
.campo-segredo-apagar, .conexao-tela { font-size: 12px; font-weight: 600; color: #214775; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.campo-segredo-apagar { color: #8a1c13; }
.campo-ajuda { margin: 0; font-size: 11.5px; line-height: 1.5; color: #65738a; }
.conexao-endereco { display: grid; gap: 7px; font-size: 12.5px; font-weight: 600; color: #15233b; }
.conexao-copiar { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 6px; }
.conexao-copiar code { flex: 1; min-width: 0; padding: 8px 10px; overflow-x: auto; border-radius: 8px; white-space: nowrap; font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #15233b; background: #f1f3f6; }
.conexao-teste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 9px 11px; border-radius: 10px; font-size: 12px; }
.conexao-teste.ok { color: #1f7a5c; background: #e3f3ec; } .conexao-teste.falhou { color: #8a1c13; background: #fdecea; }
.conexao-teste small { color: #65738a; }
.conexao-modal .modal-footer .conexao-desligar { margin-right: auto; }
@media (max-width: 720px) { .conexoes-lista { grid-template-columns: 1fr; } .conexao-copiar { flex-direction: column; align-items: stretch; } }

/* Confirmação automática pelo WhatsApp (13/11), no cartão do modelo de confirmação */
.wa-auto { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 10px; background: #f3f7fb; border: 1px solid #dbe4ef; cursor: pointer; }
.wa-auto input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #1f5c8f; }
.wa-auto span { display: grid; gap: 3px; }
.wa-auto strong { font-size: 12.5px; color: #15233b; }
.wa-auto small { font-size: 11.5px; line-height: 1.45; color: #55657b; }
.wa-auto.desligado { cursor: default; opacity: .75; }
.clinic-copies { margin-top: 18px; } /* as cópias de uma clínica, abertas pela aba Clínicas (13/11) */

/* Precificação (18/11, gestao/src/precificacao.jsx). Prefixo prec-: "pricing-" já é da página de planos. */
.prec-page { min-width: 0; }
.prec-aviso-salvar { margin: -14px 0 14px; font-size: 12px; color: #946b21; }
.prec-resumo { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; margin-bottom: 18px; }
.prec-cartao { display: grid; gap: 3px; min-width: 0; padding: 14px 15px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid #dfe5ef; border-radius: 14px; background: linear-gradient(135deg, #fff 60%, #f8fafd); box-shadow: 0 5px 15px #12335506;
  border-top: 3px solid #9aa6b6; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.prec-cartao:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #12335510; }
.prec-cartao.meta { border-top-color: #2f8f6b; }
.prec-cartao.abaixo { border-top-color: #d5ad5a; }
.prec-cartao.prejuizo { border-top-color: #c4574f; }
.prec-cartao.ativo { border-color: #214775; border-top-width: 3px; box-shadow: 0 0 0 2px #21477522, 0 8px 20px #12335512; }
.prec-cartao-nome { font-weight: 600; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prec-cartao > small { color: var(--muted); font-size: 11px; }
.prec-cartao > strong { font-size: 21px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 4px; }
.prec-cartao strong.neg, .prec-sobra strong.neg { color: #a54c49; }
.prec-cartao-pe { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.prec-cartao-pe small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.prec-cartao.novo { place-content: center; justify-items: center; gap: 6px; border: 1px dashed #c9d4e3; border-top: 1px dashed #c9d4e3; background: #fafbfd; color: #2e527d; font-size: 12px; font-weight: 600; box-shadow: none; }

.prec-grade { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.prec-lado { display: grid; gap: 18px; min-width: 0; }
.prec-lado .panel, .prec-grade > .panel { margin-top: 0; }
.prec-painel-corpo { padding: 14px 18px 18px; display: grid; gap: 10px; }
.prec-plano-corpo { display: grid; gap: 0; }
.prec-resultado { padding: 16px 20px 18px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfcfe, #fff); }
.prec-sobra { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.prec-sobra span { width: 100%; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prec-sobra strong { font-size: 32px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.prec-sobra small { font-size: 13px; color: var(--text); }
.prec-barra { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eef1f6; gap: 2px; }
.prec-barra span { min-width: 3px; }
.prec-barra .venda, .prec-legenda i.venda { background: #8ea3c0; }
.prec-barra .direto, .prec-legenda i.direto { background: #214775; }
.prec-barra .fixo, .prec-legenda i.fixo { background: #d5ad5a; }
.prec-barra .sobra, .prec-legenda i.sobra { background: #2f8f6b; }
.prec-barra .falta, .prec-legenda i.falta { background: repeating-linear-gradient(135deg, #c4574f 0 4px, #e9a39d 4px 8px); }
.prec-legenda { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 12px; }
.prec-legenda li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 7px; color: var(--text); }
.prec-legenda i { width: 10px; height: 10px; border-radius: 3px; }
.prec-legenda strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.prec-legenda small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.prec-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prec-numeros > div { display: grid; gap: 2px; padding: 11px 13px; border: 1px solid #e3e8f0; border-radius: 11px; background: #fff; min-width: 0; }
.prec-numeros span { font-size: 11px; color: var(--muted); }
.prec-numeros strong { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.prec-numeros strong.sem { color: #a54c49; }
.prec-numeros small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.prec-numeros small.sobe { color: #90651e; font-weight: 600; }
.prec-numeros small.folga { color: #24705c; font-weight: 600; }
.prec-edicao { padding: 16px 20px 18px; min-width: 0; }
.prec-linha2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.prec-linha2 .field { margin-bottom: 10px; }
.prec-num { display: flex; align-items: center; min-width: 0; border: 1px solid #d9e0ea; border-radius: 9px; background: #fff; padding: 0 10px; height: 38px; }
.field > .prec-num { display: flex; margin-bottom: 0; font-size: 13px; font-weight: 400; color: var(--text); }
.prec-num:focus-within { border-color: #214775; box-shadow: 0 0 0 3px #21477518; }
.prec-num i { font-style: normal; font-size: 12px; color: var(--muted); flex: none; }
.prec-num input { flex: 1; min-width: 0; width: 100%; border: 0 !important; box-shadow: none !important; outline: 0; background: transparent; padding: 0 6px; height: 36px; min-height: 0; font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.prec-itens, .prec-lista { display: grid; gap: 8px; }
.prec-item { display: grid; grid-template-columns: minmax(0, 1fr) 76px 132px 34px; gap: 8px; align-items: center; }
.prec-item > input, .prec-lista-linha > input { min-width: 0; height: 38px; }
.prec-item.estoque > input { border-left: 3px solid #d5ad5a; }
.prec-item .prec-sugestao { grid-column: 1 / -1; }
.prec-qtd { display: flex; align-items: center; gap: 4px; min-width: 0; }
.prec-qtd input { width: 100%; min-width: 0; height: 38px; text-align: right; }
.prec-qtd small { font-size: 11px; color: var(--muted); }
.prec-lista-linha { display: grid; grid-template-columns: minmax(0, 1fr) 112px 34px; gap: 8px; align-items: center; }
.prec-lado .prec-lista-linha { grid-template-columns: minmax(0, 1fr) 120px 34px; }
.prec-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.prec-do-estoque { height: 34px; min-height: 0; padding-top: 0; padding-bottom: 0; line-height: 32px; font-size: 11px; max-width: 220px; border-radius: 8px; }
.prec-total { margin-left: auto; font-size: 12px; color: var(--text); }
.prec-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
.prec-rodape-plano { display: flex; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.prec-rodape-plano .perigo { color: #a54c49; }
.prec-sugestao { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #fff8e8; border: 1px solid #f0dfb9; font-size: 12px; color: #6d5320; }
.prec-sugestao > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.prec-sugestao svg { flex: none; }
.prec-sugestao .link-button { font-size: 12px; font-weight: 600; color: #214775; flex: none; }
.prec-sugestoes { display: grid; gap: 6px; padding-top: 4px; }
.prec-sugestoes-tit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); font-weight: 600; }
.prec-sugestoes > small, .prec-vendas small { font-size: 11px; color: var(--muted); }
.prec-vendas { margin: 6px 0 0; }
.prec-vendas .prec-num { max-width: 160px; }
.prec-vazio-corpo { max-width: 560px; margin: 0 auto; padding: 38px 24px 34px; display: grid; justify-items: start; gap: 12px; }
.prec-vazio-icone { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #d5ad5a; background: #07182d; }
.prec-vazio-corpo h2 { margin: 4px 0 0; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.prec-vazio-corpo p { margin: 0; color: var(--text); }
.prec-vazio-corpo ol { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.prec-vazio-corpo b { color: var(--ink); }
.prec-vazio-corpo > small { color: var(--muted); font-size: 11px; }
.prec-folha { display: none; }
@media (max-width: 1100px) { .prec-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 660px) {
  .prec-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .prec-cartao { padding: 11px 12px; }
  .prec-cartao > strong { font-size: 17px; }
  .prec-cartao-pe { flex-wrap: wrap; }
  .prec-resultado, .prec-edicao { padding: 14px; }
  .prec-painel-corpo { padding: 12px 14px 14px; }
  .prec-sobra strong { font-size: 28px; }
  .prec-legenda { grid-template-columns: minmax(0, 1fr); }
  .prec-numeros { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .prec-numeros > div { padding: 9px 10px; }
  .prec-numeros strong { font-size: 15px; }
  .prec-item { grid-template-columns: minmax(0, 1fr) 112px 34px; }
  .prec-item > input { grid-column: 1 / -1; }
  .prec-item > .prec-qtd, .prec-item > span:empty { grid-column: auto; }
  .prec-item > span:empty { display: none; }
  .prec-item:not(.estoque) > .prec-num { grid-column: 1 / 3; }
  .prec-lista-linha, .prec-lado .prec-lista-linha { grid-template-columns: minmax(0, 1fr) 104px 34px; }
  .prec-total { margin-left: 0; width: 100%; }
  .prec-edicao .prec-linha2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prec-do-estoque { max-width: none; flex: 1; }
}
@media print { .print-bare .prec-folha { display: block; } }
/* Relatório da precificação (18/11): placar, o que olhar primeiro e um cartão por plano. */
.prec-folha { font-size: 10.5pt; color: #15233b; }
.prec-placar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.prec-placar > div { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid #e3e8f0; border-left-width: 6px; }
.prec-placar strong { font-size: 26pt; line-height: 1; font-variant-numeric: tabular-nums; }
.prec-placar span { font-size: 10pt; color: #45536a; }
.prec-placar .meta { border-left-color: #2f8f6b; } .prec-placar .meta strong { color: #24705c; }
.prec-placar .abaixo { border-left-color: #d5ad5a; } .prec-placar .abaixo strong { color: #90651e; }
.prec-placar .prejuizo { border-left-color: #c4574f; } .prec-placar .prejuizo strong { color: #a54c49; }
.prec-olhar { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prec-olhar li { padding: 8px 12px; border-radius: 9px; background: #f6f8fb; font-size: 10.5pt; line-height: 1.45; border-left: 4px solid #9aa6b6; }
.prec-olhar li.prejuizo { background: #fdf1f0; border-left-color: #c4574f; }
.prec-olhar li.abaixo { background: #fff7e6; border-left-color: #d5ad5a; }
.prec-olhar li.meta { background: #eef7f2; border-left-color: #2f8f6b; }
.prec-folha-cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prec-folha-cartao { break-inside: avoid; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #e3e8f0; border-top: 4px solid #9aa6b6; border-radius: 12px; }
.prec-folha-cartao.meta { border-top-color: #2f8f6b; } .prec-folha-cartao.abaixo { border-top-color: #d5ad5a; } .prec-folha-cartao.prejuizo { border-top-color: #c4574f; }
.prec-folha-cartao header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prec-folha-cartao header b { font-size: 11.5pt; }
.prec-folha-cartao header em { white-space: nowrap; font-style: normal; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #45536a; }
.prec-folha-cartao.prejuizo header em { color: #a54c49; } .prec-folha-cartao.abaixo header em { color: #90651e; } .prec-folha-cartao.meta header em { color: #24705c; }
.prec-folha-sobra { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.prec-folha-sobra span { width: 100%; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #5b6678; }
.prec-folha-sobra strong { font-size: 20pt; font-variant-numeric: tabular-nums; }
.prec-folha-cartao.prejuizo .prec-folha-sobra strong { color: #a54c49; }
.prec-folha-sobra small { font-size: 10pt; color: #45536a; }
.prec-folha-cartao .prec-barra { height: 9px; }
.prec-folha-cartao dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 0; font-size: 10pt; }
.prec-folha-cartao dt { color: #5b6678; }
.prec-folha-cartao dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.prec-folha-cartao dd.sobe { color: #90651e; }
.prec-folha-custos td { font-size: 9.5pt; }
.prec-folha-custos td:first-child { width: 28%; }

/* Relatórios com a identidade da clínica (18/11): o cabeçalho comum (folha.jsx, CabecalhoRelatorio), a faixa na cor
 * da clínica (--marca, de settings.brand.color) e os destaques. Cor de fundo na impressão: print-color-adjust. */
.rel-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 3px solid var(--marca, #163859); }
.rel-logo { display: block; max-height: 52px; max-width: 170px; object-fit: contain; }
.rel-mono { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--marca, #163859); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.rel-cab-clinica { display: grid; gap: 2px; min-width: 0; }
.rel-cab-clinica strong { font-size: 17px; color: #15233b; }
.rel-cab-clinica small, .rel-cab-folha small { font-size: 10.5px; color: #5b6678; }
.rel-cab-folha { display: grid; gap: 2px; text-align: right; }
.rel-cab-folha b { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--marca, #163859); }
.rel-pe { margin-top: 26px !important; padding-top: 10px !important; border-top: 1px solid #d5dbe5 !important; font-size: 9pt; color: #65738a; }
.rel, .rel * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.letterhead-logo { justify-self: center; max-height: 60px; max-width: 200px; margin-bottom: 6px; }
.letterhead header { border-bottom-color: var(--marca, #c9ced6); border-bottom-width: 2px; }
/* Destaques que os relatórios usam */
.rel-destaque { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--marca, #163859) 8%, #fff); border: 1px solid color-mix(in srgb, var(--marca, #163859) 30%, #fff); }
.rel-destaque span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #45536a; }
.rel-destaque strong { font-size: 24px; color: var(--marca, #163859); font-variant-numeric: tabular-nums; }
.rel-tabela { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 11pt; }
.rel-tabela th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; color: #5b6678; border-bottom: 2px solid #d5dbe5; padding: 6px 6px; }
.rel-tabela td { border-bottom: 1px solid #e3e8f0; padding: 7px 6px; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.rel-tabela { table-layout: auto; }
.rel-tabela .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rel-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; font-size: 10.5pt; color: #45536a; }
.rel-meta b { color: #15233b; }
.rel h2.rel-titulo { margin: 0 0 4px; font-size: 18pt; color: #15233b; text-align: left; }
.rel h3.rel-sub { margin: 18px 0 6px; font-size: 10pt; text-transform: uppercase; letter-spacing: .08em; color: var(--marca, #163859); }
@media print { .print-sheet.rel { padding: 0; font-size: 11pt; } .print-sheet.rel .rel-cab { margin-top: 0; } }
/* Identidade da clínica nas Configurações (18/11) */
.identidade { display: grid; gap: 8px; margin-bottom: 15px; }
.identidade-ajuda { margin: -4px 0 0; font-size: 11px; }
.identidade-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.identidade-logo { display: flex; align-items: center; gap: 12px; }
.identidade-logo label.btn { cursor: pointer; }
.identidade-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.identidade-cor { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d5dbe5; cursor: pointer; }
.identidade-cor[aria-checked="true"] { box-shadow: 0 0 0 2px #15233b; }
.identidade-cor.outra { position: relative; overflow: hidden; background: conic-gradient(#e0565b, #e5b34c, #4cb88a, #4c8be5, #9b5ce0, #e0565b); }
.identidade-cor.outra input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.identidade-erro { color: #b42318; font-size: 11px; }
.identidade-previa { padding: 16px 18px 4px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fff; }
.identidade-previa .rel-cab { margin-bottom: 8px; }
@media screen and (max-width: 660px) { .rel-cab { grid-template-columns: auto minmax(0, 1fr); } .rel-cab-folha { grid-column: 1 / -1; text-align: left; } }
/* IA para preencher o plano (18/11) */
.prec-ia-abrir { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 12px; border-radius: 9px; border: 1px dashed #c9b27a; background: #fffaf0; color: #6d5320; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.prec-ia-abrir span { color: #d5ad5a; }
.prec-ia { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #f0dfb9; background: #fffcf5; display: grid; gap: 8px; }
.prec-ia .field { margin: 0; }
.prec-ia textarea { min-height: 70px; }
.prec-ia .prec-acoes { margin-top: 0; }
.prec-ia-nota { font-size: 11px; color: var(--muted); }
.prec-ia-resultado { display: grid; gap: 8px; }
.prec-ia-resultado ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prec-ia-resultado li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid #ece3cc; font-size: 12px; }
.prec-ia-resultado li b { font-variant-numeric: tabular-nums; }
.prec-ia-resultado li small { grid-column: 1 / -1; font-size: 10.5px; color: var(--muted); }
.prec-ia-resultado li.preencher b { color: #90651e; }
.prec-ia-obs li { background: transparent !important; border: 0 !important; padding: 0 2px !important; color: var(--text); display: block !important; }
.prec-ia-obs li::before { content: "• "; color: #d5ad5a; }
/* Agenda e prontuário impressos (18/11, gestao/src/relatorios.jsx) */
.rel-cab-clinica small span { white-space: nowrap; }
.rel-cab-clinica small span + span::before { content: " · "; }
.rel-sub small { margin-left: 10px; font-size: 9pt; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5b6678; }
.rel-dia { break-inside: avoid; }
.rel-hora { white-space: nowrap !important; font-variant-numeric: tabular-nums; color: #45536a; }
.rel-tabela tr.fora td { color: #9aa6b6; text-decoration: line-through; }
.rel-tabela tr.fora td:last-child { text-decoration: none; }
.rel-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5pt; white-space: nowrap; }
.rel-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9aa6b6; }
.rel-status.confirmed::before, .rel-status.arrived::before, .rel-status.in_progress::before { background: #2f8f6b; }
.rel-status.completed::before { background: #214775; }
.rel-status.scheduled::before { background: #d5ad5a; }
.rel-status.cancelled::before, .rel-status.no_show::before { background: #c4574f; }
.rel-alergia { display: grid; gap: 2px; padding: 10px 14px; margin: 4px 0 12px; border-radius: 10px; border: 1px solid #f0c8c4; border-left: 6px solid #c4574f; background: #fdf1f0; }
.rel-alergia b { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; color: #a54c49; }
.rel-alergia span { white-space: pre-wrap; font-size: 11.5pt; font-weight: 600; color: #15233b; }
.rel-alergia.sem { border-color: #d5e8de; border-left-color: #2f8f6b; background: #f1f8f4; }
.rel-alergia.sem b { color: #24705c; } .rel-alergia.sem span { font-weight: 500; font-size: 10.5pt; }
.rel-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 6px; }
.rel-bloco h4, .rel-evolucao h4 { margin: 0 0 3px; font-size: 9pt; text-transform: uppercase; letter-spacing: .06em; color: #5b6678; }
.rel-bloco p { margin: 0; white-space: pre-wrap; font-size: 10.5pt; line-height: 1.5; }
.rel-evolucao { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid #e3e8f0; break-inside: avoid; }
.rel-evolucao-data { display: grid; gap: 2px; align-content: start; }
.rel-evolucao-data b { font-size: 10.5pt; color: var(--marca, #163859); white-space: nowrap; }
.rel-evolucao-data small { font-size: 9pt; color: #5b6678; }
.rel-evolucao h4 { color: #15233b; font-size: 10pt; }
.rel-evolucao p { margin: 0; white-space: pre-wrap; font-size: 10.5pt; line-height: 1.55; }
.rel-tabela td { color: #1d2633 !important; font-size: 10.5pt; }
.rel-tabela td b { color: #15233b !important; }
.rel-tabela tr.fora td { color: #9aa6b6 !important; }
.rel-status { font-size: 10pt; }

/* Gráficos do Financeiro (19/11): o painel de cima da aba "Comece por aqui" (FinanceCharts, financeiro.jsx) */
.fin-graficos { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 23px; }
.fin-graficos .panel { display: flex; flex-direction: column; margin: 0; }
.fin-graf-corpo { padding: 0 21px 20px; flex: 1; display: flex; flex-direction: column; }
.fin-graf-total { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fin-graf-total strong { font-size: 22px; font-weight: 650; letter-spacing: -.6px; color: #10263f; }
.fin-barras { flex: 1; min-height: 132px; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 12px; align-items: end; }
.fin-barra { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; text-align: center; }
.fin-barra small { font-size: 9px; color: #8b97a8; white-space: nowrap; min-height: 13px; }
.fin-barra i { align-self: end; justify-self: center; width: min(56px, 100%); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #c9d5e4, #b5c4d8);
  transform-origin: bottom; animation: fin-sobe .7s cubic-bezier(.2, .7, .2, 1) both; }
.fin-barra span { font-size: 10px; color: #8b97a8; text-transform: capitalize; }
.fin-barra.atual i { background: linear-gradient(180deg, #e4c27a, #c79b45); box-shadow: 0 8px 18px -10px #c79b45; }
.fin-barra.atual small, .fin-barra.atual span { color: #9a7631; font-weight: 650; }
@keyframes fin-sobe { from { transform: scaleY(0); } }
.fin-rosca-linha { flex-direction: row; align-items: center; gap: 16px; }
.fin-rosca { width: 116px; height: 116px; flex-shrink: 0; transform: rotate(-90deg); }
.fin-rosca circle { fill: none; stroke-width: 15; }
.fin-rosca-fundo { stroke: #edf1f6; }
.fin-rosca-dia { stroke: #1d3f66; stroke-linecap: butt; }
.fin-rosca-atraso { stroke: #d39a3a; }
.fin-rosca text { transform: rotate(90deg); transform-origin: 66px 66px; }
.fin-rosca-valor { font-size: 15px; font-weight: 700; fill: #10263f; }
.fin-rosca-rotulo { font-size: 9px; fill: #8b97a8; }
.fin-legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; flex: 1; }
.fin-legenda li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; font-size: 10.5px; color: #6c7a8c; }
.fin-legenda li b { grid-column: 2; font-size: 13px; color: #10263f; font-weight: 650; white-space: nowrap; }
.fin-legenda i { width: 10px; height: 10px; border-radius: 3px; }
.fin-legenda i.dia { background: #1d3f66; } .fin-legenda i.atraso { background: #d39a3a; }
.fin-formas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fin-formas div { display: flex; justify-content: space-between; font-size: 11px; color: #4d5c70; margin-bottom: 6px; }
.fin-formas b { color: #10263f; font-weight: 650; }
.fin-formas i { display: block; height: 8px; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.fin-formas em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d3f66, #3c6390);
  transform-origin: left; animation: fin-estica .7s cubic-bezier(.2, .7, .2, 1) both; }
.fin-formas li:first-child em { background: linear-gradient(90deg, #c79b45, #e4c27a); }
@keyframes fin-estica { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .fin-barra i, .fin-formas em { animation: none; } }
@media (max-width: 1180px) { .fin-graficos { grid-template-columns: 1fr 1fr; } .fin-graf-meses { grid-column: 1 / -1; } }
@media (max-width: 720px) { .fin-graficos { grid-template-columns: 1fr; } .fin-rosca-linha { gap: 14px; } }

/* Agenda: vários profissionais à vista e reunião (20/11) */
.agenda-profs { position: relative; }
.agenda-profs > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; max-width: 240px; padding: 0 12px; border: 1px solid var(--line, #e0e5ed); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12px; color: var(--ink); }
.agenda-profs > summary::-webkit-details-marker { display: none; }
.agenda-profs > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-profs-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 250px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line, #e0e5ed); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px #15233b1f; }
.agenda-profs-menu label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.agenda-profs-menu label:hover { background: #f3f6fa; }
.agenda-profs-menu input { width: 16px; height: 16px; min-height: 0; margin: 0; }
.agenda-profs-menu i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.agenda-profs-todos { border-bottom: 1px solid var(--line, #e0e5ed); border-radius: 8px 8px 0 0 !important; margin-bottom: 2px; font-weight: 600; }
.agenda-profs-menu small { padding: 6px 8px 2px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.lane-prof-curto { display: flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; font-size: 10px !important; white-space: nowrap; text-overflow: ellipsis; }
.schedule-block.reuniao { background: repeating-linear-gradient(135deg, #e9effa 0 8px, #dfe7f5 8px 16px); border-color: #b9c8e2; color: #234b7b; }
.schedule-block.reuniao span::before { content: "👥 "; }
.reuniao-pessoas { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 660px) { .agenda-profs > summary { max-width: 170px; } .agenda-profs-menu { left: 0; right: auto; min-width: 0; width: min(280px, calc(100vw - 32px)); } }
.team-limite { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.team-limite.cheio { color: #90651e; font-weight: 600; }
.identidade-hex { width: 96px; height: 32px; min-height: 0; padding: 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: 8px; }

/* Google Agenda (21/11): o cartão de Minha conta e o ocupado do Google na agenda */
.schedule-google { position: absolute; left: 2px; right: 3px; z-index: 1; padding: 3px 6px; border-left: 3px solid #4285f4; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(66, 133, 244, .10) 0 6px, rgba(66, 133, 244, .04) 6px 12px); color: #2b5aa8; font-size: 10px; font-weight: 600; pointer-events: none; overflow: hidden; }
.schedule-google span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-card { margin-top: 8px; padding: 18px; border: 1px solid var(--line, #e3e7ee); border-radius: 14px; background: var(--surface, #fff); display: grid; gap: 14px; max-width: 720px; }
.ga-head { display: flex; align-items: center; gap: 12px; }
.ga-head h3 { margin: 0; font-size: 16px; }
.ga-head p { margin: 2px 0 0; font-size: 13px; }
.ga-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f3f6fb; flex: none; }
.ga-pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #e6f4ea; color: #1e7b3a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ga-lista { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.ga-link { font-size: 13px; align-self: center; }
.ga-agenda { margin: 0; font-size: 14px; }
.ga-desligar { padding: 12px 14px; border: 1px solid #f1c9c4; border-radius: 10px; background: #fdf4f3; display: grid; gap: 10px; font-size: 14px; }
.ga-desligar p { margin: 0; }
.ga-titulo { margin: 0; padding: 12px 14px; border: 1px solid var(--line, #e3e7ee); border-radius: 10px; display: grid; gap: 8px; font-size: 14px; }
.ga-titulo legend { padding: 0 4px; font-weight: 700; font-size: 13px; }
.ga-card .check { display: flex; gap: 10px; align-items: baseline; justify-content: flex-start; text-align: left; }
.ga-card .check input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; box-shadow: none; background: none; accent-color: #1f3d63; transform: translateY(2px); }
.ga-card .check small { margin-left: 2px; }
@media (max-width: 480px) { .ga-card { padding: 14px; } .ga-pill { display: none; } }

/* Formulários de lead (22/11): a lista e o editor, com a prévia no celular ao lado */
.fb-intro { max-width: 760px; margin: 0 0 16px; color: #55657b; font-size: 14px; }
.fb-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fb-cartao { display: grid; gap: 6px; padding: 16px; border: 1px solid #e3e7ee; border-radius: 14px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.fb-cartao strong { font-size: 15px; color: #0e2440; }
.fb-cartao span { color: #66758a; font-size: 12.5px; }
.fb-cartao .fb-num { color: #0e2440; font-size: 13px; }
.fb-cartao.parado { opacity: .65; }
.fb-cartao.novo { border-style: dashed; background: #f8fafc; }
.fb-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.fb-col { display: grid; gap: 14px; min-width: 0; }
.fb-voltar { justify-self: start; padding: 0; border: 0; background: none; color: #42688f; font: inherit; font-weight: 600; cursor: pointer; }
.fb-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-bloco { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 16px; border: 1px solid #e3e7ee; border-radius: 14px; background: #fff; }
.fb-bloco legend, .fb-bloco h3 { padding: 0 4px; font-size: 14px; font-weight: 700; color: #0e2440; }
.fb-bloco h3 { margin: 0; padding: 0; }
.fb-bloco .muted { margin: 0; font-size: 13px; }
.fb-q { display: grid; gap: 8px; padding: 12px; border: 1px solid #e8ecf2; border-radius: 12px; background: #fbfcfd; }
.fb-q header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0e2440; color: #fff; font-size: 12px; font-weight: 700; }
.fb-q header select { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.fb-obrig { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #55657b; font-size: 12.5px; }
.fb-obrig input, .fb-check input, .fb-se input[type=checkbox] { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: #1f3d63; }
.fb-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #eef1f5; color: #55657b; font-size: 15px; cursor: pointer; }
.fb-x:disabled { opacity: .35; cursor: default; }
.fb-texto { width: 100%; font-weight: 600; }
.fb-ajuda { width: 100%; font-size: 13px; }
.fb-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-opcao { display: inline-flex; align-items: center; border: 1px solid #dfe5ed; border-radius: 999px; background: #fff; overflow: hidden; }
.fb-opcao input { width: 150px; min-height: 30px; padding: 4px 10px; border: 0; background: transparent; font-size: 13px; }
.fb-opcao button { width: 26px; height: 30px; border: 0; background: none; color: #8a97a8; cursor: pointer; }
.fb-mais { padding: 6px 11px; border: 1px dashed #c6d0dc; border-radius: 999px; background: #fff; color: #42688f; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fb-se { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #eef4fb; color: #234b7b; font-size: 12.5px; }
.fb-se select { width: auto; min-height: 28px; padding: 2px 6px; font-size: 12.5px; }
.fb-se-valores { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fb-se-valores label { display: inline-flex; gap: 4px; align-items: center; }
.fb-alerta { margin: 0; padding: 6px 10px; border-radius: 8px; background: #fff6e5; color: #8a5a00; font-size: 12.5px; }
.fb-add { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-add button { padding: 7px 12px; border: 1px dashed #c6d0dc; border-radius: 10px; background: #fff; color: #42688f; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fb-fixas { margin: 0; font-size: 13px; color: #55657b; }
.fb-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fb-estilos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fb-estilo { display: grid; gap: 6px; padding: 8px; border: 1.5px solid #e3e7ee; border-radius: 12px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #0e2440; cursor: pointer; }
.fb-estilo.on { border-color: #1f3d63; box-shadow: inset 0 0 0 1px #1f3d63; }
.fb-estilo i { display: block; height: 54px; border-radius: 8px; }
.fb-estilo.a i { background: var(--cor); }
.fb-estilo.b i { background: linear-gradient(100deg, #10202a 40%, #5b6b78); }
.fb-estilo.c i { background: #f6f4ef; border: 1px solid #e3e0d6; box-shadow: inset 0 -12px 0 -8px var(--cor); }
.fb-estilo.d i { background: linear-gradient(90deg, var(--cor) 0 44%, #fff 44%); border: 1px solid #e3e7ee; }
.fb-cor { display: flex; gap: 8px; align-items: center; }
.fb-cor input[type=color] { width: 44px; min-height: 40px; padding: 2px; }
.fb-foto { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.fb-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-link code { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: #f3f5f8; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-previa { position: sticky; top: 16px; display: grid; gap: 8px; }
.fb-previa-rotulo { color: #66758a; font-size: 12px; font-weight: 600; }
.fb-celular { height: min(660px, calc(100vh - 90px)); overflow: hidden; border: 8px solid #0e2440; border-radius: 34px; background: #f6f4ef; }
@media (max-width: 1100px) { .fb-editor { grid-template-columns: 1fr; } .fb-previa { position: static; max-width: 380px; } }
@media (max-width: 560px) { .fb-duas, .fb-estilos { grid-template-columns: 1fr 1fr; } .fb-duas { grid-template-columns: 1fr; } }

/* Prontuário por paciente (23/11): enquanto o prontuário do paciente chega do servidor. */
.prontuario-carregando { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; }
