@import url('./vars.css');
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.reconnect-modal {
    position: absolute;
    bottom: 0;
}

#hs-image-container {
    top: 0;
    left: 0;
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    background-color: rgba(var(--hs-primary-blue-rgb), 0.5);
}

    #hs-image-container.hidden {
        width: 0;
        height: 0;
        opacity: 0;
        transition: opacity 2s ease-in-out;
    }


    #hs-image-container > img {
        max-width: 100%;
        max-height: 100%;
    }

/*non mobile friendly solution for the schedule page - but currently impossible to make mobile friendly */
.card-fixed {
    min-width: 220px;
}

@media only screen and (min-width: 640px) {
    .card-fixed {
        display: block !important;
        width: 25rem !important;
        flex: none !important;
    }
}

.nav-logo {
    max-block-size: 50px;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h7 {
    font-weight: bold;
}

    h7:first-letter {
        text-transform: uppercase;
    }

.w-fit-content {
    width: fit-content;
}

.overflow-wrap {
    overflow-wrap: anywhere;
}

.bg-blue {
    background-color: var(--hs-primary-blue) !important;
}

.bg-blue2 {
    background-color: var(--hs-secondary-blue);
}

.pointer {
    cursor: pointer;
}

.btn-min-12 {
    min-width: 12em;
}

.btn-min-10 {
    min-width: 10em;
}

.btn-min-8 {
    min-width: 8em;
}

.btn-min-6 {
    min-width: 6em;
}

.bottom-bar {
    height: 50px;
    width: 100%;
    background-color: #ffffffcf;
}

.z-index-1 {
    z-index: 1 !important;
}

.spacer {
    height: 10px;
}

.float-right {
    float: right;
}

#imageFile {
    display: none;
}

.imageFile {
    display: none;
}

.color-hs-text {
    color: var(--hs-text-color);
}

.input-gray-background {
    background-color: #abadb0;
    color: black;
}

/* ----------- Made table headeds fixed -------------*/
.table-header {
    position: sticky;
    top: 0;
}


/* ----- Flip component ------ */

.flips {
    display: grid;
    grid-gap: 0.5rem;
    grid-auto-rows: auto;
}

.flip {
    perspective: 40rem;
    height: fit-content;
}

.flip-body {
    transform-style: preserve-3d;
    transition: var(--time) transform;
}

.flip.clicked .flip-body {
    transform: rotateY(-180deg);
}

.flip-front, .flip-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip.clicked .flip-front {
    pointer-events: none;
}

.flip.clicked .flip-back {
    pointer-events: auto;
}

.flip-back {
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: fit-content;
    transform: rotateY(-180deg);
    max-width: 90vw;
}

.flip {
    display: flex;
    transition: transform calc(var(--time) / 4);
    text-decoration: none;
    color: inherit;
    user-select: none;
    max-width: 90vw;
}

    .flip:active {
        transform: scale(0.975);
    }

.flip-body {
    border-radius: 0.25rem;
    flex: 1;
}

.flip-front, .flip-back {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 0.25rem;
    max-width: 90vw;
}

.shadow, .flip-front, .flip-back {
    box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04), 0 2px 2px rgba(0, 0, 0, 0.04), 0 4px 4px rgba(0, 0, 0, 0.04), 0 8px 8px rgba(0, 0, 0, 0.04), 0 16px 16px rgba(0, 0, 0, 0.04);
}

.done-card {
    box-shadow: rgba(var(--hs-success-green-rgb), 0.35) 0px 5px 15px;
}

    .done-card .card-header {
        background-color: color-mix(in srgb, var(--card-header-color) 70%, var(--hs-success-green) 30%);
        color: var(--hs-text-color);
    }

/* ----- Navigation styles ------ */

#show-nav-chk:checked {
    --display-nav-show: none;
    --display-nav-hide: block;
}

#show-nav-chk:not(:checked) {
    --display-nav-show: block;
    --display-nav-hide: none;
}

