/* custom css styles for sof application */

html {
    height: 100%;
}

footer {
    padding: 10px 16px 16px 16px;
    color: #666666;
    text-align: center;
    font-size: 12px;
}

body{
    /* The rules 'overflow-y' and 'padding-right' prevent wobbly toast. */ 
    overflow-y: scroll !important;
    padding-right: 0 !important;
}

body.white-page-europol-form-body{
    /* Exception */
    overflow-y: auto !important;
}

#bg-login {
    height: 100%;
    margin: 0;
    background-image: url("/img/login-bg.png");
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#job_list {
    overflow-y: auto;
    max-height: 60vh;
}

#job_list thead th {
    position: sticky;
    top: 0;
    background: white;
}

#job_list th {
    box-shadow: inset 0px 1px lightgray, 0 1px lightgray;
}

.row {
    margin-right: 0px;
}

.row .readonly-row{
    display: flex;
    align-items: center;
    margin-top: -1px;
    padding-left: 25px;
}

/* Override bootstrap rule 'width: 100%'. */
body .table.recipient-table{
    width: auto;
}


.grid-comments{
    display: grid;
    grid-template-columns: 0.6fr 2.1fr 1fr 1fr;
    gap: 10px; /* Adjust the gap between grid items if needed */

    color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    background-color: var(--bs-table-bg);
    border-bottom-width: var(--bs-border-width);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
    border-bottom-style: solid;
    border-bottom-color: rgb(222, 226, 230);
}

.grid-comments.header{
    font-weight: 700;
}

.grid-comments > div{
    padding: 4px;
}

.comment-textarea{
    width: 100%;
}

.recipient-row{
    cursor: pointer;
}

.recipient-row:hover td{
    color: rgba(0, 0, 0, 0.75);
}

/* Override bootstrap rule for 'padding'. */
body .recipient-row td{
    padding-right: 30px;
}

body .toast{
    --bs-toast-border-width: 0.5;
}

body .toast.text-bg-danger{
    --bs-toast-max-width: 450px;
}

body .toast .toast-body > div{
    justify-content: flex-start;
}

body .toast .btn-close{
    flex-shrink: 0;
}

body .toast-body .btn-close{
    width: 0.5em;
    margin-left: 15px;
}

#ajaxToastError,
#ajaxToastWarning,
#ajaxToastSuccess{
    margin-top: 10px;
}

body .btn-outline-success{
    text-align: left;
    width: 200px;
}

body .d-flex{
    justify-content: space-between;
}

.job-result-main-content {
    margin-top: 16px;
    margin-bottom: 16px;
}

.job-result-controls>i,
.job-result-controls>.btn {
    margin-right: 8px;
    vertical-align: middle;
}

body .job-result-screenshot{
    padding-left: 1px;
    margin-bottom: 0 !important;
}

.job-result-screenshot>img {
    max-width: 100%;
    border: 1px solid;
}

.delete-custom-asset{
    margin-left: 5px;
}

.job-score-range-1 {
    background-color: #d9d9e4;
    color: black !important;
}

table.ellipsis th,
table.ellipsis td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-fa-bordered {
    border: 1px solid;
}

.scoring-config-table-wrapper {
    overflow-y: auto;
    height: calc(100vh - 270px);
}

.sortingButton {
    color: black;
}

.thumbnail-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -20px;
}

.upload-box{
    margin-top: 10px;
}

.europolForm .measures{
    margin-bottom: 10px;
}

.europolForm .has-only-mx-records{
    margin-top: 6px;
}

.europolForm .col-form-label{
    min-height: 35px;
    vertical-align: bottom;
    display: flex;
    align-items: flex-end;
    margin-top: 5px;
}

.europolForm .col-form-label:has(.text-danger){
    margin-top: -6px;
}

.europolForm .col-form-label .label{
    display: inline-block;
    vertical-align: bottom;;
}

#save-phenomenon-form{
    display: flex;
}

