
body {
	font-family: sans-serif;
	font-size: 16px;
	margin: 0;
	padding: 0;
}

a {color: #f14f56; text-decoration: none;}
a:hover {color: #f00; text-decoration: underline;}

a.asc::after {
  content: url(img/order_asc.gif);
}
a.asc-active::after {
  content: url(img/order_asc_actived.gif);
}
a.desc::after {
  content: url(img/order_desc.gif);
}
a.desc-active::after {
  content: url(img/order_desc_actived.gif);
}

a.link_btn , a.link_btn :visited{
	background-color: red;
	border: 1px solid #FFFFFF;
	color: #FFFFFF;
	font-weight: bold;
	outline-color: red;
	outline-style: solid;
	outline-width: 1px;
	padding: 1px 2px;
	text-align: center;
	text-decoration: none;
}
a.link_btn:hover, a.link_btn:active {
	text-decoration: none;
	background-color: #B22222;
	cursor: pointer;
}

.nowrap {white-space: nowrap;}
.print_helper {display: none;}

#page {
	position: relative;
	display: block;
	margin: 0;
}

#header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 99px;
	padding-bottom: 13px;
	background: transparent url(img/header_bg.png) repeat-x left bottom scroll;
	z-index: 100;
}

#logo {display: block; border: none; margin: 0; position: absolute; left: 20px; top: 25px;}

#boutons {
	position: relative;
	width: 1008px;
	height: 48px;
	margin: 20px 20px 0 190px;
	padding: 0;
	list-style: none;
	z-index: 5;
}
#boutons a {text-decoration: none;}
#boutons>li {
	position: relative;
	float: left;
	list-style: none;
}
#boutons li a.bt_top,
#boutons li span.bt_top {
	display: block;
	height: 28px;
	line-height: 28px;
	padding: 0 20px 0 10px;
	position: relative;
}
#boutons li span.bt_top {
	color: #f14f56;
	cursor: default;
}
#boutons li a.bt_top:hover {
	color: #fff;
	background-color: #999;
}

#boutons li a.menu_parent,
#boutons li span.menu_parent {
	background-position: right -5px !important;
	cursor: default;
}

#boutons li ul.subs {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 120px;
	white-space: nowrap;
	padding: 10px 0 0;
	font-size: 14px;
	background: #f9f9f9;
	list-style: none;
	border: 1px solid #999;
	z-index: 6;
}

#boutons li ul.subs::before,
#boutons li ul.subs::after {
	display: block;
	content: "";
	width: 0;
	height: 0;
	z-index: 10;
	position: absolute;
	left: 10px;
	top: -1px;
	border-top: 8px solid #555;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
}
#boutons li ul.subs.a::before,
#boutons li ul.subs.a::after {
	border-top: 8px solid #999;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
}
#boutons li ul.subs::after {
	left: 11px;
	border-width: 7px;
	border-top-color: #fff;
}
#boutons li:hover ul.subs {
	display: block;
	box-shadow: 0 5px 10px -7px rgba(0,0,0,.75);
}

#boutons ul.subs li {list-style: none;}
#boutons ul.subs a,
#boutons ul.subs li span {
	display: block;
	padding: 5px 10px;
}
#boutons ul.subs li span {color: #f14f56;}
#boutons ul.subs a:hover {
	color: #fff;
	background-color: #999;
}
#boutons ul.subs2 {padding: 0;}
#boutons ul.subs2 {margin: 0;}
#boutons ul.subs2 li a {
	padding: 2px 5px 2px 25px;
	background: transparent url(img/btn_subs2_bg.gif) no-repeat 12px -1px scroll;
}
#boutons ul.subs2 li:last-child a {background-image: url(img/btn_subs2_bg_last.gif)}
#boutons ul.subs2 li a:hover {background-image: url(img/btn_subs2_bg_hover.gif)}
#boutons ul.subs2 li:last-child a:hover {background-image: url(img/btn_subs2_bg_last_hover.gif)}
#boutons ul.subs2 li.last a {background-image: url(img/btn_subs2_bg_last.gif)} /* pour IE */
#boutons ul.subs2 li.last a:hover {background-image: url(img/btn_subs2_bg_last_hover.gif)} /* pour IE */

/* sous-menus */
/* div#client, div#chantier, div#devis, div#facture {border-top-width: 5px !important;} */

