/*
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
Copyright (C) 2021 Znuny GmbH, https://znuny.org/

This software comes with ABSOLUTELY NO WARRANTY. For details, see
the enclosed file COPYING for license information (GPL). If you
did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
*/

/**
 * @package     Skin "Default"
 * @section     Dialogs
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  Overlay
 */
#Overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
    filter: alpha(opacity = 50);
    z-index: 200;
}

/**
 * @subsection  Dialog
 */
.Dialog {
    position: absolute;
    z-index: 99999;
    min-width: 150px;
    background: #FFF;
}

.Dialog > .Header {
    cursor: move;
    display: block;
    position: relative;
    background: #ddd;
    border-bottom: 1px solid #CCC;
    min-height: 22px;
}

.Dialog > .Header .Close {
    display: block;
    position: absolute;
    height: 12px;
    width: 12px;
    right: 8px;
    top: 50%;
    margin-top: -6px;
    color: #000;
}

.Dialog > .Header h1 {
    padding: 10px;
    font-size: 12px;
}

.Dialog > .Content {
    overflow: hidden;
    padding: 5px;
}

.Dialog > .Content > .InnerContent {
    padding: 10px;
    background: #FFF;
    overflow-y: auto;
    max-height: 200px;
}

.Dialog > .Content > .ContentFooter {
    padding: 7px 10px;
    margin: 0px -5px -5px -5px;
    background: #ddd;
    min-height: 20px;
    border-top: 1px solid #CCC;
}

.Dialog > .Content > .ContentFooter button + button {
    margin-left: 5px;
}

.Dialog > .Footer {
    padding: 6px 0 5px;
    display: block;
    position: relative;
    background: #ddd;
    border-top: 1px solid #CCC;
}

.Dialog > .Footer.ContentFooter {
    display: none;
}

/**
 * subsection       Alert
 */

.Dialog.Alert .InnerContent .fa {
    display: block;
    font-size: 25px;
    text-align: center;
    color: #ff505e;
}

.Dialog.Alert h2,
.Dialog.Alert p {
    text-align: center;
}

.Dialog.Alert {
    width: 450px;
    top: 100px;
    left: 300px;
}

/**
 * subsection       Search
 */

.Dialog.Search {
    width: 550px;
}


/**
 * @subsection  Extensions for popup dialog
 */

 .FieldSetSeparator {
    float: none;
    clear: both;
    border-bottom: 1px solid #ccc;
    padding-bottom: 7px;
    font-size: 12px;
}

.FieldContainer + .FieldSetSeparator {
    padding-top: 10px;
}

.LayoutPopup {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.FieldSeparator {
    border-top: 1px dotted #ccc;
    margin: 5px 0px;
}

.LayoutPopup .PopupHeader {
    padding: var(--padding-xxl) var(--padding-lg) var(--padding-xl);
    border-bottom: 0;
    background-color: var(--white-bg-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.LayoutPopup .Content {
    padding: 0 var(--padding-lg);
}

.PopupHeader > p > a {
    color: #777777;
    font-size: 11px;
    outline: medium none;
    padding: 5px 11px;
    text-shadow: 0 1px 0 #EAEEEE;
}
.PopupHeader > p > a:hover {
    color: #444444;
}

fieldset.TableLike > .Field,
fieldset.TableLike > .Row > .Field {
    display: flex;
}

.FieldExplanation {
    color: var(--gray-md);
}

.PopupFooter {
    display: flex;
    justify-content: flex-end;
    padding: 0 var(--padding-lg) var(--padding-lg);
}


} /* end @media */
