/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

:root {
    --success-color: #4caf50;
    --failure-color: #f44336;
    --warning-color: #FFDE00;
    --transition-time: 300ms;
}

html {
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    line-height: 1;
    font-family: 'Open Sans', Verdana;
    font-size: 16px;
    background: var(--primary-bg-color);
    color: var(--primary-font-color);
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-heading-color) var(--primary-bg-color);
    transition-duration: var(--transition-time);
    user-select: none;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--primary-bg-color);
    border-radius: 1px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-heading-color);
    border-radius: 1px;
}

*::-webkit-scrollbar-button {
    display: none;
}

a {
    color: var(--secondary-button-bg-color);
    text-decoration: none;
    font-weight: bold;
    outline: none;
    cursor: pointer;
}

.relative-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 24px);
    height: 80px;
    border-bottom: 2px solid var(--primary-heading-color);
    display: none;
    /* JS will set to flex */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    z-index: 100;
    align-items: center;
    padding: 0 12px;
}

#topbar .icon {
    font-size: 42px;
}

#topbar #logo {
    height: 48px;
    margin-right: 16px;
    order: 1;
}

#topbar #telemedic-status-icon {
    margin-right: 12px;
    order: 2;

    .icon {
        font-size: 36px;
        color: var(--warning-color);
    }

    display: none;
}

#topbar #app-messages-icon {
    margin-right: 12px;
    order: 3;

    .icon {
        font-size: 36px;
        color: var(--secondary-button-font-color);
    }

    display: none;
}

#topbar #settings-btn {
    cursor: pointer;
    order: 5;
}

#topbar #settings-btn .icon {
    color: var(--secondary-button-font-color);
}

#topbar #call-sign-display {
    margin-left: auto;
    margin-right: 8px;
    text-align: right;
    font-size: 22px;
    font-weight: bold;
    order: 4;

    span {
        display: block;
        font-size: 12px;

        i {
            font-size: 16px;
            color: var(--secondary-button-font-color);
            margin-right: 4px;
        }
    }
}

#topbar #nida-remote-btn {
    position: fixed;
    border-radius: 36px;
    width: 72px;
    height: 72px;
    right: 8px;
    bottom: 8px;
    z-index: 100;
    background: #ff3f3f;
    text-align: center;
    line-height: 68px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

#topbar #nida-remote-btn .icon {
    color: #fafafa;
    font-size: 36px;
}

#topbar #new-call-btn {
    position: fixed;
    border-radius: 36px;
    width: 72px;
    height: 72px;
    right: 8px;
    bottom: 8px;
    z-index: 100;
    background: var(--primary-button-bg-color);
    text-align: center;
    line-height: 68px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

#topbar #new-call-btn .icon {
    color: var(--primary-button-font-color);
    font-size: 36px;
}

#topbar #audio-request-btn {
    position: fixed;
    border-radius: 28px;
    width: 56px;
    height: 56px;
    right: 88px;
    bottom: 8px;
    z-index: 100;
    background: var(--secondary-button-bg-color);
    text-align: center;
    line-height: 52px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

#topbar #audio-request-btn .icon {
    color: var(--primary-button-font-color);
    font-size: 32px;
}

#topbar #whatsapp-btn {
    position: fixed;
    border-radius: 28px;
    width: 56px;
    height: 56px;
    left: 8px;
    bottom: 8px;
    z-index: 100;
    background: var(--success-color);
    text-align: center;
    line-height: 56px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

#topbar #whatsapp-btn .icon {
    color: var(--primary-button-font-color);
    font-size: 36px;
}


#overview {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    height: calc(100% - 82px);
    overflow-y: auto;
    display: none;
}

#app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    border-top: 2px solid transparent;
}

.icon {
    font-size: 28px;
    color: var(--primary-font-color);
    vertical-align: middle;
    text-align: center;
}

.size32 {
    width: 32px;
}

.size48 {
    width: 48px;
}

.no-data {
    margin: 10px;
    margin-top: 40px;
    text-align: center;
}

.no-data .icon {
    font-size: 42px;
}

#delegations-view {
    position: absolute;
    top: 200px;
    right: 0;
    width: calc(50% - 20px);
    padding: 10px;
    height: calc(100% - 220px);
    overflow-y: auto;
    border-left: 1px solid var(--primary-heading-color);
}

