/* O cartão do tratamento pago antes, premium (18/11/2026; maquete aprovada em docs/propostas/maquetes/tratamento-premium.html,
   o responsável: "Ficou bom, mas lembre em conectar com todo o app e não só Acupuntura"). Vale para qualquer procedimento
   por sessão e para o pacote de equipamento (tratamento-cartao.js). Ao passar o mouse: zoom leve e troca de tom. */
.tc { --tc-tinta: #14213D; --tc-tinta-2: #4A5875; --tc-linha: #E6EAF2; --tc-verde: #10B981; --tc-verde-esc: #059669; --tc-coral: #F07A62; --tc-verm: #B42318; --tc-ambar: #F4BE45; --tc-ease: cubic-bezier(.2, .8, .2, 1);
  padding: 0; margin: 0 0 22px; overflow: hidden; background: #fff; border: 1px solid var(--tc-linha); border-radius: 26px; box-shadow: 0 24px 50px -34px rgba(20, 33, 61, .45); color: var(--tc-tinta); }
.tc .tc-svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* A · O topo */
.tc .tc-topo { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; color: #fff;
  background: radial-gradient(700px 220px at 92% -40%, rgba(16, 185, 129, .38), transparent 62%), radial-gradient(520px 200px at 0% 140%, rgba(91, 140, 255, .26), transparent 60%), linear-gradient(135deg, #14213D 0%, #1A2C55 55%, #0F2D3F 100%); }
.tc .tc-topo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 16px, transparent 16px 40px); pointer-events: none; }
.tc .tc-id { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; }
.tc .tc-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, #34D399, #059669); color: #052E22; box-shadow: 0 10px 22px -10px rgba(16, 185, 129, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tc .tc-ic .tc-svg { width: 27px; height: 27px; stroke-width: 1.8; }
.tc .tc-id small { display: block; font: 700 12.5px var(--sans); color: #AFC0E0; letter-spacing: .02em; }
.tc .tc-id h2 { margin: 0 0 7px; color: #fff; font: 800 24px/1.15 var(--sans); letter-spacing: -.02em; }
.tc .tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc .tc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font: 700 12px var(--sans); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #DCE5F5; }
.tc .tc-chip .tc-svg { width: 14px; height: 14px; }
.tc .tc-chip.ok { background: rgba(16, 185, 129, .18); border-color: rgba(110, 231, 183, .35); color: #B7F0D8; }
.tc .tc-valor { position: relative; text-align: right; flex: none; }
.tc .tc-valor b { display: block; font: 800 29px/1.05 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tc .tc-valor small { font: 600 13px var(--sans); color: #AFC0E0; }
.tc .tc-corpo { padding: 22px 26px; }

/* B · O anel e os números */
.tc .tc-anda { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.tc .tc-anel { position: relative; width: 124px; height: 124px; display: grid; place-items: center; }
.tc .tc-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc .tc-anel-fundo { fill: none; stroke: #E8EDF5; stroke-width: 11; }
.tc .tc-anel-cheio { fill: none; stroke: var(--tc-verde); stroke-width: 11; stroke-linecap: round; }
.tc .tc-anel.pouco .tc-anel-cheio { stroke: var(--tc-ambar); }
.tc .tc-anel.fim .tc-anel-cheio { stroke: var(--tc-coral); stroke-linecap: butt; }
.tc .tc-anel > div { position: relative; text-align: center; line-height: 1.05; }
.tc .tc-anel b { display: block; font: 800 36px var(--sans); letter-spacing: -.04em; }
.tc .tc-anel.fim b { color: var(--tc-verm); }
.tc .tc-anel small { font: 700 11.5px var(--sans); color: var(--tc-tinta-2); }
.tc .tc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tc .tc-num { --c: var(--tc-verde); position: relative; overflow: hidden; border: 1px solid var(--tc-linha); border-radius: 18px; padding: 13px 16px 15px; background: linear-gradient(180deg, #fff, #FAFBFD); }
.tc .tc-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.tc .tc-num small { display: flex; align-items: center; gap: 7px; font: 700 12.5px var(--sans); color: var(--tc-tinta-2); }
.tc .tc-num small .tc-svg { width: 16px; height: 16px; color: var(--c); }
.tc .tc-num b { display: block; margin-top: 3px; font: 800 21px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tc .tc-num.az { --c: #5B8CFF; }
.tc .tc-num.co { --c: var(--tc-coral); }
.tc .tc-num.am { --c: var(--tc-ambar); }
.tc .tc-aviso { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 16px; font: 700 14px var(--sans);
  background: repeating-linear-gradient(135deg, #FFFAEB 0 12px, #FEF3C7 12px 24px); border: 1px solid #F6DFA6; color: #7C4A03; }
.tc .tc-aviso.fim { background: repeating-linear-gradient(135deg, #FFF4F1 0 12px, #FFEDE8 12px 24px); border-color: #FAD3C9; color: #9A2B17; }
.tc .tc-aviso > span:first-child { display: inline-flex; align-items: center; gap: 9px; }

/* C · A cartela das sessões */
.tc .tc-h3 { margin: 22px 0 10px; font: 800 14px var(--sans); }
.tc .tc-cartela { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.tc .tc-selo { display: grid; justify-items: center; gap: 5px; padding: 10px 4px 9px; border-radius: 16px; border: 1px solid var(--tc-linha); background: #fff;
  transition: transform .18s var(--tc-ease), background-color .18s var(--tc-ease), border-color .18s var(--tc-ease), box-shadow .18s var(--tc-ease); }
.tc .tc-selo i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 12.5px var(--sans); font-style: normal; border: 2px dashed #CBD5E3; color: #7B869C; }
.tc .tc-selo span { font: 700 11.5px var(--sans); color: var(--tc-tinta-2); font-variant-numeric: tabular-nums; }
.tc .tc-selo.feita { background: linear-gradient(180deg, #fff, #ECFDF5); border-color: #C9EBD7; }
.tc .tc-selo.feita i { border: 0; color: #fff; background: linear-gradient(145deg, #34D399, #059669); box-shadow: 0 6px 12px -6px rgba(5, 150, 105, .9); }
.tc .tc-selo.falta { background: linear-gradient(180deg, #fff, #FFF7ED); border-color: #F8D9B5; }
.tc .tc-selo.falta i { border: 0; color: #fff; background: linear-gradient(145deg, #FBBF24, #D97706); }
.tc .tc-selo.aval { background: linear-gradient(180deg, #fff, #EEF3FF); border-color: #CCD8F6; }
.tc .tc-selo.aval i { border: 0; color: #fff; background: linear-gradient(145deg, #7AA2FF, #3F6FE0); }
.tc .tc-selo.prox i { border-color: var(--tc-verde); color: var(--tc-verde-esc); }
.tc .tc-selo.prox span { color: var(--tc-verde-esc); }
.tc .tc-selo:hover { transform: scale(1.06); border-color: #9FDCC0; box-shadow: 0 10px 18px -12px rgba(20, 33, 61, .45); }
.tc .tc-selo.feita:hover { background: linear-gradient(180deg, #F2FBF6, #D9F6E8); }

/* D · O extrato pelo WhatsApp */
.tc .tc-extrato { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; padding: 0; border: 0; background: none; }
.tc .tc-zap { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #ECFDF5, #F4FBF8); border: 1px solid #C9EBD7; min-width: 0; }
.tc .tc-zap-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #25D366; color: #fff; flex: none; box-shadow: 0 8px 16px -8px rgba(37, 211, 102, .9); }
.tc .tc-zap b { display: flex; align-items: center; gap: 6px; font: 800 14.5px var(--sans); }
.tc .tc-zap small { display: block; font: 600 12px var(--sans); color: var(--tc-tinta-2); }
.tc .tc-i { width: 17px; height: 17px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 800 10.5px var(--sans); color: var(--tc-tinta-2); border: 1.5px solid #AEB8CB; cursor: help; }
.tc .tc-i:focus-visible { outline: 2px solid var(--tc-verde-esc); outline-offset: 2px; }
.tc .tc-bt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 8px; border-radius: 18px; border: 1px solid var(--tc-linha); background: #fff; color: var(--tc-tinta); font: 800 13.5px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--tc-ease), background-color .18s var(--tc-ease), border-color .18s var(--tc-ease), box-shadow .18s var(--tc-ease); }
.tc .tc-bt .tc-svg { width: 22px; height: 22px; color: var(--tc-tinta-2); }
.tc .tc-bt:hover { transform: scale(1.04); background: #EEF3FC; border-color: #C5D3EA; box-shadow: 0 12px 22px -16px rgba(20, 33, 61, .5); }
.tc .tc-bt.forte { color: #fff; border: 0; background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 12px 22px -14px rgba(5, 150, 105, .95); }
.tc .tc-bt.forte .tc-svg { color: #fff; }
.tc .tc-bt.forte:hover { background: linear-gradient(135deg, #34D399, #047857); }
.tc .tc-bt:disabled { opacity: .6; cursor: wait; transform: none; }
.tc .tc-bt:focus-visible, .tc .tc-mini:focus-visible { outline: 2px solid var(--tc-verde-esc); outline-offset: 2px; }

/* E · Os arquivos (planos-anexos.js põe o bloco antes das ações) */
.tc .pa-arquivos { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--tc-linha); border-radius: 16px; background: #F8FAFC; }
.tc .pa-arq-link { max-width: 360px; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--tc-linha); transition: transform .18s var(--tc-ease), background-color .18s var(--tc-ease); }
.tc .pa-arq-link:hover { transform: scale(1.04); background: #F0FBF6; text-decoration: none; }
.tc .pa-arq-novo { margin-left: 0; padding: 6px 12px; border-radius: 12px; border: 1.5px dashed #B7C3D6; font-weight: 800; color: var(--tc-tinta-2); transition: transform .18s var(--tc-ease), background-color .18s var(--tc-ease), border-color .18s var(--tc-ease); }
.tc .pa-arq-novo:hover { transform: scale(1.04); background: #EEF3FC; border-color: #8FA3C4; color: var(--tc-tinta); }

/* F · As ações do lançamento */
.tc .tc-acoes { gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--tc-linha); }
.tc .tc-acoes:empty { display: none; }
.tc .tc-mini { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; border: 1px solid var(--tc-linha); background: #fff; font: 700 13px var(--sans); color: var(--tc-tinta-2); cursor: pointer;
  transition: transform .18s var(--tc-ease), background-color .18s var(--tc-ease), color .18s var(--tc-ease), border-color .18s var(--tc-ease); }
.tc .tc-mini .tc-svg { width: 16px; height: 16px; }
.tc .tc-mini:hover { transform: scale(1.04); background: #EEF3FC; color: var(--tc-tinta); }
.tc .tc-mini.ver { color: var(--tc-verm); }
.tc .tc-mini.ver:hover { background: #FEF0EE; border-color: #F7C4BB; color: #8A1C12; }

@media (max-width: 860px) {
  .tc .tc-topo { flex-wrap: wrap; }
  .tc .tc-valor { text-align: left; }
  .tc .tc-anda { grid-template-columns: 1fr; justify-items: center; }
  .tc .tc-nums { width: 100%; }
  .tc .tc-extrato { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc .tc-zap { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tc .tc-nums { grid-template-columns: 1fr; }
  .tc .tc-corpo, .tc .tc-topo { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc .tc-selo, .tc .tc-bt, .tc .tc-mini, .tc .pa-arq-link, .tc .pa-arq-novo { transition: none; }
  .tc .tc-selo:hover, .tc .tc-bt:hover, .tc .tc-mini:hover, .tc .pa-arq-link:hover, .tc .pa-arq-novo:hover { transform: none; }
}

/* O formulário do pacote enxuto (18/11/2026; tratamentos.js): os campos em grade, o "Já feitas" com − e + e o (i). */
.tr-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-ja[hidden] { display: none; }
.tr-ja > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.tr-passos { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tr-passos input { width: 56px; min-width: 0; text-align: center; font-weight: 800; }
.tr-passos button { width: 30px; height: 30px; flex: none; border: 1px solid #E3E8F2; border-radius: 9px; background: #F1F5F9; color: #14213D; font: 800 16px var(--sans); cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.tr-passos button:hover { transform: scale(1.08); background: #E3ECFF; }
.tr-i { width: 17px; height: 17px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 800 10.5px var(--sans); color: #4A5875; border: 1.5px solid #AEB8CB; cursor: help; vertical-align: -3px; }
.tr-i:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
@media (max-width: 700px) { .tr-grade { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .tr-passos button { transition: none; } .tr-passos button:hover { transform: none; } }
