body {
	display: -webkit-flex;
	display: flex;

	-webkit-flex-direction: column;
	flex-direction: column;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	overflow-y: scroll;
	
	min-width: 1200px;
}


/* - - - POPUP - - - */
.P-popup {
	position: absolute;

	margin-top: 45px;
	padding: 10px 14px;

	border-radius: 16px;
	background: #efefef;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);

	font-size: 1.4rem;
	color: #3c3546;

	z-index: 200;
}
.P-popup .bubble_arrow {
	position: absolute;

	width: 24px;
	height: 13px;

	bottom: 100%;
	left: 18px;

	background: url('/images/crm-icons.png') no-repeat -24px -84px;
}
.P-popup p { font-size: 1.2rem; }

.P-popup button {
	min-width: 60px;
	height: 26px;

	padding: 0 6px;
	margin: 0 6px;

	background: #4d3b5e;
	border-radius: 4px;

	text-align: center;
	font-size: 1.4rem;
	color: #fff;

	cursor: pointer;

	-webkit-transition: background 0.2s;
	transition: background 0.2s;
}
.P-popup button:hover {
	background: #6C5880;
}
.P-popup button button:first-child { margin-left: 0; }
.P-popup button button:last-child { margin-right: 0; }

.P-popup input, .P-popup textarea, .P-popup select {
		min-width: 90px;
		height: 22px;

		padding: 0 7px;
		margin: 0 6px;

		box-sizing: border-box;

		background: #ffffff;
		border: 1px solid #7e7e7e;
}
.P-popup .row {
	display: -webkit-flex;
	display: flex;

	-webkit-align-items: center;
	align-items: center;

	margin-bottom: 8px;
}
.P-popup .row.action {
	-webkit-justify-content: flex-end;
	justify-content: flex-end;

	margin-top: 15px;
}


/* - - - STICKY HEADER - - - */
.STICKY.header { position: relative; }
.STICKY.header .STICKY-content {
	position: fixed;
	z-index: 100;
	
	width: 100%;
	
	background: #fff;
	
	-webkit-transition: box-shadow 0.2s;
	transition: box-shadow 0.2s;
}
.STICKY.deattached.header .STICKY-content { box-shadow: 0 0 9px rgba(0, 0, 0, 0.5); }


/* - - - HEADER - - - */
#header {
	position: relative;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	height: 44px;
	background: #544266;

	font-size: 1.4rem;
	color: #fff;
}
#header .center {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	height: 100%;
}
#header .header-part {
	display: -webkit-flex;
	display: flex;

	height: 100%;
	
	margin: 0 5px;

	-webkit-align-items: center;
	align-items: center;
}
#header .header-part:first-child { margin-left: 0; }
#header .header-part:last-child { margin-right: 0; }
#header .header-part.left { -webkit-justify-content: flex-start; justify-content: flex-start; }
#header .header-part.middle { -webkit-justify-content: center; justify-content: center; }
#header .header-part.right { -webkit-justify-content: flex-end; justify-content: flex-end; }

#header .header-item { margin-left: 5px; margin-right: 5px; }
#header .header-item:first-child { margin-left: 0; }
#header .header-item:last-child { margin-right: 0; }

#header .button {
	display: -webkit-flex;
	display: flex;

	-webkit-align-items: center;
	align-items: center;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	height: 100%;
	padding: 9px 10px;

	box-sizing: border-box;

	-webkit-transition: background 0.2s;
	transition: background 0.2s; 
}
#header .button:hover, #header .button.selected { background: rgba(0, 0, 0, 0.2); }
#header .button .icon {	background: url('/images/crm-icons.png') no-repeat 0 0; }
#header .button.add_person .icon {
	width: 23px;
	height: 25px;
	background-position: 0 -41px;
}
#header .button.doc_link .icon {
	width: 21px;
	height: 25px;
	background-position: -27px -41px;
}
#header .button.filter .icon {
	width: 23px;
	height: 23px;
	background-position: 0 0;
}
#header .button.forward_filter .icon {
	width: 32px;
	height: 23px;
	background-position: 0 -285px;
}
#header .button.reset_filter .icon {
	width: 23px;
	height: 23px;
	background-position: -23px 0;
}
#header .button.password .icon {
	width: 39px;
	height: 18px;
	background-position: 0 -23px;
}
#header .button.logout .icon {
	width: 24px;
	height: 27px;
	background-position: -27px -258px;
}
#header .button.refresh .icon {
	width: 23px;
	height: 23px;
	background-position: 0 -258px;
}

#header .button.reset_filter { display: none; }


/* toggle all notes */
#header .toggle_all_notes {
	display: -webkit-flex;
	display: flex;

	-webkit-align-items: center;
	align-items: center;
}
#header .toggle_all_notes .label { margin-right: 8px; }
#header .toggle_all_notes .switch {
	display: -webkit-flex;
	display: flex;

	-webkit-align-items: center;
	align-items: center;

	width: 30px;
	height: 18px;

	padding: 2px;

	box-sizing: border-box;

	background: #fff;
	border-radius: 2px;

	overflow: hidden;

	font-size: 1rem;
	color: #4e3c5f;
}
#header .toggle_all_notes .status, #header .toggle_all_notes .rect {
	position: relative;
	width: 50%;

	-webkit-flex-grow: 0;
	flex-grow: 0;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	text-align: center;

	border-radius: inherit;
}
#header .toggle_all_notes .rect {
	height: 100%;
	background: #4d3b5e;
}
#header .toggle_all_notes .status:first-child { left: -2px; }
#header .toggle_all_notes .status:last-child { right: -1px; }

