.win-contentdialog {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.15s linear;
    opacity: 1;
    z-index: 100;
}

.win-contentdialog.hide {
    opacity: 0;
    pointer-events: none;
}

.win-contentdialog .win-contentdialog-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    background-color: rgb(31, 0, 104);
    /*transition: all 0.5s cubic-bezier(0.1, 0.9, 0.2, 1);*/
    transition: height, max-height, min-height 0.5s cubic-bezier(0.1, 0.9, 0.2, 1);
    transform: translate(-50%, -50%);
}

.win-contentdialog .win-contentdialog-title {
    font-size: 20pt;
    font-weight: normal;
    box-sizing: border-box;
    display: block;
}

.win-contentdialog .win-contentdialog-content {
    overflow-y: auto;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    margin-top: 10px;
    margin-bottom: 20px;
    padding-right: 24px;
    font-weight: normal;
}

.win-contentdialog .win-contentdialog-commands {
    box-sizing: border-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.win-contentdialog .win-contentdialog-title,
.win-contentdialog .win-contentdialog-content,
.win-contentdialog .win-contentdialog-commands {
    width: 680px;
    max-width: calc(100vw - 172px * 2);
    margin-left: auto;
    margin-right: auto;
}

.win-contentdialog .win-contentdialog-commands>button {
    margin-left: 20px;
}

.win-contentdialog .win-contentdialog-content p {
    margin: 5px 0;
}

.win-contentdialog .win-contentdialog-content dl dt,
.win-contentdialog .win-contentdialog-content dl dd {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    margin-bottom: 10px;
}

.win-contentdialog .win-contentdialog-content dl {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0px;
}

.win-contentdialog .win-contentdialog-content dl dt {
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding-right: 8px;
}

.win-contentdialog .win-contentdialog-content dl dd {
    width: 100%;
    max-width: 100%;
    display: inline-block;
}

.win-contentdialog .win-contentdialog-content dl dd * {
    max-width: 100%;
}

.win-contentdialog-dialog-template {
    display: none;
}

.win-contentdialog .win-contentdialog-content .win-contentdialog-dialog-template {
    display: block;
}

.win-ui-light .win-contentdialog .win-contentdialog-dialog,
.win-contentdialog.win-ui-light .win-contentdialog-dialog {
    background-color: white;
}

.win-ui-dark .win-contentdialog .win-contentdialog-dialog,
.win-contentdialog.win-ui-dark .win-contentdialog-dialog {
    background-color: rgb(31, 0, 104);
}