/* Ficha técnica dos procedimentos (16/out) · tokens do Painel v2 */
.ft-extra { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 6px 2px; padding-left: 8px; border-left: 2px solid rgba(202,169,103,.35); }
.ft-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--v2-sub, #8D7B6A); white-space: nowrap; }
.ft-mini input[type=checkbox] { accent-color: var(--v2-gold, #B08A2E); margin: 0; }
.ft-bill { color: #8A6B26; font-weight: 600; }
.ft-est { font-size: 10px; color: #A5654E; background: rgba(165,101,78,.10); padding: 2px 7px; border-radius: 9px; white-space: nowrap; }
.ft-warn { font-size: 10px; line-height: 1.45; color: #9E4636; background: rgba(158,70,54,.08); padding: 2px 7px; border-radius: 9px; }
.ft-link { background: transparent; border: 1px solid rgba(138,107,38,.4); color: #8A6E38; padding: 4px 10px; border-radius: 7px; font-size: 10.5px; cursor: pointer; font-family: inherit; }
.ft-link:hover { background: rgba(202,169,103,.12); }
.ft-resumo, .ft-card-custo { padding: 11px 13px; background: #FBF8F2; border-radius: 10px; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.ft-r-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--v2-ink, #2E2A26); padding-bottom: 4px; border-bottom: 1px dashed rgba(46,42,38,.15); margin-bottom: 2px; }
.ft-r-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #3E3830; }
.ft-r-row b { font-weight: 600; white-space: nowrap; }
.ft-r-sep { border-top: 1px solid rgba(46,42,38,.15); margin-top: 4px; padding-top: 5px; font-weight: 600; color: #4E5A40; }
.ft-r-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ft-preco-comp { font-size: 11px; color: #8D7B6A; margin-top: 5px; line-height: 1.5; }
.ft-preco-comp b { color: #3E3830; }
.ft-ia-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(202,169,103,.16), rgba(202,169,103,.04)); margin: -4px 0 4px; }
.ft-ia-bar button { background: #241F1B; color: #F6F2EE; border: 0; border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ft-ia-bar button:disabled { opacity: .55; cursor: wait; }
.ft-ia-bar span { font-size: 11.5px; color: #6B5D50; flex: 1; min-width: 180px; }
.ft-spin { display: inline-block; width: 10px; height: 10px; border: 2px solid rgba(138,107,38,.3); border-top-color: #8A6B26; border-radius: 50%; animation: ftspin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes ftspin { to { transform: rotate(360deg); } }
.ft-ia-fill { background: #FFFBF0 !important; border-color: rgba(202,169,103,.6) !important; }
.ft-details { border: 1px solid rgba(46,42,38,.1); border-radius: 12px; padding: 0 14px; margin: 4px 0; }
.ft-details summary { cursor: pointer; padding: 12px 0; font-size: 12.5px; font-weight: 700; color: var(--v2-ink, #2E2A26); list-style: none; }
.ft-details summary::-webkit-details-marker { display: none; }
.ft-details summary::before { content: '▸'; color: #B08A2E; margin-right: 8px; display: inline-block; transition: transform .15s; }
.ft-details[open] summary::before { transform: rotate(90deg); }
.ft-details summary span { font-weight: 400; color: var(--v2-sub, #8D7B6A); font-size: 11px; margin-left: 6px; }
.ft-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding-bottom: 12px; }
.ft-tech-grid .ft-wide { grid-column: 1 / -1; }
.ft-pop-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ft-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ft-card-sub { font-size: 11px; color: var(--v2-sub, #8D7B6A); margin-top: 3px; }
.ft-card { padding: 20px 24px; }
.ft-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.ft-doc { text-align: left; background: #fff; border: 1px solid rgba(46,42,38,.12); border-radius: 11px; padding: 11px 13px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, transform .15s; }
.ft-doc:hover { border-color: rgba(176,138,46,.6); transform: translateY(-1px); }
.ft-doc b { font-size: 12.5px; color: var(--v2-ink, #2E2A26); }
.ft-doc span { font-size: 10.5px; color: var(--v2-sub, #8D7B6A); line-height: 1.4; }
.ft-doc.dark { background: #241F1B; border-color: #241F1B; }
.ft-doc.dark b { color: #CAA967; }
.ft-doc.dark span { color: #A99B8C; }
.ft-pgrupo { margin-bottom: 12px; }
.ft-pgt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #8A6B26; margin-bottom: 6px; }
.ft-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.ft-pf { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #3E3830; }
.ft-pf input { padding: 7px 9px; border: 1px solid rgba(46,42,38,.14); border-radius: 8px; font-size: 12.5px; font-family: inherit; background: #fff; }
.ft-pf small { font-size: 9.5px; color: #A99B8C; }
@media (max-width: 640px) {
  .ft-tech-grid, .ft-pgrid, .ft-pop-meta { grid-template-columns: 1fr; }
}
.inj-modal .ft-mini, .inj-modal .ft-pf { text-transform: none; letter-spacing: normal; font-weight: 400; }
.inj-modal .ft-bill { font-weight: 600; }
/* Itens da prescrição (pellets) · 16/out noite */
.ft-presc { margin-top: 8px; padding: 12px 13px; border: 1px solid rgba(176,138,46,.28); border-radius: 12px; background: #FFFDF8; }
.ft-presc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ft-presc-top b { font-size: 12px; color: #7A4A33; flex: 1; min-width: 180px; }
.ft-presc-tab { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.ft-presc-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 3px 0; border-top: 1px solid rgba(46,42,38,.05); }
.ft-presc-n { flex: 1; min-width: 140px; font-size: 12px; color: #3E3830; }
.ft-presc-n small { display: block; font-size: 10px; color: #A99B8C; }
.ft-x { background: transparent; border: 0; cursor: pointer; color: #9E4636; font-size: 15px; padding: 2px 6px; }
.ft-imp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ft-imp-bar > input { flex: 1; min-width: 200px; padding: 8px 10px; border: 1px solid rgba(46,42,38,.14); border-radius: 8px; font-size: 13px; font-family: inherit; }
.ft-imp-lista { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ft-imp-row { display: grid; grid-template-columns: 20px 64px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12px; color: #3E3830; text-transform: none; letter-spacing: normal; font-weight: 400; }
.ft-imp-row:hover { background: #FBF8F2; }
.ft-imp-row.alt { opacity: .8; }
.ft-imp-row b { color: #7A4A33; }
.ft-imp-row small { color: #A99B8C; font-size: 10.5px; }
.ft-imp-row em { font-style: normal; font-weight: 600; white-space: nowrap; }
.ft-esc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ft-esc-chips button { border: 1px solid rgba(176,138,46,.45); background: #FFFBF0; color: #7A4A33; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ft-esc-itens { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }
.ft-esc-r { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 12px; }
.ft-esc-r.on { background: rgba(202,169,103,.14); }
.ft-esc-r b { color: #7A4A33; }
.ft-esc-r em { font-style: normal; color: #8D7B6A; white-space: nowrap; }
.ft-step { display: inline-flex; align-items: center; gap: 6px; }
.ft-step button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(46,42,38,.18); background: #fff; font-size: 16px; cursor: pointer; line-height: 1; }
.ft-step i { font-style: normal; min-width: 16px; text-align: center; font-weight: 700; }
.ft-esc-tot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #241F1B; color: #F6F2EE; }
.ft-esc-tot b { color: #CAA967; font-size: 18px; font-family: var(--font-display, Georgia, serif); }
.ft-esc-tot small { width: 100%; color: #A99B8C; font-size: 11px; }
@media (max-width: 640px) { .ft-imp-row { grid-template-columns: 20px 56px 1fr; } .ft-imp-row small, .ft-imp-row em { grid-column: 3; } .ft-esc-r { grid-template-columns: 56px 1fr auto; } .ft-esc-r em { display: none; } }
/* checkbox e campos pequenos não herdam o width:100% dos inputs do modal */
.inj-modal .ft-mini input[type=checkbox], .ft-imp-row input[type=checkbox] { width: auto; min-width: 0; padding: 0; height: auto; flex: none; }
.inj-modal .ft-mini input:not([type=checkbox]) { width: auto; flex: none; }
.ft-mini.ft-bill { white-space: normal; }
@media (max-width: 640px) {
  .proc-mat { padding: 8px 0; border-top: 1px solid rgba(46,42,38,.08); }
  .proc-mat-row > input[list="proc-supplies-list"] { flex: 1 1 100% !important; }
  .proc-mat-row > select { flex: 1 1 140px !important; min-width: 140px; }
  .ft-extra { padding-left: 6px; }
  .ft-extra > select { flex: 1 1 100%; }
  .ft-presc-r { gap: 6px; }
  .ft-presc-n { flex: 1 1 100%; order: -1; }
  .ft-ia-bar button { width: 100%; }
}
@media (max-width: 640px) { .ft-imp-bar > input { min-width: 0; flex: 1 1 100%; } .ft-imp-bar .ft-mini { white-space: normal; } }

/* 16/out · honorários da equipe (repasse) */
.ft-hon-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(150px, 1fr) 96px 32px; gap: 6px; align-items: center; }
.ft-hon-row .ft-x { width: 32px; height: 32px; border: 0; background: transparent; color: #A5584E; font-size: 18px; cursor: pointer; }
@media (max-width: 640px) { .ft-hon-row { grid-template-columns: 1fr 1fr; } .ft-hon-row > :first-child { grid-column: 1 / -1; } }
.ft-seg-row { display: grid; grid-template-columns: 74px minmax(130px, 1fr) minmax(150px, 1fr) 120px; gap: 6px; align-items: center; padding: 8px; border: 1px solid rgba(46,42,38,.08); border-radius: 10px; background: #fff; }
.ft-seg-row .ft-seg-o { grid-column: 1 / 4; }
.ft-seg-row .ft-x { width: 32px; height: 32px; border: 0; background: transparent; color: #A5584E; font-size: 18px; cursor: pointer; justify-self: end; }
@media (max-width: 640px) { .ft-seg-row { grid-template-columns: 74px 1fr; } .ft-seg-row .ft-seg-o { grid-column: 1 / -1; } }
.ft-esc-chips button.on { background: #7A4A33; color: #FFFBF0; border-color: #7A4A33; }

/* Variações da ficha mãe (05/nov) */
.ftv-card { padding: 20px 24px; }
.ftv-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ftv-grupo { font-size: 11.5px; font-weight: 600; color: var(--v2-sub, #8D7B6A); margin: 14px 0 2px; }
.ftv-row { border-top: 1px solid rgba(46,42,38,.07); }
.ftv-row > summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 2px; cursor: pointer; list-style: none; }
.ftv-row > summary::-webkit-details-marker { display: none; }
.ftv-nome { font-size: 12.5px; font-weight: 600; color: var(--v2-ink, #2E2A26); }
.ftv-dose { font-size: 11.5px; color: var(--v2-sub, #8D7B6A); }
.ftv-preco { font-size: 12.5px; font-weight: 600; color: var(--v2-ink, #2E2A26); white-space: nowrap; }
.ftv-corpo { padding: 2px 2px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ftv-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; width: 100%; }
.ftv-item span { font-size: 11px; color: var(--v2-sub, #8D7B6A); }
.ftv-item p { margin: 0; font-size: 12px; line-height: 1.5; color: #3E3830; }
.ftv-conta, .ftv-nota { font-size: 11.5px; line-height: 1.5; color: #4E5A40; background: #FBF8F2; border-radius: 8px; padding: 8px 11px; width: 100%; box-sizing: border-box; }
.ftv-nota { margin-top: 12px; }
.ftv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ftv-largo { grid-column: 1 / -1; }
.ftv-form .inj-field input, .ftv-form .inj-field textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) {
  .ftv-row > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .ftv-dose { grid-column: 1 / -1; grid-row: 2; }
  .ftv-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ftv-form { grid-template-columns: minmax(0, 1fr); }
}

/* Manual interno (05/nov) */
.ftm-ov { position: fixed; inset: 0; z-index: 99980; background: #F1EBE0; overflow: auto; }
.ftm { min-height: 100%; display: flex; flex-direction: column; }
.ftm-top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px clamp(16px, 3vw, 36px); background: #F1EBE0; border-bottom: 1px solid rgba(46,42,38,.1); }
.ftm-top small { display: block; font-size: 11.5px; color: var(--v2-sub, #8D7B6A); }
.ftm-top h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--v2-ink, #2E2A26); }
.ftm-grade { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 20px clamp(16px, 3vw, 36px) 48px; }
.ftm-indice { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.ftm-indice a { font-size: 12.5px; color: #5A5049; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.ftm-indice a:hover { background: rgba(202,169,103,.16); }
.ftm-corpo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ftm-corpo section { background: #FFFDF9; border-radius: 14px; padding: 20px 24px; scroll-margin-top: 92px; }
.ftm-corpo h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--v2-ink, #2E2A26); }
.ftm-corpo p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: #3E3830; }
.ftm-sub { font-size: 12px; font-weight: 600; color: #7A4A33; margin: 12px 0 5px; }
.ftm-lista { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.55; color: #3E3830; }
.ftm-pares { display: flex; flex-direction: column; }
.ftm-pares > div { padding: 8px 0; border-top: 1px solid rgba(46,42,38,.06); }
.ftm-pares b { font-size: 12.5px; color: var(--v2-ink, #2E2A26); }
.ftm-pares p { margin: 2px 0 0; }
.ftm-tabela { overflow-x: auto; margin-bottom: 10px; }
.ftm-tabela table { border-collapse: collapse; width: 100%; font-size: 11.5px; line-height: 1.45; color: #3E3830; }
.ftm-tabela th { text-align: left; font-weight: 600; color: var(--v2-sub, #8D7B6A); padding: 6px 10px 6px 0; border-bottom: 1px solid rgba(46,42,38,.14); white-space: nowrap; }
.ftm-tabela td { vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(46,42,38,.06); min-width: 90px; }
.ftm-tabela td span { color: var(--v2-sub, #8D7B6A); }
.ftm-conv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ftm-conv input, .ftm-conv select { width: 100%; box-sizing: border-box; }
.ftm-conv-res { margin-top: 12px; padding: 12px 14px; background: #FBF8F2; border-radius: 10px; font-size: 13px; color: var(--v2-ink, #2E2A26); }
.ftm-conv-res span { display: block; margin-top: 4px; font-size: 11px; color: var(--v2-sub, #8D7B6A); }
@media (max-width: 760px) {
  .ftm-grade { grid-template-columns: minmax(0, 1fr); }
  .ftm-indice { position: static; flex-direction: row; overflow-x: auto; max-height: none; white-space: nowrap; }
  .ftm-corpo section { padding: 16px; }
}
.ftv-revisar { margin-top: 10px; }
.ftm-marca { border-top: 1px solid rgba(46,42,38,.07); }
.ftm-marca > summary { padding: 8px 0; font-size: 12.5px; color: #5A5049; cursor: pointer; }
.ftm-marca .ftv-item { margin-bottom: 6px; }
