.webx-responsive-modal-dialog {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 8px auto;
}

@media (min-width: 768px) {
    .webx-responsive-modal-dialog {
        width: 80vw !important;
        margin: 30px auto;
    }
}

@media (min-width: 992px) {
    .webx-responsive-modal-dialog {
        width: 75vw !important;
    }
}

.modal-fullscreen .webx-responsive-modal-dialog {
    width: 100vw !important;
    min-height: 100vh;
    margin: 0;
}

/* Session history is opened from the user detail modal. Keep the response
 * opaque and constrain all table layout to the child dialog so the parent
 * cannot show through or force page-level horizontal scrolling. */
.webx-session-history-modal {
    position: relative;
    z-index: 0;
    min-width: 0;
    max-width: 100%;
    background-color: #fff;
    color: #212529;
}

.modal.webx-session-history-shell .modal-dialog,
.modal.webx-session-history-shell .modal-content {
    opacity: 1 !important;
}

.modal.webx-session-history-shell .modal-content {
    overflow: hidden;
    background: #fff;
}

@media (min-width: 992px) {
    .modal.webx-session-history-shell .webx-responsive-modal-dialog {
        width: 90vw !important;
    }
}

.webx-session-history-modal .modal-body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.webx-session-history-modal .row,
.webx-session-history-modal .content {
    min-width: 0;
    max-width: 100%;
}

.webx-session-history-table {
    display: block;
    width: 100%;
    width: calc(100vw - 52px);
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .webx-session-history-table {
        width: calc(80vw - 60px);
    }
}

@media (min-width: 992px) {
    .webx-session-history-table {
        width: calc(90vw - 60px);
    }
}

.webx-session-history-modal .webx-session-history-datatable,
.webx-session-history-modal .dataTables_wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.webx-session-history-modal .dataTables_wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.webx-session-history-modal table.dataTable {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
}

.webx-session-history-modal table.dataTable th,
.webx-session-history-modal table.dataTable td {
    vertical-align: top;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.webx-session-history-modal table.dataTable td:last-child,
.webx-session-history-modal table.dataTable th:last-child {
    white-space: nowrap !important;
}

.webx-session-history-detail-table-wrap,
.webx-access-log-detail-table-wrap {
    margin: 0;
    overflow-x: hidden;
}

.webx-session-history-detail-table,
.webx-access-log-detail-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.webx-session-history-detail-table th,
.webx-access-log-detail-table th {
    width: 32%;
    vertical-align: top;
}

.webx-session-history-detail-table td,
.webx-access-log-detail-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.webx-session-history-detail-value {
    white-space: pre-wrap;
}

.webx-session-history-fingerprint,
.webx-access-log-fingerprint {
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
}

.webx-session-history-modal table.dataTable > tbody > tr.child > td {
    background-color: #f8f9fa;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.webx-session-history-modal table.dataTable > tbody > tr.child ul.dtr-details {
    display: block;
    width: 100%;
    max-width: 100%;
}

.webx-session-history-modal table.dataTable > tbody > tr.child span.dtr-title {
    margin-right: .5rem;
}

.webx-session-history-modal table.dataTable > tbody > tr.child span.dtr-data {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .webx-session-history-modal .modal-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .webx-session-history-modal table.dataTable th,
    .webx-session-history-modal table.dataTable td {
        padding: .5rem .4rem;
    }

    .webx-session-history-detail-table th,
    .webx-access-log-detail-table th {
        width: 40%;
    }
}

/* Global authentication-session inventory and exact fingerprint cohort view. */
.webx-auth-sessions-page,
.webx-auth-sessions-page .card-body,
.webx-auth-sessions-page .dataTables_wrapper,
.webx-fingerprint-correlations,
.webx-fingerprint-correlations .card-body {
    min-width: 0;
    max-width: 100%;
}

.webx-auth-sessions-page table.dataTable th,
.webx-auth-sessions-page table.dataTable td,
.webx-auth-login-history-table th,
.webx-auth-login-history-table td,
.webx-access-logs-page table.dataTable th,
.webx-access-logs-page table.dataTable td,
.webx-fraud-page table.dataTable th,
.webx-fraud-page table.dataTable td,
.webx-responsive-static-table th,
.webx-responsive-static-table td {
    vertical-align: top;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.webx-responsive-static-table {
    width: 100% !important;
}

.modal .dataTables_wrapper,
.modal .dataTables_wrapper > .table-responsive,
.modal .table-responsive > .dataTables_wrapper {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
}

.webx-auth-session-fingerprint,
.webx-correlation-hash,
.webx-correlation-hash code {
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
}

.webx-fingerprint-summary {
    margin-bottom: 0;
    table-layout: fixed;
}

.webx-fingerprint-summary th {
    width: 30%;
}

.webx-correlation-card {
    margin-top: 16px;
}

.webx-correlation-card .table-responsive {
    margin: 0;
    border: 0;
    overflow: visible;
}

.webx-auth-sessions-page table.dataTable > tbody > tr.child > td,
.webx-auth-login-history-table > tbody > tr.child > td,
.webx-access-logs-page table.dataTable > tbody > tr.child > td,
.webx-fraud-page table.dataTable > tbody > tr.child > td,
.webx-responsive-static-table > tbody > tr.child > td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.webx-auth-sessions-page table.dataTable > tbody > tr.child .dtr-data,
.webx-auth-login-history-table > tbody > tr.child .dtr-data,
.webx-access-logs-page table.dataTable > tbody > tr.child .dtr-data,
.webx-fraud-page table.dataTable > tbody > tr.child .dtr-data,
.webx-responsive-static-table > tbody > tr.child .dtr-data {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.webx-responsive-static-table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    max-width: 58vw;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.webx-correlation-card .pagination {
    margin: 8px 0 0;
}

@media (max-width: 767.98px) {
    .webx-auth-sessions-page,
    .webx-fingerprint-correlations {
        padding-left: 8px;
        padding-right: 8px;
    }

    .webx-fingerprint-summary th {
        width: 42%;
    }

    .webx-fingerprint-correlations .card-body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .webx-correlation-card .table-responsive > table { min-width: 0; }
}