#delegations-view .delegation-item {
    background: var(--secondary-bg-color);
    margin: 16px 8px 16px 8px;
    border-left: 4px solid var(--primary-font-color);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

#delegations-view .delegation-item-accepted {
    border-color: var(--success-color);
}

#delegations-view .delegation-item-rejected {
    border-color: var(--failure-color);
}

#delegations-view .delegation-item .delegation-category {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 20px;
    font-weight: bold;
}

#delegations-view .delegation-item .delegation-category .icon {
    width: 26px;
    margin-right: 6px;
}

#delegations-view .delegation-item .delegation-status .icon {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 26px;
}

#delegations-view .delegation-item .delegation-content {
    padding: 52px 0 10px 0;
}

#delegations-view .delegation-item .delegation-content .delegation-content-item {
    display: inline-block;
    margin: 8px 16px 8px 16px;
}

#delegations-view .delegation-item .delegation-content .delegation-content-item .delegation-content-item-header {
    font-size: 12px;
    margin-bottom: 2px;
    color: var(--primary-heading-color);
}

#delegations-view .delegation-item .delegation-content .delegation-content-item .delegation-content-item-content {
    font-size: 18px;
    color: var(--secondary-font-folor);
}

#delegations-view .delegation-item .delegation-content .delegation-btn {
    margin: 10px 16px 8px 16px;
    background: transparent;
    border: 2px solid grey;
    padding: 10px 20px 10px 20px;
    font-size: 16px;
    font-weight: bold;
}

#delegations-view .delegation-item .delegation-content .delegation-btn .icon {
    margin-right: 12px;
    width: 20px;
}

#delegations-view .delegation-item .delegation-content .delegation-reject-btn {
    color: var(--failure-color);
    border-color: var(--failure-color);
    float: left;
    width: auto;
}

#delegations-view .delegation-item .delegation-content .delegation-reject-btn .icon {
    color: var(--failure-color);
}

#delegations-view .delegation-item .delegation-content .delegation-accept-btn {
    color: var(--success-color);
    border-color: var(--success-color);
    float: right;
    width: auto;
}

#delegations-view .delegation-item .delegation-content .delegation-accept-btn .icon {
    color: var(--success-color);
}


.float-cancel {
    clear: both;
}


.heading {
    font-weight: bold;
    font-size: 18px;
}


#videochat-view {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 200px;
    border-bottom: 1px solid var(--primary-heading-color);
    border-left: 1px solid var(--primary-heading-color);
}

#videochat-view #videochat-heading {
    position: absolute;
    top: 10px;
    left: 10px;
}

#videochat-view #videochat-call-btn {
    margin-top: 60px;
    margin-left: 10px;
}

/*#videochat-view #videochat-call-btn .icon {*/
/*    color: var(--success-color);*/
/*}*/
#videochat-view #videochat-end-call-btn {
    margin-top: 60px;
    margin-left: 10px;
}

/*#videochat-view #videochat-end-call-btn .icon {*/
/*    color: var(--failure-color);*/
/*}*/
#videochat-view #toggle-microphone-btn {
    position: absolute;
    bottom: 80px;
    left: 80px;
}

#videochat-view #videochat-participants-count {
    height: 48px;
    position: absolute;
    bottom: 15px;
    left: 150px;
    width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    font-weight: bold;
    font-size: 18px;

    .fa-fw {
        color: var(--primary-font-color);
    }
}

#videochat-view #toggle-camera-btn {
    position: absolute;
    bottom: 80px;
    left: 150px;
}

#videochat-view #invite-user-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

#videochat-view #expand-videoframe-btn {
    position: absolute;
    bottom: 80px;
    left: 10px;
}

#videochat-view #switch-camera-btn {
    position: absolute;
    bottom: 10px;
    left: 80px;
}

#videochat-view #videoframe {
    width: 240px;
    height: 180px;
    position: absolute;
    top: 10px;
    right: 10px;
}

#chat-input-view {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(50% - 1px);
    height: 150px;
    background: var(--primary-bg-color);
}

#chat-input-view textarea {
    position: absolute;
    right: 80px;
    bottom: 10px;
    width: calc(100% - 250px);
    height: 110px;
    padding: 8px;
    border: 2px solid var(--secondary-button-bg-color);
    background: transparent;
    font-size: 16px;
    color: var(--primary-font-color);
    outline: none;
    resize: none;
}