#header .toggle_all_notes .status:first-child {
	-webkit-transition: margin 0.2s;
	transition: margin 0.2s;
}
#header .toggle_all_notes .switch[data-value="1"] .status:first-child { margin-left: -50%; }
@media screen and (max-width: 800px){
	#header .toggle_all_notes { display: none; }
	#header .button.doc_link { display: none; }
}



/* search */
#search {
	position: relative;
	display: -webkit-flex;
	display: flex;

	height: 25px;

	background: #fff;
	border-radius: 4px;
}
#search .search_icon {
	position: relative;

	-webkit-flex-grow: 0;
	flex-grow: 0;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	width: 27px;
	border-right: 1px solid #dbd8d4;
}
#search .search_icon .icon {
	position: absolute;

	width: 17px;
	height: 17px;

	left: 50%;
	top: 50%;

	margin-left: -8px;
	margin-top: -8px;

	background: url('/images/crm-icons.png') no-repeat -16px -97px;
}

#search input {
	-webkit-flex-grow: 1;
	flex-grow: 1;
	-webkit-flex-shrink: 1;
	flex-shrink: 1;

	width: 200px;
	padding: 0 5px;

	box-sizing: border-box;

	font-size: 1.2rem;
	color: #444;

	background: transparent;
}

/* search hints */
#search .hints {
	display: block;
	position: absolute;

	top: 100%;
	left: 0;

	width: 100%;

	margin-top: 10px;
	padding: 5px 0 10px 0;

	background: #fff;
	border-radius: inherit;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);

	opacity: 0;
	pointer-events: none;

	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
}
#search.focus .hints { opacity: 1; pointer-events: auto; }
#search .hints .hint-item.template { display: none; }
#search .hints .hint-item {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	-webkit-align-items: center;
	align-items: center;

	padding: 6px 10px;

	font-size: 1.4rem;
	color: #3C3546;
}
#search .hints .hint-item:hover, #search .hints .hint-item.selected {
	background: #705A86;
	color: #FFF;
}

#search .hints .hint-item .personal {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}
#search .hints .hint-item .name { font-weight: bold; }
#search .hints .hint-item .email { font-size: 1.1rem; }
#search .hints .hint-item .status {
	text-align: right;
	font-size: 1.1rem;
}


#search .hints_icon {
	position: relative;

	-webkit-flex-grow: 0;
	flex-grow: 0;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	width: 27px;
	border-left: 1px solid #dbd8d4;
}
#search .hints_icon .icon {
	position: absolute;

	width: 15px;
	height: 15px;

	left: 50%;
	top: 50%;

	margin-left: -7.5px;
	margin-top: -7.5px;

	background: url('/images/crm-icons.png') no-repeat -33px -97px;

	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}
#search.focus .hints_icon .icon {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}
@media screen and (max-width: 550px){
	#header .center {
		padding-left: 0;
		padding-right: 0;
	}
	#header .button {
		margin-left: 0;
		margin-right: 0;
	}
}
@media screen and (max-width: 480px){
	#header .button.refresh { display: none; }
	#header .header-part.middle {
		-webkit-flex-grow: 1;
		flex-grow: 1;
		
		margin-right: 0;
	}
	#search .search_icon { display: none; }
	#header .header-part.middle {
		-webkit-justify-content: flex-end;
		justify-content: flex-end;
	}
}
@media screen and (max-width: 400px){
	#header .button.filter, #header .button.forward_filter { display: none; }
}


/* error message */
#error {
	position: absolute;
	
	width: 100%;
	height: 100%;
	
	bottom: 100%;
	left: 0;
	
	z-index: 1;
	
	-webkit-transition: bottom 0.4s;
	transition: bottom 0.4s;
}
#error.open { bottom: 0; }
#error .center {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
	
	-webkit-align-items: center;
	align-items: center;
	
	-webkit-align-content: center;
	align-content: center;
	
	background: #E43838;
	
	color: #fff;
	font-size: 1.3rem;
}
#error .text {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}
#error .close {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	margin-left: 20px;
}


/* - - - STICKY TABLE HEADER - - - */
#sticky_table_header {
	position: relative;
	display: none;
}
#sticky_table_header.visible { display: block; }
#sticky_table_header table {
	table-layout: fixed;
	font-size: 1.3rem;
}
#sticky_table_header tr { display: -webkit-flex; display: flex; }
#sticky_table_header th, #sticky_table_header td {
	display: block;
	
	box-sizing: border-box;
	
	padding: 5px;
	
	border: 1px solid #dbd8d4;
	border-bottom: 0;
	background: #efefef;
}
#sticky_table_header th:not(:last-child), #sticky_table_header td:not(:last-child) { border-right: 0; }
#sticky_table_header .text {
	width: 100%;
	
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#sticky_table_header th[data-cell_type="edit"], #sticky_table_header td[data-cell_type="edit"]{
	background: #fff;
	border: 0;
}
#sticky_table_header th[data-cell_type="tick"], #sticky_table_header td[data-cell_type="tick"]{
	background: #fff;
	cursor: pointer;
}



