.itc-brand {
    background-color: #1f1e2e !important;
}

.itc-float-right {
    float: right;
}

.itc-btn-text-one-line {
    white-space: nowrap;
    text-align: center;
}

.itc-center {
    margin: auto !important;
    padding: 10px !important;
}

/** METRONIC OVERRIDE **/
.bg-primary {
    background-color: #3598dc !important;
}

.text-white {
    color: #fff !important;
}

.badge-light {
    color: #181c32 !important;
}

/** PAGE FOOTER **/
.page-footer .page-footer-inner {
    color: #c9dae9 !important;
    background-color: #364150 !important; /*#1e1e2d*/
    width: 100%;
    height: 30px;
    left: 0;
    right: 0;
    position: fixed !important;
}

#kt_aside_menu,
#kt_aside_menu_wrapper {
    background-color: #364150 !important;
}

#kt_aside_menu .menu-item.menu-item-submenu.menu-section {
    padding: 0;
}

#kt_aside_menu .menu-item.menu-item-submenu.menu-section .menu-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

/** DASHBOARD LETTERS **/
.number {
    padding-top: 25px;
    text-align: right;
    font-size: 32px;
    letter-spacing: -1px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 10px;
}

.desc {
    text-align: right;
    font-size: 16px;
    letter-spacing: 0px;
    font-weight: 300;
}

/** DASHBOARD ICONS & Text **/
.dashboard {
    color: #fff !important;
}
.fa-6 {
    font-size: 12em;
    position: absolute;
    color: white;
    opacity: 40%;
    clip: rect(0px, 290px, 120px, 28px);
    left: -27px;
    height: 20%;
}

/* General */
.variableName {
    font-size: 12px;
    color: red;
}
.red {
    background-color: red;
}

.unstyled {
    list-style: none;
}

.right {
    float: right;
}

.caption i {
    color: white;
}

.login #userTab {
    max-width: 590px;
}

@media (max-width: 480px) {
    .username.username-hide-on-mobile {
        display: none;
    }
}

@media (max-width: 390px) {
    .fa-user,
    .fa-angle-down {
        margin: 0px 5px;
        width: 10%;
    }
    label.col-3.control-label {
        padding: 0;
    }
}

@media (max-width: 1411px) {
    #newFormModal_modal,
    #newPharmacovigilanceClientForm,
    #newUserForm,
    #newRoleForm,
    #newPharmacovigilanceCase {
        margin-bottom: 5px;
    }
}

#newFormModal_modal,
#newPharmacovigilanceClientForm,
#newUserForm,
#newRoleForm,
#newPharmacovigilanceCase {
    margin-left: 5px;
}

.badge {
    font-weight: normal;
}

/*sidebar*/
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo .logo-text {
    display: none;
}

/* From-engine Groups and Question in editor mode */

.in-editor-mode .main-question-wrapper,
.in-editor-mode .main-group-wrapper {
    border-top: 1px dashed rgba(0, 0, 0, 0.25);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
}

.elemToggleButton {
    background: unset !important;
}

.in-editor-mode .row {
    background: repeating-linear-gradient(
        135deg,
        #fff,
        #fff 10px,
        #eee 10px,
        #eee 20px
    );
    border-radius: 12px;
}

.in-editor-mode .main-group-wrapper .row {
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 10px,
        #eee 10px,
        #eee 20px
    );
    border-radius: 12px;
}

.red-stripes-group {
    background: repeating-linear-gradient(
        135deg,
        #fff,
        #fff 10px,
        red 10px,
        red 20px
    ) !important;
    opacity: 0.25;
}

.red-stripes-question {
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 10px,
        red 10px,
        red 20px
    ) !important;
    opacity: 0.25;
}

.in-editor-mode .main-question-wrapper .row,
.modal .row {
    background: unset !important;
}
.in-editor-mode
    .main-question-wrapper:not(.ui-resizable .sortableQuestion)
    .question-wrapper {
    padding: 0 !important;
    padding-top: 10px !important;
    background-color: white;
    height: 100%;
}
.in-editor-mode .main-question-wrapper .question-wrapper {
    padding: 10px;
    background-color: white;
    height: 100%;
}

.in-editor-mode .card {
    height: 100%;
}

.offset-element-group {
    /* background: repeating-linear-gradient(
    135deg,
    #fff,
    #fff 5px,
    red 5px,
    red 10px
  ); */

    background-color: red;
    border-radius: 12px;
}

.offset-element-question {
    /* background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 5px,
    red 5px,
    red 10px
  ); */

    background-color: red;
    border-radius: 12px;
}

