/* Tables */
/**********/


/* General table styles */
table {
  border: 1px solid @tableBorder;
  font-weight: 500;
  font-size: 14px;
  line-height: 40px;
  max-width:none;
  color:@textColor;

  a {
    color: @CFE_light_blue;
    &:hover {
      color: @CFE_light_blue;
    }
  }

  tr, td, th {
    word-break: break-word;
  }

  th, .td {
    padding: 12px 8px !important;
  }

  td.real, td.int {
    text-align: right;
    font-family: @monospaceFontFamily;
  }

  .filter {
    margin-left:0;
  }

  thead {
    color: @tableHeaderFontColor;
  }

  th {
    white-space:nowrap;
  }
}

/* container for wide tables that should scroll horizontal */
.table-contain {
  width:100%;
  overflow-x:auto;
}

/* rows with no hover backround style */
table.no-hover tr:hover {
  background-color: transparent;
}

tr.no-hover:hover {
  background-color: transparent;
}

/* table with no outer border */
.table-horizontal {
  border: none;
  tr,td,th {
    border: none;
    vertical-align: top;
  }

  tr {
    border-top:1px solid @tableLight;
  }

  tr:last-child {
    border-bottom:1px solid @tableLight;
  }
}

table.fixed {
  table-layout: fixed;
}

/* No borders at all */
.borderLesstable {
  border:none;
  * {
     border:none;
  }
}


/* sortable columns */
/********************/
th.sort-head {
  cursor:pointer;
  color:@textColor;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  i {
    text-decoration:none;
    color: @textColor;
  }
}

th.sort-head:hover {
  background: #EFEFF1;
  color:@textColor;
  i {
    color:@textColor;
    text-decoration:none;
  }
}

th.sort-head:active {
  i {
    color:@textColor;
  }
}


// forces the cell to take up as much available space as possible
td.fill {
  width:99%;
}

.max-table {
  max-width:1100px;
}

td.no-wrap {
    white-space:nowrap;
}

td.actions a {
  margin-left: 10px;
}

td.right,th.right {
  text-align: right;
}

th.actions.pause {
  width: 285px;
}


/* JQuery datatable */
.dataTable {
  width:100% !important;
}

.w-auto {
  width: auto!important;
  * { margin: 0px !important; }
}
