@import "../../../../../assets/css/abstracts/custom-variables.scss";


/* personal blog list */
.personal-blog-list img {
    float: left;
    margin-right: 10px;
}
.personal-blog-list > li {
    width: 50%;
    float: left;
}

.personal-blog-list li .unstyled {
    margin-left: 50px;
    margin-bottom: 12px;
}

.people-direct-reports {
    /* subordinate list */
    .user-list {
        background-color: #fff;

        small {
            display: block;
            color: $gray-600;
            font-size: 11px;
        }
    }
}

.spinner {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -47px;
    margin-top: -25px;
}

/* people org chart */
#PeopleOrgChartNodes table {
    margin: 0 auto;
}

.PeopleOrgChartNodeTable table {
    width: 85px !important;
    border: 2px solid $gray-800;
    padding: 0 !important;
    margin: 5px !important;
    font-size: 10px;
}

.PeopleOrgChartNode {
    width: 100%;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
}

.PeopleOrgChartNode td {
    padding: 2px;
    border: 1px solid $gray-200;
}

.PeopleOrgChartNode tr.Blue {
    background-color: $gray-200;
}

.PeopleOrgChartNode tr.Grey {
    background-color: $gray-300;
}

.PeopleOrgChartNode th {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid $gray-200;
}

#contacts_form.PeopleListcontactsPopup,
#people_form.PeopleListcontactsPopup {
    margin: 0 0 15px 0;
}

.PeopleListcontactsPopup h3,
.PeopleListcontactsPopup h5 {
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

.PeopleListcontactsPopup .table_filter_tool {
    padding: 0;
    margin: 0;
}

/* Profile styles */
.main-inner-wrapper {
    height: auto !important;
}


.profile-avatar {
    position: relative;

    .profile-image-edit-wrapper {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.5);
        left: 0;
        right: 0;
        bottom: 0;
    }

    &:hover {
        .profile-image-edit-wrapper {
            opacity: 1;
            visibility: visible;
        }
    }
}

/* Blog style on profile page */
.blogs .nav-pills {
    margin: 0;
}

/* Personal Links */
div .table tbody > .dragged_tr td {
    background: $gray-200;
}

/* Twitter Widget  */

#twtr-widget ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


.twtr-ft {
    background: $gray-200;
}


input.search-form-main-input {
    padding-right: 24px;
}

.people-advanced-search {
    display: none;
}

.people-advanced-search .form-actions {
    margin-top: 10px;
    margin-bottom: 0;
}

.people-search-show .people-advanced-search {
    display: block;
}

// People A-Z 'nav'
.people-a-z {
    margin: 10px 0;
    border: 1px solid $gray-300;
    border-width: 1px 0;
    background: $gray-100;
}

.people-a-z-item {
    margin: 2px 0;
    display: inline-block;
    padding: 2px 0.6%;
}

// Unlinked letters
.people-a-z-letter {
    color: $gray-400;
}

.people-a-z-link {
    border-radius: 3px;
}

.people-a-z-link:hover {
    background-color: $gray-400;
}

//People Card
:root {
--people-profile-image-size: 80px;
}

// Sets width of people card profile image
.people-img {
    width: var(--people-profile-image-size);
}
// Limits width of people card media body
.people-card-media-body {
    width: calc(100% - var(--people-profile-image-size) - 1rem);
}

@media only screen and (max-width: 767px) {
    .profile-avatar {
        float: none;
    }

    .people-card-details {
        margin: 0;
    }
}

@media only screen and (min-width: 767px) {
    .people-advanced-search {
        position: absolute;
        z-index: 50;
        width: 590px;
        max-width: 100%;
        margin-top: -1px;
    }

    .people-advanced-search .advanced-search-wrapper {
        min-height: 200px;
        max-height: 490px;
        overflow: auto;
    }
}

/* Skills & Endorsements */
.profile-skill,
.profile-skill-link {
    position: relative;
}
.profile-skill a.profile-skill-link {
    top: -2px;
    margin-right: 108px;
}
.current-user a.profile-skill-link {
    margin-right: 61px;
}


// Basic styling for both the endorse and unendorse buttons
.profile-skill-control {
    position: absolute;
    top: -2px;
    right: 0;
    color: $gray-500;
    height: 100%;
    min-width: 40px;
    z-index: 20;
    background-color: $gray-200;
}

// Endorse skill styling
.profile-skill-control:hover {
    background-color: $blue-500;
    color: #fff;
}

// Remove endorsement styling
.profile-skill-endorsed.profile-skill-control:hover {
    background-color: $red-700;
}


.unendorse-icon,
.profile-skill-control .text-label,
.profile-skill-endorsed.profile-skill-control:hover .endorse-icon {
    display: none;
}

.profile-skill-control:hover {
    left: 0;

    .text-label {
        display: inline-block;
    }

}

