/* Profile header buttons */
.mat-button.mat-button--profile-actions {
  display: flex;
  margin: 0 0 0 8px;
}
.mat-button--profile-actions .icon {
  min-width: 16px;
}
.mat-button--profile-actions .icon-endorse {
  top: -1px;
}
.mat-button--profile-actions .icon-close {
    font-size: 12px;
    margin: 0 0 0 8px;
    opacity: .75;
}
.dots-menu--profile-actions .mat-button.mat-button--dots-menu {
  margin: 0 0 0 8px;
  font-size: 16px;
}
.mat-button.mat-button--clear-swap {
    background: none;
    color: #767E92;
}
.mat-button.mat-button--clear-swap:hover {
    background: rgba(139, 148, 169, 0.1);
    transform: translateY(-1px);
}
.mat-button.mat-button--profile-actions-call {
  display: none;
}
@media (max-width: 800px) {
    .mat-button.mat-button--profile-actions-phone {
      display: none;
    }
    .mat-button.mat-button--profile-actions-call {
      display: flex;
    }
    .mat-button.mat-button--profile-actions {
      margin: 4px;
    }
    .mat-button.mat-button--clear-swap {
        background: rgba(226,228,233,.4);
        color: #767E92;
    }
    .mat-button.mat-button--clear-swap:hover {
        background: #767E92;
        color: #fff;
    }
}
/* End profile header buttons */

