/*
 * ui_moderno.css - Look & feel moderno del Sistema de Gestion.
 * Se carga despues de ph_admin.css. Solo cambia presentacion (no logica).
 *   1. Variables y fondo
 *   2. Cabecera
 *   3. Menu principal (js/menu_moderno.js)
 *   4. Campos de formulario (input, select, textarea)
 *   5. Botones
 */

/* ---------- 1. Variables y fondo ---------- */
:root {
    --ui-primary: #1d3f8f;
    --ui-primary-600: #17357a;
    --ui-primary-700: #122a61;
    --ui-primary-50: #eef3fc;
    --ui-accent: #7a1d1d;
    --ui-text: #1f2937;
    --ui-muted: #64748b;
    --ui-border: #cfd8e3;
    --ui-border-strong: #94a3b8;
    --ui-bg: #f3f5f9;
    --ui-surface: #ffffff;
    --ui-ring: rgba(37, 99, 235, .22);
    --ui-radius: 8px;
    --ui-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ui-shadow: 0 10px 30px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .08);
}

body {
    background: var(--ui-bg) none !important;
}

/* ---------- 2. Cabecera ---------- */
.ui-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: var(--ui-surface);
    border: 1px solid #e2e8f0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    font-family: var(--ui-font);
}
.ui-header.ui-header-solo { border-bottom: 1px solid #e2e8f0; border-radius: 12px; }
.ui-header img { height: 56px; width: auto; display: block; }
.ui-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ui-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ui-brand-text small {
    font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--ui-muted);
    text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-brand-text strong { font-size: 24px; font-weight: 700; color: var(--ui-accent); letter-spacing: .2px; }
.ui-header-spacer { height: 18px; }
@media (max-width: 640px) {
    .ui-header img { height: 40px; }
    .ui-brand-text strong { font-size: 18px; }
    .ui-header-right { display: none; }
}

/* ---------- 3. Menu principal ---------- */
.mm-nav {
    position: sticky;
    top: 0;
    z-index: 99; /* bajo cualquier popup (thickbox 100+, jQuery UI 1000+, scheduler 10000+) */
    font-family: var(--ui-font);
    font-size: 13px;
    background: linear-gradient(180deg, var(--ui-primary) 0%, var(--ui-primary-600) 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 14px rgba(18, 42, 97, .25);
    text-align: left;
}
.ui-header-solo + .mm-nav, .mm-nav:first-child { border-radius: 12px; }
.mm-nav *, .mm-nav *::before, .mm-nav *::after { box-sizing: border-box; }
.mm-nav ul { list-style: none; margin: 0; padding: 0; }
.mm-nav a { text-decoration: none; }
.mm-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.mm-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-height: 48px; }
.mm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.mm-top-li, .mm-user { position: relative; }
.mm-top-li.mm-open, .mm-user.mm-open { z-index: 5; } /* el abierto queda sobre la 2a fila del menu */

.mm-nav .mm-top-btn {
    display: inline-flex; align-items: center; gap: 4px;
    height: 34px; padding: 0 8px; margin: 0;
    border: 0; border-radius: 7px; background: transparent;
    color: #e6ecfa; font: 500 13px/1 var(--ui-font);
    cursor: pointer; white-space: nowrap; text-shadow: none; box-shadow: none;
    transition: background-color .15s, color .15s;
}
.mm-nav .mm-top-btn:hover, .mm-nav .mm-open > .mm-top-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.mm-nav .mm-top-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.mm-nav .mm-top-btn .mm-chev svg { width: 12px; height: 12px; opacity: .75; transition: transform .2s; }
.mm-nav .mm-open > .mm-top-btn .mm-chev svg { transform: rotate(180deg); }

/* Paneles desplegables */
.mm-panel {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 270px; max-width: 360px;
    max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px; background: var(--ui-surface);
    border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: var(--ui-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
/* Puente invisible entre el boton y su panel: va en el <li> (el panel tiene
   overflow:auto y recortaria un pseudo-elemento propio), asi el hover no se pierde */
.mm-top-li.mm-open::after, .mm-user.mm-open::after {
    content: ""; position: absolute; left: -6px; right: -6px; top: 100%; height: 14px;
}
.mm-panel.mm-right { left: auto; right: 0; }
.mm-open > .mm-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease; }
.mm-panel-title {
    padding: 8px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--ui-muted);
}

.mm-opt, .mm-grp-btn, .mm-res {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 7px;
    color: var(--ui-text); font-size: 13px; line-height: 1.3;
    cursor: pointer;
}
.mm-opt:hover, .mm-grp-btn:hover, .mm-res:hover, .mm-res.mm-sel { background: var(--ui-primary-50); color: var(--ui-primary-700); }
.mm-opt:focus-visible, .mm-grp-btn:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2px; }
.mm-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; }
.mm-ic img { width: 16px; height: 16px; border: 0; }
.mm-ic-dot svg { width: 10px; height: 10px; fill: var(--ui-border-strong); stroke: none; }
.mm-ic-svg { color: var(--ui-muted); }
.mm-tx { flex: 1 1 auto; min-width: 0; }
.mm-grp-btn { font-weight: 600; }
.mm-grp-btn .mm-chev { color: var(--ui-muted); display: inline-flex; }
.mm-grp-btn .mm-chev svg { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .2s; }
.mm-group.mm-open > .mm-grp-btn .mm-chev svg { transform: none; }
.mm-list-nested { display: none; margin: 2px 0 4px 18px !important; padding-left: 8px !important; border-left: 2px solid #e2e8f0; }
.mm-group.mm-open > .mm-list-nested { display: block; }
.mm-danger, .mm-danger .mm-ic-svg { color: #b42318; }
.mm-danger:hover { background: #fef3f2; color: #912018; }

/* Herramientas: buscador y usuario */
.mm-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.mm-search { position: relative; }
.mm-s-field {
    display: flex; align-items: center; gap: 6px; height: 34px; width: 190px; padding: 0 8px 0 10px;
    border-radius: 8px; background: rgba(255, 255, 255, .12); color: #dbe4f7; cursor: text;
    border: 1px solid rgba(255, 255, 255, .16); transition: background-color .15s, width .2s;
}
.mm-s-field:focus-within { background: #fff; color: var(--ui-muted); width: 300px; border-color: #fff; }
.mm-nav input.mm-s-input {
    flex: 1 1 auto; min-width: 0; height: 30px; margin: 0; padding: 0 !important;
    border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important;
    color: #fff; font: 400 13px var(--ui-font);
}
.mm-nav input.mm-s-input::placeholder { color: #c3cfe9; }
.mm-s-field:focus-within input.mm-s-input { color: var(--ui-text); }
.mm-s-field:focus-within input.mm-s-input::placeholder { color: var(--ui-muted); }
.mm-nav input.mm-s-input::-webkit-search-cancel-button { cursor: pointer; }
.mm-kbd {
    font: 600 10px var(--ui-font); padding: 2px 5px; border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .3); color: #c3cfe9; white-space: nowrap;
}
.mm-s-field:focus-within .mm-kbd { display: none; }
.mm-results {
    position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-height: 60vh; overflow-y: auto;
    padding: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: var(--ui-shadow);
    display: none;
}
.mm-s-open .mm-results { display: block; }
.mm-res .mm-tx { display: flex; flex-direction: column; }
.mm-res-path { font-size: 11px; color: var(--ui-muted); margin-top: 1px; }
.mm-res-empty { padding: 12px; color: var(--ui-muted); text-align: center; }

.mm-nav .mm-user-btn { padding: 0 8px 0 4px; gap: 8px; }
.mm-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; color: var(--ui-primary); font: 700 11px var(--ui-font); letter-spacing: .3px;
}
.mm-avatar-lg { width: 40px; height: 40px; font-size: 14px; background: var(--ui-primary); color: #fff; }
.mm-user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.mm-user-panel { min-width: 250px; }
.mm-user-head { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid #eef2f7; }
.mm-user-head small { display: block; font-size: 11px; color: var(--ui-muted); }
.mm-user-head strong { display: block; font-size: 13px; color: var(--ui-text); }

.mm-nav .mm-burger {
    display: none; align-items: center; gap: 6px; height: 34px; padding: 0 10px; margin: 0;
    border: 0; border-radius: 7px; background: rgba(255, 255, 255, .12); color: #fff;
    font: 600 13px var(--ui-font); cursor: pointer; box-shadow: none; text-shadow: none;
}

/* Movil / pantallas angostas: menu tipo acordeon */
@media (max-width: 900px) {
    .mm-bar { flex-wrap: wrap; }
    .mm-nav .mm-burger { display: inline-flex; }
    .mm-tools { margin-left: auto; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
    .mm-search { flex: 1 1 auto; min-width: 0; max-width: 320px; }
    .mm-s-field, .mm-s-field:focus-within { width: 100%; }
    .mm-user-name, .mm-kbd { display: none; }
    .mm-top { display: none; order: 5; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding: 4px 0 6px; }
    .mm-mobile-open .mm-top { display: flex; }
    .mm-nav .mm-top-btn { width: 100%; justify-content: space-between; }
    .mm-top .mm-panel {
        position: static; display: none; max-width: none; max-height: none; margin: 2px 0 6px;
        opacity: 1; visibility: visible; transform: none; box-shadow: none;
    }
    .mm-top .mm-open > .mm-panel { display: block; }
    .mm-top .mm-panel-title { display: none; }
    .mm-results { width: calc(100vw - 32px); }
}

/* Menu: ocultar al imprimir */
@media print { .mm-nav { display: none !important; } }

/* ---------- 4. Campos de formulario ---------- */
input:not([type]),
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"],
input[type="week"], input[type="search"], input[type="tel"], input[type="url"],
select, textarea {
    font-family: var(--ui-font);
    font-size: 12px;
    font-weight: 400;
    color: var(--ui-text);
    background-color: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    padding: 4px 8px;
    line-height: 1.35;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    outline: none;
}
/* Campos de solo despliegue: se mantienen sin borde */
input.rsvvalor, input.rsvtexto, input.CalTitle {
    border: 0; box-shadow: none; padding: 2px; background: transparent;
}
select {
    padding-right: 26px;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    cursor: pointer;
}
select[multiple], select[size]:not([size="1"]) {
    padding-right: 8px; background-image: none; cursor: default;
}
select[multiple] option { padding: 3px 6px; border-radius: 4px; }
textarea { line-height: 1.45; }

input:not([type]):hover, input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover,
input[type="number"]:hover, input[type="date"]:hover, input[type="time"]:hover, input[type="datetime-local"]:hover,
input[type="search"]:hover, input[type="tel"]:hover, input[type="url"]:hover, select:hover, textarea:hover {
    border-color: var(--ui-border-strong);
}
input:not([type]):focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="datetime-local"]:focus,
input[type="month"]:focus, input[type="week"]:focus, input[type="search"]:focus, input[type="tel"]:focus,
input[type="url"]:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px var(--ui-ring);
    background-color: #fff;
}
input[readonly]:not([type="button"]):not([type="submit"]):not(.rsvvalor):not(.rsvtexto):not(.CalTitle),
textarea[readonly] {
    background-color: #f8fafc;
    color: #475569;
}
input:disabled:not([type="button"]):not([type="submit"]), select:disabled, textarea:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}
input::placeholder, textarea::placeholder { color: #94a3b8; font-weight: 400; }

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--ui-primary);
    width: 15px; height: 15px;
    margin: 2px 4px 2px 2px;
    vertical-align: middle;
    cursor: pointer;
    border: 0; padding: 0;
}
input[type="file"] { font-family: var(--ui-font); font-size: 12px; border: 0; padding: 2px 0; }
input[type="file"]::file-selector-button {
    margin-right: 8px; padding: 5px 12px; border-radius: 6px; cursor: pointer;
    border: 1px solid var(--ui-border); background: #fff; color: var(--ui-text);
    font: 600 12px var(--ui-font);
}
input[type="file"]::file-selector-button:hover { background: var(--ui-primary-50); border-color: var(--ui-primary); }
input[type="color"] { padding: 1px; border-radius: 6px; border: 1px solid var(--ui-border); }

/* ---------- 5. Botones ----------
 * "button" se limita con :not(:where(...)) para no tocar botones de librerias
 * (jQuery UI, DataTables, Bootstrap) ni los del menu, sin subir la especificidad. */
input[type="submit"], input[type="button"], input[type="reset"],
button:not(:where(.ui-button, .ui-dialog-titlebar-close, .dt-button, .btn, .navbar-toggler, .mm-nav button)),
.boton, .Boton1, input.box, input.boxingresar {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    padding: 6px 14px;
    font: 600 12px/1.2 var(--ui-font);
    letter-spacing: .1px;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    color: var(--ui-text);
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    cursor: pointer;
    filter: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .05s;
}
input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover,
button:not(:where(.ui-button, .ui-dialog-titlebar-close, .dt-button, .btn, .navbar-toggler, .mm-nav button)):hover,
.boton:hover, .Boton1:hover, input.box:hover, input.boxingresar:hover {
    background: #f1f5fb;
    border-color: var(--ui-border-strong);
}
input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active,
button:not(:where(.ui-button, .dt-button, .btn, .mm-nav button)):active,
.boton:active, .Boton1:active { transform: translateY(1px); }
input[type="submit"]:focus-visible, input[type="button"]:focus-visible, input[type="reset"]:focus-visible,
button:not(:where(.ui-button, .dt-button, .btn, .mm-nav button)):focus-visible, .boton:focus-visible, .Boton1:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--ui-ring);
}
input[type="submit"]:disabled, input[type="button"]:disabled,
button:not(:where(.ui-button, .dt-button, .btn, .mm-nav button)):disabled,
.boton:disabled, .Boton1:disabled {
    opacity: .55; cursor: not-allowed; transform: none;
}

