// Put Loading indicator in the right bottom of the screen 
.o_loading {
    background-color: #875a7b;
    top: inherit;
    bottom: 0;
    right: 0;
    padding: 5px 50px;
    border-radius: 0 !important;
    opacity: 0.8;
}

// Font

.ui-autocomplete
{
	font-family: @font-family-sans-serif;
}

a:hover {
	text-decoration: none;
}

// Adjust menu counter position

//@-moz-document url-prefix() {
//	.badge {
//		margin-top: -20px;
//	}
//}

// Get rid of purple fontcolor

body a {
	color: @brand-primary;

	&:active, &:focus, &:hover {
		outline: none;
	}
}

.ui-autocomplete .ui-menu-item.ui-state-focus  {
    background-color: @brand-primary;	
}

.o_control_panel .breadcrumb > li > a {
    color: @brand-primary;
}

.o_form_view .o_horizontal_separator {
    color: @brand-primary;
}

.o_stat_value {
    color: @brand-primary !important;
}

.o_form_view .oe_button_box .oe_stat_button .o_button_icon {
    color: @brand-primary;
}

.nav-tabs > li > a {
    color: @brand-primary;
}

.o_web_settings_dashboard .o_web_settings_dashboard_col .o_web_settings_dashboard_planner .o_web_settings_dashboard_progress_title {
    color: @brand-primary !important
}

.o_calendar_container .o_calendar_sidebar_container .ui-datepicker table .ui-state-active {
    background: @brand-primary none repeat scroll 0 0 !important;
	color: #ffffff !important;
}

.o_calendar_container .o_calendar_sidebar_container .ui-datepicker table.ui-datepicker-calendar tbody td a {
    color: @brand-primary;
}

.o_progressbar {
    color: @brand-primary;
}

.o_progressbar .o_progress .o_progressbar_complete {
    background-color: @brand-primary;
}

.o_web_client .o_kanban_view.o_kanban_dashboard.o_kanban_ungrouped a, .o_web_client .o_kanban_view.o_kanban_dashboard.o_kanban_grouped a {
    color: @brand-primary;
}


// Navbar =========================================
#oe_main_menu_navbar {
    .box-shadow(0px 0px 8px #666666);
    border: none;
    .navbar-collapse {
        padding-right: 16px;
        padding-left: 16px;
    }
}

#oe_main_menu_navbar,
.navbar-nav {
    li {
        a, button {
            font-size: 13px !important;
         //   padding: 14px 10px !important;
            margin-top: 0 !important;
            line-height: 21px !important;
        }
    }
    .dropdown-menu {
        li {
            a, button {
                padding: 4px 10px !important;
                font-size: 13px !important;
			}
        }
    }
}

// Fix color Add file button
.o_control_panel .o_cp_sidebar .o_hidden_input_file .o_form_binary_form span {
    color: #333;
}

// Align green progress indicator
#oe_main_menu_navbar .o_planner_systray > .progress {
    margin-top: 18px !important;
}

// Add some space in button groups
//.btn-group > .btn, .btn-group-vertical > .btn {
//    float: left;
//    margin: 3px;
//    position: relative;
//}

// Bigger font in buttons

.btn-sm, .btn-group-sm > .btn {
    font-size: 13px;
}

// =========================================
// Make formwidth wider to screen

.o_form_view .o_form_sheet_bg .o_form_sheet {
	max-width: 1200px;
}

// Darker background
.o_form_view .o_form_sheet_bg {
    background-color: #8f8f8f;
    background-image: none;
    border: 0 none;
}


.o_web_client > .o_main .o_main_content {
	background-color: #8f8f8f;
}

.o_kanban_view {
	background-color: #8f8f8f;
}

.o_event_left {
    background-color: @brand-primary !important;
}


// Fix background project gantt
.oe_gantt {
    background-color: #fff;
}

// Listview =======================================

.o_list_view.table {
    border: none;
}
.o_list_view.table thead, .o_list_view.table tfoot, .o_list_view.table td,.o_list_view.table th {
    border: none;
}
 
.o_list_view.table thead {
    background-color: #e2e2e0;
}
 
.o_list_view.table thead > tr > th.o_column_sortable:hover {
    background-color: #D6D6D3;
}
 
.o_list_view.table tbody tr.o_group_header {
    background-color: #dfdfdf;
    background-image: none;
    border-top: 1px solid #e2e2e0;
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
    background-color: #eef0f0;
}