button {
    border: 2px solid var(--secondary-button-bg-color);
    background: var(--primary-bg-color);
    width: 60px;
    height: 60px;
    text-align: center;
}

button .icon {
    color: var(--secondary-button-font-color);
    pointer-events: none;
}

#chat-input-view #chat-input-send-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 130px;
}

#chat-input-view #chat-input-phrases-btn {
    position: absolute;
    bottom: 80px;
    left: 80px;
}

#chat-input-view #chat-input-audio-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

#chat-input-view #chat-input-picture-btn {
    position: absolute;
    bottom: 80px;
    left: 10px;
}

#chat-input-view #chat-input-video-btn {
    position: absolute;
    bottom: 10px;
    left: 80px;
}

#chat-view {
    position: absolute;
    top: 100px;
    left: 0;
    width: calc(50% - 20px);
    padding: 10px;
    height: calc(100% - 270px);
    overflow-y: auto;
    border-top: 1px solid var(--primary-heading-color);
}

#chat-view .chat-message {
    width: calc(100% - 80px);
    overflow: hidden;
    background: var(--tertiary-bg-color);
    margin: 8px 8px 8px 8px;
    float: left;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

#chat-view .chat-message audio {
    max-width: 100%;
}

#chat-view .chat-message video {
    height: 200px;
    max-width: 100%;
}

#chat-view .chat-message-rescueteam {
    background: var(--secondary-bg-color);
    float: right;
}

#chat-view .chat-message .chat-message-content {
    padding: 16px 16px 36px 16px;
}

#chat-view .chat-message .chat-message-sent {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 12px;
}

#pictures-view {
    display: none;
}

#protocol-view {
    display: none;
}


#loading-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg-color);
    opacity: 0.9;
    z-index: 999999998;
}

#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 42px;
    transform: translate(-50%, -50%);
    z-index: 999999999;
}

.external-dialog-iframe {
    border: none;
    width: 100% !important;
    height: 100% !important;
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.bubble {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    margin-right: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.bubble.success {
    background: var(--success-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.bubble.error {
    background: var(--failure-color);
}

#update-found-content-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg-color);
    opacity: 0.9;
    z-index: 1000009;
    display: none;
}

#update-found-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    max-height: calc(100% - 120px);
    width: calc(100% - 80px);
    max-width: 500px;
    transform: translate(-50%, -50%);
    background: var(--secondary-bg-color);
    text-align: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000010;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

#update-found-dialog button {
    width: 100%;
    padding: 20px;
    height: 56px;
    border: var(--primary-button-bg-color);
    background: var(--primary-button-bg-color);
    color: var(--primary-button-font-color);
    outline: 0;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


#menu {
    position: absolute;
    top: 0;
    left: -100%;
    height: calc(100% - 40px);
    width: calc(100% - 100px);
    background: var(--primary-bg-color);
    z-index: 100001;
    text-align: left;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
}

#menu #menu-info {
    position: absolute;
    bottom: 4px;
    left: 4px;
}

#menu h3 {
    text-align: left;
    font-size: 24px;
    margin-bottom: 28px;
}

#menu a {
    display: inline-block;
    font-size: 20px;
    margin-bottom: 20px;
}

#menu i {
    margin-right: 8px;
}

#menu-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 12px;
    z-index: 1000002;
    font-size: 42px;
    pointer-events: none;
    color: var(--secondary-button-font-color);
}


#content-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg-color);
    color: var(--secondary-button-font-color);
    opacity: 0.9;
    z-index: 100000;
}

#content-block i {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 36px;
}

#dialog img {
    max-width: 80%;
    margin-left: 10%;
}

#dialog iframe {
    border: none;
    width: calc(100% - 20px);
    height: calc(100vh - 130px);
}

#dialog select {
    width: 100%;
}

#dialog {
    position: absolute;
    top: 70px;
    left: 50%;
    height: calc(100% - 140px);
    width: calc(100% - 80px);
    max-width: 500px;
    transform: translate(-50%);
    background: var(--secondary-bg-color);
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100001;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.dialog-full {
    width: calc(100% - 12px) !important;
    height: calc(100% - 80px) !important;
    padding: 0 !important;
}

.dialog-messages {
    width: calc(100% - 12px) !important;
    height: calc(100% - 82px) !important;
    top: 82px !important;
    padding: 0 !important;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

h4 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 18px;
}