@media only screen and (max-width: 600px) {
    body {
        --display-nav-show: none !important;
        --display-nav-hide: none !important;
    }
}

.visable-nav {
    display: block;
}

.non-visable-nav {
    display: block;
}

.toggle-nav-arrow {
    top: 50%;
}

.nav-item a.active {
    background-color: var(--hs-primary-blue);
    border-color: var(--hs-secondary-blue);
    border-right: 5px var(--hs-orange) solid;
    font-weight: bold !important;
}

.nav-item a {
    border-right: 5px var(--hs-primary-blue) solid;
    transition: all 1s linear;
    -moz-transition: all 1s linear;
    -webkit-transition: all 1s linear;
}

    .nav-item a:hover {
        border-right: 5px white solid;
        transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -webkit-transition: all 0.2s linear;
        color: white;
    }

@media screen and (min-width: 640px) {
    .nav-size-min {
        min-width: 18rem;
    }
}

.nav-size-min div.d-flex {
    margin-top: 4px;
}

/* ----- Primary button color override ----- */

.btn-primary {
    background-color: var(--hs-primary-blue);
    border-color: var(--hs-primary-blue);
}

    .btn-primary:hover {
        background-color: var(--hs-secondary-blue);
        border-color: var(--hs-secondary-blue);
    }

    .btn-primary:disabled {
        background-color: var(--hs-primary-light-blue);
        border-color: var(--hs-primary-light-blue);
    }

.btn.btn-primary.active.focus,
.btn.btn-primary.active:focus,
.btn.btn-primary.active:hover,
.btn.btn-primary:active.focus,
.btn.btn-primary:active:focus,
.btn.btn-primary:active:hover {
    background-color: var(--hs-secondary-blue);
    border-color: var(--hs-secondary-blue);
}


/* ----- Modal stylings ----- */

.modal-content {
    box-shadow: var(--hs-modal-shadow);
}

.error-modal {
    box-shadow: var(--hs-modal-error-shadow);
}

    .error-modal .modal-header {
        border-top: 5px solid var(--hs-primary-red);
    }

.message-modal-border {
    border: 5px solid var(--hs-secondary-blue);
}


/* ----- Spinner ----- */