/* - - - FILTER - - - */
#filter {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	margin-top: 10px;
	margin-bottom: 5px;

	font-size: 1.2rem;
	
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}
#filter .filter-tab { display: none; }
#filter .filter-tab.selected { display: block; }
#filter .filter-content {
	display: -webkit-flex;
	display: flex;

	min-height: 80px;
	padding: 5px 0;

	background: #efefef;
	border: 1px solid #dbd8d4;
}

#filter .filter-item {
	margin: 5px 10px;
}

#filter .filter-item h2 {
	margin-bottom: 4px;

	font-weight: 600;
	color: #3c3546;
	font-size: 1.4rem;
}
#filter .filter-item select, #filter .filter-item input {
	width: 100%;
	height: 26px;

	box-sizing: border-box;

	padding: 0 6px;

	color: #3c3546;

	border: 1px solid #dbd8d4;
	background: #fff;
}
#filter .filter-item select:invalid, #filter .filter-item input:invalid { border: 2px solid #FFB0B0; }
#filter .filter-item input[type="date"]{ min-width: 140px; }
#filter .filter-item .row {
	display: -webkit-flex;
	display: flex;
}
#filter .filter-item .row > *:not(:first-child) { margin-left: 8px; }
#filter .filter-item .row > *:not(:last-child) { margin-right: 8px; }

#filter .filter-item .item {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
	
	-webkit-align-items: center;
	align-items: center;
	
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	color: #3c3546;
}
#filter .filter-item .item:first-child { margin-top: 5px; }
#filter .filter-item .item .cancel {
	display: block;
	
	width: 11px;
	height: 11px;
	
	-webkit-flex-grow: 0;
	flex-grow: 0;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	opacity: 0.75;
	background: url('/images/crm-icons.png') no-repeat 0 -107px;

	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
}
#filter .filter-item .item .cancel:hover { opacity: 1; }
@media screen and (max-width: 1200px){
	#filter .filter-content {
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
	}
}



/* - - - GROUP ACTIONS - - - */
#group_actions {
	display: none;

	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	margin-top: 5px;
	margin-bottom: 5px;
}
#group_actions .center {
	display: -webkit-flex;
	display: flex;
}
#group_actions .button {
	display: block;
	position: relative;

	width: 30px;
	height: 30px;

	box-sizing: border-box;

	border: 1px solid #dbd8d4;

	-webkit-transition: background 0.2s;
	transition: background 0.2s;
}
#group_actions .button:hover { background: rgba(0, 0, 0, 0.1); }
#group_actions .button:not(:last-of-type) { border-right: 0; }
#group_actions .button .icon {
	position: absolute;

	width: 28px;
	height: 28px;

	top: 50%;
	left: 50%;

	margin-top: -14px;
	margin-left: -14px;

	background: url('/images/crm-icons.png') no-repeat 0 -129px;
}
#group_actions .button.delete .icon { background-position: 0 -129px; }
#group_actions .button.export .icon { background-position: 0 -157px; }
#group_actions .button.add_request_date .icon { background-position: 0 -185px; }

#group_actions .P-popup { z-index: 3; }

/* export */
#group_actions .P-popup.export { padding-left: 7px; padding-right: 7px; }
#group_actions .P-popup.export textarea {
	display: block;

	width: 650px;
	height: 280px;

	padding: 10px 12px;

	box-sizing: border-box;

	border: 1px solid #d9d9d9;
	border-radius: 3px;
}

/* export */
#group_actions .P-popup.add_request_date { max-width: 340px; }



/* - - - TABLE - - - */
#table {
	-webkit-flex-shrink: 1;
	flex-shrink: 1;
	-webkit-flex-grow: 1;
	flex-grow: 1;

	margin-top: 12px;
	margin-bottom: 5px;
}
#table table {
	width: 100%;
	table-layout: fixed;
}
#table table tr.template { display: none; }

#table th, #table td {
	position: relative;

	height: 26px;
	padding: 5px 5px;

	box-sizing: border-box;

	text-align: left;
	vertical-align: middle;
	font-size: 1.3rem;
	color: #3c3546;

	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;

	border: 1px solid #dbd8d4;
}
#table thead th { background: #efefef; }
#table thead .text {
	width: 100%;
	
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#table th .val, #table td .val {
	position: relative;
	overflow: hidden;
}

#table th[data-cell_type="edit"], #table td[data-cell_type="edit"] { width: 19px; }
#table th[data-cell_type="tick"], #table td[data-cell_type="tick"] { width: 16px; }
#table th[data-cell_type="name"], #table td[data-cell_type="name"] { width: 12%; }
#table th[data-cell_type="tel"], #table td[data-cell_type="tel"] { width: 110px; }
#table th[data-cell_type="email"], #table td[data-cell_type="email"] { width: 160px; }
#table th[data-cell_type="lang_english"], #table td[data-cell_type="lang_english"], #table th[data-cell_type="lang_german"], #table td[data-cell_type="lang_german"] { width: 20px; }
#table th[data-cell_type="area"], #table td[data-cell_type="area"] { width: 6%; }
#table th[data-cell_type="notes"], #table td[data-cell_type="notes"] { width: 24%; }
#table th[data-cell_type="from"], #table td[data-cell_type="from"] { width: 5%; }
#table th[data-cell_type="status"], #table td[data-cell_type="status"] { width: 5%; }
#table th[data-cell_type="customer"], #table td[data-cell_type="customer"] { width: 7%; }
#table th[data-cell_type="requests"], #table td[data-cell_type="requests"] { width: 8%; }
#table th[data-cell_type="will_be_actual"], #table td[data-cell_type="will_be_actual"] { width: 6%; }
#table th[data-cell_type="contact"], #table td[data-cell_type="contact"] { width: 7%; }


