/* Crew: el editor de cuentas (18/10/2026). Ver crew-cuentas.js.
   Panel lateral blanco, filas con el título a la izquierda y el control a la
   derecha, como en Ajustes. */
.cta-capa { position: fixed; inset: 0; z-index: 900; background: rgba(15,23,42,0); transition: background .18s; }
.cta-capa.abierta { background: rgba(15,23,42,.28); }
.cta { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--bg, #F8FAFC); border-left: 1px solid var(--border); box-shadow: -18px 0 40px -24px rgba(15,23,42,.35); transform: translateX(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.cta-capa.abierta .cta { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cta, .cta-capa { transition: none; } }
.cta-cab { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.cta-av { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; font-size: 16px; font-weight: 650; color: #fff; background: #64748B; border-radius: 999px !important; }
.cta-av.admin { background: var(--text); }
.cta-quien { flex: 1; min-width: 0; }
.cta-quien h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.cta-quien span { font-size: 12.5px; color: var(--text-soft); }
.cta-baja { color: var(--red); font-weight: 600; }
.cta-x { width: 34px; height: 34px; font-size: 24px; line-height: 1; color: var(--text-soft); background: none; border: 0; cursor: pointer; }
.cta-x:hover { color: var(--text); }
.cta-cuerpo { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.cta-bloque h3 { margin: 0 0 8px 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-soft); }
.cta-filas { background: var(--surface); border: 1px solid var(--border); }
.cta-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.cta-filas > :last-child { border-bottom: 0; }
.cta-fila > span:first-child { font-size: 13.5px; font-weight: 500; color: var(--text); }
.cta-fila small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--text-soft); }
.cta-fila input, .cta-fila select, .cta-pass input, .cta-gente-busca { width: 100%; height: 36px; padding: 0 11px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border-med, #D1D5DB); outline: none; }
.cta-fila input:focus, .cta-fila select:focus, .cta-pass input:focus, .cta-gente-busca:focus { border-color: var(--text-soft); box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.cta-fila-boton { grid-template-columns: 1fr; }
.cta-acceso { grid-template-columns: 22px minmax(0, 1fr) auto; }
.cta-zona .cta-acceso { grid-template-columns: minmax(0, 1fr) auto; background: var(--surface); border: 1px solid var(--border); }
.cta-acceso-ico { display: grid; place-items: center; color: var(--text-2); }
.cta-acceso-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.cta-acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cta-peligro { color: var(--red) !important; }
.cta-pass { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-soft); }
.cta-gente { padding: 10px 16px 12px; border-bottom: 1px solid var(--border); background: var(--bg, #F8FAFC); }
.cta-gente-lista { max-height: 240px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; }
.cta-persona { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; font: inherit; text-align: left; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.cta-persona:hover:not(:disabled) { background: var(--surface); }
.cta-persona:disabled { opacity: .5; cursor: default; }
.cta-persona b { font-size: 13px; font-weight: 600; }
.cta-persona small { font-size: 12px; color: var(--text-soft); }
.cta-nota { margin: 4px 0; font-size: 12.5px; color: var(--text-soft); }
.cta-mal { color: var(--red); }
.cta-pie { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--surface); border-top: 1px solid var(--border); }
.cta-pie #cta-estado { margin-right: auto; font-size: 12.5px; color: var(--text-soft); }
.crew-card.cta-abrible { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.crew-card.cta-abrible:hover { border-color: #CBD5E1; box-shadow: 0 4px 14px -8px rgba(15,23,42,.18); }
@media (max-width: 560px) { .cta-fila { grid-template-columns: 1fr; gap: 6px; } .cta-acceso { grid-template-columns: 22px 1fr; } .cta-acceso .cta-acciones { grid-column: 2; justify-content: flex-start; } }
.cta-pass[hidden], .cta-gente[hidden] { display: none !important; }
