﻿html, body {
    overscroll-behavior: contain;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

    a:hover.footer-text {
        color: white;
    }

.table-svg {
    filter: drop-shadow(2px 2px 2px rgb(0 0 0 / 0.4));
}

.icon-fix {
    transform: translate(0, 10%)
}

.tableheader {
    background-color: rgb(44,85,151);
    color: white;
}

.fake-link {
    color: #0366d6;
    text-decoration: none;
}

    .fake-link:hover {
        color: #0056b3;
        text-decoration: underline;
        cursor: pointer;
    }

@media only screen and (max-width: 1100px) {
    /* horizontal scrollbar for tables if mobile screen */
    .tablemobile {
        overflow-x: auto;
        display: block;
    }
}

.btn-primary {
    color: #fff;
    background-color: rgb(44, 85, 151);
    border-color: #1861ac;
}

@media only screen and (min-width: 600px) {
    .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;
    }

.inline {
    display: inline-block;
}

.btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 28px;
    height: 28px;
}

.view-icon {
    background-image: url(../Images/view.png);
    background-repeat: no-repeat;
    background-size: 18px 16px;
    width: 18px;
    height: 16px;
}

.edit-icon {
    background-image: url(../Images/edit.png);
    background-repeat: no-repeat;
    background-size: 18px 16px;
    width: 18px;
    height: 16px;
}

.download-icon {
    background-image: url(../Images/download.png);
    background-repeat: no-repeat;
    background-size: 18px 16px;
    width: 18px;
    height: 16px;
}

.downloading-icon {
    background-image: url(../Images/downloading.gif);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 18px;
    height: 16px;
    background-color: white;
}

.nav-icon {
    display: inline-block;
    margin-right: 1rem;
}

.home-icon {
    background-image: url(../Images/home.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.transmittal-icon {
    background-image: url(../Images/transmittal.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.folder-icon {
    background-image: url(../Images/folder.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.about-icon {
    background-image: url(../Images/about.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.settings-icon {
  background-image: url(../Images/settings.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
}

.list-icon {
  background-image: url(../Images/list.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
}

.refresh-icon {
    background-image: url(../Images/refresh.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

.disconnect-icon {
    background-image: url(../Images/logout.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

@media (max-width:1100px) {
    .footer-hider {
        display: none;
    }
}

.footer {
    position: absolute;
    bottom: 0.3125rem;
    left: 0.5rem;
}

.footer-text {
    font-size: 0.8rem;
    color: white;
    position: relative;
    bottom: 0.1rem;
    left: 0.5rem;
}

.footer-icon {
    display: inline-block;
}

.documenta-icon {
  background-image: url(../Images/favicon.ico);
  background-repeat: no-repeat;
  background-size: 0.9rem 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
}

.folder-list-icon {
    background-image: url(../Images/PURE_EXT_PDF.svg);
    background-repeat: no-repeat;
    background-size: 1.1rem 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
}

.progettocad-logo {
    background-color: rgb(44, 85, 151);
    margin-top: 1rem;
    position: relative;
    left: -1rem;
    width: calc(100% + 2rem);
    background-image: url(../Images/progettocad.png);
    background-repeat: no-repeat;
    background-size: auto 2rem;
    background-position: center;
    height: 2rem;
}

.centered-container {
    margin: 0;
    position: absolute;
    top: 50%;
    width: 90%;
    left: 5%;
    right: 5%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media only screen and (min-width: 600px) {
    .centered-container {
        margin: 0;
        position: absolute;
        top: 50%;
        width: auto;
        left: 50%;
        right: auto;
        -ms-transform: translateY(-50%) translateX(-50%);
        transform: translateY(-50%) translateX(-50%);
    }
}

.settings-container {
    margin: 1em;
}

@media only screen and (min-width: 600px) {
    .settings-container {
        margin: 0;
        position: absolute;
        top: 50%;
        width: auto;
        left: 50%;
        right: auto;
        -ms-transform: translateY(-50%) translateX(-50%);
        transform: translateY(-50%) translateX(-50%);
    }
}

.login-form {
    background-color: rgb(204,204,204);
    display: inline-block;
    padding: 1rem;
    border-radius: 5px;
}

body {
    height: 100%;
    background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url(../Images/background.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom;
    background-size: cover;
}

.modal-progress {
    position: absolute;
    top: calc(90% - 4rem);
    /*left: calc(100% - 17rem);*/
    background-color: white;
    border: 1px solid, #000;
    border-radius: 5px;
    width: 16rem;
    padding: 0.5rem;
}

.modal-open {
    overflow: hidden
}

    .modal-open .modal {
        overflow-x: hidden;
        overflow-y: auto
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
    margin-left: auto;
    margin-right: auto
}

@media only screen and (min-width: 600px) {
    .modal-dialog {
        position: relative;
        width: 40%;
        margin: .5rem;
        pointer-events: none;
        margin-left: auto;
        margin-right: auto
    }
}

.modal.fade .modal-dialog {
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out;
    -webkit-transform: translate(0,-50px);
    transform: translate(0,-50px)
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog {
        transition: none
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none
}

.modal-dialog-scrollable {
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem)
}

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
        overflow: hidden
    }

    .modal-dialog-scrollable .modal-footer, .modal-dialog-scrollable .modal-header {
        -ms-flex-negative: 0;
        flex-shrink: 0
    }

    .modal-dialog-scrollable .modal-body {
        overflow-y: auto
    }

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem)
}

    .modal-dialog-centered::before {
        display: block;
        height: calc(100vh - 1rem);
        content: ""
    }

    .modal-dialog-centered.modal-dialog-scrollable {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: center;
        justify-content: center;
        height: 100%
    }

        .modal-dialog-centered.modal-dialog-scrollable .modal-content {
            max-height: none
        }

        .modal-dialog-centered.modal-dialog-scrollable::before {
            content: none
        }

.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

    .modal-backdrop.fade {
        opacity: 0
    }

    .modal-backdrop.show {
        opacity: .5
    }

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
    background-color: rgb(44,85,151);
    color: white;
}

    .modal-header .close {
        padding: 1rem 1rem;
        margin: -1rem -1rem -1rem auto
    }

.modal-title {
    margin-bottom: 0;
    line-height: 1.5
}

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem
}

    .modal-footer > :not(:first-child) {
        margin-left: .25rem
    }

    .modal-footer > :not(:last-child) {
        margin-right: .25rem
    }

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

@media (min-width:576px) {
    .modal-dialog {
        max-width: 80%;
        margin: 1.75rem auto
    }

    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem)
    }

        .modal-dialog-scrollable .modal-content {
            max-height: calc(100vh - 3.5rem)
        }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem)
    }

        .modal-dialog-centered::before {
            height: calc(100vh - 3.5rem)
        }

    .modal-sm {
        max-width: 300px
    }
}



@media (min-width:992px) {
    .modal-lg, .modal-xl {
        max-width: 800px
    }
}

@media (min-width:1200px) {
    .modal-xl {
        max-width: 1140px
    }
}
