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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

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



@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;
    }
    h1{
        font-size:18px;
    }
    .k-window-content {
        max-height: 420px;
    }
}

@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;*/
    }
}

@media only screen and (device-width: 768px) {
    /* For general iPad layouts */
    .k-grid {
        width: 92vw !important;
    }
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
    /* For portrait layouts only */
    .k-grid {
        width: 92vw !important;
    }
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    /* For landscape layouts only */
    .k-grid {
        width: 94vw !important;
    }
}

/* ipad Mini Portrait */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    /* STYLE */
    .data-entry-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.mode .k-switch-off .k-switch-container {
    background-color: green !important;
    color: white !important;
}

.k-button-solid-primary:hover {
    color:white !important;
}


/* Projects */

.k-grid-table .oi {
    margin-left: 12px;
}

.initial-data-loader .k-loader-container-overlay.k-overlay-light {
    background-color: white;
}

.k-loader-container {
    z-index: 100;
}



/* Data Entry */

.my-mockup-layout .k-loader-container {
    z-index: 1;
}

#dataEntry label {
    font-weight:bold;
}

#dataEntry .row {
    margin-top: 3px;
    margin-bottom: 3px;
}

#dataEntry .fa-lock {
    color: #1b6ec2;
}

#dataEntry .save-line {
    width: 200px;
}

#dataEntry .Lock .k-switch-label-on::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f023";
}

.Lock .k-switch-label-off::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f09c";
}

#dataEntry .demo-notification {
    position: absolute;
}

    #dataEntry .demo-notification .k-notification {
        width: 240px;
    }

#dataEntry #demo-runner {
    height: 400px;
}

#dataEntry .notification-parent {
    position: relative;
    top: 32px;
}

#dataEntry .k-badge {
    margin-left: 5px;
}

#dataEntry .k-notification-container {
    margin: 6px 0;
}

#dataEntry .form-control {
    border-color: rgba(0, 0, 0, 0.08);
    display: inline-block;
    width: 225px !important;
}

#dataEntry .btn {
    width: 225px;
}

.k-edit-field {
    margin: 0 !important;
    padding: 0 !important;
}

.k-window .k-edit-form-container {
    max-height: 80vh;
    max-width: 60vh;
    overflow: auto;
    overflow-x: hidden;
}

.k-edit-form-container {
    padding-right: 18px;
}

.custom-switch.k-switch-off span.k-switch-container {
    color: white !important;
    background-color: green !important;
}


@@media only screen and (max-width: 720px) {
    .px-4 {
        padding: .5em !important;
    }

    .k-content {
        padding: 3px !important;
    }
}

.custom-close-button {
    position: absolute;
    bottom: 0;
    right: 0;
}