#navbar {
	position: relative;
	height: 20px;
	margin: 10px 0;
	padding: 0 20px;
	border-bottom: 1px solid #ddd;
	z-index: 3;
}
#navbar span {font-weight: bold; font-size: 14px; color: #ec262b !important;}
#navbar #login {
	position: absolute;
	right: 0;
	top: 0;
	display: block;
	width: 100px;
	height: 20px;
	padding-right: 20px;
	line-height: 20px;
	text-align: right;
}
#navbar #login a {text-decoration: none; color: #999; font-size: 12px; font-weight: bold;}
#navbar #login a:hover {text-decoration: underline; color: #f00;}

#message {
	margin: 20px;
	text-align: center;
	font-size: 12px;
}
#message span {
	display: block;
	padding: 5px;
}

#main {padding: 100px 20px 35px;}

#main fieldset {
	float: left;
	margin: 0 10px 25px 0;
	border-top: 1px solid #ddd;
	border-left: 1px solid #bbb;
	border-right: 1px solid #bbb;
	border-bottom: 2px solid #aaa;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	background-color: #fafafa;
}

#main fieldset legend {padding: 0 3px; font-size: 14px; font-weight: bold; color: #999;}

#main table {border-collapse: collapse; margin: 10px 0;}
#main table th {
	padding: 3px 5px;
	font-size: 14px;
	vertical-align: top;
	white-space: nowrap;
	border: 1px solid #fff;
	border-top: none;
	border-bottom: none;
	background: #e3e3e3;
}
#main table td {
	padding: 3px 5px 2px;
	vertical-align: top;
	border-bottom: 1px solid #ecf1f6;
	font-size: 12px;
	background: #fff;
}
#main table tr td {background: #fff;}
#main table tr td.attente{padding: 2px 0; text-align: right;}
#main table tr.odd>td {background: #f6f6f6;}
#main table tr.even>td {background: #fff;}

#main table.nodeco {margin: 0;}
#main table.nodeco>tbody>tr>td {background-color: transparent !important; border-bottom: none !important;}
#main table.nodeco>tbody>tr>td .redview{background-color:#FFDDDD !important;}


#main table.tb_border td {border-left: 1px solid #999; border-right: 1px solid #999;}
#main table.tb_border th:first-child {border-left: 1px solid #999;}
#main table.tb_border th:last-child {border-right: 1px solid #999;}

/* lignes client inactif */
#main table tr.inactif td {background-color: #fbd3d5;}
#main table tr.inactif.odd td {background-color: #f2cbcd;}
#main table.tb_border tr.inactif td {border-color: #977e80; border-bottom-color: #e9c7cd;}
#main table tr td.inactif {background-color: #ffd580;}
#main table tr.odd td.inactif {background-color: #ffd030;}
#main table.project tr.confirm td {background-color: #cff4fc;}
#main table.project tr.confirm.odd td {background-color: #c5e8ef;}
#main table.project tr.approve td {background-color: #d1e7dd;}
#main table.project tr.approve.odd td {background-color: #c7dbd2;}
#main table.project tr.ongoing td {background-color: #fff3cd;}
#main table.project tr.ongoing.odd td {background-color: #f2e7c3;}



t-able {border: 1px solid red;}
t-able td {border: 1px solid red;}
t-able th {border: 1px solid red;}

#main input[type="text"] {border: 1px solid #999; padding: 1px 3px;}
#main input[type="text"]:hover {border: 1px solid #000;}
#main input[type="text"]:focus {border: 1px solid #000; background: #ffc;}

#main input[type="password"] {border: 1px solid #999; padding: 1px 3px;}
#main input[type="password"]:hover {border: 1px solid #000;}
#main input[type="password"]:focus {border: 1px solid #000; background: #ffc;}

#main input[type="submit"] {
	margin-left: 3px;
	padding: 0 2px;
	color: #222;
	border: 1px solid #414141;
	background: #666 url(img/btn_bg.png) repeat-x left center scroll;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
