.window_body
{
position: absolute;
z-index: 1001;
background: #fff;
display: flex;
flex-direction: column;
max-width: 95%;
width: 95%;
max-height: 95%;
height: 95%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.window_body.wnd_ok
{
color: #038158;    
}

.window_row1
{
min-height: 32px;
max-height: 32px;
display: flex;
flex-direction: column;
background: #f0f0f0;
justify-content: center;
border-bottom: 1px solid #cdcdcd;
}

.window_caption
{
font-size: 16px;    
padding: 0 8px;
}

.window_row2
{
display: flex;     
flex-grow: 1;   
overflow: hidden; 
}

.window_row2 .founded
{
overflow-y: auto;    
scrollbar-width: thin;
}

.window_content
{
display: flex;
flex-grow: 1;   
padding: 8px;
box-sizing: border-box;   
overflow: hidden;
}

.window_row2 .list_recs_counter
{
    margin: 16px 0;
}

.scroll_content
{
display: flex;  
flex-direction: column;
flex-grow: 1;   
width: 100%;
overflow-y: auto;
scrollbar-width: thin;
padding: 0 10px;
/*gap нельзя делать, некоторые окна разваливаются по высоте */
}

.scroll_content.vertical_align
{
justify-content: center;
align-items: center;
text-align: center;
}

.window_row3
{
padding: 8px;    
}

.window_footer
{
display: flex;
justify-content: center;    
padding-top: 10px;
position: relative;
gap: 4px;
}

.window_footer::before
{
content: "";
position: absolute;
top: 0;
background: #cdcdcd;
height: 1px;
width: 50%;
}

.window_button 
{
position: relative;
line-height: 150%;
background-color: white;
border: 1px solid #cdcdcd;
border-radius: 8px;
padding: 10px 16px;
display: inline-flex;
min-width: 60px;
height: 41px;
letter-spacing: 0.5px;    
align-items: center;
justify-content: center;
align-self: flex-start;
font: 14px 'DefaultFont', sans;
cursor: pointer;
gap: 4px;
}

.window_button img
{
width: 16px;
height: 16px;    
}

.window_button.wait img
{
opacity: 0;
} 

.window_button.wait::before
{
content: "";
width: 16px;    
height: 16px;
display: block;
position: absolute;
top: 10px;
left: 14px;
background: url(/_modules/filesystem/img/svg1/hourglass.svg) center center no-repeat;
background-size: 16px 16px;
animation-name: rotation;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}

.window_close
{
position: absolute;    
right: 8px;
top: 5px;
cursor: pointer; 
}

.window_button_close
{
vertical-align: middle; 
width: 16px !important; 
height: 16px !important;
padding: 0; 
cursor: pointer; 
border: none; 
outline: 0; 
background: url(/_modules/filesystem/img/svg1/close.svg);
background-size: 16px 16px;
}

/* Модальные */

#errorWnd .scroll_content,
#okWnd .scroll_content,
#attentionWnd .scroll_content
{
flex-direction: row;
gap: 4px;
}

/* Перенос в новую группу */

#moveNewPageGroupWnd .context
{
display: none;    
}

/* Поиск */

#searchWnd .window_bar
{
    display: flex;
    gap: 8px;
    width: 100%;
}

#searchWnd .window_bar .input
{
    flex-grow: 1;
}

#searchWnd .window_bar button
{
filter: none;    
}

/* #################################################################################### */
/* ###################################### 661 - 1024 ################################## */
/* #################################################################################### */

@media (max-width: 1024px)  
{
    .window_button span
    {
        display: none;
    }

    .window_button.wait::before 
    {
        top: 11px;
        left: 22px;
    }    
}    



