body {
	font-size: 8pt;
}

#menu, #menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
	background: #F1F1ED;
}
#menu ul {
	border-bottom: 1px solid #D8D2BD;
	border-left: 1px solid #D8D2BD;
	border-right: 1px solid #D8D2BD;
	border-top: 0;
}

#menu a, #menu li.inactive span {
	display: block;
	width: 100px;
	color: #000000;
	text-decoration: none;
	padding: 5px;
}
#menu hr {
	width: 90px;
}

#menu li {
	float: left;
	padding: 5px;
}
#menu li.inactive span {
	color: #aaaaaa;
}
#menu li ul {
	position: absolute;
	width: 100px;
	left: -999em;
	margin: 5px 0 0 -5px;
	box-shadow: 0px 5px 5px #999999;
}
#menu li ul li {
	width: 100px;
	padding: 0;
}
#menu>li.hover {
	background: #315AC5;
}
#menu li:hover {
	background: #315AC5;
	width 90px;
}
#menu li.inactive:hover {
	background: none;
}
#menu li:hover hr {
	margin: 0;
}
#menu li.separator:hover {
	background: #F1F1ED;
}
#menu li:hover ul {
	left: auto;
}
#menu li:hover ul, #menu li.sfhover ul {
	left: auto;
}

#menu li ul ul {
	margin: -20px 0 0 100px;
}
#menu, #menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1;
}
#menu li:hover ul ul, #menu li.sfhover ul ul {
	left: -999em;
}
#menu li:hover ul, #menu li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul {
	left: auto;
}

#menu {
	font-size: 11px;
}

#body {
	margin-top: 30px;
}

.ui-autocomplete-input {
	width: 100px;
	vertical-align: top;
}
.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
}

.ui-button {
	display: inline;
	height: 17px;
	vertical-align: top;
}
.ui-widget {
	font-size: 1em;
}

#panel_links li a {
	font-size: 8px;
	padding: 3px;
}

.remove_free_text {
	display: none;
}

.invoice_free_text {
	width: 100%;
}

td.reconciled {
	font-weight: normal;
}

td.unreconciled {
	font-weight: bold;
}

/* Invoices */
#detailsTable select {
	width: 100px;
}
#detailsTable select.taxcode {
	width: 40px;
}
#detailsTable .ui-autocomplete-input {
	width: 30px;
}
#detailsTable .gross, #detailsTable #total_gross {
	width: 100px;
}

.contact_selection_list {
	height: 180px;
	overflow: auto;
	border: 1px solid #555555;
	min-width: 140px;
}

table tbody tr.opportunity_lost td, table tbody tr.opportunity_lost td a {
	background-color: #d9d9d9;
	color: #ffffff;
}
table tbody tr.opportunity_won td {
	background-color: #d9d9d9;
}

table.tablesorter tbody tr:nth-child(even), table.tablesorter tbody tr:nth-child(even) td {
	background-color: #eeeeee;
}
table.tablesorter tbody tr:hover, table.tablesorter tbody tr:hover td, table.tablesorter tbody tr:hover td a {
	background-color: #555555 !important;
	color: #ffffff;
}

table.tablesorter input.tablesorter-filter {
    width: 90%;
}
/*This is missing from the standard CSS*/
.tablesorter .filtered {
    display: none;
}
.overdue td {
	background: #ff0000 !important;
}

/* tablesorter grouping */
tr.group-header td {
  background: #eee;
}
.group-name {
  text-transform: uppercase;
  font-weight: bold;
}
.group-count {
  color: #999;
}
.group-hidden {
  display: none;
}
tr.group-header, tr.group-header td {
  user-select: none;
  -moz-user-select: none;
}
table.tablesorter tbody tr.group-header, table.tablesorter tbody tr.group-header td {
	background-color: #555555 !important;
	color: #ffffff;
}
/* collapsed arrow */
tr.group-header td i {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid #888;
  border-right: 4px solid #888;
  border-left: 4px solid transparent;
  margin-right: 7px;
  user-select: none;
  -moz-user-select: none;
}
tr.group-header.collapsed td i {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #888;
  border-right: 0;
  margin-right: 10px;
}



tr.inactive_record {
	text-decoration: line-through;
	opacity: 0.3;
}
tr.error td {
	background: #ffdddd !important;
	border: 1px solid #ff0000 !important;
}


/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url("http://i.stack.imgur.com/FhHRx.gif") 
                50% 50% 
                no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;   
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .modal {
    display: block;
}

@media print {
	#main_menu {
		display: none;
	}
}