﻿.dialog-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    /*todo: should use semi trans png as background image, as this wont work on some browsers.*/
    background-color: rgba(64, 64, 64, 0.5);
    /*For the hack to center dialog.*/
    text-align: center;
    white-space: nowrap;
}

.dialog-wrapper.inline {
    display: none;
}

.dialog-wrapper > .spacer {
    display: inline-block;
    height: 50%;
}

.dialog-wrapper .dialog {
    margin-left: auto;
    margin-right: auto;
    max-height: 90%;
    max-width: 90%;
    background-color: white;
    -webkit-box-shadow: 0 0 15px #333333;
    box-shadow: 0 0 15px #333333;
    padding-top: 0;
    position: relative;
    display: inline-block;
    text-align: left;
    white-space: normal;
    vertical-align: middle;
}

.dialog-wrapper .dialog .dialog-header {
    margin: 0;
    background: #D7D3D3;
    color: #535353;
    min-height: 60px;
}

.dialog-wrapper .dialog .dialog-header h3 {
    display: block;
    text-align: left;
    font-size: 1.8em;
    margin: 0;
}

.dialog-wrapper .dialog .dialog-header button.close {
    padding: 0;
    position: absolute;
    right: .5em;
    top: .5em;
    vertical-align: bottom;
    background-image: url("/Content/Framework/Images/close.png");
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: 20px;
    color: #444444;
    opacity: .5;
    border: 0;
    -moz-background-size: 26px;
    -o-background-size: 26px;
    -webkit-background-size: 26px;
    background-size: 26px;
    background-color: transparent;
}

.dialog-wrapper .dialog .dialog-header button.close:hover,
.dialog-wrapper .dialog .dialog-header button.close:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: 1;
}

.dialog-wrapper .dialog .dialog-content-outer {
    display: block;
    width: 100%;
    overflow: auto;
    position: relative;
}

.dialog-wrapper .dialog .dialog-content-outer .dialog-content {
    overflow: auto;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1em 1.2em;
}

.dialog-wrapper .dialog .dialog-actions {
    padding-top: 5px;
    display: block;
    height: 3.5em;
    text-align: right;
    padding-right: 1em;
}

/* phones resizes*/
@media only screen and (max-width: 600px) {
    .resp .dialog-wrapper .dialog {
        max-height: 100%;
        height: 100%;
        max-width: 100%;
        width: 100%;
    }

    .resp .dialog-wrapper .dialog .dialog-header {
        position: relative;
        width: 100%;
    }

    .resp .dialog-wrapper .dialog .dialog-header h3 {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .resp .dialog-wrapper .dialog .dialog-header button.close {
        font-size: 0;
        margin-top: 5px;
        width: 35px;
        margin-right: 5px;
        background-image: url('/content/Framework/images/back.png');
    }

    .resp .dialog-wrapper .dialog .dialog-content-outer {
        overflow: auto;
        position: relative;
        top: 0;
        bottom: 0;
        width: 100%;
    }

    .resp .dialog-wrapper .dialog .dialog-content-outer .dialog-content {
        /*
                              padding: 0;
                              margin: 0;*/
    }
}