@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --dark-green: rgb(0, 64, 53); /* Dark green branding color */
    --background-colour: #0A493F;
    --background-colour-darker: #004035;
    --background-colour-lighter: #005747;
}

html, body {
    font-family: "Roboto", "sans-serif";
}

body {
    background: #FFFFFF;
}

#app {
    position: relative;
    min-height: calc(100vh - var(--footer-total-height));
    min-height: calc(100dvh - var(--footer-total-height));
}

#blazor-error-ui {
    color: black;
}

body {
    --useable-height: calc(100vh - var(--logo-total-height) - var(--footer-total-height)); /* Fallback for if dvh is not supported */
    --useable-height: calc(100dvh - var(--logo-total-height) - var(--footer-total-height));
    --logo-height: 98px;
    --logo-padding: 10px;
    --logo-total-height: calc(var(--logo-height) + var(--logo-padding) + var(--logo-padding)); /* 2 x logo padding for top and bottom */

    --footer-height: 20px;
    --footer-margin: 10px;
    --footer-total-height: calc(var(--footer-height) + var(--footer-margin));
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZ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LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* Custom CSS */
@keyframes spin {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: rotate(360deg);
        opacity: 1;
    }

    100% {
        transform: rotate(720deg);
        opacity: 1;
    }
}

.spin-animate {
    animation-name: spin;
    animation-delay: 0;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-duration: 5s;
}

.circle-logo-fullscreen {
    width: 66px;
    height: 66px;
    animation-name: spin;
    animation-delay: 0;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-duration: 5s;
    position: fixed;
    top: calc(50vh - 50px);
    left: calc(50vw - 33px);
}


@media(max-width:599.9px) {
    .circle-logo-fullscreen {
        width: 50px;
        height: 50px;
        top: calc(50vh - 40px);
        left: calc(50vw - 25px);
    }
}

.circle-logo {
    width: 66px;
    height: 66px;
    animation-name: spin;
    animation-delay: 0;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-duration: 5s;
}


@media(max-width:599.9px) {
    .circle-logo {
        width: 50px;
        height: 50px;
    }
}

.loading-text {
    color: white;
    font-weight: bold;
    text-align: center;
    margin-top: 24px;
}

/* Organisation List */
.organisation-list-loading-spinner {
    width: 100%;
    text-align: center;
    padding: 60px !important;
}

.organisation-list-item {
    display: grid;
    cursor: pointer;
    top: 0;
    left: 0;
    -webkit-transition: all 250ms cubic-bezier(.4, 0, .2, 1);
    transition: all 250ms cubic-bezier(.4, 0, .2, 1);
}

    .organisation-list-item:hover {
        top: -6px;
        left: 0;
        position: relative;
    }

    .organisation-list-item .mud-paper:hover {
        box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 6px -3px, rgba(0, 0, 0, 0.14) 0px 10px 14px 1px, rgba(0, 0, 0, 0.12) 0px 4px 18px 3px;
    }


.input-field label {
    font-weight: bold;
}

.w-100 {
    width: 100%;
}


div#participants video {
    max-width: 100%;
    max-height: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 8px;
}

.hidden {
    display: none;
}

.connection-lost-icon {
    color: #ffcaca;
    background: #ff2727;
    border-radius: 100%;
    font-size: 4rem;
}

.mandatory .input-field label::after {
    content: '*';
    color: red;
}

.mandatory .input-field .mud-input-control label::after {
    content: none;
}


.pb-8px {
    padding-bottom: 8px !important;
}

.fw-500 {
    font-weight: 500 !important;
}

span.col-grey {
    color: rgb(98, 109, 120); /* #626D78 */
}

.pb-4px {
    padding-bottom: 4px !important;
}

.text-condensed {
    font-family: 'Roboto Condensed', sans-serif;
}

.px-6px {
    padding-left: 6px;
    padding-right: 6px;
}

.pt-24px {
    padding-top: 24px !important;
}

.mt-16px {
    margin-top: 16px !important;
}

.pt-24px {
    padding-top: 24px !important;
}