#table tbody th[data-cell_type="from"], #table tbody td[data-cell_type="from"] { font-size: 1.1rem; }
#table tbody th[data-cell_type="status"], #table tbody td[data-cell_type="status"] { font-size: 1.1rem; }


#table tr[data-status="Keresni kell!"]{ background: #FFD4F9; }
#table tr[data-status="Partnernél van"]{ background: #ECECEC; }
#table tr[data-status="Ne keressük!"]{ background: #ECECEC; }
#table tr[data-status="Továbbítottuk"]{ background: #B2E0FA; }
#table tr[data-status="Nálunk járt"]{ background: #B2E0FA; }
#table tr[data-status="Ügyfélinterjún járt"]{ background: #C8FFB2; }
#table tr[data-status="Elhelyezve"]{ background: #FFBABA; }
#table tr[data-status="Elutasítva"]{ background: #FFD59D; }


/* edit */
#table thead th[data-cell_type="edit"], #table thead td[data-cell_type="edit"] { border-left: 0; border-top: 0; }
#table tbody th[data-cell_type="edit"], #table tbody td[data-cell_type="edit"] {
	padding: 2px;
	
	text-align: center;
	
	background: #fff;
	cursor: pointer;
}
#table tbody th[data-cell_type="edit"] .icon, #table tbody td[data-cell_type="edit"] .icon {
	display: inline-block;
	
	width: 15px;
	height: 15px;
	
	background: url('/images/crm-icons.png') no-repeat -36px -129px;
	
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	
	opacity: 0.2;
}
#table tbody tr:hover th[data-cell_type="edit"] .icon, #table tbody tr:hover td[data-cell_type="edit"] .icon {
	opacity: 1;
	
	-webkit-transition: none;
	transition: none;
}


/* tick */
#table th[data-cell_type="tick"], #table td[data-cell_type="tick"] {
	position: relative;
	
	background: #fff;
	cursor: pointer;
}
#table th[data-cell_type="tick"] .tick, #table td[data-cell_type="tick"] .tick {
	position: absolute;

	left: 50%;
	top: 50%;

	margin-left: -4.5px;
	margin-top: -3px;

	width: 7px;
	height: 6px;

	background: url('/images/crm-icons.png') no-repeat -11px -114px;

	-webkit-transform: scale(0);
	transform: scale(0);
}
#table tr.selected th[data-cell_type="tick"] .tick, #table tr.selected td[data-cell_type="tick"] .tick { -webkit-transform: scale(1); transform: scale(1); }


/* name */
#table th[data-cell_type="name"] .content, #table td[data-cell_type="name"] .content {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;
}
#table th[data-cell_type="name"] .val, #table td[data-cell_type="name"] .val {
	-webkit-flex-grow: 1;
	flex-grow: 1;

	white-space: normal;
}
#table th[data-cell_type="name"] .social_icons, #table td[data-cell_type="name"] .social_icons {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: flex-end;
	justify-content: flex-end;
}
#table th[data-cell_type="name"] .social_icons .icon, #table td[data-cell_type="name"] .social_icons .icon {
	display: none;

	width: 17px;
	height: 17px;

	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	margin: 0 2px;

	background: url('/images/crm-icons.png') no-repeat 0 0;
}
#table th[data-cell_type="name"] .social_icons .icon:first-child, #table td[data-cell_type="name"] .social_icons .icon:first-child { margin-left: 0; }
#table th[data-cell_type="name"] .social_icons .icon:last-child, #table td[data-cell_type="name"] .social_icons .icon:last-child { margin-right: 0; }
#table th[data-cell_type="name"] .social_icons .icon[data-type="linkedin"][href], #table td[data-cell_type="name"] .social_icons .icon[data-type="linkedin"][href] { display: block; }
#table th[data-cell_type="name"] .social_icons .icon[data-type="cv"][href], #table td[data-cell_type="name"] .social_icons .icon[data-type="cv"][href] { display: block; }
#table th[data-cell_type="name"] .social_icons .icon[data-type="linkedin"], #table td[data-cell_type="name"] .social_icons .icon[data-type="linkedin"] { background-position: 0 -241px; }
#table th[data-cell_type="name"] .social_icons .icon[data-type="cv"], #table td[data-cell_type="name"] .social_icons .icon[data-type="cv"] { background-position: -17px -241px; }


/* lists */
#table table ul {
	display: -webkit-flex;
	display: flex;

	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;

	list-style: none;
}
#table table li {
	display: block;
	position: relative;

	padding: 0px 3px;
	margin: 2px;

	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;

	white-space: normal;
	word-break: break-word;
	word-wrap: break-word;
	
	font-size: 1.2rem;
}


/* select */
#table th.select, #table td.select { padding: 0; }
#table table select.val {
	display: block;

	width: 100%;
	height: 100%;

	box-sizing: border-box;

	padding: 5px 10px;

	cursor: pointer;
	background: transparent;
}