.profile-skill-control.profile-skill-endorsed {
    background-color: $blue-400;
    color: #fff;
}

.profile-skill-endorsed.profile-skill-control:hover .unendorse-icon {
    display: block;
}

.profile-skill-data.profile-skill-data {
    position: absolute;
    z-index: 20;
    top: -2px;
    right: 47px;
}

.current-user .profile-skill-data {
    right: 0;
}

.profile-skill-data .icon-group {
    margin-left: 4px;
}

.profile-skill-add {
    top: 9px;
    right: 9px;
}

.profile-skill-link .profile-skill-name {
    word-break: break-word;
}

.expertise-list li {
    clear: left;
    padding: 5px 8px 5px 12px;
    background-color: $gray-200;
    border-radius: 4px;
}

.expertise-list li + li {
    margin-top: 1px;
}
.expertise-list .label {
    margin: 1px 0;
    float: right;
}

/* endorsement skill search */
.endorsement-skill-search-results small {
    display: block;
}
.endorse-skills .collapse {
    margin-top: 10px;
}

.endorsers-list .media-body small {
    display: block;
}

.modal .modal-footer .remove-endorsement-from-profile {
    float: left;
}

.skill-search-result {
    display: inline-block;
    margin: 4px;
    background-color: #fff;
    border: 1px solid $gray-600;
    border-radius: 3px;
}

.skill-search-result .skill-name {
    margin: 5px;
}

.skill-search-result .skill-count {
    display: inline-block;
    background: $gray-600;
    color: #fff;
    padding: 0 0.5rem;
}

.radio-endorsement-search {
    margin-left: 10px;
}

.select2-full-width .select2 {
    display: block;
}

/*-------------------------------
-------  METADATA
---------------------------------*/

.metadatum--url {
    margin-bottom: 10px;
}

.metadata-img {
    max-width: 100%;
    margin-bottom: 10px;
    object-fit: cover;
}

td > .metadata-img {
    object-fit: contain;
    max-height: 75px;
    height: auto;
    width: auto;
    margin-bottom: 0;
}

#edit_user_tab .image-upload div[id*="md"] .current-image-container,
#profile_tab .image-upload div[id*="md"] .current-image-container{
    width: 249px;
    height: 300px;
}

.edit_user_tab .current-image-container {
    max-width: 340px;
}

@media only screen and (min-width : 320px) {
    .edit_user_tab .current-image-container {
        max-width: 270px;
    }
}

@media only screen and (min-width : 480px) {
    .edit_user_tab .current-image-container {
        max-width: 290px;
    }
}

@media only screen and (min-width: 768px) {
    .edit_user_tab .current-image-container {
        max-width: 440px;
    }
}

@media only screen and (min-width: 768px) {
    .edit_user_tab .current-image-container {
        max-width: 440px;
    }
}

@media only screen and (min-width: 992px) {
    .edit_user_tab .current-image-container {
        max-width: 245px;
    }
}

@media only screen and (min-width: 1200px) {
    .edit_user_tab .current-image-container {
        max-width: 340px;
    }
}

#profile_tab .profile-fields .current-image,
#profile_tab .profile-fields .current-image-container {
    border-radius: 0;
}

#profile_tab .profile-fields .checkbox {
    display: block;
}

.profile .metadata-img:last-of-type {
    margin-bottom: 0px;
}

.profile .edit-link {
    position: relative;
}

.profile .edit-link .glyphicons {
    position: absolute;
    top: 0;
    left: 5px;
}

/*-------------------------------
-------  IMAGE METADATA LIGHTBOX MODAL
---------------------------------*/
.profile .metadata-profile-img, .profile-aside-wrapper .metadata-profile-img{
    cursor: pointer;
    height: auto;
    width: auto;
}

.image-expand-modal {
    background: rgba(0, 0, 0, 0.8);
}

.image-expand-modal .modal-dialog {
    text-align: center;
}

.image-expand-modal .modal-dialog .close {
    background: rgba(255, 255, 255, .8);
    opacity: 1;
    padding: 5px 10px;
    border: none;
    border-radius: 350px;
    margin-bottom: 10px;
    cursor: pointer;
    float: none;
    vertical-align: middle;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
}

.image-expand-modal .modal-dialog img {
    box-shadow: 0 0 5px 5px rgab(0, 0, 0, 0.2);
    max-width: 100%;
}


// Unique styling of badges for people view profile side panel
.badges-profile-component .your-badges > li {
    padding: 0;
    margin-bottom: 0.25rem;
    width: 20%;
}

///*-------------------------------
//-------  People license info block
//---------------------------------*/

.accordion-license-block .license-toggle-icon {
    transition: transform 0.3s ease;
}

.accordion-license-block .license-block-more-toggle[aria-expanded="true"] .license-toggle-icon {
    transform: rotate(180deg);
}

.license-block .license-block-hr {
    border-top-color: $gray-500;
}