.o_list_view tfoot {
    background-color: @brand-primary;
    color: #ffffff;
    cursor: default;
    font-weight: normal;
}

// Checkbox ==========================================
div.o_checkbox {
    display: inline-block;
    position: relative;
    vertical-align: sub;
}
 
div.o_checkbox > input {
    width: 15px;
    height: 15px;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    cursor: pointer;
}
 
div.o_checkbox > input + span {
    display: block;
	width: 15px;
    height: 15px;
    border: 1px solid #8f8f8f;
    background-color: white;
}
 
div.o_checkbox > input:checked + span {
    background-repeat: no-repeat;
    background-image: url(/backend_theme_purple_v10/static/src/img/checked.svg);
    background-position: center center;
}
 
div.o_checkbox > input:disabled + span {
    opacity: 0.7;
    border: 1px solid #e2e2e0;
}
 
 div.o_checkbox > input:focus + span {
    outline: 1px solid @brand-primary;
}

// Kanban ===========================================

//Project
.o_kanban_view.o_kanban_dashboard.o_project_kanban .o_project_kanban_boxes .o_project_kanban_box:nth-child(2n+1) {
    background-color: @brand-primary !important;
    }

// Search filter

.o_searchview .o_searchview_facet .o_searchview_facet_label {
    background-color: @brand-primary;
    }


.o_primary {
    color: @brand-primary !important;
    }

.o_kanban_view.o_kanban_dashboard.o_salesteam_kanban .o_sales_dashboard > div > table > tbody > tr > td.o_main {
    background-color: @brand-primary !important;
    }

// Input field

input[type="text"], input[type="password"], input[type="number"],
textarea, select, .o_form_view.o_form_editable .o_form_field_many2manytags,
.o_searchview
{
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #ccc;
}

.o_web_client input:focus, .o_web_client textarea:focus, .o_web_client select:focus {
    outline: none;
	border-bottom: 2px solid @brand-info;
}

// Control panel

.breadcrumb {
    background-color: transparent;
	padding: 0;
}

// Make lookup button background transparent
.o_form_view .o_form_field.o_form_field_many2one .o_external_button {
    color: @brand-primary;
	background-color: transparent;
}

// Button header
.o_form_view > header {
    background-color: #ededed;
    background-image: none;
    border-bottom: 1px solid #cacaca;
}

.o_form_view > header {
    padding-left: 14px;
    padding-top: 2px;
	padding-bottom: 2px;
}

// Status bar

