@import /assets/css/global.css;

body,
#web {
    text-align: left;
    min-width: 0 !important;
    font-family: 'Roboto' !important; /* Delete After Global Fonts are set */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#web {
	margin-top: 0 !important;
}
#web .form_wrap_inner {
	padding-bottom: 0 !important;
}
form.odoform {
	padding: 0;
	min-width: 0;
}
#web .form_wrap_outer {
	width: auto !important;
}
div.form_wrap_outer {
    margin: 0;
}
form.odoform fieldset.section.fieldset {
	margin-bottom: 1em;
	background: #fff;
	padding: 1em 1em 0;
}

@media screen and (min-width: 980px) and (max-width: 1410px) {
	form.odoform fieldset.section.fieldset {
		padding: 0.5em 1em 1em 1em;
		background: white;
	}
	form.odoform .element_group {
		border: none;
	}
}
@media screen and (min-width: 980px) {
	form.odoform fieldset.section.fieldset {
		width: 672px;
	}
}
@media screen and (min-width: 1410px) {
	#web .form_wrap_inner {
	}
}

/* general elements */
form.odoform fieldset.fieldset h1 {
	border-bottom: 0;
	font-size: 2.5em !important;
	line-height: 1.1428571em;
	margin: 20px 0 0.1em 0;
	font-weight: 700;
  color: #424242;
  letter-spacing: 0.5px;
}
form.odoform fieldset.fieldset h2 {
	color: #424242;
	font-size: 1.5em !important;
	line-height: 1.3333333em;
	margin: 0 0 0.6666667em 0;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}
form.odoform fieldset.fieldset p {
	font-size: 1em;
	line-height: 1.5em;
	margin: 0 0 1em 0;
}
div[class*="item control-group"] > label[class*="control-label span2"] {
  display: inline-block;
	float: left;
	text-align: left;
	margin: 1em 0 0.5em 0;
	clear: both;
	font-size: 15px;
	font-weight: 400;
	width: auto;
	color: #424242;
	margin-bottom: 4px;
	line-height: 15px;
	padding-top: 0px !important;
	cursor: auto;
	width: 100%;
}

div[class="item control-group"] > label[class="control-label span2"] ~ div {
	float: left;
	clear: both;
/* 	not sure if good idea */
	width: 100%;
}

div[class="item control-group"] > input[id*=input],
div[class="item control-group"] > select {
	position: relative;
	left: 0px;
}

div[class="item control-group"] > select,
div[class*="inline_group_item"] > select  {
	height: 44px !important;
}

.wrapper div[class="item control-group"] {
	float: left;
	clear: none !important;
}

form.odoform textarea,
form.odoform select,
form.odoform input[type="text"],
form.odoform input[type="password"],
form.odoform input[type="datetime"],
form.odoform input[type="datetime-local"],
form.odoform input[type="date"],
form.odoform input[type="month"],
form.odoform input[type="time"],
form.odoform input[type="week"],
form.odoform input[type="number"],
form.odoform input[type="email"],
form.odoform input[type="url"],
form.odoform input[type="search"],
form.odoform input[type="tel"],
form.odoform input[type="color"],
form.odoform .uneditable-input {
	font-size: 15px;
	color: #424242;
	width: 100% !important;
	margin-top: 0;
}

form.odoform .inline_group_item {
	width: 100%;
  margin-right: 1%;
}

.inline_group.address1 input {
/*     width: 450px !important; */
	width: 100% !important;
}
.inline_group.address2 input {
/*     width: 450px !important; */
	width: 100% !important;
}


form.odoform .element_group {
	width: 100% !important;
}

.element_group .inline_group.double .inline_group_item,
.element_group .inline_group.name .inline_group_item {
	width: 49.5%;
}

.element_group .inline_group.double .inline_group_item:first-child,
.element_group .inline_group.name .inline_group_item:first-child {
    float: left;
    margin-right: 0;
}

.element_group .inline_group.double .inline_group_item:last-child,
.element_group .inline_group.name .inline_group_item:last-child {
    float: right;
    margin-right: 0;
}