.spinner {
    position: absolute;
    top: 25%;
    left: 50%;
    width: 80px;
    height: 80px;
    z-index: 1066;
    margin-left: -40px;
    border-radius: 50%;
    border: 16px solid white;
    border-top: 16px solid var(--hs-spinner-color);
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ----- Toast overrides ------ */

.toast-success-override {
    background-color: white;
    color: var(--hs-success-green);
    border-top: 5px solid var(--hs-success-green);
}

.mobile-card-header {
    height: 25%;
}

.mobile-card-body {
    padding: 0;
    overflow: hidden;
}

.unit-scroll {
    height: 100%;
    max-height: 60vh;
    overflow-y: hidden;
    overflow-x: visible;
    scrollbar-width: none;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.snap-unit {
    /* position: relative; */

    width: 82vw; /* !! If you change this also change it it holidaysuites.ts function AddUnitsIntersectionObserver const X */
    min-width: 82vw;
    height: 100%;
    max-height: 100%;
    transition: height 0.3s ease-in-out;
    margin: 5px;
    z-index: 100;
    overscroll-behavior: contain;
    scroll-snap-stop: always;
    scroll-snap-align: center;
    scroll-margin-block-end: -5rem;
    scroll-margin-block-start: -5rem;
}

.snap-unit-spacing {
    height: 80%;
    min-width: 82vw; /* !! If you change this also change it it holidaysuites.ts function AddUnitsIntersectionObserver const X */
    margin: 5px;
}

.snap-unit.inview {
    width: 90vw;
    height: 90%;
    transition-delay: 0.1s;
    transition: height 0.3s ease-in-out;
}

.lists-container {
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .lists-container::-webkit-scrollbar {
        display: none;
    }

/* ----- Drag'N drop ----- */

.dropzone {
    color: black;
}

.mobile-dropzone {
    height: 100%;
    overflow-y: scroll;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.plk-dd-dropzone {
    background-color: var(--hs-dropzone-bg-color) !important;
    padding: 0px 10px;
}

.plk-dd-draggable {
    background-color: rgb(255 255 255 / 0%);
    cursor: grab;
}

    .plk-dd-draggable:active {
        cursor: grabbing;
    }

.plk-dd-in-transit:active {
    cursor: grabbing;
}

.dropitem {
    background-color: var(--hs-primary-light-blue);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.25);
}

    .dropitem:hover {
        box-shadow: 2px 3px 5px rgb(0 0 0 / 60%);
        transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -webkit-transition: all 0.2s linear;
    }

@media (min-width: 768px) {
}

/* ----- Todo cards ----- */

.todoitem {
    background-color: var(--hs-primary-light-blue);
    color: black;
    border-radius: 10px;
    padding: 10px;
    margin: 7px;
}

html[data-bs-theme=dark] .dropitem {
    color: rgb(37, 37, 37);
}

/* Departure cleaning dp-todo-css */
.dp-todo-css {
    background-color: var(--hs-departure-cleaning-color);
}

/* Refresh clean rc-todo-css */
.rc-todo-css {
    background-color: var(--hs-refresh-clean-color);
}

/* Door hanger for Refresh clean dh-todo-css */
.dh-todo-css {
    background-color: var(--hs-door-hanger-color);
}

/* Door hanger for refresh cleaning dh-todo-cleaning-css */
.dh-cleaning-todo-css {
    background-color: var(--hs-door-hanger-cleaning-color);
}

/* Door hanger for move dh-move-todo-css */
.dh-move-todo-css {
    background-color: var(--hs-door-hanger-move-color);
}

/*Babykit bk-todo-css*/
.bk-todo-css {
    background-color: var(--hs-baby-kit-color);
}

/* Made beds - mb-todo-css { */
.mb-todo-css {
    background-color: var(--hs-make-beds-color);
}

/* Sheets sh-todo-css */
.sh-todo-css {
    background-color: var(--hs-sheets-color);
}

/*Soap so-todo-css*/
.so-todo-css {
    background-color: var(--hs-soap-color);
}

/*Towels to-todo-css
Towels COMBI toc-todo-css*/
.to-todo-css, .toc-todo-css {
    background-color: var(--hs-towels-color);
}

/* Arrival check ac-todo-css */
.ac-todo-css {
    background-color: var(--hs-arrival-color);
}

/* Departure check dc-todo-css */
.dc-todo-css {
    background-color: var(--hs-departure-check-color);
}

/* Deep cleaning task deep-clean-css */
.deep-clean-css {
    background-color: var(--hs-deep-clean-color);
}

/* Cookie task color cookie-todo-css */
.cookie-todo-css {
    background-color: var(--hs-cookie-color);
}

.urgent-todo {
    box-shadow: var(--hs-urgent-shadow);
    outline: 3px solid var(--hs-primary-red);
}

    .urgent-todo.todoitem {
        box-shadow: var(--hs-urgent-shadow);
    }

/* Form fixes */

.form-phones {
    width: 60px;
}

.form-unblock {
    display: inline;
}

.form-label {
    margin-right: 0.5rem;
}

/* icons */
i {
    font-style: normal;
}

.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    margin-right: 5px;
}

.modal-info {
    max-width: 80%;
}

/* INPUT STYLES */

.input--filter:placeholder-shown {
    padding-right: 2rem;
}

input.input-filter {
    min-width: 10em;
    padding-right: 12px;
    padding-left: 28px !important;
    background: white url('/images/funnel.svg') 8px calc(50% + 1px) no-repeat !important;
    border-radius: 9999px !important;
    font-size: 0.875rem;
    color: #161e2e;
    border-color: #d2d6dc;
    border-style: solid;
}

input.input-styled {
    min-width: 10em;
    padding-right: 12px;
    padding-left: 12px !important;
    border-radius: 9999px !important;
    font-size: 0.875rem;
    color: #161e2e;
    border-color: #d2d6dc;
    border-style: solid;
}

/* LABEL STYLES */

.label-min-size {
    min-width: 10em;
}

/* MAX HEIGHT / WIDTH STYLES */

.problem-min-height::after {
    min-height: 300px;
}

/* IMAGE STYLES */

.btn-img-delete {
    border: var(--hs-primary-red) 2px solid;
}

.delete-image-container {
    position: absolute;
    top: 3%;
    right: 3%;
    width: fit-content;
    z-index: 1000;
}

[class^="btn-img-"] {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    padding: 5px;
    top: 50%;
    z-index: 0;
    transform: translateY(-50%);
    transition-delay: 0.5s;
    transition: all 0.2s ease-in-out 0.5s;
    border: 0;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0;
}

.carousel:hover > [class^="btn-img-"] {
    opacity: 1;
    transition: all 0.2s ease-in-out;
}

.btn-img-next {
    right: 0px;
}

.carousel:hover > .btn-img-next {
    right: 15px;
}

.btn-img-prev {
    left: 0px;
}

.carousel:hover > .btn-img-prev {
    left: 15px;
}

@media (max-width: 768px) {
    [class^="btn-img-"] {
        opacity: 1;
        transition: none;
    }

    .btn-img-next {
        right: 15px;
    }

    .btn-img-prev {
        left: 15px;
    }
}

.img-fluid-max-height {
    max-height: 300px;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--blue-rgb),var(--bs-text-opacity)) !important
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    /*outline: 1px solid #26b050;*/
    outline: none;
}

