.grid-view {
    position: relative;
    margin: 2em -2em 0 -2em;
    overflow: auto;
}

.grid-view .summary {
    display: inline-block;
    position: sticky;
    bottom: 4em;
    padding: 1em 2em;
}

.grid-view tbody {
    background: white;
}

table,
table thead,
table thead tr,
table thead tr th,
table + ul.pagination {
    background: inherit;
}

table {
    border-collapse: collapse;
    color: #262a3e;
    font-size: .875em;
    font-weight: 500;
    width: 100%;
}

.grid-view table {
    box-shadow: 0 -2em 2em rgba(0, 0, 25, .05), 0 2em 2em rgba(0, 0, 25, .05);
}

table a[href]:hover {
    text-decoration: none;
}

table thead tr th {
    background: white;
    white-space: nowrap;
    z-index: 1;
}

thead th {
    box-shadow: 0 1px #e9eaf0;
    font-size: .8125rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    text-align: left;
}

tr {
    border-bottom: 1px solid #e9eaf0;
}

tr[data-key] {
    cursor: pointer;
}

tbody tr[data-key]:hover {
    background: #fafafc;
}

th {
    font-weight: 600;
    text-align: left;
}

th.action-column {
    width: 1px;
}

table.detail-view th {
    padding: 25px 25px 25px 5px;
    vertical-align: top;
}

th a {
    color: #262a3e;
    display: block;
    padding: 15px 5px;
}

th a.asc,
th a.desc{
    color: #6a6f85;
}

th a[data-sort]:before {
    color: #6a6f85;
    content: "unfold_more";
    display:inline-block;
    font-family: "Material Icons", sans-serif;
    margin-right: .25em;
    vertical-align: middle;
}

th a[data-sort].asc:before {
    content: "expand_less";
}

th a[data-sort].desc:before {
    content: "expand_more";
}

td {
    padding: 25px 5px;
    vertical-align: top;
}

td .not-set {
    color: rgba(38, 42, 62, 0.5);
}

td img {
    margin: -15px 0;
}

td:last-child {
    white-space: nowrap;
}

td:last-child > .wrapped {
    white-space: normal;
}

.detail-view td ul,
.detail-view td li {
    margin: 0;
    padding: 0;
}

.detail-view td li:not(:last-child) {
    padding-bottom: .5em;
}

.filters td {
    padding: 20px 5px;
}

.filters td:first-child {
    width: 1px;
}

@media screen and (max-width: 720px) {
    .grid-view td {
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 1px;
    }
}

.grid-view th:first-child,
.grid-view td:first-child {
    padding-left: 10px;
    text-align: center;
}

.grid-view th:last-child,
.grid-view td:last-child {
    padding-left: 0;
    padding-right: 10px
}

.grid-view td:first-child input[name$="[id]"] {
    width: 5em;
}

form tr {
    border-bottom: none;
}

form table thead tr th {
    background: transparent;
    padding: 1em;
}

form td {
    padding: .5em 0 .5em 1em;
}

table + ul.pagination {
    background: white;
    box-shadow: 0 -1px #e9eaf0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 5px;
    position: -webkit-sticky;
    position: sticky;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
}

table + ul.pagination,
table + ul.pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

table + ul.pagination {
    /*margin-bottom: -2em;*/
}

table + ul.pagination li span,
table + ul.pagination li a {
    color: #262a3e;
    display: inline-block;
    padding: 15px 10px;
    margin: 0 5px;
}

table + ul.pagination li.active a,
table + ul.pagination li span {
    color: #6a6f85;
    cursor: default;
}

table + ul.pagination a:hover {
    text-decoration: none;
}

td [aria-label] {
    display: inline-block;
    margin: -.5em 0;
    opacity: .4;
}

tr:hover td [aria-label] {
    display: inline-block;
    opacity: 1;
}
