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

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

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.table-responsive,
.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-dialog {
    max-width: min(96vw, 1140px);
    margin-left: auto;
    margin-right: auto;
}

.pwa-install-floating {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #123d8c;
    box-shadow: 0 12px 28px rgba(18, 61, 140, .3);
    font-weight: 700;
}

.pwa-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 22, 48, .64);
}

.pwa-install-backdrop[hidden] {
    display: none;
}

.pwa-install-modal {
    position: relative;
    width: min(100%, 430px);
    padding: 30px 26px 24px;
    border-radius: 22px;
    text-align: center;
    color: #172033;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.pwa-install-modal h2 {
    margin: 12px 0 10px;
    font-size: 1.35rem;
}

.pwa-install-modal p {
    color: #64748b;
    line-height: 1.6;
}

.pwa-install-icon {
    font-size: 2.5rem;
}

.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    color: #64748b;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
}

.pwa-install-ok {
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #123d8c;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .modal-content {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    .dataTables_wrapper .row {
        row-gap: 10px;
    }

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

    .dataTables_wrapper .dataTables_filter input {
        width: min(100%, 260px);
        margin-left: 0;
    }
}
