/* Scoped to the opt-in local development Custom Builder. */
#cmRoundConfiguration {
  border: 1px solid #cbdcff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f3f7ff;
}
#cmRoundConfiguration label,
.cm-round-instance label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 650;
}
.cm-round-tools {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin: 10px 0;
}
.cm-round-tools select,
.cm-round-instance input {
  max-width: 100%;
  padding: 8px;
  border: 1px solid #b8c6d7;
  border-radius: 6px;
  background: white;
  color: #17202d;
}
.cm-round-instance {
  margin-bottom: 14px;
}
.cm-assignment {
  align-items: start;
}
.cm-assignment > div:first-child {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.cm-round-edit-backdrop {
  position: fixed;
  inset: 0;
  background: #0008;
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 16px;
}
.cm-round-edit {
  width: min(720px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
.cm-round-edit label {
  display: block;
  margin: 12px 0;
}
.cm-round-edit textarea,
.cm-round-edit input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px;
}
.cm-round-edit textarea {
  min-height: 90px;
}
@media (max-width: 600px) {
  .cm-round-instance .custom-selected-row {
    display: block;
  }
  .cm-round-tools > * {
    max-width: 100%;
  }
  #cmRoundConfiguration select {
    max-width: 100%;
  }
  .cm-round-instance .cm-round-tools label {
    width: 100%;
  }
}

.cm-bank-pictures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cm-bank-pictures img {
  width: 120px;
  height: 160px;
  object-fit: contain;
}
.cm-bank-editor-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.cm-bank-editor-images .field {
  min-width: 0;
}
.cm-bank-editor-images img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin-top: 8px;
  object-fit: contain;
}
.cm-bank-editor-images img[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .cm-bank-editor-images {
    grid-template-columns: 1fr;
  }
}

.cm-picture-print-dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: 94vh;
  padding: 16px;
  overflow: auto;
  color: #172033;
}

.cm-picture-print-dialog::backdrop {
  background: #11182799;
}

.cm-picture-print-controls {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.cm-picture-print-controls .field {
  min-width: 0;
  max-width: 100%;
}

.cm-picture-print-status {
  margin: 10px 0;
}

.cm-picture-print-dialog iframe {
  display: block;
  width: 100%;
  aspect-ratio: 11 / 8.5;
  border: 1px solid #a7b0c2;
  background: white;
}
