.webix-treetable-row-hover,
.webix_cell.row-selected {
    background-color: rgb(254, 252, 239) !important;
}
#treetable-board-issue_list .webix_cell {
	white-space: nowrap !important;
	text-overflow: ellipsis;
}

#my-page .splitcontentleft,
#my-page .splitcontentright {
	width: 100%;
	max-width: 100%;
}

@media only screen and (min-width: 1200px) {
	#my-page .splitcontentleft,
	#my-page .splitcontentright {
		width: calc(50% - 8px);
		max-width: 50%;
	}
}	

.webix_view .webix_hcell,
.webix_view .webix_column>div, 
.webix_view .webix_table_cell {
	padding: 0 0.25rem;
}

.webix_hcell.webix_first {
	text-align: center !important;
}

.webix_cell.not-editable {
    background-color: rgb(255, 247, 247) !important;
}

.webix_cell:hover .edit-cell {
    visibility: visible;
}

.webix_view .edit-cell {
    visibility: hidden;
    cursor: pointer;
	margin-left: 10px;
}

.webix_view table.progress {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    text-overflow: ellipsis;
    padding: 2px;
}

.webix_view .context-menu-selection a, 
.webix_view .context-menu-selection a:hover {
	color: inherit !important;
}

#apply-clear-query-btns,
#save-edit-query-btns {
    display: inline-block !important;
}

#ajax-modal .tabular p {
    padding-left: 120px !important;
}

.modal.ui-dialog .ui-dialog-title {
    margin: 0 !important;
}

.webix_dtable .webix_ss_header .webix_hcolumn div.webix_last_row, 
.webix_dtable .webix_ss_header .webix_span.webix_last_row {
	border: none !important;
}

.webix_dtable_span.group.idnt-0 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.webix_dtable_span.group.idnt-0 .totals {
	flex: 0 0 100%;
}

.webix_dd_drag_column, .webix_hcolumn, .webix_hs_center, .webix_hs_left, .webix_hs_right, .webix_ss_vscroll_header {
	background: none !important;
	color: #434d59;
}

.webix_view,
.webix_dd_drag_column, .webix_hcolumn, .webix_hs_center, .webix_hs_left, .webix_hs_right, .webix_ss_header, .webix_ss_vscroll_header {
	font-family: inherit !important;
	font-size: inherit !important;
	letter-spacing: normal !important;
}

.webix_view {
	-webkit-font-smoothing: auto;
}

.webix_hcell {
	font-weight: 600;
	line-height: 24px !important;
}

#treetable-board-issue_list .webix_ss_header {
	background: #fff;
}

.webix_ss_hscroll {
	position: absolute;
	visibility: visible;
}

#csv-export-block-columns {
	margin-bottom: 1rem;
}

.webix_view.webix_dtable {
	border-radius: 4px;
}

.webix_last>.webix_cell {
	text-align: right;
}

.webix_dt_editor * {
	font-family: inherit !important;
}

.webix_view .webix_dt_editor input:focus, 
.webix_view .webix_dt_editor input:active {
	box-shadow: none !important;
	border-style: dashed !important;
}

.webix_view .webix_dt_editor input {
	height: 80%;
}

.webix_dt_editor .select2 {
	margin-left: 3px;
}

.sub-task .subject:before {
    content: "·";
    margin-right: 0.5rem;
    color: rgb(100, 115, 133);
    font-weight: 600;
	display: block;
}

.webix_view div.issue {
	background: #fff;
	margin: 0;
	border-top: 0;
	border-left: 0;
	border-radius: 0;
}

.webix_view div.issue img.gravatar {
	float: left;
	margin: 2px 6px 0 0;
    vertical-align: unset;
	max-width: 30px;
	max-height: 30px;
}


[data-update="project_id"] {
	max-width: 90%;
}

[data-update="project_id"]>a {
	max-width: 100%;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-update="project_id"],
