/* =========================================================
   NEXENG APP TEMPLATE v3
   Archivo: /apps/_template/assets/template-app.css
   ========================================================= */

body.nx-template-v3-shell {
    --tpl-input: #fff8d8;
    --tpl-calc: #eaf7ff;
    --tpl-calc-2: #f4f8fb;
}

body.nx-template-v3-shell .nx-app-shell {
    width: min(100% - 40px, 1480px);
}

body.nx-template-v3-shell .nx-template-topbar {
    grid-template-columns: auto 1fr;
}

body.nx-template-v3-shell .nx-brand-logo {
    display: block;
    width: min(300px, 42vw);
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

body.nx-template-v3-shell .nx-brand-fallback {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--nx-text);
    font-weight: 900;
    letter-spacing: .12em;
}

body.nx-template-v3-shell .nx-brand-fallback strong {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
}

/* ACTION DOCK ------------------------------------------------ */
body.nx-template-v3-shell .nx-action-dock {
    position: sticky;
    top: 94px;
    z-index: 45;
    margin: 12px 0 18px;
    border: 1px solid rgba(14, 116, 144, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 40px rgba(15, 35, 60, .10);
    backdrop-filter: blur(18px);
}

body.nx-template-v3-shell .nx-action-dock-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
}

body.nx-template-v3-shell .nx-action-label {
    color: #0369a1;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.nx-template-v3-shell .nx-action-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
}

body.nx-template-v3-shell .nx-action-list .nx-btn {
    min-height: 38px;
    padding-inline: 14px;
    font-size: .84rem;
}

body.nx-template-v3-shell .nx-selection-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: #64748b;
    background: rgba(226, 232, 240, .72);
    font-weight: 850;
    white-space: nowrap;
}

/* HERO / SUMMARY -------------------------------------------- */
body.nx-template-v3-shell .nx-template-hero .nx-hero-summary strong {
    display: block;
    color: var(--nx-accent);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.06em;
}

body.nx-template-v3-shell .nx-summary-grid {
    margin: 0 0 18px;
}

/* SHEET ------------------------------------------------------ */
body.nx-template-v3-shell .nx-sheet-panel,
body.nx-template-v3-shell .nx-info-panel,
body.nx-template-v3-shell .nx-guidance-panel,
body.nx-template-v3-shell .nx-disclaimer {
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-md);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--nx-shadow-soft);
    backdrop-filter: blur(18px);
}

body.nx-template-v3-shell .nx-sheet-panel {
    overflow: hidden;
}

body.nx-template-v3-shell .nx-sheet-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
}

body.nx-template-v3-shell .nx-sheet-title h2,
body.nx-template-v3-shell .nx-info-panel h2,
body.nx-template-v3-shell .nx-guidance-panel h2 {
    margin: 0;
    color: var(--nx-text);
}

body.nx-template-v3-shell .nx-sheet-title p,
body.nx-template-v3-shell .nx-info-panel p {
    margin: 4px 0 0;
    color: var(--nx-muted);
}

body.nx-template-v3-shell .nx-sheet-scroll {
    overflow: auto;
    max-width: 100%;
    border-top: 1px solid rgba(14, 116, 144, .12);
}

body.nx-template-v3-shell .nx-sheet {
    width: 100%;
    min-width: 1160px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .88rem;
}

body.nx-template-v3-shell .nx-sheet th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 10px;
    color: #075985;
    background: #e8f6ff;
    border-right: 1px solid #c8e6f7;
    border-bottom: 1px solid #b9dff4;
    text-align: center;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.nx-template-v3-shell .nx-sheet td {
    padding: 0;
    border-right: 1px solid #d7e8f2;
    border-bottom: 1px solid #d7e8f2;
    background: #fff;
    vertical-align: middle;
}

body.nx-template-v3-shell .nx-sheet tfoot td {
    padding: 12px 10px;
    background: #f0f8fc;
    font-weight: 950;
    color: #0f2137;
}

