@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    user-select: none;
    overflow-x: clip !important;
}

.card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
}

.card-header, .card-header:first-child {
    border-radius: .25rem .25rem 0 0;
}

.card-body.inner {
    background-color: white !important;
    border-radius: 0 0 .25rem .25rem;
}


.form-control-pad-right {
    padding-right: 0;
}

.mandatory::after {
    content: ' *';
    color: red;
}

input, textarea, .form-control {
    /*border-radius: 0 !important;*/
    /*background-color: #ff990010 !important;*/
    top: .15rem;
    position: relative;
    border-color: #ff990060 !important;
}

    input:focus, textarea:focus, .form-control:focus {
        background-color: white;
    }

.btn, .btn-primary {
    color: white;
    background-color: #ff9900;
}

    button:hover, .btn:hover, .btn-primary:hover {
        background-color: #ff990080;
    }

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

ul {
    list-style: none;
    padding: 0;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    background-color: #00000005;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }


.content {
    /*
    margin-top: 1rem;
    margin-bottom: 1rem;*/
    padding-top: 1.1rem;
}


.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    visibility: hidden !important;
    display: none !important;
    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 {
        visibility: hidden;
        display: none !important;
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 991px) {
    .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;
    }

    .content {
        margin-top: 0;
        margin-bottom: 0;
    }


   /* .sm-footer-row {
        bottom: 0 !important;
        width: calc(100% + 5.25rem) !important;
        margin-left: -2.25rem !important;
    }*/

    .sm-content {
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .sm-footer-row {
        width: calc(100% + 2.1rem) !important;
        margin-left: -1.1rem !important;
    }

    .sign-top-btn {
        display: none;
    }

    .sign-mobile-footer {
        display: block;
    }
}

@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: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

        .main > div.static-page {
            padding-left: 3rem !important;
            padding-right: 3rem !important;
        }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .sm-footer-main {
        margin-left: -11px !important;
    }

    .sm-content {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .qm-header-img {
        width: calc(100% + 6rem) !important;
    }

    .sign-top-btn {
        display: block;
    }

    .sign-mobile-footer {
        display: none;
    }
}

/*
.footer {
    padding: 1rem 0 1rem 0;
    margin: 0 2rem 0 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: gainsboro;
    font-size: 13px;
    border-radius: 5px 5px 0 0;
}
*/

/*
.content {
    min-height: calc(100vh - 3rem);
}
*/

.sm-footerb-footer {
    position: fixed;
    bottom: 0;
}

.sm-footerb {
    background-color: darkgray /*#464646*/;
    padding: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

    .sm-footerb span a {
        color: white;
    }

.sm-border {
    border-width: 1.8px;
    border-color: rgba(0,0,0,.125);
    border-style: solid;
}

.sm-footer-row {
    /*position: fixed;*/
    /*width: 100%;*/
    /*bottom: 1.5rem;*/
    text-align: center;
    width: calc(100% + 3.1rem);
    margin-left: -.85rem;
    margin-bottom: -.15rem;
}

.sm-footer-row-main {
    width: calc(100% + 5.28rem);
    margin-left: -2.3rem;
}

.data-privacy {
    list-style: disc !important;
}

    .data-privacy ul, .data-privacy ul li {
        list-style: disc !important;
    }

    .data-privacy ul {
        margin-left: 1rem !important;
    }

.form-check-label {
    margin-bottom: .5rem !important;
}

.form-check-input {
    margin-top: .25rem !important;
}


.sm-footerb span.customer-name {
    text-overflow: ellipsis;
    display: inline-block;
    /* width: 20px !important; */
    /* max-width: 20px; */
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 1450px) {
    /*div.row.index > div > span {
        display: block !important;
        text-align: left !important;
    }*/

    .home-label {
        display: inline-block !important;
    }

    .home-icon {
        display: none !important;
    }

    .sm-footer-main span:not(.home-icon) {
        display: block !important;
        text-align: left;
    }
}

div.row.index > div > span {
    display: inline;
    text-align: center;
}

.home-label {
    display: none;
}

.home-icon {
    display: inline-block;
}

#components-reconnect-modal, .components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected {
    display: none !important;
}

.drag-drop-zone {
    border: 1px solid;
    border-radius: .25rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    /*box-shadow: inset 0 0 8px rgba(0,0,0,0.2);*/
    color: #aeaeae;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1rem 0 2rem 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.qm-header-img {
    width: calc(100% + 4rem);
    margin-left: -3rem;
    margin-top: -1.5rem;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

div.loading {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 16, 16, 0.5);
}

.lds-roller {
    display: inline-block;
    position: relative;
    width: 100%;
    margin-left: calc(50% - 3rem);
    margin-top: calc(50vh - 5rem);
}

    .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
    }

        .lds-roller div:after {
            content: " ";
            display: block;
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #fff;
            margin: -4px 0 0 -4px;
        }

        .lds-roller div:nth-child(1) {
            animation-delay: -0.036s;
        }

            .lds-roller div:nth-child(1):after {
                top: 63px;
                left: 63px;
            }

        .lds-roller div:nth-child(2) {
            animation-delay: -0.072s;
        }

            .lds-roller div:nth-child(2):after {
                top: 68px;
                left: 56px;
            }

        .lds-roller div:nth-child(3) {
            animation-delay: -0.108s;
        }

            .lds-roller div:nth-child(3):after {
                top: 71px;
                left: 48px;
            }

        .lds-roller div:nth-child(4) {
            animation-delay: -0.144s;
        }

            .lds-roller div:nth-child(4):after {
                top: 72px;
                left: 40px;
            }

        .lds-roller div:nth-child(5) {
            animation-delay: -0.18s;
        }

            .lds-roller div:nth-child(5):after {
                top: 71px;
                left: 32px;
            }

        .lds-roller div:nth-child(6) {
            animation-delay: -0.216s;
        }

            .lds-roller div:nth-child(6):after {
                top: 68px;
                left: 24px;
            }

        .lds-roller div:nth-child(7) {
            animation-delay: -0.252s;
        }

            .lds-roller div:nth-child(7):after {
                top: 63px;
                left: 17px;
            }

        .lds-roller div:nth-child(8) {
            animation-delay: -0.288s;
        }

            .lds-roller div:nth-child(8):after {
                top: 56px;
                left: 12px;
            }

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* For PDF viewer in sign for top bar margin */
#pf1 {
    margin-top: 6rem;
}

#page-container {
    background-color: #c8c3be !important;
    background-image: none !important;
}

h5 {
    margin-top: 0 !important;
}

.upload-btn input {
    display: none;
}

/* Enable for .NET 5 */
/* Default questions so CSS styling is okay-ish */
/*div[data-sm-qnum='3'] {
    padding-right: 0;
}
*/