[data-update="project_id"] a,
[data-update="project_id"]+.icon-edit {
	display: block;
	float: left;
}


/*
 * Priorities, Issue list
 */

.webix_select_mark .webix_cell {
	position: relative;
	text-align: center;
}

.webix_select_mark .webix_cell:before {
	-webkit-transform: translate(0%, -50%);
	-ms-transform: translate(0%, -50%);
	transform: translate(0%, -50%);
    border-radius: 4px;
    content: '';
    width: 5px;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 0;
}

.webix_cell[class*="priority-"] [data-update="priority_id"],
.webix_cell[class*="lowest"] [data-update="priority_id"],
.webix_cell[class*="default"] [data-update="priority_id"],
.webix_cell[class*="high2"] [data-update="priority_id"],
.webix_cell[class*="high3"] [data-update="priority_id"],
.webix_cell[class*="highest"] [data-update="priority_id"] {
	color: #fff;
	position: relative;
	z-index: 1;
	text-align: center;
	display: block;
	margin: auto;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
	overflow: hidden;
}


.webix_cell[class*="priority-"] [data-update="priority_id"]:before,
.webix_cell[class*="lowest"] [data-update="priority_id"]:before,
.webix_cell[class*="default"] [data-update="priority_id"]:before,
.webix_cell[class*="high2"] [data-update="priority_id"]:before,
.webix_cell[class*="high3"] [data-update="priority_id"]:before,
.webix_cell[class*="highest"] [data-update="priority_id"]:before {
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	border-radius: 4px;
	content: '';
	height: 60%;
	width: 100%;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	opacity: 0.875;
}

/* Default Priority */

.webix_cell[class*="priority-"] [data-update="priority_id"],
.webix_cell[class*="lowest"] [data-update="priority_id"],
.webix_cell[class*="default"] [data-update="priority_id"],
.webix_cell[class*="high2"] [data-update="priority_id"],
.webix_cell[class*="high3"] [data-update="priority_id"],
.webix_cell[class*="highest"] [data-update="priority_id"] {
  color: #434d59;
}

.webix_cell[class*="priority-"] [data-update="priority_id"]:before,
.webix_cell[class*="lowest"] [data-update="priority_id"]:before,
.webix_cell[class*="default"] [data-update="priority_id"]:before,
.webix_cell[class*="high2"] [data-update="priority_id"]:before,
.webix_cell[class*="high3"] [data-update="priority_id"]:before,
.webix_cell[class*="highest"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-"]:before {
  background: #eeeeee;
}

.webix_cell[class*="priority-1"] [data-update="priority_id"],
.webix_cell[class*="priority-lowest"] [data-update="priority_id"],
.webix_cell[class*="lowest"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-1"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-lowest"] [data-update="priority_id"]:before,
.webix_cell[class*="lowest"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-1"]:before {
  background: #00BBB2;
}

.webix_cell[class*="priority-2"] [data-update="priority_id"],
.webix_cell[class*="priority-default"] [data-update="priority_id"],
.webix_cell[class*="default"] [data-update="priority_id"] {
  color: #434d59 !important;
}

