/**
  Styles relating to Lists
*/
.xv-list-header {
  background-color: @gray;
  color: @white;
  font-size: .6em;
  font-weight: bold;
  text-transform: uppercase;
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid @silver;

  .xv-list-column {
    padding-left: 7px;
    &.last {
      border-right: none;
    }
  }
}

/* List */
.xv-list-column {
  &.line-number {
    width: 30px;
    text-align: right;
  }
  &.name-column {
    width: 175px
  }
  &.right-column {
    width: 100px;
    text-align: right;
  }
  /*
    This is named "button-" because "icon-"
    clashes with font-awesome
  */
  &.button-column {
    width: 40px;
    font-size: 2.3em;
  }
  &.short {
    width: 100px;
  }
  &.small {
    width: 125px;
  }
  &.medium {
    width: 150px;
  }
  &.first {
    width: 300px;
  }
  &.second {
    width: 200px;
  }
  &.third {
    width: 100px;
  }
  &.money, &.quantity {
    width: 75px;
    text-align: right;
  }
  &.descr {
    width: 200px;
  }
}

.xv-list {
  background: @ghost;
  .xv-list-item > * {
    display: inline-block;
    vertical-align: middle;
  }

  .xv-list-item {
    background-color: @white;
    border-bottom: 1px solid @smoke;
    min-height: 32px;
    &.header {
      padding-top: 0;
    }
    &.inactive {
      background-color: @gray;
      color: @black;
      .xv-list-column {
        .xv-list-attr {
          background: transparent;
          &.placeholder {
            color: @gray;
          }
        }
      }
    }
    .xv-list-column {
      .list-icon {
        padding: 2px;
        color: @charcoal;
        vertical-align: sub;
        border: 1px solid @lightest-gray;
        .border-radius(2px);
      }
    }
    &.item-selected {
      background: @item-hilite-background;
      #gradient > .vertical(@item-hilite-background, @dark-slate-blue);

      .xv-list-attr {
        color: @white;
        &.placeholder {
          font-style: italic;
          color: @sky-blue;
        }
        &.hyperlink {
          color: @bright-orange;
        }
        &.header {
          background: @sky-blue;
        }
      }
    }
    .xv-list-item-gear {
      position: absolute;
      right: 0px;
      z-index: 999;
    }
  }
  &.xv-grid-list {
    background: @ghost;
    .xv-list-item > * {
      vertical-align: top;
    }
    .xv-list-item {
      padding-top: 7px !important;
      padding-bottom: 9px !important;
      border-bottom: 1px solid @silver !important;
      background: @ghost;
      &.item-selected {
        background: @item-hilite-background;
        #gradient > .vertical(@item-hilite-background, @dark-slate-blue);

        .xv-list-attr {
          color: @white;
          &.placeholder {
            font-style: italic;
            color: @sky-blue;
          }
          &.hyperlink {
            color: @bright-orange;
          }
          &.header {
            background: @sky-blue;
          }
        }
      }
      .xv-list-column {
        .xv-list-attr {
          font-size: 12px;
        }
        vertical-align: top;
        &.last {
          border-right: none;
        }
        &.name-column {
          padding-left: 7px;
        }
        &.first {
          padding-left: 7px;
        }
        &.second {
          padding-left: 7px;
        }
        &.third {
          padding-left: 7px;
        }
        &.short {
          padding-left: 7px;
        }
        &.small {
          padding-left: 7px;
        }
        &.medium {
          padding-left: 7px;
        }
        &.descr {
          padding-left: 7px;
        }
        .xv-list-attr {
          padding: 0px;
        }
      }
    }
  }
}

.xv-list-attr {
  padding: 5px;
  font-size: .8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: @black;
  @media (max-width: 480px) {
    padding: 2px 5px 2px 5px;
  }
  &.header {
    padding: 4px;
    background: @gray;
    font-size: .7em;
    font-weight: bold;
    text-transform: uppercase;
    color: @white;
  }
  &.footer {
    padding: 4px;
    background: @gray;
    font-size: .7em;
    font-weight: bold;
    text-transform: uppercase;
    color: @black;
  }
  &.right {
    // TODO: get rid of this absolute positioning
    position: absolute;
    right: 10px;
  }
  &.text-align-right {
    text-align: right;
  }
  &.bold {
    font-weight: bold;
  }
  &.error {
    color: @bright-red;
  }
  &.emphasis {
    color: @green;
  }
  &.warn {
    color: @light-orange;
  }
  &.italic {
    font-style: italic;
  }
  &.placeholder {
    font-style: italic;
    color: @dim-gray;
  }
  &.hyperlink {
    color: @slate-blue;
    cursor: pointer;
  }
  &.disabled {
    color: @dim-gray;
  }
}

/* Navigator */
.xv-navigator-header {
  font-size: small;
  font-weight: bold;
  text-transform: uppercase;
  color: @orange;
  padding-left: 20px;
  border-bottom: 1px solid @near-black;
}

.xv-workspace-header {
  color: @white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 0 0 8px;
}