body.nx-template-v3-shell .nx-row-index {
    width: 46px;
    text-align: center;
    color: #64748b;
    background: #f8fafc !important;
    font-weight: 850;
}

body.nx-template-v3-shell .nx-cell-input,
body.nx-template-v3-shell .nx-cell-select,
body.nx-template-v3-shell .nx-cell-textarea {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    color: #0f172a;
    background: var(--tpl-input);
    font-weight: 780;
}

body.nx-template-v3-shell .nx-cell-select {
    appearance: auto;
}

body.nx-template-v3-shell .nx-calc-cell {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px;
    color: #075985;
    background: var(--tpl-calc);
    font-weight: 900;
}

body.nx-template-v3-shell .nx-status-pill,
body.nx-template-v3-shell .nx-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    border: 1px solid rgba(14, 116, 144, .16);
    background: rgba(240, 249, 255, .85);
    color: #0369a1;
    font-size: .76rem;
    font-weight: 900;
    white-space: nowrap;
}

body.nx-template-v3-shell .nx-row-action {
    cursor: pointer;
    margin: 6px;
}

body.nx-template-v3-shell tr.is-selected td {
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, .22);
}

body.nx-template-v3-shell .nx-empty-state {
    padding: 26px;
    color: var(--nx-muted);
    text-align: center;
}

body.nx-template-v3-shell .nx-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0;
}

body.nx-template-v3-shell .nx-info-panel {
    padding: 20px;
}

body.nx-template-v3-shell .nx-info-panel strong {
    display: block;
    margin: 8px 0;
    color: var(--nx-accent);
    font-size: 1.3rem;
}

body.nx-template-v3-shell .nx-note-label {
    display: block;
    margin: 14px 0 6px;
    color: var(--nx-soft);
    font-weight: 850;
    font-size: .86rem;
}

body.nx-template-v3-shell .nx-note-box {
    width: 100%;
    min-height: 86px;
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--nx-text);
    background: rgba(255, 255, 255, .82);
    resize: vertical;
}

body.nx-template-v3-shell .nx-guidance-panel {
    padding: 22px;
    margin-bottom: 18px;
}

body.nx-template-v3-shell .nx-guidance-list {
    margin: 14px 0 0;
    color: var(--nx-soft);
}

body.nx-template-v3-shell .nx-guidance-list li {
    margin: 8px 0;
}

body.nx-template-v3-shell .nx-disclaimer {
    padding: 18px 20px;
    color: var(--nx-soft);
}

body.nx-template-v3-shell .nx-disclaimer strong {
    color: var(--nx-text);
}

body.nx-template-v3-shell .nx-disclaimer p {
    margin: 6px 0 0;
}

/* TOAST / PWA ----------------------------------------------- */
.nx-toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: grid;
    gap: 10px;
}

.nx-toast {
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
    font-weight: 800;
}

.nx-pwa-help {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.38);
    padding: 20px;
}

.nx-pwa-help-card {
    position: relative;
    max-width: 460px;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 90px rgba(0,0,0,.28);
}

.nx-pwa-help-card button {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
}

