@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic); /* 'Open Sans' */
@import url(https://fonts.googleapis.com/css?family=Raleway:400,400i,500,500i,600,600i,700,700i);

@import url('../fonts/fontawesome-pro-6/css/all.min.css');

/*------------------------------------*\
	VARIABLES
\*------------------------------------*/

.fancybox__container {
	--fancybox-color: #000 !important;
	--fancybox-bg: rgba(24, 24, 27, 0.5) !important;
	--fancybox-opacity: 0.5;
}

/*------------------------------------*\
	MAIN
\*------------------------------------*/

body {
	background: #fff;
	margin: 0;
	padding: 0;
	color: #000;
	font: small arial, helvetica, sans-serif;
	font: x-small/1.5em arial, helvetica, sans-serif;
	font-size: small;
}
html>body {
	font-size: small;
}
h1 {
	font: normal 21px/21px 'Raleway', Helvetica, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: -1px;
	color: #010101;
	margin: 0px;
	padding: 20px 0px 20px 20px;
	position: relative;
}

/*------------------------------------*\
	LOGOUT BUTTON
\*------------------------------------*/

#logout_button {
	position: absolute;
	top: 25px;
	right: 0;
	width: 90px;
}

/*------------------------------------*\
	TABS
\*------------------------------------*/

#header {
	display: block;
	position: relative;
	/*float: left;*/
	width: 100%;
	background: #ffffff;
	font-size: 93%;
	line-height: normal;
	margin-bottom: 30px;
}
#header ul {
	height: 34px;
	margin: 0px 0px 0px 0px;
	padding: 10px 10px 0px 0px;
	list-style: none;
	border-bottom: 1px solid #e2e2e2;
}
#header li {
	list-style: none;
	float: left;
	/* background: url("left.gif") no-repeat left top; */
	margin: 0px 0px 0px 4px;
	padding: 5px 0px 5px 10px;
	border-top: 1px solid #e2e2e2;
	border-left: 1px solid #e2e2e2;
	border-right: 1px solid #e2e2e2;
}
#header li#current {
	background: #ffffff;

}
#header a, #header strong, #header span {
	float: left;
	display: block;
	/* background: url("right.gif") no-repeat right top; */
	padding: 5px 15px 4px 6px;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: bold;
	color: #7d7d7d;
}
/* Commented Backslash Hack for IE5-Mac \*/
#header a {
	float: none;
}
/* End IE5-Mac hack */

#header a:hover {
	color: #333;
}
#header #current {
	/* background-image: url("left_on.gif"); */
}
#header #current a {
	/* background-image: url("right_on.gif"); */
	color: #333;
}

/*------------------------------------*\
	FORMS
\*------------------------------------*/

form {
    /*padding: 6px;*/
}

.datatable td {
    padding: 2px;
    font-size: 13px;
    font-weight: bold;
}

input, select, textarea {
    font-size: 13px;
    color: #000;
}

.area, .field, .textarea {
    background-color: #ffffff;
    width: 99%;
    border: 1px solid #AFB3A8;
}

.number {
    background-color: #ffffff;
    width: 87px;
    border: 1px solid #AFB3A8;
    text-align: right;
}

.listselect {
    background-color: #ffffff;
    border: 1px solid #AFB3A8;
}

label {
    display: inline-block;
    margin-right: 4px;
    padding: 2px;
    padding-left: 20px;
    background-position: 0px center;
    background-repeat: no-repeat;
    /*border: 2px solid #AFB3A8;*/
    clear: both;
    cursor: pointer
}

.checked {
    background-color: #DAE0D2;
    background-image: url(chk_on.png)
}

.unchecked {
    background-color: #DAE0D2;
    background-image: url(chk_off.png)
}

.button {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: #f2f2f2;
    border: 1px solid #e2e2e2;
    resize: none;
    margin: 0px 8px 0px 0px;
    padding: 10px 15px 10px 15px;
    cursor: pointer;
}
table#interactions_table .button {
	padding: 5px 15px 5px 15px;
}
table a.button:link,
table a.button:visited,
table a.button {
	display: inline-block;
	position: relative;
	width: auto;
	text-decoration: none;
	color: #000000;
	text-align: center;
}

table td.table_link a,
table td.table_link a:link,
table td.table_link a:visited {
	text-decoration: none;
	color: #000000;
}
a.button,
a.button:link,
a.button:visited {
	display: inline-block;
	position: relative;
	width: auto;
	text-decoration: none;
	color: #000000;
	text-align: center;
}
a.button:hover,
a.button:hover:link,
a.button:hover:visited {
	text-decoration: none;
	color: #000000;
	background-color: #e2e2e2;
}