#save-phenomenon-button{
    margin-top: 16px;
}

.thumbnail-wrapper.document{
    flex-direction: column;
}

.thumbnail-wrapper img {
    border: 1px solid lightgray;
    border-radius: 8px;
    height: 200px;
}

.thumbnail-wrapper .overlay {
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: .5s ease;
    border-radius: 8px;
    font-size: x-small;
}

.thumbnail {
    position: relative;
    margin: 0px 10px 20px 0px;
}

body .form-check-input,
body .form-check-label{
    cursor: pointer;
}

.thumbnail .form-check-input{
    position: relative;
    top: 3px;
}

.thumbnail:hover .overlay {
    opacity: 1;
}


.thumbnail .action-box{
    display: flex;
    justify-content: space-between;
}

.thumbnail .action-box .btn-primary{
    margin-left: 15px;
}

.thumbnail.document{
    display: flex;
}

.thumbnail.document .form-check-input{
    margin-top: 0;
    margin-right: 8px;
}

.delete-custom-video,
.delete-custom-document,
.delete-custom-asset{
    position: absolute;
    opacity: 0;
    margin-right: 0px;
    transition: all 0.1s ease-in-out;
}

.thumbnail:hover .delete-custom-video,
.thumbnail:hover .delete-custom-asset,
.thumbnail:hover .delete-custom-document{
    opacity: 1;
}

.delete-custom-asset{
    bottom: 5px;
    right: 5px;
}

.delete-custom-document{
    position: relative;
    right: auto;
}

.delete-custom-video{
    top: 5px;
    right: 5px;
}

.delete-custom-document.job-result{
    bottom: 0px;
}

.delete-custom-document.europol{
    bottom: 10px;
}

.thumbnail.document{
    margin-bottom: 10px;
}

.thumbnail .overlay div {
    margin: 5px;
    color: white;
}


/* Fix firefox having a hideous 1970s dropdown arrow with bootstrap selects */

@-moz-document url-prefix() {
    select.form-control {
        padding-right: 25px;
        background-image: url("data:image/svg+xml,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='14px' height='14px' viewBox='0 0 1200 1000' fill='rgb(51,51,51)'> <path d='M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z'/> </svg>");
        background-repeat: no-repeat;
        background-position: calc(100% - 7px) 50%;
        -moz-appearance: none;
        appearance: none;
    }
}

select.job-result-date-select {
    width: calc(100% - 215px);
    /* Button width + Margin */
    margin-right: 15px;
}

button.job-result-date-btn {
    width: 200px;
}

.navigation-banner{
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 100;
}

.navigation-banner > div{
    width: 60%;
}

.notification-banner {
    width: 100%;
    position: fixed;
    bottom: 0;
    margin: 1rem;
    font-weight: bold;
    font-size: larger;
    z-index: 10;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 10px;
}

.page-link {
    width: 50px;
    text-align: center;
}

.detector-result-explanation {
    font-family: inherit;
    font-size: 100%;
    word-break: break-word;
    margin: 0;
}

#job_results_table {
    width: 100%;
    table-layout: fixed;
}

#job_results_table td {
    vertical-align: middle;
}

#decision-comment {
    width: 1240px;
}

#fullscreen-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
}

#fullscreen-wrapper>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#fullscreen-wrapper .btn {
    height: 50px;
    align-self: center;
    width: 50px;
    font-size: larger;
}

#fullscreen-wrapper .btn>i {
    vertical-align: middle;
}

#fullscreen-wrapper .btn-left {
    margin-right: 10px;
}

#fullscreen-wrapper .btn-right {
    margin-left: 10px;
}

#fullscreen-wrapper video{
    margin-left: auto;
    margin-right: auto;
}

#fullscreen-viewer>img {
    max-height: calc(100vh - 50px);
    max-width: calc(100vw - 200px);
    border: 1px solid gray;
    border-radius: 5px;
}

