.story__grid--forward {
    grid-template-areas: 'content' 'image';
}
 
.story__grid--reverse {
    grid-template-areas: 'image' 'content';
}
 
@media (min-width: 992px) {
   .story__grid--forward {
        grid-template-areas: 'content image';
    }
    
    .story__grid--reverse {
        grid-template-areas: 'image content';
    } 
}


.datatable__text {
    margin-bottom: 20px;
    opacity: 0.7;
    line-height: 1.6em;
}

.datatable__selects {
    display: grid;
    grid-gap: 1rem;
    margin-bottom: 20px;
}

.datatable__label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

.datatable__select {
    display: inline-block;
    min-height: 42px;
    min-width: 90px !important;
    width: 100%;
    padding: 0.5rem 40px 0.5rem 1rem;
    box-sizing: border-box;
    appearance: none;
    border: 1px solid var(--secondary-deep);
    border-radius: var(--border-radius);
    font-size: 1em;
    font-family: inherit;
    background-color: var(--secondary-light);
    color: var(--text);
    transition: border-color 0.25s ease;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 399 399' xmlns='http://www.w3.org/2000/svg' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st0%7Bfill:%23D1CDC6;%7D%3C/style%3E%3Cpath class='st0' d='M199,251.9c-4.7,0-9.4-1.8-13-5.3l-68.8-67.7c-7.3-7.2-7.4-18.9-0.2-26.2c7.2-7.3,18.9-7.4,26.2-0.2l55.8,54.9 l55.8-54.9c7.3-7.2,19-7.1,26.2,0.2c7.2,7.3,7.1,19-0.2,26.2L212,246.5C208.4,250.1,203.7,251.9,199,251.9z'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat, repeat;
    background-position: right 0.6em top 50%;
    background-size: 1.6em auto, 100%;
    outline: none;
}

.datatable__select::-ms-expand {
    display: none;
}

.datatable__select:hover {
    border-color: var(--secondary-darker);
}

.datatable table.dataTable {
    padding-top: 20px;
}

.datatable table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>th.sorting_asc {
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.datatable .dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    padding: 0.5rem 40px 0.5rem 1rem;
    box-sizing: border-box;
    border: 1px solid var(--secondary-deep);
    border-radius: var(--border-radius);
    background-color: var(--secondary-light);
    transition: border-color 0.25s ease;
    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 399 399' xmlns='http://www.w3.org/2000/svg' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st0%7Bfill:%23D1CDC6;%7D%3C/style%3E%3Cpath class='st0' d='M199,251.9c-4.7,0-9.4-1.8-13-5.3l-68.8-67.7c-7.3-7.2-7.4-18.9-0.2-26.2c7.2-7.3,18.9-7.4,26.2-0.2l55.8,54.9 l55.8-54.9c7.3-7.2,19-7.1,26.2,0.2c7.2,7.3,7.1,19-0.2,26.2L212,246.5C208.4,250.1,203.7,251.9,199,251.9z'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat, repeat;
    background-position: right 0.6em top 50%;
    background-size: 1.6em auto, 100%;
    outline: none;
}

.datatable .dataTables_wrapper .dataTables_length select:hover {
    border-color: var(--secondary-darker);
}

.datatable .dataTables_wrapper .dataTables_filter input {
    min-height: 36px;
    padding: 0.5rem 40px 0.5rem 1rem;
    box-sizing: border-box;
    border: 1px solid var(--secondary-deep);
    border-radius: var(--border-radius);
    background-color: var(--secondary-light);
    transition: border-color 0.25s ease;
    outline: none;
}

.datatable .dataTables_wrapper .dataTables_filter input:hover {
    border-color: var(--secondary-darker);
}

.datatable .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px;
}

.datatable .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.datatable .dataTables_wrapper .dataTables_paginate .paginate_button.current  {
    border-radius: 4px;
    color: var(--text-inverse)!important;
    background-color: var(--primary);
    border: unset;
}

.datatable table.dataTable thead>tr>th.sorting:before,
.datatable table.dataTable thead>tr>th.sorting_asc:before,
.datatable table.dataTable thead>tr>th.sorting_desc:before,
.datatable table.dataTable thead>tr>th.sorting_asc_disabled:before,
.datatable table.dataTable thead>tr>th.sorting_desc_disabled:before,
.datatable table.dataTable thead>tr>td.sorting:before,
.datatable table.dataTable thead>tr>td.sorting_asc:before,
.datatable table.dataTable thead>tr>td.sorting_desc:before,
.datatable table.dataTable thead>tr>td.sorting_asc_disabled:before,
.datatable table.dataTable thead>tr>td.sorting_desc_disabled:before {
    bottom: 55%;
}

.datatable table.dataTable thead>tr>th.sorting:after,
.datatable table.dataTable thead>tr>th.sorting_asc:after,
.datatable table.dataTable thead>tr>th.sorting_desc:after,
.datatable table.dataTable thead>tr>th.sorting_asc_disabled:after,
.datatable table.dataTable thead>tr>th.sorting_desc_disabled:after,
.datatable table.dataTable thead>tr>td.sorting:after,
.datatable table.dataTable thead>tr>td.sorting_asc:after,
.datatable table.dataTable thead>tr>td.sorting_desc:after,
.datatable table.dataTable thead>tr>td.sorting_asc_disabled:after,
.datatable table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 55%;
}

@media (min-width: 992px) {
    .datatable__selects {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1400px) {
    .datatable__chart {
        min-width: 1060px;
    }

    .datatable__chart-wrapper {
        padding-bottom: 20px;
        overflow-x: scroll;
    }

    .datatable__chart-wrapper::-webkit-scrollbar {
        height: 8px;
        background-color: var(--secondary-deep);
    }

    .datatable__chart-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--text-lightest);
    }
}

.datatable tbody tr td:not(:first-child) {
    white-space: nowrap;
}

.datatable tbody tr td:first-child {
    min-width: 200px;
}

@media (min-width: 992px) {
    .datatable tbody tr td:first-child {
        width: 100%;
    }
}