/* Phase Name Mapping Styles */

.phase-mapping-container {

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 800px;
  padding: 20px;
  margin: 0 auto;

}

.phase-mapping-card {

  position: relative;

  width: 350px;
  margin: 10px 0;
  padding: 15px;

  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s all ease;

}

.phase-mapping-card.enabled {

  width: 400px;
  height: auto;

  background-color: #e8f5e8;
  border-color: #28a745;
  transform: scale(1.02);

}

.phase-card-header {

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 10px;

}

.phase-card-title {

  color: #333;
  font-size: 16px;
  font-weight: bold;

}

.phase-toggle {

  cursor: pointer;
  font-size: 30px;
  transition: color 0.2s ease;

}

.phase-toggle.active {

  color: #28a745;

}

.phase-toggle.inactive {

  color: #6c757d;

}

.phase-toggle.active:hover {

  color: #1e7e34;

}

.phase-toggle.inactive:hover {

  color: #28a745;

}

.phase-override-fields {

  max-height: 0;

  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;

}

.phase-mapping-card.enabled .phase-override-fields {

  max-height: 300px;

  opacity: 1;

}

.override-field {

  margin-bottom: 15px;

}

.override-field label {

  display: block;

  margin-bottom: 5px;

  color: #555;
  font-weight: 500;

}

.override-field input,
.override-field textarea {

  width: 100%;
  padding: 8px;

  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;

}

.override-field input:focus,
.override-field textarea:focus {

  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
  outline: none;

}

.phase-mapping-disabled {

  opacity: 0.7;

}

.loading-container {

  padding: 40px;

  color: #666;
  font-size: 16px;
  text-align: center;

}