﻿.modal-overlay, .modal-relation, .modal-times, .modal-causes, .modal-template {
    background: #C9CFD3;
    display: none;
    height: 100%;
    left: 0;
    opacity: 0.6;
    position: fixed;
    top: 0;
    z-index: 998;
    width: 100%;
    -o-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30000;
    cursor: progress;
    width: 70px;
    height: 70px;
}

.loading-bar {
    display: inline-block;
    width: 6px;
    height: 28px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    animation: modal-loading 1s ease-in-out infinite;
    -moz-animation: modal-loading 1s ease-in-out infinite;
    -webkit-animation: modal-loading 1s ease-in-out infinite;
    top: 20px;
    position: relative;
    margin-right: 2px;
}

    .loading-bar:nth-child(1) {
        background-color: #F5846F;
        animation-delay: 0;
        -moz-animation-delay: 0;
        -webkit-animation-delay: 0;
    }

    .loading-bar:nth-child(2) {
        background-color: #F5846F;
        animation-delay: 0.09s;
        -moz-animation-delay: 0.09s;
        -webkit-animation-delay: 0.09s;
    }

    .loading-bar:nth-child(3) {
        background-color: #F5846F;
        animation-delay: .18s;
        -moz-animation-delay: .18s;
        -webkit-animation-delay: .18s;
    }

    .loading-bar:nth-child(4) {
        background-color: #F5846F;
        animation-delay: .27s;
        -moz-animation-delay: .27s;
        -webkit-animation-delay: .27s;
    }

@-webkit-keyframes modal-loading {
    0% {
        -webkit-transform: scale(1);
    }

    20% {
        -webkit-transform: scale(1, 2.2);
    }

    40% {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes modal-loading {
    0% {
        -moz-transform: scale(1);
    }

    20% {
        -moz-transform: scale(1, 2.2);
    }

    40% {
        -moz-transform: scale(1);
    }
}

@keyframes modal-loading {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1, 2.2);
    }

    40% {
        transform: scale(1);
    }
}

.modal-overlay-visible {
    background: #C9CFD3;
    height: 100%;
    left: 0;
    opacity: 0.6;
    position: fixed;
    top: 0;
    z-index: 998;
    width: 100%;
}

.modal-overlay.display {
    display: inline-block;
}

.modal-overlay-nested {
    background: #fff;
    opacity: 0.6;
}

.modal-box, .relation-box, .times-box, .causes-box, .template-box {
    background: #fff;
    border: 1px solid #acacac;
    display: none;
    -webkit-box-shadow: 0 4px 16px rgba(0,0,0,.2);
    -moz-box-shadow: 0 4px 16px rgba(0,0,0,.2);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: auto;
    left: 50%;
    top: -50%;
    z-index: 999;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    position: fixed;
}

.modal-box-content {
    color: #666666;
    height: 94%;
    margin: 0px;
    padding: 6px 20px 20px 20px;
    position: relative;
    text-align: left;
    min-width: 250px;
    overflow: auto;
    max-height: 600px;
    min-height: 180px;
    max-width: 1200px;
    font-size: 12px;
    position: relative;
}

.modal-close:hover, .modal-close-template:hover {
    opacity: 0.7;
}

.modal-close, .modal-close-template {
    background: url(../../Images/Actions/close.png) no-repeat left;
    cursor: pointer;
    height: 16px;
    margin-top: 10px;
    margin-right: 10px;
    position: absolute;
    right: 12px;
    top: 2px;
    width: 16px;
    z-index: 4;
}

.modal-title, .modal-title-template {
    border-bottom: 1px solid rgba( 0, 0, 0, 0.2 );
    color: #F5846F;
    display: inline-block;
    font-size: 16px;
    padding-bottom: 4px;
    width: calc(100% - 40px);
    position: relative;
    top: 14px;
    margin: 0px 20px;
    margin-bottom: 16px;
}

.modal-loading-overlay {
    width: 100%;
    height: 100%;
    background: transparent;
    position: fixed;
    z-index: 999;
}