#fullscreen-info-panel {
    background-color: rgba(196, 196, 196, 0.8);
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    max-width: 400px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid;
    border-radius: 10px;
}


#fullscreen-viewer>h3 {
    margin-top: 0px;
}

#fullscreen-viewer tr>* {
    vertical-align: top;
}


#fullscreen-viewer > div{
    display: flex;
    align-items: center;

    width: calc(100vw - 200px);
    height: calc(100vh - 50px);
}

#fullscreen-viewer > div > img{
    margin-left: auto;
    margin-right: auto;

    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

#history-table-comment,
#comment-table-comment {
    max-height: 300px;
    overflow: auto;
    padding-right: 1rem;
    margin-right: 1rem;
}

#decision-comment-input {
    resize: none;
}

#comment-buttons button,
#comment-buttons a {
    width: 150px;
    margin-bottom: 0.6rem;
}

.icon-link{
    text-decoration: none;
}

.icon-link .link-text{
    text-decoration: underline;
}

#comment-buttons button:disabled,
#comment-buttons a.disabled {
    background-color: #cccccc !important;
    border: none !important;
    color: #000 !important;
}

#eml-buttons{
    display: flex;
}

#eml-buttons .fa-download{
    margin-right: 2px;
}

#eml-buttons button,
#eml-buttons a {
    margin-bottom: 0.6rem;
}

#eml-buttons a.auto-width{
    width: auto;
}

#history-table-comment {
    max-height: 300px;
    overflow: auto;
    padding-right: 1rem;
    margin-right: 1rem;
}

#filterCreators {
    width: 300px;
}

#filterCreators option {
    width: 300px;
}

.multiselect-dropdown {
    margin-left: 1rem;
    margin-right: 1rem;
}

.multiselect-dropdown-list {
    height: fit-content !important;
}

.multiselect-dropdown-list div {
    display: flex;
    align-items: center;
}

.multiselect-dropdown-list label {
    display: inline-block;
}

#main-navbar {
    border: 1px solid lightgray;
}

.form-inline {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -ms-flex-align: center;
    align-items: center;
}

.form-inline .form-check {
    width: 100%;
}


/* Europol form*/

.europolForm-main-header {
    background-color: #000066;
    color: white;
    align-content: center;
    text-align: center;
    padding: 45px 0px 40px 0px;
}

.europolForm-main-header-h3 {
    align-content: center;
    text-align: center;
    padding: 10px 0px 10px 0px;
    font-weight: bold;
}

.europolForm-disclaimer {
    align-content: center;
    text-align: center;
    padding: 5px 0px 5px 0px;
    font-style: italic;
}

.europolForm h4 {
    padding: 25px 0px 0px 0px;
    margin-bottom: 0;
}

.europolForm h5 {
    padding: 15px 0px 1px 0px;
    margin-bottom: 0;
}

.europolForm .section{
    margin-bottom: 15px;
}

.pl-2 {
    padding-left: 2.1rem !important;
}

input[type="file"],
input[type="files"]{
    width: 500px;
}

