/* Visual premium da tela Pacientes (11/11/2026). Desenho aprovado: docs/propostas/maquetes/pacientes-premium.jpg.
   Só aparência e movimento: não muda o que nenhum botão faz. Carregado por último: vence o pacientes.css e o tema.
   Pedido junto com a aprovação: tudo que se clica cresce um pouco no mouse e muda de tom; no clique, afunda.
   Só as propriedades que mudam têm transição (nada de "transition: all"). O botão "Mostrar mais pacientes" do desenho
   ficou de fora (decisão do responsável): a lista continua inteira. */
#tela-pacientes { --np-ease: cubic-bezier(.2, .8, .2, 1); --np-mola: cubic-bezier(.34, 1.56, .64, 1); --np-sombra: 0 1px 2px rgba(20, 33, 61, .05), 0 18px 40px -26px rgba(20, 33, 61, .35); }

/* ---------- Topo: título, botões com ícone, três números e a faixa colorida embaixo ---------- */
#tela-pacientes .faixa-pacientes { display: block; margin: 0; padding: 28px 34px 6px; border-radius: 28px; box-shadow: 0 30px 60px -36px rgba(20, 33, 61, .8); }
#tela-pacientes .faixa-pacientes::after { inset: auto 0 0 0; width: auto; height: 6px; border-radius: 0; background: linear-gradient(90deg, #10B981 0 33.33%, #5B8CFF 33.33% 66.66%, #F4BE45 66.66%); opacity: .9; }
#tela-pacientes .faixa-pacientes .faixa-texto { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
#tela-pacientes .np-sobre { margin: 0; font: 700 13px var(--sans); color: #AFC0E0; }
#tela-pacientes .faixa-pacientes h1 { margin: 2px 0 0; font: 800 40px/1.05 var(--sans); letter-spacing: -.03em; color: #fff; }
#tela-pacientes .faixa-pacientes .botoes-faixa { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding-top: 6px; }
#tela-pacientes .botoes-faixa :is(.botao, .ver-como) { min-height: 40px; padding: 0 15px; gap: 8px; border-radius: 12px; font: 750 13.5px var(--sans); white-space: nowrap; text-decoration: none;
  transition: transform .2s var(--np-ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }
#tela-pacientes .botoes-faixa .botao svg.ic { width: 16px; height: 16px; transition: color .2s ease, transform .3s var(--np-ease); }
#tela-pacientes .botoes-faixa :is(.botao.claro, .ver-como.claro) { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
#tela-pacientes .botoes-faixa :is(.botao, .ver-como):hover:not(:disabled) { transform: scale(1.03); }
#tela-pacientes .botoes-faixa :is(.botao.claro, .ver-como.claro):hover { background-color: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .38); }
#tela-pacientes .botoes-faixa .botao.claro:hover svg.ic { color: #6EE7B7; }
#tela-pacientes .botoes-faixa :is(.botao, .ver-como):active:not(:disabled) { transform: scale(.97); transition-duration: .1s; }
#tela-pacientes .botoes-faixa :is(.botao, .ver-como):focus-visible { outline: 2px solid #6EE7B7; outline-offset: 2px; }