input:valid {
    outline: none;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#accordion-container .no-select, #accordion-container h2 {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#accordion-container h1 {
    color: #000;
    margin-bottom: 30px;
    margin-top: 0;
}

#accordion-container h2 {
    font-family: 'hm_light', sans-serif;
    font-size: 20px;
    line-height: 34px;
    text-align: left;
    padding: 15px 15px 0;
    text-transform: none;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
    margin: 0;
    cursor: pointer;
    transition: .2s;
}

#accordion-container p {
    text-align: left;
    font-family: 'hm_light', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    position: relative;
    overflow: hidden;
    max-height: 1250px;
    will-change: max-height;
    contain: layout;
    display: inline-block;
    opacity: 1;
    transform: translate(0, 0);
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 0 50px 0 15px;
    transition: .3s opacity, .6s max-height;
    hyphens: auto;
    z-index: 2;
}

#accordion-container ul {
    list-style: none;
    perspective: 900;
    padding: 0;
    margin: 0;
}

    #accordion-container ul li {
        position: relative;
        overflow: hidden;
        padding: 0;
        margin: 0;
        /*padding-bottom: 4px;*/
        /*padding-top: 18px;*/
        background: #fff;
        box-shadow: 0 3px 10px -2px rgba(0,0,0,0.1);
        -webkit-tap-highlight-color: transparent;
    }

        #accordion-container ul li + li {
            margin-top: 15px;
        }

        #accordion-container ul li:last-of-type {
            padding-bottom: 0;
        }

        #accordion-container ul li i {
            position: absolute;
            transform: translate(-6px, 0);
            margin-top: 28px;
            right: 15px;
        }

            #accordion-container ul li i:before {
                transform: translate(-2px, 0) rotate(45deg);
            }

            #accordion-container ul li i:after {
                transform: translate(2px, 0) rotate(-45deg);
            }


/* Green circle css to indicate task can be completed */
.green-circle {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: green;
    border-radius: 50%;
    vertical-align: middle;
}


/* RadzenDropdown styling - drop upwards*/
.dropdown-upwards .rz-dropdown-panel {
    bottom: 100%;
    top: auto;
}