@import url('global.css');


small { font-size:80%; }
.input-micro { width:30px; }
/* Header & footer */
.header {
	height: 50px;
	background: #dcdddb;
	font-size: 11px;
	text-shadow: 0 1px #fff;
	text-shadow: 0 1px rgba(255,255,255,0.5);
}
.header .pad {
	padding: 14px 30px;
}
.header .logo {
	margin: -7px 2px 0 30px;
	float: right;
}
.header .title {
	display: block;
	float: left;
	margin: 0 50px 0 5px;
	font-size: 17px;
	font-weight: bold;
	font-family: Arial;
	color: #333;
	text-decoration: none;
}
.header .title:hover {
	color: #000;
	text-shadow: 0 1px #fff;
}
.header .title .vers {
	font-weight: normal;
	font-size: 11px;
}
.header .icon-app {
	display: block;
	float: left;
	background-image: url(../img/app_icon_large.png) ;
	background-position: center center;
	height: 18px;
	width: 19px;
	margin-right: 10px;
}
.header .text-line {
	padding-top: 2px;
}
.header .date {
	float: right;
}

.header form {
	margin: 0;
}

.header .lang.active {
	color: #333;
	text-decoration: none;
	font-weight: bold;
}

.content {
	padding: 20px 30px;
}
.content-edit {
	padding-top: 30px;
}

/* Navigation*/
.tnav, .tnav ul {
	margin: 0;
	padding: 0;
	background: #3c4143;
	border: 1px solid #2b2e30;
	border-left: 0;
	border-right: 0;
	padding: 0 30px;
	height: 35px;
}
.tnav > li:first-child {
	border-left: 1px solid #2a2d2e;
}
.tnav > li:last-child {
	/*border-left: 1px solid #2a2d2e;*/
	border-right: 1px solid #474b4d;
}
.tnav li {
	padding: 0;
	margin: 0;
	line-height: normal;
	float: left;
	display: block;
	position: relative;
}
.tnav li a {
	display: block;
	color: #d4d4d4;
	text-shadow: 0 -1px #000;
	text-decoration: none;
	padding: 10px 20px;
	font-size: 12px;
	border-left: 1px solid #474b4d;
	border-right: 1px solid #2a2d2e;
	border-top: 1px solid rgba(255,255,255,0.1);
	white-space: nowrap;
}
.tnav li.active {
	background: -moz-linear-gradient(top,  rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.2)), color-stop(100%,rgba(0,0,0,0.5))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.5) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.5) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.5) 100%); /* IE10+ */
	background: linear-gradient(top,  rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.5) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33000000', endColorstr='#80000000',GradientType=0 ); /* IE6-9 */
}
.tnav li:hover {
	background: -moz-linear-gradient(top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.1)), color-stop(100%,rgba(0,0,0,0.3))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.3) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.3) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.3) 100%); /* IE10+ */
	background: linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.3) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1a000000', endColorstr='#4d000000',GradientType=0 ); /* IE6-9 */
}
.tnav li:hover a, .tnav li.active a {
	color: #fff;
	border-left-color:transparent;
}

.tnav li hr {
	display: none;
	border-left: 0;
	border-right: 0;
	height: 1px;
	box-shadow: 0 -1px 2px rgba(0,0,0,0.3);
	border-top: 1px solid #8bc8dc;
	background-color: #73b9d3;
	border-bottom: 1px solid #5baaca;
	margin: -11px -20px 8px -21px;
}
.tnav li.active hr {
	display: block;
}
.tnav li.active hr {
	margin: 7px -20px -10px -21px;
	margin: -11px -20px 8px -21px;
}
.tnav li hr.company {
	border-top: 1px solid #8bc8dc;
	background-color: #73b9d3;
	border-bottom: 1px solid #5baaca;
}
.tnav li.nav-company hr {
	border-top: 1px solid #8bc8dc;
	background-color: #73b9d3;
	border-bottom: 1px solid #5baaca;
}
.tnav li.nav-settings hr {
	border-top: 1px solid #f58360;
	background-color: #f26c4f;
	border-bottom: 1px solid #ef553e;
}
.tnav li.nav- hr {
	border-top: 1px solid #aadc8b;
	background-color: #93d373;
	border-bottom: 1px solid #7cca5b;
}
.tnav li.nav-center hr {
	border-top: 1px solid #f5c960;
	background-color: #f2bb4f;
	border-bottom: 1px solid #efad3e;
}
.tnav li.nav-user {
	float: right;	
}
.tnav li a [class^="icon-"] {
	margin-right: 8px;
	margin-left: -3px;
	background-image: url(../img/glyphicons-halflings-white-nav.png);
}
.tnav li.active a [class^="icon-"] {
	background-image: url(../img/glyphicons-halflings-white-nav-active.png);
}

