/* ============================================================
   LPRL IMPLANTACIÓN - DESCRIPCIÓN CENTROS DE TRABAJO
   Modal y formulario: prefijo .lprl_ct_
   ============================================================ */

.lprl_ct_swal_popup {
    width: 98vw !important;
    max-width: 98vw !important;
    height: 98vh !important;
    max-height: 98vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(13, 31, 61, .24) !important;
    font-size: 0.8em;
}

.lprl_ct_swal_popup .swal2-title {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 15px 22px 11px 22px !important;
    color: var(--nav_a_hover_COLOR, #0076A5) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    border-bottom: 1px solid rgba(0, 118, 165, .10);
    background: #ffffff;
}

.lprl_ct_swal_popup .swal2-html-container,
.lprl_ct_swal_html {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 8px 10px 10px 10px !important;
    text-align: left !important;
    background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 118, 165, .45) rgba(0, 118, 165, .08);
}

.lprl_ct_swal_popup .swal2-html-container::-webkit-scrollbar,
.lprl_ct_swal_html::-webkit-scrollbar {
    width: 9px;
}

.lprl_ct_swal_popup .swal2-html-container::-webkit-scrollbar-track,
.lprl_ct_swal_html::-webkit-scrollbar-track {
    background: rgba(0, 118, 165, .08);
    border-radius: 999px;
}

.lprl_ct_swal_popup .swal2-html-container::-webkit-scrollbar-thumb,
.lprl_ct_swal_html::-webkit-scrollbar-thumb {
    background: rgba(0, 118, 165, .42);
    border-radius: 999px;
}

.lprl_ct_swal_popup .swal2-actions {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;
    z-index: 40 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 118, 165, .10);
    margin: 0 !important;
    padding: 12px 18px !important;
    box-shadow: 0 -10px 24px rgba(13, 31, 61, .06);
}

.lprl_ct_swal_popup .swal2-confirm,
.lprl_ct_swal_popup .swal2-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 800 !important;
    font-size: .92rem !important;
    border: 0 !important;
    min-width: 145px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.lprl_ct_swal_popup .swal2-confirm {
    background: var(--nav_a_hover_COLOR, #0076A5) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .22) !important;
}

.lprl_ct_swal_popup .swal2-cancel {
    background: #eef2f5 !important;
    color: #374151 !important;
}

.lprl_ct_swal_popup .swal2-confirm:hover {
    background: #00698f !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 118, 165, .26) !important;
}

.lprl_ct_swal_popup .swal2-cancel:hover {
    background: #e2e8ef !important;
    transform: translateY(-1px);
}

.lprl_ct_swal_popup .swal2-validation-message {
    position: absolute !important;
    left: 50% !important;
    bottom: 78px !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    width: calc(100% - 48px) !important;
    max-width: 780px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    display: block !important;
    border-radius: 14px !important;
    background: #fff3f3 !important;
    color: #900 !important;
    border: 1px solid rgba(153, 0, 0, .22) !important;
    box-shadow: 0 14px 34px rgba(153, 0, 0, .18) !important;
    text-align: left !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    max-height: 150px !important;
    overflow-y: auto !important;
    pointer-events: none !important;
}

.lprl_ct_swal_popup .swal2-validation-message::before {
    display: none !important;
}

.lprl_ct_swal_popup .swal2-validation-message:empty {
    display: none !important;
}

.lprl_ct_formulario {
    position: relative;
    text-align: left;
    color: #1f2937;
}

.lprl_ct_centro_info {
    position: sticky;
    top: -14px;
    z-index: 30;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(0, 118, 165, .12);
    border-radius: 16px;
    padding: 11px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .08);
    backdrop-filter: blur(8px);
}

.lprl_ct_centro_info strong {
    display: block;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
}

.lprl_ct_centro_info span {
    display: block;
    color: #6b7280;
    margin-top: 2px;
    font-size: .88rem;
}

.lprl_ct_tabs {
    position: sticky;
    top: 58px;
    z-index: 29;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 118, 165, .12);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .07);
    backdrop-filter: blur(8px);
}

