@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* =============================================================================
   DE Gestión — App Shell compartido
   Tokens fieles al UI Kit: slate tones + paleta terracota
   Aplica a: portada (de_gestion_inicio) + todos los módulos frontend
============================================================================= */

/* Reset full-screen para páginas de módulos */
html:has(body.iecon-module-page),
body.iecon-module-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
    font-family: 'PT Sans', sans-serif !important;
}

html:has(.de-shell),
body:has(.de-shell) {
    margin: 0 !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
}

body:has(.de-shell) #wpadminbar {
    display: none !important;
}

body:has(.de-shell) .wp-site-blocks,
body:has(.de-shell) main.wp-block-group,
body:has(.de-shell) .wp-block-post-content,
body:has(.de-shell) .entry-content,
body:has(.de-shell) .is-layout-constrained,
body:has(.de-shell) .is-layout-constrained > *,
body:has(.de-shell) .is-layout-flow,
body:has(.de-shell) .is-layout-flow > *,
body:has(.de-shell) #page,
body:has(.de-shell) .site,
body:has(.de-shell) #content,
body:has(.de-shell) main:not(.de-shell__main) {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Proyectos: override final para evitar que el normalizador general de tabs
   deje pestañas demasiado separadas o con indicadores curvos. */
.gp-app > .gp-tabs,
body.iecon-module-page .gp-app > .gp-tabs,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    min-height: 40px !important;
    margin: 0 0 18px !important;
    padding: 0 20px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sh-border, #e2e8f0) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gp-app > .gp-tabs .gp-tab,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sh-text-muted, #64748b) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.gp-app > .gp-tabs .gp-tab.active,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab.active,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab.active {
    color: var(--sh-text, #0f172a) !important;
    border-bottom-color: transparent !important;
}

.gp-app > .gp-tabs .gp-tab.active::after,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab.active::after,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab.active::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    height: 3px !important;
    border-radius: 0 !important;
    background: var(--sh-red, #dc2626) !important;
}
/* Ocultar admin bar */
body.iecon-module-page #wpadminbar { display: none !important; }
html.iecon-module-page,
html:has(body.iecon-module-page) { margin-top: 0 !important; }
/* Ocultar header/footer del tema */
body.iecon-module-page .wp-block-template-part,
body.iecon-module-page header.wp-block-template-part,
body.iecon-module-page footer.wp-block-template-part { display: none !important; }
/* Anular restricciones FSE */
body.iecon-module-page .wp-site-blocks,
body.iecon-module-page main.wp-block-group,
body.iecon-module-page .wp-block-post-content,
body.iecon-module-page .is-layout-constrained > *,
body.iecon-module-page .is-layout-flow > *,
body.iecon-module-page #page,
body.iecon-module-page .site,
body.iecon-module-page #content,
body.iecon-module-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}
/* Hello Elementor específico */
body.iecon-module-page .site-header,
body.iecon-module-page footer.site-footer,
body.iecon-module-page .page-header,
body.iecon-module-page .entry-header,
body.iecon-module-page .entry-title,
body.iecon-module-page .site-main > header,
body.iecon-module-page .elementor-location-header,
body.iecon-module-page .elementor-location-footer,
body.iecon-module-page #site-header,
body.iecon-module-page #site-footer { display: none !important; }

/* --------------------------------------------------------------------------
   Tokens globales — sistema institucional semántico
   Acciones afirmativas en azul, identidad en rojo, destructivas en rojo intenso.
-------------------------------------------------------------------------- */
:root {
    /* Texto — slate tones */
    --sh-text:        #0f172a;   /* slate-900 — headings */
    --sh-text-nav:    #334155;   /* slate-700 — nav items */
    --sh-text-body:   #475569;   /* slate-600 — body text */
    --sh-text-muted:  #64748b;   /* slate-500 — secondary */
    --sh-text-subtle: #94a3b8;   /* slate-400 — placeholders */

    /* Superficies */
    --sh-bg:          #f1f5f9;   /* slate-100 — fondo de página (bg-slate-100) */
    --sh-card:        #ffffff;
    --sh-panel:       #eef3f8;
    --sh-panel-soft:  #f6f8fb;
    --sh-sidebar:     #ffffff;
    --sh-hover:       #f8fafc;   /* slate-50 */

    /* Neutros institucionales cálidos */
    --sh-neutral:       #B6B2A3;
    --sh-neutral-light: #F2F0EA;
    --sh-neutral-mid:   #D8D4C8;
    --sh-neutral-dark:  #5F594B;

    /* Bordes */
    --sh-border:      #e2e8f0;   /* slate-200 */
    --sh-border-dark: #cbd5e1;   /* slate-300 */

    /* Interacción */
    --sh-primary:        #10406D;
    --sh-primary-hover:  #0B3155;
    --sh-primary-active: #072640;
    --sh-primary-bg:     #EAF2F8;
    --sh-primary-border: #B7CADD;

    /* Marca institucional */
    --sh-red:         #F15A55;
    --sh-red-border:  #F15A55;
    --sh-red-hover:   #D84A45;
    --sh-red-bg:      #FFF1EF;
    --sh-red-light:   rgba(241, 90, 85, 0.12);

    /* Peligro / destructivo */
    --sh-danger:        #C8242D;
    --sh-danger-hover:  #A81722;
    --sh-danger-bg:     #FFF0EF;
    --sh-danger-border: #F2B8B6;

    /* Marca Udelar */
    --sh-udelar-blue:    #234b6e;
    --sh-udelar-blue-bg: #edf4f8;

    /* Paleta cálida (stat cards, badges) */
    --sh-orange:      #ea580c;   /* orange-600 */
    --sh-orange-bg:   #fff7ed;   /* orange-50 */
    --sh-amber:       #d97706;   /* amber-600 */
    --sh-amber-bg:    #fffbeb;   /* amber-50 */
    --sh-stone:       #44403c;   /* stone-700 */
    --sh-stone-bg:    #f5f5f4;   /* stone-100 */
    --sh-green:       #16a34a;   /* green-600 */
    --sh-green-bg:    #f0fdf4;   /* green-50 */

    /* Sombras sutiles */
    --sh-shadow:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --sh-shadow-md:   0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --sh-shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

    /* Radio (--radius: 0.625rem del Figma Make = 10px) */
    --sh-radius:      10px;
    --sh-radius-lg:   12px;
    --sh-radius-xl:   16px;

    /* Sidebar — w-72 = 18rem = 288px */
    --sh-sidebar-w:           288px;
    --sh-sidebar-w-collapsed: 80px;   /* w-20 = 5rem = 80px */
    --sh-sidebar-transition:  width 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* --------------------------------------------------------------------------
   Shell root — fuente, reset, layout base
   display:flex con !important para superar el display:block que inyectan
   los contenedores FSE del tema
-------------------------------------------------------------------------- */
.de-shell {
    display: flex !important;   /* sobreescribe display:block de contenedores FSE */
    min-height: 100vh;
    background: var(--sh-bg);
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color: var(--sh-text);
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

body.iecon-module-page #iecon-page {
    min-height: 100vh;
    background: var(--sh-bg);
}

body.iecon-is-loading {
    cursor: progress;
}

.de-shell-loading {
    position: fixed;
    top: var(--iecon-loading-top, 0);
    right: auto;
    bottom: auto;
    left: var(--iecon-loading-left, 0);
    z-index: 2147483000;
    display: grid;
    place-items: center;
    width: 100dvw;
    width: var(--iecon-loading-vw, 100dvw);
    height: 100dvh;
    height: var(--iecon-loading-vh, 100dvh);
    min-height: 100dvh;
    min-height: var(--iecon-loading-vh, 100dvh);
    padding: 24px;
    background: #ffffff;
    color: var(--sh-text, #0f172a);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.de-shell-loading[hidden] {
    display: none;
}

body.iecon-is-loading .de-shell-loading {
    opacity: 1;
    pointer-events: auto;
}

.de-shell-loading__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 160px;
    min-height: 120px;
    transform: translate(-50%, -50%);
    color: var(--sh-text, #0f172a);
    font-family: 'PT Sans', sans-serif;
}

.de-shell-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--sh-border, #e2e8f0);
    border-top-color: var(--sh-red, #dc2626);
    border-radius: 50%;
    animation: de-shell-loading-spin 0.8s linear infinite;
}

.de-shell-loading__text {
    color: var(--sh-text-body, #475569);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.iecon-inline-loading {
    cursor: progress !important;
    pointer-events: none !important;
}

button.iecon-inline-loading,
a.iecon-inline-loading,
[role="button"].iecon-inline-loading {
    position: relative;
}

button.iecon-inline-loading::after,
a.iecon-inline-loading::after,
[role="button"].iecon-inline-loading::after,
.iecon-inline-loading__input-spinner {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .55em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    vertical-align: -.14em;
    animation: de-shell-loading-spin 0.8s linear infinite;
}

.iecon-inline-loading--icon-only::after {
    margin-left: 0;
}

.iecon-inline-loading__input-spinner {
    color: currentColor;
    margin-right: .35em;
}

@keyframes de-shell-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .de-shell-loading,
    .de-shell-loading__spinner,
    .iecon-inline-loading::after,
    .iecon-inline-loading__input-spinner {
        transition: none;
        animation: none;
    }
}

.de-shell *,
.de-shell *::before,
.de-shell *::after { box-sizing: border-box; }

.de-shell__sidebar {
    width: var(--sh-sidebar-w);
    transition: var(--sh-sidebar-transition);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--sh-sidebar);
    border-right: 1px solid var(--sh-border);
}

.de-shell__sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.de-shell__sidebar-footer {
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    background: var(--sh-sidebar);
    border-top: 1px solid var(--sh-border);
}

.de-shell__main {
    flex: 1;
    min-width: 0;
    overflow: auto;
    padding: 32px;
}

.de-shell__peek-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    background: var(--sh-panel-soft);
    color: var(--sh-text);
    box-shadow: var(--sh-shadow-md);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.de-shell__peek-btn:hover {
    background: var(--sh-panel-soft);
}

.de-shell__main > :first-child {
    margin-top: 0;
}

.de-shell__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 32px auto 24px;
    padding: 18px 22px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    background: var(--sh-panel-soft);
    color: var(--sh-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.de-shell__footer p {
    margin: 0;
}

.de-shell__footer-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.de-shell__footer-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.de-shell__footer-about {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--sh-border-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--sh-text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    opacity: 0.86;
}

.de-shell__footer-about:hover,
.de-shell__footer-about:focus {
    border-color: var(--sh-text-subtle);
    background: var(--sh-hover);
    color: var(--sh-text-body);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
    opacity: 1;
}

.de-shell__footer-version {
    color: var(--sh-text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.82;
}

.de-shell__footer-logo {
    display: block;
    width: min(286px, 48vw);
    max-height: 42px;
    object-fit: contain;
    object-position: right center;
    opacity: 0.48;
    filter: grayscale(1);
    flex: 0 0 auto;
}

.de-shell__about-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: grid;
    place-items: center;
    padding: 24px;
}

.de-shell__about-modal[hidden] {
    display: none;
}

.de-shell__about-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
}

.de-shell__about-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-lg);
    background: #fff;
    color: var(--sh-text-body);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    outline: none;
}