/* lang */
#table th[data-cell_type="lang_english"], #table td[data-cell_type="lang_english"], #table th[data-cell_type="lang_german"], #table td[data-cell_type="lang_german"] {
	padding-left: 2px;
	padding-right: 2px;

	text-align: center;
}
#table th[data-cell_type="lang_english"] select, #table td[data-cell_type="lang_english"] select, #table th[data-cell_type="lang_german"] select, #table td[data-cell_type="lang_german"] select {
	appearance:button;
	-moz-appearance:button;
	-webkit-appearance:button;

	padding-left: 0;
	padding-right: 0;

	text-align: center;
}


/* notes */
#table th[data-cell_type="notes"] .content, #table td[data-cell_type="notes"] .content {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	-webkit-align-items: center;
	align-items: center;
}
#table th[data-cell_type="notes"] .text_container, #table td[data-cell_type="notes"] .text_container {
	-webkit-flex-grow: 1;
	flex-grow: 1;

	overflow: hidden;
	text-overflow: ellipsis;
}
#table th[data-cell_type="notes"] .val, #table td[data-cell_type="notes"] .val {
	display: inline;
	white-space: nowrap;
}
#table th[data-cell_type="notes"] .note, #table td[data-cell_type="notes"] .note {
	display: block;
	margin-bottom: 10px;
}
#table th[data-cell_type="notes"] .note:last-child, #table td[data-cell_type="notes"] .note:last-child { margin-bottom: 0; }
#table th[data-cell_type="notes"] .note_content, #table td[data-cell_type="notes"] .note_content {
	display: inline-block;
	margin-right: 5px;
}
#table th[data-cell_type="notes"] .note_details, #table td[data-cell_type="notes"] .note_details {
	display: inline-block;
	
	color: rgba(0, 0, 0, 0.5);
	font-style: italic;
}
#table th[data-cell_type="notes"] .note_contact, #table td[data-cell_type="notes"] .note_contact { display: inline-block; }
#table th[data-cell_type="notes"] .toggle_show_all, #table td[data-cell_type="notes"] .toggle_show_all {
	display: block;

	width: 20px;
	height: 15px;

	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	margin-left: 12px;

	background: url('/images/crm-icons.png') no-repeat -28px -114px;
}
#table th[data-cell_type="notes"]:not(.overflow) .toggle_show_all, #table td[data-cell_type="notes"]:not(.overflow) .toggle_show_all { display: none; }
#table th[data-cell_type="notes"].show_all .val, #table td[data-cell_type="notes"].show_all .val { white-space: normal; }
#table th[data-cell_type="notes"].show_all .toggle_show_all, #table td[data-cell_type="notes"].show_all .toggle_show_all { -webkit-transform: rotate(90deg); transform: rotate(90deg); }

#table th[data-cell_type="notes"].focus .toggle_show_all, #table td[data-cell_type="notes"].focus .toggle_show_all { display: none; }
#table th[data-cell_type="notes"].focus .val, #table td[data-cell_type="notes"].focus .val { white-space: normal; }
#table th[data-cell_type="notes"]:not(.focus):not(.show_all) br, #table td[data-cell_type="notes"]:not(.focus):not(.show_all) br { display: none; }


/* requests */
#table th[data-cell_type="requests"] .content, #table td[data-cell_type="requests"] .content {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	-webkit-align-items: center;
	align-items: center;
}
#table th[data-cell_type="requests"] ul, #table td[data-cell_type="requests"] ul {
	width: 100%;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#table th[data-cell_type="requests"] li:not(.template), #table td[data-cell_type="requests"] li:not(.template) {
	width: 100%;

}
#table th[data-cell_type="requests"]:not(.show_all) li:not(:first-child), #table td[data-cell_type="requests"]:not(.show_all) li:not(:first-child) { display: none; }
#table th[data-cell_type="requests"] .toggle_show_all, #table td[data-cell_type="requests"] .toggle_show_all {
	display: block;

	width: 15px;
	height: 10px;

	margin-left: 5px;

	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	background: url('/images/crm-icons.png') no-repeat 0 -97px;
}
#table th[data-cell_type="requests"].show_all .toggle_show_all, #table td[data-cell_type="requests"].show_all .toggle_show_all { -webkit-transform: rotate(90deg); transform: rotate(90deg); }

#table th[data-cell_type="requests"] li, #table td[data-cell_type="requests"] li {
	padding: 0;
	margin: 0;
	
	background: none;
	border: 0;
	
	font-size: 1.3rem;
}



/* - - - FOOTER - - - */
#footer {
	display: block;

	margin-top: 20px;
	padding: 6px 0;

	-webkit-flex-grow: 0;
	flex-grow: 0;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	background: #58466a;
}
#footer .center {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	-webkit-align-items: center;
	align-items: center;
}
#footer .footer-part {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}

/* footer / paging */
#paging {
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: center;
	justify-content: center;

	-webkit-align-items: center;
	align-items: center;
}
#paging .button {
	display: block;

	width: 18px;
	height: 18px;

	margin: 0 6px;

	background: url('/images/crm-icons.png') no-repeat 0 -66px;

	opacity: 0.75;

	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
}
#paging .button:hover { opacity: 1; }
#paging .button.prev { background-position: 0 -66px; }
#paging .button.next { background-position: -18px -66px; }
#paging input {
	display: block;

	width: 30px;
	height: 17px;

	margin: 0 6px;
	padding: 0 5px;

	background: #fff;
	border-radius: 2px;

	font-size: 1.5rem;
	text-align: center;
}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }


/* footer / num rows */
#result_num_rows {
	text-align: right;
	font-size: 1.4rem;
	color: #AFA2BD;
}
#result_num_rows strong {
	font-weight: normal;
	color: #fff;
}


