/*Style for multidropdown fields*/

.input-group-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0;
  margin: 0
}

.input-group-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-use-restriction {
  margin-top: auto;
}

.multidropdown-fieldset{
    border: 1px solid #274247;
    outline: #274247;
    padding: 1rem;
    width: 100%;
    position: relative;
    margin-bottom: 2rem;
}

.multidropdown-legend{
    width: fit-content;
    font-size: 1rem;
}

.multidropdown-fieldset:focus{
    border: 1px solid #00824d;
    outline: 1px solid #00824d;
    outline-offset: 0;
}

.multidropdown-fieldset:hover{
    border: 1px solid #00824d;
    outline: 1px solid #00824d;
    outline-offset: 0;
}

.ssb-input.multidropdown-input-component{
    max-width: unset;
    width: 100%;
}


.input-group-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0 0.8rem 0.8rem 0;
  margin-bottom: 1rem;
  max-width: 100%;
}

.date-button-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 30%;
}

.ssb-input.input-component:has(input[id*="date-use_restrictions"]) {
  max-width: 200px;
  flex: none;
}

.multidropdown-delete-button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #d32f2f;
  background-color: #f44336;
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
  margin-top: 1rem;
}

.multidropdown-delete-button::before {
  content: "";
  width: 0.875rem;
  height: 0.125rem;
  background-color: white;
  display: block;
  margin: auto;
}

.multidropdown-delete-button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

.multidropdown-delete-button:active {
  transform: scale(0.95);
}

.multidropdown-delete-button:focus {
  outline: 2px solid #d32f2f;
  outline-offset: 2px;
}

[id^="label_date-use_restrictions-"][id*="-dataset-metadata-multidropdown-input"] {
  margin-bottom: 0;
}

.multidropdown-fieldset > button.ssb-btn.secondary-btn {
  margin-top: 0.2rem;
}

.input-group-row .ssb-dropdown.dropdown-component {
  width: 60%;
}

@media (max-width: 1180px) {
  .input-group-container {
      flex-direction: column;
  }
  .input-group-row{
      border: 1px solid green;
      padding: 0.8rem;
      flex-wrap: wrap;
      flex-direction: column;
  }
  .input-group-row .ssb-dropdown.dropdown-component {
      width: 100%;
}

  .date-button-row {
    flex-direction: row;
    gap: 0.6rem;
    width: 100%;
    justify-items: flex-start;
  }

  #use-restriction-list-container > div > .ssb-dropdown .dropdown-interactive-area button {
    font-size: 0.9rem;
  }
  #dataset-metadata-input-right > fieldset > button{
      font-size: 0.9rem;
  }

  .multidropdown-delete-button::before {
    width: 0.75rem;
    height: 0.1rem;
  }
  #use-restriction-list-container > div > .ssb-dropdown .dropdown-interactive-area button{
    word-break: break-word;
    hyphens: auto;
  }
  .ssb-dropdown.dropdown-component{
    min-width: unset;

  }
  .date-button-row > .multidropdown-delete-button{
    margin-top: 1rem;
  }
}
