.popupBg,
.popup,
.popupAutoW {
    position: fixed;
}

.popupBg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.popup,
.popupAutoW {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    max-width: 630px;
    min-width: 300px;
}

.popupAutoW {
    min-width: 300px;
    max-width: min-content;
}

.popupCloseBtn,
.popupCloseBtn::before,
.popupCloseBtn::after {
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}

.popupCloseBtn {
    top: 10px;
    right: 15px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #0082c7;
    display: flex;
    justify-content: center;
}

.popupCloseBtn::before,
.popupCloseBtn::after {
    content: "";
    width: 12px;
    height: 2px;
    background-color: #0082c7;
    top: 50%;
    border-radius: 2px;
    transform-origin: center;
}

.popupCloseBtn::before {
    transform: translateY(-50%) rotate(45deg);
}

.popupCloseBtn::after {
    transform: translateY(-50%) rotate(-45deg);
}

.popupTabBox {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bbbbbb;
    position: relative;
    padding: 0 10px;
}

.popupTabBox .popupTabBtn {
    font-size: 16px;
    color: #818181;
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
}

.popupTabBox .popupTabBtn.active {
    color: #0082c7;
    cursor: default;
}

.popupContentBox {
    padding: 1rem;
    max-height: 600px;
    overflow: auto;
}

.popupContentBox .popupTab {
    display: none;
}

.popupContentBox .popupTab p {
    margin: 0;
    font-size: 0.8rem;
}

.popupTabChildren {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 2rem;
    border: 1px solid #bbbbbb;
}

.popupTabChildrenRows {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    color: #000;
}

.popupContentBox .popupTab.active {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.popupTabLine {
    position: absolute;
    top: 48.5px;
    left: 10px;
    width: 1px;
    height: 3px;
    background-color: #0082c7;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.popupFooter {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 1rem;
    position: relative;
    z-index: 1000;
}

.popupContainer {
    height: 100%;
    position: relative;
}

.popupTabChildrenRows p a {
    color: #0082c7;
    text-decoration: none;
}

.popupPrimaryBtn,
.popupSecondaryBtn {
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    cursor: pointer;
}
.popupPrimaryBtn {
    background: #0082c7;
    color: #fff;
    border: none;
}

.popupSecondaryBtn {
    color: #000;
    background: #fff;
    border: 1px solid #bbb;
}

/* Detaild Cookie */

.detailedCookieTable {
    border-collapse: collapse;
    width: 100%;
}

.detailedCookieTable th,
.detailedCookieTable td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

.detailedCookieTable th {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    background: #0082c7;
}

.detailedCookieTable tr:nth-child(odd) {
    background-color: #dcf3ff;
}

.popupForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* padding: 0 1rem; */
    & button {
        margin-top: 1rem;
        width: 100%;
    }
}

.popupFormElement {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    & label label {
        color: #818181;
    }
    & input,
    select {
        border-radius: 5px;
        border: #0082c7 solid 1px;
        padding: 0.25rem;
        font-size: 12pt;
    }

    & select {
        width: 100%;
    }
}

.ldapElement {
    display: flex;
    & input {
        border-radius: 5px;
        border: #0082c7 solid 1px;
        padding: 0.25rem;
        font-size: 12pt;
    }
}

.subPopupTitle {
    margin: 13.5px 20px;
    font-weight: 500;
    color: #0183b1;
}

.aboutFooter {
    display: flex;
    gap: 2rem;
    align-items: center;
    & :nth-child(1) {
        width: 60px;
    }
    & :nth-child(2) {
        width: 100px;
    }
    & p {
        font-size: 12px;
    }
}

.companySymbol {
    width: 55px;
}
.eIFU {
    width: 50px;
    margin-top: 10px;
}
.UDI {
    width: 65px;
}
.REP {
    width: 100px;
}

@media screen and (max-width: 400px) {
    .popup {
        width: 90% !important;
    }
    .popupContentBox,
    .popupTabChildren {
        padding: 0.6rem;
    }
    .popupContentBox .popupTab p {
        font-size: 0.7rem;
    }
    .popupTabChildrenRows {
        gap: 0.5rem;
    }
    .aboutFooter {
        gap: 1rem;
        & :nth-child(1) {
            width: 40px;
        }
        & :nth-child(2) {
            width: 60px;
        }
        & p {
            font-size: 12px;
        }
    }
    .companySymbol,
    .eIFU {
        width: 40px;
    }
    .UDI {
        width: 45px;
    }
    .CH {
        width: 70px;
    }
}

#mergeSplitStudyForMerge {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #eeeeee;
    padding: 10px 15px;
}

#mergeSplitStudyForMerge > span {
    font-size: 0.6rem;
}

#patientsForMerge {
    height: 340px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 !important;
    overflow: auto;
}

/* Remove blue color after hovering on autocomplete list
to avoid white background underneath the label */

#filterPatientsForMerge:-webkit-autofill,
.mergeSplitInputFieldContainer > input:-webkit-autofill {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 50px white inset;
}

#filterPatientsForMerge {
    width: calc(100% - 18px);
    border: 1px solid #bbbbbb;
    outline: none;
    border-radius: 3px;
    height: 1.9rem;
    padding: 0 0.5rem;
    background-color: #fff;
}

.containerPatientsForMerge {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    position: absolute;
    top: 0;
}

.mergeSplitRadioWrapper {
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem;
    cursor: pointer;
}

