.react-pdf__Page {
    min-width: auto !important;
    min-height: 586px !important;
}

.react-pdf__Page__canvas {
    margin: 0 auto;
    width: 418px !important;
    height: 586px !important;
}.PatientVideoCall {
    padding-bottom: 48px;
    background: "#F0F0F0"
}

.PatientVideoCall .main-component.fit {
    width: 100% !important;
}

.PatientVideoCall .main-component.fit>div {
    width: 100% !important;
}

.PatientVideoCall .main-component>div {
    height: 70vh !important;
}

.PatientVideoCall .main-component>div>div {
    max-height: 650px;
}

.PatientVideoCall .videoTitle {
    padding-top: 30px;
    margin-bottom: -30px;
}

.videoBox {
    padding-top: 30px;
    padding-bottom: 30px;
}

.videoBox>h1 {
    display: inline !important;
}

.videoDisplayNameBox button {
    width: 100px;
}

[data-ui-id="left-call-page"] button {
    display: none !important;
}

[data-ui-id="left-call-page"] span:nth-child(3) {
    display: none !important;
}

/* Force call controls (Leave Call, Lower Hand) to always be visible — not just on hover.
   IMPORTANT: opacity on a parent cannot be overridden by a child's opacity.
   We must target the container EPT hides, not just the individual buttons. */

/* EPT hides the controls bar via its parent wrapper — target all known ancestor patterns */
[data-ui-id="call-composite-call-controls"],
[data-ui-id="call-composite-call-controls"] > *,
[data-ui-id="call-composite-call-controls"] + div {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    transition: none !important;
}

/* Specifically keep the raised hand / lower hand and leave button visible */
[data-ui-id="call-composite-raise-hand-button"],
[data-ui-id="call-composite-hangup-button"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    pointer-events: auto !important;
}

[data-ui-id="call-composite-raisehand-button"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

[data-ui-id="call-composite-raisehand-button"].is-checked .ms-Button-label,
[data-ui-id="call-composite-raisehand-button"].is-checked [class*="label"],
[data-ui-id="call-composite-raisehand-button"].is-checked span:not([aria-hidden="true"]) {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    max-width: 200px !important;
    width: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    white-space: nowrap !important;
}

[data-ui-id="call-composite-raisehand-button"]:not(.is-checked) {
    background-color: transparent !important;
    color: inherit !important;
}

[data-ui-id="call-composite-raisehand-button"].is-checked {
    --ion-color-secondary: rgba(0, 100, 210, 1) !important;
    --ion-color-secondary-rgb: 0, 100, 210 !important;
    background-color: rgba(0, 100, 210, 1) !important;
    color: white !important;
}

.main-component .ms-Button.ms-Button--primary {
    opacity: 1 !important; 
    visibility: visible !important;
    pointer-events: auto !important;
    color: white !important;
    background-color: rgb(0, 120, 212) !important;
}

.App:has(.videoBox) .MuiToolbar-root>.MuiBox-root:nth-child(2) {
    display: none !important;
}

.App:has(.videoBox) .MuiToolbar-root>.MuiBox-root:nth-child(3) {
    display: none !important;
}

.App:has(.PatientVideoCall) .MuiToolbar-root>.MuiBox-root:nth-child(2) {
    display: none !important;
}

.App:has(.PatientVideoCall) .MuiToolbar-root>.MuiBox-root:nth-child(3) {
    display: none !important;
}

body.fixed-body {
    overflow: hidden;
    pointer-events: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.flex-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.modal-module {
    position: fixed;
    /* Stay in place */
    z-index: 1000000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
}

.modal-module .module-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.modal-module .module-wrapper .modal {
    pointer-events: all;
    margin: auto;
    padding: 0;
    width: 600px; /*Set to match figma width*/
    -webkit-animation-name: movefromtop;
    -webkit-animation-duration: 0.6s;
    animation-name: movefromtop;
    animation-duration: 0.6s;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
}

.modal-module .module-wrapper .modal .header {
    color: #fff;
    padding: 13px 10px 13px 40px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    /* border: 1px solid #393d40; */
    background: #0064D2;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.modal-module .module-wrapper .modal .header .title {
    margin: 0;
    font-weight: normal;
    padding: 0;
    font-size: 1rem;
    display: block;
}

.modal-module .module-wrapper .modal .header .close {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin-top: -5px;
    display: block;
}

.modal-module .module-wrapper .modal .header .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-module .module-wrapper .modal .header.error {
    background: red;
}

.modal-module .module-wrapper .modal .body {
    padding: 2.15rem 2.5rem 2rem 30px;
    background-color: #fefefe;
    /* border-left: 1px solid #393d40;
    border-right: 1px solid #393d40; */
}

.modal-module .module-wrapper .modal .finalise-body {
    padding: 40px 40px 32px 40px;
    background-color: #fefefe;
    /* border-left: 1px solid #393d40;
    border-right: 1px solid #393d40; */
}

.modal-module .module-wrapper .modal .finalise-body .title{
    margin: 0px 0px 16px 0px;
}

.modal-module .module-wrapper .modal .finalise-body .notes{
    width: 100%;
    margin-bottom: 8px;
}

.modal-module .module-wrapper .modal .buttons {
    padding: 0px 40px 40px 40px;
    background-color: #fefefe;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    /* border-left: 1px solid #393d40;
    border-right: 1px solid #393d40;
    border-bottom: 1px solid #393d40; */
    text-align: left;
}

.modal-module .module-wrapper .modal .buttons button {
    margin-right: 1.3rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    margin: 0px;
}

@-webkit-keyframes movefromtop {
    from {
        top: -300px;
        left: 10%;
    }

    to {
        top: 15%;
        left: 10%;
    }
}

@keyframes movefromtop {
    from {
        top: -300px;
        left: 10%;
    }

    to {
        top: 15%;
        left: 10%;
    }
}