/* Pantalla: ficha de OT (Rediseño 7). */

/* --- Ficha de OT (Rediseño 7) ---
   Encabezado con el código grande, las badges (estado primero) y las
   acciones a la derecha; el stepper a todo el ancho; y dos columnas desde
   1024: los datos a la izquierda y, a la derecha, asignados y la línea de
   tiempo (pegada arriba al hacer scroll). Las tarjetas de la ficha llevan sus
   filas AL RAS (sin una segunda caja adentro de la tarjeta). */
.ficha { display: flex; flex-direction: column; gap: var(--space-4); }
.ficha__volver { align-self: flex-start; margin-bottom: calc(-1 * var(--space-2)); }
.ficha-enc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.ficha-enc__texto { min-width: 0; flex: 1 1 320px; }
.ficha-enc__sobre {
  margin: 0 0 var(--space-1);
  font-size: var(--text-subhead-size);
  font-weight: 600;
  color: var(--label-secondary);
}
.ficha-enc__titulo {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-large-title-size);
  line-height: var(--text-large-title-lh);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--label);
}
.ficha-enc__titulo:focus { outline: none; }
.ficha-enc__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.ficha-enc__equipo { margin: var(--space-2) 0 0; }
.ficha-enc__acciones { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ficha-enc__acciones .btn { gap: var(--space-2); }
.ficha-enc__cancelar { color: var(--text-red); }
@media (max-width: 767.98px) {
  .ficha-enc__acciones { width: 100%; }
  .ficha-enc__acciones .btn { flex: 1 1 auto; }
}

.ficha__columnas { display: flex; flex-direction: column; gap: var(--space-4); }
.ficha__datos, .ficha__lado { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
@media (min-width: 1024px) {
  .ficha__columnas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: start;
  }
  .ficha__lado { position: sticky; top: calc(var(--navbar-h) + var(--space-4)); }
}

/* Filas al ras de la tarjeta: la tarjeta ya es la caja. */
.ficha .card > .list-group {
  margin: 0 calc(-1 * var(--space-4));
  background: transparent;
  border: 0;
  border-top: 1px solid var(--separator);
  border-radius: 0;
  box-shadow: none;
}
.ficha .card > .list-group:last-child { margin-bottom: calc(-1 * var(--space-4)); }
.ficha .list-row { cursor: default; }
.ficha .list-row:hover { background: transparent; }
.ficha .card { padding: var(--space-4); }
.ficha .card__titulo h2 { font-family: var(--font-display); }

/* Progreso del checklist (decorativo: el «3 de 5 OK» lo dice en texto). */
.ficha-progreso {
  height: 6px;
  margin: calc(-1 * var(--space-1)) 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-3);
  overflow: hidden;
}
.ficha-progreso > span { display: block; height: 100%; border-radius: inherit; background: var(--estado-ok-text); }
.ficha-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--label-secondary);
}
.ficha-check--hecho { background: var(--estado-ok-bg); color: var(--estado-ok-text); }

