/* Clinica Veterinaria — transcrito de prototipos/proto-veterinario.html (aprovado v5).
   Tudo prefixado vt- e preso em .vt: o HUB ja tem .btn, .box, .fld, .tab e um
   `thead th` escuro global que pintariam esta tela. */
.vt{
  --vt-primary:#2b6cb0; --vt-primary-h:#2455a3; --vt-ink:#2c3e50; --vt-muted:#4a5568; --vt-light:#718096;
  --vt-line:#e2e8f0; --vt-linha2:#dce6ef; --vt-fundo:#f4f6fa; --vt-titulo:#17355e; --vt-sel:#e6f0fb;
  --vt-green:#38a169; --vt-green-bg:#e8f6ee; --vt-green-txt:#1f7a46; --vt-red-txt:#c81e1e; --vt-red-bg:#fdecec;
  --vt-amber:#f59e0b; --vt-amber-bg:#fff6e0; --vt-amber-txt:#8a5300; --vt-cinza:#64748b;
  max-width:1360px; margin:0 auto; display:flex; flex-direction:column; gap:11px;
  font:12px/1.5 'Segoe UI',Tahoma,system-ui,sans-serif; color:var(--vt-ink);
}
.vt *{ box-sizing:border-box; }
.vt button{ font:inherit; cursor:pointer; }
.vt button:disabled{ cursor:not-allowed; opacity:.55; }
.vt input,.vt select,.vt textarea{ font:inherit; color:var(--vt-ink); }
.vt :focus-visible{ outline:2px solid var(--vt-primary); outline-offset:2px; }

/* R79: status do ERP discreto, na linha das abas (sem quadro, sem fundo) */
.vt-barra{ display:flex; align-items:flex-end; gap:11px; border-bottom:1px solid var(--vt-line); }
.vt-barra .vt-abas{ flex:1; min-width:0; border-bottom:0; }
.vt-erp-st{ display:flex; align-items:center; gap:5.5px; font-size:11px; color:var(--vt-light); white-space:nowrap;
  padding:0 0 7px; flex:none; cursor:default; }
