/* FMM Table Styles */
.fmm-placeholder-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filter Bar */
.fmm-filter-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 8px;
  flex-wrap: wrap;
}

.fmm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

.fmm-filter-group label {
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
}

.fmm-filter-select {
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.fmm-filter-select:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 2px rgba(52, 73, 94, 0.1);
}

/* Table Container */
.fmm-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border: 1px solid #bdc3c7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Table */
.fmm-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

/* Header Styles */
.fmm-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.fmm-table thead th {
  background: #34495e;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid #2c3e50;
  font-size: 12px;
  line-height: 1.2;
}

.fmm-program-header {
  background: #2c3e50 !important;
  position: sticky;
  left: 0;
  z-index: 11;
  min-width: 200px;
  text-align: left !important;
}

.fmm-pillar-header {
  background: #3e5771 !important;
  font-size: 13px;
  font-weight: 700;
}

.fmm-impact-header {
  background: #34495e;
  font-size: 11px;
}

.fmm-indicator-header {
  background: #2c3e50 !important;
  font-size: 10px;
  min-width: 100px;
  max-width: 120px;
  word-wrap: break-word;
}

/* Body Styles */
.fmm-program-row:nth-child(even) {
  background: rgba(236, 240, 241, 0.3);
}

.fmm-program-row:hover {
  background: rgba(44, 62, 80, 0.05);
}

.fmm-program-cell {
  position: sticky;
  left: 0;
  background: #f8f9fa;
  border-right: 2px solid #bdc3c7;
  padding: 12px;
  min-width: 200px;
  max-width: 200px;
  z-index: 5;
}

.fmm-program-row:nth-child(even) .fmm-program-cell {
  background: #f1f2f3;
}

.fmm-program-row:hover .fmm-program-cell {
  background: rgba(44, 62, 80, 0.08);
}

.fmm-program-name {
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
}

.fmm-program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fmm-score-cell {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid #d5dbdb;
  font-weight: 500;
  color: #2c3e50;
  min-width: 80px;
}

.fmm-score-cell:hover {
  background: rgba(44, 62, 80, 0.1);
}

/* Tag Styles */
.fmm-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  background: white;
}

.fmm-tag.tag-coc {
  color: #3498db;
  border-color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.fmm-tag.tag-sc {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.fmm-tag.tag-org {
  color: #27ae60;
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

.fmm-tag.tag-mat {
  color: #9b59b6;
  border-color: #9b59b6;
  background: rgba(155, 89, 182, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .fmm-filter-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  .fmm-filter-group {
    min-width: 100%;
  }
  
  .fmm-table {
    font-size: 12px;
  }
  
  .fmm-table thead th {
    padding: 8px 4px;
    font-size: 10px;
  }
  
  .fmm-program-cell {
    min-width: 150px;
    max-width: 150px;
  }
  
  .fmm-program-name {
    font-size: 12px;
  }
  
  .fmm-score-cell {
    padding: 8px 4px;
    min-width: 60px;
  }
  
  .fmm-tag {
    font-size: 9px;
    padding: 1px 4px;
  }
}