h5 {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 12px;
}

input {
    width: calc(100% - 38px);
    height: 20px;
    padding: 16px;
    border: 2px solid var(--primary-heading-color);
    background: var(--secondary-bg-color);
    color: var(--primary-font-color);
    outline: 0;
    font-size: 16px;
}

input:disabled {
    opacity: 0.5;
}

textarea {
    width: calc(100% - 38px);
    height: 100px;
    padding: 16px;
    border: 2px solid var(--primary-heading-color);
    background: var(--secondary-bg-color);
    color: var(--primary-font-color);
    outline: 0;
    font-size: 16px;
}

textarea:disabled {
    opacity: 0.5;
}

select {
    padding: 16px;
    border: 2px solid var(--primary-heading-color);
    background: var(--secondary-bg-color);
    color: var(--primary-font-color);
    outline: 0;
    font-size: 16px;
}

select:disabled {
    opacity: 0.5;
}

#dialog button {
    width: 100%;
    padding: 20px;
    height: 56px;
    border: var(--primary-button-bg-color);
    background: var(--primary-button-bg-color);
    color: var(--primary-button-font-color);
    outline: 0;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.primary-btn {
    width: 100%;
    padding: 20px;
    height: 56px;
    border: var(--primary-button-bg-color);
    background: var(--primary-button-bg-color);
    color: var(--primary-button-font-color);
    outline: 0;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.primary-btn .icon {
    margin-right: 8px;
    color: var(--primary-button-font-color);
    vertical-align: middle;
}

#dialog button.secondary-btn {
    width: 100%;
    padding: 20px;
    height: 56px;
    border: var(--primary-button-bg-color);
    background: var(--primary-button-font-color);
    color: var(--primary-button-bg-color);
    outline: 0;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#dialog #login-country-code {
    width: 90px;
}

#dialog #login-phone-number {
    margin-left: 10px;
    width: calc(100% - 136px);
}

#dialog #login-code-cancel-btn {
    font-weight: bold;
    text-align: center;
}

#dialog .item {
    background: var(--primary-heading-color);
    color: var(--primary-font-color);
    padding: 20px;
    margin: 15px 0 15px 0;
    text-align: center;
}

#dialog .icon-btn {
    margin: 32px;
    border: 2px solid var(--primary-heading-color);
    font-size: 18px;
    font-weight: bold;
    padding: 24px;
    text-align: center;
}

#dialog .icon-btn i {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 60px;
    color: var(--primary-heading-color);
}

#dialog #video-container {
    margin-left: 50%;
    margin-bottom: 80px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    height: auto;
}

#dialog #video-preview {
    background: var(--tertiary-bg-color);
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
}

#dialog #video-preview i {
    height: 60px;
    margin-top: 72px;
}

#dialog #invite-phonenumber-field {
    display: block;
    margin: -12px 20px 20px 20px;
    padding: 12px;
    border: 1px solid var(--primary-font-color);
    font-size: 16px;
    text-align: center;
    width: 240px;
    color: var(--primary-font-color);
    background: var(--secondary-bg-color);
    outline: none;
}

#dialog #invite-phonenumber-btn {
    display: block;
    margin: 0 20px 20px 20px;
    width: 264px;
    font-size: 15px;
}

#dialog #invite-user-code {
    margin-top: -12px;
}

#record-note-display .icon {
    font-size: 36px;
}

#startBtn {
    position: absolute;
    bottom: 72px;
    right: 8px;
    width: 60px;
    height: 60px;
    display: none;
}

#stopBtn {
    position: absolute;
    bottom: 72px;
    right: 8px;
    width: 60px;
    height: 60px;
    display: none;
}

#recording-status {
    position: absolute;
    top: 80px;
    left: 20px;
    display: none;
}

@keyframes heartbeat {
    0% {
        transform: scale(1.25);
    }

    20% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(1);
    }

    80% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1.25);
    }
}

#dialog video {
    width: 100%;
    height: 100%;
}


.breathing {
    animation: breathing 5s ease-out infinite normal;
}

@keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    25% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }

    60% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }
}



