html,
body {
	height: 100%;
}

#wrap {
	min-height: 100%;
}

#main {
	padding-top: 64px;
	padding-bottom: 100px;
	overflow: visible;
}

body.admin #main {
	padding-top: 58px;
}

#footer {
	position: relative;
	margin-top: -100px;
	padding-top: 20px;
	height: 80px;
	clear: both;
	overflow: visible;
}

#footer blockquote p {
	font-size: 14px;
}

#footer p.muted a {
	color: #999;
}

body.admin td {
	vertical-align: middle;
}

.navbar .nav > li > a {
	padding: 10px;
}

.navbar .username {
	display: inline-block;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sub-header {
	margin-bottom: 26px;
}

.sub-header .logo {
	width: 221px;
	height: 28px;
	max-width: none;
}

#division-select-btn-group {
	margin-right: 10px;
}
#division-select-btn-group:last-child {
	margin-right: 0;
}

.page-header {
	padding-bottom: 0;
}

.page-header .toolbar {
	margin-top: 5px;
}

.page-header .btn {
	margin-top: 5px;
}

.page-header .form-inline {
	margin-top: 5px;
}

.page-header .form-inline .btn {
	margin-top: 0;
}

.alerts-app > ul {
	margin-bottom: 0;
}

.alert,
.alert-info,
.alert-success,
.alert-danger {
	color: #333;
}

.table th.text-left,
.table td.text-left {
	text-align: left;
}
.table th.text-center,
.table td.text-center {
	text-align: center;
}
.table th.text-right,
.table td.text-right {
	text-align: right;
}

tr.th-group {
	color: #3A87AD;
	background-color: #D9EDF7;
	border-color: #BCE8F1;
}

.no-wrap {
	white-space: nowrap;
}

.row + .form-actions {
	margin-top: 0;
}

.input-phone {
	width: 119px;
}

.modal > form {
	margin-top: 0;
	margin-bottom: 0;
}

.login-form {
	margin-top: 16px;
}

.login-form-extra {
	margin-top: 30px;
}

.power-inner-form {
	margin-top: 24px;
}

.legend {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 20px;
	font-size: 21px;
	line-height: 40px;
	color: #333;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
}

.radio-with-input input[type="text"] {
	vertical-align: top;
}

.form-horizontal .bootstrap-select.btn-group,
.form-horizontal .bootstrap-select.btn-group[class*="span"] {
	margin-bottom: 0;
}

.alert-block-alt {
	padding-right: 14px;
}

.alert-block-alt h4 {
	margin-bottom: 5px;
}

.alert-block-alt p+p {
	margin-top: 10px;
}

.aging-table td,
.aging-table th,
.transactions-table td,
.transactions-table th {
	white-space: nowrap;
}

.terms-col .popover {
	width: 260px;
	max-width: none;
}
.payments-col .popover {
	width: 370px;
	max-width: none;
}
.adjustments-col .popover {
	width: 400px;
	max-width: none;
}

.terms-col .popover table,
.payments-col .popover table,
.adjustments-col .popover table,
.terms-col .popover .alert,
.payments-col .popover .alert,
.adjustments-col .popover .alert {
	margin-bottom: 0;
}

.popover .close {
	margin-top: -2px;
	margin-top: 0 \9;
	line-height: 18px;
}

.fixed-table-container {
	position: relative;
}

.fixed-table-container .float {
	position: absolute;
	z-index: 1020;
}

table.affix,
table.fixed-table {
	background-color: #fff;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

table.fixed-table {
	margin-bottom: 0;
}

.stick {
	position: absolute;
}

td.no-wrap,
th.no-wrap {
	white-space: nowrap;
}

th.checkbox-col {
	width: 18px;
}

th.icons {
	width: 1%;
}

td.icons {
	white-space: nowrap;
	text-align: right;
}

td.icons a {
	color: #333;
	text-decoration: none;
}

td.icons .muted {
	color: #ccc;
}

td.actions,
th.actions {
	width: 1%;
	text-align: center;
	white-space: nowrap;
}

th > input[type="checkbox"],
td > input[type="checkbox"] {
	margin-top: -2px;
}

.tooltip.in {
	opacity: 0.9;
	filter: alpha(opacity=90);
}

.tooltip-inner {
	font-weight: normal;
}

.controls > label {
	padding-top: 5px;
}

.controls > .checkboxes,
.controls > .radios {
	padding-top: 5px;
}

.ajax-checkbox {
	display: inline-block;
	width: 12px;
	height: 15px;
}

.ajax-checkbox input[type="checkbox"] {
	vertical-align: top;
}

#power-form .span-left {
	width: 165px;
}
#power-form .span-right {
	margin-left: 10px;
}

.aging-table th.icons span,
.aging-table td.icons span,
.documents-table th.icons span,
.documents-table td.icons span,
.orders-table th.icons span,
.orders-table td.icons span  {
	display: block;
}

.aging-table th.icons span,
.aging-table td.icons span,
.documents-table th.icons span,
.documents-table td.icons span {
	width: 28px;
}

.orders-table th.icons span,
.orders-table td.icons span  {
	width: 14px;
}

.dropdown-inventory-export-menu .dropdown-submenu.pull-left > .dropdown-menu {
	left: -66%;
}

.inventory-table td {
	vertical-align: middle;
}

.inventory-table input {
	margin-bottom: 0;
}

body.admin #fields-group .row {
	margin-top: 10px;
	margin-bottom: 10px;
}

body.admin #fields-group .row:first-child {
	margin-top: 5px;
}

.dl-spaced dt,
.dl-spaced dd {
	margin-bottom: 10px;
	min-height: 20px;
}

.popover .dismiss-forever {
	margin-top: 10px;
	margin-bottom: 0;
}

input.order-comment {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
}

.transactions-table td > .row {
	margin-top: 6px;
	margin-bottom: 6px;
}

.transactions-table td label {
	padding-top: 5px;
	text-align: right;
}

.transactions-table td label.checkbox {
	padding-top: 0;
	text-align: left;
}

.transactions-table td label.error {
	margin-top: 10px;
	margin-bottom: 0;
	padding-top: 0;
	text-align: left;
}

.transactions-table td input {
	margin-bottom: 0;
}

.transactions-table td input.error {
	color: #b94a48;
}

.transactions-table td input.error {
	border-color: #b94a48;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	   -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
			box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.transactions-table td input.error {
	border-color: #953b39;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
	   -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
			box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
}

#pay_amount_error {
	display: inline;
	margin-left: 5px;
}
#pay_amount_error.hide {
	display: none;
}

ul.deals > li:nth-child(4n+1) {
	clear: left;
}

a.thumbnail-link {
	text-decoration: none;
}

.span5 > img.img-polaroid {
	max-width: 410px;
}

.description-container {
	margin-bottom: 20px;
}

.label-large {
	padding: 4px 10px;
	font-size: 22px;
	line-height: 28px;
}

img.division {
	width: 300px;
	margin-bottom: 10px;
}

.launchpad .thumbnail {
	height: 170px;
	overflow: hidden;
}

.thumbnail {
	background-color: #fff;
}

.top-pad10 {
	margin-top: 10px;
}

#find button[type="submit"] {
	margin-right: 6px;
}

@media print {
	a[href]:after {
		content: "";
	}

	abbr[title]:after {
		content: "";
	}

	#main {
		padding-top: 20px;
	}

	body.admin #main {
		padding-top: 0;
	}

	.alert,
	.popover,
	.navbar,
	#footer .problems {
		display: none !important;
	}

	.btn {
		visibility: hidden;
	}

	.sub-header .btn {
		visibility: visible;
	}
}