.Suggest.Field {
  position: relative;
  height: auto;
}

.Suggest.Field.edit {
  height: 3em;
}

.Suggest.edit {
  white-space: nowrap;
}

.Suggest table {
  white-space: nowrap;
}

.Suggest table td,
.Suggest table th {
  white-space: normal;
}

.Suggest table .GlobalFilter {
  display: none;
}

table.dynamic .Suggest > div:nth-child(1) {
  max-height: 100%;
  overflow: hidden;
}

.Suggest > div:nth-child(1) {
  max-height: 100%;
}

.Suggest.edit > div > .Icon {
  margin-left: 0.25em;
  margin-right: 0.25em;
  height: 3em;
  width: 1.5em;
  display: inline-block;
  max-height: 100%;
  background-size: 0.75em;
  background-image: url("UserInterface.Icon.Caret.Bottom.Gray.svg");
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}

.Suggest > div > .Values .Field {
  min-height: 0;
  height: auto;
  line-height: inherit;
  min-width: 0;
  max-width: auto;
}

.Suggest > div > .Values {
  min-height: 1.5em;
  line-height: 1.5em;
  max-height: 100%;
}

.Suggest .Suggest > div > .Values {
  min-height: auto;
  margin: 0;
  border-spacing: 0;
}

/* Value box of suggests in edit mode */
.Suggest.edit > div > .Values > tbody > .Value:not(:empty) {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 0.25em;
  margin-right: 0.25em;
  padding-left: 4px;
}

/* Grid layout in edit mode */
.Suggest.edit > div {
  display: -ms-grid;
  -ms-grid-columns: min-content min-content 1fr;
  -ms-grid-rows: 1fr auto 1fr;
  display: grid;
  grid-template-columns: min-content min-content 1fr;
  grid-template-rows: 1fr auto 1fr;
}

.Suggest.edit > div > .Icon {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  grid-area: 1 / 1 / 4 / 2;
}

.Suggest.edit > div > .Values {
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
  -ms-grid-row: 2;
  -ms-grid-row-span: 1;
  grid-area: 1 / 2 / 3 / 3;
}

.Suggest.edit > div > .TextInput {
  -ms-grid-column: 3;
  -ms-grid-column-span: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  grid-area: 1 / 3 / 4 / 4;
}

/* Grid layout in card mode */
.Suggest > div > .Values > tbody > .Value.Card {
  display: -ms-grid;
  -ms-grid-rows: auto auto;
  -ms-grid-columns: auto max-content auto;
  display: inline-grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto max-content auto;
  transition: ease 0.1s;
}

.Suggest > div > .Values > tbody > .Value > td.Icon {
  grid-row: 1 / 3;
  width: 0;
}