.vt-erp-st .vt-pt{ width:6.5px; height:6.5px; border-radius:50%; background:var(--vt-green); flex:none; }
.vt-erp-st.lendo .vt-pt{ background:var(--vt-amber); animation:vtPisca 1s infinite alternate; }
.vt-erp-st.erro .vt-pt{ background:var(--vt-red-txt); }
.vt-erp-st.erro{ color:var(--vt-red-txt); }
.vt-erp-st button{ border:0; background:none; color:var(--vt-primary); font-weight:700; font-size:12.5px; line-height:1;
  width:21.5px; height:21.5px; border-radius:5.5px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.vt-erp-st button:hover:not(:disabled){ background:var(--vt-sel); }
.vt-erp-st button.gira{ animation:vtGira 1s linear infinite; }
@keyframes vtGira{ to{ transform:rotate(360deg); } }
@keyframes vtPisca{ to{ opacity:.3; } }

.vt-abas{ display:flex; gap:2px; border-bottom:1px solid var(--vt-line); overflow-x:auto; scrollbar-width:none; }
.vt-abas::-webkit-scrollbar{ display:none; }
.vt-aba{ display:flex; align-items:center; gap:6.5px; padding:9px 12.5px; border:0; background:none; color:var(--vt-muted);
  border-bottom:2px solid transparent; font-size:12px; white-space:nowrap; }
.vt-aba.on{ color:var(--vt-primary); border-bottom-color:var(--vt-primary); font-weight:700; }
.vt-aba .vt-n{ background:var(--vt-red-bg); color:var(--vt-red-txt); font-size:10px; font-weight:700; border-radius:18px; padding:0 6.5px; }
.vt-tela{ display:none; flex-direction:column; gap:11px; }
.vt-tela.on{ display:flex; }

.vt-titulo{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.vt-titulo h2{ margin:0; font-size:17px; color:var(--vt-titulo); font-weight:800; }
.vt-titulo .vt-sp{ flex:1; }
.vt-voltar{ border:0; background:none; color:var(--vt-primary); font-weight:600; padding:0; }

.vt-btn{ display:inline-flex; align-items:center; gap:6.5px; padding:7px 11.5px; border:1px solid var(--vt-line); background:#fff;
  border-radius:8px; font-weight:600; font-size:11.5px; color:var(--vt-ink); white-space:nowrap; height:auto; margin:0; }
.vt-btn:hover:not(:disabled){ border-color:#c3d3e6; }
.vt-btn.pri{ background:var(--vt-primary); border-color:var(--vt-primary); color:#fff; }
.vt-btn.perigo{ color:var(--vt-red-txt); border-color:currentColor; }
.vt-btn.perigo:hover:not(:disabled){ background:var(--vt-red-txt); border-color:var(--vt-red-txt); color:#fff; }
.vt-fat-cab.cancelado{ opacity:.75; }
.vt-btn.pri:hover:not(:disabled){ background:var(--vt-primary-h); }
.vt-btn.sm{ padding:4.5px 9px; font-size:11px; }
.vt-btn.on{ background:var(--vt-titulo); border-color:var(--vt-titulo); color:#fff; }
.vt-grupo{ display:inline-flex; }
.vt-grupo .vt-btn{ border-radius:0; } .vt-grupo .vt-btn:first-child{ border-radius:8px 0 0 8px; } .vt-grupo .vt-btn:last-child{ border-radius:0 8px 8px 0; }
.vt select.vt-btn{ padding-right:7px; }

.vt-box{ background:#fff; border:1px solid var(--vt-linha2); border-radius:12.5px; min-width:0; }
.vt-box-top{ display:flex; align-items:center; gap:9px; padding:10px 13.5px; border-bottom:1px solid var(--vt-line); flex-wrap:wrap; }
.vt-box-top h3{ margin:0; font-size:13px; color:var(--vt-titulo); }
.vt-box-top .vt-sp{ flex:1; }
.vt-box-c{ padding:12.5px 13.5px; }
.vt-vazio{ color:var(--vt-light); font-size:11px; text-align:center; padding:20px 11px; }
.vt-aviso{ background:var(--vt-amber-bg); border:1px solid #f6dfa6; border-radius:9px; padding:8px 11px; font-size:11px; color:#5c3b00; }
.vt-erro{ background:var(--vt-red-bg); border:1px solid #f6d3d3; border-radius:9px; padding:8px 11px; font-size:11px; color:var(--vt-red-txt); }

.vt-dt-top{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:9px 13.5px; font-size:11px; color:var(--vt-muted); }
.vt-dt-top .vt-sp{ flex:1; }
.vt-dt-top select,.vt-dt-top input{ border:1px solid var(--vt-line); border-radius:6.5px; padding:4.5px 7px; width:auto; height:auto; margin:0; }
.vt-rol{ overflow-x:auto; }
.vt table{ width:100%; border-collapse:collapse; font-size:11.5px; margin:0; }
.vt thead th{ text-align:left; font-size:10px; color:var(--vt-light); text-transform:uppercase; letter-spacing:.5px; font-weight:700;
  padding:8px 11px; background:#fafbfd; border-bottom:1px solid var(--vt-line); white-space:nowrap; position:static; }
.vt tbody td{ padding:8px 11px; border-bottom:1px solid #eef2f7; vertical-align:middle; background:none; }
.vt tbody tr:last-child td{ border-bottom:0; }
.vt tbody tr:hover{ background:#fafcff; }
.vt td.vt-n,.vt th.vt-n{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.vt-dt-pe{ display:flex; align-items:center; gap:9px; padding:9px 13.5px; font-size:11px; color:var(--vt-muted);
  border-top:1px solid var(--vt-line); flex-wrap:wrap; }
.vt-dt-pe .vt-sp{ flex:1; }

.vt-selo{ display:inline-flex; align-items:center; gap:4.5px; font-size:10px; font-weight:700; border-radius:18px; padding:2px 7px; white-space:nowrap; }
.vt-selo.erp{ background:var(--vt-sel); color:var(--vt-primary); }
.vt-selo.ok{ background:var(--vt-green-bg); color:var(--vt-green-txt); }
.vt-selo.esp{ background:var(--vt-amber-bg); color:var(--vt-amber-txt); }
.vt-selo.err{ background:var(--vt-red-bg); color:var(--vt-red-txt); }
.vt-selo.cinza{ background:#eef2f7; color:var(--vt-muted); }
.vt-selo.tipo{ background:#e0f2f7; color:#0e6a85; }

/* agenda mensal */
.vt-cal-top{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:11px 13.5px; }
.vt-cal-top h3{ margin:0 auto; font-size:17px; color:var(--vt-titulo); font-weight:600; }
.vt-cal{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-top:1px solid var(--vt-line);
  border-left:1px solid var(--vt-line); margin:0 13.5px 13.5px; }
.vt-cal .dow{ font-size:11px; font-weight:700; color:var(--vt-muted); text-align:center; padding:5.5px;
  border-right:1px solid var(--vt-line); border-bottom:1px solid var(--vt-line); background:#fafbfd; }
.vt-cal .d{ min-height:83px; border-right:1px solid var(--vt-line); border-bottom:1px solid var(--vt-line);
  padding:3.5px 4.5px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.vt-cal .d .num{ align-self:flex-end; font-size:11px; color:var(--vt-muted); }
.vt-cal .d.fora .num{ color:#c3cbd6; }
.vt-cal .d.hoje{ background:#fffbea; }
.vt-ev{ display:flex; align-items:center; gap:4.5px; font-size:10.5px; border:0; background:none; padding:1px 2px; text-align:left;
  border-radius:3.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; }
.vt-ev:hover{ background:var(--vt-sel); }
.vt-ev i{ width:6.5px; height:6.5px; border-radius:50%; flex:none; }
.vt-ev b{ overflow:hidden; text-overflow:ellipsis; }
.vt-leg{ display:flex; gap:12.5px; flex-wrap:wrap; font-size:11px; color:var(--vt-muted); padding:0 13.5px 11.5px; }
.vt-leg i{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4.5px; }

/* formularios */
.vt-form-col{ max-width:640px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:11px; }
.vt-grade{ display:grid; gap:9px 11px; }
.vt-g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.vt-fld{ display:flex; flex-direction:column; gap:3.5px; min-width:0; position:relative; }
.vt-fld.full{ grid-column:1/-1; }
.vt-fld > label{ font-size:11px; font-weight:700; color:var(--vt-muted); display:flex; align-items:center; gap:5.5px; margin:0; }
.vt-fld input,.vt-fld select,.vt-fld textarea{ border:1px solid var(--vt-line); border-radius:7px; padding:7px 9px;
  background:#fff; width:100%; height:auto; margin:0; }
.vt-fld textarea{ min-height:57.5px; resize:vertical; }
.vt-ajuda{ font-size:10.5px; color:var(--vt-light); }
.vt-servs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3.5px 14.5px; }
.vt-servs label{ display:flex; align-items:center; gap:7px; font-weight:400; color:var(--vt-ink); font-size:11.5px; padding:2.5px 0; margin:0; }
.vt-servs input{ width:auto; margin:0; }
.vt-rodape{ display:flex; gap:7px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }

/* busca de pet (nome do pet, tutor ou CPF) */
.vt-campo{ position:relative; }
.vt-combo{ position:absolute; left:0; right:0; top:100%; margin-top:2px; background:#fff; border:1px solid var(--vt-linha2);
  border-radius:9px; box-shadow:0 14px 30px rgba(23,53,94,.16); z-index:30; max-height:340px; overflow:auto; display:none; }
.vt-combo.on{ display:block; }
.vt-op{ display:block; width:100%; text-align:left; border:0; background:none; padding:7px 11px; border-top:1px solid #eef2f7; }
.vt-op:first-child{ border-top:0; }
.vt-op:hover,.vt-op.ativo{ background:var(--vt-sel); }
.vt-op b{ color:var(--vt-titulo); }
.vt-op span{ display:block; font-size:10.5px; color:var(--vt-light); }
.vt-op.erp{ color:var(--vt-primary); font-weight:700; }
.vt-op-tit{ padding:5.5px 11px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--vt-light); background:#fafbfd; }
.vt-faixa{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; background:#fafcff; border:1px solid var(--vt-linha2); border-radius:11px; padding:8px 11px; }
.vt-pet-av{ width:36px; height:36px; border-radius:50%; background:#fde7cf; display:grid; place-items:center; font-size:18px; flex:none; }
.vt-fa-txt{ flex:1; min-width:162px; font-size:11.5px; }
.vt-fa-txt b{ font-size:13px; color:var(--vt-titulo); }
.vt-fa-txt > span{ font-size:11px; color:var(--vt-light); }
.vt-alerg{ color:var(--vt-red-txt); font-weight:700; }

/* dashboard (PRD 18/10): cartoes com icone, fundo suave, altura igual; 4 / 2 / 2 / 1 por linha */
.vt-kpis4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:1fr; gap:11px; }
.vt-kpi{ --c:var(--vt-primary); --cb:#e9f1fb; background:#fbfcfe; border:1px solid var(--vt-linha2); border-radius:12.5px;
  padding:12.5px 12.5px 11px; display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto auto;
  column-gap:9px; row-gap:2px; align-items:center; text-align:left; color:inherit; min-width:0; margin:0; min-height:93.5px; }
button.vt-kpi:hover{ border-color:#b9cde6; background:#fff; }
.vt-kpi-ico{ grid-row:1; grid-column:1; width:30.5px; height:30.5px; border-radius:9px; display:grid; place-items:center; background:var(--cb); color:var(--c); }
.vt-kpi .l{ grid-row:1; grid-column:2; font-size:11px; color:var(--vt-light); font-weight:600; line-height:1.3; }
.vt-kpi .v{ grid-column:1/-1; font-size:25px; font-weight:800; color:var(--vt-titulo); font-variant-numeric:tabular-nums; line-height:1.15; margin-top:5.5px; }
.vt-kpi .p{ grid-column:1/-1; font-size:11px; color:var(--vt-light); line-height:1.35; }
.vt-kpi.azul{ --c:#2b6cb0; --cb:#e6f0fb; } .vt-kpi.verde{ --c:#1f7a46; --cb:#e8f6ee; } .vt-kpi.roxo{ --c:#6b46c1; --cb:#f0ebfb; }
.vt-kpi.amar{ --c:#8a5300; --cb:#fff3d6; } .vt-kpi.verm{ --c:#c81e1e; --cb:#fdecec; } .vt-kpi.cinza{ --c:#64748b; --cb:#eef1f5; }
.vt-kpi.verm .v{ color:var(--vt-red-txt); }
.vt-kpi.esq{ background:linear-gradient(90deg,#f4f6fa 25%,#fbfcfe 50%,#f4f6fa 75%) 0 0/200% 100%; animation:vtEsq 1.2s infinite linear; }
@keyframes vtEsq{ to{ background-position:-200% 0; } }
.vt-dash-g3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.vt-dbox{ min-width:0; display:flex; flex-direction:column; }
.vt-dbox .vt-box-top{ min-height:45px; }
.vt-sub-l{ font-size:11px; color:var(--vt-light); }
.vt-lista{ list-style:none; margin:0; padding:3.5px 13.5px 9px; }
.vt-lista li{ display:grid; grid-template-columns:41.5px minmax(0,1fr) auto; gap:9px; align-items:center; padding:7px 0;
  border-top:1px solid #eef2f7; font-size:11px; }
.vt-lista li:first-child{ border-top:0; }
/* paineis: linha inteira e o botao (toque), 44 px no minimo */
.vt-pn{ list-style:none; margin:0; padding:2px 7px 5.5px; }
.vt-pn li + li{ border-top:1px solid #eef2f7; }
.vt-pn-l{ width:100%; min-height:43px; display:grid; grid-template-columns:47px minmax(0,1fr) auto; gap:9px; align-items:center;
  border:0; background:none; padding:6.5px; border-radius:8px; text-align:left; color:inherit; font-size:11px; }
.vt-pn-l:hover{ background:#f5f8fc; }
.vt-pn-q{ color:var(--vt-titulo); font-size:11.5px; font-variant-numeric:tabular-nums; line-height:1.2; }
.vt-pn-q small{ display:block; font-weight:400; color:var(--vt-light); font-size:10px; }
.vt-pn-t{ min-width:0; display:flex; flex-direction:column; }
.vt-pn-t strong, .vt-pn-t span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vt-pn-t span{ color:var(--vt-light); font-size:11px; }
.vt-pn-d{ display:flex; flex-direction:column; align-items:flex-end; gap:2.5px; }
.vt-pn-tipo{ font-size:10.5px; color:var(--vt-muted); white-space:nowrap; }
.vt-pn-mais{ padding:0 13.5px 9px; font-size:10.5px; color:var(--vt-light); }

@media (max-width:1100px){
  .vt-kpis4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vt-dash-g3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vt-dash-graf > :first-child{ grid-column:1/-1; }
  .vt-dash-g3:not(.vt-dash-graf){ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:640px){
  .vt-erp-st #vt-erp-txt{ display:none; }           /* R79: no celular so a bolinha e o ↻ (texto no title) */
  .vt-erp-st{ padding-bottom:3.5px; }
  .vt-dash-g3{ grid-template-columns:minmax(0,1fr); }
  .vt-dash-g3 > *{ grid-column:auto !important; }
  .vt-kpis4{ gap:9px; }
  .vt-kpi{ padding:11px; min-height:101px; }
  .vt-kpi .v{ font-size:21.5px; }
  .vt-toque{ min-height:39.5px; min-width:39.5px; }
  .vt-aba{ min-height:39.5px; }
}
@media (max-width:359px){ .vt-kpis4{ grid-template-columns:minmax(0,1fr); grid-auto-rows:auto; } .vt-kpi{ min-height:0; } }
@media (pointer:coarse){ .vt-toque{ min-height:39.5px; } .vt-erp-st button{ width:36px; height:36px; } .vt-aba{ min-height:39.5px; } }
@media (max-width:640px){
  .vt-g2,.vt-servs{ grid-template-columns:minmax(0,1fr); }
  .vt-cal{ grid-template-columns:repeat(7,minmax(39.5px,1fr)); overflow-x:auto; } .vt-cal .d{ min-height:63px; } .vt-ev b{ display:none; }
}

/* etapa 2: aviso de sucesso e modal (Detalhes do Agendamento / confirmacao) */
.vt-ok{ background:var(--vt-green-bg); color:var(--vt-green-txt); border:1px solid #bfe5cd; border-radius:9px; padding:8px 11.5px; font-weight:600; }
.vt-modal{ position:fixed; inset:0; max-width:none; margin:0; display:none; place-items:center; padding:14.5px;
  background:rgba(15,23,42,.45); z-index:1000; }
.vt-modal.on{ display:grid; }
.vt-papel{ background:#fff; border-radius:11px; width:min(432px,100%); max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.vt-det{ padding:14.5px 16px; }
.vt-det dl{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:5.5px 12.5px; margin:0; }
.vt-det dt{ color:var(--vt-light); }
.vt-det dd{ margin:0; font-weight:600; }
.vt-pe{ display:flex; justify-content:space-between; align-items:center; gap:7px; flex-wrap:wrap; padding:10px 14.5px; border-top:1px solid var(--vt-line); }
.vt-acoes{ display:flex; gap:5.5px; flex-wrap:wrap; }

/* ===== etapa 2: semana / dia e equipe ===== */
.vt-sem{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-top:1px solid var(--vt-line); border-left:1px solid var(--vt-line); margin:0 13.5px 13.5px; }
.vt-sem .col{ border-right:1px solid var(--vt-line); border-bottom:1px solid var(--vt-line); min-height:234px; padding:3.5px 4.5px; display:flex; flex-direction:column; gap:2.5px; min-width:0; }
.vt-sem .cab{ font-size:11px; font-weight:700; color:var(--vt-muted); text-align:center; padding:5.5px 2px; border:0; border-bottom:1px solid var(--vt-line); margin:-4px -5px 3.5px; background:#fafbfd; }
.vt-sem .col.hoje{ background:#fffbea; }
.vt-dia{ list-style:none; margin:0; padding:0 13.5px 11px; }
.vt-dia li{ display:grid; grid-template-columns:50.5px minmax(0,1fr) auto; gap:11px; align-items:center; padding:8px 0; border-top:1px solid #eef2f7; cursor:pointer; }
.vt-dia li:first-child{ border-top:0; }
.vt-dia li:hover{ background:#fafcff; }
.vt-dia li > b{ color:var(--vt-titulo); font-variant-numeric:tabular-nums; }
.vt-cal .d .num{ cursor:pointer; border:0; background:none; padding:0; }
.vt-eq{ display:grid; grid-template-columns:minmax(0,1fr) 99px 57.5px auto; gap:7px; align-items:center; padding:6.5px 0; border-top:1px solid #eef2f7; }
.vt-eq:first-child{ border-top:0; }
.vt-eq input[type=text]{ border:1px solid var(--vt-line); border-radius:7px; padding:5.5px 7px; width:100%; min-width:0; height:auto; margin:0; }
.vt-eq label{ display:flex; gap:4.5px; align-items:center; font-size:11px; color:var(--vt-muted); margin:0; white-space:nowrap; }
.vt-eq label input{ width:auto; margin:0; }

/* ===== etapa 3: prontuario enxuto e ficha clinica (prototipo) ===== */
.vt-faixa-at{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; background:#fff; border:1px solid var(--vt-linha2); border-radius:12.5px; padding:9px 12.5px; }
.vt-pet-av.grande{ width:57.5px; height:57.5px; font-size:29px; }
.vt-fa-campos{ display:flex; gap:5.5px; align-items:center; flex-wrap:wrap; }
.vt-fa-campos select{ border:1px solid var(--vt-line); border-radius:7px; padding:5.5px 7px; background:#fff; width:auto; height:auto; margin:0; }
.vt-fa-hora{ font-size:11px; color:var(--vt-muted); font-weight:600; }
.vt-pr-form{ display:flex; flex-direction:column; gap:11px; }
.vt-vit-in{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.vt-vit-in label{ display:flex; flex-direction:column; gap:2.5px; font-size:11px; font-weight:700; color:var(--vt-muted); margin:0; }
.vt-vit-in label span{ display:flex; align-items:center; gap:5.5px; font-weight:400; color:var(--vt-light); border:1px solid var(--vt-line); border-radius:7px; padding:0 9px 0 0; background:#fff; }
.vt-vit-in input{ border:0; border-radius:7px; padding:7px 9px; width:100%; min-width:0; font-weight:700; color:var(--vt-titulo); height:auto; margin:0; background:transparent; }
.vt-rx-lista{ display:flex; flex-direction:column; gap:5.5px; }
.vt-rx-linha{ display:grid; grid-template-columns:minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto; gap:5.5px; align-items:center; }
.vt-rx-linha input{ border:1px solid var(--vt-line); border-radius:7px; padding:6.5px 8px; width:100%; min-width:0; height:auto; margin:0; }
.vt-rx-linha button{ border:0; background:none; color:var(--vt-light); font-size:14.5px; padding:3.5px 5.5px; }
.vt-rx-linha button:hover{ color:var(--vt-red-txt); }
.vt details.mais{ border-top:1px dashed var(--vt-line); padding-top:9px; }
.vt details.mais summary{ cursor:pointer; color:var(--vt-primary); font-weight:600; font-size:11.5px; }
.vt details.mais summary span{ color:var(--vt-light); font-weight:400; }
.vt-g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.vt-ficha{ overflow:hidden; }
.vt-ficha-top{ display:flex; gap:12.5px; align-items:center; padding:14.5px 16px; background:linear-gradient(180deg,#f7faff,#fff); border-bottom:1px solid var(--vt-line); flex-wrap:wrap; }
.vt-ft-id{ flex:1; min-width:198px; }
.vt-ft-id h2{ margin:0; font-size:20px; color:var(--vt-titulo); font-weight:800; }
.vt-ft-id p{ margin:1px 0 0; font-size:11px; color:var(--vt-muted); }
.vt-ft-at{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:11px; color:var(--vt-muted); }
.vt-ft-at b{ color:var(--vt-titulo); font-size:12px; }
.vt-alerg-faixa{ background:var(--vt-red-bg); color:var(--vt-red-txt); font-weight:700; font-size:11px; padding:6.5px 16px; border-bottom:1px solid #f6d3d3; }
.vt-vit{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--vt-line); }
.vt-vit > div{ padding:9px 16px; display:grid; grid-template-columns:auto 1fr; align-items:baseline; column-gap:3.5px; border-left:1px solid var(--vt-line); }
.vt-vit > div:first-child{ border-left:0; }
.vt-vit .l{ grid-column:1/-1; font-size:9.5px; color:var(--vt-light); text-transform:uppercase; letter-spacing:.5px; font-weight:700; }
.vt-vit b{ font-size:20px; color:var(--vt-titulo); font-variant-numeric:tabular-nums; }
.vt-vit .u{ font-size:11px; color:var(--vt-light); }
.vt-vit em{ grid-column:1/-1; font-style:normal; font-size:10px; color:var(--vt-green-txt); }
.vt-ficha-corpo{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12.5px 20px; padding:14.5px 16px; }
.vt-fc-b{ border-left:3px solid var(--vt-linha2); padding-left:11px; }
.vt-fc-b h4,.vt-ficha-rx h4{ margin:0 0 2.5px; font-size:9.5px; color:var(--vt-light); text-transform:uppercase; letter-spacing:.5px; }
.vt-fc-b p{ margin:0; font-size:12px; max-width:60ch; white-space:pre-wrap; }
.vt-fc-b.dx{ border-left-color:var(--vt-primary); }
.vt-fc-b.dx p{ font-weight:700; color:var(--vt-titulo); }
.vt-ficha-rx{ padding:0 16px 12.5px; }
.vt-ficha-rx ol{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:3.5px; font-size:12px; }
.vt-ficha-rx li span{ color:var(--vt-muted); }
.vt-ficha-pe{ display:flex; justify-content:space-between; gap:9px; flex-wrap:wrap; padding:9px 16px; background:#fafbfd; border-top:1px solid var(--vt-line); font-size:11px; color:var(--vt-muted); }
.vt-os-cab{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; background:var(--vt-fundo); border:1px solid var(--vt-line); border-radius:9px; padding:7px 11px; font-size:11px; }
.vt-nota{ font-size:11px; color:var(--vt-muted); border-left:3px solid var(--vt-line); padding-left:10px; margin:0; }
.vt-nota b{ color:var(--vt-ink); }
.vt-btn.ico{ padding:4.5px 7px; }

/* ===== documentos: receita e certificado (layout do VetEssence) ===== */
.vt-papel.larga{ width:min(612px,100%); }
.vt-doc{ padding:26px 30px; font-family:'Courier New',Courier,monospace; color:#1a1a1a; font-size:12.5px; }
.vt-doc h2{ text-align:center; margin:0; font-size:17px; letter-spacing:2px; }
.vt-doc .cli{ text-align:center; font-size:11px; margin:2px 0 10px; }
.vt-doc hr{ border:0; border-top:1px solid #222; margin:10px 0; }
.vt-doc .sec{ font-weight:700; margin:12px 0 4px; border-bottom:1px solid #999; padding-bottom:2px; }
.vt-doc table{ font-family:inherit; font-size:12px; }
.vt-doc table td,.vt-doc table th{ border:1px solid #444; padding:5px 7px; }
.vt .vt-doc thead th,.vt .vt-cert thead th{ background:#eee; color:#222; text-transform:none; letter-spacing:0; font-size:12px; }
.vt-doc .lin2{ display:grid; grid-template-columns:90px 1fr; gap:3px; }
.vt-doc .ass,.vt-cert .ass{ margin-top:30px; text-align:center; }
.vt-doc .ass .traco,.vt-cert .ass .traco{ border-top:1px solid #333; width:260px; max-width:100%; margin:0 auto 4px; }
.vt-doc .qr{ float:right; width:96px; margin-left:10px; text-align:center; font-size:9px; color:#555; }
.vt-doc .qr svg{ width:96px; height:96px; display:block; }
.vt-cert{ padding:24px 28px; border:3px double #555; margin:14px; color:#1a1a1a; }
.vt-cert h2{ text-align:center; letter-spacing:3px; margin:6px 0 2px; font-size:18px; }
.vt-cert .selo-crmv{ width:64px; height:64px; border:2px solid #222; border-radius:50%; margin:0 auto; display:grid; place-items:center; text-align:center; font-size:8.5px; font-weight:700; line-height:1.1; }
.vt-cert .grid{ display:grid; grid-template-columns:auto 1fr auto 1fr; gap:5px 14px; font-size:12.5px; margin:12px 0; }
.vt-cert table td,.vt-cert table th{ border:1px solid #888; padding:5px 7px; font-size:12px; }

/* impressao: so o documento aberto no modal */
@media print{
  body.vt-imprimindo > *:not(#vt-modal){ display:none !important; }
  body.vt-imprimindo #vt-modal{ position:static; background:none; padding:0; display:block; }
  body.vt-imprimindo .vt-papel{ box-shadow:none; max-height:none; width:100%; border-radius:0; overflow:visible; }
  body.vt-imprimindo .vt-pe{ display:none; }
  /* R76: o index.html tem 'body *{visibility:hidden}' na impressao (so revela os
     relatorios): receita, certificado e prontuario saiam EM BRANCO. Revela o modal. */
  body.vt-imprimindo #vt-modal, body.vt-imprimindo #vt-modal *{ visibility:visible !important; }
  body.vt-imprimindo #vt-modal .vt-pe, body.vt-imprimindo #vt-modal .vt-pe *{ visibility:hidden !important; }
}
@media (max-width:900px){ .vt-g3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){
  .vt-g3{ grid-template-columns:minmax(0,1fr); }
  .vt-vit-in,.vt-vit{ grid-template-columns:repeat(2,minmax(0,1fr)); } .vt-vit > div:nth-child(3){ border-left:0; }
  .vt-ficha-corpo{ grid-template-columns:minmax(0,1fr); } .vt-ft-at{ align-items:flex-start; }
  .vt-rx-linha{ grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; } .vt-rx-linha input:first-child{ grid-column:1/-1; }
  .vt-sem{ grid-template-columns:minmax(0,1fr); } .vt-sem .col{ min-height:0; }
  .vt-eq{ grid-template-columns:minmax(0,1fr) 81px 48.5px; } .vt-eq label{ grid-column:1/-1; }
  .vt-doc{ padding:16px; } .vt-cert{ padding:14px; margin:8px; } .vt-cert .grid{ grid-template-columns:auto 1fr; }
}

/* ===== etapa 7: graficos do Dashboard (prototipo) ===== */
.vt-graf svg{ display:block; width:100%; height:auto; max-height:250px; margin:0 auto; }
.vt-graf-nota{ font-size:11px; color:var(--vt-light); margin-top:5.5px; text-align:center; }
.vt-rosca{ display:flex; flex-direction:column; gap:5.5px; }
.vt-rosca .vt-graf svg{ max-width:180px; }
.vt-graf-leg em{ font-style:normal; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (min-width:641px) and (max-width:1100px){ .vt-rosca{ flex-direction:row; align-items:center; } .vt-rosca .vt-graf{ flex:0 0 46%; } .vt-rosca .vt-graf-leg{ flex:1; min-width:0; } }
.vt-graf-leg{ display:flex; flex-direction:column; gap:4.5px; font-size:11px; margin-top:7px; }
.vt-graf-leg div{ display:flex; align-items:center; gap:7px; }
.vt-graf-leg i{ width:9px; height:9px; border-radius:2.5px; flex:none; }
.vt-graf-leg span{ margin-left:auto; font-variant-numeric:tabular-nums; color:var(--vt-muted); }

/* ===== etapa 5: Faturar (prototipo aprovado proto-vet-faturar.html) ===== */
.vt-selo.fat{ background:var(--vt-green-bg); color:var(--vt-green-txt); }
.vt-selo.afat{ background:var(--vt-amber-bg); color:var(--vt-amber-txt); }
.vt-fat-cab{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; background:var(--vt-green-bg); border:1px solid #bfe5cd;
  border-radius:9px; padding:7px 11px; font-size:11px; color:#1f5f3a; }
.vt-fat-cab b{ color:var(--vt-titulo); }
.vt-fat-cab.parcial{ background:var(--vt-red-bg); border-color:#f6d3d3; color:var(--vt-red-txt); }
.vt-fat-cab.enviando{ background:var(--vt-amber-bg); border-color:#f6dfa6; color:var(--vt-amber-txt); }
.vt-fat-cab + .vt-fat-cab{ margin-top:5.5px; }
.vt-grupo-fat{ border:1px solid var(--vt-linha2); border-radius:11px; margin:9px 13.5px; overflow:hidden; }
.vt-grupo-fat .topo{ display:flex; gap:9px; align-items:center; flex-wrap:wrap; padding:8px 11px; background:#fafbfd;
  border-bottom:1px solid var(--vt-line); font-size:11.5px; }
.vt-grupo-fat table{ table-layout:fixed; }
.vt-grupo-fat td:nth-child(1){ width:46%; } .vt-grupo-fat td:nth-child(2){ width:16%; } .vt-grupo-fat td:nth-child(3){ width:8%; }
@media (max-width:640px){ .vt-grupo-fat table{ table-layout:auto; } .vt-grupo-fat td:nth-child(n){ width:auto; } }

/* ===== Pets e Tutores (prototipo aprovado proto-vet-pets-tutores.html) ===== */
.vt-erp-faixa{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; background:var(--vt-sel); border:1px solid #cfe0f5;
  border-radius:9px; padding:7px 11px; font-size:11px; color:var(--vt-titulo); }
.vt-ficha2{ display:grid; grid-template-columns:288px minmax(0,1fr); gap:11px; align-items:start; }
.vt-lado{ display:flex; flex-direction:column; gap:11px; min-width:0; }
.vt-perfil{ text-align:center; padding:16px 14.5px; }
.vt-perfil .vt-av{ width:86.5px; height:86.5px; border-radius:50%; background:#fde7cf; display:grid; place-items:center; font-size:41.5px; margin:0 auto 7px; }
.vt-perfil h2{ margin:0; color:var(--vt-titulo); font-size:20px; }
.vt-perfil p{ margin:2px 0 0; color:var(--vt-muted); }
.vt-dados{ display:grid; grid-template-columns:auto 1fr; gap:5.5px 11px; padding:11px 14.5px; font-size:11.5px; border-top:1px solid var(--vt-line); margin:0; }
.vt-dados dt{ color:var(--vt-light); } .vt-dados dd{ margin:0; font-weight:600; text-align:right; overflow-wrap:anywhere; }
.vt-alergia{ background:var(--vt-red-bg); color:var(--vt-red-txt); border:1px solid #f6d3d3; border-radius:9px; padding:8px 11px; font-weight:700; font-size:11.5px; }
@media (max-width:900px){ .vt-ficha2{ grid-template-columns:minmax(0,1fr); } }

/* R74: atalhos de data do retorno */
.vt-atalhos{ display:flex; gap:5.5px; margin-top:5.5px; flex-wrap:wrap; }
/* R75: impressao do prontuario (A4) */
.vt-pr-imp{ padding:24px 30px; color:#1a202c; font-size:12.5px; line-height:1.45; }
.vt-pr-imp header{ display:flex; justify-content:space-between; gap:16px; border-bottom:2px solid #1a365d; padding-bottom:10px; }
.vt-pr-imp header h2{ margin:0; font-size:17px; color:#1a365d; }
.vt-pr-imp header .dir{ text-align:right; }
.vt-pr-imp header .dir b{ font-size:14px; letter-spacing:1px; color:#1a365d; }
.vt-pr-imp .sec{ font-weight:700; color:#1a365d; margin:14px 0 6px; border-bottom:1px solid #cbd5e0; padding-bottom:2px; text-transform:uppercase; font-size:11.5px; letter-spacing:.5px; }
.vt-pr-imp .grade{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px 14px; }
.vt-pr-imp .grade div,.vt-pr-imp .vit div{ display:flex; flex-direction:column; }
.vt-pr-imp .grade span,.vt-pr-imp .vit span{ font-size:10.5px; color:#718096; }
.vt-pr-imp .vit{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:8px; padding:8px 10px; background:#f7fafc; border-radius:6px; }
.vt-pr-imp .alerg{ margin-top:8px; color:#c81e1e; font-weight:700; }
.vt-pr-imp section h4{ margin:10px 0 2px; font-size:12px; color:#2d3748; }
.vt-pr-imp section p{ margin:0; white-space:pre-wrap; }
.vt-pr-imp table{ width:100%; border-collapse:collapse; font-size:12px; }
.vt-pr-imp table th,.vt-pr-imp table td{ border:1px solid #cbd5e0; padding:5px 7px; text-align:left; }
.vt .vt-pr-imp thead th{ background:#edf2f7; color:#2d3748; text-transform:none; letter-spacing:0; font-size:11.5px; }
.vt-pr-imp .ass{ margin-top:40px; text-align:center; }
.vt-pr-imp .ass .traco{ width:260px; max-width:80%; border-top:1px solid #333; margin:0 auto 4px; }
.vt-pr-imp footer{ margin-top:22px; font-size:10px; color:#a0aec0; text-align:center; }
@media (max-width:600px){ .vt-pr-imp{ padding:18px 16px; } .vt-pr-imp .grade{ grid-template-columns:repeat(2,minmax(0,1fr)); } .vt-pr-imp header{ flex-direction:column; } .vt-pr-imp header .dir{ text-align:left; } }
@media print{ .vt-pr-imp{ padding:0; } .vt-pr-imp .grade{ grid-template-columns:repeat(4,minmax(0,1fr)); } .vt-pr-imp header{ flex-direction:row; } }

/* R79: com a Clinica aberta, a barra do HUB, a aba do modulo e a margem tambem ficam
   compactas (so nesta tela: o resto do HUB nao muda) */
body:has(.pane.active[data-pane="veterinaria"]) .header{ height:46px; }
body:has(.pane.active[data-pane="veterinaria"]) .tabs .tab{ padding:8px 14px; font-size:12.5px; }
body:has(.pane.active[data-pane="veterinaria"]) .main{ padding:10px 16px; }
@media (max-width:640px){ body:has(.pane.active[data-pane="veterinaria"]) .main{ padding:8px 10px; } }
/* R80: fatura (usa o papel do prontuario) */
.vt-pr-imp .vt-n{ text-align:right; white-space:nowrap; }
.vt-pr-imp tfoot th{ background:#edf2f7; font-size:13px; color:#1a365d; }

/* R81: fatura (PRD 24/10) — A4 retrato, cores impressas como na tela */
.vt-fat{ --fa:#1a4f86; --fa2:#e9f2fc; padding:22px 26px; color:#1a2b45; font-size:12.5px; line-height:1.45;
  -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.vt-fat svg{ width:18px; height:18px; fill:var(--fa); flex:none; }
.vt-fat .fa-top{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto; gap:16px; align-items:start;
  padding-bottom:14px; border-bottom:1px solid #c7d7ea; }
.vt-fat .fa-cli{ display:flex; gap:12px; align-items:center; min-width:0; }
.vt-fat .fa-cli img{ max-width:96px; max-height:72px; object-fit:contain; }
.vt-fat .fa-cli h2{ margin:0; font-size:20px; color:var(--fa); line-height:1.15; }
.vt-fat .fa-doc{ font-size:11.5px; color:#4a5f7a; margin-top:2px; }
.vt-fat .fa-cont{ display:flex; flex-direction:column; gap:6px; font-size:11.5px; color:#2d3f5a; }
.vt-fat .fa-cont div{ display:flex; gap:8px; align-items:flex-start; }
.vt-fat .fa-id{ background:var(--fa2); border-radius:12px; padding:12px 16px; text-align:left; min-width:190px; }
.vt-fat .fa-id b{ display:block; font-size:22px; letter-spacing:1px; color:#0f2f57; }
.vt-fat .fa-os{ font-weight:700; color:var(--fa); }
.vt-fat .fa-info{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:12px 0; border:1px solid #d9e4f1;
  border-radius:10px; padding:8px 4px; }
.vt-fat .fa-info svg{ width:14px; height:14px; margin-top:1px; }
.vt-fat .fa-info > div{ display:flex; gap:7px; padding:0 9px; border-left:1px solid #e3ebf5; min-width:0; }
.vt-fat .fa-info > div:first-child{ border-left:0; }
.vt-fat .fa-info small{ display:block; font-size:9px; font-weight:700; color:var(--fa); text-transform:uppercase; letter-spacing:.4px; }
.vt-fat .fa-info b{ display:block; font-size:12px; color:#0f2f57; overflow-wrap:anywhere; }
.vt-fat .fa-info span{ display:block; font-size:10px; line-height:1.35; color:#4a5f7a; }
.vt-fat .fa-sit{ display:inline-block !important; margin-top:3px; padding:2px 10px; border-radius:20px; font-weight:700; font-size:10.5px !important; }
.vt-fat .fa-sit.ab{ background:#dcf3e4; color:#17693a !important; }
.vt-fat .fa-sit.fin{ background:#e1ecfb; color:#1a4f86 !important; }
.vt-fat .fa-sit.canc{ background:#fde4e4; color:#b42318 !important; }
.vt-fat .fa-tab{ border:1px solid #d9e4f1; border-radius:12px; overflow:hidden; }
.vt-fat table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.vt .vt-fat thead th{ background:var(--fa); color:#fff; text-transform:uppercase; letter-spacing:.3px; font-size:11px;
  padding:9px 10px; text-align:left; border:0; }
.vt-fat td{ padding:9px 10px; border-top:1px solid #e3ebf5; vertical-align:middle; }
.vt-fat tbody tr:first-child td{ border-top:0; }
.vt-fat .n{ text-align:right !important; white-space:nowrap; }
.vt-fat .i{ color:#6b7f99; width:28px; }
.vt-fat .d{ font-weight:700; color:#0f2f57; }
.vt-fat .t{ font-weight:700; }
.vt-fat .fa-tipo{ display:inline-block; padding:2px 10px; border-radius:20px; font-size:11.5px; }
.vt-fat .fa-tipo.s{ background:#e1ecfb; color:#1a4f86; }
.vt-fat .fa-tipo.p{ background:#efe6fb; color:#5b2a9c; }
.vt-fat .fa-tipo.m{ display:none; }
.vt-fat .fa-total{ display:flex; justify-content:flex-end; align-items:center; gap:18px; margin:12px 0; }
.vt-fat .fa-total span{ font-size:15px; font-weight:700; }
.vt-fat .fa-total b{ background:var(--fa2); border-radius:12px; padding:10px 18px; font-size:22px; color:#0f2f57; min-width:190px; text-align:right; }
.vt-fat .fa-box{ display:flex; gap:10px; background:var(--fa2); border-radius:12px; padding:10px 14px; margin-top:10px; font-size:12px; }
.vt-fat .fa-box small{ display:block; font-size:10.5px; font-weight:700; color:var(--fa); text-transform:uppercase; letter-spacing:.4px; }
.vt-fat .fa-pe{ margin-top:22px; padding-top:12px; border-top:1px solid #c7d7ea; text-align:center; color:#0f2f57; font-size:14px; }
.vt-fat .fa-linha{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:6px; }
.vt-fat .fa-linha::before,.vt-fat .fa-linha::after{ content:''; width:80px; border-top:1px solid #9fb6d3; }
@media (max-width:700px){
  .vt-fat{ padding:16px 14px; }
  .vt-fat .fa-top{ grid-template-columns:1fr; }
  .vt-fat .fa-info{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:12px; }
  .vt-fat .fa-info > div:nth-child(3){ border-left:0; }
  .vt-fat .i,.vt-fat .tp{ display:none; }                     /* celular: sem #, tipo vai sob a descricao */
  .vt-fat .fa-tipo.m{ display:table; margin-top:3px; font-weight:400; }
  .vt-fat td,.vt .vt-fat thead th{ padding:7px 6px; }
  .vt-fat table{ font-size:11.5px; }
  .vt-fat .fa-total b{ min-width:0; }
}
@media print{ .vt-fat{ padding:0; }
  /* o @media print do index pinta 'thead th' de cinza: aqui o cabecalho e azul (PRD) */
  .vt .vt-fat thead th{ background:#1a4f86 !important; color:#fff !important; } .vt-fat .fa-top{ grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto; }
  .vt-fat .fa-info{ grid-template-columns:repeat(4,minmax(0,1fr)); } .vt-fat .fa-info > div:nth-child(3){ border-left:1px solid #e3ebf5; } }
