.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width: 900px) {
    .modal-dialog.large,
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin-top: .5rem !important;
        margin-bottom: .5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

#viewer_modal .btn-close,
#viewer_modal .close {
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    opacity: 0.9;
}

#viewer_modal .modal-dialog {
    width: 90%;
    max-width: 900px;
    height: auto !important;
    margin: 1.75rem auto;
}

#viewer_modal .modal-content {
    background: transparent !important;
    border: unset;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal .modal-body {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: 80vh !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex > img {
    width: 20% !important;
}

.card.d-flex > .card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

.login-page {
    overflow-x: hidden !important;
}

@media (max-width: 575.98px) {
    #viewer_modal .modal-dialog {
        width: 95%;
        margin: 0.5rem auto;
    }

    .dataTables_wrapper .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dataTables_wrapper .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        margin-bottom: .75rem;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        display: inline-block;
        width: calc(100% - 65px);
        max-width: 240px;
        margin-left: 8px !important;
        margin-top: 0;
        vertical-align: middle;
        box-sizing: border-box;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        margin-top: .5rem;
    }
}

.table-responsive {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html.login-page,
html body.login-page,
html body.hold-transition.login-page {
    background-color: #000461 !important;
    background: radial-gradient(circle at 50% 30%, #000899 0%, #000461 65%, #000226 100%) !important;
    min-height: 100vh !important;
}