div.contact {background:#f4e9f2; padding:8px; margin-bottom:6px;border: 1px solid #d7d7d7;}
div.deal {background:#edfff2; padding:8px; margin-bottom:6px;border: 1px solid #d7d7d7;}
form#add_issue_form {background:#ffffff; display: block; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7; width: 92%;}

.inline-flex {display: inline-flex;} /* TODO delete after Redmine > 4.2 */
body.controller-issues h2.inline-flex {padding-right: 0} /* #TODO delete after Redmine > 4.2 */

/**********************************************************************/
/* CONTACTS COMMON
/**********************************************************************/
span.contact {display: inline-block;}

/********************/
/* CONTACT ISSUES		*/
/********************/

#contact_issues img.gravatar {
  vertical-align: middle;
  margin-left: 5px;
}

div.contact-issues {
	margin-right: 4px;
}

div.contact-issues  td.done_checkbox {
	width: 10px;
	vertical-align: top;
	padding-top: 4px;
}

div.contact-issues  td.issue_subject {
  vertical-align: top;
  width: 100%;
}

table.list.issue td.contacts img.gravatar{
  vertical-align: middle;
  margin: 0 4px 2px 0;
}

div.contact-issues h3 a {
	color: inherit;
}

#contacts_for_issue {height: 200px; overflow:auto;}
#contacts_for_issue label {display: block;}
input#contact_search{width:90%;}


/********************/
/*		ADD NOTE FORM		*/
/********************/

div.add-note {margin-left: 5px;  margin-right: 6px; margin-bottom: 20px;}
div.add-note p {margin-bottom: 0px; margin-top: 5px;}
.note-custom-fields label {margin-right: 10px;}

/*div#contact_list table.index tbody tr:hover { background-color:#ffffdd; } */

div#sidebar div.contextual {
	margin-right: 8px;
}


/* note-data*/

span.note-info {
	font-size: 11px;
	margin: 0px;
	padding: 0px;
	line-height: 1.5;
	color: rgb(119, 119, 119);
}

.crm.details {
  display: flex;
  justify-content: space-between;
}

.crm.details .subject_info {
  border-left: 1px solid #d0d7de;
  display: flex;
}

.crm.details .subject_info ul {
  padding: 0 15px;
}

.crm.details .subject_header {
  display: flex;
  align-items: start;
  column-gap: 10px;
}

.crm.details .subject_header .avatar {
  background-color: #fff;
}

.crm.details .subject_header h3,
.crm.details .subject_header h2,
.crm.details .subject_header h1 {
  margin: 0px;
}

.deal.crm.details {
  flex-direction: column;
}

.deal.crm.details .deal_info {
  display: flex;
  align-items: start;
  justify-content: space-between;  
}


h4.contacts_header {border-bottom: 0px;}

div.details .subject_info li {
	display: block;
  white-space: nowrap;
}

/********************/
/*		Search		*/
/********************/
h2.contacts_header {border-bottom: 0px;}

div.filters h2 {margin-bottom: 5px;}
div.filters h2 .scope_title a { color: #444; text-decoration: none; }
div.filters h2 .scope_title a:hover { text-decoration: none; display: inline; color: #aaa;}

div.filters .tags span.tag-label-color a { line-height: 0; }

div.search_and_filters { margin-bottom: 10px; }

div.live_search  { font-size: 16px; }

div.filters .live_search {position:relative;}

.live_search input.live_search_field { font-size: 16px; }

input#search:focus::-webkit-input-placeholder {	color: lightgray;}
input#search:focus:-moz-placeholder {	color: lightgray;}


/**************************************************************/
/*                  					TAGS 	  												*/
/**************************************************************/

.tag_list {
  margin-top: 5px;
  display: inline-block;
}

span.tag-label-color {
  background-color: #759FCF;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 2px 4px;
  display: inline-block;
  font-size: 10px;
  margin: 0px 0px 5px 2px;
}

.tag-label .tag-count,
.tag-label-color .tag-count {
	font-size: .75em;
	margin-left: .5em;
}

span.tag-label-color:hover {
  background-color: #9DB9D5;
}

span.tag-label-color a, .tags .tag_list .tag-label-color a, span.tag-label-color > span {
  text-decoration: none;
  font-family: Verdana, sans-serif;
  font-weight: normal;
  color: white;
}

#edit_tags_form.box {
	margin: 1px 5px 0px 0px;
}

#edit_tags_form.box label {
	margin-right: 5px;
	font-weight: bold;
}