td.table_functions {
	width: 5%;
	min-width: 80px;
}

input, select {
    padding: 4px 4px 4px 4px;	
}

/*------------------------------------*\
    BUTTONS
\*------------------------------------*/

.buttons {
	display: block;
	position: relative;
	margin-bottom: 30px;
	padding: 0px 30px;
}
.buttons a,
.buttons a:link,
.buttons a:visited {
	display: inline-block;
	position: relative;
	margin: 0px;
	padding: 10px 15px;
	background-color: #f2f2f2;
	border: 1px solid #e2e2e2;
	border-radius: 0;
	cursor: pointer;
	color: #000000;
	text-decoration: none;
}
.buttons a:hover,
.buttons a:hover:link,
.buttons a:hover:visited {
	background-color: #e2e2e2;
}

.buttons label {
	padding: 0px;
}

.buttons a.customer_new,
.buttons a.product_new {
	float: right;
}

.buttons div.user_select {
	display: inline-block;
	float: left;
}

/*------------------------------------*\
    FILTER
\*------------------------------------*/

.filter {
	display: block;
	position: relative;
	margin-bottom: 30px;
	padding: 0px 30px;
}

.filter label {
	padding: 0px;
}

/*------------------------------------*\
    SELECTS
\*------------------------------------*/

select {
	background-color: #f2f2f2;
	border: 1px solid #e2e2e2;
}

/*------------------------------------*\
    CENTER BLOCK
\*------------------------------------*/

.centered_block {
    width: 250px;
    height: 100px;
    margin: 0 auto;
    margin-top: 100px;
    text-align: center;
}

/*------------------------------------*\
    DATA FIELDS
\*------------------------------------*/

.data {
	padding: 0px 30px;
}

.data label {
	border: none;
	padding: 0px;
}

/*------------------------------------*\
    INPUT FIELDS
\*------------------------------------*/

.input_fields {
	display: block;
	position: relative;
	margin: 0px;
	padding: 30px;
	border: 1px solid #e2e2e2;
}

.input_fields table {
	display: block;
	position: relative;
	margin: 0px;
	padding: 0px;
	width: 100%;
}
.input_fields table tbody {
	display: block;
	position: relative;
	width: 100%;
}
.input_fields table tr {
	display: flex;
	position: relative;
}
.input_fields table tr td {
	display: flex;
	flex-direction: row;
	position: relative;
	float: left;
	margin: 0px;
	padding: 8px 0px;
}
.input_fields table tr:last-child td {
	display: block;
}
.input_fields table tr td:first-child {
	width: 100px;
}
.input_fields table tr td:last-child {
	width: calc(100% - 100px);
}
.input_fields table tr:last-child td {
	width: 100%;
	/*text-align: right;*/
}

.input_fields table tr td input[type="submit"] {
	position: relative;
	float: right;
	margin: 0px;
	padding: 10px 15px;
	background-color: #f2f2f2;
	border: 1px solid #e2e2e2;
	border-radius: 0;
	cursor: pointer;
	color: #000000;
	text-decoration: none;
}
.input_fields table tr td a.button_new_contact {
	left: 50%;
	transform: translateX(calc(-50% - 96px));
}

.input_fields label {
	display: block;
	position: relative;
	margin: 0px;
	padding: 8px 0px;
	background: none;
	border: none;
}

.input_fields input[type="text"] {
	display: block;
	position: relative;
	margin: 0px;
	padding: 8px;
	width: 100%;
}

input.contact_input {
	display: inline-block !important;
	float: left !important;
	width: 20% !important;
}

div.price {
	width: 150px;
}
div.price input#price {
	width: calc(100% - 30px);
	margin-top: 15px;
}

/*------------------------------------*\
    MULTISELECT
\*------------------------------------*/

.booked_select {
	display: block;
	position: relative;
	float: left;
	width: 25%;
}

div.booked_select label {
	display: block;
	position: relative;
	float: left;
	top: 50%;
	transform: translateY(25%);
	margin-left: 30px;
	margin-right: 0px;
	width: 150px;
}

.potential_select {
	display: block;
	position: relative;
	float: left;
	width: 25%;
}

div.potential_select label {
	display: block;
	position: relative;
	float: left;
	top: 50%;
	transform: translateY(25%);
	margin-left: 30px;
	margin-right: 0px;
	width: 150px;
}

.ms-options-wrap {
	float: left;
	width: calc(100% - 180px);
}

/*------------------------------------*\
    ROW
\*------------------------------------*/

