/* === PARTE 3 v2.2: AVATAR EJECUTIVO SUPERIOR, BANDEJA DE CAMPANITA Y OJITO EN CLAVES === */

.exec-avatar-btn {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid var(--turquoise);
    background: linear-gradient(145deg, #E0F4FC, #BAE6FD);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(23, 98, 176, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}
body.dark-mode .exec-avatar-btn {
    background: linear-gradient(145deg, #102A4C, #1B4B7A);
}
.exec-avatar-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(34, 199, 214, 0.35);
}

/* Bandeja Flotante de Campanita Inteligente y Menu Rapido de Avatar */
.idv-top-popover {
    position: fixed;
    top: 62px;
    right: 18px;
    width: 375px;
    max-width: calc(100vw - 24px);
    max-height: 80vh;
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(5, 27, 48, 0.28);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: idvPopSlideIn 0.18s ease-out;
}
@keyframes idvPopSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.idv-pop-head {
    padding: 14px 16px;
    background: var(--navy-bar);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.idv-pop-filters {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-input);
}
.idv-pop-chip {
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.idv-pop-chip.active {
    background: linear-gradient(135deg, #1762B0, #22C7D6);
    color: #FFFFFF;
    border-color: transparent;
}
.idv-pop-list {
    overflow-y: auto;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
    max-height: 390px;
}
.idv-noti-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color 0.14s ease, transform 0.12s ease;
}
.idv-noti-row:hover {
    border-color: var(--turquoise);
    transform: translateX(2px);
}
.idv-noti-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: rgba(27, 111, 184, 0.12);
}
.idv-noti-row.sev-danger .idv-noti-ico { background: rgba(220, 38, 38, 0.15); }
.idv-noti-row.sev-warning .idv-noti-ico { background: rgba(245, 146, 35, 0.18); }
.idv-noti-row.sev-success .idv-noti-ico { background: rgba(13, 148, 136, 0.16); }

/* Ojito Mostrar / Ocultar en todos los campos de Contrasena y PIN */
.pwd-eye-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.pwd-eye-wrap .form-control {
    padding-right: 42px;
}
.pwd-eye-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 7px;
    font-size: 1rem;
    line-height: 1;
    border-radius: 8px;
}
.pwd-eye-btn:hover {
    color: var(--primary);
    background: rgba(34, 199, 214, 0.12);
}

/* Switches rapidos dentro del Menu Lateral (Modo Oscuro + Burbujas) */
.sidebar-Pref-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: grid;
    gap: 8px;
}
.sidebar-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #E2E8F0;
    font-weight: 600;
    cursor: pointer;
}
.sidebar-pref-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #3CE2EC;
    cursor: pointer;
}