.upload-custom-assets-input{
    margin-right: 10px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .form-inline label {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin-bottom: 0;
    }
    .form-inline .form-group {
        display: -ms-flexbox;
        display: flex;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        -ms-flex-align: center;
        align-items: center;
        margin-bottom: 0;
    }
    .form-inline .form-control {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
    .form-inline .form-control-plaintext {
        display: inline-block;
    }
    .form-inline .input-group,
    .form-inline .custom-select {
        width: auto;
    }
    .form-inline .form-check {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: auto;
        padding-left: 0;
    }
    .type-of-abuse-box{
        display: flex;
    }
    .other-box{
        display: flex;   
    }
    .other-input-box{
        margin-left: 5px;
    }
    #other-details{
        width: 500px;
    }
    #text-generator-box{
        position: fixed;

        margin-left: 600px;
        margin-top: 20px;
        background: rgba(248, 248, 248, 1);
        z-index: 1000;

        padding: 8px;
    }
        
    #europol-text-generator-inputs{
        margin-top: 8px;
        margin-bottom: 8px;
    }

    #europol-text-generator-inputs input{
        margin-bottom: 5px;
        width: 300px;
    }

    #europol-text-generator-inputs input:last-child{
        margin-bottom: 0;
    }

    #fix-text-generator-button svg{
        width: 20px;
        height: 20px;
    }

    #brand-input,
    #person-input{
        margin-top: 6px;
    }
    .form-inline .form-check-input {
        position: relative;
        -ms-flex-negative: 0;
        flex-shrink: 0;
        margin-top: 0;
        margin-right: 0.25rem;
        margin-left: 0;
    }
    .form-inline .custom-control {
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .form-inline .custom-control-label {
        margin-bottom: 0;
    }
    .drDescription {
        font-size: large;
    }
    .drDescriptionPopover,
    .accordion-button::after {
        color: inherit;
    }
    a {
        text-decoration: none;
    }
    .score-badge-results {
        display: flex;
        align-items: center;
        width: 50px;
        font-size: smaller;
        justify-content: center;
    }
}

body #registrar-form-modal.modal{
    --bs-modal-width: 95vw; 
}

body #registrar-form-modal .modal-content{
    width: calc(100vw - 70px);
    height: calc(100vh - 70px);
}

body #registrar-form-modal .modal-body{
    overflow-y: auto;
}

body #registrar-form-modal .modal-footer{
    justify-content: flex-start;
}

.white-page-europol-form {
    display: block;
    background: #000;
    border: none;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.registrar-form-hint{
    /* Transform white spaces to line breaks. */
    white-space: pre-line;

    margin-bottom: 20px;
}

#open-registrar-form, #open-webhost-form{
    margin-top: 8px;
    margin-bottom: 8px;
}



.spinner{
    display: flex;
    align-items: center;
}

.spinner .spinner-border{
    margin-right: 6px;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
    border-bottom: 1px solid #86b7fe;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.table-container {
    width: 45%; /* Adjust width to fit your layout */
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}
.table {
    width: 100%;
}
.copy-row {
    position: relative;
}

#clipboard-texts{
    margin-left: 0;
}

#clipboard-texts .btn{
    padding-left: 5px;
    padding-top: 3px;
    padding-bottom: 4px;
    padding-right: 4px;
}

#clipboard-texts .checkmark-icon{
    padding-top: 5px;
    padding-bottom: 4px;
    padding-left: 6px;
    padding-right: 5px;
}

#clipboard-texts .button-cell{
    padding: 2px;
}

#clipboard-texts .checkmark-icon img{
    width: 20px;
}

#clipboard-texts table:first-child{
    margin-right: 50px;
}

#clipboard-texts table td:first-child{
    width: 190px;
}

#clipboard-texts .other-cell .value{
    margin-left: 8px;
}

#text-generator-title{
    padding-top: 5px;
}

.drag-horizontal{
    margin-top: -5px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: grab;
}

.drag-horizontal:hover path{
    stroke: rgba(27, 27, 27, 0.753);
}

.drag-horizontal svg{
    width: 30px;
    height: 30px;
}

.copy-icon {
    cursor: pointer;
    width: 20px; /* Set the desired width */
    height: 20px; /* Set the desired height */
}

#saveForm,
#sendForm{
    width: auto;
    text-align: left;
}

#saveForm.de,
#sendForm.de{
    min-width: 186px;
}

#saveForm.fr,
#sendForm.fr{
    min-width: 203px;
}

#saveForm.it,
#sendForm.it{
    min-width: 165px;
}

#saveForm.en,
#sendForm.en{
    min-width: 140px;
}

#decistionTitle {
    margin-bottom: 22px;
}

.select2-selection__choice__remove {
    cursor: pointer;
}