/****************************************************************************************
*
* Sistema            : Picking Soprole
* Módulo             : Administración Picking
* Archivo            : ps-admin-menu.css
* Descripción        : Estilos del menú administrativo lateral protegido.
*
* Programador        : Freddy A. Gallegos Monsalve
* Arquitectura       : OpenAI ChatGPT
*
* Fecha Creación     : 10/07/2026
* Fecha Ult. Modif.  : 10/07/2026
* Versión            : 1.4.0
*
****************************************************************************************/

.ps-admin-overlay[hidden] {
    display: none !important;
}

.ps-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(6, 27, 58, .46);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .30s ease;
}

.ps-admin-overlay.is-visible {
    opacity: 1;
}

.ps-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1999;
    width: min(390px, 92vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, .22);
    transform: translateX(-105%);
    transition: transform .30s cubic-bezier(.22, .61, .36, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.ps-admin-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
}

.ps-admin-sidebar__header {
    min-height: 112px;
    padding: 24px 22px;
    background: linear-gradient(135deg, #c90011 0%, #ed0016 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ps-admin-sidebar__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    opacity: .82;
}

.ps-admin-sidebar__header h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 900;
}

.ps-admin-sidebar__subtitle {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    opacity: .86;
}

.ps-admin-sidebar__subtitle i {
    margin-right: 5px;
}

.ps-admin-sidebar__close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 21px;
    transition: background .18s ease, transform .18s ease;
}

.ps-admin-sidebar__close:hover {
    background: rgba(255, 255, 255, .26);
    transform: rotate(4deg);
}

.ps-admin-sidebar__body {
    flex: 1;
    padding: 22px 18px;
    overflow-y: auto;
}

.ps-admin-option {
    position: relative;
    width: 100%;
    min-height: 82px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    background: #ffffff;
    color: #061b3a;
    display: grid;
    grid-template-columns: 54px 1fr 18px;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ps-admin-option:hover {
    transform: translateY(-2px);
    border-color: #ed0016;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
}

.ps-admin-option__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff1f2;
    color: #ed0016;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.ps-admin-option__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ps-admin-option__text strong {
    color: #061b3a;
    font-size: 18px;
    font-weight: 900;
}

.ps-admin-option__text small {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.ps-admin-option__arrow {
    color: #94a3b8;
    font-size: 14px;
}

.ps-admin-option--danger {
    border-color: #fecdd3;
    background: #fff7f8;
}

.ps-admin-option--danger .ps-admin-option__icon {
    background: #ed0016;
    color: #ffffff;
}

.ps-admin-option--danger .ps-admin-option__text strong,
.ps-admin-option--danger .ps-admin-option__arrow {
    color: #c90011;
}


.ps-admin-option.is-active {
    border-color: #ed0016;
    background: #fff1f2;
    box-shadow: 0 10px 22px rgba(237, 0, 22, .12);
}

.ps-admin-option.is-active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #ed0016;
}

.ps-admin-option.is-active .ps-admin-option__icon {
    background: #ed0016;
    color: #ffffff;
}

.ps-admin-option.is-active .ps-admin-option__text strong,
.ps-admin-option.is-active .ps-admin-option__arrow {
    color: #c90011;
}

.ps-admin-sidebar__footer {
    padding: 16px 18px 22px;
    border-top: 1px solid #e6edf5;
}

.ps-admin-logout {
    width: 100%;
    min-height: 48px;
    border: 2px solid #ed0016;
    border-radius: 10px;
    background: #ffffff;
    color: #ed0016;
    font-weight: 900;
    transition: background .18s ease, color .18s ease;
}

.ps-admin-logout:hover {
    background: #ed0016;
    color: #ffffff;
}

body.ps-admin-menu-open {
    overflow: hidden !important;
}

@media (max-width: 576px) {
    .ps-admin-sidebar {
        width: 94vw;
    }

    .ps-admin-sidebar__header {
        min-height: 96px;
        padding: 20px 18px;
    }

    .ps-admin-sidebar__header h2 {
        font-size: 23px;
    }
}


/* CAMPO DE CLAVE CON BOTÓN MOSTRAR / OCULTAR */

.ps-admin-dialog-text {
    margin: 0 0 10px;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
}

.ps-admin-warning {
    margin-bottom: 16px;
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}

.ps-password-field {
    position: relative;
    width: min(100%, 390px);
    margin: 12px auto 0;
}

.ps-password-field__input {
    width: 100% !important;
    margin: 0 !important;
    padding-right: 54px !important;
}

.ps-password-field__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        color .18s ease,
        background .18s ease;
}

.ps-password-field__toggle:hover,
.ps-password-field__toggle:focus {
    background: #eef2f7;
    color: #ed0016;
    outline: none;
}

/****************************************************************************************
* RESPONSIVE DEFINITIVO MENU ADMINISTRATIVO - VERSION 1.4.0
****************************************************************************************/

@media (max-height: 700px) {
    .ps-admin-sidebar__header {
        min-height: 88px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .ps-admin-sidebar__body {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .ps-admin-option {
        min-height: 68px;
        margin-bottom: 10px;
        padding: 10px;
        grid-template-columns: 46px 1fr 16px;
        gap: 11px;
    }

    .ps-admin-option__icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .ps-admin-sidebar__footer {
        padding-top: 12px;
        padding-bottom: 14px;
    }
}

@media (max-width: 576px) {
    .ps-admin-sidebar {
        width: min(94vw, 390px);
    }

    .ps-admin-sidebar__header {
        min-height: 92px;
        padding: 17px 15px;
    }

    .ps-admin-sidebar__eyebrow {
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .ps-admin-sidebar__header h2 {
        font-size: 22px;
    }

    .ps-admin-sidebar__subtitle {
        margin-top: 4px;
        font-size: 11px;
    }

    .ps-admin-sidebar__close {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .ps-admin-sidebar__body {
        padding: 14px 12px;
    }

    .ps-admin-option {
        min-height: 70px;
        margin-bottom: 10px;
        padding: 10px;
        grid-template-columns: 46px minmax(0, 1fr) 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .ps-admin-option__icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 20px;
    }

    .ps-admin-option__text strong {
        font-size: 16px;
    }

    .ps-admin-option__text small {
        font-size: 12px;
        line-height: 1.25;
    }

    .ps-admin-sidebar__footer {
        padding: 12px;
    }

    .ps-admin-logout {
        min-height: 46px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .ps-admin-dialog-text {
        font-size: 14px;
    }

    .ps-admin-warning {
        font-size: 14px;
    }

    .ps-password-field {
        width: 100%;
    }

    .ps-password-field__input {
        height: 50px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 360px) {
    .ps-admin-sidebar {
        width: 100vw;
    }

    .ps-admin-option__text small {
        display: none;
    }
}

