/* Pestaña «Test» del paciente (v1.92.0) · ficha-test.js. Móvil primero: dedo gordo (44px) y letra de 16px en los campos
   para que el iPhone no haga zoom al escribir. */
.ft { display: grid; gap: 12px; color: #2b2b2b; font-size: 0.9rem; }
.ft-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ft-cab { display: grid; gap: 10px; background: #fff; border: 1px solid #e8e4de; border-radius: 18px; padding: 12px; }
.ft-busca { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 99px; border: 1px solid #e8e4de; background: #fffdf8; color: #66625f; }
.ft-busca:focus-within { border-color: #2b2b2b; }
.ft-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #2b2b2b; -webkit-appearance: none; appearance: none; }
.ft-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.ft-chips::-webkit-scrollbar { display: none; }
.ft-chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #e8e4de; background: #fff; color: #2b2b2b; font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ft-chip.on { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.ft-chip .ft-i { width: 15px; height: 15px; }
.ft-areas .ft-chip { min-height: 34px; font-weight: 600; color: #66625f; background: #fffdf8; }
.ft-areas .ft-chip.on { color: #fff; background: #2b2b2b; }

.ft-lista { display: grid; gap: 14px; }
.ft-seccion { display: grid; gap: 6px; }
.ft-seccion h4 { margin: 4px 4px 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #66625f; }
.ft-seccion h4 span { font-weight: 700; color: #a39e98; margin-left: 4px; }
.ft-plegar { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid #e8e4de; background: #fff; font-weight: 700; font-size: 0.9rem; color: #2b2b2b; text-align: left; }
.ft-plegar span:first-of-type { flex: 1; }
.ft-plegar .ft-n { font-size: 0.78rem; font-weight: 700; color: #66625f; background: #f1eee8; border-radius: 99px; padding: 2px 9px; }
.ft-plegar .ft-i { color: #a39e98; transition: transform 0.15s; }
.ft-desplegada > .ft-plegar .ft-i { transform: rotate(90deg); }
.ft-desplegada > .ft-plegar { background: #fffdf8; }

.ft-fila { scroll-margin-top: 8px; background: #fff; border: 1px solid #e8e4de; border-radius: 14px; overflow: hidden; }
.ft-fila.ft-abierta { border-color: #2b2b2b; box-shadow: 0 6px 18px rgba(43, 43, 43, 0.08); }
.ft-linea { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
.ft-nombre { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 4px 8px 12px; background: transparent; border: 0; text-align: left; color: inherit; }
.ft-marca { flex: none; width: 26px; height: 26px; border-radius: 99px; border: 1.5px dashed #cfc9c0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ft-pasado .ft-marca { border: 0; background: #2f7a6a; }
.ft-marca .ft-i { width: 16px; height: 16px; stroke-width: 2.6; }
.ft-txt { min-width: 0; display: grid; gap: 1px; }
.ft-txt strong { font-weight: 700; font-size: 0.95rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ft-txt small { font-size: 0.78rem; color: #66625f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-txt small.ft-ult { color: #1f5a4d; }
.ft-txt small.ft-ult b { font-weight: 800; }
.ft-estrella { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: #cfc9c0; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; }
.ft-estrella .ft-i { width: 22px; height: 22px; }
.ft-estrella.on { color: #e7aa2d; }
.ft-estrella.on .ft-i { fill: #e7aa2d; }
.ft-accion { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #2b2b2b; background: #fff; color: #2b2b2b; font-weight: 800; font-size: 0.82rem; }
.ft-accion:disabled { border-color: #e8e4de; color: #a39e98; }

.ft-panel { display: grid; gap: 14px; padding: 4px 12px 14px; border-top: 1px solid #f1eee8; }
.ft-panel > :first-child { margin-top: 10px; }
.ft-form { display: grid; gap: 10px; }
.ft-form label { display: grid; gap: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #66625f; min-width: 0; }
.ft-form label i { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ft-form input:not([type=file]) { min-height: 48px; width: 100%; min-width: 0; box-sizing: border-box; border-radius: 12px; border: 1px solid #e8e4de; background: #fffdf8; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #2b2b2b; -webkit-appearance: none; appearance: none; }
.ft-form input:focus { outline: 0; border-color: #2b2b2b; background: #fff; }
.ft-dos { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 10px; }
.ft-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ft-form label.ft-hoja { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #66625f; cursor: pointer; max-width: 60%; }
.ft-hoja input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ft-hoja span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-hoja.ok { color: #1f5a4d; }
.ft-guardar { min-height: 48px; padding: 0 24px; border-radius: 99px; border: 1px solid #ec7626; background: #ec7626; color: #2b2b2b; font-weight: 800; font-size: 0.92rem; margin-left: auto; }
.ft-guardar:disabled { opacity: 0.6; }
.ft-suave { min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid #e8e4de; background: #fff; color: #2b2b2b; font-weight: 700; font-size: 0.8rem; }
.ft-app { display: grid; gap: 10px; justify-items: start; }
.ft-app p { margin: 0; color: #66625f; font-size: 0.85rem; }
.ft-app .ft-guardar { margin-left: 0; }
.ft-panel .fs-test-tarjeta { border: 0; padding: 0; border-radius: 0; }
.ft-panel .fs-test-tarjeta > .fs-ceja, .ft-panel .fs-test-tarjeta > h4 { display: none; }

.ft-bloque { display: grid; gap: 6px; }
.ft-bloque h5 { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #66625f; }
.ft-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-hist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #eef6f3; }
.ft-hist li div { min-width: 0; }
.ft-hist li b { font-weight: 800; font-size: 0.95rem; }
.ft-hist li span { color: #2b2b2b; font-size: 0.85rem; }
.ft-hist li small { display: block; color: #66625f; font-size: 0.76rem; }
.ft-corregir { padding: 10px; border-radius: 12px; background: #fff4d8; }
.ft-material { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-material a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid #e8e4de; background: #fffdf8; color: #2b2b2b; font-weight: 600; font-size: 0.8rem; text-decoration: none; }
.ft-sobre p { margin: 0; font-size: 0.8rem; color: #66625f; line-height: 1.4; }
.ft-vacio, .ft-nota { margin: 0; padding: 14px; text-align: center; color: #66625f; font-size: 0.85rem; }
.ft-nota { padding: 4px 8px; }

@media (max-width: 380px) {
  .ft-dos { grid-template-columns: minmax(0, 1fr); }
  .ft-accion { padding: 0 11px; }
}
@media (min-width: 900px) {
  .ft-seccion:not(:has(.ft-abierta)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-seccion > h4, .ft-seccion > .ft-plegar { grid-column: 1 / -1; }
}