/* Page structure */
.profile_header {
  z-index: 1;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 32px 0 0 0;
  box-shadow: 0 3px 8px rgba(51, 74, 109, 0.12);
}
.profile_connections {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
}
.profile_header-cont {
  display: flex;
  width: 100%;
}
.profile_avatar {
  position: relative;
  height: 96px;
  width: 96px;
  flex-shrink: 0;
  margin-right: 24px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile_avatar img {
  max-width: 100%;
  max-height: 100%;
  flex: none;
}
.profile_avatar--project {
  border-radius: 3px;
}
.profile_avatar--project img {
  transform: scale(2.2,2.2);
}
.profile_avatar--project:before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #007ddd;
  position: absolute;
  z-index: 1;
  top: calc(50% - 6px);
  left: calc(50% - 6px);
}
.profile_info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 100%;
}
.profile_sub-info {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}
.profile_info-badge {
    margin-left: 18px;
    margin-top: 4px;
}
.profile_meta-cont {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
  max-width: 100%;
}
.profile_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: #767E92;
  margin: 4px 24px 4px 0;
}
.profile_meta a {
  color: #767E92;
  transition: .3s all ease;
}
.profile_meta a:hover {
  color: #007ddd;
}
.profile_meta .icon {
  margin-right: 4px;
  position: relative;
}
.profile_meta .icon-company {
  top: -1px;
}
.profile_meta--big {
  font-size: 18px;
  font-weight: 600;
}
.profile_meta--big.endorsed {
  color: #007ddd;
}
.profile_meta--big.endorsed:hover {
  color: #006bbd;
}
.profile_meta--big.endorsed .icon {
  font-size: 17px;
}
.profile_actions-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 8px 0 0 0;
}
.profile_actions {
  display: flex;
  padding: 16px 0;
  flex-shrink: 0;
}
.profile_minor-actions {
  position: absolute;
  top: -16px;
  right: 0;
  display: flex;
}
.profile_tabs {
  margin: 16px 0 0 0;
  width: 100%;
  display: flex;
}
.profile_tabs li {
    display: flex;
    flex-shrink: 0;
}
.profile_tab { 
    color: #767E92;
    font-size: 14px;
    padding: 16px 12px;
    font-weight: 500;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.profile_tab:before {
    position: absolute;
    cursor: pointer;
    bottom: 0;
    left: 0;
    transform: translateY(5px);
    content: "";
    height: 5px;
    width: 100%;
    color: rgba(0,125,221,0);
    transition: all .3s ease;
}
.profile_tab.active,
.profile_tab:hover {
    color: #007ddd;
}
.profile_tab.active:before,
.profile_tab:hover:before {
    background: #007ddd;
    transform: translateY(0);
}
.profile_content {
  padding: 40px 0;
  background: #F4F7FA;
}
.profile_sidebar {
  width: calc(33.33% - 40px);
  margin-right: 40px;
}
.profile_sidebar--wide {
  width: 100%;
  margin: 0;    
}
.profile_body {
  width: 66.66%;
}
.profile_body--feed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.profile_body--wide {
  width: 100%;
}
.profile_feed-item {
  width: 100%;
}
.profile_section {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 0 40px 0;
}
.profile_section--card {
  width: 100%;
}
.profile_section-row {
  width: 100%;
  display: flex;
}
.profile_section-row--bottom-button {
  margin-top: 24px;
  justify-content: center;
}
.profile_review-container {
  width: 100%;
}
.profile_section-row--photo-tab {
  margin: 0 -16px 0 0;
  flex-basis: calc(100% + 16px);
  width: calc(100% + 16px);
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 600px) { 
  .profile_section-row--photo-tab {
    margin: 0 -8px 0 0;
    flex-basis: calc(100% + 8px);
    width: calc(100% + 8px);
  }
}
.profile_section-label {
  color: #767E92;
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.2em;
  transition: all .3s ease;
}
.profile_section-label--half {
  color: #bcc1cd;
}
.profile_section-total {
  color: #bcc1cd;
}
@media (max-width: 1400px) {  
  .profile_header,
  .profile_content {
    padding-right: 32px;
    padding-left: 32px;
  }
}
@media (max-width: 800px) { 
  .profile_content {
    padding: 40px 24px;
    background: none;
  }
  .profile_header {
    padding: 32px 24px 0;
  }
  .profile_sidebar,
  .profile_body {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    margin: 0;
  }
  .profile_content {
    padding: 24px 16px;
  }
  .profile_header {
    padding: 48px 16px 0;
  }
  .profile_section {
    padding: 0 0 24px 0;
  }
  .profile_header-cont {
    flex-wrap: wrap;
    justify-content: center;
  }
  .profile_avatar {
    margin: 0 0 24px 0;
  }
  .profile_connections {
    display: none;
  }
  .profile_info {
    align-items: center;
    width: 100%;
  }
  .profile_minor-actions {
    top: -32px;
  }
  .profile_meta-cont {
    margin: 8px 0;
    justify-content: center;
  }
  .profile_meta {
    margin: 6px 12px;
    justify-content: center;
  }
  .profile_meta--big {
    width: 100%;
    justify-content: center;
  }
  .profile_actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .profile_actions-row {
    flex-wrap: wrap;
    margin: 0;
    position: relative;
  }
  .profile_tabs {
    order: 2;
    justify-content: center;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  .profile_sidebar--activity {
    display: none;
  }
  .profile_tab-narrow-spacer {
    display: none;
  }
}
@media (max-width: 350px) { 
  .profile_tab-narrow-spacer {
    display: flex;
    width: 30px;
    flex-shrink: 0;
  }
  .profile_tabs {
    justify-content: flex-start;
  }
  .profile_tabs:after {
    content: "";
    height: 60px;
    width: 48px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(right,#fff 30%,hsla(0,0%,100%,0));
    z-index: 1;
    pointer-events: none;
  }
}
/* End page structure */

/* Badges card */
.mat-card_badges {
  width: 100%;
  padding: 8px 24px;
}
.mat-card_badge {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0E4266;
  line-height: 1.2em;
  display: flex;
  align-items: center;
  transition: .3s ease height, .3s ease padding, .4s ease opacity;
}
.mat-card_badge.collapse {
  opacity: 0;
  height: 0px;
  padding: 0px;
}
.mat-card_badge-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  font-size: 32px;
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  cursor: default;
}
.mat-card_badge-title {
  font-size: 16px;
  font-weight: 600;
}
.mat-card_badge-avatar img {
  width: 100%;
  transition: all .3s ease;
}
a.mat-card_badge:hover {
  cursor: pointer;
}
a.mat-card_badge:hover .mat-card_badge-avatar img {
  opacity: .75;
}
.mat-card_badge-link {
    display: flex;
    align-items: center;
    color: #0E4266;
}
/* End badges card */

/* Customer satisfaction bars */
.mat-card_body--customer-satisfaction {
  padding: 16px 24px;
}
.mat-meta--customer-satisfaction {
    margin: 8px 0 2px;   
    justify-content: space-between;
    width: 100%;
    display: flex;
}
.mat-meta--customer-satisfaction-hide {
    display: none;
}
.customer-satisfaction {
    width: 100%;
    display: flex;
    flex-direction: column;    
}
.customer-satisfaction_row {
    width: 100%;
    margin: 6px 0;
    display: flex;
    align-items: center;
}
.customer-satisfaction_row--reviews {
    flex-wrap: wrap;
}
.customer-satisfaction_col--question {
    width: 240px;
    color: #0E4266;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: text;
    position: relative;
}
.customer-satisfaction_col--satisfaction {
    width: calc(100% - 240px);
    color: #767E92;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.customer-satisfaction_col--satisfaction span {
    width: 50px;
    padding: 0 0 0 2px;
}
.customer-satisfaction_col--reviews {
    width: 100%;
    margin: 8px 0;
}
.customer-satisfaction_bar {
    width: 100%;
    height: 22px;
    margin: 2px 8px 2px 0;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e7ebef;
}
.customer-satisfaction_bar-value {
    width: 80%;
    position: relative;
    height: 100%;
    background: #29B159;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.24);
}
.customer-satisfaction_bar-value--green {
    background: #43B129;
}
.customer-satisfaction_bar-value--light-green {
    background: #71B129;
}
.customer-satisfaction_bar-value--yellow {
    background: #A7B129;
}
.customer-satisfaction_bar-value--orange {
    background: #D76410;
}
.customer-satisfaction_bar-value--red {
    background: #D71044;
}
.hr--customer-satisfaction {
    margin: 16px 0;
    border-color: rgba(118, 126, 146, 0.16);
}
/* Customer satisfaction bars */
/* Temp activity card fixes */
.profile_body .card {
  margin: 0 0 24px !important;
  width: 100%;
}
/* End Temp activity card fixes */

/* Accomplishment card */
.mat-card_accomplishments {
  width: 100%;
  padding: 8px 24px;
}
.mat-card_accomplishment {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0E4266;
  line-height: 1.2em;
  display: flex;
  align-items: center;
}
.mat-card_accomplishment-avatar {
  width: 32px;
  height: 32px;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  cursor: default;
}
.mat-card_accomplishment-avatar img {
  width: 100%;
}
/* End accomplishment card */

/* Profile placeholder cards */
.mat-card_body--placeholder {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    padding: 32px;
    cursor: default;
}
.mat-icon--placeholder {
    font-size: 48px;
    width: 100%;
    color: #767E92;
    margin: 0 0 8px 0;
    cursor: default;
}
.mat-meta--placeholder {
    width: 100%;
    font-size: 14px;
}
.mat-button--placeholder {
    margin: 24px 0 0 0;
}
/* End Placeholder cards */

/* Endorsement modal styles */
.endorsements-modal {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 20000; 
  display: flex;
  justify-content: center;
  align-items: center;
}
.endorsements-modal_background {
  background: rgba(59, 58, 64, 0.7);
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}
.endorsements-modal_card {
  width: 100%;
  max-width: 800px;
  max-height: 75vh;
  border-radius: 3px;
  background: #fff;
  z-index: 1;
  position: relative;
  overflow-y: scroll;
  box-shadow: 0 0 10px rgba(51,74,109,.4);
}
.endorsements-modal_card-heart {
  width: 100%;
  position: relative;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
}
.endorsements-modal_row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 24px 0;
}
.endorsements-modal_grey {
  color: #8B94A9;
}
.endorsements-modal_close {
  -webkit-appearance: none;
  background: none;
  color: rgba(139, 148, 169, 0.49);
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  font-size: 18px;
  margin: 0 0 0 24px;
  padding: 8px;
  transition: all .3s ease;
  cursor: pointer;
}
.endorsements-modal_close:hover {
  background: rgba(139, 148, 169, 0.26);
  color: #8B94A9;
}
.mat-card_pro-footer--endorsements-modal {
  width: auto;
}
@media (max-width: 650px) {
  .endorsements-modal_card {
    height: 100vh;
    max-height: 100vh;
    width: 100vw;
    border-radius: 0px;
  }
  .endorsements-modal_card-heart {
    padding: 32px 16px;
  }
}
/* End endorsement modal styles */  

/* Random tweaks */  
.profile_meta .icon-globe {
  top: 1px;
}
/* End random tweaks */  