.modernGrey .dijitDialog {
    -webkit-box-shadow: 0px 0px 2px 0px #999999;
    box-shadow: 0px 0px 2px 0px #999999;
    padding: 0;
    border: 0;
    background: #fff;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

.modernGrey .dijitDialogPaneContent {
    font-size: 12px;
    line-height: 16px;
    zoom: 1;
    -moz-border-radius-bottomleft: 2px;
    -webkit-border-bottom-left-radius: 2px;
    border-bottom-left-radius: 2px;
    -moz-border-radius-bottomright: 2px;
    -webkit-border-bottom-right-radius: 2px;
    border-bottom-right-radius: 2px;
    position: relative;
    background: #fff;
    padding: 0;
}

.modernGrey .dijitDialogPaneContent .padContainer {
    padding: 10px;
    word-wrap: break-word;
}

.modernGrey .dijitDialogPaneContent .padContainer .buttons {
    margin: 20px 0 0 0;
    text-align: right;
}

.esriRtl .modernGrey .dijitDialogPaneContent .padContainer .buttons {
    text-align: left;
}

.modernGrey .dijitDialogPaneContent .Pad {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 10px;
    position: relative;
    top: -1px;
}

.modernGrey .dijitDialogTitle {
    display: block;
    padding: 0;
    border: 0;
    font-weight: normal;
}

.modernGrey .dijitDialogTitle .configIcon {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin: 0 5px 0 0;
    background: url(../images/ui/uiSprite.png) no-repeat -336px 0px
}

.esriRtl .modernGrey .dijitDialogTitle .configIcon {
    margin: 0 0 0 5px;
}

.modernGrey .dijitDialogTitle #collapseIcon {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin: 0 5px 0 0;
    cursor: pointer;
    background: url(../images/ui/uiSprite.png) no-repeat -96px -16px;
}

.esriRtl .modernGrey .dijitDialogTitle #collapseIcon {
    margin: 0 0 0 5px;
}

.modernGrey .dijitDialogTitle #collapseIcon:hover, .modernGrey .dijitDialogTitle #collapseIcon:focus {
    opacity: 0.75;
    filter: alpha(opacity=75);
}

.modernGrey .dijitDialogTitle #collapseIcon.iconDown {
    background: url(../images/ui/uiSprite.png) no-repeat 0 -16px;
}

.modernGrey .dijitDialogTitle #settingsTitle {
    display: inline-block;
    vertical-align: middle;
    height: 16px;
}

.modernGrey .dijitDialogTitleBar {
    display: block;
    height: 16px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border: 0;
    -moz-border-radius-bottomleft: 0;
    -webkit-border-bottom-left-radius: 0;
    border-bottom-left-radius: 0;
    -moz-border-radius-bottomright: 0;
    -webkit-border-bottom-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 5px;
    position: relative;
    font-weight: normal;
    font-size: 12px;
    line-height: 16px;
    vertical-align: middle;
    background: #f4f4f4;
    background: url(data:image/svg+xml;
    base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y0ZjRmNCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlOWU5ZTkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  #f4f4f4 0%, #e9e9e9 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(100%,#e9e9e9));
    background: -webkit-linear-gradient(top,  #f4f4f4 0%,#e9e9e9 100%);
    background: -o-linear-gradient(top,  #f4f4f4 0%,#e9e9e9 100%);
    background: -ms-linear-gradient(top,  #f4f4f4 0%,#e9e9e9 100%);
    background: linear-gradient(to bottom,  #f4f4f4 0%,#e9e9e9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#e9e9e9',GradientType=0 );
    color: #333;
}

.modernGrey .dijitDialog .dijitDialogCloseIcon, .modernGrey .dijitDialog .dijitDialogCloseIconHover {
    position: absolute;
    z-index: 10;
    display: block;
    background: url(../images/ui/uiSprite.png) no-repeat 0 -32px;
    right: 0;
    top: 0;
    margin:0;
    height: 26px;
    width: 36px;
}

.esriRtl .modernGrey .dijitDialog .dijitDialogCloseIcon, .esriRtl  .modernGrey .dijitDialog .dijitDialogCloseIconHover {
    right: auto;
    left: 0;
}

.modernGrey .dijitDialog .dijitDialogCloseIconHover {
    opacity: 0.75;
    filter: alpha(opacity=75);
}

.modernGrey .dijitDialogUnderlay {
    display: none;
}

.modernGrey .dijitDialogPaneContentArea {
    padding: 10px;
}

.modernGrey .dijitTextBox {
    width: auto !important;
}

.modernGrey .dijitDialogPaneActionBar {
    padding: 10px;
}