.de-shell__about-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--sh-border);
    border-radius: 999px;
    background: var(--sh-hover);
    color: var(--sh-text-muted);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.de-shell__about-close:hover,
.de-shell__about-close:focus {
    background: #fff;
    color: var(--sh-text);
}

.de-shell__about-kicker {
    display: block;
    margin: 0 42px 8px 0;
    color: var(--sh-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.de-shell__about-panel h2 {
    margin: 0 42px 16px 0;
    color: var(--sh-text);
    font-size: 22px;
    line-height: 1.2;
}

.de-shell__about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 42px 18px 0;
}

.de-shell__about-meta div {
    display: grid;
    gap: 3px;
    min-width: 150px;
    padding: 9px 11px;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    background: var(--sh-panel-soft);
}

.de-shell__about-meta dt {
    color: var(--sh-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.de-shell__about-meta dd {
    margin: 0;
    color: var(--sh-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

.de-shell__about-panel p {
    margin: 0;
    font-size: 15px;
    line-height: 1.62;
}

.de-shell__about-panel p + p {
    margin-top: 14px;
}

.de-shell__about-credits {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--sh-border);
}

.de-shell__about-credits p {
    font-size: 14px;
    line-height: 1.45;
}

.de-shell__about-credits p + p {
    margin-top: 12px;
}

.de-shell__about-credits strong {
    color: var(--sh-text);
    font-weight: 700;
}

.de-shell__about-credits ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--sh-text-body);
    font-size: 14px;
    line-height: 1.45;
    list-style: disc;
}

/* Títulos principales de módulos frontend: peso consistente en toda la intranet. */
body.iecon-module-page .de-shell__main h1,
body.iecon-module-page .de-shell__main .de-shell__topbar-title,
body.iecon-module-page .de-shell__main .fta-header__title,
body.iecon-module-page .de-shell__main .smt-page-title h1,
body.iecon-module-page .de-shell__main .iecon-exp-page-head h1,
body.iecon-module-page .de-shell__main .conv-page-header__text h1,
body.iecon-module-page .de-shell__main .iecon-rge-shell__hero h1 {
    font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   Botón toggle de colapso
-------------------------------------------------------------------------- */
.de-shell__collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--sh-border);
    background: #fff;
    color: var(--sh-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-decoration: none;
    background-image: none !important;
}
.de-shell__collapse-btn:hover {
    background: var(--sh-bg);
    color: var(--sh-text);
    border-color: var(--sh-border-dark);
}
.de-shell__collapse-btn:focus,
.de-shell__collapse-btn:focus-visible,
.de-shell__collapse-btn:active,
.de-shell__collapse-btn:visited {
    background: #fff !important;
    color: var(--sh-text-muted) !important;
    border-color: var(--sh-border) !important;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    background-image: none !important;
}

.de-shell__collapse-btn:hover:focus,
.de-shell__collapse-btn:hover:focus-visible,
.de-shell__collapse-btn:hover:active {
    background: var(--sh-bg) !important;
    color: var(--sh-text) !important;
    border-color: var(--sh-border-dark) !important;
}

/* --------------------------------------------------------------------------
   Sidebar: brand
-------------------------------------------------------------------------- */
.de-shell__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 56px 16px 16px;
    border-bottom: 1px solid var(--sh-border);
    gap: 8px;
    min-height: 72px;
    position: relative;
}

.de-shell__brand-logo {
    display: block;
    width: auto;
    max-width: 101px;
    max-height: 44px;
    object-fit: contain;
    transition: max-width 0.25s, opacity 0.2s;
    margin: 0;
}

.de-shell__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 44px);
    min-width: 0;
    line-height: 1.12;
    text-decoration: none;
}

.de-shell__brand-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--sh-text-nav);
    max-height: 44px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.08;
}

.de-shell__brand-title span:first-child {
    font-weight: 400;
}

.de-shell__mobile-menu-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 140px;
    line-height: 0;
    text-decoration: none;
}

.de-shell__brand-link:focus-visible,
.de-shell__mobile-menu-logo-link:focus-visible {
    outline: 2px solid var(--sh-red);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Sidebar: navigation
-------------------------------------------------------------------------- */
.de-shell__nav {
    flex: 1;
    padding: 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.de-shell__nav-section {
    padding: 16px 8px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sh-text-subtle);
}

.de-shell__nav-separator {
    border-top: 1px solid var(--sh-border);
    margin: 12px 8px 10px;
}

.de-shell__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 0;
    border-left: 4px solid transparent;
    color: var(--sh-text-nav);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1.3;
    width: 100%;
}

