div.mainmenu.itirepairsync::before {
  content: "\f6e3";
}

/* Data Quality Dashboard Styles */
.quality-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  height: 100%;
  transition: transform 0.2s;
}
.quality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.quality-score-huge {
  font-size: 3.5em;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin: 10px 0;
}
.quality-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7f8c8d;
  font-size: 0.85em;
  text-align: center;
  margin-bottom: 15px;
}
.quality-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}
.quality-metric-row:last-child {
  border-bottom: none;
}
.progress-minimal {
  background-color: #f0f2f5;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}
.progress-bar-minimal {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.bg-gradient-success {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}
.bg-gradient-warning {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
}
.bg-gradient-danger {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}
.bg-gradient-info {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.metric-value {
  font-weight: bold;
  color: #34495e;
}
.metric-name {
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.text-success {
  color: #27ae60;
}
.text-warning {
  color: #f39c12;
}
.text-danger {
  color: #c0392b;
}

/* ==========================================
   Linked Quality Analysis Page Styles
   ========================================== */

/* Progress container */
.quality-progress-container {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.quality-progress-bar {
  width: 100%;
  height: 24px;
  background: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}

.quality-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.quality-progress-text {
  text-align: center;
  color: #6c757d;
  margin-top: 5px;
}

/* Linked Quality Stats grid */
.lq-stats-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.lq-stat-card,
.stat-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  transition: box-shadow 0.2s;
}

.lq-stat-card:hover,
.stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lq-stat-card-header,
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.lq-stat-card-title,
.stat-card-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.lq-stat-card-total,
.stat-card-total {
  font-size: 12px;
  color: #6c757d;
}

.lq-stat-row,
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  margin: 2px -8px;
}

.lq-stat-row:hover,
.stat-row:hover {
  background: #f8f9fa;
}

.lq-stat-row.active,
.stat-row.active {
  background: #e3f2fd;
}

.lq-stat-row.not-clickable,
.stat-row.not-clickable {
  cursor: default;
  opacity: 0.7;
}

.lq-stat-row.not-clickable:hover,
.stat-row.not-clickable:hover {
  background: transparent;
}

.lq-stat-label,
.stat-label {
  color: #555;
}

.lq-stat-value,
.stat-value {
  font-weight: 600;
}

.lq-stat-value.match,
.stat-value.match {
  color: #28a745;
}

.lq-stat-value.different,
.stat-value.different {
  color: #dc3545;
}

.lq-stat-value.missing,
.stat-value.missing {
  color: #ffc107;
}

/* Stats summary table */
.stats-summary-table .clickable-cell {
  transition: background-color 0.2s;
}

.stats-summary-table .clickable-cell:hover {
  background-color: #f0f0f0;
  font-weight: bold;
}

.stats-summary-table .clickable-cell.has-issues {
  font-weight: 600;
}

.clickable-header {
  cursor: default;
}

/* Divergence table */
.divergence-table-container {
  margin-top: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.divergence-table {
  width: 100%;
  border-collapse: collapse;
}

.divergence-table th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 10;
}

.divergence-table th,
.divergence-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.divergence-table tr:hover {
  background: #f8f9fa;
}

.value-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-cell.dolibarr {
  background: #e8f5e9;
}

.value-cell.hubspot {
  background: #fff3e0;
}

.lq-status-badge,
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.lq-status-badge.different,
.status-badge.different {
  background: #ffebee;
  color: #c62828;
}

.lq-status-badge.missing_dolibarr,
.status-badge.missing_dolibarr {
  background: #fff8e1;
  color: #f57f17;
}

.lq-status-badge.missing_hubspot,
.status-badge.missing_hubspot {
  background: #e3f2fd;
  color: #1565c0;
}

/* Filter tabs */
.property-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 2px solid #e9ecef;
}

.property-tab {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  background: white;
}

.property-tab:hover {
  border-color: #007bff;
  color: #007bff;
}

.property-tab.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.property-tab .count {
  margin-left: 5px;
  font-weight: bold;
}

/* Utility classes */
.hidden {
  display: none;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 120px;
}

.skeleton-row {
  height: 40px;
  margin: 10px 0;
}