#main input[type="submit"]:hover {
	color: #413a14;
	border: 1px solid #aaa670;
	background-image: url(img/btn_bg_hover.png);
	cursor: pointer;
}
#main fieldset input[type="submit"] {margin: 5px; text-align: center;}
#main input[disabled="disabled"] {
	color: #414141;
	border: 1px solid #b8ccea;
	background: #f9fbfe;
}
#main input[disabled="disabled"]:hover {
	color: #414141;
	border: 1px solid #b8ccea;
	background: #f9fbfe;
	cursor: default;
}

#main input[type="submit"].submit-nodeco {
	margin: 1px 0;
	padding: 0;
}

hr.clear {clear: both; height: 1px; border: none; visibility: hidden;}

#footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 20px;
	margin: 0;
	padding: 5px 0 5px;
	border-top: 1px solid #bbb;
	font-size: 12px;
	color: #999;
	font-style: italic;
	text-align: right;
	background: #fff url(img/footer_bg.png) repeat-x left top scroll;
}
#footer p {margin: 0; padding: 0 20px;}
#footer a {color: #999; text-decoration: underline;}
#footer a:hover {color: #ec262b; text-decoration: none;}

/* bloc indiquant le client/chantier sélectionné (pages TDevis et TFacture) */
table#infocurrent {font-weight: bold;}
table#infocurrent span {
	padding: 0 8px;
	background: #ddd;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

/* bloc contenant les boutons précédent/suivant */
div#prevnext {
	position: fixed;
	left: auto;
	right: 20px;
	bottom: 40px;
	margin-top: 25px;
	padding: 0;
	text-align: right;
}

div#back {
	position: fixed;
	left: 20px;
	right: auto;
	bottom: 40px;
	padding: 0;
	text-align: left;
}
div#infos {
	position: fixed;
	left: auto;
	right: 20px;
	bottom: 65px;
	padding: 0;
	text-align: right;
	width: 136px;
	background: #fff;
}
div#b-button {
	position: fixed;
	left: auto;
	right: 20px;
	bottom: 105px;
	padding: 0;
	text-align: right;
}

.genblock {
	wid-th: 100%;
	background: red;
}

.autocomplete { position: relative; z-index: 5; background-color: #EDF5FF; border: 1px solid #243356; }
.autocomplete ul, .autocomplete li { margin: 0px; padding: 0px; list-style: none; color: #333; }
.autocomplete li { padding: 4px; border-top: 1px solid #ccc; }
.autocomplete .selected { background-color: #ffc; }

.autocomplete-side { position: absolute; left: auto !important; top: 0 !important; right: 95px !important; z-index: 5; background-color: #EDF5FF; border: 1px solid #243356; }
.autocomplete-side ul, .autocomplete-side li { margin: 0px; padding: 0px; list-style: none; color: #333; }
.autocomplete-side li { padding: 4px; border-top: 1px solid #ccc; }
.autocomplete-side .selected { background-color: #ffc; }


.div-nodeco{
	float: left;
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-bottom: none !important;
}

.div-nodeco fieldset{
	float: left;
	margin: 10px 0 0 0 !important;
	border-top: 1px solid #ddd;
	border-left: 1px solid #bbb;
	border-right: 1px solid #bbb;
	border-bottom: 2px solid #aaa;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	background-color: #fafafa;
}

.tab-nodeco {
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-bottom: none !important;
}

.tab-nodeco>tbody>tr>td {
	margin: 0 !important;
	padding: 1px !important;
	background-color: transparent !important;
	border-bottom: none !important;
}

.tab-b {
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-bottom: none !important;
}

#main table.tab-b td {
	margin: 0 !important;
	padding: 1px !important;
	background-color: transparent !important;
}
#main table.tab-b tr:first-child>td {border-bottom: 1px solid #999;}
#main table.tab-b tr:last-child>td {border-top: 1px solid #999;}
#main table.tab-b td{border-left: 1px solid #999; border-right: 1px solid #999;}
#main table.tab-b td:first-child {border-right: 1px solid #999; border-left: none !important;}
#main table.tab-b td:last-child {border-left: 1px solid #999; border-right: none !important; border-bottom: none !important;}

.tab-b-nodeco {
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border: none !important;
}

.tab-b-nodeco>tbody>tr>td {
	margin: 0 !important;
	padding: 1px !important;
	background-color: transparent !important;
	border: none !important;
}

.previewpdf {
	width: 498px;
	border: 1px solid #000;
	padding: 3px 5px;
	text-align: justify;
	text-justify: newspaper;
	font-size: 12px;
	font-family: Arial, sans-serif;
}

.check_address {
	height: 450px;
	width: 700px;
	border: 1px solid #000;
}
.check_address_error {
	width: 680px;
	color: #fff;
	background: #900;
	padding: 3px 10px;
	text-align: center;
	border: 1px solid #000;
	border-bottom: none;
	display: none;
}

.check_address.client {
	height: 400px;
	width: 605px;
	border: 1px solid #000;
}
.check_address_error.client {
	width: 585px;
	color: #fff;
	background: #900;
	padding: 3px 10px;
	text-align: center;
	border: 1px solid #000;
	border-bottom: none;
	display: none;
}

#main.print {
	padding: 20px;
}
#main.print table {
	border-collapse: separate;
}
#main.print table th span, #main.print table td span{
	font-size:0.8em;
}
#main.print table tr:last-child > th, #main.print table tr:last-child > td{
	border-bottom: none;
}
#main.print .check_address {
	height: 300px;
	width: 600px;
}
#main.print .check_address_error {
	width: 580px;
	color: #fff;
	background: #900;
	padding: 3px 10px;
	text-align: center;
	border: 1px solid #000;
	border-bottom: none;
	display: none;
}

@media only screen 
	and (min-device-width : 768px) 
	and (max-device-width : 1024px), 
only screen 
	and (-webkit-min-device-pixel-ratio : 2), 
only screen 
	and (min-resolution: 2dppx) 
{

	#header {
		position: relative;
		height: 79px;
		left: auto;
		top: auto;
	}

	#logo {
		top: 5px;
	}

	#message {
		margin: 8px 20px 20px;
	}

}

