.opmk-page,
.opmk-modal {
  min-width: 0;
}

.opmk-queue-head,
.opmk-queue-status,
.opmk-actions,
.opmk-detail-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.opmk-queue-status,
.opmk-actions {
  justify-content: flex-end;
}

.opmk-queue-head h2 span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
}

.opmk-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}

.opmk-filters .field {
  min-width: 0;
}

.opmk-table {
  min-width: 680px;
}

.opmk-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.opmk-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.opmk-detail-title {
  justify-content: space-between;
}

.opmk-detail-title h3,
.opmk-detail dd,
.opmk-note {
  overflow-wrap: anywhere;
}

.opmk-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
}

.opmk-detail h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.opmk-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
}

.opmk-detail dt,
.opmk-hint,
.opmk-history {
  color: var(--muted);
  font-size: 12px;
}

.opmk-detail dd {
  margin: 2px 0 0;
  font-weight: 650;
}

.opmk-note {
  margin-top: 10px;
  font-size: 13px;
  white-space: pre-wrap;
}

.opmk-note strong {
  display: block;
  margin-bottom: 2px;
}

.opmk-hint {
  margin-bottom: 10px;
}

.opmk-wide {
  grid-column: 1 / -1;
}

.opmk-actions {
  margin-top: 13px;
}

.opmk-history {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opmk-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

@media (max-width: 600px) {
  .opmk-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 12px;
  }

  .opmk-filters .field:first-child {
    grid-column: 1 / -1;
  }
}