.de-shell__nav-link--button {
    appearance: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.de-shell__nav-link--button:focus-visible {
    outline: 2px solid var(--sh-red-border);
    outline-offset: 2px;
}

.de-shell__nav-link--has-children {
    padding-right: 12px;
}

.de-shell__nav-link:hover {
    background: var(--sh-hover);
    color: var(--sh-text);
    border-left-color: transparent;
    text-decoration: none;
}

.de-shell__nav-link--active {
    background: var(--sh-bg);
    color: var(--sh-text);
    border-left-color: var(--sh-red-border);
    font-weight: 600;
}

.de-shell__nav-link--active:hover {
    background: var(--sh-bg);
    color: var(--sh-text);
}

.de-shell__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--sh-text-muted);
    transition: color 0.12s;
}

.de-shell__nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.de-shell__nav-link:hover .de-shell__nav-icon {
    color: var(--sh-text);
}

.de-shell__nav-link--active .de-shell__nav-icon {
    color: var(--sh-text);
}

.de-shell__nav-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--sh-text-subtle);
    transition: transform 0.16s ease, color 0.12s ease;
    flex-shrink: 0;
}

.de-shell__nav-chevron svg {
    width: 16px;
    height: 16px;
    display: block;
}

.de-shell__nav-link:hover .de-shell__nav-chevron {
    color: var(--sh-text-muted);
}

.de-shell__nav-link--expanded .de-shell__nav-chevron {
    transform: rotate(90deg);
}

.de-shell__nav-link--active .de-shell__nav-chevron {
    color: var(--sh-text);
    transform: rotate(90deg);
}

/* Ocultar label (no icon) cuando está colapsado */
.de-shell--collapsed .de-shell__nav-label {
    display: none;
}

.de-shell--collapsed .de-shell__nav-chevron {
    display: none;
}

/* --------------------------------------------------------------------------
   Sidebar: subitems (ítems hijo indentados bajo un ítem padre)
-------------------------------------------------------------------------- */

.de-shell__nav-subitems {
    display: flex;
    flex-direction: column;
    margin: 0 0 2px 16px;
    border-left: none;
    padding-left: 6px;
}

.de-shell__nav-subitems[hidden] {
    display: none;
}

.de-shell__nav-sublink {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--sh-radius);
    color: var(--sh-text-nav);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
}

.de-shell__nav-sublink--has-children {
    padding-right: 10px;
}

.de-shell__nav-sublink:hover {
    background: var(--sh-hover);
    color: var(--sh-text);
    text-decoration: none;
}

.de-shell__nav-sublink--active {
    color: var(--sh-text);
    font-weight: 600;
    background: var(--sh-bg);
}

.de-shell__nav-sublink--active:hover {
    background: var(--sh-bg);
    color: var(--sh-text);
}

.de-shell__nav-sublink--expanded .de-shell__nav-chevron {
    transform: rotate(90deg);
}

.de-shell__nav-subitems--level-2 {
    margin-left: 12px;
    border-left: none;
}

/* Ocultar subitems cuando el sidebar está colapsado */
.de-shell--collapsed .de-shell__nav-subitems {
    display: none;
}

/* --------------------------------------------------------------------------
   Sidebar: user footer
-------------------------------------------------------------------------- */
.de-shell__view-as {
    display: grid;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sh-border);
}

.de-shell__view-as label {
    color: var(--sh-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.de-shell__view-as select {
    width: 100%;
    min-height: 34px;
    padding: 6px 28px 6px 9px;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sh-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
}

.de-shell__view-as-badge {
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--sh-primary-bg);
    color: var(--sh-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.de-shell__user {
    position: relative;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-shell__user-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sh-red) 0%, var(--sh-orange) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.de-shell__user-avatar--image {
    overflow: visible;
    background: #fff;
    color: inherit;
}

.de-shell__user-avatar img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--sh-border);
}

.de-shell__user-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-text-nav);
}

.de-shell__user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.de-shell__user-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.de-shell__user-task-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    border: 2px solid var(--sh-sidebar);
    background: var(--sh-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

.de-shell__user-task-badge:hover,
.de-shell__user-task-badge:focus {
    color: #fff;
    text-decoration: none;
}

.de-shell__notifications-popover {
    position: fixed;
    left: var(--de-shell-notifications-left, 16px);
    bottom: var(--de-shell-notifications-bottom, 120px);
    z-index: 10000;
    width: min(380px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 96px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--sh-shadow-lg);
}

.de-shell__notifications-popover[hidden] {
    display: none;
}

.de-shell__notifications-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--sh-border);
}

.de-shell__notifications-head div {
    display: grid;
    gap: 2px;
}

.de-shell__notifications-head strong {
    color: var(--sh-text);
    font-size: 14px;
    line-height: 1.2;
}