.pt-16px {
    padding-top: 16px !important;
}

.mt-16px {
    margin-top: 16px !important;
}

.mt-n40px {
    margin-top: -40px !important;
}

.fs-16px {
    font-size: 16px;
}

.fs-14px {
    font-size: 14px;
}

.fs-40px {
    font-size: 40px;
}

.fs-24px {
    font-size: 24px;
}

.col-grey {
    color: rgba(98, 109, 120, 1);
}

.col-dark-green {
    color: var(--dark-green);
}

.col-white {
    color: white;
}

.d-ib {
    display: inline-block;
}

.pt-0 {
    padding-top: 0;
}

.p-0 {
    padding: 0;
}

.p-5px {
    padding: 5px;
}

.client-logo {
    max-height: 50px;
    max-width: 210px;
}

body > iframe {
    display: none;
}

.awaiting-inspector {
    text-align: center;
    color: #fff;
}

.whitelabel .awaiting-inspector {
    color: #000;
}

.error-ctn {
    display: none;
    margin: auto;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    width: 90%;
    border-radius: 10px;
    background-color: rgba(214, 122, 17, 1);
    color: white;
    font-weight: 500;
    padding: 20px;
}

.error-inner {
    position: relative;
    text-align: center;
}

.error-message {
    position: relative;
    top: -5px;
}

.error-icon {
    display: inline;
}








.split-container-holder {
    display: flex;
}



.split-container-left {
    width: 280px;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
}

.split-container-holder.expanded .split-container-left {
    width: 280px !important;
    position: fixed;
    z-index: 99;
    box-shadow: 7px 0 3px -3px #9d9d9d30;
}

.inspection-details .split-container-left {
    width: 370px;
}

.split-container-holder.inspection-details.expanded .split-container-left {
    width: 370px !important;
}