.webix_cell[class*="priority-2"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-default"] [data-update="priority_id"]:before,
.webix_cell[class*="default"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-2"]:before {
  background: #eeeeee;
}

.webix_cell[class*="priority-3"] [data-update="priority_id"],
.webix_cell[class*="priority-high3"] [data-update="priority_id"],
.webix_cell[class*="high3"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-3"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-high3"] [data-update="priority_id"]:before,
.webix_cell[class*="high3"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-3"]:before {
  background: #F27D3E;
}

.webix_cell[class*="priority-4"] [data-update="priority_id"],
.webix_cell[class*="priority-high2"] [data-update="priority_id"],
.webix_cell[class*="high2"] [data-update="priority_id"] {

  color: #fff;
}

.webix_cell[class*="priority-4"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-high2"] [data-update="priority_id"]:before,
.webix_cell[class*="high2"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-4"]:before {
  background: #fc5c65;
}

.webix_cell[class*="priority-5"] [data-update="priority_id"],
.webix_cell[class*="priority-highest"] [data-update="priority_id"],
.webix_cell[class*="highest"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-5"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-highest"] [data-update="priority_id"]:before,
.webix_cell[class*="highest"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-5"]:before {
  background: #eb3b5a;
}

.webix_cell[class*="priority-5"] [data-update="priority_id"]:before,
.webix_cell[class*="priority-highest"] [data-update="priority_id"]:before,
.webix_cell[class*="highest"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-5"]:before {
  background-image: linear-gradient(125deg, #fc5c65 27.78%, #eb3b5a 27.78%, #eb3b5a 50%, #fc5c65 50%, #fc5c65 77.78%, #eb3b5a 77.78%, #eb3b5a 100%);
  background-size: 43.95px 62.76px;
}

/* Custom Priorities */
.webix_cell[class*="priority-6"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-6"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-6"]:before {
  background: #98F68D;
}

.webix_cell[class*="priority-7"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-7"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-7"]:before {
  background: #8B77CB;
}

.webix_cell[class*="priority-8"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-8"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-8"]:before {
  background: #663F00;
}

.webix_cell[class*="priority-9"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-9"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-9"]:before {
  background: #F77297;
}

.webix_cell[class*="priority-10"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-10"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-10"]:before {
  background: #002D78;
}

.webix_cell[class*="priority-11"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-11"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-11"]:before {
  background: #C49638;
}

.webix_cell[class*="priority-12"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-12"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-12"]:before {
  background: #F37C3D;
}

.webix_cell[class*="priority-13"] [data-update="priority_id"] {
  color: #fff;
}

.webix_cell[class*="priority-13"] [data-update="priority_id"]:before,
.webix_select_mark .webix_cell[class*="priority-13"]:before {
  background: #DAA21C;
}

.fast-search-group {
	margin-bottom: 0.5rem;
	float: left;
	margin-right: 0.5rem;
}

.webix_view span.buttons {
	display: flex;
	margin: 0;
}

.webix_view span.buttons a {
	margin-right: 5px;
}

.webix_view span.buttons .icon-actions {
	font-size: inherit !important;
}

/*Indent for child subtasks*/

.webix_view .is-child [data-update="subject"]:before {
	content: '·';
	margin-right: 0.5rem;
	font-weight: 600;
}

.webix_view .is-child.idnt-1 [data-update="subject"]:before {
	margin-left: 1rem;
}

.webix_view .is-child.idnt-2 [data-update="subject"]:before {
	margin-left: 2rem;
}

.webix_view .is-child.idnt-3 [data-update="subject"]:before {
	margin-left: 3rem;
}

.webix_view .is-child.idnt-4 [data-update="subject"]:before {
	margin-left: 4rem;
}

.webix_view .is-child.idnt-5 [data-update="subject"]:before {
	margin-left: 5rem;
}

.webix_view .is-child.idnt-6 [data-update="subject"]:before {
	margin-left: 6rem;
}

.webix_view .is-child.idnt-7 [data-update="subject"]:before {
	margin-left: 7rem;
}

.webix_view .is-child.idnt-8 [data-update="subject"]:before {
	margin-left: 8rem;
}

.webix_view .is-child.idnt-9 [data-update="subject"]:before {
	margin-left: 9rem;
}

.webix_view .is-child.idnt-10 [data-update="subject"]:before {
	margin-left: 10rem;
}

/*
 * Default theme
 */

body:not([class*="theme-"]) #fast-search-btn-issue_list,
body.theme-Alternate #fast-search-btn-issue_list,
body.theme-Classic #fast-search-btn-issue_list {
	height: 24px;
}


body:not([class*="theme-"]) .webix_dt_editor *,
body.theme-Alternate .webix_dt_editor *,
body.theme-Classic .webix_dt_editor * {
	font-size: 12px;
}

body:not([class*="theme-"]) [id*="treetable"] .webix_cell,
body.theme-Alternate [id*="treetable"] .webix_cell,
body.theme-Classic [id*="treetable"] .webix_cell {
	line-height: 22px !important;
}

body:not([class*="theme-"]) .webix_view .webix_dt_editor input,
body.theme-Alternate .webix_view .webix_dt_editor input,
body.theme-Classic .webix_view .webix_dt_editor input {
	margin: 2px 0;
}

body:not([class*="theme-"]) #treetable-board-issue_list .webix_ss_header,
body.theme-Alternate #treetable-board-issue_list .webix_ss_header,
body.theme-Classic #treetable-board-issue_list .webix_ss_header {
	background: #eee;
}

body:not([class*="theme-"]) .webix_hcell,
body.theme-Alternate .webix_hcell,
body.theme-Classic .webix_hcell {
	height: 24px !important;
} 

/*
 * All other themes
 */

 body[class*="theme-"]:not(.theme-Alternate):not(.theme-Classic):not(.controller-my) [id*="treetable"] .webix_cell {
	line-height: 36px !important;
}

body[class*="theme-"] .webix_hcell {
	height: 36px !important;
}

/*
 * rX theme
 */

body[class*="theme-Redminex"] .webix_cell {
	line-height: 43px !important;
}

body[class*="theme-Redminex"] .webix_view .webix_dt_editor input {
	margin: 4px;
}

body[class*="theme-Redminex"] .issue-list-destroy-modal .error-msg::before {
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
	font-family: "Font Awesome 5 Pro";
    color: #fc5c65;
    content: "\f071";
    margin-right: 0.5rem;
}

/*
 * Zenmine theme
 */
 
body[class*="theme-Zenmine"] .webix_dt_editor .select2-container {
	background: #fff !important;
}

/*
 * Global Issues
 */


.redmine_x_issue_list #query_form_with_buttons #apply-clear-query-btns {
	margin-top: 0.5rem;
}