.graph-container {
	box-sizing: border-box;
	width: 850px;
	height: 350px;
	padding: 20px 15px 15px 15px;
	margin: 15px auto 30px auto;
	border: 1px solid #e6e6e6;
	border-bottom-color: #ddd;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 5px 10px -6px rgba(0,0,0,0.25);
	position: relative;
}

.graph-placeholder {
	width: 100%;
	height: 100%;
	font-size: 14px;
	line-height: 1.2em;
}

#main .graph-container .legend > div {
	opacity: .75 !important;
}
#main .graph-container .legend table {
	margin: 0;
	border: 1px solid #ddd;
}
#main .graph-container .legend table td {
	background-color: #fff;
	background-color: transparent;
	border-bottom: none;
}

.graph-tooltip {
	position: absolute;
	display: none;
	font-size: 13px;
	background-color: #fff;
	border: 2px solid #ccc;
	border-radius: 2px;
	box-shadow: 0 4px 5px -3px rgba(0,0,0,0.5);
	box-shadow: 0 5px 8px -5px rgba(0,0,0,0.5);
	white-space: nowrap;
	transition-property: 			border-color, background-color, left, top;
	transition-duration: 	 		.5s, .5s, .25s, .25s;
	transition-timing-function: 	ease-out;
}
.graph-tooltip .tooltip_ct {
	padding: 4px 7px;
	background-color: #fff;
	background-color: rgba(255,255,255,.9);
}
.graph-tooltip span {color: #666;}

div.overlay {
	display: block;
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	background: url("img/bg_black_75_trans.png") repeat scroll left top transparent;
	background: rgba(0, 0, 0, .25);
	z-index: 1000;
}
div.overlay .wrapper {
	position: relative;
	width: 350px;
	max-height: 557px;
	margin: 150px auto 0;
	padding: 0;
	background-color: #fff;
	border: 1px solid #000;
		-moz-box-shadow: 		0 15px 40px #666;
		-webkit-box-shadow: 	0 15px 40px #666;
		-o-box-shadow: 			0 15px 40px #666;
	box-shadow: 				0 15px 40px #666;
}
div.overlay .wrapper .actions {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 330px;
	height: 16px;
	padding: 5px 10px;
	text-align: right;
	line-height: 16px;
	background-color: #fff;
	border-bottom: 1px solid #999;
}
div.overlay .wrapper .actions a {
	background-color: #fff !important;
	outline: none;
}
div.overlay .wrapper .actions a.cancel {float: left;}
div.overlay .wrapper .actions #buffer {display: none;}
div.overlay ul.select_elms {
	margin: 0;
	padding: 5px 10px;
	max-height: 493px;
	overflow: auto;
}
div.overlay ul.select_elms li {
	margin: 0;
	border-top: 1px solid #eee;
	border-color: rgba(0, 0, 0, .1);
	overflow: hidden;
}
div.overlay ul.select_elms li label {float: left; padding: 2px 0;}
div.overlay ul.select_elms li input {float: right; margin-top: 4px; max-width: 15px;}
div.overlay ul.select_elms li label:hover {
	text-decoration: underline;
	cursor: pointer;
}/*
div.overlay ul.select_elms li:hover {background-color: #eee;}
div.overlay ul.select_elms li:first-child {border-top: none;}
div.overlay ul.select_elms li.yes {background-color: #dfd;}
div.overlay ul.select_elms li.yes label {color: #060 !important;}
div.overlay ul.select_elms li.yes:hover {background-color: #cec;}
div.overlay ul.select_elms li.yes:hover label {color: #050 !important;}
div.overlay ul.select_elms li label {float: left; padding: 2px 0;}
div.overlay ul.select_elms li input {float: right; margin-top: 4px; max-width: 15px;}

div.overlay ul.select_elms li.yes.remove {background-color: #fdd;}
div.overlay ul.select_elms li.yes.remove label {color: #600 !important;}
div.overlay ul.select_elms li.yes.remove:hover {background-color: #ecc;}
div.overlay ul.select_elms li.yes.remove:hover label {color: #500 !important;}*/

/* print pdf */
#edit_printdevis .wrapper,
#edit_printsmssn .wrapper,
#edit_printfacture .wrapper,
#edit_printrappel .wrapper {width: 600px;}
#edit_printdevis .wrapper .actions,
#edit_printsmssn .wrapper .actions,
#edit_printfacture .wrapper .actions,
#edit_printrappel .wrapper .actions {
	width: 580px;
	position: relative;
}
#edit_printdevis .wrapper .actions,
#edit_printsmssn .wrapper .actions,
#edit_printfacture .wrapper .actions,
#edit_printrappel .wrapper .actions {
	border-top: 1px solid #ccc;
	border-bottom: none;
}
#edit_printdevis .wrapper .actions button.confirm,
#edit_printsmssn .wrapper .actions button.confirm,
#edit_printfacture .wrapper .actions button.confirm,
#edit_printrappel .wrapper .actions button.confirm {margin-top: -4px;}