.de-shell__notifications-head span:not(.de-shell__notifications-count) {
    color: var(--sh-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.de-shell__notifications-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--sh-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.de-shell__notifications-empty {
    margin: 0;
    padding: 16px 14px;
    color: var(--sh-text-muted);
    font-size: 13px;
}

.de-shell__notifications-list {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 0;
    max-height: 250px;
    scrollbar-gutter: stable;
}

.de-shell__notifications-section-title {
    padding: 10px 14px 6px;
    color: var(--sh-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.de-shell__notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    padding: 14px;
    border-bottom: 1px solid var(--sh-border);
}

.de-shell__notification-item:last-child {
    border-bottom: 0;
}

.de-shell__notification-content {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.de-shell__notification-type {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--sh-red-bg);
    color: var(--sh-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.de-shell__notification-item a {
    color: var(--sh-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.de-shell__notification-item a:hover,
.de-shell__notification-item a:focus {
    color: var(--sh-red);
    text-decoration: none;
}

.de-shell__notification-item p,
.de-shell__notification-item small {
    margin: 0;
    color: var(--sh-text-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.de-shell__notification-dismiss {
    margin: 0;
}

.de-shell__notification-dismiss button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--sh-text-subtle);
    cursor: pointer;
}

.de-shell__notification-dismiss button:hover,
.de-shell__notification-dismiss button:focus {
    border-color: var(--sh-border);
    background: var(--sh-hover);
    color: var(--sh-red);
}

.de-shell__notification-dismiss button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.de-shell__notification-dismiss svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-shell__notification-item--read {
    background: #fafafa;
}

.de-shell__notification-item--read a {
    color: var(--sh-text-nav);
}

.de-shell__notifications-actions {
    padding: 12px 14px;
    border-top: 1px solid var(--sh-border);
}

.de-shell__notifications-actions button {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--sh-red);
    border-radius: 8px;
    background: var(--sh-red);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.de-shell__notifications-actions button:hover,
.de-shell__notifications-actions button:focus {
    background: var(--sh-red-hover);
    border-color: var(--sh-red-hover);
}

.de-shell__notifications-history {
    border-top: 1px solid var(--sh-border);
}

.de-shell__notifications-history summary {
    cursor: pointer;
    padding: 12px 14px;
    color: var(--sh-text);
    font-size: 13px;
    font-weight: 800;
    list-style-position: inside;
}

.de-shell__notifications-history[open] summary {
    border-bottom: 1px solid var(--sh-border);
}

.de-shell__notifications-list--history {
    max-height: 260px;
}

.de-shell__user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.de-shell__backend-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--sh-text-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.de-shell__backend-link:hover,
.de-shell__backend-link:focus {
    color: var(--sh-text);
    text-decoration: underline;
}

.de-shell__user-panel {
    margin: 0;
    padding: 0 16px 14px;
    display: grid;
    gap: 8px;
}

.de-shell__user-panel-summary {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: var(--sh-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.de-shell__user-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--sh-border);
    background: #fff;
    color: var(--sh-text-nav);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.de-shell__user-panel-link:hover {
    background: var(--sh-hover);
    color: var(--sh-text);
    border-color: var(--sh-border-dark);
    text-decoration: none;
}

.de-profile-page {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 42px);
}

.de-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.de-profile-header p {
    margin: 0 0 4px;
    color: var(--sh-text-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.de-profile-header h1 {
    margin: 0;
    color: var(--sh-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.de-profile-header span {
    display: inline-flex;
    margin-top: 8px;
    color: var(--sh-text-body);
    font-size: 14px;
}

.de-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
    border-radius: 50%;
    background: var(--sh-red);
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    overflow: hidden;
}

.de-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.de-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.de-profile-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.de-profile-card h2 {
    margin: 0;
    color: var(--sh-text);
    font-size: 18px;
    line-height: 1.2;
}

.de-profile-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.de-profile-facts div {
    display: grid;
    gap: 3px;
}

.de-profile-facts dt {
    color: var(--sh-text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.de-profile-facts dd {
    margin: 0;
    color: var(--sh-text);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.de-profile-link {
    color: var(--sh-red);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.de-profile-link:hover,
.de-profile-link:focus {
    text-decoration: underline;
}

.de-profile-photo-form {
    display: grid;
    gap: 14px;
}

.de-profile-photo-form label {
    display: grid;
    gap: 7px;
    color: var(--sh-text);
    font-size: 14px;
    font-weight: 800;
}

.de-profile-photo-form input[type="file"] {
    max-width: 100%;
    color: var(--sh-text-body);
    font: inherit;
    font-weight: 400;
}

.de-profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.de-profile-button {
    appearance: none;
    border: 1px solid var(--sh-red);
    border-radius: 8px;
    background: var(--sh-red);
    color: #fff;
    padding: 9px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.de-profile-button--ghost {
    background: #fff;
    color: var(--sh-text);
    border-color: var(--sh-border-dark);
}

.de-profile-status {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.de-profile-status--success {
    color: #15803d;
}

.de-profile-status--error {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .de-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Estado colapsado (.de-shell--collapsed en el elemento .de-shell)
-------------------------------------------------------------------------- */
.de-shell--collapsed .de-shell__sidebar {
    width: var(--sh-sidebar-w-collapsed);
    overflow-x: hidden;   /* no cortar verticalmente, solo en X */
}
.de-shell--collapsed .de-shell__brand-logo {
    max-width: 36px;
}
.de-shell--collapsed .de-shell__brand-title {
    display: none;
}
.de-shell--collapsed .de-shell__brand {
    justify-content: center;
    padding: 18px 10px 16px;
}
.de-shell--collapsed .de-shell__brand-link {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 0;
    line-height: 0;
}
.de-shell--collapsed .de-shell__brand-logo {
    margin: 0 auto;
}
/* Ocultar textos, mostrar solo íconos */
.de-shell--collapsed .de-shell__nav-label,
.de-shell--collapsed .de-shell__nav-section,
.de-shell--collapsed .de-shell__view-as,
.de-shell--collapsed .de-shell__user-meta,
.de-shell--collapsed .de-shell__user-panel {
    display: none;
}
.de-shell--collapsed .de-shell__nav-link {
    justify-content: center;
    padding: 10px 8px;
    border-left-width: 4px;
}
.de-shell--collapsed .de-shell__nav-icon {
    margin: 0;
}
.de-shell--collapsed .de-shell__user {
    justify-content: center;
    padding: 12px 8px;
}
.de-shell--collapsed .de-shell__sidebar-footer {
    border-top: 1px solid var(--sh-border);
}
.de-shell--collapsed .de-shell__nav {
    padding: 12px 8px 0;
}
/* Cuando colapsado, el botón toggle va al centro en la brand area */
.de-shell--collapsed .de-shell__collapse-btn {
    margin: 0;
}

.de-shell__brand .de-shell__collapse-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.de-shell--collapsed .de-shell__brand .de-shell__collapse-btn {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 10px;
    background: #fff;
    border-color: var(--sh-border);
    color: var(--sh-text-muted);
}

.de-shell--collapsed .de-shell__brand {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.de-shell--sidebar-hidden .de-shell__sidebar {
    width: 0;
    min-width: 0;
    border-right: none;
    overflow: hidden;
}

.de-shell--sidebar-hidden .de-shell__main {
    padding-left: 32px;
}

.de-shell:not(.de-shell--sidebar-hidden) .de-shell__peek-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   Topbar (dentro de __main)
-------------------------------------------------------------------------- */
.de-shell__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.de-shell__topbar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sh-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.de-shell__topbar-sub {
    font-size: 14px;
    color: var(--sh-text-body);
    margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   Cards genéricas (reutilizables en todos los módulos)
-------------------------------------------------------------------------- */
.de-card {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow);
}

/* Stats card con borde izquierdo (TaskManager style) */
.de-stat-card {
    background: var(--sh-card);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow);
    padding: 20px 24px;
    border-left: 4px solid var(--sh-border-dark);
}
.de-stat-card--red    { border-left-color: var(--sh-red); }
.de-stat-card--orange { border-left-color: var(--sh-orange); }
.de-stat-card--amber  { border-left-color: var(--sh-amber); }
.de-stat-card--green  { border-left-color: var(--sh-green); }

.de-stat-card__label {
    font-size: 13px;
    color: var(--sh-text-body);
    margin-bottom: 4px;
}

.de-stat-card__value {
    font-size: 30px;
    font-weight: 700;
    color: var(--sh-text);
    line-height: 1;
    letter-spacing: -0.04em;
}

.de-stat-card--red    .de-stat-card__value { color: var(--sh-red); }
.de-stat-card--orange .de-stat-card__value { color: var(--sh-orange); }
.de-stat-card--amber  .de-stat-card__value { color: var(--sh-amber); }
.de-stat-card--green  .de-stat-card__value { color: var(--sh-green); }

/* Grilla de stats */
.de-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Filtro de tabs estilo UI Kit */
.de-filter-bar {
    background: var(--sh-card);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.de-filter-bar__icon {
    color: var(--sh-text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.de-filter-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.de-filter-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--sh-bg);
    color: var(--sh-text-body);
    transition: background 0.12s, color 0.12s;
}

.de-filter-btn:hover { background: var(--sh-border); color: var(--sh-text); }

.de-filter-btn--active {
    background: var(--sh-red);
    color: #fff;
}

.de-filter-btn--active:hover { background: var(--sh-red-hover); color: #fff; }

/* Lista de items estilo TaskManager */
.de-item-list {
    background: var(--sh-card);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow);
    overflow: hidden;
}

.de-item-list__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--sh-border);
    transition: background 0.12s;
}

.de-item-list__row:last-child { border-bottom: none; }
.de-item-list__row:hover { background: var(--sh-hover); }

.de-item-list__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--sh-text-subtle);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.de-item-list__icon--pending    { color: var(--sh-text-subtle); }
.de-item-list__icon--in-progress { color: var(--sh-orange); }
.de-item-list__icon--completed  { color: var(--sh-amber); }

.de-item-list__body { flex: 1; min-width: 0; }

.de-item-list__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-text);
    margin: 0 0 4px;
}

.de-item-list__desc {
    font-size: 13px;
    color: var(--sh-text-body);
    margin: 0 0 10px;
}

.de-item-list__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--sh-text-muted);
    flex-wrap: wrap;
}

.de-item-list__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.de-item-list__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sh-red) 0%, var(--sh-orange) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Priority badges */
.de-priority {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.de-priority--high   { background: var(--sh-red-bg);    color: var(--sh-red);       border-color: rgba(220,38,38,0.25); }
.de-priority--medium { background: var(--sh-orange-bg); color: var(--sh-orange);    border-color: rgba(234,88,12,0.3); }
.de-priority--low    { background: var(--sh-green-bg);  color: var(--sh-green);     border-color: rgba(22,163,74,0.3); }

/* Welcome banner */
.de-shell__welcome {
    background: linear-gradient(to right, var(--sh-red-border) 0%, var(--sh-orange) 100%);
    border-radius: var(--sh-radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.22);
}

.de-shell__welcome::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(255,255,255,0.07), transparent 55%);
    pointer-events: none;
}

.de-shell__welcome h1 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.de-shell__welcome p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 500px;
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .de-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .de-shell__sidebar {
        width: 248px;
    }

    .de-shell--collapsed .de-shell__sidebar {
        width: 72px;
    }

    .de-shell__main { padding: 20px 16px; }
}

@media (max-width: 640px), (max-width: 900px) and (max-height: 520px) and (orientation: landscape) and (hover: none) {
    .de-shell { flex-direction: column; }
    .de-shell__sidebar { display: none; }
    .de-stats-grid { grid-template-columns: 1fr 1fr; }
    .de-shell__main { padding: 16px 14px 112px; }
    .de-item-list__row { padding: 14px 16px; }
    .de-shell__footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 24px;
        margin-bottom: 132px;
    }
    .de-shell__footer-logo {
        width: 230px;
        max-height: 36px;
        object-position: left center;
    }
    .de-shell__about-panel {
        padding: 24px 20px;
    }
}

/* --------------------------------------------------------------------------
   Navegación mobile del App Shell
-------------------------------------------------------------------------- */
.de-shell__mobile-nav,
.de-shell__mobile-menu {
    display: none;
}

@media (max-width: 640px), (max-width: 900px) and (max-height: 520px) and (orientation: landscape) and (hover: none) {
    body.iecon-module-page {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .de-shell--no-sidebar .de-shell__main,
    .de-shell__main {
        padding: 16px 14px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .de-shell__mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        gap: 2px;
        padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--sh-border);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .de-shell__mobile-nav-item,
    .de-shell__mobile-nav-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 56px;
        padding: 4px 2px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--sh-text-muted);
        font-family: 'PT Sans', sans-serif;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        flex-direction: column;
        gap: 4px;
        box-shadow: none;
        appearance: none;
        -webkit-appearance: none;
    }

    .de-shell__mobile-nav-item:hover,
    .de-shell__mobile-nav-item:focus,
    .de-shell__mobile-nav-more:hover,
    .de-shell__mobile-nav-more:focus {
        color: var(--sh-text);
        text-decoration: none;
        outline: none;
        background: var(--sh-hover);
    }

    .de-shell__mobile-nav-item--active {
        color: var(--sh-text);
    }

    .de-shell__mobile-nav-icon,
    .de-shell__mobile-nav-icon svg {
        display: block;
        width: 21px;
        height: 21px;
    }

    .de-shell__mobile-nav-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .de-shell__mobile-nav-more {
        min-height: 66px;
        margin-top: -10px;
        border-radius: 18px;
        background: var(--sh-red-border);
        color: #fff;
        box-shadow: 0 8px 18px rgba(239, 68, 68, 0.26);
    }

    .de-shell__mobile-nav-more:hover,
    .de-shell__mobile-nav-more:focus {
        background: var(--sh-red);
        color: #fff;
    }

    .de-shell__mobile-nav-more-icon {
        display: grid;
        gap: 4px;
        width: 24px;
    }

    .de-shell__mobile-nav-more-icon span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .de-shell__mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .de-shell__mobile-menu[hidden] {
        display: none;
    }

    body.de-shell-mobile-menu-open {
        overflow: hidden !important;
    }

    body.de-shell-mobile-menu-open .de-shell__mobile-nav {
        display: none;
    }

    .de-shell__mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 74px;
        padding: 16px 18px;
        border-bottom: 1px solid var(--sh-border);
    }

    .de-shell__mobile-menu-logo {
        display: block;
        width: auto;
        max-width: 146px;
        max-height: 42px;
        object-fit: contain;
    }

    .de-shell__mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        background: var(--sh-bg);
        color: var(--sh-text-nav);
        font-family: inherit;
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .de-shell__mobile-menu-close:hover,
    .de-shell__mobile-menu-close:focus {
        background: var(--sh-border);
        color: var(--sh-text);
        outline: none;
    }

    .de-shell__mobile-menu-nav {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        gap: 8px;
        padding: 18px 14px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .de-shell__mobile-menu-nav .de-shell__nav-link {
        min-height: 56px;
        padding: 12px 14px;
        border: 1px solid var(--sh-border);
        border-left: 1px solid var(--sh-border);
        border-radius: 12px;
        background: #fff;
        font-size: 15px;
        font-weight: 700;
    }

    .de-shell__mobile-menu-nav .de-shell__nav-link--active,
    .de-shell__mobile-menu-nav .de-shell__nav-link--expanded {
        border-color: rgba(220, 38, 38, 0.22);
        background: var(--sh-bg);
        color: var(--sh-text);
    }

    .de-shell__mobile-menu-nav .de-shell__nav-link--active .de-shell__nav-icon,
    .de-shell__mobile-menu-nav .de-shell__nav-link--expanded .de-shell__nav-icon {
        color: var(--sh-text);
    }

    .de-shell__mobile-menu-nav .de-shell__nav-subitems {
        gap: 4px;
        margin: 2px 0 8px 18px;
        padding-left: 10px;
        border-left: 2px solid var(--sh-border);
    }

    .de-shell__mobile-menu-nav .de-shell__nav-sublink {
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    .de-shell__mobile-menu-nav .de-shell__nav-separator {
        margin: 10px 8px 8px;
    }
}

/* --------------------------------------------------------------------------
   Frontend sidebar: prueba de texto en negro
-------------------------------------------------------------------------- */
body.iecon-module-page .de-shell__sidebar,
body.iecon-module-page .de-shell__sidebar .de-shell__brand-title,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-section,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-link,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-link:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-link--active,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-link--active:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-sublink,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-sublink:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-sublink--active,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-sublink--active:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-icon,
body.iecon-module-page .de-shell__sidebar .de-shell__nav-chevron,
body.iecon-module-page .de-shell__sidebar .de-shell__collapse-btn,
body.iecon-module-page .de-shell__sidebar .de-shell__nav p,
body.iecon-module-page .de-shell__sidebar .de-shell__user-name,
body.iecon-module-page .de-shell__sidebar .de-shell__backend-link,
body.iecon-module-page .de-shell__sidebar .de-shell__backend-link:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__backend-link:focus,
body.iecon-module-page .de-shell__sidebar .de-shell__user-panel-summary,
body.iecon-module-page .de-shell__sidebar .de-shell__user-panel-link,
body.iecon-module-page .de-shell__sidebar .de-shell__user-panel-link:hover,
body.iecon-module-page .de-shell__sidebar .de-shell__login-btn,
body.iecon-module-page .de-shell__sidebar .de-shell__view-as label,
body.iecon-module-page .de-shell__mobile-nav-item,
body.iecon-module-page .de-shell__mobile-nav-item:hover,
body.iecon-module-page .de-shell__mobile-nav-item:focus,
body.iecon-module-page .de-shell__mobile-nav-item--active,
body.iecon-module-page .de-shell__mobile-menu-close,
body.iecon-module-page .de-shell__mobile-menu-close:hover,
body.iecon-module-page .de-shell__mobile-menu-close:focus,
body.iecon-module-page .de-shell__mobile-menu-nav .de-shell__nav-link,
body.iecon-module-page .de-shell__mobile-menu-nav .de-shell__nav-link--active,
body.iecon-module-page .de-shell__mobile-menu-nav .de-shell__nav-link--expanded,
body.iecon-module-page .de-shell__mobile-menu-nav .de-shell__nav-sublink,
body.iecon-module-page .de-shell__mobile-menu-nav .de-shell__nav-icon {
    color: #000 !important;
}

/* --------------------------------------------------------------------------
   Modificador: barra lateral desactivada
-------------------------------------------------------------------------- */
.de-shell--no-sidebar { display: block; }
.de-shell--no-sidebar .de-shell__sidebar { display: none; }
.de-shell--no-sidebar .de-shell__main { padding: 32px; max-width: 1200px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Toggle checkbox (admin — shell-config.php)
-------------------------------------------------------------------------- */
.de-shell-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.de-shell-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sh-red);
    cursor: pointer;
    flex-shrink: 0;
}

.de-shell-toggle__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-text);
}

.de-shell-config-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    background: #fff;
}

.de-shell-config-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.de-shell-config-table th,
.de-shell-config-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sh-border);
    vertical-align: top;
    text-align: left;
}

.de-shell-config-table thead th {
    background: #f8fafc;
    color: var(--sh-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.de-shell-config-table tbody tr:last-child th,
.de-shell-config-table tbody tr:last-child td {
    border-bottom: 0;
}

.de-shell-config-table th:first-child {
    width: 24%;
}

.de-shell-config-table td:nth-child(2) {
    width: 25%;
}

.de-shell-config-table td:nth-child(3) {
    width: 25%;
}

.de-shell-config-table td:nth-child(4) {
    width: 26%;
}

.de-shell-config-table__label {
    display: block;
    color: var(--sh-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.de-shell-config-table small {
    display: block;
    margin-top: 6px;
    color: var(--sh-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
}

.de-shell-config-table .de-home__page-select,
.de-shell-config-table .de-home__page-create {
    width: 100%;
    max-width: none;
}

.de-shell-audience-checks {
    display: grid;
    gap: 8px;
}

.de-shell-audience-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-text);
    font-size: 13px;
    line-height: 1.25;
}

.de-shell-audience-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--sh-red);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Homogeneización progresiva de módulos legacy
   Lleva los frontends existentes al lenguaje del UI Kit sin reescribir markup.
-------------------------------------------------------------------------- */
body.iecon-module-page .iecon-panel,
body.iecon-module-page .fta-root,
body.iecon-module-page .smt-app,
body.iecon-module-page .space-reservas,
body.iecon-module-page .laptop-reservas,
body.iecon-module-page .gp-app,
body.iecon-module-page .calculador-docente,
body.iecon-module-page .iecon-exp-wrap,
body.iecon-module-page #iecon-condir-root,
body.iecon-module-page #iecon-pua-root,
body.iecon-module-page .conv-shell,
body.iecon-module-page .conv-solicitud-shell {
    font-family: 'PT Sans', sans-serif !important;
    color: var(--sh-text);
}

body.iecon-module-page .iecon-panel,
body.iecon-module-page .fta-root,
body.iecon-module-page .smt-app,
body.iecon-module-page .space-reservas,
body.iecon-module-page .laptop-reservas,
body.iecon-module-page .gp-app,
body.iecon-module-page .calculador-docente,
body.iecon-module-page .iecon-exp-wrap,
body.iecon-module-page #iecon-condir-root,
body.iecon-module-page #iecon-pua-root {
    width: 100%;
    max-width: none;
}

body.iecon-module-page .iecon-panel-card,
body.iecon-module-page .iecon-panel-section,
body.iecon-module-page .fta-card,
body.iecon-module-page .fta-panel,
body.iecon-module-page .smt-card,
body.iecon-module-page .space-card,
body.iecon-module-page .lr-card,
body.iecon-module-page .gp-card,
body.iecon-module-page .calculador-card,
body.iecon-module-page .iecon-exp-card,
body.iecon-module-page .iecon-exp-table-wrap,
body.iecon-module-page .iecon-exp-filters,
body.iecon-module-page .iecon-exp-edit-box,
body.iecon-module-page .condir-card,
body.iecon-module-page .condir-section-box,
body.iecon-module-page .cdr-doc__card,
body.iecon-module-page .cdr-doc__expediente-card,
body.iecon-module-page .cdr-resol-card,
body.iecon-module-page .cdr-acta-card,
body.iecon-module-page #iecon-cv-front-root .cvf-card,
body.iecon-module-page #iecon-cv-root .cv-stat-card,
body.iecon-module-page #iecon-cv-root .cv-cargo-card,
body.iecon-module-page #iecon-cv-root .cv-detail-card,
body.iecon-module-page #iecon-cv-root .cv-form-card,
body.iecon-module-page .cv-plan-card,
body.iecon-module-page .ieh-card,
body.iecon-module-page .iecon-comm-card,
body.iecon-module-page .iecon-comm-form,
body.iecon-module-page .iecon-comm-contacts__filters,
body.iecon-module-page .iecon-mail-wrap .iecon-card,
body.iecon-module-page .iecon-events__card,
body.iecon-module-page .iecon-events__form,
body.iecon-module-page .iecon-events__source-card,
body.iecon-module-page .iecon-events__import-form,
body.iecon-module-page .iecon-data-repo__panel,
body.iecon-module-page .iecon-data-repo__form,
body.iecon-module-page .iecon-data-repo__edit-form,
body.iecon-module-page .iecon-doodle__panel,
body.iecon-module-page .iecon-doodle__new-card,
body.iecon-module-page .iecon-doodle__results-panel,
body.iecon-module-page .iecon-doodle__response-form,
body.iecon-module-page .iecon-doodle__group-card,
body.iecon-module-page .iecon-doodle__modal-card,
body.iecon-module-page .iecon-formation__panel,
body.iecon-module-page .iecon-faq__filters,
body.iecon-module-page .de-home__metric,
body.iecon-module-page .de-home__panel {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius-lg) !important;
    background: var(--sh-panel) !important;
    box-shadow: none !important;
}

body.iecon-module-page .cdr-resol-card,
body.iecon-module-page .cdr-acta-card,
body.iecon-module-page .cdr-doc__card,
body.iecon-module-page .cdr-doc__point {
    background: #fff !important;
}

body.iecon-module-page #iecon-cv-root .cv-stat-card {
    background: #fff !important;
}