#edit_tags_form.box #contact_tags {
	margin-bottom: 10px;
}

div#tags_data span.contextual {float: none; padding-left: 0px;}
#tags_data:hover #edit_tags_link {opacity: 1;}
#edit_tags_link {opacity: 0;}

span.tag-label, span.tag-input {
	display: inline-block;
}

#responsible_user ul {margin: 0;  padding: 0;}
#responsible_user li {list-style-type:none; margin: 3px 2px 0px 0px; padding: 0px 0px 0px 0px;}
#responsible_user select {width: 95%; display: block;}
#responsible_user a.delete {opacity: 0.4; margin-left: 5px;}
#responsible_user a.delete:hover {opacity: 1;}
#responsible_user img.gravatar {
  vertical-align: middle;margin: 0 4px 2px 0;
}

#edit_tags_form .contacts-tags-edit  ul.tagit {
  padding: 5px;
  margin: 2px;
}

/***** Badges *****/
.status-badge {
  position:relative;
  font-weight:bold;
  font-size: 10px;
  bottom: 2px;
  padding: 1px 3px;
  margin-right: 2px;
  margin-left: 2px;
  border-radius: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #aaa;
  line-height: 20px;
  white-space: nowrap;
}

.status-badge a {
	color: inherit;
	text-decoration: none;
}

.status-badge.editable {
	background: #fff url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgOSA5IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTAsMi4xNjJsNC41LDQuNDY5bDQuNSwtNC40NjkiIHN0cm9rZT0iI0E2QTZBNiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%;
	padding-right: 15px;
	background-position: right 2px center;
}

.status-badge:hover a {
    opacity: 0.5;
}