.overview-tile {
    display: block;
    margin: 20px;
    background: var(--secondary-bg-color);
    width: calc(100% - 48px);
    height: 100px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.overview-tile-active {
    border-right: 4px solid var(--success-color);
}

.overview-tile-wait {
    border-right: 4px solid var(--warning-color);
}

.overview-tile-inactive {
    border-right: 4px solid var(--failure-color);
}

.overview-tile-normal {
    border-left: 4px solid var(--success-color);
}

.overview-tile-urgent {
    border-left: 4px solid var(--warning-color);
}

.overview-tile-immediately {
    border-left: 4px solid var(--failure-color);
}

.overview-tile .patient-name {
    position: absolute;
    top: 16px;
    left: 16px;
    font-weight: bold;
    font-size: 20px;
    width: calc(100% - 90px);
    color: var(--primary-font-color);
}

.overview-tile .priority-heading {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-weight: bold;
}

.overview-tile .priority-display {
    position: absolute;
    bottom: 16px;
    left: 90px;
}

.overview-tile .priority-normal {
    color: var(--success-color);
}

.overview-tile .priority-urgent {
    color: var(--warning-color);
}

.overview-tile .priority-immediately {
    color: var(--failure-color);
}

.overview-tile .status-heading {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-weight: bold;
}

.overview-tile .status-display {
    position: absolute;
    bottom: 16px;
    right: 74px;
    text-align: right;
}

.overview-tile .status-active {
    color: var(--success-color);
}

.overview-tile .status-wait {
    color: var(--warning-color);
}

.overview-tile .status-inactive {
    color: var(--failure-color);
}

.overview-tile .recall-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 8px;
}

.overview-tile .recall-icon .icon {
    font-size: 32px;
    color: var(--secondary-button-font-color);
}

.overview-tile .nida-icon .icon {
    color: var(--failure-color);
}

.half-col {
    width: calc(50% - 20px);
    margin: 10px;
    display: inline-block;
}

#add-vitals-btn {
    position: absolute;
    top: -50px;
    left: 0;
}

#add-vitals-btn .icon {
    font-size: 28px;
    color: var(--secondary-button-font-color);
}

#add-missionliveid-btn {
    position: absolute;
    top: -50px;
    right: 0px;
}

#add-missionliveid-btn .icon {
    font-size: 28px;
    color: var(--secondary-button-font-color);
}

#add-manual-missionliveid-btn {
    position: absolute;
    top: -50px;
    right: 42px;
}

#add-manual-missionliveid-btn .icon {
    font-size: 28px;
    color: var(--secondary-button-font-color);
}


#mobilenav-view {
    display: none;
}

#protocol-nav-view {
    display: none;
}


.notification {
    position: absolute;
    right: 8px;
    bottom: 8px;
    opacity: 0;
}

.notification i {
    font-size: 20px;
}


.error {
    color: var(--failure-color) !important;
}

.success {
    color: var(--success-color) !important;
}

#chat-input-send-btn {
    display: block;
}


.scan-region-highlight {
    border-radius: 30px;
    outline: rgba(0, 0, 0, .25) solid 50vmax;
}

.scan-region-highlight-svg {
    display: none;
}

.code-outline-highlight {
    stroke: rgba(255, 255, 255, .5) !important;
    stroke-width: 15 !important;
    stroke-dasharray: none !important;
}


#isa-waiving {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999999999999;
}


#backup-phone-dialog {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(100% - 60px);
    background: var(--secondary-bg-color);
    text-align: center;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000010;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    display: none;
}

#backup-phone-dialog button {
    border: 2px solid var(--secondary-button-bg-color);
    background: var(--primary-button-bg-color);
    color: var(--primary-button-font-color);
    height: 220px;
    width: 220px;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}

#backup-phone-dialog button i {
    font-size: 48px;
}

#backup-phone-dialog h3 {
    margin-top: 60px;
}


#maintenance-mode-dialog {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(100% - 60px);
    background: var(--secondary-bg-color);
    text-align: center;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000011;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    display: none;
}

#maintenance-mode-dialog button {
    border: 2px solid var(--secondary-button-bg-color);
    background: var(--primary-button-bg-color);
    color: var(--primary-button-font-color);
    height: 220px;
    width: 220px;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}

#maintenance-mode-dialog button i {
    font-size: 48px;
}

#maintenance-mode-dialog h3 {
    margin-top: 60px;
}


#map-view {
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    transition-duration: 0ms;
}


