/* Cambio de titular (rev 20261008-5) */
.ct-barra { display: flex; align-items: center; gap: .6rem; margin: .6rem 0 .2rem; padding: .5rem .7rem; border: 1px dashed var(--line); border-radius: 10px; background: #fafcff; }
.ct-barra button { padding: .45rem .75rem; font-size: .82rem; }
#ct-dialog { width: min(640px, calc(100vw - 2rem)); }
#ct-dialog h2 { margin: .1rem 0 .2rem; font-size: 1.2rem; }
#ct-dialog h3 { margin: 1rem 0 .4rem; font-size: .95rem; }
.ct-actual { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: 10px; background: #f4f7fb; margin-top: .6rem; }
.ct-actual small { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; }
.ct-actual span { font-size: .85rem; color: var(--muted); }
.ct-modo { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.ct-modo label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
#ct-buscar { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 9px; }
.ct-resultados { max-height: 220px; overflow: auto; margin-top: .4rem; }
.ct-res, .ct-opcion { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .55rem; border-radius: 9px; cursor: pointer; }
.ct-res:hover, .ct-opcion:hover { background: #f4f7fb; }
.ct-res span, .ct-opcion span { display: flex; flex-direction: column; }
.ct-res small, .ct-opcion small { color: var(--muted); }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.ct-grid label, .ct-motivo { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .85rem; color: var(--muted); }
.ct-grid .wide { grid-column: 1 / -1; }
.ct-grid input, .ct-motivo textarea { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); }
.ct-motivo { margin-top: 1rem; }
.ct-deuda { margin: 0 0 .3rem; padding: .55rem .75rem; border-radius: 9px; background: #fff7ed; color: #7c2d12; }
.ct-sin-deuda { margin-top: 1rem; }
.ct-aviso { margin-top: 1rem; padding: .6rem .8rem; border-radius: 9px; }
.ct-aviso.bad { background: #fcebec; color: var(--red); }
#ct-historial details { margin-top: .8rem; font-size: .88rem; }
#ct-historial summary { cursor: pointer; color: var(--blue); font-weight: 700; }
#ct-historial ul { list-style: none; padding: 0; margin: .4rem 0 0; }
#ct-historial li { padding: .35rem 0; border-bottom: 1px solid #e8edf3; }
#ct-historial li small { display: block; }
.ct-acciones { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
@media (max-width: 600px) { .ct-grid { grid-template-columns: 1fr; } }
#ct-dialog input[type="radio"] { width: auto !important; flex: 0 0 auto; margin: .25rem 0 0; padding: 0; }
.ct-modo label, .ct-res, .ct-opcion { justify-content: flex-start; text-align: left; width: 100%; }
.ct-modo label { width: auto; }
.ct-res span, .ct-opcion span { flex: 1 1 auto; align-items: flex-start; }