/* RECORD VIEW */
#record_view {
	display: none;
	position: absolute;
	
	top: 0;
	left: 0;
	
	width: 100%;
	height: 100%;
	
	box-sizing: border-box;
	
	padding: 0 15px;
	
	font-size: 1.25rem;
	
	z-index: 300;
}
#record_view .popup-bg {
	position: fixed;
	
	width: 100%;
	height: 100%;
	
	top: 0;
	left: 0;
	
	background: rgba(0, 0, 0, 0.7);
}
#record_view .popup-window {
	position: relative;
	
	width: 100%;
	max-width: 680px;
	
	box-sizing: border-box;
	
	padding: 25px 17px 17px 0;
	margin: 120px auto 0 auto;
	
	background: #efefef;
	border-radius: 9px
}

#record_view .error {
	display: none;
	
	padding: 7px 10px;
	margin-bottom: 12px;
	
	background: #FC5D5D;
	border-radius: 4px;
	
	text-align: center;
	color: #FFF;
}

/* tabok */
#record_view .popup_window-tabs {
	display: -webkit-flex;
	display: flex;
}
#record_view .popup_window-tab_buttons {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 35px;
	
	margin-right: 24px;
}
#record_view .popup_window-tab_buttons .tab {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	-webkit-align-items: center;
	align-items: center;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 35px;
	height: 38px;
	
	margin-bottom: 6px;
	
	border-radius: 0;
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
	
	background: #cccccc;
}
#record_view .popup_window-tab_buttons .tab:not(.selected):hover { background-color: #D7D7D7; }
#record_view .popup_window-tab_buttons .tab.selected { background-color: #4d3b5e; }
#record_view .popup_window-tab_buttons .tab .tab_icon {
	width: 18px;
	height: 18px;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	background: url('/images/record_view.png') no-repeat 0 0;
}
#record_view .popup_window-tab_buttons .tab[data-tab="info"] .tab_icon { background-position: 0 -154px; }
#record_view .popup_window-tab_buttons .tab[data-tab="forward"] .tab_icon { background-position: 0 -172px; }
#record_view .popup_window-tab_buttons .tab[data-tab="job_info"] .tab_icon { background-position: 0 -190px; }
#record_view .popup_window-tab_buttons .tab.selected[data-tab="info"] .tab_icon { background-position: -18px -154px; }
#record_view .popup_window-tab_buttons .tab.selected[data-tab="forward"] .tab_icon { background-position: -18px -172px; }
#record_view .popup_window-tab_buttons .tab.selected[data-tab="job_info"] .tab_icon { background-position: -18px -190px; }

#record_view .popup_window-tab_content {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}

#record_view .popup_window-tab_page {
	display: none;
	min-height: 350px;
}
#record_view .popup_window-tab_page.selected { display: block; }


/* struktúra */
#record_view h2 {
	margin-bottom: 15px;
	font-size: 2rem;
}
#record_view .columns {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
}
#record_view .column {
	width: 50%;
	
	margin: 0 18px;
	
	-webkit-flex-grow: 1;
	flex-grow: 1;
}
#record_view .column:first-child { margin-left: 0; }
#record_view .column:last-child { margin-right: 0; }
#record_view .row {
	display: -webkit-flex;
	display: flex;
	
	-webkit-align-items: center;
	align-items: center;
	
	margin-bottom: 8px;
}
#record_view .row.notes { -webkit-align-items: flex-start; align-items: flex-start; }

/* ikonok */
#record_view .icon {
	display: block;
	
	width: 22px;
	height: 22px;
	
	margin-top: 2px;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	background: url('/images/record_view.png') no-repeat 0 0;
}
#record_view .row .icon { margin-right: 7px; }

#record_view .row.name .icon { background-position: 0 0; }
#record_view .row.area .icon { background-position: 0 -22px; }
#record_view .row.linkedin .icon { background-position: 0 -44px; }
#record_view .row.tel .icon { background-position: 0 -66px; }
#record_view .row.from .icon { background-position: 0 -88px; }
#record_view .row.notes .icon { background-position: 0 -110px; }
#record_view .row.job_info .icon { background-position: 0 -132px; }

#record_view .row.email .icon { background-position: -22px 0; }
#record_view .row.customer .icon { background-position: -22px -22px; }
#record_view .row.cv .icon { background-position: -22px -44px; }
#record_view .row.lang_english .icon { background-position: -22px -66px; }
#record_view .row.lang_german .icon { background-position: -22px -88px; }
#record_view .row.status .icon { background-position: -22px -110px; }
#record_view .row.contact .icon { background-position: -22px -132px; }

#record_view .row.requests .icon { background-position: -44px 0; }
#record_view .row.will_be_actual .icon { width: 25px; background-position: -44px -22px; }

/* inputok */
#record_view .label {
	margin: 0 8px;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
#record_view .label:first-child { margin-left: 0; }
#record_view .label:last-child { margin-right: 0; }
#record_view input, #record_view select, #record_view textarea, #record_view ul[data-multiselect] {
	display: block;
	
	height: 26px;
	min-height: 26px;
	
	padding: 0 8px;
	
	box-sizing: border-box;
	
	border: 1px solid #dbd8d4;
	background: #fff;
	
	font-size: 1.3rem;
	color: #3c3546;
	
	-webkit-transition: background 0.3s, border 0.3s, box-shadow 0.3s;
	transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}