.container-left-expanded {
    display: block;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.container-left-collapsed {
    display: none;
}

    .container-left-collapsed label {
        font-weight: bold;
        transform: rotate(270deg);
        display: block;
        width: 280px;
        position: absolute;
        left: -116px;
        top: 209px;
        text-align: right;
    }

.split-container-holder.expanded .container-left-expanded {
    display: block;
}

.split-container-holder.expanded .container-left-collapsed {
    display: none;
}

@media(max-width:1070px) {

    .split-container-left {
        width: 50px !important;
        box-shadow: 7px 0 3px -3px #9d9d9d30;
        z-index: 99;
    }

        .split-container-left .expand-sidebar-btn {
            display: block;
        }

    .split-container-holder.expanded .split-container-left .expand-sidebar-btn {
        display: none;
    }

    .split-container-holder.expanded .split-container-left .contract-sidebar-btn {
        display: block;
    }

    .container-left-expanded {
        display: none;
    }

    .container-left-collapsed {
        display: block;
        background-color: #fff;
        height: 100vh;
    }
}

@media(min-width:1070px) {
    .split-container-holder.expanded .split-container-left {
        width: 500px !important;
        position: static;
        z-index: 99;
        box-shadow: none;
    }

    .container-left-expanded {
        display: block !important;
    }

    .container-left-collapsed {
        display: none !important;
    }
}

.split-container-holder.mobile {
    background-color: #0A493F;
}

.split-container-holder {
    display: flex;
}



.split-container-left {
    width: 280px;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
}

.split-container-holder.expanded .split-container-left {
    width: 280px !important;
    position: fixed;
    z-index: 99;
    box-shadow: 7px 0 3px -3px #9d9d9d30;
}

.inspection-details .split-container-left {
    width: 370px;
}

.split-container-holder.inspection-details.expanded .split-container-left {
    width: 370px !important;
}

.container-left-expanded {
    display: block;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.container-left-collapsed {
    display: none;
}

    .container-left-collapsed label {
        font-weight: bold;
        transform: rotate(270deg);
        display: block;
        width: 280px;
        position: absolute;
        left: -116px;
        top: 209px;
        text-align: right;
    }

.split-container-holder.expanded .container-left-expanded {
    display: block;
}

.split-container-holder.expanded .container-left-collapsed {
    display: none;
}




@media(max-width:1070px) {

    .split-container-left {
        width: 50px !important;
        box-shadow: 7px 0 3px -3px #9d9d9d30;
        z-index: 99;
    }

        .split-container-left .expand-sidebar-btn {
            display: block;
        }

    .split-container-holder.expanded .split-container-left .expand-sidebar-btn {
        display: none;
    }

    .split-container-holder.expanded .split-container-left .contract-sidebar-btn {
        display: block;
    }

    .container-left-expanded {
        display: none;
    }

    .container-left-collapsed {
        display: block;
        background-color: #fff;
        height: 100vh;
    }
}

@media(min-width:1070px) {
    .split-container-holder.expanded .split-container-left {
        width: 500px !important;
        position: static;
        z-index: 99;
        box-shadow: none;
    }

    .container-left-expanded {
        display: block !important;
    }

    .container-left-collapsed {
        display: none !important;
    }
}

.split-container-holder.mobile {
    background-color: #0A493F;
}

@media (max-width: 959px) {
    /* Make the main container (that holds the body) scrollable */
    .main-container {
        overflow-y: scroll !important;
    }
}

.os-summary-bottom button {
    padding: 6px 8px !important;
}




/* EditNoteDialog.razor */
.os-capture-area-label {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    left: 10px;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 6px;
}

    .os-capture-area-label p:first-of-type {
        font-weight: bold;
        font-size: 16px;
    }

.os-capture-rag {
    position: absolute;
    right: 10px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 10px 7px 11px;
    border-radius: 5px;
}

    .os-capture-rag > div {
        display: inline-block !important;
    }

.os-capture-actions {
    position: absolute;
    bottom: 10px;
    width: 90%;
    margin-left: 5%;
}

    .os-capture-actions.landscape {
        width: 98%;
        margin-left: 2%;
    }

.os-capture-actions-buttons {
    justify-content: space-between;
    display: flex;
}

.os-capture-actions.landscape .os-capture-actions-buttons {
    align-items: end;
}

.os-capture-actions-text {
    background-color: #004035;
    margin-left: -21px;
    width: calc(100% + 42px);
    margin-top: 15px;
    margin-bottom: -10px;
    padding: 14px 14px 1px 14px;
}

.os-capture-actions.landscape .os-capture-actions-text {
    width: calc(100% + 21px);
}

.os-mobile-note-scroller {
    height: 100%;
    /* background-color: blue; */
    margin: 0 auto;
    /* display: flex
; */
    flex-direction: row;
    /* gap: 1.25rem; */
    overflow: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0;
    /*padding-top: 66vh;*/
    padding-top: calc(calc(var(--vh) * 100) - 100px);
    z-index: 2;
    position: relative;
    width: 100%;
    scroll-snap-type: y mandatory;
}

.os-mobile-note-header {
    position: absolute;
    right: 10px;
    top: 10px;
    display: block;
    width: 100%;
    text-align: right;
    /* background-color: #00000042; */
    color: #fff;
    padding: 7px 10px;
    border-radius: 10px;
}

    .os-mobile-note-header h3 {
        font-size: 30px !important;
        background-color: transparent !important;
        color: #fff !important;
        padding: 0 !important;
    }

    .os-mobile-note-header h4 {
        display: inline-block;
        background-color: #00000070;
        padding: 5px 15px;
        border-radius: 20px;
    }

.os-mobile-note-image-chips {
    /* padding: 10px; */
    position: absolute;
    top: 53px;
    right: 0;
}

    .os-mobile-note-image-chips .note-ai-tag {
        background: #fff7c5;
        border-radius: 5px;
        padding: 5px 10px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .os-mobile-note-image-chips .note-type-tag {
        top: 0;
    }

        .os-mobile-note-image-chips .note-type-tag span {
            display: none;
        }

.os-drag-handle {
    background-color: #cecece;
    height: 5px;
    width: 100px;
    margin: 0 auto;
    margin-top: 10px;
    border-radius: 7px;
}

.os-drag-handle-note {
    height: 22px;
    background-color: red;
    margin: 0 auto;
    padding-top: 10px;
    position: absolute;
    width: calc(100vw - 30px);
    background-color: #fff;
    position: relative;
    z-index: 5;
    top: 22px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

    .os-drag-handle-note > div {
        background-color: #cecece;
        height: 5px;
        width: 100px;
        margin: 0 auto;
        margin-top: -3px;
        border-radius: 7px;
        margin-bottom: 15px;
    }

.os-mobile-note-scroller-item {
    background-color: #fff;
    height: calc(100vh - 80px);
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-margin: 103px;
    /*    scroll-margin: 15px;*/
    border-radius: 0;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    overflow: auto;
    padding: 15px;
    box-shadow: 0 -4px 15px -4px #7c7777;
    padding-bottom: 150px;
    position: relative;
    z-index: 4;
    padding-top: 122px;
    transition: all 0.2s ease-in-out;
}

.os-mobile-note-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: #0A493F;
    background-position-y: calc(50% - 48px);
}

.mob-contain-img {
    max-width: 100%;
    margin: auto;
    display: block;
    position: relative;
    top: 0%;
    /*    transform: translateY(-50%);*/
}

.os-mobile-note-video {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: #0A493F;
    background-position-y: calc(50% - 48px);
}

.os-mobile-note-image video {
    -o-object-fit: cover;
    object-fit: cover;
}

.os-mobile-note-save {
    padding: 1px 16px;
    display: flex;
    gap: 10px;
    position: fixed;
    width: 96%;
    bottom: -100px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    z-index: 2;
    border-radius: 49px;
    margin: 2%;
    transition: all 0.2s ease-in-out;
    bottom: 5px;
}

    .os-mobile-note-save.visible {
        bottom: 5px;
    }

.os-mobile-note-rag-colour {
    position: relative;
    top: 7px;
    width: 86%;
    margin-left: 8%;
    z-index: 1;
    border-radius: 14px;
}

.os-mobile-note-save button {
    display: block;
    width: 100%;
    border-radius: 25px;
}

.os-mobile-note-input-container {
    background-color: #f3f3f3 !important;
    padding: 10px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

    .os-mobile-note-input-container h3 {
        font-size: 14px !important;
        color: #8c8c8c !important;
        background-color: transparent !important;
    }

.os-mobile-note-tags .note-dialog-tags-container {
    margin: 0 !important;
}

.os-mobile-note-tags .note-tags-container > div > div {
    display: block !important;
}

.os-mobile-note-tags .note-tags-container {
    flex-direction: row-reverse;
}

.os-mobile-note-rag .mud-grid-item {
    gap: 10px;
}

.os-mobile-note-rag .rag-status-mob {
    width: 100%;
}

.os-mobile-note-text .mud-input-control {
    background-color: #fff;
    margin-top: 10px;
}

/* END: EditNoteDialog.razor */

.bottom-20px {
    bottom: 20px !important;
}

.occupier-note-scroll .mud-button-label {
    left: -12px;
    position: relative;
}

.mobile-upload-box .mud-button-label {
    left: 0px;
    position: relative;
}

.finalise-btn-occupier label.mud-button-outlined-size-medium {
    border-radius: 40px;
    font-size: 15px;
    background-color: var(--mud-palette-primary);
    color: #fff !important;
    padding: 8px 18px;
    width: 100%;
}

.finalise-btn-occupier {
    margin-bottom: 0 !important;
}

.os-summary-bottom {
    justify-content: center !important;
}

.os-action-buttons {
    width: 95% !important;
    left: 0 !important;
    margin: 0 10px !important;
}

.flag-img {
    height: 20px;
    margin-bottom: -5px;
    border-radius: 3px;
    width: 30px;
    object-fit: cover;
    margin-right: 10px !important;
}

.location-test-dialog .mud-dialog-content {
    padding: 0 !important;
    margin-top:0 !important;
}
.camera-test-dialog .mud-dialog-content {
    padding: 0 !important;
    margin-top: 0 !important;
}
