$dirtyBoxWidth : 10px;
.mongo-schema{
  line-height: 20px;
  margin:-1px;
  border: 1px solid transparent;
  //border-left: $dirtyBoxWidth solid transparent;

  &-root {
    margin-bottom: 15px;
  }

  &-shadow-warning {
    font-style:italic;
    font-size:12px;
  }

  &-is-editing {
    border: 1px solid $blue2;
  }
  &-arrayelem{
    font-style:italic;
    font-size:12px;
  }
  &-typepicker {
    @include monospace();
    font-weight:normal;
    font-size: 12px;
    margin-right: 20px;
    span {
      padding-right:3px;
    }
  }
  &-addfield{
    cursor: pointer;
    border: 1px solid transparent;
    display:inline-block;
    padding:3px;
    white-space: pre;
    font-size: 13px;
    &:hover{
      border: 1px solid $gray4;
    }
  }
  &-colon{
    @include monospace();
    font-size: 12px;
    padding-left:5px;
    padding-right:5px;
  }
  &-other {
    font-style:italic;
    font-size:12px;
    border: 1px solid transparent;
  }
  display: flex;
  flex-direction: column;
  min-width: 330px;
  &-object{
    display: flex;
  }
  &-indent{
    @include monospace();
    font-size: 12px;
    display:inline-block;
    white-space: pre;
    width:25px;
  }
  &-mono{
    white-space: nowrap;
    font-weight: bold;
    @include monospace();
    font-size: 12px;

  }
  &-is-hovering {
    border: 1px solid $blue2 !important;
  }
  &-field{
    padding:1px;
    border: 1px solid transparent;
    cursor: pointer;
    width:100%;
    display: inline-flex;
    align-items:center;
    flex-direction:row;
    &-control {
      display:inline-block;
      color: $gray3;
      &-is-hidden {
        visibility: hidden;
      }
    }
    &-has-error{
      color:red;
    }
    &-is-dirty{
      font-weight:bold;
      color: black;
      border: 1px solid $alertOrange;
      //border-left: $dirtyBoxWidth solid $alertOrange;
      background-color: $alertOrangeBg;
      &.mongo-schema-field-is-editing {
        border: 1px solid $blue2;
      }
    }
    &-is-editing{
      color: white;
      background-color: $blue2;
      .mongo-schema-field-control {
        color: white;
      }
      .mongo-schema-value-preview {
        color: white;
        &.mongo-schema-value-preview-is-shadowed {
          color: rgba(255,255,255,.6);
        }
      }
    }
  }
  &-header {
    color: $gray3;
    font-family: 'Akzidenz',sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding-right: 10px;
    &-middle {
      padding-right: 32px;
    }
    &-last {
      padding-right: 14px;
    }
  }
  &-value{
    margin-left: auto;
    &-noperms{
      font-family: 'Akzidenz',sans-serif;
      font-style: italic;
      font-size: 11px;
      margin-right: 4px;
    }
    &-preview {
      @include monospace();
      &-is-hidden{
        border: 1px solid $gray7;
        color: $gray5;
      }
      &-is-shadowed{
        color: $gray3;
        text-decoration: line-through;
      }
      font-family: 'Akzidenz',sans-serif;
      font-size: 12px;
      align-items: center;
      display:flex;
      justify-content: center;
      font-weight: bold;
      display: inline-block ;
      line-height:12px;
      text-align:center;
      padding:3px;
      width:17px;
      height: 17px;
      margin:1px;
      color: black;
      text-transform: uppercase;
    }
  }
}
/*
.mongo-schema {
  font-size:1.1em;
  margin-right: 10px;
  white-space: pre;
  &-indent{
    display:inline-block;
    width:15px;
  }
  &-is-hovering {
    background-color: $green6;
  }
  &-is-editing {
	  border: 1px solid $green7;
  }
  &-root{
    font-style: italic;
    text-transform: uppercase;
  }
  &-other {
    font-style:italic;
    font-size:12px;
    border: 1px solid transparent;
  }
  &-arrayelem{
    font-style:italic;
    font-size:12px;
  }
  &-mono{
    white-space: pre;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  }
  &-colon{
    padding-left:5px;
    padding-right:5px;
  }
  &-newfield-error{
    font-size: 11px;
    color:red;
  }
  &-field {
    cursor: pointer;
    padding:5px;
    &-has-error{
      color:red;
    }
    &-is-dirty{
      font-weight:bold;
    }
    &-control {
      width:0px;
      color: $gray3;
      &-is-hidden {
        visibility: hidden;
      }
    }
  }
  &-value {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-direction:row;
    &-noperms{
      font-style: italic;
      font-size: 11px;
    }
    &-preview {
      &-is-hidden{
        visibility: hidden;
      }
      font-family: sans-serif;
      font-size: 10px;
      align-items: center;
      display:flex;
      justify-content: center;
      background-color: white;
      font-weight: bold;
      display: inline-block ;
      line-height:12px;
      text-align:center;
      padding:3px;
      width:17px;
      height: 17px;
      margin:1px;
      border-radius:3px;
      border: 1px solid black;
      color: black;
      text-transform: uppercase;
    }
  }
}
*/
