.flex-table {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-cell {
  flex: 1;
  padding: 10px;
  border: 1px solid #d0d0d0;
}


.table {
  background-color: #fff;
  /* overflow-x: scroll; */
}

.table.center table tr th,
.table.center table tr td {
  text-align: center;
}

.table.border {
  border: 1px solid #d0d0d0;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.table.stretch tr th:first-child,
.table.stretch tr td:first-child {
  width: 100%;
}

table {
  width: 100%;
  overflow-y: scroll;
  border-collapse: collapse;
}

table th,
table td {
  white-space: nowrap;
  padding: 10px;
  padding-left: 15px;
  text-align: left;
}

table th.sortable {
  cursor: pointer;
}

table th.sortable i {
  position: relative;
  display: inline-block;
  font-size: 12px;
  line-height: 12px;
  transform: translateY(-1px);
  margin-right: 3px;
  color: #aaa;
}

table th.sortable.active {
  color: inherit;
}

table thead tr {
  border-top: none;
  /* border-bottom: 2px solid #CCCCCC; */
  background-color: #fff;
}

table thead tr th {
  font-weight: bold;
  color: #505050;
}

table tr td a,
table tr td a:hover {
  text-decoration: none !important;
}

table tr {
  width: 100%;
  border-top: 1px solid #e5e5e5;
}

table tr:first-child {
  border-top: none;
}

table tr:nth-child(even) {
  background-color: #f6f6f6;
}

table tr td .actions {
  /* color: #000; */
  margin-left: 0;
}

table tr td .action {
  cursor: pointer;
  margin-left: 3px;
  margin-right: 3px;
}

table tr td .action.disabled {
  color: #aaa;
  fill: #aaa;
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

table tr td .action:hover {
  color: #808080;
}

table tr td .actions a,
table tr td .actions i {
  text-decoration: none !important;
  border: none !important;
}

table tr td .action i {
  font-size: 20px;
  line-height: 20px;
  margin-left: 2px;
  margin-right: 2px;
}

table tr td .action.delete:hover {
  color: #bb0000;
}

/**
 * Table filters
 */
.table-filters {
  display: flex;
  margin-bottom: 10px;
}

.table-filters > div:not(:first-of-type) {
  margin-left: 8px;
  width: 100%;
}

.table-filters .limit {
  min-width: 75px;
}

.table-filters .button {
  position: relative;
  transform: translate(0, 2px);
}
