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

html, body, #app, main, .page {
    font-family: 'Roboto', sans-serif;
    overflow: auto;
    height: 100%;
}

html {
    min-height: calc(100% + env(safe-area-inset-top));
    width: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a, .btn-link {
    color: #0366d6;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background-color: #00853E;
    border-color: #004C2D;
}

.btn-outline-primary {
    color: #00853E;
    background-color: transparent;
    background-image: none;
    border-color: #00853E;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.open .dropdown-toggle.btn-primary {
    color: #ffffff;
    background-color: #26b050;
    border-color: #004C2D;
}

.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
    background-image: none;
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
    background-color: #00853E;
    border-color: #004C2D;
}

.btn-outline-primary:disabled,
.btn-outline-primary[disabled],
.btn-primary:disabled,
.btn-primary[disabled] {
    pointer-events: none;
}

.btn-outline-primary:disabled,
.btn-outline-primary[disabled] {
    color: #00853E;
}

.btn-primary .badge {
    color: #00853E;
    background-color: #ffffff;
}

.btn-secondary {
    background-color: #84BD00;
}

.btn-secondary:hover {
    background-color: #9fe300;
}

.btn-secondary[disabled] {
    pointer-events: none;
}

.btn-neutral {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-neutral:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #ffffff;
}

.btn-app-login {
    margin: 3em;
    padding: .5em;
}

.content {
    padding-top: 1.1rem;
}

.content.impersonation-banner-offset {
    margin-top: 3.5rem;
}

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

.invalid {
    outline: 1px solid #721c24;
}

.validation-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 0.5rem;
    margin: 0.2rem 0;
    border-radius: 5px;
}

.validation-errors {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.grid-form {
    max-width: 500px;
}

.small-input {
    width: 100px;
}

.nav-link-fill {
    height: 100%;
    width: 100%;
    display: inline-block;
}

#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;
    }

.flex-center {
    display: flex;
    align-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.splash-image {
    height: 150px;
    width: 100%;
    background-image: url(/Images/LEAFHOME-Icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.content-narrow {
    margin: auto;
    max-width: 480px;
    padding: 1rem;
}

.content-narrow label {
    display: block;
}

.content-narrow .row .btn {
    margin: 0 .25rem;
}

.content-narrow .row .btn:last-child {
    margin-right: 0;
}

.modal {
    background-color: rgba(0,0,0,0.3);
}

.modal-dialog {
    top: 0;
}

.modal-content {
    top: 0;
}

.content-narrow h1 {
    font-size: 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
}

.content-narrow h2,
.modal-body h2 {
    border-bottom: 1px solid #bebebe;
    font-size: 1.25rem;
}

.content-narrow h3,
.modal-body h3 {    
    font-size: 1rem;
    font-weight: bold;
}

.content-narrow h4,
.modal-body h4 {
    font-size: 1rem;
    font-weight: bold;
}

.content-narrow h5,
.modal-body h5 {
    font-size: 1rem;
    font-weight: bold;
}

.content-narrow h6,
.modal-body h6 {
    font-size: 1rem;
    font-weight: bold;
}

.modal-body {
    max-height: 50vh;
    overflow: auto;
}

h3.small {
    font-size: 1rem;
}

h3.medium {
    font-size: 1.5rem;
}

.app-card {
    max-width: 640px;
}

.hide, .hidden {
    display: none;
}

.card-header:hover {
    cursor: pointer;
}

a.disabled, a.disabled:hover {
    pointer-events: none;
    color: #6c757d;
}

a {
    overflow-wrap: break-word;
}

@media (min-width: 641px) {
    .btn-app-login {
        width: 200px;
    }

    .home-screen-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .btn-app-login {
        width: 100%;
        margin: 3em 0;
    }

    main {
        padding-top: 56px;
    }
}

@media (max-width: 480px) {
    h2 {
        text-align: center;
    }

    .modal {
        padding: 0 !important;
    }

    .modal .modal-dialog {
        height: 100%;
        margin: 0;
    }

    .modal .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-body h2 {
        font-size: 1rem;
        font-weight: bold;
    }

    .modal-content h3 {
        border-bottom: 1px solid #bebebe;
        font-size: 1rem;
        font-weight: bold;
    }

    .modal-content > .alert {
        margin-bottom: 0;
    }

    .modal-header .close {
        padding-top: .5rem;
    }

    .modal-body {
        height: 100%;
        margin-bottom: 71px; /* Computed size of the modal footer. */
        max-height: 100%;
    }

    .modal-footer {
        background-color: #ffffff;
        bottom: 0;
        position: absolute;
        width: 100%;
        z-index: var(--modal-footer-z-index);
    }
}

/* Handle small devices (iphone se) */
@media (max-width: 400px) {
    span.button-text {
        max-width: 5rem;
    }
}

.button-group {
    display: flex;
    justify-content: flex-end;
}

.text-caps {
    text-transform: uppercase;
}

.button-group > .btn {
    cursor: pointer;
    flex: none;
    padding: .75rem 1rem;
}

.content-narrow-with-footer {
    margin-bottom: 75px; /* Calculated height of footer */
}

.sticky-bottom {
    background: #F3F5F5;
    border-top: #D0D3D7 1px solid;
    bottom: 0;
    right: 0;
    position: fixed;
    padding: 0.75rem;
    z-index: calc(var(--sticky-z-index) - 1);
    height: 75px;
    overflow: hidden;
}

span.button-text {
    max-width: 175px;
    overflow: hidden;
    white-space: nowrap;
    display: block;
    text-overflow: ellipsis;
}

/*Makes blazored typeahead results dropdown the same width as the control*/
.blazored-typeahead__results {
    width: 100%;
}

.page-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.page-section-header {
    font-weight: bold;
}

.page-section .form-check-label {
    padding-left: 2rem;
}

/*Makes us unable to dismiss the deduction alert on the flyout*/
.deduction-alert-div button {
    visibility: hidden;
}

/*Shared CSS Variables*/
:root {
    --navbar-width: 275px;
    --modal-footer-z-index: 1060;
    --sticky-z-index: 10;
    --expanded-sidebar-z-index: 20;
    --table-row-hover-bg-color: rgba(128, 128, 128, .25);
    --table-row-success-bg-color: rgba(48, 155, 66, .25);
    --table-row-error-bg-color: rgba(255, 48, 66, .25);
}

/*These turn off the little arrow tickers on the input field*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */ 
}

/* For now hide close button. Eventually should modified in the leaf home components library. */
.page-header .alert-dismissible {
    padding-right: 0;
}

.page-header .alert-dismissible .close {
    display: none;
}