/* Ajustes da página do Dr. Farah sobre o estilo copiado da página da Dra. Selma (preto e branco). */
.marca .selo { display: block; width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; }
.marca .selo img { width: 44px; height: 44px; display: block; }
.contador-menu { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .3rem; border-radius: 99px; background: #fff; color: #000; font-size: .74rem; font-weight: 700; text-align: center; line-height: 1.3rem; }
.barra-data { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.barra-data input[type=date] { width: auto; font: inherit; padding: .55rem .7rem; border: 1px solid #c8c8c8; border-radius: 10px; }
.barra-data button { padding: .6rem 1rem; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .9rem; align-items: center; padding: .85rem .3rem; border-bottom: 1px solid var(--linha); }
.lista > li:last-child { border-bottom: 0; }
.lista .hora { font-weight: 700; font-size: 1.05rem; }
.lista .nome { font-weight: 600; }
.lista .det { font-size: .86rem; color: var(--suave); }
.lista .cancelado { opacity: .45; text-decoration: line-through; }
.selos { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.etiqueta { display: inline-block; border: 1px solid #111; border-radius: 99px; padding: .05rem .55rem; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.etiqueta.cheia { background: #111; color: #fff; }
.etiqueta.leve { border-color: #bbb; color: #555; }
.grade2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .grade2 { grid-template-columns: 1fr; } .lista > li { grid-template-columns: 3.6rem 1fr; } .selos { grid-column: 2; justify-content: flex-start; } }
textarea.laudo { min-height: 32rem; font-size: .95rem; line-height: 1.5; font-family: var(--f-texto); }
.frases { max-height: 34rem; overflow: auto; }
.frases button { display: block; width: 100%; text-align: left; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .84rem; padding: .55rem .7rem; margin: 0 0 .45rem; background: #fff; color: #111; border: 1px solid var(--linha); box-shadow: none; line-height: 1.35; }
.frases button:hover { background: #f1f1f1; transform: none; box-shadow: none; }
.pdf { width: 100%; height: 70vh; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.busca { display: flex; gap: .6rem; }
.busca input { flex: 1; }
.cab-paciente { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline; }
.cab-paciente h1 { margin: 0; }
#aviso { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(150%); background: #111; color: #fff; padding: .7rem 1.2rem; border-radius: 10px; transition: transform .25s; z-index: 50; }
#aviso.visivel { transform: translateX(-50%) translateY(0); }
@media print { .nao-imprimir { display: none !important; } }

/* ---------- Agenda em grade (copiada do painel da Leide, em preto e branco) ---------- */
.ag-barra { display: flex; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ag-barra h1 { margin: 0; flex: 1; min-width: 260px; }
.ag-vistas, .ag-nav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.ag-vistas button, .ag-nav button { padding: .55rem .95rem; }
.ag-nav input[type=date] { width: auto; font: inherit; padding: .5rem .6rem; border: 1px solid #c8c8c8; border-radius: 10px; }
.agenda { display: grid; grid-template-columns: 3.6rem repeat(6, minmax(0, 1fr)); background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); margin-bottom: .6rem; }
.agenda.ag-umdia { grid-template-columns: 3.6rem minmax(0, 1fr); }
.ag-cab { height: 3.1rem; padding: .4rem .5rem; border-bottom: 1px solid var(--linha); background: #f1f1f1; display: flex; flex-direction: column; justify-content: center; }
.ag-cab a { text-decoration: none; color: #111; font-weight: 600; }
.ag-dow { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: var(--suave); }
.ag-num { font: 700 1.25rem var(--f-titulo); }
.ag-qtd { font-size: .7rem; color: var(--suave); }
.ag-hoje .ag-cab { background: #111; }
.ag-hoje .ag-cab a, .ag-hoje .ag-dow, .ag-hoje .ag-qtd { color: #fff; }
.ag-dia { border-left: 1px solid var(--linha); min-width: 0; }
.ag-corpo { position: relative; background: repeating-linear-gradient(#f2f2f2 0 1px, transparent 1px var(--meia, 63px)); }
.ag-fechado .ag-corpo { background: repeating-linear-gradient(135deg, #efefef 0 6px, #f7f7f7 6px 12px); }
.ag-horas .ag-corpo { background: none; }
.ag-hora { position: absolute; right: .4rem; font-size: .7rem; color: var(--suave); transform: translateY(-.45rem); }
.ag-bloco { position: absolute; left: 3px; right: 3px; border-radius: 8px; overflow: hidden; font-size: .8rem; line-height: 1.25; padding: .2rem .4rem; text-decoration: none; }
.ag-atende { background: #fff; left: 0; right: 0; border-radius: 0; padding: 0; }
.ag-livre { background: transparent; border: 1.5px dashed #b5b5b5; color: var(--suave); font-size: .72rem; }
.ag-consulta { background: #111; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.ag-consulta:hover { background: #333; color: #fff; }
.ag-consulta small { display: block; opacity: .8; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-curto { white-space: nowrap; text-overflow: ellipsis; padding-top: .1rem; }
.ag-curto small { display: none; }
.ag-realizada { background: #5a5a5a; }
.ag-faltou { background: #9a9a9a; text-decoration: line-through; }
.ag-cancelado { background: #fff; color: #888; border: 1px solid #ccc; box-shadow: none; text-decoration: line-through; opacity: .7; }
.ag-bloqueio { background: repeating-linear-gradient(135deg, #e6e6e6 0 6px, #f1f1f1 6px 12px); color: var(--suave); left: 0; right: 0; border-radius: 0; font-size: .72rem; }
.ag-compacta .ag-bloco { font-size: .72rem; }
.ag-legenda { margin: 0 0 1.2rem; }
@media (max-width: 760px) { .agenda { grid-template-columns: 2.6rem repeat(6, minmax(5.5rem, 1fr)); overflow-x: auto; } }
.ag-compacta .ag-consulta { white-space: nowrap; text-overflow: ellipsis; }
/* Nome do exame embaixo da paciente: menor, itálico e discreto (responsável, 27/11/2026) */
.ag-consulta small.ag-exame { display: block; font-style: italic; font-weight: 400; font-size: .7rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-curto small.ag-exame { display: none; }

/* ---------- Recepção: bolinhas e cronômetro (iguais ao painel da Leide; as cores são o código da situação) ---------- */
.sala-bolinhas { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .45rem 0 0; }
.bolinha { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); padding: 0; cursor: pointer; opacity: .55; box-shadow: none; min-width: 0; }
.bolinha:hover, .bolinha:focus-visible { opacity: .8; transform: none; box-shadow: none; }
.bolinha.ligada { opacity: 1; border-color: #111; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111; }
.bolinha-verde, .sala-verde .ponto { background: #2e9b4a; }
.bolinha-amarelo, .sala-amarelo .ponto { background: #f2c418; }
.bolinha-azul, .sala-azul .ponto { background: #2f6fd0; }
.bolinha-vermelho, .sala-vermelho .ponto { background: #cf2e2e; }
.bolinha-laranja, .sala-laranja .ponto { background: #ef8a17; }
.bolinha-cinza, .sala-cinza .ponto { background: #8d8d8d; }
.bolinha-verde:hover, .bolinha-amarelo:hover, .bolinha-azul:hover, .bolinha-vermelho:hover, .bolinha-laranja:hover, .bolinha-cinza:hover { filter: none; }
.botao-finalizar { padding: .3rem .8rem; font-size: .75rem; margin-left: .4rem; }
.sala-selo { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.sala-selo .ponto { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.ag-consulta .sala-selo { margin-right: .25rem; vertical-align: middle; }
.ag-consulta .sala-selo .ponto { border-color: #fff; width: .72rem; height: .72rem; }
.cronometro { font-variant-numeric: tabular-nums; background: #fff4c2; color: #6b5200; border-radius: 6px; padding: 0 .35rem; }
.sala-azul .cronometro { background: #e1ebfa; color: #1d4a8f; }
.cronometro.espera-longa { background: #cf2e2e; color: #fff; font-size: 1.15rem; font-weight: 800; padding: .1rem .5rem; animation: pisca-espera 1.6s ease-in-out infinite; }
.ag-bloco .cronometro.espera-longa { font-size: .9rem; }
@keyframes pisca-espera { 50% { opacity: .65; } }
.legenda-sala { margin: 0 0 .6rem; }
.legenda-sala .sala-selo { font-weight: 400; margin-right: .5rem; }
.lista > li.rc-aguardando { background: #fffbea; }
.lista > li.rc-em_atendimento { background: #eef4fd; }

.titulo-com-acao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .3rem; }
.titulo-com-acao h2 { margin: 0; }
.titulo-grade { margin: 1.4rem 0 .6rem; }
.recepcao-hoje .lista > li { grid-template-columns: 4.2rem minmax(0, 1fr) auto; }
.recepcao-hoje .selos { align-items: center; gap: .5rem; }
.recepcao-hoje .sala-bolinhas { margin: 0; flex-wrap: nowrap; }
.cs-sala { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 1rem; }
.cs-sala .sala-bolinhas { margin: 0; }
@media (max-width: 900px) { .recepcao-hoje .lista > li { grid-template-columns: 3.6rem 1fr; } .recepcao-hoje .sala-bolinhas { flex-wrap: wrap; } }

/* Recado CISCOPAR (SUS) do dia */
.balao-ciscopar { position: relative; background: #fff; border: 2px solid #111; border-radius: 16px; padding: 1rem 1.2rem; margin: 0 0 1.2rem; box-shadow: 6px 6px 0 #111; }
.balao-ciscopar strong { font-size: 1.05rem; }
.balao-ciscopar ol { margin: .5rem 0 .4rem 1.2rem; padding: 0; }
.balao-ciscopar li { margin: .15rem 0; }
.balao-ciscopar .botao { margin-top: .3rem; }

/* ---------- Tela do laudo: barra de botões, campos, IA (27/11/2026) ---------- */
.barra-laudo { position: sticky; top: 62px; z-index: 15; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--creme); padding: .7rem 0; margin-bottom: .4rem; border-bottom: 1px solid var(--linha); }
.barra-laudo .btn-aprovar { margin-left: auto; }
.btn-gravar.gravando { background: #cf2e2e; border-color: #cf2e2e; animation: pisca-espera 1.6s ease-in-out infinite; }
.pequeno-btn { padding: .55rem .9rem; font-size: .75rem; }
.escondido { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.linha-modelo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.linha-modelo label { margin-top: 0; }
.campos-laudo { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.campo { display: grid; grid-template-columns: minmax(9rem, 30%) 1fr; gap: .6rem; align-items: start; }
.campo-inteiro { grid-template-columns: 1fr; }
.campo-rotulo { margin: 0; padding-top: .55rem; font-size: .82rem; font-weight: 700; text-transform: none; line-height: 1.25; }
.campo-valor { font-size: .92rem !important; padding: .45rem .6rem !important; }
textarea.campo-valor { resize: vertical; }
.campo.em-branco .campo-valor { border-color: #111; background: #fffbe6; }
.campo-valor.mudou { border-color: #2e9b4a; background: #eefaf1; }
.campo-valor.conferir { border-color: #cf2e2e; background: #fdecea; }
.campo-vazio { height: .5rem; }
.caixa-ia { background: #fff; border: 2px solid #111; border-radius: var(--raio); padding: 1.2rem 1.4rem; margin: 0 0 1.2rem; }
.caixa-ia h2 { margin-top: 0; }
.tabela-ia { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .6rem 0 1rem; }
.tabela-ia th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); border-bottom: 1px solid var(--linha); padding: .3rem; }
.tabela-ia td { border-bottom: 1px solid var(--linha); padding: .35rem .3rem; vertical-align: top; }
.tabela-ia tr.ia-fora td, .tabela-ia tr.ia-conferir td { background: #fdecea; }
.tabela-ia tr.ia-faltando td { background: #fffbe6; }
.conclusao-ia { width: 100%; font-size: .95rem; }
.status-laudo .carregando { margin: .4rem 0; }
@media (max-width: 700px) { .campo { grid-template-columns: 1fr; } .linha-modelo { grid-template-columns: 1fr; } .barra-laudo .btn-aprovar { margin-left: 0; } }

/* ---------- Chat da equipe (igual ao da página da Dra. Selma, em preto e branco) ---------- */
.chat-equipe { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.chat-equipe[hidden] { display: none; }
.chat-balao { border-radius: 999px; padding: .75rem 1.2rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: inline-flex; align-items: center; gap: .5rem; text-transform: none; font-size: 1rem; letter-spacing: 0; }
.chat-nao { background: #cf2e2e; color: #fff; border-radius: 999px; min-width: 1.5rem; padding: 0 .45rem; font-size: .85rem; font-weight: 700; line-height: 1.5rem; text-align: center; }
.chat-caixa { width: min(24rem, calc(100vw - 32px)); height: min(30rem, calc(100vh - 110px)); background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-caixa[hidden] { display: none; }
.chat-topo { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: #111; color: #fff; }
.chat-topo .pequeno { color: #bbb; flex: 1; }
.chat-fechar { background: none; border: 0; color: #fff; box-shadow: none; padding: .2rem .5rem; font-size: 1.1rem; }
.chat-fechar:hover { background: #333; transform: none; }
.chat-lista { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: #f4f4f4; }
.chat-msg { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; }
.chat-msg.dela { align-self: flex-start; background: #fff; border: 1px solid var(--linha); }
.chat-msg.minha { align-self: flex-end; background: #111; color: #fff; }
.chat-msg.minha .chat-quando { color: #bbb; }
.chat-texto { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-quando { font-size: .75rem; color: var(--suave); text-align: right; }
.chat-escrever { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--linha); align-items: flex-end; }
.chat-escrever textarea { flex: 1; resize: none; margin: 0; font-size: .95rem; }
.chat-escrever button { text-transform: none; letter-spacing: 0; padding: .7rem 1rem; }
@media print { .chat-equipe { display: none !important; } }
.rotulo-outros { margin-top: 1.2rem; }
.outros-achados { width: 100%; font-size: .95rem; border: 2px dashed #111 !important; background: #fafafa; }
.faltou { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: #111; color: #fff; border-radius: 14px; padding: 1rem 1.2rem; margin: .6rem 0; font-size: 1.15rem; }
.faltou strong { flex: 1; min-width: 14rem; }
.btn-completar { background: #fff; color: #111; border-color: #fff; }
.btn-completar:hover { background: #eee; color: #111; }
.btn-enviar { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.btn-enviar:hover { background: #17602d; }
.pronto-enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.faltou-texto { flex: 1; min-width: 14rem; display: flex; flex-direction: column; gap: .3rem; }
.campo-titulo { font-weight: 800; font-size: .9rem; letter-spacing: .02em; margin: .7rem 0 .1rem; border-bottom: 1px solid var(--linha); padding-bottom: .15rem; }

/* Versão nova publicada enquanto a Consulta está aberta: só avisa (27/11/2026) */
.aviso-versao { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; background: #000; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.aviso-versao button { margin-left: 8px; background: #fff; color: #000; border: 0; border-radius: 6px; padding: 6px 10px; font-weight: 600; cursor: pointer; }

/* Agenda: lateral com "+ Nova consulta" e calendário do mês (27/11/2026) */
.ag-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ag-lado { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.btn-nova { width: 100%; font-size: 1.05rem; padding: .85rem 1rem; }
@media (max-width: 980px) { .ag-layout { grid-template-columns: 1fr; } .ag-lado { position: static; } }
.mini-cal { padding: .9rem .9rem .7rem; border-radius: 22px; }
.mc-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.mc-mes { color: #d7322c; font-size: .95rem; letter-spacing: .02em; }
.mc-seta { background: transparent; color: #000; border: 0; font-size: 1.4rem; line-height: 1; padding: .1rem .5rem; cursor: pointer; border-radius: 8px; }
.mc-seta:hover { background: #eee; }
.mc-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mc-sem { font-size: .75rem; font-weight: 700; color: #222; padding: .2rem 0; }
.mc-sem.mc-fds, .mc-dom { color: #8a8a8a !important; }
.mc-dia { background: transparent; color: #111; border: 0; font: inherit; font-weight: 700; font-size: .9rem; aspect-ratio: 1; border-radius: 50%; cursor: pointer; padding: 0; }
.mc-dia:hover { background: #ececec; }
.mc-sel { background: #e6e6e6; }
.mc-hoje { background: #d7322c !important; color: #fff !important; }
.mc-hoje-btn { width: 100%; margin-top: .5rem; padding: .4rem; }
/* Pedido esperando lançar no Inteliclin */
.ag-pedido { background: #fff; border: 1.5px dashed #000; color: #000; }
/* Janela de nova consulta / reagendar */
.dlg-consulta { border: 0; border-radius: 18px; padding: 0; width: min(620px, 94vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dlg-consulta::backdrop { background: rgba(0,0,0,.45); }
.dlg-consulta form { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.dlg-topo { display: flex; justify-content: space-between; align-items: center; }
.dlg-topo h2 { margin: 0; }
.dlg-linha { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.dlg-consulta .campo { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.dlg-consulta .campo input, .dlg-consulta .campo select { font: inherit; font-weight: 400; padding: .55rem .6rem; border: 1px solid #c8c8c8; border-radius: 10px; }
.dlg-consulta .check { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.sugestoes { list-style: none; margin: 0; padding: 0; }
.sugestoes button { background: #f4f4f4; color: #000; border: 0; width: 100%; text-align: left; padding: .45rem .6rem; border-radius: 8px; margin-top: 2px; cursor: pointer; font: inherit; font-weight: 400; }
.horas-livres { display: flex; flex-wrap: wrap; gap: .35rem; }
.hora-livre { background: #fff; color: #000; border: 1.5px solid #000; border-radius: 10px; padding: .4rem .7rem; font: inherit; cursor: pointer; }
.hora-livre.escolhida { background: #000; color: #fff; }