.create-module-target,
.create-group-target,
.create-question-target {
    border: 1px dashed #32c5d2;
    border-radius: 12px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.create-module-target p,
.create-group-target p,
.create-question-target p {
    text-align: center;
    margin: 0;
    opacity: 0.5;
}

/* LOADING SCREEN */

#loading-screen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: darkgray;
    z-index: 999999;
    opacity: 0.75;
}

#loading-screen .spinner {
    height: 60px;
    width: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    border: 6px solid rgba(0, 0, 0, 0.2);
    border-radius: 100%;
}

#loading-screen .spinner:before {
    content: "";
    display: block;
    position: absolute;
    left: -6px;
    top: 3px;
    height: 125%;
    width: 125%;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
    border-left: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid transparent;
    border-radius: 100%;
}

#createEditCheckModal .test-section-wrapper,
#editCheckClauseBuilderModal .test-section-wrapper {
    background-color: #efefef !important;
}

#createEditCheckModal .dropodown-size {
    width: 160px;
    overflow: hidden;
}

#createEditCheckModal .dropdown-item {
    width: auto;
}

#createEditCheckModal #addItem,
#createEditCheckModal #addActionTarget {
    margin-left: 45px;
}

#createEditCheckModal .test-message.success,
#editCheckClauseBuilderModal .test-message.success {
    color: #0bb7af;
}

#createEditCheckModal .test-message.danger,
#editCheckClauseBuilderModal .test-message.danger {
    color: #ee2d41;
}

#createEditCheckModal .editor-warning-send-email,
#createEditCheckModal .editor-overwrite-answers {
    padding: 15px;
}

#createEditCheckModal .removeButton {
    float: right;
}

#createEditCheckModal .edit-checks-dropdown-filter {
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    margin: 5px 15px;
    padding: 3px;
    width: 80%;
}

#questionList i {
    font-size: 1em;
}

#questionList i:hover {
    cursor: pointer;
}

#questionList .metadata-option-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    margin: 2px 0;
    padding: 5px 40px 5px 10px;
}

#questionList .metadata-option-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

#questionList .metadata-option-wrapper div {
    display: flex;
}

#questionList .option-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    margin: 2px 0;
}

#questionList .toast-message-icon {
    margin: auto;
    font-size: 1.5em;
}

#questionList .toast-message-icon.success {
    color: #4bb543;
}

#questionList .toast-message-icon.error {
    color: red;
}

#questionList p {
    margin-bottom: 0;
}

a.brand-logo-mobile {
    display: none;
}

#kt_header_mobile {
    width: 30%;
}
@media (max-width: 992px) {
    a.brand-logo-mobile {
        display: flex;
        margin-left: 25px;
    }
}

.in-editor-mode .sortableGroupRow,
.in-editor-mode .sortableQuestionRow {
    min-height: 50px;
}

.date-question label .checker {
    display: inline-block;
}

.group-cases-table-wrapper td {
    min-width: 80px;
}

.group-cases-table-wrapper td:nth-child(1) {
    min-width: 190px;
}

/* Hide ASAP form fields */
#zohohc-asap-web-ticketform-field-contactid,
#zohohc-asap-web-ticketform-field-email,
#zohohc-asap-web-ticketform-section-additional_information,
#zohohc-asap-web-ticketform-field-cf_account_id {
    display: none !important;
}

#zohohc-asap-web-helper-main {
    z-index: 99;
}

/* Edit Check Clause Builder */
#editCheckClauseBuilderModal .drop-zone {
    overflow: scroll;
    padding: 40px 0 0 15px;
    height: 620px;
    border-radius: 5px;
    background: repeating-linear-gradient(
        135deg,
        #fff,
        #fff 10px,
        #eee 10px,
        #eee 20px
    );
}

#editCheckClauseBuilderModal .trash {
    padding: 8px;
    position: absolute;
    top: -65px;
    right: 40px;
    opacity: 0.75;
}

#editCheckClauseBuilderModal .trash.highlighted {
    opacity: 1;
    color: white;
    border-radius: 10%;
    background-color: rgba(255, 0, 0, 0.6) !important;
}

#editCheckClauseBuilderModal .edit-check-string-zone {
    padding: 25px 40px 35px 40px;
    height: max-content;
    bottom: 0;
    position: absolute;
    left: 0;
}

#editCheckClauseBuilderModal .edit-check-string input {
    width: 100%;
    text-align: center;
}

#editCheckClauseBuilderModal .modal-dialog.modal-xl {
    max-width: 100% !important;
}
#editCheckClauseBuilderModal .draggables-sidebar {
    padding: 30px;
    overflow-y: scroll;
    height: 800px;
}