.redmine_x_issue_list #query_form_with_buttons.open {
    max-height: 2000px;
    margin: 1rem 0;
}

.redmine_x_issue_list #query_form div.buttons {
    text-align: left;
}

.redmine_x_issue_list #query_form div.buttons a {
    margin-right: 0.6em;
}

.redmine_x_issue_list #query_form_modal fieldset {
    border-radius: 0;
    border-top: 1px solid #cbcfd9;
    border-right: none;
    border-bottom: none;
    border-left: none;
}

.redmine_x_issue_list #query_form_modal #tr_status_id .field {
    min-width: 100px;
}

.redmine_x_issue_list .modal.ui-widget,
.controller-my .modal.ui-widget {
    min-width: 680px;
    min-height: 28vh;
}

.issue-list-destroy-modal .error-msg {
	color: #fc5c65;
}

.redmine_x_issue_list .text-center {
    text-align: center;
}

.redmine_x_issue_list .group .name {
    font-weight: 600;
    color: #434d59;
}

.redmine_x_issue_list .group span {
    margin-right: 5px;
}

.redmine_x_issue_list .group input {
    display: none;
}

.redmine_x_issue_list .pagination {
	margin-top: 19px;
}

.redmine_x_issue_list #options #list-definition tr:nth-child(3) td:nth-child(2) label:nth-child(1),
.redmine_x_issue_list #options #list-definition tr:nth-child(3) td:nth-child(2) label:nth-child(2),
#csv-export-block-columns label:nth-of-type(3) {
	display: none !important;
}

.issue-board .webix_view div>span:not([data-update*="done_ratio"]):not(.buttons):not([data-update*="priority_"]):not([data-update*="subject"]):not([data-update*="assigned_to_id"]) {
	display: inline-block;
	overflow: hidden;
	max-width: 75%;
	text-overflow: ellipsis;
}