body.iecon-module-page .iecon-panel-header,
body.iecon-module-page .fta-header,
body.iecon-module-page .smt-nav,
body.iecon-module-page .gp-tabs,
body.iecon-module-page .calculador-tabs,
body.iecon-module-page .iecon-exp-tabs {
    border-color: var(--sh-border) !important;
    background: transparent !important;
}

body.iecon-module-page table,
body.iecon-module-page .fta-table,
body.iecon-module-page .iecon-panel-table,
body.iecon-module-page .gp-table {
    border-color: var(--sh-border) !important;
    color: var(--sh-text);
    background: var(--sh-panel) !important;
}

body.iecon-module-page table thead th,
body.iecon-module-page .fta-table thead th,
body.iecon-module-page .iecon-panel-table thead th,
body.iecon-module-page .gp-table thead th {
    background: var(--sh-panel) !important;
    color: var(--sh-text-nav) !important;
    border-color: var(--sh-border) !important;
}

body.iecon-module-page .fta-table tbody td,
body.iecon-module-page .gp-table tbody td {
    background: var(--sh-card) !important;
    border-color: var(--sh-border) !important;
}

body.iecon-module-page #iecon-cv-root .cv-workplans-table {
    background: #fff !important;
}

body.iecon-module-page #iecon-cv-root .cv-workplans-table thead th {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