table.excerpt.index tr.context-menu-selection span.status-badge { border-color: #EFEFEF; color:#EFEFEF }

/* Edit tags Tag-it*/

.contacts-tags-edit  ul.tagit {
  border: 1px solid #d7d7d7;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  -khtml-border-radius: 0px;
  border-radius: 0px;
  background: white;
  padding: 0px;
  margin: 0px;
  line-height: 1.5em;
}

.contacts-tags-edit  ul.tagit li.tagit-choice {
  font-weight: normal;
  -moz-border-radius: 0px;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  font-size: 11px;
  color: inherit;
  padding-top: 0px;
  padding-bottom: 0px;
  background-color: #f7f7f7;
  margin: 1px;
}

.contacts-tags-edit  ul.tagit li.tagit-choice:hover, ul.tagit li.tagit-choice.remove {
  background-color: #e5e5e5;
  text-decoration: none;
  color: black;
}

.contacts-tags-edit  ul.tagit li.tagit-choice a.tagit-close {
  text-decoration: none;
}

.contacts-tags-edit  ul.tagit li.tagit-choice .tagit-close {
  right: .4em;
}

.contacts-tags-edit  ul.tagit li.tagit-choice .ui-icon {
  display: none;
}

.contacts-tags-edit  ul.tagit li.tagit-choice .tagit-close .text-icon{
  display: inline;
}

.contacts-tags-edit  ul.tagit li.tagit-choice .tagit-close .text-icon:hover {
  color: black;
}

.contacts-tags-edit  ul.tagit li.tagit-new input {
  font-size: 11px;
  background: white;
  margin-bottom: 2px;
  margin-left: 2px;
}

.contacts-tags-edit  ul.tagit li.tagit-new {
  padding: 0px;
}


/**************************************************************/
/*                   CONTACTS_TABLE_LIST														*/
/**************************************************************/

table.list.contacts td.id {
	padding-right: 6px;
	padding-left: 6px;
}

table.index tbody tr.group td {
	padding: 0.8em 0 0.5em 0.3em;
	font-weight: bold;
	border-bottom: 1px solid #CCC;
}

table.list.contacts tr td a {
	color: #666;
}

table.list.contacts td.name,
table.list td.emails,
table.list td.phones, {
	white-space: nowrap;
  color: inherit;
}

table.list td.address,
table.list td.tags,
table.list td.street1,
table.list td.street2,
table.list td.background {
  text-align: left;
}

table.list tr td.tags {white-space: normal;}

/**************************************************************/
/*                   TABLE LIST                               */
/**************************************************************/
table.list td.contact,
table.list td.contacts,
table.list td.deal {text-align: left; white-space: normal;}
table.list td.contact {text-align: left}
table.list td.address {text-align: left; white-space: normal;}

/**************************************************************/
/*                   CONTACTS_DEALS_LIST							  			*/
/**************************************************************/

table.excerpt.index {
	border-top: 1px solid rgb(239, 239, 239);
	border-right: 1px solid rgb(239, 239, 239);
	border-left: 1px solid rgb(239, 239, 239);
	width: 100%;
	border-spacing: 0px 0px;
	margin-bottom: 4px;
}

table.excerpt.index tr.selected{ background-color: #507AAA !important;	color: #F8F8F8 !important;}
/*table.contacts.index tr.selected a { color: #F8F8F8 !important; } */
table.excerpt.index tr.context-menu-selection h2 { color: #F8F8F8 !important; }
table.excerpt.index tr.context-menu-selection td { color: #F8F8F8 !important; }
table.excerpt.index tr.context-menu-selection span.tag-label-color { border: 1px solid #EFEFEF; padding: 2px 3px; }
table.excerpt.index tbody tr:hover { background-color:#ffffdd; }

table.excerpt.index td {
  vertical-align: top;
  color: #666;
  padding: 8px 0;
  border-bottom: 1px solid #efefef;
}

table.excerpt.index td.checkbox { padding: 12px 0px 0px 5px; }
table.excerpt.index td.name { width: 50%; padding-right: 10px;}
table.excerpt.index td.info { width: 50%; padding-right: 5px; }
table.excerpt.index td.avatar {padding: 10px 10px 10px 5px;}
table.excerpt.index th {padding: 5px 10px 5px 0px; border-bottom: 1px solid #efefef; vertical-align: top;}
table.excerpt.index th.title {text-align: right;}
table.excerpt.index th.sum {text-align: right;}

table.excerpt.deals.index td.avatar {padding: 10px 10px 10px 10px;}
table.deals.excerpt td.info.deal-info {
    white-space: nowrap;
    text-align: right;
    padding-right: 10px;
}

/*table.contacts.index td.avatar {margin-left: 50px;}*/

table.excerpt.index td.name h1 {	font-size: 20px; font-weight: normal;
	margin: 0;
	padding: 0;
}

table.deals.index.excerpt td.status {
  padding: 13px 5px 0px 10px;
}

table.excerpt.index td.name h3 {	
	margin: 0;
	padding: 0;
}

table.excerpt.index td.name a {
  color: inherit;
}

table.excerpt.index td.name div.header {
  font-weight: bold;
}

table.excerpt.index td.name h1.selected { background-color: #ffb;}
table.excerpt.index td.name h2.selected { background-color: #ffb;}

table.excerpt.index td.name h2 {
	font-size: 13px;
	color: #777;
	font-weight: normal;
	line-height: 140%;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
}

div.Right td.name div.info {
	padding-top: 3px;
	margin-left: 42px;
}
/*#edit_tags_form {display: block;	margin-top: 10px;}*/
.notes div.contextual {vertical-align: top;}

/*Deals*/

div#deal-status {
	margin-top: 4px;
}

div.deal-sum {
	margin-bottom: 4px;
}

table.related_deals td.name h4 { letter-spacing: -1px; margin: 0px 0 4px 0; padding: 0; line-height: 1.1em;}

div#deal-status span.contextual {float: none; padding-left: 0px;}


/**********************************************************************/
/* DEAL LIST
/**********************************************************************/

.deal_list table.list  tr.deal a {color: #666;}
.deal_list table.list td.name {text-align: left; white-space: normal}
.deal_list table.list th.sum.deals-sum { text-align: right; white-space: nowrap; width: 10%;}

/* lost */
.deal_list tr.odd.status-type-2, .deal_list table.list tbody tr.odd.status-type-2:hover { color: #900; }
.deal_list tr.odd.status-type-2 { background: #FEE; }
.deal_list tr.even.status-type-2, .deal_list table.list tbody tr.even.status-type-2:hover { color: #900; }
.deal_list tr.even.status-type-2 { background: #FFF2F2; }
.deal_list tr.status-type-2 a { color: #900; }
.deal_list tr.odd.status-type-2 td, .deal_list tr.even.status-type-2 td { border-color: #FCC;}

/* won */
.deal_list tr.odd.status-type-1, .deal_list table.list tbody tr.odd.status-type-1:hover { color: #005F00; }
.deal_list tr.odd.status-type-1 { background: #EBFEEB; }
.deal_list tr.even.status-type-1, .deal_list table.list tbody tr.even.status-type-1:hover { color: #005F00; }
.deal_list tr.even.status-type-1 { background: #DFFFDF; }
.deal_list tr.status-type-1 a { color: #005F00; }
.deal_list tr.odd.status-type-1 td, .deal_list tr.even.status-type-1 td { border-color: #9FCF9F; }

table.deals.index { margin-bottom: 0px;}
table.deals.total { border: 0px;}
table.deals.total th { border: 0px; white-space: nowrap;}
table.deals.total th.title { width: 100%;padding-right: 10px;}

/**********************************************************************/
/* DEALS BOARD
/**********************************************************************/
.deal_list table.list.deal-board tbody tr,
.deal_list table.list.deal-board tbody tr:hover {background-color: white;}
.deal-board .deal-card,
.deal-board .sortable-placeholder {
	padding: 5px;
	border: solid 1px #d5d5d5;
	background-color: white;
	margin: 5px;
}
.deal-board .deal-card {background-color: #ffffdd;}
.deal-board .deal-status-col {text-align: left; white-space: normal;vertical-align: top}
.deal-board .avatar {float: left; margin-right: 5px;}
.deal-board p.name {
	margin-bottom: 5px;
	font-weight: bold;
}
.deal-board .info {
	border-top: 1px solid #d5d5d5;
	padding-top: 5px;
}
.deal-board td.deal-status-col.won .deal-card {background: #DFFFDF; border-color: #9FCF9F;}
.deal-board td.deal-status-col.lost .deal-card {background: #FEE; border-color: #FCC;}

.deal-board .sortable-placeholder {
  background-color: #E9F8FD;
  border: solid 1px #E9F8FD;
  height: 65px;
}

.deal-board .deal-card.ui-sortable-helper, .deal-board .deal-card.draggable-active {
  -moz-transform: rotate(5deg); /* Для Firefox */
  -ms-transform: rotate(5deg); /* Для IE */
  -webkit-transform: rotate(5deg); /* Для Safari, Chrome, iOS */
  -o-transform: rotate(5deg); /* Для Opera */
  transform: rotate(5deg);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
}

.deal-board .deal-card.draggable-active {
  width: 250px;
}

/**************************************************************/
/* 		                  ICONS
/**************************************************************/

#admin-menu a.contacts:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/vcard-466baedd.png");}

.icon-contact:not(:has(svg)) { background-image:  url("/assets/plugin_assets/redmine_contacts/vcard-466baedd.png"); }
.icon-import:not(:has(svg)) { background-image:  url("/assets/plugin_assets/redmine_contacts/bullet_go-21f1a721.png"); }
.icon-merge:not(:has(svg)) { background-image:  url("/assets/plugin_assets/redmine_contacts/arrow_merge-b4135406.png"); }

.icon-deal:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/target-3932bcd5.png"); }
.icon-add-deal:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/money-a55130df.png"); }
.icon-company-contact:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/user_suit-98b2d048.png"); }
.icon-link-break:not(:has(svg)) { background-image: url("/assets/link_break-36e48aab.png"); }
.icon-call:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/phone-c3912b07.png"); }
.icon-meeting:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/calendar_view_day-9f077e85.png"); }
.icon-vcard:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/vcard-466baedd.png"); }
.icon-phone:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/telephone-77780679.png"); }
.icon-email:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/email-3ce38470.png"); }

.icon-money-dollar:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/money_dollar-fa5a9df3.png"); }
.icon-rosette:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/rosette-28bf5fd1.png"); }
.icon-date:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/date-71848c9d.png"); }
.icon-clock-red:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/clock_red-5a918c21.png"); }
.icon-money-euro:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/money_euro-7233243f.png"); }
.icon-money-pound:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/money_pound-89ddc068.png"); }
.icon-money-yen:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_contacts/money_yen-cc41cd5b.png"); }
.icon-cf-value-add { margin-left: 8px; }

/**************************************************************/
/*                   CONTACT_CARD																*/
/**************************************************************/

div#sidebar .contact.card {
  margin-right: 10px;
  overflow-x: hidden;
}

div.contact.card .subject_header {
  display: flex;
  align-items: start;
  column-gap: 10px;
}

div.contact.card .subject_header .name {
  flex-grow: 1;
}

div.contact.card .subject_header .name .header {
  font-weight: bold;
  padding-bottom: 2px;
}

div.contact.card .subject_header h2,
div.contact.card .subject_header h3 {
  margin: 0;
}

div.contact.card .contact-details {
  margin-top: 5px;
}

div.contact.card .contact-details p {
  margin: 5px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-card div.contact.card .subject_header .name h2 a,
#sidebar .small-card div.contact.card .subject_header .name h3 a,
.small-card div.contact.card .subject_header .name h3 a,
div.contact.card .subject_header .name a {
	text-decoration: none;
	color: inherit;
}

/**************************************************************/
/*                   THUMBNAILS																*/
/**************************************************************/

div.wiki img.tumbnail {
	border: 1px solid #D7D7D7;
	height: 150px;
	padding: 4px;
	vertical-align: middle;
	width: 150px;
	background: white;
}

/**************************************************************/
/*                   EMPLOYEE                                */
/**************************************************************/
#company_contacts table.note_data {
  width: 250px;
  float: left;
}

#company_contacts table.note_data td.name {
  width: auto;
}

/**************************************************************/
/*                   NOTE_DATA																*/
/**************************************************************/

table.note_data, table.related_deals {
	width: 100%;
}

table.note_data td.name div.wiki {
	margin: 5px 0px 0px 0px;
}

table.note_data .wiki.note p {
	margin: inherit;
}

table.note_data .wiki.note div.attachments p {
	margin: 4px 0 2px 0;
	display: inline-block;
	white-space: nowrap;
}

table.note_data td.avatar {
	padding-right: 4px;
	padding-left: 0px;
}

table.note_data td.name {
	padding-left: 0px;
	vertical-align: top;
	width: 100%;
}

table.note_data .content.preview {
  margin: 5px 0px 0px 0px;
  font-size: 0.9em;
  color: #808080;
  font-style: italic;
}

table.note_data a.delete:hover {opacity: 1;}
table.note_data a.delete {opacity: 0.4;}

table.note_data td.name h4 {
	letter-spacing: -1px;
	margin: 7px 0 0 0;
	padding: 0;
	line-height: 1.1em;
}
table.note_data h4 { margin-top: 5px; margin-bottom: 0px;}
table.note_data td.avatar { vertical-align: top; width: 38px; padding-top: 10px;}

table.note_data:hover h4>a.wiki-anchor { display: inline; color: #ddd;}

.wiki.note a.wiki-anchor {display: none;}

div.note_data_header table.note_data { margin-bottom: 5px;}

h2.note_title { margin-bottom: 0px;}

/*     Thumbnails    	*/

div.wiki p.thumbnails {margin-top: 12px;}

img.thumbnail {
  border: 1px solid #D7D7D7;
  padding: 4px;
  margin: 4px;
  vertical-align: middle;
}

/**************************************************************/
/*                  CONTACTS_DUBLICATES  											*/
/**************************************************************/

#duplicates ul {margin: 0;  padding: 0;}
#duplicates li {list-style-type:none; margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
#duplicates img.gravatar {vertical-align: middle; margin: 0 4px 2px 0;}
#duplicates ul.box {padding: 10px; background-color: #FFEBC1;}


/**************************************************************/
/*                  CONTACTS_PROJECTS													*/
/**************************************************************/

#contact_projects ul {margin: 0;  padding: 0;}
#contact_projects li {list-style-type:none; margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
#contact_projects select {width: 95%; display: block;}
#contact_projects a.delete {opacity: 0.4;}
#contact_projects a.delete:hover {opacity: 1;}
#contact_projects img.gravatar {vertical-align: middle; margin: 0 4px 2px 0;}


/**************************************************************/
/*                  SALES_FUNNEL    													*/
/**************************************************************/

table.sales-funnel td.sales-funnel {text-align: center;}
table.sales-funnel td.sales-funnel span.tag-label-color { display: block; margin: auto;}
table.sales-funnel td.sales-funnel.index_0 { width: 50%;}
table.sales-funnel td.count { text-align: center; }
table.sales-funnel td.total { text-align: right; }
table.sales-funnel tr.deal_status_type-1 { background-color: #ECFFF5; }
table.sales-funnel tr.deal_status_type-2 { background-color: #FFECEC; }

/**************************************************************/
/*                  CONTACT_DATA															*/
/**************************************************************/
.avatar img.gravatar,
#avatar img.gravatar {
	vertical-align: middle;
}

div.crm.details.private .avatar img.gravatar {
  border: solid 1px #EB7272;
}

.tooltip span.tip.contact {
	line-height: 11px !important;
	font-size: 9px !important;
	width: 200px !important;
}

/**************************************************************/
/*                  CONTACT ATTRIBUTES SIDEBAR  							*/
/**************************************************************/
table.contact.attributes .gravatar {
	vertical-align: middle;
	margin: 0 0.5em 0 0;
}

table.sidebar.attributes {
 overflow: hidden;
 text-overflow: ellipsis;
}

table.sidebar.attributes td, table.sidebar.attributes th {
  text-align: left;
  vertical-align: top;
}

.tab-placeholder {
    display: none;
}

.tab-placeholder.active {
    display: block !important;
}

ul.ui-autocomplete {
  z-index: 10100;
}

div.ui-dialog  {
  z-index: 999 !important;
}

#issue_contacts ul {margin: 0;  padding: 0;}
#issue_contacts li {list-style-type:none; margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
#issue_contacts select {width: 95%; display: block;}
#issue_contacts a.delete {opacity: 0.4;}
#issue_contacts a.delete:hover {opacity: 1;}
#issue_contacts img.gravatar {vertical-align: middle; margin: 0 4px 2px 0;}

.hidden { display: none; }
.select2-results ul.select2-results__options li.loading-results { display: none; }

span.select2_multi_cf .select2-selection__rendered .select2-selection__choice { white-space: normal; margin-right: 14px }
span.select2_multi_cf .select2-selection__rendered .select2-selection__clear { position: absolute; right: 2px }

#filters-table .select2-selection__rendered { white-space: normal; }

/**************************************************************/
/*               CUSTOM FIELD OF ADDRESS TYPE                 */
/**************************************************************/
span.custom-field-address-wrapper {
    display: inline-block;
    width: 60%;
}

span.custom-field-address-wrapper input {
    width: 100%;
    max-width: 100%;
}

span.custom-field-address-wrapper input.city, span.custom-field-address-wrapper input.postcode {
    width: 49%;
    margin-right: 1%;
    float: left;
}

span.custom-field-address-wrapper select, span.custom-field-address-wrapper input.region {
    width: 50%;
}

/**************************************************************/
/*                   QUERY FORM - OPTIONS                     */
/**************************************************************/

#list-definition {
  margin: 0 15px;
  width: auto !important;
}
#list-definition > div {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
#list-definition > div .field{
  width: 160px;
}
.query-columns label {
  display:block;
}
#list-definition .buttons input[type=button] {
  width:35px;
  display:block;
}
.query-columns select {
  min-width:150px;
}

.query-totals {text-align:right; margin-top:-2.3em; font-size: 93%;}
.query-totals>span:not(:first-child) {margin-left:0.6em;}
.query-totals .value {font-weight:bold;}
body.controller-timelog .query-totals {margin-top:initial;}
