/* Reset CSS for tables from https://meyerweb.com/eric/tools/css/reset/ */
.senaatti-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.senaatti-table caption,
.senaatti-table tbody,
.senaatti-table tfoot,
.senaatti-table thead,
.senaatti-table tr,
.senaatti-table th,
.senaatti-table td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    color: inherit;
}

/* Table styles */
.senaatti-table {
    width: 100%;
    height: auto;
    margin-bottom: 1em;
}

.senaatti-table caption {
    font-size: 1.4em;
    padding: 0.75em 0.625em;
}

.senaatti-table caption,
.senaatti-table thead th,
.senaatti-table thead td,
.senaatti-table tfoot td{
    font-family: 'Simplon-BP-Medium', 'sans-serif';
}

.senaatti-table td,
.senaatti-table th {
    padding: 0.75em 0.625em;
    vertical-align: top;
}

.senaatti-table td > *:last-child,
.senaatti-table th > *:last-child {
    margin-bottom: 0;
}

.senaatti-table--striped thead {
    border-bottom: 2px solid #ddd;
}

.senaatti-table--striped tbody tr {
    border-bottom: 1px solid #ddd;
}

.senaatti-table--striped tbody tr:nth-of-type(2n+1) {
    background-color: #f2f2f2;
}

.senaatti-table--striped tfoot {
    border-top: 2px solid #ddd;
}

/* Table-row styles */
.senaatti-table-row {}

/* Table-cell styles */
.senaatti-table-cell {}

.senaatti-table-cell--no-line-wrap {
    white-space: nowrap;
}

/* Table wrap styles */
.senaatti-table-wrap {
    display: block;
    width: 100%;
}

.senaatti-table-wrap--overflow-scroll {
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.senaatti-table-wrap--overflow-scroll > div {
    overflow-y: hidden;
}

.senaatti-table-wrap--overflow-scroll-with-gradient:after {
    content: '';
    position: absolute;
    right: 0;
    height: 100%;
    width: 1.875em;
    top: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.senaatti-table-wrap--overflow-scroll-with-gradient thead th:last-child,
.senaatti-table-wrap--overflow-scroll-with-gradient thead td:last-child,
.senaatti-table-wrap--overflow-scroll-with-gradient tbody td:last-child {
    padding-right: 1.875em;
}

/* Responsive stacked styles */
.senaatti-table--responsive-stacked.mobile-table td[data-title]:before {
    display: block;
    font-weight: 400;
    font-family: 'Simplon-BP-Medium', 'sans-serif';
    margin-bottom: 0.375em;
}

.senaatti-table--responsive-stacked.mobile-table td + td {
    padding-top: 0;
}