body.iecon-module-page #iecon-cv-root .cv-workplans-table__row--even {
    background: #fff !important;
}

body.iecon-module-page #iecon-cv-root .cv-workplans-table__row--odd {
    background: #f8fafc !important;
}

body.iecon-module-page #iecon-cv-root .cv-workplans-table tbody tr:not(.cv-workplans-table__detail):hover,
body.iecon-module-page #iecon-cv-root .cv-workplans-table tbody tr.is-open {
    background: #eef2f7 !important;
}

body.iecon-module-page input,
body.iecon-module-page select,
body.iecon-module-page textarea {
    border-color: var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    background: #fff !important;
    color: var(--sh-text) !important;
    font-family: 'PT Sans', sans-serif !important;
}

body.iecon-module-page button,
body.iecon-module-page .button,
body.iecon-module-page .fta-btn,
body.iecon-module-page .smt-btn,
body.iecon-module-page .smt-button,
body.iecon-module-page .gp-btn,
body.iecon-module-page .iecon-btn {
    font-family: 'PT Sans', sans-serif !important;
    border-radius: var(--sh-radius) !important;
}

body.iecon-module-page .button-primary,
body.iecon-module-page .fta-btn--primary,
body.iecon-module-page .smt-btn--primary,
body.iecon-module-page .smt-button--primary,
body.iecon-module-page .gp-btn--primary,
body.iecon-module-page .iecon-btn--primary {
    border-color: var(--sh-primary) !important;
    background: var(--sh-primary) !important;
    color: #fff !important;
}

