﻿.tableCommon {
    .dataTables_wrapper.no-footer .dataTables_scrollBody {
        border-color: var(--Stroke);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        margin-top: 35px;
        background: transparent;
        padding: 5px;
        font-size: 14px;
    }

    table.dataTable thead th,
    table.dataTable thead td {
        border-color: var(--Stroke);
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-right: 20px;
        margin-top: -20px;
        padding-top: 0;
    }

    table.dataTable thead th,
    table.dataTable thead td {
        font-weight: normal;
        color: var(--Main1);
    }

    .sorting-1 {
        font-weight: bold;
    }

    .DTFC_LeftBodyWrapper {
        .DTFC_LeftBodyWrapper {
            height: 60px;
        }
    }
}

.filter-item {
    box-sizing: border-box;

}

.tableElements {
    min-height: 500px;

    .sorting {
        background-color: var(--Bg1);
        border-right: 0.5px solid var(--Stroke);
        border-top: 0.5px solid var(--Stroke);

        &_asc {
            background-color: var(--Bg1);
            border-top: 0.5px solid var(--Stroke);
            border-right: 0.5px solid var(--Stroke);
        }

        &_desc {
            background-color: var(--Bg1);
        }
    }

    .dt-button,
    .dt-button:hover {
        border: none;
        padding-left: 30px;
        margin: 5px 30px;
        background: transparent;
        margin-top: 35px;

        @media screen and (max-width:660px) {
            padding-left: 30px;
            margin-top: 10px;
            margin-left: 0px;
            margin-right: 0px;
        }
    }

    .dt-button:hover {
        color: var(--Main2);
    }

    .pagesize {
        margin-top: 15px;
        float: right;
        padding: 5px;

        @media screen and (max-width:660px) {
            width: 100%;
            margin: auto;
        }

        select {
            margin-top: 15px;
            width: auto;
            display: inline;
        }
    }

    table {
        font-size: 14px;
        width: 100%;
        min-width: 130px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

        .status {
            width: 100%;
            border: 1px solid var(--Main2);
            border-radius: 5px;
            background: transparent;
            padding: 3px;
            margin: 0;
            height: 32px;
            min-width: 270px;
            background-repeat: no-repeat;
            background-position: center right;
            -webkit-appearance: none;
            -moz-appearance: none;
            text-indent: 1px;
            text-overflow: '';
        }

        .table-select-input-icon {
            background-color: transparent;
            border-bottom-right-radius: 4px;
            border-top-right-radius: 4px;
            margin: 1px 1px 0 0;
            top: 3px;
            height: 24px;
            width: 19px;
            position: absolute;
            right: 0;
            border-left: solid 1px var(--Stroke);
            display: flex;
            justify-content: center;
            align-items: center;

            &__filter {
                background-color: transparent;
                border-bottom-right-radius: 4px;
                border-top-right-radius: 4px;
                margin: 1px 1px 0 0;
                top: 3px;
                height: 24px;
                right: 0;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }

        .icon-calm {
            height: 24px;
            width: 24px;
        }

        thead {
            background-color: var(--Bg1);
            border-left: 0.5px solid var(--Stroke);

            th {}
        }

        th,
        td {
            padding: 10px 5px;
            vertical-align: middle;
            text-align: center;
        }



        tr.filters th {
            padding: 5px 10px;
            min-width: 129px;
            border-right: 0.5px solid var(--Stroke);
        }

        th {
            text-align: left;
            color: var(--Main1);
            padding-right: 20px;
        }

        tr.odd {
            background-color: var(--Bg1);
            box-sizing: border-box;
        }

        tr td:first-child {
            padding: 15px;
            font-weight: bold;
            line-height: 1.07;
            letter-spacing: normal;
            text-align: center;
            color: var(--Main2);
        }

        tr.filters input,
        tr.filters select {
            width: 100%;
            border: none;
            background: transparent;
            padding: 0;
            margin: 0;
            height: 20px;
            min-width: 100px;
            background-repeat: no-repeat;
            background-position: center right;
            -webkit-appearance: none;
            -moz-appearance: none;
            text-indent: 1px;
            text-overflow: '';
        }

        tr.filters .custom-date-time {
            min-width: 100px;
        }

        tr.filters .custom-date-time input {
            width: 48%;
            min-width: 45px;
            display: inline-block;
            background-repeat: no-repeat;
            background-position: center right;
        }

        tr.filters input {
            background-repeat: no-repeat;
            background-position: center right;
        }

        input {
            &[type="checkbox"] {
                position: static;
                left: 0px;
                max-width: 16px;
                max-height: 16px;
                margin: 0 auto;
                background-color: var(--Bg1);

                &:checked:before {
                    content: 'x';
                    justify-content: center;
                    display: flex;
                    margin-top: -4px;
                    margin-right: 0.5px;
                }
            }
        }
    }

    .table-page {
        &__icon {
            &-next {
                height: 10px;
                width: 10px;
            }

            &-prev {
                height: 10px;
                width: 10px;
            }
        }
    }

    .export-excel {
        &-icon {
            width: 24px;
            height: 22.6px;
            margin-right: 10px;
            position: absolute;
            top: 4px;
            left: 10px;

            @media screen and (max-width:660px) {
                position: relative;
                margin-right: 10px;
            }
        }

        &-text {
            color: var(--Main2);
            text-decoration: underline;
            margin-left: 15px;

            &:hover {
                color: var(--Subsidiary);
            }
        }
    }
}