﻿/*Heading and sorting icon styles﻿*/

.govuk-table__cell .govuk-button {
    margin-bottom: 0px;
}

.dataTables_length select {
    font-size: initial;
}

.govuk-table__header {
    padding-left: 0px !important;
}

table.dataTable thead .sorting:after {
    padding-left: 10px;
}

table.dataTable thead .sorting_asc:after {
    padding-left: 10px;
}

table.dataTable thead .sorting_desc:after {
    padding-left: 10px;
}

table.dataTable thead .sorting_asc {
    background-image: none;
}

table.dataTable thead .sorting_desc {
    background-image: none;
}

th.govuk-table__header:focus {
    background-color: #ffdd00;
    outline: 3px solid transparent;
    border-bottom: 4px solid #0b0c0c;
    padding-bottom: 7px;
}

.tbl-word-break {
    word-break: break-all;
}

table.dataTable td ul {
    padding-left: 0px !important;
}

table.dataTable thead th {
    padding-left: 10px !important;
} 

/*Select for number of lines styles*/

.dataTables_wrapper .dataTables_length select {
    font-family: Inter, "Open Sans", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.25;
    box-sizing: border-box;
    max-width: 100%;
    height: 40px;
    height: 2.5rem;
    padding: 5px;
    border: 2px solid #0b0c0c;
}

@media print {
    .dataTables_wrapper .dataTables_length select {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .dataTables_wrapper .dataTables_length select {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.25;
    }
}

@media print {
    .dataTables_wrapper .dataTables_length select {
        font-size: 14pt;
        line-height: 1.25;
    }
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px;
}

    .dataTables_wrapper .dataTables_length select option:active,
    .dataTables_wrapper .dataTables_length select option:checked,
    .dataTables_wrapper .dataTables_length select:focus::-ms-value {
        color: #ffffff;
        background-color: #1d70b8;
    }


/* Styles all relating to Datatables - moved out of site.css on 11/06/20 by Julianne Shawe */
.dataTables_length {
    margin-right: 25px;
}

[id*='_wrapper'].dataTables_wrapper .dataTables_paginate {
margin: 8px 0 8px 0;
border-radius: 0;
display: inline-block;
}

    [id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button,
    [id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button.current {
        position: relative;
        float: left;
        padding: 9px 18px;
        line-height: 1.5;
        text-decoration: none;
        color: #1d70b8 !important;
        background-color: #fff;
        border: 1px solid #ddd;
        margin-left: -1px;
    }

        [id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            z-index: 2;
            color: #05416f !important;
            background: #e6e6e6 !important;
            border-color: #ddd;
        }
                

[id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button.current {
    z-index: 3;
    /*color: #999 !important;*/
    color: #474747 !important;
    background: #f5f5f5 !important;
    border-color: #ddd;
    cursor: default;
}

/* set focus to match GDS approach */
        [id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button:focus {
            z-index: 2;
            color: #0b0c0c !important;
            background: #ffdd00 !important;
            border-color: #ddd;
        }

        [id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
            z-index: 2;
            color: #0b0c0c !important;
            background: #ffdd00 !important;
            border-color: #ddd;
        }


[id*='_wrapper'].dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #474747 !important;
    background-color: #fff !important;
    border-color: #ddd;
    cursor: not-allowed;
}

[id*='_wrapper'].dataTables_wrapper .dataTables_info, .dataTables_paginate {
    font-family: GDS Transport,Arial,sans-serif;
}

.dataTables_filter input {
    background-image: url('/assets/images/magnifyicon_21.png');
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 190px 13px !important;
    display: block;
    width: 100%;
    height: 48px;
    padding: 9px 18px;
    font-size: 18px;
    font-family: GDS Transport,Arial,sans-serif;
    line-height: 1.5;
    color: black;
    border: 2px solid black;
    border-radius: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

    .dataTables_filter input:focus {
        outline: 3px solid #fd0;
        outline-offset: 0;
        box-shadow: inset 0 0 0 2px;
    }

    .dataTables_filter input:hover {
        outline: 3px solid #fd0;
        outline-offset: 0;
        box-shadow: inset 0 0 0 2px;
    }

table.dataTable thead .sorting {
    background-image: none;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    color: #575757;
    border-color: #ddd;
    cursor: not-allowed;
    position: relative;
    float: left;
    padding: 9px 18px !important;
    line-height: 1.5;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px;
}