body.iecon-module-page .button-primary:hover,
body.iecon-module-page .button-primary:focus,
body.iecon-module-page .fta-btn--primary:hover,
body.iecon-module-page .fta-btn--primary:focus,
body.iecon-module-page .smt-btn--primary:hover,
body.iecon-module-page .smt-btn--primary:focus,
body.iecon-module-page .smt-button--primary:hover,
body.iecon-module-page .smt-button--primary:focus,
body.iecon-module-page .gp-btn--primary:hover,
body.iecon-module-page .gp-btn--primary:focus,
body.iecon-module-page .iecon-btn--primary:hover,
body.iecon-module-page .iecon-btn--primary:focus {
    border-color: var(--sh-primary-hover) !important;
    background: var(--sh-primary-hover) !important;
    color: #fff !important;
}

/* Eventos: el encabezado principal vive sobre el fondo gris del shell;
   no debe heredar tratamiento de tarjeta del normalizador legacy. */
body.iecon-module-page .iecon-panel-shell .iecon-panel-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Estructura común Intranet UI
   Tabs, encabezados y primeras secciones alineados entre módulos.
-------------------------------------------------------------------------- */
body.iecon-module-page .de-shell__main {
    --de-module-tab-font: 15px;
    --de-module-lead-size: clamp(17px, 1.65vw, 25px);
}

body.iecon-module-page .iecon-panel-tabs,
body.iecon-module-page .fta-nav,
body.iecon-module-page .smt-nav,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs,
body.iecon-module-page #iecon-cv-front-root .cvf-tabs,
body.iecon-module-page .gp-tabs,
body.iecon-module-page .calculador-tabs,
body.iecon-module-page .iecon-exp-tabs {
    display: flex !important;
    align-items: flex-end !important;
    gap: clamp(34px, 4.8vw, 74px) !important;
    min-height: 62px !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sh-border) !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
}

body.iecon-module-page .iecon-panel-tabs a,
body.iecon-module-page .iecon-panel-tabs button,
body.iecon-module-page .fta-nav__item,
body.iecon-module-page .smt-nav__link,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs a,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs button,
body.iecon-module-page #iecon-cv-front-root .cvf-tabs button,
body.iecon-module-page .gp-tabs a,
body.iecon-module-page .gp-tabs button,
body.iecon-module-page .calculador-tabs a,
body.iecon-module-page .calculador-tabs button,
body.iecon-module-page .iecon-exp-tabs .nav-tab {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 0 0 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sh-text-muted) !important;
    font-family: 'PT Sans', sans-serif !important;
    font-size: var(--de-module-tab-font) !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

body.iecon-module-page .iecon-panel-tabs .is-active,
body.iecon-module-page .iecon-panel-tabs [aria-selected="true"],
body.iecon-module-page .fta-nav__item--active,
body.iecon-module-page .smt-nav__link.is-active,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs a.is-active,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs button.is-active,
body.iecon-module-page #iecon-cv-front-root .cvf-tabs button.is-active,
body.iecon-module-page .gp-tabs .is-active,
body.iecon-module-page .gp-tabs .active,
body.iecon-module-page .calculador-tabs .is-active,
body.iecon-module-page .calculador-tabs .active,
body.iecon-module-page .iecon-exp-tabs .nav-tab-active {
    color: var(--sh-text) !important;
}

body.iecon-module-page .iecon-panel-tabs .is-active::after,
body.iecon-module-page .iecon-panel-tabs [aria-selected="true"]::after,
body.iecon-module-page .fta-nav__item--active::after,
body.iecon-module-page .smt-nav__link.is-active::after,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs a.is-active::after,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs button.is-active::after,
body.iecon-module-page #iecon-cv-front-root .cvf-tabs button.is-active::after,
body.iecon-module-page .gp-tabs .is-active::after,
body.iecon-module-page .gp-tabs .active::after,
body.iecon-module-page .calculador-tabs .is-active::after,
body.iecon-module-page .calculador-tabs .active::after,
body.iecon-module-page .iecon-exp-tabs .nav-tab-active::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    height: 4px !important;
    border-radius: 0 !important;
    background: var(--sh-red) !important;
}

body.iecon-module-page .gp-app > .gp-tabs {
    gap: 26px !important;
    min-height: 42px !important;
    margin: 0 0 22px !important;
    overflow: visible !important;
}

body.iecon-module-page .gp-app > .gp-tabs button {
    min-height: 42px !important;
    padding: 0 0 9px !important;
    font-size: 14px !important;
    letter-spacing: .09em !important;
}

body.iecon-module-page .gp-app > .gp-tabs .active::after {
    height: 3px !important;
}