#tela-pacientes .faixa-pacientes .np-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
#tela-pacientes .np-numeros > div { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 20px 18px 0; border-left: 0; }
#tela-pacientes .np-numeros > div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
#tela-pacientes .np-total { --np-c: #6EE7B7; }
#tela-pacientes .np-semana { --np-c: #8FB0FF; }
#tela-pacientes .np-aniv { --np-c: #F4BE45; }
#tela-pacientes .np-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--np-c); }
#tela-pacientes .np-ic svg.ic { width: 20px; height: 20px; }
#tela-pacientes .np-num { min-width: 0; }
#tela-pacientes .np-numeros small { display: block; max-width: none; margin: 0; font: 650 12.5px/1.3 var(--sans); color: #AFC0E0; }
#tela-pacientes .np-numeros b, #tela-pacientes .np-numeros .np-total b { display: block; margin-top: 2px; font: 800 28px/1.1 var(--sans); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Busca com a lupa e os filtros numa régua; "Para arrumar" na faixa de baixo ----------
   A busca e os filtros dividem a mesma linha: a caixa dos filtros ocupa a linha toda e deixa o começo para a busca
   (os filtros continuam dentro de #filtros-pacientes, com os mesmos cliques). */
#tela-pacientes .barra-pacientes { --np-busca: clamp(240px, 33%, 340px); display: grid; grid-template-columns: var(--np-busca) minmax(0, 1fr); align-items: start; gap: 0; margin: 18px 0; }
#tela-pacientes .barra-pacientes > .busca { grid-area: 1 / 1; position: relative; z-index: 2; width: 100%; height: 46px; padding: 0 16px 0 44px; border: 1px solid #E4E9F1; border-radius: 14px; background: #fff url("imagens/lupa.svg") no-repeat 15px center / 17px; box-shadow: 0 1px 2px rgba(20, 33, 61, .05); font: 600 14px var(--sans); color: #14213D;
  transition: border-color .2s ease, box-shadow .2s ease; }
#tela-pacientes .barra-pacientes > .busca::placeholder { color: #6B7690; opacity: 1; }
#tela-pacientes .barra-pacientes > .busca:hover { border-color: #CBD3E0; }
#tela-pacientes .barra-pacientes > .busca:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .22); }
#tela-pacientes .barra-pacientes:has(.plano-filtro) > .busca { padding-right: 16px; }
#tela-pacientes .barra-pacientes > .filtros-pacientes { grid-area: 1 / 1 / auto / -1; display: grid; grid-template-columns: var(--np-busca) minmax(0, 1fr); column-gap: 12px; row-gap: 14px; }
#tela-pacientes .filtros-pacientes > .filtros-dia { grid-column: 2; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
#tela-pacientes .filtros-pacientes > .arrumar-pacientes { grid-column: 1 / -1; grid-row: 2; }

/* A régua: o fundo marinho desliza até o filtro escolhido; no mouse, os outros crescem e ganham tom azul */
#tela-pacientes .filtros-dia .abas-regua { position: relative; display: inline-flex; gap: 4px; padding: 5px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 12px 32px -22px rgba(20, 33, 61, .3); }
#tela-pacientes .filtros-dia .abas-regua > .filtro { display: inline-flex; align-items: center; gap: 8px; height: 36px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 13px; background: transparent; box-shadow: none; font: 700 13.5px var(--sans); color: #4A5875; white-space: nowrap;
  transition: transform .2s var(--np-ease), background-color .2s ease, color .2s ease; }
#tela-pacientes .filtros-dia .filtro svg.ic { width: 16px; height: 16px; color: #5B6781; transition: color .2s ease, transform .3s var(--np-mola); }
#tela-pacientes .filtros-dia .abas-regua > .filtro em { padding: 0 8px; border-radius: 99px; background: #EEF1F6; color: #4A5875; font: 800 12px/1.6 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
#tela-pacientes .filtros-dia .abas-regua > .filtro:hover:not([aria-pressed="true"]) { transform: scale(1.03); background-color: #EEF3FF; color: #14213D; }
#tela-pacientes .filtros-dia .abas-regua > .filtro:hover:not([aria-pressed="true"]) svg.ic { color: #2F5BD3; transform: scale(1.1); }
#tela-pacientes .filtros-dia .abas-regua > .filtro:hover:not([aria-pressed="true"]) em { background: #DDE7FB; color: #14213D; }
#tela-pacientes .filtros-dia .abas-regua > .filtro:active { transform: scale(.97); transition-duration: .1s; }
#tela-pacientes .filtros-dia .abas-regua > .filtro[aria-pressed="true"] { color: #fff; }
#tela-pacientes .filtros-dia .abas-regua > .filtro[aria-pressed="true"] svg.ic { color: #6EE7B7; }
#tela-pacientes .filtros-dia .abas-regua > .filtro[aria-pressed="true"] em { background: rgba(255, 255, 255, .16); color: #fff; }
#tela-pacientes .filtros-dia .abas-regua.k-desliza > .k-ind { border-radius: 13px; background: linear-gradient(135deg, #14213D, #24396B); box-shadow: 0 8px 18px -10px rgba(20, 33, 61, .8); }

