/*--- Загрузчик AJAX ---*/
#loading-layer {
	display: block !important;
	background-color: rgba(0,0,0,0.6);
	z-index: 9999;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%; height: 100%; text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}
#loading-layer:before {
	content: "";
	border-radius: 50%;
	position: absolute;
	left: 50%; top: 50%;
}
#loading-layer:before {
    border: 3px solid #ffffff;
    width: 50px;
    height: 50px;
    margin: -28px 0 0 -28px;
}

#loading-layer:before {
	-webkit-animation: load 1s infinite ease;
	animation: load 1s infinite ease;
}
@-webkit-keyframes load {
	0%, 100%, 100% { -webkit-transform: scale(1,1); }
	50% { -webkit-transform: scale(.6,.6); }
}
@keyframes load {
	0%, 100%, 100% { transform: scale(1,1); }
	50% { transform: scale(.6,.6); }
}


/*---Диалоговые и всплывающие окна jQuery UI---*/
.ui-front { z-index: 1000; }
.ui-widget-overlay,
.side_menu_overlay {
    background: #000;
    opacity: 0.5;
    left: 0; top: 0; right: 0; bottom: 0;
    position: fixed;
}
.ui-helper-clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden }
.ui-helper-clearfix { display: inline-block }
* html .ui-helper-clearfix { height: 1% }
.ui-helper-clearfix { display: block }
.ui-dialog {
    text-align: left;
    overflow: hidden;
    padding: 0;
    position: fixed;
    width: 370px;
    max-width: 94%!important;
    border-radius: 2px;
    box-shadow: 0 8px 40px -10px rgb(0 0 0 / 30%);
    border-color: rgba(0,0,0,0.1);
    background-color: #fff;
    background-clip: padding-box;
}
.ui-dialog-titlebar {
    padding: 1rem;
    position: relative;
    border-bottom: 1px solid #dee2e6;
}
.ui-dialog-title {
    font-weight: bold;
    font-size: 1.15em;
}
.ui-dialog-titlebar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    border: 0 none !important;
    background-color: inherit !important;
    box-shadow: none !important;
    padding: 0px !important;
}
.ui-dialog-titlebar-close .ui-icon {
    display: block;
    margin: 0 0 0 0;
    margin-right: 0;
    width: 24px;
    height: 24px;
    background-image: url(../images/icons/x.svg);
    background-size: contain;
    opacity: .5;
}
.ui-button {
    float: right;
    border: 0 none;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    height: 36px;
    border-radius: 18px;
    line-height: 22px;
    outline: none;
    background-color: #3394e6;
    color: #fff;
    border: 0 none;
    padding: 7px 22px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2); -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
    -webkit-transition: all ease .1s; transition: all ease .1s;
}
.ui-dialog-titlebar-close:hover .ui-icon { opacity: 1; }
.ui-icon, .ui-button-icon-only { overflow: hidden; text-indent: -9999px; }
.ui-dialog label { color: #575757; }
.ui-dialog-content { padding: 1rem; overflow: auto; position: relative; zoom: 1; }
.loginbox.ui-dialog, .loginbox .ui-dialog-content { overflow: visible !important; }
.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold }
.ui-dialog .ui-dialog-buttonpane { padding: 20px; text-align: center; }
.ui-dialog .ui-resizable-se { bottom: 3px; height: 14px; right: 3px; width: 14px; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }
.ui-state-error { background: #fef1ec 50% 50% repeat-x !important; border: 1px solid #cd0a0a; color: #cd0a0a; }
.ui-button { margin: 0 3px; }
.ui-helper-hidden-accessible{display: none;}

/* --- Поля форм --- */
select, textarea, input[type="text"], input[type="password"], input[type="file"],
input[type="datetime"], input[type="datetime-local"], input[type="date"],
input[type="month"], input[type="time"], input[type="week"], input[type="number"],
input[type="email"], input[type="url"], input[type="search"], input[type="tel"],
input[type="color"] {
    display: inline-block;
    max-width: 100%;
    height: 46px;
    line-height: 22px;
    padding: 10px;
    vertical-align: middle;
    background: #eceff1;
    border: 1px solid #e2e2e2;
    -webkit-transition: border 0.2s linear 0s;
    transition: border 0.2s linear 0s;
}
textarea { margin: 0; overflow: auto; vertical-align: top; resize: vertical; }
textarea:focus, select:focus, input[type="text"]:focus, input[type="password"]:focus,
input[type="file"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus,
input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus,
input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus,
input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus,
input[type="color"]:focus, .uneditable-input:focus {
    border-color: #0097a7;
}
input[type="radio"], input[type="checkbox"] { line-height: normal; margin: -2px 6px 0 0; vertical-align: middle; }
input[type="file"], input[type="image"],
input[type="submit"], input[type="reset"],
input[type="button"], input[type="radio"],
input[type="checkbox"] { width: auto; }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
select[multiple], select[size], textarea { height: auto; }

::placeholder { opacity: .8; }
:-ms-input-placeholder  { opacity: .8; }
::-ms-input-placeholder  { opacity: .8; }

input:focus { outline: none; }
input[type="file"], input[type="image"] { padding: 0; border-width: 0; background-color: transparent; }
.wide, .bb-editor textarea, .ui-dialog textarea, select#category, .timezoneselect, .quick-edit-text { width: 100% !important; }
#searchuser, #searchinput { width: 100% !important; margin-bottom: 10px; }

input.error,
textarea.error,
select.error {
    border-color: red;
}
.error::placeholder { color: red; }
.error:-ms-input-placeholder  { color: red; }
.error::-ms-input-placeholder  { color: red; }

/* --- Настройка кнопок --- */
.btn, .bbcodes, .btn-border {
    border: 0 none;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    height: 40px;
    border-radius: 2px;
    line-height: 30px;
    padding: 5px 20px;
    outline: none;
    background-color: #0097a7;
    color: #fff;
    border: 0 none;
    text-decoration: none !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all ease .1s;
    transition: all ease .1s;
}
.btn:hover, .bbcodes:hover, .ui-button:hover { background-color: #008290; }

.btn-big { height: 46px; padding: 8px 27px; }

.btn-border {
    line-height: 26px;
    color: #0097a7;
    border: 2px solid #0097a7;
    background-color: transparent!important;
    overflow: hidden;
    box-shadow: inset 0 0 0 0 transparent;
    -webkit-box-shadow: inset 0 0 0 0 transparent;
}
.btn-border:hover {
    color: #fff;
    background-color: #0097a7!important;
}

.btn-white { background-color: transparent!important; border-color: #fff; color: #fff; }
.btn-white:hover { background-color: #0097a7!important; border-color: #0097a7; color: #fff; }

.btn-green { background-color: transparent!important; border-color: #E1E8EE; color: #5E6977; }
.btn-green:hover { background-color: transparent!important; border-color: #86939E; color: #5E6977; }

.btn-arrow {
}
.btn-arrow:after {
    content: '';
    width: 22px;
    height: 100%;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    background: url(../images/icons/arrow-right-white.svg) center center no-repeat;
    background-size: contain;
}


/*--- Quick search ---*/
#searchsuggestions {
    z-index: 2200;
    width: 300px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 8px 40px -10px rgba(0,0,0,0.3);
    border: 1px solid #ddd; border-color: rgba(0,0,0,0.2);
    background-clip: padding-box;
    font-size: .9em;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
#searchsuggestions a, #searchsuggestions span.notfound { padding: 15px 25px; display: block; text-decoration: none; border-bottom: 1px solid #e5e5e5; }
#searchsuggestions a { color: inherit; }
#searchsuggestions a:hover { background-color: #f7f7f7; }
#searchsuggestions a span { display: block; cursor: pointer; }
#searchsuggestions span.searchheading { display: block; font-weight: bold; margin-bottom: .2em; }
#searchsuggestions span.seperator { display: block; }
#searchsuggestions span.seperator a { padding: 10px 0; text-align: center; border: 0 none; background-color: transparent; color: #919191; }
#searchsuggestions span.notfound { padding: 15px 25px; display: block; }
#searchsuggestions .break { display: none; }