/* =========================================================
   NEXENG DUCT PRESSURE V16 - ROW/COLUMN TITLE SELECTION FIX
   Corrige V15:
   - Click en título de columna selecciona la columna.
   - Click en número/título de fila selecciona la fila.
   - Funciona también sobre la barra clonada de columnas V13.
   ========================================================= */

.nx-dp-select-btn,
.nx-dp-copy-btn,
.nx-dp-clear-select-btn {
    position: relative !important;
}

.nx-dp-select-btn.is-active {
    border-color: rgba(2, 132, 199, 0.45) !important;
    background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22) !important;
}

body.nx-dp-select-mode .nx-pressure-sheet {
    cursor: crosshair !important;
    user-select: none !important;
}

body.nx-dp-select-mode .nx-pressure-sheet thead th,
body.nx-dp-select-mode .nx-dp-v13-colbar-table th,
body.nx-dp-select-mode .nx-dp-v12-colbar-table th {
    cursor: col-resize !important;
}

body.nx-dp-select-mode .nx-pressure-sheet tbody td:first-child {
    cursor: row-resize !important;
}

body.nx-dp-select-mode .nx-pressure-sheet input,
body.nx-dp-select-mode .nx-pressure-sheet select,
body.nx-dp-select-mode .nx-pressure-sheet textarea,
body.nx-dp-select-mode .nx-pressure-sheet button {
    pointer-events: none !important;
}

.nx-pressure-sheet .nx-dp-cell-selected {
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(14, 165, 233, 0.18)) !important;
    box-shadow:
        inset 0 0 0 2px rgba(2, 132, 199, 0.68),
        inset 0 0 0 999px rgba(14, 165, 233, 0.08) !important;
    color: #082033 !important;
}

.nx-pressure-sheet .nx-dp-cell-anchor {
    box-shadow:
        inset 0 0 0 3px rgba(2, 132, 199, 0.95),
        inset 0 0 0 999px rgba(14, 165, 233, 0.10) !important;
}

.nx-dp-selection-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(2, 132, 199, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(240, 249, 255, 0.86) !important;
    color: #2f5877 !important;
    font-size: 0.76rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

body:not(.nx-dp-select-mode) .nx-dp-selection-status {
    display: none !important;
}

body.nx-dp-select-mode .nx-dp-action-dock-v13,
body.nx-dp-select-mode .nx-dp-action-dock-v11,
body.nx-dp-select-mode .nx-dp-action-dock-v6 {
    box-shadow:
        0 14px 32px rgba(15, 35, 60, 0.10),
        inset 0 -2px 0 rgba(2, 132, 199, 0.28) !important;
}

body.nx-dp-select-mode .nx-sheet-scroll {
    outline: 2px dashed rgba(2, 132, 199, 0.28) !important;
    outline-offset: -4px !important;
}

.nx-dp-selection-help {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 1100 !important;
    max-width: min(410px, calc(100vw - 44px)) !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(2, 132, 199, 0.22) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #385472 !important;
    box-shadow: 0 18px 45px rgba(15, 35, 60, 0.14) !important;
    backdrop-filter: blur(18px) !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    display: none !important;
}

body.nx-dp-select-mode .nx-dp-selection-help {
    display: block !important;
}

.nx-dp-selection-help strong {
    display: block !important;
    color: #0f2137 !important;
    margin-bottom: 4px !important;
}

@media (max-width: 760px) {
    .nx-dp-selection-status {
        display: none !important;
    }

    .nx-dp-selection-help {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        max-width: none !important;
        font-size: 0.78rem !important;
    }
}