/* O plano (só aparece quando algum paciente tem plano): uma pílula ao lado da régua, com a lista abrindo embaixo */
#tela-pacientes .barra-pacientes .plano-filtro { position: relative; top: auto; right: auto; z-index: 5; }
#tela-pacientes .barra-pacientes .filtros-dia .plano-botao { display: inline-flex; align-items: center; gap: 8px; height: 46px; max-width: 240px; padding: 0 36px 0 14px; border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 12px 32px -22px rgba(20, 33, 61, .3); font: 700 13.5px var(--sans);
  transition: transform .2s var(--np-ease), background-color .2s ease, color .2s ease; }
#tela-pacientes .filtros-dia .plano-botao svg.ic { width: 16px; height: 16px; color: #5B6781; }
#tela-pacientes .filtros-dia .plano-botao:hover { transform: scale(1.03); background-color: #EEF3FF; }
#tela-pacientes .filtros-dia .plano-botao[aria-pressed="true"]:hover { background-color: #24396B; }
#tela-pacientes .filtros-dia .plano-botao:active { transform: scale(.97); }
#tela-pacientes .barra-pacientes .plano-menu { left: 0; right: auto; border-radius: 16px; }
/* Em linha: o plano.css (Planos de aula) usa o mesmo nome de classe em coluna */
#tela-pacientes .plano-opcao { flex-direction: row; transition: background-color .2s ease, transform .2s var(--np-ease); }
#tela-pacientes .plano-opcao:hover { transform: scale(1.02); background: #EEF3FF; }
#tela-pacientes .plano-opcao:focus-visible { outline: 2px solid #059669; outline-offset: -2px; }

/* "Para arrumar": faixa âmbar com listras finas; cada item é uma pílula com o número numa bolinha colorida */
#tela-pacientes .arrumar-pacientes { position: relative; isolation: isolate; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 10px 12px 10px 16px; border: 1px solid #F3E4BB; border-radius: 20px; background: linear-gradient(90deg, #FFF6DF 0%, #FBF8F2 40%, #fff 80%); }
#tela-pacientes .arrumar-pacientes::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(244, 190, 69, .1) 0 10px, transparent 10px 26px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 40%); mask-image: linear-gradient(90deg, #000, transparent 40%); }
#tela-pacientes .np-arrumar-tit { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font: 800 14px var(--sans); color: #14213D; }
#tela-pacientes .np-arrumar-tit svg.ic { width: 18px; height: 18px; color: #B7791F; }
#tela-pacientes .arrumar-item { --np-c: #A16207; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 5px; border: 1px solid #EDE3C8; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(20, 33, 61, .05); font: 750 13px var(--sans); color: #4A5875; cursor: pointer;
  transition: transform .2s var(--np-ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }
#tela-pacientes .arrumar-item.t-vermelho { --np-c: linear-gradient(135deg, #B42318, #912018); }
#tela-pacientes .arrumar-item.t-coral { --np-c: linear-gradient(135deg, #C8412A, #A93420); }
#tela-pacientes .arrumar-item.t-ambar { --np-c: linear-gradient(135deg, #A16207, #854D0E); }
#tela-pacientes .arrumar-item.t-azul { --np-c: linear-gradient(135deg, #2F5BD3, #2448B0); }
#tela-pacientes .arrumar-item i { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--np-c); color: #fff; font: 800 12px var(--sans); font-style: normal; font-variant-numeric: tabular-nums; transition: transform .3s var(--np-mola); }
#tela-pacientes .arrumar-item:hover { transform: scale(1.03); border-color: #F0D58A; border-style: solid; background: #FFFBEF; color: #14213D; box-shadow: 0 10px 18px -12px rgba(183, 121, 31, .6); }
#tela-pacientes .arrumar-item:hover i { transform: scale(1.08); }
#tela-pacientes .arrumar-item:active { transform: scale(.97); transition-duration: .1s; }
#tela-pacientes .arrumar-item[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #14213D, #24396B); color: #fff; box-shadow: 0 8px 18px -10px rgba(20, 33, 61, .8); }
#tela-pacientes .arrumar-item:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
#tela-pacientes .arrumar-pacientes .k-info { width: 32px; height: 32px; margin-left: auto; background: #fff; border: 1px solid #E4E9F1; color: #5B6781; }
/* A dica do (i) abre para a esquerda: ele fica na ponta direita da faixa */
#tela-pacientes .arrumar-pacientes .k-dica-longa::after { left: auto; right: -6px; transform: translateY(4px); }
#tela-pacientes .arrumar-pacientes .k-dica-longa:is(:hover, :focus-visible)::after { transform: translateY(0); }