.elements .element_selector .inline_group_item:last-child {
	margin-right: 0;
}


.inline_group.citystatezip .inline_group_item {
	width: 32.3%;
	margin-right: 1%;
}

.inline_group.citystatezip .inline_group_item:last-child {
	margin-right: 0;
}

.inline_group.citystatezip select.citystatezip_state  {
    height: 44px !important;
    margin-top: 0;
}


form.odoform .inline_group.fulldate .inline_group_item select {
	width: 100% !important;
}

form.odoform .inline_group.fulldate .inline_group_item {
	width: 32.3% !important;
  margin-right: 1%;
}

form.odoform .inline_group.fulldate .inline_group_item:last-child {
	width: 32.3% !important;
  margin-right: 0 !important;
}


form.odoform .option_group {
	padding-top: 0;
	clear: both;
}

.pager.module_actions {
	border-top: 1px solid #e8e8e8;
	padding: 24px 16px;
	margin-top: 10px;
}
.pager.module_actions .previous {
	float: left;
}
.pager.module_actions input.action_button {
    min-width: 0;
}
.pager.module_actions .previous input {
	background: none;
	color: rgb(69,69,69);
}
.pager.module_actions .next {
	float: right;
}
.pager.module_actions input.submit {
	float: right;
	font-weight: bold;
}


form.odoform input[class=" validate['email']"] {
	margin-bottom: 0 !important;
}

