/* GASCA · RRHH › ficha del trabajador › Doc. sensible — gasca_rrhh_sensible.js */
.rs-root { display: grid; gap: 12px; }
.rs-cargando, .rs-error, .rs-vacio { padding: 24px; text-align: center; color: #64748b; background: #fff; border: 1px dashed #e2e8f0; border-radius: 14px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.rs-error { color: #b91c1c; }
.rs-vacio i { font-size: 1.4rem; }
.rs-aviso { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; }
.rs-aviso > i { font-size: 1.5rem; color: #c2410c; margin-top: 2px; }
.rs-aviso div { display: flex; flex-direction: column; gap: 2px; }
.rs-aviso b { color: #7c2d12; }
.rs-aviso span { font-size: .8rem; color: #9a3412; line-height: 1.45; }
.rs-barra { display: grid; gap: 8px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: .78rem; font-weight: 700; color: #334155; cursor: pointer; }
.rs-chip b { background: #f1f5f9; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.rs-chip.on { background: #7c2d12; border-color: #7c2d12; color: #fff; }
.rs-chip.on b { background: rgba(255, 255, 255, .25); }
.rs-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rs-buscar { flex: 1 1 220px; display: flex; gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 10px; background: #fff; color: #64748b; }
.rs-buscar input { border: 0; outline: 0; flex: 1; padding: 8px 0; font: inherit; font-size: .84rem; background: transparent; min-width: 0; }
.rs-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; }
.rs-form { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; }
.rs-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed #cbd5e1; border-radius: 12px; color: #475569; text-align: center; }
.rs-drop > i { font-size: 1.6rem; color: #94a3b8; }
.rs-drop small { color: #64748b; font-size: .76rem; }
.rs-drop.rs-sobre { border-color: #c2410c; background: #fff7ed; }
.rs-link { color: #c2410c; font-weight: 700; cursor: pointer; text-decoration: underline; }
.rs-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rs-campos label, label.rs-ancho { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 700; color: #475569; }
.rs-campos .rs-ancho { grid-column: 1 / -1; }
.rs-campos input, .rs-campos select, .rs-campos textarea { border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .86rem; font-weight: 400; }
.rs-form-b { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.rs-err { color: #b91c1c; font-size: .8rem; margin-right: auto; }
.rs-lista { display: grid; gap: 8px; }
.rs-doc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid #f1f5f9; border-left: 4px solid #94a3b8; background: #fff; }
.rs-c-sensibilidad { border-left-color: #c2410c; } .rs-c-medico { border-left-color: #dc2626; } .rs-c-notas { border-left-color: #2563eb; }
.rs-c-recibis { border-left-color: #16a34a; } .rs-c-fotos { border-left-color: #7c3aed; } .rs-c-enf_profesional { border-left-color: #b45309; }
.rs-doc-i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #f8fafc; color: #475569; font-size: 1.1rem; }
.rs-doc-x { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-doc-x b { color: #0f172a; font-size: .9rem; }
.rs-doc-x small { color: #64748b; font-size: .74rem; }
.rs-notas { margin: 2px 0 0; font-size: .82rem; color: #334155; white-space: pre-wrap; background: #f8fafc; border-radius: 8px; padding: 6px 8px; max-height: 9em; overflow: auto; }
.rs-doc-b { display: flex; gap: 4px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.rs-reg { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; background: #fff; font-size: .8rem; }
.rs-reg summary { cursor: pointer; font-weight: 700; color: #334155; }
.rs-reg table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rs-reg th, .rs-reg td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.rs-reg td small { color: #64748b; }
.rs-pends { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.rs-pend { display: flex; gap: 10px; justify-content: space-between; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; }
.rs-pend-x { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.rs-pend-x small { color: #64748b; font-size: .74rem; word-break: break-all; }
.rs-sug, .rs-res { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rs-bus { border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: .8rem; }
.rs-pend-b { display: flex; gap: 4px; align-items: flex-start; flex: none; }
.rs-pend-b select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px; font: inherit; font-size: .78rem; }
@media (max-width: 640px) { .rs-pend { flex-direction: column; } .rs-doc { flex-wrap: wrap; } }
/* INC-00678: cuaderno de notas de la persona (cronológico, con autor y fecha) */
.rs-cuaderno { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid #fed7aa; background: #fffdf8; }
.rs-cuaderno > header { display: flex; gap: 10px; align-items: flex-start; }
.rs-cuaderno > header > i { font-size: 1.3rem; color: #c2410c; margin-top: 2px; }
.rs-cuaderno > header div { display: flex; flex-direction: column; gap: 2px; }
.rs-cuaderno > header b { color: #7c2d12; }
.rs-cuaderno > header small { font-size: .76rem; color: #9a3412; line-height: 1.4; }
.rs-notas-l { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 14px; display: grid; gap: 8px; border-left: 3px solid #fed7aa; }
.rs-nota { position: relative; display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.rs-nota::before { content: ''; position: absolute; left: -23px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: #c2410c; border: 2px solid #fffdf8; }
.rs-nota-cab { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; }
.rs-nota-cab b { color: #0f172a; }
.rs-nota-cab small { color: #64748b; }
.rs-nota-tema { padding: 1px 9px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: .72rem; font-weight: 700; }
.rs-nota-b { margin-left: auto; display: flex; gap: 4px; }
.rs-nota-t { margin: 0; white-space: pre-wrap; font-size: .86rem; color: #1e293b; line-height: 1.5; overflow-wrap: anywhere; }
.rs-nota-v summary { cursor: pointer; font-size: .74rem; color: #64748b; }
.rs-nota-v > div { margin-top: 6px; padding: 6px 10px; border-left: 2px solid #e2e8f0; }
.rs-nota-v .rs-nota-t { color: #64748b; font-size: .8rem; }
.rs-nota-vacio { margin: 0; font-size: .82rem; color: #64748b; }
.rs-nota-nueva, .rs-nota-ed { display: grid; gap: 8px; }
.rs-nota-f { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-nota-f label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 700; color: #475569; flex: 1 1 160px; }
.rs-nota-f input, .rs-cuaderno textarea { border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .86rem; font-weight: 400; min-width: 0; }
.rs-cuaderno textarea { width: 100%; box-sizing: border-box; resize: vertical; }
/* INC-00988: notas con adjunto dentro del cuaderno */
.rs-nota-adj { border-left: 3px solid #2563eb; }
.rs-nota-f-adj { color: #475569; font-size: .76rem; }
.rs-nota-adj .rs-nota-b { margin-left: auto; display: inline-flex; gap: 4px; }
