@import url("../01_events/autocomplete.css");
@import url("../01_events/widget.css");
@import url("../01_events/events.main.css");

/****************************** CONTACT MAIN – EMPTY STATE ***************************/
.rutanCMS .contactEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(0, 0, 0, 0.2);
  gap: 12px;
}

.rutanCMS .contactEmpty i {
  font-size: 64px;
}

.rutanCMS .contactEmpty p {
  font-size: 16px;
  margin: 0;
}

/****************************** CONTACT MAIN – WIDGET LAYOUT ***************************/
.rutanCMS .contactMain {
  height: 100%;
  overflow-y: auto;
}

.rutanCMS .contactWidgets {
  padding: 30px 40px;
}

/****************************** CONTACT CARD ***************************/
.rutanCMS .contactCard {
  position: relative;
  width: calc(50% - 10px);
  margin-bottom: 24px;
}

.rutanCMS .contactCardActions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
}

.rutanCMS .contactHeader {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.rutanCMS .contactAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rutanCMS .contactAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rutanCMS .contactAvatar.placeholder i {
  font-size: 32px;
  color: rgba(0, 0, 0, 0.2);
}

.rutanCMS .contactHeaderInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rutanCMS .contactHeaderInfo h1 {
  margin: 0;
}

.rutanCMS .contactSalutation {
  font-size: 12px;
  color: var(--cmsSecondaryColor);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/****************************** BADGES ***************************/
.rutanCMS .contactBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rutanCMS .contactBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cmsHighlightColor);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rutanCMS .contactBadge i {
  font-size: 10px;
}

.rutanCMS .contactBadge.badgeRed {
  background: #e74c3c;
}

.rutanCMS .contactBadge.badgeYellow {
  background: #f0ad4e;
  color: #333;
}

.rutanCMS .contactBadge.badgeBlue {
  background: #3498db;
}

.rutanCMS .contactJobTitle {
  font-size: 14px;
  color: var(--cmsSecondaryColor);
}

.rutanCMS .contactCompanyRef {
  color: var(--cmsSecondaryColor);
}

.rutanCMS .contactCompanyRef i {
  margin-right: 4px;
}

/****************************** DETAIL ROWS ***************************/
.rutanCMS .contactDetails {
  display: flex;
  flex-direction: column;
}

.rutanCMS .contactDetailRow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rutanCMS .contactDetailRow:last-child {
  border-bottom: none;
}

.rutanCMS .contactDetailRow > div:not(.rowActions) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.rutanCMS .contactDetailRow label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cmsSecondaryColor);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rutanCMS .contactDetailRow > div:not(.rowActions) a,
.rutanCMS .contactDetailRow > div:not(.rowActions) span {
  color: var(--cmsMainColor);
  text-decoration: none;
  word-break: break-all;
}

.rutanCMS .contactDetailRow > div:not(.rowActions) a:hover {
  color: var(--cmsHighlightColor);
}

.rutanCMS .contactDetailRow .rowActions {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.contactDetailRow .button {
  & i {
    font-size: 20px;
    margin-right: 0;
  }

  & svg {
    width: 24px;

    & path {
      fill: var(--cmsMainColor);
    }
  }

  &:hover {
    background: var(--cmsHighlightColor) !important;
  }
}

.rutanCMS .contactCardActions .button {
  & i {
    margin: 0;
  }
  &:hover {
    background: var(--cmsHighlightColor) !important;
  }
}

/****************************** META ***************************/
.rutanCMS .contactMeta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.3);
}