form.odoform .switch {
	position: relative;
	display: inline-block;
	vertical-align: top;
	height: 20px;
	max-width: 550px;
	min-width: 70px;
	padding: 3px !important;
	background-color: white;
	border-radius: 18px;
	box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
	cursor: pointer;

	background-image: -webkit-linear-gradient(top, #eeeeee, white 25px);
	background-image: -moz-linear-gradient(top, #eeeeee, white 25px);
	background-image: -o-linear-gradient(top, #eeeeee, white 25px);
	background-image: linear-gradient(to bottom, #eeeeee, white 25px);

	float: none !important;
	cursor: pointer;
}

form.odoform .switch .switch-input {
	display: inline-block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	opacity: 0;
}
form.odoform .switch .switch-label {
	position: relative;
	display: block;
	height: inherit;
	width: 100%;
	box-sizing: border-box;
	font-size: 10px;
	text-transform: uppercase;
	background: #eceeef;
	border-radius: inherit;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
	-webkit-transition: 0.15s ease-out;
	-moz-transition: 0.15s ease-out;
	-o-transition: 0.15s ease-out;
	transition: 0.15s ease-out;
	-webkit-transition-property: opacity background;
	-moz-transition-property: opacity background;
	-o-transition-property: opacity background;
	transition-property: opacity background;
}
form.odoform .switch .switch-label:before,
form.odoform .switch-label:after {
	position: absolute;
	top: 50%;
	margin-top: -.5em;
	line-height: 1;
	-webkit-transition: inherit;
	-moz-transition: inherit;
	-o-transition: inherit;
	transition: inherit;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
form.odoform .switch .switch-label:before {
	content: attr(data-off);
  padding-left: 8px;
	color: #aaa;
	text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
form.odoform .switch .switch-label:after {
	content: attr(data-on);
	padding-left: 8px;
	color: white;
	text-shadow: 0 1px rgba(0, 0, 0, 0.2);
	opacity: 0;
}
form.odoform .switch .switch-input:checked ~ .switch-label {
	background: #5986de;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
form.odoform .switch .switch-input:checked ~ .switch-label:before{
	opacity: 0;
}
form.odoform .switch .switch-input:checked ~ .switch-label:after {
	opacity: 1;
}
form.odoform .switch .switch-handle {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	background: white;
	border-radius: 10px;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
	background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
	background-image: -moz-linear-gradient(top, white 40%, #f0f0f0);
	background-image: -o-linear-gradient(top, white 40%, #f0f0f0);
	background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
	-webkit-transition: left 0.15s ease-out;
	-moz-transition: left 0.15s ease-out;
	-o-transition: left 0.15s ease-out;
	transition: left 0.15s ease-out;
}
form.odoform .switch .switch-handle:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -6px 0 0 -6px;
	width: 12px;
	height: 12px;
	background: #f9f9f9;
	border-radius: 6px;
	box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
	background-image: -webkit-linear-gradient(top, #eeeeee, white);
	background-image: -moz-linear-gradient(top, #eeeeee, white);
	background-image: -o-linear-gradient(top, #eeeeee, white);
	background-image: linear-gradient(to bottom, #eeeeee, white);
}
form.odoform .switch .switch-input:checked ~ .switch-handle{
	right: 4px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
	left: auto;
}

form.odoform .switch .switch-green > .switch-input:checked ~ .switch-label {
	background: #4fb845;
}

form.odoform label[inline_toggle=t] ~ div {
	float: right;
	clear: none !important;
	height: 100%;
	position: relative;
}

.opt_width {
	opacity: 0;
	position: absolute;
	display: inline-block;
}

form.odoform label.optional_label {
	float: left;
	text-align: left;
	margin: 0;
	width: 100%;
	font-weight: bold;
	font-size: 14px;
	line-height: 100%;
	color: #333;
	display: block;
	margin-bottom: 10px;
}

form.odoform div.optional_text {
	clear: both !important;
	display: none;
	height: 100px;
	width: 100%;
	display: block;
}

form.odoform div.optional_text.plugin {
	left: 17px;
	top: 35px;
	right: 17px;
	width: auto;
}

form.odoform label[inline_toggle=t] ~ div.active {
	height: 140px;
}

form.odoform .control-group div ul {
  list-style-type: disc;
}

form.odoform .control-group div ol {
	list-style-type: decimal;
}

form.odoform div.inline_group_item.name_sub {
    width: 43% !important;
}


@media screen and (max-width:580px) {
	form.odoform div.inline_group_item.name_sub {
	    width: 42% !important;
	}
}

@media screen and (max-width:520px) {
	form.odoform div.inline_group_item.name_sub {
	    width: 41% !important;
	}
}

@media screen and (max-width:480px) {
	form.odoform div.inline_group_item.name_sub {
	    width: 40% !important;
	}
}

@media screen and (max-width:460px) {
	form.odoform div.inline_group_item.name_sub {
	    width: 38% !important;
	}
}

form.odoform div.inline_group_item.name_sub.initial {
    width: 58px !important;
    margin-left: 15px;
}

@media screen and (max-width:620px) {
	form.odoform div.inline_group_item.name_sub.initial {
	    margin-left: 12px;
	}
}

@media screen and (max-width:350px) {
	form.odoform div.inline_group_item.name_sub.initial {
	    margin-left: 8px;
	}
}

form.odoform div.wrapper {
	display: inline-block;
	width: 100%;
}

div[class="item control-group"] > input[type=file] {
    float: left;
    clear: both;
    line-height: 1em;
}

/**
 * Styling for new toggle switch in the Live View [START]
 */
form.odoform .switch {
  position: relative;
  top: 4px;
  display: inline-block;
  width: 40px;
  height: 16px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  text-align: right;
  background-image: none;
  box-shadow: none;
}

form.odoform .switch .switch-input:checked ~ .switch-label {
  background: #4caf50;
  box-shadow: none;
}

form.odoform .switch .switch-input ~ .switch-label {
  background: #eceeef;
  width: 42px;
  margin-top: 1px;
}

form.odoform .switch .switch-input:checked ~ .switch-handle {
  right: 25px;
}

form.odoform .switch .switch-handle {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-top: -4px;
  margin-left: -2px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .16);
  background-image: none;
  -webkit-filter: drop-shadow( 0px 1px 8px rgba(0,0,0,.12) );
}

form.odoform .switch .switch-handle:before {
  background: none;
  box-shadow: none;
  background-image: none;
}

form.odoform .switch .switch-label {
  background: #4caf50;
  box-shadow: none;
}

form.odoform .switch .switch-label:before,
form.odoform .switch .switch-label:after {
  color: #424242;
  text-shadow: none;
  font-size: 12px;
}

/**
 * Styling for new toggle switch in the Live View [END]
 */