#editCheckClauseBuilderModal .draggables-zone {
    left: 1em;
    float: left;
    display: inline;
}

#editCheckClauseBuilderModal .basic-structure {
    width: max-content;
    background-color: lightgray;
    border-radius: 4px;
}

#editCheckClauseBuilderModal .drop-zone > .basic-structure {
    opacity: 0.5;
}

#editCheckClauseBuilderModal
    .drop-zone
    > .basic-structure.focused-bs-for-clause-string {
    opacity: unset;
}

#editCheckClauseBuilderModal .basic-structure,
#editCheckClauseBuilderModal .basic-structure .appendable-non-operator,
#editCheckClauseBuilderModal .basic-structure .appendable-operator {
    float: left;
    margin: 10px 20px;
}

#editCheckClauseBuilderModal .basic-structure .appendable-operator {
    margin-left: 0;
    margin-right: 0;
}

#editCheckClauseBuilderModal .basic-structure .appendable-non-operator,
#editCheckClauseBuilderModal .basic-structure .appendable-operator {
    min-height: 30px;
    border: 1px dashed white;
    background-color: rgba(0, 0, 0, 0.1);
}

#editCheckClauseBuilderModal .basic-structure .appendable-non-operator {
    min-width: 80px;
}

#editCheckClauseBuilderModal .add-remove-from-basic-structure-btns {
    display: inline-block;
}

#editCheckClauseBuilderModal .basic-structure .appendable-operator {
    min-width: 30px;
}

#editCheckClauseBuilderModal .small-draggable {
    padding: 10px;
    text-align: center;
    border-radius: 3px;
    min-width: 45px;
    color: white;
}

#editCheckClauseBuilderModal .small-draggable.item-id {
    background-color: #3699ff;
}

#editCheckClauseBuilderModal .small-draggable.operator {
    background-color: #f64e60;
}

#editCheckClauseBuilderModal .small-draggable.freetext-input,
#editCheckClauseBuilderModal .small-draggable.date-input,
#editCheckClauseBuilderModal .small-draggable.extra-option-input {
    background-color: #1bc5bd;
}

#editCheckClauseBuilderModal .small-draggable.freetext-input textarea,
#editCheckClauseBuilderModal .small-draggable.date-input input {
    border: 0;
    text-align: center;
    width: 150px;
    margin: -1px 5px;
    height: 22px;
}

#editCheckClauseBuilderModal .small-draggable.date-input input {
    max-width: 70px;
}
#editCheckClauseBuilderModal .new-element,
#workflows-modal .new-stage {
    width: 100%;
    padding: 0.8em;
    font-size: 100%;
    text-align: left;
    cursor: copy;
    margin-bottom: 10px;
}

#editCheckClauseBuilderModal .operators .new-element {
    width: unset;
}

#editCheckClauseBuilderModal .operators-heading,
#editCheckClauseBuilderModal .items-heading,
#editCheckClauseBuilderModal .test-section-heading {
    margin-bottom: 10px;
    margin-right: -10px;
    margin-left: -10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: #aaaaaa;
}

/* to make modal wider */
/* #editCheckClauseBuilderModal > div {
  width: 95% !important;
  margin: auto;
} */

.operators-sub-heading {
    margin-bottom: 2px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    color: #aaaaaa;
    font-size: 0.8em;
}

.signal-operators {
    text-align: center;
}

#editCheckClauseBuilderModal div[draggable="true"]:not(.new-element) {
    cursor: grab;
}

.droppable-here {
    width: max-content;
    background: linear-gradient(90deg, white 50%, transparent 50%),
        linear-gradient(90deg, white 50%, transparent 50%),
        linear-gradient(0deg, white 50%, transparent 50%),
        linear-gradient(0deg, white 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 6px 2px, 6px 2px, 2px 6px, 2px 6px;
    animation: border-dance 4s infinite linear;
    border: unset !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
}

#invalidClauseModal {
    z-index: 9999;
    padding: 20%;
}

#invalidClauseModal div {
    padding: 15px 20px 0 10px;
}

@keyframes border-dance {
    0% {
        background-position: 0 0, 100% 100%, 0 100%, 100% 0;
    }
    100% {
        background-position: 100% 0, 0 100%, 0 0, 100% 100%;
    }
}

/* ---------- */
#workflows-modal .added-stage-wrapper {
    /* max-width: 250px; */
    background-color: #fff !important;
    display: block;
    margin: 0;
    border-radius: 5px;
}