/* DARK MODE -------------------------------------------------- */
body.nx-template-v3-shell.nx-theme-dark {
    --nx-bg: #061423;
    --nx-bg-2: #081c30;
    --nx-card: rgba(8, 28, 48, .95);
    --nx-card-2: rgba(10, 35, 58, .96);
    --nx-border: rgba(125, 211, 252, .16);
    --nx-border-strong: rgba(94, 203, 255, .34);
    --nx-text: #eaf6ff;
    --nx-muted: #9fb7cc;
    --nx-soft: #c7dceb;
    --tpl-input: rgba(103, 78, 11, .72);
    --tpl-calc: rgba(8, 62, 92, .82);
    color: var(--nx-text);
    background:
        radial-gradient(circle at 14% 8%, rgba(14, 165, 233, .16), transparent 36%),
        radial-gradient(circle at 88% 22%, rgba(249, 115, 22, .10), transparent 30%),
        linear-gradient(180deg, #061423 0%, #081c30 100%);
}

body.nx-template-v3-shell.nx-theme-dark .nx-topbar,
body.nx-template-v3-shell.nx-theme-dark .nx-action-dock,
body.nx-template-v3-shell.nx-theme-dark .nx-sheet-panel,
body.nx-template-v3-shell.nx-theme-dark .nx-info-panel,
body.nx-template-v3-shell.nx-theme-dark .nx-guidance-panel,
body.nx-template-v3-shell.nx-theme-dark .nx-disclaimer,
body.nx-template-v3-shell.nx-theme-dark .nx-summary-card,
body.nx-template-v3-shell.nx-theme-dark .nx-hero-content,
body.nx-template-v3-shell.nx-theme-dark .nx-hero-summary {
    border-color: rgba(125, 211, 252, .16) !important;
    background: rgba(8, 28, 48, .92) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.26) !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-action-dock {
    background:
        radial-gradient(circle at 12% 0%, rgba(0,174,239,.09), transparent 36%),
        linear-gradient(180deg, rgba(8,28,48,.98), rgba(5,20,36,.98)) !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-action-label,
body.nx-template-v3-shell.nx-theme-dark .nx-section-label,
body.nx-template-v3-shell.nx-theme-dark .nx-card-label {
    color: #5ecbff !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-btn-ghost,
body.nx-template-v3-shell.nx-theme-dark .nx-action-list .nx-btn-ghost {
    border-color: rgba(125,211,252,.22) !important;
    background: rgba(13,34,55,.96) !important;
    color: #eaf6ff !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-btn-primary {
    background: linear-gradient(135deg, #0877e8, #00a6df) !important;
    color: #fff !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-sheet th {
    color: #bdecff;
    background: #0b3150;
    border-color: rgba(125,211,252,.20);
}

body.nx-template-v3-shell.nx-theme-dark .nx-sheet td {
    border-color: rgba(125,211,252,.14);
    background: rgba(9, 30, 50, .96);
}

body.nx-template-v3-shell.nx-theme-dark .nx-row-index,
body.nx-template-v3-shell.nx-theme-dark .nx-sheet tfoot td {
    color: #eaf6ff;
    background: rgba(11, 37, 62, .98) !important;
}

body.nx-template-v3-shell.nx-theme-dark .nx-cell-input,
body.nx-template-v3-shell.nx-theme-dark .nx-cell-select,
body.nx-template-v3-shell.nx-theme-dark .nx-cell-textarea {
    color: #fff7d6;
    background: var(--tpl-input);
}

body.nx-template-v3-shell.nx-theme-dark .nx-calc-cell {
    color: #bdecff;
    background: var(--tpl-calc);
}

body.nx-template-v3-shell.nx-theme-dark .nx-note-box,
body.nx-template-v3-shell.nx-theme-dark .nx-pwa-help-card {
    color: #eaf6ff;
    background: #081c30;
    border-color: rgba(125,211,252,.18);
}

body.nx-template-v3-shell.nx-theme-dark code {
    color: #7dd3fc;
}

/* RESPONSIVE ------------------------------------------------- */
@media (max-width: 980px) {
    body.nx-template-v3-shell .nx-app-shell {
        width: min(100% - 24px, 1480px);
    }

    body.nx-template-v3-shell .nx-topbar {
        position: relative;
        top: 0;
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    body.nx-template-v3-shell .nx-actions {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    body.nx-template-v3-shell .nx-action-dock {
        top: 8px;
        border-radius: 22px;
    }

    body.nx-template-v3-shell .nx-action-dock-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.nx-template-v3-shell .nx-action-list {
        justify-content: flex-start;
    }

    body.nx-template-v3-shell .nx-hero {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    body.nx-template-v3-shell .nx-summary-grid,
    body.nx-template-v3-shell .nx-detail-grid {
        grid-template-columns: 1fr;
    }

    body.nx-template-v3-shell .nx-brand-logo {
        width: min(260px, 72vw);
    }
}

@media (max-width: 560px) {
    body.nx-template-v3-shell .nx-app-shell {
        width: min(100% - 16px, 1480px);
    }

    body.nx-template-v3-shell .nx-btn {
        min-height: 40px;
        padding-inline: 12px;
        font-size: .82rem;
    }

    body.nx-template-v3-shell .nx-hero-content,
    body.nx-template-v3-shell .nx-hero-summary,
    body.nx-template-v3-shell .nx-info-panel,
    body.nx-template-v3-shell .nx-guidance-panel,
    body.nx-template-v3-shell .nx-disclaimer {
        border-radius: 22px;
        padding: 18px;
    }

    body.nx-template-v3-shell .nx-sheet-title {
        padding: 16px;
    }
}

/* =========================================================
   NEXENG EQUIVALENT DIAMETER v3 - APP SPECIFIC
   ========================================================= */

body.nx-equivalent-diameter-shell .nx-col-index { width: 52px; }
body.nx-equivalent-diameter-shell .nx-col-tag { width: 180px; }
body.nx-equivalent-diameter-shell .nx-col-dim { width: 116px; }
body.nx-equivalent-diameter-shell .nx-col-unit { width: 84px; }
body.nx-equivalent-diameter-shell .nx-col-airflow { width: 126px; }
body.nx-equivalent-diameter-shell .nx-col-result { width: 126px; }
body.nx-equivalent-diameter-shell .nx-col-status { width: 126px; }
body.nx-equivalent-diameter-shell .nx-col-actions { width: 118px; }

body.nx-equivalent-diameter-shell .nx-equivalent-sheet {
    min-width: 1320px;
}

body.nx-equivalent-diameter-shell .nx-calc-cell.centered,
body.nx-equivalent-diameter-shell .nx-sheet td.centered {
    justify-content: center;
    text-align: center;
}

body.nx-equivalent-diameter-shell .nx-status-pill.is-ok {
    color: #047857;
    background: rgba(209, 250, 229, .92);
    border-color: rgba(16, 185, 129, .32);
}

body.nx-equivalent-diameter-shell .nx-status-pill.is-warning {
    color: #92400e;
    background: rgba(254, 243, 199, .96);
    border-color: rgba(245, 158, 11, .34);
}

body.nx-equivalent-diameter-shell .nx-status-pill.is-high {
    color: #b91c1c;
    background: rgba(254, 226, 226, .94);
    border-color: rgba(248, 113, 113, .34);
}

body.nx-equivalent-diameter-shell .nx-row-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    background: #f8fafc;
}

body.nx-equivalent-diameter-shell .nx-row-action {
    min-width: 34px;
    min-height: 30px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid rgba(14, 116, 144, .18);
    border-radius: 999px;
    color: #075985;
    background: rgba(240, 249, 255, .92);
    font-weight: 950;
    cursor: pointer;
}

body.nx-equivalent-diameter-shell .nx-row-action:hover {
    border-color: rgba(2, 132, 199, .42);
    background: #fff;
}

body.nx-equivalent-diameter-shell .nx-row-action.is-danger {
    color: #b91c1c;
    border-color: rgba(248, 113, 113, .32);
    background: rgba(254, 242, 242, .92);
}

body.nx-equivalent-diameter-shell .nx-cell-selected {
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, .42) !important;
    background: rgba(186, 230, 253, .40) !important;
}

body.nx-equivalent-diameter-shell .nx-formula-text {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    color: #075985;
    background: rgba(224, 242, 254, .86);
    font-size: .82em;
}

body.nx-equivalent-diameter-shell .nx-sheet th small {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: .72em;
    text-transform: none;
    letter-spacing: 0;
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-row-actions-wrap {
    background: rgba(11, 37, 62, .98);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-row-action {
    color: #bdecff;
    border-color: rgba(125,211,252,.20);
    background: rgba(13,34,55,.96);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-row-action.is-danger {
    color: #fecaca;
    border-color: rgba(248,113,113,.28);
    background: rgba(69,10,10,.58);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-status-pill.is-ok {
    color: #bbf7d0;
    background: rgba(6, 78, 59, .62);
    border-color: rgba(52, 211, 153, .28);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-status-pill.is-warning {
    color: #fde68a;
    background: rgba(120, 53, 15, .62);
    border-color: rgba(251, 191, 36, .28);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-status-pill.is-high {
    color: #fecaca;
    background: rgba(127, 29, 29, .62);
    border-color: rgba(248, 113, 113, .28);
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-formula-text {
    color: #bdecff;
    background: rgba(8, 62, 92, .82);
}

@media (max-width: 680px) {
    body.nx-equivalent-diameter-shell .nx-brand-logo {
        width: min(250px, 76vw);
    }

    body.nx-equivalent-diameter-shell .nx-template-hero .nx-hero-summary strong {
        font-size: 2.5rem;
    }
}


/* =========================================================
   NEXENG Equivalent Diameter v3.0.6 - Stable scroll/header fix
   Limpio: sin encabezados duplicados ni scroll vertical interno.
   ========================================================= */

body.nx-equivalent-diameter-shell {
    --nx-eq-fixed-head-top: 168px;
}

body.nx-equivalent-diameter-shell .nx-app-shell {
    width: min(100% - 48px, 1560px) !important;
    padding-top: 18px !important;
}

/* Logo en modo oscuro: blanco, sin placa blanca. */
body.nx-equivalent-diameter-shell .nx-template-brand,
body.nx-equivalent-diameter-shell .nx-brand {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.nx-equivalent-diameter-shell .nx-brand-logo {
    width: min(310px, 42vw) !important;
    max-height: 64px !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-brand-logo {
    filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0,174,239,.18)) !important;
    opacity: .98 !important;
}

/* Barras superiores: una encima de la otra, sin esconderse. */
body.nx-equivalent-diameter-shell .nx-topbar,
body.nx-equivalent-diameter-shell .nx-template-topbar {
    position: sticky !important;
    top: 14px !important;
    z-index: 1200 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    overflow: visible !important;
}

body.nx-equivalent-diameter-shell .nx-action-dock {
    position: sticky !important;
    top: var(--nx-eq-action-top, 112px) !important;
    z-index: 1180 !important;
    margin-top: 10px !important;
    margin-bottom: 18px !important;
    overflow: visible !important;
}

body.nx-equivalent-diameter-shell .nx-action-dock-inner {
    min-height: 54px !important;
    padding: 8px 12px !important;
}

body.nx-equivalent-diameter-shell .nx-action-list {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 2px 4px !important;
}

body.nx-equivalent-diameter-shell .nx-action-list .nx-btn {
    min-height: 36px !important;
    flex: 0 0 auto !important;
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-action-dock {
    background:
        radial-gradient(circle at 12% 0%, rgba(0,174,239,.09), transparent 36%),
        linear-gradient(180deg, rgba(8,28,48,.98), rgba(5,20,36,.98)) !important;
}

/* La tabla debe desplazarse con la página; solo mantiene scroll horizontal. */
body.nx-equivalent-diameter-shell .nx-sheet-panel {
    overflow: visible !important;
}

body.nx-equivalent-diameter-shell .nx-sheet-scroll {
    position: relative !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch;
}

/* El encabezado real NO es sticky; lo reemplaza una barra fija clonada solo al bajar. */
body.nx-equivalent-diameter-shell .nx-sheet thead,
body.nx-equivalent-diameter-shell .nx-sheet thead tr {
    position: static !important;
    transform: none !important;
}

body.nx-equivalent-diameter-shell .nx-sheet thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    transform: none !important;
}

body.nx-equivalent-diameter-shell.nx-eq-v36-head-active .nx-sheet thead {
    visibility: hidden !important;
}

/* Barra fija clonada de encabezados, una sola. */
.nx-eq-v36-fixed-head {
    position: fixed !important;
    top: var(--nx-eq-fixed-head-top, 168px) !important;
    left: 0;
    width: 0;
    height: 64px;
    z-index: 1160 !important;
    display: none;
    overflow: hidden !important;
    pointer-events: none !important;
    border-radius: 0;
    box-shadow: 0 12px 26px rgba(15, 35, 60, .16);
}

.nx-eq-v36-fixed-head.is-visible {
    display: block;
}

.nx-eq-v36-fixed-head-inner {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    border-top: 1px solid #c8e6f7;
    border-bottom: 1px solid #b9dff4;
    background: #e8f6ff;
}

.nx-eq-v36-fixed-head-table {
    height: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

.nx-eq-v36-fixed-head-table th {
    height: 64px !important;
    padding: 10px 10px !important;
    color: #075985 !important;
    background: #e8f6ff !important;
    border-right: 1px solid #c8e6f7 !important;
    border-bottom: 0 !important;
    text-align: center !important;
    font-size: .76rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
}

.nx-eq-v36-fixed-head-table th small {
    display: block;
    margin-top: 1px;
    color: #64748b !important;
    font-size: .72em !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.nx-theme-dark .nx-eq-v36-fixed-head {
    box-shadow: 0 14px 32px rgba(0,0,0,.34);
}

body.nx-theme-dark .nx-eq-v36-fixed-head-inner,
body.nx-theme-dark .nx-eq-v36-fixed-head-table th {
    color: #bdecff !important;
    background: #0b3150 !important;
    border-color: rgba(125,211,252,.20) !important;
}

body.nx-theme-dark .nx-eq-v36-fixed-head-table th small {
    color: #9fb7cc !important;
}

/* Eliminar cualquier barra clonada vieja si quedó por caché o por versiones anteriores. */
body.nx-equivalent-diameter-shell .nx-eq-v32-colbar,
body.nx-equivalent-diameter-shell .nx-eq-v32-colbar.is-visible,
body.nx-equivalent-diameter-shell .nx-ds-v8-colbar,
body.nx-equivalent-diameter-shell .nx-ds-v11-colbar,
body.nx-equivalent-diameter-shell .nx-ds-v13-colbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Inputs claros en modo oscuro */
body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-input,
body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-select,
body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-textarea {
    color: #102033 !important;
    background: linear-gradient(180deg, #fff8d8 0%, #fff0ae 100%) !important;
    -webkit-text-fill-color: #102033 !important;
    caret-color: #0284c7 !important;
}

body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-input:focus,
body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-select:focus,
body.nx-equivalent-diameter-shell.nx-theme-dark .nx-cell-textarea:focus {
    background: #fffbe8 !important;
    box-shadow: inset 0 0 0 2px rgba(56,189,248,.55) !important;
}

@media (max-width: 980px) {
    body.nx-equivalent-diameter-shell .nx-app-shell {
        width: min(100% - 22px, 1560px) !important;
    }
    body.nx-equivalent-diameter-shell .nx-topbar,
    body.nx-equivalent-diameter-shell .nx-template-topbar {
        position: relative !important;
        top: 0 !important;
        grid-template-columns: 1fr !important;
        border-radius: 24px !important;
    }
    body.nx-equivalent-diameter-shell .nx-brand-logo {
        width: min(260px, 74vw) !important;
    }
    body.nx-equivalent-diameter-shell .nx-action-dock {
        top: 8px !important;
    }
    body.nx-equivalent-diameter-shell .nx-action-dock-inner {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media (max-width: 560px) {
    body.nx-equivalent-diameter-shell .nx-app-shell {
        width: min(100% - 14px, 1560px) !important;
    }
    body.nx-equivalent-diameter-shell .nx-brand-logo {
        width: min(220px, 74vw) !important;
    }
}
