#structure .tr.s-wrapping {
  height: auto;
  min-height: var(--tr-height);
}

#structure .tr.s-wrapping .td {
  height: auto;
}

#structure .tr.s-wrapping .celldiv {
  display: flex;
  flex-direction: row;
  white-space: normal;
  height: auto;
  max-height: none;
}

#structure .tr.s-wrapping .value {
  white-space: normal;
}

#structure .tr.s-wrapping .grad {
  display: none;
}

#structure .tr.s-wrapping .td.s-absent-value .celldiv {
  height: 18px;
}

#structure .st-drag-gap {
  background-color: #f4f5f7;
  position: absolute;
  width: 100%;
  border-bottom: 1px solid #eeeeee;
}

#structure .tr.s-wrapping .celldiv.s-main .s-item-attribute {
  display: block;
  margin-top: 2px;
}

/* override general rule */
#structure .tr.s-wrapping .celldiv.s-main .s-item-attribute:before {
  content: '';
  padding: 0;
}

/* override general rule */
#structure .tr.s-wrapping .celldiv .value .s-summary-icon .alm-folder,
#structure .tr.s-wrapping .celldiv .value .s-summary-icon .alm-sprint,
#structure .tr.s-wrapping .celldiv .value .s-summary-icon .alm-loop {
  vertical-align: -1px;
}

#structure .tr.s-wrapping .celldiv .value .s-user-field {
  flex-wrap: wrap;
  row-gap: 4px;
}

/* Testy workaround */
#structure .tr.s-wrapping .celldiv .tty-mlozenge,
#structure .tr.s-wrapping .celldiv .tty-lozenge {
  white-space: nowrap;
}

/* Remove top/bottom gaps for wiki panel */
#structure .tr.s-wrapping .celldiv .value > .panel:first-child {
  margin-top: 0;
}

#structure .tr.s-wrapping .celldiv .value > .panel:last-child {
  margin-bottom: 0;
}

#structure .tr.s-wrapping .celldiv .value {
  overflow: hidden;
}

#structure .tr.s-wrapping .celldiv .value div.labels-wrap.value {
  width: 100%;
}
