/* Name with email tooltip */

#datatable-sap-ref-history tbody tr td:first-child span[title]:hover,
#datatable-sap-ref-history tbody tr td:nth-child(2) span[title]:hover {
  color: #4a90e2;
}

/* Certificate icon wrapper */
#datatable-sap-ref-history .doc-icon-wrapper {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Documents icons */
#datatable-sap-ref-history .doc-icon {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Active icons hover effect */
#datatable-sap-ref-history .doc-icon-active:hover {
  transform: scale(1.2);
}

/* Disabled icons - no hover effect */
#datatable-sap-ref-history .doc-icon-disabled {
  pointer-events: none;
}

/* Archive indicator — static, no hover scale */
#datatable-sap-ref-history .lrc-archive-indicator {
  pointer-events: auto;
  cursor: default !important;
  transform: none !important;
}

select[name='datatable-sap-ref-history_length'] {
  width: 70px;
}
/* Referral History Header */
.sap-ref-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.send-referral-btn {
  background-color: #4a90e2;
  color: #ffffff;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.send-referral-btn:hover {
  background-color: #357abd;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Companion icons */
.companion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.companion-icon .check-icon {
  color: #28a745;
  font-size: 18px;
}

.companion-icon .disabled-icon {
  color: #ccc;
  font-size: 18px;
}

/* Insights Section */
.sap-ref-insights {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.insight-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px 16px;
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.insight-card.highlight {
  background: #e7f3ff;
  border-color: #4a90e2;
}

.insight-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.insight-label {
  font-size: 14px;
  color: #6c757d;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.3;
}

/* Color scheme for different insights */
.insight-card.blue .insight-number {
  color: #4a90e2;
}

.insight-card.green .insight-number {
  color: #28a745;
}

.insight-card.grey .insight-number {
  color: #6c757d;
}

/* Archive (history) rows — shown when a user has retaken a course */

@media (max-width: 768px) {
  .sap-ref-insights {
    flex-direction: column;
  }

  .insight-card {
    min-width: 100%;
  }
}