/* ---------- A lista: cartão branco, títulos numa faixa com ícone, letras em quadrado marinho ---------- */
#tela-pacientes .tabela-pacientes { --lp-colunas: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.5fr); padding: 6px 10px 12px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--np-sombra); overflow: visible; }
#tela-pacientes .tabela-pacientes.selecionando { --lp-colunas: 22px minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.5fr); }
#tela-pacientes .linha-pasta.lp-cab { isolation: isolate; overflow: hidden; min-height: 0; margin: 10px 0 6px; padding: 12px 14px; border: 1px solid #DCE5F5; border-radius: 14px; background: linear-gradient(90deg, #E4ECFB 0%, #F3F6FB 55%, #F8FAFD 100%); font: 800 12.5px var(--sans); color: #2F4A7E; }
#tela-pacientes .linha-pasta.lp-cab::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(91, 140, 255, .08) 0 10px, transparent 10px 26px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%); mask-image: linear-gradient(90deg, #000, transparent 45%); }
#tela-pacientes .linha-pasta.lp-cab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #5B8CFF, #6EE7B7 40%, transparent 85%); opacity: .55; }
#tela-pacientes .lp-cab > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
#tela-pacientes .lp-cab > span > svg.ic { width: 15px; height: 15px; color: #5B8CFF; stroke-width: 2; }

#tela-pacientes .tabela-pacientes .lp-letra { display: flex; align-items: center; gap: 12px; width: auto; margin: 14px 4px 4px; padding: 0; border: 0; background: none; font: 700 12.5px var(--sans); color: #5B6781; }
#tela-pacientes .lp-letra > b { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #14213D, #24396B); box-shadow: 0 8px 16px -10px rgba(20, 33, 61, .9); font: 800 15px var(--sans); color: #fff; }
#tela-pacientes .lp-letra > s { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #D5DCE8, transparent); text-decoration: none; }
#tela-pacientes .lp-letra > small { font: 700 12.5px var(--sans); color: #5B6781; white-space: nowrap; }
#tela-pacientes .lp-letra.sel-grupo { padding: 4px 6px 4px 4px; border-radius: 14px; transition: background-color .2s ease, transform .2s var(--np-ease); }
#tela-pacientes .lp-letra.sel-grupo:hover { transform: scale(1.01); background: #F2F6FF; }
#tela-pacientes .lp-letra.sel-grupo:active { transform: scale(.98); }

/* As linhas: sem traço entre elas; no mouse, crescem um pouco e ganham um tom azul */
#tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente { min-height: 60px; padding: 9px 14px; border: 0; border-radius: 16px; background: transparent; background-image: none;
  transition: transform .25s var(--np-ease), background-color .25s ease, box-shadow .25s ease; }
#tela-pacientes .tabela-pacientes .linha-paciente + .linha-paciente { margin-top: 1px; }
#tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente:hover { transform: scale(1.01); background-color: #F3F7FF; box-shadow: inset 0 0 0 1px #E3EAF7, 0 14px 26px -20px rgba(20, 33, 61, .5); }
#tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente:active { transform: scale(.99); transition-duration: .1s; }
#tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente[aria-pressed="true"] { background-color: #EDF9F3; box-shadow: inset 3px 0 0 #10B981, inset 0 0 0 1px #CDEEDF; }
#tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente:focus-visible { outline: 2px solid #059669; outline-offset: 1px; }
#tela-pacientes .lp-av { box-shadow: 0 0 0 3px #fff; transition: transform .3s var(--np-mola), box-shadow .25s ease; }
#tela-pacientes .lp-linha:hover .lp-av { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #C9D7F5; }
#tela-pacientes .lp-nome b { font: 750 14.5px/1.25 var(--sans); color: #14213D; }
#tela-pacientes .lp-nome small { font: 650 12.5px var(--sans); color: #5B6781; }