#record_view .column input, #record_view .column select, #record_view .column textarea, #record_view .column ul[data-multiselect] { width: 100%; }
#record_view input[type="date"] { min-width: 130px; }
#record_view.disabled input, #record_view.disabled select, #record_view.disabled textarea, #record_view.disabled ul[data-multiselect] {
	pointer-events: none;
	cursor: default;
}
#record_view .row input.invalid, #record_view .row select.invalid, #record_view .row textarea.invalid, #record_view .row ul[data-multiselect].invalid {
	border: 1px solid #E27272;
	box-shadow: 0 0 3px #E27272;
}
#record_view .row input.invalid, #record_view .row select.invalid, #record_view .row textarea.invalid { background: #FFE5E5; }
#record_view textarea {
	height: 100px;
	
	padding-top: 4px;
	padding-bottom: 4px;
	
	resize: vertical;
}
#record_view select { cursor: pointer; }

/* multiselect */
#record_view ul[data-multiselect] {
	display: -webkit-flex;
	display: flex;

	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;

	list-style: none;
	
	height: auto;
	padding-left: 1px;
	
	font-size: 1.2rem;
}
#record_view ul[data-multiselect] li {
	display: block;
	position: relative;

	padding: 0px 3px;
	margin: 2px;

	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;

	white-space: normal;
}
#record_view ul[data-multiselect] li.invalid {
	background: #FFD2D2;
	border-color: #EC8787;
}
#record_view ul[data-multiselect] li .val { min-width: 2px; }
#record_view ul[data-multiselect] li.template { display: none; }
#record_view ul[data-multiselect] li.new {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	-webkit-flex-grow: 0;
	flex-grow: 0;

	cursor: pointer;
	font-weight: bold;
}

/*  multiitem */
#record_view a[data-multiitem="remove"]{
	display: block;
	
	width: 13px;
	height: 13px;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	margin-left: 10px;
	
	background: url('/images/record_view.png') no-repeat -44px -154px;
	
	opacity: 0.5;
}
#record_view a[data-multiitem="remove"]:hover { opacity: 1; }
#record_view a[data-multiitem="add"] {
	display: -webkit-inline-flex;
	display: inline-flex;
	
	-webkit-align-items: center;
	align-items: center;
	
	margin-top: 15px;
	
	background: #dbd8d4;
	
	border-radius: 2px;
	
	font-size: 12px;
	text-transform: uppercase;
	color: #4d3b5e;
}
#record_view a[data-multiitem="add"] .add_icon {
	width: 20px;
	height: 20px;
	
	background: #4d3b5e;
	
	text-align: center;
	font-size: 18px;
	color: #fff;
	line-height: 1.15;
	
	border-radius: inherit;
}
#record_view a[data-multiitem="add"] .add_text { padding: 0 8px; }
#record_view a[data-multiitem="add"]:hover { background: #C8C8C8; }


/* autocomplete */
#record_view ul[data-multiselect] .autocomplete {
	position: absolute;

	top: 100%;
	right: 0;

	margin-top: 8px;

	background: #FFF;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);

	z-index: 1;
}
#record_view ul[data-multiselect] .autocomplete a {
	display: block;
	padding: 6px 10px;
}
#record_view ul[data-multiselect] .autocomplete a:hover { background: #F1E4FF }
#record_view ul[data-multiselect] .autocomplete a.selected {
	background: #705A86;
	color: #FFF;
}


/* nyelv */
#record_view .languages {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
}
#record_view .languages .row {
	margin: 0 10px;
	
	-webkit-flex-grow: 1;
	flex-grow: 1;
}
#record_view .languages .row:first-child { margin-left: 0; }
#record_view .languages .row:last-child { margin-right: 0; }


/* notes */
#record_view .notes_container { width: 100%; } 
#record_view .notes { width: 100%; }
#record_view .notes .notes_entry {
	display: -webkit-flex;
	display: flex;
	
	width: 100%;
	margin-bottom: 9px;
}
#record_view .notes .notes_entry:last-child { margin-bottom: 0; }
#record_view .notes .notes_entry textarea {
	-webkit-flex-grow: 1;
	flex-grow: 1;
	
	height: auto;
	min-height: 0;
}
#record_view .notes .notes_entry .notes_details {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 130px;
	margin-left: 6px;
}
#record_view .notes .notes_entry .notes_details input { margin-bottom: 8px; }
#record_view .notes .notes_entry
#record_view .notes .notes_entry
#record_view .notes .notes_entry
#record_view .notes .notes_entry {}


/* button */
#record_view .action {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
	
	margin-top: 20px;
}
#record_view button {
	display: block;
	
	min-width: 60px;
	height: 25px;

	padding: 0 4px;
	margin: 0 3px;

	background: #4d3b5e;
	border-radius: 4px;

	text-align: center;
	font-size: 1.4rem;
	color: #fff;

	cursor: pointer;

	-webkit-transition: background 0.2s;
	transition: background 0.2s;
}
#record_view:not(.disabled) button:hover { background: #6C5880; }
#record_view.disabled button {
	cursor: default;
	background: #808080;
}

@media screen and (max-height: 800px){
	#record_view .popup-window { margin-top: 80px; }
}
@media screen and (max-height: 600px){
	#record_view .popup-window { margin-top: 20px; }
}
@media screen and (max-height: 500px){
	#record_view .popup_window-tab_page { min-height: 0; }
}