.mergeSplitRadioWrapper:has(input[type="radio"]:checked) {
    background-color: rgb(252, 227, 173);
}

.mergeSplitRadioWrapper:nth-child(2n - 1) {
    background-color: #f0f0f0; /* Light gray or any color of your choice */
}

.mergeSplitRadioWrapper:hover {
    background-color: rgb(252, 227, 173);
}

.mergeSplitRadioWrapper > input {
    margin: 0 0.5rem 0 0;
    cursor: pointer;
}

.mergeSplitRadioWrapper > label {
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.floatingLabel {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 2px 5px;
    background-color: white;
    color: #555555;
}

.mergeSplitInputField {
    width: 100%;
    border: 1px solid #bbbbbb;
    outline: none;
    border-radius: 3px;
    height: 2.1rem;
    padding: 0 0.5rem;
    background-color: #fff;
}

.mergeSplitSelectField {
    width: 100%;
    height: 2.2rem;
}

.mergeSplitInputFieldContainer {
    position: relative;
    margin: 0.3rem 0;
}
.WADOLinkPopupContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 175px;
    margin: 1rem 0;
}

.WADOLinkInnerContainer {
    border: 0.5px solid #bbbbbb;
    width: 55%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2% 1%;
}

.WADOLinkOption {
    display: flex;
    align-items: center;
}

.WADOLinkLabelDisabled {
    color: #bbbbbb;
}

.WADOLinkQRCodeContainer {
    border: 0.5px solid #bbbbbb;
    width: 30%;
    height: 100%;
    padding: 2% 1%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.WADOLinkQRCodeImage {
    width: 130px;
}

.WADOLinkCodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.WADOLinkCodeText {
    font-size: 1rem;
    font-weight: bold; /* Ensure bold text */
    white-space: nowrap;
}

.WADOLinkCopyIcon {
    margin-left: 0.3rem;
    margin-top: 2px;
}

.WADOLinkOuterContainer {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.WADOLinkInfoContainer {
    font-family: Arial, sans-serif;
    padding: 1rem;
    border: 0.5px solid #bbbbbb;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.WADOLinkButtonContainer {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    height: fit-content;
}

.WADOLinkContentWrapper {
    width: 100%;
}

.WADOLinkPatientInfo {
    font-size: 1rem;
    font-weight: bold;
}

.WADOLinkCompanyInfo {
    font-size: 0.7rem;
    font-style: italic;
}

.WADOLinkStudyInfo {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.WADOLinkLabelBold {
    font-weight: bold;
}

.WADOLinkHorizontalLine {
    width: 90%;
}

.emailWADOForm {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.emailWADOForm > *:first-child {
    margin-top: 0;
}

.emailWADOContent {
    max-height: 300px;
    overflow-y: scroll;
}

.emailWADOLabel {
    font-weight: bold;
    color: rgb(0, 130, 200);
}

.emailWADOInput,
.emailWADOContent {
    font-size: 0.8rem !important;
}

.emailWADOValidationError {
    width: 93%;
    color: #ed4337;
    display: none;
}

.disabledWadoEmailInput {
    border-color: #818181;
    background-color: rgba(239, 239, 239, 0.3);
    color: rgb(128, 128, 128) !important;
}

.disabledWadoEmailInput * {
    color: rgb(128, 128, 128) !important;
}

.emailWADOButtonContainer {
    position: relative;
}

.emailWADOButton {
    padding: 0.4rem 2rem !important;
}

.linkIcon,
.qrCodeIcon {
    background-repeat: no-repeat;
    margin: 0 0.2rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.centered_elements {
    display: flex;
    align-items: center;
    justify-content: center;
}

.radioWrapper {
    border: 0.5px solid #bbbbbb;
    border-radius: 5px;
    padding: 0.5rem;
    margin-top: 1rem;
}

.radioWrapper > div {
    display: flex;
    align-items: center;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.radioWrapper > div:first-child {
    margin-top: 0;
}

.radioWrapper > div:last-child {
    margin-bottom: 0;
}

.radioWrapper input[type="radio"] {
    margin: 0 0.2rem 0 0;
}

.WADOLinkLeftContainer {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wadoLinkQRCodePopup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.wadoLinkQRCodePopupImage {
    height: 150px;
}

.wadoLinkQRCodePopupLabel {
    margin-top: 1rem;
}

.wadoLinkQRCodePopupLinkLabel {
    display: none;
    font-weight: bold;
    margin-top: 0.5rem;
}

.WADOLinkActionButtonsContainer {
    display: flex;
    justify-content: right;
    gap: .5rem;
    width: 100%;
}

.WADOLinkActionButtonsContainer > button {
    padding: 0.4rem 1rem !important;
}

.WADOLinkActionButtonsContainer > button {
    padding: 0.4rem 1rem !important;
}

.WADOWarningContainer {
    margin-bottom: .5rem;
}

.WADOWarningHeader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ff0000;
    font-weight: bold;
    user-select: none;
}

.WADOWarningHeader .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ff0000;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

.WADOWarningContent {
    color: #ff0000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
}

.WADOWarningContentInner {
    padding: 0.5rem;
    border: 1px solid #ff0000;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.loader-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    -webkit-animation: rotation 1s infinite linear;
    -moz-animation: rotation 1s infinite linear;
    animation: rotation 1s infinite linear;
    vertical-align: middle;
    position: relative;
}

.loader-small::before {
    content: "\EEC2";
    font-family: "remixicon";
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: black;
    line-height: 16px;
    font-size: 16px;
}