/* =========================================================
   ACCESOS DIRECTOS
   ========================================================= */

.accesos-directos-panel {
    width: calc(100% - 24px);
    margin: 0 12px 10px;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 14px;

    overflow: hidden;

    max-height: 0;
    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.3s ease,
        opacity 0.25s ease,
        visibility 0.3s ease;
}

.accesos-directos-panel.activo {
    max-height: 330px;
    opacity: 1;
    visibility: visible;
}


/* Encabezado */

.accesos-directos-header {
    min-height: 68px;
    padding: 13px 12px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.accesos-directos-header h3 {
    margin: 0;

    font-size: 15px;
    line-height: 1.1;

    color: #183b5d;
}

.accesos-directos-header span {
    display: block;

    margin-top: 4px;

    font-size: 10px;
    line-height: 1.1;

    color: #888888;
}


/* Botón + */

.accesos-directos-agregar {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border: none;
    border-radius: 10px;

    background: rgba(0, 117, 169, 0.12);
    color: #0075a9;

    cursor: pointer;

    font-size: 15px;

    transition: 0.2s ease;
}

.accesos-directos-agregar:hover {
    background: #0075a9;
    color: #ffffff;

    transform: scale(1.08);
}


/* Contenido */

.accesos-directos-contenido {
    display: flex;
    flex-direction: column;

    padding: 10px;

    box-sizing: border-box;
}


/* Formulario */

.acceso-directo-formulario {
    display: none;

    flex-direction: column;
    gap: 7px;

    margin-bottom: 10px;
}

.acceso-directo-formulario.visible {
    display: flex;
}

.acceso-directo-formulario input {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    outline: none;

    font-size: 11px;

    background: #ffffff;
}

.acceso-directo-formulario input:focus {
    border-color: #0075a9;

    box-shadow:
        0 0 0 2px rgba(0, 117, 169, 0.10);
}

.acceso-directo-formulario button {
    border: none;
    border-radius: 9px;

    padding: 9px;

    background: #0075a9;
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.acceso-directo-formulario button:hover {
    background: #005f89;
}


/* Lista con scroll */

.accesos-directos-lista {
    max-height: 210px;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 3px;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Scroll */

.accesos-directos-lista::-webkit-scrollbar {
    width: 5px;
}

.accesos-directos-lista::-webkit-scrollbar-track {
    background: transparent;
}

.accesos-directos-lista::-webkit-scrollbar-thumb {
    background: rgba(111, 114, 113, 0.35);
    border-radius: 10px;
}


/* Acceso individual */

.acceso-directo-item {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 5px;

    margin-bottom: 3px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    transition: 0.2s ease;
}

.acceso-directo-item:hover {
    background: #f7fafc;
}


/* Enlace */

.acceso-directo-enlace {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #333333;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    overflow: hidden;
}

.acceso-directo-enlace i {
    flex-shrink: 0;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(0, 117, 169, 0.10);
    color: #0075a9;

    font-size: 10px;
}

.acceso-directo-enlace:hover {
    color: #0075a9;
}

.acceso-directo-enlace span {
    color: #333333;
}


/* Eliminar */

.acceso-directo-eliminar {
    flex-shrink: 0;

    width: 27px;
    height: 27px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #999999;

    cursor: pointer;

    transition: 0.2s ease;
}

.acceso-directo-eliminar:hover {
    background: #df5929;
    color: #ffffff;
}


/* Sin accesos */

.accesos-directos-vacio {
    padding: 25px 8px;

    text-align: center;

    color: #999999;

    font-size: 10px;
}

.accesos-directos-vacio i {
    display: block;

    margin-bottom: 8px;

    font-size: 22px;

    color: #cccccc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .accesos-directos-panel {
        width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
    }

}

@media (max-width: 480px) {

    .accesos-directos-lista {
        max-height: 86px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

}