#workflows-modal .closed-stage-btn,
#workflows-modal .remove-stage,
#workflows-modal .signature-requirement {
    border-radius: 5px;
    color: #181c32;
    border: 1px solid #e4e6ef;
    padding: 2px 10px;
    cursor: pointer;
    text-align: center;
    margin: 5px;
}
#workflows-modal .closed-stage-btn:hover,
#workflows-modal .remove-stage:hover,
#workflows-modal .signature-requirement:hover {
    background-color: #f3f6f9 !important;
}

#workflows-modal label.col-12 {
    text-align: center;
    height: fit-content;
}
.add-new-stage.highlighted {
    color: #181c32;
    background-color: #f3f6f9;
    border: 0 !important;
}
.workflow-stage.add-new-stage,
.transition-stage.add-new-stage {
    border: 1px solid #181c32;
    border-radius: 5px;
    padding: 6px;
    height: max-content;
    float: left;
    margin-left: 1em;
    width: max-content;
}
.row.added-stages,
.row.available-stages {
    background-color: #e4e6ef !important;
    padding: 12px;
    border-radius: 10px;
    display: block;
    margin-right: 0;
}

.stages-container,
.transition-requirements-wrapper {
    border: 1px solid #e4e6ef;
    background-color: #eef0f7;
    min-width: 120px;
    min-height: 30px;
    padding: 10px;
    border-radius: 6px;
}

.transition-requirements-wrapper .select2-selection--multiple {
    border-color: unset !important;
}

#workflows_content .fa-pencil-alt:hover,
#workflows_content .fa-trash:hover,
#stages_content .fa-pencil-alt:hover,
#stages_content .fa-trash:hover,
#stages_content .fa-check-square:hover,
#stages_content .fa-window-close:hover,
#formList .fa-pencil-alt:hover {
    cursor: pointer;
}

#workflows-modal .dragging {
    opacity: 0.5;
}

#workflows-modal .added-stages {
    overflow-y: scroll;
    height: 60vh;
}

#workflows-modal .signature-requirement {
    max-width: 120px;
}

.availableSubscription {
    margin-right: 1em;
}
.availableSubscription:hover {
    background-color: #fbfbfb;
    box-shadow: 2px 2px#e6e5e5;
    border-radius: 5px;
}

/* session logout modal */
#idle-timeout-dialog {
    width: 100%;
}

#idle-timeout-dialog > div {
    margin-top: 5%;
}

#workflowsIcon svg {
    transform: rotate(-90deg);
    width: 18px;
}

#medDRA_table_wrapper {
    width: 100% !important;
}

#addTermButton {
    height: 3em;
}

#removeTermButton {
    height: 3em;
}

/* medDRA */

.meddra-error-message {
    color: red !important;
    font-size: 1rem !important;
}

.meddra-api-results-wrapper tr:hover > td {
    cursor: pointer;
    color: #3699FF;
}

#meddra-metadata-table tbody td {
    padding: 2px;
    vertical-align: middle;
}
#meddra-metadata-table  tbody {
    display: block;
    height: 400px;
    overflow: auto;
}

#meddra-metadata-table thead {
    display: table;
    width: 100% !important;
}
#meddra-metadata-table tbody tr {
    display: table-row;
    width: 100%;
}
#meddra-metadata-table thead {
    width: calc( 100% - 1em )/* scrollbar is average 1em/16px width, remove it from thead width */
}
.edit-question-modal .form-group {
    margin-bottom: 0em;
    
}

.create-meddra-question-modal .form-group {
    margin-bottom: 0.5em;
}

#meddra-metadata-table tbody .form-group {
    margin: 0.5em;
}

#meddra-metadata-table tbody input.form-control {
    height: 2em !important;
}

#meddra-metadata-table tbody input.question-variable-name,
#meddra-metadata-table tbody input.question-text {
    width: 90%;
    margin: auto;
}

#meddra-metadata-table tbody .checkbox-inline {
    padding-left: 40% !important;
}

#ajax-modal {
    z-index: 1100;
}

#meddraHierarchyModal .fa-level-up-alt {
    transform: rotate(90deg);
}

#meddraHierarchyModal .modal-content {
    max-width: 600px;
}

.form-caption {
    text-align: left;
    color: #364150;
}

#meddraHierarchyModal .badge-secondary, .meddra-all-general-components-wrapper .badge-secondary {
    background-color: #C4C4C4;
}

#pharmacovigilanceCases i:hover {
    color:#364150;
}
.export-icsr-xml,.export-icsr-cioms {
    width: 50%;
    font-size: 1em;
    padding: 4px;
    margin: 2px;
    display: inline;
}

.csv-import .number {
    color: #364150;
}
#requireList {
    list-style-type: none;
}