/* Plano em pílula: verde com o plano, cinza sem */
#tela-pacientes .np-plano { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 0 10px; border-radius: 99px; background: #EAF7F1; color: #047857; font: 750 12.5px var(--sans); white-space: nowrap; }
#tela-pacientes .np-plano:has(.cal-pl) { padding-left: 3px; }
#tela-pacientes .np-plano > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#tela-pacientes .np-plano.sem { background: #F1F3F8; color: #5B6781; }
#tela-pacientes .lp-plano .np-plano .cal-pl.mini { width: 20px; height: 20px; border-radius: 99px; font-size: 9px; }

/* Próxima sessão: o calendário verde, dia e hora na mesma linha */
#tela-pacientes .lp-linha > .lp-quando { display: flex; align-items: center; gap: 8px; min-width: 0; }
#tela-pacientes .lp-quando > svg.ic { width: 15px; height: 15px; color: #059669; transition: transform .3s var(--np-mola); }
#tela-pacientes .lp-quando > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; font: 700 13px var(--sans); color: #4A5875; white-space: nowrap; }
#tela-pacientes .lp-quando b { display: inline; font: 700 13px var(--sans); color: #4A5875; }
#tela-pacientes .lp-quando small { font: 700 13px var(--sans); color: #4A5875; font-variant-numeric: tabular-nums; }
#tela-pacientes .lp-quando small::before { content: '·'; margin-right: 6px; }
#tela-pacientes .lp-quando.nada > span { font-weight: 650; color: #5B6781; }
#tela-pacientes .lp-quando.nada > svg.ic { color: #9AA8C4; }
#tela-pacientes .lp-linha:hover .lp-quando:not(.nada) > svg.ic { transform: scale(1.12); }

/* Profissional na cor dele */
#tela-pacientes .lp-prof .prof-chip { height: 32px; padding: 0 12px 0 4px; font: 800 12.5px var(--sans); transition: filter .2s ease; }
#tela-pacientes .lp-prof .prof-chip i { width: 24px; height: 24px; font-size: 9px; }
#tela-pacientes .lp-prof .pc-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tela-pacientes .lp-linha:hover .lp-prof .prof-chip { filter: saturate(1.25); }

/* Cadastro: falta em pílula com a bolinha; completo com o ✓ verde */
#tela-pacientes .lp-linha > .lp-cad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#tela-pacientes .lp-cad .lp-pilula { min-height: 26px; padding: 0 10px; font: 800 12px var(--sans); }
#tela-pacientes .lp-cad .lp-pilula.amarelo { background: #FFF4D6; color: #8A5A0B; }
#tela-pacientes .lp-cad .lp-pilula.coral { background: #FDECE8; color: #B23A25; }
#tela-pacientes .lp-cad .lp-pilula.vermelho { background: #FEE4E2; color: #B42318; box-shadow: inset 0 0 0 1px #FECDCA; }
#tela-pacientes .lp-completo { display: inline-flex; align-items: center; gap: 6px; font: 800 12.5px var(--sans); color: #047857; }
#tela-pacientes .lp-completo svg.ic { width: 15px; height: 15px; stroke-width: 2.6; }
#tela-pacientes .lp-cad .selo-saldo { margin-left: 0; min-height: 22px; border-radius: 99px; padding: 0 8px; }

