/* ================================================================
 * tema-iconos.css — Iconos de accion raster comunes -> Phosphor (global).
 * Para iconos envueltos en <a>: oculta el <img> y pone el glifo Phosphor
 * en ::before del <a>. Para <img> sueltos (sin <a>, con onclick): reemplaza
 * el raster por un SVG inline neutro con content:url() (respeta el display
 * que conmuta el JS, p.ej. acordeon +/-).
 * ================================================================ */

/* --- Iconos en <a>: ocultar img --- */
a > img[src*="zoom_in"], a > img[src*="icono_buscar"], a > img[src*="close_button"],
a > img[src*="/copy."], a > img[src*="document_down"], a > img[src*="posit"], a > img[src*="/x.gif"]{ display:none !important; }

/* estilo comun del pseudo-icono */
a:has(> img[src*="zoom_in"]), a:has(> img[src*="icono_buscar"]), a:has(> img[src*="close_button"]),
a:has(> img[src*="/copy."]), a:has(> img[src*="document_down"]), a:has(> img[src*="posit"]), a:has(> img[src*="/x.gif"]){
  text-decoration:none !important; color:#6a776f !important; font-size:17px; line-height:1; vertical-align:middle;
}
a:has(> img[src*="zoom_in"]):hover, a:has(> img[src*="icono_buscar"]):hover, a:has(> img[src*="close_button"]):hover,
a:has(> img[src*="/copy."]):hover, a:has(> img[src*="document_down"]):hover, a:has(> img[src*="posit"]):hover, a:has(> img[src*="/x.gif"]):hover{ color:var(--t-principal, #4b5563) !important; }

/* glifo por tipo */
a:has(> img[src*="zoom_in"])::before, a:has(> img[src*="icono_buscar"])::before{ font-family:"Phosphor" !important; content:"\e30c"; }   /* magnifying-glass */
a:has(> img[src*="close_button"])::before{ font-family:"Phosphor" !important; content:"\e4f8"; }                                         /* x-circle */
a:has(> img[src*="/copy."])::before{ font-family:"Phosphor" !important; content:"\e1ca"; }                                               /* copy */
a:has(> img[src*="document_down"])::before{ font-family:"Phosphor" !important; content:"\e20c"; }                                        /* download-simple */
a:has(> img[src*="posit"])::before{ font-family:"Phosphor" !important; content:"\e348"; }                                               /* note */
a:has(> img[src*="/x.gif"])::before{ font-family:"Phosphor" !important; content:"\e4f6"; }                                               /* x */

/* --- <img> sueltos: reemplazo por SVG inline neutro --- */
img[src*="pencil_add"]{ 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'><path d='M15.5 4.5l4 4L9 19l-4.5.9.9-4.5z'/><path d='M13.5 6.5l4 4'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="/mas.gif"]{ 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'><path d='M12 5v14M5 12h14'/></svg>") !important; width:15px !important; height:15px !important; border:0 !important; }
img[src*="/menos.gif"]{ 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'><path d='M5 12h14'/></svg>") !important; width:15px !important; height:15px !important; border:0 !important; }

/* ================================================================
 * Tanda P4 (2026-10-20): iconos sueltos restantes.
 * Todo content:url() en el <img> (respeta el display que conmuta el JS).
 * Colores neutros (#6a776f) salvo estados semanticos (user1/2/3, alerta).
 * ================================================================ */

/* --- Loaders: progress_bar / spinner -> spinner SVG animado (SMIL) --- */
img[src*="progress_bar"], img[src*="/spinner."]{
  content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'><path d='M12 3a9 9 0 1 0 9 9' fill='none' stroke='%236a776f' stroke-width='3' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/></path></svg>") !important;
  width:22px !important; height:22px !important; border:0 !important;
}
/* Movimiento reducido: SMIL no obedece la preferencia, asi que el arco se vuelve estatico y gira por CSS, despacio (2,4 s) */
@media (prefers-reduced-motion: reduce){
  img[src*="progress_bar"], img[src*="/spinner."]{ /* qm-permitido: loader heredado, rama reduced-motion del selector existente */
    content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'><path d='M12 3a9 9 0 1 0 9 9' fill='none' stroke='%236a776f' stroke-width='3' stroke-linecap='round'/></svg>") !important;
    animation:qm-girar-ico 2.4s linear infinite;
  }
  @keyframes qm-girar-ico{ to{ transform:rotate(360deg); } }
}

/* --- Indicador de uso del usuario (semantico: verde/ambar/rojo) --- */
img[src*="internas/user1"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f7a46' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='10' r='3'/><path d='M6.5 18a5.5 5.5 0 0 1 11 0'/></svg>") !important; width:18px !important; height:18px !important; }
img[src*="internas/user2"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c07a2e' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='10' r='3'/><path d='M6.5 18a5.5 5.5 0 0 1 11 0'/></svg>") !important; width:18px !important; height:18px !important; }
img[src*="internas/user3"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='10' r='3'/><path d='M6.5 18a5.5 5.5 0 0 1 11 0'/></svg>") !important; width:18px !important; height:18px !important; }

/* --- play / pause (botones ejecutar/detener) --- */
img[src*="/play."]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%236a776f'><path d='M8 5v14l11-7z'/></svg>") !important; }
img[src*="/pause."]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%236a776f'><rect x='6' y='5' width='4' height='14' rx='1'/><rect x='14' y='5' width='4' height='14' rx='1'/></svg>") !important; }

/* --- Carets del menu de bandejas (comprimida/expandida). OJO: comprimida2 va DESPUES --- */
img[src*="bandeja_comprimida"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") !important; width:14px !important; height:14px !important; }
img[src*="bandeja_expandida"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important; width:14px !important; height:14px !important; }
img[src*="bandeja_comprimida2"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 15l6-6 6 6'/></svg>") !important; width:14px !important; height:14px !important; }

/* --- close_button suelto (fuera de <a>): x-circle (los de <a> ya estan display:none) --- */
img[src*="close_button"]{ content:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236a776f' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M15 9l-6 6M9 9l6 6'/></svg>") !important; }

/* --- Acciones de lista/anexos/tareas --- */
img[src*="/add."]{ 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'><circle cx='12' cy='12' r='9'/><path d='M12 8v8M8 12h8'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="quitar"]{ 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'><circle cx='12' cy='12' r='9'/><path d='M8 12h8'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="trash"]{ 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'><path d='M4 7h16M9 7V5h6v2M6 7l1 13h10l1-13'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="/disk."]{ 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'><path d='M5 3h12l4 4v14H5z'/><path d='M8 3v6h8V3M8 21v-7h8v7'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="vista_previa"]{ 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'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/><circle cx='12' cy='12' r='3'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="img_alerta"]{ 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='%23c07a2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l10 17H2z'/><path d='M12 9v5M12 17h.01'/></svg>") !important; width:16px !important; height:16px !important; }

/* tareas_funciones.php: acciones de tareas */
img[src*="page_new"]{ 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.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/><path d='M14 3v6h6M12 12v6M9 15h6'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="page_tick"]{ 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='%231f7a46' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="page_delete"]{ 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='%23c0392b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/><path d='M14 3v6h6M9.5 12.5l5 5M14.5 12.5l-5 5'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="page_refresh"]{ 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.7' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11a8 8 0 1 0-2 5m2 3v-6h-6'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="page_white_edit"]{ 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.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5l4 4L8 20l-4 1 1-4z'/></svg>") !important; width:15px !important; height:15px !important; }
img[src*="/comment."]{ 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.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H8l-4 4V5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2z'/></svg>") !important; width:15px !important; height:15px !important; }
