/* css/members-import.css — «Importar socios» / «Importar federados» (2026-11-20,
   js/views/members-import/), and the marks of a card imported with data missing. */

/* ── The import screen ─────────────────────────────────────────────────── */
.imp-inicio { display: flex; flex-direction: column; gap: 12px; }
.imp-txt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.imp-sub { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.imp-inicio .imp-sub { margin-bottom: 4px; }
.imp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px;
}
.imp-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.imp-paso { margin: 4px 0 6px; font-size: 16px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.imp-falta { margin-bottom: 12px; border-color: var(--warn); background: var(--warn-dim); }

/* One card per column of the file: what it is, and its first values. */
.imp-cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .imp-cols { grid-template-columns: 1fr 1fr; } }
.imp-col { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.imp-col .form-label { overflow-wrap: anywhere; }
.imp-col .imp-pick { width: 100%; min-height: 44px; }
.imp-sin-usar { margin: 12px 0 0; }
.imp-muestras { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.imp-muestras li {
  max-width: 100%; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Progress: the bar's width is the share sent. */
.imp-barra { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.imp-barra > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .imp-barra > span { transition: width .3s ease; } }

/* The result: the three figures, then the lists with their reason. */
.imp-res-aviso { margin-bottom: 12px; border-color: var(--warn); background: var(--warn-dim); }
.imp-res-lista { margin: 0; padding: 0; list-style: none; }
.imp-res-lista li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.imp-res-lista li:last-child { border-bottom: 0; }
.imp-res-nom { font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.imp-res-det { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.imp-res-botones { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
/* The result's three figures are its tabs: the one shown, outlined in gold
   and filled (never the colour alone: it also carries aria-selected). */
.imp-kpis { margin-bottom: 12px; }
.imp-kpi { font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.imp-kpi:hover { border-color: var(--accent); }
.imp-kpi[aria-selected="true"] { border: 2px solid var(--accent); background: var(--accent-dim); padding: 11px 7px; }
.imp-kpi[aria-selected="true"] .vin-kpi-l { color: var(--text); font-weight: 600; }
.imp-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The result's search and the list of the group shown. */
.imp-res-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.imp-buscar { width: 100%; min-height: 44px; }
.imp-res-card .tl-tab-panel .imp-btn { margin-top: 10px; }
.imp-res-vacio { margin: 8px 0; }
/* The last simulation / load kept on the device: what it is, and its date and file. */
.imp-ultima { justify-content: flex-start; text-align: left; }
.imp-ultima-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.imp-ultima-det {
  font-size: 13px; color: var(--muted); font-weight: 400; overflow-wrap: anywhere;
  text-transform: none; letter-spacing: normal;   /* a file name as it is written */
}

/* ── A card imported with data missing ─────────────────────────────────── */
/* The label on its row says it in words; the amber only backs it. */
.tfi-etq-inc { border-color: var(--warn); color: var(--warn); }
/* The «Incompletos» switch, first in the members list's alphabet (Santi,
   2026-11-20): an icon the size of a letter (the word took the letters'
   room). Pinned on the left: the letters scroll behind it, and the shadow in
   the page colour hides them in the gap. On = filled amber, so it reads apart
   from the chosen letter (outlined gold); a toast says which list is shown. */
.tfi-inc-sw {
  position: sticky; left: 0; z-index: 1; flex: 0 0 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: -4px 0 0 var(--bg), 8px 0 0 var(--bg);
  color: var(--muted); cursor: pointer;
}
.tfi-inc-sw svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tfi-inc-sw:hover { border-color: var(--warn); }
/* On, FILLED in amber: the chosen letter is only outlined in gold, and the two
   must not look alike. Solid, so the letters behind never show through. */
.tfi-inc-sw[aria-pressed="true"] { border-color: var(--warn); background: var(--warn); color: var(--bg); }
/* Above the card's tabs: icon, «data missing» and what is missing. */
.tfi-inc-aviso {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; padding: 12px 14px;
  border: 1px solid var(--warn); border-left-width: 4px; border-radius: 10px;
  background: var(--warn-dim); color: var(--text); text-align: left;
}
.tfi-inc-aviso-ico { display: flex; flex: 0 0 auto; color: var(--warn); padding-top: 1px; }
.tfi-inc-aviso-ico svg { width: 22px; height: 22px; }
.tfi-inc-aviso-t { font-size: 16px; font-weight: 700; color: var(--text); }
/* In «Resumen» the same block is a button to the list. */
.sres-inc { width: 100%; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font: inherit; }
.sres-inc-ir { color: var(--accent); font-weight: 600; }
.sres-inc:focus-visible, .tfi-inc-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