.webix_view .select2-selection__rendered li {
	white-space: nowrap;
	background: $query-form-bg !important;
}

.webix_view .select2-selection__choice__remove {
	margin: 0;
	line-height: 1.5;
}

.webix_view .select2-search__field {
	line-height: 1;
	height: 25px !important;
	margin-top: 5px !important;
}

.webix_view .select2-container--default .select2-selection--multiple .select2-selection__choice,
.webix_view .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	border-color: $border-color-light !important;
}

.webix_view .icon-edit {
	display: inline-block;
	vertical-align: top;
	text-overflow: ellipsis;

	&:before {
		margin: 0 !important;
	}
}

.redmine_x_issue_list .disabled-modal-link {
	opacity: 0.375;
	pointer-events: none;
}

.redmine_x_issue_list [data-update*="subject"]>a,
.redmine_x_issue_list [data-update*="project_id"]>a {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	white-space: nowrap;

}

.redmine_x_issue_list [data-update*="subject"]:after,
.redmine_x_issue_list [data-update*="project_id"]:after  {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.redmine_x_issue_list [data-update*="subject"],
.redmine_x_issue_list [data-update*="project_id"] { 
	display: inline-block; 
}

* html [data-update*="subject"],
* html [data-update*="project_id"] { 
	height: 1%; 
}

.redmine_x_issue_list [data-update*="subject"],
.redmine_x_issue_list [data-update*="project_id"] { 
	display: inline-flex; 
	max-width: calc(100% - 40px);
}

.redmine_x_issue_list input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not(.filename):not(.attachments_fields .description):not(.attachments input):not(#fast-search-box-issue_list) {
	max-width: 95% !important; 
}

.redmine_x_issue_list #query_form_modal #default_columns label, 
.redmine_x_issue_list #query_form_modal #group_by label {
	padding-left: 1rem;
}

.redmine_x_issue_list #query_form_modal #group_by label {
	margin-right: 0.5rem;
	margin-left: 0 !important;
	text-align: right !important;
}

.redmine_x_issue_list #query_form_modal #group_by {
	padding-left: 0 !important;
}

/*Select2 style that will affect all Select2 in Redmine*/

.select2-container,
.select2-dropdown {
	min-width: 100px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: inherit !important;
}

#wrapper .webix_tree_file, 
#wrapper .webix_tree_folder, 
#wrapper .webix_tree_folder_open, 
#wrapper .webix_tree_none {
	width: auto !important;
}
 
#wrapper .webix_tree_none:last-of-type {
	width: 20px !important;
}

.webix_view .webix_column.webix_first {
	border-right: 2px solid #edeff0;
	z-index: 1;
}

.webix_tree_none {
	display: none;
}

.webix_view .webix_column.webix_first>.group>div:before {
	position: relative;
	left: 50%;
	margin-left: -50%;
}

.webix_view .webix_column.webix_first * {
	text-overflow: unset;
	overflow: visible;
}

.webix_view .webix_column:nth-of-type(2) .webix_cell {
	text-align: center;
}

.webix_view .webix_column:first-of-type>div.issue:not(.child) {
	background: #fcfcfc;
}

.webix_view .tag-label-color {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	line-height: initial;
}

body:not(.theme-Abacusmine):not(theme-Redminex) .redmine_x_issue_list #cancel-query-modal-issue-list-btn {
    background-color: transparent;
    color: #1985ff !important;
    border-color: transparent !important;
}

body:not(.theme-Abacusmine):not([class*="theme-Redminex"]) #save-query-modal-issue-list-btn {
    background: #e0e5ec;
    text-shadow: none;
    color: #434d59;
    border: 1px solid #ccc;
	border-radius: 4px;
    padding: 0 10px;
}

.controller-issues .webix_message_area {
	top: 62px !important;
}