.lprl_ct_tab {
    flex: 1 1 180px;
    border: 1px solid rgba(0, 118, 165, .14);
    background: #ffffff;
    color: var(--nav_a_hover_COLOR, #0076A5);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 800;
    font-size: .86rem;
    cursor: pointer;
    transition: all .18s ease;
    min-height: 38px;
}

.lprl_ct_tab:hover,
.lprl_ct_tab.activo {
    background: var(--nav_a_hover_COLOR, #0076A5);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 118, 165, .18);
}

.lprl_ct_tab_contenido {
    display: none;
    padding-top: 4px;
}

.lprl_ct_tab_contenido.activo {
    display: block;
}

.lprl_ct_tab_contenido h3 {
    margin: 0 0 10px 0;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.01em;
}

.lprl_ct_bloque {
    background: #ffffff;
    border: 1px solid rgba(0, 118, 165, .11);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 15px rgba(0, 118, 165, .045);
}

.lprl_ct_bloque h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 800;
    font-size: .98rem;
    letter-spacing: -.01em;
}

.lprl_ct_bloque h4 small {
    color: #6b7280;
    font-weight: 600;
    font-size: .78rem;
}

.lprl_ct_grid_2,
.lprl_ct_grid_3 {
    display: grid;
    gap: 8px;
}

.lprl_ct_grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lprl_ct_grid_3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lprl_ct_campo {
    margin-bottom: 8px;
}

.lprl_ct_campo:last-child {
    margin-bottom: 0;
}

.lprl_ct_campo label {
    display: block;
    font-weight: 800;
    color: #374151;
    margin-bottom: 4px;
    font-size: .82rem;
}

.lprl_ct_campo input,
.lprl_ct_campo select,
.lprl_ct_campo textarea {
    width: 100%;
    border: 1px solid rgba(0, 118, 165, .16);
    border-radius: 10px;
    padding: 8px 9px;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
    font-size: .88rem;
    min-height: 38px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.lprl_ct_campo textarea {
    min-height: 78px;
    resize: vertical;
}

.lprl_ct_campo input:focus,
.lprl_ct_campo select:focus,
.lprl_ct_campo textarea:focus {
    outline: 0;
    border-color: var(--nav_a_hover_COLOR, #0076A5);
    box-shadow: 0 0 0 3px rgba(0, 118, 165, .10);
    background: #ffffff;
}

.lprl_ct_checks {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
}

.lprl_ct_checks_inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.lprl_ct_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid rgba(0, 118, 165, .10);
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
    transition: all .16s ease;
    user-select: none;
}

.lprl_ct_checkbox:hover {
    border-color: rgba(0, 118, 165, .25);
    background: #f4fbff;
}

.lprl_ct_checkbox input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_ct_checkbox span {
    color: #1f2937;
    font-weight: 650;
    font-size: .88rem;
    line-height: 1.25;
}

.lprl_ct_checkbox:has(input:checked) {
    border-color: rgba(0, 118, 165, .32);
    background: rgba(215, 237, 247, .42);
}

.lprl_ct_loader {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_ct_loader div {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nav_a_hover_COLOR, #0076A5), #31bcaa);
    animation: lprlCtLoaderPulse 1.1s infinite ease-in-out;
    margin-bottom: 12px;
}

.lprl_ct_loader p {
    margin: 0;
    font-weight: 800;
    font-size: .92rem;
}

@keyframes lprlCtLoaderPulse {
    0% {
        transform: scale(.92);
        opacity: .72;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }

    100% {
        transform: scale(.92);
        opacity: .72;
    }
}

@media (max-width: 800px) {
    .lprl_ct_swal_popup {
        width: 98% !important;
        max-width: 98% !important;
        height: 98vh !important;
        max-height: calc(100vh - 10px) !important;
        border-radius: 16px !important;
    }

    .lprl_ct_swal_popup .swal2-title {
        padding: 13px 15px 9px 15px !important;
        font-size: 1.15rem !important;
    }

    .lprl_ct_swal_popup .swal2-html-container,
    .lprl_ct_swal_html {
        max-height: calc(100vh - 180px) !important;
        padding: 12px !important;
    }

    .lprl_ct_swal_popup .swal2-actions {
        padding: 10px 12px !important;
        justify-content: stretch !important;
        flex-direction: column-reverse !important;
    }

    .lprl_ct_swal_popup .swal2-confirm,
    .lprl_ct_swal_popup .swal2-cancel {
        width: 100% !important;
        min-width: 0 !important;
    }

    .lprl_ct_swal_popup .swal2-validation-message {
        left: 12px !important;
        right: 12px !important;
        bottom: 96px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        max-height: 130px !important;
        font-size: .86rem !important;
    }

    .lprl_ct_centro_info {
        top: -12px;
    }

    .lprl_ct_tabs {
        top: 55px;
        flex-direction: column;
    }

    .lprl_ct_tab {
        width: 100%;
        flex: 1 1 auto;
    }

    .lprl_ct_grid_2,
    .lprl_ct_grid_3 {
        grid-template-columns: 1fr;
    }

    .lprl_ct_checks_inline {
        flex-direction: column;
    }
}


/* ============================================================
   SWEETALERT - AJUSTE FINAL MODAL CENTROS DE TRABAJO
   Mantiene botones visibles y navegación scrolleable
   ============================================================ */

.lprl_ct_swal_popup {
    min-height: 0 !important;
}

.lprl_ct_swal_popup .swal2-html-container,
.lprl_ct_swal_html {
    min-height: 0 !important;
}

.lprl_ct_swal_popup .swal2-actions {
    flex-shrink: 0 !important;
}

.lprl_ct_swal_popup .swal2-validation-message {
    pointer-events: none !important;
}
