:root {  
    --background-header-swalOPC: var(--suite-primary-S360);
    --color-text-swal-title: #676767;
}
&[data-theme='light'] {
    --color-text-swal-title: #676767;
}
&[data-theme='dark'] {
    --color-text-swal-title: #FFFFFF;
}

.swalOPC{

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: block;

    & .btn-close {
        position: absolute;
        right: 0;
        margin: 1rem;
        z-index: 1;
        color: var(--color-text-swal-title);
        cursor: pointer;
    }

    & .swalOPC-body {
        justify-content: center !important;
        position: relative;
        flex: 1 1 auto;
        padding: 1rem;
        width: 100%;

        & .textArea{
            height: 70px;    
            font-size: 14px;
            padding: 8px 0px 5px 12px;
            border-radius: 4px;
            display: block;
            border: 1px solid var(--color-border-S360);
            width: 100%;
            outline: 0;
            transition: border-color 0.3s;
            resize: none;
            white-space: break-spaces;
            text-align: left;
            overflow: auto;
            background: var(--background-S360);
            color: var(--color-text-S360);
            border-radius: var(--border-radius-S360);

            &::-webkit-scrollbar-track
            {
                background-color: transparent;
            }

            &::-webkit-scrollbar
            {
                height: 8px;
                width: 8px;
            }

            &::-webkit-scrollbar-thumb
            {
                border-radius: 30px;
                background-color: var(--background-header-swalOPC);
            }
        }
    }

    & .fade-out {
        transition: opacity 0.2s ease-out, transform 0.2s ease-out;
        opacity: 0;
        transform: scale(0.9); /* Reduce ligeramente el tamaño durante el desvanecimiento */
    }

    & .swalOPC-header{

        border-top-left-radius: 4px;
        border-top-right-radius: 4px;

        display: flex;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--background-header-swalOPC);
        
        font-size: 12px;
        height: 34px;
        width: 98%;
        margin-left: 5px;

        .swalOPC-title {
            padding-bottom: 0px;
            color: var(--color-text-swal-title);

            & i {
                margin-right: 4px;
                font-size: 17px;
                
            }
        }

        & .swalOPC-close {
            font-size: 19px;
        }
    }

    .swalOPC-content {
        position: relative;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
        background-color: var(--background-S360);
        background-clip: padding-box;
        border: 1px solid var(--color-border-secundary-S360);
        border-radius: var(--border-radius-S360);
        outline: 0;
    }

    .swalOPC-dialog {
        position: relative;
        width: auto;
        margin: 0.5rem;
        pointer-events: none;
        animation: scaleIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transition: opacity 0.2s ease;
    }
    
    .swalOPC-dialog.scaleOut {
    animation: scaleOut 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    }
    
    .swalOPC-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    }
    
    .swalOPC-open {
    overflow: hidden;
    }
    
    .swalOPC-open .swalOPC {
    overflow-x: hidden;
    overflow-y: auto;
    }
    
    .swalOPC-dialog-scrollable {
    display: flex;
    max-height: calc(100% - 1rem);
    }
    
    .swalOPC-dialog-scrollable .swalOPC-content {
    max-height: calc(100% - 1rem);
    overflow: hidden;
    }
    
    .swalOPC-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    justify-content: center;
    }
    
    .swalOPC-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    content: "";
    }
    
}

