/*
  Definitions for the responsive table component.
*/
/* Table module CSS variable definitions. */
:root {
  --table-border-color: #e1e1e1;
  --table-border-separator-color: #e1e1e1;
  --table-head-back-color: #eee;
  --table-head-fore-color: #59686b;
  --table-body-back-color: #fff;
  --table-body-fore-color: #777;
  --table-body-alt-back-color: #eee;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  display: flex;
  flex: 0 1 auto;
  flex-flow: row wrap;
  padding: var(--universal-padding);
  padding-top: 0;
}

table caption {
  font-size: 1.5rem;
  margin: calc(2 * var(--universal-margin)) 0;
  max-width: 100%;
  flex: 0 0 100%;
}

table thead, table tbody {
  display: flex;
  flex-flow: row wrap;
  border: 0.0625rem solid var(--table-border-color);
}

table thead {
  z-index: 999;
  border-radius: var(--universal-border-radius) var(--universal-border-radius) 0 0;
  border-bottom: 0.0625rem solid var(--table-border-separator-color);
}

table tbody {
  border-top: 0;
  margin-top: calc(0 - var(--universal-margin));
  border-radius: 0 0 var(--universal-border-radius) var(--universal-border-radius);
}

table tr {
  display: flex;
  padding: 0;
}

table th, table td {
  padding: calc(2.5 * var(--universal-padding));
}

table th {
  text-align: center;
  background: var(--table-head-back-color);
  color: var(--table-head-fore-color);
}

table td {
text-align: center;
background: var(--table-body-back-color);
color: var(--table-body-fore-color);
border-top: 0.0625rem solid var(--table-border-color);
}
table td img{
margin: 0.6rem 0 0 0;
}

table td span {
    display: inline-block;
margin: 1rem 0 0 0;
    color:#aaa;
}

table td span img {
margin: 0 0 -0.25rem 0;
}

table td span a{
    border: 0.0625rem solid #0093B1;
    font-size: 0.85rem;
    font-weight:bold;
    border-radius: 15rem;
    border-style: solid;
    padding: 0.6rem 1rem;
    color: #0093B1;
}

table td span a:hover {
    color:#027b93;
    background:#f1f1f1;
    text-decoration:none;
    box-shadow:none;
}


table:not(.horizontal) {
  overflow: auto;
}

table:not(.horizontal) thead, table:not(.horizontal) tbody {
  max-width: 100%;
  flex: 0 0 100%;
}

table:not(.horizontal) tr {
  flex-flow: row wrap;
  flex: 0 0 100%;
}

table:not(.horizontal) th, table:not(.horizontal) td {
  flex: 1 0 0%;
  overflow: hidden;
  text-overflow: ellipsis;
}

table:not(.horizontal) thead {
  position: sticky;
  top: 0;
}

table:not(.horizontal) tbody tr:first-child td {
  border-top: 0;
}

table.horizontal {
  border: 0;
}

table.horizontal thead, table.horizontal tbody {
  border: 0;
  flex-flow: row nowrap;
}

table.horizontal tbody {
  overflow: auto;
  justify-content: space-between;
  flex: 1 0 0;
  margin-left: calc( 4 * var(--universal-margin));
  padding-bottom: calc(var(--universal-padding) / 4);
}

table.horizontal tr {
  flex-direction: column;
  flex: 1 0 auto;
}

table.horizontal th, table.horizontal td {
  width: 100%;
  border: 0;
  border-bottom: 0.0625rem solid var(--table-border-color);
}

table.horizontal th:not(:first-child), table.horizontal td:not(:first-child) {
  border-top: 0;
}

table.horizontal th {
  text-align: right;
  border-left: 0.0625rem solid var(--table-border-color);
  border-right: 0.0625rem solid var(--table-border-separator-color);
}

table.horizontal thead tr:first-child {
  padding-left: 0;
}

table.horizontal th:first-child, table.horizontal td:first-child {
  border-top: 0.0625rem solid var(--table-border-color);
}

table.horizontal tbody tr:last-child td {
  border-right: 0.0625rem solid var(--table-border-color);
}

table.horizontal tbody tr:last-child td:first-child {
  border-top-right-radius: 0.25rem;
}

table.horizontal tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.25rem;
}

table.horizontal thead tr:first-child th:first-child {
  border-top-left-radius: 0.25rem;
}

table.horizontal thead tr:first-child th:last-child {
  border-bottom-left-radius: 0.25rem;
}

@media screen and (max-width: 767px) {
  table, table.horizontal {
    border-collapse: collapse;
    border: 0;
    width: 100%;
    display: table;
  }
  table thead, table th, table.horizontal thead, table.horizontal th {
    border: 0;
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
  }
  table tbody, table.horizontal tbody {
    border: 0;
    display: table-row-group;
  }
  table tr, table.horizontal tr {
    display: block;
    border: 0.0625rem solid var(--table-border-color);
    border-radius: var(--universal-border-radius);
    background: #fafafa;
    padding: var(--universal-padding);
    margin: var(--universal-margin);
    margin-bottom: calc(2 * var(--universal-margin));
  }
  table th, table td, table.horizontal th, table.horizontal td {
    width: auto;
  }
  table td, table.horizontal td {
    display: block;
    border: 0;
    text-align: right;
  }
  table td:before, table.horizontal td:before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
  }
  table th:first-child, table td:first-child, table.horizontal th:first-child, table.horizontal td:first-child {
    border-top: 0;
  }
  table tbody tr:last-child td, table.horizontal tbody tr:last-child td {
    border-right: 0;
  }
  table td img,table td span,table td button,table td input{
  margin-top: 0;
}

}

:root {
  --table-body-alt-back-color: #eee;
}

table.striped tr:nth-of-type(2n) > td {
  background: var(--table-body-alt-back-color);
}

@media screen and (max-width: 768px) {
  table.striped tr:nth-of-type(2n) {
    background: var(--table-body-alt-back-color);
  }
}

:root {
  --table-body-hover-back-color: #fafafa;
}

table.hoverable tr:hover, table.hoverable tr:hover > td, table.hoverable tr:focus, table.hoverable tr:focus > td {
  background: var(--table-body-hover-back-color);
}

@media screen and (max-width: 768px) {
  table.hoverable tr:hover, table.hoverable tr:hover > td, table.hoverable tr:focus, table.hoverable tr:focus > td {
    background: var(--table-body-hover-back-color);
  }
}

@media screen and (max-width: 479px) {
table td img{
	    max-width:85%;
	}
	table td span a{
	    padding:0.5rem 0.75rem;
	}
}