/*
 * Custom reusable styles for Customer Recognition Panel & Network Tree
 * Created for refactor from inline styles in getContactAddon.volt
 */

:root {
  --danger-color: #DC2626;
  --warning-color: #F59E0B;
  --success-color: #10B981;
  --info-color: #3B82F6;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.profile-avatar {
  flex-shrink: 0;
  margin-right: 12px;
}

.profile-avatar-img {
  width: 60px;
  height: 60px;
  border: 2px solid var(--success-color, #1ab394);
  border-radius: 50%;
}

.profile-main {
  flex-grow: 1;
  min-width: 0;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}

.profile-title {
  margin: 0;
  font-size: 16px;
}

.profile-segment-label {
  font-size: 9px;
  padding: 2px 6px;
}

.profile-tenure {
  font-size: 11px;
}

.profile-info {
  margin: 0 0 2px 0;
  font-size: 12px;
  color: #676a6c;
}

.profile-info:last-child {
  margin-bottom: 0;
}

.clv-alert {
  padding: 8px 12px;
  margin-bottom: 8px;
  border-left: 4px solid #f8ac59;
}

.clv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clv-label {
  font-size: 11px;
  color: #8a6d3b;
}

.clv-value {
  font-size: 14px;
  color: #8a6d3b;
}

.clv-row + .clv-row {
  margin-top: 4px;
}

.arpu-value {
  font-size: 13px;
  color: #8a6d3b;
}

#outstanding-issues-alert {
  margin: 0 0 8px 0;
  padding: 8px 10px;
  display: none;
}

.issues-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.issues-alert-main {
  flex-grow: 1;
}

/* Timeline Icon & Timeline Item Styles */
.timeline-item-b {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7eaec;
}

.timeline-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

.timeline-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e7eaec;
  color: #676a6c;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.timeline-content {
  flex-grow: 1;
  min-width: 0;
}

.timeline-header {
  margin-bottom: 3px;
}

.timeline-text {
  color: #676a6c;
  font-size: 12px;
  margin: 3px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-footer {
  margin-top: 3px;
}

/* Customer Recognition Card Layout Baru */
.customer-recognition-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px 18px 18px 18px;
  max-width: 340px;
  margin: 0 auto;
  font-family: var(--font-family-primary, 'Inter', Arial, sans-serif);
}
.crc-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 15px;
}
.crc-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}
.crc-avatar-icon {
  font-size: 28px;
  color: #bdbdbd;
}
.crc-profile {
  text-align: left;
}
.crc-name {
  font-weight: 600;
  font-size: 18px;
  color: #222;
  margin-bottom: 2px;
}
.crc-email {
  font-size: 13px;
  color: #888;
  margin-bottom: 1px;
}
.crc-phone {
  font-size: 13px;
  color: #888;
}
.crc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.crc-label {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}
.crc-value {
  font-size: 13px;
  color: var(--primary-text-color);
  font-weight: 600;
}
.crc-value-row {
  margin-bottom: 2px;
}
.crc-card {
  box-shadow: 0 2px 8px 0 rgba(16, 30, 54, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 18px 20px 14px 20px;
  margin-bottom: 14px;
}
.crc-sla-churn {
  margin-bottom: 14px;
}
.crc-badge {
  font-weight: 600;
  border-radius: 8px;
  background: var(--light-gray-color);
  border: none;
  display: inline-block;
  padding: 4px 8px 2px;
  font-size: 12px;
}
.crc-badge-success {
  background: var(--success-color);
  color: #fff;
  border: none;
}
.crc-badge-warning {
  background: var(--warning-color);
  color: #fff;
  border: none;
}
.crc-badge-danger {
  background: var(--danger-color);
  color: #fff;
  border: none;
}
.crc-badge-info {
  background: var(--info-color);
  color: #fff;
  border: none;
}
.crc-badge-analytics {
  background: var(--analytics-color);
  color: #fff;
  border: none;
}
.crc-badge-note {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}
.crc-churn-row {
  margin-bottom: 2px;
}
.crc-churn-bar-wrap {
  margin-top: 4px;
  margin-bottom: 0;
}
.crc-churn-bar-bg {
  width: 100%;
  height: 7px;
  background: #FECACA;
  border-radius: 4px;
  overflow: hidden;
}
.crc-churn-bar {
  height: 100%;
  background: #ed5565;
  border-radius: 4px 0 0 4px;
}
.crc-status-service .crc-row {
  margin-bottom: 7px;
}

.crc-name-row {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 3px;
  margin-bottom: 2px;
}

.crc-segment-badge {
  font-size: 10px;
  padding: 2px 7px;
  margin-left: 2px;
  vertical-align: middle;
}

.crc-tenure {
  font-size: 11px;
}

.crc-sla-row {
  margin-bottom: 2px;
}

.crc-sla-detail-row {
  margin-bottom: 6px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crc-sla-detail {
  display: flex;
  align-items: center;
  gap: 3px;
}

.crc-sla-ticket {
  color: #ed5565;
  font-weight: 600;
}

.crc-sla-sep {
  margin: 0 4px;
}

.crc-sla-subject {
  color: #676a6c;
}

.crc-sla-detail-btn {
  margin-left: 8px;
}

.crc-churn-reason-row {
  margin-top: 2px;
  font-size: 11px;
  color: #a94442;
}

.crc-churn-reason {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pointer-help {
  cursor: help;
}

.crc-badge-soft-success {
  background: #D1FAE5;
  color: var(--success-color);
}
.crc-badge-soft-warning {
  background: #FEF3C7;
  color: var(--warning-color);
}
.crc-badge-soft-danger {
  background: #ffdcdc;
  color: var(--danger-color);
}
.crc-badge-soft-info {
  background: #DBEAFE;
  color: var(--info-color);
}
.crc-badge-soft-analytics {
  background: #EDE9FE;
  color: var(--analytics-color);
}
.crc-badge-soft {
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
  border: none;
  display: inline-block;
}

.b-l-info {
  border-left: 3px solid var(--info-color);
}
.b-l-success {
  border-left: 3px solid var(--success-color);
}
.b-l-warning {
  border-left: 3px solid var(--warning-color);
}
.b-l-danger {
  border-left: 3px solid var(--danger-color);
}
.crc-card h5 {
    margin: 10px 0 15px 0;
    color: var(--primary-color-text); 
    font-size: 14px;
}

/* Custom tooltip styling for churn-reason and others */
.crc-custom-tooltip {
  position: absolute;
  background: #ffffff;
  color: #222222;
  border: 2px solid #999;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  padding: 12px 14px;
  z-index: 999999;
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
  word-wrap: break-word;
  white-space: pre-wrap;
  pointer-events: none;
  display: none;
}