:host {
  background: @scheme-color-primary;
  display: inline-block;
  height: 0;
  width: 600px;
}

.format-dialog {
  max-width: 599px;
  height: calc(100vh - 94px);
}

.format-dialog .ef-select-wrapper {
  width: 100%;
  max-width: 250px;
}

.option-panel ef-icon {
  cursor: default;
}

.format-value-example {
  border-width: 1px;
  border-style: solid;
  width: 280px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.format-sample-table {
  margin-left: auto;
  margin-right: auto;
  border-width: 1px;
  border-style: solid;
}

.format-sample-table tr {
  height: 24px;
}

.format-sample-table td {
  border-width: 1px;
  border-style: solid;
  padding-left: 8px;
  padding-right: 8px;
}

.cell-painter-sample {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#format-dialog-formatter-example,
cell-painter-renderer > div.cell {
  border-style: solid;
  border-width: 1px;
  height: 24px;
  line-height: 24px;
  margin-bottom: -1px;
  padding: 0 8px;
  text-align: right;
}

.format-dialog #conditionList {
  border: 1px solid @grid-cfd-border-color;
  width: 100%;

  div {
    height: 100%;
    vertical-align: middle;
    overflow: hidden;
    display: inline-flex;

  }

  .condition-item {
    width: 100%;

    .left-panel,
    .right-panel {
      min-width: 222px;
    }
  }

  .condition-item-title {
    line-height: @control-height;
  }

  .condition-button {
    text-align: right;

    & *+* {
      margin-left: 5px;
    }
  }

  .condition-sample-outer {
    flex-grow: 1;
    min-width: fit-content;
  }
  .condition-sample {
    width: auto;
    padding-left: 6px;
    padding-right: 6px;
    height: @button-height;
    line-height: @button-height;
    display: inline-block;
    vertical-align: middle;
    margin: @button-margin;
  }

  .condition-sample label {
    white-space: normal;
    text-overflow: unset;
  }
}


.format-dialog .conditions-container {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 10px;
}

.fx.cell-painter-sample .cell {
  box-sizing: border-box !important;
  display: table;
  line-height: inherit;
  position: relative;
  table-layout: fixed;
  vertical-align: middle;
  visibility: visible;
  width: 100%;
}

.fx.cell-painter-sample .valigner {
  display: table-cell;
  height: 100%;
  vertical-align: middle;
  width: 100%;
}

.fx.cell-painter-sample .text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  width: 100%;
}

.fx.cell-painter-sample .tr-bid-offer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  overflow-x: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.fx.cell-painter-sample .tr-bid-offer-center {
  white-space: nowrap;
}

.fx.cell-painter-sample .tr-bid-offer-left {
  text-overflow: ellipsis;
  overflow-x: hidden;
}

.fx.cell-painter-sample .tr-bid-offer-pip {
  display: inline-block;
  font-size: xx-large;
  line-height: 0.75em;
  text-overflow: ellipsis;
  overflow-x: hidden;
  overflow-y: hidden;
  vertical-align: middle;
}

.fx.cell-painter-sample .tr-bid-offer-sub {
  text-overflow: ellipsis;
  overflow-x: hidden;
  vertical-align: top;
}

/* TODO: Table shouldn't have height */
table {
  width: 100%;
  height: 50px;
  border-collapse: collapse;
  box-sizing: border-box;
  border-spacing: 0;
  table-layout : fixed;
}
table td {
  position: relative;
  border: 1px solid @grid-cfd-border-color;
  padding: 4px;
  box-sizing: border-box;
}
.blinking-borders td::after {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-width: 1px;
  border-right-style: solid;
  border-bottom-style: solid;
  border-color: inherit;
}

.text-bar {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  padding-right: 4px;
  padding-left: 4px
}


/*---------------------------------*/

.display-style-panel__header {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
}

.colors-panel,
.conditions-container,
.display-style-panel__header,
.display-format-heatmap__apply {
  margin-bottom: 10px;
}

.value-format__inner {
  display: flex;
}

.condition-item,
.display-style-panel__content,
.highlight-apply-block__inner,
.display-format-heatmap__apply,
.display-format-heatmap__midpoint,
.colors-panel,
.highlight-panel,
.colortext-basedon,
.highlight-basedon,
.conditions-panel__header,
.value-format .section-panel,
.display-style .section-panel,
.align-section,
.preview,
.colors-panel,
.highlight-panel {
  display: flex;
  flex-wrap: wrap;
}

.conditions-container__order {
  display: flex;
  justify-content: flex-end;
}

.highlight-apply-block__inner > label,
.display-format-heatmap__midpoint > label,
.display-format-heatmap__apply > label,
.conditions-container__order > label,
.conditions-panel__header > label,
.align-section > label {
  display: flex;
  align-items: center;
  margin-right: 10px;
  max-width: 80px;
}

.highlight-apply-block__inner {
  margin-top: 5px;
}

.display-style-panel__content,
.conditions-panel {
  width: 100%;
}

.conditions-panel-inner,
.left-panel, .right-panel {
  flex: 1;
}

.left-panel {
  margin-right: 15px;
}

#conditionList,
.display-style-panel__content > .left-panel,
.display-style-panel__content > .right-panel,
.display-style-panel__header > .left-panel,
.display-style-panel__header > .right-panel,
.conditions-panel__header > .left-panel,
.conditions-panel__header > .right-panel,
.colors-panel > .left-panel,
.colors-panel > .right-panel,
.highlight-panel > .left-panel,
.highlight-panel > .right-panel,
.section-panel > .left-panel,
.section-panel > .right-panel {
  min-width: 230px;
}

.colortext-basedon > .left-panel,
.colortext-basedon > .right-panel,
.highlight-basedon > .left-panel,
.highlight-basedon > .right-panel {
  min-width: 110px;
}

.colortext-basedon > .left-panel,
.highlight-basedon > .left-panel {
  margin-right: 10px;
}


.ef-another-field {
  width: 100%;
  max-width: 250px;
}

.conditions-container__add {
  margin-left: 10px;
}

.conditions-panel__header > .right-panel {
  display: flex;
  align-self: flex-end;
}

.section-panel {
  padding: 10px;
}

.value-format,
.display-style,
.updates {
  min-height: 40px;
}

.conditions-panel__header > .left-panel{
  display: flex;
  flex-direction: column;
}

.display-style-panel__menu {
  margin-bottom: 10px;
}

.value-menu-description {
  align-self: center;
}

.value-menu-description > ef-icon {
  margin-left: 3px;
  vertical-align: top;
}

#colorConditionDialog {
  .container {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
  }

  .color-example-container {
    display: inline-block;
    box-sizing: border-box;
  }
  .section + .section {
    margin-top: 20px;
  }
  .input-group + .input-group {
    margin-top: 5px;
  }
  .input-side {
    vertical-align: middle;
    width: 50%;
    display: inline-block;
  }

  .input-side > * {
    width: 100%;
    margin: 0;
  }

  .color-example {
    height: @input-height;
    width: 100%;
    cursor: pointer;
    border: 1px solid #000000;
    box-sizing: border-box;
  }
  .no-color {
    background: linear-gradient(to bottom right, transparent calc(50% - 2px), var(--no-color-line-color, red) calc(50% - 1px), var(--no-color-line-color, red) calc(50% + 1px), transparent calc(50% + 2px));
  }
  #colorDialogSample {
    height: @input-height;
    line-height: @input-height;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    border: 1px solid #000000;
    box-sizing: border-box;
    border-color: @grid-cfd-border-color;
  }
}