/* =====================================================================
   GASCA · Recursos Humanos — apps migradas del Access (Calendarios laborales y Tickets de personal).
   Estilo de Victoria, alineado con el cuadro de mando de RRHH. Prefijo .ra- (común), .rc- (calendarios), .rt- (tickets).
   ===================================================================== */
#rrhh-cal-view, #rrhh-tic-view, #rrhh-fic-view, #rrhh-notif-view, .ra-modal-root, .ra-toast,
.view-panel:has(> .ra-root) {   /* toda vista hecha con las piezas ra-* (Remesa de pagos, Registro de actividad…) */
    --ra-red: #b4000c; --ra-ink: #0f172a; --ra-ink2: #334155; --ra-muted: #64748b; --ra-line: #e2e8f0; --ra-card: #fff; --ra-bg: #f8fafc;
    --ra-blue: #2a78d6; --ra-green: #0f7b48; --ra-warn: #a15c00;
    --ra-radius: 16px; --ra-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.16);
    font-family: 'Inter', sans-serif; color: var(--ra-ink); font-size: 14px; line-height: 1.45;
}
:where(#rrhh-cal-view, #rrhh-tic-view, #rrhh-fic-view, #rrhh-notif-view, .ra-modal-root, .view-panel:has(> .ra-root)) :is(h2, h3, h4, p) { margin: 0; padding: 0; font-family: inherit; color: var(--ra-ink); }
:where(#rrhh-cal-view, #rrhh-tic-view, #rrhh-fic-view, #rrhh-notif-view, .ra-modal-root, .view-panel:has(> .ra-root)) :is(button, select, input, textarea) { font-family: inherit; }
.ra-root { display: flex; flex-direction: column; gap: 22px; padding-bottom: 48px; }

/* cabecera */
.ra-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.ra-tit { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ra-tit-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.2rem;
    background: linear-gradient(135deg, #b4000c, #e34948); box-shadow: 0 10px 22px -12px rgba(180,0,12,.8); }
.ra-tit h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.ra-tit p { font-size: .8rem; color: var(--ra-muted); }
.ra-volver { border: 0; background: none; color: var(--ra-muted); font-weight: 700; font-size: .8rem; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.ra-volver:hover { color: var(--ra-red); }
.ra-barra-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ra-btn { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ra-line); background: #fff; font-weight: 700; font-size: .82rem; cursor: pointer;
    color: var(--ra-ink); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ra-btn:hover:not(:disabled) { border-color: var(--ra-ink); }
.ra-btn:disabled { opacity: .5; cursor: default; }
.ra-btn.ra-prim { background: var(--ra-ink); color: #fff; border-color: var(--ra-ink); }
.ra-btn.ra-rojo { background: var(--ra-red); color: #fff; border-color: var(--ra-red); }
.ra-btn.ra-peligro { background: #fff; color: var(--ra-red); border-color: #f3c2c5; }
.ra-btn.ra-peligro:hover:not(:disabled) { background: var(--ra-red); color: #fff; border-color: var(--ra-red); }
.ra-btn.ra-mini { height: 28px; padding: 0 10px; font-size: .76rem; border-radius: 8px; }
.ra-link { border: 0; background: none; color: var(--ra-blue); font-weight: 700; cursor: pointer; padding: 0; font-size: inherit; text-align: left; }
.ra-link:hover { text-decoration: underline; }

/* controles */
.ra-ctl { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--ra-line); border-radius: 10px; background: #fff;
    font-size: .8rem; font-weight: 700; color: var(--ra-muted); }
.ra-ctl input, .ra-ctl select { border: 0; outline: 0; background: transparent; font-size: .84rem; font-weight: 700; color: var(--ra-ink); min-width: 0; }
.ra-in, .ra-sel, .ra-ta { height: 36px; border: 1px solid var(--ra-line); border-radius: 9px; padding: 0 10px; font-size: .86rem; background: #fff; color: var(--ra-ink); min-width: 0; }
.ra-ta { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; width: 100%; }
.ra-in:focus, .ra-sel:focus, .ra-ta:focus { outline: 0; border-color: var(--ra-blue); box-shadow: 0 0 0 3px rgba(42,120,214,.14); }
.ra-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.ra-campo { display: grid; gap: 4px; min-width: 0; }
.ra-campo.ra-ancho { grid-column: 1 / -1; }
.ra-campo > span { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ra-muted); }
.ra-campo .ra-in, .ra-campo .ra-sel { width: 100%; }
.ra-campo small { font-size: .72rem; color: var(--ra-muted); }
.ra-check { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.ra-opciones { display: grid; gap: 6px; }
.ra-opciones label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--ra-line); border-radius: 10px; cursor: pointer; font-size: .86rem; }
.ra-opciones label:has(input:checked) { border-color: var(--ra-ink); background: #f8fafc; }
.ra-sep { height: 1px; background: var(--ra-line); margin: 6px 0; }

/* tarjetas, pestañas y tablas */
.ra-card { background: var(--ra-card); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); box-shadow: var(--ra-shadow); padding: 18px 20px; min-width: 0; }
.ra-card-h { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ra-card-h h3 { font-size: 1rem; font-weight: 800; }
.ra-card-h p { font-size: .78rem; color: var(--ra-muted); }
.ra-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #eef2f6; padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; }
.ra-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ra-muted); font-weight: 700; font-size: .82rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; }
.ra-tabs button:hover { color: var(--ra-ink); }
.ra-tabs button.ra-on { background: #fff; color: var(--ra-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ra-tw { overflow: auto; border: 1px solid var(--ra-line); border-radius: 12px; background: #fff; }
.ra-t { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ra-t th { position: sticky; top: 0; z-index: 1; background: #f8fafc; text-align: left; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ra-muted); padding: 9px 10px; border-bottom: 1px solid var(--ra-line); white-space: nowrap; }
.ra-t td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.ra-t tbody tr:last-child td { border-bottom: 0; }
.ra-t tr.ra-clic { cursor: pointer; }
.ra-t tr.ra-clic:hover td { background: #f8fafc; }
.ra-t .ra-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-t tfoot td { font-weight: 800; background: #f1f5f9; border-top: 1px solid var(--ra-line); }
.ra-t .ra-acciones { white-space: nowrap; text-align: right; }
.ra-t .ra-acciones .ra-btn { margin-left: 4px; }
.ra-t input.ra-in, .ra-t select.ra-sel { height: 30px; font-size: .8rem; padding: 0 6px; }
.ra-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef2f6; color: var(--ra-ink2); white-space: nowrap; }
.ra-pill.ra-p-ok { background: #e3f4ea; color: var(--ra-green); }
.ra-pill.ra-p-mal { background: #fde8e9; color: var(--ra-red); }
.ra-pill.ra-p-aviso { background: #fff3dc; color: var(--ra-warn); }
.ra-pill.ra-p-azul { background: #e8f1fc; color: #1c5cab; }
.ra-nada { padding: 28px; text-align: center; color: var(--ra-muted); font-size: .86rem; }
.ra-texto { font-size: .9rem; color: var(--ra-ink2); white-space: pre-line; }
.ra-hint { font-size: .74rem; color: var(--ra-muted); }

/* leyendas (solo administradores) */
.ra-notas { display: grid; gap: 6px; }
.ra-nota { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: #0c4a6e; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 8px 12px; }
.ra-nota i { margin-top: 2px; }
.ra-nota code { font-size: .74rem; background: rgba(255,255,255,.7); padding: 0 4px; border-radius: 4px; }
.ra-nota-dif { color: #713f12; background: #fefce8; border-color: #fde68a; }
.ra-nota-pend { color: #7c2d12; background: #fff7ed; border-color: #fed7aa; }
.ra-nota-regla { color: #1e293b; background: #f8fafc; border-color: var(--ra-line); }

/* estados */
.ra-cargando { display: grid; gap: 10px; place-items: center; padding: 50px 20px; color: var(--ra-muted); font-size: .86rem; }
.ra-barra { width: 180px; height: 4px; border-radius: 4px; background: #e2e8f0; overflow: hidden; position: relative; }
.ra-barra::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--ra-red); border-radius: 4px; animation: ra-barra 1.1s infinite ease-in-out; }
@keyframes ra-barra { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.ra-error { padding: 14px 16px; border-radius: 12px; background: #fde8e9; color: var(--ra-red); font-weight: 600; font-size: .86rem; }

/* diálogos */
.ra-modal-root { position: fixed; inset: 0; z-index: 10050; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 16px; }
.ra-modal { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(15,23,42,.5); width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.ra-modal-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 10px; }
.ra-modal-h h3 { font-size: 1.1rem; font-weight: 800; }
.ra-modal-h p { font-size: .8rem; color: var(--ra-muted); margin-top: 2px; }
.ra-x { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--ra-muted); flex: 0 0 32px; }
.ra-x:hover { color: var(--ra-ink); }
.ra-modal-b { padding: 6px 20px 14px; overflow: auto; display: grid; gap: 14px; }
.ra-modal-f { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 20px 16px; border-top: 1px solid var(--ra-line); flex-wrap: wrap; }
.ra-modal-err { color: var(--ra-red); font-size: .82rem; font-weight: 600; flex: 1 1 200px; }
.ra-modal-bots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.ra-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10100; background: var(--ra-ink); color: #fff; padding: 11px 18px;
    border-radius: 12px; font-size: .86rem; font-weight: 600; box-shadow: 0 16px 40px -14px rgba(15,23,42,.6); display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 32px); }
.ra-toast.ra-mal { background: var(--ra-red); }

/* ---------------------------------------------------------------- Calendarios laborales (.rc-) */
.rc-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-ley { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--ra-ink2); align-items: center; }
.rc-ley span { display: inline-flex; align-items: center; gap: 6px; }
.rc-ley i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(15,23,42,.12); }
.rc-mes { margin-top: 18px; }
.rc-mes-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; }
.rc-mes-h > span:first-child { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: var(--ra-ink); }
.rc-mes-h small { font-weight: 600; color: var(--ra-muted); font-size: .8rem; }
.rc-mes-tot { font-size: .78rem; font-weight: 800; color: #0f7b48; background: #e3f4ea; padding: 3px 10px; border-radius: 999px; }
.rc-tw { overflow: auto; border-radius: 14px; border: 1px solid var(--ra-line); background: #fff; max-height: 70vh; }
.rc-grid { border-collapse: separate; border-spacing: 2px; font-size: .74rem; width: max-content; min-width: 100%; padding: 4px; }
.rc-grid th, .rc-grid td { text-align: center; padding: 0 2px; height: 30px; min-width: 38px; border-radius: 7px; white-space: nowrap; }
.rc-grid thead th { background: #f8fafc; color: var(--ra-muted); font-size: .62rem; font-weight: 700; line-height: 1.05; position: sticky; top: 0; z-index: 1; height: 36px; }
.rc-grid thead th span { display: block; font-size: .58rem; letter-spacing: .04em; opacity: .8; }
.rc-grid thead th b { display: block; font-size: .78rem; color: var(--ra-ink2); }
.rc-grid thead th.rc-finde { background: #eef2f6; }
.rc-grid thead th.rc-hoy { background: var(--ra-red); }
/* INC-00758: domingo y festivo en la cabecera, columna del día elegido, tramo, vista de un día (móvil) */
.rc-grid thead th.rc-dom { background: #fde4e4; } .rc-grid thead th.rc-dom b, .rc-grid thead th.rc-dom span { color: #b4000c; }
.rc-grid thead th.rc-fest { background: rgb(92,131,180); } .rc-grid thead th.rc-fest b, .rc-grid thead th.rc-fest span { color: #fff; }
.rc-grid thead th.rc-selcol { box-shadow: inset 0 0 0 2px #0f172a; }
.rc-grid td.rc-selcol { box-shadow: inset 0 0 0 2px #0f172a; }
.rc-grid td.rc-tramo-ini { box-shadow: inset 0 0 0 3px #0f7b48; }
.rc-cal-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-tramo-aviso { margin-top: 6px; color: #0f7b48; font-weight: 700; }
.rc-dv { border: 1px solid var(--ra-line); border-radius: 14px; padding: 10px; margin: 6px 0 12px; display: grid; gap: 6px; background: #fff; }
.rc-dv-h0 { display: flex; align-items: center; gap: 8px; } .rc-dv-h0 b { flex: 1; text-align: center; font-size: .92rem; }
.rc-dv-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid #f1f5f9; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.rc-dv-fila:hover { background: #f8fafc; }
.rc-dv-n b { display: block; font-size: .84rem; } .rc-dv-n small { display: block; font-size: .7rem; color: var(--ra-muted); } .rc-dv-n small.rc-dv-o { color: var(--ra-ink2); }
.rc-dv-h { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { #rrhh-cal-view .rc-graficos { display: none; } #rrhh-cal-view .rc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } #rrhh-cal-view .rc-kpi-v { font-size: 1.3rem; } #rrhh-cal-view .rc-grid .rc-nom { min-width: 130px; max-width: 150px; } }
.rc-grid thead th.rc-hoy span, .rc-grid thead th.rc-hoy b { color: #fff; }
.rc-grid .rc-nom { text-align: left; padding: 0 12px; min-width: 200px; max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0;
    background: #fff; z-index: 2; border-radius: 0; box-shadow: 1px 0 0 var(--ra-line); }
.rc-grid td.rc-nom b { display: block; font-size: .78rem; font-weight: 700; color: var(--ra-ink); overflow: hidden; text-overflow: ellipsis; }
.rc-grid td.rc-nom small { display: block; font-size: .64rem; color: var(--ra-muted); overflow: hidden; text-overflow: ellipsis; }
.rc-grid thead th.rc-nom { z-index: 3; background: #f8fafc; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; }
.rc-grid .rc-tot { font-weight: 800; padding: 0 10px; background: #f1f5f9; min-width: 62px; color: var(--ra-ink); position: sticky; right: 0; z-index: 2; box-shadow: -3px 0 0 #fff; }
.rc-grid thead th.rc-tot { z-index: 3; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; }
.rc-grid td.rc-d { cursor: pointer; position: relative; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .7rem; letter-spacing: -.02em; transition: transform .08s, box-shadow .08s; }
.rc-grid td.rc-d:hover { transform: scale(1.12); box-shadow: 0 4px 12px -4px rgba(15,23,42,.45); z-index: 1; }
.rc-grid td.rc-t0 { background: #f8fafc; color: var(--ra-ink2); }
.rc-grid td.rc-t0.rc-fcol { background: #eef2f6; color: var(--ra-muted); }
.rc-grid td.rc-hoy { box-shadow: inset 0 0 0 2px var(--ra-red); }
.rc-grid td.rc-vacio { background: repeating-linear-gradient(45deg, #fff, #fff 3px, #f1f5f9 3px, #f1f5f9 6px); }
.rc-grid td.rc-obs::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #0f172a; box-shadow: 0 0 0 1.5px #fff; }
.rc-chips-mes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rc-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ra-line); background: #fff; font-size: .78rem; font-weight: 700; color: var(--ra-muted); cursor: pointer; }
.rc-chip:hover { color: var(--ra-ink); border-color: var(--ra-ink); }
.rc-chip.rc-on { background: var(--ra-ink); color: #fff; border-color: var(--ra-ink); }
/* indicadores y gráficos */
.rc-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.rc-kpi { background: #fff; border: 1px solid var(--ra-line); border-radius: var(--ra-radius); box-shadow: var(--ra-shadow); padding: 14px 16px 14px 18px; display: grid; gap: 4px;
    position: relative; overflow: hidden; }
.rc-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.rc-kpi-l { display: flex; gap: 8px; align-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ra-muted); }
.rc-kpi-l i { color: var(--k); font-size: .82rem; }
.rc-kpi-v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rc-kpi-v small { font-size: .95rem; color: var(--ra-muted); font-weight: 700; }
.rc-kpi-s { font-size: .74rem; color: var(--ra-muted); }
.rc-kpi-s b { color: var(--ra-red); }
.rc-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.rc-chart { position: relative; height: 240px; }
.rc-t0 { background: #fff; }
.rc-t1 { background: rgb(187,182,174); color: #000; }
.rc-t2 { background: rgb(92,131,180); color: #fff; }
.rc-t3 { background: rgb(192,80,77); color: #fff; }
.rc-t4 { background: rgb(157,187,97); color: #000; }
.rc-t5 { background: rgb(255,194,14); color: #000; }
.rc-t6 { background: rgb(128,102,160); color: #fff; }
.rc-t7 { background: rgb(255,128,0); color: #fff; }
.rc-t8 { background: rgb(255,128,192); color: #000; }
.rc-semanas { border-collapse: collapse; font-size: .8rem; }
.rc-semanas th { font-size: .64rem; font-weight: 800; color: var(--ra-muted); text-transform: uppercase; padding: 4px; }
.rc-semanas td { padding: 3px; text-align: center; }
.rc-semanas input { width: 62px; height: 30px; border: 1px solid var(--ra-line); border-radius: 7px; text-align: center; font-size: .82rem; }
.rc-semanas input.rc-letra { width: 38px; margin-top: 3px; text-transform: uppercase; }
.rc-turno { border: 1px solid var(--ra-line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.rc-turno-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.rc-turno-h b { font-size: .98rem; }
.rc-lista-trab { max-height: 360px; overflow: auto; border: 1px solid var(--ra-line); border-radius: 12px; }
.rc-lista-trab label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: .82rem; }
.rc-lista-trab label:hover { background: #f8fafc; }
.rc-lista-trab small { color: var(--ra-muted); }
.rc-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ra-red); color: #fff; font-size: .66rem; font-weight: 800; }
.rc-inf-grupo td { background: #f8fafc; font-weight: 800; }
.rc-inf-sub td { font-weight: 800; border-top: 1px solid var(--ra-line); }
.rc-neg { color: var(--ra-red); }

@media print {
    body * { visibility: hidden !important; }
    .ra-imprimible, .ra-imprimible * { visibility: visible !important; }
    .ra-imprimible { position: absolute; left: 0; top: 0; width: 100%; }
    .ra-no-imprimir { display: none !important; }
    .rc-grid td, .rc-grid th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rc-mes { break-inside: avoid; }
}

/* ---------------------------------------------------------------- Tickets de personal (.rt-) */
.rt-filtros { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rt-f-l { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ra-muted); margin-left: 4px; }
.rt-seg { display: inline-flex; background: #eef2f6; border-radius: 10px; padding: 3px; gap: 2px; }
.rt-seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ra-muted); font-weight: 700; font-size: .78rem; cursor: pointer; }
.rt-seg button.ra-on { background: #fff; color: var(--ra-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.rt-ord { cursor: pointer; user-select: none; }
.rt-ord:hover { color: var(--ra-ink); }
.rt-clic { cursor: pointer; transition: transform .12s, border-color .12s; }
.rt-clic:hover { transform: translateY(-1px); border-color: var(--k); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.rt-bloque { border: 1px solid var(--ra-line); border-radius: 14px; padding: 12px 14px; background: #fcfdfe; }
.rt-bloque:last-of-type:nth-child(odd) { grid-column: 1 / -1; }
.rt-bloque h4 { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ra-muted); }
.rt-lote-g { margin-bottom: 14px; }
.rt-lote-h { font-size: .82rem; padding: 8px 10px; background: #f8fafc; border-radius: 10px; margin-bottom: 6px; line-height: 1.5; }

/* INC-00103/104: gráficos y aspecto cuidado (como Prevención, INC-00101) en Fichas de centros y Notificaciones laborales */
.ra-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.ra-graficos .ra-ancho-g { grid-column: 1 / -1; }
.ra-graf { margin: 0; }
.ra-graf .ra-card-h p { font-size: .76rem; }
.ra-graf-c { position: relative; padding: 4px 6px 8px; }
.ra-res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ra-res-head h3 { font-size: 1.05rem; font-weight: 800; }
.ra-res-head p { font-size: .8rem; color: var(--ra-muted); }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-root { gap: 18px; }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-head { background: linear-gradient(120deg, #fff 0%, #fff 55%, #eef4fd 100%); border: 1px solid var(--ra-line);
    border-radius: 20px; padding: 18px 22px; box-shadow: var(--ra-shadow); }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-tit-ico { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; font-size: 1.35rem; }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .ra-tabs { background: #fff; border: 1px solid var(--ra-line); border-radius: 14px; padding: 5px; display: inline-flex; flex-wrap: wrap; gap: 4px;
    box-shadow: var(--ra-shadow); justify-self: start; }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .ra-tabs button { border-radius: 10px; }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .ra-tabs button.ra-on { background: var(--ra-blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(42,120,214,.9); }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .ra-tabs button.ra-on i { color: #fff; }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-card { border-radius: 18px; box-shadow: var(--ra-shadow); }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .rc-kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .rc-kpi { border-radius: 16px; padding: 16px 18px 16px 20px; transition: transform .15s, box-shadow .15s; }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .rc-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15,23,42,.35); }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .rc-kpi-l i { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--k) 12%, #fff); }
:is(#rrhh-fic-view, #rrhh-notif-view, #rrhh-remesas-view) .rc-kpi-v { font-size: 1.85rem; }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-t tbody tr:nth-child(even) td { background: #fafbfc; }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-t tbody tr:hover td { background: #eef5ff; }
:is(#rrhh-fic-view, #rrhh-fic-config, #rrhh-notif-view, #rrhh-remesas-view) .ra-t thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; }


/* INC-00110/124: leyendas plegadas para quien no es administrador */
.ra-notas-det { border: 1px solid var(--ra-line, #e2e8f0); border-radius: 12px; background: #fff; padding: 8px 12px; }
.ra-notas-det > summary { cursor: pointer; font-weight: 700; font-size: .82rem; color: #334155; display: flex; gap: 8px; align-items: center; }
.ra-notas-det[open] > summary { margin-bottom: 8px; }

/* Gestión de sustituciones › Posibles sustitutos (ranking de 4 niveles) */
.rt-bloque.rt-cands { grid-column: 1 / -1; background: #fbfdff; min-width: 0; max-width: 100%; box-sizing: border-box; margin-top: 14px; }
.rt-cands td { white-space: normal; }
.rt-cand-seg { margin-bottom: 8px; flex-wrap: wrap; }
.rt-cand-seg button i { color: var(--c); }
.rt-cand-seg button.ra-on { background: var(--c); color: #fff; }
.rt-cand-seg button.ra-on i { color: #fff; }
.rt-cand-seg button b { margin-left: 4px; font-weight: 700; }
.rt-cand-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px; border-radius: 999px; background: #eef2f7; color: #475569; font-size: 11px; }
.rt-cand-tag.rt-cand-ok { background: #e3f6ec; color: #0f7b48; }
/* Recording_61: observaciones de la bolsa de BEKOSU en los candidatos */
.rt-cand-obs { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 4px 6px; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 12px; }
.rt-cand-obs > span { flex: 1; white-space: pre-wrap; }
.rt-cand-obs .ra-mini { padding: 1px 6px; }
.rt-cand-obs.rt-cand-obs-mal { background: #fee2e2; color: #991b1b; font-weight: 600; }
/* INC-00554: historial de notas de un posible sustituto */
.rt-notas-hist { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.rt-notas-hist li { padding: 6px 8px; border-radius: 8px; background: #f8fafc; font-size: 12px; white-space: pre-wrap; }

/* Fichas de centros › datos de BEKOSU */
.fc-bekosu { margin: 0 0 10px; border: 1px solid #cfe3f5; background: #f5faff; border-radius: 12px; padding: 10px 12px; }
.fc-bekosu-h { font-weight: 700; color: #1d4f86; margin-bottom: 6px; }
.fc-bekosu-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 14px; font-size: 12px; }
.fc-bekosu-g span { color: #64748b; margin-right: 6px; }
.ra-in.fc-bk, .ra-sel.fc-bk { background: #fff7d6; border-color: #e0b100; }

/* INC-00350 (Hugo): ficha de la incidencia en dos columnas: trabajador e incidencia a la izquierda; sustituciones y posibles sustitutos a la derecha */
.rt-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.rt-col { display: grid; gap: 12px; min-width: 0; }
.rt-bloques.rt-bloques-1 { grid-template-columns: minmax(0, 1fr); }
.rt-col > .rt-bloque, .rt-col > .rt-bloque.rt-cands { margin-top: 0; grid-column: auto; }
.rt-2col .ra-form { gap: 8px 12px; }
.rt-2col .rt-bloque { padding: 10px 12px; }
@media (max-width: 1100px) { .rt-2col { grid-template-columns: minmax(0, 1fr); } }
/* INC-00582 (Hugo): mitad izquierda más compacta: 3 campos por fila, campos anchos a 2 columnas, cajas y rótulos más bajos */
.rt-bloques-1 .ra-form { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px 10px; }
.rt-bloques-1 .ra-campo { gap: 2px; }
.rt-bloques-1 .ra-campo > span { font-size: .6rem; }
.rt-bloques-1 .ra-campo.ra-ancho { grid-column: span 2; }
.rt-bloques-1 .ra-campo.ra-ancho:has(textarea) { grid-column: 1 / -1; }
.rt-bloques-1 .ra-in, .rt-bloques-1 .ra-sel { height: 30px; font-size: .8rem; padding: 0 8px; border-radius: 7px; }
.rt-bloques-1 .ra-ta { min-height: 52px; font-size: .8rem; padding: 6px 8px; }
.rt-bloques-1 .rt-bloque { padding: 8px 10px; }
.rt-bloques-1 .rt-bloque h4 { margin-bottom: 6px; }
.rt-bloques-1 { gap: 8px; }

/* INC-00368: justificantes adjuntos a la incidencia */
.rt-just { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rt-just li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .84rem; }
.rt-just li small { color: var(--ra-muted); flex: 1; }

/* INC-00378: matrícula (código de empleado de Sage) junto al nombre */
.rt-matr { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #eef2f7; color: #334155; font-size: .76em; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 1px; }
/* Ausencias no retribuidas del curso (audio 22/10/2026) */
.rt-nr-barra { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin: 2px 0 4px; }
.rt-nr-barra i { display: block; height: 100%; border-radius: 999px; }
.rt-nr-aviso { margin: 6px 0; padding: 6px 9px; border-radius: 8px; background: #fde8e9; color: #9f1d24; font-size: 13px; }
.rt-nr-tabla { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.rt-nr-tabla th, .rt-nr-tabla td { padding: 4px 6px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.rt-nr-tabla .ra-n { text-align: right; }
.rt-nr-tabla tr.rt-nr-esta { background: #eef6ff; }

/* INC-00677: ausencias comunicadas desde el portal del empleado; las de menos de 3 días, muy resaltadas */
tr.rt-portal td { background: #eff6ff; }
tr.rt-portal-corta td { background: #fff7ed !important; }
tr.rt-portal-corta td:first-child { box-shadow: inset 6px 0 0 #ea580c; }
.rt-portal-tag { display: inline-block; margin-top: 3px; font-size: .72rem; font-weight: 700; color: #1e40af; background: #dbeafe; border-radius: 999px; padding: 1px 8px; }
.rt-portal-corta-tag { color: #fff; background: #ea580c; animation: rtPortalPulso 1.6s ease-in-out infinite; }
@keyframes rtPortalPulso { 50% { opacity: .6; } }

/* ---------------------------------------------------------------- Calendarios laborales · INC-00758: diseño de Hugo (Figma «Rediseño Calendario Laboral») */
.rcx { --g: #176b4d; --ink: #17211c; --mut: #77817c; --line: #dfe4e1; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #f4f6f5; margin: -4px; padding: 6px 4px 20px; border-radius: 14px; }
.rcx button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.rcx-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.rcx-back { color: var(--mut) !important; font-size: 11px !important; padding: 0 !important; margin-bottom: 8px; display: inline-flex; gap: 6px; align-items: center; }
.rcx-back:hover { color: var(--g) !important; }
.rcx-eyebrow { color: #26805e; letter-spacing: .12em; margin-bottom: 5px; font-size: 10px; font-weight: 700; }
.rcx-heading h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.rcx-heading p { color: var(--mut); margin: 5px 0 0; font-size: 12px; }
.rcx-heading-actions { display: flex; gap: 8px; }
.rcx-button { white-space: nowrap; border: 1px solid transparent !important; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; height: 36px; padding: 0 13px !important; font-size: 12px !important; font-weight: 600; }
.rcx-secondary { color: #435049 !important; background: #fff !important; border-color: #d8dfdb !important; }
.rcx-secondary:hover, .rcx-secondary.rcx-on { border-color: #8dbba6 !important; color: var(--g) !important; }
.rcx-dark { color: #fff !important; background: #263c33 !important; }
.rcx-primary { color: #fff !important; background: #176b4d !important; }
.rcx-danger { color: #a74b4b !important; background: #fff !important; border-color: #ecd0d0 !important; }
.rcx-menu-wrap { position: relative; }
.rcx-menu { z-index: 80; background: #fff; border: 1px solid #dce2df; border-radius: 8px; padding: 5px; position: absolute; top: 42px; right: 0; width: 250px; box-shadow: 0 12px 30px rgba(30,52,41,.1); }
.rcx-menu[hidden] { display: none; }
.rcx-menu button { text-align: left; border-radius: 5px; align-items: center; gap: 9px; width: 100%; padding: 9px !important; font-size: 12px !important; display: flex; color: #2b3a33 !important; }
.rcx-menu button i { width: 16px; color: #5f6b65; }
.rcx-menu button:hover { background: #f1f5f3 !important; }
.rcx-menu hr { border: 0; border-top: 1px solid #e6ebe8; margin: 4px 2px; }
/* INC-00811 (saioa.l): en el móvil el menú «Acciones» se salía por la izquierda; se abre hacia la derecha, cabe en pantalla y se desplaza */
@media (max-width: 700px) { .rcx-menu { right: auto; left: 0; width: min(300px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; } }
.rcx-toolbar { background: #fff; border: 1px solid var(--line); border-radius: 10px; align-items: center; gap: 10px; padding: 9px; display: flex; box-shadow: 0 1px 2px rgba(35,54,44,.04); flex-wrap: wrap; }
.rcx-month-control { align-items: center; display: flex; }
.rcx-month-control > button { color: #5f6b65 !important; border-radius: 6px; place-items: center; width: 32px; height: 34px; display: grid; }
.rcx-month-control > button:hover { background: #f2f5f3 !important; }
.rcx-month-label { color: #1d2c25; justify-content: center; align-items: center; gap: 8px; min-width: 150px; font-size: 13px; font-weight: 650; display: flex; }
.rcx-divider { background: #e3e8e5; width: 1px; height: 24px; }
.rcx-month-filter { color: #1d563f !important; background: #f6faf8 !important; border-color: #bcd3c8 !important; min-width: 170px; font-weight: 600; text-transform: capitalize; }
.rcx-search { color: #7c8681; border: 1px solid #dce2df; border-radius: 7px; align-items: center; gap: 8px; width: min(260px, 22vw); height: 34px; padding: 0 10px; display: flex; background: #fff; }
.rcx-search input { flex: 1 1 0%; min-width: 0; font-size: 12px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.rcx-search:focus-within { border-color: #72a990; box-shadow: 0 0 0 3px rgba(29,128,92,.075); }
.rcx-date { width: 160px; }
.rcx-filter-button b { background: #176b4d; color: #fff; border-radius: 999px; font-size: 9px; min-width: 16px; height: 16px; display: inline-grid; place-items: center; }
.rcx-today { color: #176b4d !important; margin-left: auto; padding: 8px !important; font-size: 11px !important; font-weight: 650; }
.rcx-filter-panel { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.rcx-filter-panel[hidden] { display: none; }
.rcx-filter-panel label { display: flex; flex-direction: column; gap: 5px; font-size: 10px; font-weight: 650; color: #48534d; }
.rcx-filter-panel select { height: 34px; border: 1px solid #d9e0dc; border-radius: 7px; padding: 0 8px; font-size: 12px; background: #fff; min-width: 200px; }
.rcx-check { flex-direction: row !important; align-items: center; gap: 7px !important; height: 34px; font-size: 12px !important; color: #35423b !important; cursor: pointer; }
.rcx-check input { display: none; }
.rcx-check span { color: transparent; border: 1px solid #ccd5d0; border-radius: 4px; place-items: center; width: 18px; height: 18px; display: grid; font-size: 10px; }
.rcx-check input:checked + span { color: #fff; background: #176b4d; border-color: #176b4d; }
.rcx-clear { color: #176b4d !important; font-size: 11px !important; font-weight: 650; text-decoration: underline; margin-left: auto; height: 34px; }
.rcx-summary { align-items: center; min-height: 58px; display: flex; flex-wrap: wrap; margin: 4px 0; }
.rcx-summary-item { border-right: 1px solid #dde3df; grid-template-columns: auto auto; align-items: center; column-gap: 7px; padding: 0 25px; display: grid; }
.rcx-summary-item:first-child { padding-left: 2px; }
.rcx-summary-item span { color: #7a857f; text-transform: uppercase; letter-spacing: .045em; grid-column: 1 / -1; margin-bottom: 2px; font-size: 9px; font-weight: 600; }
.rcx-summary-item strong { font-size: 16px; font-weight: 650; }
.rcx-summary-item small { color: #8b948f; font-size: 9px; }
.rcx-incidents strong { color: #b0662e; align-items: center; gap: 5px; display: flex; }
.rcx-spacer { flex: 1 1 auto; }
.rcx-range { color: #53605a !important; background: #fff !important; border: 1px solid #d8dfdb !important; border-radius: 6px; align-items: center; gap: 6px; padding: 7px 9px !important; font-size: 10px !important; display: flex; }
.rcx-range.active { color: #176b4d !important; background: #eaf4ef !important; border-color: #8dbba6 !important; }
.rcx-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #eaf4ef; border: 1px solid #b7d6c7; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 11px; }
.rcx-selection[hidden] { display: none; }
.rcx-selection > div { display: flex; flex-direction: column; margin-right: auto; }
.rcx-selection b { color: #1d563f; }
.rcx-selection small { color: #5f6b65; font-size: 10px; }
.rcx-selection button { background: #fff !important; border: 1px solid #b7d6c7 !important; border-radius: 6px; padding: 6px 10px !important; font-size: 11px !important; font-weight: 600; color: #176b4d !important; }
.rcx-selection .rcx-sel-cancel { color: #6b746f !important; border-color: #d8dfdb !important; }
.rcx-year { display: grid; gap: 18px; } .rcx-year > *, .rcx-month-section, .rcx-card { min-width: 0; max-width: 100%; } .rcx { max-width: 100%; overflow-x: clip; }
.rcx-month-head { align-items: center; min-height: 42px; padding: 0 3px; display: flex; }
.rcx-month-head > div { align-items: center; gap: 9px; display: flex; }
.rcx-month-head > div > span { color: #176b4d; background: #e8f1ed; border-radius: 6px; place-items: center; width: 25px; height: 25px; font-size: 9px; font-weight: 700; display: grid; }
.rcx-month-head h2 { color: #1e3027; font-size: 15px; font-weight: 650; margin: 0; }
.rcx-month-head h2 small { color: #87918c; font-weight: 500; font-size: 11px; }
.rcx-month-head p { color: #87918c; margin: 0 0 0 12px; font-size: 9px; }
.rcx-month-head button { color: #217153 !important; border-radius: 5px; margin-left: auto; padding: 6px 8px !important; font-size: 9px !important; font-weight: 650; }
.rcx-month-head button:hover { background: #eaf4ef !important; }
.rcx-card { background: #fff; border: 1px solid #d9e0dc; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 7px rgba(33,55,44,.047); }
.rcx-scroll { overflow: auto; max-height: 75vh; }
.rcx-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.rcx-table th, .rcx-table td { border-bottom: 1px solid #edf1ef; border-right: 1px solid #f1f4f2; }
.rcx-table thead th { position: sticky; top: 0; z-index: 2; }
.rcx-employee-head { text-align: left; background: #f7f9f8; height: 48px; padding: 0 12px; width: 200px; min-width: 200px; max-width: 200px; left: 0; z-index: 4 !important; }
.rcx-employee-head span, .rcx-total-head span { color: #3e4b44; font-size: 10px; font-weight: 650; display: block; }
.rcx-employee-head small, .rcx-total-head small { color: #909893; font-size: 8px; font-weight: 500; }
.rcx-day-head { text-align: center; background: #f7f9f8; width: 43px; min-width: 43px; height: 48px; }
.rcx-day-head span { color: #344039; font-size: 12px; font-weight: 650; line-height: 15px; display: block; }
.rcx-day-head small { text-transform: uppercase; color: #8a938e; font-size: 8px; font-weight: 600; line-height: 11px; display: block; }
.rcx-day-head.weekend { background: #f1f3f2; }
.rcx-day-head.holiday { background: #f0eefa; }
.rcx-day-head.holiday span, .rcx-day-head.holiday small { color: #65589b; }
.rcx-day-head.today { background: #e9f4ef; box-shadow: inset 2px 0 #25825f, inset -2px 0 #25825f; }
.rcx-day-head.today i { background: #25825f; border-radius: 50%; width: 4px; height: 4px; position: absolute; bottom: 4px; left: calc(50% - 2px); }
.rcx-day-head.rcx-selcol { box-shadow: inset 0 -3px #263c33; }
.rcx-employee { text-align: left; cursor: pointer; background: #fff; height: 42px; padding: 0 9px; width: 200px; min-width: 200px; max-width: 200px; position: sticky; left: 0; z-index: 1; font-weight: 400; white-space: nowrap; }
.rcx-employee:hover { background: #f6faf8; }
.rcx-initials { color: #34715a; background: #eaf2ee; border-radius: 7px; display: inline-grid; place-items: center; min-width: 25px; height: 25px; font-size: 8px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.rcx-employee-copy { display: inline-flex; flex-direction: column; min-width: 0; max-width: 150px; vertical-align: middle; }
.rcx-employee-copy strong { text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; line-height: 14px; overflow: hidden; }
.rcx-employee-copy small { color: #8a938e; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; font-size: 8px; overflow: hidden; }
.rcx-shift { text-align: center; color: #35413a; cursor: pointer; background: #fff; width: 43px; min-width: 43px; height: 42px; font-size: 9.5px; position: relative; font-variant-numeric: tabular-nums; }
.rcx-shift.weekend { color: #8a928e; background: #fafbfa; }
.rcx-shift:hover { z-index: 3; box-shadow: inset 0 0 0 2px #86b7a1; }
.rcx-shift small { color: inherit; opacity: .8; font-size: 6px; font-weight: 700; position: absolute; bottom: 3px; right: 4px; }
.rcx-shift.status-rest { color: #8b948f; }
/* INC-00776 (Hugo 05/11/2026): un color pastel por tipo de día: festivo nacional gris, local azul, no computable rosa, comp. calendario granate, comp. festivos verde, vacaciones amarillo, baja morado, ERTE naranja */
.rcx-shift.status-vacation { color: #8a6a00; background: #fdf5d3; font-weight: 700; }
.rcx-shift.status-leave { color: #5f3d99; background: #f1ecf9; font-weight: 700; }
.rcx-shift.status-sick { color: #5f3d99; background: #e9e1f6; font-weight: 700; }
.rcx-shift.status-fnac { color: #56606b; background: #eef0f2; font-weight: 700; }
.rcx-shift.status-floc { color: #2f5f9e; background: #e3eefb; font-weight: 700; }
.rcx-shift.status-fnc { color: #a6406f; background: #fbe7f0; font-weight: 700; }
.rcx-shift.status-erte { color: #b0561a; background: #ffe8d6; font-weight: 700; }
.rcx-shift.status-ccal { color: #7d2333; background: #f5e4e7; font-weight: 700; }
.rcx-shift.status-cfes { color: #176b4d; background: #e4f2ea; font-weight: 700; }
.rcx-shift.status-empty { background: repeating-linear-gradient(45deg, #fff, #fff 3px, #f1f4f2 3px, #f1f4f2 6px); }
.rcx-shift.today { box-shadow: inset 2px 0 #25825f, inset -2px 0 #25825f; }
.rcx-shift.rcx-selcol { box-shadow: inset 2px 0 #263c33, inset -2px 0 #263c33; }
.rcx-shift.modified::before { content: ""; border-width: 0 7px 7px 0; border-style: solid; border-color: transparent #d18b2b transparent transparent; position: absolute; top: 0; right: 0; }
.rcx-shift.selected { color: #14583f; box-shadow: inset 0 0 0 2px #197453; background: #dcefe6 !important; }
.rcx-shift.selected::after { content: "✓"; color: #176b4d; font-size: 7px; font-weight: 700; position: absolute; top: 2px; left: 3px; }
.rcx-total-head, .rcx-total { text-align: right; background: #f3f7f5; width: 70px; min-width: 70px; max-width: 70px; padding-right: 11px; box-shadow: -4px 0 8px rgba(32,57,45,.03); position: sticky; right: 0; z-index: 1; }
.rcx-total-head { z-index: 4 !important; }
.rcx-total { color: #1e4d39; height: 42px; font-size: 10px; font-weight: 700; }
.rcx-total small { color: #76827b; margin-left: 2px; font-weight: 500; }
.rcx-footer { color: #7b8580; background: #fafbfa; justify-content: space-between; align-items: center; min-height: 35px; padding: 0 12px; font-size: 9px; display: flex; border-top: 1px solid #edf1ef; }
.rcx-jornadas { margin-top: 18px; padding: 0 0 6px; }
.rcx-card-head { padding: 14px 16px 6px; }
.rcx-card-head h2 { font-size: 15px; font-weight: 650; margin: 0; color: #1e3027; }
.rcx-card-head p { font-size: 11px; color: var(--mut); margin: 3px 0 0; }
.rcx-jornadas [data-por-trab] { padding: 0 12px; }
/* diálogos del diseño (se pintan en <body>) */
.rcx-overlay { z-index: 3000; backdrop-filter: blur(2px); background: rgba(20,37,29,.42); justify-content: center; align-items: center; padding: 16px; display: flex; position: fixed; inset: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.rcx-overlay button { font: inherit; cursor: pointer; background: none; border: 0; }
.rcx-dialog { background: #fff; border-radius: 12px; width: 400px; max-width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(16,39,28,.22); color: #17211c; }
.rcx-editor-dialog { width: 460px; }
.rcx-dialog-head { border-bottom: 1px solid #e6ebe8; justify-content: space-between; gap: 10px; padding: 20px 20px 16px; display: flex; }
.rcx-dialog-head h2 { color: #1c2d25; font-size: 17px; font-weight: 650; margin: 0; }
.rcx-dialog-head p { color: #78827d; margin: 3px 0 0; font-size: 10px; }
.rcx-dialog-head > button { color: #78827d; align-self: flex-start; padding: 4px; }
.rcx-dialog .rcx-eyebrow { margin-bottom: 4px; font-size: 9px; }
.rcx-legend-list { padding: 9px 20px; }
.rcx-legend-list > div { align-items: center; gap: 12px; padding: 7px 0; display: flex; }
.rcx-legend-swatch { border: 1px solid #dfe5e1; border-radius: 5px; place-items: center; width: 36px; height: 30px; font-size: 9px; font-weight: 700; display: grid; background: #fff; color: #35413a; }
.rcx-legend-swatch.status-vacation { color: #8a6a00; background: #fdf5d3; }
.rcx-legend-swatch.status-leave { color: #5f3d99; background: #f1ecf9; }
.rcx-legend-swatch.status-sick { color: #5f3d99; background: #e9e1f6; }
.rcx-legend-swatch.status-fnac { color: #56606b; background: #eef0f2; }
.rcx-legend-swatch.status-floc { color: #2f5f9e; background: #e3eefb; }
.rcx-legend-swatch.status-fnc { color: #a6406f; background: #fbe7f0; }
.rcx-legend-swatch.status-erte { color: #b0561a; background: #ffe8d6; }
.rcx-legend-swatch.status-ccal { color: #7d2333; background: #f5e4e7; }
.rcx-legend-swatch.status-cfes { color: #176b4d; background: #e4f2ea; }
.rcx-legend-swatch.status-rest { color: #8b948f; }
.rcx-legend-swatch.status-empty { background: repeating-linear-gradient(45deg, #fff, #fff 3px, #f1f4f2 3px, #f1f4f2 6px); }
.rcx-legend-list p { flex-direction: column; display: flex; margin: 0; }
.rcx-legend-list strong { font-size: 11px; font-weight: 600; }
.rcx-legend-list small { color: #89928d; margin-top: 2px; font-size: 9px; }
.rcx-legend-notes { color: #67726c; background: #f7f9f8; gap: 18px; padding: 13px 20px; font-size: 9px; display: flex; flex-wrap: wrap; }
.rcx-legend-notes div { align-items: center; gap: 6px; display: flex; }
.rcx-modified-dot { border-width: 0 8px 8px 0; border-style: solid; border-color: transparent #d18b2b transparent transparent; width: 0; height: 0; }
.rcx-today-line { background: #25825f; width: 3px; height: 14px; }
.rcx-sel-dot { width: 12px; height: 12px; border: 2px solid #197453; background: #dcefe6; border-radius: 2px; }
.rcx-hol-dot { width: 12px; height: 12px; background: #f0eefa; border: 1px solid #c9c2ea; border-radius: 2px; }
.rcx-editor-form { gap: 15px; padding: 18px 20px; display: grid; }
.rcx-editor-form > label { color: #48534d; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 650; display: flex; }
.rcx-editor-form select, .rcx-hours-input, .rcx-editor-form textarea { color: #24332b; background: #fff; border: 1px solid #d9e0dc; border-radius: 7px; font-size: 12px; font-weight: 500; font-family: inherit; }
.rcx-editor-form select { height: 38px; padding: 0 10px; }
.rcx-hours-input { align-items: center; height: 42px; display: flex; overflow: hidden; }
.rcx-hours-input:focus-within { border-color: #6aa88d; box-shadow: 0 0 0 3px rgba(38,126,89,.082); }
.rcx-hours-input input { flex: 1 1 0%; min-width: 0; padding: 0 11px; font-size: 15px; font-weight: 650; border: 0; outline: 0; }
.rcx-hours-input span { color: #77817c; background: #f5f7f6; border-left: 1px solid #dfe4e1; align-self: stretch; place-items: center; padding: 0 12px; font-size: 10px; display: grid; }
.rcx-quick-values { align-items: center; gap: 6px; margin-top: -6px; display: flex; flex-wrap: wrap; }
.rcx-quick-values span { color: #8a938e; margin-right: auto; font-size: 9px; }
.rcx-quick-values button { color: #476055 !important; background: #f1f5f3 !important; border-radius: 5px; padding: 5px 8px !important; font-size: 9px !important; }
.rcx-editor-form textarea { resize: none; height: 58px; padding: 10px; font-weight: 400; }
.rcx-aviso { color: #9a641e; font-weight: 500; font-size: 10px; }
.rcx-editor-actions { background: #f7f9f8; border-top: 1px solid #e4e9e6; display: flex; gap: 8px; padding: 13px 20px; align-items: center; flex-wrap: wrap; }
.rcx-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 16px 20px; }
.rcx-datos div { display: flex; flex-direction: column; gap: 2px; }
.rcx-datos div > span { color: #7a857f; text-transform: uppercase; letter-spacing: .045em; font-size: 9px; font-weight: 600; }
.rcx-datos b { font-size: 14px; font-weight: 650; }
.rcx-sheet-handle { display: none; }
@media (max-width: 700px) {
  .rcx { margin: -8px -10px; padding: 8px 0 20px; border-radius: 0; }
  .rcx-heading { padding: 0 12px; margin-bottom: 12px; align-items: center; }
  .rcx-heading h1 { font-size: 19px; }
  .rcx-heading p { display: none; }
  .rcx-legend-button span { display: none; }
  .rcx-legend-button { width: 36px; padding: 0 !important; }
  .rcx-toolbar { gap: 7px; margin: 0 8px; padding: 7px; }
  .rcx-month-control { border-bottom: 1px solid #e6ebe8; justify-content: space-between; width: 100%; padding-bottom: 6px; }
  .rcx-divider { display: none; }
  .rcx-month-filter { flex: 1 1 0%; min-width: 120px; font-size: 11px !important; }
  .rcx-search { flex: 1 1 40%; width: auto; min-width: 0; }
  .rcx-date { flex: 1 1 40%; width: auto; }
  .rcx-filter-button span { display: none; }
  .rcx-filter-button { width: 38px; padding: 0 !important; }
  .rcx-today { margin-left: 0; }
  .rcx-filter-panel { margin: 7px 8px 0; }
  .rcx-filter-panel select { min-width: 0; width: 100%; }
  .rcx-filter-panel label { flex: 1 1 45%; }
  .rcx-summary { margin: 0 12px; }
  .rcx-summary-item { padding: 0 12px; }
  .rcx-summary-item small { display: none; }
  .rcx-summary-item strong { font-size: 14px; }
  .rcx-range { margin-top: 6px; }
  .rcx-selection { margin: 0 8px 8px; }
  .rcx-card { border-left: 0; border-right: 0; border-radius: 0; }
  .rcx-month-head { padding: 0 12px; }
  .rcx-month-head p { display: none; }
  .rcx-scroll { max-height: calc(100vh - 230px); }
  .rcx-employee-head, .rcx-employee { width: 120px; min-width: 120px; max-width: 120px; padding: 0 7px; }
  .rcx-employee-head small, .rcx-initials { display: none; }
  .rcx-employee-copy { max-width: 110px; }
  .rcx-day-head, .rcx-shift { width: 48px; min-width: 48px; }
  .rcx-shift { height: 46px; font-size: 10px; }
  .rcx-total-head, .rcx-total { width: 60px; min-width: 60px; max-width: 60px; }
  .rcx-footer span:last-child { display: none; }
  .rcx-overlay { align-items: flex-end; padding: 0; }
  .rcx-dialog, .rcx-editor-dialog { border-radius: 16px 16px 0 0; width: 100%; max-height: 88vh; }
  .rcx-sheet-handle { background: #cdd5d1; border-radius: 2px; width: 38px; height: 4px; margin: 8px auto 0; display: block; }
  .rcx-editor-actions { position: sticky; bottom: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .rcx-editor-actions .rcx-button { flex: 1 1 0%; height: 42px; }
  .rcx-datos { grid-template-columns: 1fr; }
}
/* INC-00980: botón para maximizar las ventanas */
.ra-modal-hb { display: inline-flex; gap: 4px; align-items: center; }
.ra-modal.ra-modal-max { width: calc(100vw - 32px) !important; max-width: none !important; height: calc(100vh - 32px); max-height: none; }
.ra-modal.ra-modal-max .ra-modal-b { max-height: none; flex: 1; }