.o_form_view ul.oe_form_status li, .o_form_view ul.oe_form_status_clickable li {
  background-image: linear-gradient(to bottom, #ededed, #ededed) !important;
}

.o_form_view ul.oe_form_status li > .arrow, .o_form_view ul.oe_form_status_clickable li > .arrow {
  margin-left: 5px !important;
}

.o_form_view ul.oe_form_status li > .arrow span, .o_form_view ul.oe_form_status_clickable li > .arrow span {
  margin-left: -20px !important;
  box-shadow: 2px 0px 1px rgba(255, 255, 255, 0.2), inset -3px 3px 0px rgba(0, 0, 0, 0.2) !important;
  background-color: #ededed !important;
  background: -moz-linear-gradient(135deg, #ededed, #ededed) !important;
  background: -o-linear-gradient(135deg, #ededed, #ededed) !important;
  background: -webkit-gradient(linear, left top, right bottom, from(#ededed), to(#ededed)) !important;
  background: -ms-linear-gradient(top, #ededed, #ededed) !important;
  -moz-border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
  border-radius: 0px !important;

}

.o_form_view ul.oe_form_status li.oe_active > .arrow span, .o_form_view ul.oe_form_status_clickable li.oe_active > .arrow span {
  box-shadow: 2px 0px 1px rgba(255, 255, 255, 0.2), inset -3px 3px 0px @brand-info !important;
  background-color: #ededed !important;
  background: -moz-linear-gradient(135deg, #ededed, #ededed) !important;
  background: -o-linear-gradient(135deg, #ededed, #ededed) !important;
  background: -webkit-gradient(linear, left top, right bottom, from(#ededed), to(#ededed)) !important;
  background: -ms-linear-gradient(top, #ededed, #ededed) !important;
}


.o_form_view ul.oe_form_status li.oe_active > .label, .o_form_view ul.oe_form_status_clickable li.oe_active > .label {
  color: @brand-info !important;
  font-weight: bold;
  text-shadow: 0 1px 1px #ededed !important;
}

.o_form_view ul.oe_form_status li:first-child > .label, .o_form_view ul.oe_form_status_clickable li:first-child > .label {
  border-left: 0px solid #cacaca  !important;
}

// Chat window

.o_chat_window .o_chat_header {
    background-color: @brand-primary !important;
}

// Explorer 11 fix to use fullscreen

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

	.oe-view-manager-view-kanban, .oe-view-manager-view-form, .oe-view-manager-view-list, .oe-view-manager-view-calendar, .oe-view-manager-view-pivot, .oe-view-manager-view-graph {
        width: 100% !important;
	}

	// Fix user preference height	
	.modal .modal-content .modal-body .oe-view-manager-content {
		position: static;
		height: 400px;
	}
	
	// Fix salesboard width
	.oe-view-manager-view-sales_team_dashboard {
		width: 100%;
	}

}

// Better contrast navnar sub-menu

.dropdown-header {
  font-weight: bolder;
  background-color: @dropdown-border;
}

// Better contrast no-content
.oe_view_nocontent {
color: #333;
}

.oe_application_menu_placeholder{
	margin-top:25px;
}

.navbar-default {
    background-color: #875a7b;
    border-color: #68465f;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #68465f;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    background-color: #68465f;
    color: #ffffff;
}

.navbar-default .navbar-nav > a, .navbar-default .navbar-nav > a:hover, .navbar-default .navbar-nav > a:focus {
    background-color: #68465f;
    color: #ffffff;
}

.o_web_client .navbar li > a:hover {
    background-color: #68465f;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
    color: #ffffff;
    text-decoration: none;
    outline: 0;
    background-color: #875a7b;
}

.navbar-nav .open .dropdown-menu > li > a:hover {
    background-color: #f0f0f0;
	color:#333333;
}

.panel-default > .panel-heading {
    color: #333333;
    background-color: #875a7b;
    border-color: #68465f;
}

.o_control_panel {
    padding-top: 10px;
    padding-right: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #cccccc;
}

.o_searchview .o_searchview_facet .o_searchview_facet_label {
    background-color: #875a7b;
}

.o_searchview .o_searchview_facet {
    border: 1px solid #8f8f8f;
    background: #f9f9f9;
    color: #8f8f8f;
}

.o_list_view tfoot {
    background-color: #875a7b;
    color: #ffffff;
    cursor: default;
    font-weight: normal;
}

.o_kanban_view .o_kanban_group:nth-child(odd) {
    background-color: #f5f5f5;
}

.o_kanban_view .o_kanban_group {
    background-color: #c5c5c5;
}

.o_kanban_view .o_kanban_group .o_kanban_header .o_kanban_config i {
    height: 30px;
    width: 30px;
    line-height: 1.8;
    text-align: center;
    color: #666666;
    padding: 8px;
    font-size: 22px;
    cursor: pointer;
}

.o_kanban_view .o_kanban_group .o_kanban_header .o_kanban_config i:hover {
	background-color:transparent;
}

.o_kanban_view .o_kanban_group .o_kanban_header .o_kanban_quick_add i {
    height: 30px;
    width: 30px;
    line-height: 1.8;
    text-align: center;
    color: #666666;
    padding: 8px;
    font-size: 22px;
    cursor: pointer;
}

.o_kanban_view .o_kanban_group .o_kanban_header .o_kanban_quick_add i:hover {
	background-color:transparent;
}

.note-popover .popover .popover-content, .panel-heading.note-toolbar {
    margin: 0;
    padding: 0 0 5px 5px;
    background-color: #f5f5f5;
    border-color: #dddddd;
}

.btn-default {
    color: #21b799;
    background-color: white;
    border-color: white;
}

.btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active {
    background-color: white;
    border-color: white;
    color: #21b799;
}

.fa-lg {
    font-size: 1.33333333em;
    line-height: 0.75em;
    vertical-align: -15%;
    color: #ffffff;
}


.o_form_view .oe_button_box + .oe_title, .o_form_view .oe_button_box + .oe_avatar + .oe_title {
    width: 100%;
}

.o_form_view .oe_avatar + .oe_title {
    padding-left: 90px;
    margin-left: 5px;
}

.o_form_view > header {
    background-color: #ffffff;
    position: relative;
    border-bottom: 1px solid #8f8f8f;
}

.o_form_view .o_group .o_td_label {
    border-right: none;
}

.o_form_view .oe_button_box .oe_stat_button {
    text-align: left;
    width: 132px !important;
    height: 40px;
    margin: 0px -1px -1px 0px;
    padding: 0;
    color: #666666;
}