/* Boton principal: submit y "Ingresar" */
input[type="submit"], input.boxingresar {
    color: #fff;
    background: var(--ui-primary);
    border-color: var(--ui-primary-600);
}
input[type="submit"]:hover, input.boxingresar:hover {
    background: var(--ui-primary-600);
    border-color: var(--ui-primary-700);
}

/* Variantes de color existentes (.blue, .red, ...) en version plana */
input.blue, button.blue, a.blue, .boton.blue, .Boton1.blue { color: #fff; background: #1d6fd1; border-color: #175cb0; }
input.blue:hover, button.blue:hover, a.blue:hover, .boton.blue:hover, .Boton1.blue:hover { background: #175cb0; }
input.red, button.red, a.red, .boton.red, .Boton1.red { color: #fff; background: #d92d20; border-color: #b42318; }
input.red:hover, button.red:hover, a.red:hover, .boton.red:hover, .Boton1.red:hover { background: #b42318; }
input.green, button.green, a.green, .boton.green, .Boton1.green { color: #fff; background: #16a34a; border-color: #15803d; }
input.green:hover, button.green:hover, a.green:hover, .boton.green:hover, .Boton1.green:hover { background: #15803d; }
input.orange, button.orange, a.orange, .boton.orange, .Boton1.orange { color: #fff; background: #ea7a0c; border-color: #c2620a; }
input.orange:hover, button.orange:hover, a.orange:hover, .boton.orange:hover, .Boton1.orange:hover { background: #c2620a; }
input.pink, button.pink, a.pink, .boton.pink, .Boton1.pink { color: #fff; background: #db2777; border-color: #be185d; }
input.pink:hover, button.pink:hover, a.pink:hover, .boton.pink:hover, .Boton1.pink:hover { background: #be185d; }
input.rosy, button.rosy, a.rosy, .boton.rosy, .Boton1.rosy { color: #fff; background: #e11d48; border-color: #be123c; }
input.rosy:hover, button.rosy:hover, a.rosy:hover, .boton.rosy:hover, .Boton1.rosy:hover { background: #be123c; }
input.black, button.black, a.black, .boton.black, .Boton1.black { color: #fff; background: #1f2937; border-color: #111827; }
input.black:hover, button.black:hover, a.black:hover, .boton.black:hover, .Boton1.black:hover { background: #111827; }
input.gray, button.gray, a.gray, .boton.gray, .Boton1.gray { color: #fff; background: #64748b; border-color: #475569; }
input.gray:hover, button.gray:hover, a.gray:hover, .boton.gray:hover, .Boton1.gray:hover { background: #475569; }
input.white, button.white, a.white, .boton.white, .Boton1.white { color: var(--ui-text); background: #fff; border-color: var(--ui-border); }
input.white:hover, button.white:hover, a.white:hover, .boton.white:hover, .Boton1.white:hover { background: #f1f5fb; }
input.btnConfirmar, button.btnConfirmar { color: #fff; background: var(--ui-primary); border-color: var(--ui-primary-600); font-size: 11px; padding: 3px 8px; }
input.btnEliminar, button.btnEliminar { color: #fff; background: #d92d20; border-color: #b42318; font-size: 11px; padding: 3px 8px; }
@media (min-width: 901px) and (max-width: 1500px) {
    .mm-kbd { display: none; }
    .mm-s-field { width: 150px; }
    .mm-user-name { max-width: 90px; }
}

/* Tarjeta de ingreso (frm_login.php) */
form[name="fseguir"] > table {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: var(--ui-shadow); overflow: hidden; padding: 10px 14px;
}
form[name="fseguir"] td { font-family: var(--ui-font); }
form[name="fseguir"] input[type="text"], form[name="fseguir"] input[type="password"] { width: 170px; }

/* ---------- 6. Etiquetas de formulario (clases globales de ph_admin.css) ----------
 * cFormName  = etiqueta normal
 * cFormNeed  = etiqueta de campo destacado/obligatorio (antes fondo naranja #FFCC99)
 * cFormField = celda del campo
 */
.cFormName, .cFormNeed {
    font-family: var(--ui-font);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background-color: transparent;
    padding: 6px 10px;
    vertical-align: middle;
    white-space: nowrap;
}
.cFormNeed {
    color: var(--ui-primary-700);
    background-color: var(--ui-primary-50);
    border-left: 3px solid var(--ui-primary);
    border-radius: 6px;
}
th.cFormNeed { border-left: 0; text-align: center; }
.cFormField {
    font-family: var(--ui-font);
    font-size: 12px;
    color: var(--ui-text);
    padding: 5px 8px;
    vertical-align: middle;
}
.titulopagina {
    display: inline-block;
    font-family: var(--ui-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ui-primary-700);
    margin: 4px 0 8px;
    letter-spacing: .2px;
}

/* ---------- 7. Mantenedores: grillas, barra de herramientas y filtros ----------
 * Clases globales generadas por lib/inc_mantenedor.php:
 *   tr/td.tituloformulario = barra (agregar, excel, paginacion) y encabezados de columna
 *   Fila1 / Fila2          = filas alternadas;  td.divover = celda de accion (ver/editar/eliminar)
 *   form[name=ffiltro]     = filtros del mantenedor
 * Solo estilo: no cambia estructura ni comportamiento.
 */
/* Encabezados: base comun (reemplaza el degradado granate/negro) */
.tituloformulario, .tituloformulario td, td.TituloFormulario, tr.TituloFormulario td,
.subtituloformulario, .subtituloformularioNS {
    font-family: var(--ui-font);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ui-primary-700);
    text-shadow: none;
    filter: none;
    background: var(--ui-primary-50);
    border: 0;
    border-bottom: 1px solid #d9e2f1;
    padding: 8px 10px;
    vertical-align: middle;
}
.subtituloformulario, .subtituloformularioNS {
    color: #334155; background: #f1f5f9; border-bottom-color: #e2e8f0;
}
a.tituloformulario, .tituloformulario a { color: inherit; background: transparent; border: 0; padding: 0; }
span.TituloFormulario {
    display: inline-block; font-family: var(--ui-font); font-size: 18px; font-weight: 700;
    color: var(--ui-primary-700); background: transparent; border: 0; padding: 0;
    margin: 4px 0 10px; text-shadow: none;
}

/* Grilla: tarjeta blanca con bordes redondeados */
table:has(> tbody > tr > td.Fila1, > tbody > tr > td.Fila2, > tbody > tr.tituloformulario > td.tituloformulario) {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ui-surface);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    overflow: hidden;
    margin: 4px 0 12px;
}
/* Barra de herramientas y paginacion (filas de encabezado con controles) */
tr.tituloformulario:has(select, img, input:not([type="hidden"])) > td {
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 10px;
}
tr.tituloformulario:last-child:has(select) > td { border-bottom: 0; border-top: 1px solid #e2e8f0; }
tr.tituloformulario select { padding-top: 2px; padding-bottom: 2px; margin: 0 4px; }
/* Botones de icono de la barra (agregar, exportar, guardar) */
td.tituloformulario > a.tituloformulario, tr.tituloformulario td > a:has(> img) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 7px;
    background: #fff; border: 1px solid var(--ui-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    transition: background-color .15s ease, border-color .15s ease;
}
td.tituloformulario > a.tituloformulario:hover, tr.tituloformulario td > a:has(> img):hover {
    background: var(--ui-primary-50); border-color: var(--ui-primary);
}
td.tituloformulario > a.tituloformulario img, tr.tituloformulario td > a > img { width: 18px; height: 18px; }
/* Encabezados de columna */
tr.tituloformulario:not(:has(select, img, input:not([type="hidden"]))) > td {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

/* Filas */
.Fila1, .Fila2, .FilaLuz {
    font-family: var(--ui-font);
    font-size: 12.5px;
    color: var(--ui-text);
    padding: 6px 10px;
}
td.Fila1, td.Fila2, td.FilaLuz { border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.Fila1 { background-color: #ffffff; }
.Fila2 { background-color: #f8fafc; }
.FilaLuz { background-color: #fff8db; }
tr:hover > td.Fila1, tr:hover > td.Fila2 { background-color: #eef4ff; }
tr:last-child > td.Fila1, tr:last-child > td.Fila2 { border-bottom: 0; }
.filacontenido, .tabcontenidomant { font-family: inherit; font-size: inherit; color: inherit; }
a.tabcontenidomant:hover { color: var(--ui-primary); }

/* Celdas de accion: botones de icono redondeados */
td.divover { padding: 3px 1px; width: 30px; background-clip: padding-box; }
td.divover a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 7px;
    transition: background-color .15s ease;
}
td.divover a:hover { background-color: #e3ebfb; }
td.divover a[href*="eliminar"]:hover, td.divover a:has(img[src$="delete2.png"]):hover { background-color: #fde8e8; }
td.divover img { width: 17px; height: 17px; }

/* Filtros del mantenedor: barra clara en vez de franja oscura */
form[name="ffiltro"] > table {
    background: var(--ui-surface);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    margin: 4px 0 10px;
    padding: 4px 6px;
}
form[name="ffiltro"] tr.tituloformulario, form[name="ffiltro"] tr.tituloformulario > td,
form[name="ffiltro"] td.cTableHeader {
    background: transparent;
    border: 0;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 6px;
}
td.divover { border-bottom: 1px solid #eef1f5; vertical-align: middle; }
tr:last-child > td.divover { border-bottom: 0; }
tr:hover > td.divover { background-color: #eef4ff; }

/* Formularios de agregar / modificar / ver: tarjeta blanca */
form[name="fagregar"] > table, form[name="fmodificar"] > table {
    background: var(--ui-surface);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    padding: 8px 10px;
    margin: 4px 0 12px;
}

/* ---------- 7b. Grillas responsive ----------
 * 1) Las celdas pueden partir texto (antes nowrap), asi la mayoria cabe en pantalla.
 * 2) Si aun asi no cabe, solo la tabla se desplaza horizontalmente dentro de su tarjeta,
 *    no la pagina completa (la tabla pasa a bloque con scroll; su tbody sigue siendo tabla).
 * 3) Los filtros se reacomodan en varias lineas. */
table:has(> tbody > tr > td.Fila1, > tbody > tr > td.Fila2, > tbody > tr.tituloformulario > td.tituloformulario) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
table:has(> tbody > tr > td.Fila1, > tbody > tr > td.Fila2, > tbody > tr.tituloformulario > td.tituloformulario) > tbody {
    display: table;
    width: 100%;
}
td.Fila1, td.Fila2, td.FilaLuz { white-space: normal; min-width: 2.5em; }
tr.tituloformulario:not(:has(select, img, input:not([type="hidden"]))) > td { white-space: normal; }
td.divover { white-space: nowrap; }

form[name="ffiltro"] > table { display: block; max-width: 100%; box-sizing: border-box; }
form[name="ffiltro"] > table > tbody { display: block; }
form[name="ffiltro"] > table > tbody > tr {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; row-gap: 2px;
}
form[name="ffiltro"] select, form[name="ffiltro"] input[type="text"] { max-width: 100%; }
@media (max-width: 700px) {
    form[name="ffiltro"] > table > tbody > tr > td { flex: 1 1 40%; }
    form[name="ffiltro"] select, form[name="ffiltro"] input[type="text"] { width: 100%; box-sizing: border-box; }
}
form[name="ffiltro"] > table > tbody > tr > td { min-width: 0; }
form[name="ffiltro"] select { min-width: 0; }
/* Columnas de iconos (acciones y botones de la barra): lo justo para el icono */
td.divover { width: 1px; }
tr.tituloformulario > td:has(> a > img):not([colspan]) { width: 1px; white-space: nowrap; }
/* Dialogos ocultos de index.php (ancho fijo 650px): no deben ensanchar la pagina en el celular */
[id^="dialoginstrumento"] { max-width: 100%; box-sizing: border-box; }

/* ---------- 8. Iconos modernos ----------
 * Reemplaza los PNG/GIF antiguos de imag/iconos e imag/filetypes por SVG via content:url().
 * Las imagenes y su HTML no cambian; un navegador sin soporte sigue mostrando el icono original. */
img[src$="iconos/view.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
img[src$="iconos/edit.png"],
img[src$="iconos/window_edit.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
}
img[src$="iconos/document_edit.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M18.4 12.6a1.9 1.9 0 0 1 2.7 2.7L15.5 21l-3.5 1 1-3.5z'/%3E%3C/svg%3E");
}
img[src$="iconos/delete2.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3C/svg%3E");
}
img[src$="iconos/delete.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
}
img[src$="iconos/add2.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='%2316a34a' stroke='none'/%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E");
}
img[src$="iconos/save_as.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231d3f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");
}
img[src$="iconos/copy.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
img[src$="iconos/calendar.png"],
img[src$="iconos/calendar_preferences.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
img[src$="iconos/calendar_up.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='M12 19v-6M9.5 15.5 12 13l2.5 2.5'/%3E%3C/svg%3E");
}
img[src$="iconos/calendar_down.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='M12 13v6M9.5 16.5 12 19l2.5-2.5'/%3E%3C/svg%3E");
}
img[src$="iconos/users2.png"],
img[src$="iconos/users1.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
img[src$="iconos/user1.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
img[src$="iconos/user1_into.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E");
}
img[src$="iconos/user_headphones.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E");
}
img[src$="iconos/clip.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
}
img[src$="iconos/check2.png"],
img[src$="iconos/text_ok.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
img[src$="iconos/gear.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}
img[src$="iconos/text.png"],
img[src$="iconos/text_italics.png"],
img[src$="iconos/text_marked.png"],
img[src$="iconos/text_rich_colored.png"],
img[src$="iconos/text_rich_marked.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}
img[src$="iconos/document_add.png"],
img[src$="iconos/scroll_add.png"],
img[src$="iconos/application_add.png"],
img[src$="iconos/history_add.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 18v-6M9 15h6'/%3E%3C/svg%3E");
}
img[src$="iconos/application_delete.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15h6'/%3E%3C/svg%3E");
}
img[src$="iconos/scroll_replace.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7l4 4M4 7h16M16 21l4-4-4-4M20 17H4'/%3E%3C/svg%3E");
}
img[src$="iconos/cubes.png"],
img[src$="iconos/cube_molecule.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
}
img[src$="iconos/cubes_grey.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
}
img[src$="iconos/cubes_green.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
}
img[src$="iconos/branch_element.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}
img[src$="iconos/up_plus.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
}
img[src$="iconos/down_plus.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E");
}
img[src$="iconos/import2.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E");
}
img[src$="iconos/factory.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21h20M4 21V9l6 4V9l6 4V4h4v17'/%3E%3C/svg%3E");
}
img[src$="iconos/document_certificate.png"],
img[src$="iconos/certificate.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.48 12.89 17 22l-5-3-5 3 1.52-9.11'/%3E%3C/svg%3E");
}
img[src$="iconos/document_pulse.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
}
img[src$="iconos/form_blue.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
img[src$="iconos/form_yellow.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
img[src$="iconos/key1.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E");
}
img[src$="iconos/link.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}
img[src$="iconos/help2.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E");
}
img[src$="iconos/warning.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
img[src$="iconos/exchange.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7l4 4M4 7h16M16 21l4-4-4-4M20 17H4'/%3E%3C/svg%3E");
}
img[src$="iconos/tables.png"],
img[src$="iconos/table_new.png"],
img[src$="iconos/row_preferences.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18'/%3E%3C/svg%3E");
}
img[src$="iconos/pin_green.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
}
img[src$="iconos/pin_grey.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
}
img[src$="iconos/text_code_colored.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Cpath d='M6 9v6M18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");
}
img[src$="iconos/node.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v6M12 16v6'/%3E%3C/svg%3E");
}
img[src$="iconos/window_split_ver.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M12 3v18'/%3E%3C/svg%3E");
}
img[src$="iconos/weight.png"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1ZM2 16l3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10M12 3v18M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E");
}
img[src$="filetypes/pdf.png"],
img[src$="filetypes/pdf.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='%23fef2f2'/%3E%3Cpath d='M14 2v6h6'/%3E%3Ctext x='12' y='18.5' font-family='Arial,Helvetica,sans-serif' font-size='6.4' font-weight='700' text-anchor='middle' fill='%23dc2626' stroke='none'%3EPDF%3C/text%3E%3C/svg%3E");
}
img[src$="filetypes/xls.png"],
img[src$="filetypes/xls.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='%23f0fdf4'/%3E%3Cpath d='M14 2v6h6'/%3E%3Crect x='7' y='11' width='10' height='7.5' rx='1' fill='%2316a34a' stroke='none'/%3E%3Cpath d='M7 14.75h10M10.5 11v7.5M13.5 11v7.5' stroke='%23f0fdf4' stroke-width='1.1'/%3E%3C/svg%3E");
}
img[src$="filetypes/word.png"],
img[src$="filetypes/word.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='%231d4ed8' stroke='none'/%3E%3Cpath d='m6.5 8 2 8 3.5-6 3.5 6 2-8' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
img[src$="filetypes/ppt.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='%23c2410c' stroke='none'/%3E%3Cpath d='M9 17V7h4a3 3 0 0 1 0 6H9' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E");
}
img[src$="filetypes/txt.gif"],
img[src$="filetypes/sintipo.png"],
img[src$="filetypes/exe.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}
img[src$="filetypes/imagen.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21'/%3E%3C/svg%3E");
}
img[src$="filetypes/zip.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='5' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4'/%3E%3C/svg%3E");
}
img[src$="filetypes/video.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m22 8-6 4 6 4z'/%3E%3C/svg%3E");
}
img[src$="filetypes/sound.gif"] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}
