/* 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; } }
