.li-user-company{
    display: flex !important;
}

.user-company-panel{
    /* leave room for the 65px header, name bar and Account/Claim/Logout links */
    max-height: max(150px, calc(100vh - 360px));
    max-height: max(150px, calc(100dvh - 360px));
    overflow-y: auto;
    overflow-x: hidden;
}

.user-company-panel .li-user-company > span:last-child{
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Last resort for very short windows (the header is fixed, so the page can't scroll to it):
   once the company list hits its 150px floor, the whole dropdown scrolls to keep Logout reachable */
.profile-dropdown{
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

/* Undo the phone-width .header-new li / .left-250 rules inside the profile dropdown:
   only the company list scrolls, rows stay left-aligned with the check beside the name */
@media (max-width: 500px) {
    .profile-dropdown.left-250 {
        height: auto;
    }

    .profile-dropdown .dropdown-content-body ul li {
        display: block;
        margin-bottom: 0;
        text-align: left;
    }

    .profile-dropdown .dropdown-content-body ul li.info-summary {
        text-align: center;
    }

    .profile-dropdown .dropdown-content-body ul li.li-user-company {
        flex-direction: row;
    }

    .profile-dropdown .company-select svg {
        margin-right: 0;
    }
}

.section-info{
    position: relative;
    border-bottom: 1px solid #CCC;
    padding: .5em 0;
}

.company-select{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    margin-right: 7px;
    background: var(--color-second);
    border-radius: 50%;
}

.company-select.active{
    background: var(--color-primary);
}

.company-select svg{
    width: 14px !important;
    stroke-width: 2 !important;
    color: #FFF;
}

.mark-company-default, .delete-company{
    margin-right: 10px;
    color: #000;
}

.mark-company-default:hover, .delete-company:hover{
    color: #000 !important;    
}

.companies-manage{
    width: 18px !important;
}