.check-icon {
    display: none;
    color:  green;
}

.allAnsweredForms {
    width: 15px;
    margin: auto;
}

.dataTables_scrollBody {
    min-height: 90px !important;
}

/* override classes for better form-engine spacing */
/* div.module-cases-table-wrapper table th:nth-child(1), div.module-cases-table-wrapper table th:nth-child(2), 
div.group-cases-table-wrapper table th:nth-child(1), div.group-cases-table-wrapper table th:nth-child(2){ 
    min-width: 125px;
} */

/* group and module cases-table-wrapper */
/* div.module-cases-table-wrapper table th:not(th:nth-child(2)), 
div.group-cases-table-wrapper table th:not(th:nth-child(2)){ 
    min-width: 250px;
} */

div.module-cases-table-wrapper table th, 
div.group-cases-table-wrapper table th { 
    min-width: 250px;
}

.form-engine-total-wrapper .form-group {
    margin: 0;
}

.form-engine-total-wrapper .card-body {
    padding: 5px 8px !important;
}

.form-engine-total-wrapper .gutter-b {
    margin-bottom: 5px;
}

.form-engine-total-wrapper .card-header {
    padding: 0 5px;
}

.form-engine-total-wrapper th, .form-engine-total-wrapper td {
    padding: 0 !important;
}

.form-engine-total-wrapper .group-case {
    padding: 0 10px;
}

.form-engine-total-wrapper .btn i, .dataTables_wrapper .btn i, .column-selector-wrapper .btn i, .grouped-answered-form .btn i {
    padding-right: 0;
}

.form-engine-total-wrapper .btn.btn-sm {
    padding: 5px;
}

.dataTables_wrapper .dataTables_scroll {
    margin: 0 !important;
}

.dataTables_wrapper .row, .dataTables_wrapper .dataTables_paginate {
    padding-right: 0 !important;
}

.dataTables_filter button span i {
    margin-right: 5px;
}

.column-selector-wrapper .dropdown-menu {
    min-width: 300px;
    max-height: 350px;
    overflow-y: auto;
    padding: 12px;;
}

.column-selector-wrapper .dropdown-menu span {
    max-width: 90%;
}

.form-header-total-wrapper.preview {
    max-height: 80px;
    overflow: hidden;
}

#editCheckListModal .modal-content {
    max-width: 1900px;
}

.modal-xl.audit-trail {
    max-width: 75% !important;
}

#newCRFTrialLocation .form-group {
    display: flex;
    align-items: center; /* Vertically align the labels and inputs */
    justify-content: flex-start; /* Ensure labels are aligned to the left */
    flex-wrap: wrap; /* In case elements don't fit in one line */
}

/* Ensure the labels are aligned to the right */
#newCRFTrialLocation .control-label {
    justify-content: flex-end;
    text-align: right;
    width: 30%; /* Adjust as needed to give space to the labels */
}

/* Ensure form-control elements are aligned to the left */
#newCRFTrialLocation .form-control {
    text-align: left;
    width: 70%; /* Adjust as needed to give space to inputs */
}

.btn-grouped-forms {
    color: #181C32 !important;
}

.btn-grouped-forms:hover {
    color: #3699FF !important;
}

.save-answered-forms {
    margin-top: -5.8em;
}

.create-date-question-modal .form-control,
.create-text-question-modal .form-control,
.create-check-question-modal .form-control,
.create-binary-question-modal .form-control,
.create-numerical-question-modal .form-control,
.create-instruction-question-modal .form-control,
.create-file-question-modal .form-control,
.create-meddra-question-modal .form-control,
.edit-question-modal .form-control {
    border: 1px solid #d2d3d8;
}

#importProgress .dataTables_scrollBody,
#importHistory .dataTables_scrollBody {
    max-height: 300px;
}

.import-triage-target .dataTables_scrollBody,
.import-triage-evaluated-target .dataTables_scrollBody {
    max-height: 500px;
}

.import-triage-target th:nth-child(2):has(.row),
.import-triage-target td:nth-child(2):has(.row) {
    min-width: 380px;
}

#formsList .mark-as-effective {
    display: flex;
    align-items: center; 
    justify-content: center; 
    height: 100%;
}

ul#select2-permissionBox-results {
    height: 400px !important;
    max-height: 400px !important;
}

ul#select2-roleBox-results,
ul#select2-trialLocationBox-results {
    max-height: 400px !important;
}

.input-headers {
    height: 1em;
}

.input-headers input {
    height: 100%;
    padding: 0;
}

.dropdown-menu.show {
    z-index: 9999 !important;
}