/*Окна*/
#wrap .ng_win
{
    display: none;
    width: 100%;
    height: 95%;
    height: -webkit-calc(100% - 1.5384em);
    height: calc(100% - 1.5384em);
    position: absolute;
    background-color: transparent;
    left: 0;
    right: 0;
    top: 0;
    bottom: 1.5384em;
    margin: auto;
    z-index: 20;
    pointer-events: none;

    -moz-filter: blur(0.2em) grayscale(0.3) ;
    -webkit-filter: blur(0.2em) grayscale(0.3) ;
    filter: blur(0.2em) grayscale(0.3) ;

    -webkit-transition: filter 0.1s ease-in-out;
    -moz-transition: filter 0.1s ease-in-out;
    -o-transition: filter 0.1s ease-in-out;
    transition: filter 0.1s ease-in-out;
}
#wrap .ng_win.ng_ui_win_top
{
    z-index: 21;
    pointer-events: all;
    position: relative;
    height: 100%;
    bottom: 0;

    -moz-filter: blur(0) grayscale(0) ;
    -webkit-filter: blur(0) grayscale(0) ;
    filter: blur(0) grayscale(0) ;
}
#wrap .ng_win .ng_win_fog
{
    display: table-cell;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
}
#wrap .ng_win .ng_win_block
{
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    height: 100%;
    text-align: left;
    background-color: #000000;
    background-repeat: repeat;
    background-position: center top;
    padding: 1em;
    box-sizing: border-box;
    cursor: default;
    max-width: 100%;
    max-height: 100%;
}

/*Прелоадер*/
#wrap .ng_win .ng_win_block.ng_preloader
{
    pointer-events: none;
}
#wrap .ng_win .ng_win_block.ng_preloader:before
{
    content: '';
    position: absolute;
    background-color: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 2;
}

/*Заголовок окна*/
#wrap .ng_win .ng_win_title
{
    font-size: 19px;
    font-size: 1.3571em;
    font-weight: bold;
    text-align: center;
    line-height: 1em;
    color: #FFFFFF;
    overflow: hidden;
    padding: 0 2.3157em 0.7368em;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
#wrap .ng_win .ng_win_title:empty
{
    display: none;
}

/*Кнопка закрытия окна*/
#wrap .ng_win .ng_win_btn_close
{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}


/*Блок с контентом*/
#wrap .ng_win .ng_win_block_content
{
    width: 100%;
    height: 90%;
    height: -webkit-calc(100% - 2.3571em);
    height: calc(100% - 2.3571em);
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

#wrap .ng_win .ng_win_btn_close.dhide+.ng_win_title+.ng_win_block_content
{
    height: -webkit-calc(100% - 2.7142em);
    height: calc(100% - 2.7142em);
}
#wrap .ng_win .ng_win_btn_close.dhide+.ng_win_title:empty+.ng_win_block_content
{
    height: 100%;
}

/*Скролл блока с контентом*/
#wrap .ng_win .ng_win_block_content > .ng_row_br,
#wrap .ng_win .ng_win_block_content > .ng_scroll_body > .ng_row_br
{
    margin-bottom: 1em;
}
#wrap .ng_win .ng_win_block_content > .ng_scroll_bar
{
    position: absolute;
    right: 0em;
    top: 1em;
    bottom: 1em;
    height: auto;
}
#wrap .ng_win .ng_win_block_content:hover > .ng_scroll_bar
{
    opacity: 1;
}

#wrap .ng_win .ng_win_block_content > .ng_scroll_body
{
    width: 100%;
    height: 100%;
}
#wrap .ng_win .ng_win_block_content > .ng_scroll_bar:not(.ng_scroll_hide) + .ng_scroll_body
{
    width: -webkit-calc(100% - 1.7142em);
    width: calc(100% - 1.7142em);
}

/*Блок ошибок*/
#wrap .ng_win .ng_win_errors
{
    font-size: 10px;
    font-size: 0.7142em;
    display: block;
    color: rgb(255,204,0);
    text-align: center;
    line-height: 1em;
    min-height: 2em;
    max-height: 10em;
    margin-top: 1em;
    overflow: hidden;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.3);
}
#wrap .ng_win .ng_win_errors:empty
{
    display: none;
}
#wrap .ng_win .ng_win_errors.ng_color_green
{
    color: #30cc3a;
}

/*Cтили окна №0*/
#wrap .ng_win [data-border_style="0"]
{
    background-image: url('../images/ui/win/ng_win_0_bg.jpg');
    background-size: 35.4285em auto;
    box-shadow: 0.3571em 0.3571em 0.3571em 0.1428em #000000;

    -webkit-border-radius: 1.2857em;
    -moz-border-radius: 1.2857em;
    border-radius: 1.2857em;
}

/*Cтили окна №1*/
#wrap .ng_win [data-border_style="1"]
{
    background-image: url('../images/ui/win/ng_win_1_bg.jpg');
    background-size: 35.4285em auto;
    height: -webkit-calc(100% - 1.4285em - 1.9285em);
    height: calc(100% - 1.4285em - 1.9285em);
}

/*Cтили окна №2*/
#wrap .ng_win [data-border_style="2"]
{
    background-image: url('../images/ui/win/ng_win_2_bg.jpg');
    background-size: 35.4285em auto;

    height: -webkit-calc(100% - 1.5714em - 2em);
    height: calc(100% - 1.5714em - 2em);
}

/*Cтили окна №3*/
#wrap .ng_win [data-border_style="3"]
{
    background-image: url('../images/ui/win/ng_win_3_bg.jpg');
    background-size: 10.5em auto;

    height: -webkit-calc(100% - 12.9285em - 12.9285em);
    height: calc(100% - 12.9285em - 12.9285em);

}

/*Кнопки*/
#wrap .ng_win_block_content .ng_btn_scroll_up,
#wrap .ng_win_block_content .ng_btn_scroll_down
{
    display: none;
    pointer-events: none;
    position: absolute;
    right: 0.5em;
}
#wrap .ng_win_block_content .ng_btn_scroll_up
{
    top: 0.5em;
}
#wrap .ng_win_block_content .ng_btn_scroll_down
{
    bottom: 0.5em;
}



/*Цветовые схемы*/
/*Cтили окна №0*/
#wrap[data-theme="dark"] .ng_win [data-border_style="0"]
{
    background-image: url('../images/ui/themes/dark/win/ng_win_0_bg.png');
}
/*Cтили окна №1*/
#wrap[data-theme="dark"] .ng_win [data-border_style="1"]
{
    background-image: url('../images/ui/themes/dark/win/ng_win_1_bg.png');
}
/*Cтили окна №2*/
#wrap[data-theme="dark"] .ng_win [data-border_style="2"]
{
    background-image: url('../images/ui/themes/dark/win/ng_win_2_bg.png');
}
/*Cтили окна №3*/
#wrap[data-theme="dark"] .ng_win [data-border_style="3"]
{
    background-image: url('../images/ui/themes/dark/win/ng_win_3_bg.png');
}
#wrap[data-theme="dark"] .ng_win .ng_win_block
{
    background-color: transparent;
}