﻿/*#region DIALOG CORE */

dialog:focus, dialog:active {
    border: none;
}

dialog:active {
    outline: none;
    border: none;
}

dialog:focus {
    outline: 0;
}

dialog {
    z-index: 10;
    padding: 0;
    border: none;
}

dialog::backdrop {
    background-color: #000;
    opacity: 0.6;
}

.dialog-body-content {
    padding: 10px 20px;
    min-height: 80px;
}

dialog hr {
    margin: 5px 0;
}

.dialog-footer {
    padding: 0 20px 10px 20px;
}

/*#endregion */

/*#region DIALOG COMPONENTS */

.dialog-header {
    position:relative;
    height:60px;
    padding: 8px;
}

.dialog-header a.md-close, a.md-close {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #fff;
}

.dialog-header a.md-close[hover] {
    filter: brightness(85%);
}

.dialog-header h4 {
    color:#fff;
    text-transform: uppercase;
    font-weight:normal;
    padding-left: 10px;
    letter-spacing: 0.2em;
}

.dialog-body-content {
    min-height: 140px;
}

.dialog-body-content p {
    padding: 10px;
    letter-spacing: 0.2em;
}

.dialog-footer {    
    position: relative;
    height: 55px;
    padding: 8px;
    text-align:center;
}
/*#endregion */

/*#region DIALOG THEME */

.dialog-info .bg, .dialog-image-header {
    background-color: #1565C0;
    color: #fff;
}

.dialog-info .bg-accent {
    background-color: #1976D2;
    color: #fff;
}

.dialog-info .bg-accent-border {
    border: solid 1px #1976D2;
}


.dialog-info button.btn {
    background-color: #1565C0;
    filter: brightness(85%);
    color:#fff;
}

.dialog-info button.btn:hover {
    background-color: #1565C0;
    filter: brightness(65%);
}

.dialog-error .bg {
    background-color: #C62828;
    color: #fff;
}

.dialog-error .bg-accent {
    background-color: #D32F2F;
    color: #fff;
}

.dialog-error .bg-accent-border {
    border: solid 1px #D32F2F;
}

.dialog-error button.btn {
    background-color: #C62828;
    filter: brightness(85%);
    color: #fff;
}

.dialog-error button.btn:hover {
    background-color: #C62828;
    filter: brightness(65%);
}

.dialog-warning .bg {
    background-color: #EF6C00;
    color: #fff;
}

.dialog-warning .bg-accent {
    background-color: #F57C00;
    color: #fff;
}

.dialog-warning .bg-accent-border {
    border: solid 1px #F57C00;
}

.dialog-warning button.btn {
    background-color: #EF6C00;
    filter: brightness(85%);
    color: #fff;
}

.dialog-warning button.btn:hover {
    background-color: #EF6C00;
    filter: brightness(65%);
}

.dialog-success .bg {
    background-color: #2E7D32;
    color: #fff;
}

.dialog-success .bg-accent {
    background-color: #388E3C;
    color: #fff;
}

.dialog-success .bg-accent-border {
    background-color: #388E3C;
}

.dialog-success button.btn {
    background-color: #2E7D32;
    filter: brightness(85%);
    color: #fff;
}

.dialog-success button.btn:hover {
    background-color: #2E7D32;
    filter: brightness(65%);
}

.dialog-grey .bg {
    background-color: #AAA;
    color: #000;
}

.dialog-grey .bg-accent {
    background-color: #DCDCDC;
    color: #000;
}

.dialog-grey .bg-accent-border {
    border: solid 1px #DDD;
}

.dialog-grey button.btn {
    background-color: #AAA;
    filter: brightness(85%);
    color: #000;
}

.dialog-grey h4 {    
    color: #000;
}

.dialog-grey button.btn:hover {
    background-color: #AAA;
    filter: brightness(65%);
}

.dialog-image-btn {
    background-color: #AAA!important;
    filter: brightness(85%);
    color: #fff!important;
}

.dialog-image-btn:hover {
    background-color: #AAA!important;
    filter: brightness(65%);
}

.cmsgbox .btn {
    min-width: 100px;
}

.cmsgbox .btn[disabled] {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}


/*#endregion */

/*#region DIALOG SIZING */
.dialog-alert, .dialog-confirm {
    min-width: 400px;
}
/*#endregion */

/*#region EDITOR DIALOG */

#if_dialog #viewer-container {
    padding-top: 0;
}

div.editor-dialog-header a.md-close {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #fff;
}

div.editor-dialog-header a.md-close[hover] {
    filter: brightness(85%);
}

div.editor-dialog-header h3 {
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: capitalize;
    font-weight: normal;
    padding: 17px 20px 17px 20px;
    letter-spacing: 0.2em;
    font-size:22px;
    margin: 15px 0 0 0;
}

div.editor-dialog-header {
    height: 60px;
    background-color: #0277bd;
    color: #fff;
    position: relative;
    margin-top: -15px;
}

div.editor-dialog-header h3 i {
    color: #0dcaf0;
    padding-right:10px;
}

/*#endregion */