/* ================================================================
 * tema-widgets.css — Overlays de widgets comunes (tanda 3).
 * Calendario calphp, hover azul inline de filas de resultados,
 * arboles jstree, y pestañas-imagen de la ficha de usuario/ciudadano.
 * Global; selectores acotados. No toca el motor ni el JS.
 * ================================================================ */

/* --- Calendario PHP (popup .calphp_*) -> neutro/token --- */
.calphp_div_calendario{ background:#fff !important; border:1px solid var(--qm-filete) !important; border-radius:10px !important; box-shadow:0 8px 30px rgba(16,61,42,.12) !important; }
.calphp_tabla{ border-collapse:collapse !important; }
.calphp_dia_titulo{ background:var(--t-principal, #4b5563) !important; color:#fff !important; font-weight:600 !important; }
.calphp_dia_blanco, .calphp_dia_link{ color:#2a332e !important; }
.calphp_dia_link:hover{ background:var(--t-fondo, var(--qm-superficie-2)) !important; }
.calphp_dia_azul{ background:var(--t-principal, #4b5563) !important; color:#fff !important; }   /* seleccionado */
.calphp_dia_amarillo{ background:#fff6e4 !important; }                                          /* hoy */
.calphp_combos{ border:1px solid #d6ded8 !important; border-radius:5px !important; }

/* --- Filas de resultados con hover azul INLINE (JS this.style.background) -> neutral --- */
tr[onmouseover]{ background:transparent !important; }
tr[onmouseover] > td{ color:inherit !important; }
tr[onmouseover]:hover > td{ background:var(--qm-superficie-2) !important; color:inherit !important; }

/* --- Arboles jstree: hover/selected con token (sin romper al quitar el a:hover global) --- */
.jstree-default .jstree-hovered{ background:var(--t-fondo, var(--qm-superficie-2)) !important; box-shadow:none !important; border-radius:5px; }
.jstree-default .jstree-clicked{ background:var(--t-banda, #dbe6df) !important; box-shadow:none !important; border-radius:5px; }

/* --- Calendario spiffyCal (#spiffycalendar, .cal-*) -> neutro/token --- */
#spiffycalendar{ background:#fff !important; border:1px solid var(--qm-filete) !important; border-radius:10px !important; box-shadow:0 8px 30px rgba(16,61,42,.12) !important; }
.cal-Table{ border-collapse:collapse !important; background:#fff !important; }
.cal-HeadCell{ background:var(--t-principal, #4b5563) !important; color:#fff !important; font-weight:600 !important; }
.cal-DayCell, .cal-WeekendCell, .cal-HolidayCell{ color:#2a332e !important; }
.cal-DayLink:hover{ background:var(--t-fondo, var(--qm-superficie-2)) !important; }
.cal-Today, .cal-TodayLink{ background:#fff6e4 !important; color:#2a332e !important; }
.cal-GreyDate, .cal-GreyInvalidDate{ color:#b8c2bc !important; }
.cal-ComboBox{ border:1px solid #d6ded8 !important; border-radius:5px !important; }
.cal-TextBox{ box-sizing:border-box !important; border:1px solid #d6ded8 !important; border-radius:6px !important; background:#fff !important; }
/* boton de fecha (btn_date*.gif, envuelto en <a>) -> Phosphor calendar */
a > img[src*="btn_date"]{ display:none !important; }
a:has(> img[src*="btn_date"])::before{ font-family:"Phosphor" !important; content:"\e10a"; color:var(--qm-texto-2); font-size:16px; } /* qm-permitido: reemplazo global previo del icono del calendario stock; el cambio aqui es solo el color */
a:has(> img[src*="btn_date"]):hover::before{ color:var(--t-principal, #4b5563); }

/* --- Pantallas password/solicitud: neutralizar sombras raster shad-1..5 --- */
.shad-1, .shad-2, .shad-3, .shad-4, .shad-5{ background:none !important; }
#mainbody{ background:transparent !important; }

/* --- Tanda segura (2026-10-20): calendario_php refinamientos --- */
.calphp_fecha{ box-sizing:border-box !important; padding:3px 6px !important; vertical-align:middle !important; border:1px solid #d6ded8 !important; border-radius:6px !important; }
img[src*="btn_date1_up"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='17' rx='2'/><path d='M3 9h18M8 2v4M16 2v4'/></svg>") !important; width:16px !important; height:16px !important; }
img[src*="btn_date1_down"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 15l6-6 6 6'/></svg>") !important; width:16px !important; height:16px !important; }
