/* .link-active {
    border: 1px solid rgb(245, 239, 239, 0.3);
    border-radius: 6px;
    padding-inline: 4px !important;
} */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

.page-content .container-fluid {
    width: 100%;
    max-width: 100%;
}

.card,
.modal-content,
.dropdown-menu {
    max-width: 100%;
}

.card-body {
    min-width: 0;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    padding-bottom: 2px;
}

.table,
.dataTable,
table[id="datatable"] {
    width: 100% !important;
}

.table th,
.table td,
.dataTable th,
.dataTable td {
    vertical-align: middle;
    white-space: normal;
}

.table td,
.dataTable td {
    word-break: normal;
}

.dataTables_wrapper .row {
    align-items: center;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    float: none;
}

.dataTables_wrapper .dataTables_filter input {
    max-width: 100%;
}

.dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-bottom: 6px;
}

.btn,
.badge,
.dropdown-item,
.form-control,
.custom-select {
    max-width: 100%;
}

.modal-dialog {
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

.nav-user-name {
    display: inline-block;
    max-width: 180px;
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.nav-user img.rounded-circle {
    margin-left: 8px;
}

.left-sidenav {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.page-wrapper {
    margin-left: 250px;
}

.account-body .container {
    width: 100%;
}

.account-body .col-lg-5.mx-auto {
    max-width: 475px;
}

.account-body .auth-logo {
    max-width: min(140px, 55vw);
    height: auto;
}

@media (max-width: 1024px) {
    .page-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .page-content {
        padding-left: 0;
        padding-right: 0;
    }

    .page-title-box .row,
    .card-header,
    .card-body .row {
        row-gap: 12px;
    }

    .card-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .card-header .card-title {
        width: 100%;
    }

    .dataTables_wrapper .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 6px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 13px;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .topbar .topbar-nav {
        max-width: 100%;
    }

    .nav-user-name {
        max-width: 115px;
    }

    .card {
        margin-bottom: 16px;
    }

    .card-body,
    .card-header {
        padding: 14px;
    }

    .card-title {
        font-size: 15px;
        line-height: 1.35;
    }

    .report-card h3 {
        font-size: 22px;
    }

    .form-group.row,
    .form-row {
        row-gap: 10px;
    }

    .form-group.row > [class*="col-"],
    .form-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .input-group {
        min-width: 0;
    }

    .input-group > .form-control {
        min-width: 0;
    }

    .btn {
        white-space: normal;
    }

    .button-items .btn,
    .button-list .btn {
        margin-bottom: 8px;
    }

    .dropdown-menu {
        max-width: calc(100vw - 24px);
    }

    .modal-dialog,
    .modal-lg,
    .modal-xl {
        max-width: calc(100vw - 24px);
        margin: 12px auto;
    }

    .modal-body,
    .modal-header,
    .modal-footer {
        padding: 14px;
    }

    .modal-footer {
        gap: 8px;
    }

    .modal-footer .btn {
        flex: 1 1 auto;
    }

    .account-body .row.vh-100 {
        min-height: 100vh;
        height: auto !important;
        padding-top: 24px;
        padding-bottom: 24px;
    }

}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-content {
        padding-top: 12px;
    }

    .page-title-box {
        padding-bottom: 12px;
    }

    .account-body .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .account-body .col-lg-5.mx-auto {
        max-width: 100%;
    }

    .account-body .card {
        margin-left: auto;
        margin-right: auto;
    }

    .account-body .auth-header-box h4 {
        font-size: 15px !important;
        line-height: 1.35;
    }

    .account-body .nav-pills .nav-link {
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }

    .card-body,
    .card-header {
        padding: 12px;
    }

    .nav-user-name {
        display: none;
    }

    .nav-user img.rounded-circle {
        margin-left: 0;
    }

    .dataTables_wrapper .dt-buttons,
    .dataTables_wrapper .dt-buttons .btn,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        margin-bottom: 4px;
    }

    .table th,
    .table td,
    .dataTable th,
    .dataTable td {
        padding: 0.55rem;
        font-size: 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper table.dataTable,
    table[id="datatable"] {
        min-width: 920px;
    }

    .table th,
    .table td,
    .dataTable th,
    .dataTable td {
        white-space: nowrap;
    }
}

@supports selector(:has(*)) {
    @media (hover: none) and (pointer: coarse) {
        .card-body:has(> table),
        .card-body:has(.dataTables_wrapper) {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }
}

.action-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(243, 246, 249, 0.35);
    backdrop-filter: blur(1px);
}

.action-loading-overlay.is-active {
    display: flex;
}

.action-loader {
    width: 50px;
    aspect-ratio: 1;
    --c: no-repeat radial-gradient(farthest-side, #514b82 92%, #0000);
    background:
        var(--c) 50% 0,
        var(--c) 50% 100%,
        var(--c) 100% 50%,
        var(--c) 0 50%;
    background-size: 10px 10px;
    animation: action-loading-spin 1s infinite;
    position: relative;
}

.action-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: 3px;
    background: repeating-conic-gradient(#0000 0 35deg, #514b82 0 90deg);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
    mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
    border-radius: 50%;
}

@keyframes action-loading-spin {
    100% {
        transform: rotate(.5turn);
    }
}