.Suggest.edit > div > .Values > tbody > .Value.Card > td.Main {
  grid-column: span 10;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Main {
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1000;
  grid-column: 2 / 10;
  grid-row: 1;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(1) {
  -ms-grid-column: 2;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(2) {
  -ms-grid-column: 3;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(3) {
  -ms-grid-column: 4;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(4) {
  -ms-grid-column: 5;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(5) {
  -ms-grid-column: 6;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(6) {
  -ms-grid-column: 7;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(7) {
  -ms-grid-column: 8;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(8) {
  -ms-grid-column: 9;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:nth-child(9) {
  -ms-grid-column: 10;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Embellishment {
  -ms-grid-row: 1;
  -ms-grid-row-span: 2;
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub {
  -ms-grid-row: 2;
  -ms-grid-row-span: 1;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
  grid-row: 2 / 3;
}

/* Link effect on suggest fields in display mode */
.Suggest .Value {
  color: #0090d8;
  display: inline-block;
  vertical-align: top;
}

.Suggest > div > .Values > tbody > .Value:not([data--uri]) {
  color: inherit;
}

.Suggest > div > .Values > tbody > .Value:not(.Card):hover > td.Main,
.Suggest > div > .Values > tbody > .Value.Card > td.Main > span:hover,
.Suggest > div > .Values > tbody > .Value.Card > td.Main > span:hover > * {
  text-decoration: underline;
  cursor: pointer;
}

.Suggest > div > .Values > tbody > .Value:not([data--uri]) {
  cursor: default;
}

.Suggest > div > .Values > tbody > .Value:not([data--uri]):hover,
.Suggest > div > .Values > tbody > .Value:not([data--uri]):hover > td.Main,
.Suggest > div > .Values > tbody > .Value:not([data--uri]) > td.Main > span:hover {
  cursor: default;
  text-decoration: none;
}

.Suggest > div > .Values > tbody > .Value.Card.Inactive > * {
  text-decoration: line-through;
}

.Suggest > div > .Values > tbody > .Value.Card.Inactive > td.Main > span:hover {
  text-decoration: line-through underline;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Icon {
  background-size: 1.5em;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100%;
  padding: 0;
  width: 0;
  display: inline-block;
}

/* Close icon on a selected suggest value */
.Suggest.edit > div > .Values > tbody > .Value.Card > td:last-child {
  display: inline-block;
  grid-column-start: 100;
  grid-row-start: 1;
  grid-row-end: 3;
}

/* Card layout for properties of suggest fields */
.Suggest > div > .Values > tbody > .Value.Card > td {
  display: none;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Main {
  font-size: 100%;
  line-height: inherit;
  display: inline-block;
  padding-left: 0px;
  padding-right: 4px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub {
  display: inline-block;
  font-size: 80%;
  color: #58595B;
  line-height: 1.2em;
  padding: 0 0;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub:empty {
  display: none;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Embellishment {
  height: 100%;
  padding: 0;
  padding-right: 0.25em;
  display: -ms-grid;
  -ms-grid-rows: 1fr auto 1fr;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Embellishment > * {
  grid-row: 2 / 3;
}

/* Seperator for Sub properties in card layout */
.Suggest > div > .Values > tbody > .Value.Card > td.Sub:not(:empty) ~ td.Sub::before {
  content: "\2022";
  font-weight: bold;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

/* Fixes for alignment problems */
.Suggest > div > .Values > tbody > .Value.Card > td.Sub > div {
  display: inline-block;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub > .CheckBox {
  display: inline-block;
  vertical-align: top;
  padding: 0;
}

/* Nested suggest fields */
.Suggest .Main .Suggest > div > .Values > tbody > .Value.Card > td.Main {
  color: inherit;
}

.Suggest .Sub .Suggest > div > .Values > tbody > .Value.Card > td.Main {
  color: #7dbcdc;
}

.Suggest .Suggest > div > .Values > tbody > .Value.Card > td.Sub {
  display: none;
}

.Suggest > div > .Values > tbody > .Value.Card > td.Sub .Card > .Sub {
  display: none;
}

.Suggest .Suggest > div > .Values {
  padding: 0px 0px;
  line-height: 1.2em;
  height: 1.2em;
}

.Suggest > div > .Values > tbody > .Value .Suggest {
  display: inline-block;
  vertical-align: top;
}

.Suggest > div > .Values > tbody > .Value > td {
  vertical-align: top;
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  min-height: auto;
}

.Suggest > div > .Values > tbody > .Value .Clear {
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  margin: 0;
  background-image: url("UserInterface.Icon.Cross.svg");
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  display: block;
}

.Suggest .Values:empty + .TextInput {
  padding-left: 0;
}

.Suggest .TextInput {
  display: block;
  max-height: 100%;
  box-sizing: border-box;
  vertical-align: top;
}

.Suggest .OuterDropDown {
  position: absolute;
  z-index: 2;
}

.Suggest .OuterDropDown:hover {
  z-index: 3;
}

.Suggest .InnerDropDown {
  line-height: 1.5em;
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  background-color: #FFFFFF;
  border: 1px solid #ebebeb;
}

.Suggest .InnerDropDown.Expanded {
  display: block;
}

.Suggest.edit > div > .Values > .Value > * {
  overflow: hidden;
  max-width: 400px;
}

.Suggest > div > .Values .Value + .Value::before {
  content: "\2022";
  font-weight: bold;
  margin-left: 0.5em;
  margin-right: 0.5em;
  display: inline-block;
}

.Suggest.edit > div > .Values > .Value:hover > * {
  max-width: 100%;
}

.Suggest table.dynamic tr:focus,
.Suggest table.dynamic tr.hot {
  background-color: #D5EBF7;
}

.Suggest table.dynamic > tbody > tr.Selected {
  background-color: #BBDFF1;
}

/* TODO: Move to an appropriate unit. */
.Suggest.edit > .TRelationType > .Values > .Value div:nth-last-child(2),
.Suggest:not(.edit) > .TRelationType > .Values > .Value div:nth-last-child(1) {
  font-size: 0.75em;
}

/* Multiple values */
.Suggest[data--supports-multiple-values="true"] {
  height: auto;
  white-space: normal;
}

.Suggest[data--supports-multiple-values="true"] table {
  white-space: normal;
}

.Suggest[data--supports-multiple-values="true"].edit > div {
  grid-template-rows: auto;
  grid-template-columns: min-content max-content auto;
}

.Suggest[data--supports-multiple-values="true"].edit .TextInput {
  display: inline-block;
  height: 2em;
}

.Suggest[data--supports-multiple-values="true"].edit .Values {
  white-space: normal;
  display: inline-block;
  max-width: 28em;
}