@media screen and (max-width: 600px){
	#record_view [data-multiitem="items"] .row {
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
	}
}
@media screen and (max-width: 550px){
	#record_view .columns { display: block; }
	#record_view .column {
		width: 100%;
		margin: 0;
	}
}
@media screen and (max-width: 400px){
	#record_view .popup-window {
		padding-left: 17px;
		padding-top: 0;
	}
	#record_view .popup_window-tabs {
		-webkit-flex-direction: column;
		flex-direction: column;
	}
	#record_view .popup_window-tab_buttons {
		display: -webkit-flex;
		display: flex;
		
		width: auto;
		
		margin: 0;
		margin-bottom: 10px;
	}
	#record_view .popup_window-tab_buttons .tab {
		-webkit-flex-grow: 1;
		flex-grow: 1;
		
		margin: 0 2px;
		height: 30px;
		
		border-radius: 0;
		border-bottom-right-radius: 2px;
		border-bottom-left-radius: 2px;
	}
}



/* - - - TEMPLATES - - - */
#templates { display: none; }



/* - - - LOADING - - - */
#loading {
	position: fixed;
	
	width: 100%;
	height: 100%;
	
	top:0;
	left: 0;
	
	background: rgba(255, 255, 255, 0.8);
	
	z-index: 1000;
}
#loading .text {
	margin-top: 150px;
	
	font-size: 10rem;
	text-align: center;
	font-weight: 300;
}
@media screen and (max-width: 700px){
	#loading .text { font-size: 5rem; }
}




/* - - - RESPONSIVE - - - */
@media screen and (max-width: 800px){
	body { min-width: 0; }
	
	#table th[data-cell_type="name"] .social_icons, #table td[data-cell_type="name"] .social_icons { display: none; }
	#body .WA-table th[data-cell_type="edit"], #body .WA-table td[data-cell_type="edit"] { width: 40px; }
	
	#body .WA-table th[data-cell_type="area"], #body .WA-table td[data-cell_type="area"] { display: none; }
	#body .WA-table th[data-cell_type="notes"], #body .WA-table td[data-cell_type="notes"] { display: none; }
	#body .WA-table th[data-cell_type="from"], #body .WA-table td[data-cell_type="from"] { display: none; }
	#body .WA-table th[data-cell_type="status"], #body .WA-table td[data-cell_type="status"] { display: none; }
	#body .WA-table th[data-cell_type="customer"], #body .WA-table td[data-cell_type="customer"] { display: none; }
	#body .WA-table th[data-cell_type="requests"], #body .WA-table td[data-cell_type="requests"] { width: 105px; }
	#body .WA-table th[data-cell_type="will_be_actual"], #body .WA-table td[data-cell_type="will_be_actual"] { display: none; }
	#body .WA-table th[data-cell_type="contact"], #body .WA-table td[data-cell_type="contact"] { width: 14%; }
}

@media screen and (max-width: 750px){
	#body .WA-table th[data-cell_type="lang_english"],
	#body .WA-table td[data-cell_type="lang_english"],
	#body .WA-table th[data-cell_type="lang_german"],
	#body .WA-table td[data-cell_type="lang_german"]{
		display: none;
	}
}

@media screen and (max-width: 700px){
	#body .WA-table th[data-cell_type="requests"], #body .WA-table td[data-cell_type="requests"] { display: none; }
}

@media screen and (max-width: 550px){
	#group_actions { display: none !important; }
	#body .WA-table th[data-cell_type="tick"], #body .WA-table td[data-cell_type="tick"] { display: none; }
	#body .WA-table th[data-cell_type="contact"], #body .WA-table td[data-cell_type="contact"] { display: none; }
	
	#body .WA-table th[data-cell_type="name"], #body .WA-table td[data-cell_type="name"] { width: 35%; }
	#body .WA-table th[data-cell_type="email"], #body .WA-table td[data-cell_type="email"] { width: 25%; }
	#body .WA-table th[data-cell_type="tel"], #body .WA-table td[data-cell_type="tel"] { width: 25%; }
}
@media screen and (max-width: 400px){
	#table .center { padding-left: 0; padding-right: 0; }
	#table thead, #sticky_table_header, #sticky_table_header.visible { display: none; }
	#table tr {
		position: relative;
		display: block;
		
		padding: 0 15px;
		padding-bottom: 5px;
		padding-top: 7px;
		
		border-bottom: 1px solid #dbd8d4;
	}
	#body .WA-table th, #body .WA-table td{
		display: block;
		
		height: auto;
		white-space: normal;
		border: 0;
		
		padding: 0;
		margin: 0;
		margin-bottom: 2px;
		padding-left: 28px;
	}
	#body .WA-table th[data-cell_type], #body .WA-table td[data-cell_type]{ width: 100%; }
	#body .WA-table th[data-cell_type="name"], #body .WA-table td[data-cell_type="name"] {
		font-weight: bold;
		font-size: 1.4rem;
	}
	#body .WA-table th[data-cell_type="edit"], #body .WA-table td[data-cell_type="edit"] {
		position: absolute;
		
		width: 35px;
		height: 100%;
		
		top:0;
		left: 0;
		
		text-align: left;
		padding-left: 15px;
		padding-top: 10px;
		
		box-sizing: border-box;
		
		background: none;
		
		z-index: 1;
	}
}