/* ATLAS_IOF_PROJECTS_V1 */

#atlas-iof-content:has(> #iof-projects-panel)
  > :not(#iof-projects-panel) {
  display: none !important;
}

.iof-projects-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
  color: #32464a;
}

.iof-projects-panel h3 {
  margin: 0;
  font-size: 19px;
}

.iof-projects-panel h4 {
  margin: 0 0 15px;
  font-size: 15px;
}

.iof-project-muted {
  font-size: 12px;
  color: #718189;
  margin: 4px 0;
}

.iof-project-form {
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe9e5;
  border-radius: 14px;
}

.iof-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 15px;
}

.iof-project-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #536a6e;
}

.iof-project-field input,
.iof-project-field select,
.iof-project-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px;
  border: 1px solid #d6e1dd;
  border-radius: 9px;
  background: #fff;
  color: #263c3a;
  font: inherit;
  font-size: 13px;
}

.iof-project-primary,
.iof-project-secondary {
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.iof-project-primary {
  background: #087c61;
  border: 1px solid #087c61;
  color: #fff;
}

.iof-project-secondary {
  background: white;
  border: 1px solid #cbdcd5;
  color: #087c61;
}

.iof-project-primary:disabled {
  opacity: .5;
  cursor: wait;
}

.iof-project-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.iof-project-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.iof-project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e1e9e5;
  background: #f8faf9;
  border-radius: 10px;
}

.iof-project-card strong {
  color: #27443b;
  font-size: 14px;
}

.iof-project-meta {
  display: grid;
  gap: 5px;
  text-align: right;
}

.iof-project-meta span {
  font-size: 12px;
  color: #718189;
}

@media (max-width: 680px) {
  .iof-project-grid {
    grid-template-columns: 1fr;
  }
}

/* ATLAS_IOF_INSTRUMENT_HELP_V1 */
#iof-projects-panel .iof-instrument-field {
  position: relative;
}

#iof-projects-panel .iof-instrument-help {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 30;
}

#iof-projects-panel .iof-instrument-help summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border: 1px solid #84c4ae;
  border-radius: 50%;
  background: #e9f6f1;
  color: #087c61;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

#iof-projects-panel .iof-instrument-help summary::-webkit-details-marker {
  display: none;
}

#iof-projects-panel .iof-instrument-legend {
  position: absolute;
  top: 29px;
  right: 0;
  width: min(350px, 78vw);
  box-sizing: border-box;
  padding: 17px;
  border: 1px solid #d6e3dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 44, 38, .18);
  color: #344b46;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
}

#iof-projects-panel .iof-instrument-legend > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

#iof-projects-panel .iof-instrument-legend p {
  margin: 8px 0;
}

#iof-projects-panel .iof-instrument-legend p strong {
  color: #087c61;
}
