.select2-container .select2-selection--single {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    border: 1px solid #ced4da;
    border-radius: .2rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 5px;
}

.select2-selection__arrow:before,
.select2-selection__arrow:after {
    display: none !important;
}

table.dataTable tbody tr td[colspan] {
    padding: 0 !important;
}

.pointer {
    cursor: pointer;
}

.badge-warning-blink {
    background-color: #faad14;
    color: #fff;
    animation: warning-blink 1s ease-in-out infinite;
}

@keyframes warning-blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(250, 173, 20, 0.45);
    }

    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 6px rgba(250, 173, 20, 0.12);
    }
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 900px;
}

.table-responsive .table,
.table-responsive table.dataTable {
    width: 100% !important;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    flex-wrap: wrap;
    gap: 6px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px;
}

@media (max-width: 768px) {
    .page-container {
        width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        padding: 15px;
    }

    .card-body {
        padding: 15px;
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
    }

    .table-responsive table {
        width: max-content !important;
        min-width: 900px;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: flex-start;
    }
}