/* subnav */
.tnav li ul {
	display: none;
	position: absolute;
	overflow: hidden;
	height: auto;
	padding: 0;
	min-width: 140px;
	margin: -1px 0 0 -1px;
	z-index: 10;
}
.tnav li:hover ul {
	display: block;
}
.tnav li ul li, .tnav li ul li a {
	float: none;
	border: 0;
}
.tnav li ul li a {
	border-top: 1px solid #474b4d;
	border-bottom: 1px solid #2a2d2e;
	padding-top: 7px;
	padding-bottom: 7px;
}
.tnav li ul li:hover a, .tnav li ul li.active a {
	border-top-color: transparent;	
}
.tnav li ul li:last-child a {
	border-bottom: 0;
}

.tnav li ul li.sep a {
	border: 0;
	height: 3px;
	padding: 0;
	background: rgba(255,255,255,0.1);
}

input.span0 { width:36px; padding:1px 1px 0 1px; }




/* Table */
.content .table {
	box-shadow: 0 0 1px rgba(0,0,0,0.4);
	background-color: #fff;
}
.content .table a {
	text-decoration: none;
}
.content .table tbody td {
	font-size: 11px;
	padding: 6px 10px 5px 10px;
	border-top: 1px solid #eee;
	box-shadow: inset 1px 1px 0 rgba(255,255,255,1); 
	line-height: normal;
}
.content .table tbody tr:first-child td {
	border-top: 1px solid #ddd;
}
.content .table thead th {
	background: #f5f5f5; /* Old browsers */
	background: -moz-linear-gradient(top,  #f3f3f3 0%, #e5e5e5 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f3f3f3), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #f3f3f3 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #f3f3f3 0%,#e5e5e5 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #f3f3f3 0%,#e5e5e5 100%); /* IE10+ */
	background: linear-gradient(top,  #f3f3f3 0%,#e5e5e5 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3f3f3', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */

	padding: 8px 10px;
	box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2); 
}

.content .table thead th.sort {
	padding: 0;
	position: relative;
}
.content .table thead th.active a {
	/*background-position: -9999px;*/
}
.content .table thead th.sort a:hover {
	background-position: right center;
}
.content .table thead th.active {
	background: #f5f5f5; /* Old browsers */
	background: -moz-linear-gradient(top,  #e7e7e7 0%, #ddd 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e7e7e7), color-stop(100%,#ddd)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #e7e7e7 0%,#ddd 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #e7e7e7 0%,#ddd 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #e7e7e7 0%,#ddd 100%); /* IE10+ */
	background: linear-gradient(top,  #e7e7e7 0%,#ddd 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e7e7e7', endColorstr='#ddd',GradientType=0 ); /* IE6-9 */
}
.content .table thead th.active a i {
	display: block;
	margin-right: -2px;
	background-image: url(../img/glyphicons-halflings-shadow.png);
	width: 14px;
	height: 14px;
	line-height: 14px;
	vertical-align: text-top;
	background-repeat: no-repeat;
	background-position: -313px -119px;
}
.content .table thead th.sort-desc a i {
	/*margin-top: 5px;*/
	background-position: -288px -119px;
}
.content .table thead th.active a:hover i {
	margin-top: 5px;
}
.content .table thead th.active.sort-desc a:hover i {
	margin-top: -5px;
}
td.checkbox, th.checkbox {
	padding: 0;
}
td.checkbox input[type="checkbox"], th.checkbox input[type="checkbox"] {
	margin: 0;
	float: none;
}
.content td a.title {
	color: #005580;
	display: block;
	font-size: 12px;
}

/*
.content td .label {
	font-family: Tahoma;
	padding: 1px 3px;
	font-weight: normal;
	font-size: 9px;
	text-transform: uppercase;
	text-shadow: none;
	float: right;
}
*/
.content td a.title:hover {
	text-decoration: underline;
}
.content table tr.tools td {
	/*background-color: #777;
	text-shadow: 0 -1px rgba(0,0,0,0.5);
	color: #fff;
	box-shadow: none;*/
	background-color: #d5d5d5;
	border-top: 0;
	padding: 10px;
}
.content table tr.selected td {
	background-color: #FCF8E3;
	border-top: 1px solid #f7e4c1;
	box-shadow: none;
}

.content .table th.active { padding-left:5px; }
.content .table th.active a { background:url('../img/th-sort.png') no-repeat left top; padding-left:14px; }
.content .table th.active.active_asc a { background-position:0 -45px; }
.content .table th.active.active_desc a { background-position:0 -91px; }

.pagination-info {
	width: 170px;
	text-align: center;
	font-size: 11px;
}

.info-icons {
	white-space: nowrap;
}
.info-icons i {
	opacity: 0.15;
	margin-right: 1px;
}
.info-icons i.active {
	opacity: 1;	
}
.icon-arrows {
	width: 20px;
}

.lnav ul
{
	list-style: none;
	margin: 0;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 1px rgba(0,0,0,0.2);
	padding: 5px 0;
}

.lnav ul li a {
	display: block;
	text-decoration: none;
	padding: 5px 10px 5px 13px;
	color: #666;
	font-size: 12px;
	border-bottom: 1px solid #ededed;
}
.lnav ul li:last-child a {
	border: 0;
}
.lnav ul li a:hover {
	background: #f5f5f5;
}
.lnav ul li a i {
	margin-right: 7px;	
}
.lnav ul li.active a, .lnav ul li.active a:hover {
	background: #83b3c3; /* Old browsers */
	background: -moz-linear-gradient(top,  #83b3c3 0%, #5295b0 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#83b3c3), color-stop(100%,#5295b0)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #83b3c3 0%,#5295b0 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #83b3c3 0%,#5295b0 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #83b3c3 0%,#5295b0 100%); /* IE10+ */
	background: linear-gradient(top,  #83b3c3 0%,#5295b0 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#83b3c3', endColorstr='#5295b0',GradientType=0 ); /* IE6-9 */
	color: #fff;
	text-shadow: 0 1px #4f7f92;
}
.lnav ul li.active a i {
	background-image: url(../img/glyphicons-halflings-white-shadow.png);
}
.lnav ul li.active a i.icon-phone:before {
	border-color: #fff;
	box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.lnav ul li em {
	float: right;
	font-style: normal;
	font-size: 11px;
	margin: 0;
}
.lnav h6 {
	margin-left: 13px;
}
.icon-color {
    background-image: url(../img/glyphicons-halflings-color.png);
}

.icon-pdf { background-image:url('../img/icon-pdf.png'); background-position:center center; }


/* Chosen JS */
.chzn-results li {
	text-shadow: none;
}
.chzn-container abbr { 
	border: 0;
	cursor: inherit;
}
.content .address .chzn-container {
	margin-right: 10px;
	margin-bottom: 10px;
}
.content .address .chzn-container:before {
	content: attr(title);
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	color: #999;
}
.address-result a {
	display: inline-block;
	text-decoration: none;
	margin-right: 20px;
	color: #333;
}
.address-result {
	margin-bottom: 10px;
}
.address-result a:before {
	display: block;
	content: attr(title);
	text-decoration: none;
	color: #aaa;	
	font-size: 9px;
}
.address-result a i {
	opacity: 0;
}
.address-result a:hover i {
	opacity: 0.2;	
}

.address-result a em {
	color: #999;
	font-size: 11px;
}

.table-list  b {
	font-weight: normal;
	background: #ff9;
	text-shadow: 0 1px #fff;
}

form .control-item:not(:first-child) { margin-top:-1px; }
form .control-item > span:first-child { margin-right:5px; }
form .control-item input[type=text]:focus { position:relative; z-index:10; }
form .description input { background-color:#fafbfc; border-color:#EEEEEE; color:#555555; }
form .description input:focus { border-color: rgba(82, 168, 236, 0.8); }
.multi_lang { display:none; }
.multi_lang.lang_lv { display:inline-block; }
form .control-item .work_hours_one_day { float:left; padding-right:5px; text-align:center; }
form .control-item .work_hours_one_day input { text-align:center; }
form .control-item .work_hours .checkbox.inline { padding-top:0; }

form .control-group .tool-row { margin-right:5px; opacity:0; }
form .control-group:hover .tool-row { opacity:0.5; }
form .control-group:hover .tool-row:hover { opacity:1; }
form .control-group .control-item .tool-descr { margin-left:5px; display: none; color: #777; font-style: italic; }
form .control-group .tool-sub { display:none; }
form .control-group .multiple .tool-sub { display:none; }
form .control-group .multiple .control-item:hover .tool-sub { display: inline-block; }
form .control-group .multiple .control-item:hover .tool-sub i { opacity: 0.5 }
form .control-group .multiple .control-item:hover .tool-descr:hover i { opacity: 1 }
form .control-group .multiple .control-item:hover .drag_handle { cursor:move }
form .control-group .control-item-state-highlight { width:100%; background:#FFFFEE; }


.company_info { padding: 0px 0 10px 10px; }
.company_info h4 { margin:0; }
.company_info p { margin:0; }
.company_info a.icon { opacity:0.2; margin-left:20px; }
.company_info:hover a.icon { opacity:1; }

#add_new_field_block { display:none; }

a.simple { text-decoration:none; cursor:pointer; }

.modal a.close { text-decoration:none; }
.open-modal { text-decoration:none; }
.open-modal:hover { text-decoration:underline; }

.work_hours_group_item .shortcuts { padding-bottom:3px; }
.work_hours_group_item .shortcut { padding:0 8px 0 2px; }
.work_hours_group_item .work_hours_days_buttons { float:left; padding-right:15px; }
.work_hours_group_item input.span1 { padding-top:3px; padding-bottom:3px; }
.work_hours_group_item .add_new_work_hour_group_item { margin-left:10px; }
.work_hours_group_item { margin-bottom:5px; }

.modal.address_modal { width:900px; margin-left:-450px; overflow:visible; }
.modal.address_modal .modal-body { overflow-y:visible; }

.table td.align-right { text-align:right; }
.align-right { text-align:right; }
.table td.align-center { text-align:center; }
.table th.align-center { text-align:center; }
.align-center { text-align:center; }
.content table.table.project-lines th { padding:5px 10px; }
.content table.table.project-lines tbody tr td { line-height:26px; font-size:12px; padding:4px 7px 4px 7px; }
.content table.table.project-lines tfoot tr td { padding:6px 10px 5px; }
table.project-lines tbody tr td input { width:100%; -moz-box-sizing: border-box; box-sizing:border-box; height:26px; margin:0; }
table.project-lines tr.template { display:none; }

/* PROJECT DETAILS */
.content .project-details-table.table thead th { padding:2px 7px 2px 7px; }
.content .project-details-table.table tbody tr td { padding:4px 7px 4px 7px; line-height:26px; font-size:12px; }
.content .project-details-table.table tbody tr td input { width:100%; -moz-box-sizing: border-box; box-sizing:border-box; height:26px; margin:0; }
.content .project-details-table.table tbody tr td select { width:100%; -moz-box-sizing: border-box; box-sizing:border-box; height:26px; margin:0; }
.content .project-details-table.table tbody tr td textarea { height:70px; width:100%; -moz-box-sizing: border-box; box-sizing:border-box; margin:0; }

h4.project-details-estimate-line { margin:0 5px 5px 5px; }
h4.project-details-estimate-line .quantity-and-price { display:inline-block; margin-right:20px; }
h4.project-details-estimate-line label.deadline-label { display:inline-block; margin:0 20px 0 0; }
h4.project-details-estimate-line label.deadline-label input { padding:1px 3px; }
h4.project-details-estimate-line label.deadline-label .input-icon { margin-left:-18px; }

.project-details-form .info-block th { font-weight:normal; text-align:right; padding:0 5px 0 20px; }
.project-details-form .info-block td { font-weight:bold; }

.project-invoice-form .info-block { margin-bottom:20px; }
.project-invoice-form .info-block th { font-weight:normal; text-align:right; padding:0 5px 0 20px; }
.project-invoice-form .info-block td { font-weight:normal; }
.project-invoice-form .info-block td .negative { color:red; }
.project-invoice-form .info-block td .positive { color:green; }
.project-invoice-form .separated { padding-top:10px; border-top:1px solid #aaaaaa; }
#invoice-vat_reference_select_block { margin:0; }
#invoice-vat_reference_select_block select { padding:0px 3px; height:20px; line-height:20px; }

.modal-body .form-horizontal { margin-bottom:0; }
.modal-body .form-horizontal .control-group { margin-bottom:8px; }
.modal-body .form-horizontal .control-group:last-child { margin-bottom:0; }

table.invoice-all tfoot tr td { font-size:11px; }
table.invoice-all tr.tick-border td { border-top-width:3px; }

table#paper-report thead th{ text-align:center; vertical-align:middle; }
table#paper-report .nowrap{ white-space:nowrap; }
table#paper-report .align-right{ text-align:right; }
div#paperreportsaved{ display:none; position:fixed; bottom:0; margin-bottom:0; width:75%; text-align:center; }
table#paper-report tr.ordered{ background-color:#eee; }
table#paper-report tr.ordered td{ color:#666; }

form#paper-trips label{ display:inline; padding-right:30px; }
form#paper-trips{ background-color:#FFFFFF; border-radius:4px; padding:10px 25px 10px 5px; display:inline-block; }
form#paper-trips div.trips{ display:inline; }
form#paper-trips div.trips label{	margin-left:5px; top:3px; position:relative; margin-right:10px; padding-right:10px; }
div#papertripalert{ display:none; }

form#editform table tr#customline{ display:none; }
form#editform table tr.cline input{ width:100%; }
form#editform table tr.cline input.fwidth{ width:210px; }
table#paper-remove tr.cust{ background-color:#F6F6F6; }