@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100%;
    position: relative;
}

.main {
    flex: 1;
}

.content {
    padding-top: 1.1rem;
    margin-bottom: -50px;
}

body {
    margin-bottom: 50px;
}

.footer {
    height: 40px; /*Set the fixed height of the footer here */
    line-height: 35px; /* Vertically center the text there */
    position: absolute;
    bottom: 0;
    width: 100%;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(34,34,34,.9) !important;
}

.navbar-icon-text {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 100% !important;
    -webkit-user-drag: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.navbar-icon {
    font-size: 24px;
}


.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;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/* DxFormLayoutItem - Remove margin-bottom from form-group */
.formlayout-mb-0 > .form-group {
    margin-bottom: 0 !important;
}

/* Remove underline from button link */
.btn-link-no-ul:hover {
    text-decoration: none;
}

/* Captcha - resize for low resolutions */
@media screen and (max-width: 500px) {
    .recaptcha > div > div {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Resize navbar icon width for mobile devices*/
@media (max-width: 576px) {
    .navbar-icon {
        width: 30px;
    }
}

/* Animate patient not found alert */

@-webkit-keyframes glow {
    to {
        border-color: #f72537;
        box-shadow: 0 0 5px #f72537;
        -webkit-box-shadow: 0 0 5px #f72537;
        -moz-box-shadow: 0 0 5px #f72537;
    }
}

.alert-warning-glow {
    border: 1px solid transparent;
    -webkit-animation: glow 0.5s 4 alternate;
    -webkit-transition: border 0.5s linear, box-shadow 0.5s linear;
    -moz-transition: border 0.5s linear, box-shadow 0.5s linear;
    transition: border 0.5s linear, box-shadow 0.5s linear;
}

.hidden {
    display:none;
}

/* Hide the week numbers in the calendar date picker */
.dxbs-month-table > tbody > tr > td:first-of-type:not(.calendar-clickable-cell, .disabled) {
    display: none !important;
}

/* Main background color */
.bg-main {
    background-color: #f9f9f9 !important;
}

/* Shadow for calendar to increase readability */
.dxbs-calendar {
    -webkit-box-shadow: 0 .5rem 1rem rgba(34,34,34,.15) !important;
    box-shadow: 0 .5rem 1rem rgba(34,34,34,.15) !important;
}

/* Center radio buttons by buttons */

.center-radio-buttons {
    display: table;
    margin: 0 auto;
}