/* main root element */

.ap-mesa-wrapper {
  position: relative;
}

/* styles for both header- and rows- tables */

.ap-mesa {
  table-layout: fixed;
  width: 100%;
  margin-bottom: 0;
}

/* the visible table header */

.mesa-header-table {
  border-bottom: none;
}

.mesa-header-table thead > tr > th {
  border-width: 1px;
}

/* the invisible table header; used for correct column widths */

.mesa-rows-table thead {
  height: 0;
  visibility: hidden;
}

.mesa-rows-table > thead > tr > th {
  border-width: 0;
  padding: 0 !important;
}

.mesa-rows-table-wrapper {
  overflow: auto;
}

.mesa-rows-table > tbody + tbody {
  border-top: none;
}

/* general styles for all cells in both tables */

.ap-mesa th {
  white-space: nowrap;
  position: relative;
}

.ap-mesa td {
  word-wrap: break-word;
  overflow: hidden;
}

/* this type of cell is used to show messages like "loading" */

.ap-mesa td.space-holder-row-cell {
  text-align: center;
}

/* search input */

.ap-mesa tr.ap-mesa-filter-row td input {
  width: 100%;
  border-radius: 2em;
  border: 1px solid #CCC;
  outline: none;
  text-indent: 0.3em;
  font-size: 90%;
}

.ap-mesa tr.ap-mesa-filter-row td {
  position: relative;
}

/* button to clear search */

.ap-mesa tr.ap-mesa-filter-row td .clear-search-btn {
  position: absolute;
  border-radius: 50%;
  border: none;
  right: 1em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.2;
  color: white;
  background-color: black;
  padding: 0;
  width: 15px;
  line-height: 15px;
}

/* activated search input, as in when there is text in it */

.ap-mesa tr.ap-mesa-filter-row td input.active {
  background-color: #3D82C2;
  color: #FFF;
  border-color: #747474;
}

/* placeholder object for when columns are being sorted */

.ap-mesa .ap-mesa-column-placeholder {
  background-color: #DDD;
}

/* handle to grab in order to resize a column */

.ap-mesa th .column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  border-width: 0 1px;
  cursor: col-resize;
  border-color: #DDD;
  border-style: solid;
}

/* this class is applied to a .column-resizer 
when a discreet width has been set on it */

.ap-mesa th .column-resizer.discreet-width {
  background-color: #DDD;
}

/* wrapper for text in a th */

.ap-mesa th .column-text {
  max-width: 100%;
  overflow: hidden;
  display: block;
}

/* the element showing what the new width will be */

.ap-mesa th .column-resizer-marquee {
  left: 0;
  top: 0;
  height: 100%;
  border: 1px dotted #DEDEDE;
  position: absolute;
}

/* sorting icons */

.ap-mesa th span.sorting-icon {
  font-size: 10px;
}

.ap-mesa th span.glyphicon-sort {
  opacity: 0.2;
}

.ap-mesa th.sortable-column {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* dummy row */

.ap-mesa-dummy-row {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAlCAYAAACDKIOpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiuHv37n+G////MzAxAMHQIQACDAC7twbaN2nkgwAAAABJRU5ErkJggg==');
  background-repeat: repeat;
}

table tbody .ap-mesa-dummy-row td {
  border-top: none;
  padding: 0;
}

.ap-mesa-pagination {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ap-mesa-pagination .rows-per-page-ctrl {
  float: right;
}

.ap-mesa-pagination .rows-per-page-ctrl .pagination {
  vertical-align: middle;
}

.ap-mesa-pagination .rows-per-page-msg {
  vertical-align: middle;
}