.row {
	display: flex;
	position: relative;
	clear: both;
}
.row:not(:last-child) {
	margin-bottom: 20px;
}

.row.noflex {
	display: inline-block;
	width: 100%;
}

.clear_both {
	clear: both;
}

/*------------------------------------*\
    TD
\*------------------------------------*/

table#interactions_table tbody th,
table#interactions_table tbody td {
	padding: 4px 10px;
}

/*------------------------------------*\
    CUSTOMER
\*------------------------------------*/

.customer {
	display: block;
	position: relative;
	float: left;
	width: calc(33.333% - 50px);
	padding: 20px;
	margin-right: 10px;
	background: #f9f9f9;
}

.customer table td {
	vertical-align: top;
}

.customer table tr:not(:last-child) td {
	padding-bottom: 8px;
}

.customer table td.label {
	font-weight: bold;
	padding-right: 20px;
}

.customer table td a,
.customer table td a:link,
.customer table td a:visited {
	text-decoration: none;
	color: #000000;
}

/*------------------------------------*\
    CONTACTS
\*------------------------------------*/

.contacts {
	display: block;
	position: relative;
	float: left;
	width: calc(66.667% - 50px);
	padding: 20px;
	margin-left: 10px;
	background: #f9f9f9;
}

.contacts h2 {
	margin-top: 0px;
}

.contacts .contact a,
.contacts .contact a:link,
.contacts .contact a:visited {
	text-decoration: none;
	color: #000000;
}

/*------------------------------------*\
    POTENTIAL
\*------------------------------------*/

.potential {
	display: block;
	position: relative;
	width: 100%;
	padding: 20px;
	background: #f9f9f9;
}

/*------------------------------------*\
    INTERACTIONS
\*------------------------------------*/

div.new_interaction {
	display: inline-block;
	position: relative;
	width: 100%;
}

div.add_interaction {
	display: inline-block;
	position: relative;
	width: 100%;
	margin-bottom: 150px;
}

div.add_interaction a.button_save_interaction {
	display: none;
	float: right;
	margin-top: 30px;
}

div.new_interaction {
	display: none;
	margin-bottom: 30px;
}

div.new_interaction div.price {
	display: none;
}

div.new_interaction div:nth-child(1),
div.new_interaction div:nth-child(2) {
	display: inline-block;
	float: left;
	width: 200px;
}

div.new_interaction select {
	display: block;
	position: relative;
	margin: 0px 15px 0px 0px;
	width: 150px;
}

div.new_interaction select:not(:last-child) {
	margin-bottom: 15px;
}
div.new_interaction div.product_specifics div:not(:last-child) select {
	margin-bottom: 15px;
}

div.new_interaction select#product {
	display: none;
}

div.new_interaction textarea#interaction_note {
	display: inline-block;
	position: relative;
	float: left;
	margin: 0px 0px 0px 15px;
	width: calc(100% - 223px);
}

/*------------------------------------*\
    LISTS
\*------------------------------------*/

ul {
	list-style: none;
	margin: 20px 0px 20px 0px;
	padding: 0px 0px 0px 0px;
}

ul li {
	list-style: none;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: relative;
}

ul li.booking {
	color: #cc0f0f;
}

/*------------------------------------*\
    INTERACTION EDIT
\*------------------------------------*/

div.interactions a.interaction_edit,
div.interactions a.interaction_edit:link,
div.interactions a.interaction_edit:visited {
	color: inherit;
	text-decoration: none;
}

div.input_fields table#interaction tr.product_row {
	display: none;
}
div.input_fields table#interaction tr.product_row.active {
	display: inline-block;
}

/*------------------------------------*\
    MISC
\*------------------------------------*/

div.clear_both {
	clear: both;
}
/* Sortier-Pfeile von DataTables links vor den Spaltennamen */
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting_asc_disabled,
table.dataTable thead > tr > th.sorting_desc_disabled {
    padding-left: 20px !important;
    padding-right: 10px !important;
}
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:before,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:before,
table.dataTable thead > tr > th.sorting_desc_disabled:after {
    right: auto !important;
    left: 4px !important;
}

/* Suchfeld nach links, Stadt-Filter nach rechts in dieselbe Zeile */
.dataTables_wrapper .dataTables_filter {
    float: left !important;
    text-align: left !important;
    margin-bottom: 10px;
}
.dataTables_wrapper .dataTables_length {
    float: left !important;
    margin-right: 16px;
}


/* Abstand für Stadt-Filter in der oberen Zeile */
.city_select {
    margin-left: 30px;
}