/* Selecionando vários: caixas arredondadas; marcada, verde em degradê */
#tela-pacientes .tabela-pacientes .caixa-sel { width: 20px; height: 20px; border: 2px solid #9AA8C4; border-radius: 6px; background: #fff; transition: background-color .2s ease, border-color .2s ease, transform .25s var(--np-mola); }
#tela-pacientes .selecionando .linha-pasta[aria-pressed="true"] .caixa-sel,
#tela-pacientes .tabela-pacientes :is(.sel-todos, .sel-grupo):is([aria-pressed="true"], [aria-pressed="mixed"]) .caixa-sel { border-color: transparent; background: linear-gradient(135deg, #059669, #047857); }
#tela-pacientes .selecionando .linha-pasta:hover .caixa-sel { transform: scale(1.1); border-color: #059669; }
#tela-pacientes .tabela-pacientes .sel-todos { position: relative; }
#tela-pacientes .barra-selecao:not(:empty) { padding: 10px 12px 10px 16px; border: 1px solid #CDEEDF; border-radius: 18px; background: linear-gradient(90deg, #E9F8F1, #fff 70%); box-shadow: var(--np-sombra); }
#tela-pacientes .barra-selecao .sel-conta { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 99px; background: linear-gradient(135deg, #14213D, #24396B); color: #fff; font: 800 13px var(--sans); font-variant-numeric: tabular-nums; }
#tela-pacientes .barra-selecao .link { min-height: 32px; padding: 0 10px; border-radius: 10px; font-weight: 750; text-decoration: none; transition: background-color .2s ease, transform .2s var(--np-ease); }
#tela-pacientes .barra-selecao .link:hover { transform: scale(1.03); background: #DDF3E9; }
#tela-pacientes .barra-selecao .botao:hover:not(:disabled) { transform: scale(1.03); }
/* A dica do Shift agora é o (i) ao lado do "Selecionar todos" (antes era uma linha de texto embaixo) */
#tela-pacientes .barra-selecao .dica-sel { order: 0; flex-basis: auto; margin: 0 0 0 -6px; }

/* Nenhum paciente: um cartão convidativo com ícone */
#tela-pacientes .tabela-pacientes .np-vazio { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; }
#tela-pacientes .np-vazio-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #E4ECFB, #F3F6FB); color: #2F5BD3; box-shadow: inset 0 0 0 1px #DCE5F5; }
#tela-pacientes .np-vazio-ic svg.ic { width: 24px; height: 24px; }
#tela-pacientes .np-vazio b { font: 800 16px var(--sans); color: #14213D; }

