@layer uuc-sidebar-header-priority {
/* Three columns with provider, work, and receiving information. The delivery address spans the last two columns. */
#root .oc-preview .oc-paper .oc-paper__blocks {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3px 12px !important;
  align-items: start !important;
  margin-bottom: 8px !important;
}

#root .oc-preview .oc-paper .oc-paper__metadata {
  display: contents !important;
}

#root .oc-preview .oc-paper .oc-paper__metadata > div {
  display: grid !important;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#root .oc-preview .oc-paper .oc-paper__metadata :is(dt, dd) {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-wrap: anywhere !important;
}


/* First group: supplier identity, contacts and address. */
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(1) { grid-area: 1 / 1 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(3) { grid-area: 2 / 1 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(4) { grid-area: 3 / 1 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(5) { grid-area: 4 / 1 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(6) { grid-area: 5 / 1 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(2) { grid-area: 6 / 1 !important; }

/* Second group: order references and work location. */
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(7) { grid-area: 1 / 2 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(7) { grid-area: 2 / 2 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(1) { grid-area: 3 / 2 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(3) { grid-area: 4 / 2 !important; }

/* Third group: receiving and billing contacts. */
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(4) { grid-area: 1 / 3 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(5) { grid-area: 2 / 3 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(6) { grid-area: 3 / 3 !important; }
#root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(2) { grid-area: 6 / 2 / auto / 4 !important; }
@media screen and (max-width: 767px) {
  #root .oc-preview .oc-paper .oc-paper__blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 12px !important;
  }
  #root .oc-preview .oc-paper .oc-paper__metadata > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1px !important;
  }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(1) { grid-area: 1 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(7) { grid-area: 1 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(3) { grid-area: 2 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(7) { grid-area: 2 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(4) { grid-area: 3 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(1) { grid-area: 3 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(5) { grid-area: 4 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(3) { grid-area: 4 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(6) { grid-area: 5 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(4) { grid-area: 5 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(5) { grid-area: 6 / 1 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(6) { grid-area: 6 / 2 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(1) > div:nth-child(2) { grid-area: 7 / 1 / auto / 3 !important; }
  #root .oc-preview .oc-paper .oc-paper__metadata:nth-of-type(2) > div:nth-child(2) { grid-area: 8 / 1 / auto / 3 !important; }
}
}