body.iecon-module-page .fta-nav {
    gap: 22px !important;
    min-height: 46px !important;
    margin-bottom: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

body.iecon-module-page .fta-nav__item {
    box-sizing: border-box !important;
    min-height: 46px !important;
    padding: 0 0 9px !important;
    font-size: 13.5px !important;
    letter-spacing: .11em !important;
}

body.iecon-module-page .fta-nav__item--active::after {
    height: 3px !important;
}

body.iecon-module-page .iecon-panel-header,
body.iecon-module-page .fta-header,
body.iecon-module-page .smt-header--hero,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-hero,
body.iecon-module-page #iecon-cv-front-root .cvf-hero,
body.iecon-module-page .conv-page-header,
body.iecon-module-page .iecon-exp-wrap > h1:first-of-type {
    margin: 0 0 30px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.iecon-module-page .iecon-panel-header h1,
body.iecon-module-page .fta-header__title,
body.iecon-module-page .smt-header--hero h1,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-hero h2,
body.iecon-module-page #iecon-cv-front-root .cvf-hero h1,
body.iecon-module-page .conv-page-header__text h1,
body.iecon-module-page .iecon-exp-wrap > h1:first-of-type {
    margin: 0 0 6px !important;
    color: #111827 !important;
    font-family: 'PT Sans', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    line-height: 1.15 !important;
}

@media (min-width: 761px) {
    body.iecon-module-page .de-shell__main h2 {
        font-size: 28px !important;
        line-height: 1.18 !important;
    }
}

body.iecon-module-page .iecon-panel-header p,
body.iecon-module-page .fta-header__desc,
body.iecon-module-page .smt-header--hero p,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-hero p,
body.iecon-module-page #iecon-cv-front-root .cvf-hero p,
body.iecon-module-page .conv-page-header__text p,
body.iecon-module-page .iecon-exp-wrap > p:first-of-type {
    max-width: 960px !important;
    margin: 0 !important;
    color: var(--sh-text-body) !important;
    font-family: 'PT Sans', sans-serif !important;
    font-size: var(--de-module-lead-size) !important;
    font-weight: 400 !important;
    letter-spacing: .015em !important;
    line-height: 1.42 !important;
}

body.iecon-module-page .iecon-panel-card,
body.iecon-module-page .iecon-panel-section,
body.iecon-module-page .fta-card,
body.iecon-module-page .fta-panel,
body.iecon-module-page .smt-card,
body.iecon-module-page .space-card,
body.iecon-module-page .lr-card,
body.iecon-module-page .gp-card,
body.iecon-module-page .calculador-card,
body.iecon-module-page .iecon-exp-card,
body.iecon-module-page .condir-card,
body.iecon-module-page .cdr-doc__card,
body.iecon-module-page .cdr-doc__expediente-card,
body.iecon-module-page .cdr-resol-card,
body.iecon-module-page .cdr-acta-card,
body.iecon-module-page #iecon-cv-front-root .cvf-card,
body.iecon-module-page #iecon-cv-root .cv-stat-card,
body.iecon-module-page #iecon-cv-root .cv-cargo-card,
body.iecon-module-page #iecon-cv-root .cv-detail-card,
body.iecon-module-page #iecon-cv-root .cv-form-card,
body.iecon-module-page .cv-plan-card,
body.iecon-module-page .ieh-card,
body.iecon-module-page .iecon-comm-card,
body.iecon-module-page .iecon-comm-form,
body.iecon-module-page .iecon-events__card,
body.iecon-module-page .iecon-events__form,
body.iecon-module-page .iecon-data-repo__panel,
body.iecon-module-page .iecon-data-repo__form,
body.iecon-module-page .iecon-doodle__panel,
body.iecon-module-page .iecon-doodle__new-card,
body.iecon-module-page .iecon-doodle__results-panel,
body.iecon-module-page .iecon-formation__panel {
    padding: clamp(22px, 2.2vw, 32px) !important;
}

@media (max-width: 760px) {
    body.iecon-module-page .iecon-panel-tabs,
    body.iecon-module-page .fta-nav,
    body.iecon-module-page .smt-nav,
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs,
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs,
    body.iecon-module-page #iecon-cv-front-root .cvf-tabs,
    body.iecon-module-page .gp-tabs,
    body.iecon-module-page .calculador-tabs,
    body.iecon-module-page .iecon-exp-tabs {
        gap: 24px !important;
        min-height: 54px !important;
        margin-bottom: 26px !important;
    }

    body.iecon-module-page .iecon-panel-tabs a,
    body.iecon-module-page .iecon-panel-tabs button,
    body.iecon-module-page .fta-nav__item,
    body.iecon-module-page .smt-nav__link,
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-section-tabs a,
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-tabs button,
    body.iecon-module-page #iecon-cv-front-root .cvf-tabs button,
    body.iecon-module-page .gp-tabs a,
    body.iecon-module-page .gp-tabs button,
    body.iecon-module-page .calculador-tabs a,
    body.iecon-module-page .calculador-tabs button,
    body.iecon-module-page .iecon-exp-tabs .nav-tab {
        min-height: 54px !important;
        padding-bottom: 18px !important;
        font-size: 13px !important;
        letter-spacing: .12em !important;
    }

    body.iecon-module-page .fta-nav {
        gap: 18px !important;
        min-height: 46px !important;
        margin-bottom: 14px !important;
    }

    body.iecon-module-page .fta-nav__item {
        min-height: 46px !important;
        padding-bottom: 9px !important;
    }
}

/* Proyectos: override definitivo al final del shell para ganar la cascada. */
.gp-app > .gp-tabs,
body.iecon-module-page .gp-app > .gp-tabs,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    min-height: 40px !important;
    margin: 0 0 18px !important;
    padding: 0 20px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sh-border, #e2e8f0) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gp-app > .gp-tabs .gp-tab,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sh-text-muted, #64748b) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.gp-app > .gp-tabs .gp-tab.active,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab.active,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab.active {
    color: var(--sh-text, #0f172a) !important;
    border-bottom-color: transparent !important;
}

.gp-app > .gp-tabs .gp-tab.active::after,
body.iecon-module-page .gp-app > .gp-tabs .gp-tab.active::after,
body.iecon-module-page .de-shell__main .gp-app > .gp-tabs .gp-tab.active::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    height: 3px !important;
    border-radius: 0 !important;
    background: var(--sh-red, #dc2626) !important;
}

/* --------------------------------------------------------------------------
   Sidebar — botón de ingreso para usuarios no autenticados
-------------------------------------------------------------------------- */
.de-shell__login-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--sh-radius, 10px);
    background: var(--sh-primary, #10406D);
    color: #ffffff;
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(16,64,109,0.2);
    box-sizing: border-box;
}

.de-shell__login-btn:hover {
    background: var(--sh-primary-hover, #0B3155);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(16,64,109,0.28);
    text-decoration: none;
}

.de-shell__login-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.de-shell--collapsed .de-shell__login-btn span {
    display: none;
}

.de-shell--collapsed .de-shell__login-btn {
    justify-content: center;
    padding: 10px;
}

/* Reservas de espacios: las tarjetas disponibles no son tabs de navegación global. */
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block {
    margin-top: 34px !important;
    overflow: visible !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 24px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs .iecon-tab {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 260px !important;
    margin: 0 !important;
    padding: clamp(22px, 2.2vw, 30px) !important;
    overflow: visible !important;
    border: 1px solid var(--sh-border, #e2e8f0) !important;
    border-radius: var(--sh-radius-lg, 12px) !important;
    background: var(--sh-card, #fff) !important;
    box-shadow: var(--sh-shadow, 0 1px 3px rgba(15, 23, 42, .07)) !important;
    color: var(--sh-text-muted, #475569) !important;
    font-family: 'PT Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs .iecon-tab.is-active {
    border-color: var(--sh-red, #dc2626) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab::after,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs button.iecon-tab::after,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs button.iecon-tab.is-active::after {
    content: none !important;
    display: none !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab__status {
    align-self: flex-start !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    padding: 6px 12px !important;
    border-radius: var(--sh-radius, 10px) !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    white-space: normal !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab.is-occupied .iecon-tab__status {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab strong,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab span,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab small,
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab em {
    display: block !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab strong {
    color: var(--sh-text, #111827) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab span:not(.iecon-tab__status),
body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab small {
    color: var(--sh-text-muted, #475569) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-tab em {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin-top: auto !important;
    padding: 0 18px !important;
    border-radius: var(--sh-radius, 10px) !important;
    background: var(--sh-primary, #10406D) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

@media (max-width: 1180px) {
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.iecon-module-page #iecon-space-reservations-root .iecon-space-selector-block .iecon-space-tabs .iecon-tab {
        min-height: 0 !important;
        padding: 22px !important;
    }
}

/* Cargo vencimientos keeps its own card hierarchy: white summaries, gray open panel. */
body.iecon-module-page #iecon-cv-root .cv-cargo-card {
    padding: 0 !important;
    border-color: #dfe5ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .07) !important;
}

body.iecon-module-page #iecon-cv-root .cv-cargo-card.selected {
    border-color: #cbd5e1 !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
}

body.iecon-module-page #iecon-cv-root .cv-cargo-card__header {
    padding: 16px 18px 14px !important;
    background: #fff !important;
}

body.iecon-module-page #iecon-cv-root .cv-detail {
    background: #f1f5f9 !important;
}

body.iecon-module-page #iecon-cv-root .cv-detail-card {
    background: #fff !important;
}

body.iecon-module-page #user_switching_switch_on {
    left: auto !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 2147483647 !important;
}

body.iecon-module-page #user_switching_switch_on a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--sh-udelar-blue, #234b6e) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18) !important;
}

body.iecon-module-page .de-shell__main .iecon-gad-summary__kpis > article {
    padding: 18px !important;
}

body:has(.de-shell) .de-shell__main .iecon-gad-summary__kpis > article,
.de-shell__main .iecon-gad-summary__kpis > article {
    padding: 18px !important;
}

body.iecon-module-page .de-shell__main article.iecon-gad-summary__panel {
    padding: 24px 28px 28px !important;
}

body:has(.de-shell) .de-shell__main article.iecon-gad-summary__panel,
.de-shell__main article.iecon-gad-summary__panel {
    padding: 24px 28px 28px !important;
}

body.iecon-module-page .de-shell__main article.iecon-gad-summary__panel > .iecon-gad-summary__panel-head {
    padding-bottom: 14px !important;
}

body:has(.de-shell) .de-shell__main article.iecon-gad-summary__panel > .iecon-gad-summary__panel-head,
.de-shell__main article.iecon-gad-summary__panel > .iecon-gad-summary__panel-head {
    padding-bottom: 14px !important;
}

@media (max-width: 760px) {
    body.iecon-module-page #user_switching_switch_on {
        right: 12px !important;
        bottom: 12px !important;
        max-width: calc(100vw - 24px) !important;
    }

    body.iecon-module-page .de-shell__main article.iecon-gad-summary__panel {
        padding: 18px 16px !important;
    }

    body:has(.de-shell) .de-shell__main article.iecon-gad-summary__panel,
    .de-shell__main article.iecon-gad-summary__panel {
        padding: 18px 16px !important;
    }
}
