/*Overrides for Tailwind CSS */

/*Form fields*/
.dataTables_wrapper select,
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem !important;
    color: #4a5568; /*text-gray-700*/
    padding-left: 1rem; /*pl-4*/
    padding-right: 1rem; /*pl-4*/
    padding-top: 0.5rem; /*pl-2*/
    padding-bottom: 0.5rem; /*pl-2*/
    line-height: 1.25; /*leading-tight*/
    border-width: 1px; /*border-2*/
    border-radius: 0.25rem;
    border-color: rgb(63, 63, 63); /*border-gray-200*/
}

/*Row Hover*/
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: #ebf4ff; /*bg-indigo-100*/
}

/*Pagination Buttons*/
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-weight: 400; /*font-bold*/
    border-radius: 0.25rem; /*rounded*/
    border: 1px solid transparent; /*border border-transparent*/
}

/*Pagination Buttons - Current selected */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important; /*text-white*/
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /*shadow*/
    font-weight: 400; /*font-bold*/
    border-radius: 0.25rem; /*rounded*/
    background: #667eea !important; /*bg-indigo-500*/
    border: 1px solid transparent; /*border border-transparent*/
}

/*Pagination Buttons - Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important; /*text-white*/
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /*shadow*/
    font-weight: 400; /*font-bold*/
    border-radius: 0.25rem; /*rounded*/
    background: #667eea !important; /*bg-indigo-500*/
    border: 1px solid transparent; /*border border-transparent*/
}

/*Add padding to bottom border */
table.dataTable.no-footer {
    border-bottom: 1px solid #e2e8f0; /*border-b-1 border-gray-300*/
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

/*Change colour of responsive icon*/
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    background-color: #667eea !important; /*bg-indigo-500*/
    font-size: 0.75rem !important;
}

@media (min-width: 640px) {
    /*Overrides for Tailwind CSS */

    /*Form fields*/
    .dataTables_wrapper select,
    .dataTables_wrapper .dataTables_filter input {
        color: #4a5568; /*text-gray-700*/
        padding-left: 1rem; /*pl-4*/
        padding-right: 1rem; /*pl-4*/
        padding-top: 0.5rem; /*pl-2*/
        padding-bottom: 0.5rem; /*pl-2*/
        line-height: 1.25; /*leading-tight*/
        border-width: 1px; /*border-2*/
        border-radius: 0.25rem;
        border-color: rgb(63, 63, 63); /*border-gray-200*/
        background-color: #edf2f7; /*bg-gray-200*/
    }

    /*Row Hover*/
    table.dataTable.hover tbody tr:hover,
    table.dataTable.display tbody tr:hover {
        background-color: #ebf4ff; /*bg-indigo-100*/
    }

    /*Pagination Buttons*/
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        font-weight: 700; /*font-bold*/
        border-radius: 0.25rem; /*rounded*/
        border: 1px solid transparent; /*border border-transparent*/
    }

    /*Pagination Buttons - Current selected */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        color: #fff !important; /*text-white*/
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
            0 1px 2px 0 rgba(0, 0, 0, 0.06); /*shadow*/
        font-weight: 700; /*font-bold*/
        border-radius: 0.25rem; /*rounded*/
        background: #667eea !important; /*bg-indigo-500*/
        border: 1px solid transparent; /*border border-transparent*/
    }

    /*Pagination Buttons - Hover */
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        color: #fff !important; /*text-white*/
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
            0 1px 2px 0 rgba(0, 0, 0, 0.06); /*shadow*/
        font-weight: 700; /*font-bold*/
        border-radius: 0.25rem; /*rounded*/
        background: #667eea !important; /*bg-indigo-500*/
        border: 1px solid transparent; /*border border-transparent*/
    }

    /*Add padding to bottom border */
    table.dataTable.no-footer {
        border-bottom: 1px solid #e2e8f0; /*border-b-1 border-gray-300*/
        margin-top: 0.75em;
        margin-bottom: 0.75em;
    }

    /*Change colour of responsive icon*/
    table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
    table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
        background-color: #667eea !important; /*bg-indigo-500*/
    }
}