/* Aniversariantes do mês: o mesmo cartão, os grupos em pílula e as linhas com o mesmo movimento */
#tela-pacientes .tabela-pacientes .aniv-topo { margin: 4px 4px 6px; padding: 10px 6px 12px; border-bottom: 1px solid #EEF1F6; }
#tela-pacientes .tabela-pacientes .aniv-grupo { margin: 10px 4px 4px; padding: 0; border: 0; background: none; }
#tela-pacientes .tabela-pacientes .aniv-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; background: linear-gradient(135deg, #14213D, #24396B); color: #fff; font: 800 12.5px var(--sans); }
#tela-pacientes .tabela-pacientes .aniv-grupo-hoje .aniv-chip { background: linear-gradient(135deg, #A16207, #854D0E); }
#tela-pacientes .tabela-pacientes .aniv-grupo small { font: 800 12px var(--sans); color: #5B6781; }
#tela-pacientes .tabela-pacientes .aniv-com-envio { border-radius: 16px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  #tela-pacientes .tabela-pacientes { --lp-colunas: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.3fr); }
  #tela-pacientes .tabela-pacientes.selecionando { --lp-colunas: 22px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.3fr); }
}
@media (max-width: 900px) {
  #tela-pacientes .faixa-pacientes .botoes-faixa { justify-content: flex-start; }
  #tela-pacientes .barra-pacientes { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  #tela-pacientes .barra-pacientes > .filtros-pacientes { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  #tela-pacientes .filtros-dia .abas-regua { max-width: 100%; }
}
@media (max-width: 760px) {
  #tela-pacientes .tabela-pacientes { --lp-colunas: minmax(0, 1fr) auto; padding: 4px 6px 10px; }
  #tela-pacientes .tabela-pacientes.selecionando { --lp-colunas: 22px minmax(0, 1fr) auto; }
  #tela-pacientes .lp-linha > .lp-quando { justify-content: flex-end; text-align: right; }
  #tela-pacientes .lp-quando > span { flex-direction: column; align-items: flex-end; }
  #tela-pacientes .lp-quando small::before { content: none; }
  #tela-pacientes .lp-linha > .lp-cad { padding-left: 50px; margin-top: -4px; }
  #tela-pacientes .tabela-pacientes .linha-pasta.linha-paciente { padding: 9px 10px; }
}
@media (max-width: 720px) {
  #tela-pacientes .faixa-pacientes { padding: 22px 20px 6px; border-radius: 24px; }
  #tela-pacientes .faixa-pacientes h1 { font-size: 30px; }
  #tela-pacientes .faixa-pacientes .np-numeros { margin-top: 18px; }
  #tela-pacientes .np-numeros > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 8px 16px 0; }
  #tela-pacientes .np-numeros > div + div { padding-left: 12px; }
  #tela-pacientes .np-ic { width: 34px; height: 34px; border-radius: 11px; }
  #tela-pacientes .np-ic svg.ic { width: 17px; height: 17px; }
  #tela-pacientes .np-numeros small { font-size: 11.5px; }
  #tela-pacientes .np-numeros b, #tela-pacientes .np-numeros .np-total b { font-size: 22px; }
  #tela-pacientes .arrumar-pacientes { padding: 10px 10px 10px 14px; border-radius: 18px; }
  #tela-pacientes .np-arrumar-tit { width: 100%; }
  #tela-pacientes .arrumar-pacientes .k-info { position: absolute; top: 8px; right: 8px; margin: 0; }
}
@media (pointer: coarse) {
  #tela-pacientes .filtros-dia .abas-regua > .filtro, #tela-pacientes .arrumar-item { min-height: 40px; }
  #tela-pacientes .barra-selecao .link { min-height: 40px; }
  #tela-pacientes .tabela-pacientes .sel-todos { width: 40px; height: 40px; margin: -9px; }
}
@media (prefers-reduced-motion: reduce) {
  #tela-pacientes :is(.botoes-faixa .botao, .botoes-faixa .ver-como, .botoes-faixa .botao svg.ic, .filtros-dia .abas-regua > .filtro, .filtros-dia .filtro svg.ic, .filtros-dia .abas-regua > .filtro em,
    .plano-botao, .plano-opcao, .arrumar-item, .arrumar-item i, .lp-letra.sel-grupo, .linha-pasta.linha-paciente, .lp-av, .lp-quando > svg.ic, .caixa-sel, .barra-selecao .link, .barra-pacientes > .busca) { transition: none; }
  #tela-pacientes :is(.botoes-faixa .botao, .botoes-faixa .ver-como, .filtros-dia .abas-regua > .filtro, .filtros-dia .filtro svg.ic, .plano-botao, .plano-opcao, .arrumar-item, .arrumar-item i,
    .lp-letra.sel-grupo, .tabela-pacientes .linha-pasta.linha-paciente, .lp-av, .lp-quando > svg.ic, .caixa-sel, .barra-selecao .link, .barra-selecao .botao):is(:hover, :active) { transform: none; }
  #tela-pacientes .lp-linha:hover :is(.lp-av, .lp-quando > svg.ic), #tela-pacientes .arrumar-item:hover i, #tela-pacientes .selecionando .linha-pasta:hover .caixa-sel,
  #tela-pacientes .filtros-dia .abas-regua > .filtro:hover svg.ic { transform: none; }
}

/* Acessibilidade (11/11/2026, revisão WCAG 2.2 AA feita com o ECC): a caixa de marcar com borda visível, os filtros
   quebrando linha no celular (nenhum fica escondido), menos movimento de verdade e a opção escolhida no alto contraste. */
#tela-pacientes .tabela-pacientes .caixa-sel { border-color: #6B7690; }
@media (max-width: 720px) { #tela-pacientes .filtros-dia .abas-regua { display: flex; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  #tela-pacientes .filtros-dia .abas-regua > .filtro:hover:not([aria-pressed="true"]), #tela-pacientes .filtros-dia .abas-regua > .filtro:hover:not([aria-pressed="true"]) svg.ic { transform: none; }
}
@media (forced-colors: active) { #tela-pacientes .filtros-dia [aria-pressed="true"] { outline: 2px solid Highlight; } }