button .tablet-mode-btn {
    border: 2px solid var(--secondary-button-bg-color);
    background: var(--primary-bg-color);
    width: 48px;
    height: 48px;
    text-align: center;

    .icon {
        font-size: 22px;
        color: var(--primary-font-color);
        vertical-align: middle;
        text-align: center;
    }
}


#tablet-mode-main-btn {
    position: absolute;
    top: 20px;
    left: 10px;
}

#tablet-mode-map-btn {
    position: absolute;
    top: 20px;
    left: 82px;
}

#tablet-mode-map-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    z-index: 1000013;
    color: #191919;
    font-size: 36px;
}

#tablet-mode-close-mission-btn {
    position: absolute;
    top: 20px;
    left: calc(50% - 72px);
}


@media (orientation: portrait) {

    .tablet-mode-btn {
        display: none;
    }

    #record-video-btn {
        bottom: -48px;
    }

    #change-record-camera-btn {
        bottom: -48px;
    }

    #mobilenav-view {
        display: flex;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 64px;
        z-index: 9998;
    }

    #mobilenav-view .item {
        position: relative;
        display: block;
        height: 44px;
        text-align: center;
        padding-top: 16px;
        border-top: 2px solid var(--primary-heading-color);
        border-bottom: 2px solid var(--primary-bg-color);
        flex-grow: 1;
    }

    #mobilenav-view .item-active {
        display: block;
        height: 44px;
        text-align: center;
        padding-top: 16px;
        border-top: 2px solid var(--primary-font-color);
        border-bottom: 2px solid var(--primary-font-color);
        flex-grow: 1;
    }

    #mobilenav-view .item .icon {
        vertical-align: middle;
        font-size: 28px;
        color: var(--primary-heading-color);
    }

    #mobilenav-view .item-active .icon {
        vertical-align: middle;
        font-size: 28px;
        color: var(--primary-font-color);
    }


    #protocol-view {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: calc(100% - 92px);
        padding: 20px;
        padding-right: 72px;
        height: calc(100% - 108px);
        overflow-y: auto;
        border-left: 0px;
        background: var(--primary-bg-color);
    }

    #protocol-view #vitals-table {
        width: calc(100% - 20px);
        height: auto;
        padding: 10px;
        overflow-x: auto;
    }

    #protocol-view #vitals-table table {
        table-layout: auto;
    }

    #protocol-view #vitals-table table tr:first-child td {
        vertical-align: middle;
        font-weight: bold;
    }

    #protocol-view #vitals-table table tr td {
        text-align: center;
        padding: 10px;
        width: fit-content;
    }

    #protocol-view h3 {
        scroll-margin-top: 30px;
    }

    #protocol-view .files-item {
        display: flex;
        padding: 12px;
        flex-direction: row;
        align-items: center;

        .icon {
            margin-right: 8px;
        }
    }

    #protocol-nav-view {
        display: block;
        position: absolute;
        bottom: 68px;
        right: 4px;
    }

    #protocol-nav-view div:first-child {
        border-top-left-radius: 4px;
    }

    #protocol-nav-view div:last-child {
        border-bottom-left-radius: 4px;
    }

    #protocol-nav-view div {
        width: 48px;
        height: 48px;
        background: var(--secondary-bg-color);
        color: var(--secondary-button-font-color);
        text-align: center;
        transition-duration: 0ms;
    }

    #protocol-nav-view div.active {
        background: var(--primary-button-bg-color);
        color: var(--primary-button-font-color);
        transition-duration: 0ms;
    }

    #protocol-nav-view div i {
        font-size: 26px;
        margin-top: 12px;
    }

    #protocol-view .scrolling-space {
        width: 100px;
        height: 75vh;
    }


    #assistant-view {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: calc(100% - 68px);
        overflow-y: hidden;
        border-left: 0px;
        background: var(--primary-bg-color);
    }

    #map-view {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: calc(100% - 68px);
        overflow-y: hidden;
        border-left: 0px;
        background: var(--primary-bg-color);
    }


    #delegations-view {
        position: absolute;
        top: 0;
        right: 0;
        width: calc(100% - 20px);
        padding: 10px;
        height: calc(100% - 88px);
        overflow-y: auto;
        border-left: 0px;
        background: var(--primary-bg-color);
    }

    #delegations-view .delegation-item .delegation-content .delegation-btn {
        margin: 10px 16px 8px 16px;
        background: transparent;
        border: 2px solid grey;
        padding: 5px 10px 5px 10px;
        font-size: 14px;
        font-weight: bold;
    }

    #delegations-view .delegation-item .delegation-content .delegation-btn .icon {
        margin-right: 10px;
        font-size: 24px;
    }

    #delegations-view .delegation-item .delegation-content .delegation-reject-btn {
        color: var(--failure-color);
        border-color: var(--failure-color);
        float: left;
        width: auto;
    }

    #delegations-view .delegation-item .delegation-content .delegation-reject-btn .icon {
        color: var(--failure-color);
    }

    #delegations-view .delegation-item .delegation-content .delegation-accept-btn {
        color: var(--success-color);
        border-color: var(--success-color);
        float: right;
        width: auto;
    }

    #delegations-view .delegation-item .delegation-content .delegation-accept-btn .icon {
        color: var(--success-color);
    }


    #chat-view {
        position: absolute;
        top: 0;
        left: 0;
        width: calc(100% - 20px);
        padding: 10px;
        height: calc(100% - 208px);
        overflow-y: auto;
        border-top: 0px;
        background: var(--primary-bg-color);
    }

    #chat-input-view {
        position: absolute;
        bottom: 68px;
        left: 0;
        width: 100%;
        height: 120px;
        background: var(--primary-bg-color);
    }

    #chat-input-view textarea {
        position: absolute;
        right: 66px;
        bottom: 6px;
        width: calc(100% - 208px);
        height: 84px;
        padding: 8px;
        background: transparent;
        font-size: 16px;
        outline: none;
        resize: none;
    }

    #chat-input-view #chat-input-send-btn {
        position: absolute;
        bottom: 6px;
        right: 10px;
        height: 104px;
    }

    #chat-input-view #chat-input-phrases-btn {
        position: absolute;
        bottom: 62px;
        left: 66px;
    }

    #chat-input-view #chat-input-audio-btn {
        position: absolute;
        bottom: 6px;
        left: 10px;
    }

    #chat-input-view #chat-input-picture-btn {
        position: absolute;
        bottom: 62px;
        left: 10px;
    }

    #chat-input-view #chat-input-video-btn {
        position: absolute;
        bottom: 6px;
        left: 66px;
    }


    #videochat-view {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        height: calc(100% - 68px);
        border: 0px;
        background: var(--primary-bg-color);
        box-sizing: border-box;
    }

    #videochat-view * {
        box-sizing: border-box;
    }

    #videochat-view #videochat-heading {
        display: none;
    }

    #videochat-view #videochat-participants-count {
        height: 48px;
        position: absolute;
        bottom: 10px;
        left: 41vw;
        width: 18vw;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        font-weight: bold;
        font-size: 18px;

        .fa-fw {
            color: var(--primary-font-color);
        }
    }

    #videochat-view #videochat-call-btn {
        position: absolute;
        bottom: 10px;
        right: 41vw;
        width: 18vw;
        margin: 0;
    }

    #videochat-view #videochat-end-call-btn {
        height: 48px;
        position: absolute;
        bottom: 10px;
        right: 41vw;
        width: 18vw;
        display: none;
    }

    #videochat-view #toggle-microphone-btn {
        position: absolute;
        bottom: 10px;
        left: 61vw;
        width: 18vw;
    }

    #videochat-view #toggle-camera-btn {
        position: absolute;
        bottom: 10px;
        left: 21vw;
        width: 18vw;
    }

    #videochat-view #expand-videoframe-btn {
        display: none;
    }

    #videochat-view #switch-camera-btn {
        position: absolute;
        bottom: 10px;
        left: 81vw;
        width: 18vw;
    }

    #videochat-view #invite-user-btn {
        position: absolute;
        bottom: 10px;
        left: 1vw;
        width: 18vw;
    }

    #videochat-view #videoframe {
        position: absolute;
        width: 100%;
        height: calc(100% - 64px);
        top: 0;
        right: 0;
    }


    button {
        border: 2px solid var(--secondary-button-bg-color);
        background: var(--primary-bg-color);
        width: 48px;
        height: 48px;
        text-align: center;
    }

    .icon {
        font-size: 22px;
        color: var(--primary-font-color);
        vertical-align: middle;
        text-align: center;
    }

}