/* Dialogs */
div.dlg_bg {
    background: rgba(0,0,0,.2);
    cursor: pointer;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 10000;
    transition: 0.3s;
}
div.dlg_bg.red {
    background: rgba(255,0,0,.2);
}

div.dlg_bg > .helper{
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
div.dlg_body {
    /*cursor: default;*/
    cursor: move;
    background-color: #fff;
    box-shadow: 3px 6px 9px rgba(0, 0, 0, .3);
    display: inline-block;
    height: auto;
    min-height: 60px;
    vertical-align: middle;
    max-height: 80%;
    max-width: 90%;
    min-width: 330px;
    position: relative;
    border-radius: 8px;
    padding: 8px 8px;
    /*padding-bottom: 16px;*/
    transition: 0.3s;
}
div.dlg_body.red {
    background-color:#f44;
    color:#ff0;
}

div.dlgCloseBtn {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.5);
    border-radius: 32px;
    box-shadow: 1px 1px 2px rgba(0,0,0,.3);
    cursor: pointer;
    display: inline-block;
    font-family: arial;
    /*font-weight: bold;*/
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    line-height: 28px;
    width: 28px;
    height: 28px;
    text-align: center;
}
div.dlgCloseBtn:hover {
    background-color: #ccc;
}

img.dlg_icon {
    width: 32px;
    height: 32px;
}

div.dlg_body > table.dlg {
    cursor: default;
    border-collapse: collapse;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}
div.dlg_body > table.dlg > tr.dlghdr {
    cursor: move;
    height: 32px;
    /*max-height: 32px;*/
}
div.dlg_body > table.dlg > tr.dlghdr > h1,h2,h3,h4 {
    padding: 0;
    margin: 0;
}
div.dlg_body > table.dlg > tr.spacer {
    height: 8px;
}
div.dlg_body > table.dlg > tr.hint,
div.dlg_body > table.dlg > tr.hint td {
    height: 22px;
}

/* Popup menus */
div.mnu_body {
    cursor: default;
    background-color: #fff;
    box-shadow: 3px 6px 9px rgba(0, 0, 0, .15);
    display: inline-block;
    height: auto;
    min-height: 24px;
    vertical-align: middle;
    max-height: 80%;
    max-width: 90%;
    position: absolute;
    border-radius: 6px;
    padding: 3px 6px;
    overflow-y: auto;
    /*transition: 0.3s;*/
}

table.mnu {
    border-collapse: collapse;
    border-spacing: 0;
    border: 0px;
}
table.mnu tr {
    height: 24px;
    background-color: #fff;
    color: #000;
    padding: 4px 4px;
}
table.mnu tr:hover {
    background-color: #eee;
}
table.mnu tr.disabled {
    color: #888;
}
table.mnu tr.disabled:hover {
    background-color: #fff;
}
table.mnu tr > th {
    width: 24px;
}
table.mnu tr > td {
    text-align: left;
}
table.mnu tr > th img {
    width: 16px;
    height: 16px;
}

/* Hints */
div.hint_bg {
    background: rgba(0,0,0,.0);
    cursor: pointer;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 10000;
    transition: 0.3s;
}
div.hint_body {
    cursor: default;
    background-color: #fff;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, .05);
    display: inline-block;
    vertical-align: middle;
    max-height: 90%;
    max-width: 90%;
    position: absolute;
    border-radius: 4px;
    border: 1px solid #bbb;
    padding: 4px 4px;
    overflow-x: auto;
    overflow-y: auto;
}

