/* Topbar como el de amerispan-crm-v2.1 (public/assets/css/profile-menu.css):
   popup de Apps, badge DEVELOPMENT y menu del usuario (partials/topbar.php).
   Copiado de ahi; si cambia en el CRM, actualizar aca tambien. */

/* Popup pequeño de Apps (sistemas SSO) del topbar. */
.topbar-apps-menu {
    width: 280px;
    padding: .5rem !important;
}

.topbar-apps-title {
    margin: .25rem .375rem .5rem;
    font-size: .875rem;
    font-weight: 600;
}

.topbar-apps-menu .profile-app-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Badge DEVELOPMENT más ancho. */
.topbar-env-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-width: 180px;
    padding: .55rem 1.25rem;
    border-radius: .375rem;
    background-color: red;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .75px;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, .2);
}

.topbar-env-badge i {
    font-size: 16px;
}

/* Menu de perfil: apps asignadas en lista. */
.profile-menu {
    width: 220px;
    padding-bottom: .25rem;
}

/* Nombre del usuario arriba del menu, más pequeño. */
.profile-menu .dropdown-header {
    padding: .5rem .875rem .25rem;
    font-size: 12px;
}

/* Apps en grilla de 5 estilo launcher: panel redondeado, icono arriba, prefix abajo. */
.profile-app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: .375rem;
    border-radius: .75rem;
    background-color: var(--vz-light, #f3f6f9);
}

.profile-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    padding: .5rem .125rem .4rem;
    border-radius: .625rem;
    color: var(--vz-body-color, #212529);
    text-align: center;
    transition: background-color .15s ease;
}

.profile-app-item:hover {
    background-color: #ededf0;
    color: var(--vz-body-color, #212529);
}

.profile-app-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.profile-app-prefix {
    max-width: 100%;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Acciones del perfil como botones de ancho completo. */
.profile-menu-action {
    padding: .2rem .625rem .375rem;
}

.profile-action {
    display: flex;
    align-items: center;
    gap: .4rem;
    width: 100%;
    padding: .3rem .625rem;
    border: 1px solid transparent;
    border-radius: .375rem;
    font-size: 12px;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.profile-action i {
    font-size: .875rem;
    line-height: 1;
}

/* My Profile: azul CRM suave con borde. */
.profile-myprofile {
    background-color: rgba(117, 155, 211, .12);
    border-color: rgba(117, 155, 211, .45);
    color: #4f78b8;
}

.profile-myprofile:hover,
.profile-myprofile:focus {
    background-color: #759BD3;
    border-color: #759BD3;
    color: #fff;
}

/* Sign out: rojo con borde, se llena al pasar el mouse. */
.profile-signout {
    background-color: rgba(240, 101, 72, .08);
    border-color: rgba(240, 101, 72, .5);
    color: var(--vz-danger, #f06548);
}

.profile-signout:hover,
.profile-signout:focus {
    background-color: var(--vz-danger, #f06548);
    border-color: var(--vz-danger, #f06548);
    color: #fff;
}
