.tachograph-single-inner {
    max-width: 1201px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 70px auto;
}

.tachograph-single h1 {
    margin: 0 0 40px;
}

.dataTables_wrapper {
    position: relative;
    clear: both;
    max-width: 100%;
    width: 100%;
}

table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: right;
}

.tachograph-table {
    width: 100%;
    border-collapse: collapse;
}

.tachograph-table th,
.tachograph-table td {
    border-color: #D7DDE4;
    border-width: 1px 0 1px 0;
    border-style: solid;
}

table.dataTable thead>tr>th.sorting:before {
    left: 10px;
    right: auto;
    bottom: 55%;
}

table.dataTable thead>tr>th.sorting:after {
    left: 10px;
    right: auto;
}

table.dataTable thead>tr>th.sorting {
    padding: 17px 17px 17px 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: right;
    color: #0C3058;
}

table.dataTable tbody th, table.dataTable tbody td {
    padding: 22px 17px 22px 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: right;
    color: #0C3058;
}

.btn-open-filters {
    display: none;
}
.datatable-popup-overlay {
    display: none;
}

.export-select {
    position: relative;
    display: inline-block;
}

.export-select__trigger {
    padding: 6px 16px;
    background: transparent;
    color: #0C3058;
    border: 1px solid var(--primary-color-20);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.export-select__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background: #F7F8FA;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.export-select__dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #000;
    text-decoration: none;
}

.export-select__dropdown a:hover {
    background-color: #f0f0f0;
}

.export-select.active .export-select__dropdown {
    display: block;
}

table.dataTable.no-footer {
    margin-bottom: 16px;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #D7DDE4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

#tachograph-table_wrapper > div.bottom {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #0068F5;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: right;
    color: #8596AF;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    padding: 8px 16px;
    color: #8596AF !important;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 8px 16px;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #8596AF !important;
}


.dataTables_wrapper .dataTables_paginate span > .paginate_button {
    padding: 8px 16px;
    background: transparent!important;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    text-align: right;
    color: #0C3058!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    padding: 8px 16px;
    color: #0068F5!important;
    background: transparent!important;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_wrapper .dataTables_paginate .paginate_button.last {
    padding: 8px 16px;
    color: #0068F5!important;
    background: transparent!important;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.last.disabled {
    color: #8596AF!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    padding: 8px 16px;
    background: transparent!important;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #0C3058 !important;
    text-align: right;
}

table.dataTable thead>tr>th.sorting:before,
table.dataTable thead>tr>th.sorting:after {
    position: relative;
    opacity: 1;
    line-height: 0;
    font-size: 10px;
    display: none;
}

table.dataTable thead>tr>th.sorting:before {
    display: none;
}

table.dataTable thead>tr>th.sorting span {
    display: flex;
    align-items: center;
    position: relative;
}
table.dataTable thead>tr>th.sorting span:after {
    content: '';
    background-image: url("../../images/table-arrow.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 12px;
    height: 18px;
}


@media (max-width: 767px) {
    .tachograph-single-inner {
        margin: 65px auto;
    }
    .tachograph-single h1 {
        margin: 0 0 16px;
    }
    .tachograph-table {
        border: 0;
        width: 100%;
    }

    .tachograph-table thead {
        display: none;
    }

    .tachograph-table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 16px 24px;
        background-color: #FFFFFF!important;
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.12);
        border-radius: 8px;
    }

    table.dataTable tbody th, table.dataTable tbody td {
        padding: 3px 0;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        text-align: right;
        color: #0C3058;
    }

    .tachograph-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        position: relative;
        border-bottom: 1px solid #F7F8FA;
    }

    .tachograph-table th, .tachograph-table td {
        border-color: #F7F8FA;
    }

    .tachograph-table tbody td::before {
        content: attr(data-label);
        flex: 1;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        text-align: right;
        color: #0C3058;
    }

    .tachograph-table tbody td:first-child {
        border-width: 0 0 1px 0;
    }

    .tachograph-table tbody td:last-child {
        border-bottom: none;
    }

    .tachograph-table tbody td > *:not([data-label]) {
        flex: 2;
        text-align: right;
    }

    .btn-open-filters {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
        gap: 10px;
        width: 48px;
        height: 48px;
        background: #0068F5;
        border: none;
        outline: none;
        border-radius: 16px;
    }
    .datatable-popup-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    .datatable-popup-content {
        background: #fff;
        border-radius: 8px;
        padding: 30px;
        max-width: 600px;
        width: 100%;
        position: relative;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    .datatable-popup-content .close-popup {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    .filters-wrapper label {
        display: block;
        margin-bottom: 15px;
        font-weight: 600;
    }
    .filters-wrapper select {
        width: 100%;
    }
    .open-popup-btn {
        margin-top: 20px;
        padding: 10px 20px;
        font-weight: 600;
        border: none;
        background: #0073aa;
        color: white;
        border-radius: 4px;
        cursor: pointer;
    }
    .open-popup-btn:hover {
        background: #005a87;
    }

    #datatable-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }
    .select2-container {
        width: 100% !important;
    }
    .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
        float: right;
    }
    .custom-search-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 32px;
        padding-bottom: 24px;
        position: relative;
    }
    .custom-search-wrapper:after {
        content: '';
        position: absolute;
        left: -16px;
        bottom: 0;
        width: calc(100% + 32px);
        height: 1px;
        background: #E1E7F3;
    }
    .custom-search-wrapper .dataTables_filter > label {
        display: block;
        max-width: 100%;
        width: 100%;
        font-size: 0;
    }
    .custom-search-wrapper .dataTables_filter > label > input {
        max-width: 287px;
        width: 100%;
        height: 48px;
        padding: 0 24px 0 8px;
        background: #FFFFFF;
        border: 1px solid #BBBBCB;
        border-radius: 30px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        text-align: right;
        color: #C3CFE7;
        box-sizing: border-box;
    }
    .dataTables_wrapper .dataTables_filter {
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        position: relative;
    }
    .dataTables_wrapper .dataTables_filter:after {
        content: '';
        background-image: url("/wp-content/uploads/2025/07/1.svg");
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        width: 24px;
        height: 24px;
        position: absolute;
        top: 12px;
        left: 20px;
    }
    table.dataTable.no-footer {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    #tachograph-table_wrapper > div.bottom {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
}