/* dialog */
/*
 * jQuery UI Dialog 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Dialog#theming
 */


body .ui-dialog.ui-widget-content, body .ui-dialog {
    border-radius: @default-border-radius;
    position: absolute;
    padding: .2em;
    width: 300px;
    overflow: visible;
    border: 0 none;
    .box-shadow(0 1px 4px rgba(0, 0, 0, 0.75));

    &#adminStatusDialog {//ajaxStatus dialog must have higher z-index
                         z-index: 9999!important;
                         position: fixed;
    }

    .ui-dialog-content {
        padding: 15px;
    }
    a.ui-dialog-titlebar-icon {
        padding: 1px !important;
    }

    .ui-dialog-titlebar {
        background: none !important;
        margin: 0;
        line-height: 1.42857143;
        font-size: 24px !important;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border: 0 none;
        border-radius: 0;
        padding-left: 15px;
        border-bottom: 1px solid #eee;

        .ui-dialog-title {
            float: left;
            font-size: 18px;
            font-weight: 500;
            color: @admin-text-color;
            margin: 0.3em 16px 0.3em 0px;
        }
    }

    .ui-dialog-titlebar-close {
        margin-top: 10px;
        padding: 1px !important;
    }

    .ui-dialog-buttonpane {
        text-align: left;
        border: solid #e5e5e5;
        border-width: 1px 0 0 0;
        background: transparent;
        margin: 20px 20px 10px 20px;
        padding: 10px 0 0 0;

        .ui-dialog-buttonset {
            float: right;
        }

        button {
            margin: .5em .4em .5em 0;
            cursor: pointer;
        }
    }

    &.box-default {
        border-top: 3px solid  @gray-lte;

        &.box-solid {
            .dialog-solid(@gray-lte);
            .ui-panel-title {
                color: @admin-text-color;
            }
        }
    }

    &.box-primary {
        border-top: 3px solid @light-blue;
        &.box-solid {
            .dialog-solid(@light-blue);
        }
    }

    &.box-danger {
        border-top: 3px solid @red;
        &.box-solid {
            .dialog-solid(@red);
        }
    }

    &.box-fatal {
        border-top: 3px solid @dark-red;
        &.box-solid {
            .dialog-solid(@dark-red);
        }
    }

    &.box-warning {
        border-top: 3px solid @yellow;
        &.box-solid {
            .dialog-solid(@yellow);
        }
    }

    &.box-success {
        border-top: 3px solid @green;
        &.box-solid {
            .dialog-solid(@green);
        }
    }

    &.box-info {
        border-top: 3px solid @aqua;
        &.box-solid {
            .dialog-solid(@aqua);
        }
    }

    &.box-solid .ui-dialog-titlebar span.ui-icon:before {
        color: #fff;
    }

    &.card {
        .box-shadow(@card-shadow);
        border: none;
    }

}

.ui-dialog .ui-resizable-se {
    width: 14px;
    height: 14px;
    right: 3px;
    bottom: 3px;
}

.ui-draggable .ui-dialog-titlebar {
    cursor: move;
}

.ui-dialog .ui-resizable-se {
    width: 14px;
    height: 14px;
    right: 3px;
    bottom: 3px;
}

.ui-draggable .ui-dialog-titlebar {
    cursor: move;
}


a.ui-dialog-titlebar-close {
    height: 0;
}

a.ui-dialog-titlebar-icon > span.ui-icon-closethick:before {
    top: -20px;
}

a.ui-dialog-titlebar-icon {
    box-shadow: none !important;
}

.dialog-solid(@color) {
    border-top: 0;
    .ui-dialog-titlebar {
        background: @color!important;
    }

    .ui-dialog-title {
        color: #fff;
    }
}