.tableFixHead {
	overflow-y: auto; /* make the table scrollable if height is more than 200 px  */
	height: 600px; /* gives an initial height of 200px to the table */
}
.tableFixHead thead {
	position: sticky; /* make the table heads sticky */
	top: 0px; /* table head will be placed from the top of the table and sticks to it */
}
.tableFixHead table {
	width: 100%;
}

/* date picker */
.TDatePicker_default {
	z-index: 500;
	border-color: #666;
	font-size: 14px !important;
	box-shadow: 				0 4px 10px #999;
		-moz-box-shadow: 		0 4px 10px #999;
		-webkit-box-shadow: 	0 4px 10px #999;
		-o-box-shadow: 			0 4px 10px #999;
}
.TDatePicker_default table {width: 100% !important;}
.TDatePicker_default select {width: auto !important;}
.TDatePicker_default .calendarHeader {padding-top: 3px !important;}
.TDatePicker_default .calendarBody th {padding: 1px !important; border: none !important; background: none !important; }
.TDatePicker_default .calendarBody td {border: none !important; vertical-align: middle !important; padding: 3px !important;}
.TDatePicker_default .calendarBody td.date {cursor: pointer !important;}
.TDatePicker_default .calendarBody td.hover {border-color: #fff !important;}
.TDatePicker_default .calendarBody td.date.hover {background: #e7f2ff !important;}
.TDatePicker_default .calendarBody td.selected {border-color: #fff !important; background: #548ccf !important;}
.TDatePicker_default .calendarBody td.selected.hover {background: #548ccf !important;}

/* date picker */
#main .defaultSkin table {
  padding: 0px;
  margin: 0px;
  border-collapse: separate;
}
#main .defaultSkin table td {
  padding: 0px;
  background: transparent;
}
#main .mceLayout td.mceToolbar {
  background: #F0F0EE;
  padding-top: 1px;
  vertical-align: top;
}
