﻿

.checkin-screen-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F8F8F8;
    margin: 0;
    padding: 0;
}

.checkin-screen-navbar {
    padding-left: 10px;
    height: 45px;
    width: 100%;
    background-color: #F0F0F0;
    line-height: 45px;
    vertical-align: middle;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkin-screen-navbar-logo {
    padding-left: 10px;
    font-size: 90%;
    margin-right: auto;
}

.checkin-screen-navbar-title {
    font-size: 125%;
}

    .checkin-screen-navbar-title:hover {
        cursor: pointer;
    }

    .checkin-screen-navbar-clock {
        padding-right: 10px;
        margin-left: auto;
    }

.checkin-screen-start-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.checkin-screen-footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 45px;
    background-color: #F0F0F0;
    line-height: 45px;
    vertical-align: middle;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.checkin-screen-footer-left {
    /*  float: left;*/
    padding-left: 10px;
}

.checkin-screen-footer-right {
    /*float: right;*/
    padding-right: 10px;
}

/* Guard screen height chain

   The Guard screen fills the window: navbar, notice bars, main area, footer. The main area hands its
   height down through flex columns (dashboard, content area, tab, wizard, stepper, step, columns), so a
   check-in wizard ends just above the footer and each list scrolls inside its own column. Hiding the
   toolbar, a notice bar or the LPR box gives the space to the wizard without any vh guesses.

   Every level needs min-height:0. Without it a flex item won't get smaller than its content, and the
   page overflows under the footer instead of the list scrolling.

   The building blocks (toolbar, guard-fill*, guard-wizard-stepper) are scoped to .guard-screen-shell.
   That makes them outrank MudBlazor and Bootstrap rules of the same weight (.mud-grid,
   .mud-input-control, .row, .col-12) whatever order the stylesheets load in: index.html loads
   MudBlazor first, but Guard.App's index-prod.html loads it after the Guard bundle. */

.guard-screen-shell {
    display: flex;
    flex-direction: column;
}

    .guard-screen-shell > * {
        flex-shrink: 0;
    }

    /* In the flow, so the main area ends where the footer starts. guardScreen.js hides the footer while
       a tablet keyboard is up, and the main area then takes its space. */
    .guard-screen-shell > .guard-screen-footer {
        position: static;
    }

    .guard-screen-shell > .guard-screen-main {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

.guard-screen-main > .guard-screen-dashboard {
    flex: 1 1 0;
    min-height: 0;
}

.guard-screen-dashboard > * {
    flex-shrink: 0;
}

/* The two toolbar rows. Each is one row of button groups that scrolls sideways when it is wider than
   the screen. A group, or the floated buttons inside it, must never wrap to a second line, so the
   sections keep their full width (flex: none) and nothing inside them runs out of room. The toolbar
   is at least 100px high and grows instead of cutting off a taller row (larger text). guardScreen.js
   hides and shows the toolbars with jQuery, which clears the inline display and leaves this one. */
.guard-screen-shell .guard-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

    .guard-screen-shell .guard-toolbar > * {
        flex: none;
    }

    /* The Logs section of the first toolbar and the right section of the second sit at the right edge
       when the row has room. The auto margin is 0 once the row is wider than the screen, so nothing is
       pushed out of reach. */
    .guard-screen-shell .guard-toolbar > .guard-toolbar-end {
        margin-left: auto;
    }

/* The content area under the toolbars. It is a Bootstrap .row, so it has to be told not to wrap. Tabs
   keep their natural height and the content area scrolls when they are taller. */
.guard-screen-dashboard > .guard-screen-content {
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    flex-wrap: nowrap;
}

.guard-screen-content > * {
    flex-shrink: 0;
}

/* guardScreen.js (changeNotesBoxLocation) puts Bootstrap col-10 or col-12 on some list tabs and col-2
   on the notes box. Those were made for a row; in this column their flex-basis would set the tab's
   height, so the tabs keep their natural height. (The notes box itself is always hidden.) */
.guard-screen-content > .col-2,
.guard-screen-content > .col-10,
.guard-screen-content > .col-12 {
    flex-basis: auto;
}

/* A tab that fills the content area, such as a check-in wizard. Below 320px it stops shrinking and the
   content area scrolls instead. */
.guard-screen-content > .guard-screen-fill {
    flex: 1 1 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* Building blocks for the inside of a tab. Children keep their natural height unless they fill
   (some MudBlazor parts, such as MudTextField, would otherwise grow and push the list down). The
   rules after this one override it for the parts that fill, so keep it first. */
.guard-screen-shell .guard-screen-fill > *,
.guard-screen-shell .guard-fill > *,
.guard-screen-shell .guard-fill-column > * {
    flex: 0 0 auto;
}

/* Takes the rest of its parent's height and stacks its children. */
.guard-screen-shell .guard-fill {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

/* A row of columns (usually a MudGrid) that takes the rest of its parent's height. Every column gets
   the full height. */
.guard-screen-shell .guard-fill-row {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* A column of a .guard-fill-row. The grid sets its width, the row its height. */
.guard-screen-shell .guard-fill-column {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 0;
    min-width: 0;
}

/* The part of a column that scrolls, usually the list under a search field. Virtualize uses it as
   its scroll container. */
.guard-screen-shell .guard-fill-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* A column that scrolls as a whole, such as a form. */
.guard-screen-shell .guard-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* A tab whose columns stack on phones (MudGrid xs="12", the Enter tab). There is no row height to
   share out, so the tab grows with its columns, each list keeps a fixed height and the content
   area scrolls. */
@media (max-width: 599.98px) {
    .guard-screen-content > .guard-screen-fill.guard-screen-fill-stacks {
        flex: 0 0 auto;
    }

    .guard-screen-shell .guard-screen-fill-stacks .guard-fill-row {
        flex: 0 0 auto;
        flex-wrap: wrap;
    }

    .guard-screen-shell .guard-screen-fill-stacks .guard-fill,
    .guard-screen-shell .guard-screen-fill-stacks .guard-scroll {
        flex: 0 0 auto;
        overflow-y: visible;
    }

    .guard-screen-shell .guard-screen-fill-stacks .guard-fill-scroll {
        flex: 0 0 auto;
        height: 40vh;
    }
}

/* MudStepperExtended renders root > header/content wrapper > content > one div per step (the inactive
   ones are d-none). The wrapper is a row with the step headers on the left in landscape, and a column
   with the headers on top in portrait. */
.guard-screen-shell .guard-wizard-stepper {
    flex: 1 1 0;
    min-height: 0;
}

    .guard-screen-shell .guard-wizard-stepper > .mud-stepper-header-content-wrapper-extended {
        flex: 1 1 0;
        min-height: 0;
        min-width: 0;
    }

    .guard-screen-shell .guard-wizard-stepper .mud-stepper-inner-header-extended {
        flex-shrink: 0;
    }

    .guard-screen-shell .guard-wizard-stepper .mud-stepper-content-extended {
        flex: 1 1 0;
        min-height: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

        .guard-screen-shell .guard-wizard-stepper .mud-stepper-content-extended > div {
            flex: 1 1 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

.bs-example {
    font-family: sans-serif;
    position: relative;
    margin: 100px;
}

.typeahead, .tt-query, .tt-hint {
    border: 1px solid rgb(206, 212, 218);
    border-radius: 2px;
    //font-size: 22px; /* Set input font size */
    height: 38px;
    line-height: 38px;
    outline: medium none;
    padding: 8px 12px;
    width: 450px;
}

.typeahead {
    background-color: #FFFFFF;
}

    .typeahead:focus {
        border: 2px solid #0097CF;
    }

.tt-query {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.tt-hint {
    color: #999999;
}

.tt-menu {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
    padding: 8px 0;
    width: 450px;
}

.tt-suggestion {
    font-size: 22px; /* Set suggestion dropdown font size */
    padding: 3px 20px;
}

    .tt-suggestion:hover {
        cursor: pointer;
        background-color: #0097CF;
        color: #FFFFFF;
    }

    .tt-suggestion p {
        margin: 0;
    }


.welcome-screen-center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -300px;
    width: 600px;
    height: 500px;
    background-color: white;
    box-shadow: 0 0 5px 0 #ddd;
    border-radius: 2px;
    padding: 20px;
    /*vertical-align:middle;
        line-height:500px;*/
}

.checkin-screen-center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -250px;
    width: 500px;
    height: 500px;
    background-color: white;
    box-shadow: 0 0 5px 0 #ddd;
    border-radius: 2px;
    padding: 20px;
}

.scheckin-screen-center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -250px;
    width: 500px;
    height: 500px;
    background-color: white;
    box-shadow: 0 0 5px 0 #ddd;
    border-radius: 2px;
    padding: 20px;
}

.go-back-screen:hover {
    cursor: pointer;
}


.guardscreen-header {
}

.guardscreen-data {
}

.guardscreen-title-expand {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .guardscreen-title-expand:hover {
        cursor: pointer;
    }

.guardscreen-announcements-expand:hover {
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


#newVisitorArrowLoading0 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow0:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading1 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow1:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading2 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow2:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading3 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow3:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading4 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow4:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading5 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow5:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading6 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow6:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading7 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow7:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading8 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow8:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading9 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow9:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading10 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow10:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading11 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow11:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading12 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow12:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading13 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow13:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading14 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow14:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading15 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow15:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading16 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow16:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading17 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow17:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading18 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow18:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading19 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow19:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}

#newVisitorArrowLoading20 {
    display: none;
    margin: 0 auto;
    text-align: center;
}

#newVisitorArrow20:hover {
    cursor: pointer;
    background-color: #D8E5FF;
}



.flash {
    -webkit-animation-name: flash-animation;
    -webkit-animation-duration: 0.3s;
    animation-name: flash-animation;
    animation-duration: 0.3s;
    border-radius: 2px;
}

@-webkit-keyframes flash-animation {
    from {
        background: #1B6EC2;
    }

    to {
        background: default;
    }
}

@keyframes flash-animation {
    from {
        background: #1B6EC2;
    }

    to {
        background: default;
    }
}

.guard-screen-navbar-button {
    height: 48px;
    background-color: #fff;
    line-height: 22px;
    vertical-align: middle;
    float: left;
    margin: 5px;
    padding: 15px;
    border-radius: 1px;
}

    .guard-screen-navbar-button.active {
        color: #fff !important;
        background-color: #2196F3 !important;
        font-weight: bold;
    }

    .guard-screen-navbar-button:hover {
        background-color: lightblue;
        cursor: pointer;
    }



.guard-screen-toolbar-image-button {
}

    .guard-screen-toolbar-image-button:hover {
        cursor: pointer;
    }



.guard-screen-resident-report-item-row {
    display: flex;
    flex-direction: row;
    padding: 5px;
}

.guard-screen-resident-report-item-row-link {
    color: blue;
}

    .guard-screen-resident-report-item-row-link:hover {
        cursor: pointer;
        color: #ccc;
    }

.navbar-bulletin-display:hover {
    cursor: pointer;
}

#guardScreenScannerDiv {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

#guardScreenScannerCheckinCheckoutChoice {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    padding: 32px;
    text-align: center;
}

#guardScreenClipboardModal {
    position: relative;
    /*z-index:101 !important;*/
}

    #guardScreenClipboardModal .modal-dialog {
        position: fixed;
        width: 100%;
        margin: 0;
        padding: 10px;
    }


.guard-screen-title-link {
    text-decoration: none;
    color: #555;
}

.guard-screen-grid-hover-row {
}

    .guard-screen-grid-hover-row:hover {
        background-color: #f8f8f8 !important;
    }

.jexcel > tbody > tr:first-child > td.readonly {
    background-color: #f8f8f8;
}

/*.jexcel > thead > tr > td.readonly {
    background-color: red;
}*/


/*@media screen and (max-width: 1200px) {
    .navbar-bulletin-display {
        background-color: red !important;
        width:50%;
    }

}*/

.new-row-eraser {
    margin-right: 8px;
    color: palevioletred;
    display: none;
}

/* Checkin Wizard */

.mud-stepper-header-non-linear {
    width: 100% !important;
    margin-right: 10px !important;
}

.guard-link:hover {
    cursor: pointer;
}


/* Portrait with more than two columns: the columns scroll sideways. The grid also has
   guard-fill-row, which sets its height. */
.start-checkin-col-grid {
    overflow-x: scroll;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

    .start-checkin-col-grid .mud-grid-item {
        min-width: 350px;
    }


.tabable:focus {
    color: #1E88E5;
    font-weight: bold;
    font-size: 120%;
    background-color: #f0f0f0 !important;
}

.notifcationblink {
    animation: notifcationblinker 1.5s linear infinite;
}

@keyframes notifcationblinker {
    50% {
        opacity: 0;
    }
}

.stepper-hide {
    display:none !important;
}

.checkin-stepper .mud-step-title,
.checkin-stepper .mud-step-label,
.checkin-stepper .mud-typography {
    color: black !important;
}

.checkin-stepper {
    padding-right: 12px;
    box-sizing: border-box;
    overflow-y: hidden;
}

    .checkin-stepper .mud-stepper-step {
        margin-right: 12px !important;

    }

        .checkin-stepper .mud-stepper-step > * {
            width: calc(100% - 12px) !important;
            box-sizing: border-box;
        }


.await-approval-message-snackbar {
    width: 50vw !important;
    min-width: 50vw !important;
    max-width: 50vw !important;
    height: 400px !important;
    min-height: 400px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

    .await-approval-message-snackbar .mud-alert-message {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }

.await-approval-message-snackbar-content {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

.await-approval-message-snackbar-ok {
    min-width: 240px;
    height: 80px;
    font-size: 24px;
    font-weight: 700;
}