/* Global */
@import "fonts.css";
@import "../fonts/font-awesome/css/all.min.css";

.border-black {
	border-color: #000 !important; }
.border-2 {
	border-width: 2px !important; }
.border-3 {
	border-width: 3px !important; }

html, body {
	height: 100%; }

body {
	font: 16px 'Cuprum', sans-serif; }

a {
	text-decoration: none !important; }

ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

th {
	font-size: .9rem; }

.non-wrap {
	white-space: nowrap; }

.non-events {
	pointer-events: none; }

.non-outline {
	outline: none; }

.pointer {
  cursor: pointer !important; }

.cursor-default {
	cursor: default !important; }

.cursor-question {
	cursor: help !important; }

.non-select {
	user-select: none;
	-o-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
}

.separator:not(:last-child) {
	border-bottom: 1px solid #dfdfdf;
	padding-bottom: 3px;
}

.sticky-top,
.fixed-top {
	z-index: 999;
}

.border-box {
	box-sizing: border-box; }

::-webkit-scrollbar {
	width: 6px; }

::-webkit-scrollbar-track {
	box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb {
	box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.dropdown-item.active,
.dropdown-item:active,
.k-state-selected {
	background-color: #6694c5 !important;
}

.dropdown-item.active > *,
.dropdown-item:active > * {
	color: #fff !important; }

.overflow-container {
	overflow: auto;
	padding-top: 10px;
	position: relative;
	max-height: calc(100vh - 50px);
}

.card-body-overflow {
	max-height: calc(100vh - 120px);
	overflow: auto;
}

.pre-wrap {
	white-space: pre-wrap; }

.btn-primary {
	background-color: #4c7491 !important;
	border-color: #4c7491 !important;
}

.btn-primary:active,
.btn-primary:hover {
	background-color: #466982 !important; }

.required {
	position: relative; }

.required:before {
	content: "\2217";
	color: #de3535;
	position: absolute;
	left: 4px;
	top: 2px;
}

/* Style of a select */
.form-control:focus {
	box-shadow: inset 0 0 0 transparent, 0 0 0 0.2rem rgba(164, 177, 191, 0.25); }

select:focus, select:hover, option:hover, option:focus {
	border: 1px solid #b1cbdc !important; }

.form-control option {
	background-color: rgb(27, 88, 138);
	color: #dadada;
	font-size: 17px;
}
/** Style of a select **/

.custom-file-label:after {
	content: "Выбрать"; }

/* Поле поиска по таблице */
.search_field_block {
	position: relative; }

.search_field_block:after {
	content: '\f002';
	font-family: "Font Awesome 5 Pro";
	color: #797979;
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
}

.search_field {
	box-shadow: 1px 2px 3px #b8b8b8; }

.search_field::-webkit-input-placeholder {
	opacity: .7;
	color: #545254;
	font-weight: 600;
}
/** Поле поиска по таблице **/
/** Global **/


/* Select2 */
.select2-container
.select2-selection--single {
	padding: 4px 10px;
	height: 36px
}

.select2-results__option {
	padding: 9px; }
/** Select2 **/

/* Custom-CheckBox */
.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after {
	top: 0.05rem; }
/** Custom-CheckBox **/

/* Switch (ползунок) */
.custom-switch.custom-control {
	height: 30px;
	float: left;
	width: 100%;
}

.custom-switch label > span {
	line-height: 2.2;
	margin-left: 20px;
	user-select: none;
}

.custom-switch .custom-control-label::before {
	width: 3rem;
	height: 1.5rem;
	border-radius: 0.8rem;
}

.custom-control-input:checked~.custom-control-label::before {
	border-color: #446c98;
	background-color: #5384b9;
}

.custom-switch .custom-control-label::after {
	height: calc(1.6rem - 4px);
	width: calc(1.6rem - 4px);
	top: calc(0.2rem + 2px);
	border-radius: 50%;
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
	transform: translateX(1.45rem); }
/** Switch **/

/* Index */
.cont-main {
	background: url(/dist/img/port.jpg);
	background-size: cover;
}

.widget-card .card-title {
	color: #f1e4ab; }

.js-container .dataTables_scrollBody,
.js-container .table,
.js-container .table td,
.js-container .table th {
	background: transparent !important;
	border: 0;
	color: #fff;
}

.js-container .table:first-child {
	border-bottom: 2px ridge #fff; }

.js-container .table:first-child th {
	vertical-align: middle; }

.dm-rg {
	background-color: rgba(0,0,0,0.4) !important;
	color: #fff;
}

.dm-rg option {
	background-color: rgb(77, 77, 77) !important; }
/** Index **/


/* Navbar */
.navbar-logo {
	font-size: 20px;
	color: #4b74a1;
}

.main-header {
	padding-top: 0;
	padding-bottom: 0;
	height: 50px;
	z-index: 1000;
	background-color: #f2f4f5 !important;
}

.main-header > .navbar-nav {
	height: 100%; }

.main-header > .navbar-nav > .nav-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.main-header > .navbar-nav > .nav-item:hover {
	background: #e0e0e0; }


.main-header #conf_nav_bar {
	margin-left: 16px; }

.main-header .nav-link {
	padding: 0 !important; }

.dropdown-menu .dropdown-item {
  padding: .5rem 1rem; }

.main-header .dropdown-item-title {
	font-size: 1rem;
	margin: 0;
}

.main-header .dropdown-nav {
	height: 100%;
	padding: 0 14px;
	display: flex;
	align-items: center;
}

.main-header .dropdown .dropdown-menu {
	margin: 0;
	padding: 0;
	font-size: 14px;
	min-width: 350px;
	max-width: 380px;
}

.main-header .dropdown-menu-right {
  min-width: 290px;
  max-width: 310px;
}

.main-header .header_navmenu_item:not(:last-child) {
	border-bottom: 2px ridge rgba(0, 0, 0, .08); }

.main-header .dropdown-menu p {
	white-space: normal;
  margin: 0;
}

#events_tasks_list .task_header span {
	font: 500 13px 'Roboto', sans-serif !important; }

#events_tasks_list .dropdown-footer {
	bottom: 0;
	position: sticky;
	text-align: center;
	background: #fff;
}

.main-header .header-notification > .dropdown-menu,
.main-header .user-info-header > .dropdown-menu {
	min-width: 350px; }

.main-header  .notify-date {
	white-space: pre;
	margin-left: 10px;
}

.main-header .task_header {
	border: 1px solid transparent; }

.main-header .task_header:not(.task-collapsed):hover {
	background: #94b3e2 !important; }

.main-header .task_header:not(.task-collapsed):active {
	background: #6a88b7 !important; }
.main-header .task_header:not(.task-collapsed):active button {
	color: #000 !important; }

.main-header .task_header:not(.task-collapsed):hover > *:not(button),
.main-header .task_header:not(.task-collapsed):active > *:not(button) {
	color: #f8ffff!important;
	text-shadow: 0 0 2px #000;
}


.main-header .task_header > span:first-child {
	white-space: pre-line; }

.main-header #tasks_list .task_header {
	flex-wrap: wrap; }

.main-header #tasks_list .task_header > span:first-child {
	flex: 63%;
	padding-right: 10px;
}

.main-header #tasks_list .task_header > .notify-date {
	flex: 36%;
	margin: 0;
}

.main-header #tasks_list .task-collapsed > span:first-child {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.main-header #tasks_list .task-collapsed > span:first-child:before {
	content: '\f322';
	font-family: 'Font Awesome 5 Pro';
	margin-right: 4px;
}
.main-header #tasks_list .task-collapsed .task_complete {
	display: none; }

.main-header #tasks_list .task_complete {
	flex: 1;
	margin-top: 10px;
}

.new-event {
	font-weight: 600;
	border-left: 2px solid rgba(0, 13, 255, 0.25);
	padding-left: 6px;
	color: navy !important;
}

#events_tasks_list {
	max-height: 84vh;
	overflow: auto;
	box-shadow: 0 4px 4px #e2e2e2;
}

#notification-amount {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 18px;
	color: white;
	font-size: 14px;
	border-radius: 50%;
	text-align: center;
	background: #fd2918;
	box-shadow: 0px 1px 2px #4a4a4a;
	text-shadow: 1px 0px 2px #636363;
}

.user-image {
	width: 25px;
	border-radius: 50%;
}

.main-header .user-info {
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.user-info img {
	width: 76px;
	border-radius: 50%;
}

.user-info__title {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.user-info__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: .75rem 1.25rem;
	background-color: rgba(0,0,0,.03);
	border-top: 1px solid rgba(0,0,0,.125);
}

.profile-change__select {
	width: 100%;
	margin-top: 6px;
	display: none;
}

.user-info__footer .btn {
	max-height: 38px; }

.user-info__footer .profile-change i {
	font-size: 1.5em; }

.user-info__footer .profile-change_selected,
.user-info__footer .profile-change:hover {
	background: radial-gradient(#f5f5f5, #c7c7c7); }

.user-info__footer .profile-change:active {
	background: radial-gradient(#d4f9cd, #9e9e9e); }

.navmenu-show {
	display: flex !important; }

.navmenu-show .dropdown-menu {
	position: static !important;
	display: flex !important;
}

@media screen and (min-width: 768px){
	.dropdown:hover > .dropdown-menu,
	.dropdown-menu:hover {
		display: block;
	}
}

@media (max-width: 1086px) {
	aside.sidebar-background {
		min-width: 230px; }

	#header_nav .nav-link {
		padding-left: 8px !important;
    padding-right: 8px !important;
	}
}

@media (max-width: 938px) {
	aside.sidebar-background {
		display: none; }

	#header_nav {
		position: absolute;
		top: 50px;
    left: 0;
    width: 100%;
    padding: 10px 38px;
    height: calc(100vh - 56px);
    z-index: 999;
		background: white;
    box-shadow: 0 0 8px #757575;
		display: none;
		overflow-x: hidden;
    flex-direction: column;
	}

	#header_nav .dropdown-menu {
		min-width: auto;
    max-width: 100%;
	}

	#header_nav .dropdown-item-title {
		white-space: normal; }

	.main-header #conf_nav_bar {
		display: block !important; }
}

@media (max-width: 540px) {
	#header_nav {
		padding: 10px; }

	.main-header .user-info {
		padding: .7rem;
		justify-content: space-evenly;
	}

	.main-header .dropdown {
		position: static; }

	.user-info img {
		width: 60px; }

	.main-header .dropdown-menu {
		min-width: 300px;
		left: 0;
    right: 0;
		margin: 0 3px;
		max-width: unset;
	}
}
/** Navbar **/

/* Left Sidebar */
.sidebar {
	background: rgba(36, 61, 91, 0.5) !important; }

.sidebar-background {
	background: url(/dist/img/sidebar/sidebar.jpg) no-repeat -33px top;
	background-size: cover;
	min-width: 270px;
	box-shadow: 0 0 4px #444444;
	height: 100vh;
}

.sidebar-logo {
	display: block;
	padding: 16px 0;
	text-align: center;
	font-size: 1.25rem;
	text-decoration: none !important;
	border-bottom: 1px solid #12314e;
	background: linear-gradient(50deg, #466faf, #112c47, #123352);
	transition: background 1.5s ease-out;
}

.sidebar-logo:hover {
	background-position: 0 186px; }

.sidebar-logotype {
	text-align: center;
	margin-bottom: 10px;
	padding: 10px 0;
}

.sidebar-logotype img {
	max-height: 120px;
	max-width: 250px;
	border: 4px double #a7a1a1;
	border-radius: 16%;
	filter: drop-shadow(2px 4px 6px black);
}

.sidebar-select {
	font-weight: 600;
	background: rgba(243, 243, 243, 0.26) !important;
	pointer-events: none;
}

.sidebar {
	display: flex;
	flex-wrap: nowrap;
  flex-direction: column;
	height: calc(100vh - 3.5rem);
	overflow-y: auto;
	padding: 0;
	margin: 0;
}

.sidebar .sidebar-item:hover {
	background-color: rgba(255,255,255,.1); }

.sidebar .sidebar-item:hover a {
	color: white !important; }

.sidebar .nav-icon {
	text-align: center;
	width: 1.6rem;
	font-size: 1.2rem;
}

.sidebar .nav-header {
  font: 500 0.82rem 'Roboto';
	color: #d0d4db;
	cursor: default;
	text-shadow: 0 1px 2px black;
	text-transform: uppercase;
	text-align: center;
	padding: 16px 0 8px;
	user-select: none;
}

.sidebar .nav-link {
	color: #c2c7d0 !important;
	margin: .2rem 0;
	padding: .9rem .7rem;
	text-shadow: 0 1px 2px black, 1px 0 2px black;
	cursor: pointer;
	user-select: none;
}

.sidebar .nav-link .compare-count {
	pointer-events: all;
	cursor: default;
	font: 500 16px 'Roboto';
	min-width: 38px;
}

.has-sidebar .navbar-logo {
	display: none !important; }

.has-sidebar .main-header {
	padding: 0 !important; }

@media (max-height: 700px) {
	.sidebar-background {
		background-position: top;
	}
}
/** Left Sidebar **/

/* Right Sidebar */
.control-sidebar {
	position: absolute;
	top: 50px;
	right: 0;
	bottom: 0;
	width: 0;
	z-index: 830;
	color: floralwhite;
	white-space: nowrap;
}

.control-sidebar-dark,
.control-sidebar-dark:before {
	background: #191919;
}

.control-sidebar .bg-primary {
	background-color: #3C8DBC !important; }

.control-sidebar .bg-danger {
	background-color: #dc3545 !important; }

.control-sidebar .bg-default {
	background-color: #68a5b7 !important; }

.control-sidebar .bg-light {
	background-color: #f8f9fa !important; }

/** Right Sidebar **/

/* START: Login page */
@media (max-width: 440px) {
	.header-login-title {
			font-size: 21px;
	}

	.navbar-login-contact {
			display: flex;
			flex-direction: column;
			text-align: right;
	}
}

.login-body {
	overflow-x: hidden; }

.login-record {
	border-radius: 0 0 8px 8px; }

.navbar-login-logo {
	color: #4b74a1; }

.login-container {
	max-width: 420px; }
/* END: Login page */


/* START: Спинер */
.gears {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 99999;
	margin: 0;
}

.cssload-loader {
	width: 100px;
	height: 100px;
	-webkit-perspective: 780px;
	perspective: 780px;
	position: absolute;
	left: 0;
	right: 200px;
	top: 0;
	bottom: 0;
	margin: auto;
}

.cssload-inner.cssload-one {
	left: 0%;
	top: 0%;
	animation: cssload-rotate-one 1.15s linear infinite;
	border-bottom: 3px solid #00a2b7;
}

.cssload-inner.cssload-two {
	right: 0%;
	top: 0%;
	animation: cssload-rotate-two 1.15s linear infinite;
	border-right: 3px solid rgb(191, 186, 185);
}

.cssload-inner.cssload-three {
	right: 0%;
	bottom: 0%;
	animation: cssload-rotate-three 1.15s linear infinite;
	border-top: 3px solid #ec3340;
}

.cssload-inner {
	position: absolute;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border-radius: 50%;
}

@keyframes cssload-rotate-one {
  0% {
    -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
            transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
            transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes cssload-rotate-two {
  0% {
    -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
            transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
            transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes cssload-rotate-three {
  0% {
    -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
            transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
            transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}
/* END: Спинер */
